PageSourceSearch

https://codeipsum-madagascar-webcup.vercel.app/assets/mall.lazy-BipaHWsu.js

js codeipsum-madagascar-webcup.vercel.app collected 2026-10-03 05:17:40 UTC 10,402 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Wizard-Village-CzguW5HN.js","assets/index-KzuKtj7x.js","assets/index-BZNJIt02.css","assets/react-three-fiber.esm-aAemxq8E.js","assets/Gltf-_E9JFmE4.js","assets/constants-FwDEjqi3.js","assets/extends-CF3RwP-h.js","assets/hook-CJoigYuv.js"])))=>i.map(i=>d[i]);
2import{R as I,r as g,g as q,e as H,b as Y,u as $,j as r,_ as B,f as Q,H as X,P as Z}from"./index-KzuKtj7x.js";import{D,V as T,E as G,u as y,a as J,b as W,C as K}from"./react-three-fiber.esm-aAemxq8E.js";import{_ as U}from"./extends-CF3RwP-h.js";const R=s=>{let e;const t=new Set,n=(o,b)=>{const x=typeof o=="function"?o(e):o;if(!Object.is(x,e)){const S=e;e=b??(typeof x!="object"||x===null)?x:Object.assign({},e,x),t.forEach(m=>m(e,S))}},i=()=>e,p={setState:n,getState:i,getInitialState:()=>v,subscribe:o=>(t.add(o),()=>t.delete(o))},v=e=s(n,i,p);return p},ee=s=>s?R(s):R,te=s=>s;function ne(s,e=te){const t=I.useSyncExternalStore(s.subscribe,()=>e(s.getState()),()=>e(s.getInitialState()));return I.useDebugValue(t),t}const N=s=>{const e=ee(s),t=n=>ne(e,n);return Object.assign(t,e),t},se=s=>s?N(s):N;let C=0;const re=se(s=>(D.onStart=(e,t,n)=>{s({active:!0,item:e,loaded:t,total:n,progress:(t-C)/(n-C)*100})},D.onLoad=()=>{s({active:!1})},D.onError=e=>s(t=>({errors:[...t.errors,e]})),D.onProgress=(e,t,n)=>{t===n&&(C=n),s({active:!0,item:e,loaded:t,total:n,progress:(t-C)/(n-C)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0}));var ie=Object.defineProperty,oe=(s,e,t)=>e in s?ie(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,ae=(s,e,t)=>(oe(s,e+"",t),t);class ce{constructor(){ae(this,"_listeners")}addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const a=i.indexOf(t);a!==-1&&i.splice(a,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const n=this._listeners[e.type];if(n!==void 0){e.target=this;const i=n.slice(0);for(let a=0,d=i.length;a<d;a++)i[a].call(this,e);e.target=null}}}var le=Object.defineProperty,de=(s,e,t)=>e in s?le(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,h=(s,e,t)=>(de(s,typeof e!="symbol"?e+"":e,t),t);const k=new G(0,0,0,"YXZ"),M=new T,me={type:"change"},ue={type:"lock"},he={type:"unlock"},F=.002,O=Math.PI/2;let fe=class extends ce{constructor(e,t){super(),h(this,"camera"),h(this,"domElement"),h(this,"isLocked"),h(this,"minPolarAngle"),h(this,"maxPolarAngle"),h(this,"pointerSpeed"),h(this,"onMouseMove",n=>{!this.domElement||this.isLocked===!1||(k.setFromQuaternion(this.camera.quaternion),k.y-=n.movementX*F*this.pointerSpeed,k.x-=n.movementY*F*this.pointerSpeed,k.x=Math.max(O-this.maxPolarAngle,Math.min(O-this.minPolarAngle,k.x)),this.camera.quaternion.setFromEuler(k),this.dispatchEvent(me))}),h(this,"onPointerlockChange",()=>{this.domElement&&(this.domElement.ownerDocument.pointerLockElement===this.domElement?(this.dispatchEvent(ue),this.isLocked=!0):(this.dispatchEvent(he),this.isLocked=!1))}),h(this,"onPointerlockError",()=>{console.error("THREE.PointerLockControls: Unable to use Pointer Lock API")}),h(this,"connect",n=>{this.domElement=n||this.domElement,this.domElement&&(this.domElement.ownerDocument.addEventListener("mousemove",this.onMouseMove),this.domElement.ownerDocument.addEventListener("pointerlockchange",this.onPointerlockChange),this.domElement.ownerDocument.addEventListener("pointerlockerror",this.onPointerlockError))}),h(this,"disconnect",()=>{this.domElement&&(this.domElement.ownerDocument.removeEventListener("mousemove",this.onMouseMove),this.domElement.ownerDocument.removeEventListener("pointerlockchange",this.onPointerlockChange),this.domElement.ownerDocument.removeEventListener("pointerlockerror",this.onPointerlockError))}),h(this,"dispose",()=>{this.disconnect()}),h(this,"getObject",()=>this.camera),h(this,"direction",new T(0,0,-1)),h(this,"getDirection",n=>n.copy(this.direction).applyQuaternion(this.camera.quaternion)),h(this,"moveForward",n=>{M.setFromMatrixColumn(this.camera.matrix,0),M.crossVectors(this.camera.up,M),this.camera.position.addScaledVector(M,n)}),h(this,"moveRight",n=>{M.setFromMatrixColumn(this.camera.matrix,0),this.camera.position.addScaledVector(M,n)}),h(this,"lock",()=>{this.domElement&&this.domElement.requestPointerLock()}),h(this,"unlock",()=>{this.domElement&&this.domElement.ownerDocument.exitPointerLock()}),this.camera=e,this.domElement=t,this.isLocked=!1,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.pointerSpeed=1,t&&this.connect(t)}};
2const pe=g.forwardRef(({domElement:s,selector:e,onChange:t,onLock:n,onUnlock:i,enabled:a=!0,makeDefault:d,...p},v)=>{const{camera:o,...b}=p,x=y(l=>l.setEvents),S=y(l=>l.gl),m=y(l=>l.camera),f=y(l=>l.invalidate),w=y(l=>l.events),P=y(l=>l.get),_=y(l=>l.set),L=o||m,c=s||w.connected||S.domElement,u=g.useMemo(()=>new fe(L),[L]);return g.useEffect(()=>{if(a){u.connect(c);const l=P().events.compute;return x({compute(A,E){const j=E.size.width/2,V=E.size.height/2;E.pointer.set(j/E.size.width*2-1,-(V/E.size.height)*2+1),E.raycaster.setFromCamera(E.pointer,E.camera)}}),()=>{u.disconnect(),x({compute:l})}}},[a,u]),g.useEffect(()=>{const l=j=>{f(),t&&t(j)};u.addEventListener("change",l),n&&u.addEventListener("lock",n),i&&u.addEventListener("unlock",i);const A=()=>u.lock(),E=e?Array.from(document.querySelectorAll(e)):[document];return E.forEach(j=>j&&j.addEventListener("click",A)),()=>{u.removeEventListener("change",l),n&&u.removeEventListener("lock",n),i&&u.removeEventListener("unlock",i),E.forEach(j=>j?j.removeEventListener("click",A):void 0)}},[t,n,i,e,u,f]),g.useEffect(()=>{if(d){const l=P().controls;return _({controls:u}),()=>_({controls:l})}},[d,u]),g.createElement("primitive",U({ref:v,object:u},b))});var z={exports:{}};(function(s,e){(function(t,n){s.exports=n()})(H,function(){var t=function(){function n(m){return d.appendChild(m.dom),m}function i(m){for(var f=0;f<d.children.length;f++)d.children[f].style.display=f===m?"block":"none";a=m}var a=0,d=document.createElement("div");d.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",d.addEventListener("click",function(m){m.preventDefault(),i(++a%d.children.length)},!1);var p=(performance||Date).now(),v=p,o=0,b=n(new t.Panel("FPS","#0ff","#002")),x=n(new t.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var S=n(new t.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:d,addPanel:n,showPanel:i,begin:function(){p=(performance||Date).now()},end:function(){o++;var m=(performance||Date).now();if(x.update(m-p,200),m>
2v+1e3&&(b.update(1e3*o/(m-v),100),v=m,o=0,S)){var f=performance.memory;S.update(f.usedJSHeapSize/1048576,f.jsHeapSizeLimit/1048576)}return m},update:function(){p=this.end()},domElement:d,setMode:i}};return t.Panel=function(n,i,a){var d=1/0,p=0,v=Math.round,o=v(window.devicePixelRatio||1),b=80*o,x=48*o,S=3*o,m=2*o,f=3*o,w=15*o,P=74*o,_=30*o,L=document.createElement("canvas");L.width=b,L.height=x,L.style.cssText="width:80px;height:48px";var c=L.getContext("2d");return c.font="bold "+9*o+"px Helvetica,Arial,sans-serif",c.textBaseline="top",c.fillStyle=a,c.fillRect(0,0,b,x),c.fillStyle=i,c.fillText(n,S,m),c.fillRect(f,w,P,_),c.fillStyle=a,c.globalAlpha=.9,c.fillRect(f,w,P,_),{dom:L,update:function(u,l){d=Math.min(d,u),p=Math.max(p,u),c.fillStyle=a,c.globalAlpha=1,c.fillRect(0,0,b,w),c.fillStyle=i,c.fillText(v(u)+" "+n+" ("+v(d)+"-"+v(p)+")",S,m),c.drawImage(L,f+o,w,P-o,_,f,w,P-o,_),c.fillRect(f+P-o,w,o,_),c.fillStyle=a,c.globalAlpha=.9,c.fillRect(f+P-o,w,o,v((1-u/l)*_))}}},t})})(z);var ve=z.exports;const xe=q(ve);function Ee(s,e=[],t){const[n,i]=g.useState();return g.useLayoutEffect(()=>{const a=s();return i(a),()=>void 0},e),n}function ge({showPanel:s=0,className:e,parent:t}){const n=Ee(()=>new xe,[]);return g.useEffect(()=>{if(n){const i=t&&t.current||document.body;n.showPanel(s),i==null||i.appendChild(n.dom);const a=(e??"").split(" ").filter(v=>v);a.length&&n.dom.classList.add(...a);const d=J(()=>n.begin()),p=W(()=>n.end());return()=>{a.length&&n.dom.classList.remove(...a),i==null||i.removeChild(n.dom),d(),p()}}},[t,n,e,s]),null}const be=g.lazy(()=>B(()=>import("./Wizard-Village-CzguW5HN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),Se=()=>{const{progress:s}=re();return r.jsxs("div",{className:"text-primary h-screen grid place-items-center",children:[s," % loaded"]})},we=()=>{const{isMobile:s,isTablet:e}=Y(),{t}=$();return r.jsx(r.Fragment,{children:s||e?r.jsx("div",{className:"grid place-items-center h-screen text-amber-600 text-center animate-pulse",children:"Coming soon..."}):r.jsx("div",{className:"pt-[3%]",children:r.jsxs("div",{className:"flex flex-col gap-4 w-full h-screen pt-24 pb-4 px-12",children:[r.jsxs("div",{id:"instructions",className:"flex items-end justify-between",children:[r.jsxs("div",{className:"flex items-end gap-8",children:[r.jsxs("div",{children:[r.jsx("span",{className:"p-1 bg-amber-500 text-xl rounded ",children:"Z"})," ,",r.jsx("span",{className:"p-1 bg-amber-500 text-xl rounded ",children:"S"})," ,",r.jsx("span",{className:"p-1 bg-amber-500 text-xl rounded ",children:"Q"})," ,",r.jsx("span",{className:"p-1 bg-amber-500 text-xl rounded ",children:"D"})," ",t("move")]}),r.jsxs("div",{children:[r.jsx("span",{className:"p-1 bg-amber-500 text-xl rounded ",children:"Space"})," ",t("jump")]}),r.jsx("div",{children:t("scene")})]}),r.jsx("div",{children:t("load")})]}),r.jsx(g.Suspense,{fallback:r.jsx(Se,{}),children:r.jsxs(K,{shadows:!0,className:"rounded-2xl",children:[r.jsx("directionalLight",{intensity:1,castShadow:!0,"shadow-bias":-15e-5,"shadow-radius":4,"shadow-blur":10,"shadow-mapSize":[2048,2048],position:[85,80,70],"shadow-camera-left":-30,"shadow-camera-right":30,"shadow-camera-top":30,"shadow-camera-bottom":-30}),r.jsx("ambientLight",{intensity:1}),r.jsx(be,{}),r.jsx(pe,{}),r.jsx(ge,{})]})})]})})})},Pe=()=>r.jsxs(r.Fragment,{children:[r.jsx(X,{children:r.jsx("title",{children:"The Mall ✨ | Mystic Arcane"})}),r.jsx("div",{className:"max-w-screen min-h-dvh relative",children:r.jsx(we,{})})]}),ke=Q("/_public/mall")({component:Pe,pendingComponent:Z});export{ke as Route,Pe as default};

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.