@selvajs/selva 4.5.1 → 4.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/0.Df7_lxfV.css +1 -0
- package/build/client/_app/immutable/assets/0.Df7_lxfV.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Df7_lxfV.css.gz +0 -0
- package/build/client/_app/immutable/chunks/1awtB_xB.js +1 -0
- package/build/client/_app/immutable/chunks/1awtB_xB.js.br +0 -0
- package/build/client/_app/immutable/chunks/1awtB_xB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/22C0ZkpD.js +2 -0
- package/build/client/_app/immutable/chunks/22C0ZkpD.js.br +0 -0
- package/build/client/_app/immutable/chunks/22C0ZkpD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/3KyAYBE4.js +1 -0
- package/build/client/_app/immutable/chunks/3KyAYBE4.js.br +0 -0
- package/build/client/_app/immutable/chunks/3KyAYBE4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/3w4Rd2x8.js +1 -0
- package/build/client/_app/immutable/chunks/3w4Rd2x8.js.br +0 -0
- package/build/client/_app/immutable/chunks/3w4Rd2x8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5fK69wOi.js +1 -0
- package/build/client/_app/immutable/chunks/5fK69wOi.js.br +0 -0
- package/build/client/_app/immutable/chunks/5fK69wOi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6P6fn4fQ.js +1 -0
- package/build/client/_app/immutable/chunks/6P6fn4fQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/6P6fn4fQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8uBOzWQA.js +1 -0
- package/build/client/_app/immutable/chunks/8uBOzWQA.js.br +0 -0
- package/build/client/_app/immutable/chunks/8uBOzWQA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ADO9qhNc.js +1 -0
- package/build/client/_app/immutable/chunks/ADO9qhNc.js.br +0 -0
- package/build/client/_app/immutable/chunks/ADO9qhNc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B36B-q5q.js +1 -0
- package/build/client/_app/immutable/chunks/B36B-q5q.js.br +3 -0
- package/build/client/_app/immutable/chunks/B36B-q5q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3OAhCNZ.js +1 -0
- package/build/client/_app/immutable/chunks/B3OAhCNZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3OAhCNZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B7xyorXf.js +1 -0
- package/build/client/_app/immutable/chunks/B7xyorXf.js.br +0 -0
- package/build/client/_app/immutable/chunks/B7xyorXf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B89jPufp.js +1 -0
- package/build/client/_app/immutable/chunks/B89jPufp.js.br +0 -0
- package/build/client/_app/immutable/chunks/B89jPufp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNpXeuQ_.js +2 -0
- package/build/client/_app/immutable/chunks/BNpXeuQ_.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNpXeuQ_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BRHPfB44.js +1 -0
- package/build/client/_app/immutable/chunks/BRHPfB44.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRHPfB44.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BRrDIFjJ.js +1 -0
- package/build/client/_app/immutable/chunks/BRrDIFjJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRrDIFjJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTfzafVu.js +1 -0
- package/build/client/_app/immutable/chunks/BTfzafVu.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTfzafVu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BVUbFuzT.js +1 -0
- package/build/client/_app/immutable/chunks/BVUbFuzT.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVUbFuzT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYQ2KYuV.js +1 -0
- package/build/client/_app/immutable/chunks/BYQ2KYuV.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYQ2KYuV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYVjhRZj.js +1 -0
- package/build/client/_app/immutable/chunks/BYVjhRZj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYVjhRZj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BapAUJpM.js +1 -0
- package/build/client/_app/immutable/chunks/BapAUJpM.js.br +0 -0
- package/build/client/_app/immutable/chunks/BapAUJpM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BawNisij.js +1 -0
- package/build/client/_app/immutable/chunks/BawNisij.js.br +0 -0
- package/build/client/_app/immutable/chunks/BawNisij.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdIvVr5K.js +1 -0
- package/build/client/_app/immutable/chunks/BdIvVr5K.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdIvVr5K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bf2Kb0d4.js +5 -0
- package/build/client/_app/immutable/chunks/Bf2Kb0d4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bf2Kb0d4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bfsx6G_D.js +1 -0
- package/build/client/_app/immutable/chunks/Bfsx6G_D.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bfsx6G_D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bixcgta2.js +1 -0
- package/build/client/_app/immutable/chunks/Bixcgta2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bixcgta2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bj6y_fSA.js +1 -0
- package/build/client/_app/immutable/chunks/Bj6y_fSA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bj6y_fSA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnS8rxFx.js +1 -0
- package/build/client/_app/immutable/chunks/BnS8rxFx.js.br +1 -0
- package/build/client/_app/immutable/chunks/BnS8rxFx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoLtD6vo.js +1 -0
- package/build/client/_app/immutable/chunks/BoLtD6vo.js.br +0 -0
- package/build/client/_app/immutable/chunks/BoLtD6vo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bri2FOVj.js +1 -0
- package/build/client/_app/immutable/chunks/Bri2FOVj.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bri2FOVj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BtOVeLcI.js +1 -0
- package/build/client/_app/immutable/chunks/BtOVeLcI.js.br +0 -0
- package/build/client/_app/immutable/chunks/BtOVeLcI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuBobyR7.js +1 -0
- package/build/client/_app/immutable/chunks/BuBobyR7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuBobyR7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuC_QZkR.js +1 -0
- package/build/client/_app/immutable/chunks/BuC_QZkR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuC_QZkR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C0Xb3vka.js +1 -0
- package/build/client/_app/immutable/chunks/C0Xb3vka.js.br +0 -0
- package/build/client/_app/immutable/chunks/C0Xb3vka.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C2PlvXZq.js +1 -0
- package/build/client/_app/immutable/chunks/C2PlvXZq.js.br +0 -0
- package/build/client/_app/immutable/chunks/C2PlvXZq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C38beKZN.js +1 -0
- package/build/client/_app/immutable/chunks/C38beKZN.js.br +0 -0
- package/build/client/_app/immutable/chunks/C38beKZN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C4cbQnXC.js +1 -0
- package/build/client/_app/immutable/chunks/C4cbQnXC.js.br +0 -0
- package/build/client/_app/immutable/chunks/C4cbQnXC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C7bboi98.js +1 -0
- package/build/client/_app/immutable/chunks/C7bboi98.js.br +0 -0
- package/build/client/_app/immutable/chunks/C7bboi98.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CFq1UfS7.js +1 -0
- package/build/client/_app/immutable/chunks/CFq1UfS7.js.br +0 -0
- package/build/client/_app/immutable/chunks/CFq1UfS7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJvX1bCR.js +1 -0
- package/build/client/_app/immutable/chunks/CJvX1bCR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJvX1bCR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CTTkX-27.js +1 -0
- package/build/client/_app/immutable/chunks/CTTkX-27.js.br +2 -0
- package/build/client/_app/immutable/chunks/CTTkX-27.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CY6l1SkO.js +1 -0
- package/build/client/_app/immutable/chunks/CY6l1SkO.js.br +0 -0
- package/build/client/_app/immutable/chunks/CY6l1SkO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CYwMcrNf.js +1 -0
- package/build/client/_app/immutable/chunks/CYwMcrNf.js.br +0 -0
- package/build/client/_app/immutable/chunks/CYwMcrNf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ca8xAcDY.js +1 -0
- package/build/client/_app/immutable/chunks/Ca8xAcDY.js.br +2 -0
- package/build/client/_app/immutable/chunks/Ca8xAcDY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CaaCaK-C.js +1 -0
- package/build/client/_app/immutable/chunks/CaaCaK-C.js.br +0 -0
- package/build/client/_app/immutable/chunks/CaaCaK-C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeolKPEY.js +1 -0
- package/build/client/_app/immutable/chunks/CeolKPEY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeolKPEY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfYcWYC1.js +1 -0
- package/build/client/_app/immutable/chunks/CfYcWYC1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfYcWYC1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ChEZL1UP.js +1 -0
- package/build/client/_app/immutable/chunks/ChEZL1UP.js.br +0 -0
- package/build/client/_app/immutable/chunks/ChEZL1UP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CiRf7cog.js +1 -0
- package/build/client/_app/immutable/chunks/CiRf7cog.js.br +0 -0
- package/build/client/_app/immutable/chunks/CiRf7cog.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CitY1SZ1.js +1 -0
- package/build/client/_app/immutable/chunks/CitY1SZ1.js.br +0 -0
- package/build/client/_app/immutable/chunks/CitY1SZ1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CkeXmJE0.js +1 -0
- package/build/client/_app/immutable/chunks/CkeXmJE0.js.br +0 -0
- package/build/client/_app/immutable/chunks/CkeXmJE0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClDgNAKE.js +1 -0
- package/build/client/_app/immutable/chunks/ClDgNAKE.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClDgNAKE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ct6ntSZV.js +1 -0
- package/build/client/_app/immutable/chunks/Ct6ntSZV.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ct6ntSZV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CuRUkrho.js +1 -0
- package/build/client/_app/immutable/chunks/CuRUkrho.js.br +2 -0
- package/build/client/_app/immutable/chunks/CuRUkrho.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DAQN5y4A.js +1 -0
- package/build/client/_app/immutable/chunks/DAQN5y4A.js.br +3 -0
- package/build/client/_app/immutable/chunks/DAQN5y4A.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DApsDFvQ.js +1 -0
- package/build/client/_app/immutable/chunks/DApsDFvQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DApsDFvQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DE1IAae-.js +64 -0
- package/build/client/_app/immutable/chunks/DE1IAae-.js.br +0 -0
- package/build/client/_app/immutable/chunks/DE1IAae-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFnBQD1S.js +2 -0
- package/build/client/_app/immutable/chunks/DFnBQD1S.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFnBQD1S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DLMu-EPf.js +1 -0
- package/build/client/_app/immutable/chunks/DLMu-EPf.js.br +0 -0
- package/build/client/_app/immutable/chunks/DLMu-EPf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DNdxyuBP.js +1 -0
- package/build/client/_app/immutable/chunks/DNdxyuBP.js.br +0 -0
- package/build/client/_app/immutable/chunks/DNdxyuBP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DP9Ywoqu.js +1 -0
- package/build/client/_app/immutable/chunks/DP9Ywoqu.js.br +0 -0
- package/build/client/_app/immutable/chunks/DP9Ywoqu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQiSgNnB.js +1 -0
- package/build/client/_app/immutable/chunks/DQiSgNnB.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQiSgNnB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DQtEKe83.js +1 -0
- package/build/client/_app/immutable/chunks/DQtEKe83.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQtEKe83.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTLLn7uD.js +1 -0
- package/build/client/_app/immutable/chunks/DTLLn7uD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTLLn7uD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DgJBZX8M.js +1 -0
- package/build/client/_app/immutable/chunks/DgJBZX8M.js.br +1 -0
- package/build/client/_app/immutable/chunks/DgJBZX8M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DllGpGf3.js +1 -0
- package/build/client/_app/immutable/chunks/DllGpGf3.js.br +0 -0
- package/build/client/_app/immutable/chunks/DllGpGf3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dxp1VkzK.js +1 -0
- package/build/client/_app/immutable/chunks/Dxp1VkzK.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dxp1VkzK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/EVm4fAGL.js +1 -0
- package/build/client/_app/immutable/chunks/EVm4fAGL.js.br +1 -0
- package/build/client/_app/immutable/chunks/EVm4fAGL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/JFdtrT5G.js +1 -0
- package/build/client/_app/immutable/chunks/JFdtrT5G.js.br +0 -0
- package/build/client/_app/immutable/chunks/JFdtrT5G.js.gz +0 -0
- package/build/client/_app/immutable/chunks/LZnjyP_x.js +1 -0
- package/build/client/_app/immutable/chunks/LZnjyP_x.js.br +0 -0
- package/build/client/_app/immutable/chunks/LZnjyP_x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/MGblXd4C.js +1 -0
- package/build/client/_app/immutable/chunks/MGblXd4C.js.br +0 -0
- package/build/client/_app/immutable/chunks/MGblXd4C.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Mn4D08zE.js +1 -0
- package/build/client/_app/immutable/chunks/Mn4D08zE.js.br +1 -0
- package/build/client/_app/immutable/chunks/Mn4D08zE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/SM988pE-.js +1 -0
- package/build/client/_app/immutable/chunks/SM988pE-.js.br +0 -0
- package/build/client/_app/immutable/chunks/SM988pE-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/T404WsWw.js +1 -0
- package/build/client/_app/immutable/chunks/T404WsWw.js.br +0 -0
- package/build/client/_app/immutable/chunks/T404WsWw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/TMQByngI.js +1 -0
- package/build/client/_app/immutable/chunks/TMQByngI.js.br +0 -0
- package/build/client/_app/immutable/chunks/TMQByngI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/aGXM-hZQ.js +9 -0
- package/build/client/_app/immutable/chunks/aGXM-hZQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/aGXM-hZQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bbm2EPf2.js +1 -0
- package/build/client/_app/immutable/chunks/bbm2EPf2.js.br +0 -0
- package/build/client/_app/immutable/chunks/bbm2EPf2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cwYjabEo.js +1 -0
- package/build/client/_app/immutable/chunks/cwYjabEo.js.br +0 -0
- package/build/client/_app/immutable/chunks/cwYjabEo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jiMRToiE.js +1 -0
- package/build/client/_app/immutable/chunks/jiMRToiE.js.br +0 -0
- package/build/client/_app/immutable/chunks/jiMRToiE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/k1GnUs7f.js +1 -0
- package/build/client/_app/immutable/chunks/k1GnUs7f.js.br +0 -0
- package/build/client/_app/immutable/chunks/k1GnUs7f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/mlApEF2J.js +1 -0
- package/build/client/_app/immutable/chunks/mlApEF2J.js.br +0 -0
- package/build/client/_app/immutable/chunks/mlApEF2J.js.gz +0 -0
- package/build/client/_app/immutable/chunks/q9t1O0FS.js +3 -0
- package/build/client/_app/immutable/chunks/q9t1O0FS.js.br +0 -0
- package/build/client/_app/immutable/chunks/q9t1O0FS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/sxUC6FDI.js +1 -0
- package/build/client/_app/immutable/chunks/sxUC6FDI.js.br +0 -0
- package/build/client/_app/immutable/chunks/sxUC6FDI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wegQDfR0.js +1 -0
- package/build/client/_app/immutable/chunks/wegQDfR0.js.br +0 -0
- package/build/client/_app/immutable/chunks/wegQDfR0.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.KeZYxes2.js +2 -0
- package/build/client/_app/immutable/entry/app.KeZYxes2.js.br +0 -0
- package/build/client/_app/immutable/entry/app.KeZYxes2.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.ku-2cP9N.js +1 -0
- package/build/client/_app/immutable/entry/start.ku-2cP9N.js.br +2 -0
- package/build/client/_app/immutable/entry/start.ku-2cP9N.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DbHFFbkB.js +1 -0
- package/build/client/_app/immutable/nodes/0.DbHFFbkB.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DbHFFbkB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CM6R_Lbr.js +1 -0
- package/build/client/_app/immutable/nodes/1.CM6R_Lbr.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CM6R_Lbr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.X7rNYygL.js +3 -0
- package/build/client/_app/immutable/nodes/10.X7rNYygL.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.X7rNYygL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BL3lvPOj.js +4 -0
- package/build/client/_app/immutable/nodes/11.BL3lvPOj.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BL3lvPOj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.Bdebe5Rr.js +1 -0
- package/build/client/_app/immutable/nodes/12.Bdebe5Rr.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.Bdebe5Rr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.sbeNC4dG.js +2 -0
- package/build/client/_app/immutable/nodes/13.sbeNC4dG.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.sbeNC4dG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DhGNtyi-.js +2 -0
- package/build/client/_app/immutable/nodes/14.DhGNtyi-.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DhGNtyi-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.oP-KbzSG.js +19 -0
- package/build/client/_app/immutable/nodes/15.oP-KbzSG.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.oP-KbzSG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.BL9rkAB6.js +6 -0
- package/build/client/_app/immutable/nodes/16.BL9rkAB6.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.BL9rkAB6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BH69wf-l.js +2 -0
- package/build/client/_app/immutable/nodes/17.BH69wf-l.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BH69wf-l.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.CQUwzcDA.js +1 -0
- package/build/client/_app/immutable/nodes/18.CQUwzcDA.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.CQUwzcDA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BX1LJmxf.js +2 -0
- package/build/client/_app/immutable/nodes/19.BX1LJmxf.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BX1LJmxf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CE83b9g7.js +1 -0
- package/build/client/_app/immutable/nodes/2.CE83b9g7.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CE83b9g7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DfGuU-tL.js +5021 -0
- package/build/client/_app/immutable/nodes/20.DfGuU-tL.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DfGuU-tL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.mN985ZPL.js +6 -0
- package/build/client/_app/immutable/nodes/21.mN985ZPL.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.mN985ZPL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CFZCzpzp.js +16 -0
- package/build/client/_app/immutable/nodes/23.CFZCzpzp.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CFZCzpzp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.BoyZWBlt.js +6 -0
- package/build/client/_app/immutable/nodes/24.BoyZWBlt.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.BoyZWBlt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DNwr0QCW.js +1 -0
- package/build/client/_app/immutable/nodes/25.DNwr0QCW.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DNwr0QCW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Db6OQMMh.js +3 -0
- package/build/client/_app/immutable/nodes/26.Db6OQMMh.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Db6OQMMh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.BqTrLSXs.js +4 -0
- package/build/client/_app/immutable/nodes/27.BqTrLSXs.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.BqTrLSXs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.ByUTtUBS.js +4 -0
- package/build/client/_app/immutable/nodes/28.ByUTtUBS.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.ByUTtUBS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.BPAeUa_H.js +2 -0
- package/build/client/_app/immutable/nodes/29.BPAeUa_H.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.BPAeUa_H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CokJHt5C.js +1 -0
- package/build/client/_app/immutable/nodes/3.CokJHt5C.js.br +2 -0
- package/build/client/_app/immutable/nodes/3.CokJHt5C.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.DAY6osd8.js +2 -0
- package/build/client/_app/immutable/nodes/30.DAY6osd8.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.DAY6osd8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.BmGk5kzS.js +2 -0
- package/build/client/_app/immutable/nodes/31.BmGk5kzS.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.BmGk5kzS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.C8wOZK7U.js +3 -0
- package/build/client/_app/immutable/nodes/32.C8wOZK7U.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.C8wOZK7U.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BSBCh_uY.js +1 -0
- package/build/client/_app/immutable/nodes/4.BSBCh_uY.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BSBCh_uY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BnPG80ab.js +1 -0
- package/build/client/_app/immutable/nodes/5.BnPG80ab.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BnPG80ab.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CaadpVs0.js +1 -0
- package/build/client/_app/immutable/nodes/6.CaadpVs0.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CaadpVs0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BKxf0uSD.js +1 -0
- package/build/client/_app/immutable/nodes/7.BKxf0uSD.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BKxf0uSD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CMgsgbH9.js +2 -0
- package/build/client/_app/immutable/nodes/8.CMgsgbH9.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CMgsgbH9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.idcjG0je.js +1 -0
- package/build/client/_app/immutable/nodes/9.idcjG0je.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.idcjG0je.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/env.js +9 -33
- package/build/env.js.map +1 -0
- package/build/handler.js +29 -1493
- package/build/handler.js.map +1 -0
- package/build/index.js +39 -231
- package/build/index.js.map +1 -0
- package/build/server/chunks/chunks/AppHeader.js-DPS1L7af.js +271 -0
- package/build/server/chunks/chunks/AppHeader.js-DPS1L7af.js.map +1 -0
- package/build/server/chunks/chunks/DataTable.js-C-9fgrm7.js +26 -0
- package/build/server/chunks/chunks/DataTable.js-C-9fgrm7.js.map +1 -0
- package/build/server/chunks/chunks/DefinitionCard.js-CBMITR_W.js +268 -0
- package/build/server/chunks/chunks/DefinitionCard.js-CBMITR_W.js.map +1 -0
- package/build/server/chunks/chunks/EmptyState.js-BTsOfyof.js +53 -0
- package/build/server/chunks/chunks/EmptyState.js-BTsOfyof.js.map +1 -0
- package/build/server/chunks/chunks/ErrorScreen.js-R8xRDVkw.js +131 -0
- package/build/server/chunks/chunks/ErrorScreen.js-R8xRDVkw.js.map +1 -0
- package/build/server/chunks/chunks/FilterableDropdown.js-DDs-rL2b.js +61 -0
- package/build/server/chunks/chunks/FilterableDropdown.js-DDs-rL2b.js.map +1 -0
- package/build/server/chunks/chunks/SectionHeader.js-n2KShN5j.js +32 -0
- package/build/server/chunks/chunks/SectionHeader.js-n2KShN5j.js.map +1 -0
- package/build/server/chunks/chunks/SideNav.js-DmUkKbIq.js +87 -0
- package/build/server/chunks/chunks/SideNav.js-DmUkKbIq.js.map +1 -0
- package/build/server/chunks/chunks/StatCard.js-CJ6mPxvK.js +50 -0
- package/build/server/chunks/chunks/StatCard.js-CJ6mPxvK.js.map +1 -0
- package/build/server/chunks/chunks/UserAvatar.js-D9PWOOlf.js +13 -0
- package/build/server/chunks/chunks/UserAvatar.js-D9PWOOlf.js.map +1 -0
- package/build/server/chunks/chunks/UserChip.js-BD3_PDH3.js +1227 -0
- package/build/server/chunks/chunks/UserChip.js-BD3_PDH3.js.map +1 -0
- package/build/server/chunks/chunks/access.server.js-7luP5O4P.js +408 -0
- package/build/server/chunks/chunks/access.server.js-7luP5O4P.js.map +1 -0
- package/build/server/chunks/chunks/activity.js-CTbDMfSg.js +18 -0
- package/build/server/chunks/chunks/activity.js-CTbDMfSg.js.map +1 -0
- package/build/server/chunks/chunks/admin-auth.server.js-hCWF6Pqg.js +85 -0
- package/build/server/chunks/chunks/admin-auth.server.js-hCWF6Pqg.js.map +1 -0
- package/build/server/chunks/chunks/alert-description.js-ApA6fBTc.js +59 -0
- package/build/server/chunks/chunks/alert-description.js-ApA6fBTc.js.map +1 -0
- package/build/server/chunks/chunks/api-errors.js-DjgsTHzx.js +140 -0
- package/build/server/chunks/chunks/api-errors.js-DjgsTHzx.js.map +1 -0
- package/build/server/chunks/chunks/arrow-left.js-BzD78IJ7.js +14 -0
- package/build/server/chunks/chunks/arrow-left.js-BzD78IJ7.js.map +1 -0
- package/build/server/chunks/chunks/arrow-right.js-LJU5kIk7.js +14 -0
- package/build/server/chunks/chunks/arrow-right.js-LJU5kIk7.js.map +1 -0
- package/build/server/chunks/chunks/auth-bootstrap.server.js-Bg-Qy-YX.js +99 -0
- package/build/server/chunks/chunks/auth-bootstrap.server.js-Bg-Qy-YX.js.map +1 -0
- package/build/server/chunks/chunks/badge.js-CgXvwTOI.js +50 -0
- package/build/server/chunks/chunks/badge.js-CgXvwTOI.js.map +1 -0
- package/build/server/chunks/chunks/bootHealth.server.js-C24EAEVt.js +58 -0
- package/build/server/chunks/chunks/bootHealth.server.js-C24EAEVt.js.map +1 -0
- package/build/server/chunks/chunks/building-2.js-ChOoxKg1.js +22 -0
- package/build/server/chunks/chunks/building-2.js-ChOoxKg1.js.map +1 -0
- package/build/server/chunks/chunks/button.js-CVECLY3c.js +73 -0
- package/build/server/chunks/chunks/button.js-CVECLY3c.js.map +1 -0
- package/build/server/chunks/chunks/card-content.js-BBwC7O_l.js +46 -0
- package/build/server/chunks/chunks/card-content.js-BBwC7O_l.js.map +1 -0
- package/build/server/chunks/chunks/card-description.js-C-msZNFd.js +26 -0
- package/build/server/chunks/chunks/card-description.js-C-msZNFd.js.map +1 -0
- package/build/server/chunks/chunks/card-title.js-DBoMbeGR.js +46 -0
- package/build/server/chunks/chunks/card-title.js-DBoMbeGR.js.map +1 -0
- package/build/server/chunks/chunks/check.js-B0_ZQpUu.js +11 -0
- package/build/server/chunks/chunks/check.js-B0_ZQpUu.js.map +1 -0
- package/build/server/chunks/chunks/chevron-down.js-CmcavDoI.js +11 -0
- package/build/server/chunks/chunks/chevron-down.js-CmcavDoI.js.map +1 -0
- package/build/server/chunks/chunks/chevron-right.js-DQ3uyAih.js +11 -0
- package/build/server/chunks/chunks/chevron-right.js-DQ3uyAih.js.map +1 -0
- package/build/server/chunks/chunks/chevron-up.js-n3WtKX80.js +11 -0
- package/build/server/chunks/chunks/chevron-up.js-n3WtKX80.js.map +1 -0
- package/build/server/chunks/chunks/circle-alert.js-DD_UO_K-.js +18 -0
- package/build/server/chunks/chunks/circle-alert.js-DD_UO_K-.js.map +1 -0
- package/build/server/chunks/chunks/circle.js-CO4kLXgL.js +11 -0
- package/build/server/chunks/chunks/circle.js-CO4kLXgL.js.map +1 -0
- package/build/server/chunks/chunks/client.js-bTgrO0bQ.js +35 -0
- package/build/server/chunks/chunks/client.js-bTgrO0bQ.js.map +1 -0
- package/build/server/chunks/chunks/computeLimits.js-CVHW4MyF.js +41 -0
- package/build/server/chunks/chunks/computeLimits.js-CVHW4MyF.js.map +1 -0
- package/build/server/chunks/chunks/context.js-CYsGbpHa.js +141 -0
- package/build/server/chunks/chunks/context.js-CYsGbpHa.js.map +1 -0
- package/build/server/chunks/chunks/copy.js-BZ9Eb-de.js +29 -0
- package/build/server/chunks/chunks/copy.js-BZ9Eb-de.js.map +1 -0
- package/build/server/chunks/chunks/create-id.js-9t6eRojp.js +653 -0
- package/build/server/chunks/chunks/create-id.js-9t6eRojp.js.map +1 -0
- package/build/server/chunks/chunks/dialog-description.js-zb8Jbu56.js +523 -0
- package/build/server/chunks/chunks/dialog-description.js-zb8Jbu56.js.map +1 -0
- package/build/server/chunks/chunks/dialog-footer.js-XGXy57lH.js +62 -0
- package/build/server/chunks/chunks/dialog-footer.js-XGXy57lH.js.map +1 -0
- package/build/server/chunks/chunks/environment.js-Bf8x1V_n.js +16 -0
- package/build/server/chunks/chunks/environment.js-Bf8x1V_n.js.map +1 -0
- package/build/server/chunks/chunks/events.js-CzuTO9ni.js +119 -0
- package/build/server/chunks/chunks/events.js-CzuTO9ni.js.map +1 -0
- package/build/server/chunks/chunks/exports.js-BZBK1HC9.js +161 -0
- package/build/server/chunks/chunks/exports.js-BZBK1HC9.js.map +1 -0
- package/build/server/chunks/chunks/folder-kanban.js-SUoCTnEV.js +21 -0
- package/build/server/chunks/chunks/folder-kanban.js-SUoCTnEV.js.map +1 -0
- package/build/server/chunks/chunks/folder-open.js-YXKMuxsv.js +18 -0
- package/build/server/chunks/chunks/folder-open.js-YXKMuxsv.js.map +1 -0
- package/build/server/chunks/chunks/folders.js-B8ZM5-FI.js +24 -0
- package/build/server/chunks/chunks/folders.js-B8ZM5-FI.js.map +1 -0
- package/build/server/chunks/chunks/footerContext.svelte.js-BJXLI-80.js +531 -0
- package/build/server/chunks/chunks/footerContext.svelte.js-BJXLI-80.js.map +1 -0
- package/build/server/chunks/chunks/html.js-FW6Ia4bL.js +8 -0
- package/build/server/chunks/chunks/html.js-FW6Ia4bL.js.map +1 -0
- package/build/server/chunks/chunks/index-server.js-DMc-UvjC.js +19 -0
- package/build/server/chunks/chunks/index-server.js-DMc-UvjC.js.map +1 -0
- package/build/server/chunks/chunks/index-server2.js-BXzJu7TP.js +19 -0
- package/build/server/chunks/chunks/index-server2.js-BXzJu7TP.js.map +1 -0
- package/build/server/chunks/chunks/index.js-CC8M6P-h.js +58 -0
- package/build/server/chunks/chunks/index.js-CC8M6P-h.js.map +1 -0
- package/build/server/chunks/chunks/index2.js-H5fG4YhB.js +29 -0
- package/build/server/chunks/chunks/index2.js-H5fG4YhB.js.map +1 -0
- package/build/server/chunks/chunks/index3.js-DBDmmwF4.js +4246 -0
- package/build/server/chunks/chunks/index3.js-DBDmmwF4.js.map +1 -0
- package/build/server/chunks/chunks/index4.js-CMkITbZa.js +430 -0
- package/build/server/chunks/chunks/index4.js-CMkITbZa.js.map +1 -0
- package/build/server/chunks/chunks/index5.js-DdwpWZ5h.js +541 -0
- package/build/server/chunks/chunks/index5.js-DdwpWZ5h.js.map +1 -0
- package/build/server/chunks/chunks/input.js-C8ImG7ZW.js +53 -0
- package/build/server/chunks/chunks/input.js-C8ImG7ZW.js.map +1 -0
- package/build/server/chunks/chunks/internal.js-BByw60g1.js +120 -0
- package/build/server/chunks/chunks/internal.js-BByw60g1.js.map +1 -0
- package/build/server/chunks/chunks/label.js-D0TxVCOn.js +112 -0
- package/build/server/chunks/chunks/label.js-D0TxVCOn.js.map +1 -0
- package/build/server/chunks/chunks/link-2.js-BRQq4PWN.js +15 -0
- package/build/server/chunks/chunks/link-2.js-BRQq4PWN.js.map +1 -0
- package/build/server/chunks/chunks/mail.js-D30mkQVM.js +17 -0
- package/build/server/chunks/chunks/mail.js-D30mkQVM.js.map +1 -0
- package/build/server/chunks/chunks/minus.js-CnmoA7sn.js +20 -0
- package/build/server/chunks/chunks/minus.js-CnmoA7sn.js.map +1 -0
- package/build/server/chunks/chunks/noop.js-CKHdXpdB.js +270 -0
- package/build/server/chunks/chunks/noop.js-CKHdXpdB.js.map +1 -0
- package/build/server/chunks/chunks/package.js-sBN_SktS.js +29 -0
- package/build/server/chunks/chunks/package.js-sBN_SktS.js.map +1 -0
- package/build/server/chunks/chunks/permissions-compat.server.js-BRYePqvR.js +19 -0
- package/build/server/chunks/chunks/permissions-compat.server.js-BRYePqvR.js.map +1 -0
- package/build/server/chunks/chunks/permissions.server.js-D61RQTaQ.js +8 -0
- package/build/server/chunks/chunks/permissions.server.js-D61RQTaQ.js.map +1 -0
- package/build/server/chunks/chunks/plus.js-BGvQG7hu.js +11 -0
- package/build/server/chunks/chunks/plus.js-BGvQG7hu.js.map +1 -0
- package/build/server/chunks/chunks/providers.server.js-CvFPEaVE.js +4456 -0
- package/build/server/chunks/chunks/providers.server.js-CvFPEaVE.js.map +1 -0
- package/build/server/chunks/chunks/randomId.js-8gj3Lbuq.js +25 -0
- package/build/server/chunks/chunks/randomId.js-8gj3Lbuq.js.map +1 -0
- package/build/server/chunks/chunks/refresh-cw.js-BC37OK2I.js +22 -0
- package/build/server/chunks/chunks/refresh-cw.js-BC37OK2I.js.map +1 -0
- package/build/server/chunks/chunks/render-context.js-CK-yhMaE.js +557 -0
- package/build/server/chunks/chunks/render-context.js-CK-yhMaE.js.map +1 -0
- package/build/server/chunks/chunks/renderer.js-CtAppMtw.js +3221 -0
- package/build/server/chunks/chunks/renderer.js-CtAppMtw.js.map +1 -0
- package/build/server/chunks/chunks/resolve.server.js-C-Ts05L6.js +50 -0
- package/build/server/chunks/chunks/resolve.server.js-C-Ts05L6.js.map +1 -0
- package/build/server/chunks/chunks/root.js-BKNoOlLU.js +885 -0
- package/build/server/chunks/chunks/root.js-BKNoOlLU.js.map +1 -0
- package/build/server/chunks/chunks/rotate-ccw.js--PR10lv5.js +17 -0
- package/build/server/chunks/chunks/rotate-ccw.js--PR10lv5.js.map +1 -0
- package/build/server/chunks/chunks/scroll-lock.js-BzUpWsKI.js +2854 -0
- package/build/server/chunks/chunks/scroll-lock.js-BzUpWsKI.js.map +1 -0
- package/build/server/chunks/chunks/scroll-text.js-mXcme1dX.js +21 -0
- package/build/server/chunks/chunks/scroll-text.js-mXcme1dX.js.map +1 -0
- package/build/server/chunks/chunks/server.js-CpwP8aJK.js +36 -0
- package/build/server/chunks/chunks/server.js-CpwP8aJK.js.map +1 -0
- package/build/server/chunks/chunks/settings.js-C09mzN4E.js +19 -0
- package/build/server/chunks/chunks/settings.js-C09mzN4E.js.map +1 -0
- package/build/server/chunks/chunks/shared-server.js-DaWdgxVh.js +11 -0
- package/build/server/chunks/chunks/shared-server.js-DaWdgxVh.js.map +1 -0
- package/build/server/chunks/chunks/shield-check.js-BCYqkNAs.js +19 -0
- package/build/server/chunks/chunks/shield-check.js-BCYqkNAs.js.map +1 -0
- package/build/server/chunks/chunks/shield.js-67Pg7oxF.js +18 -0
- package/build/server/chunks/chunks/shield.js-67Pg7oxF.js.map +1 -0
- package/build/server/chunks/chunks/slug.js-BGuFQjqe.js +6 -0
- package/build/server/chunks/chunks/slug.js-BGuFQjqe.js.map +1 -0
- package/build/server/chunks/chunks/star.js-CyxiXt6T.js +18 -0
- package/build/server/chunks/chunks/star.js-CyxiXt6T.js.map +1 -0
- package/build/server/chunks/chunks/state.svelte.js-BzN3ufd1.js +14 -0
- package/build/server/chunks/chunks/state.svelte.js-BzN3ufd1.js.map +1 -0
- package/build/server/chunks/chunks/stores.js-BKtsn2DA.js +33 -0
- package/build/server/chunks/chunks/stores.js-BKtsn2DA.js.map +1 -0
- package/build/server/chunks/chunks/textarea.js-B3dpDQ4Q.js +559 -0
- package/build/server/chunks/chunks/textarea.js-B3dpDQ4Q.js.map +1 -0
- package/build/server/chunks/chunks/toast-state.svelte.js-C9NN-MAF.js +185 -0
- package/build/server/chunks/chunks/toast-state.svelte.js-C9NN-MAF.js.map +1 -0
- package/build/server/chunks/chunks/token.server.js-q3fv9Fqo.js +22 -0
- package/build/server/chunks/chunks/token.server.js-q3fv9Fqo.js.map +1 -0
- package/build/server/chunks/chunks/token2.server.js-Cqw1dJj-.js +25 -0
- package/build/server/chunks/chunks/token2.server.js-Cqw1dJj-.js.map +1 -0
- package/build/server/chunks/chunks/trash-2.js-C-Q0RvSu.js +17 -0
- package/build/server/chunks/chunks/trash-2.js-C-Q0RvSu.js.map +1 -0
- package/build/server/chunks/chunks/triangle-alert.js-kqLiA6_u.js +20 -0
- package/build/server/chunks/chunks/triangle-alert.js-kqLiA6_u.js.map +1 -0
- package/build/server/chunks/chunks/types.js-DxzJoaA4.js +11 -0
- package/build/server/chunks/chunks/types.js-DxzJoaA4.js.map +1 -0
- package/build/server/chunks/chunks/types2.js-DdHhYSMF.js +4 -0
- package/build/server/chunks/chunks/types2.js-DdHhYSMF.js.map +1 -0
- package/build/server/chunks/chunks/updateCheck.server.js-DdReI2pF.js +93 -0
- package/build/server/chunks/chunks/updateCheck.server.js-DdReI2pF.js.map +1 -0
- package/build/server/chunks/chunks/user-plus.js-jjY5EyEB.js +16 -0
- package/build/server/chunks/chunks/user-plus.js-jjY5EyEB.js.map +1 -0
- package/build/server/chunks/chunks/users.js-UnXuN2He.js +16 -0
- package/build/server/chunks/chunks/users.js-UnXuN2He.js.map +1 -0
- package/build/server/chunks/chunks/utils.js-B8oGSXiQ.js +1065 -0
- package/build/server/chunks/chunks/utils.js-B8oGSXiQ.js.map +1 -0
- package/build/server/chunks/chunks/utils2.js-DGYJFmnf.js +39 -0
- package/build/server/chunks/chunks/utils2.js-DGYJFmnf.js.map +1 -0
- package/build/server/chunks/chunks/utils3.js-DnU5kMfK.js +80 -0
- package/build/server/chunks/chunks/utils3.js-DnU5kMfK.js.map +1 -0
- package/build/server/chunks/chunks/utils4.js-CzzZn2eq.js +50 -0
- package/build/server/chunks/chunks/utils4.js-CzzZn2eq.js.map +1 -0
- package/build/server/chunks/chunks/x.js-CNDk9seO.js +14 -0
- package/build/server/chunks/chunks/x.js-CNDk9seO.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/compute/_server.ts.js-BgLRpUtK.js +99 -0
- package/build/server/chunks/entries/endpoints/admin/api/compute/_server.ts.js-BgLRpUtK.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/compute/actions/_server.ts.js-D5dm9VRE.js +47 -0
- package/build/server/chunks/entries/endpoints/admin/api/compute/actions/_server.ts.js-D5dm9VRE.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/compute/status/_server.ts.js-DH93ywqu.js +74 -0
- package/build/server/chunks/entries/endpoints/admin/api/compute/status/_server.ts.js-DH93ywqu.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_id_/_server.ts.js-34QzYRnZ.js +50 -0
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_id_/_server.ts.js-34QzYRnZ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_server.ts.js-DUYn5akM.js +60 -0
- package/build/server/chunks/entries/endpoints/admin/api/orgs/_server.ts.js-DUYn5akM.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/_server.ts.js-CSz_2jk0.js +77 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/_server.ts.js-CSz_2jk0.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/_grantId_/_server.ts.js-LYhsZcY-.js +31 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/_grantId_/_server.ts.js-LYhsZcY-.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/_server.ts.js-C4K7fnEv.js +81 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_id_/grants/_server.ts.js-C4K7fnEv.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_server.ts.js-CUPY6YtC.js +118 -0
- package/build/server/chunks/entries/endpoints/admin/api/projects/_server.ts.js-CUPY6YtC.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/system/health/_server.ts.js-DRad-P2w.js +162 -0
- package/build/server/chunks/entries/endpoints/admin/api/system/health/_server.ts.js-DRad-P2w.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/system/update/_server.ts.js-B8GIFRxz.js +412 -0
- package/build/server/chunks/entries/endpoints/admin/api/system/update/_server.ts.js-B8GIFRxz.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/_server.ts.js-D0CEHD1q.js +106 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/_server.ts.js-D0CEHD1q.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/disable/_server.ts.js-CcyFddp3.js +40 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_id_/disable/_server.ts.js-CcyFddp3.js.map +1 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_server.ts.js-CH64KfJa.js +114 -0
- package/build/server/chunks/entries/endpoints/admin/api/users/_server.ts.js-CH64KfJa.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/compute/_server.ts.js-DDqEYPNl.js +548 -0
- package/build/server/chunks/entries/endpoints/api/compute/_server.ts.js-DDqEYPNl.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/compute/schema/_server.ts.js-CRdaMbr5.js +65 -0
- package/build/server/chunks/entries/endpoints/api/compute/schema/_server.ts.js-CRdaMbr5.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/_server.ts.js-CcVYY8qB.js +93 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/_server.ts.js-CcVYY8qB.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/_filename_/_server.ts.js-Dty9JTwS.js +41 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/_filename_/_server.ts.js-Dty9JTwS.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/_server.ts.js-B5Ff8JLF.js +45 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/image/_server.ts.js-B5Ff8JLF.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/publish/_server.ts.js-BsxirCwS.js +37 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/publish/_server.ts.js-BsxirCwS.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/_linkId_/_server.ts.js-DTHTIL25.js +44 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/_linkId_/_server.ts.js-DTHTIL25.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/_server.ts.js-BSk-XMi6.js +84 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/share-links/_server.ts.js-BSk-XMi6.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/_server.ts.js-DHaix4jV.js +44 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/_server.ts.js-DHaix4jV.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/_versionId_/_server.ts.js-DgsqUpvy.js +33 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_guid_/versions/_versionId_/_server.ts.js-DgsqUpvy.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_server.ts.js-CSlXv8pl.js +113 -0
- package/build/server/chunks/entries/endpoints/api/definitions/_server.ts.js-CSlXv8pl.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/files/_...path_/_server.ts.js-BNV_mEcx.js +51 -0
- package/build/server/chunks/entries/endpoints/api/files/_...path_/_server.ts.js-BNV_mEcx.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js---TaqOG4.js +39 -0
- package/build/server/chunks/entries/endpoints/api/health/_server.ts.js---TaqOG4.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/invites/_id_/_server.ts.js-D8PLQyfl.js +43 -0
- package/build/server/chunks/entries/endpoints/api/invites/_id_/_server.ts.js-D8PLQyfl.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/invites/_server.ts.js-bw5-SMCA.js +72 -0
- package/build/server/chunks/entries/endpoints/api/invites/_server.ts.js-bw5-SMCA.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/me/starred/_guid_/_server.ts.js-xb3Bmd1T.js +40 -0
- package/build/server/chunks/entries/endpoints/api/me/starred/_guid_/_server.ts.js-xb3Bmd1T.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/org/compute/_server.ts.js-Md2vW_JR.js +120 -0
- package/build/server/chunks/entries/endpoints/api/org/compute/_server.ts.js-Md2vW_JR.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/orgs/_orgId_/members/_userId_/_server.ts.js-BnDxcUMX.js +86 -0
- package/build/server/chunks/entries/endpoints/api/orgs/_orgId_/members/_userId_/_server.ts.js-BnDxcUMX.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/_server.ts.js-BDBuktWA.js +87 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/_server.ts.js-BDBuktWA.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/_server.ts.js-C6jztoDj.js +63 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/_server.ts.js-C6jztoDj.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/_userId_/_server.ts.js-bnRRtqNM.js +77 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/members/_userId_/_server.ts.js-bnRRtqNM.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/reclaim/_server.ts.js-CwPJVSlh.js +40 -0
- package/build/server/chunks/entries/endpoints/api/projects/_id_/reclaim/_server.ts.js-CwPJVSlh.js.map +1 -0
- package/build/server/chunks/entries/endpoints/api/projects/_server.ts.js-DFtwR98t.js +96 -0
- package/build/server/chunks/entries/endpoints/api/projects/_server.ts.js-DFtwR98t.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-RrX9l-Lx.js +35 -0
- package/build/server/chunks/entries/endpoints/auth/email/callback/_server.ts.js-RrX9l-Lx.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-BD35FhKQ.js +36 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/callback/_server.ts.js-BD35FhKQ.js.map +1 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/start/_server.ts.js-4f91Kqiq.js +43 -0
- package/build/server/chunks/entries/endpoints/auth/supabase/start/_server.ts.js-4f91Kqiq.js.map +1 -0
- package/build/server/chunks/entries/hooks.server.js-COXVYevB.js +226 -0
- package/build/server/chunks/entries/hooks.server.js-COXVYevB.js.map +1 -0
- package/build/server/chunks/entries/pages/_error.svelte.js-nPoIpi12.js +34 -0
- package/build/server/chunks/entries/pages/_error.svelte.js-nPoIpi12.js.map +1 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-GUqRaAWY.js +38 -0
- package/build/server/chunks/entries/pages/_layout.server.ts.js-GUqRaAWY.js.map +1 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-6bnnv5nP.js +796 -0
- package/build/server/chunks/entries/pages/_layout.svelte.js-6bnnv5nP.js.map +1 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-sIx1i2NO.js +11 -0
- package/build/server/chunks/entries/pages/_page.server.ts.js-sIx1i2NO.js.map +1 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DGriO6RK.js +77 -0
- package/build/server/chunks/entries/pages/_page.svelte.js-DGriO6RK.js.map +1 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.server.ts.js-fXauaTHa.js +114 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.server.ts.js-fXauaTHa.js.map +1 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.svelte.js-jWmddQum.js +151 -0
- package/build/server/chunks/entries/pages/accept-invite/_page.svelte.js-jWmddQum.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_error.svelte.js-_r5town6.js +32 -0
- package/build/server/chunks/entries/pages/admin/_error.svelte.js-_r5town6.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_layout.server.ts.js-C0CrUKMc.js +23 -0
- package/build/server/chunks/entries/pages/admin/_layout.server.ts.js-C0CrUKMc.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-m5w7AtPm.js +113 -0
- package/build/server/chunks/entries/pages/admin/_layout.svelte.js-m5w7AtPm.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-CrOnejSx.js +32 -0
- package/build/server/chunks/entries/pages/admin/_page.server.ts.js-CrOnejSx.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-Cazj7gb_.js +173 -0
- package/build/server/chunks/entries/pages/admin/_page.svelte.js-Cazj7gb_.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-CmQyI84L.js +202 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.server.ts.js-CmQyI84L.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-DKnhcr0i.js +454 -0
- package/build/server/chunks/entries/pages/admin/audit/_page.svelte.js-DKnhcr0i.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.server.ts.js-DbdS__5V.js +40 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.server.ts.js-DbdS__5V.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.svelte.js-Dua9PRdO.js +631 -0
- package/build/server/chunks/entries/pages/admin/compute/_page.svelte.js-Dua9PRdO.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/organizations/_page.server.ts.js-B5gIXJYU.js +36 -0
- package/build/server/chunks/entries/pages/admin/organizations/_page.server.ts.js-B5gIXJYU.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/organizations/_page.svelte.js-CLO3E_AC.js +84 -0
- package/build/server/chunks/entries/pages/admin/organizations/_page.svelte.js-CLO3E_AC.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.server.ts.js-DZo022zC.js +84 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.server.ts.js-DZo022zC.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.svelte.js-C5OQnj7K.js +600 -0
- package/build/server/chunks/entries/pages/admin/projects/_id_/_page.svelte.js-C5OQnj7K.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.server.ts.js-DMCzmhaO.js +41 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.server.ts.js-DMCzmhaO.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.svelte.js-DcUCNQe2.js +281 -0
- package/build/server/chunks/entries/pages/admin/projects/_page.svelte.js-DcUCNQe2.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/system/_page.server.ts.js-DZJF89cX.js +72 -0
- package/build/server/chunks/entries/pages/admin/system/_page.server.ts.js-DZJF89cX.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-D40qz7h1.js +1204 -0
- package/build/server/chunks/entries/pages/admin/system/_page.svelte.js-D40qz7h1.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/users/_page.server.ts.js-CoesHwNn.js +65 -0
- package/build/server/chunks/entries/pages/admin/users/_page.server.ts.js-CoesHwNn.js.map +1 -0
- package/build/server/chunks/entries/pages/admin/users/_page.svelte.js-B8lliTJb.js +719 -0
- package/build/server/chunks/entries/pages/admin/users/_page.svelte.js-B8lliTJb.js.map +1 -0
- package/build/server/chunks/entries/pages/auth/email/sent/_page.svelte.js-CdQ-MZg-.js +61 -0
- package/build/server/chunks/entries/pages/auth/email/sent/_page.svelte.js-CdQ-MZg-.js.map +1 -0
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-CytdSW2U.js +57 -0
- package/build/server/chunks/entries/pages/auth/email/start/_page.server.ts.js-CytdSW2U.js.map +1 -0
- package/build/server/chunks/entries/pages/auth/email/start/_page.svelte.js-CNzlEpIl.js +14 -0
- package/build/server/chunks/entries/pages/auth/email/start/_page.svelte.js-CNzlEpIl.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.server.ts.js-Bg8aqgge.js +199 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.server.ts.js-Bg8aqgge.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.svelte.js-64m55aas.js +11872 -0
- package/build/server/chunks/entries/pages/library/_guid_/_page.svelte.js-64m55aas.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_layout.svelte.js-CyAPRqZR.js +10 -0
- package/build/server/chunks/entries/pages/library/_layout.svelte.js-CyAPRqZR.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_page.server.ts.js-D4HeAIm2.js +78 -0
- package/build/server/chunks/entries/pages/library/_page.server.ts.js-D4HeAIm2.js.map +1 -0
- package/build/server/chunks/entries/pages/library/_page.svelte.js-DCyL3B8c.js +338 -0
- package/build/server/chunks/entries/pages/library/_page.svelte.js-DCyL3B8c.js.map +1 -0
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-F5J46dSA.js +66 -0
- package/build/server/chunks/entries/pages/login/_page.server.ts.js-F5J46dSA.js.map +1 -0
- package/build/server/chunks/entries/pages/login/_page.svelte.js-FnURbQyG.js +279 -0
- package/build/server/chunks/entries/pages/login/_page.svelte.js-FnURbQyG.js.map +1 -0
- package/build/server/chunks/entries/pages/logout/_page.server.ts.js-DbaORCjB.js +17 -0
- package/build/server/chunks/entries/pages/logout/_page.server.ts.js-DbaORCjB.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_layout.server.ts.js-DKAa-WX1.js +23 -0
- package/build/server/chunks/entries/pages/projects/_layout.server.ts.js-DKAa-WX1.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_layout.svelte.js-CnS5vZg7.js +50 -0
- package/build/server/chunks/entries/pages/projects/_layout.svelte.js-CnS5vZg7.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BjETS8O4.js +118 -0
- package/build/server/chunks/entries/pages/projects/_page.server.ts.js-BjETS8O4.js.map +1 -0
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-CAqDXDn_.js +3863 -0
- package/build/server/chunks/entries/pages/projects/_page.svelte.js-CAqDXDn_.js.map +1 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CB9mBWz8.js +131 -0
- package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CB9mBWz8.js.map +1 -0
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-y5usnGpf.js +335 -0
- package/build/server/chunks/entries/pages/setup/_page.svelte.js-y5usnGpf.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_layout.server.ts.js-BS38iHNQ.js +23 -0
- package/build/server/chunks/entries/pages/team/_layout.server.ts.js-BS38iHNQ.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-DsH0R5CP.js +160 -0
- package/build/server/chunks/entries/pages/team/_layout.svelte.js-DsH0R5CP.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_page.server.ts.js-DaPu8CKH.js +34 -0
- package/build/server/chunks/entries/pages/team/_page.server.ts.js-DaPu8CKH.js.map +1 -0
- package/build/server/chunks/entries/pages/team/_page.svelte.js-DeDqtTCo.js +114 -0
- package/build/server/chunks/entries/pages/team/_page.svelte.js-DeDqtTCo.js.map +1 -0
- package/build/server/chunks/entries/pages/team/activity/_page.svelte.js-OkBkQEz1.js +120 -0
- package/build/server/chunks/entries/pages/team/activity/_page.svelte.js-OkBkQEz1.js.map +1 -0
- package/build/server/chunks/entries/pages/team/compute/_page.server.ts.js-Dzz9klWW.js +41 -0
- package/build/server/chunks/entries/pages/team/compute/_page.server.ts.js-Dzz9klWW.js.map +1 -0
- package/build/server/chunks/entries/pages/team/compute/_page.svelte.js-B5d4wWgk.js +614 -0
- package/build/server/chunks/entries/pages/team/compute/_page.svelte.js-B5d4wWgk.js.map +1 -0
- package/build/server/chunks/entries/pages/team/members/_page.server.ts.js-BXhljlWE.js +53 -0
- package/build/server/chunks/entries/pages/team/members/_page.server.ts.js-BXhljlWE.js.map +1 -0
- package/build/server/chunks/entries/pages/team/members/_page.svelte.js-Dy7GTJgI.js +562 -0
- package/build/server/chunks/entries/pages/team/members/_page.svelte.js-Dy7GTJgI.js.map +1 -0
- package/build/server/chunks/entries/pages/team/projects/_page.server.ts.js-AfkRGQXS.js +39 -0
- package/build/server/chunks/entries/pages/team/projects/_page.server.ts.js-AfkRGQXS.js.map +1 -0
- package/build/server/chunks/entries/pages/team/projects/_page.svelte.js-h4NHpBKl.js +429 -0
- package/build/server/chunks/entries/pages/team/projects/_page.svelte.js-h4NHpBKl.js.map +1 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.server.ts.js--s1Cxd4d.js +41 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.server.ts.js--s1Cxd4d.js.map +1 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.svelte.js-GCrOAeFB.js +255 -0
- package/build/server/chunks/entries/pages/team/reclaim/_page.svelte.js-GCrOAeFB.js.map +1 -0
- package/build/server/chunks/entries/pages/team/settings/_page.server.ts.js-D8NAShTy.js +26 -0
- package/build/server/chunks/entries/pages/team/settings/_page.server.ts.js-D8NAShTy.js.map +1 -0
- package/build/server/chunks/entries/pages/team/settings/_page.svelte.js-nfp-LWz3.js +302 -0
- package/build/server/chunks/entries/pages/team/settings/_page.svelte.js-nfp-LWz3.js.map +1 -0
- package/build/server/chunks/entries/pages/team/shares/_page.server.ts.js-CcFjlszF.js +17 -0
- package/build/server/chunks/entries/pages/team/shares/_page.server.ts.js-CcFjlszF.js.map +1 -0
- package/build/server/chunks/entries/pages/team/shares/_page.svelte.js-DKAGlDR2.js +120 -0
- package/build/server/chunks/entries/pages/team/shares/_page.svelte.js-DKAGlDR2.js.map +1 -0
- package/build/server/chunks/handler-DT0uWjBp.js +1206 -0
- package/build/server/chunks/handler-DT0uWjBp.js.map +1 -0
- package/build/server/chunks/index.js-BZyh93vy.js +4194 -0
- package/build/server/chunks/index.js-BZyh93vy.js.map +1 -0
- package/build/server/chunks/manifest.js-oeb-oFS7.js +527 -0
- package/build/server/chunks/manifest.js-oeb-oFS7.js.map +1 -0
- package/build/server/chunks/nodes/0.js-PcSktsRm.js +22 -0
- package/build/server/chunks/nodes/0.js-PcSktsRm.js.map +1 -0
- package/build/server/chunks/nodes/1.js-C4j4LF5U.js +9 -0
- package/build/server/chunks/nodes/1.js-C4j4LF5U.js.map +1 -0
- package/build/server/chunks/nodes/10.js-lAWyY09k.js +27 -0
- package/build/server/chunks/nodes/10.js-lAWyY09k.js.map +1 -0
- package/build/server/chunks/nodes/11.js-DIDcfss_.js +27 -0
- package/build/server/chunks/nodes/11.js-DIDcfss_.js.map +1 -0
- package/build/server/chunks/nodes/12.js-DKvWtkL1.js +23 -0
- package/build/server/chunks/nodes/12.js-DKvWtkL1.js.map +1 -0
- package/build/server/chunks/nodes/13.js-Bb1uKJJo.js +23 -0
- package/build/server/chunks/nodes/13.js-Bb1uKJJo.js.map +1 -0
- package/build/server/chunks/nodes/14.js-Ckt0RI_n.js +23 -0
- package/build/server/chunks/nodes/14.js-Ckt0RI_n.js.map +1 -0
- package/build/server/chunks/nodes/15.js-Bg9xk8tu.js +32 -0
- package/build/server/chunks/nodes/15.js-Bg9xk8tu.js.map +1 -0
- package/build/server/chunks/nodes/16.js-_VFD2biW.js +28 -0
- package/build/server/chunks/nodes/16.js-_VFD2biW.js.map +1 -0
- package/build/server/chunks/nodes/17.js-y8faUJNl.js +9 -0
- package/build/server/chunks/nodes/17.js-y8faUJNl.js.map +1 -0
- package/build/server/chunks/nodes/18.js-D85x42Pd.js +24 -0
- package/build/server/chunks/nodes/18.js-D85x42Pd.js.map +1 -0
- package/build/server/chunks/nodes/19.js-Cx7dqGQJ.js +23 -0
- package/build/server/chunks/nodes/19.js-Cx7dqGQJ.js.map +1 -0
- package/build/server/chunks/nodes/2.js-BNUMrs8p.js +27 -0
- package/build/server/chunks/nodes/2.js-BNUMrs8p.js.map +1 -0
- package/build/server/chunks/nodes/20.js-C5MMYBGm.js +31 -0
- package/build/server/chunks/nodes/20.js-C5MMYBGm.js.map +1 -0
- package/build/server/chunks/nodes/21.js-BvwwMOm6.js +24 -0
- package/build/server/chunks/nodes/21.js-BvwwMOm6.js.map +1 -0
- package/build/server/chunks/nodes/22.js-d354Ho4z.js +13 -0
- package/build/server/chunks/nodes/22.js-d354Ho4z.js.map +1 -0
- package/build/server/chunks/nodes/23.js-C9nNF0n1.js +27 -0
- package/build/server/chunks/nodes/23.js-C9nNF0n1.js.map +1 -0
- package/build/server/chunks/nodes/24.js-DRVVl7lb.js +26 -0
- package/build/server/chunks/nodes/24.js-DRVVl7lb.js.map +1 -0
- package/build/server/chunks/nodes/25.js-D7N3t-6a.js +23 -0
- package/build/server/chunks/nodes/25.js-D7N3t-6a.js.map +1 -0
- package/build/server/chunks/nodes/26.js-CmpMDTTa.js +9 -0
- package/build/server/chunks/nodes/26.js-CmpMDTTa.js.map +1 -0
- package/build/server/chunks/nodes/27.js-BVu9mjGp.js +24 -0
- package/build/server/chunks/nodes/27.js-BVu9mjGp.js.map +1 -0
- package/build/server/chunks/nodes/28.js-AVbJKhtc.js +23 -0
- package/build/server/chunks/nodes/28.js-AVbJKhtc.js.map +1 -0
- package/build/server/chunks/nodes/29.js-Cg6tjoPr.js +23 -0
- package/build/server/chunks/nodes/29.js-Cg6tjoPr.js.map +1 -0
- package/build/server/chunks/nodes/3.js-DfTiQlVN.js +9 -0
- package/build/server/chunks/nodes/3.js-DfTiQlVN.js.map +1 -0
- package/build/server/chunks/nodes/30.js-CdUOYVWA.js +23 -0
- package/build/server/chunks/nodes/30.js-CdUOYVWA.js.map +1 -0
- package/build/server/chunks/nodes/31.js-2-KePkFt.js +23 -0
- package/build/server/chunks/nodes/31.js-2-KePkFt.js.map +1 -0
- package/build/server/chunks/nodes/32.js-GzMFQ-NT.js +23 -0
- package/build/server/chunks/nodes/32.js-GzMFQ-NT.js.map +1 -0
- package/build/server/chunks/nodes/4.js-CFO38bQt.js +9 -0
- package/build/server/chunks/nodes/4.js-CFO38bQt.js.map +1 -0
- package/build/server/chunks/nodes/5.js-FWzuX_CU.js +15 -0
- package/build/server/chunks/nodes/5.js-FWzuX_CU.js.map +1 -0
- package/build/server/chunks/nodes/6.js-CFy94wGq.js +23 -0
- package/build/server/chunks/nodes/6.js-CFy94wGq.js.map +1 -0
- package/build/server/chunks/nodes/7.js-DKgV4vrA.js +12 -0
- package/build/server/chunks/nodes/7.js-DKgV4vrA.js.map +1 -0
- package/build/server/chunks/nodes/8.js-DXx6KUgO.js +25 -0
- package/build/server/chunks/nodes/8.js-DXx6KUgO.js.map +1 -0
- package/build/server/chunks/nodes/9.js-C6jSzHQB.js +23 -0
- package/build/server/chunks/nodes/9.js-C6jSzHQB.js.map +1 -0
- package/build/shims.js +2 -30
- package/build/shims.js.map +1 -0
- package/package.json +4 -4
- package/templates/.env.example +39 -6
- package/build/client/_app/immutable/assets/0.fkooa_RK.css +0 -1
- package/build/client/_app/immutable/assets/0.fkooa_RK.css.br +0 -0
- package/build/client/_app/immutable/assets/0.fkooa_RK.css.gz +0 -0
- package/build/client/_app/immutable/chunks/13pdkq-i.js +0 -1
- package/build/client/_app/immutable/chunks/13pdkq-i.js.br +0 -0
- package/build/client/_app/immutable/chunks/13pdkq-i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/2BnY_oab.js +0 -1
- package/build/client/_app/immutable/chunks/2BnY_oab.js.br +0 -0
- package/build/client/_app/immutable/chunks/2BnY_oab.js.gz +0 -0
- package/build/client/_app/immutable/chunks/4WJ3PVN5.js +0 -1
- package/build/client/_app/immutable/chunks/4WJ3PVN5.js.br +0 -0
- package/build/client/_app/immutable/chunks/4WJ3PVN5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5h7wo9xN.js +0 -1
- package/build/client/_app/immutable/chunks/5h7wo9xN.js.br +0 -0
- package/build/client/_app/immutable/chunks/5h7wo9xN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/6CzuHfQM.js +0 -2
- package/build/client/_app/immutable/chunks/6CzuHfQM.js.br +0 -0
- package/build/client/_app/immutable/chunks/6CzuHfQM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/9DES--UJ.js +0 -1
- package/build/client/_app/immutable/chunks/9DES--UJ.js.br +0 -0
- package/build/client/_app/immutable/chunks/9DES--UJ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3KcsPFR.js +0 -1
- package/build/client/_app/immutable/chunks/B3KcsPFR.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3KcsPFR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B48NJnzU.js +0 -1
- package/build/client/_app/immutable/chunks/B48NJnzU.js.br +0 -0
- package/build/client/_app/immutable/chunks/B48NJnzU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5HD-6Ib.js +0 -1
- package/build/client/_app/immutable/chunks/B5HD-6Ib.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5HD-6Ib.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BH9oGrlA.js +0 -1
- package/build/client/_app/immutable/chunks/BH9oGrlA.js.br +0 -0
- package/build/client/_app/immutable/chunks/BH9oGrlA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BHzbkLpq.js +0 -1
- package/build/client/_app/immutable/chunks/BHzbkLpq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHzbkLpq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BJTJCSLB.js +0 -1
- package/build/client/_app/immutable/chunks/BJTJCSLB.js.br +0 -0
- package/build/client/_app/immutable/chunks/BJTJCSLB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BKZ_D8Qd.js +0 -1
- package/build/client/_app/immutable/chunks/BKZ_D8Qd.js.br +0 -0
- package/build/client/_app/immutable/chunks/BKZ_D8Qd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BMNUAT2D.js +0 -1
- package/build/client/_app/immutable/chunks/BMNUAT2D.js.br +0 -0
- package/build/client/_app/immutable/chunks/BMNUAT2D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BNs1__IY.js +0 -1
- package/build/client/_app/immutable/chunks/BNs1__IY.js.br +0 -0
- package/build/client/_app/immutable/chunks/BNs1__IY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTm-dDt9.js +0 -5
- package/build/client/_app/immutable/chunks/BTm-dDt9.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTm-dDt9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BUqheMDA.js +0 -1
- package/build/client/_app/immutable/chunks/BUqheMDA.js.br +0 -0
- package/build/client/_app/immutable/chunks/BUqheMDA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYBRW46Q.js +0 -1
- package/build/client/_app/immutable/chunks/BYBRW46Q.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYBRW46Q.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ba74WbdD.js +0 -1
- package/build/client/_app/immutable/chunks/Ba74WbdD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ba74WbdD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bex2dy3F.js +0 -1
- package/build/client/_app/immutable/chunks/Bex2dy3F.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bex2dy3F.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfHBnYuG.js +0 -1
- package/build/client/_app/immutable/chunks/BfHBnYuG.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfHBnYuG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfWZCn9D.js +0 -2
- package/build/client/_app/immutable/chunks/BfWZCn9D.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfWZCn9D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BfraRswf.js +0 -1
- package/build/client/_app/immutable/chunks/BfraRswf.js.br +0 -0
- package/build/client/_app/immutable/chunks/BfraRswf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BiG82jCv.js +0 -1
- package/build/client/_app/immutable/chunks/BiG82jCv.js.br +0 -0
- package/build/client/_app/immutable/chunks/BiG82jCv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BjB88iwt.js +0 -1
- package/build/client/_app/immutable/chunks/BjB88iwt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BjB88iwt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnIDUuJL.js +0 -1
- package/build/client/_app/immutable/chunks/BnIDUuJL.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnIDUuJL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BnZOgasr.js +0 -1
- package/build/client/_app/immutable/chunks/BnZOgasr.js.br +0 -0
- package/build/client/_app/immutable/chunks/BnZOgasr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoelBenK.js +0 -1
- package/build/client/_app/immutable/chunks/BoelBenK.js.br +0 -0
- package/build/client/_app/immutable/chunks/BoelBenK.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BoqXamYe.js +0 -1
- package/build/client/_app/immutable/chunks/BoqXamYe.js.br +0 -0
- package/build/client/_app/immutable/chunks/BoqXamYe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BsZHa2Wi.js +0 -1
- package/build/client/_app/immutable/chunks/BsZHa2Wi.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsZHa2Wi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BuvUOrz-.js +0 -1
- package/build/client/_app/immutable/chunks/BuvUOrz-.js.br +0 -0
- package/build/client/_app/immutable/chunks/BuvUOrz-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C-j7zMFr.js +0 -1
- package/build/client/_app/immutable/chunks/C-j7zMFr.js.br +0 -0
- package/build/client/_app/immutable/chunks/C-j7zMFr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C33A5aSj.js +0 -1
- package/build/client/_app/immutable/chunks/C33A5aSj.js.br +0 -0
- package/build/client/_app/immutable/chunks/C33A5aSj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C46MGZre.js +0 -1
- package/build/client/_app/immutable/chunks/C46MGZre.js.br +0 -0
- package/build/client/_app/immutable/chunks/C46MGZre.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CBjt6cm5.js +0 -1
- package/build/client/_app/immutable/chunks/CBjt6cm5.js.br +0 -1
- package/build/client/_app/immutable/chunks/CBjt6cm5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CE8BcsFf.js +0 -1
- package/build/client/_app/immutable/chunks/CE8BcsFf.js.br +0 -0
- package/build/client/_app/immutable/chunks/CE8BcsFf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CJPg7PqR.js +0 -1
- package/build/client/_app/immutable/chunks/CJPg7PqR.js.br +0 -0
- package/build/client/_app/immutable/chunks/CJPg7PqR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CO55fzTt.js +0 -1
- package/build/client/_app/immutable/chunks/CO55fzTt.js.br +0 -0
- package/build/client/_app/immutable/chunks/CO55fzTt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COSBQK9i.js +0 -1
- package/build/client/_app/immutable/chunks/COSBQK9i.js.br +0 -0
- package/build/client/_app/immutable/chunks/COSBQK9i.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COWz2et1.js +0 -1
- package/build/client/_app/immutable/chunks/COWz2et1.js.br +0 -0
- package/build/client/_app/immutable/chunks/COWz2et1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQerFpzT.js +0 -1
- package/build/client/_app/immutable/chunks/CQerFpzT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQerFpzT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CQjJB6sZ.js +0 -1
- package/build/client/_app/immutable/chunks/CQjJB6sZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CQjJB6sZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cauzi832.js +0 -1
- package/build/client/_app/immutable/chunks/Cauzi832.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cauzi832.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CcBbOJ-v.js +0 -1
- package/build/client/_app/immutable/chunks/CcBbOJ-v.js.br +0 -2
- package/build/client/_app/immutable/chunks/CcBbOJ-v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ch5nD1rA.js +0 -1
- package/build/client/_app/immutable/chunks/Ch5nD1rA.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch5nD1rA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ckd6DpGW.js +0 -1
- package/build/client/_app/immutable/chunks/Ckd6DpGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ckd6DpGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cpd8PqU3.js +0 -1
- package/build/client/_app/immutable/chunks/Cpd8PqU3.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cpd8PqU3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CsdWDH4Y.js +0 -1
- package/build/client/_app/immutable/chunks/CsdWDH4Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/CsdWDH4Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CvUP44VI.js +0 -1
- package/build/client/_app/immutable/chunks/CvUP44VI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CvUP44VI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CwEiVMBL.js +0 -1
- package/build/client/_app/immutable/chunks/CwEiVMBL.js.br +0 -0
- package/build/client/_app/immutable/chunks/CwEiVMBL.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9MTzuwb.js +0 -1
- package/build/client/_app/immutable/chunks/D9MTzuwb.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9MTzuwb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9Y6MiT8.js +0 -9
- package/build/client/_app/immutable/chunks/D9Y6MiT8.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9Y6MiT8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DApsykQI.js +0 -1
- package/build/client/_app/immutable/chunks/DApsykQI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DApsykQI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DC8WqQE0.js +0 -1
- package/build/client/_app/immutable/chunks/DC8WqQE0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DC8WqQE0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCBLBrrW.js +0 -1
- package/build/client/_app/immutable/chunks/DCBLBrrW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCBLBrrW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DCgyaAAq.js +0 -1
- package/build/client/_app/immutable/chunks/DCgyaAAq.js.br +0 -0
- package/build/client/_app/immutable/chunks/DCgyaAAq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DEk358l3.js +0 -1
- package/build/client/_app/immutable/chunks/DEk358l3.js.br +0 -0
- package/build/client/_app/immutable/chunks/DEk358l3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFnVpznB.js +0 -1
- package/build/client/_app/immutable/chunks/DFnVpznB.js.br +0 -4
- package/build/client/_app/immutable/chunks/DFnVpznB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DH_OLMrQ.js +0 -1
- package/build/client/_app/immutable/chunks/DH_OLMrQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DH_OLMrQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRNG0pfi.js +0 -1
- package/build/client/_app/immutable/chunks/DRNG0pfi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRNG0pfi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DS1KfRtl.js +0 -1
- package/build/client/_app/immutable/chunks/DS1KfRtl.js.br +0 -0
- package/build/client/_app/immutable/chunks/DS1KfRtl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DU8tQv0c.js +0 -1
- package/build/client/_app/immutable/chunks/DU8tQv0c.js.br +0 -0
- package/build/client/_app/immutable/chunks/DU8tQv0c.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DUpVdSFf.js +0 -1
- package/build/client/_app/immutable/chunks/DUpVdSFf.js.br +0 -0
- package/build/client/_app/immutable/chunks/DUpVdSFf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Db5P7BwC.js +0 -64
- package/build/client/_app/immutable/chunks/Db5P7BwC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Db5P7BwC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfVTcmam.js +0 -1
- package/build/client/_app/immutable/chunks/DfVTcmam.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfVTcmam.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DfcDRMtE.js +0 -1
- package/build/client/_app/immutable/chunks/DfcDRMtE.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfcDRMtE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DkpwXYYZ.js +0 -1
- package/build/client/_app/immutable/chunks/DkpwXYYZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkpwXYYZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dw6fzgfW.js +0 -1
- package/build/client/_app/immutable/chunks/Dw6fzgfW.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dw6fzgfW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DzNzLgOO.js +0 -1
- package/build/client/_app/immutable/chunks/DzNzLgOO.js.br +0 -0
- package/build/client/_app/immutable/chunks/DzNzLgOO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/E7F5LllG.js +0 -1
- package/build/client/_app/immutable/chunks/E7F5LllG.js.br +0 -0
- package/build/client/_app/immutable/chunks/E7F5LllG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/FdBsYR_f.js +0 -1
- package/build/client/_app/immutable/chunks/FdBsYR_f.js.br +0 -0
- package/build/client/_app/immutable/chunks/FdBsYR_f.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KIV0kKdR.js +0 -1
- package/build/client/_app/immutable/chunks/KIV0kKdR.js.br +0 -0
- package/build/client/_app/immutable/chunks/KIV0kKdR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/NPsDidaV.js +0 -1
- package/build/client/_app/immutable/chunks/NPsDidaV.js.br +0 -0
- package/build/client/_app/immutable/chunks/NPsDidaV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OVtUuDzp.js +0 -1
- package/build/client/_app/immutable/chunks/OVtUuDzp.js.br +0 -0
- package/build/client/_app/immutable/chunks/OVtUuDzp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Qf_Lg02h.js +0 -1
- package/build/client/_app/immutable/chunks/Qf_Lg02h.js.br +0 -0
- package/build/client/_app/immutable/chunks/Qf_Lg02h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/RmXOMQTe.js +0 -1
- package/build/client/_app/immutable/chunks/RmXOMQTe.js.br +0 -0
- package/build/client/_app/immutable/chunks/RmXOMQTe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/T-Nslbso.js +0 -2
- package/build/client/_app/immutable/chunks/T-Nslbso.js.br +0 -0
- package/build/client/_app/immutable/chunks/T-Nslbso.js.gz +0 -0
- package/build/client/_app/immutable/chunks/X4d9Q9UP.js +0 -1
- package/build/client/_app/immutable/chunks/X4d9Q9UP.js.br +0 -0
- package/build/client/_app/immutable/chunks/X4d9Q9UP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/atM6maCg.js +0 -1
- package/build/client/_app/immutable/chunks/atM6maCg.js.br +0 -0
- package/build/client/_app/immutable/chunks/atM6maCg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jJihnyaB.js +0 -3
- package/build/client/_app/immutable/chunks/jJihnyaB.js.br +0 -0
- package/build/client/_app/immutable/chunks/jJihnyaB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/jO1WSR3P.js +0 -1
- package/build/client/_app/immutable/chunks/jO1WSR3P.js.br +0 -0
- package/build/client/_app/immutable/chunks/jO1WSR3P.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qxoHibue.js +0 -1
- package/build/client/_app/immutable/chunks/qxoHibue.js.br +0 -0
- package/build/client/_app/immutable/chunks/qxoHibue.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CUlU8Xgx.js +0 -2
- package/build/client/_app/immutable/entry/app.CUlU8Xgx.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CUlU8Xgx.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.yXH7NuOH.js +0 -1
- package/build/client/_app/immutable/entry/start.yXH7NuOH.js.br +0 -2
- package/build/client/_app/immutable/entry/start.yXH7NuOH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.B0UCbyvV.js +0 -1
- package/build/client/_app/immutable/nodes/0.B0UCbyvV.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B0UCbyvV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.ntriGXw3.js +0 -1
- package/build/client/_app/immutable/nodes/1.ntriGXw3.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.ntriGXw3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Ct49OwC1.js +0 -3
- package/build/client/_app/immutable/nodes/10.Ct49OwC1.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Ct49OwC1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.BBxGjNus.js +0 -4
- package/build/client/_app/immutable/nodes/11.BBxGjNus.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BBxGjNus.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BqHQ_pQ5.js +0 -1
- package/build/client/_app/immutable/nodes/12.BqHQ_pQ5.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BqHQ_pQ5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.BOOSKgNQ.js +0 -2
- package/build/client/_app/immutable/nodes/13.BOOSKgNQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BOOSKgNQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.st6sThI5.js +0 -2
- package/build/client/_app/immutable/nodes/14.st6sThI5.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.st6sThI5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.B2tLGWDu.js +0 -13
- package/build/client/_app/immutable/nodes/15.B2tLGWDu.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.B2tLGWDu.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.fAXfHZXp.js +0 -6
- package/build/client/_app/immutable/nodes/16.fAXfHZXp.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.fAXfHZXp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BL_btSTd.js +0 -2
- package/build/client/_app/immutable/nodes/17.BL_btSTd.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BL_btSTd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.Cl9SXwAF.js +0 -1
- package/build/client/_app/immutable/nodes/18.Cl9SXwAF.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.Cl9SXwAF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.D4mkSjY9.js +0 -2
- package/build/client/_app/immutable/nodes/19.D4mkSjY9.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.D4mkSjY9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CNkzjKpD.js +0 -1
- package/build/client/_app/immutable/nodes/2.CNkzjKpD.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CNkzjKpD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.93bCfNGI.js +0 -5021
- package/build/client/_app/immutable/nodes/20.93bCfNGI.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.93bCfNGI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.ClzCdrlw.js +0 -6
- package/build/client/_app/immutable/nodes/21.ClzCdrlw.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.ClzCdrlw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.DJerRiZ2.js +0 -16
- package/build/client/_app/immutable/nodes/23.DJerRiZ2.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DJerRiZ2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.DOHyLmBO.js +0 -6
- package/build/client/_app/immutable/nodes/24.DOHyLmBO.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DOHyLmBO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DQ1u0u88.js +0 -1
- package/build/client/_app/immutable/nodes/25.DQ1u0u88.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DQ1u0u88.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Ds_gf_O9.js +0 -3
- package/build/client/_app/immutable/nodes/26.Ds_gf_O9.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Ds_gf_O9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/27.CkzNBFns.js +0 -4
- package/build/client/_app/immutable/nodes/27.CkzNBFns.js.br +0 -0
- package/build/client/_app/immutable/nodes/27.CkzNBFns.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.BGNl-6WV.js +0 -4
- package/build/client/_app/immutable/nodes/28.BGNl-6WV.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.BGNl-6WV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/29.BF0JasWQ.js +0 -2
- package/build/client/_app/immutable/nodes/29.BF0JasWQ.js.br +0 -0
- package/build/client/_app/immutable/nodes/29.BF0JasWQ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BLNJLcvR.js +0 -1
- package/build/client/_app/immutable/nodes/3.BLNJLcvR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BLNJLcvR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/30.C33KvKLy.js +0 -2
- package/build/client/_app/immutable/nodes/30.C33KvKLy.js.br +0 -0
- package/build/client/_app/immutable/nodes/30.C33KvKLy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/31.CaWXI_qm.js +0 -2
- package/build/client/_app/immutable/nodes/31.CaWXI_qm.js.br +0 -0
- package/build/client/_app/immutable/nodes/31.CaWXI_qm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/32.Drmb2nxJ.js +0 -3
- package/build/client/_app/immutable/nodes/32.Drmb2nxJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/32.Drmb2nxJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CieI7_Lb.js +0 -1
- package/build/client/_app/immutable/nodes/4.CieI7_Lb.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CieI7_Lb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.DcViAFBY.js +0 -1
- package/build/client/_app/immutable/nodes/5.DcViAFBY.js.br +0 -1
- package/build/client/_app/immutable/nodes/5.DcViAFBY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.Jpw_unqM.js +0 -1
- package/build/client/_app/immutable/nodes/6.Jpw_unqM.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.Jpw_unqM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DI4lv1qr.js +0 -1
- package/build/client/_app/immutable/nodes/7.DI4lv1qr.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DI4lv1qr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BJeZ3Zka.js +0 -2
- package/build/client/_app/immutable/nodes/8.BJeZ3Zka.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BJeZ3Zka.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BS42pKml.js +0 -1
- package/build/client/_app/immutable/nodes/9.BS42pKml.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BS42pKml.js.gz +0 -0
- package/build/server/chunks/0-DhT7yxre.js +0 -55
- package/build/server/chunks/0-DhT7yxre.js.map +0 -1
- package/build/server/chunks/1-CCtIB9oC.js +0 -9
- package/build/server/chunks/1-CCtIB9oC.js.map +0 -1
- package/build/server/chunks/10-Cj20BodR.js +0 -222
- package/build/server/chunks/10-Cj20BodR.js.map +0 -1
- package/build/server/chunks/11-C-goGrGx.js +0 -59
- package/build/server/chunks/11-C-goGrGx.js.map +0 -1
- package/build/server/chunks/12-Bra8rAOu.js +0 -52
- package/build/server/chunks/12-Bra8rAOu.js.map +0 -1
- package/build/server/chunks/13-DN-4EHom.js +0 -57
- package/build/server/chunks/13-DN-4EHom.js.map +0 -1
- package/build/server/chunks/14-j22gtg6q.js +0 -100
- package/build/server/chunks/14-j22gtg6q.js.map +0 -1
- package/build/server/chunks/15-CJJTHKeq.js +0 -45
- package/build/server/chunks/15-CJJTHKeq.js.map +0 -1
- package/build/server/chunks/16-CPVRxJfK.js +0 -85
- package/build/server/chunks/16-CPVRxJfK.js.map +0 -1
- package/build/server/chunks/17-CEs6NSIj.js +0 -9
- package/build/server/chunks/17-CEs6NSIj.js.map +0 -1
- package/build/server/chunks/18-Lwe4TEuf.js +0 -74
- package/build/server/chunks/18-Lwe4TEuf.js.map +0 -1
- package/build/server/chunks/19-BK_uDFHq.js +0 -94
- package/build/server/chunks/19-BK_uDFHq.js.map +0 -1
- package/build/server/chunks/2-BBFUEdIk.js +0 -43
- package/build/server/chunks/2-BBFUEdIk.js.map +0 -1
- package/build/server/chunks/20-TgvBHCqT.js +0 -218
- package/build/server/chunks/20-TgvBHCqT.js.map +0 -1
- package/build/server/chunks/21-CpVgaOZP.js +0 -83
- package/build/server/chunks/21-CpVgaOZP.js.map +0 -1
- package/build/server/chunks/22-CsEswj1y.js +0 -23
- package/build/server/chunks/22-CsEswj1y.js.map +0 -1
- package/build/server/chunks/23-DpZ-VAmj.js +0 -137
- package/build/server/chunks/23-DpZ-VAmj.js.map +0 -1
- package/build/server/chunks/24-IG8oF3LR.js +0 -145
- package/build/server/chunks/24-IG8oF3LR.js.map +0 -1
- package/build/server/chunks/25-DL8VLuLg.js +0 -51
- package/build/server/chunks/25-DL8VLuLg.js.map +0 -1
- package/build/server/chunks/26-Dia3LwgX.js +0 -9
- package/build/server/chunks/26-Dia3LwgX.js.map +0 -1
- package/build/server/chunks/27-BNuVmBlC.js +0 -57
- package/build/server/chunks/27-BNuVmBlC.js.map +0 -1
- package/build/server/chunks/28-O2gMewvR.js +0 -69
- package/build/server/chunks/28-O2gMewvR.js.map +0 -1
- package/build/server/chunks/29-DeHI_lg6.js +0 -55
- package/build/server/chunks/29-DeHI_lg6.js.map +0 -1
- package/build/server/chunks/3-_z4ofaYa.js +0 -9
- package/build/server/chunks/3-_z4ofaYa.js.map +0 -1
- package/build/server/chunks/30-B8zrsGBW.js +0 -57
- package/build/server/chunks/30-B8zrsGBW.js.map +0 -1
- package/build/server/chunks/31-DJIq1bRM.js +0 -42
- package/build/server/chunks/31-DJIq1bRM.js.map +0 -1
- package/build/server/chunks/32-fvzIyQyk.js +0 -34
- package/build/server/chunks/32-fvzIyQyk.js.map +0 -1
- package/build/server/chunks/4-DJKd7IS0.js +0 -9
- package/build/server/chunks/4-DJKd7IS0.js.map +0 -1
- package/build/server/chunks/5-jUoewty6.js +0 -32
- package/build/server/chunks/5-jUoewty6.js.map +0 -1
- package/build/server/chunks/6-Da49O-RB.js +0 -40
- package/build/server/chunks/6-Da49O-RB.js.map +0 -1
- package/build/server/chunks/7-C4TEFQmD.js +0 -19
- package/build/server/chunks/7-C4TEFQmD.js.map +0 -1
- package/build/server/chunks/8-6Lblm8Bu.js +0 -130
- package/build/server/chunks/8-6Lblm8Bu.js.map +0 -1
- package/build/server/chunks/9-bV3k1piX.js +0 -48
- package/build/server/chunks/9-bV3k1piX.js.map +0 -1
- package/build/server/chunks/AppHeader-C76PLheq.js +0 -271
- package/build/server/chunks/AppHeader-C76PLheq.js.map +0 -1
- package/build/server/chunks/DataTable-DYplJ2LW.js +0 -26
- package/build/server/chunks/DataTable-DYplJ2LW.js.map +0 -1
- package/build/server/chunks/DefinitionCard-RTmYlhOH.js +0 -268
- package/build/server/chunks/DefinitionCard-RTmYlhOH.js.map +0 -1
- package/build/server/chunks/EmptyState-BMCljy6g.js +0 -53
- package/build/server/chunks/EmptyState-BMCljy6g.js.map +0 -1
- package/build/server/chunks/ErrorScreen-d8Z8hQ1U.js +0 -131
- package/build/server/chunks/ErrorScreen-d8Z8hQ1U.js.map +0 -1
- package/build/server/chunks/FilterableDropdown-0UzIjcXJ.js +0 -61
- package/build/server/chunks/FilterableDropdown-0UzIjcXJ.js.map +0 -1
- package/build/server/chunks/SectionHeader-CjuQsFLx.js +0 -32
- package/build/server/chunks/SectionHeader-CjuQsFLx.js.map +0 -1
- package/build/server/chunks/SideNav-QbExg2MG.js +0 -87
- package/build/server/chunks/SideNav-QbExg2MG.js.map +0 -1
- package/build/server/chunks/StatCard-CRzbit9Z.js +0 -50
- package/build/server/chunks/StatCard-CRzbit9Z.js.map +0 -1
- package/build/server/chunks/UserAvatar-DZgfurXJ.js +0 -13
- package/build/server/chunks/UserAvatar-DZgfurXJ.js.map +0 -1
- package/build/server/chunks/UserChip-i0_3jHOb.js +0 -1225
- package/build/server/chunks/UserChip-i0_3jHOb.js.map +0 -1
- package/build/server/chunks/_error.svelte-DCuOEylf.js +0 -29
- package/build/server/chunks/_error.svelte-DCuOEylf.js.map +0 -1
- package/build/server/chunks/_error.svelte-DKd7sQzn.js +0 -27
- package/build/server/chunks/_error.svelte-DKd7sQzn.js.map +0 -1
- package/build/server/chunks/_layout.svelte-B-tWsdy4.js +0 -108
- package/build/server/chunks/_layout.svelte-B-tWsdy4.js.map +0 -1
- package/build/server/chunks/_layout.svelte-B2RbgABg.js +0 -45
- package/build/server/chunks/_layout.svelte-B2RbgABg.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CyAPRqZR.js +0 -10
- package/build/server/chunks/_layout.svelte-CyAPRqZR.js.map +0 -1
- package/build/server/chunks/_layout.svelte-DUeER8oS.js +0 -155
- package/build/server/chunks/_layout.svelte-DUeER8oS.js.map +0 -1
- package/build/server/chunks/_layout.svelte-VX4FX0S-.js +0 -795
- package/build/server/chunks/_layout.svelte-VX4FX0S-.js.map +0 -1
- package/build/server/chunks/_page.svelte-0KErHswo.js +0 -615
- package/build/server/chunks/_page.svelte-0KErHswo.js.map +0 -1
- package/build/server/chunks/_page.svelte-B8iLZ6Zi.js +0 -119
- package/build/server/chunks/_page.svelte-B8iLZ6Zi.js.map +0 -1
- package/build/server/chunks/_page.svelte-BHM2cdfQ.js +0 -119
- package/build/server/chunks/_page.svelte-BHM2cdfQ.js.map +0 -1
- package/build/server/chunks/_page.svelte-BSHEM3UY.js +0 -72
- package/build/server/chunks/_page.svelte-BSHEM3UY.js.map +0 -1
- package/build/server/chunks/_page.svelte-BYPZuYIR.js +0 -276
- package/build/server/chunks/_page.svelte-BYPZuYIR.js.map +0 -1
- package/build/server/chunks/_page.svelte-Big1I6tL.js +0 -274
- package/build/server/chunks/_page.svelte-Big1I6tL.js.map +0 -1
- package/build/server/chunks/_page.svelte-Bqwz1thf.js +0 -146
- package/build/server/chunks/_page.svelte-Bqwz1thf.js.map +0 -1
- package/build/server/chunks/_page.svelte-CD9Uvy6Y.js +0 -595
- package/build/server/chunks/_page.svelte-CD9Uvy6Y.js.map +0 -1
- package/build/server/chunks/_page.svelte-CDEfhXLp.js +0 -333
- package/build/server/chunks/_page.svelte-CDEfhXLp.js.map +0 -1
- package/build/server/chunks/_page.svelte-CIO9nnXR.js +0 -557
- package/build/server/chunks/_page.svelte-CIO9nnXR.js.map +0 -1
- package/build/server/chunks/_page.svelte-CaoALwvK.js +0 -453
- package/build/server/chunks/_page.svelte-CaoALwvK.js.map +0 -1
- package/build/server/chunks/_page.svelte-CjvLz8T1.js +0 -906
- package/build/server/chunks/_page.svelte-CjvLz8T1.js.map +0 -1
- package/build/server/chunks/_page.svelte-DDzV91b5.js +0 -11868
- package/build/server/chunks/_page.svelte-DDzV91b5.js.map +0 -1
- package/build/server/chunks/_page.svelte-DIn0gOqM.js +0 -609
- package/build/server/chunks/_page.svelte-DIn0gOqM.js.map +0 -1
- package/build/server/chunks/_page.svelte-DKPG7AbM.js +0 -113
- package/build/server/chunks/_page.svelte-DKPG7AbM.js.map +0 -1
- package/build/server/chunks/_page.svelte-DM3XizZi.js +0 -3858
- package/build/server/chunks/_page.svelte-DM3XizZi.js.map +0 -1
- package/build/server/chunks/_page.svelte-DamuIhBm.js +0 -168
- package/build/server/chunks/_page.svelte-DamuIhBm.js.map +0 -1
- package/build/server/chunks/_page.svelte-DcbxsxZM.js +0 -330
- package/build/server/chunks/_page.svelte-DcbxsxZM.js.map +0 -1
- package/build/server/chunks/_page.svelte-DcqwTr6T.js +0 -250
- package/build/server/chunks/_page.svelte-DcqwTr6T.js.map +0 -1
- package/build/server/chunks/_page.svelte-DtVw2EYT.js +0 -56
- package/build/server/chunks/_page.svelte-DtVw2EYT.js.map +0 -1
- package/build/server/chunks/_page.svelte-DtbsSvbp.js +0 -13
- package/build/server/chunks/_page.svelte-DtbsSvbp.js.map +0 -1
- package/build/server/chunks/_page.svelte-DyTTCbrh.js +0 -83
- package/build/server/chunks/_page.svelte-DyTTCbrh.js.map +0 -1
- package/build/server/chunks/_page.svelte-Ut97NZhy.js +0 -714
- package/build/server/chunks/_page.svelte-Ut97NZhy.js.map +0 -1
- package/build/server/chunks/_page.svelte-jwU-46Sj.js +0 -301
- package/build/server/chunks/_page.svelte-jwU-46Sj.js.map +0 -1
- package/build/server/chunks/_page.svelte-lAupF47l.js +0 -424
- package/build/server/chunks/_page.svelte-lAupF47l.js.map +0 -1
- package/build/server/chunks/_server.ts-3LBSaM7L.js +0 -113
- package/build/server/chunks/_server.ts-3LBSaM7L.js.map +0 -1
- package/build/server/chunks/_server.ts-B-un1ZTf.js +0 -162
- package/build/server/chunks/_server.ts-B-un1ZTf.js.map +0 -1
- package/build/server/chunks/_server.ts-B6gtWjZd.js +0 -63
- package/build/server/chunks/_server.ts-B6gtWjZd.js.map +0 -1
- package/build/server/chunks/_server.ts-B9Fdut8P.js +0 -87
- package/build/server/chunks/_server.ts-B9Fdut8P.js.map +0 -1
- package/build/server/chunks/_server.ts-BJEEQ8tH.js +0 -77
- package/build/server/chunks/_server.ts-BJEEQ8tH.js.map +0 -1
- package/build/server/chunks/_server.ts-BKPaoj3Y.js +0 -44
- package/build/server/chunks/_server.ts-BKPaoj3Y.js.map +0 -1
- package/build/server/chunks/_server.ts-BVpHuRup.js +0 -72
- package/build/server/chunks/_server.ts-BVpHuRup.js.map +0 -1
- package/build/server/chunks/_server.ts-BplW_hNF.js +0 -43
- package/build/server/chunks/_server.ts-BplW_hNF.js.map +0 -1
- package/build/server/chunks/_server.ts-Bv-G75Ze.js +0 -40
- package/build/server/chunks/_server.ts-Bv-G75Ze.js.map +0 -1
- package/build/server/chunks/_server.ts-C5fD6gFa.js +0 -77
- package/build/server/chunks/_server.ts-C5fD6gFa.js.map +0 -1
- package/build/server/chunks/_server.ts-C6rUlJpJ.js +0 -43
- package/build/server/chunks/_server.ts-C6rUlJpJ.js.map +0 -1
- package/build/server/chunks/_server.ts-CLku3Kgz.js +0 -66
- package/build/server/chunks/_server.ts-CLku3Kgz.js.map +0 -1
- package/build/server/chunks/_server.ts-CNRwBoMm.js +0 -398
- package/build/server/chunks/_server.ts-CNRwBoMm.js.map +0 -1
- package/build/server/chunks/_server.ts-COuXITb8.js +0 -41
- package/build/server/chunks/_server.ts-COuXITb8.js.map +0 -1
- package/build/server/chunks/_server.ts-CT1KXbVK.js +0 -502
- package/build/server/chunks/_server.ts-CT1KXbVK.js.map +0 -1
- package/build/server/chunks/_server.ts-CTXCbdsb.js +0 -61
- package/build/server/chunks/_server.ts-CTXCbdsb.js.map +0 -1
- package/build/server/chunks/_server.ts-CXEl8kvu.js +0 -40
- package/build/server/chunks/_server.ts-CXEl8kvu.js.map +0 -1
- package/build/server/chunks/_server.ts-CZ9lwb1J.js +0 -60
- package/build/server/chunks/_server.ts-CZ9lwb1J.js.map +0 -1
- package/build/server/chunks/_server.ts-CaytsdFp.js +0 -44
- package/build/server/chunks/_server.ts-CaytsdFp.js.map +0 -1
- package/build/server/chunks/_server.ts-Cd6dVQ2J.js +0 -96
- package/build/server/chunks/_server.ts-Cd6dVQ2J.js.map +0 -1
- package/build/server/chunks/_server.ts-CgRuMyJ9.js +0 -50
- package/build/server/chunks/_server.ts-CgRuMyJ9.js.map +0 -1
- package/build/server/chunks/_server.ts-CmCeYB9h.js +0 -106
- package/build/server/chunks/_server.ts-CmCeYB9h.js.map +0 -1
- package/build/server/chunks/_server.ts-Codg_zX0.js +0 -33
- package/build/server/chunks/_server.ts-Codg_zX0.js.map +0 -1
- package/build/server/chunks/_server.ts-D-WjMJlD.js +0 -35
- package/build/server/chunks/_server.ts-D-WjMJlD.js.map +0 -1
- package/build/server/chunks/_server.ts-D4z7bYT1.js +0 -118
- package/build/server/chunks/_server.ts-D4z7bYT1.js.map +0 -1
- package/build/server/chunks/_server.ts-D7URpGBv.js +0 -45
- package/build/server/chunks/_server.ts-D7URpGBv.js.map +0 -1
- package/build/server/chunks/_server.ts-DMwrtYEK.js +0 -51
- package/build/server/chunks/_server.ts-DMwrtYEK.js.map +0 -1
- package/build/server/chunks/_server.ts-DSVtVVVK.js +0 -81
- package/build/server/chunks/_server.ts-DSVtVVVK.js.map +0 -1
- package/build/server/chunks/_server.ts-Df72lBuz.js +0 -93
- package/build/server/chunks/_server.ts-Df72lBuz.js.map +0 -1
- package/build/server/chunks/_server.ts-DlN3WSBT.js +0 -39
- package/build/server/chunks/_server.ts-DlN3WSBT.js.map +0 -1
- package/build/server/chunks/_server.ts-DsXq-KLm.js +0 -120
- package/build/server/chunks/_server.ts-DsXq-KLm.js.map +0 -1
- package/build/server/chunks/_server.ts-OQ5_sYi3.js +0 -99
- package/build/server/chunks/_server.ts-OQ5_sYi3.js.map +0 -1
- package/build/server/chunks/_server.ts-UYOqhuxS.js +0 -84
- package/build/server/chunks/_server.ts-UYOqhuxS.js.map +0 -1
- package/build/server/chunks/_server.ts-Xt4gRfAl.js +0 -114
- package/build/server/chunks/_server.ts-Xt4gRfAl.js.map +0 -1
- package/build/server/chunks/_server.ts-ZtjukIa0.js +0 -86
- package/build/server/chunks/_server.ts-ZtjukIa0.js.map +0 -1
- package/build/server/chunks/_server.ts-bR98vjY2.js +0 -47
- package/build/server/chunks/_server.ts-bR98vjY2.js.map +0 -1
- package/build/server/chunks/_server.ts-deI69oUs.js +0 -31
- package/build/server/chunks/_server.ts-deI69oUs.js.map +0 -1
- package/build/server/chunks/_server.ts-fxzTH5KH.js +0 -37
- package/build/server/chunks/_server.ts-fxzTH5KH.js.map +0 -1
- package/build/server/chunks/_server.ts-mFb6RwID.js +0 -40
- package/build/server/chunks/_server.ts-mFb6RwID.js.map +0 -1
- package/build/server/chunks/_server.ts-sdl64bpd.js +0 -36
- package/build/server/chunks/_server.ts-sdl64bpd.js.map +0 -1
- package/build/server/chunks/access.server-Rd56k7vs.js +0 -408
- package/build/server/chunks/access.server-Rd56k7vs.js.map +0 -1
- package/build/server/chunks/activity-Dmfe6yjx.js +0 -18
- package/build/server/chunks/activity-Dmfe6yjx.js.map +0 -1
- package/build/server/chunks/admin-auth.server-45kKyH82.js +0 -78
- package/build/server/chunks/admin-auth.server-45kKyH82.js.map +0 -1
- package/build/server/chunks/alert-description-BNqu-OG5.js +0 -59
- package/build/server/chunks/alert-description-BNqu-OG5.js.map +0 -1
- package/build/server/chunks/api-errors-BrqxD-El.js +0 -140
- package/build/server/chunks/api-errors-BrqxD-El.js.map +0 -1
- package/build/server/chunks/arrow-left-KOVWDB5k.js +0 -14
- package/build/server/chunks/arrow-left-KOVWDB5k.js.map +0 -1
- package/build/server/chunks/arrow-right-D0bOY6-5.js +0 -14
- package/build/server/chunks/arrow-right-D0bOY6-5.js.map +0 -1
- package/build/server/chunks/auth-bootstrap.server-DKc9-3PR.js +0 -99
- package/build/server/chunks/auth-bootstrap.server-DKc9-3PR.js.map +0 -1
- package/build/server/chunks/badge-DIEbxzcl.js +0 -50
- package/build/server/chunks/badge-DIEbxzcl.js.map +0 -1
- package/build/server/chunks/bootHealth.server-IPXOSqqQ.js +0 -58
- package/build/server/chunks/bootHealth.server-IPXOSqqQ.js.map +0 -1
- package/build/server/chunks/building-2-DFvNRZpq.js +0 -22
- package/build/server/chunks/building-2-DFvNRZpq.js.map +0 -1
- package/build/server/chunks/button-DPLE4Wc8.js +0 -73
- package/build/server/chunks/button-DPLE4Wc8.js.map +0 -1
- package/build/server/chunks/card-content-BlxX1RCO.js +0 -46
- package/build/server/chunks/card-content-BlxX1RCO.js.map +0 -1
- package/build/server/chunks/card-description-Z3TpzjmK.js +0 -26
- package/build/server/chunks/card-description-Z3TpzjmK.js.map +0 -1
- package/build/server/chunks/card-title-CdR5nQ-b.js +0 -46
- package/build/server/chunks/card-title-CdR5nQ-b.js.map +0 -1
- package/build/server/chunks/check-382jBCB9.js +0 -11
- package/build/server/chunks/check-382jBCB9.js.map +0 -1
- package/build/server/chunks/chevron-down-D5-hWbt-.js +0 -11
- package/build/server/chunks/chevron-down-D5-hWbt-.js.map +0 -1
- package/build/server/chunks/chevron-right-BqxmmxHL.js +0 -11
- package/build/server/chunks/chevron-right-BqxmmxHL.js.map +0 -1
- package/build/server/chunks/chevron-up-StZ3cnZ8.js +0 -11
- package/build/server/chunks/chevron-up-StZ3cnZ8.js.map +0 -1
- package/build/server/chunks/circle-DgRVKHBX.js +0 -11
- package/build/server/chunks/circle-DgRVKHBX.js.map +0 -1
- package/build/server/chunks/circle-alert-DVGjYRbM.js +0 -18
- package/build/server/chunks/circle-alert-DVGjYRbM.js.map +0 -1
- package/build/server/chunks/client-BGbAMHJi.js +0 -39
- package/build/server/chunks/client-BGbAMHJi.js.map +0 -1
- package/build/server/chunks/computeLimits-DnJ77wR9.js +0 -27
- package/build/server/chunks/computeLimits-DnJ77wR9.js.map +0 -1
- package/build/server/chunks/context-BJnJL8ES.js +0 -141
- package/build/server/chunks/context-BJnJL8ES.js.map +0 -1
- package/build/server/chunks/copy-ifB2TUP_.js +0 -29
- package/build/server/chunks/copy-ifB2TUP_.js.map +0 -1
- package/build/server/chunks/create-id-B-AKukLt.js +0 -653
- package/build/server/chunks/create-id-B-AKukLt.js.map +0 -1
- package/build/server/chunks/dialog-description-DJ0KQ8Zk.js +0 -523
- package/build/server/chunks/dialog-description-DJ0KQ8Zk.js.map +0 -1
- package/build/server/chunks/dialog-footer-CuTfgUTD.js +0 -62
- package/build/server/chunks/dialog-footer-CuTfgUTD.js.map +0 -1
- package/build/server/chunks/events-qfxQNxtp.js +0 -119
- package/build/server/chunks/events-qfxQNxtp.js.map +0 -1
- package/build/server/chunks/folder-kanban-pqeOGmPr.js +0 -21
- package/build/server/chunks/folder-kanban-pqeOGmPr.js.map +0 -1
- package/build/server/chunks/folder-open-Cs60gLjJ.js +0 -18
- package/build/server/chunks/folder-open-Cs60gLjJ.js.map +0 -1
- package/build/server/chunks/folders-u0VAZ6yv.js +0 -24
- package/build/server/chunks/folders-u0VAZ6yv.js.map +0 -1
- package/build/server/chunks/footerContext.svelte-DM5rvLUk.js +0 -531
- package/build/server/chunks/footerContext.svelte-DM5rvLUk.js.map +0 -1
- package/build/server/chunks/hooks.server-BZKLAgww.js +0 -226
- package/build/server/chunks/hooks.server-BZKLAgww.js.map +0 -1
- package/build/server/chunks/html-FW6Ia4bL.js +0 -8
- package/build/server/chunks/html-FW6Ia4bL.js.map +0 -1
- package/build/server/chunks/index-CtiRmlms.js +0 -28
- package/build/server/chunks/index-CtiRmlms.js.map +0 -1
- package/build/server/chunks/index-server-DMc-UvjC.js +0 -19
- package/build/server/chunks/index-server-DMc-UvjC.js.map +0 -1
- package/build/server/chunks/index-server2-BiZ3ccb0.js +0 -18
- package/build/server/chunks/index-server2-BiZ3ccb0.js.map +0 -1
- package/build/server/chunks/index2-DDc7DI9Y.js +0 -430
- package/build/server/chunks/index2-DDc7DI9Y.js.map +0 -1
- package/build/server/chunks/index3-BVw88ujT.js +0 -4246
- package/build/server/chunks/index3-BVw88ujT.js.map +0 -1
- package/build/server/chunks/index4-CCteFD1i.js +0 -541
- package/build/server/chunks/index4-CCteFD1i.js.map +0 -1
- package/build/server/chunks/input-BEmCftCF.js +0 -53
- package/build/server/chunks/input-BEmCftCF.js.map +0 -1
- package/build/server/chunks/label-D8oB1018.js +0 -112
- package/build/server/chunks/label-D8oB1018.js.map +0 -1
- package/build/server/chunks/link-2-D3b2vEpL.js +0 -15
- package/build/server/chunks/link-2-D3b2vEpL.js.map +0 -1
- package/build/server/chunks/mail-DZDbJkFt.js +0 -17
- package/build/server/chunks/mail-DZDbJkFt.js.map +0 -1
- package/build/server/chunks/minus-B7toCaYG.js +0 -20
- package/build/server/chunks/minus-B7toCaYG.js.map +0 -1
- package/build/server/chunks/noop-BGJY5rVY.js +0 -270
- package/build/server/chunks/noop-BGJY5rVY.js.map +0 -1
- package/build/server/chunks/package-K5EkWw87.js +0 -29
- package/build/server/chunks/package-K5EkWw87.js.map +0 -1
- package/build/server/chunks/permissions-compat.server-G174xsh6.js +0 -19
- package/build/server/chunks/permissions-compat.server-G174xsh6.js.map +0 -1
- package/build/server/chunks/permissions.server-zs4XAJCp.js +0 -8
- package/build/server/chunks/permissions.server-zs4XAJCp.js.map +0 -1
- package/build/server/chunks/plus-j_UY0EeU.js +0 -11
- package/build/server/chunks/plus-j_UY0EeU.js.map +0 -1
- package/build/server/chunks/providers.server-C3fQ7ZdV.js +0 -4456
- package/build/server/chunks/providers.server-C3fQ7ZdV.js.map +0 -1
- package/build/server/chunks/randomId-8gj3Lbuq.js +0 -25
- package/build/server/chunks/randomId-8gj3Lbuq.js.map +0 -1
- package/build/server/chunks/refresh-cw-B6mwsgBf.js +0 -22
- package/build/server/chunks/refresh-cw-B6mwsgBf.js.map +0 -1
- package/build/server/chunks/renderer-x4cX3Aau.js +0 -3775
- package/build/server/chunks/renderer-x4cX3Aau.js.map +0 -1
- package/build/server/chunks/resolve.server-t1UmqtsG.js +0 -50
- package/build/server/chunks/resolve.server-t1UmqtsG.js.map +0 -1
- package/build/server/chunks/root-CGeBSY2K.js +0 -1134
- package/build/server/chunks/root-CGeBSY2K.js.map +0 -1
- package/build/server/chunks/rotate-ccw-DChq5zhW.js +0 -17
- package/build/server/chunks/rotate-ccw-DChq5zhW.js.map +0 -1
- package/build/server/chunks/scroll-lock-NAQO_S1Y.js +0 -2853
- package/build/server/chunks/scroll-lock-NAQO_S1Y.js.map +0 -1
- package/build/server/chunks/scroll-text-Bi9gx_V4.js +0 -21
- package/build/server/chunks/scroll-text-Bi9gx_V4.js.map +0 -1
- package/build/server/chunks/server-LxtlHpuz.js +0 -36
- package/build/server/chunks/server-LxtlHpuz.js.map +0 -1
- package/build/server/chunks/settings-Cr5mYyBS.js +0 -19
- package/build/server/chunks/settings-Cr5mYyBS.js.map +0 -1
- package/build/server/chunks/shared-server-C3WdcJCQ.js +0 -11
- package/build/server/chunks/shared-server-C3WdcJCQ.js.map +0 -1
- package/build/server/chunks/shield-BSf8CVMT.js +0 -18
- package/build/server/chunks/shield-BSf8CVMT.js.map +0 -1
- package/build/server/chunks/shield-check-OpZRvDHN.js +0 -19
- package/build/server/chunks/shield-check-OpZRvDHN.js.map +0 -1
- package/build/server/chunks/slug-BGuFQjqe.js +0 -6
- package/build/server/chunks/slug-BGuFQjqe.js.map +0 -1
- package/build/server/chunks/star-KGWYAeYA.js +0 -18
- package/build/server/chunks/star-KGWYAeYA.js.map +0 -1
- package/build/server/chunks/stores-uHR_5Kqw.js +0 -31
- package/build/server/chunks/stores-uHR_5Kqw.js.map +0 -1
- package/build/server/chunks/textarea-DmyNBs20.js +0 -559
- package/build/server/chunks/textarea-DmyNBs20.js.map +0 -1
- package/build/server/chunks/toast-state.svelte-CFWzxRA3.js +0 -185
- package/build/server/chunks/toast-state.svelte-CFWzxRA3.js.map +0 -1
- package/build/server/chunks/token.server-BGL9vwYS.js +0 -25
- package/build/server/chunks/token.server-BGL9vwYS.js.map +0 -1
- package/build/server/chunks/token.server2-CaWL-Isp.js +0 -22
- package/build/server/chunks/token.server2-CaWL-Isp.js.map +0 -1
- package/build/server/chunks/trash-2-DmuR9br3.js +0 -17
- package/build/server/chunks/trash-2-DmuR9br3.js.map +0 -1
- package/build/server/chunks/triangle-alert-Dig9abwC.js +0 -20
- package/build/server/chunks/triangle-alert-Dig9abwC.js.map +0 -1
- package/build/server/chunks/types-DxzJoaA4.js +0 -11
- package/build/server/chunks/types-DxzJoaA4.js.map +0 -1
- package/build/server/chunks/types2-DdHhYSMF.js +0 -4
- package/build/server/chunks/types2-DdHhYSMF.js.map +0 -1
- package/build/server/chunks/updateCheck.server-qRJNJ4LU.js +0 -68
- package/build/server/chunks/updateCheck.server-qRJNJ4LU.js.map +0 -1
- package/build/server/chunks/user-plus-Jn4Z4v9g.js +0 -16
- package/build/server/chunks/user-plus-Jn4Z4v9g.js.map +0 -1
- package/build/server/chunks/users-BgwwwoIh.js +0 -16
- package/build/server/chunks/users-BgwwwoIh.js.map +0 -1
- package/build/server/chunks/utils2-BqfluBM6.js +0 -50
- package/build/server/chunks/utils2-BqfluBM6.js.map +0 -1
- package/build/server/chunks/utils3-Dv2HSd2-.js +0 -80
- package/build/server/chunks/utils3-Dv2HSd2-.js.map +0 -1
- package/build/server/chunks/x-B1q8Cpoy.js +0 -14
- package/build/server/chunks/x-B1q8Cpoy.js.map +0 -1
- package/build/server/index.js +0 -5376
- package/build/server/index.js.map +0 -1
- package/build/server/manifest.js +0 -531
- package/build/server/manifest.js.map +0 -1
|
@@ -0,0 +1,4194 @@
|
|
|
1
|
+
import { n as noop, f as format_server_error, i as is_form_content_type, T as TRAILING_SLASH_PARAM, I as INVALIDATED_PARAM, h as has_prerendered_path, a as handle_fatal_error, r as redirect_response, m as method_not_allowed, b as negotiate, g as get_global_name, c as create_remote_key, s as serialize_uses, d as clarify_devalue_error, o as once, e as handle_error_and_jsonify, E as ENDPOINT_METHODS, P as PAGE_METHODS, j as get_status, k as normalize_error, l as static_error_page, p as parse_remote_arg, q as stringify, t as deserialize_binary_form, u as get_node_type, v as stringify$1, w as escape_html, x as split_remote_key, S as SVELTE_KIT_ASSETS } from './chunks/utils.js-B8oGSXiQ.js';
|
|
2
|
+
import { B as BROWSER, u as uneval } from './chunks/render-context.js-CK-yhMaE.js';
|
|
3
|
+
import { json, text, error, isRedirect } from '@sveltejs/kit';
|
|
4
|
+
import { Redirect, SvelteKitError, HttpError, ActionFailure } from '@sveltejs/kit/internal';
|
|
5
|
+
import { with_request_store, merge_tracing } from '@sveltejs/kit/internal/server';
|
|
6
|
+
import { b as base, a as app_dir, c as assets, r as relative, o as override, d as reset } from './chunks/environment.js-Bf8x1V_n.js';
|
|
7
|
+
import { d as decode_pathname, n as normalize_path, a as disable_search, b as decode_params, v as validate_layout_server_exports, c as validate_layout_exports, e as validate_page_server_exports, f as validate_page_exports, r as resolve, m as make_trackable } from './chunks/exports.js-BZBK1HC9.js';
|
|
8
|
+
import { a as text_encoder, g as get_relative_path, c as base64_encode, t as text_decoder } from './chunks/utils2.js-DGYJFmnf.js';
|
|
9
|
+
import 'clsx';
|
|
10
|
+
import { w as writable, r as readable } from './chunks/index.js-CC8M6P-h.js';
|
|
11
|
+
import { s as set_private_env, a as set_public_env, p as public_env } from './chunks/shared-server.js-DaWdgxVh.js';
|
|
12
|
+
import { o as options, g as get_hooks, r as read_implementation, s as set_read_implementation } from './chunks/internal.js-BByw60g1.js';
|
|
13
|
+
|
|
14
|
+
const s = JSON.stringify;
|
|
15
|
+
function with_resolvers() {
|
|
16
|
+
let resolve2;
|
|
17
|
+
let reject;
|
|
18
|
+
const promise = new Promise((res, rej) => {
|
|
19
|
+
resolve2 = res;
|
|
20
|
+
reject = rej;
|
|
21
|
+
});
|
|
22
|
+
return { promise, resolve: resolve2, reject };
|
|
23
|
+
}
|
|
24
|
+
const NULL_BODY_STATUS = [101, 103, 204, 205, 304];
|
|
25
|
+
const IN_WEBCONTAINER = !!globalThis.process?.versions?.webcontainer;
|
|
26
|
+
async function render_endpoint(event, event_state, mod, state) {
|
|
27
|
+
const method = (
|
|
28
|
+
/** @type {import('types').HttpMethod} */
|
|
29
|
+
event.request.method
|
|
30
|
+
);
|
|
31
|
+
let handler = mod[method] || mod.fallback;
|
|
32
|
+
if (method === "HEAD" && !mod.HEAD && mod.GET) {
|
|
33
|
+
handler = mod.GET;
|
|
34
|
+
}
|
|
35
|
+
if (!handler) {
|
|
36
|
+
return method_not_allowed(mod, method);
|
|
37
|
+
}
|
|
38
|
+
const prerender = mod.prerender ?? state.prerender_default;
|
|
39
|
+
if (prerender && (mod.POST || mod.PATCH || mod.PUT || mod.DELETE)) {
|
|
40
|
+
throw new Error("Cannot prerender endpoints that have mutative methods");
|
|
41
|
+
}
|
|
42
|
+
if (state.prerendering && !state.prerendering.inside_reroute && !prerender) {
|
|
43
|
+
if (state.depth > 0) {
|
|
44
|
+
throw new Error(`${event.route.id} is not prerenderable`);
|
|
45
|
+
} else {
|
|
46
|
+
return new Response(void 0, { status: 204 });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const response = await with_request_store(
|
|
51
|
+
{ event, state: event_state },
|
|
52
|
+
() => handler(
|
|
53
|
+
/** @type {import('@sveltejs/kit').RequestEvent<Record<string, any>>} */
|
|
54
|
+
event
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
if (!(response instanceof Response)) {
|
|
58
|
+
throw new Error(
|
|
59
|
+
`Invalid response from route ${event.url.pathname}: handler should return a Response object`
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
if (state.prerendering && (!state.prerendering.inside_reroute || prerender)) {
|
|
63
|
+
const cloned = new Response(response.clone().body, {
|
|
64
|
+
status: response.status,
|
|
65
|
+
statusText: response.statusText,
|
|
66
|
+
headers: new Headers(response.headers)
|
|
67
|
+
});
|
|
68
|
+
cloned.headers.set("x-sveltekit-prerender", String(prerender));
|
|
69
|
+
if (state.prerendering.inside_reroute && prerender) {
|
|
70
|
+
cloned.headers.set(
|
|
71
|
+
"x-sveltekit-routeid",
|
|
72
|
+
encodeURI(
|
|
73
|
+
/** @type {string} */
|
|
74
|
+
event.route.id
|
|
75
|
+
)
|
|
76
|
+
);
|
|
77
|
+
state.prerendering.dependencies.set(event.url.pathname, { response: cloned, body: null });
|
|
78
|
+
} else {
|
|
79
|
+
return cloned;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return response;
|
|
83
|
+
} catch (e) {
|
|
84
|
+
if (e instanceof Redirect) {
|
|
85
|
+
return new Response(void 0, {
|
|
86
|
+
status: e.status,
|
|
87
|
+
headers: { location: e.location }
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
throw e;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function is_endpoint_request(event) {
|
|
94
|
+
const { method, headers: headers2 } = event.request;
|
|
95
|
+
if (ENDPOINT_METHODS.includes(method) && !PAGE_METHODS.includes(method)) {
|
|
96
|
+
return true;
|
|
97
|
+
}
|
|
98
|
+
if (method === "POST" && headers2.get("x-sveltekit-action") === "true") return false;
|
|
99
|
+
const accept = event.request.headers.get("accept") ?? "*/*";
|
|
100
|
+
return negotiate(accept, ["*", "text/html"]) !== "text/html";
|
|
101
|
+
}
|
|
102
|
+
function compact(arr) {
|
|
103
|
+
return arr.filter(
|
|
104
|
+
/** @returns {val is NonNullable<T>} */
|
|
105
|
+
(val) => val != null
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
const DATA_SUFFIX = "/__data.json";
|
|
109
|
+
const HTML_DATA_SUFFIX = ".html__data.json";
|
|
110
|
+
function has_data_suffix(pathname) {
|
|
111
|
+
return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
|
|
112
|
+
}
|
|
113
|
+
function add_data_suffix(pathname) {
|
|
114
|
+
if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
|
|
115
|
+
return pathname.replace(/\/$/, "") + DATA_SUFFIX;
|
|
116
|
+
}
|
|
117
|
+
function strip_data_suffix(pathname) {
|
|
118
|
+
if (pathname.endsWith(HTML_DATA_SUFFIX)) {
|
|
119
|
+
return pathname.slice(0, -HTML_DATA_SUFFIX.length) + ".html";
|
|
120
|
+
}
|
|
121
|
+
return pathname.slice(0, -DATA_SUFFIX.length);
|
|
122
|
+
}
|
|
123
|
+
const ROUTE_SUFFIX = "/__route.js";
|
|
124
|
+
function has_resolution_suffix(pathname) {
|
|
125
|
+
return pathname.endsWith(ROUTE_SUFFIX);
|
|
126
|
+
}
|
|
127
|
+
function add_resolution_suffix(pathname) {
|
|
128
|
+
return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
|
|
129
|
+
}
|
|
130
|
+
function strip_resolution_suffix(pathname) {
|
|
131
|
+
return pathname.slice(0, -ROUTE_SUFFIX.length);
|
|
132
|
+
}
|
|
133
|
+
const noop_span = {
|
|
134
|
+
spanContext() {
|
|
135
|
+
return noop_span_context;
|
|
136
|
+
},
|
|
137
|
+
setAttribute() {
|
|
138
|
+
return this;
|
|
139
|
+
},
|
|
140
|
+
setAttributes() {
|
|
141
|
+
return this;
|
|
142
|
+
},
|
|
143
|
+
addEvent() {
|
|
144
|
+
return this;
|
|
145
|
+
},
|
|
146
|
+
setStatus() {
|
|
147
|
+
return this;
|
|
148
|
+
},
|
|
149
|
+
updateName() {
|
|
150
|
+
return this;
|
|
151
|
+
},
|
|
152
|
+
end() {
|
|
153
|
+
return this;
|
|
154
|
+
},
|
|
155
|
+
isRecording() {
|
|
156
|
+
return false;
|
|
157
|
+
},
|
|
158
|
+
recordException() {
|
|
159
|
+
return this;
|
|
160
|
+
},
|
|
161
|
+
addLink() {
|
|
162
|
+
return this;
|
|
163
|
+
},
|
|
164
|
+
addLinks() {
|
|
165
|
+
return this;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
const noop_span_context = {
|
|
169
|
+
traceId: "",
|
|
170
|
+
spanId: "",
|
|
171
|
+
traceFlags: 0
|
|
172
|
+
};
|
|
173
|
+
async function record_span({ name, attributes, fn }) {
|
|
174
|
+
{
|
|
175
|
+
return fn(noop_span);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
function is_action_json_request(event) {
|
|
179
|
+
const accept = negotiate(event.request.headers.get("accept") ?? "*/*", [
|
|
180
|
+
"application/json",
|
|
181
|
+
"text/html"
|
|
182
|
+
]);
|
|
183
|
+
return accept === "application/json" && event.request.method === "POST";
|
|
184
|
+
}
|
|
185
|
+
async function handle_action_json_request(event, event_state, options2, server) {
|
|
186
|
+
const actions = server?.actions;
|
|
187
|
+
if (!actions) {
|
|
188
|
+
const no_actions_error = new SvelteKitError(
|
|
189
|
+
405,
|
|
190
|
+
"Method Not Allowed",
|
|
191
|
+
`POST method not allowed. No form actions exist for ${"this page"}`
|
|
192
|
+
);
|
|
193
|
+
return action_json(
|
|
194
|
+
{
|
|
195
|
+
type: "error",
|
|
196
|
+
error: await handle_error_and_jsonify(event, event_state, options2, no_actions_error)
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
status: no_actions_error.status,
|
|
200
|
+
headers: {
|
|
201
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
|
|
202
|
+
// "The server must generate an Allow header field in a 405 status code response"
|
|
203
|
+
allow: "GET"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
check_named_default_separate(actions);
|
|
209
|
+
try {
|
|
210
|
+
const data = await call_action(event, event_state, actions);
|
|
211
|
+
if (BROWSER) ;
|
|
212
|
+
if (data instanceof ActionFailure) {
|
|
213
|
+
return action_json({
|
|
214
|
+
type: "failure",
|
|
215
|
+
status: data.status,
|
|
216
|
+
// @ts-expect-error we assign a string to what is supposed to be an object. That's ok
|
|
217
|
+
// because we don't use the object outside, and this way we have better code navigation
|
|
218
|
+
// through knowing where the related interface is used.
|
|
219
|
+
data: stringify_action_response(
|
|
220
|
+
data.data,
|
|
221
|
+
/** @type {string} */
|
|
222
|
+
event.route.id,
|
|
223
|
+
options2.hooks.transport
|
|
224
|
+
)
|
|
225
|
+
});
|
|
226
|
+
} else {
|
|
227
|
+
return action_json({
|
|
228
|
+
type: "success",
|
|
229
|
+
status: data ? 200 : 204,
|
|
230
|
+
// @ts-expect-error see comment above
|
|
231
|
+
data: stringify_action_response(
|
|
232
|
+
data,
|
|
233
|
+
/** @type {string} */
|
|
234
|
+
event.route.id,
|
|
235
|
+
options2.hooks.transport
|
|
236
|
+
)
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
} catch (e) {
|
|
240
|
+
const err = normalize_error(e);
|
|
241
|
+
if (err instanceof Redirect) {
|
|
242
|
+
return action_json_redirect(err);
|
|
243
|
+
}
|
|
244
|
+
return action_json(
|
|
245
|
+
{
|
|
246
|
+
type: "error",
|
|
247
|
+
error: await handle_error_and_jsonify(
|
|
248
|
+
event,
|
|
249
|
+
event_state,
|
|
250
|
+
options2,
|
|
251
|
+
check_incorrect_fail_use(err)
|
|
252
|
+
)
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
status: get_status(err)
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function check_incorrect_fail_use(error2) {
|
|
261
|
+
return error2 instanceof ActionFailure ? new Error('Cannot "throw fail()". Use "return fail()"') : error2;
|
|
262
|
+
}
|
|
263
|
+
function action_json_redirect(redirect) {
|
|
264
|
+
return action_json({
|
|
265
|
+
type: "redirect",
|
|
266
|
+
status: redirect.status,
|
|
267
|
+
location: redirect.location
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
function action_json(data, init2) {
|
|
271
|
+
return json(data, init2);
|
|
272
|
+
}
|
|
273
|
+
function is_action_request(event) {
|
|
274
|
+
return event.request.method === "POST";
|
|
275
|
+
}
|
|
276
|
+
async function handle_action_request(event, event_state, server) {
|
|
277
|
+
const actions = server?.actions;
|
|
278
|
+
if (!actions) {
|
|
279
|
+
event.setHeaders({
|
|
280
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
|
|
281
|
+
// "The server must generate an Allow header field in a 405 status code response"
|
|
282
|
+
allow: "GET"
|
|
283
|
+
});
|
|
284
|
+
return {
|
|
285
|
+
type: "error",
|
|
286
|
+
error: new SvelteKitError(
|
|
287
|
+
405,
|
|
288
|
+
"Method Not Allowed",
|
|
289
|
+
`POST method not allowed. No form actions exist for ${"this page"}`
|
|
290
|
+
)
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
check_named_default_separate(actions);
|
|
294
|
+
try {
|
|
295
|
+
const data = await call_action(event, event_state, actions);
|
|
296
|
+
if (BROWSER) ;
|
|
297
|
+
if (data instanceof ActionFailure) {
|
|
298
|
+
return {
|
|
299
|
+
type: "failure",
|
|
300
|
+
status: data.status,
|
|
301
|
+
data: data.data
|
|
302
|
+
};
|
|
303
|
+
} else {
|
|
304
|
+
return {
|
|
305
|
+
type: "success",
|
|
306
|
+
status: 200,
|
|
307
|
+
// @ts-expect-error this will be removed upon serialization, so `undefined` is the same as omission
|
|
308
|
+
data
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
} catch (e) {
|
|
312
|
+
const err = normalize_error(e);
|
|
313
|
+
if (err instanceof Redirect) {
|
|
314
|
+
return {
|
|
315
|
+
type: "redirect",
|
|
316
|
+
status: err.status,
|
|
317
|
+
location: err.location
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
return {
|
|
321
|
+
type: "error",
|
|
322
|
+
error: check_incorrect_fail_use(err)
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
function check_named_default_separate(actions) {
|
|
327
|
+
if (actions.default && Object.keys(actions).length > 1) {
|
|
328
|
+
throw new Error(
|
|
329
|
+
"When using named actions, the default action cannot be used. See the docs for more info: https://svelte.dev/docs/kit/form-actions#named-actions"
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
async function call_action(event, event_state, actions) {
|
|
334
|
+
const url = new URL(event.request.url);
|
|
335
|
+
let name = "default";
|
|
336
|
+
for (const param of url.searchParams) {
|
|
337
|
+
if (param[0].startsWith("/")) {
|
|
338
|
+
name = param[0].slice(1);
|
|
339
|
+
if (name === "default") {
|
|
340
|
+
throw new Error('Cannot use reserved action name "default"');
|
|
341
|
+
}
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
const action = actions[name];
|
|
346
|
+
if (!action) {
|
|
347
|
+
throw new SvelteKitError(404, "Not Found", `No action with name '${name}' found`);
|
|
348
|
+
}
|
|
349
|
+
if (!is_form_content_type(event.request)) {
|
|
350
|
+
throw new SvelteKitError(
|
|
351
|
+
415,
|
|
352
|
+
"Unsupported Media Type",
|
|
353
|
+
`Form actions expect form-encoded data — received ${event.request.headers.get(
|
|
354
|
+
"content-type"
|
|
355
|
+
)}`
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
return record_span({
|
|
359
|
+
name: "sveltekit.form_action",
|
|
360
|
+
attributes: {
|
|
361
|
+
"http.route": event.route.id || "unknown"
|
|
362
|
+
},
|
|
363
|
+
fn: async (current2) => {
|
|
364
|
+
const traced_event = merge_tracing(event, current2);
|
|
365
|
+
const result = await with_request_store(
|
|
366
|
+
{ event: traced_event, state: event_state },
|
|
367
|
+
() => action(traced_event)
|
|
368
|
+
);
|
|
369
|
+
if (result instanceof ActionFailure) {
|
|
370
|
+
current2.setAttributes({
|
|
371
|
+
"sveltekit.form_action.result.type": "failure",
|
|
372
|
+
"sveltekit.form_action.result.status": result.status
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
return result;
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function uneval_action_response(data, route_id, transport) {
|
|
380
|
+
const replacer = (thing) => {
|
|
381
|
+
for (const key2 in transport) {
|
|
382
|
+
const encoded = transport[key2].encode(thing);
|
|
383
|
+
if (encoded) {
|
|
384
|
+
return `app.decode('${key2}', ${uneval(encoded, replacer)})`;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
return try_serialize(data, (value) => uneval(value, replacer), route_id);
|
|
389
|
+
}
|
|
390
|
+
function stringify_action_response(data, route_id, transport) {
|
|
391
|
+
const encoders = Object.fromEntries(
|
|
392
|
+
Object.entries(transport).map(([key2, value]) => [key2, value.encode])
|
|
393
|
+
);
|
|
394
|
+
return try_serialize(data, (value) => stringify$1(value, encoders), route_id);
|
|
395
|
+
}
|
|
396
|
+
function try_serialize(data, fn, route_id) {
|
|
397
|
+
try {
|
|
398
|
+
return fn(data);
|
|
399
|
+
} catch (e) {
|
|
400
|
+
const error2 = (
|
|
401
|
+
/** @type {any} */
|
|
402
|
+
e
|
|
403
|
+
);
|
|
404
|
+
if (data instanceof Response) {
|
|
405
|
+
throw new Error(
|
|
406
|
+
`Data returned from action inside ${route_id} is not serializable. Form actions need to return plain objects or fail(). E.g. return { success: true } or return fail(400, { message: "invalid" });`,
|
|
407
|
+
{ cause: e }
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
if ("path" in error2) {
|
|
411
|
+
let message = `Data returned from action inside ${route_id} is not serializable: ${error2.message}`;
|
|
412
|
+
if (error2.path !== "") message += ` (data.${error2.path})`;
|
|
413
|
+
throw new Error(message, { cause: e });
|
|
414
|
+
}
|
|
415
|
+
throw error2;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
function create_async_iterator() {
|
|
419
|
+
let resolved = -1;
|
|
420
|
+
let returned = -1;
|
|
421
|
+
const deferred = [];
|
|
422
|
+
return {
|
|
423
|
+
iterate: (transform = (x) => x) => {
|
|
424
|
+
return {
|
|
425
|
+
[Symbol.asyncIterator]() {
|
|
426
|
+
return {
|
|
427
|
+
next: async () => {
|
|
428
|
+
const next = deferred[++returned];
|
|
429
|
+
if (!next) return { value: null, done: true };
|
|
430
|
+
const value = await next.promise;
|
|
431
|
+
return { value: transform(value), done: false };
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
add: (promise) => {
|
|
438
|
+
deferred.push(with_resolvers());
|
|
439
|
+
void promise.then((value) => {
|
|
440
|
+
deferred[++resolved].resolve(value);
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
function server_data_serializer(event, event_state, options2) {
|
|
446
|
+
let promise_id = 1;
|
|
447
|
+
let max_nodes = -1;
|
|
448
|
+
const iterator = create_async_iterator();
|
|
449
|
+
const global = get_global_name(options2);
|
|
450
|
+
function get_replacer(index) {
|
|
451
|
+
return function replacer(thing) {
|
|
452
|
+
if (typeof thing?.then === "function") {
|
|
453
|
+
const id = promise_id++;
|
|
454
|
+
const promise = thing.then(
|
|
455
|
+
/** @param {any} data */
|
|
456
|
+
(data) => ({ data })
|
|
457
|
+
).catch(
|
|
458
|
+
/** @param {any} error */
|
|
459
|
+
async (error2) => ({
|
|
460
|
+
error: await handle_error_and_jsonify(event, event_state, options2, error2)
|
|
461
|
+
})
|
|
462
|
+
).then(
|
|
463
|
+
/**
|
|
464
|
+
* @param {{data: any; error: any}} result
|
|
465
|
+
*/
|
|
466
|
+
async ({ data, error: error2 }) => {
|
|
467
|
+
let str;
|
|
468
|
+
try {
|
|
469
|
+
str = uneval(error2 ? [, error2] : [data], replacer);
|
|
470
|
+
} catch {
|
|
471
|
+
error2 = await handle_error_and_jsonify(
|
|
472
|
+
event,
|
|
473
|
+
event_state,
|
|
474
|
+
options2,
|
|
475
|
+
new Error(`Failed to serialize promise while rendering ${event.route.id}`)
|
|
476
|
+
);
|
|
477
|
+
str = uneval([, error2], replacer);
|
|
478
|
+
}
|
|
479
|
+
return {
|
|
480
|
+
index,
|
|
481
|
+
str: `${global}.resolve(${id}, ${str.includes("app.decode") ? `(app) => ${str}` : `() => ${str}`})`
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
);
|
|
485
|
+
iterator.add(promise);
|
|
486
|
+
return `${global}.defer(${id})`;
|
|
487
|
+
} else {
|
|
488
|
+
for (const key2 in options2.hooks.transport) {
|
|
489
|
+
const encoded = options2.hooks.transport[key2].encode(thing);
|
|
490
|
+
if (encoded) {
|
|
491
|
+
return `app.decode('${key2}', ${uneval(encoded, replacer)})`;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
const strings = (
|
|
498
|
+
/** @type {string[]} */
|
|
499
|
+
[]
|
|
500
|
+
);
|
|
501
|
+
return {
|
|
502
|
+
set_max_nodes(i) {
|
|
503
|
+
max_nodes = i;
|
|
504
|
+
},
|
|
505
|
+
add_node(i, node) {
|
|
506
|
+
try {
|
|
507
|
+
if (!node) {
|
|
508
|
+
strings[i] = "null";
|
|
509
|
+
return;
|
|
510
|
+
}
|
|
511
|
+
const payload = { type: "data", data: node.data, uses: serialize_uses(node) };
|
|
512
|
+
if (node.slash) payload.slash = node.slash;
|
|
513
|
+
strings[i] = uneval(payload, get_replacer(i));
|
|
514
|
+
} catch (e) {
|
|
515
|
+
e.path = e.path.slice(1);
|
|
516
|
+
throw new Error(clarify_devalue_error(
|
|
517
|
+
event,
|
|
518
|
+
/** @type {any} */
|
|
519
|
+
e
|
|
520
|
+
), { cause: e });
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
get_data(csp) {
|
|
524
|
+
const open = `<script${csp.script_needs_nonce ? ` nonce="${csp.nonce}"` : ""}>`;
|
|
525
|
+
const close = `<\/script>
|
|
526
|
+
`;
|
|
527
|
+
return {
|
|
528
|
+
data: `[${compact(max_nodes > -1 ? strings.slice(0, max_nodes) : strings).join(",")}]`,
|
|
529
|
+
chunks: promise_id > 1 ? iterator.iterate(({ index, str }) => {
|
|
530
|
+
if (max_nodes > -1 && index >= max_nodes) {
|
|
531
|
+
return "";
|
|
532
|
+
}
|
|
533
|
+
return open + str + close;
|
|
534
|
+
}) : null
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
function server_data_serializer_json(event, event_state, options2) {
|
|
540
|
+
let promise_id = 1;
|
|
541
|
+
const iterator = create_async_iterator();
|
|
542
|
+
const reducers = {
|
|
543
|
+
...Object.fromEntries(
|
|
544
|
+
Object.entries(options2.hooks.transport).map(([key2, value]) => [key2, value.encode])
|
|
545
|
+
),
|
|
546
|
+
/** @param {any} thing */
|
|
547
|
+
Promise: (thing) => {
|
|
548
|
+
if (typeof thing?.then !== "function") {
|
|
549
|
+
return;
|
|
550
|
+
}
|
|
551
|
+
const id = promise_id++;
|
|
552
|
+
let key2 = "data";
|
|
553
|
+
const promise = thing.catch(
|
|
554
|
+
/** @param {any} e */
|
|
555
|
+
async (e) => {
|
|
556
|
+
key2 = "error";
|
|
557
|
+
return handle_error_and_jsonify(
|
|
558
|
+
event,
|
|
559
|
+
event_state,
|
|
560
|
+
options2,
|
|
561
|
+
/** @type {any} */
|
|
562
|
+
e
|
|
563
|
+
);
|
|
564
|
+
}
|
|
565
|
+
).then(
|
|
566
|
+
/** @param {any} value */
|
|
567
|
+
async (value) => {
|
|
568
|
+
let str;
|
|
569
|
+
try {
|
|
570
|
+
str = stringify$1(value, reducers);
|
|
571
|
+
} catch {
|
|
572
|
+
const error2 = await handle_error_and_jsonify(
|
|
573
|
+
event,
|
|
574
|
+
event_state,
|
|
575
|
+
options2,
|
|
576
|
+
new Error(`Failed to serialize promise while rendering ${event.route.id}`)
|
|
577
|
+
);
|
|
578
|
+
key2 = "error";
|
|
579
|
+
str = stringify$1(error2, reducers);
|
|
580
|
+
}
|
|
581
|
+
return `{"type":"chunk","id":${id},"${key2}":${str}}
|
|
582
|
+
`;
|
|
583
|
+
}
|
|
584
|
+
);
|
|
585
|
+
iterator.add(promise);
|
|
586
|
+
return id;
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
const strings = (
|
|
590
|
+
/** @type {string[]} */
|
|
591
|
+
[]
|
|
592
|
+
);
|
|
593
|
+
return {
|
|
594
|
+
add_node(i, node) {
|
|
595
|
+
try {
|
|
596
|
+
if (!node) {
|
|
597
|
+
strings[i] = "null";
|
|
598
|
+
return;
|
|
599
|
+
}
|
|
600
|
+
if (node.type === "error" || node.type === "skip") {
|
|
601
|
+
strings[i] = JSON.stringify(node);
|
|
602
|
+
return;
|
|
603
|
+
}
|
|
604
|
+
strings[i] = `{"type":"data","data":${stringify$1(node.data, reducers)},"uses":${JSON.stringify(
|
|
605
|
+
serialize_uses(node)
|
|
606
|
+
)}${node.slash ? `,"slash":${JSON.stringify(node.slash)}` : ""}}`;
|
|
607
|
+
} catch (e) {
|
|
608
|
+
e.path = "data" + e.path;
|
|
609
|
+
throw new Error(clarify_devalue_error(
|
|
610
|
+
event,
|
|
611
|
+
/** @type {any} */
|
|
612
|
+
e
|
|
613
|
+
), { cause: e });
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
get_data() {
|
|
617
|
+
return {
|
|
618
|
+
data: `{"type":"data","nodes":[${strings.join(",")}]}
|
|
619
|
+
`,
|
|
620
|
+
chunks: promise_id > 1 ? iterator.iterate() : null
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
async function load_server_data({ event, event_state, state, node, parent }) {
|
|
626
|
+
if (!node?.server) return null;
|
|
627
|
+
let is_tracking = true;
|
|
628
|
+
const uses = {
|
|
629
|
+
dependencies: /* @__PURE__ */ new Set(),
|
|
630
|
+
params: /* @__PURE__ */ new Set(),
|
|
631
|
+
parent: false,
|
|
632
|
+
route: false,
|
|
633
|
+
url: false,
|
|
634
|
+
search_params: /* @__PURE__ */ new Set()
|
|
635
|
+
};
|
|
636
|
+
const load = node.server.load;
|
|
637
|
+
const slash = node.server.trailingSlash;
|
|
638
|
+
if (!load) {
|
|
639
|
+
return { type: "data", data: null, uses, slash };
|
|
640
|
+
}
|
|
641
|
+
const url = make_trackable(
|
|
642
|
+
event.url,
|
|
643
|
+
() => {
|
|
644
|
+
if (is_tracking) {
|
|
645
|
+
uses.url = true;
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
(param) => {
|
|
649
|
+
if (is_tracking) {
|
|
650
|
+
uses.search_params.add(param);
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
);
|
|
654
|
+
if (state.prerendering) {
|
|
655
|
+
disable_search(url);
|
|
656
|
+
}
|
|
657
|
+
const result = await record_span({
|
|
658
|
+
name: "sveltekit.load",
|
|
659
|
+
attributes: {
|
|
660
|
+
"sveltekit.load.node_id": node.server_id || "unknown",
|
|
661
|
+
"sveltekit.load.node_type": get_node_type(node.server_id),
|
|
662
|
+
"http.route": event.route.id || "unknown"
|
|
663
|
+
},
|
|
664
|
+
fn: async (current2) => {
|
|
665
|
+
const traced_event = merge_tracing(event, current2);
|
|
666
|
+
const result2 = await with_request_store(
|
|
667
|
+
{ event: traced_event, state: event_state },
|
|
668
|
+
() => load.call(null, {
|
|
669
|
+
...traced_event,
|
|
670
|
+
fetch: (info, init2) => {
|
|
671
|
+
new URL(info instanceof Request ? info.url : info, event.url);
|
|
672
|
+
return event.fetch(info, init2);
|
|
673
|
+
},
|
|
674
|
+
/** @param {string[]} deps */
|
|
675
|
+
depends: (...deps) => {
|
|
676
|
+
for (const dep of deps) {
|
|
677
|
+
const { href } = new URL(dep, event.url);
|
|
678
|
+
uses.dependencies.add(href);
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
params: new Proxy(event.params, {
|
|
682
|
+
get: (target, key2) => {
|
|
683
|
+
if (is_tracking) {
|
|
684
|
+
uses.params.add(key2);
|
|
685
|
+
}
|
|
686
|
+
return target[
|
|
687
|
+
/** @type {string} */
|
|
688
|
+
key2
|
|
689
|
+
];
|
|
690
|
+
}
|
|
691
|
+
}),
|
|
692
|
+
parent: async () => {
|
|
693
|
+
if (is_tracking) {
|
|
694
|
+
uses.parent = true;
|
|
695
|
+
}
|
|
696
|
+
return parent();
|
|
697
|
+
},
|
|
698
|
+
route: new Proxy(event.route, {
|
|
699
|
+
get: (target, key2) => {
|
|
700
|
+
if (is_tracking) {
|
|
701
|
+
uses.route = true;
|
|
702
|
+
}
|
|
703
|
+
return target[
|
|
704
|
+
/** @type {'id'} */
|
|
705
|
+
key2
|
|
706
|
+
];
|
|
707
|
+
}
|
|
708
|
+
}),
|
|
709
|
+
url,
|
|
710
|
+
untrack(fn) {
|
|
711
|
+
is_tracking = false;
|
|
712
|
+
try {
|
|
713
|
+
return fn();
|
|
714
|
+
} finally {
|
|
715
|
+
is_tracking = true;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
})
|
|
719
|
+
);
|
|
720
|
+
return result2;
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
return {
|
|
724
|
+
type: "data",
|
|
725
|
+
data: result ?? null,
|
|
726
|
+
uses,
|
|
727
|
+
slash
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
async function load_data({
|
|
731
|
+
event,
|
|
732
|
+
event_state,
|
|
733
|
+
fetched,
|
|
734
|
+
node,
|
|
735
|
+
parent,
|
|
736
|
+
server_data_promise,
|
|
737
|
+
state,
|
|
738
|
+
resolve_opts,
|
|
739
|
+
csr
|
|
740
|
+
}) {
|
|
741
|
+
const server_data_node = await server_data_promise;
|
|
742
|
+
const load = node?.universal?.load;
|
|
743
|
+
if (!load) {
|
|
744
|
+
return server_data_node?.data ?? null;
|
|
745
|
+
}
|
|
746
|
+
const result = await record_span({
|
|
747
|
+
name: "sveltekit.load",
|
|
748
|
+
attributes: {
|
|
749
|
+
"sveltekit.load.node_id": node.universal_id || "unknown",
|
|
750
|
+
"sveltekit.load.node_type": get_node_type(node.universal_id),
|
|
751
|
+
"http.route": event.route.id || "unknown"
|
|
752
|
+
},
|
|
753
|
+
fn: async (current2) => {
|
|
754
|
+
const traced_event = merge_tracing(event, current2);
|
|
755
|
+
const child_state = { ...event_state, is_in_universal_load: true };
|
|
756
|
+
return await with_request_store(
|
|
757
|
+
{ event: traced_event, state: child_state },
|
|
758
|
+
() => load.call(null, {
|
|
759
|
+
url: event.url,
|
|
760
|
+
params: event.params,
|
|
761
|
+
data: server_data_node?.data ?? null,
|
|
762
|
+
route: event.route,
|
|
763
|
+
fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts),
|
|
764
|
+
setHeaders: event.setHeaders,
|
|
765
|
+
depends: noop,
|
|
766
|
+
parent,
|
|
767
|
+
untrack: (fn) => fn(),
|
|
768
|
+
tracing: traced_event.tracing
|
|
769
|
+
})
|
|
770
|
+
);
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
return result ?? null;
|
|
774
|
+
}
|
|
775
|
+
function create_universal_fetch(event, state, fetched, csr, resolve_opts) {
|
|
776
|
+
const universal_fetch = async (input, init2) => {
|
|
777
|
+
const cloned_body = input instanceof Request && input.body ? input.clone().body : null;
|
|
778
|
+
const cloned_headers = input instanceof Request && [...input.headers].length ? new Headers(input.headers) : init2?.headers;
|
|
779
|
+
let response = await event.fetch(input, init2);
|
|
780
|
+
const url = new URL(input instanceof Request ? input.url : input, event.url);
|
|
781
|
+
const same_origin = url.origin === event.url.origin;
|
|
782
|
+
let dependency;
|
|
783
|
+
if (same_origin) {
|
|
784
|
+
if (state.prerendering) {
|
|
785
|
+
dependency = { response, body: null };
|
|
786
|
+
state.prerendering.dependencies.set(url.pathname, dependency);
|
|
787
|
+
}
|
|
788
|
+
} else if (url.protocol === "https:" || url.protocol === "http:") {
|
|
789
|
+
const mode = input instanceof Request ? input.mode : init2?.mode ?? "cors";
|
|
790
|
+
if (mode === "no-cors") {
|
|
791
|
+
response = new Response("", {
|
|
792
|
+
status: response.status,
|
|
793
|
+
statusText: response.statusText,
|
|
794
|
+
headers: response.headers
|
|
795
|
+
});
|
|
796
|
+
} else {
|
|
797
|
+
const acao = response.headers.get("access-control-allow-origin");
|
|
798
|
+
if (!acao || acao !== event.url.origin && acao !== "*") {
|
|
799
|
+
throw new Error(
|
|
800
|
+
`CORS error: ${acao ? "Incorrect" : "No"} 'Access-Control-Allow-Origin' header is present on the requested resource`
|
|
801
|
+
);
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
let teed_body;
|
|
806
|
+
const proxy = new Proxy(response, {
|
|
807
|
+
get(response2, key2, receiver) {
|
|
808
|
+
async function push_fetched(body2, is_b64) {
|
|
809
|
+
const status_number = Number(response2.status);
|
|
810
|
+
if (isNaN(status_number)) {
|
|
811
|
+
throw new Error(
|
|
812
|
+
`response.status is not a number. value: "${response2.status}" type: ${typeof response2.status}`
|
|
813
|
+
);
|
|
814
|
+
}
|
|
815
|
+
fetched.push({
|
|
816
|
+
url: same_origin ? url.href.slice(event.url.origin.length) : url.href,
|
|
817
|
+
method: event.request.method,
|
|
818
|
+
request_body: (
|
|
819
|
+
/** @type {string | ArrayBufferView | undefined} */
|
|
820
|
+
input instanceof Request && cloned_body ? await stream_to_string(cloned_body) : init2?.body
|
|
821
|
+
),
|
|
822
|
+
request_headers: cloned_headers,
|
|
823
|
+
response_body: body2,
|
|
824
|
+
response: response2,
|
|
825
|
+
is_b64
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
if (key2 === "body") {
|
|
829
|
+
if (response2.body === null) {
|
|
830
|
+
return null;
|
|
831
|
+
}
|
|
832
|
+
if (teed_body) {
|
|
833
|
+
return teed_body;
|
|
834
|
+
}
|
|
835
|
+
const [a, b] = response2.body.tee();
|
|
836
|
+
void (async () => {
|
|
837
|
+
let result = new Uint8Array();
|
|
838
|
+
for await (const chunk of a) {
|
|
839
|
+
const combined = new Uint8Array(result.length + chunk.length);
|
|
840
|
+
combined.set(result, 0);
|
|
841
|
+
combined.set(chunk, result.length);
|
|
842
|
+
result = combined;
|
|
843
|
+
}
|
|
844
|
+
if (dependency) {
|
|
845
|
+
dependency.body = new Uint8Array(result);
|
|
846
|
+
}
|
|
847
|
+
void push_fetched(base64_encode(result), true);
|
|
848
|
+
})();
|
|
849
|
+
return teed_body = b;
|
|
850
|
+
}
|
|
851
|
+
if (key2 === "arrayBuffer") {
|
|
852
|
+
return async () => {
|
|
853
|
+
const buffer = await response2.arrayBuffer();
|
|
854
|
+
const bytes = new Uint8Array(buffer);
|
|
855
|
+
if (dependency) {
|
|
856
|
+
dependency.body = bytes;
|
|
857
|
+
}
|
|
858
|
+
if (buffer instanceof ArrayBuffer) {
|
|
859
|
+
await push_fetched(base64_encode(bytes), true);
|
|
860
|
+
}
|
|
861
|
+
return buffer;
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
async function text2() {
|
|
865
|
+
const body2 = await response2.text();
|
|
866
|
+
if (body2 === "" && NULL_BODY_STATUS.includes(response2.status)) {
|
|
867
|
+
await push_fetched(void 0, false);
|
|
868
|
+
return void 0;
|
|
869
|
+
}
|
|
870
|
+
if (!body2 || typeof body2 === "string") {
|
|
871
|
+
await push_fetched(body2, false);
|
|
872
|
+
}
|
|
873
|
+
if (dependency) {
|
|
874
|
+
dependency.body = body2;
|
|
875
|
+
}
|
|
876
|
+
return body2;
|
|
877
|
+
}
|
|
878
|
+
if (key2 === "text") {
|
|
879
|
+
return text2;
|
|
880
|
+
}
|
|
881
|
+
if (key2 === "json") {
|
|
882
|
+
return async () => {
|
|
883
|
+
const body2 = await text2();
|
|
884
|
+
return body2 ? JSON.parse(body2) : void 0;
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
const value = Reflect.get(response2, key2, response2);
|
|
888
|
+
if (value instanceof Function) {
|
|
889
|
+
return Object.defineProperties(
|
|
890
|
+
/**
|
|
891
|
+
* @this {any}
|
|
892
|
+
*/
|
|
893
|
+
function() {
|
|
894
|
+
return Reflect.apply(value, this === receiver ? response2 : this, arguments);
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
name: { value: value.name },
|
|
898
|
+
length: { value: value.length }
|
|
899
|
+
}
|
|
900
|
+
);
|
|
901
|
+
}
|
|
902
|
+
return value;
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
if (csr) {
|
|
906
|
+
const get = response.headers.get;
|
|
907
|
+
response.headers.get = (key2) => {
|
|
908
|
+
const lower = key2.toLowerCase();
|
|
909
|
+
const value = get.call(response.headers, lower);
|
|
910
|
+
if (value && !lower.startsWith("x-sveltekit-")) {
|
|
911
|
+
const included = resolve_opts.filterSerializedResponseHeaders(lower, value);
|
|
912
|
+
if (!included) {
|
|
913
|
+
throw new Error(
|
|
914
|
+
`Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://svelte.dev/docs/kit/hooks#Server-hooks-handle (at ${event.route.id})`
|
|
915
|
+
);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
return value;
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
return proxy;
|
|
922
|
+
};
|
|
923
|
+
return (input, init2) => {
|
|
924
|
+
const response = universal_fetch(input, init2);
|
|
925
|
+
response.catch(noop);
|
|
926
|
+
return response;
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
async function stream_to_string(stream) {
|
|
930
|
+
let result = "";
|
|
931
|
+
const reader = stream.getReader();
|
|
932
|
+
while (true) {
|
|
933
|
+
const { done, value } = await reader.read();
|
|
934
|
+
if (done) {
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
result += text_decoder.decode(value);
|
|
938
|
+
}
|
|
939
|
+
return result;
|
|
940
|
+
}
|
|
941
|
+
function hash(...values) {
|
|
942
|
+
let hash2 = 5381;
|
|
943
|
+
for (const value of values) {
|
|
944
|
+
if (typeof value === "string") {
|
|
945
|
+
let i = value.length;
|
|
946
|
+
while (i) hash2 = hash2 * 33 ^ value.charCodeAt(--i);
|
|
947
|
+
} else if (ArrayBuffer.isView(value)) {
|
|
948
|
+
const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
949
|
+
let i = buffer.length;
|
|
950
|
+
while (i) hash2 = hash2 * 33 ^ buffer[--i];
|
|
951
|
+
} else {
|
|
952
|
+
throw new TypeError("value must be a string or TypedArray");
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
return (hash2 >>> 0).toString(36);
|
|
956
|
+
}
|
|
957
|
+
const replacements = {
|
|
958
|
+
"<": "\\u003C",
|
|
959
|
+
"\u2028": "\\u2028",
|
|
960
|
+
"\u2029": "\\u2029"
|
|
961
|
+
};
|
|
962
|
+
const pattern = new RegExp(`[${Object.keys(replacements).join("")}]`, "g");
|
|
963
|
+
function serialize_data(fetched, filter, prerendering = false) {
|
|
964
|
+
const headers2 = {};
|
|
965
|
+
let cache_control = null;
|
|
966
|
+
let age = null;
|
|
967
|
+
let varyAny = false;
|
|
968
|
+
for (const [key2, value] of fetched.response.headers) {
|
|
969
|
+
if (filter(key2, value)) {
|
|
970
|
+
headers2[key2] = value;
|
|
971
|
+
}
|
|
972
|
+
if (key2 === "cache-control") cache_control = value;
|
|
973
|
+
else if (key2 === "age") age = value;
|
|
974
|
+
else if (key2 === "vary" && value.trim() === "*") varyAny = true;
|
|
975
|
+
}
|
|
976
|
+
const payload = {
|
|
977
|
+
status: fetched.response.status,
|
|
978
|
+
statusText: fetched.response.statusText,
|
|
979
|
+
headers: headers2,
|
|
980
|
+
body: fetched.response_body
|
|
981
|
+
};
|
|
982
|
+
const safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]);
|
|
983
|
+
const attrs = [
|
|
984
|
+
'type="application/json"',
|
|
985
|
+
"data-sveltekit-fetched",
|
|
986
|
+
`data-url="${escape_html(fetched.url, true)}"`
|
|
987
|
+
];
|
|
988
|
+
if (fetched.is_b64) {
|
|
989
|
+
attrs.push("data-b64");
|
|
990
|
+
}
|
|
991
|
+
if (fetched.request_headers || fetched.request_body) {
|
|
992
|
+
const values = [];
|
|
993
|
+
if (fetched.request_headers) {
|
|
994
|
+
values.push([...new Headers(fetched.request_headers)].join(","));
|
|
995
|
+
}
|
|
996
|
+
if (fetched.request_body) {
|
|
997
|
+
values.push(fetched.request_body);
|
|
998
|
+
}
|
|
999
|
+
attrs.push(`data-hash="${hash(...values)}"`);
|
|
1000
|
+
}
|
|
1001
|
+
if (!prerendering && fetched.method === "GET" && cache_control && !varyAny) {
|
|
1002
|
+
const match = /s-maxage=(\d+)/g.exec(cache_control) ?? /max-age=(\d+)/g.exec(cache_control);
|
|
1003
|
+
if (match) {
|
|
1004
|
+
const ttl = +match[1] - +(age ?? "0");
|
|
1005
|
+
attrs.push(`data-ttl="${ttl}"`);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return `<script ${attrs.join(" ")}>${safe_payload}<\/script>`;
|
|
1009
|
+
}
|
|
1010
|
+
function sha256(data) {
|
|
1011
|
+
if (!key[0]) precompute();
|
|
1012
|
+
const out = init.slice(0);
|
|
1013
|
+
const array2 = encode(data);
|
|
1014
|
+
for (let i = 0; i < array2.length; i += 16) {
|
|
1015
|
+
const w = array2.subarray(i, i + 16);
|
|
1016
|
+
let tmp;
|
|
1017
|
+
let a;
|
|
1018
|
+
let b;
|
|
1019
|
+
let out0 = out[0];
|
|
1020
|
+
let out1 = out[1];
|
|
1021
|
+
let out2 = out[2];
|
|
1022
|
+
let out3 = out[3];
|
|
1023
|
+
let out4 = out[4];
|
|
1024
|
+
let out5 = out[5];
|
|
1025
|
+
let out6 = out[6];
|
|
1026
|
+
let out7 = out[7];
|
|
1027
|
+
for (let i2 = 0; i2 < 64; i2++) {
|
|
1028
|
+
if (i2 < 16) {
|
|
1029
|
+
tmp = w[i2];
|
|
1030
|
+
} else {
|
|
1031
|
+
a = w[i2 + 1 & 15];
|
|
1032
|
+
b = w[i2 + 14 & 15];
|
|
1033
|
+
tmp = w[i2 & 15] = (a >>> 7 ^ a >>> 18 ^ a >>> 3 ^ a << 25 ^ a << 14) + (b >>> 17 ^ b >>> 19 ^ b >>> 10 ^ b << 15 ^ b << 13) + w[i2 & 15] + w[i2 + 9 & 15] | 0;
|
|
1034
|
+
}
|
|
1035
|
+
tmp = tmp + out7 + (out4 >>> 6 ^ out4 >>> 11 ^ out4 >>> 25 ^ out4 << 26 ^ out4 << 21 ^ out4 << 7) + (out6 ^ out4 & (out5 ^ out6)) + key[i2];
|
|
1036
|
+
out7 = out6;
|
|
1037
|
+
out6 = out5;
|
|
1038
|
+
out5 = out4;
|
|
1039
|
+
out4 = out3 + tmp | 0;
|
|
1040
|
+
out3 = out2;
|
|
1041
|
+
out2 = out1;
|
|
1042
|
+
out1 = out0;
|
|
1043
|
+
out0 = tmp + (out1 & out2 ^ out3 & (out1 ^ out2)) + (out1 >>> 2 ^ out1 >>> 13 ^ out1 >>> 22 ^ out1 << 30 ^ out1 << 19 ^ out1 << 10) | 0;
|
|
1044
|
+
}
|
|
1045
|
+
out[0] = out[0] + out0 | 0;
|
|
1046
|
+
out[1] = out[1] + out1 | 0;
|
|
1047
|
+
out[2] = out[2] + out2 | 0;
|
|
1048
|
+
out[3] = out[3] + out3 | 0;
|
|
1049
|
+
out[4] = out[4] + out4 | 0;
|
|
1050
|
+
out[5] = out[5] + out5 | 0;
|
|
1051
|
+
out[6] = out[6] + out6 | 0;
|
|
1052
|
+
out[7] = out[7] + out7 | 0;
|
|
1053
|
+
}
|
|
1054
|
+
const bytes = new Uint8Array(out.buffer);
|
|
1055
|
+
reverse_endianness(bytes);
|
|
1056
|
+
return btoa(String.fromCharCode(...bytes));
|
|
1057
|
+
}
|
|
1058
|
+
const init = new Uint32Array(8);
|
|
1059
|
+
const key = new Uint32Array(64);
|
|
1060
|
+
function precompute() {
|
|
1061
|
+
function frac(x) {
|
|
1062
|
+
return (x - Math.floor(x)) * 4294967296;
|
|
1063
|
+
}
|
|
1064
|
+
let prime = 2;
|
|
1065
|
+
for (let i = 0; i < 64; prime++) {
|
|
1066
|
+
let is_prime = true;
|
|
1067
|
+
for (let factor = 2; factor * factor <= prime; factor++) {
|
|
1068
|
+
if (prime % factor === 0) {
|
|
1069
|
+
is_prime = false;
|
|
1070
|
+
break;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
if (is_prime) {
|
|
1074
|
+
if (i < 8) {
|
|
1075
|
+
init[i] = frac(prime ** (1 / 2));
|
|
1076
|
+
}
|
|
1077
|
+
key[i] = frac(prime ** (1 / 3));
|
|
1078
|
+
i++;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
function reverse_endianness(bytes) {
|
|
1083
|
+
for (let i = 0; i < bytes.length; i += 4) {
|
|
1084
|
+
const a = bytes[i + 0];
|
|
1085
|
+
const b = bytes[i + 1];
|
|
1086
|
+
const c = bytes[i + 2];
|
|
1087
|
+
const d = bytes[i + 3];
|
|
1088
|
+
bytes[i + 0] = d;
|
|
1089
|
+
bytes[i + 1] = c;
|
|
1090
|
+
bytes[i + 2] = b;
|
|
1091
|
+
bytes[i + 3] = a;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
function encode(str) {
|
|
1095
|
+
const encoded = text_encoder.encode(str);
|
|
1096
|
+
const length = encoded.length * 8;
|
|
1097
|
+
const size = 512 * Math.ceil((length + 65) / 512);
|
|
1098
|
+
const bytes = new Uint8Array(size / 8);
|
|
1099
|
+
bytes.set(encoded);
|
|
1100
|
+
bytes[encoded.length] = 128;
|
|
1101
|
+
reverse_endianness(bytes);
|
|
1102
|
+
const words = new Uint32Array(bytes.buffer);
|
|
1103
|
+
words[words.length - 2] = Math.floor(length / 4294967296);
|
|
1104
|
+
words[words.length - 1] = length;
|
|
1105
|
+
return words;
|
|
1106
|
+
}
|
|
1107
|
+
const array = new Uint8Array(16);
|
|
1108
|
+
function generate_nonce() {
|
|
1109
|
+
crypto.getRandomValues(array);
|
|
1110
|
+
return btoa(String.fromCharCode(...array));
|
|
1111
|
+
}
|
|
1112
|
+
const quoted = /* @__PURE__ */ new Set([
|
|
1113
|
+
"self",
|
|
1114
|
+
"unsafe-eval",
|
|
1115
|
+
"unsafe-hashes",
|
|
1116
|
+
"unsafe-inline",
|
|
1117
|
+
"none",
|
|
1118
|
+
"strict-dynamic",
|
|
1119
|
+
"report-sample",
|
|
1120
|
+
"wasm-unsafe-eval",
|
|
1121
|
+
"script"
|
|
1122
|
+
]);
|
|
1123
|
+
const crypto_pattern = /^(nonce|sha\d\d\d)-/;
|
|
1124
|
+
class BaseProvider {
|
|
1125
|
+
/** @type {boolean} */
|
|
1126
|
+
#use_hashes;
|
|
1127
|
+
/** @type {boolean} */
|
|
1128
|
+
#script_needs_csp;
|
|
1129
|
+
/** @type {boolean} */
|
|
1130
|
+
#script_src_needs_csp;
|
|
1131
|
+
/** @type {boolean} */
|
|
1132
|
+
#script_src_elem_needs_csp;
|
|
1133
|
+
/** @type {boolean} */
|
|
1134
|
+
#style_needs_csp;
|
|
1135
|
+
/** @type {boolean} */
|
|
1136
|
+
#style_src_needs_csp;
|
|
1137
|
+
/** @type {boolean} */
|
|
1138
|
+
#style_src_attr_needs_csp;
|
|
1139
|
+
/** @type {boolean} */
|
|
1140
|
+
#style_src_elem_needs_csp;
|
|
1141
|
+
/** @type {import('types').CspDirectives} */
|
|
1142
|
+
#directives;
|
|
1143
|
+
/** @type {Set<import('types').Csp.Source>} */
|
|
1144
|
+
#script_src;
|
|
1145
|
+
/** @type {Set<import('types').Csp.Source>} */
|
|
1146
|
+
#script_src_elem;
|
|
1147
|
+
/** @type {Set<import('types').Csp.Source>} */
|
|
1148
|
+
#style_src;
|
|
1149
|
+
/** @type {Set<import('types').Csp.Source>} */
|
|
1150
|
+
#style_src_attr;
|
|
1151
|
+
/** @type {Set<import('types').Csp.Source>} */
|
|
1152
|
+
#style_src_elem;
|
|
1153
|
+
/** @type {boolean} */
|
|
1154
|
+
script_needs_nonce;
|
|
1155
|
+
/** @type {boolean} */
|
|
1156
|
+
style_needs_nonce;
|
|
1157
|
+
/** @type {boolean} */
|
|
1158
|
+
script_needs_hash;
|
|
1159
|
+
/** @type {string} */
|
|
1160
|
+
#nonce;
|
|
1161
|
+
/**
|
|
1162
|
+
* @param {boolean} use_hashes
|
|
1163
|
+
* @param {import('types').CspDirectives} directives
|
|
1164
|
+
* @param {string} nonce
|
|
1165
|
+
*/
|
|
1166
|
+
constructor(use_hashes, directives, nonce) {
|
|
1167
|
+
this.#use_hashes = use_hashes;
|
|
1168
|
+
this.#directives = directives;
|
|
1169
|
+
const d = this.#directives;
|
|
1170
|
+
this.#script_src = /* @__PURE__ */ new Set();
|
|
1171
|
+
this.#script_src_elem = /* @__PURE__ */ new Set();
|
|
1172
|
+
this.#style_src = /* @__PURE__ */ new Set();
|
|
1173
|
+
this.#style_src_attr = /* @__PURE__ */ new Set();
|
|
1174
|
+
this.#style_src_elem = /* @__PURE__ */ new Set();
|
|
1175
|
+
const effective_script_src = d["script-src"] || d["default-src"];
|
|
1176
|
+
const script_src_elem = d["script-src-elem"];
|
|
1177
|
+
const effective_style_src = d["style-src"] || d["default-src"];
|
|
1178
|
+
const style_src_attr = d["style-src-attr"];
|
|
1179
|
+
const style_src_elem = d["style-src-elem"];
|
|
1180
|
+
const style_needs_csp = (directive) => !!directive && !directive.some((value) => value === "unsafe-inline");
|
|
1181
|
+
const script_needs_csp = (directive) => !!directive && (!directive.some((value) => value === "unsafe-inline") || directive.some((value) => value === "strict-dynamic"));
|
|
1182
|
+
this.#script_src_needs_csp = script_needs_csp(effective_script_src);
|
|
1183
|
+
this.#script_src_elem_needs_csp = script_needs_csp(script_src_elem);
|
|
1184
|
+
this.#style_src_needs_csp = style_needs_csp(effective_style_src);
|
|
1185
|
+
this.#style_src_attr_needs_csp = style_needs_csp(style_src_attr);
|
|
1186
|
+
this.#style_src_elem_needs_csp = style_needs_csp(style_src_elem);
|
|
1187
|
+
this.#script_needs_csp = this.#script_src_needs_csp || this.#script_src_elem_needs_csp;
|
|
1188
|
+
this.#style_needs_csp = this.#style_src_needs_csp || this.#style_src_attr_needs_csp || this.#style_src_elem_needs_csp;
|
|
1189
|
+
this.script_needs_nonce = this.#script_needs_csp && !this.#use_hashes;
|
|
1190
|
+
this.style_needs_nonce = this.#style_needs_csp && !this.#use_hashes;
|
|
1191
|
+
this.script_needs_hash = this.#script_needs_csp && this.#use_hashes;
|
|
1192
|
+
this.#nonce = nonce;
|
|
1193
|
+
}
|
|
1194
|
+
/** @param {string} content */
|
|
1195
|
+
add_script(content) {
|
|
1196
|
+
if (!this.#script_needs_csp) return;
|
|
1197
|
+
const source = this.#use_hashes ? `sha256-${sha256(content)}` : `nonce-${this.#nonce}`;
|
|
1198
|
+
if (this.#script_src_needs_csp) {
|
|
1199
|
+
this.#script_src.add(source);
|
|
1200
|
+
}
|
|
1201
|
+
if (this.#script_src_elem_needs_csp) {
|
|
1202
|
+
this.#script_src_elem.add(source);
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
/** @param {`sha256-${string}`[]} hashes */
|
|
1206
|
+
add_script_hashes(hashes) {
|
|
1207
|
+
for (const hash2 of hashes) {
|
|
1208
|
+
if (this.#script_src_needs_csp) {
|
|
1209
|
+
this.#script_src.add(hash2);
|
|
1210
|
+
}
|
|
1211
|
+
if (this.#script_src_elem_needs_csp) {
|
|
1212
|
+
this.#script_src_elem.add(hash2);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
/** @param {string} content */
|
|
1217
|
+
add_style(content) {
|
|
1218
|
+
if (!this.#style_needs_csp) return;
|
|
1219
|
+
const source = this.#use_hashes ? `sha256-${sha256(content)}` : `nonce-${this.#nonce}`;
|
|
1220
|
+
if (this.#style_src_needs_csp) {
|
|
1221
|
+
this.#style_src.add(source);
|
|
1222
|
+
}
|
|
1223
|
+
if (this.#style_src_attr_needs_csp) {
|
|
1224
|
+
this.#style_src_attr.add(source);
|
|
1225
|
+
}
|
|
1226
|
+
if (this.#style_src_elem_needs_csp) {
|
|
1227
|
+
const sha256_empty_comment_hash = "sha256-9OlNO0DNEeaVzHL4RZwCLsBHA8WBQ8toBp/4F5XV2nc=";
|
|
1228
|
+
const d = this.#directives;
|
|
1229
|
+
if (d["style-src-elem"] && !d["style-src-elem"].includes(sha256_empty_comment_hash) && !this.#style_src_elem.has(sha256_empty_comment_hash)) {
|
|
1230
|
+
this.#style_src_elem.add(sha256_empty_comment_hash);
|
|
1231
|
+
}
|
|
1232
|
+
if (source !== sha256_empty_comment_hash) {
|
|
1233
|
+
this.#style_src_elem.add(source);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
/**
|
|
1238
|
+
* @param {boolean} [is_meta]
|
|
1239
|
+
*/
|
|
1240
|
+
get_header(is_meta = false) {
|
|
1241
|
+
const header = [];
|
|
1242
|
+
const directives = { ...this.#directives };
|
|
1243
|
+
if (this.#style_src.size > 0) {
|
|
1244
|
+
directives["style-src"] = [
|
|
1245
|
+
...directives["style-src"] || directives["default-src"] || [],
|
|
1246
|
+
...this.#style_src
|
|
1247
|
+
];
|
|
1248
|
+
}
|
|
1249
|
+
if (this.#style_src_attr.size > 0) {
|
|
1250
|
+
directives["style-src-attr"] = [
|
|
1251
|
+
...directives["style-src-attr"] || [],
|
|
1252
|
+
...this.#style_src_attr
|
|
1253
|
+
];
|
|
1254
|
+
}
|
|
1255
|
+
if (this.#style_src_elem.size > 0) {
|
|
1256
|
+
directives["style-src-elem"] = [
|
|
1257
|
+
...directives["style-src-elem"] || [],
|
|
1258
|
+
...this.#style_src_elem
|
|
1259
|
+
];
|
|
1260
|
+
}
|
|
1261
|
+
if (this.#script_src.size > 0) {
|
|
1262
|
+
directives["script-src"] = [
|
|
1263
|
+
...directives["script-src"] || directives["default-src"] || [],
|
|
1264
|
+
...this.#script_src
|
|
1265
|
+
];
|
|
1266
|
+
}
|
|
1267
|
+
if (this.#script_src_elem.size > 0) {
|
|
1268
|
+
directives["script-src-elem"] = [
|
|
1269
|
+
...directives["script-src-elem"] || [],
|
|
1270
|
+
...this.#script_src_elem
|
|
1271
|
+
];
|
|
1272
|
+
}
|
|
1273
|
+
for (const key2 in directives) {
|
|
1274
|
+
if (is_meta && (key2 === "frame-ancestors" || key2 === "report-uri" || key2 === "sandbox")) {
|
|
1275
|
+
continue;
|
|
1276
|
+
}
|
|
1277
|
+
const value = (
|
|
1278
|
+
/** @type {string[] | true} */
|
|
1279
|
+
directives[key2]
|
|
1280
|
+
);
|
|
1281
|
+
if (!value) continue;
|
|
1282
|
+
const directive = [key2];
|
|
1283
|
+
if (Array.isArray(value)) {
|
|
1284
|
+
value.forEach((value2) => {
|
|
1285
|
+
if (quoted.has(value2) || crypto_pattern.test(value2)) {
|
|
1286
|
+
directive.push(`'${value2}'`);
|
|
1287
|
+
} else {
|
|
1288
|
+
directive.push(value2);
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
header.push(directive.join(" "));
|
|
1293
|
+
}
|
|
1294
|
+
return header.join("; ");
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
class CspProvider extends BaseProvider {
|
|
1298
|
+
get_meta() {
|
|
1299
|
+
const content = this.get_header(true);
|
|
1300
|
+
if (!content) {
|
|
1301
|
+
return;
|
|
1302
|
+
}
|
|
1303
|
+
return `<meta http-equiv="content-security-policy" content="${escape_html(content, true)}">`;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
class CspReportOnlyProvider extends BaseProvider {
|
|
1307
|
+
/**
|
|
1308
|
+
* @param {boolean} use_hashes
|
|
1309
|
+
* @param {import('types').CspDirectives} directives
|
|
1310
|
+
* @param {string} nonce
|
|
1311
|
+
*/
|
|
1312
|
+
constructor(use_hashes, directives, nonce) {
|
|
1313
|
+
super(use_hashes, directives, nonce);
|
|
1314
|
+
if (Object.values(directives).filter((v) => !!v).length > 0) {
|
|
1315
|
+
const has_report_to = directives["report-to"]?.length ?? 0 > 0;
|
|
1316
|
+
const has_report_uri = directives["report-uri"]?.length ?? 0 > 0;
|
|
1317
|
+
if (!has_report_to && !has_report_uri) {
|
|
1318
|
+
throw Error(
|
|
1319
|
+
"`content-security-policy-report-only` must be specified with either the `report-to` or `report-uri` directives, or both"
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
class Csp {
|
|
1326
|
+
/** @readonly */
|
|
1327
|
+
nonce = generate_nonce();
|
|
1328
|
+
/** @type {CspProvider} */
|
|
1329
|
+
csp_provider;
|
|
1330
|
+
/** @type {CspReportOnlyProvider} */
|
|
1331
|
+
report_only_provider;
|
|
1332
|
+
/**
|
|
1333
|
+
* @param {import('./types.js').CspConfig} config
|
|
1334
|
+
* @param {import('./types.js').CspOpts} opts
|
|
1335
|
+
*/
|
|
1336
|
+
constructor({ mode, directives, reportOnly }, { prerender }) {
|
|
1337
|
+
const use_hashes = mode === "hash" || mode === "auto" && prerender;
|
|
1338
|
+
this.csp_provider = new CspProvider(use_hashes, directives, this.nonce);
|
|
1339
|
+
this.report_only_provider = new CspReportOnlyProvider(use_hashes, reportOnly, this.nonce);
|
|
1340
|
+
}
|
|
1341
|
+
get script_needs_hash() {
|
|
1342
|
+
return this.csp_provider.script_needs_hash || this.report_only_provider.script_needs_hash;
|
|
1343
|
+
}
|
|
1344
|
+
get script_needs_nonce() {
|
|
1345
|
+
return this.csp_provider.script_needs_nonce || this.report_only_provider.script_needs_nonce;
|
|
1346
|
+
}
|
|
1347
|
+
get style_needs_nonce() {
|
|
1348
|
+
return this.csp_provider.style_needs_nonce || this.report_only_provider.style_needs_nonce;
|
|
1349
|
+
}
|
|
1350
|
+
/** @param {string} content */
|
|
1351
|
+
add_script(content) {
|
|
1352
|
+
this.csp_provider.add_script(content);
|
|
1353
|
+
this.report_only_provider.add_script(content);
|
|
1354
|
+
}
|
|
1355
|
+
/** @param {`sha256-${string}`[]} hashes */
|
|
1356
|
+
add_script_hashes(hashes) {
|
|
1357
|
+
this.csp_provider.add_script_hashes(hashes);
|
|
1358
|
+
this.report_only_provider.add_script_hashes(hashes);
|
|
1359
|
+
}
|
|
1360
|
+
/** @param {string} content */
|
|
1361
|
+
add_style(content) {
|
|
1362
|
+
this.csp_provider.add_style(content);
|
|
1363
|
+
this.report_only_provider.add_style(content);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
function exec(match, params, matchers) {
|
|
1367
|
+
const result = {};
|
|
1368
|
+
const values = match.slice(1);
|
|
1369
|
+
const values_needing_match = values.filter((value) => value !== void 0);
|
|
1370
|
+
let buffered = 0;
|
|
1371
|
+
for (let i = 0; i < params.length; i += 1) {
|
|
1372
|
+
const param = params[i];
|
|
1373
|
+
let value = values[i - buffered];
|
|
1374
|
+
if (param.chained && param.rest && buffered) {
|
|
1375
|
+
value = values.slice(i - buffered, i + 1).filter((s2) => s2).join("/");
|
|
1376
|
+
buffered = 0;
|
|
1377
|
+
}
|
|
1378
|
+
if (value === void 0) {
|
|
1379
|
+
if (param.rest) {
|
|
1380
|
+
value = "";
|
|
1381
|
+
} else {
|
|
1382
|
+
continue;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
if (!param.matcher || matchers[param.matcher](value)) {
|
|
1386
|
+
result[param.name] = value;
|
|
1387
|
+
const next_param = params[i + 1];
|
|
1388
|
+
const next_value = values[i + 1];
|
|
1389
|
+
if (next_param && !next_param.rest && next_param.optional && next_value && param.chained) {
|
|
1390
|
+
buffered = 0;
|
|
1391
|
+
}
|
|
1392
|
+
if (!next_param && !next_value && Object.keys(result).length === values_needing_match.length) {
|
|
1393
|
+
buffered = 0;
|
|
1394
|
+
}
|
|
1395
|
+
continue;
|
|
1396
|
+
}
|
|
1397
|
+
if (param.optional && param.chained) {
|
|
1398
|
+
buffered++;
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1401
|
+
return;
|
|
1402
|
+
}
|
|
1403
|
+
if (buffered) return;
|
|
1404
|
+
return result;
|
|
1405
|
+
}
|
|
1406
|
+
function find_route(path, routes, matchers) {
|
|
1407
|
+
for (const route of routes) {
|
|
1408
|
+
const match = route.pattern.exec(path);
|
|
1409
|
+
if (!match) continue;
|
|
1410
|
+
const matched = exec(match, route.params, matchers);
|
|
1411
|
+
if (matched) {
|
|
1412
|
+
return {
|
|
1413
|
+
route,
|
|
1414
|
+
params: decode_params(matched)
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
return null;
|
|
1419
|
+
}
|
|
1420
|
+
function generate_route_object(route, url, manifest) {
|
|
1421
|
+
const { errors, layouts, leaf } = route;
|
|
1422
|
+
const nodes = [...errors, ...layouts.map((l) => l?.[1]), leaf[1]].filter((n) => typeof n === "number").map((n) => `'${n}': () => ${create_client_import(manifest._.client.nodes?.[n], url)}`).join(",\n ");
|
|
1423
|
+
return [
|
|
1424
|
+
`{
|
|
1425
|
+
id: ${s(route.id)}`,
|
|
1426
|
+
`errors: ${s(route.errors)}`,
|
|
1427
|
+
`layouts: ${s(route.layouts)}`,
|
|
1428
|
+
`leaf: ${s(route.leaf)}`,
|
|
1429
|
+
`nodes: {
|
|
1430
|
+
${nodes}
|
|
1431
|
+
}
|
|
1432
|
+
}`
|
|
1433
|
+
].join(",\n ");
|
|
1434
|
+
}
|
|
1435
|
+
function create_client_import(import_path, url) {
|
|
1436
|
+
if (!import_path) return "Promise.resolve({})";
|
|
1437
|
+
if (import_path[0] === "/") {
|
|
1438
|
+
return `import('${import_path}')`;
|
|
1439
|
+
}
|
|
1440
|
+
if (assets !== "") {
|
|
1441
|
+
return `import('${assets}/${import_path}')`;
|
|
1442
|
+
}
|
|
1443
|
+
let path = get_relative_path(url.pathname, `${base}/${import_path}`);
|
|
1444
|
+
if (path[0] !== ".") path = `./${path}`;
|
|
1445
|
+
return `import('${path}')`;
|
|
1446
|
+
}
|
|
1447
|
+
async function resolve_route(resolved_path, url, manifest) {
|
|
1448
|
+
if (!manifest._.client.routes) {
|
|
1449
|
+
return text("Server-side route resolution disabled", { status: 400 });
|
|
1450
|
+
}
|
|
1451
|
+
const matchers = await manifest._.matchers();
|
|
1452
|
+
const result = find_route(resolved_path, manifest._.client.routes, matchers);
|
|
1453
|
+
return create_server_routing_response(result?.route ?? null, result?.params ?? {}, url, manifest).response;
|
|
1454
|
+
}
|
|
1455
|
+
function create_server_routing_response(route, params, url, manifest) {
|
|
1456
|
+
const headers2 = new Headers({
|
|
1457
|
+
"content-type": "application/javascript; charset=utf-8"
|
|
1458
|
+
});
|
|
1459
|
+
if (route) {
|
|
1460
|
+
const csr_route = generate_route_object(route, url, manifest);
|
|
1461
|
+
const body2 = `${create_css_import(route, url, manifest)}
|
|
1462
|
+
export const route = ${csr_route}; export const params = ${JSON.stringify(params)};`;
|
|
1463
|
+
return { response: text(body2, { headers: headers2 }), body: body2 };
|
|
1464
|
+
} else {
|
|
1465
|
+
return { response: text("", { headers: headers2 }), body: "" };
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
function create_css_import(route, url, manifest) {
|
|
1469
|
+
const { errors, layouts, leaf } = route;
|
|
1470
|
+
let css = "";
|
|
1471
|
+
for (const node of [...errors, ...layouts.map((l) => l?.[1]), leaf[1]]) {
|
|
1472
|
+
if (typeof node !== "number") continue;
|
|
1473
|
+
const node_css = manifest._.client.css?.[node];
|
|
1474
|
+
for (const css_path of node_css ?? []) {
|
|
1475
|
+
css += `'${assets || base}/${css_path}',`;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
if (!css) return "";
|
|
1479
|
+
return `${create_client_import(
|
|
1480
|
+
/** @type {string} */
|
|
1481
|
+
manifest._.client.start,
|
|
1482
|
+
url
|
|
1483
|
+
)}.then(x => x.load_css([${css}]));`;
|
|
1484
|
+
}
|
|
1485
|
+
const updated = {
|
|
1486
|
+
...readable(false),
|
|
1487
|
+
check: () => false
|
|
1488
|
+
};
|
|
1489
|
+
async function render_response({
|
|
1490
|
+
branch,
|
|
1491
|
+
fetched,
|
|
1492
|
+
options: options2,
|
|
1493
|
+
manifest,
|
|
1494
|
+
state,
|
|
1495
|
+
page_config,
|
|
1496
|
+
status,
|
|
1497
|
+
error: error2 = null,
|
|
1498
|
+
event,
|
|
1499
|
+
event_state,
|
|
1500
|
+
resolve_opts,
|
|
1501
|
+
action_result,
|
|
1502
|
+
data_serializer,
|
|
1503
|
+
error_components
|
|
1504
|
+
}) {
|
|
1505
|
+
if (state.prerendering) {
|
|
1506
|
+
if (options2.csp.mode === "nonce") {
|
|
1507
|
+
throw new Error('Cannot use prerendering if config.kit.csp.mode === "nonce"');
|
|
1508
|
+
}
|
|
1509
|
+
if (options2.app_template_contains_nonce) {
|
|
1510
|
+
throw new Error("Cannot use prerendering if page template contains %sveltekit.nonce%");
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
const { client } = manifest._;
|
|
1514
|
+
const modulepreloads = new Set(client.imports);
|
|
1515
|
+
const stylesheets = new Set(client.stylesheets);
|
|
1516
|
+
const fonts = new Set(client.fonts);
|
|
1517
|
+
const link_headers = /* @__PURE__ */ new Set();
|
|
1518
|
+
const inline_styles = /* @__PURE__ */ new Map();
|
|
1519
|
+
let rendered;
|
|
1520
|
+
const form_value = action_result?.type === "success" || action_result?.type === "failure" ? action_result.data ?? null : null;
|
|
1521
|
+
let base$1 = base;
|
|
1522
|
+
let assets$1 = assets;
|
|
1523
|
+
let base_expression = s(base);
|
|
1524
|
+
const csp = new Csp(options2.csp, {
|
|
1525
|
+
prerender: !!state.prerendering
|
|
1526
|
+
});
|
|
1527
|
+
{
|
|
1528
|
+
if (!state.prerendering?.fallback) {
|
|
1529
|
+
const segments = event.url.pathname.slice(base.length).split("/").slice(2);
|
|
1530
|
+
base$1 = segments.map(() => "..").join("/") || ".";
|
|
1531
|
+
base_expression = `new URL(${s(base$1)}, location).pathname.slice(0, -1)`;
|
|
1532
|
+
if (!assets || assets[0] === "/" && assets !== SVELTE_KIT_ASSETS) {
|
|
1533
|
+
assets$1 = base$1;
|
|
1534
|
+
}
|
|
1535
|
+
} else if (options2.hash_routing) {
|
|
1536
|
+
base_expression = "new URL('.', location).pathname.slice(0, -1)";
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
if (page_config.ssr) {
|
|
1540
|
+
const props = {
|
|
1541
|
+
stores: {
|
|
1542
|
+
page: writable(null),
|
|
1543
|
+
navigating: writable(null),
|
|
1544
|
+
updated
|
|
1545
|
+
},
|
|
1546
|
+
constructors: await Promise.all(
|
|
1547
|
+
branch.map(({ node }) => {
|
|
1548
|
+
if (!node.component) {
|
|
1549
|
+
throw new Error(`Missing +page.svelte component for route ${event.route.id}`);
|
|
1550
|
+
}
|
|
1551
|
+
return node.component();
|
|
1552
|
+
})
|
|
1553
|
+
),
|
|
1554
|
+
form: form_value
|
|
1555
|
+
};
|
|
1556
|
+
if (error_components) {
|
|
1557
|
+
if (error2) {
|
|
1558
|
+
props.error = error2;
|
|
1559
|
+
}
|
|
1560
|
+
props.errors = error_components;
|
|
1561
|
+
}
|
|
1562
|
+
let data2 = {};
|
|
1563
|
+
for (let i = 0; i < branch.length; i += 1) {
|
|
1564
|
+
data2 = { ...data2, ...branch[i].data };
|
|
1565
|
+
props[`data_${i}`] = data2;
|
|
1566
|
+
}
|
|
1567
|
+
props.page = {
|
|
1568
|
+
error: error2,
|
|
1569
|
+
params: (
|
|
1570
|
+
/** @type {Record<string, any>} */
|
|
1571
|
+
event.params
|
|
1572
|
+
),
|
|
1573
|
+
route: event.route,
|
|
1574
|
+
status,
|
|
1575
|
+
url: event.url,
|
|
1576
|
+
data: data2,
|
|
1577
|
+
form: form_value,
|
|
1578
|
+
state: {}
|
|
1579
|
+
};
|
|
1580
|
+
const render_opts = {
|
|
1581
|
+
context: /* @__PURE__ */ new Map([
|
|
1582
|
+
[
|
|
1583
|
+
"__request__",
|
|
1584
|
+
{
|
|
1585
|
+
page: props.page
|
|
1586
|
+
}
|
|
1587
|
+
]
|
|
1588
|
+
]),
|
|
1589
|
+
csp: csp.script_needs_nonce ? { nonce: csp.nonce } : { hash: csp.script_needs_hash },
|
|
1590
|
+
transformError: error_components ? (
|
|
1591
|
+
/** @param {unknown} e */
|
|
1592
|
+
async (e) => {
|
|
1593
|
+
if (isRedirect(e)) {
|
|
1594
|
+
throw e;
|
|
1595
|
+
}
|
|
1596
|
+
const transformed2 = await handle_error_and_jsonify(event, event_state, options2, e);
|
|
1597
|
+
props.page.error = props.error = error2 = transformed2;
|
|
1598
|
+
props.page.status = status = get_status(e);
|
|
1599
|
+
return transformed2;
|
|
1600
|
+
}
|
|
1601
|
+
) : void 0
|
|
1602
|
+
};
|
|
1603
|
+
try {
|
|
1604
|
+
if (BROWSER) ;
|
|
1605
|
+
const state2 = { ...event_state, is_in_render: true };
|
|
1606
|
+
rendered = await with_request_store({ event, state: state2 }, async () => {
|
|
1607
|
+
if (relative) override({ base: base$1, assets: assets$1 });
|
|
1608
|
+
const maybe_promise = options2.root.render(props, render_opts);
|
|
1609
|
+
const rendered2 = options2.async && "then" in maybe_promise ? (
|
|
1610
|
+
/** @type {ReturnType<typeof options.root.render> & Promise<any>} */
|
|
1611
|
+
maybe_promise.then((r) => r)
|
|
1612
|
+
) : maybe_promise;
|
|
1613
|
+
if (options2.async) {
|
|
1614
|
+
reset();
|
|
1615
|
+
}
|
|
1616
|
+
const { head: head2, html: html2, css, hashes } = (
|
|
1617
|
+
/** @type {ReturnType<typeof options.root.render>} */
|
|
1618
|
+
options2.async ? await rendered2 : rendered2
|
|
1619
|
+
);
|
|
1620
|
+
if (hashes) {
|
|
1621
|
+
csp.add_script_hashes(hashes.script);
|
|
1622
|
+
}
|
|
1623
|
+
return { head: head2, html: html2, css, hashes };
|
|
1624
|
+
});
|
|
1625
|
+
} finally {
|
|
1626
|
+
reset();
|
|
1627
|
+
}
|
|
1628
|
+
} else {
|
|
1629
|
+
rendered = { head: "", html: "", css: { code: "", map: null }, hashes: { script: [] } };
|
|
1630
|
+
}
|
|
1631
|
+
for (const { node } of branch) {
|
|
1632
|
+
for (const url of node.imports) modulepreloads.add(url);
|
|
1633
|
+
for (const url of node.stylesheets) stylesheets.add(url);
|
|
1634
|
+
for (const url of node.fonts) fonts.add(url);
|
|
1635
|
+
if (node.inline_styles && !client.inline) {
|
|
1636
|
+
Object.entries(await node.inline_styles()).forEach(([filename, css]) => {
|
|
1637
|
+
if (typeof css === "string") {
|
|
1638
|
+
inline_styles.set(filename, css);
|
|
1639
|
+
return;
|
|
1640
|
+
}
|
|
1641
|
+
inline_styles.set(filename, css(`${assets$1}/${app_dir}/immutable/assets`, assets$1));
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
const head = new Head(rendered.head, !!state.prerendering);
|
|
1646
|
+
let body2 = rendered.html;
|
|
1647
|
+
const prefixed = (path) => {
|
|
1648
|
+
if (path.startsWith("/")) {
|
|
1649
|
+
return base + path;
|
|
1650
|
+
}
|
|
1651
|
+
return `${assets$1}/${path}`;
|
|
1652
|
+
};
|
|
1653
|
+
const style = client.inline ? client.inline?.style : Array.from(inline_styles.values()).join("\n");
|
|
1654
|
+
if (style) {
|
|
1655
|
+
const attributes = [];
|
|
1656
|
+
if (csp.style_needs_nonce) attributes.push(`nonce="${csp.nonce}"`);
|
|
1657
|
+
csp.add_style(style);
|
|
1658
|
+
head.add_style(style, attributes);
|
|
1659
|
+
}
|
|
1660
|
+
for (const dep of stylesheets) {
|
|
1661
|
+
const path = prefixed(dep);
|
|
1662
|
+
const attributes = ['rel="stylesheet"'];
|
|
1663
|
+
if (inline_styles.has(dep)) {
|
|
1664
|
+
attributes.push("disabled", 'media="(max-width: 0)"');
|
|
1665
|
+
} else {
|
|
1666
|
+
if (resolve_opts.preload({ type: "css", path })) {
|
|
1667
|
+
link_headers.add(`<${encodeURI(path)}>; rel="preload"; as="style"; nopush`);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
head.add_stylesheet(path, attributes);
|
|
1671
|
+
}
|
|
1672
|
+
for (const dep of fonts) {
|
|
1673
|
+
const path = prefixed(dep);
|
|
1674
|
+
if (resolve_opts.preload({ type: "font", path })) {
|
|
1675
|
+
const ext = dep.slice(dep.lastIndexOf(".") + 1);
|
|
1676
|
+
head.add_link_tag(path, ['rel="preload"', 'as="font"', `type="font/${ext}"`, "crossorigin"]);
|
|
1677
|
+
link_headers.add(
|
|
1678
|
+
`<${encodeURI(path)}>; rel="preload"; as="font"; type="font/${ext}"; crossorigin; nopush`
|
|
1679
|
+
);
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
const global = get_global_name(options2);
|
|
1683
|
+
const { data, chunks } = data_serializer.get_data(csp);
|
|
1684
|
+
if (page_config.ssr && page_config.csr) {
|
|
1685
|
+
body2 += `
|
|
1686
|
+
${fetched.map(
|
|
1687
|
+
(item) => serialize_data(item, resolve_opts.filterSerializedResponseHeaders, !!state.prerendering)
|
|
1688
|
+
).join("\n ")}`;
|
|
1689
|
+
}
|
|
1690
|
+
if (page_config.csr) {
|
|
1691
|
+
const route = manifest._.client.routes?.find((r) => r.id === event.route.id) ?? null;
|
|
1692
|
+
if (client.uses_env_dynamic_public && state.prerendering) {
|
|
1693
|
+
modulepreloads.add(`${app_dir}/env.js`);
|
|
1694
|
+
}
|
|
1695
|
+
if (!client.inline) {
|
|
1696
|
+
const included_modulepreloads = Array.from(modulepreloads, (dep) => prefixed(dep)).filter(
|
|
1697
|
+
(path) => resolve_opts.preload({ type: "js", path })
|
|
1698
|
+
);
|
|
1699
|
+
for (const path of included_modulepreloads) {
|
|
1700
|
+
link_headers.add(`<${encodeURI(path)}>; rel="modulepreload"; nopush`);
|
|
1701
|
+
if (options2.preload_strategy !== "modulepreload") {
|
|
1702
|
+
head.add_script_preload(path);
|
|
1703
|
+
} else {
|
|
1704
|
+
head.add_link_tag(path, ['rel="modulepreload"']);
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
if (manifest._.client.routes && state.prerendering && !state.prerendering.fallback) {
|
|
1709
|
+
const pathname = add_resolution_suffix(event.url.pathname);
|
|
1710
|
+
state.prerendering.dependencies.set(
|
|
1711
|
+
pathname,
|
|
1712
|
+
create_server_routing_response(route, event.params, new URL(pathname, event.url), manifest)
|
|
1713
|
+
);
|
|
1714
|
+
}
|
|
1715
|
+
const blocks = [];
|
|
1716
|
+
const load_env_eagerly = client.uses_env_dynamic_public && state.prerendering;
|
|
1717
|
+
const properties = [`base: ${base_expression}`];
|
|
1718
|
+
if (assets) {
|
|
1719
|
+
properties.push(`assets: ${s(assets)}`);
|
|
1720
|
+
}
|
|
1721
|
+
if (client.uses_env_dynamic_public) {
|
|
1722
|
+
properties.push(`env: ${load_env_eagerly ? "null" : s(public_env)}`);
|
|
1723
|
+
}
|
|
1724
|
+
if (chunks) {
|
|
1725
|
+
blocks.push("const deferred = new Map();");
|
|
1726
|
+
properties.push(`defer: (id) => new Promise((fulfil, reject) => {
|
|
1727
|
+
deferred.set(id, { fulfil, reject });
|
|
1728
|
+
})`);
|
|
1729
|
+
let app_declaration = "";
|
|
1730
|
+
if (Object.keys(options2.hooks.transport).length > 0) {
|
|
1731
|
+
if (client.inline) {
|
|
1732
|
+
app_declaration = `const app = __sveltekit_${options2.version_hash}.app.app;`;
|
|
1733
|
+
} else if (client.app) {
|
|
1734
|
+
app_declaration = `const app = await import(${s(prefixed(client.app))});`;
|
|
1735
|
+
} else {
|
|
1736
|
+
app_declaration = `const { app } = await import(${s(prefixed(client.start))});`;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
const prelude = app_declaration ? `${app_declaration}
|
|
1740
|
+
const [data, error] = fn(app);` : `const [data, error] = fn();`;
|
|
1741
|
+
properties.push(`resolve: async (id, fn) => {
|
|
1742
|
+
${prelude}
|
|
1743
|
+
|
|
1744
|
+
const try_to_resolve = () => {
|
|
1745
|
+
if (!deferred.has(id)) {
|
|
1746
|
+
setTimeout(try_to_resolve, 0);
|
|
1747
|
+
return;
|
|
1748
|
+
}
|
|
1749
|
+
const { fulfil, reject } = deferred.get(id);
|
|
1750
|
+
deferred.delete(id);
|
|
1751
|
+
if (error) reject(error);
|
|
1752
|
+
else fulfil(data);
|
|
1753
|
+
}
|
|
1754
|
+
try_to_resolve();
|
|
1755
|
+
}`);
|
|
1756
|
+
}
|
|
1757
|
+
blocks.push(`${global} = {
|
|
1758
|
+
${properties.join(",\n ")}
|
|
1759
|
+
};`);
|
|
1760
|
+
const args = ["element"];
|
|
1761
|
+
blocks.push("const element = document.currentScript.parentElement;");
|
|
1762
|
+
if (page_config.ssr) {
|
|
1763
|
+
const serialized = { form: "null", error: "null" };
|
|
1764
|
+
if (form_value) {
|
|
1765
|
+
serialized.form = uneval_action_response(
|
|
1766
|
+
form_value,
|
|
1767
|
+
/** @type {string} */
|
|
1768
|
+
event.route.id,
|
|
1769
|
+
options2.hooks.transport
|
|
1770
|
+
);
|
|
1771
|
+
}
|
|
1772
|
+
if (error2) {
|
|
1773
|
+
serialized.error = uneval(error2);
|
|
1774
|
+
}
|
|
1775
|
+
const hydrate = [
|
|
1776
|
+
`node_ids: [${branch.map(({ node }) => node.index).join(", ")}]`,
|
|
1777
|
+
`data: ${data}`,
|
|
1778
|
+
`form: ${serialized.form}`,
|
|
1779
|
+
`error: ${serialized.error}`
|
|
1780
|
+
];
|
|
1781
|
+
if (status !== 200) {
|
|
1782
|
+
hydrate.push(`status: ${status}`);
|
|
1783
|
+
}
|
|
1784
|
+
if (manifest._.client.routes) {
|
|
1785
|
+
if (route) {
|
|
1786
|
+
const stringified = generate_route_object(route, event.url, manifest).replaceAll(
|
|
1787
|
+
"\n",
|
|
1788
|
+
"\n "
|
|
1789
|
+
);
|
|
1790
|
+
hydrate.push(`params: ${uneval(event.params)}`, `server_route: ${stringified}`);
|
|
1791
|
+
}
|
|
1792
|
+
} else if (options2.embedded) {
|
|
1793
|
+
hydrate.push(`params: ${uneval(event.params)}`, `route: ${s(event.route)}`);
|
|
1794
|
+
}
|
|
1795
|
+
const indent = " ".repeat(load_env_eagerly ? 7 : 6);
|
|
1796
|
+
args.push(`{
|
|
1797
|
+
${indent} ${hydrate.join(`,
|
|
1798
|
+
${indent} `)}
|
|
1799
|
+
${indent}}`);
|
|
1800
|
+
}
|
|
1801
|
+
const { remote } = event_state;
|
|
1802
|
+
let serialized_query_data = "";
|
|
1803
|
+
let serialized_prerender_data = "";
|
|
1804
|
+
if (remote.data) {
|
|
1805
|
+
const query = {};
|
|
1806
|
+
const prerender = {};
|
|
1807
|
+
for (const [internals, cache] of remote.data) {
|
|
1808
|
+
if (!internals.id) continue;
|
|
1809
|
+
for (const key2 in cache) {
|
|
1810
|
+
const entry = cache[key2];
|
|
1811
|
+
if (!entry.serialize) continue;
|
|
1812
|
+
const remote_key = create_remote_key(internals.id, key2);
|
|
1813
|
+
const store = internals.type === "prerender" ? prerender : query;
|
|
1814
|
+
if (event_state.remote.refreshes?.[remote_key] !== void 0) {
|
|
1815
|
+
store[remote_key] = await entry.data;
|
|
1816
|
+
} else {
|
|
1817
|
+
const result = await Promise.race([
|
|
1818
|
+
Promise.resolve(entry.data).then(
|
|
1819
|
+
(v) => (
|
|
1820
|
+
/** @type {const} */
|
|
1821
|
+
{ settled: true, value: v }
|
|
1822
|
+
),
|
|
1823
|
+
(e) => (
|
|
1824
|
+
/** @type {const} */
|
|
1825
|
+
{ settled: true, error: e }
|
|
1826
|
+
)
|
|
1827
|
+
),
|
|
1828
|
+
new Promise((resolve2) => {
|
|
1829
|
+
queueMicrotask(() => resolve2(
|
|
1830
|
+
/** @type {const} */
|
|
1831
|
+
{ settled: false }
|
|
1832
|
+
));
|
|
1833
|
+
})
|
|
1834
|
+
]);
|
|
1835
|
+
if (result.settled) {
|
|
1836
|
+
if ("error" in result) throw result.error;
|
|
1837
|
+
store[remote_key] = result.value;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
const replacer = (thing) => {
|
|
1843
|
+
for (const key2 in options2.hooks.transport) {
|
|
1844
|
+
const encoded = options2.hooks.transport[key2].encode(thing);
|
|
1845
|
+
if (encoded) {
|
|
1846
|
+
return `app.decode('${key2}', ${uneval(encoded, replacer)})`;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
};
|
|
1850
|
+
if (Object.keys(query).length > 0) {
|
|
1851
|
+
serialized_query_data = `${global}.query = ${uneval(query, replacer)};
|
|
1852
|
+
|
|
1853
|
+
`;
|
|
1854
|
+
}
|
|
1855
|
+
if (Object.keys(prerender).length > 0) {
|
|
1856
|
+
serialized_prerender_data = `${global}.prerender = ${uneval(prerender, replacer)};
|
|
1857
|
+
|
|
1858
|
+
`;
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
const serialized_remote_data = `${serialized_query_data}${serialized_prerender_data}`;
|
|
1862
|
+
const boot = client.inline ? `${client.inline.script}
|
|
1863
|
+
|
|
1864
|
+
${serialized_remote_data}${global}.app.start(${args.join(", ")});` : client.app ? `Promise.all([
|
|
1865
|
+
import(${s(prefixed(client.start))}),
|
|
1866
|
+
import(${s(prefixed(client.app))})
|
|
1867
|
+
]).then(([kit, app]) => {
|
|
1868
|
+
${serialized_remote_data}kit.start(app, ${args.join(", ")});
|
|
1869
|
+
});` : `import(${s(prefixed(client.start))}).then((app) => {
|
|
1870
|
+
${serialized_remote_data}app.start(${args.join(", ")})
|
|
1871
|
+
});`;
|
|
1872
|
+
if (load_env_eagerly) {
|
|
1873
|
+
blocks.push(`import(${s(`${base$1}/${app_dir}/env.js`)}).then(({ env }) => {
|
|
1874
|
+
${global}.env = env;
|
|
1875
|
+
|
|
1876
|
+
${boot.replace(/\n/g, "\n ")}
|
|
1877
|
+
});`);
|
|
1878
|
+
} else {
|
|
1879
|
+
blocks.push(boot);
|
|
1880
|
+
}
|
|
1881
|
+
if (options2.service_worker) {
|
|
1882
|
+
let opts = "";
|
|
1883
|
+
if (options2.service_worker_options != null) {
|
|
1884
|
+
const service_worker_options = { ...options2.service_worker_options };
|
|
1885
|
+
opts = `, ${s(service_worker_options)}`;
|
|
1886
|
+
}
|
|
1887
|
+
blocks.push(`if ('serviceWorker' in navigator) {
|
|
1888
|
+
const script_url = '${prefixed("service-worker.js")}';
|
|
1889
|
+
const policy = globalThis?.window?.trustedTypes?.createPolicy(
|
|
1890
|
+
'sveltekit-trusted-url',
|
|
1891
|
+
{ createScriptURL(url) { return url; } }
|
|
1892
|
+
);
|
|
1893
|
+
const sanitised = policy?.createScriptURL(script_url) ?? script_url;
|
|
1894
|
+
addEventListener('load', function () {
|
|
1895
|
+
navigator.serviceWorker.register(sanitised${opts});
|
|
1896
|
+
});
|
|
1897
|
+
}`);
|
|
1898
|
+
}
|
|
1899
|
+
const init_app = `
|
|
1900
|
+
{
|
|
1901
|
+
${blocks.join("\n\n ")}
|
|
1902
|
+
}
|
|
1903
|
+
`;
|
|
1904
|
+
csp.add_script(init_app);
|
|
1905
|
+
body2 += `
|
|
1906
|
+
<script${csp.script_needs_nonce ? ` nonce="${csp.nonce}"` : ""}>${init_app}<\/script>
|
|
1907
|
+
`;
|
|
1908
|
+
}
|
|
1909
|
+
const headers2 = new Headers({
|
|
1910
|
+
"x-sveltekit-page": "true",
|
|
1911
|
+
"content-type": "text/html"
|
|
1912
|
+
});
|
|
1913
|
+
if (state.prerendering) {
|
|
1914
|
+
const csp_headers = csp.csp_provider.get_meta();
|
|
1915
|
+
if (csp_headers) {
|
|
1916
|
+
head.add_http_equiv(csp_headers);
|
|
1917
|
+
}
|
|
1918
|
+
if (state.prerendering.cache) {
|
|
1919
|
+
head.add_http_equiv(
|
|
1920
|
+
`<meta http-equiv="cache-control" content="${state.prerendering.cache}">`
|
|
1921
|
+
);
|
|
1922
|
+
}
|
|
1923
|
+
} else {
|
|
1924
|
+
const csp_header = csp.csp_provider.get_header();
|
|
1925
|
+
if (csp_header) {
|
|
1926
|
+
headers2.set("content-security-policy", csp_header);
|
|
1927
|
+
}
|
|
1928
|
+
const report_only_header = csp.report_only_provider.get_header();
|
|
1929
|
+
if (report_only_header) {
|
|
1930
|
+
headers2.set("content-security-policy-report-only", report_only_header);
|
|
1931
|
+
}
|
|
1932
|
+
if (link_headers.size) {
|
|
1933
|
+
headers2.set("link", Array.from(link_headers).join(", "));
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
const html = options2.templates.app({
|
|
1937
|
+
head: head.build(),
|
|
1938
|
+
body: body2,
|
|
1939
|
+
assets: assets$1,
|
|
1940
|
+
nonce: (
|
|
1941
|
+
/** @type {string} */
|
|
1942
|
+
csp.nonce
|
|
1943
|
+
),
|
|
1944
|
+
env: public_env
|
|
1945
|
+
});
|
|
1946
|
+
const transformed = await resolve_opts.transformPageChunk({
|
|
1947
|
+
html,
|
|
1948
|
+
done: true
|
|
1949
|
+
}) || "";
|
|
1950
|
+
if (!chunks) {
|
|
1951
|
+
headers2.set("etag", `"${hash(transformed)}"`);
|
|
1952
|
+
}
|
|
1953
|
+
return !chunks ? text(transformed, {
|
|
1954
|
+
status,
|
|
1955
|
+
headers: headers2
|
|
1956
|
+
}) : new Response(
|
|
1957
|
+
new ReadableStream({
|
|
1958
|
+
async start(controller) {
|
|
1959
|
+
controller.enqueue(text_encoder.encode(transformed + "\n"));
|
|
1960
|
+
for await (const chunk of chunks) {
|
|
1961
|
+
if (chunk.length) controller.enqueue(text_encoder.encode(chunk));
|
|
1962
|
+
}
|
|
1963
|
+
controller.close();
|
|
1964
|
+
},
|
|
1965
|
+
type: "bytes"
|
|
1966
|
+
}),
|
|
1967
|
+
{
|
|
1968
|
+
headers: headers2
|
|
1969
|
+
}
|
|
1970
|
+
);
|
|
1971
|
+
}
|
|
1972
|
+
class Head {
|
|
1973
|
+
#rendered;
|
|
1974
|
+
#prerendering;
|
|
1975
|
+
/** @type {string[]} */
|
|
1976
|
+
#http_equiv = [];
|
|
1977
|
+
/** @type {string[]} */
|
|
1978
|
+
#link_tags = [];
|
|
1979
|
+
/** @type {string[]} */
|
|
1980
|
+
#script_preloads = [];
|
|
1981
|
+
/** @type {string[]} */
|
|
1982
|
+
#style_tags = [];
|
|
1983
|
+
/** @type {string[]} */
|
|
1984
|
+
#stylesheet_links = [];
|
|
1985
|
+
/**
|
|
1986
|
+
* @param {string} rendered
|
|
1987
|
+
* @param {boolean} prerendering
|
|
1988
|
+
*/
|
|
1989
|
+
constructor(rendered, prerendering) {
|
|
1990
|
+
this.#rendered = rendered;
|
|
1991
|
+
this.#prerendering = prerendering;
|
|
1992
|
+
}
|
|
1993
|
+
build() {
|
|
1994
|
+
return [
|
|
1995
|
+
...this.#http_equiv,
|
|
1996
|
+
...this.#link_tags,
|
|
1997
|
+
...this.#script_preloads,
|
|
1998
|
+
this.#rendered,
|
|
1999
|
+
...this.#style_tags,
|
|
2000
|
+
...this.#stylesheet_links
|
|
2001
|
+
].join("\n ");
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* @param {string} style
|
|
2005
|
+
* @param {string[]} attributes
|
|
2006
|
+
*/
|
|
2007
|
+
add_style(style, attributes) {
|
|
2008
|
+
this.#style_tags.push(
|
|
2009
|
+
`<style${attributes.length ? " " + attributes.join(" ") : ""}>${style}</style>`
|
|
2010
|
+
);
|
|
2011
|
+
}
|
|
2012
|
+
/**
|
|
2013
|
+
* @param {string} href
|
|
2014
|
+
* @param {string[]} attributes
|
|
2015
|
+
*/
|
|
2016
|
+
add_stylesheet(href, attributes) {
|
|
2017
|
+
this.#stylesheet_links.push(`<link href="${href}" ${attributes.join(" ")}>`);
|
|
2018
|
+
}
|
|
2019
|
+
/** @param {string} href */
|
|
2020
|
+
add_script_preload(href) {
|
|
2021
|
+
this.#script_preloads.push(
|
|
2022
|
+
`<link rel="preload" as="script" crossorigin="anonymous" href="${href}">`
|
|
2023
|
+
);
|
|
2024
|
+
}
|
|
2025
|
+
/**
|
|
2026
|
+
* @param {string} href
|
|
2027
|
+
* @param {string[]} attributes
|
|
2028
|
+
*/
|
|
2029
|
+
add_link_tag(href, attributes) {
|
|
2030
|
+
if (!this.#prerendering) return;
|
|
2031
|
+
this.#link_tags.push(`<link href="${href}" ${attributes.join(" ")}>`);
|
|
2032
|
+
}
|
|
2033
|
+
/** @param {string} tag */
|
|
2034
|
+
add_http_equiv(tag) {
|
|
2035
|
+
if (!this.#prerendering) return;
|
|
2036
|
+
this.#http_equiv.push(tag);
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
class PageNodes {
|
|
2040
|
+
/** All layout nodes and the page node, if any */
|
|
2041
|
+
data;
|
|
2042
|
+
/**
|
|
2043
|
+
* @param {Array<import('types').SSRNode | undefined>} nodes
|
|
2044
|
+
*/
|
|
2045
|
+
constructor(nodes) {
|
|
2046
|
+
this.data = nodes;
|
|
2047
|
+
}
|
|
2048
|
+
layouts() {
|
|
2049
|
+
return this.data.slice(0, -1);
|
|
2050
|
+
}
|
|
2051
|
+
page() {
|
|
2052
|
+
return this.data.at(-1);
|
|
2053
|
+
}
|
|
2054
|
+
validate() {
|
|
2055
|
+
for (const layout of this.layouts()) {
|
|
2056
|
+
if (layout) {
|
|
2057
|
+
validate_layout_server_exports(
|
|
2058
|
+
layout.server,
|
|
2059
|
+
/** @type {string} */
|
|
2060
|
+
layout.server_id
|
|
2061
|
+
);
|
|
2062
|
+
validate_layout_exports(
|
|
2063
|
+
layout.universal,
|
|
2064
|
+
/** @type {string} */
|
|
2065
|
+
layout.universal_id
|
|
2066
|
+
);
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
const page = this.page();
|
|
2070
|
+
if (page) {
|
|
2071
|
+
validate_page_server_exports(
|
|
2072
|
+
page.server,
|
|
2073
|
+
/** @type {string} */
|
|
2074
|
+
page.server_id
|
|
2075
|
+
);
|
|
2076
|
+
validate_page_exports(
|
|
2077
|
+
page.universal,
|
|
2078
|
+
/** @type {string} */
|
|
2079
|
+
page.universal_id
|
|
2080
|
+
);
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* @template {'prerender' | 'ssr' | 'csr' | 'trailingSlash'} Option
|
|
2085
|
+
* @param {Option} option
|
|
2086
|
+
* @returns {Value | undefined}
|
|
2087
|
+
*/
|
|
2088
|
+
#get_option(option) {
|
|
2089
|
+
return this.data.reduce(
|
|
2090
|
+
(value, node) => {
|
|
2091
|
+
return node?.universal?.[option] ?? node?.server?.[option] ?? value;
|
|
2092
|
+
},
|
|
2093
|
+
/** @type {Value | undefined} */
|
|
2094
|
+
void 0
|
|
2095
|
+
);
|
|
2096
|
+
}
|
|
2097
|
+
csr() {
|
|
2098
|
+
return this.#get_option("csr") ?? true;
|
|
2099
|
+
}
|
|
2100
|
+
ssr() {
|
|
2101
|
+
return this.#get_option("ssr") ?? true;
|
|
2102
|
+
}
|
|
2103
|
+
prerender() {
|
|
2104
|
+
return this.#get_option("prerender") ?? false;
|
|
2105
|
+
}
|
|
2106
|
+
trailing_slash() {
|
|
2107
|
+
return this.#get_option("trailingSlash") ?? "never";
|
|
2108
|
+
}
|
|
2109
|
+
get_config() {
|
|
2110
|
+
let current2 = {};
|
|
2111
|
+
for (const node of this.data) {
|
|
2112
|
+
if (!node?.universal?.config && !node?.server?.config) continue;
|
|
2113
|
+
current2 = {
|
|
2114
|
+
...current2,
|
|
2115
|
+
// TODO: should we override the server config value with the universal value similar to other page options?
|
|
2116
|
+
...node?.universal?.config,
|
|
2117
|
+
...node?.server?.config
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2120
|
+
return Object.keys(current2).length ? current2 : void 0;
|
|
2121
|
+
}
|
|
2122
|
+
should_prerender_data() {
|
|
2123
|
+
return this.data.some(
|
|
2124
|
+
// prerender in case of trailingSlash because the client retrieves that value from the server
|
|
2125
|
+
(node) => node?.server?.load || node?.server?.trailingSlash !== void 0
|
|
2126
|
+
);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
async function respond_with_error({
|
|
2130
|
+
event,
|
|
2131
|
+
event_state,
|
|
2132
|
+
options: options2,
|
|
2133
|
+
manifest,
|
|
2134
|
+
state,
|
|
2135
|
+
status,
|
|
2136
|
+
error: error2,
|
|
2137
|
+
resolve_opts
|
|
2138
|
+
}) {
|
|
2139
|
+
if (event.request.headers.get("x-sveltekit-error")) {
|
|
2140
|
+
return static_error_page(
|
|
2141
|
+
options2,
|
|
2142
|
+
status,
|
|
2143
|
+
/** @type {Error} */
|
|
2144
|
+
error2.message
|
|
2145
|
+
);
|
|
2146
|
+
}
|
|
2147
|
+
const fetched = [];
|
|
2148
|
+
try {
|
|
2149
|
+
const branch = [];
|
|
2150
|
+
const default_layout = await manifest._.nodes[0]();
|
|
2151
|
+
const nodes = new PageNodes([default_layout]);
|
|
2152
|
+
const ssr = nodes.ssr();
|
|
2153
|
+
const csr = nodes.csr();
|
|
2154
|
+
const data_serializer = server_data_serializer(event, event_state, options2);
|
|
2155
|
+
if (ssr) {
|
|
2156
|
+
state.error = true;
|
|
2157
|
+
const server_data_promise = load_server_data({
|
|
2158
|
+
event,
|
|
2159
|
+
event_state,
|
|
2160
|
+
state,
|
|
2161
|
+
node: default_layout,
|
|
2162
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
2163
|
+
parent: async () => ({})
|
|
2164
|
+
});
|
|
2165
|
+
const server_data = await server_data_promise;
|
|
2166
|
+
data_serializer.add_node(0, server_data);
|
|
2167
|
+
const data = await load_data({
|
|
2168
|
+
event,
|
|
2169
|
+
event_state,
|
|
2170
|
+
fetched,
|
|
2171
|
+
node: default_layout,
|
|
2172
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
2173
|
+
parent: async () => ({}),
|
|
2174
|
+
resolve_opts,
|
|
2175
|
+
server_data_promise,
|
|
2176
|
+
state,
|
|
2177
|
+
csr
|
|
2178
|
+
});
|
|
2179
|
+
branch.push(
|
|
2180
|
+
{
|
|
2181
|
+
node: default_layout,
|
|
2182
|
+
server_data,
|
|
2183
|
+
data
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
node: await manifest._.nodes[1](),
|
|
2187
|
+
// 1 is always the root error
|
|
2188
|
+
data: null,
|
|
2189
|
+
server_data: null
|
|
2190
|
+
}
|
|
2191
|
+
);
|
|
2192
|
+
}
|
|
2193
|
+
return await render_response({
|
|
2194
|
+
options: options2,
|
|
2195
|
+
manifest,
|
|
2196
|
+
state,
|
|
2197
|
+
page_config: {
|
|
2198
|
+
ssr,
|
|
2199
|
+
csr
|
|
2200
|
+
},
|
|
2201
|
+
status,
|
|
2202
|
+
error: await handle_error_and_jsonify(event, event_state, options2, error2),
|
|
2203
|
+
branch,
|
|
2204
|
+
error_components: [],
|
|
2205
|
+
fetched,
|
|
2206
|
+
event,
|
|
2207
|
+
event_state,
|
|
2208
|
+
resolve_opts,
|
|
2209
|
+
data_serializer
|
|
2210
|
+
});
|
|
2211
|
+
} catch (e) {
|
|
2212
|
+
if (e instanceof Redirect) {
|
|
2213
|
+
return redirect_response(e.status, e.location);
|
|
2214
|
+
}
|
|
2215
|
+
return static_error_page(
|
|
2216
|
+
options2,
|
|
2217
|
+
get_status(e),
|
|
2218
|
+
(await handle_error_and_jsonify(event, event_state, options2, e)).message
|
|
2219
|
+
);
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
async function handle_remote_call(event, state, options2, manifest, id) {
|
|
2223
|
+
return record_span({
|
|
2224
|
+
name: "sveltekit.remote.call",
|
|
2225
|
+
attributes: {},
|
|
2226
|
+
fn: (current2) => {
|
|
2227
|
+
const traced_event = merge_tracing(event, current2);
|
|
2228
|
+
return with_request_store(
|
|
2229
|
+
{ event: traced_event, state },
|
|
2230
|
+
() => handle_remote_call_internal(traced_event, state, options2, manifest, id)
|
|
2231
|
+
);
|
|
2232
|
+
}
|
|
2233
|
+
});
|
|
2234
|
+
}
|
|
2235
|
+
async function handle_remote_call_internal(event, state, options2, manifest, id) {
|
|
2236
|
+
const [hash2, name, additional_args] = id.split("/");
|
|
2237
|
+
const remotes = manifest._.remotes;
|
|
2238
|
+
if (!remotes[hash2]) error(404);
|
|
2239
|
+
const module = await remotes[hash2]();
|
|
2240
|
+
const fn = module.default[name];
|
|
2241
|
+
if (!fn) error(404);
|
|
2242
|
+
const internals = fn.__;
|
|
2243
|
+
const transport = options2.hooks.transport;
|
|
2244
|
+
event.tracing.current.setAttributes({
|
|
2245
|
+
"sveltekit.remote.call.type": internals.type,
|
|
2246
|
+
"sveltekit.remote.call.name": internals.name
|
|
2247
|
+
});
|
|
2248
|
+
try {
|
|
2249
|
+
if (internals.type === "query_batch") {
|
|
2250
|
+
if (event.request.method !== "POST") {
|
|
2251
|
+
throw new SvelteKitError(
|
|
2252
|
+
405,
|
|
2253
|
+
"Method Not Allowed",
|
|
2254
|
+
`\`query.batch\` functions must be invoked via POST request, not ${event.request.method}`
|
|
2255
|
+
);
|
|
2256
|
+
}
|
|
2257
|
+
const { payloads } = await event.request.json();
|
|
2258
|
+
const args = await Promise.all(
|
|
2259
|
+
payloads.map((payload2) => parse_remote_arg(payload2, transport))
|
|
2260
|
+
);
|
|
2261
|
+
const results = await with_request_store(
|
|
2262
|
+
{ event, state },
|
|
2263
|
+
() => internals.run(args, options2)
|
|
2264
|
+
);
|
|
2265
|
+
return json(
|
|
2266
|
+
/** @type {RemoteFunctionResponse} */
|
|
2267
|
+
{
|
|
2268
|
+
type: "result",
|
|
2269
|
+
result: stringify(results, transport)
|
|
2270
|
+
}
|
|
2271
|
+
);
|
|
2272
|
+
}
|
|
2273
|
+
if (internals.type === "form") {
|
|
2274
|
+
if (event.request.method !== "POST") {
|
|
2275
|
+
throw new SvelteKitError(
|
|
2276
|
+
405,
|
|
2277
|
+
"Method Not Allowed",
|
|
2278
|
+
`\`form\` functions must be invoked via POST request, not ${event.request.method}`
|
|
2279
|
+
);
|
|
2280
|
+
}
|
|
2281
|
+
if (!is_form_content_type(event.request)) {
|
|
2282
|
+
throw new SvelteKitError(
|
|
2283
|
+
415,
|
|
2284
|
+
"Unsupported Media Type",
|
|
2285
|
+
`\`form\` functions expect form-encoded data — received ${event.request.headers.get(
|
|
2286
|
+
"content-type"
|
|
2287
|
+
)}`
|
|
2288
|
+
);
|
|
2289
|
+
}
|
|
2290
|
+
const { data: data2, meta, form_data } = await deserialize_binary_form(event.request);
|
|
2291
|
+
state.remote.requested = create_requested_map(meta.remote_refreshes);
|
|
2292
|
+
if (additional_args && !("id" in data2)) {
|
|
2293
|
+
data2.id = JSON.parse(decodeURIComponent(additional_args));
|
|
2294
|
+
}
|
|
2295
|
+
const fn2 = internals.fn;
|
|
2296
|
+
const result = await with_request_store({ event, state }, () => fn2(data2, meta, form_data));
|
|
2297
|
+
return json(
|
|
2298
|
+
/** @type {RemoteFunctionResponse} */
|
|
2299
|
+
{
|
|
2300
|
+
type: "result",
|
|
2301
|
+
result: stringify(result, transport),
|
|
2302
|
+
refreshes: result.issues ? void 0 : await serialize_refreshes()
|
|
2303
|
+
}
|
|
2304
|
+
);
|
|
2305
|
+
}
|
|
2306
|
+
if (internals.type === "command") {
|
|
2307
|
+
const { payload: payload2, refreshes } = await event.request.json();
|
|
2308
|
+
state.remote.requested = create_requested_map(refreshes);
|
|
2309
|
+
const arg = parse_remote_arg(payload2, transport);
|
|
2310
|
+
const data2 = await with_request_store({ event, state }, () => fn(arg));
|
|
2311
|
+
return json(
|
|
2312
|
+
/** @type {RemoteFunctionResponse} */
|
|
2313
|
+
{
|
|
2314
|
+
type: "result",
|
|
2315
|
+
result: stringify(data2, transport),
|
|
2316
|
+
refreshes: await serialize_refreshes()
|
|
2317
|
+
}
|
|
2318
|
+
);
|
|
2319
|
+
}
|
|
2320
|
+
const payload = internals.type === "prerender" ? additional_args : (
|
|
2321
|
+
/** @type {string} */
|
|
2322
|
+
// new URL(...) necessary because we're hiding the URL from the user in the event object
|
|
2323
|
+
new URL(event.request.url).searchParams.get("payload")
|
|
2324
|
+
);
|
|
2325
|
+
const data = await with_request_store(
|
|
2326
|
+
{ event, state },
|
|
2327
|
+
() => fn(parse_remote_arg(payload, transport))
|
|
2328
|
+
);
|
|
2329
|
+
return json(
|
|
2330
|
+
/** @type {RemoteFunctionResponse} */
|
|
2331
|
+
{
|
|
2332
|
+
type: "result",
|
|
2333
|
+
result: stringify(data, transport)
|
|
2334
|
+
}
|
|
2335
|
+
);
|
|
2336
|
+
} catch (error2) {
|
|
2337
|
+
if (error2 instanceof Redirect) {
|
|
2338
|
+
return json(
|
|
2339
|
+
/** @type {RemoteFunctionResponse} */
|
|
2340
|
+
{
|
|
2341
|
+
type: "redirect",
|
|
2342
|
+
location: error2.location,
|
|
2343
|
+
refreshes: await serialize_refreshes()
|
|
2344
|
+
}
|
|
2345
|
+
);
|
|
2346
|
+
}
|
|
2347
|
+
const status = error2 instanceof HttpError || error2 instanceof SvelteKitError ? error2.status : 500;
|
|
2348
|
+
return json(
|
|
2349
|
+
/** @type {RemoteFunctionResponse} */
|
|
2350
|
+
{
|
|
2351
|
+
type: "error",
|
|
2352
|
+
error: await handle_error_and_jsonify(event, state, options2, error2),
|
|
2353
|
+
status
|
|
2354
|
+
},
|
|
2355
|
+
{
|
|
2356
|
+
// By setting a non-200 during prerendering we fail the prerender process (unless handleHttpError handles it).
|
|
2357
|
+
// Errors at runtime will be passed to the client and are handled there
|
|
2358
|
+
status: state.prerendering ? status : void 0,
|
|
2359
|
+
headers: {
|
|
2360
|
+
"cache-control": "private, no-store"
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
);
|
|
2364
|
+
}
|
|
2365
|
+
async function serialize_refreshes() {
|
|
2366
|
+
const refreshes = state.remote.refreshes ?? {};
|
|
2367
|
+
const entries = Object.entries(refreshes);
|
|
2368
|
+
if (entries.length === 0) {
|
|
2369
|
+
return void 0;
|
|
2370
|
+
}
|
|
2371
|
+
const results = await Promise.all(
|
|
2372
|
+
entries.map(async ([key2, promise]) => {
|
|
2373
|
+
try {
|
|
2374
|
+
return [key2, { type: "result", data: await promise }];
|
|
2375
|
+
} catch (error2) {
|
|
2376
|
+
const status = error2 instanceof HttpError || error2 instanceof SvelteKitError ? error2.status : 500;
|
|
2377
|
+
return [
|
|
2378
|
+
key2,
|
|
2379
|
+
{
|
|
2380
|
+
type: "error",
|
|
2381
|
+
status,
|
|
2382
|
+
error: await handle_error_and_jsonify(event, state, options2, error2)
|
|
2383
|
+
}
|
|
2384
|
+
];
|
|
2385
|
+
}
|
|
2386
|
+
})
|
|
2387
|
+
);
|
|
2388
|
+
return stringify(Object.fromEntries(results), transport);
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2391
|
+
function create_requested_map(refreshes) {
|
|
2392
|
+
const requested = /* @__PURE__ */ new Map();
|
|
2393
|
+
for (const key2 of refreshes ?? []) {
|
|
2394
|
+
const parts = split_remote_key(key2);
|
|
2395
|
+
const existing = requested.get(parts.id);
|
|
2396
|
+
if (existing) {
|
|
2397
|
+
existing.push(parts.payload);
|
|
2398
|
+
} else {
|
|
2399
|
+
requested.set(parts.id, [parts.payload]);
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
return requested;
|
|
2403
|
+
}
|
|
2404
|
+
async function handle_remote_form_post(event, state, manifest, id) {
|
|
2405
|
+
return record_span({
|
|
2406
|
+
name: "sveltekit.remote.form.post",
|
|
2407
|
+
attributes: {},
|
|
2408
|
+
fn: (current2) => {
|
|
2409
|
+
const traced_event = merge_tracing(event, current2);
|
|
2410
|
+
return with_request_store(
|
|
2411
|
+
{ event: traced_event, state },
|
|
2412
|
+
() => handle_remote_form_post_internal(traced_event, state, manifest, id)
|
|
2413
|
+
);
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
async function handle_remote_form_post_internal(event, state, manifest, id) {
|
|
2418
|
+
const [hash2, name, action_id] = id.split("/");
|
|
2419
|
+
const remotes = manifest._.remotes;
|
|
2420
|
+
const module = await remotes[hash2]?.();
|
|
2421
|
+
let form = (
|
|
2422
|
+
/** @type {RemoteForm<any, any>} */
|
|
2423
|
+
module?.default[name]
|
|
2424
|
+
);
|
|
2425
|
+
if (!form) {
|
|
2426
|
+
event.setHeaders({
|
|
2427
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
|
|
2428
|
+
// "The server must generate an Allow header field in a 405 status code response"
|
|
2429
|
+
allow: "GET"
|
|
2430
|
+
});
|
|
2431
|
+
return {
|
|
2432
|
+
type: "error",
|
|
2433
|
+
error: new SvelteKitError(
|
|
2434
|
+
405,
|
|
2435
|
+
"Method Not Allowed",
|
|
2436
|
+
`POST method not allowed. No form actions exist for ${"this page"}`
|
|
2437
|
+
)
|
|
2438
|
+
};
|
|
2439
|
+
}
|
|
2440
|
+
if (action_id) {
|
|
2441
|
+
form = with_request_store({ event, state }, () => form.for(JSON.parse(action_id)));
|
|
2442
|
+
}
|
|
2443
|
+
try {
|
|
2444
|
+
const fn = (
|
|
2445
|
+
/** @type {RemoteFormInternals} */
|
|
2446
|
+
/** @type {any} */
|
|
2447
|
+
form.__.fn
|
|
2448
|
+
);
|
|
2449
|
+
const { data, meta, form_data } = await deserialize_binary_form(event.request);
|
|
2450
|
+
if (action_id && !("id" in data)) {
|
|
2451
|
+
data.id = JSON.parse(decodeURIComponent(action_id));
|
|
2452
|
+
}
|
|
2453
|
+
await with_request_store({ event, state }, () => fn(data, meta, form_data));
|
|
2454
|
+
return {
|
|
2455
|
+
type: "success",
|
|
2456
|
+
status: 200
|
|
2457
|
+
};
|
|
2458
|
+
} catch (e) {
|
|
2459
|
+
const err = normalize_error(e);
|
|
2460
|
+
if (err instanceof Redirect) {
|
|
2461
|
+
return {
|
|
2462
|
+
type: "redirect",
|
|
2463
|
+
status: err.status,
|
|
2464
|
+
location: err.location
|
|
2465
|
+
};
|
|
2466
|
+
}
|
|
2467
|
+
return {
|
|
2468
|
+
type: "error",
|
|
2469
|
+
error: check_incorrect_fail_use(err)
|
|
2470
|
+
};
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
function get_remote_id(url) {
|
|
2474
|
+
return url.pathname.startsWith(`${base}/${app_dir}/remote/`) && url.pathname.replace(`${base}/${app_dir}/remote/`, "");
|
|
2475
|
+
}
|
|
2476
|
+
function get_remote_action(url) {
|
|
2477
|
+
return url.searchParams.get("/remote");
|
|
2478
|
+
}
|
|
2479
|
+
const MAX_DEPTH = 10;
|
|
2480
|
+
async function render_page(event, event_state, page, options2, manifest, state, nodes, resolve_opts) {
|
|
2481
|
+
if (state.depth > MAX_DEPTH) {
|
|
2482
|
+
return text(`Not found: ${event.url.pathname}`, {
|
|
2483
|
+
status: 404
|
|
2484
|
+
// TODO in some cases this should be 500. not sure how to differentiate
|
|
2485
|
+
});
|
|
2486
|
+
}
|
|
2487
|
+
if (is_action_json_request(event)) {
|
|
2488
|
+
const node = await manifest._.nodes[page.leaf]();
|
|
2489
|
+
return handle_action_json_request(event, event_state, options2, node?.server);
|
|
2490
|
+
}
|
|
2491
|
+
try {
|
|
2492
|
+
const leaf_node = (
|
|
2493
|
+
/** @type {SSRNode} */
|
|
2494
|
+
nodes.page()
|
|
2495
|
+
);
|
|
2496
|
+
let status = 200;
|
|
2497
|
+
let action_result = void 0;
|
|
2498
|
+
if (is_action_request(event)) {
|
|
2499
|
+
const remote_id = get_remote_action(event.url);
|
|
2500
|
+
if (remote_id) {
|
|
2501
|
+
action_result = await handle_remote_form_post(event, event_state, manifest, remote_id);
|
|
2502
|
+
} else {
|
|
2503
|
+
action_result = await handle_action_request(event, event_state, leaf_node.server);
|
|
2504
|
+
}
|
|
2505
|
+
if (action_result?.type === "redirect") {
|
|
2506
|
+
return redirect_response(action_result.status, action_result.location);
|
|
2507
|
+
}
|
|
2508
|
+
if (action_result?.type === "error") {
|
|
2509
|
+
status = get_status(action_result.error);
|
|
2510
|
+
}
|
|
2511
|
+
if (action_result?.type === "failure") {
|
|
2512
|
+
status = action_result.status;
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
const should_prerender = nodes.prerender();
|
|
2516
|
+
if (should_prerender) {
|
|
2517
|
+
const mod = leaf_node.server;
|
|
2518
|
+
if (mod?.actions) {
|
|
2519
|
+
throw new Error("Cannot prerender pages with actions");
|
|
2520
|
+
}
|
|
2521
|
+
} else if (state.prerendering) {
|
|
2522
|
+
return new Response(void 0, {
|
|
2523
|
+
status: 204
|
|
2524
|
+
});
|
|
2525
|
+
}
|
|
2526
|
+
state.prerender_default = should_prerender;
|
|
2527
|
+
const should_prerender_data = nodes.should_prerender_data();
|
|
2528
|
+
const data_pathname = add_data_suffix(event.url.pathname);
|
|
2529
|
+
const fetched = [];
|
|
2530
|
+
const ssr = nodes.ssr();
|
|
2531
|
+
const csr = nodes.csr();
|
|
2532
|
+
if (ssr === false && !(state.prerendering && should_prerender_data)) {
|
|
2533
|
+
if (BROWSER && action_result && !event.request.headers.has("x-sveltekit-action")) ;
|
|
2534
|
+
return await render_response({
|
|
2535
|
+
// provide nodes without running load functions so that the styles and
|
|
2536
|
+
// fonts are linked in the head before CSR takes over
|
|
2537
|
+
branch: compact(nodes.data).map((node) => {
|
|
2538
|
+
return {
|
|
2539
|
+
node,
|
|
2540
|
+
data: null,
|
|
2541
|
+
server_data: null
|
|
2542
|
+
};
|
|
2543
|
+
}),
|
|
2544
|
+
fetched,
|
|
2545
|
+
page_config: {
|
|
2546
|
+
ssr: false,
|
|
2547
|
+
csr
|
|
2548
|
+
},
|
|
2549
|
+
status,
|
|
2550
|
+
error: null,
|
|
2551
|
+
event,
|
|
2552
|
+
event_state,
|
|
2553
|
+
options: options2,
|
|
2554
|
+
manifest,
|
|
2555
|
+
state,
|
|
2556
|
+
resolve_opts,
|
|
2557
|
+
data_serializer: server_data_serializer(event, event_state, options2)
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
const branch = [];
|
|
2561
|
+
let load_error = null;
|
|
2562
|
+
const data_serializer = server_data_serializer(event, event_state, options2);
|
|
2563
|
+
const data_serializer_json = state.prerendering && should_prerender_data ? server_data_serializer_json(event, event_state, options2) : null;
|
|
2564
|
+
const server_promises = nodes.data.map((node, i) => {
|
|
2565
|
+
if (load_error) {
|
|
2566
|
+
throw load_error;
|
|
2567
|
+
}
|
|
2568
|
+
return Promise.resolve().then(async () => {
|
|
2569
|
+
try {
|
|
2570
|
+
if (node === leaf_node && action_result?.type === "error") {
|
|
2571
|
+
throw action_result.error;
|
|
2572
|
+
}
|
|
2573
|
+
const server_data = await load_server_data({
|
|
2574
|
+
event,
|
|
2575
|
+
event_state,
|
|
2576
|
+
state,
|
|
2577
|
+
node,
|
|
2578
|
+
parent: async () => {
|
|
2579
|
+
const data = {};
|
|
2580
|
+
for (let j = 0; j < i; j += 1) {
|
|
2581
|
+
const parent = await server_promises[j];
|
|
2582
|
+
if (parent) Object.assign(data, parent.data);
|
|
2583
|
+
}
|
|
2584
|
+
return data;
|
|
2585
|
+
}
|
|
2586
|
+
});
|
|
2587
|
+
if (node) {
|
|
2588
|
+
data_serializer.add_node(i, server_data);
|
|
2589
|
+
}
|
|
2590
|
+
data_serializer_json?.add_node(i, server_data);
|
|
2591
|
+
return server_data;
|
|
2592
|
+
} catch (e) {
|
|
2593
|
+
load_error = /** @type {Error} */
|
|
2594
|
+
e;
|
|
2595
|
+
throw load_error;
|
|
2596
|
+
}
|
|
2597
|
+
});
|
|
2598
|
+
});
|
|
2599
|
+
const load_promises = nodes.data.map((node, i) => {
|
|
2600
|
+
if (load_error) throw load_error;
|
|
2601
|
+
return Promise.resolve().then(async () => {
|
|
2602
|
+
try {
|
|
2603
|
+
return await load_data({
|
|
2604
|
+
event,
|
|
2605
|
+
event_state,
|
|
2606
|
+
fetched,
|
|
2607
|
+
node,
|
|
2608
|
+
parent: async () => {
|
|
2609
|
+
const data = {};
|
|
2610
|
+
for (let j = 0; j < i; j += 1) {
|
|
2611
|
+
Object.assign(data, await load_promises[j]);
|
|
2612
|
+
}
|
|
2613
|
+
return data;
|
|
2614
|
+
},
|
|
2615
|
+
resolve_opts,
|
|
2616
|
+
server_data_promise: server_promises[i],
|
|
2617
|
+
state,
|
|
2618
|
+
csr
|
|
2619
|
+
});
|
|
2620
|
+
} catch (e) {
|
|
2621
|
+
load_error = /** @type {Error} */
|
|
2622
|
+
e;
|
|
2623
|
+
throw load_error;
|
|
2624
|
+
}
|
|
2625
|
+
});
|
|
2626
|
+
});
|
|
2627
|
+
for (const p of server_promises) p.catch(noop);
|
|
2628
|
+
for (const p of load_promises) p.catch(noop);
|
|
2629
|
+
for (let i = 0; i < nodes.data.length; i += 1) {
|
|
2630
|
+
const node = nodes.data[i];
|
|
2631
|
+
if (node) {
|
|
2632
|
+
try {
|
|
2633
|
+
const server_data = await server_promises[i];
|
|
2634
|
+
const data = await load_promises[i];
|
|
2635
|
+
branch.push({ node, server_data, data });
|
|
2636
|
+
} catch (e) {
|
|
2637
|
+
const err = normalize_error(e);
|
|
2638
|
+
if (err instanceof Redirect) {
|
|
2639
|
+
if (state.prerendering && should_prerender_data) {
|
|
2640
|
+
const body2 = JSON.stringify({
|
|
2641
|
+
type: "redirect",
|
|
2642
|
+
location: err.location
|
|
2643
|
+
});
|
|
2644
|
+
state.prerendering.dependencies.set(data_pathname, {
|
|
2645
|
+
response: text(body2),
|
|
2646
|
+
body: body2
|
|
2647
|
+
});
|
|
2648
|
+
}
|
|
2649
|
+
return redirect_response(err.status, err.location);
|
|
2650
|
+
}
|
|
2651
|
+
const status2 = get_status(err);
|
|
2652
|
+
const error2 = await handle_error_and_jsonify(event, event_state, options2, err);
|
|
2653
|
+
while (i--) {
|
|
2654
|
+
if (page.errors[i]) {
|
|
2655
|
+
const index = (
|
|
2656
|
+
/** @type {number} */
|
|
2657
|
+
page.errors[i]
|
|
2658
|
+
);
|
|
2659
|
+
const node2 = await manifest._.nodes[index]();
|
|
2660
|
+
let j = i;
|
|
2661
|
+
while (!branch[j]) j -= 1;
|
|
2662
|
+
data_serializer.set_max_nodes(j + 1);
|
|
2663
|
+
const layouts = compact(branch.slice(0, j + 1));
|
|
2664
|
+
const nodes2 = new PageNodes(layouts.map((layout) => layout.node));
|
|
2665
|
+
const error_branch = layouts.concat({
|
|
2666
|
+
node: node2,
|
|
2667
|
+
data: null,
|
|
2668
|
+
server_data: null
|
|
2669
|
+
});
|
|
2670
|
+
return await render_response({
|
|
2671
|
+
event,
|
|
2672
|
+
event_state,
|
|
2673
|
+
options: options2,
|
|
2674
|
+
manifest,
|
|
2675
|
+
state,
|
|
2676
|
+
resolve_opts,
|
|
2677
|
+
page_config: {
|
|
2678
|
+
ssr: nodes2.ssr(),
|
|
2679
|
+
csr: nodes2.csr()
|
|
2680
|
+
},
|
|
2681
|
+
status: status2,
|
|
2682
|
+
error: error2,
|
|
2683
|
+
error_components: await load_error_components(
|
|
2684
|
+
options2,
|
|
2685
|
+
ssr,
|
|
2686
|
+
error_branch,
|
|
2687
|
+
page,
|
|
2688
|
+
manifest
|
|
2689
|
+
),
|
|
2690
|
+
branch: error_branch,
|
|
2691
|
+
fetched,
|
|
2692
|
+
data_serializer
|
|
2693
|
+
});
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
return static_error_page(options2, status2, error2.message);
|
|
2697
|
+
}
|
|
2698
|
+
} else {
|
|
2699
|
+
branch.push(null);
|
|
2700
|
+
}
|
|
2701
|
+
}
|
|
2702
|
+
if (state.prerendering && data_serializer_json) {
|
|
2703
|
+
let { data, chunks } = data_serializer_json.get_data();
|
|
2704
|
+
if (chunks) {
|
|
2705
|
+
for await (const chunk of chunks) {
|
|
2706
|
+
data += chunk;
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
state.prerendering.dependencies.set(data_pathname, {
|
|
2710
|
+
response: text(data),
|
|
2711
|
+
body: data
|
|
2712
|
+
});
|
|
2713
|
+
}
|
|
2714
|
+
return await render_response({
|
|
2715
|
+
event,
|
|
2716
|
+
event_state,
|
|
2717
|
+
options: options2,
|
|
2718
|
+
manifest,
|
|
2719
|
+
state,
|
|
2720
|
+
resolve_opts,
|
|
2721
|
+
page_config: {
|
|
2722
|
+
csr,
|
|
2723
|
+
ssr
|
|
2724
|
+
},
|
|
2725
|
+
status,
|
|
2726
|
+
error: null,
|
|
2727
|
+
branch: compact(branch),
|
|
2728
|
+
action_result,
|
|
2729
|
+
fetched,
|
|
2730
|
+
data_serializer: !ssr ? server_data_serializer(event, event_state, options2) : data_serializer,
|
|
2731
|
+
error_components: await load_error_components(options2, ssr, branch, page, manifest)
|
|
2732
|
+
});
|
|
2733
|
+
} catch (e) {
|
|
2734
|
+
if (e instanceof Redirect) {
|
|
2735
|
+
return redirect_response(e.status, e.location);
|
|
2736
|
+
}
|
|
2737
|
+
return await respond_with_error({
|
|
2738
|
+
event,
|
|
2739
|
+
event_state,
|
|
2740
|
+
options: options2,
|
|
2741
|
+
manifest,
|
|
2742
|
+
state,
|
|
2743
|
+
status: e instanceof HttpError ? e.status : 500,
|
|
2744
|
+
error: e,
|
|
2745
|
+
resolve_opts
|
|
2746
|
+
});
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
async function load_error_components(options2, ssr, branch, page, manifest) {
|
|
2750
|
+
let error_components;
|
|
2751
|
+
if (options2.server_error_boundaries && ssr) {
|
|
2752
|
+
let last_idx = -1;
|
|
2753
|
+
error_components = await Promise.all(
|
|
2754
|
+
// eslint-disable-next-line @typescript-eslint/await-thenable
|
|
2755
|
+
branch.map((b, i) => {
|
|
2756
|
+
if (i === 0) return void 0;
|
|
2757
|
+
if (!b) return null;
|
|
2758
|
+
i--;
|
|
2759
|
+
while (i > last_idx + 1 && page.errors[i] === void 0) i -= 1;
|
|
2760
|
+
last_idx = i;
|
|
2761
|
+
const idx = page.errors[i];
|
|
2762
|
+
if (idx == null) return void 0;
|
|
2763
|
+
return manifest._.nodes[idx]?.().then((e) => e.component?.()).catch(() => void 0);
|
|
2764
|
+
}).filter((e) => e !== null)
|
|
2765
|
+
);
|
|
2766
|
+
}
|
|
2767
|
+
return error_components;
|
|
2768
|
+
}
|
|
2769
|
+
async function render_data(event, event_state, route, options2, manifest, state, invalidated_data_nodes, trailing_slash) {
|
|
2770
|
+
if (!route.page) {
|
|
2771
|
+
return new Response(void 0, {
|
|
2772
|
+
status: 404
|
|
2773
|
+
});
|
|
2774
|
+
}
|
|
2775
|
+
try {
|
|
2776
|
+
const node_ids = [...route.page.layouts, route.page.leaf];
|
|
2777
|
+
const invalidated = invalidated_data_nodes ?? node_ids.map(() => true);
|
|
2778
|
+
let aborted = false;
|
|
2779
|
+
const url = new URL(event.url);
|
|
2780
|
+
url.pathname = normalize_path(url.pathname, trailing_slash);
|
|
2781
|
+
const new_event = { ...event, url };
|
|
2782
|
+
const functions = node_ids.map((n, i) => {
|
|
2783
|
+
return once(async () => {
|
|
2784
|
+
try {
|
|
2785
|
+
if (aborted) {
|
|
2786
|
+
return (
|
|
2787
|
+
/** @type {import('types').ServerDataSkippedNode} */
|
|
2788
|
+
{
|
|
2789
|
+
type: "skip"
|
|
2790
|
+
}
|
|
2791
|
+
);
|
|
2792
|
+
}
|
|
2793
|
+
const node = n == void 0 ? n : await manifest._.nodes[n]();
|
|
2794
|
+
return load_server_data({
|
|
2795
|
+
event: new_event,
|
|
2796
|
+
event_state,
|
|
2797
|
+
state,
|
|
2798
|
+
node,
|
|
2799
|
+
parent: async () => {
|
|
2800
|
+
const data2 = {};
|
|
2801
|
+
for (let j = 0; j < i; j += 1) {
|
|
2802
|
+
const parent = (
|
|
2803
|
+
/** @type {import('types').ServerDataNode | null} */
|
|
2804
|
+
await functions[j]()
|
|
2805
|
+
);
|
|
2806
|
+
if (parent) {
|
|
2807
|
+
Object.assign(data2, parent.data);
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
return data2;
|
|
2811
|
+
}
|
|
2812
|
+
});
|
|
2813
|
+
} catch (e) {
|
|
2814
|
+
aborted = true;
|
|
2815
|
+
throw e;
|
|
2816
|
+
}
|
|
2817
|
+
});
|
|
2818
|
+
});
|
|
2819
|
+
const promises = functions.map(async (fn, i) => {
|
|
2820
|
+
if (!invalidated[i]) {
|
|
2821
|
+
return (
|
|
2822
|
+
/** @type {import('types').ServerDataSkippedNode} */
|
|
2823
|
+
{
|
|
2824
|
+
type: "skip"
|
|
2825
|
+
}
|
|
2826
|
+
);
|
|
2827
|
+
}
|
|
2828
|
+
return fn();
|
|
2829
|
+
});
|
|
2830
|
+
let length = promises.length;
|
|
2831
|
+
const nodes = await Promise.all(
|
|
2832
|
+
promises.map(
|
|
2833
|
+
(p, i) => p.catch(async (error2) => {
|
|
2834
|
+
if (error2 instanceof Redirect) {
|
|
2835
|
+
throw error2;
|
|
2836
|
+
}
|
|
2837
|
+
length = Math.min(length, i + 1);
|
|
2838
|
+
return (
|
|
2839
|
+
/** @type {import('types').ServerErrorNode} */
|
|
2840
|
+
{
|
|
2841
|
+
type: "error",
|
|
2842
|
+
error: await handle_error_and_jsonify(event, event_state, options2, error2),
|
|
2843
|
+
status: error2 instanceof HttpError || error2 instanceof SvelteKitError ? error2.status : void 0
|
|
2844
|
+
}
|
|
2845
|
+
);
|
|
2846
|
+
})
|
|
2847
|
+
)
|
|
2848
|
+
);
|
|
2849
|
+
const data_serializer = server_data_serializer_json(event, event_state, options2);
|
|
2850
|
+
for (let i = 0; i < nodes.length; i++) data_serializer.add_node(i, nodes[i]);
|
|
2851
|
+
const { data, chunks } = data_serializer.get_data();
|
|
2852
|
+
if (!chunks) {
|
|
2853
|
+
return json_response(data);
|
|
2854
|
+
}
|
|
2855
|
+
return new Response(
|
|
2856
|
+
new ReadableStream({
|
|
2857
|
+
async start(controller) {
|
|
2858
|
+
controller.enqueue(text_encoder.encode(data));
|
|
2859
|
+
for await (const chunk of chunks) {
|
|
2860
|
+
controller.enqueue(text_encoder.encode(chunk));
|
|
2861
|
+
}
|
|
2862
|
+
controller.close();
|
|
2863
|
+
},
|
|
2864
|
+
type: "bytes"
|
|
2865
|
+
}),
|
|
2866
|
+
{
|
|
2867
|
+
headers: {
|
|
2868
|
+
// we use a proprietary content type to prevent buffering.
|
|
2869
|
+
// the `text` prefix makes it inspectable
|
|
2870
|
+
"content-type": "text/sveltekit-data",
|
|
2871
|
+
"cache-control": "private, no-store"
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
);
|
|
2875
|
+
} catch (e) {
|
|
2876
|
+
const error2 = normalize_error(e);
|
|
2877
|
+
if (error2 instanceof Redirect) {
|
|
2878
|
+
return redirect_json_response(error2);
|
|
2879
|
+
} else {
|
|
2880
|
+
return json_response(await handle_error_and_jsonify(event, event_state, options2, error2), 500);
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
function json_response(json2, status = 200) {
|
|
2885
|
+
return text(typeof json2 === "string" ? json2 : JSON.stringify(json2), {
|
|
2886
|
+
status,
|
|
2887
|
+
headers: {
|
|
2888
|
+
"content-type": "application/json",
|
|
2889
|
+
"cache-control": "private, no-store"
|
|
2890
|
+
}
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
function redirect_json_response(redirect) {
|
|
2894
|
+
return json_response(
|
|
2895
|
+
/** @type {import('types').ServerRedirectNode} */
|
|
2896
|
+
{
|
|
2897
|
+
type: "redirect",
|
|
2898
|
+
location: redirect.location
|
|
2899
|
+
}
|
|
2900
|
+
);
|
|
2901
|
+
}
|
|
2902
|
+
var cookie = {};
|
|
2903
|
+
var hasRequiredCookie;
|
|
2904
|
+
function requireCookie() {
|
|
2905
|
+
if (hasRequiredCookie) return cookie;
|
|
2906
|
+
hasRequiredCookie = 1;
|
|
2907
|
+
cookie.parse = parse;
|
|
2908
|
+
cookie.serialize = serialize;
|
|
2909
|
+
var __toString = Object.prototype.toString;
|
|
2910
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
2911
|
+
function parse(str, options2) {
|
|
2912
|
+
if (typeof str !== "string") {
|
|
2913
|
+
throw new TypeError("argument str must be a string");
|
|
2914
|
+
}
|
|
2915
|
+
var obj = {};
|
|
2916
|
+
var opt = options2 || {};
|
|
2917
|
+
var dec = opt.decode || decode;
|
|
2918
|
+
var index = 0;
|
|
2919
|
+
while (index < str.length) {
|
|
2920
|
+
var eqIdx = str.indexOf("=", index);
|
|
2921
|
+
if (eqIdx === -1) {
|
|
2922
|
+
break;
|
|
2923
|
+
}
|
|
2924
|
+
var endIdx = str.indexOf(";", index);
|
|
2925
|
+
if (endIdx === -1) {
|
|
2926
|
+
endIdx = str.length;
|
|
2927
|
+
} else if (endIdx < eqIdx) {
|
|
2928
|
+
index = str.lastIndexOf(";", eqIdx - 1) + 1;
|
|
2929
|
+
continue;
|
|
2930
|
+
}
|
|
2931
|
+
var key2 = str.slice(index, eqIdx).trim();
|
|
2932
|
+
if (void 0 === obj[key2]) {
|
|
2933
|
+
var val = str.slice(eqIdx + 1, endIdx).trim();
|
|
2934
|
+
if (val.charCodeAt(0) === 34) {
|
|
2935
|
+
val = val.slice(1, -1);
|
|
2936
|
+
}
|
|
2937
|
+
obj[key2] = tryDecode(val, dec);
|
|
2938
|
+
}
|
|
2939
|
+
index = endIdx + 1;
|
|
2940
|
+
}
|
|
2941
|
+
return obj;
|
|
2942
|
+
}
|
|
2943
|
+
function serialize(name, val, options2) {
|
|
2944
|
+
var opt = options2 || {};
|
|
2945
|
+
var enc = opt.encode || encode2;
|
|
2946
|
+
if (typeof enc !== "function") {
|
|
2947
|
+
throw new TypeError("option encode is invalid");
|
|
2948
|
+
}
|
|
2949
|
+
if (!fieldContentRegExp.test(name)) {
|
|
2950
|
+
throw new TypeError("argument name is invalid");
|
|
2951
|
+
}
|
|
2952
|
+
var value = enc(val);
|
|
2953
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
2954
|
+
throw new TypeError("argument val is invalid");
|
|
2955
|
+
}
|
|
2956
|
+
var str = name + "=" + value;
|
|
2957
|
+
if (null != opt.maxAge) {
|
|
2958
|
+
var maxAge = opt.maxAge - 0;
|
|
2959
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
2960
|
+
throw new TypeError("option maxAge is invalid");
|
|
2961
|
+
}
|
|
2962
|
+
str += "; Max-Age=" + Math.floor(maxAge);
|
|
2963
|
+
}
|
|
2964
|
+
if (opt.domain) {
|
|
2965
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
2966
|
+
throw new TypeError("option domain is invalid");
|
|
2967
|
+
}
|
|
2968
|
+
str += "; Domain=" + opt.domain;
|
|
2969
|
+
}
|
|
2970
|
+
if (opt.path) {
|
|
2971
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
2972
|
+
throw new TypeError("option path is invalid");
|
|
2973
|
+
}
|
|
2974
|
+
str += "; Path=" + opt.path;
|
|
2975
|
+
}
|
|
2976
|
+
if (opt.expires) {
|
|
2977
|
+
var expires = opt.expires;
|
|
2978
|
+
if (!isDate(expires) || isNaN(expires.valueOf())) {
|
|
2979
|
+
throw new TypeError("option expires is invalid");
|
|
2980
|
+
}
|
|
2981
|
+
str += "; Expires=" + expires.toUTCString();
|
|
2982
|
+
}
|
|
2983
|
+
if (opt.httpOnly) {
|
|
2984
|
+
str += "; HttpOnly";
|
|
2985
|
+
}
|
|
2986
|
+
if (opt.secure) {
|
|
2987
|
+
str += "; Secure";
|
|
2988
|
+
}
|
|
2989
|
+
if (opt.partitioned) {
|
|
2990
|
+
str += "; Partitioned";
|
|
2991
|
+
}
|
|
2992
|
+
if (opt.priority) {
|
|
2993
|
+
var priority = typeof opt.priority === "string" ? opt.priority.toLowerCase() : opt.priority;
|
|
2994
|
+
switch (priority) {
|
|
2995
|
+
case "low":
|
|
2996
|
+
str += "; Priority=Low";
|
|
2997
|
+
break;
|
|
2998
|
+
case "medium":
|
|
2999
|
+
str += "; Priority=Medium";
|
|
3000
|
+
break;
|
|
3001
|
+
case "high":
|
|
3002
|
+
str += "; Priority=High";
|
|
3003
|
+
break;
|
|
3004
|
+
default:
|
|
3005
|
+
throw new TypeError("option priority is invalid");
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
if (opt.sameSite) {
|
|
3009
|
+
var sameSite = typeof opt.sameSite === "string" ? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
3010
|
+
switch (sameSite) {
|
|
3011
|
+
case true:
|
|
3012
|
+
str += "; SameSite=Strict";
|
|
3013
|
+
break;
|
|
3014
|
+
case "lax":
|
|
3015
|
+
str += "; SameSite=Lax";
|
|
3016
|
+
break;
|
|
3017
|
+
case "strict":
|
|
3018
|
+
str += "; SameSite=Strict";
|
|
3019
|
+
break;
|
|
3020
|
+
case "none":
|
|
3021
|
+
str += "; SameSite=None";
|
|
3022
|
+
break;
|
|
3023
|
+
default:
|
|
3024
|
+
throw new TypeError("option sameSite is invalid");
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
return str;
|
|
3028
|
+
}
|
|
3029
|
+
function decode(str) {
|
|
3030
|
+
return str.indexOf("%") !== -1 ? decodeURIComponent(str) : str;
|
|
3031
|
+
}
|
|
3032
|
+
function encode2(val) {
|
|
3033
|
+
return encodeURIComponent(val);
|
|
3034
|
+
}
|
|
3035
|
+
function isDate(val) {
|
|
3036
|
+
return __toString.call(val) === "[object Date]" || val instanceof Date;
|
|
3037
|
+
}
|
|
3038
|
+
function tryDecode(str, decode2) {
|
|
3039
|
+
try {
|
|
3040
|
+
return decode2(str);
|
|
3041
|
+
} catch (e) {
|
|
3042
|
+
return str;
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
return cookie;
|
|
3046
|
+
}
|
|
3047
|
+
var cookieExports = requireCookie();
|
|
3048
|
+
const INVALID_COOKIE_CHARACTER_REGEX = /[\x00-\x1F\x7F()<>@,;:"/[\]?={} \t]/;
|
|
3049
|
+
function validate_options(options2) {
|
|
3050
|
+
if (options2?.path === void 0) {
|
|
3051
|
+
throw new Error("You must specify a `path` when setting, deleting or serializing cookies");
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
function generate_cookie_key(domain, path, name) {
|
|
3055
|
+
return `${domain || ""}${path}?${encodeURIComponent(name)}`;
|
|
3056
|
+
}
|
|
3057
|
+
function get_cookies(request, url) {
|
|
3058
|
+
const header = request.headers.get("cookie") ?? "";
|
|
3059
|
+
const initial_cookies = cookieExports.parse(header, { decode: (value) => value });
|
|
3060
|
+
let normalized_url;
|
|
3061
|
+
const new_cookies = /* @__PURE__ */ new Map();
|
|
3062
|
+
const defaults = {
|
|
3063
|
+
httpOnly: true,
|
|
3064
|
+
sameSite: "lax",
|
|
3065
|
+
secure: url.hostname === "localhost" && url.protocol === "http:" ? false : true
|
|
3066
|
+
};
|
|
3067
|
+
const cookies = {
|
|
3068
|
+
// The JSDoc param annotations appearing below for get, set and delete
|
|
3069
|
+
// are necessary to expose the `cookie` library types to
|
|
3070
|
+
// typescript users. `@type {import('@sveltejs/kit').Cookies}` above is not
|
|
3071
|
+
// sufficient to do so.
|
|
3072
|
+
/**
|
|
3073
|
+
* @param {string} name
|
|
3074
|
+
* @param {import('cookie').CookieParseOptions} [opts]
|
|
3075
|
+
*/
|
|
3076
|
+
get(name, opts) {
|
|
3077
|
+
const best_match = Array.from(new_cookies.values()).filter((c) => {
|
|
3078
|
+
return c.name === name && domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path);
|
|
3079
|
+
}).sort((a, b) => b.options.path.length - a.options.path.length)[0];
|
|
3080
|
+
if (best_match) {
|
|
3081
|
+
return best_match.options.maxAge === 0 ? void 0 : best_match.value;
|
|
3082
|
+
}
|
|
3083
|
+
const req_cookies = cookieExports.parse(header, { decode: opts?.decode });
|
|
3084
|
+
const cookie2 = req_cookies[name];
|
|
3085
|
+
return cookie2;
|
|
3086
|
+
},
|
|
3087
|
+
/**
|
|
3088
|
+
* @param {import('cookie').CookieParseOptions} [opts]
|
|
3089
|
+
*/
|
|
3090
|
+
getAll(opts) {
|
|
3091
|
+
const cookies2 = cookieExports.parse(header, { decode: opts?.decode });
|
|
3092
|
+
const lookup = /* @__PURE__ */ new Map();
|
|
3093
|
+
for (const c of new_cookies.values()) {
|
|
3094
|
+
if (domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path)) {
|
|
3095
|
+
const existing = lookup.get(c.name);
|
|
3096
|
+
if (!existing || c.options.path.length > existing.options.path.length) {
|
|
3097
|
+
lookup.set(c.name, c);
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
}
|
|
3101
|
+
for (const c of lookup.values()) {
|
|
3102
|
+
cookies2[c.name] = c.value;
|
|
3103
|
+
}
|
|
3104
|
+
return Object.entries(cookies2).map(([name, value]) => ({ name, value }));
|
|
3105
|
+
},
|
|
3106
|
+
/**
|
|
3107
|
+
* @param {string} name
|
|
3108
|
+
* @param {string} value
|
|
3109
|
+
* @param {import('./page/types.js').Cookie['options']} options
|
|
3110
|
+
*/
|
|
3111
|
+
set(name, value, options2) {
|
|
3112
|
+
const illegal_characters = name.match(INVALID_COOKIE_CHARACTER_REGEX);
|
|
3113
|
+
if (illegal_characters) {
|
|
3114
|
+
console.warn(
|
|
3115
|
+
`The cookie name "${name}" will be invalid in SvelteKit 3.0 as it contains ${illegal_characters.join(
|
|
3116
|
+
" and "
|
|
3117
|
+
)}. See RFC 2616 for more details https://datatracker.ietf.org/doc/html/rfc2616#section-2.2`
|
|
3118
|
+
);
|
|
3119
|
+
}
|
|
3120
|
+
validate_options(options2);
|
|
3121
|
+
set_internal(name, value, { ...defaults, ...options2 });
|
|
3122
|
+
},
|
|
3123
|
+
/**
|
|
3124
|
+
* @param {string} name
|
|
3125
|
+
* @param {import('./page/types.js').Cookie['options']} options
|
|
3126
|
+
*/
|
|
3127
|
+
delete(name, options2) {
|
|
3128
|
+
validate_options(options2);
|
|
3129
|
+
cookies.set(name, "", { ...options2, maxAge: 0 });
|
|
3130
|
+
},
|
|
3131
|
+
/**
|
|
3132
|
+
* @param {string} name
|
|
3133
|
+
* @param {string} value
|
|
3134
|
+
* @param {import('./page/types.js').Cookie['options']} options
|
|
3135
|
+
*/
|
|
3136
|
+
serialize(name, value, options2) {
|
|
3137
|
+
validate_options(options2);
|
|
3138
|
+
let path = options2.path;
|
|
3139
|
+
if (!options2.domain || options2.domain === url.hostname) {
|
|
3140
|
+
if (!normalized_url) {
|
|
3141
|
+
throw new Error("Cannot serialize cookies until after the route is determined");
|
|
3142
|
+
}
|
|
3143
|
+
path = resolve(normalized_url, path);
|
|
3144
|
+
}
|
|
3145
|
+
return cookieExports.serialize(name, value, { ...defaults, ...options2, path });
|
|
3146
|
+
}
|
|
3147
|
+
};
|
|
3148
|
+
function get_cookie_header(destination, header2) {
|
|
3149
|
+
const combined_cookies = {
|
|
3150
|
+
// cookies sent by the user agent have lowest precedence
|
|
3151
|
+
...initial_cookies
|
|
3152
|
+
};
|
|
3153
|
+
for (const cookie2 of new_cookies.values()) {
|
|
3154
|
+
if (!domain_matches(destination.hostname, cookie2.options.domain)) continue;
|
|
3155
|
+
if (!path_matches(destination.pathname, cookie2.options.path)) continue;
|
|
3156
|
+
const encoder = cookie2.options.encode || encodeURIComponent;
|
|
3157
|
+
combined_cookies[cookie2.name] = encoder(cookie2.value);
|
|
3158
|
+
}
|
|
3159
|
+
if (header2) {
|
|
3160
|
+
const parsed = cookieExports.parse(header2, { decode: (value) => value });
|
|
3161
|
+
for (const name in parsed) {
|
|
3162
|
+
combined_cookies[name] = parsed[name];
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
return Object.entries(combined_cookies).map(([name, value]) => `${name}=${value}`).join("; ");
|
|
3166
|
+
}
|
|
3167
|
+
const internal_queue = [];
|
|
3168
|
+
function set_internal(name, value, options2) {
|
|
3169
|
+
if (!normalized_url) {
|
|
3170
|
+
internal_queue.push(() => set_internal(name, value, options2));
|
|
3171
|
+
return;
|
|
3172
|
+
}
|
|
3173
|
+
let path = options2.path;
|
|
3174
|
+
if (!options2.domain || options2.domain === url.hostname) {
|
|
3175
|
+
path = resolve(normalized_url, path);
|
|
3176
|
+
}
|
|
3177
|
+
const cookie_key = generate_cookie_key(options2.domain, path, name);
|
|
3178
|
+
const cookie2 = { name, value, options: { ...options2, path } };
|
|
3179
|
+
new_cookies.set(cookie_key, cookie2);
|
|
3180
|
+
}
|
|
3181
|
+
function set_trailing_slash(trailing_slash) {
|
|
3182
|
+
normalized_url = normalize_path(url.pathname, trailing_slash);
|
|
3183
|
+
internal_queue.forEach((fn) => fn());
|
|
3184
|
+
}
|
|
3185
|
+
return { cookies, new_cookies, get_cookie_header, set_internal, set_trailing_slash };
|
|
3186
|
+
}
|
|
3187
|
+
function domain_matches(hostname, constraint) {
|
|
3188
|
+
if (!constraint) return true;
|
|
3189
|
+
const normalized = constraint[0] === "." ? constraint.slice(1) : constraint;
|
|
3190
|
+
if (hostname === normalized) return true;
|
|
3191
|
+
return hostname.endsWith("." + normalized);
|
|
3192
|
+
}
|
|
3193
|
+
function path_matches(path, constraint) {
|
|
3194
|
+
if (!constraint) return true;
|
|
3195
|
+
const normalized = constraint.endsWith("/") ? constraint.slice(0, -1) : constraint;
|
|
3196
|
+
if (path === normalized) return true;
|
|
3197
|
+
return path.startsWith(normalized + "/");
|
|
3198
|
+
}
|
|
3199
|
+
function add_cookies_to_headers(headers2, cookies) {
|
|
3200
|
+
for (const new_cookie of cookies) {
|
|
3201
|
+
const { name, value, options: options2 } = new_cookie;
|
|
3202
|
+
headers2.append("set-cookie", cookieExports.serialize(name, value, options2));
|
|
3203
|
+
if (options2.path.endsWith(".html")) {
|
|
3204
|
+
const path = add_data_suffix(options2.path);
|
|
3205
|
+
headers2.append("set-cookie", cookieExports.serialize(name, value, { ...options2, path }));
|
|
3206
|
+
}
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
3209
|
+
var defaultParseOptions = {
|
|
3210
|
+
decodeValues: true,
|
|
3211
|
+
map: false,
|
|
3212
|
+
silent: false,
|
|
3213
|
+
split: "auto"
|
|
3214
|
+
// auto = split strings but not arrays
|
|
3215
|
+
};
|
|
3216
|
+
function isForbiddenKey(key2) {
|
|
3217
|
+
return typeof key2 !== "string" || key2 in {};
|
|
3218
|
+
}
|
|
3219
|
+
function createNullObj() {
|
|
3220
|
+
return /* @__PURE__ */ Object.create(null);
|
|
3221
|
+
}
|
|
3222
|
+
function isNonEmptyString(str) {
|
|
3223
|
+
return typeof str === "string" && !!str.trim();
|
|
3224
|
+
}
|
|
3225
|
+
function parseString(setCookieValue, options2) {
|
|
3226
|
+
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
3227
|
+
var nameValuePairStr = parts.shift();
|
|
3228
|
+
var parsed = parseNameValuePair(nameValuePairStr);
|
|
3229
|
+
var name = parsed.name;
|
|
3230
|
+
var value = parsed.value;
|
|
3231
|
+
options2 = options2 ? Object.assign({}, defaultParseOptions, options2) : defaultParseOptions;
|
|
3232
|
+
if (isForbiddenKey(name)) {
|
|
3233
|
+
return null;
|
|
3234
|
+
}
|
|
3235
|
+
try {
|
|
3236
|
+
value = options2.decodeValues ? decodeURIComponent(value) : value;
|
|
3237
|
+
} catch (e) {
|
|
3238
|
+
console.error(
|
|
3239
|
+
"set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",
|
|
3240
|
+
e
|
|
3241
|
+
);
|
|
3242
|
+
}
|
|
3243
|
+
var cookie2 = createNullObj();
|
|
3244
|
+
cookie2.name = name;
|
|
3245
|
+
cookie2.value = value;
|
|
3246
|
+
parts.forEach(function(part) {
|
|
3247
|
+
var sides = part.split("=");
|
|
3248
|
+
var key2 = sides.shift().trim().toLowerCase();
|
|
3249
|
+
if (isForbiddenKey(key2)) {
|
|
3250
|
+
return;
|
|
3251
|
+
}
|
|
3252
|
+
var value2 = sides.join("=").trim();
|
|
3253
|
+
if (key2 === "expires") {
|
|
3254
|
+
cookie2.expires = new Date(value2);
|
|
3255
|
+
} else if (key2 === "max-age") {
|
|
3256
|
+
var n = parseInt(value2, 10);
|
|
3257
|
+
if (!Number.isNaN(n)) cookie2.maxAge = n;
|
|
3258
|
+
} else if (key2 === "secure") {
|
|
3259
|
+
cookie2.secure = true;
|
|
3260
|
+
} else if (key2 === "httponly") {
|
|
3261
|
+
cookie2.httpOnly = true;
|
|
3262
|
+
} else if (key2 === "samesite") {
|
|
3263
|
+
cookie2.sameSite = value2;
|
|
3264
|
+
} else if (key2 === "partitioned") {
|
|
3265
|
+
cookie2.partitioned = true;
|
|
3266
|
+
} else if (key2) {
|
|
3267
|
+
cookie2[key2] = value2;
|
|
3268
|
+
}
|
|
3269
|
+
});
|
|
3270
|
+
return cookie2;
|
|
3271
|
+
}
|
|
3272
|
+
function parseNameValuePair(nameValuePairStr) {
|
|
3273
|
+
var name = "";
|
|
3274
|
+
var value = "";
|
|
3275
|
+
var nameValueArr = nameValuePairStr.split("=");
|
|
3276
|
+
if (nameValueArr.length > 1) {
|
|
3277
|
+
name = nameValueArr.shift();
|
|
3278
|
+
value = nameValueArr.join("=");
|
|
3279
|
+
} else {
|
|
3280
|
+
value = nameValuePairStr;
|
|
3281
|
+
}
|
|
3282
|
+
return { name, value };
|
|
3283
|
+
}
|
|
3284
|
+
function parseSetCookie(input, options2) {
|
|
3285
|
+
options2 = options2 ? Object.assign({}, defaultParseOptions, options2) : defaultParseOptions;
|
|
3286
|
+
if (!input) {
|
|
3287
|
+
if (!options2.map) {
|
|
3288
|
+
return [];
|
|
3289
|
+
} else {
|
|
3290
|
+
return createNullObj();
|
|
3291
|
+
}
|
|
3292
|
+
}
|
|
3293
|
+
if (input.headers) {
|
|
3294
|
+
if (typeof input.headers.getSetCookie === "function") {
|
|
3295
|
+
input = input.headers.getSetCookie();
|
|
3296
|
+
} else if (input.headers["set-cookie"]) {
|
|
3297
|
+
input = input.headers["set-cookie"];
|
|
3298
|
+
} else {
|
|
3299
|
+
var sch = input.headers[Object.keys(input.headers).find(function(key2) {
|
|
3300
|
+
return key2.toLowerCase() === "set-cookie";
|
|
3301
|
+
})];
|
|
3302
|
+
if (!sch && input.headers.cookie && !options2.silent) {
|
|
3303
|
+
console.warn(
|
|
3304
|
+
"Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."
|
|
3305
|
+
);
|
|
3306
|
+
}
|
|
3307
|
+
input = sch;
|
|
3308
|
+
}
|
|
3309
|
+
}
|
|
3310
|
+
var split = options2.split;
|
|
3311
|
+
var isArray = Array.isArray(input);
|
|
3312
|
+
if (split === "auto") {
|
|
3313
|
+
split = !isArray;
|
|
3314
|
+
}
|
|
3315
|
+
if (!isArray) {
|
|
3316
|
+
input = [input];
|
|
3317
|
+
}
|
|
3318
|
+
input = input.filter(isNonEmptyString);
|
|
3319
|
+
if (split) {
|
|
3320
|
+
input = input.map(splitCookiesString).flat();
|
|
3321
|
+
}
|
|
3322
|
+
if (!options2.map) {
|
|
3323
|
+
return input.map(function(str) {
|
|
3324
|
+
return parseString(str, options2);
|
|
3325
|
+
}).filter(Boolean);
|
|
3326
|
+
} else {
|
|
3327
|
+
var cookies = createNullObj();
|
|
3328
|
+
return input.reduce(function(cookies2, str) {
|
|
3329
|
+
var cookie2 = parseString(str, options2);
|
|
3330
|
+
if (cookie2 && !isForbiddenKey(cookie2.name)) {
|
|
3331
|
+
cookies2[cookie2.name] = cookie2;
|
|
3332
|
+
}
|
|
3333
|
+
return cookies2;
|
|
3334
|
+
}, cookies);
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
function splitCookiesString(cookiesString) {
|
|
3338
|
+
if (Array.isArray(cookiesString)) {
|
|
3339
|
+
return cookiesString;
|
|
3340
|
+
}
|
|
3341
|
+
if (typeof cookiesString !== "string") {
|
|
3342
|
+
return [];
|
|
3343
|
+
}
|
|
3344
|
+
var cookiesStrings = [];
|
|
3345
|
+
var pos = 0;
|
|
3346
|
+
var start;
|
|
3347
|
+
var ch;
|
|
3348
|
+
var lastComma;
|
|
3349
|
+
var nextStart;
|
|
3350
|
+
var cookiesSeparatorFound;
|
|
3351
|
+
function skipWhitespace() {
|
|
3352
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
3353
|
+
pos += 1;
|
|
3354
|
+
}
|
|
3355
|
+
return pos < cookiesString.length;
|
|
3356
|
+
}
|
|
3357
|
+
function notSpecialChar() {
|
|
3358
|
+
ch = cookiesString.charAt(pos);
|
|
3359
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
3360
|
+
}
|
|
3361
|
+
while (pos < cookiesString.length) {
|
|
3362
|
+
start = pos;
|
|
3363
|
+
cookiesSeparatorFound = false;
|
|
3364
|
+
while (skipWhitespace()) {
|
|
3365
|
+
ch = cookiesString.charAt(pos);
|
|
3366
|
+
if (ch === ",") {
|
|
3367
|
+
lastComma = pos;
|
|
3368
|
+
pos += 1;
|
|
3369
|
+
skipWhitespace();
|
|
3370
|
+
nextStart = pos;
|
|
3371
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
3372
|
+
pos += 1;
|
|
3373
|
+
}
|
|
3374
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
3375
|
+
cookiesSeparatorFound = true;
|
|
3376
|
+
pos = nextStart;
|
|
3377
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
3378
|
+
start = pos;
|
|
3379
|
+
} else {
|
|
3380
|
+
pos = lastComma + 1;
|
|
3381
|
+
}
|
|
3382
|
+
} else {
|
|
3383
|
+
pos += 1;
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
3387
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
return cookiesStrings;
|
|
3391
|
+
}
|
|
3392
|
+
parseSetCookie.parseSetCookie = parseSetCookie;
|
|
3393
|
+
parseSetCookie.parse = parseSetCookie;
|
|
3394
|
+
parseSetCookie.parseString = parseString;
|
|
3395
|
+
parseSetCookie.splitCookiesString = splitCookiesString;
|
|
3396
|
+
function create_fetch({ event, options: options2, manifest, state, get_cookie_header, set_internal }) {
|
|
3397
|
+
const server_fetch = async (info, init2) => {
|
|
3398
|
+
const original_request = normalize_fetch_input(info, init2, event.url);
|
|
3399
|
+
let mode = (info instanceof Request ? info.mode : init2?.mode) ?? "cors";
|
|
3400
|
+
let credentials = (info instanceof Request ? info.credentials : init2?.credentials) ?? "same-origin";
|
|
3401
|
+
return options2.hooks.handleFetch({
|
|
3402
|
+
event,
|
|
3403
|
+
request: original_request,
|
|
3404
|
+
fetch: async (info2, init3) => {
|
|
3405
|
+
const request = normalize_fetch_input(info2, init3, event.url);
|
|
3406
|
+
const url = new URL(request.url);
|
|
3407
|
+
if (!request.headers.has("origin")) {
|
|
3408
|
+
request.headers.set("origin", event.url.origin);
|
|
3409
|
+
}
|
|
3410
|
+
if (info2 !== original_request) {
|
|
3411
|
+
mode = (info2 instanceof Request ? info2.mode : init3?.mode) ?? "cors";
|
|
3412
|
+
credentials = (info2 instanceof Request ? info2.credentials : init3?.credentials) ?? "same-origin";
|
|
3413
|
+
}
|
|
3414
|
+
if ((request.method === "GET" || request.method === "HEAD") && (mode === "no-cors" && url.origin !== event.url.origin || url.origin === event.url.origin)) {
|
|
3415
|
+
request.headers.delete("origin");
|
|
3416
|
+
}
|
|
3417
|
+
const decoded = decodeURIComponent(url.pathname);
|
|
3418
|
+
if (url.origin !== event.url.origin || base && decoded !== base && !decoded.startsWith(`${base}/`)) {
|
|
3419
|
+
if (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== "omit") {
|
|
3420
|
+
const cookie2 = get_cookie_header(url, request.headers.get("cookie"));
|
|
3421
|
+
if (cookie2) request.headers.set("cookie", cookie2);
|
|
3422
|
+
}
|
|
3423
|
+
return fetch(request);
|
|
3424
|
+
}
|
|
3425
|
+
const prefix = assets || base;
|
|
3426
|
+
const filename = (decoded.startsWith(prefix) ? decoded.slice(prefix.length) : decoded).slice(1);
|
|
3427
|
+
const filename_html = `${filename}/index.html`;
|
|
3428
|
+
const is_asset = manifest.assets.has(filename) || filename in manifest._.server_assets;
|
|
3429
|
+
const is_asset_html = manifest.assets.has(filename_html) || filename_html in manifest._.server_assets;
|
|
3430
|
+
if (is_asset || is_asset_html) {
|
|
3431
|
+
const file = is_asset ? filename : filename_html;
|
|
3432
|
+
if (state.read) {
|
|
3433
|
+
const type = is_asset ? manifest.mimeTypes[filename.slice(filename.lastIndexOf("."))] : "text/html";
|
|
3434
|
+
return new Response(state.read(file), {
|
|
3435
|
+
headers: type ? { "content-type": type } : {}
|
|
3436
|
+
});
|
|
3437
|
+
} else if (read_implementation && file in manifest._.server_assets) {
|
|
3438
|
+
const length = manifest._.server_assets[file];
|
|
3439
|
+
const type = manifest.mimeTypes[file.slice(file.lastIndexOf("."))];
|
|
3440
|
+
return new Response(read_implementation(file), {
|
|
3441
|
+
headers: {
|
|
3442
|
+
"Content-Length": "" + length,
|
|
3443
|
+
"Content-Type": type
|
|
3444
|
+
}
|
|
3445
|
+
});
|
|
3446
|
+
}
|
|
3447
|
+
return await fetch(request);
|
|
3448
|
+
}
|
|
3449
|
+
if (has_prerendered_path(manifest, base + decoded)) {
|
|
3450
|
+
return await fetch(request);
|
|
3451
|
+
}
|
|
3452
|
+
if (credentials !== "omit") {
|
|
3453
|
+
const cookie2 = get_cookie_header(url, request.headers.get("cookie"));
|
|
3454
|
+
if (cookie2) {
|
|
3455
|
+
request.headers.set("cookie", cookie2);
|
|
3456
|
+
}
|
|
3457
|
+
const authorization = event.request.headers.get("authorization");
|
|
3458
|
+
if (authorization && !request.headers.has("authorization")) {
|
|
3459
|
+
request.headers.set("authorization", authorization);
|
|
3460
|
+
}
|
|
3461
|
+
}
|
|
3462
|
+
if (!request.headers.has("accept")) {
|
|
3463
|
+
request.headers.set("accept", "*/*");
|
|
3464
|
+
}
|
|
3465
|
+
if (!request.headers.has("accept-language")) {
|
|
3466
|
+
request.headers.set(
|
|
3467
|
+
"accept-language",
|
|
3468
|
+
/** @type {string} */
|
|
3469
|
+
event.request.headers.get("accept-language")
|
|
3470
|
+
);
|
|
3471
|
+
}
|
|
3472
|
+
const response = await internal_fetch(request, options2, manifest, state);
|
|
3473
|
+
const set_cookie = response.headers.get("set-cookie");
|
|
3474
|
+
if (set_cookie) {
|
|
3475
|
+
for (const str of splitCookiesString(set_cookie)) {
|
|
3476
|
+
const { name, value, ...options3 } = parseString(str, {
|
|
3477
|
+
decodeValues: false
|
|
3478
|
+
});
|
|
3479
|
+
const path = options3.path ?? (url.pathname.split("/").slice(0, -1).join("/") || "/");
|
|
3480
|
+
set_internal(name, value, {
|
|
3481
|
+
path,
|
|
3482
|
+
encode: (value2) => value2,
|
|
3483
|
+
.../** @type {import('cookie').CookieSerializeOptions} */
|
|
3484
|
+
options3
|
|
3485
|
+
});
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
return response;
|
|
3489
|
+
}
|
|
3490
|
+
});
|
|
3491
|
+
};
|
|
3492
|
+
return (input, init2) => {
|
|
3493
|
+
const response = server_fetch(input, init2);
|
|
3494
|
+
response.catch(noop);
|
|
3495
|
+
return response;
|
|
3496
|
+
};
|
|
3497
|
+
}
|
|
3498
|
+
function normalize_fetch_input(info, init2, url) {
|
|
3499
|
+
if (info instanceof Request) {
|
|
3500
|
+
return info;
|
|
3501
|
+
}
|
|
3502
|
+
return new Request(typeof info === "string" ? new URL(info, url) : info, init2);
|
|
3503
|
+
}
|
|
3504
|
+
async function internal_fetch(request, options2, manifest, state) {
|
|
3505
|
+
if (request.signal) {
|
|
3506
|
+
if (request.signal.aborted) {
|
|
3507
|
+
throw new DOMException("The operation was aborted.", "AbortError");
|
|
3508
|
+
}
|
|
3509
|
+
let remove_abort_listener = noop;
|
|
3510
|
+
const abort_promise = new Promise((_, reject) => {
|
|
3511
|
+
const on_abort = () => {
|
|
3512
|
+
reject(new DOMException("The operation was aborted.", "AbortError"));
|
|
3513
|
+
};
|
|
3514
|
+
request.signal.addEventListener("abort", on_abort, { once: true });
|
|
3515
|
+
remove_abort_listener = () => request.signal.removeEventListener("abort", on_abort);
|
|
3516
|
+
});
|
|
3517
|
+
const result = await Promise.race([
|
|
3518
|
+
respond(request, options2, manifest, {
|
|
3519
|
+
...state,
|
|
3520
|
+
depth: state.depth + 1
|
|
3521
|
+
}),
|
|
3522
|
+
abort_promise
|
|
3523
|
+
]);
|
|
3524
|
+
remove_abort_listener();
|
|
3525
|
+
return result;
|
|
3526
|
+
} else {
|
|
3527
|
+
return await respond(request, options2, manifest, {
|
|
3528
|
+
...state,
|
|
3529
|
+
depth: state.depth + 1
|
|
3530
|
+
});
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
let body;
|
|
3534
|
+
let etag;
|
|
3535
|
+
let headers;
|
|
3536
|
+
function get_public_env(request) {
|
|
3537
|
+
body ??= `export const env=${JSON.stringify(public_env)}`;
|
|
3538
|
+
etag ??= `W/${Date.now()}`;
|
|
3539
|
+
headers ??= new Headers({
|
|
3540
|
+
"content-type": "application/javascript; charset=utf-8",
|
|
3541
|
+
etag
|
|
3542
|
+
});
|
|
3543
|
+
if (request.headers.get("if-none-match") === etag) {
|
|
3544
|
+
return new Response(void 0, { status: 304, headers });
|
|
3545
|
+
}
|
|
3546
|
+
return new Response(body, { headers });
|
|
3547
|
+
}
|
|
3548
|
+
const default_transform = ({ html }) => html;
|
|
3549
|
+
const default_filter = () => false;
|
|
3550
|
+
const default_preload = ({ type }) => type === "js" || type === "css";
|
|
3551
|
+
const page_methods = /* @__PURE__ */ new Set(["GET", "HEAD", "POST"]);
|
|
3552
|
+
const allowed_page_methods = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS"]);
|
|
3553
|
+
const respond = propagate_context(internal_respond);
|
|
3554
|
+
async function internal_respond(request, options2, manifest, state) {
|
|
3555
|
+
const url = new URL(request.url);
|
|
3556
|
+
const is_route_resolution_request = has_resolution_suffix(url.pathname);
|
|
3557
|
+
const is_data_request = has_data_suffix(url.pathname);
|
|
3558
|
+
const remote_id = get_remote_id(url);
|
|
3559
|
+
{
|
|
3560
|
+
const request_origin = request.headers.get("origin");
|
|
3561
|
+
if (remote_id) {
|
|
3562
|
+
if (request.method !== "GET" && request_origin !== url.origin) {
|
|
3563
|
+
const message = "Cross-site remote requests are forbidden";
|
|
3564
|
+
return json({ message }, { status: 403 });
|
|
3565
|
+
}
|
|
3566
|
+
} else if (options2.csrf_check_origin) {
|
|
3567
|
+
const forbidden = is_form_content_type(request) && (request.method === "POST" || request.method === "PUT" || request.method === "PATCH" || request.method === "DELETE") && request_origin !== url.origin && (!request_origin || !options2.csrf_trusted_origins.includes(request_origin));
|
|
3568
|
+
if (forbidden) {
|
|
3569
|
+
const message = `Cross-site ${request.method} form submissions are forbidden`;
|
|
3570
|
+
const opts = { status: 403 };
|
|
3571
|
+
if (request.headers.get("accept") === "application/json") {
|
|
3572
|
+
return json({ message }, opts);
|
|
3573
|
+
}
|
|
3574
|
+
return text(message, opts);
|
|
3575
|
+
}
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3578
|
+
if (options2.hash_routing && url.pathname !== base + "/" && url.pathname !== "/[fallback]") {
|
|
3579
|
+
return text("Not found", { status: 404 });
|
|
3580
|
+
}
|
|
3581
|
+
let invalidated_data_nodes;
|
|
3582
|
+
if (is_route_resolution_request) {
|
|
3583
|
+
url.pathname = strip_resolution_suffix(url.pathname);
|
|
3584
|
+
} else if (is_data_request) {
|
|
3585
|
+
url.pathname = strip_data_suffix(url.pathname) + (url.searchParams.get(TRAILING_SLASH_PARAM) === "1" ? "/" : "") || "/";
|
|
3586
|
+
url.searchParams.delete(TRAILING_SLASH_PARAM);
|
|
3587
|
+
invalidated_data_nodes = url.searchParams.get(INVALIDATED_PARAM)?.split("").map((node) => node === "1");
|
|
3588
|
+
url.searchParams.delete(INVALIDATED_PARAM);
|
|
3589
|
+
} else if (remote_id) {
|
|
3590
|
+
url.pathname = request.headers.get("x-sveltekit-pathname") ?? base;
|
|
3591
|
+
url.search = request.headers.get("x-sveltekit-search") ?? "";
|
|
3592
|
+
}
|
|
3593
|
+
const headers2 = {};
|
|
3594
|
+
const { cookies, new_cookies, get_cookie_header, set_internal, set_trailing_slash } = get_cookies(
|
|
3595
|
+
request,
|
|
3596
|
+
url
|
|
3597
|
+
);
|
|
3598
|
+
const event_state = {
|
|
3599
|
+
prerendering: state.prerendering,
|
|
3600
|
+
transport: options2.hooks.transport,
|
|
3601
|
+
handleValidationError: options2.hooks.handleValidationError,
|
|
3602
|
+
tracing: {
|
|
3603
|
+
record_span
|
|
3604
|
+
},
|
|
3605
|
+
remote: {
|
|
3606
|
+
data: null,
|
|
3607
|
+
forms: null,
|
|
3608
|
+
/** A map of remote function key to corresponding single-flight-mutation promise */
|
|
3609
|
+
refreshes: null,
|
|
3610
|
+
/** A map of remote function ID to payloads requested for refreshing by the client */
|
|
3611
|
+
requested: null
|
|
3612
|
+
},
|
|
3613
|
+
is_in_remote_function: false,
|
|
3614
|
+
is_in_render: false,
|
|
3615
|
+
is_in_universal_load: false
|
|
3616
|
+
};
|
|
3617
|
+
const event = {
|
|
3618
|
+
cookies,
|
|
3619
|
+
// @ts-expect-error `fetch` needs to be created after the `event` itself
|
|
3620
|
+
fetch: null,
|
|
3621
|
+
getClientAddress: state.getClientAddress || (() => {
|
|
3622
|
+
throw new Error(
|
|
3623
|
+
`${"@sveltejs/adapter-node"} does not specify getClientAddress. Please raise an issue`
|
|
3624
|
+
);
|
|
3625
|
+
}),
|
|
3626
|
+
locals: {},
|
|
3627
|
+
params: {},
|
|
3628
|
+
platform: state.platform,
|
|
3629
|
+
request,
|
|
3630
|
+
route: { id: null },
|
|
3631
|
+
setHeaders: (new_headers) => {
|
|
3632
|
+
for (const key2 in new_headers) {
|
|
3633
|
+
const lower = key2.toLowerCase();
|
|
3634
|
+
const value = new_headers[key2];
|
|
3635
|
+
if (lower === "set-cookie") {
|
|
3636
|
+
throw new Error(
|
|
3637
|
+
"Use `event.cookies.set(name, value, options)` instead of `event.setHeaders` to set cookies"
|
|
3638
|
+
);
|
|
3639
|
+
} else if (lower in headers2) {
|
|
3640
|
+
if (lower === "server-timing") {
|
|
3641
|
+
headers2[lower] += ", " + value;
|
|
3642
|
+
} else {
|
|
3643
|
+
throw new Error(`"${key2}" header is already set`);
|
|
3644
|
+
}
|
|
3645
|
+
} else {
|
|
3646
|
+
headers2[lower] = value;
|
|
3647
|
+
if (state.prerendering && lower === "cache-control") {
|
|
3648
|
+
state.prerendering.cache = /** @type {string} */
|
|
3649
|
+
value;
|
|
3650
|
+
}
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
},
|
|
3654
|
+
url,
|
|
3655
|
+
isDataRequest: is_data_request,
|
|
3656
|
+
isSubRequest: state.depth > 0,
|
|
3657
|
+
isRemoteRequest: !!remote_id
|
|
3658
|
+
};
|
|
3659
|
+
event.fetch = create_fetch({
|
|
3660
|
+
event,
|
|
3661
|
+
options: options2,
|
|
3662
|
+
manifest,
|
|
3663
|
+
state,
|
|
3664
|
+
get_cookie_header,
|
|
3665
|
+
set_internal
|
|
3666
|
+
});
|
|
3667
|
+
if (state.emulator?.platform) {
|
|
3668
|
+
event.platform = await state.emulator.platform({
|
|
3669
|
+
config: {},
|
|
3670
|
+
prerender: !!state.prerendering?.fallback
|
|
3671
|
+
});
|
|
3672
|
+
}
|
|
3673
|
+
let resolved_path = url.pathname;
|
|
3674
|
+
if (!remote_id) {
|
|
3675
|
+
const prerendering_reroute_state = state.prerendering?.inside_reroute;
|
|
3676
|
+
try {
|
|
3677
|
+
if (state.prerendering) state.prerendering.inside_reroute = true;
|
|
3678
|
+
resolved_path = await options2.hooks.reroute({ url: new URL(url), fetch: event.fetch }) ?? url.pathname;
|
|
3679
|
+
} catch {
|
|
3680
|
+
return text("Internal Server Error", {
|
|
3681
|
+
status: 500
|
|
3682
|
+
});
|
|
3683
|
+
} finally {
|
|
3684
|
+
if (state.prerendering) state.prerendering.inside_reroute = prerendering_reroute_state;
|
|
3685
|
+
}
|
|
3686
|
+
}
|
|
3687
|
+
try {
|
|
3688
|
+
resolved_path = decode_pathname(resolved_path);
|
|
3689
|
+
} catch {
|
|
3690
|
+
return text("Malformed URI", { status: 400 });
|
|
3691
|
+
}
|
|
3692
|
+
if (
|
|
3693
|
+
// the resolved path has been decoded so it should be compared to the decoded url pathname
|
|
3694
|
+
resolved_path !== decode_pathname(url.pathname) && !state.prerendering?.fallback && has_prerendered_path(manifest, resolved_path)
|
|
3695
|
+
) {
|
|
3696
|
+
const url2 = new URL(request.url);
|
|
3697
|
+
url2.pathname = is_data_request ? add_data_suffix(resolved_path) : is_route_resolution_request ? add_resolution_suffix(resolved_path) : resolved_path;
|
|
3698
|
+
try {
|
|
3699
|
+
const response = await fetch(url2, request);
|
|
3700
|
+
const headers22 = new Headers(response.headers);
|
|
3701
|
+
if (headers22.has("content-encoding")) {
|
|
3702
|
+
headers22.delete("content-encoding");
|
|
3703
|
+
headers22.delete("content-length");
|
|
3704
|
+
}
|
|
3705
|
+
return new Response(response.body, {
|
|
3706
|
+
headers: headers22,
|
|
3707
|
+
status: response.status,
|
|
3708
|
+
statusText: response.statusText
|
|
3709
|
+
});
|
|
3710
|
+
} catch (error2) {
|
|
3711
|
+
return await handle_fatal_error(event, event_state, options2, error2);
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
let route = null;
|
|
3715
|
+
if (base && !state.prerendering?.fallback) {
|
|
3716
|
+
if (!resolved_path.startsWith(base)) {
|
|
3717
|
+
return text("Not found", { status: 404 });
|
|
3718
|
+
}
|
|
3719
|
+
resolved_path = resolved_path.slice(base.length) || "/";
|
|
3720
|
+
}
|
|
3721
|
+
if (is_route_resolution_request) {
|
|
3722
|
+
return resolve_route(resolved_path, new URL(request.url), manifest);
|
|
3723
|
+
}
|
|
3724
|
+
if (resolved_path === `/${app_dir}/env.js`) {
|
|
3725
|
+
return get_public_env(request);
|
|
3726
|
+
}
|
|
3727
|
+
if (!remote_id && resolved_path.startsWith(`/${app_dir}`)) {
|
|
3728
|
+
const headers22 = new Headers();
|
|
3729
|
+
headers22.set("cache-control", "public, max-age=0, must-revalidate");
|
|
3730
|
+
return text("Not found", { status: 404, headers: headers22 });
|
|
3731
|
+
}
|
|
3732
|
+
if (!state.prerendering?.fallback) {
|
|
3733
|
+
const matchers = await manifest._.matchers();
|
|
3734
|
+
const result = find_route(resolved_path, manifest._.routes, matchers);
|
|
3735
|
+
if (result) {
|
|
3736
|
+
route = result.route;
|
|
3737
|
+
event.route = { id: route.id };
|
|
3738
|
+
event.params = result.params;
|
|
3739
|
+
}
|
|
3740
|
+
}
|
|
3741
|
+
let resolve_opts = {
|
|
3742
|
+
transformPageChunk: default_transform,
|
|
3743
|
+
filterSerializedResponseHeaders: default_filter,
|
|
3744
|
+
preload: default_preload
|
|
3745
|
+
};
|
|
3746
|
+
let trailing_slash = "never";
|
|
3747
|
+
try {
|
|
3748
|
+
const page_nodes = route?.page ? new PageNodes(await load_page_nodes(route.page, manifest)) : void 0;
|
|
3749
|
+
if (route && !remote_id) {
|
|
3750
|
+
if (url.pathname === base || url.pathname === base + "/") {
|
|
3751
|
+
trailing_slash = "always";
|
|
3752
|
+
} else if (page_nodes) {
|
|
3753
|
+
if (BROWSER) ;
|
|
3754
|
+
trailing_slash = page_nodes.trailing_slash();
|
|
3755
|
+
} else if (route.endpoint) {
|
|
3756
|
+
const node = await route.endpoint();
|
|
3757
|
+
trailing_slash = node.trailingSlash ?? "never";
|
|
3758
|
+
if (BROWSER) ;
|
|
3759
|
+
}
|
|
3760
|
+
if (!is_data_request) {
|
|
3761
|
+
const normalized = normalize_path(url.pathname, trailing_slash);
|
|
3762
|
+
if (normalized !== url.pathname && !state.prerendering?.fallback) {
|
|
3763
|
+
return new Response(void 0, {
|
|
3764
|
+
status: 308,
|
|
3765
|
+
headers: {
|
|
3766
|
+
"x-sveltekit-normalize": "1",
|
|
3767
|
+
location: (
|
|
3768
|
+
// ensure paths starting with '//' are not treated as protocol-relative
|
|
3769
|
+
(normalized.startsWith("//") ? url.origin + normalized : normalized) + (url.search === "?" ? "" : url.search)
|
|
3770
|
+
)
|
|
3771
|
+
}
|
|
3772
|
+
});
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
if (state.before_handle || state.emulator?.platform) {
|
|
3776
|
+
let config = {};
|
|
3777
|
+
let prerender = false;
|
|
3778
|
+
if (route.endpoint) {
|
|
3779
|
+
const node = await route.endpoint();
|
|
3780
|
+
config = node.config ?? config;
|
|
3781
|
+
prerender = node.prerender ?? prerender;
|
|
3782
|
+
} else if (page_nodes) {
|
|
3783
|
+
config = page_nodes.get_config() ?? config;
|
|
3784
|
+
prerender = page_nodes.prerender();
|
|
3785
|
+
}
|
|
3786
|
+
if (state.before_handle) {
|
|
3787
|
+
state.before_handle(event, config, prerender);
|
|
3788
|
+
}
|
|
3789
|
+
if (state.emulator?.platform) {
|
|
3790
|
+
event.platform = await state.emulator.platform({ config, prerender });
|
|
3791
|
+
}
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
set_trailing_slash(trailing_slash);
|
|
3795
|
+
if (state.prerendering && !state.prerendering.fallback && !state.prerendering.inside_reroute) {
|
|
3796
|
+
disable_search(url);
|
|
3797
|
+
}
|
|
3798
|
+
const response = await record_span({
|
|
3799
|
+
name: "sveltekit.handle.root",
|
|
3800
|
+
attributes: {
|
|
3801
|
+
"http.route": event.route.id || "unknown",
|
|
3802
|
+
"http.method": event.request.method,
|
|
3803
|
+
"http.url": event.url.href,
|
|
3804
|
+
"sveltekit.is_data_request": is_data_request,
|
|
3805
|
+
"sveltekit.is_sub_request": event.isSubRequest
|
|
3806
|
+
},
|
|
3807
|
+
fn: async (root_span) => {
|
|
3808
|
+
const traced_event = {
|
|
3809
|
+
...event,
|
|
3810
|
+
tracing: {
|
|
3811
|
+
enabled: false,
|
|
3812
|
+
root: root_span,
|
|
3813
|
+
current: root_span
|
|
3814
|
+
}
|
|
3815
|
+
};
|
|
3816
|
+
return await with_request_store(
|
|
3817
|
+
{ event: traced_event, state: event_state },
|
|
3818
|
+
() => options2.hooks.handle({
|
|
3819
|
+
event: traced_event,
|
|
3820
|
+
resolve: (event2, opts) => {
|
|
3821
|
+
return record_span({
|
|
3822
|
+
name: "sveltekit.resolve",
|
|
3823
|
+
attributes: {
|
|
3824
|
+
"http.route": event2.route.id || "unknown"
|
|
3825
|
+
},
|
|
3826
|
+
fn: (resolve_span) => {
|
|
3827
|
+
return with_request_store(
|
|
3828
|
+
null,
|
|
3829
|
+
() => resolve2(merge_tracing(event2, resolve_span), page_nodes, opts).then(
|
|
3830
|
+
(response2) => {
|
|
3831
|
+
for (const key2 in headers2) {
|
|
3832
|
+
const value = headers2[key2];
|
|
3833
|
+
response2.headers.set(
|
|
3834
|
+
key2,
|
|
3835
|
+
/** @type {string} */
|
|
3836
|
+
value
|
|
3837
|
+
);
|
|
3838
|
+
}
|
|
3839
|
+
add_cookies_to_headers(response2.headers, new_cookies.values());
|
|
3840
|
+
if (state.prerendering && event2.route.id !== null) {
|
|
3841
|
+
response2.headers.set("x-sveltekit-routeid", encodeURI(event2.route.id));
|
|
3842
|
+
}
|
|
3843
|
+
resolve_span.setAttributes({
|
|
3844
|
+
"http.response.status_code": response2.status,
|
|
3845
|
+
"http.response.body.size": response2.headers.get("content-length") || "unknown"
|
|
3846
|
+
});
|
|
3847
|
+
return response2;
|
|
3848
|
+
}
|
|
3849
|
+
)
|
|
3850
|
+
);
|
|
3851
|
+
}
|
|
3852
|
+
});
|
|
3853
|
+
}
|
|
3854
|
+
})
|
|
3855
|
+
);
|
|
3856
|
+
}
|
|
3857
|
+
});
|
|
3858
|
+
if (response.status === 200 && response.headers.has("etag")) {
|
|
3859
|
+
let if_none_match_value = request.headers.get("if-none-match");
|
|
3860
|
+
if (if_none_match_value?.startsWith('W/"')) {
|
|
3861
|
+
if_none_match_value = if_none_match_value.substring(2);
|
|
3862
|
+
}
|
|
3863
|
+
const etag2 = (
|
|
3864
|
+
/** @type {string} */
|
|
3865
|
+
response.headers.get("etag")
|
|
3866
|
+
);
|
|
3867
|
+
if (if_none_match_value === etag2) {
|
|
3868
|
+
const headers22 = new Headers({ etag: etag2 });
|
|
3869
|
+
for (const key2 of [
|
|
3870
|
+
"cache-control",
|
|
3871
|
+
"content-location",
|
|
3872
|
+
"date",
|
|
3873
|
+
"expires",
|
|
3874
|
+
"vary",
|
|
3875
|
+
"set-cookie"
|
|
3876
|
+
]) {
|
|
3877
|
+
const value = response.headers.get(key2);
|
|
3878
|
+
if (value) headers22.set(key2, value);
|
|
3879
|
+
}
|
|
3880
|
+
return new Response(void 0, {
|
|
3881
|
+
status: 304,
|
|
3882
|
+
headers: headers22
|
|
3883
|
+
});
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
if (is_data_request && response.status >= 300 && response.status <= 308) {
|
|
3887
|
+
const location = response.headers.get("location");
|
|
3888
|
+
if (location) {
|
|
3889
|
+
return redirect_json_response(new Redirect(
|
|
3890
|
+
/** @type {any} */
|
|
3891
|
+
response.status,
|
|
3892
|
+
location
|
|
3893
|
+
));
|
|
3894
|
+
}
|
|
3895
|
+
}
|
|
3896
|
+
return response;
|
|
3897
|
+
} catch (e) {
|
|
3898
|
+
if (e instanceof Redirect) {
|
|
3899
|
+
try {
|
|
3900
|
+
const response = is_data_request || remote_id ? redirect_json_response(e) : route?.page && is_action_json_request(event) ? action_json_redirect(e) : redirect_response(e.status, e.location);
|
|
3901
|
+
add_cookies_to_headers(response.headers, new_cookies.values());
|
|
3902
|
+
return response;
|
|
3903
|
+
} catch (err) {
|
|
3904
|
+
return await handle_fatal_error(event, event_state, options2, err);
|
|
3905
|
+
}
|
|
3906
|
+
}
|
|
3907
|
+
return await handle_fatal_error(event, event_state, options2, e);
|
|
3908
|
+
}
|
|
3909
|
+
async function resolve2(event2, page_nodes, opts) {
|
|
3910
|
+
try {
|
|
3911
|
+
if (opts) {
|
|
3912
|
+
resolve_opts = {
|
|
3913
|
+
transformPageChunk: opts.transformPageChunk || default_transform,
|
|
3914
|
+
filterSerializedResponseHeaders: opts.filterSerializedResponseHeaders || default_filter,
|
|
3915
|
+
preload: opts.preload || default_preload
|
|
3916
|
+
};
|
|
3917
|
+
}
|
|
3918
|
+
if (options2.hash_routing || state.prerendering?.fallback) {
|
|
3919
|
+
return await render_response({
|
|
3920
|
+
event: event2,
|
|
3921
|
+
event_state,
|
|
3922
|
+
options: options2,
|
|
3923
|
+
manifest,
|
|
3924
|
+
state,
|
|
3925
|
+
page_config: { ssr: false, csr: true },
|
|
3926
|
+
status: 200,
|
|
3927
|
+
error: null,
|
|
3928
|
+
branch: [
|
|
3929
|
+
// include the root layout because it applies to every page
|
|
3930
|
+
{
|
|
3931
|
+
node: (
|
|
3932
|
+
/** @type {SSRNode} */
|
|
3933
|
+
await manifest._.nodes[0]()
|
|
3934
|
+
),
|
|
3935
|
+
data: null,
|
|
3936
|
+
server_data: null
|
|
3937
|
+
}
|
|
3938
|
+
],
|
|
3939
|
+
fetched: [],
|
|
3940
|
+
resolve_opts,
|
|
3941
|
+
data_serializer: server_data_serializer(event2, event_state, options2)
|
|
3942
|
+
});
|
|
3943
|
+
}
|
|
3944
|
+
if (remote_id) {
|
|
3945
|
+
return await handle_remote_call(event2, event_state, options2, manifest, remote_id);
|
|
3946
|
+
}
|
|
3947
|
+
if (route) {
|
|
3948
|
+
const method = (
|
|
3949
|
+
/** @type {import('types').HttpMethod} */
|
|
3950
|
+
event2.request.method
|
|
3951
|
+
);
|
|
3952
|
+
let response2;
|
|
3953
|
+
if (is_data_request) {
|
|
3954
|
+
response2 = await render_data(
|
|
3955
|
+
event2,
|
|
3956
|
+
event_state,
|
|
3957
|
+
route,
|
|
3958
|
+
options2,
|
|
3959
|
+
manifest,
|
|
3960
|
+
state,
|
|
3961
|
+
invalidated_data_nodes,
|
|
3962
|
+
trailing_slash
|
|
3963
|
+
);
|
|
3964
|
+
} else if (route.endpoint && (!route.page || is_endpoint_request(event2))) {
|
|
3965
|
+
response2 = await render_endpoint(event2, event_state, await route.endpoint(), state);
|
|
3966
|
+
} else if (route.page) {
|
|
3967
|
+
if (!page_nodes) {
|
|
3968
|
+
throw new Error("page_nodes not found. This should never happen");
|
|
3969
|
+
} else if (page_methods.has(method)) {
|
|
3970
|
+
response2 = await render_page(
|
|
3971
|
+
event2,
|
|
3972
|
+
event_state,
|
|
3973
|
+
route.page,
|
|
3974
|
+
options2,
|
|
3975
|
+
manifest,
|
|
3976
|
+
state,
|
|
3977
|
+
page_nodes,
|
|
3978
|
+
resolve_opts
|
|
3979
|
+
);
|
|
3980
|
+
} else {
|
|
3981
|
+
const allowed_methods = new Set(allowed_page_methods);
|
|
3982
|
+
const node = await manifest._.nodes[route.page.leaf]();
|
|
3983
|
+
if (node?.server?.actions) {
|
|
3984
|
+
allowed_methods.add("POST");
|
|
3985
|
+
}
|
|
3986
|
+
if (method === "OPTIONS") {
|
|
3987
|
+
response2 = new Response(null, {
|
|
3988
|
+
status: 204,
|
|
3989
|
+
headers: {
|
|
3990
|
+
allow: Array.from(allowed_methods.values()).join(", ")
|
|
3991
|
+
}
|
|
3992
|
+
});
|
|
3993
|
+
} else {
|
|
3994
|
+
const mod = [...allowed_methods].reduce(
|
|
3995
|
+
(acc, curr) => {
|
|
3996
|
+
acc[curr] = true;
|
|
3997
|
+
return acc;
|
|
3998
|
+
},
|
|
3999
|
+
/** @type {Record<string, any>} */
|
|
4000
|
+
{}
|
|
4001
|
+
);
|
|
4002
|
+
response2 = method_not_allowed(mod, method);
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
} else {
|
|
4006
|
+
throw new Error("Route is neither page nor endpoint. This should never happen");
|
|
4007
|
+
}
|
|
4008
|
+
if (request.method === "GET" && route.page && route.endpoint) {
|
|
4009
|
+
const vary = response2.headers.get("vary")?.split(",")?.map((v) => v.trim().toLowerCase());
|
|
4010
|
+
if (!(vary?.includes("accept") || vary?.includes("*"))) {
|
|
4011
|
+
response2 = new Response(response2.body, {
|
|
4012
|
+
status: response2.status,
|
|
4013
|
+
statusText: response2.statusText,
|
|
4014
|
+
headers: new Headers(response2.headers)
|
|
4015
|
+
});
|
|
4016
|
+
response2.headers.append("Vary", "Accept");
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
return response2;
|
|
4020
|
+
}
|
|
4021
|
+
if (state.error && event2.isSubRequest) {
|
|
4022
|
+
const headers22 = new Headers(request.headers);
|
|
4023
|
+
headers22.set("x-sveltekit-error", "true");
|
|
4024
|
+
return await fetch(request, { headers: headers22 });
|
|
4025
|
+
}
|
|
4026
|
+
if (state.error) {
|
|
4027
|
+
return text("Internal Server Error", {
|
|
4028
|
+
status: 500
|
|
4029
|
+
});
|
|
4030
|
+
}
|
|
4031
|
+
if (state.depth === 0) {
|
|
4032
|
+
return await respond_with_error({
|
|
4033
|
+
event: event2,
|
|
4034
|
+
event_state,
|
|
4035
|
+
options: options2,
|
|
4036
|
+
manifest,
|
|
4037
|
+
state,
|
|
4038
|
+
status: 404,
|
|
4039
|
+
error: new SvelteKitError(404, "Not Found", `Not found: ${event2.url.pathname}`),
|
|
4040
|
+
resolve_opts
|
|
4041
|
+
});
|
|
4042
|
+
}
|
|
4043
|
+
if (state.prerendering) {
|
|
4044
|
+
return text("not found", { status: 404 });
|
|
4045
|
+
}
|
|
4046
|
+
const response = await fetch(request);
|
|
4047
|
+
return new Response(response.body, response);
|
|
4048
|
+
} catch (e) {
|
|
4049
|
+
return await handle_fatal_error(event2, event_state, options2, e);
|
|
4050
|
+
} finally {
|
|
4051
|
+
event2.cookies.set = () => {
|
|
4052
|
+
throw new Error("Cannot use `cookies.set(...)` after the response has been generated");
|
|
4053
|
+
};
|
|
4054
|
+
event2.setHeaders = () => {
|
|
4055
|
+
throw new Error("Cannot use `setHeaders(...)` after the response has been generated");
|
|
4056
|
+
};
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
}
|
|
4060
|
+
function load_page_nodes(page, manifest) {
|
|
4061
|
+
return Promise.all([
|
|
4062
|
+
// we use == here rather than === because [undefined] serializes as "[null]"
|
|
4063
|
+
...page.layouts.map((n) => n == void 0 ? n : manifest._.nodes[n]()),
|
|
4064
|
+
manifest._.nodes[page.leaf]()
|
|
4065
|
+
]);
|
|
4066
|
+
}
|
|
4067
|
+
function propagate_context(fn) {
|
|
4068
|
+
return async (req, ...rest) => {
|
|
4069
|
+
{
|
|
4070
|
+
return fn(req, ...rest);
|
|
4071
|
+
}
|
|
4072
|
+
};
|
|
4073
|
+
}
|
|
4074
|
+
function filter_env(env, allowed, disallowed) {
|
|
4075
|
+
return Object.fromEntries(
|
|
4076
|
+
Object.entries(env).filter(
|
|
4077
|
+
([k]) => k.startsWith(allowed) && (disallowed === "" || !k.startsWith(disallowed))
|
|
4078
|
+
)
|
|
4079
|
+
);
|
|
4080
|
+
}
|
|
4081
|
+
function set_app(value) {
|
|
4082
|
+
}
|
|
4083
|
+
let init_promise;
|
|
4084
|
+
let current = null;
|
|
4085
|
+
class Server {
|
|
4086
|
+
/** @type {import('types').SSROptions} */
|
|
4087
|
+
#options;
|
|
4088
|
+
/** @type {import('@sveltejs/kit').SSRManifest} */
|
|
4089
|
+
#manifest;
|
|
4090
|
+
/** @param {import('@sveltejs/kit').SSRManifest} manifest */
|
|
4091
|
+
constructor(manifest) {
|
|
4092
|
+
this.#options = options;
|
|
4093
|
+
this.#manifest = manifest;
|
|
4094
|
+
if (IN_WEBCONTAINER) {
|
|
4095
|
+
const respond2 = this.respond.bind(this);
|
|
4096
|
+
this.respond = async (...args) => {
|
|
4097
|
+
const { promise, resolve: resolve2 } = (
|
|
4098
|
+
/** @type {PromiseWithResolvers<void>} */
|
|
4099
|
+
with_resolvers()
|
|
4100
|
+
);
|
|
4101
|
+
const previous = current;
|
|
4102
|
+
current = promise;
|
|
4103
|
+
await previous;
|
|
4104
|
+
return respond2(...args).finally(resolve2);
|
|
4105
|
+
};
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
/**
|
|
4109
|
+
* @param {import('@sveltejs/kit').ServerInitOptions} opts
|
|
4110
|
+
*/
|
|
4111
|
+
async init({ env, read }) {
|
|
4112
|
+
const { env_public_prefix, env_private_prefix } = this.#options;
|
|
4113
|
+
set_private_env(filter_env(env, env_private_prefix, env_public_prefix));
|
|
4114
|
+
set_public_env(filter_env(env, env_public_prefix, env_private_prefix));
|
|
4115
|
+
if (read) {
|
|
4116
|
+
const wrapped_read = (file) => {
|
|
4117
|
+
const result = read(file);
|
|
4118
|
+
if (result instanceof ReadableStream) {
|
|
4119
|
+
return result;
|
|
4120
|
+
} else {
|
|
4121
|
+
return new ReadableStream({
|
|
4122
|
+
async start(controller) {
|
|
4123
|
+
try {
|
|
4124
|
+
const stream = await Promise.resolve(result);
|
|
4125
|
+
if (!stream) {
|
|
4126
|
+
controller.close();
|
|
4127
|
+
return;
|
|
4128
|
+
}
|
|
4129
|
+
const reader = stream.getReader();
|
|
4130
|
+
while (true) {
|
|
4131
|
+
const { done, value } = await reader.read();
|
|
4132
|
+
if (done) break;
|
|
4133
|
+
controller.enqueue(value);
|
|
4134
|
+
}
|
|
4135
|
+
controller.close();
|
|
4136
|
+
} catch (error2) {
|
|
4137
|
+
controller.error(error2);
|
|
4138
|
+
}
|
|
4139
|
+
}
|
|
4140
|
+
});
|
|
4141
|
+
}
|
|
4142
|
+
};
|
|
4143
|
+
set_read_implementation(wrapped_read);
|
|
4144
|
+
}
|
|
4145
|
+
await (init_promise ??= (async () => {
|
|
4146
|
+
try {
|
|
4147
|
+
const module = await get_hooks();
|
|
4148
|
+
this.#options.hooks = {
|
|
4149
|
+
handle: module.handle || (({ event, resolve: resolve2 }) => resolve2(event)),
|
|
4150
|
+
handleError: module.handleError || (({ status, error: error2, event }) => {
|
|
4151
|
+
const error_message = format_server_error(
|
|
4152
|
+
status,
|
|
4153
|
+
/** @type {Error} */
|
|
4154
|
+
error2,
|
|
4155
|
+
event
|
|
4156
|
+
);
|
|
4157
|
+
console.error(error_message);
|
|
4158
|
+
}),
|
|
4159
|
+
handleFetch: module.handleFetch || (({ request, fetch: fetch2 }) => fetch2(request)),
|
|
4160
|
+
handleValidationError: module.handleValidationError || (({ issues }) => {
|
|
4161
|
+
console.error("Remote function schema validation failed:", issues);
|
|
4162
|
+
return { message: "Bad Request" };
|
|
4163
|
+
}),
|
|
4164
|
+
reroute: module.reroute || noop,
|
|
4165
|
+
transport: module.transport || {}
|
|
4166
|
+
};
|
|
4167
|
+
set_app({
|
|
4168
|
+
decoders: module.transport ? Object.fromEntries(Object.entries(module.transport).map(([k, v]) => [k, v.decode])) : {}
|
|
4169
|
+
});
|
|
4170
|
+
if (module.init) {
|
|
4171
|
+
await module.init();
|
|
4172
|
+
}
|
|
4173
|
+
} catch (e) {
|
|
4174
|
+
{
|
|
4175
|
+
throw e;
|
|
4176
|
+
}
|
|
4177
|
+
}
|
|
4178
|
+
})());
|
|
4179
|
+
}
|
|
4180
|
+
/**
|
|
4181
|
+
* @param {Request} request
|
|
4182
|
+
* @param {import('types').RequestOptions} options
|
|
4183
|
+
*/
|
|
4184
|
+
async respond(request, options2) {
|
|
4185
|
+
return respond(request, this.#options, this.#manifest, {
|
|
4186
|
+
...options2,
|
|
4187
|
+
error: false,
|
|
4188
|
+
depth: 0
|
|
4189
|
+
});
|
|
4190
|
+
}
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
export { Server as S };
|
|
4194
|
+
//# sourceMappingURL=index.js-BZyh93vy.js.map
|