PageSourceSearch

https://blog.starcrown.co.jp/_next/static/chunks/link-CPU0tT2G.js

js starcrown.co.jp collected 2026-10-06 08:09:21 UTC 13,872 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/index-COrhgLP3.js","_next/static/chunks/rolldown-runtime-hePW80VL.js","_next/static/chunks/framework-CgvwdT60.js","_next/static/chunks/record-BGze3w87.js","_next/static/chunks/headers-VfFNeIRO.js","_next/static/chunks/protocol-headers-De2985Ry.js","_next/static/chunks/app-elements-DHcpiQtq.js","_next/static/chunks/hash-B9TVtkv9.js","_next/static/chunks/navigation-errors-C078jkgP.js","_next/static/chunks/app-rsc-cache-busting-CioraQFW.js","_next/static/chunks/app-rsc-render-mode-fsLZfEO0.js","_next/static/chunks/deployment-id-omnKpZ2w.js"])))=>i.map(i=>d[i]);
2import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,r as n}from"./framework-CgvwdT60.js";import"./record-BGze3w87.js";import"./protocol-headers-De2985Ry.js";import"./deployment-id-omnKpZ2w.js";import{C as r,E as i,S as a,T as o,a as s,b as c,c as l,g as u,h as ee,i as te,l as ne,m as d,n as f,o as p,p as m,r as h,s as g,w as re,x as ie}from"./index-COrhgLP3.js";import{canAutoPrefetchFullAppRoute as ae,resolveAutoAppRoutePrefetch as oe,resolveFullAppRoutePrefetch as _}from"./app-route-prefetch-policy-BO2HnbDv.js";import{r as se,t as v}from"./query-DugiHe4Q.js";var y=e(t(),1),b=Symbol.for(`vinext.routerContext`),x=globalThis,ce=x[b]??(x[b]=(0,y.createContext)(null));function S({basePath:e,domainLocales:t,hostname:n}){return u(r(window.location.pathname,e),window.__VINEXT_LOCALES__)||(d(t,n??void 0)?.defaultLocale??window.__VINEXT_LOCALE__??window.__VINEXT_DEFAULT_LOCALE__)}function C(){return window.location?.pathname??`/`}function w(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function le(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function T(e){let{href:t,basePath:n,currentOrigin:i}=e;if(!s(t))return t;if(i===void 0)return null;try{let e=new URL(i),o=t.startsWith(`//`)?new URL(t,e.origin):new URL(t);return o.origin===e.origin?n?a(o.pathname,n)?r(o.pathname,n)+o.search+o.hash:null:o.pathname+o.search+o.hash:null}catch{return null}}var E=null,D=!1;function O(e){E&&E!==e&&E(!1),E=e,D=!0}function ue(e){E===e&&(E=null)}function k(){if(D){D=!1;return}E&&=(E(!1),null)}var A=n(),j=null,M=null;function de(){return M??=f(()=>import(`./index-COrhgLP3.js`).then(e=>e.t).then(e=>(j=e,e)),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))}var N=(0,y.createContext)({pending:!1});function P(){return(0,y.useContext)(N)}var F=0;function I(){F+=1,k()}i({notifyLinkNavigationStart:I});var L=``,R=!1;function z(e){if(typeof e==`string`)return e;let t=e.pathname??``;if(e.query){let n=se(e.query);t=v(t,n)}return e.hash&&(t+=e.hash.startsWith(`#`)?e.hash:`#${e.hash}`),t}function fe(e){return e}function B(e){let t=e.split(`?`),n=t.shift()??``,r=t.join(`?`);return n.replace(/\\/g,`/`).replace(/\/\/+/g,`/`)+(r?`?${r}`:``)}function pe(e){if(e.startsWith(`//`))return e;let t=e.match(/^[a-z][a-z0-9+.-]*:\/\//i),n=t?e.slice(t[0].length):e;if(!(n.split(`?`,1)[0]||``).match(/(\/\/|\\)/))return e;let r=C();console.error(`Invalid href '${e}' passed to next/router in page: '${r}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);let i=B(n);return(t?t[0]:``)+i}function me(e,t){return t||e===!1?`disabled`:e===!0?`full`:`auto`}function he(){return o()?`app`:`pages`}function V(e,t,n=`low`,r,i){let a=F,s=T({href:e,basePath:L,currentOrigin:window.location.origin});if(s==null)return;let c=g(s,window.location.href,L);g(r===void 0?s:T({href:r,basePath:L,currentOrigin:window.location.origin})??s,window.location.href,L);let l=new URL(c,window.location.href);if(l.origin===window.location.origin&&l.pathname===window.location.pathname&&l.search===window.location.search||t===`auto`&&n===`low`&&l.origin===window.location.origin&&l.pathname===window.location.pathname&&l.search!==window.location.search&&l.hash!==``)return;let u=()=>{(async()=>{if(o()){if(te(window.navigator?.userAgent??``))return;let[e,{AppElementsWire:r},i,{APP_RSC_RENDER_MODE_PREFETCH_DYNAMIC_SHELL:o,APP_RSC_RENDER_MODE_PREFETCH_LOADING_SHELL:l},u,ee]=await Promise.all([de(),f(()=>import(`./app-elements-DHcpiQtq.js`).then(e=>e.t),__vite__mapDeps([6,1,2,3,7])),f(()=>import(`./app-rsc-cache-busting-CioraQFW.js`).then(e=>e.r),__vite__mapDeps([9,1,4,5,7,10,11])),f(()=>import(`./app-rsc-render-mode-fsLZfEO0.js`).then(e=>e.t),__vite__mapDeps([10,1])),f(()=>import(`./headers-VfFNeIRO.js`).then(e=>e.y),__vite__mapDeps([4,1,5])),null]);if(a!==F)return;let{getPrefetchInterceptionContext:ne,getPrefetchCache:d,getPrefetchedUrls:p,getMountedSlotsHeader:m,createAppPrefetchRequestHeaders:g,discardLearningOnlyPrefetchCacheEntry:re,fetchRouteTreeGatedPrefetch:ie,hasFreshLearningOnlyPrefetchCacheEntry:ae,hasSearchAgnosticPrefetchShellForRoute:se,hasPrefetchCacheEntryForNavigation:v,prefetchRscResponse:y,prepareNavigationPrefetchSnapshot:b,DYNAMIC_NAVIGATION_CACHE_TTL:x,PREFETCH_CACHE_TTL:ce}=e,{createRscRequestUrl:S}=i,{NEXT_ROUTER_PREFETCH_HEADER:C,NEXT_ROUTER_SEGMENT_PREFETCH_HEADER:w,VINEXT_MOUNTED_SLOTS_HEADER:le}=u,T=t===`auto`?oe(s):_();if(!T.shouldPrefetch)return;let E=ne(c),D=m(),O=!T.cacheForNavigation,ue=new URL(c,window.location.href).search!==``,k=t===`auto`&&O&&ue,A=k&&se(await S(c,new Headers),E,D),j=g({interceptionContext:E,fetchPriority:n,prefetchKind:t===`full`?`full`:`auto`,renderMode:O?A?l:k?o:l:void 0});D&&j.set(le,D);let M=O||t===`auto`,N=T.requiresRouteTreePrefetch===!0;N&&t===`auto`&&T.cacheForNavigation?(j.set(C,`1`),j.set(w,`/__PAGE__`)):M&&(j.set(C,`1`),j.set(w,`1`));let P=await S(c,j),I=[],L=r.encodeCacheKey(P,E),R=p();if(T.cacheForNavigation&&re(P,E),!T.cacheForNavigation&&ae(P,E))return;let z=()=>h(e=>fetch(P,{headers:j,credentials:`include`,priority:n,signal:e,purpose:`prefetch`}),n),fe=async()=>{let e=g({interceptionContext:E,fetchPriority:n,renderMode:l});e.set(C,`1`),e.set(w,`1`),D&&e.set(le,D);let t=await S(c,e),i=r.encodeCacheKey(t,E),a=d(),o=a.get(i);o===void 0&&(p().add(i),y(t,h(r=>fetch(t,{headers:e,credentials:`include`,priority:n,signal:r,purpose:`prefetch`}),n),E,D,void 0,{cacheForNavigation:!1,optimisticRouteShell:!0,prefetchKind:`loading-shell`}),o=a.get(i)),await o?.pending?.catch(()=>{})},B=async()=>{let e=g({interceptionContext:E,fetchPriority:n,renderMode:l});e.set(C,`1`),e.set(w,`1`),D&&e.set(le,D);let t=await S(c,e);return fetch(t,{method:`HEAD`,headers:e,credentials:`include`,priority:n,purpose:`prefetch`})},pe=T.cacheForNavigation&&v(P,E,D);if(pe||T.cacheForNavigation&&v(P,E,D,{additionalRscUrls:I})){!pe&&!R.has(L)&&I.length>0&&T.prefetchShellFirst&&D===null&&(R.add(L),B().then(e=>e.arrayBuffer()).catch(()=>{}));return}R.add(L);let me=N&&t===`auto`&&T.prefetchShellFirst,he=t===`full`&&ue&&T.prefetchShellFirst&&D===null,V=(t===`full-after-shell`||he)&&T.prefetchShellFirst,ge=T.cacheForNavigation&&(me||V)?(async()=>V?(await fe(),z()):ie({fetchFullRscPayload:z,fetchRouteTree:(e,t)=>
2h(r=>fetch(e,{headers:t,credentials:`include`,priority:n,signal:r,purpose:`prefetch`}),n),fullHref:c,headers:j,interceptionContext:E,mountedSlotsHeader:D}))():z();t===`full`&&T.cacheForNavigation&&T.prefetchShellFirst&&D===null&&!he&&fe(),y(P,ge,E,D,void 0,{cacheForNavigation:T.cacheForNavigation,fallbackTtlMs:T.fallbackTtl===`dynamic`?x:ce,honorDynamicStaleTime:T.honorDynamicStaleTime,optimisticRouteShell:O,prefetchKind:O?`loading-shell`:`navigation`,prepareSnapshot:T.cacheForNavigation?b:void 0,searchAgnosticShell:k&&!A})}})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)})};if(n===`high`||o()){u();return}(window.requestIdleCallback??(e=>setTimeout(e,100)))(u)}async function ge(e){if(!o())return;let[{getPrefetchCache:t},{stripRscCacheBustingSearchParam:n,stripRscSuffix:r}]=await Promise.all([de(),f(()=>import(`./app-rsc-cache-busting-CioraQFW.js`).then(e=>e.r),__vite__mapDeps([9,1,4,5,7,10,11]))]),i;try{i=new URL(g(e,window.location.href,L),window.location.href)}catch{return}for(let[e,a]of t()){if(a.optimisticRouteShell===!0||a.prefetchKind===`route-tree`)continue;let[t]=e.split(`\0`,1),o;try{o=new URL(t,window.location.href)}catch{continue}n(o),r(o.pathname)===i.pathname&&o.search===i.search&&(a.cacheForNavigation=!0)}}var H=null,U=new WeakMap,W=new Set,G=[],K=!1;function q(){for(K=!1;;){let e=G.pop();if(!e)return;e.queuedViewportPrefetch=!1,!(!e.isVisible||e.routerMode!==`app`)&&V(e.href,e.mode,`low`,e.pagesRouteHref)}}function J(e){e.queuedViewportPrefetch||(e.queuedViewportPrefetch=!0,G.push(e),!K&&(K=!0,queueMicrotask(q)))}function _e(e,t){if(e.isVisible=t,t){if(W.add(e),e.routerMode===`pages`&&e.viewportPrefetched)return;e.routerMode===`app`?J(e):V(e.href,e.mode,`low`,e.pagesRouteHref,e.locale),e.viewportPrefetched=!0}else W.delete(e)}function ve(){i({pingVisibleLinks:Y})}function Y(){for(let e of W)e.isVisible&&e.routerMode===`app`&&J(e)}function ye(){return typeof IntersectionObserver>`u`?null:H||(H=new IntersectionObserver(e=>{for(let t of e){let e=U.get(t.target);e&&_e(e,t.isIntersecting||t.intersectionRatio>0)}},{rootMargin:`250px`}),H)}function X(){return window.__VINEXT_DEFAULT_LOCALE__}function be(){return S({basePath:L,domainLocales:Z(),hostname:Q()})}function Z(){return window.__NEXT_DATA__?.domainLocales}function Q(){return window.location.hostname}function $(e,t){return ee(e,t,{basePath:L,currentHostname:Q(),domainItems:Z()})}function xe(e,t){if(e!==`/`&&!e.startsWith(`/?`)&&!e.startsWith(`/#`))return;let n;try{n=new URL(e,`http://vinext.local`)}catch{return}if(n.origin===`http://vinext.local`&&n.pathname===`/`)return`/${t}${n.search}${n.hash}`}function Se(e,t){if(t===!1)return e;let n=t??be();if(n===void 0||s(e))return e;let r=$(e,n);if(r)return r;let i=X()??``;if(n.toLowerCase()===i.toLowerCase()){let t=xe(e,n);if(t)return t}return m(e,n,i)}var Ce=(0,y.forwardRef)(function({href:e,as:t,replace:n=!1,prefetch:r,scroll:i=!0,shallow:a=!1,children:o,onClick:u,onMouseEnter:ee,onTouchStart:te,onNavigate:d,unstable_dynamicOnHover:f=!1,legacyBehavior:m=!1,passHref:h=!1,transitionTypes:ae,...oe},_){(0,y.useContext)(ce);let se=t===void 0?void 0:z(t),v=z(e),{locale:b,...x}=oe,S=o;m&&(typeof o==`string`||typeof o==`number`)&&(S=y.createElement(`a`,null,o)),s(v)&&(v.startsWith(`//`)||l(v,L));let C=se??void 0??v,E=typeof C==`string`&&C.startsWith(`#`)&&!re()?.functions.navigate?fe(C):C,D=typeof E==`string`?pe(E):E,k=typeof D==`string`&&c(D),M=p(Se(k?`/`:D,b),R),P=M,F=p(ne(M,L),R),[I,B]=(0,y.useState)(!1),H=(0,y.useRef)(!0),G=(0,y.useRef)(null),K=(0,y.useRef)(null);K.current===null&&(K.current=e=>{H.current&&B(e)}),(0,y.useEffect)(()=>{H.current=!0;let e=K.current;return()=>{H.current=!1,G.current?.(),G.current=null,e&&ue(e)}},[]);let q=(0,y.useRef)(null),J=he(),_e=J===`pages`&&a,Y=!_e&&r,X=me(Y,k),be=w({nodeEnv:`production`,prefetch:Y,isDangerous:k}),Z=(0,y.useCallback)(e=>{q.current=e,typeof _==`function`?_(e):_&&(_.current=e)},[_]);(0,y.useEffect)(()=>{if(!be)return;let e=q.current;if(!e)return;let t=T({href:M,basePath:L,currentOrigin:window.location.origin});if(t==null)return;let n=ye();if(!n)return;ve();let r={href:t,isVisible:!1,locale:b,mode:X,pagesRouteHref:P===M?void 0:T({href:P,basePath:L,currentOrigin:window.location.origin})??void 0,queuedViewportPrefetch:!1,routerMode:J,viewportPrefetched:!1};return U.set(e,r),n.observe(e),()=>{n.unobserve(e),U.delete(e),W.delete(r),r.isVisible=!1}},[be,X,J,M,P,b]);let Q=(0,y.useCallback)(()=>
2{if(_e||!le({nodeEnv:`production`,prefetch:Y,isDangerous:k,routerMode:J}))return;let e=f?`full-after-shell`:X;if(f&&q.current){let e=U.get(q.current);e&&(e.mode=`full-after-shell`),ge(M)}V(M,e,`high`,P===M?void 0:P,b)},[Y,k,_e,X,J,M,P,b,f]),$=(0,y.useCallback)(()=>{if(J!==`pages`||typeof window.requestAnimationFrame!=`function`){Q();return}G.current?.();let e=window.requestAnimationFrame(()=>{G.current=null,Q()});G.current=()=>window.cancelAnimationFrame(e)},[Q,J]),xe=(0,y.useCallback)(e=>{ee?.(e),$()},[ee,$]),Ce=(0,y.useCallback)(e=>{te?.(e),$()},[te,$]),we=async(e,t={})=>{if(G.current?.(),G.current=null,!t.skipLinkOnClick&&u&&u(e),e.defaultPrevented||e.currentTarget.hasAttribute(`download`)||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.currentTarget.target&&e.currentTarget.target!==`_self`)return;let r=M;if(s(D)){let t=l(D,L);if(t==null){n&&(e.preventDefault(),window.location.replace(D));return}r=t}e.preventDefault();let a=!!re()?.functions.navigate,o=g(r,window.location.href,L);if(d)try{let e=new URL(o,window.location.origin),t=!1,n={url:e,preventDefault(){t=!0},get defaultPrevented(){return t}};if(d(n),n.defaultPrevented)return}catch{}if(a){let{navigateClientSide:e}=j??await de(),t=K.current;t&&O(t),B(!0),y.startTransition(()=>{e(r,n?`replace`:`push`,i,!1).finally(()=>{H.current&&B(!1),t&&ue(t)})});return}n?window.location.replace(o):window.location.assign(o)},Te=x,Ee=y.useMemo(()=>({pending:I}),[I]);if(k){let e=e=>{u&&u(e),ie()};if(m){let e=y.Children.only(S),t=e.props.onClick,n=e.props.ref;return(0,A.jsx)(N.Provider,{value:Ee,children:y.cloneElement(e,{ref:e=>{q.current=e,typeof n==`function`?n(e):n&&(n.current=e)},onClick:e=>{t&&t(e),ie()}})})}return(0,A.jsx)(N.Provider,{value:Ee,children:(0,A.jsx)(`a`,{ref:Z,onClick:e,onMouseEnter:xe,onTouchStart:Ce,...Te,children:S})})}if(m){let e=y.Children.only(S),t=e.props,n=e.type===`a`&&`href`in t,r=h||e.type===`a`&&!n,i=t.onClick,a=t.onMouseEnter,o=t.onTouchStart,s=t.ref,c={ref:e=>{q.current=e,typeof s==`function`?s(e):s&&(s.current=e)},onClick:e=>{if(i&&i(e),!e.defaultPrevented)return we(e,{skipLinkOnClick:!0})},onMouseEnter:e=>{a&&a(e),Q()},onTouchStart:e=>{o&&o(e),Q()}};return r&&(c.href=F),(0,A.jsx)(N.Provider,{value:Ee,children:y.cloneElement(e,c)})}return(0,A.jsx)(N.Provider,{value:Ee,children:(0,A.jsx)(`a`,{ref:Z,href:F,onClick:we,onMouseEnter:xe,onTouchStart:Ce,...Te,children:S})})});export{ae as canAutoPrefetchFullAppRoute,Ce as default,oe as resolveAutoAppRoutePrefetch,me as resolveLinkPrefetchMode,P as useLinkStatus};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.