@oiyo/framework 0.4.1 → 0.4.2
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-CR-xdBFX.d.cts → index-CmD0iXcE.d.cts} +1 -1
- package/dist/{index-CR-xdBFX.d.mts → index-CmD0iXcE.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-BS1ESthW.cjs +7 -0
- package/dist/oiyo-CQlUPoLW.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-DXRHM9Mm.cjs → rolldown-runtime-CrmOzWpZ.cjs} +1 -1
- package/dist/{rolldown-runtime-BiDmVKcM.mjs → rolldown-runtime-D0eOKGL5.mjs} +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-Bwn9BFbV.mjs +0 -7
- package/dist/oiyo-Cf-hBSyT.cjs +0 -7
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @oiyo/framework v0.4.
|
|
2
|
+
* @oiyo/framework v0.4.2
|
|
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-CrmOzWpZ.cjs");
|
|
9
|
+
const require_oiyo = require("./oiyo-BS1ESthW.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.2
|
|
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-CmD0iXcE.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.2
|
|
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-CmD0iXcE.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.2
|
|
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-D0eOKGL5.mjs";
|
|
8
|
+
import { n as http, r as createHttpAborter, t as createHttp } from "./oiyo-CQlUPoLW.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.2
|
|
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 _0x32ba21=_0x5dea;(function(_0x5d8ebc,_0x48473d){const _0x395a20=_0x5dea,_0x1809fa=_0x5d8ebc();while(!![]){try{const _0x32c3a2=parseInt(_0x395a20(0x1be))/0x1*(parseInt(_0x395a20(0x1c6))/0x2)+-parseInt(_0x395a20(0x1f4))/0x3+parseInt(_0x395a20(0x1b1))/0x4*(parseInt(_0x395a20(0x1f9))/0x5)+-parseInt(_0x395a20(0x1e0))/0x6+parseInt(_0x395a20(0x1db))/0x7*(parseInt(_0x395a20(0x1de))/0x8)+parseInt(_0x395a20(0x1a4))/0x9*(parseInt(_0x395a20(0x1b4))/0xa)+parseInt(_0x395a20(0x1ea))/0xb*(-parseInt(_0x395a20(0x1fb))/0xc);if(_0x32c3a2===_0x48473d)break;else _0x1809fa['push'](_0x1809fa['shift']());}catch(_0x668695){_0x1809fa['push'](_0x1809fa['shift']());}}}(_0x3ead,0x29e7c));function _0x3ead(){const _0x171246=['POST','sslVerify','arrayBuffer','onResponse','uploadFile','header','push','enableHttpDNS','has','name','indexOf','427rKkFoN','HttpError','number','20848IfaqTI','onFail','594600QRxDlM','flatMap','onHeadersReceived','tempFilePath','join','aborted','fail','addEventListener','function','withCredentials','188837HZEzOZ','PATCH','abort','enableHttp2','onSuccess','timeout','enableQuic','enumerable','onabort','options','620481LpoTIf','headers','create','includes','resolve','460555xnDNAu','baseURL','264jfmyhZ','method','dataType','63bVtFPK','call','throwIfAborted','retryStatusCodes','removeEventListener','http','reason','<no\x20response>','parseResponse','HTTP\x20request\x20failed','request','firstIpv4','responseType','4ifyTZE','retryDelay','defineProperty','411970SxWJAf','map','data','query','json','enableCache','files','listeners','statusCode','upload','105263yYVauj','complete','filePath','signal','replace','startsWith','raw','onResponseError','6LDzaOW','download','then','file','GET','text','formData','assign','body','<no\x20response\x20body>'];_0x3ead=function(){return _0x171246;};return _0x3ead();}function createHttpAborter(){const _0x30259d=new HttpAbortSignal();return{'signal':_0x30259d,'abort':_0x470b38=>_0x30259d['_abort'](_0x470b38)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x32ba21(0x1e7)](_0x191fb2,_0x4ff7c1){const _0x28dcdb=_0x32ba21;if(_0x191fb2!=='abort')return;this[_0x28dcdb(0x1bb)][_0x28dcdb(0x1d6)](_0x4ff7c1);}['removeEventListener'](_0x4dbfe5,_0x467c32){const _0x424748=_0x32ba21;if(_0x4dbfe5!==_0x424748(0x1ec))return;const _0x4fd6de=this['listeners'][_0x424748(0x1da)](_0x467c32);if(_0x4fd6de!==-0x1)this['listeners']['splice'](_0x4fd6de,0x1);}['emit'](_0x3c16f8){const _0x5a998b=_0x32ba21;for(const _0x35fd06 of this['listeners']['slice']())_0x35fd06[_0x5a998b(0x1a5)](this,_0x3c16f8);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];['reason']=void 0x0;['onabort']=null;['_abort'](_0x320487){const _0xa16068=_0x32ba21;if(this[_0xa16068(0x1e5)])return;this[_0xa16068(0x1e5)]=!![],this['reason']=_0x320487===void 0x0?createAbortError():_0x320487;const _0x20b8b6={};_0x20b8b6['type']=_0xa16068(0x1ec);const _0x4c6c16=_0x20b8b6;if(typeof this['onabort']===_0xa16068(0x1e8))this[_0xa16068(0x1f2)](_0x4c6c16);this['emit'](_0x4c6c16);}[_0x32ba21(0x1a6)](){const _0x46a402=_0x32ba21;if(this[_0x46a402(0x1e5)])throw this['reason'];}};function createAbortError(_0x45bcc6='The\x20operation\x20was\x20aborted'){const _0x557cb9=new Error(_0x45bcc6);return _0x557cb9['name']=ABORT_ERROR_NAME,_0x557cb9;}function isAbortError(_0x239ac4){const _0x10ef5b=_0x32ba21;return _0x239ac4 instanceof Error&&_0x239ac4[_0x10ef5b(0x1d9)]===ABORT_ERROR_NAME;}function onAbort(_0x4590df,_0x165002){const _0x1c7acc=_0x32ba21;if(!_0x4590df)return()=>{};if(_0x4590df[_0x1c7acc(0x1e5)])return _0x165002(),()=>{};return _0x4590df[_0x1c7acc(0x1e7)](_0x1c7acc(0x1ec),_0x165002),()=>_0x4590df[_0x1c7acc(0x1a8)]('abort',_0x165002);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x32ba21(0x1c5)];function mergeOptions(..._0x572725){const _0x1f030c=_0x32ba21,_0x5279b0={},_0x5389d7={};for(const _0x4b23ec of _0x572725){if(!_0x4b23ec)continue;for(const _0x5cba8d of HOOK_NAMES)collectHook(_0x5389d7,_0x5cba8d,_0x4b23ec);const _0x3cebc0=_0x5279b0['headers'],_0x4e2550=_0x5279b0['query'];Object[_0x1f030c(0x1cd)](_0x5279b0,_0x4b23ec);const _0x5283d3={..._0x3cebc0,..._0x4b23ec[_0x1f030c(0x1f5)]};_0x5279b0[_0x1f030c(0x1f5)]=_0x5283d3;const _0x235df1={..._0x4e2550,..._0x4b23ec[_0x1f030c(0x1b7)]};_0x5279b0[_0x1f030c(0x1b7)]=_0x235df1;}for(const [_0x698800,_0x8fcead]of Object['entries'](_0x5389d7))Object[_0x1f030c(0x1cd)](_0x5279b0,{[_0x698800]:async _0x19cd71=>{for(const _0x335685 of _0x8fcead)await _0x335685(_0x19cd71);}});return _0x5279b0;}function collectHook(_0x3e3715,_0x53cb9b,_0x362ce4){const _0x54f672=_0x32ba21,_0x5d3d31=_0x362ce4[_0x53cb9b];if(typeof _0x5d3d31!==_0x54f672(0x1e8))return;_0x3e3715[_0x53cb9b]??=[],_0x3e3715[_0x53cb9b]['push'](_0x5d3d31);}function _0x5dea(_0x997416,_0x6cb2c5){_0x997416=_0x997416-0x1a3;const _0x3eadd4=_0x3ead();let _0x5deac6=_0x3eadd4[_0x997416];return _0x5deac6;}function dispatch(_0x16bd8d,_0x46ad26,_0x47a39f,_0x1a1c62){const _0x55f79b=_0x32ba21;let _0xe42e31;if(_0x16bd8d===_0x55f79b(0x1bd))_0xe42e31=dispatchUpload(_0x46ad26,_0x47a39f,_0x1a1c62);else{if(_0x16bd8d===_0x55f79b(0x1c7))_0xe42e31=dispatchDownload(_0x46ad26,_0x47a39f,_0x1a1c62);else _0xe42e31=dispatchRequest(_0x46ad26,_0x47a39f,_0x1a1c62);}bindTask(_0xe42e31,_0x47a39f);}function bindTask(_0x13d54a,_0x3861b5){const _0x57e59f=_0x32ba21;onAbort(_0x3861b5[_0x57e59f(0x1c1)],()=>_0x13d54a['abort']());if(typeof _0x3861b5[_0x57e59f(0x1e2)]==='function')_0x13d54a[_0x57e59f(0x1e2)](_0x3861b5[_0x57e59f(0x1e2)]);const _0x108410=_0x3861b5['onProgress'];if(typeof _0x108410==='function'&&'onProgressUpdate'in _0x13d54a)_0x13d54a['onProgressUpdate'](_0x108410);}function dispatchRequest(_0x29f3ca,_0x39a6b6,_0x350b26){const _0x4b18d4=_0x32ba21,_0x270dda={'url':_0x29f3ca,'method':_0x39a6b6[_0x4b18d4(0x1fc)],'header':_0x39a6b6['headers'],'data':_0x39a6b6[_0x4b18d4(0x1ce)]??{},'timeout':_0x39a6b6[_0x4b18d4(0x1ef)],'dataType':_0x39a6b6[_0x4b18d4(0x1a3)]||_0x4b18d4(0x1b8),'responseType':mappedResponseBodyType(_0x39a6b6['responseType']),'sslVerify':_0x39a6b6[_0x4b18d4(0x1d1)],'withCredentials':_0x39a6b6[_0x4b18d4(0x1e9)],'firstIpv4':_0x39a6b6[_0x4b18d4(0x1af)],'enableHttp2':_0x39a6b6[_0x4b18d4(0x1ed)],'enableQuic':_0x39a6b6[_0x4b18d4(0x1f0)],'enableCache':_0x39a6b6[_0x4b18d4(0x1b9)],'enableHttpDNS':_0x39a6b6[_0x4b18d4(0x1d7)],'httpDNSServiceId':_0x39a6b6['httpDNSServiceId'],'enableChunked':_0x39a6b6['enableChunked'],'forceCellularNetwork':_0x39a6b6['forceCellularNetwork'],'success':_0x350b26[_0x4b18d4(0x1ee)],'fail':_0x350b26['onFail'],'complete':()=>{}};return uni[_0x4b18d4(0x1ae)](_0x270dda);}function dispatchUpload(_0x47865c,_0x46bbd4,_0x4c0388){const _0xd2decb=_0x32ba21,_0x5813b7={};_0x5813b7['url']=_0x47865c,_0x5813b7['fileType']=_0x46bbd4['fileType'],_0x5813b7[_0xd2decb(0x1c9)]=_0x46bbd4['file'],_0x5813b7[_0xd2decb(0x1c0)]=_0x46bbd4['filePath'],_0x5813b7['name']=_0x46bbd4[_0xd2decb(0x1d9)]??'file',_0x5813b7[_0xd2decb(0x1ba)]=_0x46bbd4['files'],_0x5813b7[_0xd2decb(0x1d5)]=_0x46bbd4['headers'],_0x5813b7[_0xd2decb(0x1cc)]=_0x46bbd4['body']??{},_0x5813b7[_0xd2decb(0x1ef)]=_0x46bbd4[_0xd2decb(0x1ef)],_0x5813b7['success']=_0x4c0388[_0xd2decb(0x1ee)],_0x5813b7[_0xd2decb(0x1e6)]=_0x4c0388['onFail'],_0x5813b7[_0xd2decb(0x1bf)]=()=>{};const _0x944e62=_0x5813b7;return uni[_0xd2decb(0x1d4)](_0x944e62);}function dispatchDownload(_0x13efa5,_0x2c67c1,_0x4bb694){const _0x197c46=_0x32ba21,_0x5f4f24={'url':_0x13efa5,'header':_0x2c67c1['headers'],'timeout':_0x2c67c1[_0x197c46(0x1ef)],'success':_0xf35d32=>{const _0x3d4e54=_0x197c46,_0xfa9b27={..._0xf35d32};_0xfa9b27[_0x3d4e54(0x1b6)]={},_0xfa9b27[_0x3d4e54(0x1b6)][_0x3d4e54(0x1e3)]=_0xf35d32['tempFilePath'],_0x4bb694['onSuccess'](_0xfa9b27);},'fail':_0x4bb694[_0x197c46(0x1df)],'complete':()=>{}};return uni['downloadFile'](_0x5f4f24);}function mappedResponseBodyType(_0x30a0a6){const _0x3ccd87=_0x32ba21;if(!_0x30a0a6||_0x30a0a6==='json')return _0x3ccd87(0x1cb);if(_0x30a0a6===_0x3ccd87(0x1d2))return'arraybuffer';return'text';}var HttpError=class extends Error{constructor(_0x4bbdc7){const _0x18d2b5=_0x32ba21;super(_0x4bbdc7),this[_0x18d2b5(0x1d9)]=_0x18d2b5(0x1dc);}};function createResponseError(_0x5164b8,_0x109905,_0x53b0b0){const _0x50e853=_0x32ba21,_0x3e7f11=_0x5164b8,_0x40a454='['+(_0x109905?.['method']||_0x50e853(0x1ca))+']\x20'+_0x3e7f11,_0x34161c=_0x53b0b0?_0x53b0b0[_0x50e853(0x1bc)]+'\x20'+(_0x53b0b0['errMsg']||''):_0x50e853(0x1ab),_0x30614c=_0x53b0b0?JSON['stringify'](_0x53b0b0['data']):_0x50e853(0x1cf),_0x40b5a6=new HttpError(_0x40a454+':\x20'+_0x34161c+(_0x53b0b0['data']?'\x20'+_0x30614c:''));for(const _0x3a90f6 of['request',_0x50e853(0x1f3),'response',_0x50e853(0x1b6)])Object[_0x50e853(0x1b3)](_0x40b5a6,_0x3a90f6,{'get'(){const _0x49814e=_0x50e853,_0x1a0582={};return _0x1a0582[_0x49814e(0x1ae)]=_0x5164b8,_0x1a0582[_0x49814e(0x1f3)]=_0x109905,_0x1a0582['response']=_0x53b0b0,_0x1a0582[_0x49814e(0x1b6)]=_0x53b0b0['data'],_0x1a0582[_0x3a90f6];}});return _0x40b5a6;}function normalizeError(_0x2efbcc){const _0x182afb=_0x32ba21;if(_0x2efbcc instanceof Error)return _0x2efbcc;return Object[_0x182afb(0x1cd)](new Error(_0x2efbcc?.['errMsg']||_0x2efbcc?.['message']||_0x182afb(0x1ad)),{'cause':_0x2efbcc});}async function callRequestHooks(_0x4aba8b,_0x54aa6e){await _0x54aa6e['onRequest']?.({'options':_0x54aa6e,'resource':_0x4aba8b});}async function callRequestErrorHooks(_0x48258b,_0x55fd87,_0x299837){await _0x55fd87['onRequestError']?.({'options':_0x55fd87,'resource':_0x48258b,'error':_0x299837});}async function callResponseHooks(_0x3a67f8,_0x494013,_0x421cd7){const _0x5dd15d=_0x32ba21;await _0x494013[_0x5dd15d(0x1d3)]?.({'options':_0x494013,'resource':_0x3a67f8,'response':_0x421cd7});}async function callResponseErrorHooks(_0x2660a5,_0x2a4315,_0x1befa9){await _0x2a4315['onResponseError']?.({'options':_0x2a4315,'resource':_0x2660a5,'response':_0x1befa9});}async function refineResponse(_0x50a5e4,_0x3df7f3){const _0x58e782=_0x32ba21;if(_0x3df7f3[_0x58e782(0x1b0)]===_0x58e782(0x1b8)||!_0x3df7f3['responseType'])return{..._0x50a5e4,'data':await parseJSONResponse(_0x50a5e4['data'],_0x3df7f3)};return _0x50a5e4;}function parseJSONResponse(_0x1739dc,_0x4c9868){const _0x1f1a05=_0x32ba21;if(typeof _0x1739dc!=='string')return _0x1739dc;if(_0x4c9868[_0x1f1a05(0x1ac)])return _0x4c9868['parseResponse'](_0x1739dc);return _0x1739dc?JSON['parse'](_0x1739dc):null;}function isResponseError(_0x2432f7){const _0x424ad4=_0x32ba21,_0x2e9795=_0x424ad4(0x1bc)in _0x2432f7?_0x2432f7[_0x424ad4(0x1bc)]:void 0x0;return typeof _0x2e9795==='number'&&(_0x2e9795<0xc8||_0x2e9795>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x32ba21(0x1d0),'PUT','DELETE',_0x32ba21(0x1eb)]);async function withRetry(_0x27cb4d,_0x30ba0f){const _0x36b5ab=_0x32ba21,_0x152ee8=resolveRetryCount(_0x27cb4d);for(let _0x3c024c=0x0;;_0x3c024c++)try{return await _0x30ba0f();}catch(_0x52ba19){if(_0x3c024c>=_0x152ee8||!shouldRetry(_0x52ba19,_0x27cb4d))throw _0x52ba19;await sleep(_0x27cb4d[_0x36b5ab(0x1b2)]??0x0,_0x27cb4d[_0x36b5ab(0x1c1)]);}}function resolveRetryCount(_0x1f7190){const _0x3b9dec=_0x32ba21,{retry:_0x4b893c}=_0x1f7190;if(_0x4b893c===![])return 0x0;if(typeof _0x4b893c==='number')return _0x4b893c>0x0?_0x4b893c:0x0;return isPayloadMethod(_0x1f7190[_0x3b9dec(0x1fc)])?0x0:0x1;}function shouldRetry(_0x18f178,_0x6b14c2){const _0x2ccff6=_0x32ba21;if(_0x6b14c2['signal']?.[_0x2ccff6(0x1e5)]||isAbortError(_0x18f178))return![];const _0x426d8a=_0x18f178?.['response']?.['statusCode'];if(typeof _0x426d8a!==_0x2ccff6(0x1dd))return!![];return(_0x6b14c2[_0x2ccff6(0x1a7)]??DEFAULT_RETRY_STATUS_CODES)[_0x2ccff6(0x1f7)](_0x426d8a);}function isPayloadMethod(_0xb533a9){const _0x2a00ee=_0x32ba21;return!!_0xb533a9&&PAYLOAD_METHODS[_0x2a00ee(0x1d8)](_0xb533a9['toUpperCase']());}function sleep(_0x581205,_0x51a0e6){return new Promise((_0x185003,_0x152c57)=>{if(_0x51a0e6?.['aborted']){_0x152c57(_0x51a0e6['reason']);return;}if(!(_0x581205>0x0)){_0x185003();return;}let _0x4b6ebb=()=>{};const _0xe92792=setTimeout(()=>{_0x4b6ebb(),_0x185003();},_0x581205);_0x4b6ebb=onAbort(_0x51a0e6,()=>{const _0x4d80fc=_0x5dea;clearTimeout(_0xe92792),_0x152c57(_0x51a0e6[_0x4d80fc(0x1aa)]);});});}function buildURL(_0x272078,_0x2a9e51){const _0x34595b=_0x32ba21,_0x2b7aec=joinURL(_0x2a9e51[_0x34595b(0x1fa)],_0x272078),_0x5b88a4=_0x2a9e51['query']??{},_0x305b2b=Object['keys'](_0x5b88a4)['filter'](_0x290047=>_0x5b88a4[_0x290047]!==void 0x0)[_0x34595b(0x1e1)](_0x2bc782=>{const _0x6cff1=_0x34595b,_0x27a225=_0x5b88a4[_0x2bc782];return(Array['isArray'](_0x27a225)?_0x27a225:[_0x27a225])[_0x6cff1(0x1b5)](_0x3099cd=>encodeURIComponent(_0x2bc782)+'='+encodeURIComponent(String(_0x3099cd)));})[_0x34595b(0x1e4)]('&');if(!_0x305b2b)return _0x2b7aec;return''+_0x2b7aec+(_0x2b7aec['includes']('?')?'&':'?')+_0x305b2b;}function joinURL(_0x2591f2,_0x1a3e55){const _0x4cb4f1=_0x32ba21;if(!_0x2591f2||isAbsoluteURL(_0x1a3e55))return _0x1a3e55;return _0x2591f2[_0x4cb4f1(0x1c2)](/\/+$/,'')+'/'+_0x1a3e55[_0x4cb4f1(0x1c2)](/^\/+/,'');}function isAbsoluteURL(_0x5e93d5){const _0x556b13=_0x32ba21;return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x5e93d5)||_0x5e93d5[_0x556b13(0x1c3)]('//');}function dispatchHttp(_0x4f9ce7,_0x5b85fb,_0x3950ca){const _0x3ad917=buildURL(_0x5b85fb,_0x3950ca);return withRetry(_0x3950ca,()=>attemptRequest(_0x4f9ce7,_0x5b85fb,_0x3ad917,_0x3950ca));}function attemptRequest(_0xc015d3,_0x1d9193,_0x2d178d,_0x4a719a){const _0x15f905=_0x32ba21,_0x33b63c=!!_0x4a719a[_0x15f905(0x1c4)];return new Promise((_0xd19824,_0x1d5945)=>{const _0x16e3fd=_0x15f905;let _0xd0896c=![];const _0x1dcd18=_0x148326=>{if(_0xd0896c)return;_0xd0896c=!![],_0x148326();},_0x47fe4a=onAbort(_0x4a719a[_0x16e3fd(0x1c1)],()=>{const _0x3b9a7a=_0x16e3fd;_0x1dcd18(()=>_0x1d5945(_0x4a719a[_0x3b9a7a(0x1c1)]['reason']));}),_0x3e6db0=_0x31ea4b=>{_0x47fe4a(),_0x1dcd18(_0x31ea4b);};callRequestHooks(_0x1d9193,_0x4a719a)[_0x16e3fd(0x1c8)](()=>{if(_0xd0896c)return;dispatch(_0xc015d3,_0x2d178d,_0x4a719a,{'onSuccess':_0x3d75b2=>{const _0x3c10c0=_0x5dea;Promise[_0x3c10c0(0x1f8)]()[_0x3c10c0(0x1c8)](()=>refineResponse(_0x3d75b2,_0x4a719a))[_0x3c10c0(0x1c8)](async _0x55781a=>{if(isResponseError(_0x3d75b2)){await callResponseErrorHooks(_0x1d9193,_0x4a719a,_0x55781a);if(!_0x4a719a['ignoreResponseError'])throw createResponseError(_0x1d9193,_0x4a719a,_0x55781a);}else await callResponseHooks(_0x1d9193,_0x4a719a,_0x55781a);_0x3e6db0(()=>_0xd19824(_0x33b63c?_0x55781a:_0x55781a['data']));})['catch'](_0x27b778=>_0x3e6db0(()=>_0x1d5945(_0x27b778)));},'onFail':_0x598061=>{const _0xf2169c=_0x5dea;Promise['resolve']()[_0xf2169c(0x1c8)](async()=>{const _0x463eb2=normalizeError(_0x598061);if(!isAbortError(_0x463eb2))await callRequestErrorHooks(_0x1d9193,_0x4a719a,_0x463eb2);throw _0x463eb2;})['catch'](_0x3c53d1=>_0x3e6db0(()=>_0x1d5945(_0x3c53d1)));}});})['catch'](async _0x435675=>{const _0x398788=normalizeError(_0x435675);await callRequestErrorHooks(_0x1d9193,_0x4a719a,_0x398788),_0x3e6db0(()=>_0x1d5945(_0x398788));});});}const _0xc47fb6={};_0xc47fb6['method']='GET',_0xc47fb6['responseType']='json';const defaultConfig=_0xc47fb6;function createHttp(_0x2c82e9={}){const _0x877b23=_0x32ba21,_0x28a5e1=(_0x4804cc,_0x11cf55)=>{return dispatchHttp('request',_0x4804cc,mergeOptions(defaultConfig,_0x2c82e9,_0x11cf55));},_0x35b9b1=(_0x540e05,_0x2febb1)=>{const _0x12ce49=_0x5dea,_0x3244a4={};return _0x3244a4[_0x12ce49(0x1fc)]=_0x12ce49(0x1d0),dispatchHttp('upload',_0x540e05,mergeOptions(defaultConfig,_0x2c82e9,_0x2febb1,_0x3244a4));},_0x1deef4=(_0x14ddc7,_0x555964)=>{const _0x7a81d5={};return _0x7a81d5['method']='GET',dispatchHttp('download',_0x14ddc7,mergeOptions(defaultConfig,_0x2c82e9,_0x555964,_0x7a81d5));},_0xf6777e=_0xaa2b1b=>createHttp(mergeOptions(_0x2c82e9,_0xaa2b1b)),_0x34f75a={};return _0x34f75a[_0x877b23(0x1ae)]=_0x28a5e1,_0x34f75a['upload']=_0x35b9b1,_0x34f75a['download']=_0x1deef4,_0x34f75a[_0x877b23(0x1f6)]=_0xf6777e,_0x34f75a;}const http=createHttp(),_0x5c37a4={};_0x5c37a4[_0x32ba21(0x1f1)]=!![],_0x5c37a4['get']=function(){return createHttp;},Object[_0x32ba21(0x1b3)](exports,'createHttp',_0x5c37a4);const _0x159b27={};_0x159b27['enumerable']=!![],_0x159b27['get']=function(){return createHttpAborter;},Object[_0x32ba21(0x1b3)](exports,'createHttpAborter',_0x159b27);const _0x2a9e96={};_0x2a9e96[_0x32ba21(0x1f1)]=!![],_0x2a9e96['get']=function(){return http;},Object['defineProperty'](exports,_0x32ba21(0x1a9),_0x2a9e96);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @oiyo/framework v0.4.2
|
|
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 _0x2e45e0=_0x29a8;(function(_0x18452c,_0x363571){const _0x15de72=_0x29a8,_0x32ebca=_0x18452c();while(!![]){try{const _0x3f61b8=parseInt(_0x15de72(0xc4))/0x1*(-parseInt(_0x15de72(0xd9))/0x2)+parseInt(_0x15de72(0xbb))/0x3+parseInt(_0x15de72(0xdf))/0x4+-parseInt(_0x15de72(0xad))/0x5*(-parseInt(_0x15de72(0xe3))/0x6)+parseInt(_0x15de72(0xd3))/0x7+-parseInt(_0x15de72(0xec))/0x8*(-parseInt(_0x15de72(0xac))/0x9)+-parseInt(_0x15de72(0xee))/0xa;if(_0x3f61b8===_0x363571)break;else _0x32ebca['push'](_0x32ebca['shift']());}catch(_0x5af95e){_0x32ebca['push'](_0x32ebca['shift']());}}}(_0x4f0c,0x52a72));function createHttpAborter(){const _0x1bd184=new HttpAbortSignal();return{'signal':_0x1bd184,'abort':_0x2d1da4=>_0x1bd184['_abort'](_0x2d1da4)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{[_0x2e45e0(0xce)]=[];['addEventListener'](_0x29d9aa,_0x19d1eb){const _0x1ea2d0=_0x2e45e0;if(_0x29d9aa!=='abort')return;this[_0x1ea2d0(0xce)][_0x1ea2d0(0x9d)](_0x19d1eb);}[_0x2e45e0(0xb2)](_0x32b5d0,_0x5b3611){const _0x843400=_0x2e45e0;if(_0x32b5d0!=='abort')return;const _0x328ade=this['listeners'][_0x843400(0xb3)](_0x5b3611);if(_0x328ade!==-0x1)this['listeners'][_0x843400(0xba)](_0x328ade,0x1);}[_0x2e45e0(0xd1)](_0x4684e5){const _0x2f20c6=_0x2e45e0;for(const _0x52aee9 of this[_0x2f20c6(0xce)][_0x2f20c6(0xd2)]())_0x52aee9['call'](this,_0x4684e5);}},HttpAbortSignal=class extends AbortEmitter{[_0x2e45e0(0xe9)]=![];[_0x2e45e0(0xd4)]=void 0x0;[_0x2e45e0(0xe5)]=null;['_abort'](_0x333309){const _0x1a4784=_0x2e45e0;if(this['aborted'])return;this[_0x1a4784(0xe9)]=!![],this['reason']=_0x333309===void 0x0?createAbortError():_0x333309;const _0xe9819e={};_0xe9819e['type']='abort';const _0x2efcdc=_0xe9819e;if(typeof this['onabort']===_0x1a4784(0xe6))this[_0x1a4784(0xe5)](_0x2efcdc);this['emit'](_0x2efcdc);}[_0x2e45e0(0xb4)](){if(this['aborted'])throw this['reason'];}};function createAbortError(_0x1f5aae='The\x20operation\x20was\x20aborted'){const _0x5afc89=new Error(_0x1f5aae);return _0x5afc89['name']=ABORT_ERROR_NAME,_0x5afc89;}function isAbortError(_0xfb3ef8){const _0x5bc53e=_0x2e45e0;return _0xfb3ef8 instanceof Error&&_0xfb3ef8[_0x5bc53e(0xcf)]===ABORT_ERROR_NAME;}function onAbort(_0x1d874c,_0x599fa6){const _0x3fb5ad=_0x2e45e0;if(!_0x1d874c)return()=>{};if(_0x1d874c[_0x3fb5ad(0xe9)])return _0x599fa6(),()=>{};return _0x1d874c['addEventListener'](_0x3fb5ad(0xc7),_0x599fa6),()=>_0x1d874c['removeEventListener'](_0x3fb5ad(0xc7),_0x599fa6);}const HOOK_NAMES=[_0x2e45e0(0xdd),_0x2e45e0(0xeb),_0x2e45e0(0xa1),'onResponseError'];function mergeOptions(..._0x149ff3){const _0x462bd1=_0x2e45e0,_0x47d570={},_0x11313b={};for(const _0x553897 of _0x149ff3){if(!_0x553897)continue;for(const _0xf4ed00 of HOOK_NAMES)collectHook(_0x11313b,_0xf4ed00,_0x553897);const _0xbd9ca1=_0x47d570[_0x462bd1(0xea)],_0x55287c=_0x47d570[_0x462bd1(0xda)];Object['assign'](_0x47d570,_0x553897);const _0x239be0={..._0xbd9ca1,..._0x553897['headers']};_0x47d570['headers']=_0x239be0;const _0x457f22={..._0x55287c,..._0x553897['query']};_0x47d570[_0x462bd1(0xda)]=_0x457f22;}for(const [_0x44e63b,_0x2cc050]of Object['entries'](_0x11313b))Object[_0x462bd1(0x99)](_0x47d570,{[_0x44e63b]:async _0x345f97=>{for(const _0x165c32 of _0x2cc050)await _0x165c32(_0x345f97);}});return _0x47d570;}function collectHook(_0x5003f6,_0x359a1a,_0x9978d2){const _0x51b0de=_0x2e45e0,_0x1c9e81=_0x9978d2[_0x359a1a];if(typeof _0x1c9e81!=='function')return;_0x5003f6[_0x359a1a]??=[],_0x5003f6[_0x359a1a][_0x51b0de(0x9d)](_0x1c9e81);}function dispatch(_0x5a1734,_0x36d295,_0x2d4798,_0x385890){const _0x3fd76e=_0x2e45e0;let _0x5d64e9;if(_0x5a1734==='upload')_0x5d64e9=dispatchUpload(_0x36d295,_0x2d4798,_0x385890);else{if(_0x5a1734===_0x3fd76e(0x98))_0x5d64e9=dispatchDownload(_0x36d295,_0x2d4798,_0x385890);else _0x5d64e9=dispatchRequest(_0x36d295,_0x2d4798,_0x385890);}bindTask(_0x5d64e9,_0x2d4798);}function bindTask(_0x3725fd,_0x13f145){const _0x43e3cc=_0x2e45e0;onAbort(_0x13f145['signal'],()=>_0x3725fd[_0x43e3cc(0xc7)]());if(typeof _0x13f145[_0x43e3cc(0xcd)]===_0x43e3cc(0xe6))_0x3725fd['onHeadersReceived'](_0x13f145[_0x43e3cc(0xcd)]);const _0x452e73=_0x13f145['onProgress'];if(typeof _0x452e73==='function'&&'onProgressUpdate'in _0x3725fd)_0x3725fd[_0x43e3cc(0xbe)](_0x452e73);}function dispatchRequest(_0x378757,_0xedf9c0,_0x4e6a87){const _0x40702e=_0x2e45e0,_0x564047={'url':_0x378757,'method':_0xedf9c0[_0x40702e(0xd8)],'header':_0xedf9c0[_0x40702e(0xea)],'data':_0xedf9c0['body']??{},'timeout':_0xedf9c0[_0x40702e(0xae)],'dataType':_0xedf9c0['dataType']||_0x40702e(0xa3),'responseType':mappedResponseBodyType(_0xedf9c0[_0x40702e(0xf0)]),'sslVerify':_0xedf9c0['sslVerify'],'withCredentials':_0xedf9c0['withCredentials'],'firstIpv4':_0xedf9c0[_0x40702e(0xdc)],'enableHttp2':_0xedf9c0['enableHttp2'],'enableQuic':_0xedf9c0[_0x40702e(0xed)],'enableCache':_0xedf9c0['enableCache'],'enableHttpDNS':_0xedf9c0['enableHttpDNS'],'httpDNSServiceId':_0xedf9c0[_0x40702e(0xb8)],'enableChunked':_0xedf9c0['enableChunked'],'forceCellularNetwork':_0xedf9c0['forceCellularNetwork'],'success':_0x4e6a87['onSuccess'],'fail':_0x4e6a87['onFail'],'complete':()=>{}};return uni['request'](_0x564047);}function dispatchUpload(_0x53ceee,_0x4b12da,_0x6df9e8){const _0x1c80fb=_0x2e45e0,_0x2c9501={};_0x2c9501[_0x1c80fb(0xe1)]=_0x53ceee,_0x2c9501['fileType']=_0x4b12da[_0x1c80fb(0xaf)],_0x2c9501[_0x1c80fb(0xc2)]=_0x4b12da['file'],_0x2c9501['filePath']=_0x4b12da[_0x1c80fb(0xe7)],_0x2c9501[_0x1c80fb(0xcf)]=_0x4b12da['name']??_0x1c80fb(0xc2),_0x2c9501[_0x1c80fb(0xd7)]=_0x4b12da['files'],_0x2c9501['header']=_0x4b12da[_0x1c80fb(0xea)],_0x2c9501['formData']=_0x4b12da[_0x1c80fb(0xa5)]??{},_0x2c9501['timeout']=_0x4b12da[_0x1c80fb(0xae)],_0x2c9501[_0x1c80fb(0xa7)]=_0x6df9e8[_0x1c80fb(0xa0)],_0x2c9501[_0x1c80fb(0xc9)]=_0x6df9e8[_0x1c80fb(0xb9)],_0x2c9501[_0x1c80fb(0xe4)]=()=>{};const _0x5247b8=_0x2c9501;return uni['uploadFile'](_0x5247b8);}function dispatchDownload(_0x1d7e5e,_0x3fdbbf,_0x1dae30){const _0x11be2b=_0x2e45e0,_0x2e7140={'url':_0x1d7e5e,'header':_0x3fdbbf[_0x11be2b(0xea)],'timeout':_0x3fdbbf[_0x11be2b(0xae)],'success':_0x2c22a7=>{const _0x432dc3=_0x11be2b,_0x44d5ba={..._0x2c22a7};_0x44d5ba['data']={},_0x44d5ba['data'][_0x432dc3(0xef)]=_0x2c22a7[_0x432dc3(0xef)],_0x1dae30['onSuccess'](_0x44d5ba);},'fail':_0x1dae30['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x2e7140);}function mappedResponseBodyType(_0x279585){const _0x3b2aa5=_0x2e45e0;if(!_0x279585||_0x279585===_0x3b2aa5(0xa3))return _0x3b2aa5(0xcb);if(_0x279585===_0x3b2aa5(0xbd))return _0x3b2aa5(0xbf);return _0x3b2aa5(0xcb);}var HttpError=class extends Error{constructor(_0x54e159){const _0x3de3f0=_0x2e45e0;super(_0x54e159),this['name']=_0x3de3f0(0x9a);}};function _0x29a8(_0x158b6a,_0x1f8b31){_0x158b6a=_0x158b6a-0x97;const _0x4f0cae=_0x4f0c();let _0x29a8c6=_0x4f0cae[_0x158b6a];return _0x29a8c6;}function createResponseError(_0x26c0dd,_0x5d9e35,_0x4474a2){const _0x3e70bb=_0x2e45e0,_0x1a5349=_0x26c0dd,_0x4772ab='['+(_0x5d9e35?.['method']||_0x3e70bb(0xd0))+']\x20'+_0x1a5349,_0x2b06b2=_0x4474a2?_0x4474a2['statusCode']+'\x20'+(_0x4474a2[_0x3e70bb(0xe0)]||''):'<no\x20response>',_0xe7ddcd=_0x4474a2?JSON[_0x3e70bb(0xa4)](_0x4474a2[_0x3e70bb(0xd5)]):_0x3e70bb(0xb1),_0x48620d=new HttpError(_0x4772ab+':\x20'+_0x2b06b2+(_0x4474a2['data']?'\x20'+_0xe7ddcd:''));for(const _0x5c2051 of[_0x3e70bb(0xbc),_0x3e70bb(0x9f),'response','data'])Object[_0x3e70bb(0xa2)](_0x48620d,_0x5c2051,{'get'(){const _0x491cb2=_0x3e70bb,_0x2d5ca3={};return _0x2d5ca3['request']=_0x26c0dd,_0x2d5ca3['options']=_0x5d9e35,_0x2d5ca3['response']=_0x4474a2,_0x2d5ca3[_0x491cb2(0xd5)]=_0x4474a2['data'],_0x2d5ca3[_0x5c2051];}});return _0x48620d;}function normalizeError(_0x1a1b68){const _0xfa13fb=_0x2e45e0;if(_0x1a1b68 instanceof Error)return _0x1a1b68;return Object['assign'](new Error(_0x1a1b68?.['errMsg']||_0x1a1b68?.['message']||_0xfa13fb(0xde)),{'cause':_0x1a1b68});}async function callRequestHooks(_0x3c49c1,_0x2dc9f3){await _0x2dc9f3['onRequest']?.({'options':_0x2dc9f3,'resource':_0x3c49c1});}async function callRequestErrorHooks(_0x402c96,_0xd6bd18,_0x24f279){const _0x5d8094=_0x2e45e0;await _0xd6bd18[_0x5d8094(0xeb)]?.({'options':_0xd6bd18,'resource':_0x402c96,'error':_0x24f279});}async function callResponseHooks(_0x4e9747,_0x33427f,_0x39d623){await _0x33427f['onResponse']?.({'options':_0x33427f,'resource':_0x4e9747,'response':_0x39d623});}async function callResponseErrorHooks(_0x486321,_0x5e5a1b,_0x3864d1){const _0x864e59=_0x2e45e0;await _0x5e5a1b[_0x864e59(0xe8)]?.({'options':_0x5e5a1b,'resource':_0x486321,'response':_0x3864d1});}async function refineResponse(_0x31318c,_0x2f2271){const _0x1cbf57=_0x2e45e0;if(_0x2f2271[_0x1cbf57(0xf0)]===_0x1cbf57(0xa3)||!_0x2f2271['responseType'])return{..._0x31318c,'data':await parseJSONResponse(_0x31318c['data'],_0x2f2271)};return _0x31318c;}function parseJSONResponse(_0x10d619,_0x4236f8){const _0x47ff2e=_0x2e45e0;if(typeof _0x10d619!=='string')return _0x10d619;if(_0x4236f8[_0x47ff2e(0xab)])return _0x4236f8['parseResponse'](_0x10d619);return _0x10d619?JSON[_0x47ff2e(0xa9)](_0x10d619):null;}function isResponseError(_0x1c734e){const _0x257da0=_0x2e45e0,_0x2973db='statusCode'in _0x1c734e?_0x1c734e[_0x257da0(0xa6)]:void 0x0;return typeof _0x2973db==='number'&&(_0x2973db<0xc8||_0x2973db>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x2e45e0(0xc6),_0x2e45e0(0xaa),'PATCH']);async function withRetry(_0x29a921,_0x325564){const _0xe5db38=_0x2e45e0,_0x645070=resolveRetryCount(_0x29a921);for(let _0x5c1de0=0x0;;_0x5c1de0++)try{return await _0x325564();}catch(_0x170df8){if(_0x5c1de0>=_0x645070||!shouldRetry(_0x170df8,_0x29a921))throw _0x170df8;await sleep(_0x29a921['retryDelay']??0x0,_0x29a921[_0xe5db38(0x9e)]);}}function resolveRetryCount(_0x13786d){const {retry:_0x1a500d}=_0x13786d;if(_0x1a500d===![])return 0x0;if(typeof _0x1a500d==='number')return _0x1a500d>0x0?_0x1a500d:0x0;return isPayloadMethod(_0x13786d['method'])?0x0:0x1;}function shouldRetry(_0x169b09,_0x46425b){const _0x52ad9f=_0x2e45e0;if(_0x46425b[_0x52ad9f(0x9e)]?.[_0x52ad9f(0xe9)]||isAbortError(_0x169b09))return![];const _0x39b6d0=_0x169b09?.[_0x52ad9f(0xd6)]?.[_0x52ad9f(0xa6)];if(typeof _0x39b6d0!==_0x52ad9f(0x9b))return!![];return(_0x46425b[_0x52ad9f(0xe2)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x39b6d0);}function isPayloadMethod(_0x174472){const _0x1f14dc=_0x2e45e0;return!!_0x174472&&PAYLOAD_METHODS[_0x1f14dc(0x97)](_0x174472['toUpperCase']());}function sleep(_0x2abaf2,_0x231113){return new Promise((_0x28fb33,_0x49eccf)=>{if(_0x231113?.['aborted']){_0x49eccf(_0x231113['reason']);return;}if(!(_0x2abaf2>0x0)){_0x28fb33();return;}let _0x5f2766=()=>{};const _0x1f2b94=setTimeout(()=>{_0x5f2766(),_0x28fb33();},_0x2abaf2);_0x5f2766=onAbort(_0x231113,()=>{const _0x115715=_0x29a8;clearTimeout(_0x1f2b94),_0x49eccf(_0x231113[_0x115715(0xd4)]);});});}function buildURL(_0x513d14,_0x44b7de){const _0x881be1=_0x2e45e0,_0x28c998=joinURL(_0x44b7de[_0x881be1(0xb0)],_0x513d14),_0x15108b=_0x44b7de['query']??{},_0x2834b6=Object[_0x881be1(0xb5)](_0x15108b)[_0x881be1(0x9c)](_0x135f2f=>_0x15108b[_0x135f2f]!==void 0x0)[_0x881be1(0xc8)](_0x143a44=>{const _0x310ba=_0x881be1,_0x3c3a51=_0x15108b[_0x143a44];return(Array[_0x310ba(0xca)](_0x3c3a51)?_0x3c3a51:[_0x3c3a51])['map'](_0x2c1ac7=>encodeURIComponent(_0x143a44)+'='+encodeURIComponent(String(_0x2c1ac7)));})['join']('&');if(!_0x2834b6)return _0x28c998;return''+_0x28c998+(_0x28c998['includes']('?')?'&':'?')+_0x2834b6;}function joinURL(_0x5e1d66,_0x2176dd){const _0x450384=_0x2e45e0;if(!_0x5e1d66||isAbsoluteURL(_0x2176dd))return _0x2176dd;return _0x5e1d66['replace'](/\/+$/,'')+'/'+_0x2176dd[_0x450384(0xdb)](/^\/+/,'');}function isAbsoluteURL(_0x571b53){const _0x389e40=_0x2e45e0;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x389e40(0xb7)](_0x571b53)||_0x571b53['startsWith']('//');}function dispatchHttp(_0x24e567,_0x35600f,_0x3e1ec8){const _0x7b6092=buildURL(_0x35600f,_0x3e1ec8);return withRetry(_0x3e1ec8,()=>attemptRequest(_0x24e567,_0x35600f,_0x7b6092,_0x3e1ec8));}function attemptRequest(_0x20d137,_0x28ec94,_0x545fbf,_0x4e7ed4){const _0x28dd38=_0x2e45e0,_0xfd5554=!!_0x4e7ed4[_0x28dd38(0xc3)];return new Promise((_0x5780c3,_0x36c594)=>{const _0x476f55=_0x28dd38;let _0x4fb48d=![];const _0x38bab6=_0xe3bbff=>{if(_0x4fb48d)return;_0x4fb48d=!![],_0xe3bbff();},_0x141599=onAbort(_0x4e7ed4[_0x476f55(0x9e)],()=>{const _0x192675=_0x476f55;_0x38bab6(()=>_0x36c594(_0x4e7ed4[_0x192675(0x9e)][_0x192675(0xd4)]));}),_0x655583=_0x24f9c7=>{_0x141599(),_0x38bab6(_0x24f9c7);};callRequestHooks(_0x28ec94,_0x4e7ed4)['then'](()=>{if(_0x4fb48d)return;dispatch(_0x20d137,_0x545fbf,_0x4e7ed4,{'onSuccess':_0x1b5e2b=>{const _0x500662=_0x29a8;Promise[_0x500662(0xb6)]()['then'](()=>refineResponse(_0x1b5e2b,_0x4e7ed4))['then'](async _0x48af7d=>{const _0x545cc1=_0x500662;if(isResponseError(_0x1b5e2b)){await callResponseErrorHooks(_0x28ec94,_0x4e7ed4,_0x48af7d);if(!_0x4e7ed4[_0x545cc1(0xc5)])throw createResponseError(_0x28ec94,_0x4e7ed4,_0x48af7d);}else await callResponseHooks(_0x28ec94,_0x4e7ed4,_0x48af7d);_0x655583(()=>_0x5780c3(_0xfd5554?_0x48af7d:_0x48af7d['data']));})['catch'](_0x68a295=>_0x655583(()=>_0x36c594(_0x68a295)));},'onFail':_0x33a9a3=>{const _0xeca590=_0x29a8;Promise[_0xeca590(0xb6)]()[_0xeca590(0xc1)](async()=>{const _0x4ebbcf=normalizeError(_0x33a9a3);if(!isAbortError(_0x4ebbcf))await callRequestErrorHooks(_0x28ec94,_0x4e7ed4,_0x4ebbcf);throw _0x4ebbcf;})[_0xeca590(0xa8)](_0x177227=>_0x655583(()=>_0x36c594(_0x177227)));}});})['catch'](async _0x167b01=>{const _0x5e07fe=normalizeError(_0x167b01);await callRequestErrorHooks(_0x28ec94,_0x4e7ed4,_0x5e07fe),_0x655583(()=>_0x36c594(_0x5e07fe));});});}const _0x5bb108={};_0x5bb108['method']=_0x2e45e0(0xd0),_0x5bb108['responseType']='json';const defaultConfig=_0x5bb108;function createHttp(_0x523252={}){const _0x589989=_0x2e45e0,_0x5965fa=(_0x3add0e,_0x263fc0)=>{return dispatchHttp('request',_0x3add0e,mergeOptions(defaultConfig,_0x523252,_0x263fc0));},_0x5215e7=(_0x1026ce,_0x589a4b)=>{const _0x469974=_0x29a8,_0x4d576c={};return _0x4d576c['method']='POST',dispatchHttp(_0x469974(0xc0),_0x1026ce,mergeOptions(defaultConfig,_0x523252,_0x589a4b,_0x4d576c));},_0x211212=(_0x46767e,_0x431ff6)=>{const _0x1d91b8=_0x29a8,_0x20754d={};return _0x20754d['method']=_0x1d91b8(0xd0),dispatchHttp('download',_0x46767e,mergeOptions(defaultConfig,_0x523252,_0x431ff6,_0x20754d));},_0x39d72a=_0x36198b=>createHttp(mergeOptions(_0x523252,_0x36198b)),_0x312095={};return _0x312095['request']=_0x5965fa,_0x312095[_0x589989(0xc0)]=_0x5215e7,_0x312095[_0x589989(0x98)]=_0x211212,_0x312095[_0x589989(0xcc)]=_0x39d72a,_0x312095;}function _0x4f0c(){const _0x348fcf=['isArray','text','create','onHeadersReceived','listeners','name','GET','emit','slice','4132387NvUcOb','reason','data','response','files','method','28746xdlJMy','query','replace','firstIpv4','onRequest','HTTP\x20request\x20failed','1886820ebRowp','errMsg','url','retryStatusCodes','2936646GlKtcx','complete','onabort','function','filePath','onResponseError','aborted','headers','onRequestError','48fqrcNG','enableQuic','16230160RYWull','tempFilePath','responseType','has','download','assign','HttpError','number','filter','push','signal','options','onSuccess','onResponse','defineProperty','json','stringify','body','statusCode','success','catch','parse','DELETE','parseResponse','635571qJauxx','5ulWdcC','timeout','fileType','baseURL','<no\x20response\x20body>','removeEventListener','indexOf','throwIfAborted','keys','resolve','test','httpDNSServiceId','onFail','splice','692106byYIlK','request','arrayBuffer','onProgressUpdate','arraybuffer','upload','then','file','raw','17BImBmY','ignoreResponseError','PUT','abort','flatMap','fail'];_0x4f0c=function(){return _0x348fcf;};return _0x4f0c();}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.2
|
|
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-BS1ESthW.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.2
|
|
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-CmD0iXcE.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.2
|
|
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-CmD0iXcE.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.2
|
|
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-CQlUPoLW.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.2
|
|
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-CrmOzWpZ.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.2
|
|
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-D0eOKGL5.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.2
|
|
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-CrmOzWpZ.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.2
|
|
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-D0eOKGL5.mjs";
|
|
8
8
|
export * from "vue";
|
|
9
9
|
export {};
|
package/package.json
CHANGED
package/dist/oiyo-Bwn9BFbV.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.1
|
|
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 _0x1e4098=_0x4d6f;(function(_0x16a83d,_0x4806f6){const _0x55b09c=_0x4d6f,_0xf02403=_0x16a83d();while(!![]){try{const _0x4989e5=parseInt(_0x55b09c(0x195))/0x1+-parseInt(_0x55b09c(0x19c))/0x2+parseInt(_0x55b09c(0x1ae))/0x3*(parseInt(_0x55b09c(0x16d))/0x4)+-parseInt(_0x55b09c(0x190))/0x5*(parseInt(_0x55b09c(0x1b1))/0x6)+parseInt(_0x55b09c(0x1a2))/0x7*(-parseInt(_0x55b09c(0x1a4))/0x8)+parseInt(_0x55b09c(0x1b7))/0x9+parseInt(_0x55b09c(0x1b9))/0xa;if(_0x4989e5===_0x4806f6)break;else _0xf02403['push'](_0xf02403['shift']());}catch(_0x91bf85){_0xf02403['push'](_0xf02403['shift']());}}}(_0x4c44,0x6e2cc));function createHttpAborter(){const _0x5a0444=_0x4d6f,_0x16a418=new HttpAbortSignal();return{'signal':_0x16a418,'abort':_0x2bf281=>_0x16a418[_0x5a0444(0x1ab)](_0x2bf281)};}const ABORT_ERROR_NAME='AbortError';var AbortEmitter=class{['listeners']=[];[_0x1e4098(0x18e)](_0x26d974,_0x5d91e9){const _0x5b3814=_0x1e4098;if(_0x26d974!==_0x5b3814(0x16c))return;this[_0x5b3814(0x1b3)]['push'](_0x5d91e9);}['removeEventListener'](_0x2c53f3,_0x2b2cc5){const _0x5378c4=_0x1e4098;if(_0x2c53f3!==_0x5378c4(0x16c))return;const _0x2b9548=this[_0x5378c4(0x1b3)]['indexOf'](_0x2b2cc5);if(_0x2b9548!==-0x1)this['listeners']['splice'](_0x2b9548,0x1);}['emit'](_0x5f2777){const _0x4834ea=_0x1e4098;for(const _0x381cab of this['listeners']['slice']())_0x381cab[_0x4834ea(0x178)](this,_0x5f2777);}},HttpAbortSignal=class extends AbortEmitter{[_0x1e4098(0x179)]=![];['reason']=void 0x0;['onabort']=null;[_0x1e4098(0x1ab)](_0x303b27){const _0x2a36cb=_0x1e4098;if(this['aborted'])return;this[_0x2a36cb(0x179)]=!![],this[_0x2a36cb(0x1a6)]=_0x303b27===void 0x0?createAbortError():_0x303b27;const _0x40f541={};_0x40f541['type']=_0x2a36cb(0x16c);const _0x2a96c0=_0x40f541;if(typeof this[_0x2a36cb(0x19a)]==='function')this['onabort'](_0x2a96c0);this['emit'](_0x2a96c0);}['throwIfAborted'](){const _0x4870a3=_0x1e4098;if(this[_0x4870a3(0x179)])throw this['reason'];}};function createAbortError(_0x3f4de4=_0x1e4098(0x177)){const _0x535bde=new Error(_0x3f4de4);return _0x535bde['name']=ABORT_ERROR_NAME,_0x535bde;}function isAbortError(_0x3b38d4){return _0x3b38d4 instanceof Error&&_0x3b38d4['name']===ABORT_ERROR_NAME;}function onAbort(_0xe2bfb,_0x2275ec){const _0x91fde3=_0x1e4098;if(!_0xe2bfb)return()=>{};if(_0xe2bfb[_0x91fde3(0x179)])return _0x2275ec(),()=>{};return _0xe2bfb[_0x91fde3(0x18e)]('abort',_0x2275ec),()=>_0xe2bfb['removeEventListener'](_0x91fde3(0x16c),_0x2275ec);}const HOOK_NAMES=['onRequest','onRequestError','onResponse',_0x1e4098(0x16e)];function mergeOptions(..._0x25e31f){const _0x333e6e=_0x1e4098,_0x2ee2b3={},_0x48e976={};for(const _0x561202 of _0x25e31f){if(!_0x561202)continue;for(const _0x3eb8e1 of HOOK_NAMES)collectHook(_0x48e976,_0x3eb8e1,_0x561202);const _0x52a092=_0x2ee2b3['headers'],_0x5b47ea=_0x2ee2b3[_0x333e6e(0x176)];Object[_0x333e6e(0x17d)](_0x2ee2b3,_0x561202);const _0x450605={..._0x52a092,..._0x561202['headers']};_0x2ee2b3[_0x333e6e(0x17e)]=_0x450605;const _0x4afeae={..._0x5b47ea,..._0x561202[_0x333e6e(0x176)]};_0x2ee2b3[_0x333e6e(0x176)]=_0x4afeae;}for(const [_0x8784da,_0x33d856]of Object['entries'](_0x48e976))Object[_0x333e6e(0x17d)](_0x2ee2b3,{[_0x8784da]:async _0x51fa88=>{for(const _0x4d6ee2 of _0x33d856)await _0x4d6ee2(_0x51fa88);}});return _0x2ee2b3;}function collectHook(_0x560e2b,_0x858f23,_0x562171){const _0x4466bc=_0x1e4098,_0x44ed20=_0x562171[_0x858f23];if(typeof _0x44ed20!==_0x4466bc(0x198))return;_0x560e2b[_0x858f23]??=[],_0x560e2b[_0x858f23]['push'](_0x44ed20);}function dispatch(_0x1c0f16,_0x118c7c,_0x4d1b9d,_0x4600b7){const _0x528250=_0x1e4098;let _0x49b49e;if(_0x1c0f16===_0x528250(0x1a8))_0x49b49e=dispatchUpload(_0x118c7c,_0x4d1b9d,_0x4600b7);else{if(_0x1c0f16===_0x528250(0x1a0))_0x49b49e=dispatchDownload(_0x118c7c,_0x4d1b9d,_0x4600b7);else _0x49b49e=dispatchRequest(_0x118c7c,_0x4d1b9d,_0x4600b7);}bindTask(_0x49b49e,_0x4d1b9d);}function bindTask(_0x3b337c,_0x3a88d7){const _0x34fd2f=_0x1e4098;onAbort(_0x3a88d7['signal'],()=>_0x3b337c['abort']());if(typeof _0x3a88d7[_0x34fd2f(0x19e)]===_0x34fd2f(0x198))_0x3b337c[_0x34fd2f(0x19e)](_0x3a88d7[_0x34fd2f(0x19e)]);const _0x15c635=_0x3a88d7['onProgress'];if(typeof _0x15c635===_0x34fd2f(0x198)&&_0x34fd2f(0x18b)in _0x3b337c)_0x3b337c['onProgressUpdate'](_0x15c635);}function _0x4c44(){const _0x68889a=['body','query','The\x20operation\x20was\x20aborted','call','aborted','PATCH','POST','PUT','assign','headers','responseType','stringify','<no\x20response\x20body>','enableHttp2','request','name','catch','errMsg','GET','join','fileType','uploadFile','onProgressUpdate','HTTP\x20request\x20failed','then','addEventListener','DELETE','40EekHRp','signal','downloadFile','isArray','timeout','169391HLwTFD','includes','tempFilePath','function','toUpperCase','onabort','dataType','986644DXswkq','onFail','onHeadersReceived','resolve','download','flatMap','434ZlQCJf','raw','62464MosNmJ','enableChunked','reason','onRequest','upload','map','success','_abort','parseResponse','HttpError','2515053chsHZh','withCredentials','number','206754SzrXWM','defineProperty','listeners','<no\x20response>','statusCode','method','6193701HwaxxI','data','84350SMMUyP','retryDelay','abort','4dXkIaR','onResponseError','onSuccess','replace','text','firstIpv4','filePath','httpDNSServiceId'];_0x4c44=function(){return _0x68889a;};return _0x4c44();}function _0x4d6f(_0x234ff8,_0x5aa7a3){_0x234ff8=_0x234ff8-0x16b;const _0x4c448f=_0x4c44();let _0x4d6fa5=_0x4c448f[_0x234ff8];return _0x4d6fa5;}function dispatchRequest(_0x579671,_0x109345,_0x3d3c8a){const _0x94d28=_0x1e4098,_0x4d108f={'url':_0x579671,'method':_0x109345['method'],'header':_0x109345[_0x94d28(0x17e)],'data':_0x109345[_0x94d28(0x175)]??{},'timeout':_0x109345[_0x94d28(0x194)],'dataType':_0x109345[_0x94d28(0x19b)]||'json','responseType':mappedResponseBodyType(_0x109345['responseType']),'sslVerify':_0x109345['sslVerify'],'withCredentials':_0x109345[_0x94d28(0x1af)],'firstIpv4':_0x109345[_0x94d28(0x172)],'enableHttp2':_0x109345[_0x94d28(0x182)],'enableQuic':_0x109345['enableQuic'],'enableCache':_0x109345['enableCache'],'enableHttpDNS':_0x109345['enableHttpDNS'],'httpDNSServiceId':_0x109345[_0x94d28(0x174)],'enableChunked':_0x109345[_0x94d28(0x1a5)],'forceCellularNetwork':_0x109345['forceCellularNetwork'],'success':_0x3d3c8a['onSuccess'],'fail':_0x3d3c8a['onFail'],'complete':()=>{}};return uni['request'](_0x4d108f);}function dispatchUpload(_0x5cc126,_0x234e29,_0x28c90c){const _0x4069da=_0x1e4098,_0x5335de={};_0x5335de['url']=_0x5cc126,_0x5335de[_0x4069da(0x189)]=_0x234e29[_0x4069da(0x189)],_0x5335de['file']=_0x234e29['file'],_0x5335de[_0x4069da(0x173)]=_0x234e29['filePath'],_0x5335de[_0x4069da(0x184)]=_0x234e29[_0x4069da(0x184)]??'file',_0x5335de['files']=_0x234e29['files'],_0x5335de['header']=_0x234e29[_0x4069da(0x17e)],_0x5335de['formData']=_0x234e29[_0x4069da(0x175)]??{},_0x5335de['timeout']=_0x234e29['timeout'],_0x5335de[_0x4069da(0x1aa)]=_0x28c90c['onSuccess'],_0x5335de['fail']=_0x28c90c['onFail'],_0x5335de['complete']=()=>{};const _0x2492aa=_0x5335de;return uni[_0x4069da(0x18a)](_0x2492aa);}function dispatchDownload(_0x1a05bc,_0x649516,_0x521d25){const _0x41445d=_0x1e4098,_0x2cc766={'url':_0x1a05bc,'header':_0x649516['headers'],'timeout':_0x649516['timeout'],'success':_0x69df5=>{const _0x1878d0=_0x4d6f,_0x286381={..._0x69df5};_0x286381[_0x1878d0(0x1b8)]={},_0x286381[_0x1878d0(0x1b8)]['tempFilePath']=_0x69df5[_0x1878d0(0x197)],_0x521d25[_0x1878d0(0x16f)](_0x286381);},'fail':_0x521d25[_0x41445d(0x19d)],'complete':()=>{}};return uni[_0x41445d(0x192)](_0x2cc766);}function mappedResponseBodyType(_0x24321a){const _0x6ba192=_0x1e4098;if(!_0x24321a||_0x24321a==='json')return _0x6ba192(0x171);if(_0x24321a==='arrayBuffer')return'arraybuffer';return _0x6ba192(0x171);}var HttpError=class extends Error{constructor(_0x482dfe){const _0x8b3ed=_0x1e4098;super(_0x482dfe),this[_0x8b3ed(0x184)]=_0x8b3ed(0x1ad);}};function createResponseError(_0x3948bf,_0xc66b62,_0x2ce1c0){const _0x2dd282=_0x1e4098,_0x3c5d04=_0x3948bf,_0x5cee56='['+(_0xc66b62?.['method']||'GET')+']\x20'+_0x3c5d04,_0x1574a1=_0x2ce1c0?_0x2ce1c0[_0x2dd282(0x1b5)]+'\x20'+(_0x2ce1c0[_0x2dd282(0x186)]||''):_0x2dd282(0x1b4),_0x1caa74=_0x2ce1c0?JSON[_0x2dd282(0x180)](_0x2ce1c0[_0x2dd282(0x1b8)]):_0x2dd282(0x181),_0x262b7e=new HttpError(_0x5cee56+':\x20'+_0x1574a1+(_0x2ce1c0['data']?'\x20'+_0x1caa74:''));for(const _0x11f142 of[_0x2dd282(0x183),'options','response',_0x2dd282(0x1b8)])Object[_0x2dd282(0x1b2)](_0x262b7e,_0x11f142,{'get'(){const _0x57ef6e=_0x2dd282,_0x40284d={};return _0x40284d[_0x57ef6e(0x183)]=_0x3948bf,_0x40284d['options']=_0xc66b62,_0x40284d['response']=_0x2ce1c0,_0x40284d['data']=_0x2ce1c0['data'],_0x40284d[_0x11f142];}});return _0x262b7e;}function normalizeError(_0x53ef91){const _0x171961=_0x1e4098;if(_0x53ef91 instanceof Error)return _0x53ef91;return Object['assign'](new Error(_0x53ef91?.['errMsg']||_0x53ef91?.['message']||_0x171961(0x18c)),{'cause':_0x53ef91});}async function callRequestHooks(_0x4da05e,_0x579bcf){const _0x53225d=_0x1e4098;await _0x579bcf[_0x53225d(0x1a7)]?.({'options':_0x579bcf,'resource':_0x4da05e});}async function callRequestErrorHooks(_0x3db1aa,_0x3d147c,_0x51d4c2){await _0x3d147c['onRequestError']?.({'options':_0x3d147c,'resource':_0x3db1aa,'error':_0x51d4c2});}async function callResponseHooks(_0x1203eb,_0x10409c,_0x5a9857){await _0x10409c['onResponse']?.({'options':_0x10409c,'resource':_0x1203eb,'response':_0x5a9857});}async function callResponseErrorHooks(_0x3659d5,_0x21df97,_0x1d2f8d){await _0x21df97['onResponseError']?.({'options':_0x21df97,'resource':_0x3659d5,'response':_0x1d2f8d});}async function refineResponse(_0x371592,_0x268e68){const _0x31b00c=_0x1e4098;if(_0x268e68[_0x31b00c(0x17f)]==='json'||!_0x268e68['responseType'])return{..._0x371592,'data':await parseJSONResponse(_0x371592['data'],_0x268e68)};return _0x371592;}function parseJSONResponse(_0x5f020d,_0xdad4a7){const _0x4a96c5=_0x1e4098;if(typeof _0x5f020d!=='string')return _0x5f020d;if(_0xdad4a7['parseResponse'])return _0xdad4a7[_0x4a96c5(0x1ac)](_0x5f020d);return _0x5f020d?JSON['parse'](_0x5f020d):null;}function isResponseError(_0x24601b){const _0x2b5c75=_0x1e4098,_0xe279d=_0x2b5c75(0x1b5)in _0x24601b?_0x24601b['statusCode']:void 0x0;return typeof _0xe279d===_0x2b5c75(0x1b0)&&(_0xe279d<0xc8||_0xe279d>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set([_0x1e4098(0x17b),_0x1e4098(0x17c),_0x1e4098(0x18f),_0x1e4098(0x17a)]);async function withRetry(_0x418040,_0x393e50){const _0x5a940a=_0x1e4098,_0x43f506=resolveRetryCount(_0x418040);for(let _0x6f8c6a=0x0;;_0x6f8c6a++)try{return await _0x393e50();}catch(_0x5274bc){if(_0x6f8c6a>=_0x43f506||!shouldRetry(_0x5274bc,_0x418040))throw _0x5274bc;await sleep(_0x418040[_0x5a940a(0x16b)]??0x0,_0x418040[_0x5a940a(0x191)]);}}function resolveRetryCount(_0x46a669){const {retry:_0x4217c7}=_0x46a669;if(_0x4217c7===![])return 0x0;if(typeof _0x4217c7==='number')return _0x4217c7>0x0?_0x4217c7:0x0;return isPayloadMethod(_0x46a669['method'])?0x0:0x1;}function shouldRetry(_0x49b37a,_0x1ba45e){const _0x98209c=_0x1e4098;if(_0x1ba45e[_0x98209c(0x191)]?.['aborted']||isAbortError(_0x49b37a))return![];const _0x12f161=_0x49b37a?.['response']?.[_0x98209c(0x1b5)];if(typeof _0x12f161!=='number')return!![];return(_0x1ba45e['retryStatusCodes']??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x12f161);}function isPayloadMethod(_0x2ee17b){const _0xc5f23b=_0x1e4098;return!!_0x2ee17b&&PAYLOAD_METHODS['has'](_0x2ee17b[_0xc5f23b(0x199)]());}function sleep(_0x3302e3,_0x5e387f){return new Promise((_0x1a9827,_0x2104d9)=>{if(_0x5e387f?.['aborted']){_0x2104d9(_0x5e387f['reason']);return;}if(!(_0x3302e3>0x0)){_0x1a9827();return;}let _0x209fe0=()=>{};const _0x461280=setTimeout(()=>{_0x209fe0(),_0x1a9827();},_0x3302e3);_0x209fe0=onAbort(_0x5e387f,()=>{clearTimeout(_0x461280),_0x2104d9(_0x5e387f['reason']);});});}function buildURL(_0x1e4ab2,_0x3a19df){const _0x6e2d11=_0x1e4098,_0x3789cd=joinURL(_0x3a19df['baseURL'],_0x1e4ab2),_0x16f811=_0x3a19df['query']??{},_0x552ff9=Object['keys'](_0x16f811)['filter'](_0x155489=>_0x16f811[_0x155489]!==void 0x0)[_0x6e2d11(0x1a1)](_0x1454af=>{const _0x2fc292=_0x6e2d11,_0x439d02=_0x16f811[_0x1454af];return(Array[_0x2fc292(0x193)](_0x439d02)?_0x439d02:[_0x439d02])[_0x2fc292(0x1a9)](_0x3ef5cd=>encodeURIComponent(_0x1454af)+'='+encodeURIComponent(String(_0x3ef5cd)));})[_0x6e2d11(0x188)]('&');if(!_0x552ff9)return _0x3789cd;return''+_0x3789cd+(_0x3789cd[_0x6e2d11(0x196)]('?')?'&':'?')+_0x552ff9;}function joinURL(_0x157d55,_0x3483ab){const _0x521dd9=_0x1e4098;if(!_0x157d55||isAbsoluteURL(_0x3483ab))return _0x3483ab;return _0x157d55[_0x521dd9(0x170)](/\/+$/,'')+'/'+_0x3483ab['replace'](/^\/+/,'');}function isAbsoluteURL(_0x4f75d3){return/^[a-z][a-z\d+\-.]*:\/\//i['test'](_0x4f75d3)||_0x4f75d3['startsWith']('//');}function dispatchHttp(_0x4e04b5,_0x76a134,_0x2e98ae){const _0x3df166=buildURL(_0x76a134,_0x2e98ae);return withRetry(_0x2e98ae,()=>attemptRequest(_0x4e04b5,_0x76a134,_0x3df166,_0x2e98ae));}function attemptRequest(_0x1e26d2,_0x447641,_0x2f1813,_0x3d85f4){const _0x34ab79=_0x1e4098,_0x46339f=!!_0x3d85f4[_0x34ab79(0x1a3)];return new Promise((_0x49a78f,_0x32503a)=>{const _0x39aafc=_0x34ab79;let _0x21af44=![];const _0x15021b=_0x187cd8=>{if(_0x21af44)return;_0x21af44=!![],_0x187cd8();},_0x19bd38=onAbort(_0x3d85f4['signal'],()=>{const _0xed2ec0=_0x4d6f;_0x15021b(()=>_0x32503a(_0x3d85f4[_0xed2ec0(0x191)][_0xed2ec0(0x1a6)]));}),_0x29d175=_0x4baeed=>{_0x19bd38(),_0x15021b(_0x4baeed);};callRequestHooks(_0x447641,_0x3d85f4)[_0x39aafc(0x18d)](()=>{if(_0x21af44)return;dispatch(_0x1e26d2,_0x2f1813,_0x3d85f4,{'onSuccess':_0x53f55e=>{Promise['resolve']()['then'](()=>refineResponse(_0x53f55e,_0x3d85f4))['then'](async _0x50e669=>{const _0x493ffd=_0x4d6f;if(isResponseError(_0x53f55e)){await callResponseErrorHooks(_0x447641,_0x3d85f4,_0x50e669);if(!_0x3d85f4['ignoreResponseError'])throw createResponseError(_0x447641,_0x3d85f4,_0x50e669);}else await callResponseHooks(_0x447641,_0x3d85f4,_0x50e669);_0x29d175(()=>_0x49a78f(_0x46339f?_0x50e669:_0x50e669[_0x493ffd(0x1b8)]));})['catch'](_0x3606e0=>_0x29d175(()=>_0x32503a(_0x3606e0)));},'onFail':_0x48bd0f=>{const _0x3f8cd3=_0x4d6f;Promise[_0x3f8cd3(0x19f)]()['then'](async()=>{const _0x11130a=normalizeError(_0x48bd0f);if(!isAbortError(_0x11130a))await callRequestErrorHooks(_0x447641,_0x3d85f4,_0x11130a);throw _0x11130a;})[_0x3f8cd3(0x185)](_0x5a85ec=>_0x29d175(()=>_0x32503a(_0x5a85ec)));}});})['catch'](async _0x3cb689=>{const _0xb411df=normalizeError(_0x3cb689);await callRequestErrorHooks(_0x447641,_0x3d85f4,_0xb411df),_0x29d175(()=>_0x32503a(_0xb411df));});});}const _0xb915fc={};_0xb915fc['method']=_0x1e4098(0x187),_0xb915fc['responseType']='json';const defaultConfig=_0xb915fc;function createHttp(_0x1cf91c={}){const _0x4efff1=_0x1e4098,_0x5ece0b=(_0x2fd18a,_0x2efd86)=>{return dispatchHttp('request',_0x2fd18a,mergeOptions(defaultConfig,_0x1cf91c,_0x2efd86));},_0x550a9d=(_0x3f332d,_0x22400e)=>{const _0x296eba=_0x4d6f,_0x4ec1d3={};return _0x4ec1d3['method']=_0x296eba(0x17b),dispatchHttp('upload',_0x3f332d,mergeOptions(defaultConfig,_0x1cf91c,_0x22400e,_0x4ec1d3));},_0x17c994=(_0xfeca49,_0x2a67a3)=>{const _0x3311ba=_0x4d6f,_0x267ac3={};return _0x267ac3[_0x3311ba(0x1b6)]='GET',dispatchHttp(_0x3311ba(0x1a0),_0xfeca49,mergeOptions(defaultConfig,_0x1cf91c,_0x2a67a3,_0x267ac3));},_0x53b119=_0x4857db=>createHttp(mergeOptions(_0x1cf91c,_0x4857db)),_0x4898d0={};return _0x4898d0[_0x4efff1(0x183)]=_0x5ece0b,_0x4898d0['upload']=_0x550a9d,_0x4898d0['download']=_0x17c994,_0x4898d0['create']=_0x53b119,_0x4898d0;}const http=createHttp();export{http as n,createHttpAborter as r,createHttp as t};
|
package/dist/oiyo-Cf-hBSyT.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @oiyo/framework v0.4.1
|
|
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 _0x3a8273=_0x4b38;(function(_0x4d8112,_0x45add5){const _0x59ce42=_0x4b38,_0x369916=_0x4d8112();while(!![]){try{const _0x5de173=-parseInt(_0x59ce42(0x12a))/0x1+parseInt(_0x59ce42(0xe3))/0x2+-parseInt(_0x59ce42(0xfb))/0x3+-parseInt(_0x59ce42(0x111))/0x4*(parseInt(_0x59ce42(0xf0))/0x5)+-parseInt(_0x59ce42(0x109))/0x6+-parseInt(_0x59ce42(0xe6))/0x7*(-parseInt(_0x59ce42(0x10d))/0x8)+-parseInt(_0x59ce42(0x102))/0x9*(-parseInt(_0x59ce42(0x103))/0xa);if(_0x5de173===_0x45add5)break;else _0x369916['push'](_0x369916['shift']());}catch(_0x1de336){_0x369916['push'](_0x369916['shift']());}}}(_0x550c,0x550cc));function createHttpAborter(){const _0x3ae7f3=new HttpAbortSignal();return{'signal':_0x3ae7f3,'abort':_0x3e29cd=>_0x3ae7f3['_abort'](_0x3e29cd)};}const ABORT_ERROR_NAME=_0x3a8273(0xfc);var AbortEmitter=class{['listeners']=[];['addEventListener'](_0x2a1135,_0x1068b0){if(_0x2a1135!=='abort')return;this['listeners']['push'](_0x1068b0);}['removeEventListener'](_0x562a49,_0xaa1beb){const _0x155c31=_0x3a8273;if(_0x562a49!=='abort')return;const _0x1ad97f=this[_0x155c31(0x12f)][_0x155c31(0x110)](_0xaa1beb);if(_0x1ad97f!==-0x1)this[_0x155c31(0x12f)]['splice'](_0x1ad97f,0x1);}['emit'](_0x8026d7){const _0x44c8e5=_0x3a8273;for(const _0x44084e of this['listeners'][_0x44c8e5(0xf3)]())_0x44084e[_0x44c8e5(0xf6)](this,_0x8026d7);}},HttpAbortSignal=class extends AbortEmitter{['aborted']=![];[_0x3a8273(0x120)]=void 0x0;['onabort']=null;[_0x3a8273(0x10e)](_0xe68db5){const _0x102760=_0x3a8273;if(this['aborted'])return;this['aborted']=!![],this['reason']=_0xe68db5===void 0x0?createAbortError():_0xe68db5;const _0x427bf5={};_0x427bf5[_0x102760(0x128)]='abort';const _0x2330e6=_0x427bf5;if(typeof this[_0x102760(0x10a)]==='function')this['onabort'](_0x2330e6);this[_0x102760(0x100)](_0x2330e6);}['throwIfAborted'](){const _0x2cd28c=_0x3a8273;if(this['aborted'])throw this[_0x2cd28c(0x120)];}};function _0x550c(){const _0x1429e6=['data','PUT','method','onProgress','onResponse','type','catch','581764zYWVzM','number','enumerable','filter','onSuccess','listeners','name','HTTP\x20request\x20failed','963314XdZbpr','onResponseError','upload','70847WKHwJD','abort','headers','json','tempFilePath','onRequestError','POST','url','entries','test','1005050EEoOEm','enableCache','files','slice','enableHttpDNS','ignoreResponseError','call','onHeadersReceived','<no\x20response\x20body>','flatMap','toUpperCase','998715zptsEE','AbortError','function','retryStatusCodes','baseURL','emit','addEventListener','9Leeeha','11522530zaaswY','uploadFile','text','aborted','then','request','2962434jGWIoC','onabort','isArray','download','256oiBlcD','_abort','query','indexOf','4DklVtx','complete','raw','fail','file','responseType','onFail','get','defineProperty','GET','join','startsWith','response','signal','timeout','reason','The\x20operation\x20was\x20aborted','statusCode'];_0x550c=function(){return _0x1429e6;};return _0x550c();}function createAbortError(_0x311ab1=_0x3a8273(0x121)){const _0x2d5b2c=_0x3a8273,_0x541141=new Error(_0x311ab1);return _0x541141[_0x2d5b2c(0x130)]=ABORT_ERROR_NAME,_0x541141;}function isAbortError(_0x4816da){return _0x4816da instanceof Error&&_0x4816da['name']===ABORT_ERROR_NAME;}function onAbort(_0x370673,_0x5c2d18){const _0x47be63=_0x3a8273;if(!_0x370673)return()=>{};if(_0x370673['aborted'])return _0x5c2d18(),()=>{};return _0x370673[_0x47be63(0x101)]('abort',_0x5c2d18),()=>_0x370673['removeEventListener'](_0x47be63(0xe7),_0x5c2d18);}const HOOK_NAMES=['onRequest',_0x3a8273(0xeb),_0x3a8273(0x127),'onResponseError'];function mergeOptions(..._0x568050){const _0x381ea7=_0x3a8273,_0x1a710c={},_0x4dfa3f={};for(const _0xa79dfc of _0x568050){if(!_0xa79dfc)continue;for(const _0x44161c of HOOK_NAMES)collectHook(_0x4dfa3f,_0x44161c,_0xa79dfc);const _0x108b7f=_0x1a710c['headers'],_0x3874e2=_0x1a710c['query'];Object['assign'](_0x1a710c,_0xa79dfc);const _0x1fbece={..._0x108b7f,..._0xa79dfc[_0x381ea7(0xe8)]};_0x1a710c['headers']=_0x1fbece;const _0x222382={..._0x3874e2,..._0xa79dfc['query']};_0x1a710c[_0x381ea7(0x10f)]=_0x222382;}for(const [_0x47cf30,_0x43f356]of Object[_0x381ea7(0xee)](_0x4dfa3f))Object['assign'](_0x1a710c,{[_0x47cf30]:async _0x46cecb=>{for(const _0xc61263 of _0x43f356)await _0xc61263(_0x46cecb);}});return _0x1a710c;}function collectHook(_0x202405,_0x112896,_0x5825d2){const _0x4e9bbe=_0x5825d2[_0x112896];if(typeof _0x4e9bbe!=='function')return;_0x202405[_0x112896]??=[],_0x202405[_0x112896]['push'](_0x4e9bbe);}function dispatch(_0x1c2237,_0x38f638,_0xe8d2f3,_0x779ec1){const _0x1ec4fa=_0x3a8273;let _0x2189fb;if(_0x1c2237==='upload')_0x2189fb=dispatchUpload(_0x38f638,_0xe8d2f3,_0x779ec1);else{if(_0x1c2237===_0x1ec4fa(0x10c))_0x2189fb=dispatchDownload(_0x38f638,_0xe8d2f3,_0x779ec1);else _0x2189fb=dispatchRequest(_0x38f638,_0xe8d2f3,_0x779ec1);}bindTask(_0x2189fb,_0xe8d2f3);}function bindTask(_0x5ed2f1,_0x33ed1d){const _0x20551a=_0x3a8273;onAbort(_0x33ed1d[_0x20551a(0x11e)],()=>_0x5ed2f1[_0x20551a(0xe7)]());if(typeof _0x33ed1d['onHeadersReceived']===_0x20551a(0xfd))_0x5ed2f1['onHeadersReceived'](_0x33ed1d[_0x20551a(0xf7)]);const _0x1cb1b3=_0x33ed1d[_0x20551a(0x126)];if(typeof _0x1cb1b3===_0x20551a(0xfd)&&'onProgressUpdate'in _0x5ed2f1)_0x5ed2f1['onProgressUpdate'](_0x1cb1b3);}function dispatchRequest(_0x4a7989,_0x404929,_0x1bcf11){const _0x17051a=_0x3a8273,_0xf065ea={'url':_0x4a7989,'method':_0x404929['method'],'header':_0x404929['headers'],'data':_0x404929['body']??{},'timeout':_0x404929[_0x17051a(0x11f)],'dataType':_0x404929['dataType']||'json','responseType':mappedResponseBodyType(_0x404929['responseType']),'sslVerify':_0x404929['sslVerify'],'withCredentials':_0x404929['withCredentials'],'firstIpv4':_0x404929['firstIpv4'],'enableHttp2':_0x404929['enableHttp2'],'enableQuic':_0x404929['enableQuic'],'enableCache':_0x404929[_0x17051a(0xf1)],'enableHttpDNS':_0x404929[_0x17051a(0xf4)],'httpDNSServiceId':_0x404929['httpDNSServiceId'],'enableChunked':_0x404929['enableChunked'],'forceCellularNetwork':_0x404929['forceCellularNetwork'],'success':_0x1bcf11['onSuccess'],'fail':_0x1bcf11[_0x17051a(0x117)],'complete':()=>{}};return uni['request'](_0xf065ea);}function dispatchUpload(_0x1399ce,_0x25a67c,_0x4cebcf){const _0x2fff42=_0x3a8273,_0x19ecf7={};_0x19ecf7[_0x2fff42(0xed)]=_0x1399ce,_0x19ecf7['fileType']=_0x25a67c['fileType'],_0x19ecf7['file']=_0x25a67c[_0x2fff42(0x115)],_0x19ecf7['filePath']=_0x25a67c['filePath'],_0x19ecf7[_0x2fff42(0x130)]=_0x25a67c[_0x2fff42(0x130)]??'file',_0x19ecf7[_0x2fff42(0xf2)]=_0x25a67c[_0x2fff42(0xf2)],_0x19ecf7['header']=_0x25a67c[_0x2fff42(0xe8)],_0x19ecf7['formData']=_0x25a67c['body']??{},_0x19ecf7[_0x2fff42(0x11f)]=_0x25a67c['timeout'],_0x19ecf7['success']=_0x4cebcf[_0x2fff42(0x12e)],_0x19ecf7[_0x2fff42(0x114)]=_0x4cebcf['onFail'],_0x19ecf7[_0x2fff42(0x112)]=()=>{};const _0x39d3d3=_0x19ecf7;return uni[_0x2fff42(0x104)](_0x39d3d3);}function dispatchDownload(_0x39cfd6,_0x2dfe88,_0x29d26f){const _0x40d53e=_0x3a8273,_0x103dc2={'url':_0x39cfd6,'header':_0x2dfe88['headers'],'timeout':_0x2dfe88[_0x40d53e(0x11f)],'success':_0x2e86ee=>{const _0x249497=_0x40d53e,_0x5173e4={..._0x2e86ee};_0x5173e4[_0x249497(0x123)]={},_0x5173e4[_0x249497(0x123)]['tempFilePath']=_0x2e86ee[_0x249497(0xea)],_0x29d26f['onSuccess'](_0x5173e4);},'fail':_0x29d26f['onFail'],'complete':()=>{}};return uni['downloadFile'](_0x103dc2);}function mappedResponseBodyType(_0x170e74){const _0x49c496=_0x3a8273;if(!_0x170e74||_0x170e74===_0x49c496(0xe9))return _0x49c496(0x105);if(_0x170e74==='arrayBuffer')return'arraybuffer';return _0x49c496(0x105);}var HttpError=class extends Error{constructor(_0x51bc57){super(_0x51bc57),this['name']='HttpError';}};function createResponseError(_0x1670d5,_0x2c2177,_0x32dab8){const _0x26ab91=_0x3a8273,_0x310174=_0x1670d5,_0x3046b7='['+(_0x2c2177?.['method']||_0x26ab91(0x11a))+']\x20'+_0x310174,_0x23b57d=_0x32dab8?_0x32dab8[_0x26ab91(0x122)]+'\x20'+(_0x32dab8['errMsg']||''):'<no\x20response>',_0x473d1c=_0x32dab8?JSON['stringify'](_0x32dab8[_0x26ab91(0x123)]):_0x26ab91(0xf8),_0x30394d=new HttpError(_0x3046b7+':\x20'+_0x23b57d+(_0x32dab8[_0x26ab91(0x123)]?'\x20'+_0x473d1c:''));for(const _0x5e6cac of['request','options',_0x26ab91(0x11d),'data'])Object['defineProperty'](_0x30394d,_0x5e6cac,{'get'(){const _0x105dce=_0x26ab91,_0x9a401={};return _0x9a401[_0x105dce(0x108)]=_0x1670d5,_0x9a401['options']=_0x2c2177,_0x9a401['response']=_0x32dab8,_0x9a401[_0x105dce(0x123)]=_0x32dab8['data'],_0x9a401[_0x5e6cac];}});return _0x30394d;}function normalizeError(_0x3238e8){const _0x3cf075=_0x3a8273;if(_0x3238e8 instanceof Error)return _0x3238e8;return Object['assign'](new Error(_0x3238e8?.['errMsg']||_0x3238e8?.['message']||_0x3cf075(0xe2)),{'cause':_0x3238e8});}async function callRequestHooks(_0x1b3592,_0x333e2d){await _0x333e2d['onRequest']?.({'options':_0x333e2d,'resource':_0x1b3592});}async function callRequestErrorHooks(_0x39be63,_0x4c7970,_0x2244e1){const _0x26cf8e=_0x3a8273;await _0x4c7970[_0x26cf8e(0xeb)]?.({'options':_0x4c7970,'resource':_0x39be63,'error':_0x2244e1});}async function callResponseHooks(_0x4db579,_0x213fdd,_0x46c56d){await _0x213fdd['onResponse']?.({'options':_0x213fdd,'resource':_0x4db579,'response':_0x46c56d});}async function callResponseErrorHooks(_0x2b6093,_0x3f532b,_0x2de6e3){const _0x36f8e6=_0x3a8273;await _0x3f532b[_0x36f8e6(0xe4)]?.({'options':_0x3f532b,'resource':_0x2b6093,'response':_0x2de6e3});}async function refineResponse(_0x258322,_0xa65912){const _0xf48110=_0x3a8273;if(_0xa65912[_0xf48110(0x116)]===_0xf48110(0xe9)||!_0xa65912[_0xf48110(0x116)])return{..._0x258322,'data':await parseJSONResponse(_0x258322[_0xf48110(0x123)],_0xa65912)};return _0x258322;}function parseJSONResponse(_0x310921,_0x119762){if(typeof _0x310921!=='string')return _0x310921;if(_0x119762['parseResponse'])return _0x119762['parseResponse'](_0x310921);return _0x310921?JSON['parse'](_0x310921):null;}function isResponseError(_0x52aa32){const _0x3f3b80=_0x3a8273,_0x970bb1=_0x3f3b80(0x122)in _0x52aa32?_0x52aa32[_0x3f3b80(0x122)]:void 0x0;return typeof _0x970bb1===_0x3f3b80(0x12b)&&(_0x970bb1<0xc8||_0x970bb1>=0x12c);}const DEFAULT_RETRY_STATUS_CODES=[0x198,0x199,0x1a9,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8],PAYLOAD_METHODS=new Set(['POST',_0x3a8273(0x124),'DELETE','PATCH']);async function withRetry(_0x49bf27,_0x224b69){const _0x4f42f6=_0x3a8273,_0x43b06d=resolveRetryCount(_0x49bf27);for(let _0x110ec2=0x0;;_0x110ec2++)try{return await _0x224b69();}catch(_0x3cc261){if(_0x110ec2>=_0x43b06d||!shouldRetry(_0x3cc261,_0x49bf27))throw _0x3cc261;await sleep(_0x49bf27['retryDelay']??0x0,_0x49bf27[_0x4f42f6(0x11e)]);}}function resolveRetryCount(_0x2cd52e){const {retry:_0xc5897c}=_0x2cd52e;if(_0xc5897c===![])return 0x0;if(typeof _0xc5897c==='number')return _0xc5897c>0x0?_0xc5897c:0x0;return isPayloadMethod(_0x2cd52e['method'])?0x0:0x1;}function shouldRetry(_0x31f17d,_0x2b4cbf){const _0x2ffa33=_0x3a8273;if(_0x2b4cbf['signal']?.['aborted']||isAbortError(_0x31f17d))return![];const _0x1afdba=_0x31f17d?.['response']?.[_0x2ffa33(0x122)];if(typeof _0x1afdba!=='number')return!![];return(_0x2b4cbf[_0x2ffa33(0xfe)]??DEFAULT_RETRY_STATUS_CODES)['includes'](_0x1afdba);}function isPayloadMethod(_0x24ba68){const _0x52b83a=_0x3a8273;return!!_0x24ba68&&PAYLOAD_METHODS['has'](_0x24ba68[_0x52b83a(0xfa)]());}function sleep(_0x1598e6,_0x45d1b8){return new Promise((_0x3bc18b,_0x5b9a3e)=>{const _0x137a75=_0x4b38;if(_0x45d1b8?.[_0x137a75(0x106)]){_0x5b9a3e(_0x45d1b8[_0x137a75(0x120)]);return;}if(!(_0x1598e6>0x0)){_0x3bc18b();return;}let _0x4f27b0=()=>{};const _0x464f4c=setTimeout(()=>{_0x4f27b0(),_0x3bc18b();},_0x1598e6);_0x4f27b0=onAbort(_0x45d1b8,()=>{const _0x1cbc3c=_0x137a75;clearTimeout(_0x464f4c),_0x5b9a3e(_0x45d1b8[_0x1cbc3c(0x120)]);});});}function buildURL(_0x502c64,_0x95457b){const _0xdfc5df=_0x3a8273,_0x2ca800=joinURL(_0x95457b[_0xdfc5df(0xff)],_0x502c64),_0x52e894=_0x95457b['query']??{},_0x503737=Object['keys'](_0x52e894)[_0xdfc5df(0x12d)](_0x485e4d=>_0x52e894[_0x485e4d]!==void 0x0)[_0xdfc5df(0xf9)](_0x1e4426=>{const _0x5160e3=_0xdfc5df,_0xa47e5c=_0x52e894[_0x1e4426];return(Array[_0x5160e3(0x10b)](_0xa47e5c)?_0xa47e5c:[_0xa47e5c])['map'](_0x54be7e=>encodeURIComponent(_0x1e4426)+'='+encodeURIComponent(String(_0x54be7e)));})[_0xdfc5df(0x11b)]('&');if(!_0x503737)return _0x2ca800;return''+_0x2ca800+(_0x2ca800['includes']('?')?'&':'?')+_0x503737;}function joinURL(_0x13dcaa,_0x288f29){if(!_0x13dcaa||isAbsoluteURL(_0x288f29))return _0x288f29;return _0x13dcaa['replace'](/\/+$/,'')+'/'+_0x288f29['replace'](/^\/+/,'');}function isAbsoluteURL(_0x1e40dd){const _0x480f37=_0x3a8273;return/^[a-z][a-z\d+\-.]*:\/\//i[_0x480f37(0xef)](_0x1e40dd)||_0x1e40dd[_0x480f37(0x11c)]('//');}function dispatchHttp(_0x57a022,_0x53ce4c,_0x46be27){const _0x128c8b=buildURL(_0x53ce4c,_0x46be27);return withRetry(_0x46be27,()=>attemptRequest(_0x57a022,_0x53ce4c,_0x128c8b,_0x46be27));}function attemptRequest(_0x1ebd96,_0x31976e,_0x4c62c7,_0x3767ae){const _0x43a19b=_0x3a8273,_0x1d21ba=!!_0x3767ae[_0x43a19b(0x113)];return new Promise((_0x53f489,_0x41ff83)=>{const _0x7d3696=_0x43a19b;let _0x2fe52e=![];const _0x5d5795=_0xf96174=>{if(_0x2fe52e)return;_0x2fe52e=!![],_0xf96174();},_0x40ff19=onAbort(_0x3767ae[_0x7d3696(0x11e)],()=>{const _0x68d215=_0x7d3696;_0x5d5795(()=>_0x41ff83(_0x3767ae[_0x68d215(0x11e)][_0x68d215(0x120)]));}),_0x3f1947=_0x20c938=>{_0x40ff19(),_0x5d5795(_0x20c938);};callRequestHooks(_0x31976e,_0x3767ae)[_0x7d3696(0x107)](()=>{if(_0x2fe52e)return;dispatch(_0x1ebd96,_0x4c62c7,_0x3767ae,{'onSuccess':_0x580bc3=>{const _0x40c89e=_0x4b38;Promise['resolve']()[_0x40c89e(0x107)](()=>refineResponse(_0x580bc3,_0x3767ae))[_0x40c89e(0x107)](async _0x27121d=>{const _0x23ee1d=_0x40c89e;if(isResponseError(_0x580bc3)){await callResponseErrorHooks(_0x31976e,_0x3767ae,_0x27121d);if(!_0x3767ae[_0x23ee1d(0xf5)])throw createResponseError(_0x31976e,_0x3767ae,_0x27121d);}else await callResponseHooks(_0x31976e,_0x3767ae,_0x27121d);_0x3f1947(()=>_0x53f489(_0x1d21ba?_0x27121d:_0x27121d['data']));})[_0x40c89e(0x129)](_0x423666=>_0x3f1947(()=>_0x41ff83(_0x423666)));},'onFail':_0x250c3d=>{const _0x407984=_0x4b38;Promise['resolve']()[_0x407984(0x107)](async()=>{const _0x14a337=normalizeError(_0x250c3d);if(!isAbortError(_0x14a337))await callRequestErrorHooks(_0x31976e,_0x3767ae,_0x14a337);throw _0x14a337;})[_0x407984(0x129)](_0x22a42a=>_0x3f1947(()=>_0x41ff83(_0x22a42a)));}});})['catch'](async _0x2cf937=>{const _0x4e866f=normalizeError(_0x2cf937);await callRequestErrorHooks(_0x31976e,_0x3767ae,_0x4e866f),_0x3f1947(()=>_0x41ff83(_0x4e866f));});});}const _0x11db80={};function _0x4b38(_0x17fdae,_0xf4253c){_0x17fdae=_0x17fdae-0xe2;const _0x550c6e=_0x550c();let _0x4b385a=_0x550c6e[_0x17fdae];return _0x4b385a;}_0x11db80['method']=_0x3a8273(0x11a),_0x11db80['responseType']='json';const defaultConfig=_0x11db80;function createHttp(_0x55f3ba={}){const _0x375e1d=_0x3a8273,_0x33b3d8=(_0x5ab700,_0x434519)=>{return dispatchHttp('request',_0x5ab700,mergeOptions(defaultConfig,_0x55f3ba,_0x434519));},_0x2a7918=(_0x39c5ff,_0x16e751)=>{const _0x11a966=_0x4b38,_0x4abdf8={};return _0x4abdf8[_0x11a966(0x125)]=_0x11a966(0xec),dispatchHttp(_0x11a966(0xe5),_0x39c5ff,mergeOptions(defaultConfig,_0x55f3ba,_0x16e751,_0x4abdf8));},_0x1fe462=(_0x33880e,_0x3e76f0)=>{const _0x3edcb4=_0x4b38,_0x330c9e={};return _0x330c9e[_0x3edcb4(0x125)]='GET',dispatchHttp(_0x3edcb4(0x10c),_0x33880e,mergeOptions(defaultConfig,_0x55f3ba,_0x3e76f0,_0x330c9e));},_0x5cb9da=_0x2f53dd=>createHttp(mergeOptions(_0x55f3ba,_0x2f53dd)),_0x5d6380={};return _0x5d6380[_0x375e1d(0x108)]=_0x33b3d8,_0x5d6380[_0x375e1d(0xe5)]=_0x2a7918,_0x5d6380['download']=_0x1fe462,_0x5d6380['create']=_0x5cb9da,_0x5d6380;}const http=createHttp(),_0x12fb38={};_0x12fb38['enumerable']=!![],_0x12fb38[_0x3a8273(0x118)]=function(){return createHttp;},Object[_0x3a8273(0x119)](exports,'createHttp',_0x12fb38);const _0x4bb373={};_0x4bb373['enumerable']=!![],_0x4bb373[_0x3a8273(0x118)]=function(){return createHttpAborter;},Object['defineProperty'](exports,'createHttpAborter',_0x4bb373);const _0x529675={};_0x529675[_0x3a8273(0x12c)]=!![],_0x529675['get']=function(){return http;},Object['defineProperty'](exports,'http',_0x529675);
|