@oiyo/framework 0.4.4 → 0.4.6

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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
@@ -44,7 +44,7 @@ declare class HttpAbortSignal extends AbortEmitter {
44
44
  }
45
45
  //#endregion
46
46
  //#region src/oiyo/http/types/utils.d.ts
47
- type Prettify<T> = { [K in keyof T]: T[K] } & {};
47
+ type Prettify<T> = { [K in keyof T]: T[K]; } & {};
48
48
  type MaybePromise<T> = T | Promise<T>;
49
49
  //#endregion
50
50
  //#region src/oiyo/http/types/body.d.ts
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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
@@ -44,7 +44,7 @@ declare class HttpAbortSignal extends AbortEmitter {
44
44
  }
45
45
  //#endregion
46
46
  //#region src/oiyo/http/types/utils.d.ts
47
- type Prettify<T> = { [K in keyof T]: T[K] } & {};
47
+ type Prettify<T> = { [K in keyof T]: T[K]; } & {};
48
48
  type MaybePromise<T> = T | Promise<T>;
49
49
  //#endregion
50
50
  //#region src/oiyo/http/types/body.d.ts
package/dist/index.cjs CHANGED
@@ -1,15 +1,13 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-DQZhkyOB.cjs");
9
- const require_oiyo = require("./oiyo-DF-n178E.cjs");
8
+ const require_oiyo = require("./oiyo-CASn7hkX.cjs");
10
9
  require("./uni.cjs");
11
10
  require("./vue.cjs");
12
- //#endregion
13
11
  exports.createHttp = require_oiyo.createHttp;
14
12
  exports.createHttpAborter = require_oiyo.createHttpAborter;
15
13
  exports.http = require_oiyo.http;
package/dist/index.d.cts CHANGED
@@ -1,16 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-6y-CxV-U.cjs";
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-DQmyoOzM.cjs";
8
+ import "./uni.cjs";
9
+ import "./vue.cjs";
8
10
  export * from "@dcloudio/uni-app";
9
11
  export * from "vue";
10
-
11
- //#region src/index.d.ts
12
- declare namespace index_d_exports {
13
- export { HttpCommonOptions, HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpOptions, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
14
- }
15
- //#endregion
16
12
  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/index.d.mts CHANGED
@@ -1,16 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-6y-CxV-U.mjs";
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-DQmyoOzM.mjs";
8
+ import "./uni.mjs";
9
+ import "./vue.mjs";
8
10
  export * from "@dcloudio/uni-app";
9
11
  export * from "vue";
10
-
11
- //#region src/index.d.ts
12
- declare namespace index_d_exports {
13
- export { HttpCommonOptions, HttpConfig, HttpDownloadOptions, HttpDownloadResponse, HttpError, HttpOptions, HttpRequestOptions, HttpRequestResponse, HttpUploadOptions, HttpUploadResponse, ResponseBodyType, createHttp, createHttpAborter, http };
14
- }
15
- //#endregion
16
12
  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/index.mjs CHANGED
@@ -1,14 +1,12 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-D5dVOuTm.mjs";
8
- import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-GRTo5_GU.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-DxaznqPn.mjs";
9
8
  import "./uni.mjs";
10
9
  import "./vue.mjs";
11
10
  export * from "@dcloudio/uni-app";
12
11
  export * from "vue";
13
- //#endregion
14
12
  export { createHttp, createHttpAborter, http };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.6
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 _0x3fd42d=_0x386a;(function(_0x89df50,_0x1995dc){const _0x3e39c0=_0x386a,_0x54b9cb=_0x89df50();while(!![]){try{const _0x3428d1=parseInt(_0x3e39c0(0x17a))/0x1*(parseInt(_0x3e39c0(0x159))/0x2)+-parseInt(_0x3e39c0(0x160))/0x3*(parseInt(_0x3e39c0(0x16f))/0x4)+parseInt(_0x3e39c0(0x16c))/0x5+parseInt(_0x3e39c0(0x17e))/0x6*(parseInt(_0x3e39c0(0x17d))/0x7)+parseInt(_0x3e39c0(0x172))/0x8+-parseInt(_0x3e39c0(0x196))/0x9*(-parseInt(_0x3e39c0(0x14c))/0xa)+-parseInt(_0x3e39c0(0x1a2))/0xb;if(_0x3428d1===_0x1995dc)break;else _0x54b9cb['push'](_0x54b9cb['shift']());}catch(_0x5ac5ad){_0x54b9cb['push'](_0x54b9cb['shift']());}}}(_0x3a6e,0xc93a4));function createHttpAborter(){const _0x29acf6=new HttpAbortSignal();return{'signal':_0x29acf6,'abort':_0x4a6245=>_0x29acf6['_abort'](_0x4a6245)};}const ABORT_ERROR_NAME=_0x3fd42d(0x157);var AbortEmitter=class{[_0x3fd42d(0x156)]=[];['addEventListener'](_0x5af363,_0x286af0){const _0x3f31a2=_0x3fd42d;if(_0x5af363!=='abort')return;this['listeners'][_0x3f31a2(0x14b)](_0x286af0);}['removeEventListener'](_0x131f1b,_0x2da58e){const _0x430cc5=_0x3fd42d;if(_0x131f1b!==_0x430cc5(0x14e))return;const _0x3aa602=this['listeners'][_0x430cc5(0x15d)](_0x2da58e);if(_0x3aa602!==-0x1)this['listeners']['splice'](_0x3aa602,0x1);}[_0x3fd42d(0x170)](_0x1223af){const _0x497fcb=_0x3fd42d;for(const _0x2c9732 of this['listeners'][_0x497fcb(0x194)]())_0x2c9732[_0x497fcb(0x178)](this,_0x1223af);}},HttpAbortSignal=class extends AbortEmitter{[_0x3fd42d(0x174)]=![];[_0x3fd42d(0x193)]=void 0x0;[_0x3fd42d(0x18b)]=null;['_abort'](_0x346ae6){const _0x50eb84=_0x3fd42d;if(this[_0x50eb84(0x174)])return;this[_0x50eb84(0x174)]=!![],this['reason']=_0x346ae6===void 0x0?createAbortError():_0x346ae6;const _0x1efca1={};_0x1efca1[_0x50eb84(0x164)]=_0x50eb84(0x14e);const _0x151aa=_0x1efca1;if(typeof this['onabort']===_0x50eb84(0x198))this['onabort'](_0x151aa);this[_0x50eb84(0x170)](_0x151aa);}[_0x3fd42d(0x186)](){const _0x1b7155=_0x3fd42d;if(this['aborted'])throw this[_0x1b7155(0x193)];}};function createAbortError(_0x504433='The\x20operation\x20was\x20aborted'){const _0x1782a0=_0x3fd42d,_0xbbc35=new Error(_0x504433);return _0xbbc35[_0x1782a0(0x183)]=ABORT_ERROR_NAME,_0xbbc35;}function isAbortError(_0x68f4ea){const _0x4e18d1=_0x3fd42d;return _0x68f4ea instanceof Error&&_0x68f4ea[_0x4e18d1(0x183)]===ABORT_ERROR_NAME;}function onAbort(_0x494732,_0x59a8c6){const _0x2d4990=_0x3fd42d;if(!_0x494732)return()=>{};if(_0x494732['aborted'])return _0x59a8c6(),()=>{};return _0x494732[_0x2d4990(0x192)]('abort',_0x59a8c6),()=>_0x494732[_0x2d4990(0x187)]('abort',_0x59a8c6);}const HOOK_NAMES=[_0x3fd42d(0x17f),_0x3fd42d(0x190),'onResponse','onResponseError'];function mergeOptions(..._0x3be500){const _0xf3ae1=_0x3fd42d,_0x2c7dc4={},_0x752f3c={};for(const _0xa2d8eb of _0x3be500){if(!_0xa2d8eb)continue;for(const _0x14004c of HOOK_NAMES)collectHook(_0x752f3c,_0x14004c,_0xa2d8eb);const _0x2fc945=_0x2c7dc4[_0xf3ae1(0x179)],_0x5456ab=_0x2c7dc4['query'];Object['assign'](_0x2c7dc4,_0xa2d8eb);const _0x2f8538={..._0x2fc945,..._0xa2d8eb[_0xf3ae1(0x179)]};_0x2c7dc4['headers']=_0x2f8538;const _0x21e552={..._0x5456ab,..._0xa2d8eb['query']};_0x2c7dc4[_0xf3ae1(0x19d)]=_0x21e552;}for(const [_0x236215,_0x1ec9a0]of Object[_0xf3ae1(0x150)](_0x752f3c))Object[_0xf3ae1(0x158)](_0x2c7dc4,{[_0x236215]:async _0x17b00c=>{for(const _0x38e11c of _0x1ec9a0)await _0x38e11c(_0x17b00c);}});return _0x2c7dc4;}function collectHook(_0x536bb7,_0x2ddd65,_0x4031d8){const _0x1a0e60=_0x3fd42d,_0x37b34a=_0x4031d8[_0x2ddd65];if(typeof _0x37b34a!=='function')return;_0x536bb7[_0x2ddd65]??=[],_0x536bb7[_0x2ddd65][_0x1a0e60(0x14b)](_0x37b34a);}function dispatch(_0x40eaa7,_0x382706,_0xa20849,_0x20983d){const _0x1d48bb=_0x3fd42d;let _0x31353c;if(_0x40eaa7===_0x1d48bb(0x15b))_0x31353c=dispatchUpload(_0x382706,_0xa20849,_0x20983d);else{if(_0x40eaa7===_0x1d48bb(0x149))_0x31353c=dispatchDownload(_0x382706,_0xa20849,_0x20983d);else _0x31353c=dispatchRequest(_0x382706,_0xa20849,_0x20983d);}bindTask(_0x31353c,_0xa20849);}function bindTask(_0x31cb4c,_0x4acf04){const _0x5f3c4a=_0x3fd42d;onAbort(_0x4acf04[_0x5f3c4a(0x199)],()=>_0x31cb4c['abort']());if(typeof _0x4acf04['onHeadersReceived']==='function')_0x31cb4c['onHeadersReceived'](_0x4acf04[_0x5f3c4a(0x19b)]);const _0x11fc0c=_0x4acf04[_0x5f3c4a(0x188)];if(typeof _0x11fc0c==='function'&&_0x5f3c4a(0x166)in _0x31cb4c)_0x31cb4c[_0x5f3c4a(0x166)](_0x11fc0c);}function dispatchRequest(_0x39567f,_0x2a50a9,_0x58e7ab){const _0x32069e=_0x3fd42d,_0x548dbe={'url':_0x39567f,'method':_0x2a50a9[_0x32069e(0x1a0)],'header':_0x2a50a9[_0x32069e(0x179)],'data':_0x2a50a9[_0x32069e(0x155)]??{},'timeout':_0x2a50a9['timeout'],'dataType':_0x2a50a9[_0x32069e(0x19c)]||'json','responseType':mappedResponseBodyType(_0x2a50a9['responseType']),'sslVerify':_0x2a50a9['sslVerify'],'withCredentials':_0x2a50a9['withCredentials'],'firstIpv4':_0x2a50a9[_0x32069e(0x16d)],'enableHttp2':_0x2a50a9['enableHttp2'],'enableQuic':_0x2a50a9[_0x32069e(0x19a)],'enableCache':_0x2a50a9[_0x32069e(0x152)],'enableHttpDNS':_0x2a50a9[_0x32069e(0x14a)],'httpDNSServiceId':_0x2a50a9['httpDNSServiceId'],'enableChunked':_0x2a50a9['enableChunked'],'forceCellularNetwork':_0x2a50a9['forceCellularNetwork'],'success':_0x58e7ab['onSuccess'],'fail':_0x58e7ab[_0x32069e(0x15e)],'complete':()=>{}};return uni['request'](_0x548dbe);}function dispatchUpload(_0x28d0c7,_0x486d84,_0x1af9b9){const _0x5d5908=_0x3fd42d,_0xc66174={};_0xc66174['url']=_0x28d0c7,_0xc66174[_0x5d5908(0x15f)]=_0x486d84[_0x5d5908(0x15f)],_0xc66174['file']=_0x486d84['file'],_0xc66174['filePath']=_0x486d84[_0x5d5908(0x171)],_0xc66174['name']=_0x486d84[_0x5d5908(0x183)]??_0x5d5908(0x184),_0xc66174['files']=_0x486d84[_0x5d5908(0x18d)],_0xc66174[_0x5d5908(0x16e)]=_0x486d84[_0x5d5908(0x179)],_0xc66174[_0x5d5908(0x16a)]=_0x486d84[_0x5d5908(0x155)]??{},_0xc66174['timeout']=_0x486d84[_0x5d5908(0x180)],_0xc66174[_0x5d5908(0x191)]=_0x1af9b9['onSuccess'],_0xc66174[_0x5d5908(0x1a1)]=_0x1af9b9['onFail'],_0xc66174['complete']=()=>{};const _0x1793ae=_0xc66174;return uni[_0x5d5908(0x17c)](_0x1793ae);}function _0x386a(_0xf43ed0,_0x1655ff){_0xf43ed0=_0xf43ed0-0x149;const _0x3a6eff=_0x3a6e();let _0x386a2d=_0x3a6eff[_0xf43ed0];return _0x386a2d;}function dispatchDownload(_0x1b8c09,_0x14093e,_0x1d9483){const _0x58d1a3=_0x3fd42d,_0x14c747={'url':_0x1b8c09,'header':_0x14093e[_0x58d1a3(0x179)],'timeout':_0x14093e['timeout'],'success':_0x308838=>{const _0x3acb5f=_0x58d1a3,_0x349931={..._0x308838};_0x349931['data']={},_0x349931['data']['tempFilePath']=_0x308838['tempFilePath'],_0x1d9483[_0x3acb5f(0x181)](_0x349931);},'fail':_0x1d9483[_0x58d1a3(0x15e)],'complete':()=>{}};return uni[_0x58d1a3(0x16b)](_0x14c747);}function mappedResponseBodyType(_0x5e8181){const _0x2e77f3=_0x3fd42d;if(!_0x5e8181||_0x5e8181===_0x2e77f3(0x189))return'text';if(_0x5e8181===_0x2e77f3(0x161))return _0x2e77f3(0x18f);return _0x2e77f3(0x19e);}var HttpError=class extends Error{constructor(_0x530392){const _0x18799f=_0x3fd42d;super(_0x530392),this['name']=_0x18799f(0x163);}};function createResponseError(_0x5f2769,_0x353cea,_0x351c9e){const _0x2ea8e4=_0x3fd42d,_0x2af63c=_0x5f2769,_0x3a8cd8='['+(_0x353cea?.[_0x2ea8e4(0x1a0)]||_0x2ea8e4(0x14d))+']\x20'+_0x2af63c,_0x272983=_0x351c9e?_0x351c9e[_0x2ea8e4(0x17b)]+'\x20'+(_0x351c9e[_0x2ea8e4(0x18a)]||''):'<no\x20response>',_0x155dd5=_0x351c9e?JSON['stringify'](_0x351c9e[_0x2ea8e4(0x185)]):_0x2ea8e4(0x151),_0x3ae9cb=new HttpError(_0x3a8cd8+':\x20'+_0x272983+(_0x351c9e['data']?'\x20'+_0x155dd5:''));for(const _0x1f517f of['request','options','response',_0x2ea8e4(0x185)])Object[_0x2ea8e4(0x18e)](_0x3ae9cb,_0x1f517f,{'get'(){const _0x4c04fb=_0x2ea8e4,_0x304d1d={};return _0x304d1d['request']=_0x5f2769,_0x304d1d['options']=_0x353cea,_0x304d1d['response']=_0x351c9e,_0x304d1d[_0x4c04fb(0x185)]=_0x351c9e[_0x4c04fb(0x185)],_0x304d1d[_0x1f517f];}});return _0x3ae9cb;}function normalizeError(_0x2b65e7){const _0x28766e=_0x3fd42d;if(_0x2b65e7 instanceof Error)return _0x2b65e7;return Object[_0x28766e(0x158)](new Error(_0x2b65e7?.['errMsg']||_0x2b65e7?.[_0x28766e(0x169)]||_0x28766e(0x182)),{'cause':_0x2b65e7});}async function callRequestHooks(_0x3425be,_0x50f853){const _0xa8e70b=_0x3fd42d;await _0x50f853[_0xa8e70b(0x17f)]?.({'options':_0x50f853,'resource':_0x3425be});}async function callRequestErrorHooks(_0x56961c,_0x448d34,_0x31d2cd){const _0x210523=_0x3fd42d;await _0x448d34[_0x210523(0x190)]?.({'options':_0x448d34,'resource':_0x56961c,'error':_0x31d2cd});}async function callResponseHooks(_0x31f457,_0x3d0098,_0x2e8bcd){await _0x3d0098['onResponse']?.({'options':_0x3d0098,'resource':_0x31f457,'response':_0x2e8bcd});}async function callResponseErrorHooks(_0x3240cd,_0x48f94e,_0x4077b9){await _0x48f94e['onResponseError']?.({'options':_0x48f94e,'resource':_0x3240cd,'response':_0x4077b9});}async function refineResponse(_0x1bbce9,_0xbcc7e8){const _0x51c536=_0x3fd42d;if(_0xbcc7e8[_0x51c536(0x153)]==='json'||!_0xbcc7e8[_0x51c536(0x153)])return{..._0x1bbce9,'data':await parseJSONResponse(_0x1bbce9['data'],_0xbcc7e8)};return _0x1bbce9;}function parseJSONResponse(_0x1c06a3,_0x5311bb){const _0xd5b5e2=_0x3fd42d;if(typeof _0x1c06a3!=='string')return _0x1c06a3;if(_0x5311bb[_0xd5b5e2(0x195)])return _0x5311bb[_0xd5b5e2(0x195)](_0x1c06a3);return _0x1c06a3?JSON['parse'](_0x1c06a3):null;}function isResponseError(_0xbb10fa){const _0x27b9eb=_0x3fd42d,_0x452b20='statusCode'in _0xbb10fa?_0xbb10fa[_0x27b9eb(0x17b)]:void 0x0;return typeof _0x452b20===_0x27b9eb(0x197)&&(_0x452b20<0xc8||_0x452b20>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x3fd42d(0x14f),'PUT',_0x3fd42d(0x1a3),'PATCH']);async function withRetry(_0x50b9fd,_0x3fe590){const _0x3d3bf9=_0x3fd42d,_0x30bb75=resolveRetryCount(_0x50b9fd);for(let _0x2a7b0b=0x0;;_0x2a7b0b++)try{return await _0x3fe590();}catch(_0x3d0dfd){if(_0x2a7b0b>=_0x30bb75||!shouldRetry(_0x3d0dfd,_0x50b9fd))throw _0x3d0dfd;await sleep(_0x50b9fd['retryDelay']??0x0,_0x50b9fd[_0x3d3bf9(0x199)]);}}function resolveRetryCount(_0x944a09){const {retry:_0x24064a}=_0x944a09;if(_0x24064a===![])return 0x0;if(typeof _0x24064a==='number')return _0x24064a>0x0?_0x24064a:0x0;return isPayloadMethod(_0x944a09['method'])?0x0:0x1;}function shouldRetry(_0x1d2786,_0x766027){const _0x22ee31=_0x3fd42d;if(_0x766027['signal']?.['aborted']||isAbortError(_0x1d2786))return![];const _0x194538=_0x1d2786?.['response']?.['statusCode'];if(typeof _0x194538!==_0x22ee31(0x197))return!![];return(_0x766027[_0x22ee31(0x167)]??DEFAULT_RETRY_STATUS_CODES)[_0x22ee31(0x175)](_0x194538);}function isPayloadMethod(_0x33e420){const _0x395811=_0x3fd42d;return!!_0x33e420&&PAYLOAD_METHODS[_0x395811(0x165)](_0x33e420['toUpperCase']());}function sleep(_0xc599bf,_0xf837fe){return new Promise((_0x59af27,_0x27e86e)=>{const _0x3a0ecd=_0x386a;if(_0xf837fe?.['aborted']){_0x27e86e(_0xf837fe[_0x3a0ecd(0x193)]);return;}if(!(_0xc599bf>0x0)){_0x59af27();return;}let _0x28199c=()=>{};const _0x3f741c=setTimeout(()=>{_0x28199c(),_0x59af27();},_0xc599bf);_0x28199c=onAbort(_0xf837fe,()=>{const _0xe6635a=_0x3a0ecd;clearTimeout(_0x3f741c),_0x27e86e(_0xf837fe[_0xe6635a(0x193)]);});});}function buildURL(_0x2b5fa8,_0x3f5c12){const _0x99ccba=_0x3fd42d,_0x4aeeaa=joinURL(_0x3f5c12['baseURL'],_0x2b5fa8),_0x83dc3e=_0x3f5c12['query']??{},_0x3bcf55=Object[_0x99ccba(0x176)](_0x83dc3e)[_0x99ccba(0x168)](_0x5bd210=>_0x83dc3e[_0x5bd210]!==void 0x0)[_0x99ccba(0x19f)](_0x1f9b3d=>{const _0x4aee92=_0x83dc3e[_0x1f9b3d];return(Array['isArray'](_0x4aee92)?_0x4aee92:[_0x4aee92])['map'](_0x46279c=>encodeURIComponent(_0x1f9b3d)+'='+encodeURIComponent(String(_0x46279c)));})['join']('&');if(!_0x3bcf55)return _0x4aeeaa;return''+_0x4aeeaa+(_0x4aeeaa['includes']('?')?'&':'?')+_0x3bcf55;}function joinURL(_0x313ba4,_0x36cfac){if(!_0x313ba4||isAbsoluteURL(_0x36cfac))return _0x36cfac;return _0x313ba4['replace'](/\/+$/,'')+'/'+_0x36cfac['replace'](/^\/+/,'');}function _0x3a6e(){const _0x30e204=['DELETE','download','enableHttpDNS','push','1322450xRxeTV','GET','abort','POST','entries','<no\x20response\x20body>','enableCache','responseType','catch','body','listeners','AbortError','assign','550qBKxoS','enumerable','upload','createHttpAborter','indexOf','onFail','fileType','369RAGMNn','arrayBuffer','raw','HttpError','type','has','onProgressUpdate','retryStatusCodes','filter','message','formData','downloadFile','4714080jIiFLj','firstIpv4','header','42236SqxVtN','emit','filePath','9459824nMSHRo','then','aborted','includes','keys','createHttp','call','headers','5222Ayesgo','statusCode','uploadFile','5173qTMRSU','10758HSZHhV','onRequest','timeout','onSuccess','HTTP\x20request\x20failed','name','file','data','throwIfAborted','removeEventListener','onProgress','json','errMsg','onabort','get','files','defineProperty','arraybuffer','onRequestError','success','addEventListener','reason','slice','parseResponse','72waqDpQ','number','function','signal','enableQuic','onHeadersReceived','dataType','query','text','flatMap','method','fail','42034806dNpNTd'];_0x3a6e=function(){return _0x30e204;};return _0x3a6e();}function isAbsoluteURL(_0x4e4fa7){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x4e4fa7)||_0x4e4fa7['startsWith']('//');}function dispatchHttp(_0x45e105,_0x1aa8e0,_0x3f5f84){const _0x3f9ad7=buildURL(_0x1aa8e0,_0x3f5f84);return withRetry(_0x3f5f84,()=>attemptRequest(_0x45e105,_0x1aa8e0,_0x3f9ad7,_0x3f5f84));}function attemptRequest(_0x412c32,_0x22724b,_0x33ae07,_0x18a0f0){const _0x63f840=_0x3fd42d,_0x6dbecf=!!_0x18a0f0[_0x63f840(0x162)];return new Promise((_0x1d8d54,_0x12b7e0)=>{const _0x3f1326=_0x63f840;let _0x3f54fe=![];const _0x3da941=_0x49c6a7=>{if(_0x3f54fe)return;_0x3f54fe=!![],_0x49c6a7();},_0x230e37=onAbort(_0x18a0f0[_0x3f1326(0x199)],()=>{const _0x17b030=_0x3f1326;_0x3da941(()=>_0x12b7e0(_0x18a0f0['signal'][_0x17b030(0x193)]));}),_0x190e2c=_0x39c43a=>{_0x230e37(),_0x3da941(_0x39c43a);};callRequestHooks(_0x22724b,_0x18a0f0)[_0x3f1326(0x173)](()=>{if(_0x3f54fe)return;dispatch(_0x412c32,_0x33ae07,_0x18a0f0,{'onSuccess':_0x410f2f=>{const _0x11fbc1=_0x386a;Promise['resolve']()[_0x11fbc1(0x173)](()=>refineResponse(_0x410f2f,_0x18a0f0))['then'](async _0x2e84e0=>{if(isResponseError(_0x410f2f)){await callResponseErrorHooks(_0x22724b,_0x18a0f0,_0x2e84e0);if(!_0x18a0f0['ignoreResponseError'])throw createResponseError(_0x22724b,_0x18a0f0,_0x2e84e0);}else await callResponseHooks(_0x22724b,_0x18a0f0,_0x2e84e0);_0x190e2c(()=>_0x1d8d54(_0x6dbecf?_0x2e84e0:_0x2e84e0['data']));})['catch'](_0x2fd7b5=>_0x190e2c(()=>_0x12b7e0(_0x2fd7b5)));},'onFail':_0x9f5b97=>{const _0x5e8404=_0x386a;Promise['resolve']()['then'](async()=>{const _0x3520f7=normalizeError(_0x9f5b97);if(!isAbortError(_0x3520f7))await callRequestErrorHooks(_0x22724b,_0x18a0f0,_0x3520f7);throw _0x3520f7;})[_0x5e8404(0x154)](_0x11fc12=>_0x190e2c(()=>_0x12b7e0(_0x11fc12)));}});})['catch'](async _0x500d24=>{const _0x2acfc8=normalizeError(_0x500d24);await callRequestErrorHooks(_0x22724b,_0x18a0f0,_0x2acfc8),_0x190e2c(()=>_0x12b7e0(_0x2acfc8));});});}const _0x519aca={};_0x519aca['method']=_0x3fd42d(0x14d),_0x519aca['responseType']=_0x3fd42d(0x189);const defaultConfig=_0x519aca;function createHttp(_0x46dda6={}){const _0x434069=_0x3fd42d,_0x4c45db=(_0x4a93bf,_0x29c6ad)=>{return dispatchHttp('request',_0x4a93bf,mergeOptions(defaultConfig,_0x46dda6,_0x29c6ad));},_0x512f3f=(_0x31ad24,_0x59ed32)=>{const _0x1e8acf=_0x386a,_0x5c0f3d={};return _0x5c0f3d[_0x1e8acf(0x1a0)]=_0x1e8acf(0x14f),dispatchHttp('upload',_0x31ad24,mergeOptions(defaultConfig,_0x46dda6,_0x59ed32,_0x5c0f3d));},_0x1626a1=(_0x1038ac,_0x237a7b)=>{const _0x177580=_0x386a,_0xadcddb={};return _0xadcddb['method']='GET',dispatchHttp(_0x177580(0x149),_0x1038ac,mergeOptions(defaultConfig,_0x46dda6,_0x237a7b,_0xadcddb));},_0x276b4e=_0x5b9ffb=>createHttp(mergeOptions(_0x46dda6,_0x5b9ffb)),_0x259456={};return _0x259456['request']=_0x4c45db,_0x259456[_0x434069(0x15b)]=_0x512f3f,_0x259456[_0x434069(0x149)]=_0x1626a1,_0x259456['create']=_0x276b4e,_0x259456;}const http=createHttp(),_0x51fd02={};_0x51fd02['enumerable']=!![],_0x51fd02['get']=function(){return createHttp;},Object[_0x3fd42d(0x18e)](exports,_0x3fd42d(0x177),_0x51fd02);const _0xa8554={};_0xa8554['enumerable']=!![],_0xa8554[_0x3fd42d(0x18c)]=function(){return createHttpAborter;},Object['defineProperty'](exports,_0x3fd42d(0x15c),_0xa8554);const _0x4f38fb={};_0x4f38fb[_0x3fd42d(0x15a)]=!![],_0x4f38fb[_0x3fd42d(0x18c)]=function(){return http;},Object['defineProperty'](exports,'http',_0x4f38fb);
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @oiyo/framework v0.4.6
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 _0x37031b=_0x26f9;(function(_0x4762b0,_0x2cee80){const _0x18f4b5=_0x26f9,_0x40c540=_0x4762b0();while(!![]){try{const _0x51f19b=parseInt(_0x18f4b5(0x216))/0x1+parseInt(_0x18f4b5(0x235))/0x2+-parseInt(_0x18f4b5(0x232))/0x3*(parseInt(_0x18f4b5(0x21f))/0x4)+-parseInt(_0x18f4b5(0x20e))/0x5+-parseInt(_0x18f4b5(0x226))/0x6+parseInt(_0x18f4b5(0x21d))/0x7*(parseInt(_0x18f4b5(0x20c))/0x8)+-parseInt(_0x18f4b5(0x218))/0x9*(parseInt(_0x18f4b5(0x1f4))/0xa);if(_0x51f19b===_0x2cee80)break;else _0x40c540['push'](_0x40c540['shift']());}catch(_0x5569ba){_0x40c540['push'](_0x40c540['shift']());}}}(_0x517c,0x7825f));function createHttpAborter(){const _0x3812ed=_0x26f9,_0x45f3b2=new HttpAbortSignal();return{'signal':_0x45f3b2,'abort':_0xb69585=>_0x45f3b2[_0x3812ed(0x1fd)](_0xb69585)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x37031b(0x230)]=[];[_0x37031b(0x21c)](_0x3cb7f9,_0x1c1888){const _0x3d8122=_0x37031b;if(_0x3cb7f9!==_0x3d8122(0x20d))return;this['listeners'][_0x3d8122(0x221)](_0x1c1888);}['removeEventListener'](_0x397fdf,_0x466368){const _0x413340=_0x37031b;if(_0x397fdf!==_0x413340(0x20d))return;const _0x1b0c5e=this[_0x413340(0x230)]['indexOf'](_0x466368);if(_0x1b0c5e!==-0x1)this['listeners'][_0x413340(0x217)](_0x1b0c5e,0x1);}['emit'](_0x5a9ab7){for(const _0x3688f5 of this['listeners']['slice']())_0x3688f5['call'](this,_0x5a9ab7);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;['onabort']=null;[_0x37031b(0x1fd)](_0x4ea208){const _0x5a11d8=_0x37031b;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0x4ea208===void 0x0?createAbortError():_0x4ea208;const _0x3ea5b9={};_0x3ea5b9[_0x5a11d8(0x1fc)]=_0x5a11d8(0x20d);const _0x26cad8=_0x3ea5b9;if(typeof this['onabort']===_0x5a11d8(0x236))this[_0x5a11d8(0x22f)](_0x26cad8);this[_0x5a11d8(0x21e)](_0x26cad8);}[_0x37031b(0x211)](){const _0x4f9b0a=_0x37031b;if(this[_0x4f9b0a(0x229)])throw this[_0x4f9b0a(0x222)];}};function createAbortError(_0x8d8810='The\x20operation\x20was\x20aborted'){const _0x3ef4dc=_0x37031b,_0x57a48d=new Error(_0x8d8810);return _0x57a48d[_0x3ef4dc(0x224)]=ABORT_ERROR_NAME,_0x57a48d;}function isAbortError(_0x20ff7f){const _0x2cd303=_0x37031b;return _0x20ff7f instanceof Error&&_0x20ff7f[_0x2cd303(0x224)]===ABORT_ERROR_NAME;}function onAbort(_0x3a1b8f,_0x2197ff){const _0x92a12c=_0x37031b;if(!_0x3a1b8f)return()=>{};if(_0x3a1b8f[_0x92a12c(0x229)])return _0x2197ff(),()=>{};return _0x3a1b8f[_0x92a12c(0x21c)](_0x92a12c(0x20d),_0x2197ff),()=>_0x3a1b8f[_0x92a12c(0x23c)](_0x92a12c(0x20d),_0x2197ff);}const HOOK_NAMES=[_0x37031b(0x200),_0x37031b(0x20a),_0x37031b(0x231),'onResponseError'];function mergeOptions(..._0x878d2c){const _0x23b88b=_0x37031b,_0x5325ff={},_0x3ae565={};for(const _0x77b4c0 of _0x878d2c){if(!_0x77b4c0)continue;for(const _0xb404cc of HOOK_NAMES)collectHook(_0x3ae565,_0xb404cc,_0x77b4c0);const _0x12b8d4=_0x5325ff['headers'],_0x521831=_0x5325ff[_0x23b88b(0x219)];Object[_0x23b88b(0x213)](_0x5325ff,_0x77b4c0);const _0x54589b={..._0x12b8d4,..._0x77b4c0['headers']};_0x5325ff['headers']=_0x54589b;const _0x4a3bae={..._0x521831,..._0x77b4c0['query']};_0x5325ff['query']=_0x4a3bae;}for(const [_0x14844e,_0x8db956]of Object['entries'](_0x3ae565))Object['assign'](_0x5325ff,{[_0x14844e]:async _0x19ab44=>{for(const _0x42bda9 of _0x8db956)await _0x42bda9(_0x19ab44);}});return _0x5325ff;}function collectHook(_0x48970f,_0x6c569,_0x116932){const _0x412aab=_0x116932[_0x6c569];if(typeof _0x412aab!=='function')return;_0x48970f[_0x6c569]??=[],_0x48970f[_0x6c569]['push'](_0x412aab);}function dispatch(_0x2a0965,_0x1c0eea,_0x53c4d3,_0x232feb){const _0x28962a=_0x37031b;let _0x421d22;if(_0x2a0965==='upload')_0x421d22=dispatchUpload(_0x1c0eea,_0x53c4d3,_0x232feb);else{if(_0x2a0965===_0x28962a(0x225))_0x421d22=dispatchDownload(_0x1c0eea,_0x53c4d3,_0x232feb);else _0x421d22=dispatchRequest(_0x1c0eea,_0x53c4d3,_0x232feb);}bindTask(_0x421d22,_0x53c4d3);}function bindTask(_0x594a9a,_0x3158c0){const _0x4be0c7=_0x37031b;onAbort(_0x3158c0[_0x4be0c7(0x22e)],()=>_0x594a9a[_0x4be0c7(0x20d)]());if(typeof _0x3158c0[_0x4be0c7(0x1ff)]==='function')_0x594a9a[_0x4be0c7(0x1ff)](_0x3158c0[_0x4be0c7(0x1ff)]);const _0x443c6f=_0x3158c0[_0x4be0c7(0x241)];if(typeof _0x443c6f==='function'&&'onProgressUpdate'in _0x594a9a)_0x594a9a[_0x4be0c7(0x202)](_0x443c6f);}function dispatchRequest(_0x4657ed,_0x55e76d,_0x3c3942){const _0x335d34=_0x37031b,_0x2092e7={'url':_0x4657ed,'method':_0x55e76d['method'],'header':_0x55e76d['headers'],'data':_0x55e76d['body']??{},'timeout':_0x55e76d['timeout'],'dataType':_0x55e76d['dataType']||'json','responseType':mappedResponseBodyType(_0x55e76d['responseType']),'sslVerify':_0x55e76d['sslVerify'],'withCredentials':_0x55e76d['withCredentials'],'firstIpv4':_0x55e76d[_0x335d34(0x22b)],'enableHttp2':_0x55e76d['enableHttp2'],'enableQuic':_0x55e76d['enableQuic'],'enableCache':_0x55e76d['enableCache'],'enableHttpDNS':_0x55e76d['enableHttpDNS'],'httpDNSServiceId':_0x55e76d[_0x335d34(0x233)],'enableChunked':_0x55e76d['enableChunked'],'forceCellularNetwork':_0x55e76d[_0x335d34(0x1f5)],'success':_0x3c3942[_0x335d34(0x1f6)],'fail':_0x3c3942['onFail'],'complete':()=>{}};return uni['request'](_0x2092e7);}function dispatchUpload(_0x2b1fb0,_0x48ce3d,_0x590725){const _0x10de51=_0x37031b,_0x3eb994={};_0x3eb994[_0x10de51(0x234)]=_0x2b1fb0,_0x3eb994[_0x10de51(0x207)]=_0x48ce3d[_0x10de51(0x207)],_0x3eb994[_0x10de51(0x228)]=_0x48ce3d[_0x10de51(0x228)],_0x3eb994['filePath']=_0x48ce3d['filePath'],_0x3eb994['name']=_0x48ce3d[_0x10de51(0x224)]??_0x10de51(0x228),_0x3eb994['files']=_0x48ce3d[_0x10de51(0x214)],_0x3eb994['header']=_0x48ce3d['headers'],_0x3eb994['formData']=_0x48ce3d[_0x10de51(0x21b)]??{},_0x3eb994[_0x10de51(0x22c)]=_0x48ce3d[_0x10de51(0x22c)],_0x3eb994['success']=_0x590725['onSuccess'],_0x3eb994[_0x10de51(0x215)]=_0x590725[_0x10de51(0x1f3)],_0x3eb994['complete']=()=>{};const _0x2f7eb7=_0x3eb994;return uni['uploadFile'](_0x2f7eb7);}function dispatchDownload(_0x4bc1f7,_0x4fddf4,_0xcac4c3){const _0xde2afe=_0x37031b,_0x4ce9c4={'url':_0x4bc1f7,'header':_0x4fddf4[_0xde2afe(0x23b)],'timeout':_0x4fddf4[_0xde2afe(0x22c)],'success':_0x50a384=>{const _0x46968c=_0xde2afe,_0x2ad4b1={..._0x50a384};_0x2ad4b1[_0x46968c(0x204)]={},_0x2ad4b1[_0x46968c(0x204)][_0x46968c(0x227)]=_0x50a384[_0x46968c(0x227)],_0xcac4c3['onSuccess'](_0x2ad4b1);},'fail':_0xcac4c3[_0xde2afe(0x1f3)],'complete':()=>{}};return uni[_0xde2afe(0x23f)](_0x4ce9c4);}function mappedResponseBodyType(_0xf88057){const _0x5ba496=_0x37031b;if(!_0xf88057||_0xf88057==='json')return _0x5ba496(0x23d);if(_0xf88057===_0x5ba496(0x1fe))return _0x5ba496(0x220);return _0x5ba496(0x23d);}var HttpError=class extends Error{constructor(_0x53d988){const _0x385abf=_0x37031b;super(_0x53d988),this[_0x385abf(0x224)]='HttpError';}};function createResponseError(_0x2cb387,_0x288ead,_0x2d934e){const _0x1bad77=_0x37031b,_0x1075bf=_0x2cb387,_0x4ac5d8='['+(_0x288ead?.['method']||'GET')+']\x20'+_0x1075bf,_0x1942b3=_0x2d934e?_0x2d934e['statusCode']+'\x20'+(_0x2d934e[_0x1bad77(0x201)]||''):'<no\x20response>',_0x352e64=_0x2d934e?JSON['stringify'](_0x2d934e[_0x1bad77(0x204)]):_0x1bad77(0x223),_0x392f51=new HttpError(_0x4ac5d8+':\x20'+_0x1942b3+(_0x2d934e['data']?'\x20'+_0x352e64:''));for(const _0x251d98 of[_0x1bad77(0x22d),'options','response','data'])Object['defineProperty'](_0x392f51,_0x251d98,{'get'(){const _0x31cc22=_0x1bad77,_0x3d1a07={};return _0x3d1a07['request']=_0x2cb387,_0x3d1a07[_0x31cc22(0x208)]=_0x288ead,_0x3d1a07['response']=_0x2d934e,_0x3d1a07[_0x31cc22(0x204)]=_0x2d934e[_0x31cc22(0x204)],_0x3d1a07[_0x251d98];}});return _0x392f51;}function normalizeError(_0x4ee16c){const _0x1666ec=_0x37031b;if(_0x4ee16c instanceof Error)return _0x4ee16c;return Object[_0x1666ec(0x213)](new Error(_0x4ee16c?.['errMsg']||_0x4ee16c?.[_0x1666ec(0x237)]||'HTTP\x20request\x20failed'),{'cause':_0x4ee16c});}async function callRequestHooks(_0x1d2f3e,_0x1ef16c){await _0x1ef16c['onRequest']?.({'options':_0x1ef16c,'resource':_0x1d2f3e});}async function callRequestErrorHooks(_0x5c85a5,_0x254249,_0x3c13d9){const _0xf1a85d=_0x37031b;await _0x254249[_0xf1a85d(0x20a)]?.({'options':_0x254249,'resource':_0x5c85a5,'error':_0x3c13d9});}async function callResponseHooks(_0x57b05c,_0x571c08,_0x214357){await _0x571c08['onResponse']?.({'options':_0x571c08,'resource':_0x57b05c,'response':_0x214357});}async function callResponseErrorHooks(_0x363225,_0xffe494,_0x494913){const _0x8547ef=_0x37031b;await _0xffe494[_0x8547ef(0x239)]?.({'options':_0xffe494,'resource':_0x363225,'response':_0x494913});}async function refineResponse(_0x197f45,_0x5a0535){const _0x3791af=_0x37031b;if(_0x5a0535['responseType']===_0x3791af(0x203)||!_0x5a0535['responseType'])return{..._0x197f45,'data':await parseJSONResponse(_0x197f45[_0x3791af(0x204)],_0x5a0535)};return _0x197f45;}function parseJSONResponse(_0x49d96f,_0x1898b2){const _0x472922=_0x37031b;if(typeof _0x49d96f!=='string')return _0x49d96f;if(_0x1898b2[_0x472922(0x20b)])return _0x1898b2['parseResponse'](_0x49d96f);return _0x49d96f?JSON['parse'](_0x49d96f):null;}function isResponseError(_0x572148){const _0x38dc22=_0x37031b,_0x514f0b=_0x38dc22(0x23a)in _0x572148?_0x572148['statusCode']:void 0x0;return typeof _0x514f0b==='number'&&(_0x514f0b<0xc8||_0x514f0b>=0x12c);}function _0x517c(){const _0x2a3002=['GET','type','_abort','arrayBuffer','onHeadersReceived','onRequest','errMsg','onProgressUpdate','json','data','flatMap','keys','fileType','options','includes','onRequestError','parseResponse','21384WGPTzG','abort','1801250WuXZVY','PATCH','responseType','throwIfAborted','create','assign','files','fail','406868InffJN','splice','171rVMkSI','query','catch','body','addEventListener','2219SKMeCI','emit','20AOBXnE','arraybuffer','push','reason','<no\x20response\x20body>','name','download','5040786UZUXRK','tempFilePath','file','aborted','method','firstIpv4','timeout','request','signal','onabort','listeners','onResponse','30777AdUzpG','httpDNSServiceId','url','1710726pBzatS','function','message','retryDelay','onResponseError','statusCode','headers','removeEventListener','text','upload','downloadFile','then','onProgress','response','number','onFail','192510WpBygS','forceCellularNetwork','onSuccess','startsWith','filter','POST','toUpperCase'];_0x517c=function(){return _0x2a3002;};return _0x517c();}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST','PUT','DELETE',_0x37031b(0x20f)]);async function withRetry(_0x3eb954,_0x5bf552){const _0x5ad370=_0x37031b,_0x1ad92c=resolveRetryCount(_0x3eb954);for(let _0x535da3=0x0;;_0x535da3++)try{return await _0x5bf552();}catch(_0x210c2c){if(_0x535da3>=_0x1ad92c||!shouldRetry(_0x210c2c,_0x3eb954))throw _0x210c2c;await sleep(_0x3eb954[_0x5ad370(0x238)]??0x0,_0x3eb954['signal']);}}function resolveRetryCount(_0x43abae){const _0x33b0fa=_0x37031b,{retry:_0x2b8815}=_0x43abae;if(_0x2b8815===![])return 0x0;if(typeof _0x2b8815==='number')return _0x2b8815>0x0?_0x2b8815:0x0;return isPayloadMethod(_0x43abae[_0x33b0fa(0x22a)])?0x0:0x1;}function shouldRetry(_0x259cc7,_0x1d3963){const _0x519e94=_0x37031b;if(_0x1d3963['signal']?.[_0x519e94(0x229)]||isAbortError(_0x259cc7))return![];const _0x520ebf=_0x259cc7?.[_0x519e94(0x242)]?.[_0x519e94(0x23a)];if(typeof _0x520ebf!==_0x519e94(0x243))return!![];return(_0x1d3963['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x520ebf);}function isPayloadMethod(_0x509a14){const _0x331cc4=_0x37031b;return!!_0x509a14&&PAYLOAD_METHODS['has'](_0x509a14[_0x331cc4(0x1fa)]());}function sleep(_0x3257cd,_0x98f382){return new Promise((_0x3cdee1,_0x424827)=>{const _0x1080fc=_0x26f9;if(_0x98f382?.['aborted']){_0x424827(_0x98f382[_0x1080fc(0x222)]);return;}if(!(_0x3257cd>0x0)){_0x3cdee1();return;}let _0x18803e=()=>{};const _0x509757=setTimeout(()=>{_0x18803e(),_0x3cdee1();},_0x3257cd);_0x18803e=onAbort(_0x98f382,()=>{clearTimeout(_0x509757),_0x424827(_0x98f382['reason']);});});}function buildURL(_0xfd7f8a,_0x450d5c){const _0x5aaa4c=_0x37031b,_0xb43111=joinURL(_0x450d5c['baseURL'],_0xfd7f8a),_0x23b6a6=_0x450d5c[_0x5aaa4c(0x219)]??{},_0x272141=Object[_0x5aaa4c(0x206)](_0x23b6a6)[_0x5aaa4c(0x1f8)](_0x59ea97=>_0x23b6a6[_0x59ea97]!==void 0x0)[_0x5aaa4c(0x205)](_0xe516eb=>{const _0x579684=_0x23b6a6[_0xe516eb];return(Array['isArray'](_0x579684)?_0x579684:[_0x579684])['map'](_0x2b6a7c=>encodeURIComponent(_0xe516eb)+'='+encodeURIComponent(String(_0x2b6a7c)));})['join']('&');if(!_0x272141)return _0xb43111;return''+_0xb43111+(_0xb43111[_0x5aaa4c(0x209)]('?')?'&':'?')+_0x272141;}function joinURL(_0x41b68b,_0x2a77c5){if(!_0x41b68b||isAbsoluteURL(_0x2a77c5))return _0x2a77c5;return _0x41b68b['replace'](/\/+$/,'')+'/'+_0x2a77c5['replace'](/^\/+/,'');}function isAbsoluteURL(_0xb79fc2){const _0x32cfe8=_0x37031b;return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0xb79fc2)||_0xb79fc2[_0x32cfe8(0x1f7)]('//');}function _0x26f9(_0x220b2b,_0x37c518){_0x220b2b=_0x220b2b-0x1f3;const _0x517c41=_0x517c();let _0x26f9da=_0x517c41[_0x220b2b];return _0x26f9da;}function dispatchHttp(_0x545dff,_0x37fc16,_0x1b0574){const _0x2e17f2=buildURL(_0x37fc16,_0x1b0574);return withRetry(_0x1b0574,()=>attemptRequest(_0x545dff,_0x37fc16,_0x2e17f2,_0x1b0574));}function attemptRequest(_0x475089,_0x7a5be2,_0x1c6513,_0x20136c){const _0x23e3ee=!!_0x20136c['raw'];return new Promise((_0x37d8a1,_0x3e92bd)=>{const _0x489e49=_0x26f9;let _0x55879f=![];const _0xa05293=_0x48ca86=>{if(_0x55879f)return;_0x55879f=!![],_0x48ca86();},_0x2b8c96=onAbort(_0x20136c[_0x489e49(0x22e)],()=>{const _0x1cdc21=_0x489e49;_0xa05293(()=>_0x3e92bd(_0x20136c['signal'][_0x1cdc21(0x222)]));}),_0xc109df=_0xc80c54=>{_0x2b8c96(),_0xa05293(_0xc80c54);};callRequestHooks(_0x7a5be2,_0x20136c)['then'](()=>{if(_0x55879f)return;dispatch(_0x475089,_0x1c6513,_0x20136c,{'onSuccess':_0x34ed80=>{const _0x31ef24=_0x26f9;Promise['resolve']()['then'](()=>refineResponse(_0x34ed80,_0x20136c))[_0x31ef24(0x240)](async _0xa54fae=>{const _0x1376aa=_0x31ef24;if(isResponseError(_0x34ed80)){await callResponseErrorHooks(_0x7a5be2,_0x20136c,_0xa54fae);if(!_0x20136c['ignoreResponseError'])throw createResponseError(_0x7a5be2,_0x20136c,_0xa54fae);}else await callResponseHooks(_0x7a5be2,_0x20136c,_0xa54fae);_0xc109df(()=>_0x37d8a1(_0x23e3ee?_0xa54fae:_0xa54fae[_0x1376aa(0x204)]));})['catch'](_0x4a8985=>_0xc109df(()=>_0x3e92bd(_0x4a8985)));},'onFail':_0x5b0a6c=>{const _0x42197e=_0x26f9;Promise['resolve']()[_0x42197e(0x240)](async()=>{const _0x3f9a79=normalizeError(_0x5b0a6c);if(!isAbortError(_0x3f9a79))await callRequestErrorHooks(_0x7a5be2,_0x20136c,_0x3f9a79);throw _0x3f9a79;})[_0x42197e(0x21a)](_0x4b147b=>_0xc109df(()=>_0x3e92bd(_0x4b147b)));}});})['catch'](async _0x1592fb=>{const _0x948364=normalizeError(_0x1592fb);await callRequestErrorHooks(_0x7a5be2,_0x20136c,_0x948364),_0xc109df(()=>_0x3e92bd(_0x948364));});});}const _0x38e877={};_0x38e877['method']='GET',_0x38e877[_0x37031b(0x210)]='json';const defaultConfig=_0x38e877;function createHttp(_0x1012f5={}){const _0x5e5235=_0x37031b,_0x50d100=(_0x11beb4,_0x28e79c)=>{const _0x5de238=_0x26f9;return dispatchHttp(_0x5de238(0x22d),_0x11beb4,mergeOptions(defaultConfig,_0x1012f5,_0x28e79c));},_0x5d2052=(_0x41d5f7,_0x2962e8)=>{const _0x152117=_0x26f9,_0x589ca5={};return _0x589ca5[_0x152117(0x22a)]=_0x152117(0x1f9),dispatchHttp('upload',_0x41d5f7,mergeOptions(defaultConfig,_0x1012f5,_0x2962e8,_0x589ca5));},_0x46f1de=(_0x337e5e,_0x49cbe2)=>{const _0x2a7c33=_0x26f9,_0x3e7cdb={};return _0x3e7cdb['method']=_0x2a7c33(0x1fb),dispatchHttp(_0x2a7c33(0x225),_0x337e5e,mergeOptions(defaultConfig,_0x1012f5,_0x49cbe2,_0x3e7cdb));},_0x2680a2=_0x5d06b8=>createHttp(mergeOptions(_0x1012f5,_0x5d06b8)),_0x543164={};return _0x543164[_0x5e5235(0x22d)]=_0x50d100,_0x543164[_0x5e5235(0x23e)]=_0x5d2052,_0x543164[_0x5e5235(0x225)]=_0x46f1de,_0x543164[_0x5e5235(0x212)]=_0x2680a2,_0x543164;}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.4
2
+ * @oiyo/framework v0.4.6
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-DF-n178E.cjs");
8
+ const require_oiyo = require("./oiyo-CASn7hkX.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.4
2
+ * @oiyo/framework v0.4.6
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-6y-CxV-U.cjs";
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-DQmyoOzM.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.4
2
+ * @oiyo/framework v0.4.6
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-6y-CxV-U.mjs";
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-DQmyoOzM.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.4
2
+ * @oiyo/framework v0.4.6
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-GRTo5_GU.mjs";
7
+ import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-DxaznqPn.mjs";
8
8
  export { createHttp, createHttpAborter, http };
package/dist/uni.cjs CHANGED
@@ -1,11 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-DQZhkyOB.cjs");
9
8
  var _dcloudio_uni_app = require("@dcloudio/uni-app");
10
9
  Object.keys(_dcloudio_uni_app).forEach(function(k) {
11
10
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/uni.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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
package/dist/uni.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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
package/dist/uni.mjs CHANGED
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-D5dVOuTm.mjs";
8
7
  export * from "@dcloudio/uni-app";
9
8
  export {};
package/dist/vue.cjs CHANGED
@@ -1,11 +1,10 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-DQZhkyOB.cjs");
9
8
  var vue = require("vue");
10
9
  Object.keys(vue).forEach(function(k) {
11
10
  if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
package/dist/vue.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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
package/dist/vue.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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
package/dist/vue.mjs CHANGED
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @oiyo/framework v0.4.4
2
+ * @oiyo/framework v0.4.6
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-D5dVOuTm.mjs";
8
7
  export * from "vue";
9
8
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiyo/framework",
3
3
  "type": "module",
4
- "version": "0.4.4",
4
+ "version": "0.4.6",
5
5
  "author": {
6
6
  "name": "skiyee",
7
7
  "email": "319619193@qq.com",
@@ -1,7 +0,0 @@
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);
@@ -1,7 +0,0 @@
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};
@@ -1,33 +0,0 @@
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
- //#region \0rolldown/runtime.js
8
- var __defProp = Object.defineProperty;
9
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __getOwnPropNames = Object.getOwnPropertyNames;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __exportAll = (all, no_symbols) => {
13
- let target = {};
14
- for (var name in all) __defProp(target, name, {
15
- get: all[name],
16
- enumerable: true
17
- });
18
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
19
- return target;
20
- };
21
- var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
23
- key = keys[i];
24
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
25
- get: ((k) => from[k]).bind(null, key),
26
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
27
- });
28
- }
29
- return to;
30
- };
31
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
32
- //#endregion
33
- export { __reExport as n, __exportAll as t };
@@ -1,44 +0,0 @@
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
- //#region \0rolldown/runtime.js
8
- var __defProp = Object.defineProperty;
9
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
- var __getOwnPropNames = Object.getOwnPropertyNames;
11
- var __hasOwnProp = Object.prototype.hasOwnProperty;
12
- var __exportAll = (all, no_symbols) => {
13
- let target = {};
14
- for (var name in all) __defProp(target, name, {
15
- get: all[name],
16
- enumerable: true
17
- });
18
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
19
- return target;
20
- };
21
- var __copyProps = (to, from, except, desc) => {
22
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
23
- key = keys[i];
24
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
25
- get: ((k) => from[k]).bind(null, key),
26
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
27
- });
28
- }
29
- return to;
30
- };
31
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
32
- //#endregion
33
- Object.defineProperty(exports, "__exportAll", {
34
- enumerable: true,
35
- get: function() {
36
- return __exportAll;
37
- }
38
- });
39
- Object.defineProperty(exports, "__reExport", {
40
- enumerable: true,
41
- get: function() {
42
- return __reExport;
43
- }
44
- });