@juspay/shooter 1.9.1 → 1.9.3
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/BDcFu3l7.js +61 -0
- package/build/client/_app/immutable/chunks/BDcFu3l7.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDcFu3l7.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/{3EfvnCrr.js → CRkG7oE4.js} +1 -1
- package/build/client/_app/immutable/chunks/CRkG7oE4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CRkG7oE4.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/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/{DaomQix1.js → Dl_UrWML.js} +1 -1
- package/build/client/_app/immutable/chunks/Dl_UrWML.js.br +0 -0
- package/build/client/_app/immutable/chunks/{DaomQix1.js.gz → Dl_UrWML.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/chunks/Woyb7K_R.js +3 -0
- package/build/client/_app/immutable/chunks/Woyb7K_R.js.br +0 -0
- package/build/client/_app/immutable/chunks/Woyb7K_R.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DuaEmHXZ.js → heMtFUOe.js} +1 -1
- package/build/client/_app/immutable/chunks/heMtFUOe.js.br +0 -0
- package/build/client/_app/immutable/chunks/heMtFUOe.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.yF5DyySX.js +2 -0
- package/build/client/_app/immutable/entry/app.yF5DyySX.js.br +0 -0
- package/build/client/_app/immutable/entry/app.yF5DyySX.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.qT_T2NM7.js +1 -0
- package/build/client/_app/immutable/entry/start.qT_T2NM7.js.br +2 -0
- package/build/client/_app/immutable/entry/start.qT_T2NM7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.BgwfOZTV.js → 0.B8ldaXrw.js} +2 -2
- package/build/client/_app/immutable/nodes/0.B8ldaXrw.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.B8ldaXrw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.DunuP0ec.js → 1.BaQFc0zK.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BaQFc0zK.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BaQFc0zK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.dWYUfDXP.js → 2.DzMPM9CG.js} +1 -1
- package/build/client/_app/immutable/nodes/2.DzMPM9CG.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DzMPM9CG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.rBWJMWFr.js → 3.Bj2gzFb0.js} +1 -1
- package/build/client/_app/immutable/nodes/3.Bj2gzFb0.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bj2gzFb0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.BcK1571T.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.BN2SM61w.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.DDMVIiVk.js → 6.YxEM6HVV.js} +1 -1
- package/build/client/_app/immutable/nodes/6.YxEM6HVV.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.YxEM6HVV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.DijtBcpt.js → 7.CYSmE4eH.js} +1 -1
- package/build/client/_app/immutable/nodes/7.CYSmE4eH.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CYSmE4eH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.Y_8EIs9h.js → 8.BiyoREYq.js} +2 -2
- package/build/client/_app/immutable/nodes/8.BiyoREYq.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BiyoREYq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.BoJIHqox.js → 9.DetO0mOw.js} +1 -1
- package/build/client/_app/immutable/nodes/9.DetO0mOw.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DetO0mOw.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-0CZFKlE-.js → 0-B2E6heaO.js} +4 -4
- package/build/server/chunks/{0-0CZFKlE-.js.map → 0-B2E6heaO.js.map} +1 -1
- package/build/server/chunks/1-G_9ph7fY.js +9 -0
- package/build/server/chunks/{1-DLzdA7q9.js.map → 1-G_9ph7fY.js.map} +1 -1
- package/build/server/chunks/2-Bn0siTxF.js +21 -0
- package/build/server/chunks/{2-DssNCbHE.js.map → 2-Bn0siTxF.js.map} +1 -1
- package/build/server/chunks/3-Ckkb4IvB.js +21 -0
- package/build/server/chunks/{3-xYdrp1JC.js.map → 3-Ckkb4IvB.js.map} +1 -1
- package/build/server/chunks/{4-DXZnoGK3.js → 4-CbejE1SC.js} +4 -4
- package/build/server/chunks/{4-DXZnoGK3.js.map → 4-CbejE1SC.js.map} +1 -1
- package/build/server/chunks/{5-DRhcUdp_.js → 5-BwqumuR1.js} +4 -4
- package/build/server/chunks/{5-DRhcUdp_.js.map → 5-BwqumuR1.js.map} +1 -1
- package/build/server/chunks/6-BBZkhy6X.js +9 -0
- package/build/server/chunks/{6-DpmjM0Zz.js.map → 6-BBZkhy6X.js.map} +1 -1
- package/build/server/chunks/7-BCSmnzEz.js +9 -0
- package/build/server/chunks/{7-fZr6V0jx.js.map → 7-BCSmnzEz.js.map} +1 -1
- package/build/server/chunks/8-D1orKzaf.js +9 -0
- package/build/server/chunks/{8-C92Y2pM_.js.map → 8-D1orKzaf.js.map} +1 -1
- package/build/server/chunks/9-BpBG1IO-.js +9 -0
- package/build/server/chunks/{9-xiLWXynw.js.map → 9-BpBG1IO-.js.map} +1 -1
- package/build/server/chunks/{Button-DPcpECFE.js → Button-Dpueno77.js} +9 -9
- package/build/server/chunks/Button-Dpueno77.js.map +1 -0
- package/build/server/chunks/{Icon-C2-613_Z.js → Icon-aOLx5ELI.js} +7 -7
- package/build/server/chunks/Icon-aOLx5ELI.js.map +1 -0
- package/build/server/chunks/{Input-M7rFN1IJ.js → Input-Cq7ZdLxS.js} +8 -8
- package/build/server/chunks/{Input-M7rFN1IJ.js.map → Input-Cq7ZdLxS.js.map} +1 -1
- package/build/server/chunks/{Pill-CbH1G79Z.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-BfckZRui.js → _error.svelte-C85mEsv9.js} +8 -8
- package/build/server/chunks/{_error.svelte-BfckZRui.js.map → _error.svelte-C85mEsv9.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-B6wbenkT.js → _layout.svelte-rpYLLajc.js} +10 -10
- package/build/server/chunks/{_layout.svelte-B6wbenkT.js.map → _layout.svelte-rpYLLajc.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CKydRPy6.js → _page.svelte-B6O0uTrK.js} +4 -4
- package/build/server/chunks/{_page.svelte-CKydRPy6.js.map → _page.svelte-B6O0uTrK.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-io210vyT.js → _page.svelte-BfCXobKv.js} +11 -11
- package/build/server/chunks/{_page.svelte-io210vyT.js.map → _page.svelte-BfCXobKv.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DKdaYz0t.js → _page.svelte-CA46TyHk.js} +5 -5
- package/build/server/chunks/{_page.svelte-DKdaYz0t.js.map → _page.svelte-CA46TyHk.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BRz-x9-s.js → _page.svelte-CCpVmMpU.js} +9 -9
- package/build/server/chunks/{_page.svelte-BRz-x9-s.js.map → _page.svelte-CCpVmMpU.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-COFpm-S2.js → _page.svelte-D0FBtMtH.js} +11 -11
- package/build/server/chunks/{_page.svelte-COFpm-S2.js.map → _page.svelte-D0FBtMtH.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-DpUVuiqQ.js → _page.svelte-DUj1mSq0.js} +7 -7
- package/build/server/chunks/{_page.svelte-DpUVuiqQ.js.map → _page.svelte-DUj1mSq0.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-CwCypx0G.js → _page.svelte-DjADcbfZ.js} +34 -34
- package/build/server/chunks/_page.svelte-DjADcbfZ.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DfZBq0p5.js → _page.svelte-fkR4xqGu.js} +20 -20
- package/build/server/chunks/_page.svelte-fkR4xqGu.js.map +1 -0
- package/build/server/chunks/{cache-tQqq4VCX.js → cache-5_eamjtv.js} +6 -6
- package/build/server/chunks/cache-5_eamjtv.js.map +1 -0
- package/build/server/chunks/{client-Do_WijF3.js → client-w1WsLDGu.js} +4 -4
- package/build/server/chunks/{client-Do_WijF3.js.map → client-w1WsLDGu.js.map} +1 -1
- package/build/server/chunks/client2-B5wCRDQi.js +7 -0
- package/build/server/chunks/{client2-DQ2fYrJe.js.map → client2-B5wCRDQi.js.map} +1 -1
- package/build/server/chunks/index-CoD1IJuy.js.map +1 -1
- package/build/server/chunks/{index-BHoOpAe1.js → index-DMikC9Qy.js} +443 -175
- package/build/server/chunks/index-DMikC9Qy.js.map +1 -0
- package/build/server/chunks/{index-server-BVf8_1QW.js → index-server-DHNcb_Bd.js} +2 -2
- package/build/server/chunks/{index-server-BVf8_1QW.js.map → index-server-DHNcb_Bd.js.map} +1 -1
- package/build/server/chunks/{index2-CKh4I94n.js → index2-BTTf6mSG.js} +2 -2
- package/build/server/chunks/{index2-CKh4I94n.js.map → index2-BTTf6mSG.js.map} +1 -1
- package/build/server/chunks/{root-CW7Ox2wn.js → root-DhBbA8QD.js} +20 -15
- package/build/server/chunks/root-DhBbA8QD.js.map +1 -0
- package/build/server/chunks/{state.svelte-Cg5VK5nH.js → state.svelte-M8y8rROy.js} +3 -3
- package/build/server/chunks/{state.svelte-Cg5VK5nH.js.map → state.svelte-M8y8rROy.js.map} +1 -1
- package/build/server/chunks/{stores-D6TajUdj.js → stores-CwkRmCHA.js} +4 -4
- package/build/server/chunks/{stores-D6TajUdj.js.map → stores-CwkRmCHA.js.map} +1 -1
- package/build/server/index.js +311 -242
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +11 -11
- package/build/server/manifest.js.map +1 -1
- package/package.json +17 -5
- 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/3EfvnCrr.js.br +0 -0
- package/build/client/_app/immutable/chunks/3EfvnCrr.js.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/B-XSrufh.js.br +0 -0
- package/build/client/_app/immutable/chunks/B-XSrufh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BCwT4WOg.js +0 -60
- package/build/client/_app/immutable/chunks/BCwT4WOg.js.br +0 -0
- package/build/client/_app/immutable/chunks/BCwT4WOg.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/BsNWiLas.js +0 -1
- package/build/client/_app/immutable/chunks/BsNWiLas.js.br +0 -0
- package/build/client/_app/immutable/chunks/BsNWiLas.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/DaomQix1.js.br +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/Dfn9ME_a.js +0 -3
- package/build/client/_app/immutable/chunks/Dfn9ME_a.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dfn9ME_a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DuaEmHXZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DuaEmHXZ.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.C23A4_LP.js +0 -2
- package/build/client/_app/immutable/entry/app.C23A4_LP.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C23A4_LP.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Dzoby1AT.js +0 -1
- package/build/client/_app/immutable/entry/start.Dzoby1AT.js.br +0 -2
- package/build/client/_app/immutable/entry/start.Dzoby1AT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BgwfOZTV.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BgwfOZTV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.DunuP0ec.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DunuP0ec.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.dWYUfDXP.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.dWYUfDXP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.rBWJMWFr.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.rBWJMWFr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.BcK1571T.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.BcK1571T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.BN2SM61w.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BN2SM61w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DDMVIiVk.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DDMVIiVk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DijtBcpt.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DijtBcpt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.Y_8EIs9h.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.Y_8EIs9h.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BoJIHqox.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BoJIHqox.js.gz +0 -0
- package/build/server/chunks/1-DLzdA7q9.js +0 -9
- package/build/server/chunks/2-DssNCbHE.js +0 -21
- package/build/server/chunks/3-xYdrp1JC.js +0 -21
- package/build/server/chunks/6-DpmjM0Zz.js +0 -9
- package/build/server/chunks/7-fZr6V0jx.js +0 -9
- package/build/server/chunks/8-C92Y2pM_.js +0 -9
- package/build/server/chunks/9-xiLWXynw.js +0 -9
- package/build/server/chunks/Button-DPcpECFE.js.map +0 -1
- package/build/server/chunks/Icon-C2-613_Z.js.map +0 -1
- package/build/server/chunks/Pill-CbH1G79Z.js.map +0 -1
- package/build/server/chunks/Shimmer-BrakrBeG.js +0 -10
- package/build/server/chunks/Shimmer-BrakrBeG.js.map +0 -1
- package/build/server/chunks/_page.svelte-CwCypx0G.js.map +0 -1
- package/build/server/chunks/_page.svelte-DfZBq0p5.js.map +0 -1
- package/build/server/chunks/cache-tQqq4VCX.js.map +0 -1
- package/build/server/chunks/client2-DQ2fYrJe.js +0 -7
- package/build/server/chunks/index-BHoOpAe1.js.map +0 -1
- package/build/server/chunks/root-CW7Ox2wn.js.map +0 -1
package/build/server/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DevalueError,
|
|
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
|
/**
|
|
@@ -38,83 +38,41 @@ const SVELTE_KIT_ASSETS = "/_svelte_kit_assets";
|
|
|
38
38
|
const ENDPOINT_METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"];
|
|
39
39
|
const MUTATIVE_METHODS = ["POST", "PUT", "PATCH", "DELETE"];
|
|
40
40
|
const PAGE_METHODS = ["GET", "POST", "HEAD"];
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
accumulatedBits += 6;
|
|
70
|
-
if (accumulatedBits === 24) {
|
|
71
|
-
output += String.fromCharCode((buffer & 16711680) >> 16);
|
|
72
|
-
output += String.fromCharCode((buffer & 65280) >> 8);
|
|
73
|
-
output += String.fromCharCode(buffer & 255);
|
|
74
|
-
buffer = accumulatedBits = 0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (accumulatedBits === 12) {
|
|
78
|
-
buffer >>= 4;
|
|
79
|
-
output += String.fromCharCode(buffer);
|
|
80
|
-
} else if (accumulatedBits === 18) {
|
|
81
|
-
buffer >>= 2;
|
|
82
|
-
output += String.fromCharCode((buffer & 65280) >> 8);
|
|
83
|
-
output += String.fromCharCode(buffer & 255);
|
|
84
|
-
}
|
|
85
|
-
return output;
|
|
86
|
-
}
|
|
87
|
-
function binaryToAscii(str) {
|
|
88
|
-
let out = "";
|
|
89
|
-
for (let i = 0; i < str.length; i += 3) {
|
|
90
|
-
const groupsOfSix = [void 0, void 0, void 0, void 0];
|
|
91
|
-
groupsOfSix[0] = str.charCodeAt(i) >> 2;
|
|
92
|
-
groupsOfSix[1] = (str.charCodeAt(i) & 3) << 4;
|
|
93
|
-
if (str.length > i + 1) {
|
|
94
|
-
groupsOfSix[1] |= str.charCodeAt(i + 1) >> 4;
|
|
95
|
-
groupsOfSix[2] = (str.charCodeAt(i + 1) & 15) << 2;
|
|
96
|
-
}
|
|
97
|
-
if (str.length > i + 2) {
|
|
98
|
-
groupsOfSix[2] |= str.charCodeAt(i + 2) >> 6;
|
|
99
|
-
groupsOfSix[3] = str.charCodeAt(i + 2) & 63;
|
|
100
|
-
}
|
|
101
|
-
for (let j = 0; j < groupsOfSix.length; j++) {
|
|
102
|
-
if (typeof groupsOfSix[j] === "undefined") {
|
|
103
|
-
out += "=";
|
|
104
|
-
} else {
|
|
105
|
-
out += KEY_STRING[groupsOfSix[j]];
|
|
106
|
-
}
|
|
107
|
-
}
|
|
41
|
+
function encode_native(array_buffer) {
|
|
42
|
+
return new Uint8Array(array_buffer).toBase64();
|
|
43
|
+
}
|
|
44
|
+
function decode_native(base64) {
|
|
45
|
+
return Uint8Array.fromBase64(base64).buffer;
|
|
46
|
+
}
|
|
47
|
+
function encode_buffer(array_buffer) {
|
|
48
|
+
return Buffer.from(array_buffer).toString("base64");
|
|
49
|
+
}
|
|
50
|
+
function decode_buffer(base64) {
|
|
51
|
+
return Uint8Array.from(Buffer.from(base64, "base64")).buffer;
|
|
52
|
+
}
|
|
53
|
+
function encode_legacy(array_buffer) {
|
|
54
|
+
const array = new Uint8Array(array_buffer);
|
|
55
|
+
let binary = "";
|
|
56
|
+
const chunk_size = 32768;
|
|
57
|
+
for (let i = 0; i < array.length; i += chunk_size) {
|
|
58
|
+
const chunk = array.subarray(i, i + chunk_size);
|
|
59
|
+
binary += String.fromCharCode.apply(null, chunk);
|
|
60
|
+
}
|
|
61
|
+
return btoa(binary);
|
|
62
|
+
}
|
|
63
|
+
function decode_legacy(base64) {
|
|
64
|
+
const binary_string = atob(base64);
|
|
65
|
+
const len = binary_string.length;
|
|
66
|
+
const array = new Uint8Array(len);
|
|
67
|
+
for (let i = 0; i < len; i++) {
|
|
68
|
+
array[i] = binary_string.charCodeAt(i);
|
|
108
69
|
}
|
|
109
|
-
return
|
|
70
|
+
return array.buffer;
|
|
110
71
|
}
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
const NEGATIVE_INFINITY = -5;
|
|
116
|
-
const NEGATIVE_ZERO = -6;
|
|
117
|
-
const SPARSE = -7;
|
|
72
|
+
const native = typeof Uint8Array.fromBase64 === "function";
|
|
73
|
+
const buffer = typeof process === "object" && process.versions?.node !== void 0;
|
|
74
|
+
const encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;
|
|
75
|
+
const decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
|
|
118
76
|
function parse(serialized, revivers) {
|
|
119
77
|
return unflatten(JSON.parse(serialized), revivers);
|
|
120
78
|
}
|
|
@@ -181,13 +139,14 @@ function unflatten(parsed, revivers) {
|
|
|
181
139
|
case "RegExp":
|
|
182
140
|
hydrated[index] = new RegExp(value[1], value[2]);
|
|
183
141
|
break;
|
|
184
|
-
case "Object":
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
throw new Error("
|
|
142
|
+
case "Object": {
|
|
143
|
+
const wrapped_index = value[1];
|
|
144
|
+
if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") {
|
|
145
|
+
throw new Error("Invalid input");
|
|
188
146
|
}
|
|
189
|
-
hydrated[index] =
|
|
147
|
+
hydrated[index] = Object(hydrate(wrapped_index));
|
|
190
148
|
break;
|
|
149
|
+
}
|
|
191
150
|
case "BigInt":
|
|
192
151
|
hydrated[index] = BigInt(value[1]);
|
|
193
152
|
break;
|
|
@@ -206,19 +165,20 @@ function unflatten(parsed, revivers) {
|
|
|
206
165
|
case "Uint8ClampedArray":
|
|
207
166
|
case "Int16Array":
|
|
208
167
|
case "Uint16Array":
|
|
168
|
+
case "Float16Array":
|
|
209
169
|
case "Int32Array":
|
|
210
170
|
case "Uint32Array":
|
|
211
171
|
case "Float32Array":
|
|
212
172
|
case "Float64Array":
|
|
213
173
|
case "BigInt64Array":
|
|
214
|
-
case "BigUint64Array":
|
|
174
|
+
case "BigUint64Array":
|
|
175
|
+
case "DataView": {
|
|
215
176
|
if (values[value[1]][0] !== "ArrayBuffer") {
|
|
216
177
|
throw new Error("Invalid data");
|
|
217
178
|
}
|
|
218
179
|
const TypedArrayConstructor = globalThis[type];
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
hydrated[index] = value[2] !== void 0 ? typedArray.subarray(value[2], value[3]) : typedArray;
|
|
180
|
+
const buffer2 = hydrate(value[1]);
|
|
181
|
+
hydrated[index] = value[2] !== void 0 ? new TypedArrayConstructor(buffer2, value[2], value[3]) : new TypedArrayConstructor(buffer2);
|
|
222
182
|
break;
|
|
223
183
|
}
|
|
224
184
|
case "ArrayBuffer": {
|
|
@@ -257,18 +217,21 @@ function unflatten(parsed, revivers) {
|
|
|
257
217
|
}
|
|
258
218
|
} else if (value[0] === SPARSE) {
|
|
259
219
|
const len = value[1];
|
|
260
|
-
if (!
|
|
220
|
+
if (!is_valid_array_len(len)) {
|
|
261
221
|
throw new Error("Invalid input");
|
|
262
222
|
}
|
|
263
|
-
const array =
|
|
223
|
+
const array = [];
|
|
264
224
|
hydrated[index] = array;
|
|
225
|
+
array[MAX_ARRAY_INDEX] = void 0;
|
|
226
|
+
delete array[MAX_ARRAY_INDEX];
|
|
265
227
|
for (let i = 2; i < value.length; i += 2) {
|
|
266
228
|
const idx = value[i];
|
|
267
|
-
if (!
|
|
229
|
+
if (!is_valid_array_index(idx) || idx >= len) {
|
|
268
230
|
throw new Error("Invalid input");
|
|
269
231
|
}
|
|
270
232
|
array[idx] = hydrate(value[i + 1]);
|
|
271
233
|
}
|
|
234
|
+
array.length = len;
|
|
272
235
|
} else {
|
|
273
236
|
const array = new Array(value.length);
|
|
274
237
|
hydrated[index] = array;
|
|
@@ -294,6 +257,10 @@ function unflatten(parsed, revivers) {
|
|
|
294
257
|
return hydrate(0);
|
|
295
258
|
}
|
|
296
259
|
function stringify$1(value, reducers) {
|
|
260
|
+
const stringified = run(false, value, reducers);
|
|
261
|
+
return typeof stringified === "string" ? stringified : `[${stringified.join(",")}]`;
|
|
262
|
+
}
|
|
263
|
+
function run(async, value, reducers) {
|
|
297
264
|
const stringified = [];
|
|
298
265
|
const indexes = /* @__PURE__ */ new Map();
|
|
299
266
|
const custom = [];
|
|
@@ -304,14 +271,17 @@ function stringify$1(value, reducers) {
|
|
|
304
271
|
}
|
|
305
272
|
const keys = [];
|
|
306
273
|
let p = 0;
|
|
307
|
-
function flatten(thing) {
|
|
274
|
+
function flatten(thing, index2) {
|
|
308
275
|
if (thing === void 0) return UNDEFINED;
|
|
309
276
|
if (Number.isNaN(thing)) return NAN;
|
|
310
277
|
if (thing === Infinity) return POSITIVE_INFINITY;
|
|
311
278
|
if (thing === -Infinity) return NEGATIVE_INFINITY;
|
|
312
279
|
if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO;
|
|
313
|
-
if (indexes.has(thing)) return
|
|
314
|
-
|
|
280
|
+
if (indexes.has(thing)) return (
|
|
281
|
+
/** @type {number} */
|
|
282
|
+
indexes.get(thing)
|
|
283
|
+
);
|
|
284
|
+
index2 ??= p++;
|
|
315
285
|
indexes.set(thing, index2);
|
|
316
286
|
for (const { key, fn } of custom) {
|
|
317
287
|
const value2 = fn(thing);
|
|
@@ -322,20 +292,29 @@ function stringify$1(value, reducers) {
|
|
|
322
292
|
}
|
|
323
293
|
if (typeof thing === "function") {
|
|
324
294
|
throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
|
|
295
|
+
} else if (typeof thing === "symbol") {
|
|
296
|
+
throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
|
|
325
297
|
}
|
|
326
298
|
let str = "";
|
|
327
299
|
if (is_primitive(thing)) {
|
|
328
300
|
str = stringify_primitive(thing);
|
|
301
|
+
} else if (typeof thing.then === "function") {
|
|
302
|
+
{
|
|
303
|
+
throw new DevalueError(
|
|
304
|
+
`Cannot stringify a Promise or thenable — use stringifyAsync instead`,
|
|
305
|
+
keys,
|
|
306
|
+
thing,
|
|
307
|
+
value
|
|
308
|
+
);
|
|
309
|
+
}
|
|
329
310
|
} else {
|
|
330
311
|
const type = get_type(thing);
|
|
331
312
|
switch (type) {
|
|
332
313
|
case "Number":
|
|
333
314
|
case "String":
|
|
334
315
|
case "Boolean":
|
|
335
|
-
str = `["Object",${stringify_primitive(thing)}]`;
|
|
336
|
-
break;
|
|
337
316
|
case "BigInt":
|
|
338
|
-
str = `["
|
|
317
|
+
str = `["Object",${flatten(thing.valueOf())}]`;
|
|
339
318
|
break;
|
|
340
319
|
case "Date":
|
|
341
320
|
const valid = !isNaN(thing.getDate());
|
|
@@ -399,9 +378,7 @@ function stringify$1(value, reducers) {
|
|
|
399
378
|
case "Map":
|
|
400
379
|
str = '["Map"';
|
|
401
380
|
for (const [key, value2] of thing) {
|
|
402
|
-
keys.push(
|
|
403
|
-
`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`
|
|
404
|
-
);
|
|
381
|
+
keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`);
|
|
405
382
|
str += `,${flatten(key)},${flatten(value2)}`;
|
|
406
383
|
keys.pop();
|
|
407
384
|
}
|
|
@@ -412,19 +389,18 @@ function stringify$1(value, reducers) {
|
|
|
412
389
|
case "Uint8ClampedArray":
|
|
413
390
|
case "Int16Array":
|
|
414
391
|
case "Uint16Array":
|
|
392
|
+
case "Float16Array":
|
|
415
393
|
case "Int32Array":
|
|
416
394
|
case "Uint32Array":
|
|
417
395
|
case "Float32Array":
|
|
418
396
|
case "Float64Array":
|
|
419
397
|
case "BigInt64Array":
|
|
420
|
-
case "BigUint64Array":
|
|
398
|
+
case "BigUint64Array":
|
|
399
|
+
case "DataView": {
|
|
421
400
|
const typedArray = thing;
|
|
422
401
|
str = '["' + type + '",' + flatten(typedArray.buffer);
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
if (a > 0 || b !== typedArray.buffer.byteLength) {
|
|
426
|
-
const m = +/(\d+)/.exec(type)[1] / 8;
|
|
427
|
-
str += `,${a / m},${b / m}`;
|
|
402
|
+
if (typedArray.byteLength !== typedArray.buffer.byteLength) {
|
|
403
|
+
str += `,${typedArray.byteOffset},${typedArray.length}`;
|
|
428
404
|
}
|
|
429
405
|
str += "]";
|
|
430
406
|
break;
|
|
@@ -447,20 +423,10 @@ function stringify$1(value, reducers) {
|
|
|
447
423
|
break;
|
|
448
424
|
default:
|
|
449
425
|
if (!is_plain_object(thing)) {
|
|
450
|
-
throw new DevalueError(
|
|
451
|
-
`Cannot stringify arbitrary non-POJOs`,
|
|
452
|
-
keys,
|
|
453
|
-
thing,
|
|
454
|
-
value
|
|
455
|
-
);
|
|
426
|
+
throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
|
|
456
427
|
}
|
|
457
428
|
if (enumerable_symbols(thing).length > 0) {
|
|
458
|
-
throw new DevalueError(
|
|
459
|
-
`Cannot stringify POJOs with symbolic keys`,
|
|
460
|
-
keys,
|
|
461
|
-
thing,
|
|
462
|
-
value
|
|
463
|
-
);
|
|
429
|
+
throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
|
|
464
430
|
}
|
|
465
431
|
if (Object.getPrototypeOf(thing) === null) {
|
|
466
432
|
str = '["null"';
|
|
@@ -505,12 +471,11 @@ function stringify$1(value, reducers) {
|
|
|
505
471
|
}
|
|
506
472
|
const index = flatten(value);
|
|
507
473
|
if (index < 0) return `${index}`;
|
|
508
|
-
return
|
|
474
|
+
return stringified;
|
|
509
475
|
}
|
|
510
476
|
function stringify_primitive(thing) {
|
|
511
477
|
const type = typeof thing;
|
|
512
478
|
if (type === "string") return stringify_string(thing);
|
|
513
|
-
if (thing instanceof String) return stringify_string(thing.toString());
|
|
514
479
|
if (thing === void 0) return UNDEFINED.toString();
|
|
515
480
|
if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO.toString();
|
|
516
481
|
if (type === "bigint") return `["BigInt","${thing}"]`;
|
|
@@ -607,13 +572,13 @@ async function deserialize_binary_form(request) {
|
|
|
607
572
|
chunks2.push(chunk);
|
|
608
573
|
cursor += chunk.byteLength;
|
|
609
574
|
}
|
|
610
|
-
const
|
|
575
|
+
const buffer2 = new Uint8Array(length);
|
|
611
576
|
cursor = 0;
|
|
612
577
|
for (const chunk of chunks2) {
|
|
613
|
-
|
|
578
|
+
buffer2.set(chunk, cursor);
|
|
614
579
|
cursor += chunk.byteLength;
|
|
615
580
|
}
|
|
616
|
-
return
|
|
581
|
+
return buffer2;
|
|
617
582
|
}
|
|
618
583
|
const header = await get_buffer(0, HEADER_BYTES);
|
|
619
584
|
if (!header) throw deserialize_error("too short");
|
|
@@ -1322,7 +1287,7 @@ const options = {
|
|
|
1322
1287
|
<div class="error">
|
|
1323
1288
|
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
|
|
1324
1289
|
},
|
|
1325
|
-
version_hash: "
|
|
1290
|
+
version_hash: "1h07asd"
|
|
1326
1291
|
};
|
|
1327
1292
|
async function get_hooks() {
|
|
1328
1293
|
let handle;
|
|
@@ -4200,98 +4165,121 @@ function redirect_json_response(redirect) {
|
|
|
4200
4165
|
}
|
|
4201
4166
|
);
|
|
4202
4167
|
}
|
|
4203
|
-
var
|
|
4204
|
-
var
|
|
4205
|
-
function
|
|
4206
|
-
if (
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
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)
|
|
4223
4204
|
break;
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
if (endIdx === -1) {
|
|
4227
|
-
endIdx = str.length;
|
|
4228
|
-
} else if (endIdx < eqIdx) {
|
|
4205
|
+
const endIdx = endIndex(str, index, len);
|
|
4206
|
+
if (eqIdx > endIdx) {
|
|
4229
4207
|
index = str.lastIndexOf(";", eqIdx - 1) + 1;
|
|
4230
4208
|
continue;
|
|
4231
4209
|
}
|
|
4232
|
-
|
|
4233
|
-
if (
|
|
4234
|
-
|
|
4235
|
-
if (val.charCodeAt(0) === 34) {
|
|
4236
|
-
val = val.slice(1, -1);
|
|
4237
|
-
}
|
|
4238
|
-
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));
|
|
4239
4213
|
}
|
|
4240
4214
|
index = endIdx + 1;
|
|
4241
|
-
}
|
|
4215
|
+
} while (index < len);
|
|
4242
4216
|
return obj;
|
|
4243
4217
|
}
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
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}`);
|
|
4249
4233
|
}
|
|
4250
|
-
|
|
4251
|
-
|
|
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}`);
|
|
4252
4242
|
}
|
|
4253
|
-
|
|
4254
|
-
if (
|
|
4255
|
-
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}`);
|
|
4256
4246
|
}
|
|
4257
|
-
|
|
4258
|
-
if (
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
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}`);
|
|
4262
4251
|
}
|
|
4263
|
-
str += "; Max-Age=" +
|
|
4252
|
+
str += "; Max-Age=" + cookie.maxAge;
|
|
4264
4253
|
}
|
|
4265
|
-
if (
|
|
4266
|
-
if (!
|
|
4267
|
-
throw new TypeError(
|
|
4254
|
+
if (cookie.domain) {
|
|
4255
|
+
if (!domainValueRegExp.test(cookie.domain)) {
|
|
4256
|
+
throw new TypeError(`option domain is invalid: ${cookie.domain}`);
|
|
4268
4257
|
}
|
|
4269
|
-
str += "; Domain=" +
|
|
4258
|
+
str += "; Domain=" + cookie.domain;
|
|
4270
4259
|
}
|
|
4271
|
-
if (
|
|
4272
|
-
if (!
|
|
4273
|
-
throw new TypeError(
|
|
4260
|
+
if (cookie.path) {
|
|
4261
|
+
if (!pathValueRegExp.test(cookie.path)) {
|
|
4262
|
+
throw new TypeError(`option path is invalid: ${cookie.path}`);
|
|
4274
4263
|
}
|
|
4275
|
-
str += "; Path=" +
|
|
4264
|
+
str += "; Path=" + cookie.path;
|
|
4276
4265
|
}
|
|
4277
|
-
if (
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
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}`);
|
|
4281
4269
|
}
|
|
4282
|
-
str += "; Expires=" + expires.toUTCString();
|
|
4270
|
+
str += "; Expires=" + cookie.expires.toUTCString();
|
|
4283
4271
|
}
|
|
4284
|
-
if (
|
|
4272
|
+
if (cookie.httpOnly) {
|
|
4285
4273
|
str += "; HttpOnly";
|
|
4286
4274
|
}
|
|
4287
|
-
if (
|
|
4275
|
+
if (cookie.secure) {
|
|
4288
4276
|
str += "; Secure";
|
|
4289
4277
|
}
|
|
4290
|
-
if (
|
|
4278
|
+
if (cookie.partitioned) {
|
|
4291
4279
|
str += "; Partitioned";
|
|
4292
4280
|
}
|
|
4293
|
-
if (
|
|
4294
|
-
|
|
4281
|
+
if (cookie.priority) {
|
|
4282
|
+
const priority = typeof cookie.priority === "string" ? cookie.priority.toLowerCase() : void 0;
|
|
4295
4283
|
switch (priority) {
|
|
4296
4284
|
case "low":
|
|
4297
4285
|
str += "; Priority=Low";
|
|
@@ -4303,49 +4291,130 @@ function requireCookie() {
|
|
|
4303
4291
|
str += "; Priority=High";
|
|
4304
4292
|
break;
|
|
4305
4293
|
default:
|
|
4306
|
-
throw new TypeError(
|
|
4294
|
+
throw new TypeError(`option priority is invalid: ${cookie.priority}`);
|
|
4307
4295
|
}
|
|
4308
4296
|
}
|
|
4309
|
-
if (
|
|
4310
|
-
|
|
4297
|
+
if (cookie.sameSite) {
|
|
4298
|
+
const sameSite = typeof cookie.sameSite === "string" ? cookie.sameSite.toLowerCase() : cookie.sameSite;
|
|
4311
4299
|
switch (sameSite) {
|
|
4312
4300
|
case true:
|
|
4301
|
+
case "strict":
|
|
4313
4302
|
str += "; SameSite=Strict";
|
|
4314
4303
|
break;
|
|
4315
4304
|
case "lax":
|
|
4316
4305
|
str += "; SameSite=Lax";
|
|
4317
4306
|
break;
|
|
4318
|
-
case "strict":
|
|
4319
|
-
str += "; SameSite=Strict";
|
|
4320
|
-
break;
|
|
4321
4307
|
case "none":
|
|
4322
4308
|
str += "; SameSite=None";
|
|
4323
4309
|
break;
|
|
4324
4310
|
default:
|
|
4325
|
-
throw new TypeError(
|
|
4311
|
+
throw new TypeError(`option sameSite is invalid: ${cookie.sameSite}`);
|
|
4326
4312
|
}
|
|
4327
4313
|
}
|
|
4328
4314
|
return str;
|
|
4329
4315
|
}
|
|
4330
|
-
function
|
|
4331
|
-
|
|
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;
|
|
4332
4378
|
}
|
|
4333
|
-
function
|
|
4334
|
-
|
|
4379
|
+
function endIndex(str, min, len) {
|
|
4380
|
+
const index = str.indexOf(";", min);
|
|
4381
|
+
return index === -1 ? len : index;
|
|
4335
4382
|
}
|
|
4336
|
-
function
|
|
4337
|
-
|
|
4383
|
+
function eqIndex(str, min, max) {
|
|
4384
|
+
const index = str.indexOf("=", min);
|
|
4385
|
+
return index < max ? index : -1;
|
|
4338
4386
|
}
|
|
4339
|
-
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;
|
|
4340
4406
|
try {
|
|
4341
|
-
return
|
|
4407
|
+
return decodeURIComponent(str);
|
|
4342
4408
|
} catch (e) {
|
|
4343
4409
|
return str;
|
|
4344
4410
|
}
|
|
4345
4411
|
}
|
|
4346
|
-
|
|
4412
|
+
function isDate(val) {
|
|
4413
|
+
return __toString.call(val) === "[object Date]";
|
|
4414
|
+
}
|
|
4415
|
+
return dist;
|
|
4347
4416
|
}
|
|
4348
|
-
var
|
|
4417
|
+
var distExports = /* @__PURE__ */ requireDist();
|
|
4349
4418
|
const INVALID_COOKIE_CHARACTER_REGEX = /[\x00-\x1F\x7F()<>@,;:"/[\]?={} \t]/;
|
|
4350
4419
|
function validate_options(options2) {
|
|
4351
4420
|
if (options2?.path === void 0) {
|
|
@@ -4357,7 +4426,7 @@ function generate_cookie_key(domain, path, name) {
|
|
|
4357
4426
|
}
|
|
4358
4427
|
function get_cookies(request, url) {
|
|
4359
4428
|
const header = request.headers.get("cookie") ?? "";
|
|
4360
|
-
const initial_cookies =
|
|
4429
|
+
const initial_cookies = distExports.parse(header, { decode: (value) => value });
|
|
4361
4430
|
let normalized_url;
|
|
4362
4431
|
const new_cookies = /* @__PURE__ */ new Map();
|
|
4363
4432
|
const defaults = {
|
|
@@ -4381,15 +4450,15 @@ function get_cookies(request, url) {
|
|
|
4381
4450
|
if (best_match) {
|
|
4382
4451
|
return best_match.options.maxAge === 0 ? void 0 : best_match.value;
|
|
4383
4452
|
}
|
|
4384
|
-
const req_cookies =
|
|
4385
|
-
const
|
|
4386
|
-
return
|
|
4453
|
+
const req_cookies = distExports.parse(header, { decode: opts?.decode });
|
|
4454
|
+
const cookie = req_cookies[name];
|
|
4455
|
+
return cookie;
|
|
4387
4456
|
},
|
|
4388
4457
|
/**
|
|
4389
4458
|
* @param {import('cookie').CookieParseOptions} [opts]
|
|
4390
4459
|
*/
|
|
4391
4460
|
getAll(opts) {
|
|
4392
|
-
const cookies2 =
|
|
4461
|
+
const cookies2 = distExports.parse(header, { decode: opts?.decode });
|
|
4393
4462
|
const lookup = /* @__PURE__ */ new Map();
|
|
4394
4463
|
for (const c of new_cookies.values()) {
|
|
4395
4464
|
if (domain_matches(url.hostname, c.options.domain) && path_matches(url.pathname, c.options.path)) {
|
|
@@ -4443,7 +4512,7 @@ function get_cookies(request, url) {
|
|
|
4443
4512
|
}
|
|
4444
4513
|
path = resolve(normalized_url, path);
|
|
4445
4514
|
}
|
|
4446
|
-
return
|
|
4515
|
+
return distExports.serialize(name, value, { ...defaults, ...options2, path });
|
|
4447
4516
|
}
|
|
4448
4517
|
};
|
|
4449
4518
|
function get_cookie_header(destination, header2) {
|
|
@@ -4451,14 +4520,14 @@ function get_cookies(request, url) {
|
|
|
4451
4520
|
// cookies sent by the user agent have lowest precedence
|
|
4452
4521
|
...initial_cookies
|
|
4453
4522
|
};
|
|
4454
|
-
for (const
|
|
4455
|
-
if (!domain_matches(destination.hostname,
|
|
4456
|
-
if (!path_matches(destination.pathname,
|
|
4457
|
-
const encoder =
|
|
4458
|
-
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);
|
|
4459
4528
|
}
|
|
4460
4529
|
if (header2) {
|
|
4461
|
-
const parsed =
|
|
4530
|
+
const parsed = distExports.parse(header2, { decode: (value) => value });
|
|
4462
4531
|
for (const name in parsed) {
|
|
4463
4532
|
combined_cookies[name] = parsed[name];
|
|
4464
4533
|
}
|
|
@@ -4476,8 +4545,8 @@ function get_cookies(request, url) {
|
|
|
4476
4545
|
path = resolve(normalized_url, path);
|
|
4477
4546
|
}
|
|
4478
4547
|
const cookie_key = generate_cookie_key(options2.domain, path, name);
|
|
4479
|
-
const
|
|
4480
|
-
new_cookies.set(cookie_key,
|
|
4548
|
+
const cookie = { name, value, options: { ...options2, path } };
|
|
4549
|
+
new_cookies.set(cookie_key, cookie);
|
|
4481
4550
|
}
|
|
4482
4551
|
function set_trailing_slash(trailing_slash) {
|
|
4483
4552
|
normalized_url = normalize_path(url.pathname, trailing_slash);
|
|
@@ -4500,10 +4569,10 @@ function path_matches(path, constraint) {
|
|
|
4500
4569
|
function add_cookies_to_headers(headers2, cookies) {
|
|
4501
4570
|
for (const new_cookie of cookies) {
|
|
4502
4571
|
const { name, value, options: options2 } = new_cookie;
|
|
4503
|
-
headers2.append("set-cookie",
|
|
4572
|
+
headers2.append("set-cookie", distExports.serialize(name, value, options2));
|
|
4504
4573
|
if (options2.path.endsWith(".html")) {
|
|
4505
4574
|
const path = add_data_suffix(options2.path);
|
|
4506
|
-
headers2.append("set-cookie",
|
|
4575
|
+
headers2.append("set-cookie", distExports.serialize(name, value, { ...options2, path }));
|
|
4507
4576
|
}
|
|
4508
4577
|
}
|
|
4509
4578
|
}
|
|
@@ -4541,9 +4610,9 @@ function parseString(setCookieValue, options2) {
|
|
|
4541
4610
|
e
|
|
4542
4611
|
);
|
|
4543
4612
|
}
|
|
4544
|
-
var
|
|
4545
|
-
|
|
4546
|
-
|
|
4613
|
+
var cookie = createNullObj();
|
|
4614
|
+
cookie.name = name;
|
|
4615
|
+
cookie.value = value;
|
|
4547
4616
|
parts.forEach(function(part) {
|
|
4548
4617
|
var sides = part.split("=");
|
|
4549
4618
|
var key2 = sides.shift().trimLeft().toLowerCase();
|
|
@@ -4552,23 +4621,23 @@ function parseString(setCookieValue, options2) {
|
|
|
4552
4621
|
}
|
|
4553
4622
|
var value2 = sides.join("=");
|
|
4554
4623
|
if (key2 === "expires") {
|
|
4555
|
-
|
|
4624
|
+
cookie.expires = new Date(value2);
|
|
4556
4625
|
} else if (key2 === "max-age") {
|
|
4557
4626
|
var n = parseInt(value2, 10);
|
|
4558
|
-
if (!Number.isNaN(n))
|
|
4627
|
+
if (!Number.isNaN(n)) cookie.maxAge = n;
|
|
4559
4628
|
} else if (key2 === "secure") {
|
|
4560
|
-
|
|
4629
|
+
cookie.secure = true;
|
|
4561
4630
|
} else if (key2 === "httponly") {
|
|
4562
|
-
|
|
4631
|
+
cookie.httpOnly = true;
|
|
4563
4632
|
} else if (key2 === "samesite") {
|
|
4564
|
-
|
|
4633
|
+
cookie.sameSite = value2;
|
|
4565
4634
|
} else if (key2 === "partitioned") {
|
|
4566
|
-
|
|
4635
|
+
cookie.partitioned = true;
|
|
4567
4636
|
} else if (key2) {
|
|
4568
|
-
|
|
4637
|
+
cookie[key2] = value2;
|
|
4569
4638
|
}
|
|
4570
4639
|
});
|
|
4571
|
-
return
|
|
4640
|
+
return cookie;
|
|
4572
4641
|
}
|
|
4573
4642
|
function parseNameValuePair(nameValuePairStr) {
|
|
4574
4643
|
var name = "";
|
|
@@ -4627,9 +4696,9 @@ function parseSetCookie(input, options2) {
|
|
|
4627
4696
|
} else {
|
|
4628
4697
|
var cookies = createNullObj();
|
|
4629
4698
|
return input.reduce(function(cookies2, str) {
|
|
4630
|
-
var
|
|
4631
|
-
if (
|
|
4632
|
-
cookies2[
|
|
4699
|
+
var cookie = parseString(str, options2);
|
|
4700
|
+
if (cookie && !isForbiddenKey(cookie.name)) {
|
|
4701
|
+
cookies2[cookie.name] = cookie;
|
|
4633
4702
|
}
|
|
4634
4703
|
return cookies2;
|
|
4635
4704
|
}, cookies);
|
|
@@ -4718,8 +4787,8 @@ function create_fetch({ event, options: options2, manifest, state, get_cookie_he
|
|
|
4718
4787
|
const decoded = decodeURIComponent(url.pathname);
|
|
4719
4788
|
if (url.origin !== event.url.origin || base && decoded !== base && !decoded.startsWith(`${base}/`)) {
|
|
4720
4789
|
if (`.${url.hostname}`.endsWith(`.${event.url.hostname}`) && credentials !== "omit") {
|
|
4721
|
-
const
|
|
4722
|
-
if (
|
|
4790
|
+
const cookie = get_cookie_header(url, request.headers.get("cookie"));
|
|
4791
|
+
if (cookie) request.headers.set("cookie", cookie);
|
|
4723
4792
|
}
|
|
4724
4793
|
return fetch(request);
|
|
4725
4794
|
}
|
|
@@ -4751,9 +4820,9 @@ function create_fetch({ event, options: options2, manifest, state, get_cookie_he
|
|
|
4751
4820
|
return await fetch(request);
|
|
4752
4821
|
}
|
|
4753
4822
|
if (credentials !== "omit") {
|
|
4754
|
-
const
|
|
4755
|
-
if (
|
|
4756
|
-
request.headers.set("cookie",
|
|
4823
|
+
const cookie = get_cookie_header(url, request.headers.get("cookie"));
|
|
4824
|
+
if (cookie) {
|
|
4825
|
+
request.headers.set("cookie", cookie);
|
|
4757
4826
|
}
|
|
4758
4827
|
const authorization = event.request.headers.get("authorization");
|
|
4759
4828
|
if (authorization && !request.headers.has("authorization")) {
|