PageSourceSearch

https://maxroll.gg/assets/surface-catalogue-BGVScTWT.js

js maxroll.gg collected 2026-10-02 15:17:07 UTC 14,189 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/fixture-alpha-listing-etpH4jmz-CCn5eEVL.js","assets/index-D8-MGHw6.js","assets/jsx-runtime-CDnd_NX6.js","assets/_text-presentation-0WnCL5qY-CVXKlEsE.js","assets/onimusha-way-of-the-sword-listing-DvS145qr-D10havoy.js","assets/_functions-CFfsuke8-DMWW3k04.js","assets/beast-of-reincarnation-tooltip-BoixFJs3-CaoRm_bq.js","assets/fixture-alpha-tooltip-BsVx4rtH-DoHMZIsx.js","assets/fixture-beta-tooltip-D2clw-yo-BiDlFGiK.js","assets/onimusha-way-of-the-sword-tooltip-BftbvLtV-BVc1jHMI.js","assets/index-BeXcFtdt.js","assets/index--4zewOuh.js"])))=>i.map(i=>d[i]);
2import{_ as g}from"./preload-helper-D7HrI6pR.js";import{t as ie,n as oe,m as F,o as ce,p as de,q as ue,v as le,w as Q,x as $,y as fe,z as me,A as H,B as pe,P as ge,S as ye,C as Se,D as he,E as Ee,F as _e,H as Re,I as Ae,J as Te}from"./index-D8-MGHw6.js";import{r as c,j as y}from"./jsx-runtime-CDnd_NX6.js";function De(e){return e}function L(e,t,n){var l,d;if(typeof t!="object"||t===null)return;const s=e.getMutationCache(),a=e.getQueryCache(),r=((l=n==null?void 0:n.defaultOptions)==null?void 0:l.deserializeData)??((d=e.getDefaultOptions().hydrate)==null?void 0:d.deserializeData)??De,i=t.mutations||[],o=t.queries||[];i.forEach(({state:f,...u})=>{var p,h;s.build(e,{...(p=e.getDefaultOptions().hydrate)==null?void 0:p.mutations,...(h=n==null?void 0:n.defaultOptions)==null?void 0:h.mutations,...u},f)}),o.forEach(({queryKey:f,state:u,queryHash:p,meta:h,promise:R,dehydratedAt:A})=>{var b,G;const T=R?ie(R):void 0,I=u.data===void 0?T==null?void 0:T.data:u.data,P=I===void 0?I:r(I);let m=a.get(p);const ne=(m==null?void 0:m.state.status)==="pending",se=(m==null?void 0:m.state.fetchStatus)==="fetching";if(m){const ae=T&&A!==void 0&&A>m.state.dataUpdatedAt;if(u.dataUpdatedAt>m.state.dataUpdatedAt||ae){const{fetchStatus:Nt,...re}=u;m.setState({...re,data:P})}}else m=a.build(e,{...(b=e.getDefaultOptions().hydrate)==null?void 0:b.queries,...(G=n==null?void 0:n.defaultOptions)==null?void 0:G.queries,queryKey:f,queryHash:p,meta:h},{...u,data:P,fetchStatus:"idle",status:P!==void 0?"success":u.status});R&&!ne&&!se&&(A===void 0||A>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(R).then(r)}).catch(oe)})}var ve=({children:e,options:t={},state:n,queryClient:s})=>{const a=F(s),r=c.useRef(t);c.useEffect(()=>{r.current=t});const i=c.useMemo(()=>{if(n){if(typeof n!="object")return;const o=a.getQueryCache(),l=n.queries||[],d=[],f=[];for(const u of l){const p=o.get(u.queryHash);p?(u.state.dataUpdatedAt>p.state.dataUpdatedAt||u.promise&&p.state.status!=="pending"&&p.state.fetchStatus!=="fetching"&&u.dehydratedAt!==void 0&&u.dehydratedAt>p.state.dataUpdatedAt)&&f.push(u):d.push(u)}if(d.length>0&&L(a,{queries:d},r.current),f.length>0)return f}},[a,n]);return c.useEffect(()=>{i&&L(a,{queries:i},r.current)},[a,i]),e};const V={database:Object.assign({}),listing:Object.assign({
2"./aion-2/listing/index.ts":()=>g(()=>import("./aion-2-listing-CcAIoes8-Cs0eoTVJ.js"),[]),
2"./archeage-chronicles/listing/index.ts":()=>g(()=>import("./archeage-chronicles-listing-Bae-L2_U-DA4dZaG_.js"),[]),
2"./beast-of-reincarnation/listing/index.ts":()=>g(()=>import("./beast-of-reincarnation-listing-CGp7q_lN-Bm0CO1ro.js"),[]),
2"./fixture-alpha/listing/index.ts":()=>g(()=>import("./fixture-alpha-listing-etpH4jmz-CCn5eEVL.js"),__vite__mapDeps([0,1,2,3])),
2"./genshin-impact/listing/index.ts":()=>g(()=>import("./genshin-impact-listing-ChYtfLl9-Ba5JLNrj.js"),[]),
2"./onimusha-way-of-the-sword/listing/index.ts":()=>g(()=>import("./onimusha-way-of-the-sword-listing-DvS145qr-D10havoy.js"),__vite__mapDeps([4,5]))}),tooltip:Object.assign({
2"./beast-of-reincarnation/tooltip/index.ts":()=>g(()=>import("./beast-of-reincarnation-tooltip-BoixFJs3-CaoRm_bq.js"),__vite__mapDeps([6,2,1])),
2"./fixture-alpha/tooltip/index.ts":()=>g(()=>import("./fixture-alpha-tooltip-BsVx4rtH-DoHMZIsx.js"),__vite__mapDeps([7,2,1,3])),
2"./fixture-beta/tooltip/index.ts":()=>g(()=>import("./fixture-beta-tooltip-D2clw-yo-BiDlFGiK.js"),__vite__mapDeps([8,2])),
2"./onimusha-way-of-the-sword/tooltip/index.ts":()=>g(()=>import("./onimusha-way-of-the-sword-tooltip-BftbvLtV-BVc1jHMI.js"),__vite__mapDeps([9,2,1,5]))
2})},K=async(e,t)=>await fe(V,e,t),Ie=ce.reduce((e,t)=>{for(const n of de(V,t)){const s=e.find(a=>a.game===n);s===void 0?e.push({game:n,surfaces:[t]}):s.surfaces=[...s.surfaces,t]}return e},[]),B="data-gamestack-preload",Pe=`script[type="application/json"][${B}]`,we=["apiUrl","game","locale","versionId"],Oe=["entityTypes","genericData","surfaces"],D={apiKey:"",games:[],surfaces:[]},Ue=e=>{if(typeof e!="object"||e===null)return!1;const t={...e};return we.every(n=>typeof t[n]=="string")&&Oe.every(n=>Array.isArray(t[n]))},ke=e=>Array.isArray(e)?e.filter(t=>Ue(t)):[],Me=e=>Array.isArray(e)?e.filter(t=>typeof t=="string").filter(me):[],xe=e=>JSON.stringify(e).replaceAll("<",String.raw`\u003c`),be=e=>{if(e==null||e.trim()==="")return D;try{const t=JSON.parse(e);if(typeof t!="object"||t===null||Array.isArray(t))return D;const n={...t},s=Me(n.surfaces);return typeof n.apiKey!="string"||n.apiKey===""?{...D,surfaces:s}:{apiKey:n.apiKey,games:ke(n.games),surfaces:s}}catch{return D}},z=e=>{const{credentialed:t,declaration:n}=e,s={apiUrl:n.apiUrl,credentialed:t,game:n.game,locale:n.locale,versionId:n.versionId};return[...n.entityTypes.map(a=>({...s,kind:"entityType",name:a})),...n.genericData.map(a=>({...s,kind:"genericData",name:a})),...n.categorySet===!0?[{...s,kind:"categorySet",name:""}]:[]]},Ge=32,q=3e4,Le=256,S=new Map,w=new Set;let J=0;const _=e=>JSON.stringify([e.apiUrl,e.game,e.versionId,e.locale,e.kind,e.name,e.credentialed]),W=()=>({inABrowser:typeof document<"u"}),X=(e,t)=>!e.credentialed||t.inABrowser,je=()=>{const e=Date.now();for(const[t,n]of S)if(n.pinnedUntil<=e)return t;return S.size>Le?S.keys().next().value:void 0},Ce=()=>{for(;S.size>Ge;){const e=je();if(e===void 0)return;S.delete(e)}},Ne=(e,t)=>{if(!X(e,W()))return;const n=_(e);S.delete(n),S.set(n,{pinnedUntil:Date.now()+q,value:t}),Ce(),J+=1;for(const s of w)s()},Fe=e=>{const t=_(e),n=S.get(t);return n===void 0?!1:(S.delete(t),S.set(t,{...n,pinnedUntil:Date.now()+q}),!0)},j=()=>J,C=e=>{var t;return(t=S.get(_(e)))==null?void 0:t.value},Qe=e=>(w.add(e),()=>{w.delete(e)}),$e="v1",v=e=>encodeURIComponent(e),He=(e,t)=>`${e}/${$e}/${v(t)}/data`,k=(e,t,n)=>`${He(e,t)}/versions/${v(n)}`,M=e=>`?locale=${encodeURIComponent(e)}`,Ve=e=>`${k(e.apiUrl,e.game,e.versionId)}/generic-data/${v(e.name)}${M(e.locale)}`,Ke=e=>`${k(e.apiUrl,e.game,e.versionId)}/categories${M(e.locale)}`,Be=e=>`${k(e.apiUrl,e.game,e.versionId)}/entities-bulk/${v(e.name)}${M(e.locale)}`,ze=e=>{switch(e.kind){case"categorySet":return Ke(e);case"entityType":return Be(e);case"genericData":return Ve(e)}},qe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&"data"in e,Je=400,We=500,O=new Map,E=new Map,Xe=256,Ye=408,Ze=429,et=401,tt=403,nt=new Set([Ye,Ze]),st=new Set([tt,et]),at=e=>e instanceof he&&e.responseStatus>=Je&&e.responseStatus<We&&!nt.has(e.responseStatus)&&!st.has(e.responseStatus),rt=(e,t)=>{for(E.set(e,t);E.size>Xe;){const n=E.keys().next();if(n.done===!0)return;E.delete(n.value)}},U=async(e,t)=>{const n=await pe(ze(e),qe,{apiKey:t.apiKey,credentialed:e.credentialed,signal:t.signal});return Ne(e,n.data),n.data},it=async(e,t,n)=>{const s=U(e,t);O.set(n,s);try{return await s}catch(a){throw at(a)&&rt(n,a),a}finally{O.delete(n)}},Y=async(e,t)=>{if(!X(e,W())){await U(e,t);return}if(Fe(e))return;if(e.credentialed){await U(e,t);return}const n=_(e);E.has(n)||await(O.get(n)??it(e,t,n))},Z=e=>Array.isArray(e),ee=e=>typeof e=="object"&&e!==null&&"id"in e&&typeof e.id=="string",ot=e=>ee(e)&&"slug"in e&&typeof e.slug=="string",ct=e=>Z(e)?e.filter(t=>ee(t)):void 0,dt=e=>Z(e)?e.filter(t=>ot(t)):void 0,ut=async(e,t)=>{await Promise.allSettled([...e.surfaces.map(async n=>await K(e.game,n)),...z({credentialed:!1,declaration:e}).map(async n=>await Y(n,{apiKey:t}))])},lt=async(e,t)=>{const n=Q(t.flatMap(a=>a.surfaces)),s=await Promise.allSettled(n.map(async a=>await $(e,a)));for(const[a,r]of s.entries())if(r.status==="rejected"){const i=r.reason instanceof Error?r.reason.message:String(r.reason);console.warn(`[gamestack] ${n[a]??"a surface"}: its chunk did not arrive before hydration (${i}), so the server-rendered askers of this surface hydrate against no module and React re-renders them bare (#418). A delivery problem, not an integration one — the surface was declared and catalogued.`)}},Ht=async e=>{const t=typeof document>"u"?void 0:document;if(t===void 0)return;const n=[...t.querySelectorAll(Pe)].map(s=>be(s.textContent));await Promise.allSettled([...n.flatMap(s=>s.games.map(async a=>await ut(a,s.apiKey))),...e===void 0?[]:[lt(e,n)]])},ft=e=>e.credentialed!==!0,mt=(e,t)=>({apiKey:t,games:ft(e)?e.games:[],surfaces:e.surfaces??[]}),pt=(e,t)=>
2{if(!(!t||e.credentialed!==!0))return"[gamestack] <GamestackPage> is server-rendering a credentialed load. That markup belongs to one reader, a shared cache would serve it to another, and no preload reads are emitted for hydration to reproduce it. Render credentialed pages in the browser."},gt=e=>"game"in e,yt=e=>"set"in e,te=e=>"surface"in e,St=e=>te(e)&&e.load===void 0,ht=e=>te(e)&&e.load!==void 0,Et=e=>{const t=ct(e);return t===void 0?void 0:new Map(t.map(n=>[n.id,n]))},_t=(e,t)=>{const n=e.find(s=>s.kind==="categorySet");return n===void 0?void 0:dt(t(n))},Rt=(e,t)=>{const n=new Map(t);for(const[s,a]of Object.entries(e??{})){const r=n.get(s);n.set(s,r===void 0?a:{...r,...a})}return Object.fromEntries(n)},At=(e,t)=>Object.fromEntries(e.flatMap(n=>{const s=n.kind==="genericData"?t(n):void 0;return s===void 0?[]:[[n.name,s]]})),Tt=(e,t,n)=>{const s=new Map(Object.entries((e==null?void 0:e.data)??{}));for(const a of t){const r=a.kind==="entityType"?Et(n(a)):void 0;r!==void 0&&s.set(a.name,Rt(s.get(a.name),r))}return Object.fromEntries(s)},x=e=>{const{credentialed:t=!1,declaration:n,resolved:s=[],sharedValue:a,store:r}=e,i=[...z({credentialed:t,declaration:n}),...s],o=_t(i,a);return{...o===void 0?{}:{categories:o},declaration:{entityTypes:new Set(n.entityTypes),types:new Set(n.types)},documents:At(i,a),records:Tt(r,i,a),...(r==null?void 0:r.aliased)===void 0?{}:{aliases:r.aliased}}},Dt=e=>Te({...x(e),game:e.declaration.game,locale:e.declaration.locale,versionId:e.declaration.versionId,...e.onUndeclaredRead===void 0?{}:{onUndeclaredRead:e.onUndeclaredRead}}),vt=e=>{c.useEffect(()=>{const t=Ee(e);if(t.length===0)return;(async()=>{await Promise.all(t.map(async({game:s,surface:a})=>{try{await K(s,a)}catch{Re(s,a)}}))})()},[e])},It=(e,t)=>
2{c.useEffect(()=>{if(t===void 0)return;const n=Q(e);if(n.length===0)return;(async()=>{await Promise.all(n.map(async a=>{try{await $(t,a)}catch{Ae(a)}}))})()},[t,e])},N=e=>["gamestack","game-store",e.apiUrl,e.game,e.versionId,e.locale,e.storeHash],Pt="\0",wt=()=>{const e=new Map;return{storeFor:(t,n)=>{const s=[t.game,t.versionId,t.locale].join(Pt),a=e.get(s);if(a!==void 0)return{created:!1,store:a};const r=n();return e.set(s,r),{created:!0,store:r}}}},Ot=(e,t)=>c.useMemo(()=>{const n=(e.failed??[]).filter(St);return{catalogued:t===void 0?[]:_e(t),declared:e.surfaces??[],failed:n.map(s=>s.surface),...n.length===0?{}:{failureReasons:Object.fromEntries(n.map(s=>[s.surface,s.reason]))}}},[t,e.failed,e.surfaces]),Ut=(e,t)=>({apiUrl:e.apiUrl,credentialed:!1,game:e.game,kind:"entityType",locale:e.locale,name:t,versionId:e.versionId}),kt=e=>{const[t,n]=c.useState(new Map),s=c.useRef(new Set);return{resolve:c.useCallback((r,i)=>{if(i.kind!=="type"||typeof document>"u")return;const o=Ut(r,i.type),l=_(o);if(s.current.has(l))return;s.current.add(l),(async()=>{try{await Y(o,{apiKey:e})}catch{return}n(f=>new Map(f).set(r.game,[...f.get(r.game)??[],o]))})()},[e]),resolved:t}},Mt=(e,t,n)=>{const{created:s,store:a}=e.storeFor(t.declaration,()=>Dt({...t,onUndeclaredRead:r=>{n(t.declaration,r)}}));return s||a.seed(x(t)),a},xt=(e,t,n)=>{const s=c.useSyncExternalStore(Qe,j,j),{apiKey:a}=H(),{resolve:r,resolved:i}=kt(a),[o]=c.useState(wt),l=c.useMemo(()=>Object.fromEntries(e.map(d=>[d.game,Mt(o,{credentialed:n,declaration:d,sharedValue:C,store:t.getQueryData(N(d))},r)])),[n,e,o,t,r]);return c.useEffect(()=>{for(const d of e)l[d.game].merge(x({credentialed:n,declaration:d,resolved:i.get(d.game),sharedValue:C,store:t.getQueryData(N(d))}))},[n,e,t,i,s,l]),l},bt=({data:e})=>{const{apiKey:t}=H(),n=mt(e,t);return y.jsx("script",{dangerouslySetInnerHTML:{__html:xe(n)},type:"application/json",[B]:""})},Gt=({children:e,data:t,surfaceCatalogue:n})=>{const s=F();c.useEffect(()=>{},[t]);const a=xt(t.games,s,t.credentialed===!0),r=pt(t,typeof document>"u"),i=c.useMemo(()=>t.games.map(({game:f,surfaces:u})=>({game:f,surfaces:u})),[t.games]),o=c.useMemo(()=>(t.failed??[]).filter(gt).map(f=>f.game),[t.failed]),l=Ot(t,n);vt(i),It(l.declared,n),r!==void 0&&console.warn(r);const d=Lt(t);return y.jsx(ge,{slices:{catalogued:Ie,declared:i,failed:o},surfaces:l,children:y.jsx(ye,{...d,children:y.jsx(Se,{stores:a,children:e})})})},Lt=e=>{const t=c.useMemo(()=>e.surfaceData??{},[e.surfaceData]),n=c.useMemo(()=>Object.fromEntries((e.failed??[]).filter(ht).map(({load:r,reason:i,status:o,surface:l})=>[l,{load:r,reason:i,...o===void 0?{}:{status:o}}])),[e.failed]),s=c.useMemo(()=>e.listings??{},[e.listings]),a=c.useMemo(()=>Object.fromEntries((e.failed??[]).filter(yt).map(({reason:r,set:i,status:o})=>[i,{reason:r,...o===void 0?{}:{status:o}}])),[e.failed]);return{data:t,failed:n,listingFailures:a,listings:s}},jt=({children:e,data:t,surfaceCatalogue:n})=>y.jsx(ve,{state:t.dehydratedState,children:y.jsx(Gt,{data:t,...n===void 0?{}:{surfaceCatalogue:n},children:e})}),Ct=({children:e,data:t,surfaceCatalogue:n})=>y.jsxs(jt,{data:t,...n===void 0?{}:{surfaceCatalogue:n},children:[y.jsx(bt,{data:t}),e]}),Vt=e=>{const{children:t,data:n,Link:s,linkTo:a,surfaceCatalogue:r,...i}=e;return y.jsx(ue,{...i,children:y.jsx(le,{...s===void 0?{}:{Link:s},...a===void 0?{}:{linkTo:a},children:y.jsx(Ct,{data:n,...r===void 0?{}:{surfaceCatalogue:r},children:t})})})},Kt={tooltip:async()=>await g(()=>import("./index-BeXcFtdt.js"),__vite__mapDeps([10,2,1,11]))};export{Kt as G,Vt as a,Ht as p};

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.