"use strict";(()=>{var e={};e.id=214,e.ids=[214],e.modules={399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},1282:e=>{e.exports=require("child_process")},4770:e=>{e.exports=require("crypto")},2048:e=>{e.exports=require("fs")},9801:e=>{e.exports=require("os")},5315:e=>{e.exports=require("path")},6233:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>f,requestAsyncStorage:()=>x,routeModule:()=>d,serverHooks:()=>k,staticGenerationAsyncStorage:()=>h});var i={};r.r(i),r.d(i,{POST:()=>m,dynamic:()=>u});var s=r(9303),a=r(8716),o=r(670),n=r(7070),c=r(9911),p=r(4447),l=r(5735);let u="force-dynamic";async function m(){let e=await (0,l.W9)(),t=await (0,p.Mw)(e.license);return e.license={...e.license,...t.license},t.ok&&t.limits&&(e.riskLimits={...e.riskLimits,...t.limits}),(0,l.Vt)(e,{type:"system",actor:"system",title:t.ok?"远程授权心跳成功":"远程授权心跳失败",detail:t.ok?`${e.license.plan} \xb7 租约至 ${e.license.leaseExpiresAt||"-"}`:`${t.code}: ${t.error}`,status:t.ok?"completed":"failed"}),await (0,l.lX)(e),n.NextResponse.json({ok:t.ok,result:t,license:e.license,snapshot:(0,c.nf)(e),error:t.ok?void 0:t.error},{status:t.ok?200:400})}let d=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/commercial/license/heartbeat/route",pathname:"/api/commercial/license/heartbeat",filename:"route",bundlePath:"app/api/commercial/license/heartbeat/route"},resolvedPagePath:"/Users/momo/Project/pinterest-auto/app/api/commercial/license/heartbeat/route.ts",nextConfigOutput:"",userland:i}),{requestAsyncStorage:x,staticGenerationAsyncStorage:h,serverHooks:k}=d,v="/api/commercial/license/heartbeat/route";function f(){return(0,o.patchFetch)({serverHooks:k,staticGenerationAsyncStorage:h})}}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[276,972,145],()=>r(6233));module.exports=i})();