'use strict';const _0x15e479=_0x39e8;function _0x39e8(_0x5078e7,_0x134f15){_0x5078e7=_0x5078e7-0x1b6;const _0x337aa8=_0x337a();let _0x39e8d1=_0x337aa8[_0x5078e7];return _0x39e8d1;}(function(_0x88ac13,_0x1a0bc8){const _0x4a6a64=_0x39e8,_0x5e72fa=_0x88ac13();while(!![]){try{const _0x2aac49=parseInt(_0x4a6a64(0x1b8))/0x1*(parseInt(_0x4a6a64(0x1bb))/0x2)+parseInt(_0x4a6a64(0x1c4))/0x3+parseInt(_0x4a6a64(0x1c6))/0x4*(-parseInt(_0x4a6a64(0x1bf))/0x5)+-parseInt(_0x4a6a64(0x1be))/0x6+-parseInt(_0x4a6a64(0x1c0))/0x7*(parseInt(_0x4a6a64(0x1b9))/0x8)+-parseInt(_0x4a6a64(0x1b7))/0x9+parseInt(_0x4a6a64(0x1ba))/0xa;if(_0x2aac49===_0x1a0bc8)break;else _0x5e72fa['push'](_0x5e72fa['shift']());}catch(_0x391111){_0x5e72fa['push'](_0x5e72fa['shift']());}}}(_0x337a,0xb694c));async function readRequestBody(_0x2db422){const _0x379faa=[];return new Promise((_0x34fced,_0x4d3b2b)=>{let _0x573c21=!0x1;_0x2db422['onData']((_0x22456f,_0x33e391)=>{_0x573c21=!0x0;const _0x1fe802=Buffer['from'](_0x22456f)['toString']();_0x379faa['push'](_0x1fe802),_0x33e391&&_0x34fced(_0x379faa['join'](''));}),_0x2db422['onAborted'](()=>{_0x573c21?_0x4d3b2b(new Error('Request\x20aborted')):_0x34fced('');});});}function processBodyContent(_0xb1a2d1,_0x5d22ba){const _0x50e047=_0x39e8,_0x191d15=_0x5d22ba['trim']();if(_0xb1a2d1['includes']('application/json')&&''!==_0x191d15)try{return JSON['parse'](_0x191d15);}catch(_0x21f9e){throw(0x0,error_1['createError'])({'statusCode':0x190,'message':'Invalid\x20JSON:\x20'+_0x21f9e['message']});}else{if(_0xb1a2d1['includes'](_0x50e047(0x1bc)))return Object['fromEntries'](new URLSearchParams(_0x191d15));}return _0x191d15||{};}function methodSupportsBody(_0x419caf){const _0xcaa10=_0x39e8;return[_0xcaa10(0x1c7),'put',_0xcaa10(0x1c1),_0xcaa10(0x1c3)][_0xcaa10(0x1c2)](_0x419caf[_0xcaa10(0x1b6)]());}function _0x337a(){const _0x4e7b6a=['411807iWGifD','2348432dxGnKn','33951680WBAYcx','4JpGOVE','application/x-www-form-urlencoded','processBodyContent','8721672isCVbj','5MlFcMe','21gCPYQk','patch','includes','delete','626862NRZGIO','defineProperty','5302892UJjBQH','post','toLowerCase','178983MffoAT'];_0x337a=function(){return _0x4e7b6a;};return _0x337a();}Object[_0x15e479(0x1c5)](exports,'__esModule',{'value':!0x0}),exports['readRequestBody']=readRequestBody,exports[_0x15e479(0x1bd)]=processBodyContent,exports['methodSupportsBody']=methodSupportsBody;const error_1=require('@b/utils/error');