PageSourceSearch

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

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

1import{h as e,wn as t}from"./D3qLCeEK.js";import"./OHQUSm6n.js";import{Jt as n,Mn as r,Tn as i,Xr as a,Yt as o,pr as s,w as c}from"./BC9AvlhT.js";import{f as l,p as u}from"./BjxZzSo2.js";import{n as d}from"./CLGBbb0t.js";import{n as f}from"./Dsew_TID.js";var p=t({hideVrRecIndicator:()=>R,recSegments:()=>N,vrRecIndicatorDebug:()=>z,vrRecIndicatorFrame:()=>L}),m=384,h=64,g=.2,_=1.2,v=.5,y=`#f87171`,b=`#60a5fa`,x=null,S=new a,C=new a,w=new a,T={position:new a,quaternion:new r},E={draws:0,segments:[]},D=250,O=-1/0,k=!1,A=[],j=``;function M(e){let t=Math.max(0,Math.floor(e/1e3));return Math.floor(t/60)+`:`+String(t%60).padStart(2,`0`)}function N(e,t,n=Date.now()){let r=[];return e&&r.push({text:`● REC `+(e.mode===`detailed`?`DETAILED `:``)+M(n-e.startedAt),color:y}),t&&t.watchers>0&&r.push({text:`◉ LIVE `+t.watchers,color:b}),r}function P(){let t=e(l);if(!t?.xr?.isPresenting)return null;let n=t.xr.getCamera();return n.updateMatrixWorld?.(!0),n.getWorldPosition(T.position),n.getWorldQuaternion(T.quaternion),T}function F(){if(x||typeof document>`u`)return x;let e=document.createElement(`canvas`);e.width=m,e.height=h;let t=e.getContext(`2d`),r=new c(e);r.colorSpace=s;let a=new n(new i(g,g*h/m),new o({map:r,transparent:!0,depthTest:!1,depthWrite:!1}));return a.name=`vr-rec-indicator`,a.renderOrder=f,a.frustumCulled=!1,a.visible=!1,a.userData.localOnly=!0,x={mesh:a,g:t,texture:r,sig:``},x}function I(e,t){let n=e.canvas.width,r=e.canvas.height;e.clearRect(0,0,n,r),e.beginPath(),e.roundRect?.(0,0,n,r,r/2),e.fillStyle=`rgba(0, 0, 0, 0.72)`,e.fill(),e.font=`700 ${Math.round(r*.42)}px ui-monospace, Menlo, monospace`,e.textBaseline=`middle`,e.textAlign=`left`;let i=t.map(t=>e.measureText(t.text).width),a=i.reduce((e,t)=>e+t,0)+18*Math.max(0,t.length-1),o=Math.max(10,(n-a)/2);t.forEach((t,n)=>{e.fillStyle=t.color,e.fillText(t.text,o,r/2),o+=i[n]+18})}function L(t=P(),n=performance.now()){if((n-O>=D||!t!=!k)&&(O=n,k=!!t,A=t?N(d(`recording`),d(`perfLive`)):[],j=A.map(e=>e.text).join(`|`)),!A.length||!t){x&&(x.mesh.visible=!1);return}let r=F();if(!r)return;let i=e(u);i&&r.mesh.parent!==i&&i.add(r.mesh),j!==r.sig&&(r.sig=j,I(r.g,A),r.texture.needsUpdate=!0,E.draws++,E.segments=A),S.set(0,0,-1).applyQuaternion(t.quaternion),C.set(0,1,0).applyQuaternion(t.quaternion),w.set(1,0,0).applyQuaternion(t.quaternion),r.mesh.position.copy(t.position).addScaledVector(S,_).addScaledVector(C,v).addScaledVector(w,-.3),r.mesh.quaternion.copy(t.quaternion),r.mesh.updateMatrixWorld(!0),r.mesh.visible=!0}function R(){x&&(x.mesh.visible=!1),O=-1/0}function z(){return{visible:!!x?.mesh.visible,parent:x?.mesh.parent?.type??null,draws:E.draws,segments:E.segments}}export{L as n,p as r,R as t};

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.