{"version":3,"sources":["../../../src/server/base-http/node.ts"],"names":["NodeNextRequest","NodeNextResponse","NEXT_REQUEST_META","BaseNextRequest","originalRequest","_req","url","cookies","value","constructor","method","toUpperCase","headers","parseBody","limit","BaseNextResponse","originalResponse","SYMBOL_CLEARED_COOKIES","_res","textBody","undefined","sent","finished","headersSent","statusCode","statusMessage","setHeader","name","removeHeader","getHeaderValues","values","getHeader","Array","isArray","map","toString","hasHeader","join","getHeaders","appendHeader","currentValues","includes","body","send","end"],"mappings":";;;;;;;;;;;;;;;IAkBaA,eAAe;eAAfA;;IA2BAC,gBAAgB;eAAhBA;;;0BAzC0B;2BAEb;6BACQ;uBAGgB;IAW/CC,qBAAAA,8BAAiB;AAHb,MAAMF,wBAAwBG,sBAAe;IAKlD,IAAIC,kBAAkB;QACpB,qFAAqF;QACrF,+BAA+B;QAC/B,IAAI,CAACC,IAAI,CAACH,8BAAiB,CAAC,GAAG,IAAI,CAACA,8BAAiB,CAAC;QACtD,IAAI,CAACG,IAAI,CAACC,GAAG,GAAG,IAAI,CAACA,GAAG;QACxB,IAAI,CAACD,IAAI,CAACE,OAAO,GAAG,IAAI,CAACA,OAAO;QAChC,OAAO,IAAI,CAACF,IAAI;IAClB;IAEA,IAAID,gBAAgBI,KAAU,EAAE;QAC9B,IAAI,CAACH,IAAI,GAAGG;IACd;IAEAC,YAAoBJ,KAAW;QAC7B,KAAK,CAACA,KAAKK,MAAM,CAAEC,WAAW,IAAIN,KAAKC,GAAG,EAAGD;oBAD3BA;aAjBbO,UAAU,IAAI,CAACP,IAAI,CAACO,OAAO;YAElC,CAACV,mBAAkB,GAAgB,IAAI,CAACG,IAAI,CAACH,8BAAiB,CAAC,IAAI,CAAC;IAiBpE;IAEA,MAAMW,UAAUC,KAAgB,EAAgB;QAC9C,OAAOD,IAAAA,oBAAS,EAAC,IAAI,CAACR,IAAI,EAAES;IAC9B;AACF;AAEO,MAAMb,yBAAyBc,uBAAgB;IAKpD,IAAIC,mBAAmB;QACrB,IA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