"use strict";var c=Object.create;var s=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var g=(n,r)=>{for(var t in r)s(n,t,{get:r[t],enumerable:!0})},a=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of m(r))!u.call(n,i)&&i!==t&&s(n,i,{get:()=>r[i],enumerable:!(e=w(r,i))||e.enumerable});return n};var o=(n,r,t)=>(t=n!=null?c(l(n)):{},a(r||!n||!n.__esModule?s(t,"default",{value:n,enumerable:!0}):t,n)),y=n=>a(s({},"__esModule",{value:!0}),n);var p={};g(p,{serialize:()=>f});module.exports=y(p);var f=async(n,r)=>{switch(n){case"json":case"json5":return JSON.stringify(r,null,2);case"yaml":{let{stringify:t}=await import("yaml");return t(r)}case"toml":{let{stringify:t}=await import("smol-toml");return t(r)}case"xml":{let{XMLBuilder:t}=await import("fast-xml-parser");return new t({}).build(r)}default:throw new Error(`Unknown format: ${n}`)}};0&&(module.exports={serialize});
