1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
(()=>{var e={};e.id=6997,e.ids=[6997],e.modules={163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return n}});let n=r(71042).unstable_rethrow;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10476:(e,t,r)=>{Promise.resolve().then(r.bind(r,84310))},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11723:e=>{"use strict";e.exports=require("querystring")},12412:e=>{"use strict";e.exports=require("assert")},14985:e=>{"use strict";e.exports=require("dns")},15170:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l});var n=r(37413),s=r(35426),a=r(26690),i=r(39916),o=r(88384);async function l(){return await (0,s.getServerSession)(a.N)||(0,i.redirect)("/signin"),(0,n.jsx)(o.ObservatoryView,{})}},19121:e=>{"use strict";e.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19587:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},21820:e=>{"use strict";e.exports=require("os")},27910:e=>{"use strict";e.exports=require("stream")},28354:e=>{"use strict";e.exports=require("util")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:e=>{"use strict";e.exports=require("path")},34631:e=>{"use strict";e.exports=require("tls")},39916:(e,t,r)=>{"use strict";var n=r(97576);r.o(n,"notFound")&&r.d(t,{notFound:function(){return n.notFound}}),r.o(n,"redirect")&&r.d(t,{redirect:function(){return n.redirect}})},41204:e=>{"use strict";e.exports=require("string_decoder")},46924:(e,t,r)=>{Promise.resolve().then(r.bind(r,88384))},48976:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E488",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forbidden",{enumerable:!0,get:function(){return n}}),r(8704).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}});let n=r(37366)._(r(64963));function s(e,t){var r;let s={};"function"==typeof e&&(s.loader=e);let a={...s,...t};return(0,n.default)({...a,modules:null==(r=a.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55511:e=>{"use strict";e.exports=require("crypto")},55591:e=>{"use strict";e.exports=require("https")},56780:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let n=r(81208);function s(e){let{reason:t,children:r}=e;throw Object.defineProperty(new n.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},57269:(e,t,r)=>{"use strict";r.r(t),r.d(t,{GlobalError:()=>i.a,__next_app__:()=>c,pages:()=>d,routeModule:()=>f,tree:()=>u});var n=r(65239),s=r(48088),a=r(88170),i=r.n(a),o=r(30893),l={};for(let e in o)0>["default","tree","pages","GlobalError","__next_app__","routeModule"].indexOf(e)&&(l[e]=()=>o[e]);r.d(t,l);let u={children:["",{children:["observatory",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(r.bind(r,15170)),"/Users/alma/Documents/NeahNew/app/observatory/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(r.bind(r,58014)),"/Users/alma/Documents/NeahNew/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(r.t.bind(r,57398,23)),"next/dist/client/components/not-found-error"],forbidden:[()=>Promise.resolve().then(r.t.bind(r,89999,23)),"next/dist/client/components/forbidden-error"],unauthorized:[()=>Promise.resolve().then(r.t.bind(r,65284,23)),"next/dist/client/components/unauthorized-error"]}]}.children,d=["/Users/alma/Documents/NeahNew/app/observatory/page.tsx"],c={require:r,loadChunk:()=>Promise.resolve()},f=new n.AppPageRouteModule({definition:{kind:s.RouteKind.APP_PAGE,page:"/observatory/page",pathname:"/observatory",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:u}})},62765:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"notFound",{enumerable:!0,get:function(){return s}});let n=""+r(8704).HTTP_ERROR_FALLBACK_ERROR_CODE+";404";function s(){let e=Object.defineProperty(Error(n),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});throw e.digest=n,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64777:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return o}});let n=r(60687),s=r(51215),a=r(29294),i=r(19587);function o(e){let{moduleIds:t}=e,r=a.workAsyncStorage.getStore();if(void 0===r)return null;let o=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files;o.push(...t)}}return 0===o.length?null:(0,n.jsx)(n.Fragment,{children:o.map(e=>{let t=r.assetPrefix+"/_next/"+(0,i.encodeURIPath)(e);return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style"},e):((0,s.preload)(t,{as:"script",fetchPriority:"low"}),null)})})}},64963:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let n=r(60687),s=r(43210),a=r(56780),i=r(64777);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},r=(0,s.lazy)(()=>t.loader().then(o)),u=t.loading;function d(e){let o=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,d=l?s.Suspense:s.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.PreloadChunks,{moduleIds:t.modules}),(0,n.jsx)(r,{...e})]}):(0,n.jsx)(a.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(d,{...l?{fallback:o}:{},children:c})}return d.displayName="LoadableComponent",d}},70333:(e,t,r)=>{"use strict";r.d(t,{dj:()=>f,oR:()=>c});var n=r(43210);let s=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],u={toasts:[]};function d(e){u=o(u,e),l.forEach(e=>{e(u)})}function c({...e}){let t=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>d({type:"DISMISS_TOAST",toastId:t});return d({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,t]=n.useState(u);return n.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},70899:(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."),"__NEXT_ERROR_CODE",{value:"E411",enumerable:!1,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unauthorized",{enumerable:!0,get:function(){return n}}),r(8704).HTTP_ERROR_FALLBACK_ERROR_CODE,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71042:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unstable_rethrow",{enumerable:!0,get:function(){return function e(t){if((0,i.isNextRouterError)(t)||(0,a.isBailoutToCSRError)(t)||(0,l.isDynamicServerError)(t)||(0,o.isDynamicPostpone)(t)||(0,s.isPostpone)(t)||(0,n.isHangingPromiseRejectionError)(t))throw t;t instanceof Error&&"cause"in t&&e(t.cause)}}});let n=r(68388),s=r(52637),a=r(51846),i=r(31162),o=r(84971),l=r(98479);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74075:e=>{"use strict";e.exports=require("zlib")},78122:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(62688).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},79428:e=>{"use strict";e.exports=require("buffer")},79551:e=>{"use strict";e.exports=require("url")},81630:e=>{"use strict";e.exports=require("http")},83997:e=>{"use strict";e.exports=require("tty")},84310:(e,t,r)=>{"use strict";r.d(t,{ObservatoryView:()=>h});var n=r(60687),s=r(43210),a=r(78122);let i=(0,r(62688).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var o=r(24934),l=r(49587),u=r.n(l);let d={Sudan:[15.5,30.5],Egypt:[26.8,30.8],"South Africa":[-30.6,22.9],Nigeria:[9.1,8.7],Kenya:[0,38],Ethiopia:[9.1,40.5],Morocco:[31.8,-7.1],Algeria:[28,1.7],Tunisia:[34,9],USA:[37.1,-95.7],"New York":[40.7,-74],Canada:[56.1,-106.3],Mexico:[23.6,-102.5],Brazil:[-14.2,-51.9],Argentina:[-38.4,-63.6],UK:[55.4,-3.4],France:[46.2,2.2],Germany:[51.2,10.4],Italy:[41.9,12.6],Spain:[40.5,-3.7],Ukraine:[48.4,31.2],Russia:[61.5,105.3],Poland:[51.9,19.1],Sweden:[60.1,18.6],Norway:[60.5,8.5],Finland:[61.9,25.7],Greece:[39.1,21.8],Netherlands:[52.1,5.3],Belgium:[50.5,4.5],Portugal:[39.4,-8.2],Switzerland:[46.8,8.2],Austria:[47.5,14.5],China:[35.9,104.2],India:[20.6,79],Japan:[36.2,138.3],"South Korea":[35.9,127.8],Indonesia:[-.8,113.9],Thailand:[15.9,101],Vietnam:[14.1,108.3],Philippines:[12.9,121.8],Malaysia:[4.2,101.9],Singapore:[1.3,103.8],Pakistan:[30.4,69.3],Iran:[32.4,53.7],Iraq:[33.2,43.7],"Saudi Arabia":[23.9,45.1],Turkey:[38.9,35.2],Israel:[31,34.9],Palestine:[31.9,35.2],Syria:[34.8,39],Afghanistan:[33.9,67.7],Australia:[-25.3,133.8],"United Nations":[40.7,-74]},c=u()(async()=>{},{loadableGenerated:{modules:["components/observatory/observatory-map.tsx -> ./map-component"]},ssr:!1,loading:()=>(0,n.jsx)("div",{className:"w-full h-full bg-gray-100 flex items-center justify-center",children:(0,n.jsx)("p",{className:"text-gray-500",children:"Loading map..."})})});function f({countries:e,onCountrySelect:t,selectedCountry:r}){let s=[...e.filter(e=>void 0!==d[e.name]).map(e=>({...e,position:d[e.name]}))].sort((e,t)=>t.count-e.count);return(0,n.jsx)("div",{className:"w-full h-full",children:(0,n.jsx)(c,{countries:s,onCountrySelect:t,selectedCountry:r})})}var p=r(70333);function h(){let[e,t]=(0,s.useState)([]),[r,l]=(0,s.useState)([]),[u,d]=(0,s.useState)(!0),[c,h]=(0,s.useState)(null),[m,x]=(0,s.useState)(null),[y,b]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!0),j=async(e=!1)=>{d(!0);try{console.log("Requesting news with limit=100...");let r=e?"/api/news?limit=100&refresh=true":"/api/news?limit=100";console.log(`Fetching from: ${r}`);let n=await fetch(r);if(!n.ok)throw Error("Failed to fetch news");let s=await n.json();console.log(`Observatory received ${s.length} news articles`),s.length>0?console.log("First 5 articles:",s.slice(0,5)):console.log("No articles received from API"),t(s),l(e=>{let t=new Map;e.forEach(e=>t.set(e.id,e)),s.forEach(e=>t.set(e.id,e));let r=Array.from(t.values());return r.sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime()),console.log(`Accumulated ${r.length} unique articles`),r}),h(null)}catch(e){h("Failed to fetch news"),console.error("Error fetching news:",e)}finally{d(!1)}},_=e=>{let t=["France","USA","Canada","UK","Germany","Japan","China","India","Brazil","Australia","Russia","Italy","Spain","Sudan","New York","United Nations","Ukraine","Egypt","Mexico","South Africa","Nigeria","Argentina","Pakistan","Indonesia","Saudi Arabia","Iran","Turkey","South Korea","Thailand","Vietnam","Philippines","Malaysia","Singapore","Israel","Palestine","Syria","Iraq","Afghanistan","Morocco","Algeria","Tunisia","Kenya","Ethiopia","Greece","Poland","Sweden","Norway","Denmark","Finland","Netherlands","Belgium","Portugal","Switzerland","Austria"].sort((e,t)=>t.length-e.length),r={};return e.forEach(e=>{let n=[e.title||"",e.description||""].join(" ").toLowerCase();t.forEach(t=>{n.includes(t.toLowerCase())&&(r[t]||(r[t]=[]),r[t].some(t=>t.id===e.id)||r[t].push(e))})}),r},w=async()=>{try{if(!(await fetch("/api/news/purge-cache",{method:"POST"})).ok)throw Error("Failed to invalidate cache");(0,p.oR)({title:"Cache purged",description:"News cache has been invalidated. Fetching fresh data..."}),j(!0)}catch(e){console.error("Error invalidating cache:",e),(0,p.oR)({title:"Error",description:"Failed to invalidate cache",variant:"destructive"})}};if(u)return(0,n.jsx)("div",{className:"w-full h-screen flex items-center justify-center",children:(0,n.jsx)(a.A,{className:"h-10 w-10 animate-spin text-gray-400"})});if(c)return(0,n.jsxs)("div",{className:"w-full h-screen flex flex-col items-center justify-center",children:[(0,n.jsx)("p",{className:"text-red-500 mb-4",children:c}),(0,n.jsx)(o.$,{onClick:()=>j(!0),children:"Retry"})]});let R=(()=>{let t=g?r:e;if(!m)return t;let n=_(t)[m]||[];return console.log(`Filtered news for ${m}: ${n.length} of ${t.length} total articles`),n})(),O=_(e);return(0,n.jsx)("main",{className:"w-full h-screen bg-white",children:(0,n.jsxs)("div",{className:"w-full h-full px-4 pt-12 pb-4 flex flex-col",children:[(0,n.jsx)("div",{className:"bg-white border-b border-gray-100 py-3 px-6",children:(0,n.jsx)("h1",{className:"text-xl font-bold text-gray-800",children:"Observatoire de La Paix et du Vivre-Ensemble"})}),(0,n.jsxs)("div",{className:"grid grid-cols-2 gap-6 py-6 px-6 flex-1 overflow-auto bg-gray-50",children:[(0,n.jsx)("div",{className:"h-full overflow-hidden",children:(0,n.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-gray-100 h-full flex flex-col",children:[(0,n.jsx)("div",{className:"px-6 py-4 border-b border-gray-100 flex-shrink-0",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsxs)("h2",{className:"text-lg font-semibold text-gray-800",children:["Latest News",(0,n.jsxs)("span",{className:"text-sm font-normal ml-2 text-gray-500",children:["(",R.length," articles)",e.length<10&&(0,n.jsx)("span",{className:"italic ml-1",children:"(API limitation)"})]})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$,{variant:"outline",size:"sm",onClick:()=>v(!g),className:"h-8 px-3 text-xs",children:g?`Showing All (${r.length})`:`Showing Latest (${e.length})`}),(0,n.jsx)(o.$,{variant:"outline",size:"sm",onClick:()=>w(),className:"h-8 px-3 text-xs","aria-label":"Purge cache",children:"Purge Cache"}),(0,n.jsx)(o.$,{variant:"ghost",size:"sm",onClick:()=>j(!0),className:"h-8 w-8 p-0","aria-label":"Refresh news",children:(0,n.jsx)(a.A,{className:"h-4 w-4"})})]})]})}),(0,n.jsx)("div",{className:"flex-1 overflow-y-auto",children:0===R.length?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[(0,n.jsx)(i,{className:"h-12 w-12 mb-2 text-gray-300"}),(0,n.jsx)("p",{children:m?`No news found for ${m}`:"No news found"})]}):(0,n.jsx)("ul",{className:"divide-y divide-gray-100",children:R.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block hover:bg-gray-50 transition-colors",children:(0,n.jsxs)("div",{className:"px-6 py-4",children:[(0,n.jsxs)("div",{className:"flex justify-between items-start mb-2",children:[(0,n.jsx)("h3",{className:"font-medium text-gray-900 flex-grow",children:e.title}),(0,n.jsx)("span",{className:"text-xs text-gray-500 whitespace-nowrap ml-2",children:e.displayDate})]}),(0,n.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,n.jsx)("span",{className:"text-xs font-medium text-gray-500",children:e.source}),e.category&&(0,n.jsx)("span",{className:"text-xs bg-gray-100 text-gray-600 rounded-full px-2 py-0.5",children:e.category})]}),(0,n.jsx)("p",{className:"text-sm text-gray-600 mt-2 line-clamp-2",children:e.description})]})})},e.id))})})]})}),(0,n.jsx)("div",{className:"h-full overflow-hidden",children:(0,n.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-gray-100 h-full flex flex-col",children:[(0,n.jsx)("div",{className:"px-6 py-4 border-b border-gray-100 flex-shrink-0",children:(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsxs)("h2",{className:"text-lg font-semibold text-gray-800",children:["World Map",m&&(0,n.jsxs)("span",{className:"text-sm font-normal ml-2 text-gray-500",children:["(Selected: ",m,")"]})]}),(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(o.$,{variant:"outline",size:"sm",onClick:()=>x(null),className:"h-8 px-3 text-xs",disabled:!m,children:"Clear Selection"}),(0,n.jsx)(o.$,{variant:"ghost",size:"sm",onClick:()=>j(!0),className:"h-8 w-8 p-0","aria-label":"Refresh news",children:(0,n.jsx)(a.A,{className:"h-4 w-4"})})]})]})}),(0,n.jsx)("div",{className:"flex-1 relative",children:y&&(0,n.jsx)(f,{countries:Object.entries(O).map(([e,t])=>({name:e,count:t.length})),onCountrySelect:e=>{x(m===e?null:e)},selectedCountry:m})})]})})]})]})})}},86897:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRedirectError:function(){return i},getRedirectStatusCodeFromError:function(){return c},getRedirectTypeFromError:function(){return d},getURLFromRedirectError:function(){return u},permanentRedirect:function(){return l},redirect:function(){return o}});let n=r(52836),s=r(49026),a=r(19121).actionAsyncStorage;function i(e,t,r){void 0===r&&(r=n.RedirectStatusCode.TemporaryRedirect);let a=Object.defineProperty(Error(s.REDIRECT_ERROR_CODE),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return a.digest=s.REDIRECT_ERROR_CODE+";"+t+";"+e+";"+r+";",a}function o(e,t){var r;throw null!=t||(t=(null==a||null==(r=a.getStore())?void 0:r.isAction)?s.RedirectType.push:s.RedirectType.replace),i(e,t,n.RedirectStatusCode.TemporaryRedirect)}function l(e,t){throw void 0===t&&(t=s.RedirectType.replace),i(e,t,n.RedirectStatusCode.PermanentRedirect)}function u(e){return(0,s.isRedirectError)(e)?e.digest.split(";").slice(2,-2).join(";"):null}function d(e){if(!(0,s.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return e.digest.split(";",2)[1]}function c(e){if(!(0,s.isRedirectError)(e))throw Object.defineProperty(Error("Not a redirect error"),"__NEXT_ERROR_CODE",{value:"E260",enumerable:!1,configurable:!0});return Number(e.digest.split(";").at(-2))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88384:(e,t,r)=>{"use strict";r.d(t,{ObservatoryView:()=>n});let n=(0,r(12907).registerClientReference)(function(){throw Error("Attempted to call ObservatoryView() from the server but ObservatoryView is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/alma/Documents/NeahNew/components/observatory/observatory-view.tsx","ObservatoryView")},91645:e=>{"use strict";e.exports=require("net")},94735:e=>{"use strict";e.exports=require("events")},97576:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return d},RedirectType:function(){return s.RedirectType},forbidden:function(){return i.forbidden},notFound:function(){return a.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect},unauthorized:function(){return o.unauthorized},unstable_rethrow:function(){return l.unstable_rethrow}});let n=r(86897),s=r(49026),a=r(62765),i=r(48976),o=r(70899),l=r(163);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class d extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[4243,5419,8794,1642,6724,748,6781,5500],()=>r(57269));module.exports=n})(); |