module.exports=[18622,(e,r,t)=>{r.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,r,t)=>{r.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,r,t)=>{r.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"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},20635,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24361,(e,r,t)=>{r.exports=e.x("util",()=>require("util"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,r,t)=>{r.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},51615,(e,r,t)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},94224,e=>{"use strict";let r={free:{maxBots:1,knowledge:!1,leads:!1,whatsapp:!1},starter:{maxBots:10,knowledge:!0,leads:!0,whatsapp:!0},pro:{maxBots:1/0,knowledge:!0,leads:!0,whatsapp:!0}};function t(e){return r[e]||r.free}e.s(["TRIAL_DAYS",0,30,"getPlanLimits",()=>t])},39048,e=>{"use strict";var r=e.i(79832),t=e.i(89171);async function n(){let e=await (0,r.auth)();return e?.user?.id?e.user:null}function s(){return t.NextResponse.json({error:"Unauthorized"},{status:401})}e.s(["getAuthUser",()=>n,"unauthorized",()=>s])},47740,e=>{"use strict";var r=e.i(54799);let t="aes-256-gcm";function n(){let e=process.env.ENCRYPTION_KEY;if(!e)throw Error("ENCRYPTION_KEY not set");return Buffer.from(e,"hex")}function s(e){let s=(0,r.randomBytes)(16),a=(0,r.createCipheriv)(t,n(),s),o=Buffer.concat([a.update(e,"utf8"),a.final()]),i=a.getAuthTag();return[s.toString("hex"),o.toString("hex"),i.toString("hex")].join(":")}function a(e){let[s,a,o]=e.split(":"),i=(0,r.createDecipheriv)(t,n(),Buffer.from(s,"hex"));return i.setAuthTag(Buffer.from(o,"hex")),Buffer.concat([i.update(Buffer.from(a,"hex")),i.final()]).toString("utf8")}e.s(["decrypt",()=>a,"encrypt",()=>s])},17903,e=>{"use strict";async function r(e,r){if(!r)return t(e);try{return t(e)}catch{return t(e)}}function t(e){let r=new Float64Array(1024),t=e.toLowerCase().trim();for(let e=0;e<t.length;e++){let n=(31*t.charCodeAt(e)+7*e)%1024;r[n]+=1,r[(n+1)%1024]+=.5,r[(n+2)%1024]+=.25}let n=0;for(let e=0;e<1024;e++)n+=r[e]*r[e];if((n=Math.sqrt(n))>0)for(let e=0;e<1024;e++)r[e]/=n;return Array.from(r)}function n(e,r=500,t=100){let s=e.split(/\s+/),a=[];for(let e=0;e<s.length;e+=r-t){let t=s.slice(e,e+r).join(" ");t.trim().length>20&&a.push(t.trim())}return a.length>0?a:[e.trim()]}e.s(["chunkText",()=>n,"getEmbedding",()=>r])},78500,(e,r,t)=>{r.exports=e.x("node:async_hooks",()=>require("node:async_hooks"))}];

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