PageSourceSearch

https://minimaxh3.one/assets/BaseLink-DpWShvEo.js

js minimaxh3.one collected 2026-10-08 12:46:19 UTC 17,711 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/router-Cofw_Kth.js","assets/rolldown-runtime-QTnfLwEv.js","assets/index-CO4Kc7ZC.js","assets/framework-DJH1pfSr.js","assets/url-utils-BQKFb685.js"])))=>i.map(i=>d[i]);
2import{n as e,r as t}from"./rolldown-runtime-QTnfLwEv.js";import{a as n,d as r,i,o as a,r as o,s,t as c,u as l}from"./url-utils-BQKFb685.js";import{i as u,r as d}from"./framework-DJH1pfSr.js";import{_ as f,a as p,b as m,c as h,d as g,f as _,g as v,h as ee,i as te,l as y,m as b,o as x,p as S,t as ne,u as re,y as ie}from"./index-CO4Kc7ZC.js";import{i as C}from"./react-DlbkFqaW.js";function w(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function T(e){let t=w();for(let n of e){let e=n.patternParts;if(e.length===0){t.route===null&&(t.route=n);continue}let r=t;for(let t=0;t<e.length;t++){let i=e[t];if(i.endsWith(`+`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.catchAllChild===null&&(r.catchAllChild={paramName:a,route:n});break}if(i.endsWith(`*`)&&i.startsWith(`:`)){if(t!==e.length-1)break;let a=i.slice(1,-1);r.optionalCatchAllChild===null&&(r.optionalCatchAllChild={paramName:a,route:n});break}if(i.startsWith(`:`)){let a=i.slice(1);r.dynamicChild===null&&(r.dynamicChild={paramName:a,node:w()}),r=r.dynamicChild.node,t===e.length-1&&r.route===null&&(r.route=n);continue}let a=r.staticChildren.get(i);a||(a=w(),r.staticChildren.set(i,a)),r=a,t===e.length-1&&r.route===null&&(r.route=n)}}return t}function E(e,t){let n=O(e,t,0);return n&&te(n.params),n}function D(){return Object.create(null)}function O(e,t,n){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:D()}:{route:e.route,params:D()};let r=t[n],i=e.staticChildren.get(r);if(i){let e=O(i,t,n+1);if(e!==null)return e}if(e.dynamicChild!==null){let i=O(e.dynamicChild.node,t,n+1);if(i!==null)return i.params[e.dynamicChild.paramName]=r,i}if(e.catchAllChild!==null){let r=t.slice(n),i=D();return i[e.catchAllChild.paramName]=r,{route:e.catchAllChild.route,params:i}}if(e.optionalCatchAllChild!==null){let r=t.slice(n),i=D();return i[e.optionalCatchAllChild.paramName]=r,{route:e.optionalCatchAllChild.route,params:i}}return null}function k(){return new WeakMap}function A(e,t){let n=e.get(t);return n||(n=T(t),e.set(t,n)),n}function j(e,t,n){let r=e.split(`?`)[0],i=r===`/`?`/`:r.replace(/\/$/,``);i=p(i);let a=i.split(`/`).filter(Boolean);return E(A(n,t),a)}function M(e){if(e)return e.split(`,`,1)[0]?.trim().split(`:`,1)[0]?.toLowerCase()||void 0}function N(e,t,n){if(!e?.length)return;let r=M(t),i=n?.toLowerCase();for(let t of e)if(r===M(t.domain)||i===t.defaultLocale.toLowerCase()||t.locales?.some(e=>e.toLowerCase()===i))return t}function P(e,t,n){let r=t.toLowerCase();if(r===n.toLowerCase())return e;let i=e.startsWith(`/`)?e:`/${e}`,a=(i.split(/[?#]/,1)[0]??i).toLowerCase(),o=`/${r}`;return a===o||a.startsWith(`${o}/`)?e.startsWith(`/`)?e:i:`/${t}${i}`}function F(e,t=``){return t?t+e:e}function I(e,t,{basePath:n,currentHostname:r,domainItems:i}){if(!i?.length)return;let a=N(i,void 0,t);if(!a)return;let o=N(i,r??void 0),s=P(e,t,a.defaultLocale);if(!(o&&M(o.domain)===M(a.domain)))return`${`http${a.http?``:`s`}://`}${a.domain}${F(s,n)}`}function ae(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0,configurable:!0})}function oe(e,t,n){if(Object.hasOwn(e,t)){let r=e[t];ae(e,t,Array.isArray(r)?r.concat(n):[r,n])}else ae(e,t,n)}function se(e){return typeof e==`string`?e:typeof e==`number`&&!isNaN(e)||typeof e==`boolean`?String(e):``}function ce(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e)){if(Array.isArray(r)){for(let e of r)t.append(n,se(e));continue}t.set(n,se(r))}return t}function le(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=n===-1?``:e.slice(n),a=r.indexOf(`?`),o=a===-1?r:r.slice(0,a),s=a===-1?``:r.slice(a+1),c=new URLSearchParams(s);for(let[e,n]of t)c.append(e,n);let l=c.toString();return`${o}${l?`?${l}`:``}${i}`}var ue=()=>globalThis.__VINEXT_DEFAULT_LOCALE__==null&&globalThis.__VINEXT_LOCALE__==null?null:{locale:globalThis.__VINEXT_LOCALE__,locales:globalThis.__VINEXT_LOCALES__,defaultLocale:globalThis.__VINEXT_DEFAULT_LOCALE__,domainLocales:globalThis.__VINEXT_DOMAIN_LOCALES__,hostname:globalThis.__VINEXT_HOSTNAME__};function L(){return ue()}
2function de(e){return e.nodeEnv===`production`&&e.prefetch!==!1&&!e.isDangerous}function fe(e){return e.nodeEnv!==`production`||e.isDangerous?!1:e.routerMode===`pages`||e.prefetch!==!1}function pe(e){let{href:t,basePath:n,currentOrigin:i}=e;if(!c(t))return t;if(i===void 0)return null;try{let e=new URL(i),a=t.startsWith(`//`)?new URL(t,e.origin):new URL(t);return a.origin===e.origin?n?l(a.pathname,n)?r(a.pathname,n)+a.search+a.hash:null:a.pathname+a.search+a.hash:null}catch{return null}}var R=t(u(),1),z=d(),me=(0,R.createContext)({pending:!1}),B=``,he=!1,ge=k();function _e(e){if(typeof e==`string`)return e;let t=e.pathname??`/`;if(e.query){let n=ce(e.query);t=le(t,n)}return t}function ve(e,t){return t||e===!1?`disabled`:e===!0?`full`:`auto`}function ye(e){if(typeof window>`u`)return null;let t;try{t=new URL(e,window.location.href)}catch{return null}return t.origin===window.location.origin?`${r(t.pathname,B)}${t.search}`:null}function be(){return typeof window<`u`&&typeof window.__VINEXT_RSC_NAVIGATE__==`function`?`app`:`pages`}function xe(e){if(typeof window>`u`)return!1;let t=window.__VINEXT_LINK_PREFETCH_ROUTES__;if(!t)return!1;let n=ye(e);if(n===null)return!1;let r=j(n,t,ge);return r?!r.route.isDynamic:!1}function V(e,t,r=`low`){if(typeof window>`u`)return;let i=pe({href:e,basePath:B,currentOrigin:window.location.origin});if(i==null)return;let a=n(i,window.location.href,B);(window.requestIdleCallback??(e=>setTimeout(e,100)))(()=>{(async()=>{if(typeof window.__VINEXT_RSC_NAVIGATE__==`function`){if(t===`auto`&&!xe(i))return;let e=x(),n=h(),o=b({interceptionContext:e});n&&o.set(m,n);let s=await ee(a,o),c=f.encodeCacheKey(s,e),l=y();if(l.has(c))return;l.add(c),g(s,fetch(s,{headers:o,credentials:`include`,priority:r,purpose:`prefetch`}),e,n)}else if(window.__NEXT_DATA__?.__vinext?.pageModuleUrl){let e=document.createElement(`link`);e.rel=`prefetch`,e.href=a,e.as=`document`,document.head.appendChild(e)}})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)})})}var H=null,U=new WeakMap,W=new Set;function Se(e,t){if(e.isVisible=t,t){if(W.add(e),e.routerMode===`pages`&&e.viewportPrefetched)return;V(e.href,e.mode,`low`),e.viewportPrefetched=!0}else W.delete(e)}function Ce(){typeof window>`u`||(window.__VINEXT_PING_VISIBLE_LINKS__=we)}function we(){for(let e of W)e.isVisible&&e.routerMode===`app`&&V(e.href,e.mode,`low`)}function Te(){return typeof window>`u`||typeof IntersectionObserver>`u`?null:H||(H=new IntersectionObserver(e=>{for(let t of e){let e=U.get(t.target);e&&Se(e,t.isIntersecting||t.intersectionRatio>0)}},{rootMargin:`250px`}),H)}function Ee(){return typeof window<`u`?window.__VINEXT_DEFAULT_LOCALE__:L()?.defaultLocale}function De(){return typeof window<`u`?window.__NEXT_DATA__?.domainLocales:L()?.domainLocales}function Oe(){return typeof window<`u`?window.location.hostname:L()?.hostname}function ke(e,t){return I(e,t,{basePath:B,currentHostname:Oe(),domainItems:De()})}function Ae(e,t){return t===!1||t===void 0||c(e)?e:ke(e,t)||P(e,t,Ee()??``)}var je=(0,R.forwardRef)(function({href:e,as:t,replace:r=!1,prefetch:l,scroll:u=!0,children:d,onClick:f,onMouseEnter:p,onTouchStart:m,onNavigate:h,unstable_dynamicOnHover:g=!1,..._},v){let{locale:ee,...te}=_,y=t??_e(e),b=typeof y==`string`&&ie(y),x=o(Ae(b?`/`:y,ee),he),S=o(s(x,B),he),[C,w]=(0,R.useState)(!1),T=(0,R.useRef)(!0);(0,R.useEffect)(()=>(T.current=!0,()=>{T.current=!1}),[]);let E=(0,R.useRef)(null),D=ve(l,b),O=de({nodeEnv:`production`,prefetch:l,isDangerous:b}),k=(0,R.useCallback)(e=>{E.current=e,typeof v==`function`?v(e):v&&(v.current=e)},[v]);(0,R.useEffect)(()=>{if(!O||typeof window>`u`)return;let e=E.current;if(!e)return;let t=pe({href:x,basePath:B,currentOrigin:window.location.origin});if(t==null)return;let n=Te();if(!n)return;Ce();let r={href:t,isVisible:!1,mode:D,routerMode:be(),viewportPrefetched:!1};return U.set(e,r),n.observe(e),()=>{n.unobserve(e),U.delete(e),W.delete(r)}},[O,D,x]);let A=(0,R.useCallback)(()=>{if(!fe({nodeEnv:`production`,prefetch:l,isDangerous:b,routerMode:be()}))return;let e=g?`full`:D;if(g&&E.current){let e=U.get(E.current);e&&(e.mode=`full`)}V(x,e,`high`)},[l,b,D,x,g]),j=(0,R.useCallback)(e=>{p?.(e),A()},[p,A]),M=(0,R.useCallback)(e=>{m?.(e),A()},[m,A]),N=async e=>{if(f&&f(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 t=x;if(c(y)){let e=a(y,B);if(e==null)return;t=e}e.preventDefault();let o=i(t,window.location.href,B),s=n(t,window.location.href,B);if(h)try{let e=new URL(s,window.location.origin),t=!1,n={url:e,preventDefault(){t=!0},get defaultPrevented(){return t}};if(h(n),n.defaultPrevented)return}catch{}if(typeof window.__VINEXT_RSC_NAVIGATE__==`function`){w(!0),R.startTransition(()=>{re(t,r?`replace`:`push`,u,!0).finally(()=>{T.current&&w(!1)})});return}else try{let e=(await ne(async()=>{let{default:e}=await import(`./router-Cofw_Kth.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4]))).default;r?await e.replace(o,void 0,{scroll:u}):await e.push(o,void 0,{scroll:u})}catch{r?window.history.replaceState({},``,s):window.history.pushState({},``,s),window.dispatchEvent(new PopStateEvent(`popstate`))}},{passHref:P,...F}=te,I=R.useMemo(()=>({pending:C}),[C]);return b?(0,z.jsx)(me.Provider,{value:I,children:(0,z.jsx)(`a`,{ref:k,onClick:f,onMouseEnter:j,onTouchStart:M,...F,children:d})}):(0,z.jsx)(me.Provider,{value:I,children:(0,z.jsx)(`a`,{ref:k,href:S,onClick:e=>{N(e)},onMouseEnter:j,onTouchStart:M,...F,children:d})})}),G=Symbol.for(`vinext.serverInsertedHTMLContext`);function Me(){if(typeof R.createContext!=`function`)return null;let e=globalThis;return e[G]||(e[G]=R.createContext(null)),e[G]??null}Me();var Ne=Symbol.for(`vinext.navigation.globalAccessors`),Pe=Symbol.for(`vinext.navigation.clientHydrationContext`);function Fe(){return globalThis[Ne]}function Ie(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,Pe))return e[Pe]??null}var Le=null,Re=()=>{if(typeof window<`u`){let e=Ie();return e===void 0?Le:e}let e=Fe();return e?e.getServerContext():Le},ze=Symbol.for(`vinext.navigation.pagesNavigationContextAccessor`);function Be(){let e=globalThis[ze];if(!e)return null;try{return e()}catch{return null}}var K=typeof window>`u`,Ve=Symbol.for(`vinext.clientNavigationState`);function q(){if(K)return null;let e=window;return e[Ve]??={listeners:new Set,cachedSearch:window.location.search,c
2achedReadonlySearchParams:new _(window.location.search),cachedPathname:r(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[Ve]}function He(){let e=q();if(e)for(let t of e.listeners)t()}function Ue(){return q()?.cachedPathname??`/`}function We(){let e=q();if(!e)return!1;let t=!1,n=r(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let i=window.location.search;return i!==e.cachedSearch&&(e.cachedSearch=i,e.cachedReadonlySearchParams=new _(i),t=!0),t}var J=Symbol.for(`vinext.clientNavigationRenderContext`);function Ge(){if(typeof R.createContext!=`function`)return null;let e=globalThis;return e[J]||(e[J]=R.createContext(null)),e[J]??null}function Ke(){let e=Ge();if(!e||typeof R.useContext!=`function`)return null;try{return R.useContext(e)}catch{return null}}function qe(e){let t=q();return t?(t.listeners.add(e),()=>{t.listeners.delete(e)}):()=>{}}function Je(){if(K){let e=Re();return e?e.pathname:Be()?.pathname??`/`}let e=Ke(),t=R.useSyncExternalStore(qe,Ue,()=>Re()?.pathname??Be()?.pathname??`/`);return e&&(q()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function Y(e,t){if(K)return;let n=q();if(!n)return;(e!==void 0||t?.releaseSnapshot===!0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=We();n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let i=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,i&&(He(),window.__VINEXT_PING_VISIBLE_LINKS__?.())}function Ye(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>{requestAnimationFrame(()=>{window.scrollTo(t,n)})}):requestAnimationFrame(()=>{window.scrollTo(t,n)})})}}
2function Xe(){if(!S||typeof R.useContext!=`function`)throw Error(`invariant expected app router to be mounted`);let e=R.useContext(S);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var Ze=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function Qe(e,t){throw new Ze(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t??``};${encodeURIComponent(e)}`)}function $e(e,t=`replace`){throw new Ze(`NEXT_REDIRECT:${e}`,`NEXT_REDIRECT;${t};${encodeURIComponent(e)};308`)}if(!K){let e=q();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,e=>{typeof window.__VINEXT_RSC_NAVIGATE__!=`function`&&(Y(),Ye(e.state))}),window.history.pushState=function(t,n,r){e.originalPushState.call(window.history,v(t,window.history.state),n,r),e.suppressUrlNotifyCount===0&&Y()},window.history.replaceState=function(t,n,r){e.originalReplaceState.call(window.history,v(t,window.history.state),n,r),e.suppressUrlNotifyCount===0&&Y()})}function et(e){return function(e){return typeof e==`object`?e.host==null&&e.hostname==null:!/^[a-z]+:/i.test(e)}(e)&&!function(e){let t=typeof e==`object`?e.pathname:e;return t!=null&&!t.startsWith(`/`)}(e)}function tt(e,t){return e.replace(RegExp(`^${t}`),``)||`/`}function nt(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t,n}function rt(e,t){return t===e||t.startsWith(`${e}/`)}function it(e,t,n){return typeof e==`string`?e:e[t]||n}function X(e){let t=function(){try{return{}._next_intl_trailing_slash===`true`}catch{return!1}}(),[n,...r]=e.split(`#`),i=r.join(`#`),a=n;if(a!==`/`){let e=a.endsWith(`/`);t&&!e?a+=`/`:!t&&e&&(a=a.slice(0,-1))}return i&&(a+=`#`+i),a}function at(e,t){let n=X(e),r=X(t);return ct(n).test(r)}function ot(e,t){return t.mode!==`never`&&t.prefixes?.[e]||st(e)}function st(e){return`/`+e}function ct(e){let t=e.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,`(?:/(.*))?`).replace(/\[\[(\.\.\.[^\]]+)\]\]/g,`(?:/(.*))?`).replace(/\[(\.\.\.[^\]]+)\]/g,`(.+)`).replace(/\[([^\]]+)\]/g,`([^/]+)`);return RegExp(`^${t}$`)}function Z(e){return e.includes(`[[...`)}function Q(e){return e.includes(`[...`)}function $(e){return e.includes(`[`)}function lt(e,t){let n=e.split(`/`),r=t.split(`/`),i=Math.max(n.length,r.length);for(let e=0;e<i;e++){let t=n[e],i=r[e];if(!t&&i)return-1;if(t&&!i)return 1;if(t||i){if(!$(t)&&$(i))return-1;if($(t)&&!$(i))return 1;if(!Q(t)&&Q(i))return-1;if(Q(t)&&!Q(i))return 1;if(!Z(t)&&Z(i))return-1;if(Z(t)&&!Z(i))return 1}}return 0}function ut(e){return e.sort(lt)}function dt(e){return typeof e.then==`function`}function ft(e){return typeof e==`string`?{pathname:e}:e}function pt(e){function t(e){return String(e)}let n=new URLSearchParams;for(let[r,i]of Object.entries(e))Array.isArray(i)?i.forEach((e=>{n.append(r,t(e))})):n.set(r,t(i));return`?`+n.toString()}function mt({pathname:e,locale:t,params:n,pathnames:r,query:i}){function a(e){let a=r[e],o;return a?(o=it(a,t,e),n&&Object.entries(n).forEach((([e,t])=>{let n,r;Array.isArray(t)?(n=`(\\[)?\\[...${e}\\](\\])?`,r=t.map((e=>String(e))).join(`/`)):(n=`\\[${e}\\]`,r=String(t)),o=o.replace(new RegExp(n,`g`),r)})),o=o.replace(/\[\[\.\.\..+\]\]/g,``),o=function(e){return new URL(e,`http://l`).pathname}(o)):o=e,o=X(o),i&&(o+=pt(i)),o}if(typeof e==`string`)return a(e);{let{pathname:t,...n}=e;return{...n,pathname:a(t)}}}function ht(e,t,n){let r=ut(Object.keys(n)),i=decodeURI(t);for(let t of r){let r=n[t];if(typeof r==`string`){if(at(r,i))return t}else if(at(it(r,e,t),i))return t}return t}function gt(e,t=window.location.pathname){return e===`/`?t:t.replace(e,``)}function _t(e,t,n,r){let{mode:i}=n.localePrefix,a;return r===void 0?et(e)&&(i===`always`?a=!0:i===`as-needed`&&(a=n.domains?!n.domains.some((e=>e.defaultLocale===t)):t!==n.defaultLocale)):a=r,a?nt(ot(t,n.localePrefix),e):e}function vt(e,t,n,r){if(!e||!(r!==n&&r!=null)||!t)return;let i=gt(t),a=i===``?`/`:i,{name:o,...s}=e;s.path||=a;let c=`${o}=${r};`;for(let[e,t]of Object.entries(s))c+=`${e===`maxAge`?`max-age`:e}`,typeof t!=`boolean`&&(c+=`=`+t),c+=`;`;document.cookie=c}var yt=e({default:()=>xt});function bt({href:e,locale:t,localeCookie:n,onClick:r,prefetch:i,...a},o){let s=C(),c=t!=null&&t!==s,l=Je();return c&&(i=!1),(0,z.jsx)(je,{ref:o,href:e,hrefLang:c?t:void 0,onClick:function(e){vt(n,l,s,t),r&&r(e)},prefetch:i,...a})}var xt=(0,R.forwardRef)(bt);export{I as C,P as S,Je as _,mt as a,le as b,ht as c,ot as d,rt as f,Qe as g,$e as h,ft as i,st as l,dt as m,xt as n,_t as o,tt as p,vt as r,pt as s,yt as t,et as u,Xe as v,ce as x,oe as y};

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.