{"version":3,"sources":["../../../src/server/base-http/web.ts"],"names":["WebNextRequest","WebNextResponse","BaseNextRequest","constructor","request","url","URL","method","href","slice","origin","length","clone","body","headers","name","value","entries","parseBody","_limit","Error","BaseNextResponse","sent","_sent","transformStream","TransformStream","writable","Headers","textBody","undefined","sendPromise","Promise","resolve","sendResolve","response","then","Response","readable","status","statusCode","statusText","statusMessage","setHeader","delete","val","Array","isArray","append","removeHeader","getHeaderValues","getHeader","split","map","v","trimStart","get","getHeaders","toNodeOutgoingHttpHeaders","hasHeader","has","appendHeader","send","toResponse"],"mappings":";;;;;;;;;;;;;;;IAKaA,cAAc;eAAdA;;IA0BAC,eAAe;eAAfA;;;uBA7B6B;uBACQ;AAE3C,MAAMD,uBAAuBE,sBAAe;IAKjDC,YAAYC,OAAgB,CAAE;QAC5B,MAAMC,MAAM,IAAIC,IAAIF,QAAQC,GAAG;QAE/B,KAAK,CACHD,QAAQG,MAAM,EACdF,IAAIG,IAAI,CAACC,KAAK,CAACJ,IAAIK,MAAM,CAACC,MAAM,GAChCP,QAAQQ,KAAK,GAAGC,IAAI;QAEtB,IAAI,CAACT,OAAO,GAAGA;QAEf,IAAI,CAACU,OAAO,GAAG,CAAC;QAChB,KAAK,MAAM,CAACC,MAAMC,MAAM,IAAIZ,QAAQU,OAAO,CAACG,OAAO,GAAI;YACrD,IAAI,CAACH,OAAO,CAACC,KAAK,GAAGC;QACvB;IACF;IAEA,MAAME,UAAUC,MAAuB,EAAgB;QACrD,MAAM,IAAIC,MAAM;IAClB;AACF;AAEO,MAAMnB,wBAAwBoB,uBAAgB;IAoBnD,IAAIC,OAAO;QACT,OAAO,IAAI,CAACC,KAAK;IACnB;IAEApB,YAAmBqB,kBAAkB,IAAIC,iBAAiB,CAAE;QAC1D,KAAK,CAACD,gBAAgBE,QAAQ;+BADbF;aAvBXV,UAAU,IAAIa;aACdC,WAA+BC;aAC/BN,QAAQ;aAERO,cAAc,IAAIC,QAAc,CAACC;YACvC,IAAI,CAACC,WAA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