PageSourceSearch

https://wewere.online/assets/config-Bjfj771K.js

js wewere.online collected 2026-10-08 09:22:26 UTC 7,690 bytes, 1 lines download raw bytes

1import{C as R,D as E}from"./clickDefaults-Yw1BgyYC.js";import{f as L,p as M}from"./eventUtils-BzBD_l0W.js";const T={trailOpacity:.7,strokeWidth:5,animationSpeed:1,trailStyle:"chaotic",maxConcurrentTrails:15,trailAnimationMode:"stagger",overlapFactor:.8,randomizeColors:!1,minGapBetweenTrails:.3,chaosIntensity:1,...R,eventFilter:{move:!0,click:!0,hold:!0,cursor_change:!0},viewportEventFilter:{scroll:!0,resize:!0,zoom:!0},filters:[],pidFilter:"",documentSpace:!1,scrollSpeed:1,backgroundOpacity:.7,maxConcurrentScrolls:5,showPagePreview:!1,allowOverlap:!1,windowBleed:.45,showTitleBar:!0,showScrollEvents:!0,showResizeEvents:!0,showZoomEvents:!0,windowScale:.5,keyboardOverlapFactor:.9,textboxOpacity:.7,keyboardMinFontSize:12,keyboardMaxFontSize:18,keyboardShowCaret:!0,keyboardAnimationSpeed:.5,keyboardPositionRandomness:.3,keyboardRandomizeOrder:!1,keyboardLegibilityPct:100,maxConcurrentTyping:15,keyboardSizeCap:.5,keyboardMaxAspect:2.2,navigationWindowOpacity:.9,navigationEdgeOpacity:.2,navigationScrollSpeed:80,navigationMaxSessions:8,navigationMinSessionEvents:3,navigationViewMode:"timeline",navigationMaxParallelEdges:3,navigationRadialBlobSamples:64,navigationRadialBlobCurveTension:.5,navigationRadialBlobEdgeNoise:.45,navigationRadialBlobValleyDepth:.05,navigationRadialSegmentByDay:!0,trailVisualStyle:"color",soundMode:"sustained",soundChordRotation:!1,soundEnergyArc:!1,soundChordVoicing:!0,soundCursorInstruments:!0,soundCrossings:"off",soundTrailVoices:!1,soundSwells:!1,soundChoralTimbre:!1,soundTrailArrivals:!1,soundNavigationSounds:!1,soundBassPedal:!1,debugMode:!1},S="s";function U(n){const e=n.toLowerCase();if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1}function A(n){const e=Number(n);return Number.isFinite(e)?e:void 0}function N(n){return e=>n.includes(e)?e:void 0}const O=(n,e,t)=>({key:n,param:e,viz:t,parse:U,serialize:r=>typeof r=="boolean"?String(r):null}),g=(n,e,t)=>({key:n,param:e,viz:t,parse:A,serialize:r=>typeof r=="number"?String(r):null});function m(n,e,t,r){return{key:n,param:e,viz:r,parse:N(t),serialize:o=>typeof o=="string"?o:null}}const _=["straight","smooth","organic","chaotic"],C=["natural","stagger"],F=["timeline","radial"],k=["color","monochrome"],h=[{key:"filters",param:"filter",parse:n=>typeof n!="string"?void 0:n===""?[]:n.split(",").map(t=>M(t)).filter(t=>t.domain||t.path),serialize:n=>{if(!Array.isArray(n)||n.length===0)return null;const e=n.map(L).filter(Boolean);return e.length>0?e.join(","):null}},{key:"pidFilter",param:"user",parse:n=>n,serialize:n=>typeof n=="string"&&n!==""?n:null},m("trailStyle","trailStyle",_,"trails"),m("trailVisualStyle","trailVisualStyle",k),m("trailAnimationMode","trailAnimationMode",C,"trails"),g("animationSpeed","animationSpeed","trails"),g("strokeWidth","strokeWidth","trails"),g("trailOpacity","trailOpacity","trails"),O("randomizeColors","randomizeColors"),m("navigationViewMode","navigationViewMode",F,"navigation")];function z(n){if(!n)return{};try{const e=n.replace(/-/g,"+").replace(/_/g,"/"),t=e+"===".slice((e.length+3)%4),r=atob(t),o=JSON.parse(r);return typeof o=="object"&&o!==null?o:{}}catch(e){return console.warn("Ignoring malformed ?s= blob:",e),{}}}function I(n){const e={...z(n.get(S))};for(const t of h){const r=n.get(t.param);if(r===null)continue;const o=t.parse(r);o!==void 0&&(e[t.key]=o)}if(!n.has("filter")&&(n.has("domain")||n.has("path"))){const t=n.get("domain")??"",r=n.get("path")??"";(t||r)&&(e.filters=[{domain:t,path:r}])}return e}function v(n,e){return n===e?!0:n===null||e===null||typeof n!="object"||typeof e!="object"?!1:JSON.stringify(n)===JSON.stringify(e)}function P(n){const e=JSON.stringify(n);return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function x(n,e,t=T){const r={},o={},l=t;for(const i of h){if(i.viz&&!e.has(i.viz))continue;const s=n[i.key];if(s===void 0||v(s,l[i.key]))continue;const u=i.serialize(s);u!==null&&(r[i.param]=u)}const a=new Set;for(const i of h)i.param in r&&a.add(i.key);
1for(const i of Object.keys(l)){if(a.has(i))continue;const s=n[i];s!==void 0&&(v(s,l[i])||(o[i]=s))}return{headline:r,blob:Object.keys(o).length===0?null:P(o)}}const $=S,B="https://playhtml-game-api.spencerc99.workers.dev",d=B,j=`${d}/events/recent`,Z=`${d}/commute/recent`,W=`${d}/commute/trains/board`,G=`${d}/events/daily-counts`,J=`${d}/page-meta`,K=`${d.replace(/^http/,"ws")}/stream`;function y(n){if(n===null)return;const e=n.toLowerCase();if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1}function c(n){if(n===null)return;const e=Number(n);return Number.isFinite(e)?e:void 0}function Y(){return typeof window>"u"?{}:I(new URLSearchParams(window.location.search))}function q(){if(typeof window>"u")return;const e=new URLSearchParams(window.location.search).get("viz");if(e!==null)return e===""?[]:e.split(",").map(t=>t.trim()).filter(Boolean)}function H(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search),e=n.get("filter");if(e!==null)return e===""?[]:e.split(",").map(o=>{const l=o.trim();if(!l)return null;const a=l.replace(/^https?:\/\//i,"").replace(/[?#].*$/,""),i=a.indexOf("/"),s=i===-1?a:a.slice(0,i),u=i===-1?"":a.slice(i);return s.includes(".")?{domain:s.replace(/^www\./,""),path:u}:a?{domain:"",path:a.startsWith("/")?a:`/${a}`}:null}).filter(o=>o!==null&&(!!o.domain||!!o.path));const t=n.get("domain"),r=n.get("path");if(t!==null||r!==null)return[{domain:t??"",path:r??""}]}function Q(){if(typeof window>"u")return 0;const e=new URLSearchParams(window.location.search).get("clean");return e===null?0:e==="2"?2:y(e)===!0||e==="1"?1:0}function X(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search),e=c(n.get("startMs")),t=c(n.get("endMs"));if(!(e===void 0||t===void 0)&&!(t<=e))return{startMs:e,endMs:t}}function ee(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search).get("day");if(n!==null)return/^\d{4}-\d{2}-\d{2}$/.test(n)?n:void 0}function ne(){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search),e=n.get("tod");if(e===null)return;let t;if(e.includes(":")){const[l,a]=e.split(":"),i=Number(l),s=Number(a);Number.isFinite(i)&&Number.isFinite(s)&&(t=((i*60+s)%1440+1440)%1440)}else{const l=Number(e);Number.isFinite(l)&&(t=(l%1440+1440)%1440)}if(t===void 0)return;const r=c(n.get("todRadius")),o=r!==void 0&&r>0?Math.min(720,r):15;return{centerMinutes:t,radiusMinutes:o}}function te(n=null){if(typeof window>"u")return n;const e=new URLSearchParams(window.location.search).get("role");return e==="master"?"master":e==="follower"?"follower":n}function oe(n=null){if(typeof window>"u")return n;const e=new URLSearchParams(window.location.search).get("follower");if(e===null)return n;const t=e.trim();return t===""?null:t}function re(n=null){if(typeof window>"u")return n;const e=new URLSearchParams(window.location.search),t=e.get("cinematic");if(t===null)return n;if(!(t!==null&&t!==""&&y(t)!==!1))return null;const o=n??E,l=t==="reveal"?"reveal":"follow",a=c(e.get("cinemaZoom")),i=c(e.get("cinemaTransition")),s=c(e.get("cinemaLerp")),u=c(e.get("
1cinemaVelZoom")),p=c(e.get("cinemaReveal")),w=c(e.get("cinemaStartZoom")),f=c(e.get("follow")),b=f!==void 0&&Number.isInteger(f)&&f>=0?f:null;return{...o,mode:l,zoom:a!==void 0&&a>0?a:o.zoom,transitionMs:i!==void 0&&i>0?i*1e3:o.transitionMs,centerLerp:s!==void 0&&s>=0?s:o.centerLerp,velocityZoomOut:u!==void 0&&u>=0?u:o.velocityZoomOut,revealMs:p!==void 0&&p>0?p*1e3:o.revealMs,revealStartZoom:w!==void 0&&w>0?w:o.revealStartZoom,forcedSubjectIndex:b}}export{W as C,T as D,J as P,j as R,K as S,d as W,H as a,q as b,te as c,ee as d,ne as e,Z as f,G as g,$ as h,oe as i,re as j,X as k,Y as l,Q as p,x as s};

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.