@oiyo/framework 0.4.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index-CLLGj09o.d.cts +3410 -0
- package/dist/index-CLLGj09o.d.mts +3410 -0
- package/dist/index.cjs +2 -26
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -7
- package/dist/oiyo-47BOSXWu.mjs +7 -0
- package/dist/oiyo-D-CtA2o6.cjs +7 -0
- package/dist/oiyo.cjs +2 -6
- package/dist/oiyo.d.cts +3 -3
- package/dist/oiyo.d.mts +3 -3
- package/dist/oiyo.mjs +2 -3
- package/dist/uni.cjs +2 -11
- package/dist/uni.d.cts +1 -1
- package/dist/uni.d.mts +1 -1
- package/dist/uni.mjs +2 -3
- package/dist/vue.cjs +2 -11
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.mjs +2 -3
- package/package.json +3 -2
- package/dist/index-DpCCifZz.d.cts +0 -322
- package/dist/index-DpCCifZz.d.mts +0 -322
- package/dist/oiyo-BXNGL_oa.mjs +0 -7
- package/dist/oiyo-CUAtDW_Y.cjs +0 -7
package/dist/oiyo-BXNGL_oa.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.9
|
|
3
|
-
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
|
-
* Commercial software. See LICENSE for terms.
|
|
5
|
-
* Official site: https://oiyo.js.org
|
|
6
|
-
*/
|
|
7
|
-
const _0x5be832=_0x234c;(function(_0x5624d2,_0x2e5e92){const _0x741efa=_0x234c,_0x78a545=_0x5624d2();while(!![]){try{const _0xfd5f3e=-parseInt(_0x741efa(0xfb))/0x1+-parseInt(_0x741efa(0xd1))/0x2*(-parseInt(_0x741efa(0xe4))/0x3)+parseInt(_0x741efa(0xcd))/0x4+parseInt(_0x741efa(0x10c))/0x5*(parseInt(_0x741efa(0x100))/0x6)+parseInt(_0x741efa(0xf2))/0x7+parseInt(_0x741efa(0x106))/0x8+parseInt(_0x741efa(0x10b))/0x9*(-parseInt(_0x741efa(0xdd))/0xa);if(_0xfd5f3e===_0x2e5e92)break;else _0x78a545['push'](_0x78a545['shift']());}catch(_0x50553a){_0x78a545['push'](_0x78a545['shift']());}}}(_0xeeec,0xd8c32));function createHttpAborter(){const _0x5693d4=new HttpAbortSignal();return{'signal':_0x5693d4,'abort':_0xfad464=>_0x5693d4['_abort'](_0xfad464)};}function _0xeeec(){const _0x199e01=['10579464PkTkTJ','assign','responseType','response','The\x20operation\x20was\x20aborted','listeners','includes','<no\x20response\x20body>','defineProperty','728005ecWJWC','onSuccess','enableHttpDNS','GET','emit','732750LYXaOO','request','has','startsWith','slice','onFail','9687624tDrYxs','AbortError','firstIpv4','then','filePath','9dArHgm','55HpWJlN','POST','map','complete','filter','files','timeout','entries','number','headers','withCredentials','abort','download','signal','<no\x20response>','PATCH','splice','name','isArray','onabort','onChunkReceived','5088776JcrNDa','flatMap','toUpperCase','onProgressUpdate','12PoHNan','query','url','fileType','data','text','dataType','success','push','create','upload','formData','51322090BmJlOn','onHeadersReceived','sslVerify','statusCode','uploadFile','aborted','tempFilePath','705099FxRMVu','removeEventListener','reason','json','_action','body','test','file','enableCache','downloadFile','method','replace','catch','onResponse'];_0xeeec=function(){return _0x199e01;};return _0xeeec();}const ABORT_ERROR_NAME=_0x5be832(0x107);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2c0ab6,_0x321f8e){const _0x1ee579=_0x5be832;if(_0x2c0ab6!=='abort')return;this['listeners'][_0x1ee579(0xd9)](_0x321f8e);}[_0x5be832(0xe5)](_0xf15582,_0x33f400){const _0x1f3f35=_0x5be832;if(_0xf15582!==_0x1f3f35(0xc3))return;const _0x55da68=this['listeners']['indexOf'](_0x33f400);if(_0x55da68!==-0x1)this[_0x1f3f35(0xf7)][_0x1f3f35(0xc8)](_0x55da68,0x1);}[_0x5be832(0xff)](_0x59e63b){const _0xa66d1c=_0x5be832;for(const _0x29cc45 of this['listeners'][_0xa66d1c(0x104)]())_0x29cc45['call'](this,_0x59e63b);}},HttpAbortSignal=class extends AbortEmitter{[_0x5be832(0xe2)]=![];[_0x5be832(0xe6)]=void 0x0;[_0x5be832(0xcb)]=null;['_abort'](_0x4ee2bb){const _0x7120a=_0x5be832;if(this[_0x7120a(0xe2)])return;this['aborted']=!![],this['reason']=_0x4ee2bb===void 0x0?createAbortError():_0x4ee2bb;const _0x296746={};_0x296746['type']='abort';const _0x3e40c0=_0x296746;if(typeof this[_0x7120a(0xcb)]==='function')this['onabort'](_0x3e40c0);this['emit'](_0x3e40c0);}['throwIfAborted'](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x4e17da=_0x5be832(0xf6)){const _0x1759fc=new Error(_0x4e17da);return _0x1759fc['name']=ABORT_ERROR_NAME,_0x1759fc;}function isAbortError(_0x2c9aca){const _0x4286d7=_0x5be832;return _0x2c9aca instanceof Error&&_0x2c9aca[_0x4286d7(0xc9)]===ABORT_ERROR_NAME;}function _0x234c(_0x31bbe6,_0x6300e5){_0x31bbe6=_0x31bbe6-0xba;const _0xeeecb7=_0xeeec();let _0x234c4d=_0xeeecb7[_0x31bbe6];return _0x234c4d;}function onAbort(_0x30edd6,_0x4bcd9c){const _0x33cddc=_0x5be832;if(!_0x30edd6)return()=>{};if(_0x30edd6[_0x33cddc(0xe2)])return _0x4bcd9c(),()=>{};return _0x30edd6['addEventListener'](_0x33cddc(0xc3),_0x4bcd9c),()=>_0x30edd6['removeEventListener'](_0x33cddc(0xc3),_0x4bcd9c);}const HOOK_NAMES=['onRequest','onRequestError','onResponse','onResponseError'];function mergeOptions(..._0x4d64c3){const _0x24ac55=_0x5be832,_0x1b69c9={},_0x165b7d={};for(const _0x1b53a2 of _0x4d64c3){if(!_0x1b53a2)continue;for(const _0x3292f2 of HOOK_NAMES)collectHook(_0x165b7d,_0x3292f2,_0x1b53a2);const _0x3bef7b=_0x1b69c9['headers'],_0xe5c9c2=_0x1b69c9['query'];Object['assign'](_0x1b69c9,_0x1b53a2);const _0x321b56={..._0x3bef7b,..._0x1b53a2[_0x24ac55(0xc1)]};_0x1b69c9[_0x24ac55(0xc1)]=_0x321b56;const _0x2fe4c8={..._0xe5c9c2,..._0x1b53a2[_0x24ac55(0xd2)]};_0x1b69c9['query']=_0x2fe4c8;}for(const [_0x1bfe59,_0x11caac]of Object[_0x24ac55(0xbf)](_0x165b7d))Object[_0x24ac55(0xf3)](_0x1b69c9,{[_0x1bfe59]:async _0x5c1829=>{for(const _0x30eb20 of _0x11caac)await _0x30eb20(_0x5c1829);}});return _0x1b69c9;}function collectHook(_0x556ba9,_0x2afbde,_0x3b1ab4){const _0x409956=_0x5be832,_0x198001=_0x3b1ab4[_0x2afbde];if(typeof _0x198001!=='function')return;_0x556ba9[_0x2afbde]??=[],_0x556ba9[_0x2afbde][_0x409956(0xd9)](_0x198001);}function dispatch(_0x5adf9d,_0x2bed50,_0x267114,_0x584f92){let _0x1e39c0;if(_0x5adf9d==='upload')_0x1e39c0=dispatchUpload(_0x2bed50,_0x267114,_0x584f92);else{if(_0x5adf9d==='download')_0x1e39c0=dispatchDownload(_0x2bed50,_0x267114,_0x584f92);else _0x1e39c0=dispatchRequest(_0x2bed50,_0x267114,_0x584f92);}bindTask(_0x1e39c0,_0x267114);}function bindTask(_0x9b32a5,_0x6fa55a){const _0x4c10ea=_0x5be832;onAbort(_0x6fa55a[_0x4c10ea(0xc5)],()=>_0x9b32a5['abort']());if(typeof _0x6fa55a['onHeadersReceived']==='function')_0x9b32a5[_0x4c10ea(0xde)](_0x6fa55a['onHeadersReceived']);const _0x187102=_0x6fa55a['onChunk'];if(typeof _0x187102==='function'&&_0x4c10ea(0xcc)in _0x9b32a5)_0x9b32a5[_0x4c10ea(0xcc)](_0x187102);const _0x6c855b=_0x6fa55a['onProgress'];if(typeof _0x6c855b==='function'&&_0x4c10ea(0xd0)in _0x9b32a5)_0x9b32a5[_0x4c10ea(0xd0)](_0x6c855b);}function dispatchRequest(_0x1ffc0a,_0x5f3031,_0x5afe76){const _0x39e7a2=_0x5be832,_0x5a2b67={'url':_0x1ffc0a,'method':_0x5f3031[_0x39e7a2(0xee)],'header':_0x5f3031[_0x39e7a2(0xc1)],'data':_0x5f3031[_0x39e7a2(0xe9)]??{},'timeout':_0x5f3031['timeout'],'dataType':_0x5f3031[_0x39e7a2(0xd7)]||_0x39e7a2(0xe7),'responseType':mappedResponseBodyType(_0x5f3031[_0x39e7a2(0xf4)]),'sslVerify':_0x5f3031[_0x39e7a2(0xdf)],'withCredentials':_0x5f3031[_0x39e7a2(0xc2)],'firstIpv4':_0x5f3031[_0x39e7a2(0x108)],'enableHttp2':_0x5f3031['enableHttp2'],'enableQuic':_0x5f3031['enableQuic'],'enableCache':_0x5f3031[_0x39e7a2(0xec)],'enableHttpDNS':_0x5f3031[_0x39e7a2(0xfd)],'httpDNSServiceId':_0x5f3031['httpDNSServiceId'],'enableChunked':_0x5f3031['enableChunked'],'forceCellularNetwork':_0x5f3031['forceCellularNetwork'],'success':_0x5afe76[_0x39e7a2(0xfc)],'fail':_0x5afe76[_0x39e7a2(0x105)],'complete':()=>{}};return uni['request'](_0x5a2b67);}function dispatchUpload(_0x41b556,_0x25dfad,_0x6a1dfd){const _0x3304b2=_0x5be832,_0x5ccfee={};_0x5ccfee[_0x3304b2(0xd3)]=_0x41b556,_0x5ccfee['fileType']=_0x25dfad[_0x3304b2(0xd4)],_0x5ccfee['file']=_0x25dfad[_0x3304b2(0xeb)],_0x5ccfee[_0x3304b2(0x10a)]=_0x25dfad['filePath'],_0x5ccfee['name']=_0x25dfad[_0x3304b2(0xc9)]??_0x3304b2(0xeb),_0x5ccfee[_0x3304b2(0xbd)]=_0x25dfad[_0x3304b2(0xbd)],_0x5ccfee['header']=_0x25dfad['headers'],_0x5ccfee[_0x3304b2(0xdc)]=_0x25dfad[_0x3304b2(0xe9)]??{},_0x5ccfee[_0x3304b2(0xbe)]=_0x25dfad[_0x3304b2(0xbe)],_0x5ccfee[_0x3304b2(0xd8)]=_0x6a1dfd['onSuccess'],_0x5ccfee['fail']=_0x6a1dfd[_0x3304b2(0x105)],_0x5ccfee[_0x3304b2(0xbb)]=()=>{};const _0x1dee32=_0x5ccfee;return uni[_0x3304b2(0xe1)](_0x1dee32);}function dispatchDownload(_0xdea449,_0x1bde4e,_0x4be6d8){const _0x53c775=_0x5be832,_0x220d13={'url':_0xdea449,'header':_0x1bde4e['headers'],'timeout':_0x1bde4e['timeout'],'success':_0x6a239=>{const _0x545d87=_0x234c,_0x41edad={..._0x6a239};_0x41edad[_0x545d87(0xd5)]={},_0x41edad[_0x545d87(0xd5)][_0x545d87(0xe3)]=_0x6a239[_0x545d87(0xe3)],_0x4be6d8[_0x545d87(0xfc)](_0x41edad);},'fail':_0x4be6d8[_0x53c775(0x105)],'complete':()=>{}};return uni[_0x53c775(0xed)](_0x220d13);}function mappedResponseBodyType(_0x4f9bc7){const _0x3041bf=_0x5be832;if(!_0x4f9bc7||_0x4f9bc7===_0x3041bf(0xe7))return'text';if(_0x4f9bc7==='arrayBuffer')return'arraybuffer';return _0x3041bf(0xd6);}var HttpError=class extends Error{constructor(_0x28d7c6){const _0x36426e=_0x5be832;super(_0x28d7c6),this[_0x36426e(0xc9)]='HttpError';}};function createResponseError(_0x25dcd4,_0x13fbdb,_0xff3b5b){const _0x2d6239=_0x5be832,_0x55d668=_0x25dcd4,_0x54b7b6='['+(_0x13fbdb?.['method']||'GET')+']\x20'+_0x55d668,_0x1e1624=_0xff3b5b?_0xff3b5b['statusCode']+'\x20'+(_0xff3b5b['errMsg']||''):_0x2d6239(0xc6),_0x148608=_0xff3b5b?JSON['stringify'](_0xff3b5b['data']):_0x2d6239(0xf9),_0x3d0290=new HttpError(_0x54b7b6+':\x20'+_0x1e1624+(_0xff3b5b['data']?'\x20'+_0x148608:''));for(const _0xa0bc48 of[_0x2d6239(0x101),'options','response','data'])Object[_0x2d6239(0xfa)](_0x3d0290,_0xa0bc48,{'get'(){const _0x1807db=_0x2d6239,_0x3b29b8={};return _0x3b29b8[_0x1807db(0x101)]=_0x25dcd4,_0x3b29b8['options']=_0x13fbdb,_0x3b29b8['response']=_0xff3b5b,_0x3b29b8[_0x1807db(0xd5)]=_0xff3b5b[_0x1807db(0xd5)],_0x3b29b8[_0xa0bc48];}});return _0x3d0290;}function normalizeError(_0x3fca60){if(_0x3fca60 instanceof Error)return _0x3fca60;return Object['assign'](new Error(_0x3fca60?.['errMsg']||_0x3fca60?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x3fca60});}async function callRequestHooks(_0x4d5d5b,_0x37936d){await _0x37936d['onRequest']?.({'options':_0x37936d,'resource':_0x4d5d5b});}async function callRequestErrorHooks(_0x38d21c,_0x5c7121,_0x5adbb8){await _0x5c7121['onRequestError']?.({'options':_0x5c7121,'resource':_0x38d21c,'error':_0x5adbb8});}async function callResponseHooks(_0x12ed06,_0x56e203,_0x36ca7c){const _0x64fe60=_0x5be832;await _0x56e203[_0x64fe60(0xf1)]?.({'options':_0x56e203,'resource':_0x12ed06,'response':_0x36ca7c});}async function callResponseErrorHooks(_0x1d50ff,_0x77b3d9,_0x3571e0){await _0x77b3d9['onResponseError']?.({'options':_0x77b3d9,'resource':_0x1d50ff,'response':_0x3571e0});}async function refineResponse(_0x328da8,_0x15a1b8){if(_0x15a1b8['responseType']==='json'||!_0x15a1b8['responseType'])return{..._0x328da8,'data':await parseJSONResponse(_0x328da8['data'],_0x15a1b8)};return _0x328da8;}function parseJSONResponse(_0x2c72d4,_0x465be2){if(typeof _0x2c72d4!=='string')return _0x2c72d4;if(_0x465be2['parseResponse'])return _0x465be2['parseResponse'](_0x2c72d4);return _0x2c72d4?JSON['parse'](_0x2c72d4):null;}function isResponseError(_0xa973b8){const _0x30d600=_0x5be832,_0x17f130='statusCode'in _0xa973b8?_0xa973b8[_0x30d600(0xe0)]:void 0x0;return typeof _0x17f130===_0x30d600(0xc0)&&(_0x17f130<0xc8||_0x17f130>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x5be832(0x10d),'PUT','DELETE',_0x5be832(0xc7)]);async function withRetry(_0x5afcf4,_0x13febd){const _0xdffa61=_0x5be832,_0x41ff68=resolveRetryCount(_0x5afcf4);for(let _0x5e503e=0x0;;_0x5e503e++)try{return await _0x13febd();}catch(_0x2aefb5){if(_0x5e503e>=_0x41ff68||!shouldRetry(_0x2aefb5,_0x5afcf4))throw _0x2aefb5;await sleep(_0x5afcf4['retryDelay']??0x0,_0x5afcf4[_0xdffa61(0xc5)]);}}function resolveRetryCount(_0x5809ee){const _0x4aedd6=_0x5be832,{retry:_0x27ca97}=_0x5809ee;if(_0x27ca97===![])return 0x0;if(typeof _0x27ca97===_0x4aedd6(0xc0))return _0x27ca97>0x0?_0x27ca97:0x0;return isPayloadMethod(_0x5809ee['method'])?0x0:0x1;}function shouldRetry(_0x524f00,_0x38b58d){const _0x325c2f=_0x5be832;if(_0x38b58d['signal']?.[_0x325c2f(0xe2)]||isAbortError(_0x524f00))return![];const _0x54c746=_0x524f00?.[_0x325c2f(0xf5)]?.['statusCode'];if(typeof _0x54c746!=='number')return!![];return(_0x38b58d['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x325c2f(0xf8)](_0x54c746);}function isPayloadMethod(_0x15a15f){const _0x557fe5=_0x5be832;return!!_0x15a15f&&PAYLOAD_METHODS[_0x557fe5(0x102)](_0x15a15f[_0x557fe5(0xcf)]());}function sleep(_0x7c99c0,_0x4a52ca){return new Promise((_0x3140ad,_0x82a108)=>{const _0x41797f=_0x234c;if(_0x4a52ca?.[_0x41797f(0xe2)]){_0x82a108(_0x4a52ca[_0x41797f(0xe6)]);return;}if(!(_0x7c99c0>0x0)){_0x3140ad();return;}let _0x2bdd42=()=>{};const _0x111724=setTimeout(()=>{_0x2bdd42(),_0x3140ad();},_0x7c99c0);_0x2bdd42=onAbort(_0x4a52ca,()=>{clearTimeout(_0x111724),_0x82a108(_0x4a52ca['reason']);});});}function buildURL(_0x41eb81,_0x28096e){const _0x2b16a6=_0x5be832,_0x5daf06=joinURL(_0x28096e['baseURL'],_0x41eb81),_0x38dc2e=_0x28096e['query']??{},_0x2c000d=Object['keys'](_0x38dc2e)[_0x2b16a6(0xbc)](_0x2add86=>_0x38dc2e[_0x2add86]!==void 0x0)[_0x2b16a6(0xce)](_0x1a8675=>{const _0x716409=_0x2b16a6,_0x44efc6=_0x38dc2e[_0x1a8675];return(Array[_0x716409(0xca)](_0x44efc6)?_0x44efc6:[_0x44efc6])[_0x716409(0xba)](_0x146632=>encodeURIComponent(_0x1a8675)+'='+encodeURIComponent(String(_0x146632)));})['join']('&');if(!_0x2c000d)return _0x5daf06;return''+_0x5daf06+(_0x5daf06[_0x2b16a6(0xf8)]('?')?'&':'?')+_0x2c000d;}function joinURL(_0x40b5b2,_0x6e8864){const _0x45459b=_0x5be832;if(!_0x40b5b2||isAbsoluteURL(_0x6e8864))return _0x6e8864;return _0x40b5b2[_0x45459b(0xef)](/\/+$/,'')+'/'+_0x6e8864[_0x45459b(0xef)](/^\/+/,'');}function isAbsoluteURL(_0x208f49){const _0x2293d3=_0x5be832;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x2293d3(0xea)](_0x208f49)||_0x208f49[_0x2293d3(0x103)]('//');}function dispatchHttp(_0x579757,_0xbfd4d6,_0x483467){const _0x5a6b9a=buildURL(_0xbfd4d6,_0x483467);return withRetry(_0x483467,()=>attemptRequest(_0x579757,_0xbfd4d6,_0x5a6b9a,_0x483467));}function attemptRequest(_0x1f66f1,_0x4cae6b,_0x578ef5,_0x51b471){const _0x3d111f=!!_0x51b471['raw'];return new Promise((_0x39882d,_0x26a7b5)=>{const _0x2f7c0a=_0x234c;let _0x100207=![];const _0x4c4075=_0x594acb=>{if(_0x100207)return;_0x100207=!![],_0x594acb();},_0xab50cc=onAbort(_0x51b471['signal'],()=>{const _0x461756=_0x234c;_0x4c4075(()=>_0x26a7b5(_0x51b471[_0x461756(0xc5)][_0x461756(0xe6)]));}),_0x1099fc=_0x13ea98=>{_0xab50cc(),_0x4c4075(_0x13ea98);};callRequestHooks(_0x4cae6b,_0x51b471)['then'](()=>{if(_0x100207)return;dispatch(_0x1f66f1,_0x578ef5,_0x51b471,{'onSuccess':_0x4e4c23=>{const _0xae3892=_0x234c;Promise['resolve']()[_0xae3892(0x109)](()=>refineResponse(_0x4e4c23,_0x51b471))['then'](async _0xfa6309=>{if(isResponseError(_0x4e4c23)){await callResponseErrorHooks(_0x4cae6b,_0x51b471,_0xfa6309);if(!_0x51b471['ignoreResponseError'])throw createResponseError(_0x4cae6b,_0x51b471,_0xfa6309);}else await callResponseHooks(_0x4cae6b,_0x51b471,_0xfa6309);_0x1099fc(()=>_0x39882d(_0x3d111f?_0xfa6309:_0xfa6309['data']));})['catch'](_0x2b1f15=>_0x1099fc(()=>_0x26a7b5(_0x2b1f15)));},'onFail':_0x2e3f0e=>{const _0x356170=_0x234c;Promise['resolve']()[_0x356170(0x109)](async()=>{const _0x5189de=normalizeError(_0x2e3f0e);if(!isAbortError(_0x5189de))await callRequestErrorHooks(_0x4cae6b,_0x51b471,_0x5189de);throw _0x5189de;})['catch'](_0x5cf676=>_0x1099fc(()=>_0x26a7b5(_0x5cf676)));}});})[_0x2f7c0a(0xf0)](async _0x372187=>{const _0x464cc9=normalizeError(_0x372187);await callRequestErrorHooks(_0x4cae6b,_0x51b471,_0x464cc9),_0x1099fc(()=>_0x26a7b5(_0x464cc9));});});}const _0x35faf1={};_0x35faf1[_0x5be832(0xee)]='GET',_0x35faf1[_0x5be832(0xf4)]='json';const defaultConfig=_0x35faf1;function createHttp(_0x115a21={}){const _0x4e455a=_0x5be832,_0x5ba2c9=(_0x59c518,_0x941336)=>{const _0x1ddfe2=_0x234c,_0x4c397c={};return _0x4c397c['_action']='request',dispatchHttp(_0x1ddfe2(0x101),_0x59c518,mergeOptions(defaultConfig,_0x115a21,_0x941336,_0x4c397c));},_0x19535d=(_0x4ab800,_0x2eac96)=>{const _0x51cae2=_0x234c,_0x664bea={};return _0x664bea['method']=_0x51cae2(0x10d),_0x664bea[_0x51cae2(0xe8)]=_0x51cae2(0xdb),dispatchHttp(_0x51cae2(0xdb),_0x4ab800,mergeOptions(defaultConfig,_0x115a21,_0x2eac96,_0x664bea));},_0x29286f=(_0x553794,_0x417aa7)=>{const _0x2b5546=_0x234c,_0x40290d={};return _0x40290d['method']=_0x2b5546(0xfe),_0x40290d['_action']=_0x2b5546(0xc4),dispatchHttp(_0x2b5546(0xc4),_0x553794,mergeOptions(defaultConfig,_0x115a21,_0x417aa7,_0x40290d));},_0x5384d1=_0x5c2920=>createHttp(mergeOptions(_0x115a21,_0x5c2920)),_0x331af2={};return _0x331af2['request']=_0x5ba2c9,_0x331af2[_0x4e455a(0xdb)]=_0x19535d,_0x331af2[_0x4e455a(0xc4)]=_0x29286f,_0x331af2[_0x4e455a(0xda)]=_0x5384d1,_0x331af2;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
package/dist/oiyo-CUAtDW_Y.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.9
|
|
3
|
-
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
|
-
* Commercial software. See LICENSE for terms.
|
|
5
|
-
* Official site: https://oiyo.js.org
|
|
6
|
-
*/
|
|
7
|
-
function _0x113e(){const _0x983e9d=['addEventListener','onSuccess','data','download','274728vUbQvW','signal','PATCH','function','timeout','filter','test','onabort','onRequest','PUT','161yuyhAS','parseResponse','options','assign','statusCode','get','firstIpv4','3DpYGYD','message','onProgress','file','onHeadersReceived','arraybuffer','json','flatMap','stringify','header','upload','splice','ignoreResponseError','parse','text','GET','onResponse','files','keys','retryStatusCodes','HttpError','POST','onRequestError','2396801JlrgZd','headers','4Xhhkyp','throwIfAborted','complete','createHttp','listeners','forceCellularNetwork','enableHttpDNS','number','map','method','defineProperty','body','enumerable','<no\x20response>','createHttpAborter','name','AbortError','response','errMsg','tempFilePath','resolve','httpDNSServiceId','formData','aborted','15887ksHKCJ','enableCache','DELETE','_action','reason','616266NLdVpv','push','abort','1542672SLQkFB','indexOf','2018920FGledO','catch','emit','87704rMPBdW','responseType','includes','request','fileType','call','5xkCRVT','onFail'];_0x113e=function(){return _0x983e9d;};return _0x113e();}const _0x1889f2=_0x153b;(function(_0x44e069,_0x4cc62d){const _0x4f9c54=_0x153b,_0x52275d=_0x44e069();while(!![]){try{const _0x142dfa=parseInt(_0x4f9c54(0x1a4))/0x1*(-parseInt(_0x4f9c54(0x18c))/0x2)+-parseInt(_0x4f9c54(0x173))/0x3*(-parseInt(_0x4f9c54(0x162))/0x4)+parseInt(_0x4f9c54(0x15c))/0x5*(parseInt(_0x4f9c54(0x1a9))/0x6)+parseInt(_0x4f9c54(0x16c))/0x7*(parseInt(_0x4f9c54(0x156))/0x8)+parseInt(_0x4f9c54(0x1ac))/0x9+-parseInt(_0x4f9c54(0x153))/0xa+-parseInt(_0x4f9c54(0x18a))/0xb;if(_0x142dfa===_0x4cc62d)break;else _0x52275d['push'](_0x52275d['shift']());}catch(_0xf522c3){_0x52275d['push'](_0x52275d['shift']());}}}(_0x113e,0x23021));function createHttpAborter(){const _0x50be6a=new HttpAbortSignal();return{'signal':_0x50be6a,'abort':_0x5b6b1d=>_0x50be6a['_abort'](_0x5b6b1d)};}const ABORT_ERROR_NAME=_0x1889f2(0x19c);var AbortEmitter=class{[_0x1889f2(0x190)]=[];[_0x1889f2(0x15e)](_0x3fd989,_0x1ea8e0){const _0xf40307=_0x1889f2;if(_0x3fd989!==_0xf40307(0x1ab))return;this[_0xf40307(0x190)][_0xf40307(0x1aa)](_0x1ea8e0);}['removeEventListener'](_0x57cc1c,_0x30f1f7){const _0x2ad128=_0x1889f2;if(_0x57cc1c!=='abort')return;const _0x14efca=this['listeners'][_0x2ad128(0x1ad)](_0x30f1f7);if(_0x14efca!==-0x1)this['listeners'][_0x2ad128(0x17e)](_0x14efca,0x1);}['emit'](_0x25fff8){const _0x4c8964=_0x1889f2;for(const _0x52b2a0 of this[_0x4c8964(0x190)]['slice']())_0x52b2a0[_0x4c8964(0x15b)](this,_0x25fff8);}},HttpAbortSignal=class extends AbortEmitter{[_0x1889f2(0x1a3)]=![];[_0x1889f2(0x1a8)]=void 0x0;[_0x1889f2(0x169)]=null;['_abort'](_0x494b57){const _0x445237=_0x1889f2;if(this['aborted'])return;this[_0x445237(0x1a3)]=!![],this['reason']=_0x494b57===void 0x0?createAbortError():_0x494b57;const _0x3c8abb={};_0x3c8abb['type']=_0x445237(0x1ab);const _0x2bf0f6=_0x3c8abb;if(typeof this[_0x445237(0x169)]===_0x445237(0x165))this['onabort'](_0x2bf0f6);this[_0x445237(0x155)](_0x2bf0f6);}[_0x1889f2(0x18d)](){const _0xeff6c5=_0x1889f2;if(this[_0xeff6c5(0x1a3)])throw this['reason'];}};function createAbortError(_0x57dfd8='The\x20operation\x20was\x20aborted'){const _0x19d58b=new Error(_0x57dfd8);return _0x19d58b['name']=ABORT_ERROR_NAME,_0x19d58b;}function isAbortError(_0x3a40e0){return _0x3a40e0 instanceof Error&&_0x3a40e0['name']===ABORT_ERROR_NAME;}function onAbort(_0x417b63,_0x3ca7ad){const _0x1b42c6=_0x1889f2;if(!_0x417b63)return()=>{};if(_0x417b63[_0x1b42c6(0x1a3)])return _0x3ca7ad(),()=>{};return _0x417b63['addEventListener'](_0x1b42c6(0x1ab),_0x3ca7ad),()=>_0x417b63['removeEventListener']('abort',_0x3ca7ad);}const HOOK_NAMES=['onRequest',_0x1889f2(0x189),'onResponse','onResponseError'];function mergeOptions(..._0x4034c9){const _0x24cc83=_0x1889f2,_0x56abea={},_0x473c0d={};for(const _0x95aac6 of _0x4034c9){if(!_0x95aac6)continue;for(const _0x442457 of HOOK_NAMES)collectHook(_0x473c0d,_0x442457,_0x95aac6);const _0x355f3f=_0x56abea['headers'],_0x449028=_0x56abea['query'];Object[_0x24cc83(0x16f)](_0x56abea,_0x95aac6);const _0x20ed85={..._0x355f3f,..._0x95aac6[_0x24cc83(0x18b)]};_0x56abea['headers']=_0x20ed85;const _0x54a190={..._0x449028,..._0x95aac6['query']};_0x56abea['query']=_0x54a190;}for(const [_0x3e130e,_0x202aea]of Object['entries'](_0x473c0d))Object[_0x24cc83(0x16f)](_0x56abea,{[_0x3e130e]:async _0x14017f=>{for(const _0x1cb16b of _0x202aea)await _0x1cb16b(_0x14017f);}});return _0x56abea;}function collectHook(_0x59f1d3,_0x107605,_0x4bdf40){const _0x24f166=_0x4bdf40[_0x107605];if(typeof _0x24f166!=='function')return;_0x59f1d3[_0x107605]??=[],_0x59f1d3[_0x107605]['push'](_0x24f166);}function dispatch(_0x3bcdae,_0x11799a,_0x17b405,_0x478591){const _0x5e10e1=_0x1889f2;let _0x5706b7;if(_0x3bcdae===_0x5e10e1(0x17d))_0x5706b7=dispatchUpload(_0x11799a,_0x17b405,_0x478591);else{if(_0x3bcdae==='download')_0x5706b7=dispatchDownload(_0x11799a,_0x17b405,_0x478591);else _0x5706b7=dispatchRequest(_0x11799a,_0x17b405,_0x478591);}bindTask(_0x5706b7,_0x17b405);}function bindTask(_0xf31368,_0x53e971){const _0x3daa56=_0x1889f2;onAbort(_0x53e971['signal'],()=>_0xf31368['abort']());if(typeof _0x53e971['onHeadersReceived']===_0x3daa56(0x165))_0xf31368['onHeadersReceived'](_0x53e971[_0x3daa56(0x177)]);const _0x19a750=_0x53e971['onChunk'];if(typeof _0x19a750===_0x3daa56(0x165)&&'onChunkReceived'in _0xf31368)_0xf31368['onChunkReceived'](_0x19a750);const _0x4feb08=_0x53e971[_0x3daa56(0x175)];if(typeof _0x4feb08==='function'&&'onProgressUpdate'in _0xf31368)_0xf31368['onProgressUpdate'](_0x4feb08);}function dispatchRequest(_0x16fd73,_0x37e054,_0x5ccd73){const _0x3541a7=_0x1889f2,_0x41c35f={'url':_0x16fd73,'method':_0x37e054['method'],'header':_0x37e054[_0x3541a7(0x18b)],'data':_0x37e054['body']??{},'timeout':_0x37e054[_0x3541a7(0x166)],'dataType':_0x37e054['dataType']||_0x3541a7(0x179),'responseType':mappedResponseBodyType(_0x37e054[_0x3541a7(0x157)]),'sslVerify':_0x37e054['sslVerify'],'withCredentials':_0x37e054['withCredentials'],'firstIpv4':_0x37e054[_0x3541a7(0x172)],'enableHttp2':_0x37e054['enableHttp2'],'enableQuic':_0x37e054['enableQuic'],'enableCache':_0x37e054[_0x3541a7(0x1a5)],'enableHttpDNS':_0x37e054[_0x3541a7(0x192)],'httpDNSServiceId':_0x37e054[_0x3541a7(0x1a1)],'enableChunked':_0x37e054['enableChunked'],'forceCellularNetwork':_0x37e054[_0x3541a7(0x191)],'success':_0x5ccd73[_0x3541a7(0x15f)],'fail':_0x5ccd73[_0x3541a7(0x15d)],'complete':()=>{}};return uni['request'](_0x41c35f);}function dispatchUpload(_0x5290d4,_0x3ff79d,_0x3d0f0e){const _0x4d75c9=_0x1889f2,_0x276add={};_0x276add['url']=_0x5290d4,_0x276add[_0x4d75c9(0x15a)]=_0x3ff79d['fileType'],_0x276add['file']=_0x3ff79d[_0x4d75c9(0x176)],_0x276add['filePath']=_0x3ff79d['filePath'],_0x276add['name']=_0x3ff79d['name']??'file',_0x276add[_0x4d75c9(0x184)]=_0x3ff79d[_0x4d75c9(0x184)],_0x276add[_0x4d75c9(0x17c)]=_0x3ff79d['headers'],_0x276add[_0x4d75c9(0x1a2)]=_0x3ff79d[_0x4d75c9(0x197)]??{},_0x276add['timeout']=_0x3ff79d['timeout'],_0x276add['success']=_0x3d0f0e['onSuccess'],_0x276add['fail']=_0x3d0f0e['onFail'],_0x276add[_0x4d75c9(0x18e)]=()=>{};const _0x2e2d34=_0x276add;return uni['uploadFile'](_0x2e2d34);}function dispatchDownload(_0x944d84,_0x3ff9ea,_0x180b97){const _0x59bf66={'url':_0x944d84,'header':_0x3ff9ea['headers'],'timeout':_0x3ff9ea['timeout'],'success':_0x21df58=>{const _0x293b9c=_0x153b,_0x2d8eed={..._0x21df58};_0x2d8eed[_0x293b9c(0x160)]={},_0x2d8eed[_0x293b9c(0x160)][_0x293b9c(0x19f)]=_0x21df58[_0x293b9c(0x19f)],_0x180b97[_0x293b9c(0x15f)](_0x2d8eed);},'fail':_0x180b97['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x59bf66);}function mappedResponseBodyType(_0x3a8187){const _0x1229e0=_0x1889f2;if(!_0x3a8187||_0x3a8187===_0x1229e0(0x179))return _0x1229e0(0x181);if(_0x3a8187==='arrayBuffer')return _0x1229e0(0x178);return _0x1229e0(0x181);}var HttpError=class extends Error{constructor(_0x262d8b){const _0x2990a6=_0x1889f2;super(_0x262d8b),this[_0x2990a6(0x19b)]=_0x2990a6(0x187);}};function createResponseError(_0x1597c7,_0x2ce43c,_0x242c26){const _0x47fd06=_0x1889f2,_0x4ee9b4=_0x1597c7,_0x4e9b5e='['+(_0x2ce43c?.[_0x47fd06(0x195)]||'GET')+']\x20'+_0x4ee9b4,_0x3d000c=_0x242c26?_0x242c26[_0x47fd06(0x170)]+'\x20'+(_0x242c26[_0x47fd06(0x19e)]||''):_0x47fd06(0x199),_0x5337e4=_0x242c26?JSON[_0x47fd06(0x17b)](_0x242c26[_0x47fd06(0x160)]):'<no\x20response\x20body>',_0x763c2e=new HttpError(_0x4e9b5e+':\x20'+_0x3d000c+(_0x242c26['data']?'\x20'+_0x5337e4:''));for(const _0x5b43d0 of['request',_0x47fd06(0x16e),_0x47fd06(0x19d),_0x47fd06(0x160)])Object[_0x47fd06(0x196)](_0x763c2e,_0x5b43d0,{'get'(){const _0x388599=_0x47fd06,_0x4708c={};return _0x4708c[_0x388599(0x159)]=_0x1597c7,_0x4708c['options']=_0x2ce43c,_0x4708c[_0x388599(0x19d)]=_0x242c26,_0x4708c[_0x388599(0x160)]=_0x242c26[_0x388599(0x160)],_0x4708c[_0x5b43d0];}});return _0x763c2e;}function normalizeError(_0x56e7d3){const _0x212088=_0x1889f2;if(_0x56e7d3 instanceof Error)return _0x56e7d3;return Object['assign'](new Error(_0x56e7d3?.[_0x212088(0x19e)]||_0x56e7d3?.[_0x212088(0x174)]||'HTTP\x20request\x20failed'),{'cause':_0x56e7d3});}async function callRequestHooks(_0x502e44,_0x4b00cb){const _0x1b2eae=_0x1889f2;await _0x4b00cb[_0x1b2eae(0x16a)]?.({'options':_0x4b00cb,'resource':_0x502e44});}async function callRequestErrorHooks(_0x177434,_0x3bee86,_0x583787){await _0x3bee86['onRequestError']?.({'options':_0x3bee86,'resource':_0x177434,'error':_0x583787});}async function callResponseHooks(_0x31dd26,_0x47a2f6,_0x175459){const _0x32078a=_0x1889f2;await _0x47a2f6[_0x32078a(0x183)]?.({'options':_0x47a2f6,'resource':_0x31dd26,'response':_0x175459});}async function callResponseErrorHooks(_0x5d7492,_0x3c7b6e,_0x827b34){await _0x3c7b6e['onResponseError']?.({'options':_0x3c7b6e,'resource':_0x5d7492,'response':_0x827b34});}async function refineResponse(_0xc7049a,_0x40fbfb){const _0x301806=_0x1889f2;if(_0x40fbfb[_0x301806(0x157)]==='json'||!_0x40fbfb['responseType'])return{..._0xc7049a,'data':await parseJSONResponse(_0xc7049a['data'],_0x40fbfb)};return _0xc7049a;}function parseJSONResponse(_0x220570,_0x46a06a){const _0x110dcc=_0x1889f2;if(typeof _0x220570!=='string')return _0x220570;if(_0x46a06a['parseResponse'])return _0x46a06a[_0x110dcc(0x16d)](_0x220570);return _0x220570?JSON[_0x110dcc(0x180)](_0x220570):null;}function isResponseError(_0x1faf6d){const _0x1d0a5b=_0x1889f2,_0x2b37ed='statusCode'in _0x1faf6d?_0x1faf6d[_0x1d0a5b(0x170)]:void 0x0;return typeof _0x2b37ed===_0x1d0a5b(0x193)&&(_0x2b37ed<0xc8||_0x2b37ed>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x1889f2(0x16b),_0x1889f2(0x1a6),_0x1889f2(0x164)]);async function withRetry(_0x2a3050,_0x5b6033){const _0xea3c22=resolveRetryCount(_0x2a3050);for(let _0x2bbd4a=0x0;;_0x2bbd4a++)try{return await _0x5b6033();}catch(_0x406bd9){if(_0x2bbd4a>=_0xea3c22||!shouldRetry(_0x406bd9,_0x2a3050))throw _0x406bd9;await sleep(_0x2a3050['retryDelay']??0x0,_0x2a3050['signal']);}}function resolveRetryCount(_0x159a67){const _0x44a66b=_0x1889f2,{retry:_0x2af424}=_0x159a67;if(_0x2af424===![])return 0x0;if(typeof _0x2af424===_0x44a66b(0x193))return _0x2af424>0x0?_0x2af424:0x0;return isPayloadMethod(_0x159a67['method'])?0x0:0x1;}function shouldRetry(_0x594825,_0x306fae){const _0x4996b0=_0x1889f2;if(_0x306fae['signal']?.['aborted']||isAbortError(_0x594825))return![];const _0x500a7f=_0x594825?.[_0x4996b0(0x19d)]?.['statusCode'];if(typeof _0x500a7f!==_0x4996b0(0x193))return!![];return(_0x306fae[_0x4996b0(0x186)]??DEFAULT_RETRY_STATUS_CODES)[_0x4996b0(0x158)](_0x500a7f);}function isPayloadMethod(_0x145496){return!!_0x145496&&PAYLOAD_METHODS['has'](_0x145496['toUpperCase']());}function sleep(_0x444204,_0x502f94){return new Promise((_0xda734a,_0x24a5e1)=>{const _0x3c806d=_0x153b;if(_0x502f94?.[_0x3c806d(0x1a3)]){_0x24a5e1(_0x502f94['reason']);return;}if(!(_0x444204>0x0)){_0xda734a();return;}let _0x40595f=()=>{};const _0x3cad0b=setTimeout(()=>{_0x40595f(),_0xda734a();},_0x444204);_0x40595f=onAbort(_0x502f94,()=>{clearTimeout(_0x3cad0b),_0x24a5e1(_0x502f94['reason']);});});}function _0x153b(_0x2722dd,_0x58bcc6){_0x2722dd=_0x2722dd-0x153;const _0x113e33=_0x113e();let _0x153bda=_0x113e33[_0x2722dd];return _0x153bda;}function buildURL(_0x2b6a60,_0x43e841){const _0x10fbcd=_0x1889f2,_0x1982dc=joinURL(_0x43e841['baseURL'],_0x2b6a60),_0x13fb28=_0x43e841['query']??{},_0x1393d6=Object[_0x10fbcd(0x185)](_0x13fb28)[_0x10fbcd(0x167)](_0x1568b8=>_0x13fb28[_0x1568b8]!==void 0x0)[_0x10fbcd(0x17a)](_0x430977=>{const _0x1da221=_0x10fbcd,_0x54d388=_0x13fb28[_0x430977];return(Array['isArray'](_0x54d388)?_0x54d388:[_0x54d388])[_0x1da221(0x194)](_0x3458f7=>encodeURIComponent(_0x430977)+'='+encodeURIComponent(String(_0x3458f7)));})['join']('&');if(!_0x1393d6)return _0x1982dc;return''+_0x1982dc+(_0x1982dc[_0x10fbcd(0x158)]('?')?'&':'?')+_0x1393d6;}function joinURL(_0x468db4,_0x340229){if(!_0x468db4||isAbsoluteURL(_0x340229))return _0x340229;return _0x468db4['replace'](/\/+$/,'')+'/'+_0x340229['replace'](/^\/+/,'');}function isAbsoluteURL(_0x596ebb){const _0x3e6e63=_0x1889f2;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3e6e63(0x168)](_0x596ebb)||_0x596ebb['startsWith']('//');}function dispatchHttp(_0x537e28,_0x3554f0,_0x5e9658){const _0xf37c1a=buildURL(_0x3554f0,_0x5e9658);return withRetry(_0x5e9658,()=>attemptRequest(_0x537e28,_0x3554f0,_0xf37c1a,_0x5e9658));}function attemptRequest(_0x4c39aa,_0x3fd260,_0x465ba0,_0x4cfb4b){const _0x42fcdb=!!_0x4cfb4b['raw'];return new Promise((_0x3b9452,_0x97a517)=>{const _0x94510=_0x153b;let _0x169258=![];const _0x3cf977=_0x242510=>{if(_0x169258)return;_0x169258=!![],_0x242510();},_0x46ff8a=onAbort(_0x4cfb4b[_0x94510(0x163)],()=>{const _0x58be3a=_0x94510;_0x3cf977(()=>_0x97a517(_0x4cfb4b[_0x58be3a(0x163)][_0x58be3a(0x1a8)]));}),_0x57c3fb=_0x5d5752=>{_0x46ff8a(),_0x3cf977(_0x5d5752);};callRequestHooks(_0x3fd260,_0x4cfb4b)['then'](()=>{if(_0x169258)return;dispatch(_0x4c39aa,_0x465ba0,_0x4cfb4b,{'onSuccess':_0x2bc049=>{const _0x4fb0b1=_0x153b;Promise['resolve']()['then'](()=>refineResponse(_0x2bc049,_0x4cfb4b))['then'](async _0x13b704=>{const _0x45fbdd=_0x153b;if(isResponseError(_0x2bc049)){await callResponseErrorHooks(_0x3fd260,_0x4cfb4b,_0x13b704);if(!_0x4cfb4b[_0x45fbdd(0x17f)])throw createResponseError(_0x3fd260,_0x4cfb4b,_0x13b704);}else await callResponseHooks(_0x3fd260,_0x4cfb4b,_0x13b704);_0x57c3fb(()=>_0x3b9452(_0x42fcdb?_0x13b704:_0x13b704['data']));})[_0x4fb0b1(0x154)](_0x5465e1=>_0x57c3fb(()=>_0x97a517(_0x5465e1)));},'onFail':_0x517d32=>{const _0x5c2d0c=_0x153b;Promise[_0x5c2d0c(0x1a0)]()['then'](async()=>{const _0x541004=normalizeError(_0x517d32);if(!isAbortError(_0x541004))await callRequestErrorHooks(_0x3fd260,_0x4cfb4b,_0x541004);throw _0x541004;})[_0x5c2d0c(0x154)](_0x37d87c=>_0x57c3fb(()=>_0x97a517(_0x37d87c)));}});})[_0x94510(0x154)](async _0x28f242=>{const _0x2a8c75=normalizeError(_0x28f242);await callRequestErrorHooks(_0x3fd260,_0x4cfb4b,_0x2a8c75),_0x57c3fb(()=>_0x97a517(_0x2a8c75));});});}const _0x255b02={};_0x255b02['method']='GET',_0x255b02['responseType']='json';const defaultConfig=_0x255b02;function createHttp(_0x342319={}){const _0x8f6102=_0x1889f2,_0x58bc69=(_0x39b539,_0x3b3f4a)=>{const _0x37d091=_0x153b,_0x47dcfd={};return _0x47dcfd[_0x37d091(0x1a7)]=_0x37d091(0x159),dispatchHttp(_0x37d091(0x159),_0x39b539,mergeOptions(defaultConfig,_0x342319,_0x3b3f4a,_0x47dcfd));},_0x288b1d=(_0x2fee9f,_0x67376a)=>{const _0x374667=_0x153b,_0x36fde3={};return _0x36fde3[_0x374667(0x195)]=_0x374667(0x188),_0x36fde3[_0x374667(0x1a7)]=_0x374667(0x17d),dispatchHttp(_0x374667(0x17d),_0x2fee9f,mergeOptions(defaultConfig,_0x342319,_0x67376a,_0x36fde3));},_0x23d31c=(_0x2ef1af,_0x1a0d5a)=>{const _0x4ce23d=_0x153b,_0x51b22c={};return _0x51b22c['method']=_0x4ce23d(0x182),_0x51b22c['_action']='download',dispatchHttp(_0x4ce23d(0x161),_0x2ef1af,mergeOptions(defaultConfig,_0x342319,_0x1a0d5a,_0x51b22c));},_0x5c21f6=_0x5952b1=>createHttp(mergeOptions(_0x342319,_0x5952b1)),_0x2950c7={};return _0x2950c7[_0x8f6102(0x159)]=_0x58bc69,_0x2950c7['upload']=_0x288b1d,_0x2950c7['download']=_0x23d31c,_0x2950c7['create']=_0x5c21f6,_0x2950c7;}const http=createHttp(),_0x26df23={};_0x26df23[_0x1889f2(0x198)]=!![],_0x26df23[_0x1889f2(0x171)]=function(){return createHttp;},Object['defineProperty'](exports,_0x1889f2(0x18f),_0x26df23);const _0x51a6dd={};_0x51a6dd['enumerable']=!![],_0x51a6dd['get']=function(){return createHttpAborter;},Object[_0x1889f2(0x196)](exports,_0x1889f2(0x19a),_0x51a6dd);const _0x5ee7b9={};_0x5ee7b9[_0x1889f2(0x198)]=!![],_0x5ee7b9[_0x1889f2(0x171)]=function(){return http;},Object[_0x1889f2(0x196)](exports,'http',_0x5ee7b9);
|