@juspay/shooter 1.9.2 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/assets/ColorPicker.CV4IKef4.css +1 -0
- package/build/client/_app/immutable/assets/ColorPicker.CV4IKef4.css.br +0 -0
- package/build/client/_app/immutable/assets/ColorPicker.CV4IKef4.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BFXEYMV8.js +3 -0
- package/build/client/_app/immutable/chunks/BFXEYMV8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFXEYMV8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BRqaaL5D.js +5 -0
- package/build/client/_app/immutable/chunks/BRqaaL5D.js.br +0 -0
- package/build/client/_app/immutable/chunks/BRqaaL5D.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C5VOyQCG.js +1 -0
- package/build/client/_app/immutable/chunks/C5VOyQCG.js.br +0 -0
- package/build/client/_app/immutable/chunks/C5VOyQCG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B-XSrufh.js → C_9BZILB.js} +1 -1
- package/build/client/_app/immutable/chunks/C_9BZILB.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_9BZILB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cg3dlX05.js +2 -0
- package/build/client/_app/immutable/chunks/Cg3dlX05.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cg3dlX05.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{WigD-5P0.js → CmtInjm0.js} +1 -1
- package/build/client/_app/immutable/chunks/CmtInjm0.js.br +0 -0
- package/build/client/_app/immutable/chunks/CmtInjm0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DYuMZGL5.js +1 -0
- package/build/client/_app/immutable/chunks/DYuMZGL5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DYuMZGL5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZQMsHM5.js +1 -0
- package/build/client/_app/immutable/chunks/DZQMsHM5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZQMsHM5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DZvnhU_8.js +21 -0
- package/build/client/_app/immutable/chunks/DZvnhU_8.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZvnhU_8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DjIci1dg.js → DfKeHoAm.js} +1 -1
- package/build/client/_app/immutable/chunks/DfKeHoAm.js.br +0 -0
- package/build/client/_app/immutable/chunks/DfKeHoAm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Pw0jDB7M.js +1 -0
- package/build/client/_app/immutable/chunks/Pw0jDB7M.js.br +0 -0
- package/build/client/_app/immutable/chunks/Pw0jDB7M.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Dp9YhfEg.js +2 -0
- package/build/client/_app/immutable/entry/app.Dp9YhfEg.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Dp9YhfEg.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Bc5yZsyK.js +1 -0
- package/build/client/_app/immutable/entry/start.Bc5yZsyK.js.br +2 -0
- package/build/client/_app/immutable/entry/start.Bc5yZsyK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.HapN5UGE.js → 0.B-M6sgow.js} +2 -2
- package/build/client/_app/immutable/nodes/0.B-M6sgow.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B-M6sgow.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.IBlbkVOD.js → 1.C8aY7Yn3.js} +1 -1
- package/build/client/_app/immutable/nodes/1.C8aY7Yn3.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.C8aY7Yn3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.BSGzQPKE.js → 2.YJZruh1H.js} +1 -1
- package/build/client/_app/immutable/nodes/2.YJZruh1H.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.YJZruh1H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.CVaviSxa.js → 3.VV-tRemY.js} +1 -1
- package/build/client/_app/immutable/nodes/3.VV-tRemY.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.VV-tRemY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.DgZG6DiA.js → 4.BSVqdrrD.js} +3 -3
- package/build/client/_app/immutable/nodes/4.BSVqdrrD.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BSVqdrrD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.BsPQpbNC.js → 5.Cfj35gpY.js} +1 -1
- package/build/client/_app/immutable/nodes/5.Cfj35gpY.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Cfj35gpY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.DqlYBRxO.js → 6.CDJA8Na9.js} +1 -1
- package/build/client/_app/immutable/nodes/6.CDJA8Na9.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CDJA8Na9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.C-mKfSQ6.js → 7.BX9znBYU.js} +1 -1
- package/build/client/_app/immutable/nodes/7.BX9znBYU.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BX9znBYU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.CWs7RaU8.js → 8.CmdrNdfj.js} +2 -2
- package/build/client/_app/immutable/nodes/8.CmdrNdfj.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CmdrNdfj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.CjYdYDhF.js → 9.BSleOtKF.js} +1 -1
- package/build/client/_app/immutable/nodes/9.BSleOtKF.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BSleOtKF.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/server/chunks/{0-D9OfRI2k.js → 0-vSdphvn2.js} +4 -4
- package/build/server/chunks/{0-D9OfRI2k.js.map → 0-vSdphvn2.js.map} +1 -1
- package/build/server/chunks/1-B5tn1ob0.js +9 -0
- package/build/server/chunks/{1-DgGFkvlg.js.map → 1-B5tn1ob0.js.map} +1 -1
- package/build/server/chunks/{2-SWCYKisx.js → 2-CUbzGnZ8.js} +4 -4
- package/build/server/chunks/{2-SWCYKisx.js.map → 2-CUbzGnZ8.js.map} +1 -1
- package/build/server/chunks/{3-i9IbPZ0L.js → 3-BR90tKg7.js} +4 -4
- package/build/server/chunks/{3-i9IbPZ0L.js.map → 3-BR90tKg7.js.map} +1 -1
- package/build/server/chunks/{4-BzsFX_T-.js → 4-CbejE1SC.js} +4 -4
- package/build/server/chunks/{4-BzsFX_T-.js.map → 4-CbejE1SC.js.map} +1 -1
- package/build/server/chunks/{5-BnyMNyuy.js → 5-BwqumuR1.js} +4 -4
- package/build/server/chunks/{5-BnyMNyuy.js.map → 5-BwqumuR1.js.map} +1 -1
- package/build/server/chunks/6-cW7umWCt.js +9 -0
- package/build/server/chunks/{6-BIsh7BZP.js.map → 6-cW7umWCt.js.map} +1 -1
- package/build/server/chunks/7-D3cb9T2g.js +9 -0
- package/build/server/chunks/{7-BtO1NV6d.js.map → 7-D3cb9T2g.js.map} +1 -1
- package/build/server/chunks/8-BEgZo4wA.js +9 -0
- package/build/server/chunks/{8-Cm04OX_8.js.map → 8-BEgZo4wA.js.map} +1 -1
- package/build/server/chunks/9-Dy8aTTtf.js +9 -0
- package/build/server/chunks/{9-D1iRD-KU.js.map → 9-Dy8aTTtf.js.map} +1 -1
- package/build/server/chunks/{Button-DVLTQJyD.js → Button-Dpueno77.js} +9 -9
- package/build/server/chunks/Button-Dpueno77.js.map +1 -0
- package/build/server/chunks/{Icon-BXE5-3Zt.js → Icon-aOLx5ELI.js} +7 -7
- package/build/server/chunks/Icon-aOLx5ELI.js.map +1 -0
- package/build/server/chunks/{Input-CgEj-A6D.js → Input-Cq7ZdLxS.js} +8 -8
- package/build/server/chunks/{Input-CgEj-A6D.js.map → Input-Cq7ZdLxS.js.map} +1 -1
- package/build/server/chunks/{Pill-CfGbZF-f.js → Pill-Bn597jm0.js} +5 -5
- package/build/server/chunks/Pill-Bn597jm0.js.map +1 -0
- package/build/server/chunks/Shimmer-5o7MVwXF.js +10 -0
- package/build/server/chunks/Shimmer-5o7MVwXF.js.map +1 -0
- package/build/server/chunks/{_error.svelte-DTYKLBYi.js → _error.svelte-C85mEsv9.js} +8 -8
- package/build/server/chunks/{_error.svelte-DTYKLBYi.js.map → _error.svelte-C85mEsv9.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-C0TOcumt.js → _layout.svelte-rpYLLajc.js} +10 -10
- package/build/server/chunks/{_layout.svelte-C0TOcumt.js.map → _layout.svelte-rpYLLajc.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DWJcHYX2.js → _page.svelte-B6O0uTrK.js} +4 -4
- package/build/server/chunks/{_page.svelte-DWJcHYX2.js.map → _page.svelte-B6O0uTrK.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BDyAukVH.js → _page.svelte-BfCXobKv.js} +11 -11
- package/build/server/chunks/{_page.svelte-BDyAukVH.js.map → _page.svelte-BfCXobKv.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-HCIg_ijq.js → _page.svelte-CA46TyHk.js} +5 -5
- package/build/server/chunks/{_page.svelte-HCIg_ijq.js.map → _page.svelte-CA46TyHk.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-Cn_oMd4r.js → _page.svelte-CCpVmMpU.js} +9 -9
- package/build/server/chunks/{_page.svelte-Cn_oMd4r.js.map → _page.svelte-CCpVmMpU.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DiHgZ-Qm.js → _page.svelte-D0FBtMtH.js} +11 -11
- package/build/server/chunks/{_page.svelte-DiHgZ-Qm.js.map → _page.svelte-D0FBtMtH.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BXZjHaxR.js → _page.svelte-DUj1mSq0.js} +7 -7
- package/build/server/chunks/{_page.svelte-BXZjHaxR.js.map → _page.svelte-DUj1mSq0.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DF8N4KBc.js → _page.svelte-DjADcbfZ.js} +34 -34
- package/build/server/chunks/_page.svelte-DjADcbfZ.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CnavwBE6.js → _page.svelte-fkR4xqGu.js} +20 -20
- package/build/server/chunks/_page.svelte-fkR4xqGu.js.map +1 -0
- package/build/server/chunks/{_server.ts-DkPPTUPo.js → _server.ts-BBLuxvp6.js} +5 -2
- package/build/server/chunks/{_server.ts-DkPPTUPo.js.map → _server.ts-BBLuxvp6.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BMcbwZ2r.js → _server.ts-HGYjOWF2.js} +3 -2
- package/build/server/chunks/{_server.ts-BMcbwZ2r.js.map → _server.ts-HGYjOWF2.js.map} +1 -1
- package/build/server/chunks/{cache-DQLC_4X6.js → cache-5_eamjtv.js} +6 -6
- package/build/server/chunks/cache-5_eamjtv.js.map +1 -0
- package/build/server/chunks/{client-DFS_oze8.js → client-w1WsLDGu.js} +4 -4
- package/build/server/chunks/{client-DFS_oze8.js.map → client-w1WsLDGu.js.map} +1 -1
- package/build/server/chunks/client2-B5wCRDQi.js +7 -0
- package/build/server/chunks/{client2-CuecdIgG.js.map → client2-B5wCRDQi.js.map} +1 -1
- package/build/server/chunks/index-CoD1IJuy.js.map +1 -1
- package/build/server/chunks/{index-Ce_T9BSa.js → index-DMikC9Qy.js} +327 -126
- package/build/server/chunks/index-DMikC9Qy.js.map +1 -0
- package/build/server/chunks/{index-server-DuadcihK.js → index-server-DHNcb_Bd.js} +2 -2
- package/build/server/chunks/{index-server-DuadcihK.js.map → index-server-DHNcb_Bd.js.map} +1 -1
- package/build/server/chunks/{index2-3-jnyNZ0.js → index2-BTTf6mSG.js} +2 -2
- package/build/server/chunks/{index2-3-jnyNZ0.js.map → index2-BTTf6mSG.js.map} +1 -1
- package/build/server/chunks/pending-requests-B-JNGxpk.js +96 -0
- package/build/server/chunks/pending-requests-B-JNGxpk.js.map +1 -0
- package/build/server/chunks/{root-CodmFd7L.js → root-DhBbA8QD.js} +20 -15
- package/build/server/chunks/root-DhBbA8QD.js.map +1 -0
- package/build/server/chunks/{state.svelte-BJz4uYyw.js → state.svelte-M8y8rROy.js} +3 -3
- package/build/server/chunks/{state.svelte-BJz4uYyw.js.map → state.svelte-M8y8rROy.js.map} +1 -1
- package/build/server/chunks/{stores-fLftuVrV.js → stores-CwkRmCHA.js} +4 -4
- package/build/server/chunks/{stores-fLftuVrV.js.map → stores-CwkRmCHA.js.map} +1 -1
- package/build/server/index.js +227 -123
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +13 -13
- package/build/server/manifest.js.map +1 -1
- package/package.json +11 -4
- package/src/lib/modules/server/apn/notification-history.ts +3 -2
- package/src/lib/modules/server/apn/pending-requests.ts +115 -27
- package/build/client/_app/immutable/assets/ColorPicker.Hf6zQzuB.css +0 -1
- package/build/client/_app/immutable/assets/ColorPicker.Hf6zQzuB.css.br +0 -0
- package/build/client/_app/immutable/assets/ColorPicker.Hf6zQzuB.css.gz +0 -0
- package/build/client/_app/immutable/chunks/3MMtouT7.js +0 -2
- package/build/client/_app/immutable/chunks/3MMtouT7.js.br +0 -0
- package/build/client/_app/immutable/chunks/3MMtouT7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/780RSrro.js +0 -1
- package/build/client/_app/immutable/chunks/780RSrro.js.br +0 -0
- package/build/client/_app/immutable/chunks/780RSrro.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-XSrufh.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-XSrufh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B-aj0tWo.js +0 -3
- package/build/client/_app/immutable/chunks/B-aj0tWo.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-aj0tWo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BTu-2gkj.js +0 -21
- package/build/client/_app/immutable/chunks/BTu-2gkj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BTu-2gkj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMQw-Fc-.js +0 -1
- package/build/client/_app/immutable/chunks/CMQw-Fc-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMQw-Fc-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Ce0VRwE1.js +0 -1
- package/build/client/_app/immutable/chunks/Ce0VRwE1.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ce0VRwE1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFPEaIHz.js +0 -1
- package/build/client/_app/immutable/chunks/DFPEaIHz.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFPEaIHz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DdpA9n1s.js +0 -5
- package/build/client/_app/immutable/chunks/DdpA9n1s.js.br +0 -4
- package/build/client/_app/immutable/chunks/DdpA9n1s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjIci1dg.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjIci1dg.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WigD-5P0.js.br +0 -0
- package/build/client/_app/immutable/chunks/WigD-5P0.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.ueUUTVo4.js +0 -2
- package/build/client/_app/immutable/entry/app.ueUUTVo4.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ueUUTVo4.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CQhGkr1I.js +0 -1
- package/build/client/_app/immutable/entry/start.CQhGkr1I.js.br +0 -2
- package/build/client/_app/immutable/entry/start.CQhGkr1I.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.HapN5UGE.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.HapN5UGE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.IBlbkVOD.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.IBlbkVOD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BSGzQPKE.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BSGzQPKE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CVaviSxa.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CVaviSxa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DgZG6DiA.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DgZG6DiA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BsPQpbNC.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BsPQpbNC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DqlYBRxO.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DqlYBRxO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.C-mKfSQ6.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.C-mKfSQ6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CWs7RaU8.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CWs7RaU8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.CjYdYDhF.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CjYdYDhF.js.gz +0 -0
- package/build/server/chunks/1-DgGFkvlg.js +0 -9
- package/build/server/chunks/6-BIsh7BZP.js +0 -9
- package/build/server/chunks/7-BtO1NV6d.js +0 -9
- package/build/server/chunks/8-Cm04OX_8.js +0 -9
- package/build/server/chunks/9-D1iRD-KU.js +0 -9
- package/build/server/chunks/Button-DVLTQJyD.js.map +0 -1
- package/build/server/chunks/Icon-BXE5-3Zt.js.map +0 -1
- package/build/server/chunks/Pill-CfGbZF-f.js.map +0 -1
- package/build/server/chunks/Shimmer-D9TPXvO4.js +0 -10
- package/build/server/chunks/Shimmer-D9TPXvO4.js.map +0 -1
- package/build/server/chunks/_page.svelte-CnavwBE6.js.map +0 -1
- package/build/server/chunks/_page.svelte-DF8N4KBc.js.map +0 -1
- package/build/server/chunks/cache-DQLC_4X6.js.map +0 -1
- package/build/server/chunks/client2-CuecdIgG.js +0 -7
- package/build/server/chunks/index-Ce_T9BSa.js.map +0 -1
- package/build/server/chunks/pending-requests-D8UiTw7L.js +0 -44
- package/build/server/chunks/pending-requests-D8UiTw7L.js.map +0 -1
- package/build/server/chunks/root-CodmFd7L.js.map +0 -1
package/build/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as UNDEFINED, N as NAN, P as POSITIVE_INFINITY, a as NEGATIVE_INFINITY, b as NEGATIVE_ZERO, S as SPARSE, i as is_valid_array_len, M as MAX_ARRAY_INDEX, c as is_valid_array_index, H as HOLE, D as DevalueError, d as is_primitive, g as get_type, e as is_plain_object, f as enumerable_symbols, s as stringify_key, h as stringify_string, v as valid_array_indices, j as browser, u as uneval } from './chunks/index-
|
|
1
|
+
import { U as UNDEFINED, N as NAN, P as POSITIVE_INFINITY, a as NEGATIVE_INFINITY, b as NEGATIVE_ZERO, S as SPARSE, i as is_valid_array_len, M as MAX_ARRAY_INDEX, c as is_valid_array_index, H as HOLE, D as DevalueError, d as is_primitive, g as get_type, e as is_plain_object, f as enumerable_symbols, s as stringify_key, h as stringify_string, v as valid_array_indices, j as browser, u as uneval } from './chunks/index-DMikC9Qy.js';
|
|
2
2
|
import { H as HttpError, j as json, t as text, S as SvelteKitError, R as Redirect, e as error, A as ActionFailure } from './chunks/index-CoD1IJuy.js';
|
|
3
|
-
import { w as with_request_store, t as text_decoder, b as base64_decode, r as root, d as decode_pathname, n as normalize_path, a as disable_search, c as decode_params, v as validate_layout_server_exports, e as validate_layout_exports, f as validate_page_server_exports, g as validate_page_exports, h as text_encoder, i as resolve, m as make_trackable, j as get_relative_path, k as base64_encode } from './chunks/root-
|
|
4
|
-
import { w as writable, r as readable } from './chunks/index2-
|
|
3
|
+
import { w as with_request_store, t as text_decoder, b as base64_decode, r as root, d as decode_pathname, n as normalize_path, a as disable_search, c as decode_params, v as validate_layout_server_exports, e as validate_layout_exports, f as validate_page_server_exports, g as validate_page_exports, h as text_encoder, i as resolve, m as make_trackable, j as get_relative_path, k as base64_encode } from './chunks/root-DhBbA8QD.js';
|
|
4
|
+
import { w as writable, r as readable } from './chunks/index2-BTTf6mSG.js';
|
|
5
5
|
import { s as set_private_env, a as set_public_env, p as public_env } from './chunks/shared-server-DaWdgxVh.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -1287,7 +1287,7 @@ const options = {
|
|
|
1287
1287
|
<div class="error">
|
|
1288
1288
|
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
1289
1289
|
},
|
|
1290
|
-
version_hash: "
|
|
1290
|
+
version_hash: "1owhp6n"
|
|
1291
1291
|
};
|
|
1292
1292
|
async function get_hooks() {
|
|
1293
1293
|
let handle;
|
|
@@ -4165,98 +4165,121 @@ function redirect_json_response(redirect) {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
);
|
|
4167
4167
|
}
|
|
4168
|
-
var
|
|
4169
|
-
var
|
|
4170
|
-
function
|
|
4171
|
-
if (
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4168
|
+
var dist = {};
|
|
4169
|
+
var hasRequiredDist;
|
|
4170
|
+
function requireDist() {
|
|
4171
|
+
if (hasRequiredDist) return dist;
|
|
4172
|
+
hasRequiredDist = 1;
|
|
4173
|
+
Object.defineProperty(dist, "__esModule", { value: true });
|
|
4174
|
+
dist.parseCookie = parseCookie;
|
|
4175
|
+
dist.parse = parseCookie;
|
|
4176
|
+
dist.stringifyCookie = stringifyCookie;
|
|
4177
|
+
dist.stringifySetCookie = stringifySetCookie;
|
|
4178
|
+
dist.serialize = stringifySetCookie;
|
|
4179
|
+
dist.parseSetCookie = parseSetCookie2;
|
|
4180
|
+
dist.stringifySetCookie = stringifySetCookie;
|
|
4181
|
+
dist.serialize = stringifySetCookie;
|
|
4182
|
+
const cookieNameRegExp = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/;
|
|
4183
|
+
const cookieValueRegExp = /^[\u0021-\u003A\u003C-\u007E]*$/;
|
|
4184
|
+
const domainValueRegExp = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i;
|
|
4185
|
+
const pathValueRegExp = /^[\u0020-\u003A\u003D-\u007E]*$/;
|
|
4186
|
+
const maxAgeRegExp = /^-?\d+$/;
|
|
4187
|
+
const __toString = Object.prototype.toString;
|
|
4188
|
+
const NullObject = /* @__PURE__ */ (() => {
|
|
4189
|
+
const C = function() {
|
|
4190
|
+
};
|
|
4191
|
+
C.prototype = /* @__PURE__ */ Object.create(null);
|
|
4192
|
+
return C;
|
|
4193
|
+
})();
|
|
4194
|
+
function parseCookie(str, options2) {
|
|
4195
|
+
const obj = new NullObject();
|
|
4196
|
+
const len = str.length;
|
|
4197
|
+
if (len < 2)
|
|
4198
|
+
return obj;
|
|
4199
|
+
const dec = options2?.decode || decode;
|
|
4200
|
+
let index = 0;
|
|
4201
|
+
do {
|
|
4202
|
+
const eqIdx = eqIndex(str, index, len);
|
|
4203
|
+
if (eqIdx === -1)
|
|
4188
4204
|
break;
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
if (endIdx === -1) {
|
|
4192
|
-
endIdx = str.length;
|
|
4193
|
-
} else if (endIdx < eqIdx) {
|
|
4205
|
+
const endIdx = endIndex(str, index, len);
|
|
4206
|
+
if (eqIdx > endIdx) {
|
|
4194
4207
|
index = str.lastIndexOf(";", eqIdx - 1) + 1;
|
|
4195
4208
|
continue;
|
|
4196
4209
|
}
|
|
4197
|
-
|
|
4198
|
-
if (
|
|
4199
|
-
|
|
4200
|
-
if (val.charCodeAt(0) === 34) {
|
|
4201
|
-
val = val.slice(1, -1);
|
|
4202
|
-
}
|
|
4203
|
-
obj[key2] = tryDecode(val, dec);
|
|
4210
|
+
const key2 = valueSlice(str, index, eqIdx);
|
|
4211
|
+
if (obj[key2] === void 0) {
|
|
4212
|
+
obj[key2] = dec(valueSlice(str, eqIdx + 1, endIdx));
|
|
4204
4213
|
}
|
|
4205
4214
|
index = endIdx + 1;
|
|
4206
|
-
}
|
|
4215
|
+
} while (index < len);
|
|
4207
4216
|
return obj;
|
|
4208
4217
|
}
|
|
4209
|
-
function
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4218
|
+
function stringifyCookie(cookie, options2) {
|
|
4219
|
+
const enc = options2?.encode || encodeURIComponent;
|
|
4220
|
+
const cookieStrings = [];
|
|
4221
|
+
for (const name of Object.keys(cookie)) {
|
|
4222
|
+
const val = cookie[name];
|
|
4223
|
+
if (val === void 0)
|
|
4224
|
+
continue;
|
|
4225
|
+
if (!cookieNameRegExp.test(name)) {
|
|
4226
|
+
throw new TypeError(`cookie name is invalid: ${name}`);
|
|
4227
|
+
}
|
|
4228
|
+
const value = enc(val);
|
|
4229
|
+
if (!cookieValueRegExp.test(value)) {
|
|
4230
|
+
throw new TypeError(`cookie val is invalid: ${val}`);
|
|
4231
|
+
}
|
|
4232
|
+
cookieStrings.push(`${name}=${value}`);
|
|
4214
4233
|
}
|
|
4215
|
-
|
|
4216
|
-
|
|
4234
|
+
return cookieStrings.join("; ");
|
|
4235
|
+
}
|
|
4236
|
+
function stringifySetCookie(_name, _val, _opts) {
|
|
4237
|
+
const cookie = typeof _name === "object" ? _name : { ..._opts, name: _name, value: String(_val) };
|
|
4238
|
+
const options2 = typeof _val === "object" ? _val : _opts;
|
|
4239
|
+
const enc = options2?.encode || encodeURIComponent;
|
|
4240
|
+
if (!cookieNameRegExp.test(cookie.name)) {
|
|
4241
|
+
throw new TypeError(`argument name is invalid: ${cookie.name}`);
|
|
4217
4242
|
}
|
|
4218
|
-
|
|
4219
|
-
if (
|
|
4220
|
-
throw new TypeError(
|
|
4243
|
+
const value = cookie.value ? enc(cookie.value) : "";
|
|
4244
|
+
if (!cookieValueRegExp.test(value)) {
|
|
4245
|
+
throw new TypeError(`argument val is invalid: ${cookie.value}`);
|
|
4221
4246
|
}
|
|
4222
|
-
|
|
4223
|
-
if (
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
throw new TypeError("option maxAge is invalid");
|
|
4247
|
+
let str = cookie.name + "=" + value;
|
|
4248
|
+
if (cookie.maxAge !== void 0) {
|
|
4249
|
+
if (!Number.isInteger(cookie.maxAge)) {
|
|
4250
|
+
throw new TypeError(`option maxAge is invalid: ${cookie.maxAge}`);
|
|
4227
4251
|
}
|
|
4228
|
-
str += "; Max-Age=" +
|
|
4252
|
+
str += "; Max-Age=" + cookie.maxAge;
|
|
4229
4253
|
}
|
|
4230
|
-
if (
|
|
4231
|
-
if (!
|
|
4232
|
-
throw new TypeError(
|
|
4254
|
+
if (cookie.domain) {
|
|
4255
|
+
if (!domainValueRegExp.test(cookie.domain)) {
|
|
4256
|
+
throw new TypeError(`option domain is invalid: ${cookie.domain}`);
|
|
4233
4257
|
}
|
|
4234
|
-
str += "; Domain=" +
|
|
4258
|
+
str += "; Domain=" + cookie.domain;
|
|
4235
4259
|
}
|
|
4236
|
-
if (
|
|
4237
|
-
if (!
|
|
4238
|
-
throw new TypeError(
|
|
4260
|
+
if (cookie.path) {
|
|
4261
|
+
if (!pathValueRegExp.test(cookie.path)) {
|
|
4262
|
+
throw new TypeError(`option path is invalid: ${cookie.path}`);
|
|
4239
4263
|
}
|
|
4240
|
-
str += "; Path=" +
|
|
4264
|
+
str += "; Path=" + cookie.path;
|
|
4241
4265
|
}
|
|
4242
|
-
if (
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
throw new TypeError("option expires is invalid");
|
|
4266
|
+
if (cookie.expires) {
|
|
4267
|
+
if (!isDate(cookie.expires) || !Number.isFinite(cookie.expires.valueOf())) {
|
|
4268
|
+
throw new TypeError(`option expires is invalid: ${cookie.expires}`);
|
|
4246
4269
|
}
|
|
4247
|
-
str += "; Expires=" + expires.toUTCString();
|
|
4270
|
+
str += "; Expires=" + cookie.expires.toUTCString();
|
|
4248
4271
|
}
|
|
4249
|
-
if (
|
|
4272
|
+
if (cookie.httpOnly) {
|
|
4250
4273
|
str += "; HttpOnly";
|
|
4251
4274
|
}
|
|
4252
|
-
if (
|
|
4275
|
+
if (cookie.secure) {
|
|
4253
4276
|
str += "; Secure";
|
|
4254
4277
|
}
|
|
4255
|
-
if (
|
|
4278
|
+
if (cookie.partitioned) {
|
|
4256
4279
|
str += "; Partitioned";
|
|
4257
4280
|
}
|
|
4258
|
-
if (
|
|
4259
|
-
|
|
4281
|
+
if (cookie.priority) {
|
|
4282
|
+
const priority = typeof cookie.priority === "string" ? cookie.priority.toLowerCase() : void 0;
|
|
4260
4283
|
switch (priority) {
|
|
4261
4284
|
case "low":
|
|
4262
4285
|
str += "; Priority=Low";
|
|
@@ -4268,49 +4291,130 @@ function requireCookie() {
|
|
|
4268
4291
|
str += "; Priority=High";
|
|
4269
4292
|
break;
|
|
4270
4293
|
default:
|
|
4271
|
-
throw new TypeError(
|
|
4294
|
+
throw new TypeError(`option priority is invalid: ${cookie.priority}`);
|
|
4272
4295
|
}
|
|
4273
4296
|
}
|
|
4274
|
-
if (
|
|
4275
|
-
|
|
4297
|
+
if (cookie.sameSite) {
|
|
4298
|
+
const sameSite = typeof cookie.sameSite === "string" ? cookie.sameSite.toLowerCase() : cookie.sameSite;
|
|
4276
4299
|
switch (sameSite) {
|
|
4277
4300
|
case true:
|
|
4301
|
+
case "strict":
|
|
4278
4302
|
str += "; SameSite=Strict";
|
|
4279
4303
|
break;
|
|
4280
4304
|
case "lax":
|
|
4281
4305
|
str += "; SameSite=Lax";
|
|
4282
4306
|
break;
|
|
4283
|
-
case "strict":
|
|
4284
|
-
str += "; SameSite=Strict";
|
|
4285
|
-
break;
|
|
4286
4307
|
case "none":
|
|
4287
4308
|
str += "; SameSite=None";
|
|
4288
4309
|
break;
|
|
4289
4310
|
default:
|
|
4290
|
-
throw new TypeError(
|
|
4311
|
+
throw new TypeError(`option sameSite is invalid: ${cookie.sameSite}`);
|
|
4291
4312
|
}
|
|
4292
4313
|
}
|
|
4293
4314
|
return str;
|
|
4294
4315
|
}
|
|
4295
|
-
function
|
|
4296
|
-
|
|
4316
|
+
function parseSetCookie2(str, options2) {
|
|
4317
|
+
const dec = options2?.decode || decode;
|
|
4318
|
+
const len = str.length;
|
|
4319
|
+
const endIdx = endIndex(str, 0, len);
|
|
4320
|
+
const eqIdx = eqIndex(str, 0, endIdx);
|
|
4321
|
+
const setCookie = eqIdx === -1 ? { name: "", value: dec(valueSlice(str, 0, endIdx)) } : {
|
|
4322
|
+
name: valueSlice(str, 0, eqIdx),
|
|
4323
|
+
value: dec(valueSlice(str, eqIdx + 1, endIdx))
|
|
4324
|
+
};
|
|
4325
|
+
let index = endIdx + 1;
|
|
4326
|
+
while (index < len) {
|
|
4327
|
+
const endIdx2 = endIndex(str, index, len);
|
|
4328
|
+
const eqIdx2 = eqIndex(str, index, endIdx2);
|
|
4329
|
+
const attr = eqIdx2 === -1 ? valueSlice(str, index, endIdx2) : valueSlice(str, index, eqIdx2);
|
|
4330
|
+
const val = eqIdx2 === -1 ? void 0 : valueSlice(str, eqIdx2 + 1, endIdx2);
|
|
4331
|
+
switch (attr.toLowerCase()) {
|
|
4332
|
+
case "httponly":
|
|
4333
|
+
setCookie.httpOnly = true;
|
|
4334
|
+
break;
|
|
4335
|
+
case "secure":
|
|
4336
|
+
setCookie.secure = true;
|
|
4337
|
+
break;
|
|
4338
|
+
case "partitioned":
|
|
4339
|
+
setCookie.partitioned = true;
|
|
4340
|
+
break;
|
|
4341
|
+
case "domain":
|
|
4342
|
+
setCookie.domain = val;
|
|
4343
|
+
break;
|
|
4344
|
+
case "path":
|
|
4345
|
+
setCookie.path = val;
|
|
4346
|
+
break;
|
|
4347
|
+
case "max-age":
|
|
4348
|
+
if (val && maxAgeRegExp.test(val))
|
|
4349
|
+
setCookie.maxAge = Number(val);
|
|
4350
|
+
break;
|
|
4351
|
+
case "expires":
|
|
4352
|
+
if (!val)
|
|
4353
|
+
break;
|
|
4354
|
+
const date = new Date(val);
|
|
4355
|
+
if (Number.isFinite(date.valueOf()))
|
|
4356
|
+
setCookie.expires = date;
|
|
4357
|
+
break;
|
|
4358
|
+
case "priority":
|
|
4359
|
+
if (!val)
|
|
4360
|
+
break;
|
|
4361
|
+
const priority = val.toLowerCase();
|
|
4362
|
+
if (priority === "low" || priority === "medium" || priority === "high") {
|
|
4363
|
+
setCookie.priority = priority;
|
|
4364
|
+
}
|
|
4365
|
+
break;
|
|
4366
|
+
case "samesite":
|
|
4367
|
+
if (!val)
|
|
4368
|
+
break;
|
|
4369
|
+
const sameSite = val.toLowerCase();
|
|
4370
|
+
if (sameSite === "lax" || sameSite === "strict" || sameSite === "none") {
|
|
4371
|
+
setCookie.sameSite = sameSite;
|
|
4372
|
+
}
|
|
4373
|
+
break;
|
|
4374
|
+
}
|
|
4375
|
+
index = endIdx2 + 1;
|
|
4376
|
+
}
|
|
4377
|
+
return setCookie;
|
|
4297
4378
|
}
|
|
4298
|
-
function
|
|
4299
|
-
|
|
4379
|
+
function endIndex(str, min, len) {
|
|
4380
|
+
const index = str.indexOf(";", min);
|
|
4381
|
+
return index === -1 ? len : index;
|
|
4300
4382
|
}
|
|
4301
|
-
function
|
|
4302
|
-
|
|
4383
|
+
function eqIndex(str, min, max) {
|
|
4384
|
+
const index = str.indexOf("=", min);
|
|
4385
|
+
return index < max ? index : -1;
|
|
4303
4386
|
}
|
|
4304
|
-
function
|
|
4387
|
+
function valueSlice(str, min, max) {
|
|
4388
|
+
let start = min;
|
|
4389
|
+
let end = max;
|
|
4390
|
+
do {
|
|
4391
|
+
const code = str.charCodeAt(start);
|
|
4392
|
+
if (code !== 32 && code !== 9)
|
|
4393
|
+
break;
|
|
4394
|
+
} while (++start < end);
|
|
4395
|
+
while (end > start) {
|
|
4396
|
+
const code = str.charCodeAt(end - 1);
|
|
4397
|
+
if (code !== 32 && code !== 9)
|
|
4398
|
+
break;
|
|
4399
|
+
end--;
|
|
4400
|
+
}
|
|
4401
|
+
return str.slice(start, end);
|
|
4402
|
+
}
|
|
4403
|
+
function decode(str) {
|
|
4404
|
+
if (str.indexOf("%") === -1)
|
|
4405
|
+
return str;
|
|
4305
4406
|
try {
|
|
4306
|
-
return
|
|
4407
|
+
return decodeURIComponent(str);
|
|
4307
4408
|
} catch (e) {
|
|
4308
4409
|
return str;
|
|
4309
4410
|
}
|
|
4310
4411
|
}
|
|
4311
|
-
|
|
4412
|
+
function isDate(val) {
|
|
4413
|
+
return __toString.call(val) === "[object Date]";
|
|
4414
|
+
}
|
|
4415
|
+
return dist;
|
|
4312
4416
|
}
|
|
4313
|
-
var
|
|
4417
|
+
var distExports = /* @__PURE__ */ requireDist();
|
|
4314
4418
|
const INVALID_COOKIE_CHARACTER_REGEX = /[\x00-\x1F\x7F()<>@,;:"/[\]?={} \t]/;
|
|
4315
4419
|
function validate_options(options2) {
|
|
4316
4420
|
if (options2?.path === void 0) {
|
|
@@ -4322,7 +4426,7 @@ function generate_cookie_key(domain, path, name) {
|
|
|
4322
4426
|
}
|
|
4323
4427
|
function get_cookies(request, url) {
|
|
4324
4428
|
const header = request.headers.get("cookie") ?? "";
|
|
4325
|
-
const initial_cookies =
|
|
4429
|
+
const initial_cookies = distExports.parse(header, { decode: (value) => value });
|
|
4326
4430
|
let normalized_url;
|
|
4327
4431
|
const new_cookies = /* @__PURE__ */ new Map();
|
|
4328
4432
|
const defaults = {
|
|
@@ -4346,15 +4450,15 @@ function get_cookies(request, url) {
|
|
|
4346
4450
|
if (best_match) {
|
|
4347
4451
|
return best_match.options.maxAge === 0 ? void 0 : best_match.value;
|
|
4348
4452
|
}
|
|
4349
|
-
const req_cookies =
|
|
4350
|
-
const
|
|
4351
|
-
return
|
|
4453
|
+
const req_cookies = distExports.parse(header, { decode: opts?.decode });
|
|
4454
|
+
const cookie = req_cookies[name];
|
|
4455
|
+
return cookie;
|
|
4352
4456
|
},
|
|
4353
4457
|
/**
|
|
4354
4458
|
* @param {import('cookie').CookieParseOptions} [opts]
|
|
4355
4459
|
*/
|
|
4356
4460
|
getAll(opts) {
|
|
4357
|
-
const cookies2 =
|
|
4461
|
+
const cookies2 = distExports.parse(header, { decode: opts?.decode });
|
|
4358
4462
|
const lookup = /* @__PURE__ */ new Map();
|
|
4359
4463
|
for (const c of new_cookies.values()) {
|
|
4360
4464
|
if (domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path)) {
|
|
@@ -4408,7 +4512,7 @@ function get_cookies(request, url) {
|
|
|
4408
4512
|
}
|
|
4409
4513
|
path = resolve(normalized_url, path);
|
|
4410
4514
|
}
|
|
4411
|
-
return
|
|
4515
|
+
return distExports.serialize(name, value, { ...defaults, ...options2, path });
|
|
4412
4516
|
}
|
|
4413
4517
|
};
|
|
4414
4518
|
function get_cookie_header(destination, header2) {
|
|
@@ -4416,14 +4520,14 @@ function get_cookies(request, url) {
|
|
|
4416
4520
|
// cookies sent by the user agent have lowest precedence
|
|
4417
4521
|
...initial_cookies
|
|
4418
4522
|
};
|
|
4419
|
-
for (const
|
|
4420
|
-
if (!domain_matches(destination.hostname,
|
|
4421
|
-
if (!path_matches(destination.pathname,
|
|
4422
|
-
const encoder =
|
|
4423
|
-
combined_cookies[
|
|
4523
|
+
for (const cookie of new_cookies.values()) {
|
|
4524
|
+
if (!domain_matches(destination.hostname, cookie.options.domain)) continue;
|
|
4525
|
+
if (!path_matches(destination.pathname, cookie.options.path)) continue;
|
|
4526
|
+
const encoder = cookie.options.encode || encodeURIComponent;
|
|
4527
|
+
combined_cookies[cookie.name] = encoder(cookie.value);
|
|
4424
4528
|
}
|
|
4425
4529
|
if (header2) {
|
|
4426
|
-
const parsed =
|
|
4530
|
+
const parsed = distExports.parse(header2, { decode: (value) => value });
|
|
4427
4531
|
for (const name in parsed) {
|
|
4428
4532
|
combined_cookies[name] = parsed[name];
|
|
4429
4533
|
}
|
|
@@ -4441,8 +4545,8 @@ function get_cookies(request, url) {
|
|
|
4441
4545
|
path = resolve(normalized_url, path);
|
|
4442
4546
|
}
|
|
4443
4547
|
const cookie_key = generate_cookie_key(options2.domain, path, name);
|
|
4444
|
-
const
|
|
4445
|
-
new_cookies.set(cookie_key,
|
|
4548
|
+
const cookie = { name, value, options: { ...options2, path } };
|
|
4549
|
+
new_cookies.set(cookie_key, cookie);
|
|
4446
4550
|
}
|
|
4447
4551
|
function set_trailing_slash(trailing_slash) {
|
|
4448
4552
|
normalized_url = normalize_path(url.pathname, trailing_slash);
|
|
@@ -4465,10 +4569,10 @@ function path_matches(path, constraint) {
|
|
|
4465
4569
|
function add_cookies_to_headers(headers2, cookies) {
|
|
4466
4570
|
for (const new_cookie of cookies) {
|
|
4467
4571
|
const { name, value, options: options2 } = new_cookie;
|
|
4468
|
-
headers2.append("set-cookie",
|
|
4572
|
+
headers2.append("set-cookie", distExports.serialize(name, value, options2));
|
|
4469
4573
|
if (options2.path.endsWith(".html")) {
|
|
4470
4574
|
const path = add_data_suffix(options2.path);
|
|
4471
|
-
headers2.append("set-cookie",
|
|
4575
|
+
headers2.append("set-cookie", distExports.serialize(name, value, { ...options2, path }));
|
|
4472
4576
|
}
|
|
4473
4577
|
}
|
|
4474
4578
|
}
|
|
@@ -4506,9 +4610,9 @@ function parseString(setCookieValue, options2) {
|
|
|
4506
4610
|
e
|
|
4507
4611
|
);
|
|
4508
4612
|
}
|
|
4509
|
-
var
|
|
4510
|
-
|
|
4511
|
-
|
|
4613
|
+
var cookie = createNullObj();
|
|
4614
|
+
cookie.name = name;
|
|
4615
|
+
cookie.value = value;
|
|
4512
4616
|
parts.forEach(function(part) {
|
|
4513
4617
|
var sides = part.split("=");
|
|
4514
4618
|
var key2 = sides.shift().trimLeft().toLowerCase();
|
|
@@ -4517,23 +4621,23 @@ function parseString(setCookieValue, options2) {
|
|
|
4517
4621
|
}
|
|
4518
4622
|
var value2 = sides.join("=");
|
|
4519
4623
|
if (key2 === "expires") {
|
|
4520
|
-
|
|
4624
|
+
cookie.expires = new Date(value2);
|
|
4521
4625
|
} else if (key2 === "max-age") {
|
|
4522
4626
|
var n = parseInt(value2, 10);
|
|
4523
|
-
if (!Number.isNaN(n))
|
|
4627
|
+
if (!Number.isNaN(n)) cookie.maxAge = n;
|
|
4524
4628
|
} else if (key2 === "secure") {
|
|
4525
|
-
|
|
4629
|
+
cookie.secure = true;
|
|
4526
4630
|
} else if (key2 === "httponly") {
|
|
4527
|
-
|
|
4631
|
+
cookie.httpOnly = true;
|
|
4528
4632
|
} else if (key2 === "samesite") {
|
|
4529
|
-
|
|
4633
|
+
cookie.sameSite = value2;
|
|
4530
4634
|
} else if (key2 === "partitioned") {
|
|
4531
|
-
|
|
4635
|
+
cookie.partitioned = true;
|
|
4532
4636
|
} else if (key2) {
|
|
4533
|
-
|
|
4637
|
+
cookie[key2] = value2;
|
|
4534
4638
|
}
|
|
4535
4639
|
});
|
|
4536
|
-
return
|
|
4640
|
+
return cookie;
|
|
4537
4641
|
}
|
|
4538
4642
|
function parseNameValuePair(nameValuePairStr) {
|
|
4539
4643
|
var name = "";
|
|
@@ -4592,9 +4696,9 @@ function parseSetCookie(input, options2) {
|
|
|
4592
4696
|
} else {
|
|
4593
4697
|
var cookies = createNullObj();
|
|
4594
4698
|
return input.reduce(function(cookies2, str) {
|
|
4595
|
-
var
|
|
4596
|
-
if (
|
|
4597
|
-
cookies2[
|
|
4699
|
+
var cookie = parseString(str, options2);
|
|
4700
|
+
if (cookie && !isForbiddenKey(cookie.name)) {
|
|
4701
|
+
cookies2[cookie.name] = cookie;
|
|
4598
4702
|
}
|
|
4599
4703
|
return cookies2;
|
|
4600
4704
|
}, cookies);
|
|
@@ -4683,8 +4787,8 @@ function create_fetch({ event, options: options2, manifest, state, get_cookie_he
|
|
|
4683
4787
|
const decoded = decodeURIComponent(url.pathname);
|
|
4684
4788
|
if (url.origin !== event.url.origin || base && decoded !== base && !decoded.startsWith(`${base}/`)) {
|
|
4685
4789
|
if (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== "omit") {
|
|
4686
|
-
const
|
|
4687
|
-
if (
|
|
4790
|
+
const cookie = get_cookie_header(url, request.headers.get("cookie"));
|
|
4791
|
+
if (cookie) request.headers.set("cookie", cookie);
|
|
4688
4792
|
}
|
|
4689
4793
|
return fetch(request);
|
|
4690
4794
|
}
|
|
@@ -4716,9 +4820,9 @@ function create_fetch({ event, options: options2, manifest, state, get_cookie_he
|
|
|
4716
4820
|
return await fetch(request);
|
|
4717
4821
|
}
|
|
4718
4822
|
if (credentials !== "omit") {
|
|
4719
|
-
const
|
|
4720
|
-
if (
|
|
4721
|
-
request.headers.set("cookie",
|
|
4823
|
+
const cookie = get_cookie_header(url, request.headers.get("cookie"));
|
|
4824
|
+
if (cookie) {
|
|
4825
|
+
request.headers.set("cookie", cookie);
|
|
4722
4826
|
}
|
|
4723
4827
|
const authorization = event.request.headers.get("authorization");
|
|
4724
4828
|
if (authorization && !request.headers.has("authorization")) {
|