"use strict";(()=>{vare={};e.id=8563,e.ids=[8563],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){returnfunctione(r,t){returntinr?r[t]:"then"inr&&"function"==typeofr.then?r.then(r=>e(r,t)):"function"==typeofr&&"default"===t?r:void0}}})},51397:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});varn={};t.r(n),t.d(n,{default:()=>c});vars=t(89947),a=t(2706),o=t(96762),i=t(69842),l=t(67619),u=t(30944);asyncfunctionc(e,r){if("POST"!==e.method)returnr.json({user:null,msg:"Registration Failed!"});lett=await(0,i.A)(e,r,!0);if(!t)returnr.json({success:!1,msg:"Unauthorized"});let{database:n,query:s,tables:a}=e.body;try{lete=await(0,u.A)({database:`datasquirel_user_${t.id}_${n}`,queryString:s});if(!e)returnr.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){(0,l.A)({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}letd=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),_=news.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:n})},69842:(e,r,t)=>{t.d(r,{A:()=>a});varn=t(39908),s=t.n(n);asyncfunctiona(e,r,t){letn=s()({req:e,level:t?"deep":void0});returnconsole.log(n),n.payload}},43775:(e,r,t)=>{t.d(r,{A:()=>a});varn=t(95969);lets=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/;asyncfunctiona({unparsedResults:e,tableSchema:r}){lett=[];try{for(leta=0;a<e.length;a++){leto=e[a],i=Object.keys(o);for(lete=0;e<i.length;e++){lett=i[e],a=r?.fields[e];if(t?.match(s))continue;letl=o[t];("number"==typeofl||l)&&a?.encrypted&&l?.match(/./)&&(o[t]=(0,n.A)({encryptedString:l}))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},67619:(e,r,t)=>{t.d(r,{A:()=>a});varn=t(29021),s=t.n(n);asyncfunctiona({user:e,message:r,component:t,noMail:n,req:a}){leto=newDate,i=(()=>{if(!a)returnnull;try{lete=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)returnnull;returnString(s)}catch(e){returnnull}})();try{letn=`🚀 SERVER ERROR ===========================