import{Q as e,X as t,et as n,tt as r}from"./implicit-tags-BJP8ZwY0.js";function i(e){return{effectiveRevalidate:e.cacheControlMeta?.revalidate??e.revalidateSeconds,effectiveExpire:e.cacheControlMeta===void 0?void 0:e.cacheControlMeta.expire??e.expireSeconds}}function a(r,i,a,o){if(i===`app-route`){if(a===0)return t;if(a===1/0)return e}return n(r,a,o)}function o(e){if(e.cacheState===`MISS`)return{disposition:`MISS`,scheduleRegeneration:!1,cacheControl:``};let{effectiveRevalidate:t,effectiveExpire:n}=i(e);return e.cacheState===`HIT`?{disposition:`HIT`,scheduleRegeneration:!1,cacheControl:a(`HIT`,e.kind,t,n)}:{disposition:`STALE`,scheduleRegeneration:!0,cacheControl:a(`STALE`,e.kind,t,n)}}function s(n,i){return n===0?t:n===1/0?e:r(n,i)}export{o as n,s as t};