"use strict";(()=>{var e={};e.id=451,e.ids=[451],e.modules={8667:(e,t)=>{Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o}});var o=function(e){return e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE",e}({})},33480:(e,t,o)=>{e.exports=o(75600)},44748:(e,t,o)=>{o.r(t),o.d(t,{config:()=>d,default:()=>u,routeModule:()=>c});var r={};o.r(r),o.d(r,{default:()=>i});var n=o(33480),a=o(8667),l=o(86435),s=o(95193);function i(e,t){let{id:o}=e.query;if(!o||"string"!=typeof o)return t.status(400).json({error:"Invalid map ID"});let r=(0,s.rl)(o);if(!r)return t.status(404).json({error:"Map session not found"});t.status(200).json({id:r.id,region:r.region,tileUrl:r.tileUrl,layers:r.layers,metadata:r.metadata,created:r.created.toISOString()})}let u=(0,l.M)(r,"default"),d=(0,l.M)(r,"config"),c=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/map/[id]",pathname:"/api/map/[id]",bundlePath:"",filename:""},userland:r})},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},86435:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,o){return o in t?t[o]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,o)):"function"==typeof t&&"default"===o?t:void 0}}})},95193:(e,t,o)=>{o.d(t,{E6:()=>r,gw:()=>a,rl:()=>l}),global.eeStore||(global.eeStore={composites:{},metadata:{},results:{},mapSessions:{},eeCache:{}},console.log("[GlobalStore] Initialized new global store"));let r=global.eeStore.composites;global.eeStore.metadata,global.eeStore.results;let n=global.eeStore.mapSessions;function a(e,t){n[e]=t,console.log(`[GlobalStore] Added map session: ${e}`),console.log(`[GlobalStore] Total map sessions: ${Object.keys(n).length}`)}function l(e){return console.log(`[GlobalStore] Fetching map session: ${e}`),console.log(`[GlobalStore] Available sessions: ${Object.keys(n).join(", ")}`),n[e]}global.eeStore.eeCache}};var t=require("../../../webpack-api-runtime.js");t.C(e);var o=t(t.s=44748);module.exports=o})();