1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69817,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r={bindSnapshot:function(){return h},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return d}};for(var i in r)Object.defineProperty(s,i,{enumerable:!0,get:r[i]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw o}getStore(){}run(){throw o}exit(){throw o}enterWith(){throw o}static bind(e){return e}}let a="u">typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return a?new a:new n}function h(e){return a?a.bind(e):n.bind(e)}function d(){return a?a.snapshot():function(e,...t){return e(...t)}}},2597,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,e.r(69817).createAsyncLocalStorage)()},67721,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=e.r(2597)},25891,(e,t,s)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"encodeURIPath",{enumerable:!0,get:function(){return r}})},26266,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=e.r(64146);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},69941,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=e.r(75937),i=e.r(14792),o=e.r(67721),n=e.r(25891),a=e.r(87527);function l({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let s=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;s.push(...e)}}if(0===s.length)return null;let h=(0,a.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:s.map(e=>{let s=`${t.assetPrefix}/_next/${(0,n.encodeURIPath)(e)}${h}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:s,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(s,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},79209,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return h}});let r=e.r(75937),i=e.r(36322),o=e.r(26266),n=e.r(69941);function a(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},h=function(e){let t={...l,...e},s=(0,i.lazy)(()=>t.loader().then(a)),h=t.loading;function d(e){let a=h?(0,r.jsx)(h,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,d=l?i.Suspense:i.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(n.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(s,{...e})]}):(0,r.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(s,{...e})});return(0,r.jsx)(d,{...l?{fallback:a}:{},children:c})}return d.displayName="LoadableComponent",d}},77574,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"default",{enumerable:!0,get:function(){return i}});let r=e.r(36437)._(e.r(79209));function i(e,t){let s={};"function"==typeof e&&(s.loader=e);let i={...s,...t};return(0,r.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof s.default||"object"==typeof s.default&&null!==s.default)&&void 0===s.default.__esModule&&(Object.defineProperty(s.default,"__esModule",{value:!0}),Object.assign(s.default,s),t.exports=s.default)}
1,35181,(e,t,s)=>{function r(){}r.prototype={on:function(e,t,s){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:s}),this},once:function(e,t,s){var r=this;function i(){r.off(e,i),t.apply(s,arguments)}return i._=t,this.on(e,i,s)},emit:function(e){for(var t=[].slice.call(arguments,1),s=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=s.length;r<i;r++)s[r].fn.apply(s[r].ctx,t);return this},off:function(e,t){var s=this.e||(this.e={}),r=s[e],i=[];if(r&&t)for(var o=0,n=r.length;o<n;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?s[e]=i:delete s[e],this}},t.exports=r,t.exports.TinyEmitter=r},63694,e=>{"use strict";var t=e.i(75937);let s=(0,e.i(77574).default)(()=>e.A(79320).then(e=>e.GlCanvasMount),{loadableGenerated:{modules:[95595]},ssr:!1});e.s(["GlRoot",0,function(){return(0,t.jsx)(s,{})}])},30713,e=>{"use strict";var t=e.i(75937),s=e.i(2885),r=e.i(36322),i=e.i(81756),o=e.i(77806),n=e.i(37510),a=e.i(26357),l=e.i(2039),h=e.i(75157),d=e.i(28747);e.s(["Follower",0,function(){let e=(0,r.useSyncExternalStore)(d.followerStore.subscribe,d.followerStore.getSnapshot,d.followerStore.getServerSnapshot),c=(0,r.useRef)(null),u=e?.align,{getBounds:p}=(0,s.useBounds)(c),f=(0,r.useRef)({target:{x:0,y:0},pos:{x:0,y:0},primed:!1,trail:"right",side:"right",origin:null}).current;(0,r.useEffect)(()=>{let e=e=>{f.target.x=e.clientX,f.target.y=e.clientY,f.primed||(f.pos.x=f.target.x,f.pos.y=f.target.y,f.primed=!0)};return window.addEventListener("pointermove",e,{passive:!0}),()=>window.removeEventListener("pointermove",e)},[f]);let g=(0,r.useRef)(16);(0,r.useEffect)(()=>{let e=()=>{let e=c.current;e&&(g.current=+(parseFloat(getComputedStyle(e).fontSize)||16))};return e(),window.addEventListener("resize",e,{passive:!0}),()=>window.removeEventListener("resize",e)},[]);let m=()=>{let t=c.current;if(!t||!e)return;let{target:s,pos:r}=f,i=p(),o=n.metri.windowSize;if(!i||!o)return;let{width:a}=i,l=u??f.side,h=e.gap??g.current;"right"===l&&r.x+h+a>o.width?l="left":"left"===l&&r.x-h-a<0&&(l="right");let d=Math.max(-7,Math.min(7,(s.y-r.y)*.3))*("left"===l?1:-1);f.origin!==l&&(t.style.transformOrigin="left"===l?"top right":"top left",f.origin=l);let m="left"===l?`calc(-100% - ${h}px)`:`${h}px`;t.style.transform=`translate3d(${r.x}px, ${r.y}px, 0) translate(${m}, -50%) rotate(${d}deg)`};return(0,r.useLayoutEffect)(()=>{f.side=f.trail},[e,f]),(0,r.useLayoutEffect)(m),(0,r.useEffect)(()=>{let e=l.Tempus.add(({deltaTime:e})=>{let t=1-Math.exp(-.03*e);f.pos.x+=(f.target.x-f.pos.x)*t,f.pos.y+=(f.target.y-f.pos.y)*t;let s=f.target.x-f.pos.x;Math.abs(s)>1&&(f.trail=s>0?"left":"right"),m()},{order:a.TEMPUS_ORDER.GSAP});return()=>e?.()}),(0,t.jsx)("span",{ref:c,"aria-hidden":!0,className:(0,h.cn)("pointer-events-none fixed top-0 left-0 z-(--z-header) w-fit",!e&&"invisible"),children:(0,t.jsxs)(o.Tag,{variant:e?.tone??"primary",size:"md",className:"inline-flex items-center gap-em-[4/16]",children:[e?.content??"",e?.external&&(0,t.jsx)(i.ArrowUpRightIcon,{className:"size-em-[10/16]"})]})})}])},28747,e=>{"use strict";let t=new Map,s=new Set,r=1,i=null,o=()=>{let e=null;for(let s of t.values())(!e||(s.priority??0)>=(e.priority??0))&&(e=s);if(e!==i)for(let t of(i=e,s))t()};e.s(["followerStore",0,{set(e){let s=r++;return t.set(s,{...e,token:s}),o(),s},clear(e){null!=e&&t.delete(e)&&o()},getSnapshot:()=>i,getServerSnapshot:()=>null,subscribe:e=>(s.add(e),()=>s.delete(e))}])},62323,e=>{"use strict";let t=[{name:"X",label:"X.COM/JOYCO_STUDIO",shortLabel:"x.com",href:"https://x.com/joyco_studio"},{name:"LinkedIn",label:"LINKEDIN.COM/JOYCO-STUDIO-LLC",shortLabel:"linkedin.com",href:"https://linkedin.com/company/joyco-studio-llc"},{name:"Instagram",label:"INSTAGRAM.COM/JOYCO.STUDIO",shortLabel:"instagram.com",href:"https://instagram.com/joyco.studio"}];var s=e.i(73667);let r=[[{title:"Specialty",items:["Branding","Design Systems","Web Design","Front-End Development","Digital Products"]},{title:"Focus",items:["Design","Development","Interaction","Performance"]},{title:"Headquarters",items:["BS.AS, Argentina","Saavedra"]}
1,{title:"Area Served",items:["All Around The World"]},{title:"Key Services",items:["Brand Identity","Visual Systems","Website Design","Product Interfaces","Creative Direction"]}],[{title:"Collaboration",items:["Startups","Creative Teams","Tech-Driven Companies"]},{title:"Time Zone",items:[s.STUDIO_INFO.timezone]},{title:"Availability",items:[s.STUDIO_INFO.days,s.STUDIO_INFO.hours]},{title:"Website",items:[{label:"JOYCO.STUDIO",href:"https://joyco.studio"}]},{title:"Social",items:t.map(e=>({label:e.label,shortLabel:e.shortLabel,href:e.href}))}]],i=[{title:"Software Engineer",description:"We are looking for a software engineer to join our team.",href:"/jobs/software-engineer"}];e.i(66539);var o=e.i(74568);let n={name:"JOYCO",legalName:"Joyco Studio",alternateNames:["Joyco","JOYCO Studio","joyco.studio"],url:"https://joyco.studio",tagline:"The new generation of rebels",coordinates:"34°36â²14â³S 58°22â²53â³W",hotline:"0800-333-JOYCO",locality:"Buenos Aires",region:"Saavedra",country:"AR",countryName:"Argentina",areaServed:"Worldwide",timezone:s.STUDIO_INFO.timezone,days:s.STUDIO_INFO.days,hours:s.STUDIO_INFO.hours,email:"[email protected]",github:"https://github.com/joyco-studio",lab:"https://lab.joyco.studio",hub:"https://hub.joyco.studio",socials:t},a=e=>r.flat().find(t=>t.title===e)?.items.map(e=>"string"==typeof e?e:e.label)??[],l=a("Specialty"),h=a("Key Services"),d=a("Focus"),c=a("Collaboration");(e=>{let t=new Map;for(let s of e){let e=s.toLowerCase();t.has(e)||t.set(e,s)}return[...t.values()]})([...l,...h,...o.SHOWCASE_PROJECTS.flatMap(e=>e.categories).filter(e=>"Internal"!==e)]),n.github,n.lab,n.hub;let u=e=>e.length<2?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`,p=e=>e.map(e=>e.toLowerCase());[(u(p(l)),u(p(h)),u(p(d))),(u(c),n.locality,u([{name:"Sazabi",href:"https://sazabi.com"},{name:"Vercel",href:"https://vercel.com"},{name:"Mistral",href:"https://mistral.ai"},{name:"v0",href:"https://v0.dev"},{name:"Cerebral Valley",href:"https://cerebralvalley.ai"}].map(e=>e.name)),u(["Rampant","Andrés Briganti","Johanna Arrieta"])),(n.github,n.lab,n.hub),(n.locality,n.region,n.countryName,n.days,n.hours,n.timezone),...i.length>0?[{question:"Is JOYCO hiring?",answer:`Open positions right now: ${i.map(e=>e.title).join(", ")}. Applications go to ${n.email}.`}]:[],(n.email,n.locality,n.timezone,n.days,n.hours)];let f={path:"/ai",navLabel:"Agents & CEOs",title:"For agents and boring decision makers"};n.name,f.path,f.path,e.s(["AGENT_VIEW",0,f,"SITE",0,n],62323)},74568,e=>{"use strict";var t=e.i(86851);e.s(["SHOWCASE_PROJECTS",()=>t.PROJECTS])},73667,e=>{"use strict";e.s(["STUDIO_INFO",0,{timezone:"GMT-3 (ART)",days:"MON - FRI",hours:"9:00 - 18:00"}])},80116,e=>{"use strict";var t=e.i(19298);let s=t.asset.models("hero-building-cartel.glb"),r=t.asset.models("enviroment_hero.exr");e.s(["HERO_ENV_ENTRY",0,{url:r,type:"exr"},"HERO_ENV_URL",0,r,"HERO_MODEL_ENTRY",0,{url:s,type:"gltf"},"HERO_MODEL_URL",0,s])},37510,e=>{"use strict";let t,s,r;var i=Object.create,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,d=((e,t,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of a(t))h.call(e,r)||void 0===r||o(e,r,{get:()=>t[r],enumerable:!(s=n(t,r))||s.enumerable});return e})(o(null!=(r=(t={"node_modules/.pnpm/[email protected]/node_modules/tiny-emitter/index.js"(e,t){function s(){}s.prototype={on:function(e,t,s){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:s}),this},once:function(e,t,s){var r=this;function i(){r.off(e,i),t.apply(s,arguments)}return i._=t,this.on(e,i,s)},emit:function(e){for(var t=[].slice.call(arguments,1),s=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=s.length;r<i;r++)s[r].fn.apply(s[r].ctx,t);return this},off:function(e,t){var s=this.e||(this.e={}),r=s[e],i=[];if(r&&t)for(var o=0,n=r.length;o<n;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?s[e]=i:delete s[e],this}},t.exports=s,t.exports.TinyEmitter=s}},function(){return s||(0,t[a(t)[0]])((s={exports:{}}).exports,s),s.exports})())?i(l(r)):{},"default",{value:r,enumerable:!0}),r),c=class{constructor(){this.emitter=new d.TinyEmitter}on(e,t){return this.emitter.on(e,t),()=>this.off(e,t)}once(e,t){this.emitter.once(e,t)}off(e,t){this.emitter.off(e,t)}emit(e,t){this.emitter.emit(e,t)}},u=()=>new DOMException("Measurement canceled","AbortError"),p="scroll",f="viewportResize",g=(e,t)=>e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height,m=()=>"u">typeof window?{scrollX:window.scrollX,scrollY:window.scrollY}:{scrollX:0,scrollY:0},b=e=>{if(!("u">typeof window))return()=>{};let t=()=>e({scrollX:window.scrollX,scrollY:window.scrollY});return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},v=class extends c{constructor(e){super(),this.cache=new Map,this.observers=new Map,this.resizeObserver=null,this.viewportHost=null,this.viewportProbes=new Map,this.subscriptions=new Map,this.progressDisposers=new Set,this.pendingInitial=new Set,this.pending=new Map,this.requests=new Set,this.lastNotified=new Map,this.frameId=null,this.flushing=!1,this.generation=0,this.scrollState={scrollX:0,scrollY:0},this._handleResize=null,this.scrollUnsubscribe=null,this._debugState=null,this.cache=new Map,this.autoUpdate=e?.autoUpdate??!0,this._scrollGetter=e?.scrollGetter??m,this._scrollListener=e?.scrollListener??b,this._debugOption=e?.debug??!1,this._debugState=e?.debug?{getBoundingClientRectCalls:0,cacheHits:0,cacheMisses:0,updateCount:0,refreshCount:0,resizeObserverFires:0,intervalId:null}:null}computeWindowBounds(){return{x:0,y:0,top:0,right:window.innerWidth,bottom:window.innerHeight,left:0,width:window.innerWidth,height:window.innerHeight}}computeDocBounds(e,t){this._debugState&&this._debugState.getBoundingClientRectCalls++;let s=e.getBoundingClientRect();return{x:s.x+t.scrollX,y:s.y+t.scrollY,top:s.top+t.scrollY,right:s.right+t.scrollX,bottom:s.bottom+t.
1scrollY,left:s.left+t.scrollX,width:s.width,height:s.height}}get windowSize(){return this.readCache(window)}get viewport(){return this.viewportSnapshot}attachViewportProbes(){if(this.viewportHost)return;let e=["svh","lvh","dvh"].filter(e=>window.CSS?.supports("height",`100${e}`));if(!e.length)return;let t=document.createElement("div");t.setAttribute("aria-hidden","true"),t.style.cssText="all: initial !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 0 !important; height: 0 !important; display: block !important; overflow: hidden !important; visibility: hidden !important; pointer-events: none !important; contain: strict !important;";let s=t.attachShadow({mode:"closed"});for(let t of e){let e=document.createElement("div");e.style.cssText=`all: initial; position: absolute; top: 0; left: 0; display: block; width: 1px; height: 100${t};`,s.append(e),this.viewportProbes.set(e,t),this.resizeObserver?.observe(e)}document.documentElement.append(t),this.viewportHost=t}readViewport(e){let t={svh:void 0,lvh:void 0,dvh:void 0};for(let[e,s]of this.viewportProbes)this._debugState&&this._debugState.getBoundingClientRectCalls++,t[s]=e.getBoundingClientRect().height;let s={width:e.width,height:e.height,...t},r=this.viewportSnapshot;r&&r.width===s.width&&r.height===s.height&&r.svh===s.svh&&r.lvh===s.lvh&&r.dvh===s.dvh||(this.viewportSnapshot=s)}readCache(e){let t=this.cache.get(e);return this._debugState&&(t?this._debugState.cacheHits++:this._debugState.cacheMisses++),t}inSpace(e,t,s=this.scrollState){return t?.space==="viewport"?this.toViewportBounds(e,s):e}captureScroll(){return this.scrollState=this._scrollGetter(),{...this.scrollState}}measure(e,t){return Array.isArray(e)?Promise.all(e.map(e=>this.enqueueRequest(e,t))):this.enqueueRequest(e,t)}measureSync(e,t){let s=Array.isArray(e)?e:[e],r=this.captureScroll(),i=this.readBatch(s,r),o=s.map(e=>{let s=i.get(e);return e instanceof Window?s:this.inSpace(s,t,r)});return Array.isArray(e)?o:o[0]}track(e,t,s){let r=this.subscriptions.get(e);r||(r=new Set,this.subscriptions.set(e,r),this.cache.delete(e),this.lastNotified.delete(e),this.pendingInitial.add(e),this.resizeObserver?.observe(e));let i={listener:t,space:s?.space??"document",controller:new AbortController};r.add(i),this.pendingInitial.has(e)||queueMicrotask(()=>{if(i.controller.signal.aborted||i.lastDelivered)return;let t=this.cache.get(e);t&&this.deliver(i,t,this.scrollState)});let o=()=>{if(i.controller.signal.aborted)return;let t=this.readCache(e);return t&&this.inSpace(t,i)};return{get bounds(){return o()},refresh:()=>(this._debugState&&this._debugState.refreshCount++,this.enqueueRequest(e,{space:i.space,signal:i.controller.signal},!0)),dispose:()=>{if(i.controller.signal.aborted||(i.controller.abort(),r.delete(i),r.size||this.subscriptions.get(e)!==r))return;this.resizeObserver?.unobserve(e),this.subscriptions.delete(e),this.pendingInitial.delete(e),this.cache.delete(e),this.lastNotified.delete(e);let t=this.pending.get(e);t&&(t.automatic=!1,t.requests.size||this.pending.delete(e)),this.cancelIdleFrame()}}}progress(e,t={}){let s,r,i,{mode:o="lvh",onProgress:n}=t,a=0,l=!1,h=(e=!1,t=!0)=>{if(l)return;let h=d.bounds,c=this.viewport?.[o],{scrollY:u}=this.scrollState;!h||void 0===c||c+h.height<=0||(a=Math.max(0,Math.min(1,(c-(h.y-u))/(c+h.height))),!t||(e||h!==s||c!==r||u!==i)&&(s=h,r=c,i=u,n?.(a)))},d=this.track(e,()=>h());h(!1,!1);let c=this.on(p,()=>h(!0)),u=this.on(f,()=>h()),g=()=>{l||(l=!0,c(),u(),d.dispose(),this.progressDisposers.delete(g))};return this.progressDisposers.add(g),{get current(){return a},dispose:g}}enqueue(e){let t=this.pending.get(e);return t||(t={automatic:!1,requests:new Set},this.pending.set(e,t)),t}enqueueRequest(e,t,s=!1){let r=t?.signal;return r?.aborted?Promise.reject(r.reason??u()):new Promise((i,o)=>{let n=this.enqueue(e),a=()=>{this.requests.delete(l),n.requests.delete(l),r?.removeEventListener("abort",h),n.automatic||n.requests.size||this.pending.get(e)!==n||(this.pending.delete(e),this.cancelIdleFrame())},l={forceNotify:s,resolve:(s,r)=>{a(),i(e instanceof Window?s:this.inSpace(s,t,r))},reject:e=>{a(),o(e)}},h=()=>l.reject(r?.reason??u());this.requests.add(l),n.requests.add(l),r?.addEventListener("abort",h,{once:!0}),this.scheduleUpdate()})}scheduleUpdate(){this.autoUpdate&&null===this.frameId&&this.pending.size&&!this.flushing&&(this.frameId=requestAnimationFrame(()=>{this.frameId=null,this.update()}))}cancelIdleFrame(){this.pending.size||null===this.frameId||(cancelAnimationFrame(this.frameId),this.frameId=null)}update(){if(this.flushing)return;this.pending.size&&this._debugState&&this._debugState.updateCount++,null!==this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=null;let e=this.pending;this.pending=new Map,this.flush(e)}readBatch(e,t){let s=new Map;for(let r of new Set(e)){let e=r instanceof Window?this.computeWindowBounds():this.computeDocBounds(r,t),i=this.cache.get(r),o=i&&g(i,e)?i:e;this.cache.set(r,o),r instanceof Window&&this.readViewport(o),s.set(r,o)}return s}deliver(e,t,s){e.lastDelivered=t,e.listener?.(this.inSpace(t,e,s))}flush(e){if(!e.size)return;this.flushing=!0;let t=this.generation,s=this.captureScroll();try{let r=this.readBatch(e.keys(),s),i=[...e].map(([e,t])=>{let s=r.get(e);e instanceof Window||this.pendingInitial.delete(e);let i=this.lastNotified.get(e),o=[...t.requests].some(e=>e.forceNotify),n=!i||!g(i,s),a=e instanceof Window?void 0:this.subscriptions.get(e);return{target:e,pending:t,bounds:s,force:o,changed:n,owners:a,subscriptions:[...a??[]]}}),o=[],n=this.viewportSnapshot;if(e.has(window)&&n&&n!==this.lastNotifiedViewport){this.lastNotifiedViewport=n;
1try{this.emit(f,n)}catch(e){o.push(e)}}for(let e of i){if(t!==this.generation)break;let{target:r,pending:i,bounds:n,force:a,changed:l,owners:h,subscriptions:d}=e;for(let e of d)if(!e.controller.signal.aborted&&!(!a&&e.lastDelivered&&g(e.lastDelivered,n)))try{this.deliver(e,n,s)}catch(e){o.push(e)}if(t!==this.generation)break;if((l||a)&&(r instanceof Window||this.subscriptions.get(r)===h)){this.lastNotified.set(r,n);try{this.emit("refresh",{target:r,rect:r instanceof Window?n:this.inSpace(n,{space:"viewport"},s),metri:this})}catch(e){o.push(e)}}for(let e of[...i.requests])this.requests.has(e)&&e.resolve(n,s)}if(o.length)throw o[0]}catch(t){for(let s of e.values())for(let e of[...s.requests])e.reject(t);throw t}finally{this.flushing=!1,this.scheduleUpdate()}}debugSnapshot(){if(!this._debugState)return null;let e=this._debugState;return{getBoundingClientRectCalls:e.getBoundingClientRectCalls,cacheHits:e.cacheHits,cacheMisses:e.cacheMisses,trackedElementCount:this.subscriptions.size,updateCount:e.updateCount,refreshCount:e.refreshCount,resizeObserverFires:e.resizeObserverFires,intersectionObserverCount:this.observers.size,cacheSize:this.cache.size}}resetDebugCounters(){this._debugState&&(this._debugState.getBoundingClientRectCalls=0,this._debugState.cacheHits=0,this._debugState.cacheMisses=0,this._debugState.updateCount=0,this._debugState.refreshCount=0,this._debugState.resizeObserverFires=0)}debugReset(){this.resetDebugCounters()}initialize(){this.attachResizeObserver(),this.attachViewportProbes(),this.attachResizeListener(),this.attachScrollListener(),this.enqueue(window).automatic=!0,this.scheduleUpdate(),this._debugState&&"object"==typeof this._debugOption&&this._debugOption.interval>0&&"u">typeof window&&(this._debugState.intervalId&&clearInterval(this._debugState.intervalId),this._debugState.intervalId=setInterval(()=>{console.table(this.debugSnapshot()),this.resetDebugCounters()},this._debugOption.interval))}getConfigKey(e){let{root:t,rootMargin:s,threshold:r}=e;return JSON.stringify({root:t||null,rootMargin:s||"0px",threshold:r||0})}getIntersectionObserver(e,t){let s=this.getConfigKey(e);if(this.observers.has(s))return this.observers.get(s);let r=new IntersectionObserver(t,e);return this.observers.set(s,r),r}observe(e,t){let s=this.getIntersectionObserver(t,e=>{e.forEach(e=>{this.emit("observe",{target:e.target,visible:e.isIntersecting,entry:e,metri:this})})});return s.observe(e),s}unobserve(e){this.observers.forEach(t=>t.unobserve(e))}disposeIntersectionObserver(e){let t=this.getConfigKey(e),s=this.observers.get(t);s&&(s.disconnect(),this.observers.delete(t))}disposeIntersectionObservers(){this.observers.forEach(e=>e.disconnect()),this.observers.clear()}attachResizeObserver(){if(this.resizeObserver)return;let e=new ResizeObserver(t=>{if(this.resizeObserver!==e)return;this._debugState&&(this._debugState.resizeObserverFires+=t.length);let s=new Map;for(let{target:e}of t){let t=this.viewportProbes.get(e);if(t){this.viewportSnapshot?.[t]===void 0?s.has(window)||(s.set(window,this.pending.get(window)??{automatic:!0,requests:new Set}),this.pending.delete(window)):this.enqueue(window).automatic=!0;continue}if(this.subscriptions.has(e))if(this.pendingInitial.has(e)){if(s.has(e))continue;s.set(e,this.pending.get(e)??{automatic:!0,requests:new Set}),this.pending.delete(e)}else this.enqueue(e).automatic=!0}this.cancelIdleFrame(),this.flush(s),this.scheduleUpdate()});for(let t of(this.resizeObserver=e,this.subscriptions.keys()))e.observe(t)}attachResizeListener(){this._handleResize||(this._handleResize=()=>{for(let e of(this.enqueue(window).automatic=!0,this.subscriptions.keys()))this.pendingInitial.has(e)||(this.enqueue(e).automatic=!0);for(let e of this.cache.keys())e instanceof Window||this.subscriptions.has(e)||(this.cache.delete(e),this.lastNotified.delete(e));this.scheduleUpdate()},window.addEventListener("resize",this._handleResize))}detachResizeListener(){this._handleResize&&(window.removeEventListener("resize",this._handleResize),this._handleResize=null)}attachScrollListener(){this.scrollUnsubscribe||(this.scrollState=this._scrollGetter(),this.scrollUnsubscribe=this._scrollListener(e=>
1{this.scrollState=e,this.emit(p,e)}))}setScrollHandlers(e,t){this.detachScrollListener(),this._scrollGetter=e,this._scrollListener=t,this.attachScrollListener()}detachScrollListener(){this.scrollUnsubscribe?.(),this.scrollUnsubscribe=null}toViewportBounds(e,t=this.scrollState){let{scrollX:s,scrollY:r}=t;return{x:e.x-s,y:e.y-r,top:e.top-r,right:e.right-s,bottom:e.bottom-r,left:e.left-s,width:e.width,height:e.height}}get scroll(){return this.scrollState}disposeAll(){for(let e of(this.generation++,this.progressDisposers))e();for(let e of(null!==this.frameId&&cancelAnimationFrame(this.frameId),this.frameId=null,this.resizeObserver?.disconnect(),this.resizeObserver=null,this.viewportHost?.remove(),this.viewportHost=null,this.viewportProbes.clear(),this.viewportSnapshot=void 0,this.lastNotifiedViewport=void 0,this.subscriptions.values()))for(let t of e)t.controller.abort();for(let e of[...this.requests])e.reject(u());this.subscriptions.clear(),this.pending.clear(),this.pendingInitial.clear(),this.lastNotified.clear(),this._debugState?.intervalId&&(clearInterval(this._debugState.intervalId),this._debugState.intervalId=null),this.disposeIntersectionObservers(),this.detachResizeListener(),this.detachScrollListener(),this.cache.clear()}};class w extends v{handles=new Set;track(...e){let t=super.track(...e),s=t.dispose.bind(t);return this.handles.add(t),t.dispose=()=>{this.handles.delete(t),s()},t}async refreshLayout(){await Promise.all([...this.handles].map(e=>e.refresh().catch(e=>{if(!(e instanceof DOMException&&"AbortError"===e.name))throw e})))}disposeAll(){this.handles.clear(),super.disposeAll()}}let y=new w;y.initialize(),e.s(["metri",0,y],37510)},41067,78082,e=>{"use strict";var t=e.i(35181),s=class{constructor(){this.emitter=new t.TinyEmitter}on(e,t){return this.emitter.on(e,t),()=>this.off(e,t)}once(e,t){this.emitter.once(e,t)}off(e,t){this.emitter.off(e,t)}emit(e,t){this.emitter.emit(e,t)}},r=class extends s{constructor(e){super(),this.url=e,this.loaded=!1,this.status="idle",this.content=null,this.progress=0,this._resetPromise()}get loading(){return"loading"===this.status}load(e=!0){return"loading"===this.status||e&&"loaded"===this.status||("idle"!==this.status&&this._resetPromise(),this.status="loading",this.loaded=!1,this.progress=0,this._load()),this.promise}_load(){throw Error("Method not implemented")}_onLoaded(){this.loaded=!0,this.status="loaded",this.progress=1,this._resolve(this.content),this.emit("loaded",this)}_onError(e){this.status="error",this._reject(e),this.progress=0,this.emit("error",e)}_resetPromise(){this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}_onProgress(e){this.progress=e,this.emit("progress",this)}},i=class extends r{constructor(e,t={}){super(e),this.content=new Image,this.srcSet=t.srcSet,this.sizes=t.sizes}_load(){this.srcSet&&(this.content.srcset=this.srcSet),this.sizes&&(this.content.sizes=this.sizes),this.content.src=this.url,this.content.onload=()=>this._onLoaded(),this.content.onerror=e=>this._onError(e)}};i.type="image";var o=class extends r{constructor(e,t={}){super(e),this._attempt=null,this.content=t.video||document.createElement("video"),this.loadEvent=t.loadEvent||"canplay"}_load(){let e=this.content;this._attempt?.abort();let t=new AbortController;this._attempt=t;let{signal:s}=t;e.src=this.url,e.addEventListener(this.loadEvent,()=>{t.abort(),this._onLoaded()},{signal:s}),e.addEventListener("error",e=>{t.abort(),this._onError(e)},{signal:s})}};o.type="video";var n=class extends r{constructor(e,t={}){super(e),this._attempt=null,this.content=t.audio||document.createElement("audio"),this.loadEvent=t.loadEvent||"canplay"}_load(){let e=this.content;this._attempt?.abort();let t=new AbortController;this._attempt=t;let{signal:s}=t;e.src=this.url,e.addEventListener(this.loadEvent,()=>{t.abort(),this._onLoaded()},{signal:s}),e.addEventListener("error",e=>{t.abort(),this._onError(e)},{signal:s})}};n.type="audio";var a=class extends r{constructor(e,t){super(e),this.loadFn=t.loadFn}_load(){this.loadFn?this.loadFn({url:this.url,done:e=>{this.content=e,this._onLoaded()},error:e=>this._onError(e),progress:e=>this._onProgress(e)}):this._onError(Error("No load function provided"))}};a.type="generic";var l=class extends s{constructor(e,t={}){super(),this.loadCount=0,this.progress=0,this.completed=!1,this._counted=new Set,this.items=e,this.loadLength=e.length,this.promise=new Promise(e=>{this._resolve=e}),t.onProgress&&this.on("progress",t.onProgress),t.onCompleted&&this.once("completed",t.onCompleted),t.onError&&this.on("error",t.onError),Promise.resolve().then(()=>this._start())}
1_start(){if(0===this.loadLength){this.progress=1,this.emit("progress",{value:1,loader:null,batch:this}),this._finish();return}Promise.all(this.items.map(e=>e.promise.then(()=>this._tick(e)).catch(t=>{this.emit("error",{loader:e.loader,error:t,batch:this}),this._tick(e)}))).then(()=>this._finish())}_tick(e){this._counted.has(e)||(this._counted.add(e),this.loadCount=this._counted.size,this.progress=this.loadCount/this.loadLength,this.emit("progress",{value:this.progress,loader:e.loader,batch:this}))}_finish(){this.completed=!0,this.progress=1,this._resolve(this),this.emit("completed",this)}},h=class{constructor(e){this.items=new Map,this.loaders=e}get(e){return this.items.get(e)}_resolve(e,t,s){let r=this.items.get(e);if(r)return r;let i=this.loaders[t];if(!i)throw Error(`No loader registered for type "${String(t)}"`);let o=new i(e,s);return this.items.set(e,o),o}load(e,t){let s=this._resolve(e,t.type,t.loaderArgs);return this._runLoad(s,{postprocess:t.postprocess,onLoaded:t.onLoaded,onProgress:t.onProgress,onError:t.onError},t.cache??!0)}_runLoad(e,t,s){let r,{postprocess:i,onLoaded:o,onProgress:n,onError:a}=t;n&&(r=e=>n(e.progress,e),e.on("progress",r));let l=()=>{r&&(e.off("progress",r),r=void 0)};return e.load(s).then(async t=>{let s=i?await i(t,e):t;return l(),o?.(s,e),s}).catch(t=>{throw l(),a?.(t,e),t})}batch(e,t={}){return new l(e.map(e=>{let t=this._resolve(e.url,e.type,e.loaderArgs),s={postprocess:e.postprocess,onLoaded:e.onLoaded,onProgress:e.onProgress,onError:e.onError};return{loader:t,promise:this._runLoad(t,s,e.cache??!0)}}),t)}};new h({image:i,video:o,audio:n,generic:a}),e.s(["ImageLoader",0,i,"Susano",0,h,"SusanoLoader",0,r],78082);let d=null;e.s(["GLTFSusanoLoader",0,class extends r{static type="gltf";_load(){(d??=Promise.all([e.A(54797),e.A(57528)]).then(([{GLTFLoader:e},{MeshoptDecoder:t}])=>{let s=new e;return s.setMeshoptDecoder(t),s})).then(e=>e.load(this.url,e=>{var t;let s;this.content=Object.assign(e,(t=e.scene,s={nodes:{},materials:{}},t.traverse(e=>{e.name&&(s.nodes[e.name]=e);let t=e.material;t?.name&&!s.materials[t.name]&&(s.materials[t.name]=t)}),s)),this._onLoaded()},e=>{e.lengthComputable&&this._onProgress(e.loaded/e.total)},e=>this._onError(e)),e=>this._onError(e))}},"hasGLTFAuthoredMaterial",0,(e,t)=>(Array.isArray(t)?t:[t]).some(t=>e.parser.associations.get(t)?.materials!==void 0)],41067)},36211,e=>{"use strict";var t=e.i(78082),s=e.i(41067),r=t;let i=null;class o extends r.SusanoLoader{static type="exr";_load(){(i??=e.A(23504).then(({EXRLoader:e})=>new e)).then(e=>e.load(this.url,e=>{this.content=e,this._onLoaded()},e=>{e.lengthComputable&&this._onProgress(e.loaded/e.total)},e=>this._onError(e)),e=>this._onError(e))}}var n=t;let a=null;class l extends n.SusanoLoader{static type="hdr";_load(){(a??=e.A(86652).then(({HDRLoader:e})=>new e)).then(e=>e.load(this.url,e=>{this.content=e,this._onLoaded()},e=>{e.lengthComputable&&this._onProgress(e.loaded/e.total)},e=>this._onError(e)),e=>this._onError(e))}}var h=t;let d=null;class c extends h.SusanoLoader{static type="texture";_load(){(d??=e.A(24945).then(({TextureLoader:e})=>new e)).then(e=>e.load(this.url,e=>{this.content=e,this._onLoaded()},void 0,e=>this._onError(e)),e=>this._onError(e))}}let u={image:t.ImageLoader,gltf:s.GLTFSusanoLoader,exr:o,hdr:l,texture:c},p=new t.Susano(u),f=async e=>(await e.decode(),e);e.s(["preload",0,(e,t)=>p.batch(Object.values(e).map(e=>"image"===e.type?{postprocess:f,...e}:e),t),"susano",0,p],36211)}]);
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.