module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},63288,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),i=e.i(59756),n=e.i(61916),o=e.i(74677),s=e.i(69741),l=e.i(16795),d=e.i(87718),p=e.i(95169),u=e.i(47587),c=e.i(66012),h=e.i(70101),f=e.i(26937),g=e.i(10372),x=e.i(93695);e.i(52474);var m=e.i(220);async function v(e,t){let{slug:r}=await t.params,a=new URL(e.url).origin,i=0,n="";try{let e=(process.env.API_INTERNAL_URL?.trim()||process.env.API_URL?.trim()||"https://api.aiyard.net".trim()||a).replace(/\/$/,""),t=await fetch(`${e}/api/tools/${encodeURIComponent(String(r))}`,{headers:{Accept:"application/json"},cache:"no-store"});if(t.ok){let e=await t.json();i=Number(e?.data?.upvotes)||0;let r="string"==typeof e?.data?.url?e.data.url:"";n=function(e){try{return new URL(e).hostname}catch{return""}}(r)}}catch{}let o=`${a}/logo/logo.webp`,s=n?`${a}/api/favicon?domain=${encodeURIComponent(n)}&sz=32`:"",l=String(i).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return new Response(`<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="250" height="54" viewBox="0 0 250 54" role="img" aria-label="Featured on AIYard">
  <defs>
    <linearGradient id="g" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#38bdf8"/>
      <stop offset="1" stop-color="#fbbf24"/>
    </linearGradient>
    <filter id="inner" x="-50%" y="-50%" width="200%" height="200%">
      <feFlood flood-color="#000" flood-opacity="0.06" result="f"/>
      <feComposite in="f" in2="SourceAlpha" operator="in" result="m"/>
      <feGaussianBlur in="m" stdDeviation="1.6" result="b"/>
      <feOffset in="b" dx="0" dy="1" result="o"/>
      <feComposite in="SourceGraphic" in2="o" operator="over"/>
    </filter>
  </defs>
  <rect x="0.5" y="0.5" width="249" height="53" rx="14" fill="#ffffff" stroke="rgba(15, 23, 42, 0.12)"/>
  <rect x="0.5" y="0.5" width="249" height="53" rx="14" fill="transparent" filter="url(#inner)"/>
  <rect x="0.5" y="0.5" width="249" height="6" rx="14" fill="url(#g)"/>

  <!-- left: logos + text -->
  <g>
    <rect x="12" y="12" width="30" height="30" rx="8" fill="rgba(15, 23, 42, 0.03)" stroke="rgba(15, 23, 42, 0.10)"/>
    <image href="${o}" x="17" y="17" width="20" height="20" preserveAspectRatio="xMidYMid meet"/>

    ${s?`<rect x="46" y="12" width="30" height="30" rx="8" fill="rgba(15, 23, 42, 0.03)" stroke="rgba(15, 23, 42, 0.10)"/>
    <image href="${s}" x="51" y="17" width="20" height="20" preserveAspectRatio="xMidYMid meet"/>`:""}

    <text x="${s?84:50}" y="26" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial" font-size="10" font-weight="800" fill="#64748b" letter-spacing="0.12em">
      FEATURED ON
    </text>
    <text x="${s?84:50}" y="40" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial" font-size="14" font-weight="900" fill="#0f172a">
      AiYard
    </text>
  </g>

  <!-- right: upvotes pill -->
  <g>
    <rect x="172" y="16" width="66" height="22" rx="8" fill="rgba(15, 23, 42, 0.04)" stroke="rgba(15, 23, 42, 0.10)"/>
    <!-- ArrowUp icon -->
    <path d="M180 29 L180 21 M176 25 L180 21 L184 25" fill="none" stroke="#0f172a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <text x="206" y="31" font-family="ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial" font-size="11" font-weight="900" fill="#0f172a" text-anchor="middle">
      ${l}
    </text>
  </g>
</svg>`,{status:200,headers:{"Content-Type":"image/svg+xml; charset=utf-8","Cache-Control":"public, max-age=0, s-maxage=300, stale-while-revalidate=86400"}})}e.s(["GET",0,v,"runtime",0,"nodejs"],30068);var R=e.i(30068);let w=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/embed/[slug]/route",pathname:"/api/embed/[slug]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/app/api/embed/[slug]/route.ts",nextConfigOutput:"standalone",userland:R}),{workAsyncStorage:y,workUnitAsyncStorage:b,serverHooks:A}=w;async function E(e,t,a){a.requestMeta&&(0,i.setRequestMeta)(e,a.requestMeta),w.isDev&&(0,i.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/embed/[slug]/route";v=v.replace(/\/index$/,"")||"/";let R=await w.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!R)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:b,nextConfig:A,parsedUrl:E,isDraftMode:C,prerenderManifest:T,routerServerContext:N,isOnDemandRevalidate:S,revalidateOnlyGenerated:k,resolvedPathname:U,clientReferenceManifest:P,serverActionsManifest:I}=R,_=(0,s.normalizeAppPath)(v),q=!!(T.dynamicRoutes[_]||T.routes[U]),O=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,E,!1):t.end("This page could not be found"),null);if(q&&!C){let e=!!T.routes[U],t=T.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(A.adapterPath)return await O();throw new x.NoFallbackError}}let M=null;!q||w.isDev||C||(M="/index"===(M=U)?"/":M);let $=!0===w.isDev||!q,H=q&&!$;I&&P&&(0,o.setManifestsSingleton)({page:v,clientReferenceManifest:P,serverActionsManifest:I});let j=e.method||"GET",D=(0,n.getTracer)(),L=D.getActiveScopeSpan(),F=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,i.getRequestMeta)(e,"minimalMode"),G=(0,i.getRequestMeta)(e,"incrementalCache")||await w.getIncrementalCache(e,A,T,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let K={params:b,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!A.experimental.authInterrupts},cacheComponents:!!A.cacheComponents,supportsDynamicResponse:$,incrementalCache:G,cacheLifeProfiles:A.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,i)=>w.onRequestError(e,t,a,i,N)},sharedContext:{buildId:y}},z=new l.NodeNextRequest(e),Y=new l.NodeNextResponse(t),V=d.NextRequestAdapter.fromNodeNextRequest(z,(0,d.signalFromNodeResponse)(t));try{let i,o=async e=>w.handle(V,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=D.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${j} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),i&&i!==e&&(i.setAttribute("http.route",a),i.updateName(t))}else e.updateName(`${j} ${v}`)}),s=async i=>{var n,s;let l=async({previousCacheEntry:r})=>{try{if(!B&&S&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await o(i);e.fetchMetrics=K.renderOpts.fetchMetrics;let s=K.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let l=K.renderOpts.collectedTags;if(!q)return await (0,c.sendResponse)(z,Y,n,K.renderOpts.pendingWaitUntil),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);l&&(t[g.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await w.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:S})},!1,N),t}},d=await w.handleResponse({req:e,nextConfig:A,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!q)return null;if((null==d||null==(n=d.value)?void 0:n.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(s=d.value)?void 0:s.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",S?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&q||p.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,f.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(z,Y,new Response(d.value.body,{headers:p,status:d.value.status||200})),null};F&&L?await s(L):(i=D.getActiveScopeSpan(),await D.withPropagatedContext(e.headers,()=>D.trace(p.BaseServerSpan.handleRequest,{spanName:`${j} ${v}`,kind:n.SpanKind.SERVER,attributes:{"http.method":j,"http.target":e.url}},s),void 0,!F))}catch(t){if(t instanceof x.NoFallbackError||await w.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:S})},!1,N),q)throw t;return await (0,c.sendResponse)(z,Y,new Response(null,{status:500})),null}}e.s(["handler",0,E,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:b})},"routeModule",0,w,"serverHooks",0,A,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,b],63288)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__0sj76n-._.js.map