@oiyo/framework 0.4.3 → 0.4.4
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-FLtcYVnl.d.cts → index-6y-CxV-U.d.cts} +1 -1
- package/dist/{index-FLtcYVnl.d.mts → index-6y-CxV-U.d.mts} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/oiyo-DF-n178E.cjs +7 -0
- package/dist/oiyo-GRTo5_GU.mjs +7 -0
- package/dist/oiyo.cjs +2 -2
- package/dist/oiyo.d.cts +2 -2
- package/dist/oiyo.d.mts +2 -2
- package/dist/oiyo.mjs +2 -2
- package/dist/{rolldown-runtime-Cd2FXjOO.mjs → rolldown-runtime-D5dVOuTm.mjs} +1 -1
- package/dist/{rolldown-runtime-C9xUVgZB.cjs → rolldown-runtime-DQZhkyOB.cjs} +1 -1
- package/dist/uni.cjs +2 -2
- package/dist/uni.d.cts +1 -1
- package/dist/uni.d.mts +1 -1
- package/dist/uni.mjs +2 -2
- package/dist/vue.cjs +2 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.mts +1 -1
- package/dist/vue.mjs +2 -2
- package/package.json +1 -1
- package/dist/oiyo-Cgos8MRo.cjs +0 -7
- package/dist/oiyo-DnFYTx_L.mjs +0 -7
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
-
require("./rolldown-runtime-
|
|
9
|
-
const require_oiyo = require("./oiyo-
|
|
8
|
+
require("./rolldown-runtime-DQZhkyOB.cjs");
|
|
9
|
+
const require_oiyo = require("./oiyo-DF-n178E.cjs");
|
|
10
10
|
require("./uni.cjs");
|
|
11
11
|
require("./vue.cjs");
|
|
12
12
|
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-6y-CxV-U.cjs";
|
|
8
8
|
export * from "@dcloudio/uni-app";
|
|
9
9
|
export * from "vue";
|
|
10
10
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-6y-CxV-U.mjs";
|
|
8
8
|
export * from "@dcloudio/uni-app";
|
|
9
9
|
export * from "vue";
|
|
10
10
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import "./rolldown-runtime-
|
|
8
|
-
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-
|
|
7
|
+
import "./rolldown-runtime-D5dVOuTm.mjs";
|
|
8
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-GRTo5_GU.mjs";
|
|
9
9
|
import "./uni.mjs";
|
|
10
10
|
import "./vue.mjs";
|
|
11
11
|
export * from "@dcloudio/uni-app";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
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 _0x4b27b1=_0x691c;(function(_0x55f42b,_0x139e22){const _0x3d766a=_0x691c,_0x5a8763=_0x55f42b();while(!![]){try{const _0x188de8=-parseInt(_0x3d766a(0xcf))/0x1*(-parseInt(_0x3d766a(0xc9))/0x2)+-parseInt(_0x3d766a(0xcb))/0x3*(parseInt(_0x3d766a(0xbf))/0x4)+parseInt(_0x3d766a(0xb3))/0x5+-parseInt(_0x3d766a(0xbd))/0x6+-parseInt(_0x3d766a(0xb5))/0x7+-parseInt(_0x3d766a(0xce))/0x8*(-parseInt(_0x3d766a(0xc3))/0x9)+-parseInt(_0x3d766a(0xb2))/0xa*(-parseInt(_0x3d766a(0xbe))/0xb);if(_0x188de8===_0x139e22)break;else _0x5a8763['push'](_0x5a8763['shift']());}catch(_0x750d79){_0x5a8763['push'](_0x5a8763['shift']());}}}(_0x3c4a,0xbd50a));function createHttpAborter(){const _0x4790b5=new HttpAbortSignal();return{'signal':_0x4790b5,'abort':_0x57a353=>_0x4790b5['_abort'](_0x57a353)};}const ABORT_ERROR_NAME=_0x4b27b1(0xd8);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x3428c6,_0x374414){const _0x536c9f=_0x4b27b1;if(_0x3428c6!==_0x536c9f(0xd5))return;this[_0x536c9f(0xb7)]['push'](_0x374414);}['removeEventListener'](_0x5b95f7,_0x4b4d6a){const _0x42ec62=_0x4b27b1;if(_0x5b95f7!=='abort')return;const _0x133bbf=this['listeners'][_0x42ec62(0xee)](_0x4b4d6a);if(_0x133bbf!==-0x1)this['listeners']['splice'](_0x133bbf,0x1);}['emit'](_0x22feed){for(const _0x5575e0 of this['listeners']['slice']())_0x5575e0['call'](this,_0x22feed);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;['onabort']=null;[_0x4b27b1(0xfc)](_0x21dedf){const _0x3fe6d3=_0x4b27b1;if(this[_0x3fe6d3(0xc0)])return;this['aborted']=!![],this[_0x3fe6d3(0xe4)]=_0x21dedf===void 0x0?createAbortError():_0x21dedf;const _0x255f85={};_0x255f85[_0x3fe6d3(0xed)]=_0x3fe6d3(0xd5);const _0x27afd1=_0x255f85;if(typeof this[_0x3fe6d3(0xeb)]===_0x3fe6d3(0xea))this['onabort'](_0x27afd1);this['emit'](_0x27afd1);}[_0x4b27b1(0xe3)](){const _0x41583c=_0x4b27b1;if(this[_0x41583c(0xc0)])throw this[_0x41583c(0xe4)];}};function _0x691c(_0x3ba5a0,_0x55c195){_0x3ba5a0=_0x3ba5a0-0xa8;const _0x3c4abc=_0x3c4a();let _0x691c98=_0x3c4abc[_0x3ba5a0];return _0x691c98;}function createAbortError(_0x45b692=_0x4b27b1(0xc7)){const _0x16a1c9=new Error(_0x45b692);return _0x16a1c9['name']=ABORT_ERROR_NAME,_0x16a1c9;}function isAbortError(_0x5716a3){const _0x20c3f7=_0x4b27b1;return _0x5716a3 instanceof Error&&_0x5716a3[_0x20c3f7(0xc8)]===ABORT_ERROR_NAME;}function onAbort(_0x471289,_0x2f23b2){const _0x312a05=_0x4b27b1;if(!_0x471289)return()=>{};if(_0x471289[_0x312a05(0xc0)])return _0x2f23b2(),()=>{};return _0x471289['addEventListener']('abort',_0x2f23b2),()=>_0x471289[_0x312a05(0xe8)](_0x312a05(0xd5),_0x2f23b2);}const HOOK_NAMES=[_0x4b27b1(0xcc),'onRequestError',_0x4b27b1(0xb0),'onResponseError'];function mergeOptions(..._0x617790){const _0x3b2516=_0x4b27b1,_0x5d7124={},_0x2d6987={};for(const _0x22dd21 of _0x617790){if(!_0x22dd21)continue;for(const _0x24573d of HOOK_NAMES)collectHook(_0x2d6987,_0x24573d,_0x22dd21);const _0x4dee4f=_0x5d7124['headers'],_0x41efb6=_0x5d7124['query'];Object['assign'](_0x5d7124,_0x22dd21);const _0x12e8dd={..._0x4dee4f,..._0x22dd21['headers']};_0x5d7124['headers']=_0x12e8dd;const _0x5061f9={..._0x41efb6,..._0x22dd21[_0x3b2516(0xe6)]};_0x5d7124[_0x3b2516(0xe6)]=_0x5061f9;}for(const [_0x312975,_0x1adab7]of Object[_0x3b2516(0xc6)](_0x2d6987))Object['assign'](_0x5d7124,{[_0x312975]:async _0x13329a=>{for(const _0x5d06eb of _0x1adab7)await _0x5d06eb(_0x13329a);}});return _0x5d7124;}function collectHook(_0x1cb59e,_0x5b224c,_0x123325){const _0x2cf893=_0x4b27b1,_0x5163d1=_0x123325[_0x5b224c];if(typeof _0x5163d1!==_0x2cf893(0xea))return;_0x1cb59e[_0x5b224c]??=[],_0x1cb59e[_0x5b224c]['push'](_0x5163d1);}function dispatch(_0x3c2fce,_0x567d52,_0x69005f,_0xf012d7){const _0x3a87fd=_0x4b27b1;let _0x19d16b;if(_0x3c2fce==='upload')_0x19d16b=dispatchUpload(_0x567d52,_0x69005f,_0xf012d7);else{if(_0x3c2fce===_0x3a87fd(0xde))_0x19d16b=dispatchDownload(_0x567d52,_0x69005f,_0xf012d7);else _0x19d16b=dispatchRequest(_0x567d52,_0x69005f,_0xf012d7);}bindTask(_0x19d16b,_0x69005f);}function bindTask(_0x51466b,_0x2cb57b){const _0x11b0cf=_0x4b27b1;onAbort(_0x2cb57b[_0x11b0cf(0xca)],()=>_0x51466b[_0x11b0cf(0xd5)]());if(typeof _0x2cb57b['onHeadersReceived']==='function')_0x51466b[_0x11b0cf(0xdd)](_0x2cb57b['onHeadersReceived']);const _0x14ee83=_0x2cb57b[_0x11b0cf(0xc2)];if(typeof _0x14ee83==='function'&&'onProgressUpdate'in _0x51466b)_0x51466b['onProgressUpdate'](_0x14ee83);}function dispatchRequest(_0x21756d,_0x48fd8b,_0x19f237){const _0xdbf0eb=_0x4b27b1,_0x328610={'url':_0x21756d,'method':_0x48fd8b['method'],'header':_0x48fd8b[_0xdbf0eb(0xf1)],'data':_0x48fd8b['body']??{},'timeout':_0x48fd8b['timeout'],'dataType':_0x48fd8b['dataType']||'json','responseType':mappedResponseBodyType(_0x48fd8b[_0xdbf0eb(0xa9)]),'sslVerify':_0x48fd8b['sslVerify'],'withCredentials':_0x48fd8b['withCredentials'],'firstIpv4':_0x48fd8b[_0xdbf0eb(0xe0)],'enableHttp2':_0x48fd8b[_0xdbf0eb(0xaf)],'enableQuic':_0x48fd8b['enableQuic'],'enableCache':_0x48fd8b['enableCache'],'enableHttpDNS':_0x48fd8b[_0xdbf0eb(0xf7)],'httpDNSServiceId':_0x48fd8b[_0xdbf0eb(0xb6)],'enableChunked':_0x48fd8b['enableChunked'],'forceCellularNetwork':_0x48fd8b['forceCellularNetwork'],'success':_0x19f237[_0xdbf0eb(0xd2)],'fail':_0x19f237[_0xdbf0eb(0xef)],'complete':()=>{}};return uni[_0xdbf0eb(0xae)](_0x328610);}function dispatchUpload(_0x4ba036,_0x40fc4d,_0x5a57b5){const _0x52dbd0=_0x4b27b1,_0x1c4cbf={};_0x1c4cbf[_0x52dbd0(0xf6)]=_0x4ba036,_0x1c4cbf['fileType']=_0x40fc4d[_0x52dbd0(0xbc)],_0x1c4cbf['file']=_0x40fc4d['file'],_0x1c4cbf[_0x52dbd0(0xd0)]=_0x40fc4d[_0x52dbd0(0xd0)],_0x1c4cbf['name']=_0x40fc4d[_0x52dbd0(0xc8)]??'file',_0x1c4cbf[_0x52dbd0(0xfa)]=_0x40fc4d['files'],_0x1c4cbf['header']=_0x40fc4d[_0x52dbd0(0xf1)],_0x1c4cbf[_0x52dbd0(0xf8)]=_0x40fc4d['body']??{},_0x1c4cbf[_0x52dbd0(0xc1)]=_0x40fc4d['timeout'],_0x1c4cbf[_0x52dbd0(0xe1)]=_0x5a57b5[_0x52dbd0(0xd2)],_0x1c4cbf[_0x52dbd0(0xd7)]=_0x5a57b5['onFail'],_0x1c4cbf['complete']=()=>{};const _0x307285=_0x1c4cbf;return uni[_0x52dbd0(0xbb)](_0x307285);}function dispatchDownload(_0x38f667,_0x265be3,_0x49814e){const _0x437a16=_0x4b27b1,_0x112270={'url':_0x38f667,'header':_0x265be3['headers'],'timeout':_0x265be3[_0x437a16(0xc1)],'success':_0x1a816c=>{const _0x36a3a3=_0x437a16,_0x4ccbb0={..._0x1a816c};_0x4ccbb0[_0x36a3a3(0xe7)]={},_0x4ccbb0[_0x36a3a3(0xe7)][_0x36a3a3(0xf0)]=_0x1a816c[_0x36a3a3(0xf0)],_0x49814e[_0x36a3a3(0xd2)](_0x4ccbb0);},'fail':_0x49814e[_0x437a16(0xef)],'complete':()=>{}};return uni[_0x437a16(0xc4)](_0x112270);}function mappedResponseBodyType(_0x4d82bb){const _0x188ff6=_0x4b27b1;if(!_0x4d82bb||_0x4d82bb==='json')return'text';if(_0x4d82bb===_0x188ff6(0xf5))return _0x188ff6(0xa8);return'text';}var HttpError=class extends Error{constructor(_0x175e8c){super(_0x175e8c),this['name']='HttpError';}};function createResponseError(_0x1f8535,_0x1d2141,_0x6b2d5a){const _0x5a094b=_0x4b27b1,_0x457726=_0x1f8535,_0x4caa5b='['+(_0x1d2141?.['method']||'GET')+']\x20'+_0x457726,_0x491d8e=_0x6b2d5a?_0x6b2d5a['statusCode']+'\x20'+(_0x6b2d5a['errMsg']||''):'<no\x20response>',_0x333340=_0x6b2d5a?JSON['stringify'](_0x6b2d5a['data']):_0x5a094b(0xe9),_0x56ae96=new HttpError(_0x4caa5b+':\x20'+_0x491d8e+(_0x6b2d5a['data']?'\x20'+_0x333340:''));for(const _0x32f468 of[_0x5a094b(0xae),_0x5a094b(0xc5),_0x5a094b(0xba),_0x5a094b(0xe7)])Object[_0x5a094b(0xb8)](_0x56ae96,_0x32f468,{'get'(){const _0x35f096=_0x5a094b,_0x634ae4={};return _0x634ae4['request']=_0x1f8535,_0x634ae4[_0x35f096(0xc5)]=_0x1d2141,_0x634ae4[_0x35f096(0xba)]=_0x6b2d5a,_0x634ae4[_0x35f096(0xe7)]=_0x6b2d5a['data'],_0x634ae4[_0x32f468];}});return _0x56ae96;}function normalizeError(_0x56fc01){const _0x18f76a=_0x4b27b1;if(_0x56fc01 instanceof Error)return _0x56fc01;return Object[_0x18f76a(0xcd)](new Error(_0x56fc01?.['errMsg']||_0x56fc01?.[_0x18f76a(0xec)]||'HTTP\x20request\x20failed'),{'cause':_0x56fc01});}async function callRequestHooks(_0x4e4d34,_0x110446){await _0x110446['onRequest']?.({'options':_0x110446,'resource':_0x4e4d34});}async function callRequestErrorHooks(_0x3256b3,_0xe1ca73,_0x5d67fc){await _0xe1ca73['onRequestError']?.({'options':_0xe1ca73,'resource':_0x3256b3,'error':_0x5d67fc});}async function callResponseHooks(_0x9b77b9,_0xa6d501,_0x54f5af){await _0xa6d501['onResponse']?.({'options':_0xa6d501,'resource':_0x9b77b9,'response':_0x54f5af});}async function callResponseErrorHooks(_0x370d15,_0x573148,_0xa50716){await _0x573148['onResponseError']?.({'options':_0x573148,'resource':_0x370d15,'response':_0xa50716});}async function refineResponse(_0xf3b5cc,_0x42fc6d){const _0x5b9b83=_0x4b27b1;if(_0x42fc6d[_0x5b9b83(0xa9)]==='json'||!_0x42fc6d[_0x5b9b83(0xa9)])return{..._0xf3b5cc,'data':await parseJSONResponse(_0xf3b5cc[_0x5b9b83(0xe7)],_0x42fc6d)};return _0xf3b5cc;}function parseJSONResponse(_0x90ff6a,_0x11df8c){const _0x1f42c4=_0x4b27b1;if(typeof _0x90ff6a!=='string')return _0x90ff6a;if(_0x11df8c['parseResponse'])return _0x11df8c[_0x1f42c4(0xab)](_0x90ff6a);return _0x90ff6a?JSON['parse'](_0x90ff6a):null;}function isResponseError(_0x5bc718){const _0x3c1671=_0x4b27b1,_0x4bf1eb=_0x3c1671(0xf4)in _0x5bc718?_0x5bc718['statusCode']:void 0x0;return typeof _0x4bf1eb===_0x3c1671(0xb4)&&(_0x4bf1eb<0xc8||_0x4bf1eb>=0x12c);}function _0x3c4a(){const _0x3a129d=['uploadFile','fileType','5604570OgByUr','3255835YLFaMX','4pZVFYT','aborted','timeout','onProgress','1818uyqVSn','downloadFile','options','entries','The\x20operation\x20was\x20aborted','name','16vYaLHN','signal','3408933oSHNqS','onRequest','assign','6024jNHjrk','37813UHOcqG','filePath','ignoreResponseError','onSuccess','enumerable','POST','abort','get','fail','AbortError','retryStatusCodes','raw','DELETE','GET','onHeadersReceived','download','catch','firstIpv4','success','includes','throwIfAborted','reason','http','query','data','removeEventListener','<no\x20response\x20body>','function','onabort','message','type','indexOf','onFail','tempFilePath','headers','PUT','flatMap','statusCode','arrayBuffer','url','enableHttpDNS','formData','createHttp','files','PATCH','_abort','arraybuffer','responseType','resolve','parseResponse','then','replace','request','enableHttp2','onResponse','upload','100eiAgKB','3824745OcWFgc','number','9334983qtHSxh','httpDNSServiceId','listeners','defineProperty','map','response'];_0x3c4a=function(){return _0x3a129d;};return _0x3c4a();}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x4b27b1(0xd4),_0x4b27b1(0xf2),_0x4b27b1(0xdb),_0x4b27b1(0xfb)]);async function withRetry(_0x5113c1,_0x5058d2){const _0x51425e=_0x4b27b1,_0x20a026=resolveRetryCount(_0x5113c1);for(let _0x24b172=0x0;;_0x24b172++)try{return await _0x5058d2();}catch(_0x3fa452){if(_0x24b172>=_0x20a026||!shouldRetry(_0x3fa452,_0x5113c1))throw _0x3fa452;await sleep(_0x5113c1['retryDelay']??0x0,_0x5113c1[_0x51425e(0xca)]);}}function resolveRetryCount(_0x410a35){const {retry:_0xd2a989}=_0x410a35;if(_0xd2a989===![])return 0x0;if(typeof _0xd2a989==='number')return _0xd2a989>0x0?_0xd2a989:0x0;return isPayloadMethod(_0x410a35['method'])?0x0:0x1;}function shouldRetry(_0x497acc,_0x4b18bc){const _0x2d0b26=_0x4b27b1;if(_0x4b18bc['signal']?.[_0x2d0b26(0xc0)]||isAbortError(_0x497acc))return![];const _0x33e3a8=_0x497acc?.['response']?.['statusCode'];if(typeof _0x33e3a8!=='number')return!![];return(_0x4b18bc[_0x2d0b26(0xd9)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x33e3a8);}function isPayloadMethod(_0x2ff980){return!!_0x2ff980&&PAYLOAD_METHODS['has'](_0x2ff980['toUpperCase']());}function sleep(_0x9d1f89,_0xfe04ac){return new Promise((_0x440a16,_0x56df74)=>{const _0x5aa6d6=_0x691c;if(_0xfe04ac?.[_0x5aa6d6(0xc0)]){_0x56df74(_0xfe04ac[_0x5aa6d6(0xe4)]);return;}if(!(_0x9d1f89>0x0)){_0x440a16();return;}let _0x5f06f5=()=>{};const _0x11d278=setTimeout(()=>{_0x5f06f5(),_0x440a16();},_0x9d1f89);_0x5f06f5=onAbort(_0xfe04ac,()=>{const _0x4e9ac7=_0x5aa6d6;clearTimeout(_0x11d278),_0x56df74(_0xfe04ac[_0x4e9ac7(0xe4)]);});});}function buildURL(_0x11584a,_0x1d19f4){const _0x35380d=_0x4b27b1,_0x334315=joinURL(_0x1d19f4['baseURL'],_0x11584a),_0x64aa43=_0x1d19f4['query']??{},_0x53895c=Object['keys'](_0x64aa43)['filter'](_0x40106e=>_0x64aa43[_0x40106e]!==void 0x0)[_0x35380d(0xf3)](_0x588a7c=>{const _0x4be8e5=_0x35380d,_0x7cde4=_0x64aa43[_0x588a7c];return(Array['isArray'](_0x7cde4)?_0x7cde4:[_0x7cde4])[_0x4be8e5(0xb9)](_0x4ba5cf=>encodeURIComponent(_0x588a7c)+'='+encodeURIComponent(String(_0x4ba5cf)));})['join']('&');if(!_0x53895c)return _0x334315;return''+_0x334315+(_0x334315[_0x35380d(0xe2)]('?')?'&':'?')+_0x53895c;}function joinURL(_0x1ebead,_0x556133){const _0xc53475=_0x4b27b1;if(!_0x1ebead||isAbsoluteURL(_0x556133))return _0x556133;return _0x1ebead['replace'](/\/+$/,'')+'/'+_0x556133[_0xc53475(0xad)](/^\/+/,'');}function isAbsoluteURL(_0x48f36f){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x48f36f)||_0x48f36f['startsWith']('//');}function dispatchHttp(_0x45df2d,_0x21d0cd,_0x4e2470){const _0x37c580=buildURL(_0x21d0cd,_0x4e2470);return withRetry(_0x4e2470,()=>attemptRequest(_0x45df2d,_0x21d0cd,_0x37c580,_0x4e2470));}function attemptRequest(_0x3ee5d7,_0x3d69f5,_0x5bc6c7,_0x56fcff){const _0x3b47bc=_0x4b27b1,_0x360c44=!!_0x56fcff[_0x3b47bc(0xda)];return new Promise((_0x17a043,_0x124071)=>{const _0x4265bd=_0x3b47bc;let _0x19326f=![];const _0x539649=_0x47d819=>{if(_0x19326f)return;_0x19326f=!![],_0x47d819();},_0x3b4857=onAbort(_0x56fcff['signal'],()=>{_0x539649(()=>_0x124071(_0x56fcff['signal']['reason']));}),_0x581f7a=_0x351947=>{_0x3b4857(),_0x539649(_0x351947);};callRequestHooks(_0x3d69f5,_0x56fcff)['then'](()=>{if(_0x19326f)return;dispatch(_0x3ee5d7,_0x5bc6c7,_0x56fcff,{'onSuccess':_0x306c5e=>{const _0x4fa05f=_0x691c;Promise['resolve']()[_0x4fa05f(0xac)](()=>refineResponse(_0x306c5e,_0x56fcff))[_0x4fa05f(0xac)](async _0x26658b=>{const _0x20b22d=_0x4fa05f;if(isResponseError(_0x306c5e)){await callResponseErrorHooks(_0x3d69f5,_0x56fcff,_0x26658b);if(!_0x56fcff[_0x20b22d(0xd1)])throw createResponseError(_0x3d69f5,_0x56fcff,_0x26658b);}else await callResponseHooks(_0x3d69f5,_0x56fcff,_0x26658b);_0x581f7a(()=>_0x17a043(_0x360c44?_0x26658b:_0x26658b[_0x20b22d(0xe7)]));})[_0x4fa05f(0xdf)](_0x1c4998=>_0x581f7a(()=>_0x124071(_0x1c4998)));},'onFail':_0x3c053f=>{const _0x581181=_0x691c;Promise[_0x581181(0xaa)]()['then'](async()=>{const _0x4ba4bd=normalizeError(_0x3c053f);if(!isAbortError(_0x4ba4bd))await callRequestErrorHooks(_0x3d69f5,_0x56fcff,_0x4ba4bd);throw _0x4ba4bd;})[_0x581181(0xdf)](_0x1855c1=>_0x581f7a(()=>_0x124071(_0x1855c1)));}});})[_0x4265bd(0xdf)](async _0x541920=>{const _0x44f834=normalizeError(_0x541920);await callRequestErrorHooks(_0x3d69f5,_0x56fcff,_0x44f834),_0x581f7a(()=>_0x124071(_0x44f834));});});}const _0x362067={};_0x362067['method']=_0x4b27b1(0xdc),_0x362067['responseType']='json';const defaultConfig=_0x362067;function createHttp(_0x452a78={}){const _0x44dbf6=_0x4b27b1,_0x51a1ab=(_0x1e1409,_0x5c7312)=>{return dispatchHttp('request',_0x1e1409,mergeOptions(defaultConfig,_0x452a78,_0x5c7312));},_0x5c9a4f=(_0x51bc05,_0x456ccf)=>{const _0x3ea4c9=_0x691c,_0x4c1b9e={};return _0x4c1b9e['method']=_0x3ea4c9(0xd4),dispatchHttp('upload',_0x51bc05,mergeOptions(defaultConfig,_0x452a78,_0x456ccf,_0x4c1b9e));},_0x53bc73=(_0xa660f6,_0x14c12e)=>{const _0x5c3ed8=_0x691c,_0x358010={};return _0x358010['method']=_0x5c3ed8(0xdc),dispatchHttp('download',_0xa660f6,mergeOptions(defaultConfig,_0x452a78,_0x14c12e,_0x358010));},_0x4c26c3=_0x4b9722=>createHttp(mergeOptions(_0x452a78,_0x4b9722)),_0x1653bf={};return _0x1653bf['request']=_0x51a1ab,_0x1653bf[_0x44dbf6(0xb1)]=_0x5c9a4f,_0x1653bf['download']=_0x53bc73,_0x1653bf['create']=_0x4c26c3,_0x1653bf;}const http=createHttp(),_0x19dd53={};_0x19dd53['enumerable']=!![],_0x19dd53['get']=function(){return createHttp;},Object['defineProperty'](exports,_0x4b27b1(0xf9),_0x19dd53);const _0x1fdaca={};_0x1fdaca[_0x4b27b1(0xd3)]=!![],_0x1fdaca[_0x4b27b1(0xd6)]=function(){return createHttpAborter;},Object[_0x4b27b1(0xb8)](exports,'createHttpAborter',_0x1fdaca);const _0x5eae34={};_0x5eae34[_0x4b27b1(0xd3)]=!![],_0x5eae34[_0x4b27b1(0xd6)]=function(){return http;},Object[_0x4b27b1(0xb8)](exports,_0x4b27b1(0xe5),_0x5eae34);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
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 _0x13c5ca=_0x5589;(function(_0x5e47a1,_0x2a7e77){const _0xc4ce1e=_0x5589,_0x457533=_0x5e47a1();while(!![]){try{const _0x42b55d=parseInt(_0xc4ce1e(0xff))/0x1*(parseInt(_0xc4ce1e(0xe6))/0x2)+parseInt(_0xc4ce1e(0x12a))/0x3*(-parseInt(_0xc4ce1e(0x105))/0x4)+-parseInt(_0xc4ce1e(0xf4))/0x5+parseInt(_0xc4ce1e(0x109))/0x6*(-parseInt(_0xc4ce1e(0x10e))/0x7)+parseInt(_0xc4ce1e(0xed))/0x8*(parseInt(_0xc4ce1e(0x10f))/0x9)+parseInt(_0xc4ce1e(0xf6))/0xa+-parseInt(_0xc4ce1e(0x113))/0xb;if(_0x42b55d===_0x2a7e77)break;else _0x457533['push'](_0x457533['shift']());}catch(_0x506528){_0x457533['push'](_0x457533['shift']());}}}(_0x6b04,0x6778d));function createHttpAborter(){const _0x2250bc=_0x5589,_0x5e8d6f=new HttpAbortSignal();return{'signal':_0x5e8d6f,'abort':_0x2bf5ea=>_0x5e8d6f[_0x2250bc(0x115)](_0x2bf5ea)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x13c5ca(0x11a)](_0x164d9a,_0x1d05ce){const _0x5e01da=_0x13c5ca;if(_0x164d9a!==_0x5e01da(0x114))return;this[_0x5e01da(0x11b)]['push'](_0x1d05ce);}['removeEventListener'](_0x284e04,_0x3033fc){if(_0x284e04!=='abort')return;const _0x8632a7=this['listeners']['indexOf'](_0x3033fc);if(_0x8632a7!==-0x1)this['listeners']['splice'](_0x8632a7,0x1);}[_0x13c5ca(0x122)](_0x445e3b){for(const _0x171099 of this['listeners']['slice']())_0x171099['call'](this,_0x445e3b);}},HttpAbortSignal=class extends AbortEmitter{[_0x13c5ca(0xf9)]=![];[_0x13c5ca(0x125)]=void 0x0;[_0x13c5ca(0x118)]=null;[_0x13c5ca(0x115)](_0x55fe78){const _0x347655=_0x13c5ca;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x55fe78===void 0x0?createAbortError():_0x55fe78;const _0x6df2dc={};_0x6df2dc[_0x347655(0xf7)]='abort';const _0x5e2685=_0x6df2dc;if(typeof this[_0x347655(0x118)]===_0x347655(0x102))this['onabort'](_0x5e2685);this[_0x347655(0x122)](_0x5e2685);}['throwIfAborted'](){const _0x31da0e=_0x13c5ca;if(this['aborted'])throw this[_0x31da0e(0x125)];}};function createAbortError(_0x3e65ef='The\x20operation\x20was\x20aborted'){const _0x4aabd4=_0x13c5ca,_0x311d73=new Error(_0x3e65ef);return _0x311d73[_0x4aabd4(0x119)]=ABORT_ERROR_NAME,_0x311d73;}function isAbortError(_0xbd9eed){const _0x44c86b=_0x13c5ca;return _0xbd9eed instanceof Error&&_0xbd9eed[_0x44c86b(0x119)]===ABORT_ERROR_NAME;}function onAbort(_0x534c81,_0x3cc267){const _0x46b61c=_0x13c5ca;if(!_0x534c81)return()=>{};if(_0x534c81[_0x46b61c(0xf9)])return _0x3cc267(),()=>{};return _0x534c81['addEventListener']('abort',_0x3cc267),()=>_0x534c81[_0x46b61c(0xfd)]('abort',_0x3cc267);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x13c5ca(0x111)];function mergeOptions(..._0x47f95d){const _0x846d01=_0x13c5ca,_0x2bfdbb={},_0x5f4e9b={};for(const _0x210e5c of _0x47f95d){if(!_0x210e5c)continue;for(const _0x2ab72a of HOOK_NAMES)collectHook(_0x5f4e9b,_0x2ab72a,_0x210e5c);const _0xc8d4c8=_0x2bfdbb['headers'],_0x352380=_0x2bfdbb['query'];Object[_0x846d01(0xf2)](_0x2bfdbb,_0x210e5c);const _0x2dae8c={..._0xc8d4c8,..._0x210e5c['headers']};_0x2bfdbb[_0x846d01(0xe1)]=_0x2dae8c;const _0xd45ea={..._0x352380,..._0x210e5c['query']};_0x2bfdbb['query']=_0xd45ea;}for(const [_0x42e382,_0x54f1e3]of Object[_0x846d01(0xfa)](_0x5f4e9b))Object[_0x846d01(0xf2)](_0x2bfdbb,{[_0x42e382]:async _0x517e64=>{for(const _0x1861f4 of _0x54f1e3)await _0x1861f4(_0x517e64);}});return _0x2bfdbb;}function collectHook(_0x579367,_0x54e18d,_0x596c35){const _0x2aaf38=_0x13c5ca,_0x1be4e3=_0x596c35[_0x54e18d];if(typeof _0x1be4e3!==_0x2aaf38(0x102))return;_0x579367[_0x54e18d]??=[],_0x579367[_0x54e18d]['push'](_0x1be4e3);}function dispatch(_0x495037,_0x34200b,_0x26afdb,_0x227677){const _0x502a3d=_0x13c5ca;let _0x561a3b;if(_0x495037==='upload')_0x561a3b=dispatchUpload(_0x34200b,_0x26afdb,_0x227677);else{if(_0x495037===_0x502a3d(0xe7))_0x561a3b=dispatchDownload(_0x34200b,_0x26afdb,_0x227677);else _0x561a3b=dispatchRequest(_0x34200b,_0x26afdb,_0x227677);}bindTask(_0x561a3b,_0x26afdb);}function bindTask(_0x2e6d7e,_0x226288){const _0x67deac=_0x13c5ca;onAbort(_0x226288[_0x67deac(0x117)],()=>_0x2e6d7e['abort']());if(typeof _0x226288[_0x67deac(0x104)]===_0x67deac(0x102))_0x2e6d7e['onHeadersReceived'](_0x226288[_0x67deac(0x104)]);const _0xc57548=_0x226288[_0x67deac(0xf3)];if(typeof _0xc57548===_0x67deac(0x102)&&_0x67deac(0xf8)in _0x2e6d7e)_0x2e6d7e[_0x67deac(0xf8)](_0xc57548);}function dispatchRequest(_0x43db67,_0x1802be,_0x18119c){const _0x103f0c=_0x13c5ca,_0x4de173={'url':_0x43db67,'method':_0x1802be[_0x103f0c(0x11f)],'header':_0x1802be[_0x103f0c(0xe1)],'data':_0x1802be[_0x103f0c(0xe3)]??{},'timeout':_0x1802be['timeout'],'dataType':_0x1802be[_0x103f0c(0x10c)]||'json','responseType':mappedResponseBodyType(_0x1802be[_0x103f0c(0xfc)]),'sslVerify':_0x1802be['sslVerify'],'withCredentials':_0x1802be['withCredentials'],'firstIpv4':_0x1802be[_0x103f0c(0x129)],'enableHttp2':_0x1802be['enableHttp2'],'enableQuic':_0x1802be[_0x103f0c(0x10a)],'enableCache':_0x1802be[_0x103f0c(0xec)],'enableHttpDNS':_0x1802be[_0x103f0c(0xea)],'httpDNSServiceId':_0x1802be['httpDNSServiceId'],'enableChunked':_0x1802be['enableChunked'],'forceCellularNetwork':_0x1802be['forceCellularNetwork'],'success':_0x18119c['onSuccess'],'fail':_0x18119c['onFail'],'complete':()=>{}};return uni['request'](_0x4de173);}function dispatchUpload(_0x2fdcff,_0x34c5c2,_0x2a6624){const _0x47e87f=_0x13c5ca,_0x4715d1={};_0x4715d1[_0x47e87f(0x108)]=_0x2fdcff,_0x4715d1['fileType']=_0x34c5c2[_0x47e87f(0x101)],_0x4715d1['file']=_0x34c5c2[_0x47e87f(0x110)],_0x4715d1['filePath']=_0x34c5c2['filePath'],_0x4715d1[_0x47e87f(0x119)]=_0x34c5c2[_0x47e87f(0x119)]??_0x47e87f(0x110),_0x4715d1['files']=_0x34c5c2['files'],_0x4715d1[_0x47e87f(0x107)]=_0x34c5c2[_0x47e87f(0xe1)],_0x4715d1['formData']=_0x34c5c2[_0x47e87f(0xe3)]??{},_0x4715d1['timeout']=_0x34c5c2[_0x47e87f(0xeb)],_0x4715d1[_0x47e87f(0x120)]=_0x2a6624['onSuccess'],_0x4715d1['fail']=_0x2a6624[_0x47e87f(0x12b)],_0x4715d1[_0x47e87f(0xfb)]=()=>{};const _0x495a14=_0x4715d1;return uni[_0x47e87f(0xf1)](_0x495a14);}function dispatchDownload(_0x4d75a3,_0x291b79,_0xfbc80b){const _0x31e4ff=_0x13c5ca,_0xbeb5f0={'url':_0x4d75a3,'header':_0x291b79['headers'],'timeout':_0x291b79[_0x31e4ff(0xeb)],'success':_0x3a4145=>{const _0x227f4e=_0x31e4ff,_0x52b332={..._0x3a4145};_0x52b332[_0x227f4e(0xe8)]={},_0x52b332[_0x227f4e(0xe8)]['tempFilePath']=_0x3a4145[_0x227f4e(0x112)],_0xfbc80b['onSuccess'](_0x52b332);},'fail':_0xfbc80b['onFail'],'complete':()=>{}};return uni['downloadFile'](_0xbeb5f0);}function mappedResponseBodyType(_0x1f1e46){const _0x5154f=_0x13c5ca;if(!_0x1f1e46||_0x1f1e46===_0x5154f(0x128))return _0x5154f(0xef);if(_0x1f1e46===_0x5154f(0x11d))return _0x5154f(0x10b);return'text';}var HttpError=class extends Error{constructor(_0x2a8af6){super(_0x2a8af6),this['name']='HttpError';}};function createResponseError(_0x36592a,_0x5ce813,_0x37a9df){const _0x2f4730=_0x13c5ca,_0xb85244=_0x36592a,_0x4a1556='['+(_0x5ce813?.['method']||_0x2f4730(0x127))+']\x20'+_0xb85244,_0x5c9d68=_0x37a9df?_0x37a9df['statusCode']+'\x20'+(_0x37a9df['errMsg']||''):'<no\x20response>',_0x13f13a=_0x37a9df?JSON[_0x2f4730(0xf0)](_0x37a9df['data']):'<no\x20response\x20body>',_0x51f235=new HttpError(_0x4a1556+':\x20'+_0x5c9d68+(_0x37a9df['data']?'\x20'+_0x13f13a:''));for(const _0x1a0796 of['request',_0x2f4730(0x116),_0x2f4730(0x121),'data'])Object[_0x2f4730(0xf5)](_0x51f235,_0x1a0796,{'get'(){const _0x3e599e=_0x2f4730,_0x10cc1c={};return _0x10cc1c['request']=_0x36592a,_0x10cc1c[_0x3e599e(0x116)]=_0x5ce813,_0x10cc1c[_0x3e599e(0x121)]=_0x37a9df,_0x10cc1c[_0x3e599e(0xe8)]=_0x37a9df[_0x3e599e(0xe8)],_0x10cc1c[_0x1a0796];}});return _0x51f235;}function normalizeError(_0x20e2b1){const _0x34c9e8=_0x13c5ca;if(_0x20e2b1 instanceof Error)return _0x20e2b1;return Object[_0x34c9e8(0xf2)](new Error(_0x20e2b1?.['errMsg']||_0x20e2b1?.['message']||'HTTP\x20request\x20failed'),{'cause':_0x20e2b1});}async function callRequestHooks(_0x5f3f7e,_0x1222aa){await _0x1222aa['onRequest']?.({'options':_0x1222aa,'resource':_0x5f3f7e});}async function callRequestErrorHooks(_0x17244f,_0x9e701d,_0x447714){await _0x9e701d['onRequestError']?.({'options':_0x9e701d,'resource':_0x17244f,'error':_0x447714});}async function callResponseHooks(_0x419b9b,_0x1b3d37,_0x589bce){await _0x1b3d37['onResponse']?.({'options':_0x1b3d37,'resource':_0x419b9b,'response':_0x589bce});}async function callResponseErrorHooks(_0x2babbc,_0x5bbf3a,_0x13ee51){await _0x5bbf3a['onResponseError']?.({'options':_0x5bbf3a,'resource':_0x2babbc,'response':_0x13ee51});}async function refineResponse(_0x1a7da6,_0x2766c9){const _0x1685e6=_0x13c5ca;if(_0x2766c9[_0x1685e6(0xfc)]===_0x1685e6(0x128)||!_0x2766c9[_0x1685e6(0xfc)])return{..._0x1a7da6,'data':await parseJSONResponse(_0x1a7da6[_0x1685e6(0xe8)],_0x2766c9)};return _0x1a7da6;}function _0x5589(_0x341ced,_0x43cef5){_0x341ced=_0x341ced-0xdf;const _0x6b0478=_0x6b04();let _0x5589c8=_0x6b0478[_0x341ced];return _0x5589c8;}function parseJSONResponse(_0x8079cd,_0x26d1a3){const _0x2c3523=_0x13c5ca;if(typeof _0x8079cd!==_0x2c3523(0xee))return _0x8079cd;if(_0x26d1a3['parseResponse'])return _0x26d1a3['parseResponse'](_0x8079cd);return _0x8079cd?JSON['parse'](_0x8079cd):null;}function isResponseError(_0x256265){const _0x6ee965=_0x13c5ca,_0x5ee0af='statusCode'in _0x256265?_0x256265[_0x6ee965(0xe5)]:void 0x0;return typeof _0x5ee0af==='number'&&(_0x5ee0af<0xc8||_0x5ee0af>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x13c5ca(0xe9),'PUT',_0x13c5ca(0x10d),'PATCH']);async function withRetry(_0x2361a6,_0x201e2a){const _0x3fb015=_0x13c5ca,_0x3a6bd3=resolveRetryCount(_0x2361a6);for(let _0x1bf3d3=0x0;;_0x1bf3d3++)try{return await _0x201e2a();}catch(_0x3efac5){if(_0x1bf3d3>=_0x3a6bd3||!shouldRetry(_0x3efac5,_0x2361a6))throw _0x3efac5;await sleep(_0x2361a6[_0x3fb015(0xe0)]??0x0,_0x2361a6['signal']);}}function resolveRetryCount(_0x498eea){const _0xec103f=_0x13c5ca,{retry:_0x5887c1}=_0x498eea;if(_0x5887c1===![])return 0x0;if(typeof _0x5887c1===_0xec103f(0xe4))return _0x5887c1>0x0?_0x5887c1:0x0;return isPayloadMethod(_0x498eea[_0xec103f(0x11f)])?0x0:0x1;}function shouldRetry(_0x19d37d,_0x3c883b){const _0x24d33a=_0x13c5ca;if(_0x3c883b[_0x24d33a(0x117)]?.[_0x24d33a(0xf9)]||isAbortError(_0x19d37d))return![];const _0x2521a7=_0x19d37d?.[_0x24d33a(0x121)]?.[_0x24d33a(0xe5)];if(typeof _0x2521a7!=='number')return!![];return(_0x3c883b['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)[_0x24d33a(0x100)](_0x2521a7);}function isPayloadMethod(_0x1dc087){const _0x3ccba5=_0x13c5ca;return!!_0x1dc087&&PAYLOAD_METHODS[_0x3ccba5(0x11e)](_0x1dc087[_0x3ccba5(0x123)]());}function sleep(_0x29db82,_0x1c7a3d){return new Promise((_0x4e0fe4,_0x48a0dc)=>{if(_0x1c7a3d?.['aborted']){_0x48a0dc(_0x1c7a3d['reason']);return;}if(!(_0x29db82>0x0)){_0x4e0fe4();return;}let _0x1503f6=()=>{};const _0x5da05b=setTimeout(()=>{_0x1503f6(),_0x4e0fe4();},_0x29db82);_0x1503f6=onAbort(_0x1c7a3d,()=>{clearTimeout(_0x5da05b),_0x48a0dc(_0x1c7a3d['reason']);});});}function buildURL(_0x2a8920,_0x16ec0d){const _0x2b4525=_0x13c5ca,_0x4858e1=joinURL(_0x16ec0d['baseURL'],_0x2a8920),_0x28caad=_0x16ec0d['query']??{},_0x4728e3=Object['keys'](_0x28caad)[_0x2b4525(0x124)](_0x5cb9a5=>_0x28caad[_0x5cb9a5]!==void 0x0)['flatMap'](_0x56593b=>{const _0x415238=_0x2b4525,_0x337761=_0x28caad[_0x56593b];return(Array['isArray'](_0x337761)?_0x337761:[_0x337761])[_0x415238(0x106)](_0x3ea0e0=>encodeURIComponent(_0x56593b)+'='+encodeURIComponent(String(_0x3ea0e0)));})[_0x2b4525(0x126)]('&');if(!_0x4728e3)return _0x4858e1;return''+_0x4858e1+(_0x4858e1['includes']('?')?'&':'?')+_0x4728e3;}function joinURL(_0x448747,_0x1a73c8){if(!_0x448747||isAbsoluteURL(_0x1a73c8))return _0x1a73c8;return _0x448747['replace'](/\/+$/,'')+'/'+_0x1a73c8['replace'](/^\/+/,'');}function _0x6b04(){const _0x46e537=['join','GET','json','firstIpv4','1627701XwJvQs','onFail','catch','retryDelay','headers','request','body','number','statusCode','564510BRhRMv','download','data','POST','enableHttpDNS','timeout','enableCache','1231480tGvvBW','string','text','stringify','uploadFile','assign','onProgress','2327725KSlECk','defineProperty','7471810FfYbgp','type','onProgressUpdate','aborted','entries','complete','responseType','removeEventListener','resolve','3cbTWhg','includes','fileType','function','raw','onHeadersReceived','4CkFdKY','map','header','url','4182PsCvGV','enableQuic','arraybuffer','dataType','DELETE','1624Dfqoql','9YxxqcO','file','onResponseError','tempFilePath','1696684FyCXrE','abort','_abort','options','signal','onabort','name','addEventListener','listeners','then','arrayBuffer','has','method','success','response','emit','toUpperCase','filter','reason'];_0x6b04=function(){return _0x46e537;};return _0x6b04();}function isAbsoluteURL(_0x300ed0){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x300ed0)||_0x300ed0['startsWith']('//');}function dispatchHttp(_0x12d348,_0xf3905d,_0x2bfc93){const _0x27010b=buildURL(_0xf3905d,_0x2bfc93);return withRetry(_0x2bfc93,()=>attemptRequest(_0x12d348,_0xf3905d,_0x27010b,_0x2bfc93));}function attemptRequest(_0x3dae99,_0x295d93,_0x1fd18c,_0x560950){const _0x221b7e=_0x13c5ca,_0x17fd23=!!_0x560950[_0x221b7e(0x103)];return new Promise((_0x42b8c5,_0x99aef3)=>{const _0x35a8ec=_0x221b7e;let _0x1bfd45=![];const _0x494beb=_0x3f41e4=>{if(_0x1bfd45)return;_0x1bfd45=!![],_0x3f41e4();},_0x5dc3e7=onAbort(_0x560950['signal'],()=>{const _0x1a157f=_0x5589;_0x494beb(()=>_0x99aef3(_0x560950[_0x1a157f(0x117)][_0x1a157f(0x125)]));}),_0x2cad32=_0x171e20=>{_0x5dc3e7(),_0x494beb(_0x171e20);};callRequestHooks(_0x295d93,_0x560950)[_0x35a8ec(0x11c)](()=>{if(_0x1bfd45)return;dispatch(_0x3dae99,_0x1fd18c,_0x560950,{'onSuccess':_0x158c1b=>{const _0x396e22=_0x5589;Promise['resolve']()[_0x396e22(0x11c)](()=>refineResponse(_0x158c1b,_0x560950))['then'](async _0x34297e=>{if(isResponseError(_0x158c1b)){await callResponseErrorHooks(_0x295d93,_0x560950,_0x34297e);if(!_0x560950['ignoreResponseError'])throw createResponseError(_0x295d93,_0x560950,_0x34297e);}else await callResponseHooks(_0x295d93,_0x560950,_0x34297e);_0x2cad32(()=>_0x42b8c5(_0x17fd23?_0x34297e:_0x34297e['data']));})[_0x396e22(0xdf)](_0x3a1e26=>_0x2cad32(()=>_0x99aef3(_0x3a1e26)));},'onFail':_0x4082b8=>{const _0x975bb=_0x5589;Promise[_0x975bb(0xfe)]()[_0x975bb(0x11c)](async()=>{const _0x32a5c1=normalizeError(_0x4082b8);if(!isAbortError(_0x32a5c1))await callRequestErrorHooks(_0x295d93,_0x560950,_0x32a5c1);throw _0x32a5c1;})[_0x975bb(0xdf)](_0x205ca7=>_0x2cad32(()=>_0x99aef3(_0x205ca7)));}});})['catch'](async _0x5e395d=>{const _0x5ac2fc=normalizeError(_0x5e395d);await callRequestErrorHooks(_0x295d93,_0x560950,_0x5ac2fc),_0x2cad32(()=>_0x99aef3(_0x5ac2fc));});});}const _0x521137={};_0x521137[_0x13c5ca(0x11f)]='GET',_0x521137['responseType']='json';const defaultConfig=_0x521137;function createHttp(_0x343224={}){const _0x578641=(_0xea1c7,_0x4c0018)=>{const _0x2e1a8c=_0x5589;return dispatchHttp(_0x2e1a8c(0xe2),_0xea1c7,mergeOptions(defaultConfig,_0x343224,_0x4c0018));},_0x302cd4=(_0x5ea02f,_0x866077)=>{const _0x5e2220=_0x5589,_0xdcec9a={};return _0xdcec9a['method']=_0x5e2220(0xe9),dispatchHttp('upload',_0x5ea02f,mergeOptions(defaultConfig,_0x343224,_0x866077,_0xdcec9a));},_0x4efc1f=(_0x1b4c67,_0x58786e)=>{const _0x345439=_0x5589,_0x5a0538={};return _0x5a0538['method']=_0x345439(0x127),dispatchHttp('download',_0x1b4c67,mergeOptions(defaultConfig,_0x343224,_0x58786e,_0x5a0538));},_0x493e3e=_0x3d43dc=>createHttp(mergeOptions(_0x343224,_0x3d43dc)),_0x5d6b05={};return _0x5d6b05['request']=_0x578641,_0x5d6b05['upload']=_0x302cd4,_0x5d6b05['download']=_0x4efc1f,_0x5d6b05['create']=_0x493e3e,_0x5d6b05;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
package/dist/oiyo.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
-
const require_oiyo = require("./oiyo-
|
|
8
|
+
const require_oiyo = require("./oiyo-DF-n178E.cjs");
|
|
9
9
|
exports.createHttp = require_oiyo.createHttp;
|
|
10
10
|
exports.createHttpAborter = require_oiyo.createHttpAborter;
|
|
11
11
|
exports.http = require_oiyo.http;
|
package/dist/oiyo.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-6y-CxV-U.cjs";
|
|
8
8
|
export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
|
package/dist/oiyo.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-
|
|
7
|
+
import { a as HttpDownloadResponse, c as HttpCommonOptions, d as HttpRequestOptions, f as HttpUploadOptions, i as HttpError, l as HttpDownloadOptions, m as createHttpAborter, n as http, o as HttpRequestResponse, p as ResponseBodyType, r as HttpConfig, s as HttpUploadResponse, t as createHttp, u as HttpOptions } from "./index-6y-CxV-U.mjs";
|
|
8
8
|
export { type HttpCommonOptions, type HttpConfig, type HttpDownloadOptions, type HttpDownloadResponse, type HttpError, type HttpOptions, type HttpRequestOptions, type HttpRequestResponse, type HttpUploadOptions, type HttpUploadResponse, type ResponseBodyType, createHttp, createHttpAborter, http };
|
package/dist/oiyo.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-
|
|
7
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-GRTo5_GU.mjs";
|
|
8
8
|
export { createHttp, createHttpAborter, http };
|
package/dist/uni.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
-
require("./rolldown-runtime-
|
|
8
|
+
require("./rolldown-runtime-DQZhkyOB.cjs");
|
|
9
9
|
var _dcloudio_uni_app = require("@dcloudio/uni-app");
|
|
10
10
|
Object.keys(_dcloudio_uni_app).forEach(function(k) {
|
|
11
11
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/uni.d.cts
CHANGED
package/dist/uni.d.mts
CHANGED
package/dist/uni.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import "./rolldown-runtime-
|
|
7
|
+
import "./rolldown-runtime-D5dVOuTm.mjs";
|
|
8
8
|
export * from "@dcloudio/uni-app";
|
|
9
9
|
export {};
|
package/dist/vue.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
8
|
-
require("./rolldown-runtime-
|
|
8
|
+
require("./rolldown-runtime-DQZhkyOB.cjs");
|
|
9
9
|
var vue = require("vue");
|
|
10
10
|
Object.keys(vue).forEach(function(k) {
|
|
11
11
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
package/dist/vue.d.cts
CHANGED
package/dist/vue.d.mts
CHANGED
package/dist/vue.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.4
|
|
3
3
|
* Copyright (c) 2026 skiyee. All rights reserved.
|
|
4
4
|
* Commercial software. See LICENSE for terms.
|
|
5
5
|
* Official site: https://oiyo.js.org
|
|
6
6
|
*/
|
|
7
|
-
import "./rolldown-runtime-
|
|
7
|
+
import "./rolldown-runtime-D5dVOuTm.mjs";
|
|
8
8
|
export * from "vue";
|
|
9
9
|
export {};
|
package/package.json
CHANGED
package/dist/oiyo-Cgos8MRo.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.3
|
|
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 _0x340281=_0x45b8;(function(_0x8ee86b,_0x3f4b2a){const _0x2386b4=_0x45b8,_0xc231df=_0x8ee86b();while(!![]){try{const _0x275f50=parseInt(_0x2386b4(0x179))/0x1*(-parseInt(_0x2386b4(0x1d4))/0x2)+-parseInt(_0x2386b4(0x1be))/0x3+parseInt(_0x2386b4(0x1af))/0x4*(-parseInt(_0x2386b4(0x17b))/0x5)+parseInt(_0x2386b4(0x1cb))/0x6+parseInt(_0x2386b4(0x17a))/0x7+-parseInt(_0x2386b4(0x1a0))/0x8*(-parseInt(_0x2386b4(0x186))/0x9)+-parseInt(_0x2386b4(0x199))/0xa*(-parseInt(_0x2386b4(0x1ba))/0xb);if(_0x275f50===_0x3f4b2a)break;else _0xc231df['push'](_0xc231df['shift']());}catch(_0x151b6a){_0xc231df['push'](_0xc231df['shift']());}}}(_0x4d1b,0x9ee2e));function _0x45b8(_0x451055,_0x191aac){_0x451055=_0x451055-0x178;const _0x4d1b96=_0x4d1b();let _0x45b81e=_0x4d1b96[_0x451055];return _0x45b81e;}function createHttpAborter(){const _0x451193=new HttpAbortSignal();return{'signal':_0x451193,'abort':_0x54bbd8=>_0x451193['_abort'](_0x54bbd8)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x340281(0x18b)]=[];[_0x340281(0x183)](_0x319830,_0x24d386){if(_0x319830!=='abort')return;this['listeners']['push'](_0x24d386);}[_0x340281(0x19b)](_0x2729f5,_0x3af127){const _0x40e553=_0x340281;if(_0x2729f5!==_0x40e553(0x17d))return;const _0x37e59=this[_0x40e553(0x18b)][_0x40e553(0x191)](_0x3af127);if(_0x37e59!==-0x1)this['listeners'][_0x40e553(0x1b2)](_0x37e59,0x1);}[_0x340281(0x182)](_0x498706){const _0xdf00cd=_0x340281;for(const _0x204975 of this['listeners'][_0xdf00cd(0x1d1)]())_0x204975[_0xdf00cd(0x17f)](this,_0x498706);}},HttpAbortSignal=class extends AbortEmitter{[_0x340281(0x1bc)]=![];['reason']=void 0x0;['onabort']=null;['_abort'](_0x28479d){const _0x244d2b=_0x340281;if(this['aborted'])return;this[_0x244d2b(0x1bc)]=!![],this['reason']=_0x28479d===void 0x0?createAbortError():_0x28479d;const _0x9b4095={};_0x9b4095['type']='abort';const _0x3916d8=_0x9b4095;if(typeof this[_0x244d2b(0x1cc)]==='function')this[_0x244d2b(0x1cc)](_0x3916d8);this['emit'](_0x3916d8);}[_0x340281(0x180)](){const _0x535027=_0x340281;if(this[_0x535027(0x1bc)])throw this[_0x535027(0x1cf)];}};function createAbortError(_0x87a926='The\x20operation\x20was\x20aborted'){const _0x1ce90f=_0x340281,_0x56d99b=new Error(_0x87a926);return _0x56d99b[_0x1ce90f(0x197)]=ABORT_ERROR_NAME,_0x56d99b;}function isAbortError(_0xf6f50d){return _0xf6f50d instanceof Error&&_0xf6f50d['name']===ABORT_ERROR_NAME;}function onAbort(_0xfac279,_0x21e0ba){const _0x51a65c=_0x340281;if(!_0xfac279)return()=>{};if(_0xfac279['aborted'])return _0x21e0ba(),()=>{};return _0xfac279['addEventListener'](_0x51a65c(0x17d),_0x21e0ba),()=>_0xfac279['removeEventListener'](_0x51a65c(0x17d),_0x21e0ba);}const HOOK_NAMES=[_0x340281(0x178),_0x340281(0x1c1),'onResponse',_0x340281(0x1b8)];function _0x4d1b(){const _0x444b85=['9rPRuVI','HttpError','httpDNSServiceId','baseURL','fileType','listeners','parse','assign','upload','enableHttp2','onHeadersReceived','indexOf','string','DELETE','request','dataType','has','name','statusCode','1380430NvhfJM','tempFilePath','removeEventListener','get','url','retryStatusCodes','raw','2243280lTGzJm','complete','test','includes','then','number','success','responseType','method','create','push','options','HTTP\x20request\x20failed','query','fail','36KVbZjj','POST','ignoreResponseError','splice','onFail','body','map','arraybuffer','defineProperty','onResponseError','enumerable','55jcUedc','<no\x20response>','aborted','function','267705IbYBNz','signal','resolve','onRequestError','json','entries','enableHttpDNS','GET','errMsg','flatMap','formData','forceCellularNetwork','retryDelay','108054umkhpO','onabort','PATCH','text','reason','filePath','slice','data','downloadFile','3938PhjTRM','headers','files','onRequest','583epPbBj','8740060sVzNWu','194030dLdGLM','timeout','abort','file','call','throwIfAborted','catch','emit','addEventListener','onProgressUpdate','onSuccess'];_0x4d1b=function(){return _0x444b85;};return _0x4d1b();}function mergeOptions(..._0x57b7f9){const _0x20b68a=_0x340281,_0x443286={},_0x53226f={};for(const _0x2c7f3c of _0x57b7f9){if(!_0x2c7f3c)continue;for(const _0x566416 of HOOK_NAMES)collectHook(_0x53226f,_0x566416,_0x2c7f3c);const _0xf80fd9=_0x443286['headers'],_0x3f2544=_0x443286['query'];Object['assign'](_0x443286,_0x2c7f3c);const _0x441197={..._0xf80fd9,..._0x2c7f3c[_0x20b68a(0x1d5)]};_0x443286['headers']=_0x441197;const _0x1202fe={..._0x3f2544,..._0x2c7f3c['query']};_0x443286[_0x20b68a(0x1ad)]=_0x1202fe;}for(const [_0x379bd7,_0x45a92b]of Object[_0x20b68a(0x1c3)](_0x53226f))Object[_0x20b68a(0x18d)](_0x443286,{[_0x379bd7]:async _0x414928=>{for(const _0x353862 of _0x45a92b)await _0x353862(_0x414928);}});return _0x443286;}function collectHook(_0x5e380c,_0x26bab3,_0x14aa1b){const _0x1d70be=_0x340281,_0x54f91e=_0x14aa1b[_0x26bab3];if(typeof _0x54f91e!==_0x1d70be(0x1bd))return;_0x5e380c[_0x26bab3]??=[],_0x5e380c[_0x26bab3][_0x1d70be(0x1aa)](_0x54f91e);}function dispatch(_0x497502,_0x22ef25,_0x58b299,_0x52be83){const _0x5412f8=_0x340281;let _0x4d30db;if(_0x497502===_0x5412f8(0x18e))_0x4d30db=dispatchUpload(_0x22ef25,_0x58b299,_0x52be83);else{if(_0x497502==='download')_0x4d30db=dispatchDownload(_0x22ef25,_0x58b299,_0x52be83);else _0x4d30db=dispatchRequest(_0x22ef25,_0x58b299,_0x52be83);}bindTask(_0x4d30db,_0x58b299);}function bindTask(_0x3844dd,_0x3d2556){const _0x531ea2=_0x340281;onAbort(_0x3d2556['signal'],()=>_0x3844dd[_0x531ea2(0x17d)]());if(typeof _0x3d2556[_0x531ea2(0x190)]==='function')_0x3844dd[_0x531ea2(0x190)](_0x3d2556['onHeadersReceived']);const _0x3cd3e5=_0x3d2556['onProgress'];if(typeof _0x3cd3e5==='function'&&'onProgressUpdate'in _0x3844dd)_0x3844dd[_0x531ea2(0x184)](_0x3cd3e5);}function dispatchRequest(_0x19ad2f,_0x1f03fb,_0x5b9930){const _0x4f6359=_0x340281,_0x4de125={'url':_0x19ad2f,'method':_0x1f03fb['method'],'header':_0x1f03fb[_0x4f6359(0x1d5)],'data':_0x1f03fb['body']??{},'timeout':_0x1f03fb['timeout'],'dataType':_0x1f03fb[_0x4f6359(0x195)]||_0x4f6359(0x1c2),'responseType':mappedResponseBodyType(_0x1f03fb[_0x4f6359(0x1a7)]),'sslVerify':_0x1f03fb['sslVerify'],'withCredentials':_0x1f03fb['withCredentials'],'firstIpv4':_0x1f03fb['firstIpv4'],'enableHttp2':_0x1f03fb[_0x4f6359(0x18f)],'enableQuic':_0x1f03fb['enableQuic'],'enableCache':_0x1f03fb['enableCache'],'enableHttpDNS':_0x1f03fb[_0x4f6359(0x1c4)],'httpDNSServiceId':_0x1f03fb[_0x4f6359(0x188)],'enableChunked':_0x1f03fb['enableChunked'],'forceCellularNetwork':_0x1f03fb[_0x4f6359(0x1c9)],'success':_0x5b9930[_0x4f6359(0x185)],'fail':_0x5b9930['onFail'],'complete':()=>{}};return uni['request'](_0x4de125);}function dispatchUpload(_0x5a6c72,_0x2f69b0,_0x52e38a){const _0x1fcc0b=_0x340281,_0x33437f={};_0x33437f[_0x1fcc0b(0x19d)]=_0x5a6c72,_0x33437f[_0x1fcc0b(0x18a)]=_0x2f69b0[_0x1fcc0b(0x18a)],_0x33437f[_0x1fcc0b(0x17e)]=_0x2f69b0['file'],_0x33437f[_0x1fcc0b(0x1d0)]=_0x2f69b0['filePath'],_0x33437f[_0x1fcc0b(0x197)]=_0x2f69b0[_0x1fcc0b(0x197)]??_0x1fcc0b(0x17e),_0x33437f['files']=_0x2f69b0[_0x1fcc0b(0x1d6)],_0x33437f['header']=_0x2f69b0[_0x1fcc0b(0x1d5)],_0x33437f[_0x1fcc0b(0x1c8)]=_0x2f69b0[_0x1fcc0b(0x1b4)]??{},_0x33437f[_0x1fcc0b(0x17c)]=_0x2f69b0['timeout'],_0x33437f[_0x1fcc0b(0x1a6)]=_0x52e38a[_0x1fcc0b(0x185)],_0x33437f[_0x1fcc0b(0x1ae)]=_0x52e38a[_0x1fcc0b(0x1b3)],_0x33437f[_0x1fcc0b(0x1a1)]=()=>{};const _0x5bd5a0=_0x33437f;return uni['uploadFile'](_0x5bd5a0);}function dispatchDownload(_0x20c1ba,_0x15ee01,_0x48430c){const _0x467e6e=_0x340281,_0x1baf4f={'url':_0x20c1ba,'header':_0x15ee01[_0x467e6e(0x1d5)],'timeout':_0x15ee01[_0x467e6e(0x17c)],'success':_0x3eee05=>{const _0x22fd0b=_0x467e6e,_0xe0c8a={..._0x3eee05};_0xe0c8a[_0x22fd0b(0x1d2)]={},_0xe0c8a[_0x22fd0b(0x1d2)][_0x22fd0b(0x19a)]=_0x3eee05['tempFilePath'],_0x48430c[_0x22fd0b(0x185)](_0xe0c8a);},'fail':_0x48430c['onFail'],'complete':()=>{}};return uni[_0x467e6e(0x1d3)](_0x1baf4f);}function mappedResponseBodyType(_0x3aabb8){const _0xf2b992=_0x340281;if(!_0x3aabb8||_0x3aabb8===_0xf2b992(0x1c2))return _0xf2b992(0x1ce);if(_0x3aabb8==='arrayBuffer')return _0xf2b992(0x1b6);return'text';}var HttpError=class extends Error{constructor(_0x519886){const _0x78c47c=_0x340281;super(_0x519886),this['name']=_0x78c47c(0x187);}};function createResponseError(_0x1fc367,_0x2c63f9,_0x1f428c){const _0x3df35b=_0x340281,_0x546b9c=_0x1fc367,_0x1adc83='['+(_0x2c63f9?.[_0x3df35b(0x1a8)]||_0x3df35b(0x1c5))+']\x20'+_0x546b9c,_0x3f8f83=_0x1f428c?_0x1f428c[_0x3df35b(0x198)]+'\x20'+(_0x1f428c[_0x3df35b(0x1c6)]||''):_0x3df35b(0x1bb),_0xfb7eb8=_0x1f428c?JSON['stringify'](_0x1f428c['data']):'<no\x20response\x20body>',_0x13d6ab=new HttpError(_0x1adc83+':\x20'+_0x3f8f83+(_0x1f428c['data']?'\x20'+_0xfb7eb8:''));for(const _0x1df431 of['request',_0x3df35b(0x1ab),'response',_0x3df35b(0x1d2)])Object['defineProperty'](_0x13d6ab,_0x1df431,{'get'(){const _0x58b27e=_0x3df35b,_0x3ee215={};return _0x3ee215[_0x58b27e(0x194)]=_0x1fc367,_0x3ee215[_0x58b27e(0x1ab)]=_0x2c63f9,_0x3ee215['response']=_0x1f428c,_0x3ee215['data']=_0x1f428c['data'],_0x3ee215[_0x1df431];}});return _0x13d6ab;}function normalizeError(_0x457c38){const _0x72609a=_0x340281;if(_0x457c38 instanceof Error)return _0x457c38;return Object['assign'](new Error(_0x457c38?.[_0x72609a(0x1c6)]||_0x457c38?.['message']||_0x72609a(0x1ac)),{'cause':_0x457c38});}async function callRequestHooks(_0x3f005a,_0x36988a){await _0x36988a['onRequest']?.({'options':_0x36988a,'resource':_0x3f005a});}async function callRequestErrorHooks(_0x53d24a,_0x277a48,_0x41b381){await _0x277a48['onRequestError']?.({'options':_0x277a48,'resource':_0x53d24a,'error':_0x41b381});}async function callResponseHooks(_0x555e72,_0x2b7435,_0x261ff1){await _0x2b7435['onResponse']?.({'options':_0x2b7435,'resource':_0x555e72,'response':_0x261ff1});}async function callResponseErrorHooks(_0x3df3f7,_0x5c568d,_0x19b926){const _0x49d55b=_0x340281;await _0x5c568d[_0x49d55b(0x1b8)]?.({'options':_0x5c568d,'resource':_0x3df3f7,'response':_0x19b926});}async function refineResponse(_0x57440f,_0x511563){const _0x4e3787=_0x340281;if(_0x511563[_0x4e3787(0x1a7)]==='json'||!_0x511563['responseType'])return{..._0x57440f,'data':await parseJSONResponse(_0x57440f[_0x4e3787(0x1d2)],_0x511563)};return _0x57440f;}function parseJSONResponse(_0x33b5a8,_0x211024){const _0x21a0c2=_0x340281;if(typeof _0x33b5a8!==_0x21a0c2(0x192))return _0x33b5a8;if(_0x211024['parseResponse'])return _0x211024['parseResponse'](_0x33b5a8);return _0x33b5a8?JSON[_0x21a0c2(0x18c)](_0x33b5a8):null;}function isResponseError(_0x5883b3){const _0x593ef1=_0x340281,_0x356047='statusCode'in _0x5883b3?_0x5883b3[_0x593ef1(0x198)]:void 0x0;return typeof _0x356047==='number'&&(_0x356047<0xc8||_0x356047>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x340281(0x1b0),'PUT',_0x340281(0x193),_0x340281(0x1cd)]);async function withRetry(_0x407edd,_0x266b33){const _0x2072a3=_0x340281,_0x449980=resolveRetryCount(_0x407edd);for(let _0x50761b=0x0;;_0x50761b++)try{return await _0x266b33();}catch(_0x31f3d4){if(_0x50761b>=_0x449980||!shouldRetry(_0x31f3d4,_0x407edd))throw _0x31f3d4;await sleep(_0x407edd[_0x2072a3(0x1ca)]??0x0,_0x407edd[_0x2072a3(0x1bf)]);}}function resolveRetryCount(_0x1b8e30){const _0x578082=_0x340281,{retry:_0x145b29}=_0x1b8e30;if(_0x145b29===![])return 0x0;if(typeof _0x145b29===_0x578082(0x1a5))return _0x145b29>0x0?_0x145b29:0x0;return isPayloadMethod(_0x1b8e30['method'])?0x0:0x1;}function shouldRetry(_0xdffd97,_0x5a2f0d){const _0xfd3f80=_0x340281;if(_0x5a2f0d['signal']?.['aborted']||isAbortError(_0xdffd97))return![];const _0x55f4fd=_0xdffd97?.['response']?.[_0xfd3f80(0x198)];if(typeof _0x55f4fd!=='number')return!![];return(_0x5a2f0d[_0xfd3f80(0x19e)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x55f4fd);}function isPayloadMethod(_0x1c2948){const _0x1568b7=_0x340281;return!!_0x1c2948&&PAYLOAD_METHODS[_0x1568b7(0x196)](_0x1c2948['toUpperCase']());}function sleep(_0x5a946c,_0x43c351){return new Promise((_0x2c6364,_0x12bf3d)=>{const _0x52fdbe=_0x45b8;if(_0x43c351?.['aborted']){_0x12bf3d(_0x43c351[_0x52fdbe(0x1cf)]);return;}if(!(_0x5a946c>0x0)){_0x2c6364();return;}let _0x5790c0=()=>{};const _0x309446=setTimeout(()=>{_0x5790c0(),_0x2c6364();},_0x5a946c);_0x5790c0=onAbort(_0x43c351,()=>{clearTimeout(_0x309446),_0x12bf3d(_0x43c351['reason']);});});}function buildURL(_0x126b4e,_0x1de7f4){const _0x23b528=_0x340281,_0x4c2726=joinURL(_0x1de7f4[_0x23b528(0x189)],_0x126b4e),_0x464666=_0x1de7f4[_0x23b528(0x1ad)]??{},_0x23f534=Object['keys'](_0x464666)['filter'](_0x41bd2a=>_0x464666[_0x41bd2a]!==void 0x0)[_0x23b528(0x1c7)](_0xf8f14d=>{const _0x353c1e=_0x23b528,_0x8e0f6b=_0x464666[_0xf8f14d];return(Array['isArray'](_0x8e0f6b)?_0x8e0f6b:[_0x8e0f6b])[_0x353c1e(0x1b5)](_0x3b3572=>encodeURIComponent(_0xf8f14d)+'='+encodeURIComponent(String(_0x3b3572)));})['join']('&');if(!_0x23f534)return _0x4c2726;return''+_0x4c2726+(_0x4c2726[_0x23b528(0x1a3)]('?')?'&':'?')+_0x23f534;}function joinURL(_0x5b88a8,_0x21e67c){if(!_0x5b88a8||isAbsoluteURL(_0x21e67c))return _0x21e67c;return _0x5b88a8['replace'](/\/+$/,'')+'/'+_0x21e67c['replace'](/^\/+/,'');}function isAbsoluteURL(_0xaab675){const _0x3e6ee3=_0x340281;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x3e6ee3(0x1a2)](_0xaab675)||_0xaab675['startsWith']('//');}function dispatchHttp(_0x3b4c5c,_0x180b24,_0x4b6d89){const _0x406cc1=buildURL(_0x180b24,_0x4b6d89);return withRetry(_0x4b6d89,()=>attemptRequest(_0x3b4c5c,_0x180b24,_0x406cc1,_0x4b6d89));}function attemptRequest(_0x21a329,_0x436a13,_0x560305,_0x29dfba){const _0x400498=_0x340281,_0x2f1abb=!!_0x29dfba[_0x400498(0x19f)];return new Promise((_0x34c0d9,_0x4afa6e)=>{const _0x1cada3=_0x400498;let _0x5e525=![];const _0x1117dc=_0x5c565f=>{if(_0x5e525)return;_0x5e525=!![],_0x5c565f();},_0x1f9885=onAbort(_0x29dfba[_0x1cada3(0x1bf)],()=>{const _0x31ea30=_0x1cada3;_0x1117dc(()=>_0x4afa6e(_0x29dfba[_0x31ea30(0x1bf)][_0x31ea30(0x1cf)]));}),_0x1913ca=_0x596420=>{_0x1f9885(),_0x1117dc(_0x596420);};callRequestHooks(_0x436a13,_0x29dfba)['then'](()=>{if(_0x5e525)return;dispatch(_0x21a329,_0x560305,_0x29dfba,{'onSuccess':_0xc56ef6=>{const _0x1f8689=_0x45b8;Promise[_0x1f8689(0x1c0)]()['then'](()=>refineResponse(_0xc56ef6,_0x29dfba))[_0x1f8689(0x1a4)](async _0x2f8a99=>{const _0x92e762=_0x1f8689;if(isResponseError(_0xc56ef6)){await callResponseErrorHooks(_0x436a13,_0x29dfba,_0x2f8a99);if(!_0x29dfba[_0x92e762(0x1b1)])throw createResponseError(_0x436a13,_0x29dfba,_0x2f8a99);}else await callResponseHooks(_0x436a13,_0x29dfba,_0x2f8a99);_0x1913ca(()=>_0x34c0d9(_0x2f1abb?_0x2f8a99:_0x2f8a99['data']));})['catch'](_0x1af57c=>_0x1913ca(()=>_0x4afa6e(_0x1af57c)));},'onFail':_0x532a81=>{Promise['resolve']()['then'](async()=>{const _0x57eda3=normalizeError(_0x532a81);if(!isAbortError(_0x57eda3))await callRequestErrorHooks(_0x436a13,_0x29dfba,_0x57eda3);throw _0x57eda3;})['catch'](_0x2a7173=>_0x1913ca(()=>_0x4afa6e(_0x2a7173)));}});})[_0x1cada3(0x181)](async _0x2bf3db=>{const _0x1e580a=normalizeError(_0x2bf3db);await callRequestErrorHooks(_0x436a13,_0x29dfba,_0x1e580a),_0x1913ca(()=>_0x4afa6e(_0x1e580a));});});}const _0x59ee5e={};_0x59ee5e['method']=_0x340281(0x1c5),_0x59ee5e[_0x340281(0x1a7)]=_0x340281(0x1c2);const defaultConfig=_0x59ee5e;function createHttp(_0x19f0b4={}){const _0x10d132=_0x340281,_0x283ddc=(_0x12bdc9,_0x3612cf)=>{return dispatchHttp('request',_0x12bdc9,mergeOptions(defaultConfig,_0x19f0b4,_0x3612cf));},_0x523720=(_0x5f54f8,_0x1a4840)=>{const _0xee22a4=_0x45b8,_0x443086={};return _0x443086[_0xee22a4(0x1a8)]='POST',dispatchHttp(_0xee22a4(0x18e),_0x5f54f8,mergeOptions(defaultConfig,_0x19f0b4,_0x1a4840,_0x443086));},_0x5cb28d=(_0x213f83,_0x3eb989)=>{const _0x3fdb96=_0x45b8,_0x465727={};return _0x465727['method']=_0x3fdb96(0x1c5),dispatchHttp('download',_0x213f83,mergeOptions(defaultConfig,_0x19f0b4,_0x3eb989,_0x465727));},_0x5ed4a1=_0x3c4193=>createHttp(mergeOptions(_0x19f0b4,_0x3c4193)),_0x4bb04f={};return _0x4bb04f['request']=_0x283ddc,_0x4bb04f[_0x10d132(0x18e)]=_0x523720,_0x4bb04f['download']=_0x5cb28d,_0x4bb04f[_0x10d132(0x1a9)]=_0x5ed4a1,_0x4bb04f;}const http=createHttp(),_0x1707e3={};_0x1707e3['enumerable']=!![],_0x1707e3[_0x340281(0x19c)]=function(){return createHttp;},Object['defineProperty'](exports,'createHttp',_0x1707e3);const _0x453154={};_0x453154[_0x340281(0x1b9)]=!![],_0x453154['get']=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x453154);const _0x9ed7e8={};_0x9ed7e8[_0x340281(0x1b9)]=!![],_0x9ed7e8['get']=function(){return http;},Object[_0x340281(0x1b7)](exports,'http',_0x9ed7e8);
|
package/dist/oiyo-DnFYTx_L.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.3
|
|
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 _0x1c890d=_0x5302;(function(_0x5a3057,_0x59e7b5){const _0x445192=_0x5302,_0x4ce97c=_0x5a3057();while(!![]){try{const _0x4162d9=parseInt(_0x445192(0x172))/0x1*(parseInt(_0x445192(0x161))/0x2)+-parseInt(_0x445192(0x14c))/0x3+-parseInt(_0x445192(0x171))/0x4+parseInt(_0x445192(0x16b))/0x5*(parseInt(_0x445192(0x191))/0x6)+parseInt(_0x445192(0x198))/0x7*(-parseInt(_0x445192(0x186))/0x8)+parseInt(_0x445192(0x179))/0x9+parseInt(_0x445192(0x189))/0xa;if(_0x4162d9===_0x59e7b5)break;else _0x4ce97c['push'](_0x4ce97c['shift']());}catch(_0x5ca243){_0x4ce97c['push'](_0x4ce97c['shift']());}}}(_0xb4ac,0xd4d24));function createHttpAborter(){const _0x10fd51=_0x5302,_0xcd3370=new HttpAbortSignal();return{'signal':_0xcd3370,'abort':_0x297a84=>_0xcd3370[_0x10fd51(0x183)](_0x297a84)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x1c890d(0x15f)]=[];[_0x1c890d(0x18d)](_0x295dcd,_0x40772d){const _0x292f2b=_0x1c890d;if(_0x295dcd!=='abort')return;this[_0x292f2b(0x15f)][_0x292f2b(0x14a)](_0x40772d);}['removeEventListener'](_0x219c01,_0x43ff70){const _0x3a40ce=_0x1c890d;if(_0x219c01!==_0x3a40ce(0x167))return;const _0x25238e=this[_0x3a40ce(0x15f)][_0x3a40ce(0x166)](_0x43ff70);if(_0x25238e!==-0x1)this[_0x3a40ce(0x15f)]['splice'](_0x25238e,0x1);}['emit'](_0xd7b4a4){const _0x3e6902=_0x1c890d;for(const _0x1216b9 of this[_0x3e6902(0x15f)]['slice']())_0x1216b9[_0x3e6902(0x19a)](this,_0xd7b4a4);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;[_0x1c890d(0x152)]=null;[_0x1c890d(0x183)](_0x14012e){const _0x48cfb4=_0x1c890d;if(this['aborted'])return;this[_0x48cfb4(0x160)]=!![],this['reason']=_0x14012e===void 0x0?createAbortError():_0x14012e;const _0x2eeae6={};_0x2eeae6[_0x48cfb4(0x15c)]='abort';const _0x59c3f3=_0x2eeae6;if(typeof this['onabort']===_0x48cfb4(0x157))this[_0x48cfb4(0x152)](_0x59c3f3);this[_0x48cfb4(0x15e)](_0x59c3f3);}[_0x1c890d(0x16c)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x22ee47=_0x1c890d(0x19d)){const _0x24e977=_0x1c890d,_0x421f26=new Error(_0x22ee47);return _0x421f26[_0x24e977(0x159)]=ABORT_ERROR_NAME,_0x421f26;}function isAbortError(_0x2d4c3f){const _0x5bd903=_0x1c890d;return _0x2d4c3f instanceof Error&&_0x2d4c3f[_0x5bd903(0x159)]===ABORT_ERROR_NAME;}function onAbort(_0x311535,_0x16088d){const _0x5b8bda=_0x1c890d;if(!_0x311535)return()=>{};if(_0x311535['aborted'])return _0x16088d(),()=>{};return _0x311535['addEventListener']('abort',_0x16088d),()=>_0x311535['removeEventListener'](_0x5b8bda(0x167),_0x16088d);}const HOOK_NAMES=['onRequest',_0x1c890d(0x156),_0x1c890d(0x158),'onResponseError'];function mergeOptions(..._0x64aa5e){const _0x2db16a=_0x1c890d,_0x55e2ea={},_0x1a2987={};for(const _0x31cd81 of _0x64aa5e){if(!_0x31cd81)continue;for(const _0x4530bd of HOOK_NAMES)collectHook(_0x1a2987,_0x4530bd,_0x31cd81);const _0x31dc50=_0x55e2ea['headers'],_0x128cc8=_0x55e2ea['query'];Object['assign'](_0x55e2ea,_0x31cd81);const _0x29efb4={..._0x31dc50,..._0x31cd81['headers']};_0x55e2ea[_0x2db16a(0x14d)]=_0x29efb4;const _0x27b963={..._0x128cc8,..._0x31cd81['query']};_0x55e2ea['query']=_0x27b963;}for(const [_0x5e460b,_0x2b4f39]of Object['entries'](_0x1a2987))Object['assign'](_0x55e2ea,{[_0x5e460b]:async _0x44327d=>{for(const _0x40233b of _0x2b4f39)await _0x40233b(_0x44327d);}});return _0x55e2ea;}function collectHook(_0xefc954,_0x3dc1d0,_0x297099){const _0x41df56=_0x1c890d,_0x3b93ad=_0x297099[_0x3dc1d0];if(typeof _0x3b93ad!=='function')return;_0xefc954[_0x3dc1d0]??=[],_0xefc954[_0x3dc1d0][_0x41df56(0x14a)](_0x3b93ad);}function dispatch(_0x1114fb,_0x27b2c8,_0x434576,_0x393ebb){const _0x124862=_0x1c890d;let _0x15fe26;if(_0x1114fb==='upload')_0x15fe26=dispatchUpload(_0x27b2c8,_0x434576,_0x393ebb);else{if(_0x1114fb===_0x124862(0x197))_0x15fe26=dispatchDownload(_0x27b2c8,_0x434576,_0x393ebb);else _0x15fe26=dispatchRequest(_0x27b2c8,_0x434576,_0x393ebb);}bindTask(_0x15fe26,_0x434576);}function bindTask(_0x547f82,_0x4a535a){const _0x4a8668=_0x1c890d;onAbort(_0x4a535a[_0x4a8668(0x19c)],()=>_0x547f82[_0x4a8668(0x167)]());if(typeof _0x4a535a['onHeadersReceived']==='function')_0x547f82[_0x4a8668(0x163)](_0x4a535a[_0x4a8668(0x163)]);const _0x3db5c8=_0x4a535a[_0x4a8668(0x16d)];if(typeof _0x3db5c8==='function'&&_0x4a8668(0x169)in _0x547f82)_0x547f82[_0x4a8668(0x169)](_0x3db5c8);}function dispatchRequest(_0x44ed76,_0x2cfc5d,_0x2e7b80){const _0x27ea79=_0x1c890d,_0x4ddc7e={'url':_0x44ed76,'method':_0x2cfc5d[_0x27ea79(0x14f)],'header':_0x2cfc5d['headers'],'data':_0x2cfc5d['body']??{},'timeout':_0x2cfc5d['timeout'],'dataType':_0x2cfc5d['dataType']||_0x27ea79(0x195),'responseType':mappedResponseBodyType(_0x2cfc5d['responseType']),'sslVerify':_0x2cfc5d['sslVerify'],'withCredentials':_0x2cfc5d[_0x27ea79(0x148)],'firstIpv4':_0x2cfc5d[_0x27ea79(0x188)],'enableHttp2':_0x2cfc5d['enableHttp2'],'enableQuic':_0x2cfc5d['enableQuic'],'enableCache':_0x2cfc5d[_0x27ea79(0x17a)],'enableHttpDNS':_0x2cfc5d['enableHttpDNS'],'httpDNSServiceId':_0x2cfc5d[_0x27ea79(0x165)],'enableChunked':_0x2cfc5d[_0x27ea79(0x17b)],'forceCellularNetwork':_0x2cfc5d['forceCellularNetwork'],'success':_0x2e7b80['onSuccess'],'fail':_0x2e7b80[_0x27ea79(0x16a)],'complete':()=>{}};return uni['request'](_0x4ddc7e);}function dispatchUpload(_0x4cbeec,_0x329033,_0x5f23e2){const _0x573546=_0x1c890d,_0x191e9f={};_0x191e9f[_0x573546(0x17c)]=_0x4cbeec,_0x191e9f[_0x573546(0x19b)]=_0x329033[_0x573546(0x19b)],_0x191e9f[_0x573546(0x162)]=_0x329033[_0x573546(0x162)],_0x191e9f[_0x573546(0x154)]=_0x329033['filePath'],_0x191e9f['name']=_0x329033['name']??'file',_0x191e9f['files']=_0x329033[_0x573546(0x150)],_0x191e9f['header']=_0x329033['headers'],_0x191e9f[_0x573546(0x16f)]=_0x329033[_0x573546(0x181)]??{},_0x191e9f['timeout']=_0x329033[_0x573546(0x180)],_0x191e9f[_0x573546(0x146)]=_0x5f23e2['onSuccess'],_0x191e9f['fail']=_0x5f23e2['onFail'],_0x191e9f['complete']=()=>{};const _0x2a8300=_0x191e9f;return uni['uploadFile'](_0x2a8300);}function dispatchDownload(_0x3bae41,_0x42af7f,_0x596175){const _0x50b141=_0x1c890d,_0x26737d={'url':_0x3bae41,'header':_0x42af7f[_0x50b141(0x14d)],'timeout':_0x42af7f['timeout'],'success':_0x3e7a9d=>{const _0x4cca60=_0x50b141,_0x1fbd56={..._0x3e7a9d};_0x1fbd56[_0x4cca60(0x176)]={},_0x1fbd56[_0x4cca60(0x176)]['tempFilePath']=_0x3e7a9d[_0x4cca60(0x15b)],_0x596175['onSuccess'](_0x1fbd56);},'fail':_0x596175['onFail'],'complete':()=>{}};return uni[_0x50b141(0x14b)](_0x26737d);}function mappedResponseBodyType(_0x3e26ec){const _0x3ba734=_0x1c890d;if(!_0x3e26ec||_0x3e26ec==='json')return'text';if(_0x3e26ec==='arrayBuffer')return'arraybuffer';return _0x3ba734(0x168);}var HttpError=class extends Error{constructor(_0x52a8e3){const _0x250dcc=_0x1c890d;super(_0x52a8e3),this[_0x250dcc(0x159)]=_0x250dcc(0x149);}};function createResponseError(_0x2b0f38,_0x1788f9,_0xb24ebd){const _0x17fafb=_0x1c890d,_0x29ab3c=_0x2b0f38,_0x2921ff='['+(_0x1788f9?.['method']||'GET')+']\x20'+_0x29ab3c,_0x301dee=_0xb24ebd?_0xb24ebd['statusCode']+'\x20'+(_0xb24ebd[_0x17fafb(0x17f)]||''):'<no\x20response>',_0x22c04c=_0xb24ebd?JSON[_0x17fafb(0x184)](_0xb24ebd[_0x17fafb(0x176)]):_0x17fafb(0x18a),_0x440cc2=new HttpError(_0x2921ff+':\x20'+_0x301dee+(_0xb24ebd[_0x17fafb(0x176)]?'\x20'+_0x22c04c:''));for(const _0x3dbfe4 of['request',_0x17fafb(0x193),_0x17fafb(0x151),'data'])Object['defineProperty'](_0x440cc2,_0x3dbfe4,{'get'(){const _0x1a11b0=_0x17fafb,_0x14f24b={};return _0x14f24b['request']=_0x2b0f38,_0x14f24b[_0x1a11b0(0x193)]=_0x1788f9,_0x14f24b['response']=_0xb24ebd,_0x14f24b[_0x1a11b0(0x176)]=_0xb24ebd['data'],_0x14f24b[_0x3dbfe4];}});return _0x440cc2;}function normalizeError(_0x314efa){const _0x178268=_0x1c890d;if(_0x314efa instanceof Error)return _0x314efa;return Object[_0x178268(0x14e)](new Error(_0x314efa?.['errMsg']||_0x314efa?.['message']||_0x178268(0x18e)),{'cause':_0x314efa});}async function callRequestHooks(_0xe7dc5a,_0x127c10){await _0x127c10['onRequest']?.({'options':_0x127c10,'resource':_0xe7dc5a});}async function callRequestErrorHooks(_0x2dc51f,_0x5c6495,_0x2c2a71){await _0x5c6495['onRequestError']?.({'options':_0x5c6495,'resource':_0x2dc51f,'error':_0x2c2a71});}async function callResponseHooks(_0x5af5a0,_0x25733a,_0x523bee){await _0x25733a['onResponse']?.({'options':_0x25733a,'resource':_0x5af5a0,'response':_0x523bee});}async function callResponseErrorHooks(_0x5bea6e,_0x7cf89a,_0x1a42c0){const _0x5a9a8b=_0x1c890d;await _0x7cf89a[_0x5a9a8b(0x18f)]?.({'options':_0x7cf89a,'resource':_0x5bea6e,'response':_0x1a42c0});}async function refineResponse(_0x197748,_0x4a2aa0){const _0x3e75b4=_0x1c890d;if(_0x4a2aa0['responseType']==='json'||!_0x4a2aa0[_0x3e75b4(0x17d)])return{..._0x197748,'data':await parseJSONResponse(_0x197748[_0x3e75b4(0x176)],_0x4a2aa0)};return _0x197748;}function parseJSONResponse(_0xcb6fea,_0x3f8219){const _0x45cb67=_0x1c890d;if(typeof _0xcb6fea!==_0x45cb67(0x17e))return _0xcb6fea;if(_0x3f8219[_0x45cb67(0x187)])return _0x3f8219[_0x45cb67(0x187)](_0xcb6fea);return _0xcb6fea?JSON[_0x45cb67(0x153)](_0xcb6fea):null;}function isResponseError(_0x2d9638){const _0x268a64='statusCode'in _0x2d9638?_0x2d9638['statusCode']:void 0x0;return typeof _0x268a64==='number'&&(_0x268a64<0xc8||_0x268a64>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x1c890d(0x170),'PUT','DELETE','PATCH']);async function withRetry(_0x133c05,_0x4c9375){const _0x29d6b8=_0x1c890d,_0x5ccc77=resolveRetryCount(_0x133c05);for(let _0xe9c92b=0x0;;_0xe9c92b++)try{return await _0x4c9375();}catch(_0x8a4fd7){if(_0xe9c92b>=_0x5ccc77||!shouldRetry(_0x8a4fd7,_0x133c05))throw _0x8a4fd7;await sleep(_0x133c05['retryDelay']??0x0,_0x133c05[_0x29d6b8(0x19c)]);}}function resolveRetryCount(_0x42e03f){const _0x3a937c=_0x1c890d,{retry:_0x346ff3}=_0x42e03f;if(_0x346ff3===![])return 0x0;if(typeof _0x346ff3===_0x3a937c(0x173))return _0x346ff3>0x0?_0x346ff3:0x0;return isPayloadMethod(_0x42e03f[_0x3a937c(0x14f)])?0x0:0x1;}function shouldRetry(_0x2bd43e,_0x1ef539){const _0x2c3174=_0x1c890d;if(_0x1ef539['signal']?.['aborted']||isAbortError(_0x2bd43e))return![];const _0x263181=_0x2bd43e?.[_0x2c3174(0x151)]?.[_0x2c3174(0x190)];if(typeof _0x263181!==_0x2c3174(0x173))return!![];return(_0x1ef539[_0x2c3174(0x175)]??DEFAULT_RETRY_STATUS_CODES)[_0x2c3174(0x196)](_0x263181);}function _0x5302(_0x3b83a0,_0x3bd293){_0x3b83a0=_0x3b83a0-0x146;const _0xb4ac9a=_0xb4ac();let _0x53026c=_0xb4ac9a[_0x3b83a0];return _0x53026c;}function isPayloadMethod(_0x3f26cd){const _0x24793d=_0x1c890d;return!!_0x3f26cd&&PAYLOAD_METHODS[_0x24793d(0x18b)](_0x3f26cd[_0x24793d(0x194)]());}function sleep(_0x2c0777,_0x13fa3a){return new Promise((_0x41864a,_0x5b10aa)=>{const _0x16cead=_0x5302;if(_0x13fa3a?.['aborted']){_0x5b10aa(_0x13fa3a[_0x16cead(0x182)]);return;}if(!(_0x2c0777>0x0)){_0x41864a();return;}let _0x30b3e7=()=>{};const _0x549276=setTimeout(()=>{_0x30b3e7(),_0x41864a();},_0x2c0777);_0x30b3e7=onAbort(_0x13fa3a,()=>{clearTimeout(_0x549276),_0x5b10aa(_0x13fa3a['reason']);});});}function _0xb4ac(){const _0x40eedd=['text','onProgressUpdate','onFail','4833385pwxgyi','throwIfAborted','onProgress','GET','formData','POST','4890204MqJCng','1896ruZiyn','number','catch','retryStatusCodes','data','join','resolve','6161004tpwtMm','enableCache','enableChunked','url','responseType','string','errMsg','timeout','body','reason','_abort','stringify','create','128zytajU','parseResponse','firstIpv4','10164000RQMxLu','<no\x20response\x20body>','has','ignoreResponseError','addEventListener','HTTP\x20request\x20failed','onResponseError','statusCode','6OYCMXp','replace','options','toUpperCase','json','includes','download','448308mEkZgZ','test','call','fileType','signal','The\x20operation\x20was\x20aborted','success','isArray','withCredentials','HttpError','push','downloadFile','602658Viuxzi','headers','assign','method','files','response','onabort','parse','filePath','flatMap','onRequestError','function','onResponse','name','then','tempFilePath','type','raw','emit','listeners','aborted','688oqHbtH','file','onHeadersReceived','request','httpDNSServiceId','indexOf','abort'];_0xb4ac=function(){return _0x40eedd;};return _0xb4ac();}function buildURL(_0x3490f3,_0x361b39){const _0x21064b=_0x1c890d,_0x3028fa=joinURL(_0x361b39['baseURL'],_0x3490f3),_0x59fe06=_0x361b39['query']??{},_0x56f490=Object['keys'](_0x59fe06)['filter'](_0x284f61=>_0x59fe06[_0x284f61]!==void 0x0)[_0x21064b(0x155)](_0x58373f=>{const _0x111237=_0x21064b,_0x1d6a87=_0x59fe06[_0x58373f];return(Array[_0x111237(0x147)](_0x1d6a87)?_0x1d6a87:[_0x1d6a87])['map'](_0x17b8da=>encodeURIComponent(_0x58373f)+'='+encodeURIComponent(String(_0x17b8da)));})[_0x21064b(0x177)]('&');if(!_0x56f490)return _0x3028fa;return''+_0x3028fa+(_0x3028fa['includes']('?')?'&':'?')+_0x56f490;}function joinURL(_0x4319f6,_0x4f86a8){const _0x4b10f0=_0x1c890d;if(!_0x4319f6||isAbsoluteURL(_0x4f86a8))return _0x4f86a8;return _0x4319f6['replace'](/\/+$/,'')+'/'+_0x4f86a8[_0x4b10f0(0x192)](/^\/+/,'');}function isAbsoluteURL(_0x147ba7){const _0x106364=_0x1c890d;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x106364(0x199)](_0x147ba7)||_0x147ba7['startsWith']('//');}function dispatchHttp(_0x4b9fa7,_0x1eb423,_0x2b1f8b){const _0x5b2510=buildURL(_0x1eb423,_0x2b1f8b);return withRetry(_0x2b1f8b,()=>attemptRequest(_0x4b9fa7,_0x1eb423,_0x5b2510,_0x2b1f8b));}function attemptRequest(_0x12a51e,_0x504910,_0x11869c,_0x2577a9){const _0x4df9de=_0x1c890d,_0x5d4916=!!_0x2577a9[_0x4df9de(0x15d)];return new Promise((_0x432e95,_0x60c66c)=>{const _0x5e1744=_0x4df9de;let _0x4dfd73=![];const _0x1b38ce=_0x4b22b2=>{if(_0x4dfd73)return;_0x4dfd73=!![],_0x4b22b2();},_0x40d732=onAbort(_0x2577a9[_0x5e1744(0x19c)],()=>{const _0xa7e851=_0x5e1744;_0x1b38ce(()=>_0x60c66c(_0x2577a9[_0xa7e851(0x19c)]['reason']));}),_0x5c0832=_0x291680=>{_0x40d732(),_0x1b38ce(_0x291680);};callRequestHooks(_0x504910,_0x2577a9)['then'](()=>{if(_0x4dfd73)return;dispatch(_0x12a51e,_0x11869c,_0x2577a9,{'onSuccess':_0x5df624=>{Promise['resolve']()['then'](()=>refineResponse(_0x5df624,_0x2577a9))['then'](async _0x2e19c3=>{const _0x56ebc7=_0x5302;if(isResponseError(_0x5df624)){await callResponseErrorHooks(_0x504910,_0x2577a9,_0x2e19c3);if(!_0x2577a9[_0x56ebc7(0x18c)])throw createResponseError(_0x504910,_0x2577a9,_0x2e19c3);}else await callResponseHooks(_0x504910,_0x2577a9,_0x2e19c3);_0x5c0832(()=>_0x432e95(_0x5d4916?_0x2e19c3:_0x2e19c3[_0x56ebc7(0x176)]));})['catch'](_0x5bb099=>_0x5c0832(()=>_0x60c66c(_0x5bb099)));},'onFail':_0x5c3efb=>{const _0x1f3cef=_0x5302;Promise[_0x1f3cef(0x178)]()[_0x1f3cef(0x15a)](async()=>{const _0x3d159e=normalizeError(_0x5c3efb);if(!isAbortError(_0x3d159e))await callRequestErrorHooks(_0x504910,_0x2577a9,_0x3d159e);throw _0x3d159e;})[_0x1f3cef(0x174)](_0x9f21e8=>_0x5c0832(()=>_0x60c66c(_0x9f21e8)));}});})[_0x5e1744(0x174)](async _0x386558=>{const _0x2de6cf=normalizeError(_0x386558);await callRequestErrorHooks(_0x504910,_0x2577a9,_0x2de6cf),_0x5c0832(()=>_0x60c66c(_0x2de6cf));});});}const _0x5ebd44={};_0x5ebd44[_0x1c890d(0x14f)]=_0x1c890d(0x16e),_0x5ebd44[_0x1c890d(0x17d)]='json';const defaultConfig=_0x5ebd44;function createHttp(_0x11c715={}){const _0x273785=_0x1c890d,_0x115456=(_0x223ab1,_0x2e24c5)=>{const _0x542c42=_0x5302;return dispatchHttp(_0x542c42(0x164),_0x223ab1,mergeOptions(defaultConfig,_0x11c715,_0x2e24c5));},_0x542003=(_0x56b3a3,_0x34f316)=>{const _0x4e1792=_0x5302,_0x203ac2={};return _0x203ac2['method']=_0x4e1792(0x170),dispatchHttp('upload',_0x56b3a3,mergeOptions(defaultConfig,_0x11c715,_0x34f316,_0x203ac2));},_0x4e71c0=(_0x3d16b1,_0x4e1827)=>{const _0xe118c0={};return _0xe118c0['method']='GET',dispatchHttp('download',_0x3d16b1,mergeOptions(defaultConfig,_0x11c715,_0x4e1827,_0xe118c0));},_0x5291f0=_0x59aa0c=>createHttp(mergeOptions(_0x11c715,_0x59aa0c)),_0x50685c={};return _0x50685c['request']=_0x115456,_0x50685c['upload']=_0x542003,_0x50685c[_0x273785(0x197)]=_0x4e71c0,_0x50685c[_0x273785(0x185)]=_0x5291f0,_0x50685c;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|