@phosart/devtool 0.2.55 → 0.2.56
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/editor/_app/immutable/chunks/{0KCptHmh.js → 3TcOFQ1P.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/3TcOFQ1P.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/3TcOFQ1P.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{Cbto24e2.js → Bi5Ff_eL.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/Bi5Ff_eL.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/Bi5Ff_eL.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/C2rmh-0A.js +1 -0
- package/build/client/editor/_app/immutable/chunks/C2rmh-0A.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/C2rmh-0A.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{B2HnU_F2.js → C5MWRVxI.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/C5MWRVxI.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/C5MWRVxI.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/CTdv_t_-.js +2 -0
- package/build/client/editor/_app/immutable/chunks/CTdv_t_-.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/CTdv_t_-.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{C4FIJGw8.js → CUnFXySD.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/CUnFXySD.js.br +3 -0
- package/build/client/editor/_app/immutable/chunks/CUnFXySD.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BZViGcSm.js → Cgwt45Ln.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/Cgwt45Ln.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/Cgwt45Ln.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BT801B2w.js → DBX01n_F.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/DBX01n_F.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DBX01n_F.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{WhzuguR0.js → DDScWf1n.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/DDScWf1n.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DDScWf1n.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BrxmDnNG.js → DGyq5FqO.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/DGyq5FqO.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DGyq5FqO.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/Da6f7INA.js +3 -0
- package/build/client/editor/_app/immutable/chunks/Da6f7INA.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/Da6f7INA.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{sUNQfOMV.js → F7nDGsXl.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/F7nDGsXl.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/F7nDGsXl.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BpNosAwA.js → GgTU3nOR.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/GgTU3nOR.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/GgTU3nOR.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{BhmV8iRG.js → H6X59gy1.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/H6X59gy1.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/H6X59gy1.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/NSD-lO8d.js +1 -0
- package/build/client/editor/_app/immutable/chunks/NSD-lO8d.js.br +2 -0
- package/build/client/editor/_app/immutable/chunks/NSD-lO8d.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{DuR8u9-d.js → OMzk-3UU.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/OMzk-3UU.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/OMzk-3UU.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{DYdV_MTZ.js → YypdcD6x.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/YypdcD6x.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/YypdcD6x.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/{B_EcgHYV.js → kkJ6-mfm.js} +1 -1
- package/build/client/editor/_app/immutable/chunks/kkJ6-mfm.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/kkJ6-mfm.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/{app.DqKo1zWB.js → app.CH4XyiW6.js} +2 -2
- package/build/client/editor/_app/immutable/entry/app.CH4XyiW6.js.br +0 -0
- package/build/client/editor/_app/immutable/entry/app.CH4XyiW6.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/start.D-17MkFw.js +1 -0
- package/build/client/editor/_app/immutable/entry/start.D-17MkFw.js.br +2 -0
- package/build/client/editor/_app/immutable/entry/start.D-17MkFw.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{0.DxETR5fU.js → 0.6wipZgLt.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/0.6wipZgLt.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/0.6wipZgLt.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{1.CbCobvVX.js → 1.JUCLTCZg.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/1.JUCLTCZg.js.br +6 -0
- package/build/client/editor/_app/immutable/nodes/1.JUCLTCZg.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{2.C1Aba-tP.js → 2.C-c22AJV.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/2.C-c22AJV.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/2.C-c22AJV.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{3.BYrpT4pI.js → 3.9yNW4WVN.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/3.9yNW4WVN.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/3.9yNW4WVN.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{4.qP3zBkd-.js → 4.D1f5n5YX.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/4.D1f5n5YX.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/4.D1f5n5YX.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{5.BTWdh43F.js → 5.jrUcL2pB.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/5.jrUcL2pB.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/5.jrUcL2pB.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/6.CyXUw-JO.js +1 -0
- package/build/client/editor/_app/immutable/nodes/6.CyXUw-JO.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/6.CyXUw-JO.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/{7.CV8_KNFP.js → 7.Bdu-Hxas.js} +1 -1
- package/build/client/editor/_app/immutable/nodes/7.Bdu-Hxas.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/7.Bdu-Hxas.js.gz +0 -0
- package/build/client/editor/_app/version.json +1 -1
- package/build/client/editor/_app/version.json.br +0 -0
- package/build/client/editor/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-AjO2BQOI.js → 0-C0LIgZOS.js} +3 -3
- package/build/server/chunks/{0-AjO2BQOI.js.map → 0-C0LIgZOS.js.map} +1 -1
- package/build/server/chunks/1-ANM_nBp2.js +9 -0
- package/build/server/chunks/{1-DNxC-WGZ.js.map → 1-ANM_nBp2.js.map} +1 -1
- package/build/server/chunks/{2-BcKSGVgk.js → 2-Dj4qoGAs.js} +3 -3
- package/build/server/chunks/{2-BcKSGVgk.js.map → 2-Dj4qoGAs.js.map} +1 -1
- package/build/server/chunks/{3-C6bl8QxY.js → 3-Cd8aypSV.js} +3 -3
- package/build/server/chunks/{3-C6bl8QxY.js.map → 3-Cd8aypSV.js.map} +1 -1
- package/build/server/chunks/{4-dq3474EQ.js → 4-BlFm11KQ.js} +3 -3
- package/build/server/chunks/{4-dq3474EQ.js.map → 4-BlFm11KQ.js.map} +1 -1
- package/build/server/chunks/{5-BG4YexER.js → 5-DSngnK7u.js} +3 -3
- package/build/server/chunks/{5-BG4YexER.js.map → 5-DSngnK7u.js.map} +1 -1
- package/build/server/chunks/{6-DS2Tlclu.js → 6-BwJ_Rh80.js} +3 -3
- package/build/server/chunks/{6-DS2Tlclu.js.map → 6-BwJ_Rh80.js.map} +1 -1
- package/build/server/chunks/{7-LL2k2P3i.js → 7-B6dw7bpU.js} +3 -3
- package/build/server/chunks/{7-LL2k2P3i.js.map → 7-B6dw7bpU.js.map} +1 -1
- package/build/server/chunks/{ActionButton-bCBhEcfn.js → ActionButton-mkFYNSea.js} +2 -2
- package/build/server/chunks/ActionButton-mkFYNSea.js.map +1 -0
- package/build/server/chunks/{Checkbox-Cl0rz2av.js → Checkbox-fLLZz3yU.js} +3 -3
- package/build/server/chunks/Checkbox-fLLZz3yU.js.map +1 -0
- package/build/server/chunks/{Modal-gQ4_8JPX.js → Modal-CvVMDygt.js} +4 -4
- package/build/server/chunks/Modal-CvVMDygt.js.map +1 -0
- package/build/server/chunks/{SearchInput-BHGwfrD9.js → SearchInput-Be47rAks.js} +3 -3
- package/build/server/chunks/SearchInput-Be47rAks.js.map +1 -0
- package/build/server/chunks/{TagEdit-jGkfc4Yl.js → TagEdit-DkQl9Imu.js} +4 -4
- package/build/server/chunks/TagEdit-DkQl9Imu.js.map +1 -0
- package/build/server/chunks/{TextBox-BFIQcNco.js → TextBox-DsKw7Q67.js} +5 -5
- package/build/server/chunks/TextBox-DsKw7Q67.js.map +1 -0
- package/build/server/chunks/{Tooltip-D5TPQeJl.js → Tooltip-f7vWkyo7.js} +2 -2
- package/build/server/chunks/{Tooltip-D5TPQeJl.js.map → Tooltip-f7vWkyo7.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-BHetA6tT.js → _layout.svelte-B1UGWjtX.js} +10 -10
- package/build/server/chunks/_layout.svelte-B1UGWjtX.js.map +1 -0
- package/build/server/chunks/{_page.svelte-ChxSPa1G.js → _page.svelte-BUiUt2wh.js} +12 -12
- package/build/server/chunks/_page.svelte-BUiUt2wh.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DFQGbb4O.js → _page.svelte-BycVqEYy.js} +5 -5
- package/build/server/chunks/_page.svelte-BycVqEYy.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DGCzQMIr.js → _page.svelte-C1xPu8pW.js} +6 -6
- package/build/server/chunks/_page.svelte-C1xPu8pW.js.map +1 -0
- package/build/server/chunks/{_page.svelte-xfTeLlHa.js → _page.svelte-D-FqU1wG.js} +7 -7
- package/build/server/chunks/_page.svelte-D-FqU1wG.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DFphiN_f.js → _page.svelte-DqOdNs2O.js} +11 -11
- package/build/server/chunks/_page.svelte-DqOdNs2O.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DPUt9GFF.js → _page.svelte-Dwdn61Rz.js} +14 -14
- package/build/server/chunks/_page.svelte-Dwdn61Rz.js.map +1 -0
- package/build/server/chunks/{client-CJt7aej2.js → client-IRFEPlPd.js} +4 -4
- package/build/server/chunks/client-IRFEPlPd.js.map +1 -0
- package/build/server/chunks/error.svelte-tEjwweHd.js +15 -0
- package/build/server/chunks/{error.svelte-DpjxI-KC.js.map → error.svelte-tEjwweHd.js.map} +1 -1
- package/build/server/chunks/event-ByDKS2H7.js.map +1 -1
- package/build/server/chunks/{context-BmNrKtQb.js → exports-DTikbzSR.js} +104 -104
- package/build/server/chunks/exports-DTikbzSR.js.map +1 -0
- package/build/server/chunks/{galleryoverride.svelte-BRU5usdL.js → galleryoverride.svelte-DFvLyYKd.js} +2 -2
- package/build/server/chunks/{galleryoverride.svelte-BRU5usdL.js.map → galleryoverride.svelte-DFvLyYKd.js.map} +1 -1
- package/build/server/chunks/index-CoD1IJuy.js.map +1 -1
- package/build/server/chunks/{index2-DHJrk8_o.js → index-Z8eOP0z5.js} +394 -8
- package/build/server/chunks/index-Z8eOP0z5.js.map +1 -0
- package/build/server/chunks/{index-6Cdu3mod.js → index2-RKMiVZcy.js} +2 -2
- package/build/server/chunks/index2-RKMiVZcy.js.map +1 -0
- package/build/server/chunks/{index3-D6qAZ0Ak.js → index3-BZmvBuFZ.js} +4 -4
- package/build/server/chunks/{index3-D6qAZ0Ak.js.map → index3-BZmvBuFZ.js.map} +1 -1
- package/build/server/chunks/{state.svelte-CQgQefnE.js → state.svelte-BDFqjDVR.js} +2 -2
- package/build/server/chunks/{state.svelte-CQgQefnE.js.map → state.svelte-BDFqjDVR.js.map} +1 -1
- package/build/server/index.js +458 -669
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +9 -9
- package/build/server/manifest.js.map +1 -1
- package/package.json +3 -3
- package/build/client/editor/_app/immutable/chunks/0KCptHmh.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/0KCptHmh.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/5eNaY1gy.js +0 -2
- package/build/client/editor/_app/immutable/chunks/5eNaY1gy.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/5eNaY1gy.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/B2HnU_F2.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/B2HnU_F2.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BT801B2w.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BT801B2w.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BZViGcSm.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BZViGcSm.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/B_EcgHYV.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/B_EcgHYV.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BhmV8iRG.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BhmV8iRG.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BpNosAwA.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BpNosAwA.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/BrxmDnNG.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/BrxmDnNG.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/C4FIJGw8.js.br +0 -3
- package/build/client/editor/_app/immutable/chunks/C4FIJGw8.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/Cbto24e2.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/Cbto24e2.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/Cgk6vfk7.js +0 -3
- package/build/client/editor/_app/immutable/chunks/Cgk6vfk7.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/Cgk6vfk7.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/DYdV_MTZ.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DYdV_MTZ.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/D_jTRcxm.js +0 -1
- package/build/client/editor/_app/immutable/chunks/D_jTRcxm.js.br +0 -2
- package/build/client/editor/_app/immutable/chunks/D_jTRcxm.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/DuR8u9-d.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/DuR8u9-d.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/WhzuguR0.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/WhzuguR0.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/ga0QoJIG.js +0 -1
- package/build/client/editor/_app/immutable/chunks/ga0QoJIG.js.br +0 -0
- package/build/client/editor/_app/immutable/chunks/ga0QoJIG.js.gz +0 -0
- package/build/client/editor/_app/immutable/chunks/sUNQfOMV.js.br +0 -2
- package/build/client/editor/_app/immutable/chunks/sUNQfOMV.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/app.DqKo1zWB.js.br +0 -0
- package/build/client/editor/_app/immutable/entry/app.DqKo1zWB.js.gz +0 -0
- package/build/client/editor/_app/immutable/entry/start.CQfGMh2T.js +0 -1
- package/build/client/editor/_app/immutable/entry/start.CQfGMh2T.js.br +0 -2
- package/build/client/editor/_app/immutable/entry/start.CQfGMh2T.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/0.DxETR5fU.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/0.DxETR5fU.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/1.CbCobvVX.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/1.CbCobvVX.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/2.C1Aba-tP.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/2.C1Aba-tP.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/3.BYrpT4pI.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/3.BYrpT4pI.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/4.qP3zBkd-.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/4.qP3zBkd-.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/5.BTWdh43F.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/5.BTWdh43F.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/6.BnZ1oZbx.js +0 -1
- package/build/client/editor/_app/immutable/nodes/6.BnZ1oZbx.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/6.BnZ1oZbx.js.gz +0 -0
- package/build/client/editor/_app/immutable/nodes/7.CV8_KNFP.js.br +0 -0
- package/build/client/editor/_app/immutable/nodes/7.CV8_KNFP.js.gz +0 -0
- package/build/server/chunks/1-DNxC-WGZ.js +0 -9
- package/build/server/chunks/ActionButton-bCBhEcfn.js.map +0 -1
- package/build/server/chunks/Checkbox-Cl0rz2av.js.map +0 -1
- package/build/server/chunks/Modal-gQ4_8JPX.js.map +0 -1
- package/build/server/chunks/SearchInput-BHGwfrD9.js.map +0 -1
- package/build/server/chunks/TagEdit-jGkfc4Yl.js.map +0 -1
- package/build/server/chunks/TextBox-BFIQcNco.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BHetA6tT.js.map +0 -1
- package/build/server/chunks/_page.svelte-ChxSPa1G.js.map +0 -1
- package/build/server/chunks/_page.svelte-DFQGbb4O.js.map +0 -1
- package/build/server/chunks/_page.svelte-DFphiN_f.js.map +0 -1
- package/build/server/chunks/_page.svelte-DGCzQMIr.js.map +0 -1
- package/build/server/chunks/_page.svelte-DPUt9GFF.js.map +0 -1
- package/build/server/chunks/_page.svelte-xfTeLlHa.js.map +0 -1
- package/build/server/chunks/client-CJt7aej2.js.map +0 -1
- package/build/server/chunks/context-BmNrKtQb.js.map +0 -1
- package/build/server/chunks/error.svelte-DpjxI-KC.js +0 -15
- package/build/server/chunks/index-6Cdu3mod.js.map +0 -1
- package/build/server/chunks/index2-DHJrk8_o.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports-DTikbzSR.js","sources":["../../../.svelte-kit/adapter-node/chunks/utils.js","../../../.svelte-kit/adapter-node/chunks/context.js","../../../.svelte-kit/adapter-node/chunks/exports.js"],"sourcesContent":["const text_encoder = new TextEncoder();\nconst text_decoder = new TextDecoder();\nfunction get_relative_path(from, to) {\n const from_parts = from.split(/[/\\\\]/);\n const to_parts = to.split(/[/\\\\]/);\n from_parts.pop();\n while (from_parts[0] === to_parts[0]) {\n from_parts.shift();\n to_parts.shift();\n }\n let i = from_parts.length;\n while (i--) from_parts[i] = \"..\";\n return from_parts.concat(to_parts).join(\"/\");\n}\nfunction base64_encode(bytes) {\n if (globalThis.Buffer) {\n return globalThis.Buffer.from(bytes).toString(\"base64\");\n }\n let binary = \"\";\n for (let i = 0; i < bytes.length; i++) {\n binary += String.fromCharCode(bytes[i]);\n }\n return btoa(binary);\n}\nfunction base64_decode(encoded) {\n if (globalThis.Buffer) {\n const buffer = globalThis.Buffer.from(encoded, \"base64\");\n return new Uint8Array(buffer);\n }\n const binary = atob(encoded);\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return bytes;\n}\nexport {\n text_encoder as a,\n base64_encode as b,\n base64_decode as c,\n get_relative_path as g,\n text_decoder as t\n};\n","var is_array = Array.isArray;\nvar index_of = Array.prototype.indexOf;\nvar array_from = Array.from;\nvar define_property = Object.defineProperty;\nvar get_descriptor = Object.getOwnPropertyDescriptor;\nvar object_prototype = Object.prototype;\nvar array_prototype = Array.prototype;\nvar get_prototype_of = Object.getPrototypeOf;\nvar is_extensible = Object.isExtensible;\nconst noop = () => {\n};\nfunction run_all(arr) {\n for (var i = 0; i < arr.length; i++) {\n arr[i]();\n }\n}\nfunction deferred() {\n var resolve;\n var reject;\n var promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n return { promise, resolve, reject };\n}\nfunction fallback(value, fallback2, lazy = false) {\n return value === void 0 ? lazy ? (\n /** @type {() => V} */\n fallback2()\n ) : (\n /** @type {V} */\n fallback2\n ) : value;\n}\nfunction lifecycle_outside_component(name) {\n {\n throw new Error(`https://svelte.dev/e/lifecycle_outside_component`);\n }\n}\nconst ATTR_REGEX = /[&\"<]/g;\nconst CONTENT_REGEX = /[&<]/g;\nfunction escape_html(value, is_attr) {\n const str = String(value ?? \"\");\n const pattern = is_attr ? ATTR_REGEX : CONTENT_REGEX;\n pattern.lastIndex = 0;\n let escaped = \"\";\n let last = 0;\n while (pattern.test(str)) {\n const i = pattern.lastIndex - 1;\n const ch = str[i];\n escaped += str.substring(last, i) + (ch === \"&\" ? \"&\" : ch === '\"' ? \""\" : \"<\");\n last = i + 1;\n }\n return escaped + str.substring(last);\n}\nvar ssr_context = null;\nfunction set_ssr_context(v) {\n ssr_context = v;\n}\nfunction createContext() {\n const key = {};\n return [() => getContext(key), (context) => setContext(key, context)];\n}\nfunction getContext(key) {\n const context_map = get_or_init_context_map();\n const result = (\n /** @type {T} */\n context_map.get(key)\n );\n return result;\n}\nfunction setContext(key, context) {\n get_or_init_context_map().set(key, context);\n return context;\n}\nfunction get_or_init_context_map(name) {\n if (ssr_context === null) {\n lifecycle_outside_component();\n }\n return ssr_context.c ??= new Map(get_parent_context(ssr_context) || void 0);\n}\nfunction push(fn) {\n ssr_context = { p: ssr_context, c: null, r: null };\n}\nfunction pop() {\n ssr_context = /** @type {SSRContext} */\n ssr_context.p;\n}\nfunction get_parent_context(ssr_context2) {\n let parent = ssr_context2.p;\n while (parent !== null) {\n const context_map = parent.c;\n if (context_map !== null) {\n return context_map;\n }\n parent = parent.p;\n }\n return null;\n}\nexport {\n array_prototype as a,\n get_prototype_of as b,\n is_extensible as c,\n deferred as d,\n index_of as e,\n define_property as f,\n get_descriptor as g,\n array_from as h,\n is_array as i,\n fallback as j,\n escape_html as k,\n getContext as l,\n set_ssr_context as m,\n noop as n,\n object_prototype as o,\n ssr_context as p,\n push as q,\n run_all as r,\n setContext as s,\n pop as t,\n createContext as u\n};\n","const SCHEME = /^[a-z][a-z\\d+\\-.]+:/i;\nconst internal = new URL(\"sveltekit-internal://\");\nfunction resolve(base, path) {\n if (path[0] === \"/\" && path[1] === \"/\") return path;\n let url = new URL(base, internal);\n url = new URL(path, url);\n return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;\n}\nfunction normalize_path(path, trailing_slash) {\n if (path === \"/\" || trailing_slash === \"ignore\") return path;\n if (trailing_slash === \"never\") {\n return path.endsWith(\"/\") ? path.slice(0, -1) : path;\n } else if (trailing_slash === \"always\" && !path.endsWith(\"/\")) {\n return path + \"/\";\n }\n return path;\n}\nfunction decode_pathname(pathname) {\n return pathname.split(\"%25\").map(decodeURI).join(\"%25\");\n}\nfunction decode_params(params) {\n for (const key in params) {\n params[key] = decodeURIComponent(params[key]);\n }\n return params;\n}\nfunction make_trackable(url, callback, search_params_callback, allow_hash = false) {\n const tracked = new URL(url);\n Object.defineProperty(tracked, \"searchParams\", {\n value: new Proxy(tracked.searchParams, {\n get(obj, key) {\n if (key === \"get\" || key === \"getAll\" || key === \"has\") {\n return (param, ...rest) => {\n search_params_callback(param);\n return obj[key](param, ...rest);\n };\n }\n callback();\n const value = Reflect.get(obj, key);\n return typeof value === \"function\" ? value.bind(obj) : value;\n }\n }),\n enumerable: true,\n configurable: true\n });\n const tracked_url_properties = [\"href\", \"pathname\", \"search\", \"toString\", \"toJSON\"];\n if (allow_hash) tracked_url_properties.push(\"hash\");\n for (const property of tracked_url_properties) {\n Object.defineProperty(tracked, property, {\n get() {\n callback();\n return url[property];\n },\n enumerable: true,\n configurable: true\n });\n }\n {\n tracked[/* @__PURE__ */ Symbol.for(\"nodejs.util.inspect.custom\")] = (depth, opts, inspect) => {\n return inspect(url, opts);\n };\n tracked.searchParams[/* @__PURE__ */ Symbol.for(\"nodejs.util.inspect.custom\")] = (depth, opts, inspect) => {\n return inspect(url.searchParams, opts);\n };\n }\n if (!allow_hash) {\n disable_hash(tracked);\n }\n return tracked;\n}\nfunction disable_hash(url) {\n allow_nodejs_console_log(url);\n Object.defineProperty(url, \"hash\", {\n get() {\n throw new Error(\n \"Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead\"\n );\n }\n });\n}\nfunction disable_search(url) {\n allow_nodejs_console_log(url);\n for (const property of [\"search\", \"searchParams\"]) {\n Object.defineProperty(url, property, {\n get() {\n throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);\n }\n });\n }\n}\nfunction allow_nodejs_console_log(url) {\n {\n url[/* @__PURE__ */ Symbol.for(\"nodejs.util.inspect.custom\")] = (depth, opts, inspect) => {\n return inspect(new URL(url), opts);\n };\n }\n}\nfunction validator(expected) {\n function validate(module, file) {\n if (!module) return;\n for (const key in module) {\n if (key[0] === \"_\" || expected.has(key)) continue;\n const values = [...expected.values()];\n const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf(\".\"))) ?? `valid exports are ${values.join(\", \")}, or anything with a '_' prefix`;\n throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : \"\"} (${hint})`);\n }\n }\n return validate;\n}\nfunction hint_for_supported_files(key, ext = \".js\") {\n const supported_files = [];\n if (valid_layout_exports.has(key)) {\n supported_files.push(`+layout${ext}`);\n }\n if (valid_page_exports.has(key)) {\n supported_files.push(`+page${ext}`);\n }\n if (valid_layout_server_exports.has(key)) {\n supported_files.push(`+layout.server${ext}`);\n }\n if (valid_page_server_exports.has(key)) {\n supported_files.push(`+page.server${ext}`);\n }\n if (valid_server_exports.has(key)) {\n supported_files.push(`+server${ext}`);\n }\n if (supported_files.length > 0) {\n return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(\", \")}${supported_files.length > 1 ? \" or \" : \"\"}${supported_files.at(-1)}`;\n }\n}\nconst valid_layout_exports = /* @__PURE__ */ new Set([\n \"load\",\n \"prerender\",\n \"csr\",\n \"ssr\",\n \"trailingSlash\",\n \"config\"\n]);\nconst valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, \"entries\"]);\nconst valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);\nconst valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, \"actions\", \"entries\"]);\nconst valid_server_exports = /* @__PURE__ */ new Set([\n \"GET\",\n \"POST\",\n \"PATCH\",\n \"PUT\",\n \"DELETE\",\n \"OPTIONS\",\n \"HEAD\",\n \"fallback\",\n \"prerender\",\n \"trailingSlash\",\n \"config\",\n \"entries\"\n]);\nconst validate_layout_exports = validator(valid_layout_exports);\nconst validate_page_exports = validator(valid_page_exports);\nconst validate_layout_server_exports = validator(valid_layout_server_exports);\nconst validate_page_server_exports = validator(valid_page_server_exports);\nconst validate_server_exports = validator(valid_server_exports);\nexport {\n SCHEME as S,\n decode_params as a,\n validate_layout_exports as b,\n validate_page_server_exports as c,\n disable_search as d,\n validate_page_exports as e,\n decode_pathname as f,\n validate_server_exports as g,\n make_trackable as m,\n normalize_path as n,\n resolve as r,\n validate_layout_server_exports as v\n};\n"],"names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as createContext } from './
|
|
1
|
+
import { J as createContext } from './exports-DTikbzSR.js';
|
|
2
2
|
import { c as createLogger } from './log-Dgdg632G.js';
|
|
3
3
|
|
|
4
4
|
const [get$1, set$1] = createContext();
|
|
@@ -80,4 +80,4 @@ function getOverrides() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export { createSharedGalleryOverrides as a, getEpoch as b, createSharedEpoch as c, getOverrides as g };
|
|
83
|
-
//# sourceMappingURL=galleryoverride.svelte-
|
|
83
|
+
//# sourceMappingURL=galleryoverride.svelte-DFvLyYKd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"galleryoverride.svelte-
|
|
1
|
+
{"version":3,"file":"galleryoverride.svelte-DFvLyYKd.js","sources":["../../../.svelte-kit/adapter-node/chunks/galleryoverride.svelte.js"],"sourcesContent":["import { u as createContext } from \"./context.js\";\nimport { c as createLogger } from \"./log.js\";\nconst [get$1, set$1] = createContext();\nfunction createSharedEpoch() {\n const epoch = { epoch: 0 };\n set$1(epoch);\n}\nfunction getEpoch() {\n return get$1();\n}\nconst logger = createLogger();\nclass GalleryOverrides {\n #overrides = { overrides: {} };\n reset() {\n logger.debug(\"Resetting overrides\");\n this.#overrides.overrides = {};\n }\n get(path, piece, alt, altIndex) {\n const gpath = JSON.stringify(path);\n if (alt) {\n return this.#overrides.overrides[gpath]?.[piece]?.alts[alt] ?? (altIndex !== void 0 ? this.#overrides.overrides[gpath]?.[piece]?.alts[altIndex] : null) ?? null;\n }\n return this.#overrides.overrides[gpath]?.[piece]?.main ?? null;\n }\n setFromNew(path, f) {\n const durl = URL.createObjectURL(f);\n if (f.type.startsWith(\"video\")) {\n this.setVideoFull(path, durl);\n this.setVideoThumb(path, durl);\n } else {\n this.setImage(path, durl);\n }\n }\n setImage(path, override) {\n this.#set(path, \"image\", override);\n }\n setVideoFull(path, override) {\n this.#set(path, \"videoFull\", override);\n }\n setVideoThumb(path, override) {\n this.#set(path, \"videoThumb\", override);\n }\n #set(path, key, override) {\n logger.debug(\"Setting override for\", path, \"@\", key);\n const gpath = JSON.stringify(path);\n const obj = this.#ensure(gpath, path.piece ?? \"character\", path.alt);\n if (obj[key]) {\n URL.revokeObjectURL(obj[key]);\n }\n const indexObj = this.#ensure(gpath, path.piece ?? \"character\", path.altIndex);\n if (indexObj[key]) {\n URL.revokeObjectURL(indexObj[key]);\n }\n obj[key] = override ?? void 0;\n indexObj[key] = override ?? void 0;\n }\n #ensure(gpath, piece, alt) {\n if (!this.#overrides.overrides[gpath]) {\n this.#overrides.overrides[gpath] = {};\n }\n if (!this.#overrides.overrides[gpath][piece]) {\n this.#overrides.overrides[gpath][piece] = { main: {}, alts: {} };\n }\n if (alt && !this.#overrides.overrides[gpath][piece].alts[alt]) {\n this.#overrides.overrides[gpath][piece].alts[alt] = {};\n }\n if (alt) {\n return this.#overrides.overrides[gpath][piece].alts[alt];\n }\n return this.#overrides.overrides[gpath][piece].main;\n }\n}\nconst [get, set] = createContext();\nfunction createSharedGalleryOverrides() {\n set(new GalleryOverrides());\n}\nfunction getOverrides() {\n return get();\n}\nexport {\n createSharedGalleryOverrides as a,\n getEpoch as b,\n createSharedEpoch as c,\n getOverrides as g\n};\n"],"names":[],"mappings":";;;AAEA,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,aAAa,EAAE;AACtC,SAAS,iBAAiB,GAAG;AAC7B,EAAE,MAAM,KAAK,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE;AAC5B,EAAE,KAAK,CAAC,KAAK,CAAC;AACd;AACA,SAAS,QAAQ,GAAG;AACpB,EAAE,OAAO,KAAK,EAAE;AAChB;AACA,MAAM,MAAM,GAAG,YAAY,EAAE;AAC7B,MAAM,gBAAgB,CAAC;AACvB,EAAE,UAAU,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE;AAChC,EAAE,KAAK,GAAG;AACV,IAAI,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC;AACvC,IAAI,IAAI,CAAC,UA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2fb905c/node_modules/@sveltejs/kit/src/exports/internal/index.js","../../../node_modules/.pnpm/@sveltejs+kit@2.49.2_@sveltejs+vite-plugin-svelte@6.2.1_svelte@5.46.0_vite@7.3.0_@types_7521fd9ba8c20ac098f43fb4c2fb905c/node_modules/@sveltejs/kit/src/runtime/utils.js","../../../node_modules/.pnpm/@sveltejs+kit@2.49.2_@sveltejs+vite-plugin-svelte@6.2.1_svelte@5.46.0_vite@7.3.0_@types_7521fd9ba8c20ac098f43fb4c2fb905c/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\nexport const text_decoder = new TextDecoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'http://internal');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"names":[],"mappings":"AAAA;;AAEO,MAAM,SAAS,CA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GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC;AACjD,CAAC;;AAED,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;AAC3B,EAAE,GAAG,IAAI;AACT,EAAE;AACF,EAAE,CAAC;AACH;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AACjC,CAAC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;AAC3C,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;AACrC,EAAE,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC;AAC3C,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;AAC9D,EAAE,OAAO,IAAI,QAAQ,CAAC,OAAO,EAAE;AAC/B,GAAG,GAAG,IAAI;AACV,GAAG;AACH,GAAG,CAAC;AACJ,CAAC;;AAED,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;AAC3B,EAAE,GAAG,IAAI;AACT,EAAE;AACF,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"index-CoD1IJuy.js","sources":["../../../node_modules/.pnpm/@sveltejs+kit@2.50.1_@sveltejs+vite-plugin-svelte@6.2.1_svelte@5.48.0_vite@7.3.0_@types_e2c419e7d4d0db25242b2b8647244c72/node_modules/@sveltejs/kit/src/exports/internal/index.js","../../../node_modules/.pnpm/@sveltejs+kit@2.50.1_@sveltejs+vite-plugin-svelte@6.2.1_svelte@5.48.0_vite@7.3.0_@types_e2c419e7d4d0db25242b2b8647244c72/node_modules/@sveltejs/kit/src/runtime/utils.js","../../../node_modules/.pnpm/@sveltejs+kit@2.50.1_@sveltejs+vite-plugin-svelte@6.2.1_svelte@5.48.0_vite@7.3.0_@types_e2c419e7d4d0db25242b2b8647244c72/node_modules/@sveltejs/kit/src/exports/index.js"],"sourcesContent":["/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nexport class HttpError {\n\t/**\n\t * @param {number} status\n\t * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n\t */\n\tconstructor(status, body) {\n\t\tthis.status = status;\n\t\tif (typeof body === 'string') {\n\t\t\tthis.body = { message: body };\n\t\t} else if (body) {\n\t\t\tthis.body = body;\n\t\t} else {\n\t\t\tthis.body = { message: `Error: ${status}` };\n\t\t}\n\t}\n\n\ttoString() {\n\t\treturn JSON.stringify(this.body);\n\t}\n}\n\nexport class Redirect {\n\t/**\n\t * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n\t * @param {string} location\n\t */\n\tconstructor(status, location) {\n\t\tthis.status = status;\n\t\tthis.location = location;\n\t}\n}\n\n/**\n * An error that was thrown from within the SvelteKit runtime that is not fatal and doesn't result in a 500, such as a 404.\n * `SvelteKitError` goes through `handleError`.\n * @extends Error\n */\nexport class SvelteKitError extends Error {\n\t/**\n\t * @param {number} status\n\t * @param {string} text\n\t * @param {string} message\n\t */\n\tconstructor(status, text, message) {\n\t\tsuper(message);\n\t\tthis.status = status;\n\t\tthis.text = text;\n\t}\n}\n\n/**\n * @template [T=undefined]\n */\nexport class ActionFailure {\n\t/**\n\t * @param {number} status\n\t * @param {T} data\n\t */\n\tconstructor(status, data) {\n\t\tthis.status = status;\n\t\tthis.data = data;\n\t}\n}\n\n/**\n * Error thrown when form validation fails imperatively\n */\nexport class ValidationError extends Error {\n\t/**\n\t * @param {StandardSchemaV1.Issue[]} issues\n\t */\n\tconstructor(issues) {\n\t\tsuper('Validation failed');\n\t\tthis.name = 'ValidationError';\n\t\tthis.issues = issues;\n\t}\n}\n\nexport { init_remote_functions } from './remote-functions.js';\n","import { BROWSER } from 'esm-env';\n\nexport const text_encoder = new TextEncoder();\nexport const text_decoder = new TextDecoder();\n\n/**\n * Like node's path.relative, but without using node\n * @param {string} from\n * @param {string} to\n */\nexport function get_relative_path(from, to) {\n\tconst from_parts = from.split(/[/\\\\]/);\n\tconst to_parts = to.split(/[/\\\\]/);\n\tfrom_parts.pop(); // get dirname\n\n\twhile (from_parts[0] === to_parts[0]) {\n\t\tfrom_parts.shift();\n\t\tto_parts.shift();\n\t}\n\n\tlet i = from_parts.length;\n\twhile (i--) from_parts[i] = '..';\n\n\treturn from_parts.concat(to_parts).join('/');\n}\n\n/**\n * @param {Uint8Array} bytes\n * @returns {string}\n */\nexport function base64_encode(bytes) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\treturn globalThis.Buffer.from(bytes).toString('base64');\n\t}\n\n\tlet binary = '';\n\n\tfor (let i = 0; i < bytes.length; i++) {\n\t\tbinary += String.fromCharCode(bytes[i]);\n\t}\n\n\treturn btoa(binary);\n}\n\n/**\n * @param {string} encoded\n * @returns {Uint8Array}\n */\nexport function base64_decode(encoded) {\n\t// Using `Buffer` is faster than iterating\n\tif (!BROWSER && globalThis.Buffer) {\n\t\tconst buffer = globalThis.Buffer.from(encoded, 'base64');\n\t\treturn new Uint8Array(buffer);\n\t}\n\n\tconst binary = atob(encoded);\n\tconst bytes = new Uint8Array(binary.length);\n\n\tfor (let i = 0; i < binary.length; i++) {\n\t\tbytes[i] = binary.charCodeAt(i);\n\t}\n\n\treturn bytes;\n}\n","/** @import { StandardSchemaV1 } from '@standard-schema/spec' */\n\nimport { HttpError, Redirect, ActionFailure, ValidationError } from './internal/index.js';\nimport { BROWSER, DEV } from 'esm-env';\nimport {\n\tadd_data_suffix,\n\tadd_resolution_suffix,\n\thas_data_suffix,\n\thas_resolution_suffix,\n\tstrip_data_suffix,\n\tstrip_resolution_suffix\n} from '../runtime/pathname.js';\nimport { text_encoder } from '../runtime/utils.js';\n\nexport { VERSION } from '../version.js';\n\n// TODO 3.0: remove these types as they are not used anymore (we can't remove them yet because that would be a breaking change)\n/**\n * @template {number} TNumber\n * @template {any[]} [TArray=[]]\n * @typedef {TNumber extends TArray['length'] ? TArray[number] : LessThan<TNumber, [...TArray, TArray['length']]>} LessThan\n */\n\n/**\n * @template {number} TStart\n * @template {number} TEnd\n * @typedef {Exclude<TEnd | LessThan<TEnd>, LessThan<TStart>>} NumericRange\n */\n\n// Keep the status codes as `number` because restricting to certain numbers makes it unnecessarily hard to use compared to the benefits\n// (we have runtime errors already to check for invalid codes). Also see https://github.com/sveltejs/kit/issues/11780\n\n// we have to repeat the JSDoc because the display for function overloads is broken\n// see https://github.com/microsoft/TypeScript/issues/55056\n\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {App.Error} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {App.Error} body\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body] An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @overload\n * @param {number} status\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} [body]\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\n/**\n * Throws an error with a HTTP status code and an optional message.\n * When called during request handling, this will cause SvelteKit to\n * return an error response without invoking `handleError`.\n * Make sure you're not catching the thrown error, which would prevent SvelteKit from handling it.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {{ message: string } extends App.Error ? App.Error | string | undefined : never} body An object that conforms to the App.Error type. If a string is passed, it will be used as the message property.\n * @return {never}\n * @throws {HttpError} This error instructs SvelteKit to initiate HTTP error handling.\n * @throws {Error} If the provided status is invalid (not between 400 and 599).\n */\nexport function error(status, body) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 400 || status > 599)) {\n\t\tthrow new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n\t}\n\n\tthrow new HttpError(status, body);\n}\n\n/**\n * Checks whether this is an error thrown by {@link error}.\n * @template {number} T\n * @param {unknown} e\n * @param {T} [status] The status to filter for.\n * @return {e is (HttpError & { status: T extends undefined ? never : T })}\n */\nexport function isHttpError(e, status) {\n\tif (!(e instanceof HttpError)) return false;\n\treturn !status || e.status === status;\n}\n\n/**\n * Redirect a request. When called during request handling, SvelteKit will return a redirect response.\n * Make sure you're not catching the thrown redirect, which would prevent SvelteKit from handling it.\n *\n * Most common status codes:\n * * `303 See Other`: redirect as a GET request (often used after a form POST request)\n * * `307 Temporary Redirect`: redirect will keep the request method\n * * `308 Permanent Redirect`: redirect will keep the request method, SEO will be transferred to the new page\n *\n * [See all redirect status codes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages)\n *\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | ({} & number)} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#redirection_messages). Must be in the range 300-308.\n * @param {string | URL} location The location to redirect to.\n * @throws {Redirect} This error instructs SvelteKit to redirect to the specified location.\n * @throws {Error} If the provided status is invalid.\n * @return {never}\n */\nexport function redirect(status, location) {\n\tif ((!BROWSER || DEV) && (isNaN(status) || status < 300 || status > 308)) {\n\t\tthrow new Error('Invalid status code');\n\t}\n\n\tthrow new Redirect(\n\t\t// @ts-ignore\n\t\tstatus,\n\t\tlocation.toString()\n\t);\n}\n\n/**\n * Checks whether this is a redirect thrown by {@link redirect}.\n * @param {unknown} e The object to check.\n * @return {e is Redirect}\n */\nexport function isRedirect(e) {\n\treturn e instanceof Redirect;\n}\n\n/**\n * Create a JSON `Response` object from the supplied data.\n * @param {any} data The value that will be serialized as JSON.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. `Content-Type: application/json` and `Content-Length` headers will be added automatically.\n */\nexport function json(data, init) {\n\t// TODO deprecate this in favour of `Response.json` when it's\n\t// more widely supported\n\tconst body = JSON.stringify(data);\n\n\t// we can't just do `text(JSON.stringify(data), init)` because\n\t// it will set a default `content-type` header. duplicated code\n\t// means less duplicated work\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\theaders.set('content-length', text_encoder.encode(body).byteLength.toString());\n\t}\n\n\tif (!headers.has('content-type')) {\n\t\theaders.set('content-type', 'application/json');\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create a `Response` object from the supplied body.\n * @param {string} body The value that will be used as-is.\n * @param {ResponseInit} [init] Options such as `status` and `headers` that will be added to the response. A `Content-Length` header will be added automatically.\n */\nexport function text(body, init) {\n\tconst headers = new Headers(init?.headers);\n\tif (!headers.has('content-length')) {\n\t\tconst encoded = text_encoder.encode(body);\n\t\theaders.set('content-length', encoded.byteLength.toString());\n\t\treturn new Response(encoded, {\n\t\t\t...init,\n\t\t\theaders\n\t\t});\n\t}\n\n\treturn new Response(body, {\n\t\t...init,\n\t\theaders\n\t});\n}\n\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @overload\n * @param {number} status\n * @returns {import('./public.js').ActionFailure<undefined>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @template [T=undefined]\n * @param {number} status The [HTTP status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses). Must be in the range 400-599.\n * @param {T} data Data associated with the failure (e.g. validation errors)\n * @overload\n * @param {number} status\n * @param {T} data\n * @returns {import('./public.js').ActionFailure<T>}\n */\n/**\n * Create an `ActionFailure` object. Call when form submission fails.\n * @param {number} status\n * @param {any} [data]\n * @returns {import('./public.js').ActionFailure<any>}\n */\nexport function fail(status, data) {\n\t// @ts-expect-error unique symbol missing\n\treturn new ActionFailure(status, data);\n}\n\n/**\n * Checks whether this is an action failure thrown by {@link fail}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n */\nexport function isActionFailure(e) {\n\treturn e instanceof ActionFailure;\n}\n\n/**\n * Use this to throw a validation error to imperatively fail form validation.\n * Can be used in combination with `issue` passed to form actions to create field-specific issues.\n *\n * @example\n * ```ts\n * import { invalid } from '@sveltejs/kit';\n * import { form } from '$app/server';\n * import { tryLogin } from '$lib/server/auth';\n * import * as v from 'valibot';\n *\n * export const login = form(\n * v.object({ name: v.string(), _password: v.string() }),\n * async ({ name, _password }) => {\n * const success = tryLogin(name, _password);\n * if (!success) {\n * invalid('Incorrect username or password');\n * }\n *\n * // ...\n * }\n * );\n * ```\n * @param {...(StandardSchemaV1.Issue | string)} issues\n * @returns {never}\n * @since 2.47.3\n */\nexport function invalid(...issues) {\n\tthrow new ValidationError(\n\t\tissues.map((issue) => (typeof issue === 'string' ? { message: issue } : issue))\n\t);\n}\n\n/**\n * Checks whether this is an validation error thrown by {@link invalid}.\n * @param {unknown} e The object to check.\n * @return {e is import('./public.js').ActionFailure}\n * @since 2.47.3\n */\nexport function isValidationError(e) {\n\treturn e instanceof ValidationError;\n}\n\n/**\n * Strips possible SvelteKit-internal suffixes and trailing slashes from the URL pathname.\n * Returns the normalized URL as well as a method for adding the potential suffix back\n * based on a new pathname (possibly including search) or URL.\n * ```js\n * import { normalizeUrl } from '@sveltejs/kit';\n *\n * const { url, denormalize } = normalizeUrl('/blog/post/__data.json');\n * console.log(url.pathname); // /blog/post\n * console.log(denormalize('/blog/post/a')); // /blog/post/a/__data.json\n * ```\n * @param {URL | string} url\n * @returns {{ url: URL, wasNormalized: boolean, denormalize: (url?: string | URL) => URL }}\n * @since 2.18.0\n */\nexport function normalizeUrl(url) {\n\turl = new URL(url, 'http://internal');\n\n\tconst is_route_resolution = has_resolution_suffix(url.pathname);\n\tconst is_data_request = has_data_suffix(url.pathname);\n\tconst has_trailing_slash = url.pathname !== '/' && url.pathname.endsWith('/');\n\n\tif (is_route_resolution) {\n\t\turl.pathname = strip_resolution_suffix(url.pathname);\n\t} else if (is_data_request) {\n\t\turl.pathname = strip_data_suffix(url.pathname);\n\t} else if (has_trailing_slash) {\n\t\turl.pathname = url.pathname.slice(0, -1);\n\t}\n\n\treturn {\n\t\turl,\n\t\twasNormalized: is_data_request || is_route_resolution || has_trailing_slash,\n\t\tdenormalize: (new_url = url) => {\n\t\t\tnew_url = new URL(new_url, url);\n\t\t\tif (is_route_resolution) {\n\t\t\t\tnew_url.pathname = add_resolution_suffix(new_url.pathname);\n\t\t\t} else if (is_data_request) {\n\t\t\t\tnew_url.pathname = add_data_suffix(new_url.pathname);\n\t\t\t} else if (has_trailing_slash && !new_url.pathname.endsWith('/')) {\n\t\t\t\tnew_url.pathname += '/';\n\t\t\t}\n\t\t\treturn new_url;\n\t\t}\n\t};\n}\n"],"names":[],"mappings":"AAAA;;AAEO,MAAM,SAAS,CAAC;AACvB;AACA;AACA;AACA;AACA,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,EAAE;AAC3B,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM;AACtB,EAAE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAChC,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE;AAChC,EAAE,CAAC,MAAM,IAAI,IAAI,EAAE;AACnB,GAAG,IAAI,CAAC,IAA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AC;AAC3C,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;AACrC,EAAE,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC;AAC3C,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;AAC9D,EAAE,OAAO,IAAI,QAAQ,CAAC,OAAO,EAAE;AAC/B,GAAG,GAAG,IAAI;AACV,GAAG;AACH,GAAG,CAAC;AACJ,CAAC;;AAED,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE;AAC3B,EAAE,GAAG,IAAI;AACT,EAAE;AACF,EAAE,CAAC;AACH;;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,5 +1,389 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as set_ssr_context, F as ssr_context, G as push, H as pop, B as escape_html } from './exports-DTikbzSR.js';
|
|
2
2
|
|
|
3
|
+
const escaped = {
|
|
4
|
+
"<": "\\u003C",
|
|
5
|
+
"\\": "\\\\",
|
|
6
|
+
"\b": "\\b",
|
|
7
|
+
"\f": "\\f",
|
|
8
|
+
"\n": "\\n",
|
|
9
|
+
"\r": "\\r",
|
|
10
|
+
" ": "\\t",
|
|
11
|
+
"\u2028": "\\u2028",
|
|
12
|
+
"\u2029": "\\u2029"
|
|
13
|
+
};
|
|
14
|
+
class DevalueError extends Error {
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} message
|
|
17
|
+
* @param {string[]} keys
|
|
18
|
+
* @param {any} [value] - The value that failed to be serialized
|
|
19
|
+
* @param {any} [root] - The root value being serialized
|
|
20
|
+
*/
|
|
21
|
+
constructor(message, keys, value, root) {
|
|
22
|
+
super(message);
|
|
23
|
+
this.name = "DevalueError";
|
|
24
|
+
this.path = keys.join("");
|
|
25
|
+
this.value = value;
|
|
26
|
+
this.root = root;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function is_primitive(thing) {
|
|
30
|
+
return Object(thing) !== thing;
|
|
31
|
+
}
|
|
32
|
+
const object_proto_names = /* @__PURE__ */ Object.getOwnPropertyNames(
|
|
33
|
+
Object.prototype
|
|
34
|
+
).sort().join("\0");
|
|
35
|
+
function is_plain_object(thing) {
|
|
36
|
+
const proto = Object.getPrototypeOf(thing);
|
|
37
|
+
return proto === Object.prototype || proto === null || Object.getPrototypeOf(proto) === null || Object.getOwnPropertyNames(proto).sort().join("\0") === object_proto_names;
|
|
38
|
+
}
|
|
39
|
+
function get_type(thing) {
|
|
40
|
+
return Object.prototype.toString.call(thing).slice(8, -1);
|
|
41
|
+
}
|
|
42
|
+
function get_escaped_char(char) {
|
|
43
|
+
switch (char) {
|
|
44
|
+
case '"':
|
|
45
|
+
return '\\"';
|
|
46
|
+
case "<":
|
|
47
|
+
return "\\u003C";
|
|
48
|
+
case "\\":
|
|
49
|
+
return "\\\\";
|
|
50
|
+
case "\n":
|
|
51
|
+
return "\\n";
|
|
52
|
+
case "\r":
|
|
53
|
+
return "\\r";
|
|
54
|
+
case " ":
|
|
55
|
+
return "\\t";
|
|
56
|
+
case "\b":
|
|
57
|
+
return "\\b";
|
|
58
|
+
case "\f":
|
|
59
|
+
return "\\f";
|
|
60
|
+
case "\u2028":
|
|
61
|
+
return "\\u2028";
|
|
62
|
+
case "\u2029":
|
|
63
|
+
return "\\u2029";
|
|
64
|
+
default:
|
|
65
|
+
return char < " " ? `\\u${char.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function stringify_string(str) {
|
|
69
|
+
let result = "";
|
|
70
|
+
let last_pos = 0;
|
|
71
|
+
const len = str.length;
|
|
72
|
+
for (let i = 0; i < len; i += 1) {
|
|
73
|
+
const char = str[i];
|
|
74
|
+
const replacement = get_escaped_char(char);
|
|
75
|
+
if (replacement) {
|
|
76
|
+
result += str.slice(last_pos, i) + replacement;
|
|
77
|
+
last_pos = i + 1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return `"${last_pos === 0 ? str : result + str.slice(last_pos)}"`;
|
|
81
|
+
}
|
|
82
|
+
function enumerable_symbols(object) {
|
|
83
|
+
return Object.getOwnPropertySymbols(object).filter(
|
|
84
|
+
(symbol) => Object.getOwnPropertyDescriptor(object, symbol).enumerable
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
const is_identifier = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
88
|
+
function stringify_key(key) {
|
|
89
|
+
return is_identifier.test(key) ? "." + key : "[" + JSON.stringify(key) + "]";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";
|
|
93
|
+
const unsafe_chars = /[<\b\f\n\r\t\0\u2028\u2029]/g;
|
|
94
|
+
const reserved = /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
|
|
95
|
+
function uneval(value, replacer) {
|
|
96
|
+
const counts = /* @__PURE__ */ new Map();
|
|
97
|
+
const keys = [];
|
|
98
|
+
const custom = /* @__PURE__ */ new Map();
|
|
99
|
+
function walk(thing) {
|
|
100
|
+
if (!is_primitive(thing)) {
|
|
101
|
+
if (counts.has(thing)) {
|
|
102
|
+
counts.set(thing, counts.get(thing) + 1);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
counts.set(thing, 1);
|
|
106
|
+
if (replacer) {
|
|
107
|
+
const str2 = replacer(thing, (value2) => uneval(value2, replacer));
|
|
108
|
+
if (typeof str2 === "string") {
|
|
109
|
+
custom.set(thing, str2);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
if (typeof thing === "function") {
|
|
114
|
+
throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
|
|
115
|
+
}
|
|
116
|
+
const type = get_type(thing);
|
|
117
|
+
switch (type) {
|
|
118
|
+
case "Number":
|
|
119
|
+
case "BigInt":
|
|
120
|
+
case "String":
|
|
121
|
+
case "Boolean":
|
|
122
|
+
case "Date":
|
|
123
|
+
case "RegExp":
|
|
124
|
+
case "URL":
|
|
125
|
+
case "URLSearchParams":
|
|
126
|
+
return;
|
|
127
|
+
case "Array":
|
|
128
|
+
thing.forEach((value2, i) => {
|
|
129
|
+
keys.push(`[${i}]`);
|
|
130
|
+
walk(value2);
|
|
131
|
+
keys.pop();
|
|
132
|
+
});
|
|
133
|
+
break;
|
|
134
|
+
case "Set":
|
|
135
|
+
Array.from(thing).forEach(walk);
|
|
136
|
+
break;
|
|
137
|
+
case "Map":
|
|
138
|
+
for (const [key, value2] of thing) {
|
|
139
|
+
keys.push(
|
|
140
|
+
`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`
|
|
141
|
+
);
|
|
142
|
+
walk(value2);
|
|
143
|
+
keys.pop();
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
case "Int8Array":
|
|
147
|
+
case "Uint8Array":
|
|
148
|
+
case "Uint8ClampedArray":
|
|
149
|
+
case "Int16Array":
|
|
150
|
+
case "Uint16Array":
|
|
151
|
+
case "Int32Array":
|
|
152
|
+
case "Uint32Array":
|
|
153
|
+
case "Float32Array":
|
|
154
|
+
case "Float64Array":
|
|
155
|
+
case "BigInt64Array":
|
|
156
|
+
case "BigUint64Array":
|
|
157
|
+
walk(thing.buffer);
|
|
158
|
+
return;
|
|
159
|
+
case "ArrayBuffer":
|
|
160
|
+
return;
|
|
161
|
+
case "Temporal.Duration":
|
|
162
|
+
case "Temporal.Instant":
|
|
163
|
+
case "Temporal.PlainDate":
|
|
164
|
+
case "Temporal.PlainTime":
|
|
165
|
+
case "Temporal.PlainDateTime":
|
|
166
|
+
case "Temporal.PlainMonthDay":
|
|
167
|
+
case "Temporal.PlainYearMonth":
|
|
168
|
+
case "Temporal.ZonedDateTime":
|
|
169
|
+
return;
|
|
170
|
+
default:
|
|
171
|
+
if (!is_plain_object(thing)) {
|
|
172
|
+
throw new DevalueError(
|
|
173
|
+
`Cannot stringify arbitrary non-POJOs`,
|
|
174
|
+
keys,
|
|
175
|
+
thing,
|
|
176
|
+
value
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
if (enumerable_symbols(thing).length > 0) {
|
|
180
|
+
throw new DevalueError(
|
|
181
|
+
`Cannot stringify POJOs with symbolic keys`,
|
|
182
|
+
keys,
|
|
183
|
+
thing,
|
|
184
|
+
value
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
for (const key in thing) {
|
|
188
|
+
keys.push(stringify_key(key));
|
|
189
|
+
walk(thing[key]);
|
|
190
|
+
keys.pop();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
walk(value);
|
|
196
|
+
const names = /* @__PURE__ */ new Map();
|
|
197
|
+
Array.from(counts).filter((entry) => entry[1] > 1).sort((a, b) => b[1] - a[1]).forEach((entry, i) => {
|
|
198
|
+
names.set(entry[0], get_name(i));
|
|
199
|
+
});
|
|
200
|
+
function stringify2(thing) {
|
|
201
|
+
if (names.has(thing)) {
|
|
202
|
+
return names.get(thing);
|
|
203
|
+
}
|
|
204
|
+
if (is_primitive(thing)) {
|
|
205
|
+
return stringify_primitive(thing);
|
|
206
|
+
}
|
|
207
|
+
if (custom.has(thing)) {
|
|
208
|
+
return custom.get(thing);
|
|
209
|
+
}
|
|
210
|
+
const type = get_type(thing);
|
|
211
|
+
switch (type) {
|
|
212
|
+
case "Number":
|
|
213
|
+
case "String":
|
|
214
|
+
case "Boolean":
|
|
215
|
+
return `Object(${stringify2(thing.valueOf())})`;
|
|
216
|
+
case "RegExp":
|
|
217
|
+
return `new RegExp(${stringify_string(thing.source)}, "${thing.flags}")`;
|
|
218
|
+
case "Date":
|
|
219
|
+
return `new Date(${thing.getTime()})`;
|
|
220
|
+
case "URL":
|
|
221
|
+
return `new URL(${stringify_string(thing.toString())})`;
|
|
222
|
+
case "URLSearchParams":
|
|
223
|
+
return `new URLSearchParams(${stringify_string(thing.toString())})`;
|
|
224
|
+
case "Array":
|
|
225
|
+
const members = (
|
|
226
|
+
/** @type {any[]} */
|
|
227
|
+
thing.map(
|
|
228
|
+
(v, i) => i in thing ? stringify2(v) : ""
|
|
229
|
+
)
|
|
230
|
+
);
|
|
231
|
+
const tail = thing.length === 0 || thing.length - 1 in thing ? "" : ",";
|
|
232
|
+
return `[${members.join(",")}${tail}]`;
|
|
233
|
+
case "Set":
|
|
234
|
+
case "Map":
|
|
235
|
+
return `new ${type}([${Array.from(thing).map(stringify2).join(",")}])`;
|
|
236
|
+
case "Int8Array":
|
|
237
|
+
case "Uint8Array":
|
|
238
|
+
case "Uint8ClampedArray":
|
|
239
|
+
case "Int16Array":
|
|
240
|
+
case "Uint16Array":
|
|
241
|
+
case "Int32Array":
|
|
242
|
+
case "Uint32Array":
|
|
243
|
+
case "Float32Array":
|
|
244
|
+
case "Float64Array":
|
|
245
|
+
case "BigInt64Array":
|
|
246
|
+
case "BigUint64Array": {
|
|
247
|
+
let str2 = `new ${type}`;
|
|
248
|
+
if (counts.get(thing.buffer) === 1) {
|
|
249
|
+
const array = new thing.constructor(thing.buffer);
|
|
250
|
+
str2 += `([${array}])`;
|
|
251
|
+
} else {
|
|
252
|
+
str2 += `([${stringify2(thing.buffer)}])`;
|
|
253
|
+
}
|
|
254
|
+
const a = thing.byteOffset;
|
|
255
|
+
const b = a + thing.byteLength;
|
|
256
|
+
if (a > 0 || b !== thing.buffer.byteLength) {
|
|
257
|
+
const m = +/(\d+)/.exec(type)[1] / 8;
|
|
258
|
+
str2 += `.subarray(${a / m},${b / m})`;
|
|
259
|
+
}
|
|
260
|
+
return str2;
|
|
261
|
+
}
|
|
262
|
+
case "ArrayBuffer": {
|
|
263
|
+
const ui8 = new Uint8Array(thing);
|
|
264
|
+
return `new Uint8Array([${ui8.toString()}]).buffer`;
|
|
265
|
+
}
|
|
266
|
+
case "Temporal.Duration":
|
|
267
|
+
case "Temporal.Instant":
|
|
268
|
+
case "Temporal.PlainDate":
|
|
269
|
+
case "Temporal.PlainTime":
|
|
270
|
+
case "Temporal.PlainDateTime":
|
|
271
|
+
case "Temporal.PlainMonthDay":
|
|
272
|
+
case "Temporal.PlainYearMonth":
|
|
273
|
+
case "Temporal.ZonedDateTime":
|
|
274
|
+
return `${type}.from(${stringify_string(thing.toString())})`;
|
|
275
|
+
default:
|
|
276
|
+
const keys2 = Object.keys(thing);
|
|
277
|
+
const obj = keys2.map((key) => `${safe_key(key)}:${stringify2(thing[key])}`).join(",");
|
|
278
|
+
const proto = Object.getPrototypeOf(thing);
|
|
279
|
+
if (proto === null) {
|
|
280
|
+
return keys2.length > 0 ? `{${obj},__proto__:null}` : `{__proto__:null}`;
|
|
281
|
+
}
|
|
282
|
+
return `{${obj}}`;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
const str = stringify2(value);
|
|
286
|
+
if (names.size) {
|
|
287
|
+
const params = [];
|
|
288
|
+
const statements = [];
|
|
289
|
+
const values = [];
|
|
290
|
+
names.forEach((name, thing) => {
|
|
291
|
+
params.push(name);
|
|
292
|
+
if (custom.has(thing)) {
|
|
293
|
+
values.push(
|
|
294
|
+
/** @type {string} */
|
|
295
|
+
custom.get(thing)
|
|
296
|
+
);
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
if (is_primitive(thing)) {
|
|
300
|
+
values.push(stringify_primitive(thing));
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
const type = get_type(thing);
|
|
304
|
+
switch (type) {
|
|
305
|
+
case "Number":
|
|
306
|
+
case "String":
|
|
307
|
+
case "Boolean":
|
|
308
|
+
values.push(`Object(${stringify2(thing.valueOf())})`);
|
|
309
|
+
break;
|
|
310
|
+
case "RegExp":
|
|
311
|
+
values.push(thing.toString());
|
|
312
|
+
break;
|
|
313
|
+
case "Date":
|
|
314
|
+
values.push(`new Date(${thing.getTime()})`);
|
|
315
|
+
break;
|
|
316
|
+
case "Array":
|
|
317
|
+
values.push(`Array(${thing.length})`);
|
|
318
|
+
thing.forEach((v, i) => {
|
|
319
|
+
statements.push(`${name}[${i}]=${stringify2(v)}`);
|
|
320
|
+
});
|
|
321
|
+
break;
|
|
322
|
+
case "Set":
|
|
323
|
+
values.push(`new Set`);
|
|
324
|
+
statements.push(
|
|
325
|
+
`${name}.${Array.from(thing).map((v) => `add(${stringify2(v)})`).join(".")}`
|
|
326
|
+
);
|
|
327
|
+
break;
|
|
328
|
+
case "Map":
|
|
329
|
+
values.push(`new Map`);
|
|
330
|
+
statements.push(
|
|
331
|
+
`${name}.${Array.from(thing).map(([k, v]) => `set(${stringify2(k)}, ${stringify2(v)})`).join(".")}`
|
|
332
|
+
);
|
|
333
|
+
break;
|
|
334
|
+
case "ArrayBuffer":
|
|
335
|
+
values.push(
|
|
336
|
+
`new Uint8Array([${new Uint8Array(thing).join(",")}]).buffer`
|
|
337
|
+
);
|
|
338
|
+
break;
|
|
339
|
+
default:
|
|
340
|
+
values.push(
|
|
341
|
+
Object.getPrototypeOf(thing) === null ? "Object.create(null)" : "{}"
|
|
342
|
+
);
|
|
343
|
+
Object.keys(thing).forEach((key) => {
|
|
344
|
+
statements.push(
|
|
345
|
+
`${name}${safe_prop(key)}=${stringify2(thing[key])}`
|
|
346
|
+
);
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
statements.push(`return ${str}`);
|
|
351
|
+
return `(function(${params.join(",")}){${statements.join(
|
|
352
|
+
";"
|
|
353
|
+
)}}(${values.join(",")}))`;
|
|
354
|
+
} else {
|
|
355
|
+
return str;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function get_name(num) {
|
|
359
|
+
let name = "";
|
|
360
|
+
do {
|
|
361
|
+
name = chars[num % chars.length] + name;
|
|
362
|
+
num = ~~(num / chars.length) - 1;
|
|
363
|
+
} while (num >= 0);
|
|
364
|
+
return reserved.test(name) ? `${name}0` : name;
|
|
365
|
+
}
|
|
366
|
+
function escape_unsafe_char(c) {
|
|
367
|
+
return escaped[c] || c;
|
|
368
|
+
}
|
|
369
|
+
function escape_unsafe_chars(str) {
|
|
370
|
+
return str.replace(unsafe_chars, escape_unsafe_char);
|
|
371
|
+
}
|
|
372
|
+
function safe_key(key) {
|
|
373
|
+
return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escape_unsafe_chars(JSON.stringify(key));
|
|
374
|
+
}
|
|
375
|
+
function safe_prop(key) {
|
|
376
|
+
return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? `.${key}` : `[${escape_unsafe_chars(JSON.stringify(key))}]`;
|
|
377
|
+
}
|
|
378
|
+
function stringify_primitive(thing) {
|
|
379
|
+
if (typeof thing === "string") return stringify_string(thing);
|
|
380
|
+
if (thing === void 0) return "void 0";
|
|
381
|
+
if (thing === 0 && 1 / thing < 0) return "-0";
|
|
382
|
+
const str = String(thing);
|
|
383
|
+
if (typeof thing === "number") return str.replace(/^(-)?0\./, "$1.");
|
|
384
|
+
if (typeof thing === "bigint") return thing + "n";
|
|
385
|
+
return str;
|
|
386
|
+
}
|
|
3
387
|
const DERIVED = 1 << 1;
|
|
4
388
|
const EFFECT = 1 << 2;
|
|
5
389
|
const RENDER_EFFECT = 1 << 3;
|
|
@@ -453,16 +837,17 @@ class Renderer {
|
|
|
453
837
|
* @param {Record<string, boolean> | undefined} [classes]
|
|
454
838
|
* @param {Record<string, string> | undefined} [styles]
|
|
455
839
|
* @param {number | undefined} [flags]
|
|
840
|
+
* @param {boolean | undefined} [is_rich]
|
|
456
841
|
* @returns {void}
|
|
457
842
|
*/
|
|
458
|
-
select(attrs, fn, css_hash, classes, styles, flags) {
|
|
843
|
+
select(attrs, fn, css_hash, classes, styles, flags, is_rich) {
|
|
459
844
|
const { value, ...select_attrs } = attrs;
|
|
460
845
|
this.push(`<select${attributes(select_attrs, css_hash, classes, styles, flags)}>`);
|
|
461
846
|
this.child((renderer) => {
|
|
462
847
|
renderer.local.select_value = value;
|
|
463
848
|
fn(renderer);
|
|
464
849
|
});
|
|
465
|
-
this.push("</select
|
|
850
|
+
this.push(`${is_rich ? "<!>" : ""}</select>`);
|
|
466
851
|
}
|
|
467
852
|
/**
|
|
468
853
|
* @param {Record<string, any>} attrs
|
|
@@ -471,8 +856,9 @@ class Renderer {
|
|
|
471
856
|
* @param {Record<string, boolean> | undefined} [classes]
|
|
472
857
|
* @param {Record<string, string> | undefined} [styles]
|
|
473
858
|
* @param {number | undefined} [flags]
|
|
859
|
+
* @param {boolean | undefined} [is_rich]
|
|
474
860
|
*/
|
|
475
|
-
option(attrs, body, css_hash, classes, styles, flags) {
|
|
861
|
+
option(attrs, body, css_hash, classes, styles, flags, is_rich) {
|
|
476
862
|
this.#out.push(`<option${attributes(attrs, css_hash, classes, styles, flags)}`);
|
|
477
863
|
const close = (renderer, value, { head: head2, body: body2 }) => {
|
|
478
864
|
if ("value" in attrs) {
|
|
@@ -481,7 +867,7 @@ class Renderer {
|
|
|
481
867
|
if (value === this.local.select_value) {
|
|
482
868
|
renderer.#out.push(" selected");
|
|
483
869
|
}
|
|
484
|
-
renderer.#out.push(`>${body2}</option>`);
|
|
870
|
+
renderer.#out.push(`>${body2}${is_rich ? "<!>" : ""}</option>`);
|
|
485
871
|
if (head2) {
|
|
486
872
|
renderer.head((child) => child.push(head2));
|
|
487
873
|
}
|
|
@@ -825,7 +1211,7 @@ class Renderer {
|
|
|
825
1211
|
has_promises = true;
|
|
826
1212
|
for (const p of v.promises) await p;
|
|
827
1213
|
}
|
|
828
|
-
entries.push(`[${
|
|
1214
|
+
entries.push(`[${uneval(k)},${v.serialized}]`);
|
|
829
1215
|
}
|
|
830
1216
|
let prelude = `const h = (window.__svelte ??= {}).h ??= new Map();`;
|
|
831
1217
|
if (has_promises) {
|
|
@@ -996,5 +1382,5 @@ function props_id(renderer) {
|
|
|
996
1382
|
return uid;
|
|
997
1383
|
}
|
|
998
1384
|
|
|
999
|
-
export { ASYNC as A,
|
|
1000
|
-
//# sourceMappingURL=
|
|
1385
|
+
export { ASYNC as A, BLOCK_EFFECT as B, CONNECTED as C, DevalueError as D, ERROR_VALUE as E, HYDRATION_END as F, HYDRATION_START_ELSE as G, HYDRATION_START as H, INERT as I, USER_EFFECT as J, uneval as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, head as N, ensure_array_like as O, attr_class as P, attr_style as Q, ROOT_EFFECT as R, STATE_SYMBOL as S, bind_props as T, UNINITIALIZED as U, attr as V, WAS_MARKED as W, stringify as X, props_id as Y, clsx as Z, spread_props as _, is_plain_object as a, stringify_string as b, COMMENT_NODE as c, HYDRATION_ERROR as d, enumerable_symbols as e, DERIVED as f, get_type as g, DIRTY as h, is_primitive as i, CLEAN as j, EFFECT as k, is_passive_event as l, BRANCH_EFFECT as m, RENDER_EFFECT as n, MANAGED_EFFECT as o, DESTROYED as p, HEAD_EFFECT as q, render as r, stringify_key as s, REACTION_IS_UPDATING as t, EFFECT_RAN as u, EFFECT_PRESERVED as v, EFFECT_TRANSPARENT as w, BOUNDARY_EFFECT as x, EAGER_EFFECT as y, STALE_REACTION as z };
|
|
1386
|
+
//# sourceMappingURL=index-Z8eOP0z5.js.map
|