import{M as e,_ as t}from"./cookie-serialize-CgV1qMZJ.js";import{ot as n}from"./implicit-tags-BJP8ZwY0.js";function r(t,r){if(!r)return;let i={};typeof r.revalidate==`number`&&Number.isFinite(r.revalidate)&&(i.revalidate=r.revalidate),typeof r.expire==`number`&&Number.isFinite(r.expire)&&(i.expire=r.expire);let a=n(r);a!==void 0&&(i.stale=a),!(i.revalidate===void 0&&i.expire===void 0&&i.stale===void 0)&&t.set(e,JSON.stringify(i))}function i(e,n){n.length>0&&e.set(t,n.join(`,`))}export{i as n,r as t};