PageSourceSearch

https://theprototype.app/_app/immutable/chunks/Cc_6mL_R.js

js theprototype.app collected 2026-10-05 07:12:36 UTC 2,393 bytes, 1 lines download raw bytes

1import{h as e,wn as t}from"./D3qLCeEK.js";import"./OHQUSm6n.js";import{dt as n}from"./C20P4rQ5.js";import{p as r}from"./CKI5P1oU.js";import{A as i,B as a,E as o,H as s,N as c,V as l,d as u,f as d,j as f,o as p}from"./CXZKoSmh.js";import{c as m,p as h}from"./CVZBB9nh.js";var g=t({applyRemoteHud:()=>b,applyRemoteHudDelete:()=>x,applyRemoteHudValue:()=>w,applyRemoteHudValues:()=>E,applyRemoteHuds:()=>S,beginHudGesture:()=>O,endHudGesture:()=>k,hudGestureActive:()=>A,hudSyncDebug:()=>P,sendHudValues:()=>T,sendHuds:()=>y,startHudSync:()=>M,stopHudSync:()=>N});function _(e){return e?o(e):null}function v(t,i){let a=e(n);a&&(i?a.send({type:`hud`,key:t,doc:_(i)}):a.send({type:`huddelete`,key:t,changedAt:r()}))}function y(t,r=0){let i=e(n),a=i?.peer?.connections?.[t]?.[0]??i?.connections?.[t];if(!a)return;if(!a.open){r<40&&setTimeout(()=>y(t,r+1),250);return}let o=e(d),s={};for(let[e,t]of Object.entries(o))s[e]=_(t);a.send({type:`huds`,huds:s})}function b(e){let t=e?.key;if(!t||!e?.doc)return;let n=o(e.doc),r=u(t);r&&(r.changedAt??0)>(n.changedAt??0)||a(t,n,{silent:!0,stamp:n.changedAt})}function x(e){let t=e?.key;if(!t)return;let n=u(t);n&&(n.changedAt??0)>(e?.changedAt??0)||a(t,null,{silent:!0})}function S(e){let t=e?.huds;if(t&&typeof t==`object`)for(let[e,n]of Object.entries(t))b({key:e,doc:n})}function C(t,r,i){e(n)?.send({type:`hudvalue`,id:t,value:r,at:i})}function w(e){let t=String(e?.id??``).trim();t&&l(t,e.value,{at:Number(e.at)||1,silent:!0})}function T(t,r=0){let i=e(n)?.peer?.connections?.[t]?.[0],a=s();if(Object.keys(a).length){if(!i||!i.open){r<20&&setTimeout(()=>T(t,r+1),250);return}i.send({type:`hudvalues`,values:a})}}function E(e){p(e?.values??{})}var D=new Map;function O(e){D.has(e)||D.set(e,u(e))}function k(e){if(!D.has(e))return;let t=D.get(e);D.delete(e);let n=u(e);JSON.stringify(t)!==JSON.stringify(n)&&(m({kind:`hud`,key:e,before:t,after:n}),v(e,n))}function A(e){return D.has(e)}h(`hud`,(e,t)=>{let n=t===e.before?e.before:e.after;return a(e.key,n??null),!0});var j=[];function M(){j.length||(j.push(i((e,t)=>{D.has(e)||v(e,t)})),j.push(c(C)),j.push(f((e,t,n)=>{D.has(e)||JSON.stringify(t)!==JSON.stringify(n)&&m({kind:`hud`,key:e,before:t,after:n})})))}function N(){for(let e of j)e();j=[],D.clear()}function P(){return{wired:j.length>0,gestures:[...D.keys()]}}export{S as a,g as c,M as d,E as i,T as l,x as n,O as o,w as r,k as s,b as t,y as u};

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.