"use strict";(()=>{var e={};e.id=1640,e.ids=[1640],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},56681:e=>{e.exports=require("playwright")},34012:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>d,routeModule:()=>p,serverHooks:()=>g,staticGenerationAsyncStorage:()=>c});var a={};r.r(a),r.d(a,{POST:()=>l});var o=r(49303),n=r(88716),s=r(60670),i=r(87070),u=r(56681);async function l(e){let t;try{let r=await e.json(),a=r?.url,o=r?.cid;if(!a)return i.NextResponse.json({error:'Missing "url" in request body.'},{status:400});let n=(t=await u.chromium.connectOverCDP("http://localhost:9222")).contexts()[0].pages()[0];await n.goto(a,{waitUntil:"domcontentloaded",timeout:3e4}),await n.waitForTimeout(5e3);let s=n.url(),l=s.match(/@(-?\d+\.\d+),(-?\d+\.\d+),\d+z/);if(await t.close(),!l)return i.NextResponse.json({error:"Latitude and longitude not found in URL.",finalUrl:s},{status:404});let p=parseFloat(l[1]),d=parseFloat(l[2]);return i.NextResponse.json({url:a,cid:o,latitude:p,longitude:d,finalUrl:s})}catch(e){return i.NextResponse.json({error:e.message||"Something went wrong"},{status:500})}finally{t&&await t.close()}}let p=new o.AppRouteRouteModule({definition:{kind:n.x.APP_ROUTE,page:"/api/lat_long/route",pathname:"/api/lat_long",filename:"route",bundlePath:"app/api/lat_long/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\lat_long\\route.js",nextConfigOutput:"",userland:a}),{requestAsyncStorage:d,staticGenerationAsyncStorage:c,serverHooks:g}=p,m="/api/lat_long/route";function h(){return(0,s.patchFetch)({serverHooks:g,staticGenerationAsyncStorage:c})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,5972],()=>r(34012));module.exports=a})();