PageSourceSearch

https://softbear.com/_app/immutable/nodes/0.pa37zEHv.js

js softbear.com collected 2026-10-02 00:01:25 UTC 8,860 bytes, 1 lines download raw bytes

1import"../chunks/Bzak7iHL.js";import{a4 as xe,bu as Ee,d as Le,aL as X,G as B,aM as h,aN as K,aQ as b,aR as f,h as t,aT as s,aO as E,aX as H,aY as me,a5 as te,aW as ae,aP as re,aU as Te,b5 as Pe}from"../chunks/BuW9yWDQ.js";import{b as Ce,s as He}from"../chunks/B9feOs7o.js";import{i as k}from"../chunks/9jmIKidE.js";import{h as Oe}from"../chunks/BVUbQmw5.js";import{s as V}from"../chunks/Dp74R6d4.js";import{s as pe}from"../chunks/QSlu3bJu.js";import{a as qe}from"../chunks/dU3eIxej.js";import{g as ne,C as Be,c as Ge,a as Ne}from"../chunks/Cgrfyjwq.js";import{a as R,c as ce,f as Ae}from"../chunks/CtjKrGYv.js";import{e as ve,s as z,d as he,a as _e}from"../chunks/CEp_Dkbt.js";import{e as J,i as W}from"../chunks/CzXp5InN.js";import{s as F}from"../chunks/CSIBcWpN.js";import{H as Y,s as oe}from"../chunks/CXsyxVXl.js";import{p as D}from"../chunks/Bhrw_CWD.js";import{p as Ie}from"../chunks/WydTMteI.js";import{i as Re,s as ke}from"../chunks/DN3ZFW7X.js";const Ue=!0,De="always",qt=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ue,trailingSlash:De},Symbol.toStringTag,{value:"Module"})),Ye=[{label:"Home",href:"/",leftMenuShown:!0,topMenuBasic:!0,topMenuExtended:!0},{label:"Privacy",leftMenuShown:!0},{label:"Terms",leftMenuShown:!0},{label:"Profile",leftMenuShown:!1,topMenuBasic:!0},{admin:!0,href:"/FAQ",label:"FAQ",topMenuExtended:!0},{label:"Translation",translator:!0,topMenuExtended:!0},{admin:!0,label:"Quest",topMenuExtended:!0},{admin:!0,label:"Registry",topMenuExtended:!0},{admin:!0,label:"Server",topMenuExtended:!0},{admin:!0,label:"Metrics",topMenuExtended:!0},{admin:!0,label:"Store",topMenuExtended:!0}];let T=xe({}),le=!1,be=[],ge=!1,se=!1,ye,ie,j,Me=[],Q=!1,de=!1;function je(r){return r?r.split("/").slice(0,2).join("/"):void 0}function Fe({href:r,label:a}){return r??Qe(a)}function Qe(r){return r?`/${r.toLowerCase()}`:void 0}function we(){const r=Ye.filter(e=>!e.admin||le).filter(e=>!e.moderator||se).filter(e=>!e.translator||de).map(e=>{const p=Fe(e),d=p==j,v=p!="/profile"?e.label:ie??e.label,l=p!="/profile"?void 0:ye;return{...e,href:p,label:v,selected:d,title:l}}),a=r.find(e=>e.href==j);be=r,ge=a?j=="/"||a.leftMenuShown:!0,Me=a&&a.topMenuExtended&&a.href!="/"?r.filter(e=>e.topMenuExtended):r.filter(e=>e.topMenuBasic)}function Ve(r){const a=r==null?void 0:r.url,c=je(a==null?void 0:a.pathname);j!==c&&Je(c)}function ze(){we(),ue()}function Je(r){j=r,we(),ue()}function ue(){Object.assign(T,{leftMenu:be,leftMenuShown:Q?ge:!1,selectedBasePath:j,topMenu:Me,topMenuShown:Q})}Ee(()=>{Le(()=>{const r=R.admin,a=R.error,c=R.moderator,e=R.nav,p=R.translator,d=R.sessionId,v=R.userId,l=!!r,i=!!c,o=!!e,m=!!p,n=v?"Profile":d?"Login":a?"No-Login":void 0;l!=le||i!=se||m!=de||n!=ie?(le=l,se=i,ye=a,ie=n,Q=o,de=m,ze()):o!=Q&&(Q=o,ue())})});var We=b("<tr><td><!></td></tr>"),Xe=b("<tr><td><a> </a></td></tr>"),Ke=b('<nav id="left_menu" aria-label="Game categories" class="svelte-1fb1fx2"><table id="category_list" class="svelte-1fb1fx2"><tbody><tr><td><!></td></tr><tr><td><!></td></tr><!></tbody></table> <table id="route_list"><tbody></tbody></table></nav>');function Ze(r,a){X(a,!0);const c="display: inline-block; margin: 0; width: 95%;",e=!0,p="max-width: 1.5rem; overflow-y: hidden;",d="max-width: 16rem;";let v=me(p),l=H(()=>t(v)==p);function i(){te(v,d)}function o(){te(v,p)}function m(_,u){return _&&u?`${_} ${u}`:_||u||void 0}var n=Ke(),w=f(n),L=f(w),P=f(L),G=f(P),C=f(G);{let _=H(()=>!t(l));Y(C,{icon:e,get selectable(){return t(_)},style:c}
1)}s(G),s(P);var N=E(P),g=f(N),y=f(g);{let _=H(()=>!t(l));Y(y,{beta:!0,icon:e,get selectable(){return t(_)},style:c})}s(g),s(N);var O=E(N);J(O,17,()=>ne.categories??[],W,(_,u)=>{var M=We(),S=f(M),x=f(S);{let q=H(()=>!t(l));Y(x,{get category(){return t(u)},icon:e,get selectable(){return t(q)},style:c})}s(S),s(M),h(_,M)}),s(L),s(w);var A=E(w,2);let U;var I=f(A);J(I,21,()=>T.leftMenu??[],W,(_,u)=>{let M=()=>t(u).href,S=()=>t(u).label,x=()=>t(u).selected;var q=Xe(),Z=f(q),$=f(Z);let fe;var Se=f($,!0);s($),s(Z),s(q),B(()=>{fe=V($,1,"route svelte-1fb1fx2",null,fe,{selected:x()}),F($,"href",M()),z(Se,S())}),h(_,q)}),s(I),s(A),s(n),B(_=>{pe(n,_),U=V(A,1,"svelte-1fb1fx2",null,U,{hidden:t(l)})},[()=>m(t(v),a.style)]),ve("mouseenter",n,i),ve("mouseleave",n,o),h(r,n),K()}var $e=b('<nav class="mobile_categories svelte-qssmgu" aria-label="Game categories"><!> <!> <!></nav>');function et(r,a){X(a,!0);let c=H(()=>{var l;return(l=ne.categories)!=null&&l.length?ne.categories:Be.filter(i=>i!=="Beta")});var e=$e(),p=f(e);Y(p,{selectable:!0});var d=E(p,2);Y(d,{beta:!0,selectable:!0});var v=E(d,2);J(v,17,()=>t(c),W,(l,i)=>{Y(l,{get category(){return t(i)},selectable:!0})}),s(e),h(r,e),K()}var tt=b('<option class="svelte-1og3ur7"> </option>'),at=b('<span class="domain svelte-1og3ur7"><select aria-label="Choose site domain" class="svelte-1og3ur7"></select></span>');function rt(r,a){X(a,!0);let c=H(()=>{var i;return[ce,...((i=oe.games)==null?void 0:i.alternativeDomains)??[]].map(o=>({hostname:o,label:Ge(o.split(".")[0])}))}),e=H(()=>typeof window<"u"&&t(c).some(({hostname:i})=>i==window.location.hostname)?window.location.hostname:ce);function p(i){const o=i.currentTarget.value;o&&o!=t(e)&&(window.location.href=`https://${o}`)}var d=ae(),v=re(d);{var l=i=>{var o=at(),m=f(o);J(m,21,()=>t(c),W,(w,L)=>{let P=()=>t(L).hostname,G=()=>t(L).label;var C=tt(),N=f(C,!0);s(C);var g={};B(()=>{z(N,G()),g!==(g=P())&&(C.value=(C.__value=P())??"")}),h(w,C)}),s(m);var n;Re(m),s(o),B(()=>{n!==(n=t(e))&&(m.value=(m.__value=t(e))??"",ke(m,t(e)))}),_e("change",m,p),h(i,o)};k(v,i=>{t(c).length>1&&i(l)})}h(r,d),K()}he(["change"]);var nt=b("<a> </a>");function ee(r,a){let c=D(a,"href",3,void 0),e=D(a,"label",3,void 0),p=D(a,"onClick",3,void 0),d=D(a,"selected",3,!1),v=D(a,"title",3,void 0);var l=nt();let i;var o=f(l,!0);s(l),B(()=>{F(l,"href",c()??"/"),F(l,"title",v()),F(l,"aria-label",e()),i=V(l,1,"svelte-1r259n6",null,i,{selected:d()}),z(o,e()??"?")}),_e("click",l,function(...m){var n;(n=p())==null||n.apply(this,m)}),h(r,l)}he(["click"]);var ot=b('<div class="logo_pair svelte-1uq6pdw"><a class="logo_label svelte-1uq6pdw" href="/" aria-label="Softbear Games home">SOFTBEAR GAMES</a></div>'),lt=b("<a> </a>"),st=b('<span id="online" class="svelte-1uq6pdw"> </span>'),it=b("<span>Loading</span>"),dt=b('<span class="login svelte-1uq6pdw"><!></span>'),ut=b('<nav class="top_menu svelte-1uq6pdw" aria-label="Main navigation"><!> <!> <div class="account svelte-1uq6pdw"><!> <!></div></nav>'),ft=b("<header><!></header>");function ct(r,a){X(a,!0);let c=D(a,"clientHeight",15,0);Ie.subscribe(o=>Ve(o));function e(o){return o?o.find(m=>m.href=="/profile"):void 0}function p(o){return(o??[]).filter(m=>m.href!="/profile")}let d=H(()=>e(T.topMenu));var v=ft(),l=f(v);{var i=o=>{var m=ut(),n=f(m);J(n,17,()=>p(T.topMenu),W,(g,y)=>{let O=()=>t(y).href,A=()=>t(y).label,U=()=>t(y).selected;var I=ae(),_=re(I);{var u=S=>{var x=ot();h(S,x)},M=S=>{var x=lt();let q;var Z=f(x,!0);s(x),B(()=>{q=V(x,1,"menu_item svelte-1uq6pdw",null,q,{selected:U()}),F(x,"href",O()),z(Z,A())}),h(S,x)};k(_,S=>{O()=="/"?S(u):S(M,-1)})}h(g,I)});var w=E(n,2);{var L=g=>{var y=st(),O=f(y);s(y),B(()=>z(O,`Join ${oe.games.playerCount??""} people playing right now`)),h(g,y)};k(w,g=>{var y;T.leftMenuShown&&((y=oe.games)!=null&&y.playerCount)&&g(L)})}var P=E(w,2),G=f(P);rt(G,{});var C=E(G,2);{var N=g=>{var y=ae(),O=re(y);{var A=u=>{var M=it();h(u,M)},U=u=>{ee(u,{href:"/",get title(){return t(d).error}})},I=u=>{var M=dt(),S=f(M);ee(S,{label:"Log In",get onClick(){return Ae}}),s(M),h(u,M)},_=u=>{ee(u,{get href(){return t(d).href},get label(){return t(d).label},get selected(){return t(d).selected}})};k(O,u=>{t(d).loading?u(A):t(d).label?t(d).label=="Login"?u(I,2):u(_,-1):u(U,1)})}h(g,y)};k(C,g=>{t(d)&&g(N)})}s(P),s(m),h(o,m)};k(l,o=>{T.topMenuShown&&o(i)})}s(v),Ce(v,"clientHeight",c),h(r,v),K()}var vt=b('<meta property="og:site_name" content="Softbear Games"/> <meta name="twitter:card" content="summary"/> <meta name="twitter:site" content="@softbeariogames"/>',1),mt=b('<div id="layout"><!> <main class="svelte-12qhfyh"><!> <!></main> <!></div>');function Bt(r,a){X(a,!0);
1let c=me(0);qe(n=>{var w,L;((L=(w=n==null?void 0:n.to)==null?void 0:w.route)==null?void 0:L.id)=="/"&&(console.log("clear category"),Ne(void 0))});var e=mt();Oe("12qhfyh",n=>{var w=vt();Te(4),h(n,w)});let p;var d=f(e);ct(d,{get clientHeight(){return t(c)},set clientHeight(n){te(c,n,!0)}});var v=E(d,2),l=f(v);{var i=n=>{et(n,{})};k(l,n=>{T.topMenuShown&&n(i)})}var o=E(l,2);He(o,()=>a.children??Pe),s(v);var m=E(v,2);{let n=H(()=>`bottom: 0;${T.leftMenuShown?"":"display: none;"} top: ${t(c)}px;`);Ze(m,{get style(){return t(n)}})}s(e),B(()=>{p=V(e,1,"svelte-12qhfyh",null,p,{top_menu_shown:T.topMenuShown}),pe(v,`bottom: 0;${T.leftMenuShown?"":"left: 0px;"} top: ${t(c)}px;`)}),h(r,e),K()}export{Bt as component,qt as universal};

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.