Files
student_management_system/deploy/site/_next/static/chunks/app-route-prefetch-policy-CwEcW8i2.js
T
2026-09-21 17:30:02 +08:00

1 line
937 B
JavaScript

import{n as e,r as t,t as n}from"./index-D33mATlf.js";var r=``,i=n();function a(e){let n;try{n=new URL(e,window.location.href)}catch{return null}return n.origin===window.location.origin?`${t(n.pathname,r)}${n.search}`:null}var o={cacheForNavigation:!1,fallbackTtl:`static`,honorDynamicStaleTime:!0,prefetchShellFirst:!1,shouldPrefetch:!1};function s(t){let n=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!n)return o;let r=a(t);if(r===null)return o;let s=e(r,n,i);if(!s)return o;let c=s.route,l=new URL(r,`http://vinext.local`).search!==``;return{cacheForNavigation:!l&&!c.canPrefetchLoadingShell&&c.requiresDynamicNavigationRequest!==!0,fallbackTtl:`static`,honorDynamicStaleTime:!0,prefetchShellFirst:l||!c.isDynamic,shouldPrefetch:!0}}function c(){return{cacheForNavigation:!0,fallbackTtl:`static`,honorDynamicStaleTime:!1,prefetchShellFirst:!0,shouldPrefetch:!0}}export{s as resolveAutoAppRoutePrefetch,c as resolveFullAppRoutePrefetch};