{"version":3,"file":"headers-CPzZhJQn.mjs","names":[],"sources":["../node_modules/.pnpm/@earendil-works+pi-ai@0.84.1_ws@8.21.3_zod@4.4.3/node_modules/@earendil-works/pi-ai/dist/utils/headers.js"],"sourcesContent":["export function headersToRecord(headers) {\n    const result = {};\n    for (const [key, value] of headers.entries()) {\n        result[key] = value;\n    }\n    return result;\n}\nexport function providerHeadersToRecord(headers) {\n    if (!headers)\n        return undefined;\n    const result = {};\n    for (const [key, value] of Object.entries(headers)) {\n        if (value !== null)\n            result[key] = value;\n    }\n    return Object.keys(result).length > 0 ? result : undefined;\n}\n//# sourceMappingURL=headers.js.map"],"x_google_ignoreList":[0],"mappings":";;AAAA,SAAgB,gBAAgB,SAAS;CACrC,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,QAAQ,QAAQ,GACvC,OAAO,OAAO;CAElB,OAAO;AACX;AACA,SAAgB,wBAAwB,SAAS;CAC7C,IAAI,CAAC,SACD,OAAO,KAAA;CACX,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,OAAO,GAC7C,IAAI,UAAU,MACV,OAAO,OAAO;CAEtB,OAAO,OAAO,KAAK,MAAM,CAAC,CAAC,SAAS,IAAI,SAAS,KAAA;AACrD"}