t2-mapper/docs/_next/static/chunks/005e475439c5cb3e.js
2026-03-12 16:34:43 -07:00

1 line
No EOL
4.2 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81405,(e,t,l)=>{var n;e.e,(n=function(){function e(e){return a.appendChild(e.dom),e}function t(e){for(var t=0;t<a.children.length;t++)a.children[t].style.display=t===e?"block":"none";l=e}var l=0,a=document.createElement("div");a.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",a.addEventListener("click",function(e){e.preventDefault(),t(++l%a.children.length)},!1);var i=(performance||Date).now(),r=i,o=0,c=e(new n.Panel("FPS","#0ff","#002")),s=e(new n.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var m=e(new n.Panel("MB","#f08","#201"));return t(0),{REVISION:16,dom:a,addPanel:e,showPanel:t,begin:function(){i=(performance||Date).now()},end:function(){o++;var e=(performance||Date).now();if(s.update(e-i,200),e>r+1e3&&(c.update(1e3*o/(e-r),100),r=e,o=0,m)){var t=performance.memory;m.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){i=this.end()},domElement:a,setMode:t}}).Panel=function(e,t,l){var n=1/0,a=0,i=Math.round,r=i(window.devicePixelRatio||1),o=80*r,c=48*r,s=3*r,m=2*r,f=3*r,d=15*r,u=74*r,h=30*r,p=document.createElement("canvas");p.width=o,p.height=c,p.style.cssText="width:80px;height:48px";var x=p.getContext("2d");return x.font="bold "+9*r+"px Helvetica,Arial,sans-serif",x.textBaseline="top",x.fillStyle=l,x.fillRect(0,0,o,c),x.fillStyle=t,x.fillText(e,s,m),x.fillRect(f,d,u,h),x.fillStyle=l,x.globalAlpha=.9,x.fillRect(f,d,u,h),{dom:p,update:function(c,b){n=Math.min(n,c),a=Math.max(a,c),x.fillStyle=l,x.globalAlpha=1,x.fillRect(0,0,o,d),x.fillStyle=t,x.fillText(i(c)+" "+e+" ("+i(n)+"-"+i(a)+")",s,m),x.drawImage(p,f+r,d,u-r,h,f,d,u-r,h),x.fillRect(f+u-r,d,r,h),x.fillStyle=l,x.globalAlpha=.9,x.fillRect(f+u-r,d,r,i((1-c/b)*h))}}},t.exports=n},55141,e=>{e.v({AxisLabel:"DebugElements-module__Cmeo9W__AxisLabel",StatsPanel:"DebugElements-module__Cmeo9W__StatsPanel"})},86855,e=>{"use strict";var t=e.i(43476),l=e.i(932),n=e.i(71645),a=e.i(40859),a=a,i=a,r=e.i(81405);function o(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function c({showPanel:e=0,className:t,parent:l}){let c=function(e,t=[],l){let[a,i]=n.useState();return n.useLayoutEffect(()=>{let t=e();return i(t),o(void 0,t),()=>o(void 0,null)},t),a}(()=>new r.default,[]);return n.useEffect(()=>{if(c){let n=l&&l.current||document.body;c.showPanel(e),null==n||n.appendChild(c.dom);let r=(null!=t?t:"").split(" ").filter(e=>e);r.length&&c.dom.classList.add(...r);let o=(0,a.j)(()=>c.begin()),s=(0,i.k)(()=>c.end());return()=>{r.length&&c.dom.classList.remove(...r),null==n||n.removeChild(c.dom),o(),s()}}},[l,c,t,e]),null}var s=e.i(60099),m=e.i(55141);function f(){let e,a,i,r,o,f,d,u,h,p,x=(0,l.c)(10),b=(0,n.useRef)(null);return x[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=b.current;e&&e.setColors("rgb(153, 255, 0)","rgb(0, 153, 255)","rgb(255, 153, 0)")},x[0]=e):e=x[0],(0,n.useEffect)(e),x[1]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(c,{className:m.default.StatsPanel}),x[1]=a):a=x[1],x[2]===Symbol.for("react.memo_cache_sentinel")?(i=[70],x[2]=i):i=x[2],x[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)("axesHelper",{ref:b,args:i,renderOrder:999,children:(0,t.jsx)("lineBasicMaterial",{depthTest:!1,depthWrite:!1,fog:!1,vertexColors:!0})}),x[3]=r):r=x[3],x[4]===Symbol.for("react.memo_cache_sentinel")?(o=[80,0,0],x[4]=o):o=x[4],x[5]===Symbol.for("react.memo_cache_sentinel")?(f=(0,t.jsx)(s.Html,{position:o,center:!0,children:(0,t.jsx)("span",{className:m.default.AxisLabel,"data-axis":"y",children:"Y"})}),x[5]=f):f=x[5],x[6]===Symbol.for("react.memo_cache_sentinel")?(d=[0,80,0],x[6]=d):d=x[6],x[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(s.Html,{position:d,center:!0,children:(0,t.jsx)("span",{className:m.default.AxisLabel,"data-axis":"z",children:"Z"})}),x[7]=u):u=x[7],x[8]===Symbol.for("react.memo_cache_sentinel")?(h=[0,0,80],x[8]=h):h=x[8],x[9]===Symbol.for("react.memo_cache_sentinel")?(p=(0,t.jsxs)(t.Fragment,{children:[a,r,f,u,(0,t.jsx)(s.Html,{position:h,center:!0,children:(0,t.jsx)("span",{className:m.default.AxisLabel,"data-axis":"x",children:"X"})})]}),x[9]=p):p=x[9],p}e.s(["DebugElements",()=>f],86855)}]);