@unicom-cloud/utils 0.1.26 → 0.1.27
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/axios/chunk/BJvTEV6n.js +253 -0
- package/axios/{lib/core/AxiosError.js → chunk/CB3wlosT.js} +5 -5
- package/axios/index.d.ts +6 -1
- package/axios/index.js +22 -20
- package/axios/lib/axios.js +1633 -45
- package/axios/lib/utils.js +3 -246
- package/{axios-mock-adapter → axios/mock-adapter}/index.js +16 -17
- package/{axios-mock-adapter → axios/mock-adapter}/request.js +5 -6
- package/{axios-mock-adapter → axios/mock-adapter}/utils.js +13 -12
- package/case-name/index.js +1 -1
- package/caseName.js +1 -1
- package/class-name/index.js +1 -1
- package/className.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/clipboardCopy.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/emoji.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +16 -17
- package/constant/protocol.js +1 -1
- package/constant/ui.js +16 -16
- package/constant.js +1 -1
- package/content-disposition/index.js +1 -1
- package/contentDisposition.js +1 -1
- package/cookie/index.js +1 -1
- package/cookie/src/index.js +1 -1
- package/cookie.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/date.js +1 -1
- package/decimal/decimal.js +1 -8
- package/decimal/index.js +1 -1
- package/decimal.js +1 -1
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/domHelpers.js +1 -1
- package/emitter/index.js +1 -1
- package/emitter/src/index.js +1 -1
- package/emitter.js +1 -1
- package/file/fileToURL.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/file.js +1 -1
- package/idb/index.js +1 -1
- package/idb.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/invariant.js +1 -1
- package/is/index.js +1 -1
- package/is.js +1 -1
- package/js-cookie/index.js +1 -1
- package/js-cookie/src/api.js +1 -1
- package/js-cookie/src/assign.js +1 -1
- package/js-cookie/src/converter.js +1 -1
- package/jsCookie.js +1 -1
- package/lunar/index.js +1 -1
- package/lunar/lib/Holiday.js +1 -1
- package/lunar/lib/HolidayUtil.js +1 -1
- package/lunar/lib/I18n.js +1 -1
- package/lunar/lib/JieQi.js +1 -1
- package/lunar/lib/Lunar.js +1 -1
- package/lunar/lib/LunarMonth.js +1 -1
- package/lunar/lib/LunarTime.js +1 -1
- package/lunar/lib/LunarUtil.js +1 -1
- package/lunar/lib/LunarYear.js +1 -1
- package/lunar/lib/ShouXingUtil.js +1 -1
- package/lunar/lib/Solar.js +1 -1
- package/lunar/lib/SolarHalfYear.js +1 -1
- package/lunar/lib/SolarMonth.js +1 -1
- package/lunar/lib/SolarSeason.js +1 -1
- package/lunar/lib/SolarUtil.js +1 -1
- package/lunar/lib/SolarWeek.js +1 -1
- package/lunar/lib/SolarYear.js +1 -1
- package/lunar/lib/index.js +1 -1
- package/lunar.js +1 -1
- package/math/index.js +1 -1
- package/math.js +1 -1
- package/md5/index.js +1 -1
- package/md5.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mock.js +1 -1
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -15
- package/normalizeWheel.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/numberToChinese.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/nzh.js +1 -1
- package/object-keys-sort/index.js +1 -1
- package/object-prototype-to-string-call/index.js +1 -1
- package/objectKeysSort.js +1 -1
- package/objectPrototypeToStringCall.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/simplified.js +1 -1
- package/pinyin/src/core.js +1 -1
- package/pinyin/src/simplified.js +1 -1
- package/pinyin/src/simplified_dict.js +1 -1
- package/pinyin/src/traditional.js +1 -1
- package/pinyin/src/traditional_dict.js +1 -1
- package/pinyin/traditional.js +1 -1
- package/pinyin.js +1 -1
- package/query-string/base.js +1 -1
- package/query-string/index.js +1 -1
- package/query-string/splitOnFirst.js +1 -1
- package/queryString.js +1 -1
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/random.js +1 -1
- package/screenfull/index.js +1 -1
- package/screenfull.js +1 -1
- package/sleep/index.js +1 -1
- package/sleep.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +1 -1
- package/snapdom/src/core/cache.js +1 -1
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +1 -1
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.js +1 -1
- package/snapdom/src/core/prepare.js +1 -1
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +1 -1
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +1 -1
- package/snapdom/src/modules/iconFonts.js +1 -1
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pseudo.js +1 -1
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +1 -1
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +1 -1
- package/snapdom.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/src/conversion.js +1 -1
- package/tinycolor/src/css-color-names.js +1 -1
- package/tinycolor/src/format-input.js +1 -1
- package/tinycolor/src/from-ratio.js +1 -1
- package/tinycolor/src/index.js +1 -1
- package/tinycolor/src/random.js +1 -1
- package/tinycolor/src/readability.js +1 -1
- package/tinycolor/src/to-ms-filter.js +1 -1
- package/tinycolor/src/utils.js +1 -1
- package/tinycolor.js +1 -1
- package/tree/index.js +1 -1
- package/tree/search/index.js +1 -1
- package/tree.js +1 -1
- package/tween/index.js +1 -1
- package/tween/src/easing.js +1 -1
- package/tween/src/tween.js +1 -1
- package/tween.js +1 -1
- package/types/constant/platform.d.ts +8 -7
- package/types/snapdom/src/core/context.d.ts +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/uiColor.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/url-toolkit/src/url-toolkit.js +1 -1
- package/urlToolkit.js +1 -1
- package/validate/index.js +1 -1
- package/validate/src/index.js +1 -1
- package/validate/src/locale/en-US.js +1 -1
- package/validate/src/locale/zh-CN.js +1 -1
- package/validate/src/message.js +1 -1
- package/validate/src/rules/array.js +1 -1
- package/validate/src/rules/base.js +1 -1
- package/validate/src/rules/boolean.js +1 -1
- package/validate/src/rules/custom.js +1 -1
- package/validate/src/rules/number.js +1 -1
- package/validate/src/rules/object.js +1 -1
- package/validate/src/rules/string.js +1 -1
- package/validate/src/rules/type.js +1 -1
- package/validate/src/utils.js +1 -1
- package/validate.js +1 -1
- package/version/index.js +1 -1
- package/version.js +1 -1
- package/axios/lib/adapters/adapters.js +0 -65
- package/axios/lib/adapters/fetch.js +0 -186
- package/axios/lib/adapters/xhr.js +0 -105
- package/axios/lib/cancel/CancelToken.js +0 -78
- package/axios/lib/cancel/CanceledError.js +0 -18
- package/axios/lib/cancel/isCancel.js +0 -7
- package/axios/lib/core/Axios.js +0 -170
- package/axios/lib/core/AxiosHeaders.js +0 -192
- package/axios/lib/core/InterceptorManager.js +0 -59
- package/axios/lib/core/buildFullPath.js +0 -10
- package/axios/lib/core/dispatchRequest.js +0 -35
- package/axios/lib/core/mergeConfig.js +0 -74
- package/axios/lib/core/settle.js +0 -17
- package/axios/lib/core/transformData.js +0 -19
- package/axios/lib/defaults/index.js +0 -103
- package/axios/lib/defaults/transitional.js +0 -9
- package/axios/lib/env/data.js +0 -5
- package/axios/lib/helpers/AxiosURLSearchParams.js +0 -37
- package/axios/lib/helpers/HttpStatusCode.js +0 -78
- package/axios/lib/helpers/bind.js +0 -9
- package/axios/lib/helpers/buildURL.js +0 -24
- package/axios/lib/helpers/combineURLs.js +0 -7
- package/axios/lib/helpers/composeSignals.js +0 -38
- package/axios/lib/helpers/cookies.js +0 -37
- package/axios/lib/helpers/formDataToJSON.js +0 -32
- package/axios/lib/helpers/isAbsoluteURL.js +0 -7
- package/axios/lib/helpers/isAxiosError.js +0 -8
- package/axios/lib/helpers/isURLSameOrigin.js +0 -9
- package/axios/lib/helpers/parseHeaders.js +0 -31
- package/axios/lib/helpers/parseProtocol.js +0 -8
- package/axios/lib/helpers/progressEventReducer.js +0 -39
- package/axios/lib/helpers/resolveConfig.js +0 -44
- package/axios/lib/helpers/speedometer.js +0 -20
- package/axios/lib/helpers/spread.js +0 -9
- package/axios/lib/helpers/throttle.js +0 -16
- package/axios/lib/helpers/toFormData.js +0 -91
- package/axios/lib/helpers/toURLEncodedForm.js +0 -15
- package/axios/lib/helpers/trackStream.js +0 -67
- package/axios/lib/helpers/validator.js +0 -66
- package/axios/lib/platform/browser/classes/Blob.js +0 -5
- package/axios/lib/platform/browser/classes/FormData.js +0 -5
- package/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
- package/axios/lib/platform/browser/index.js +0 -16
- package/axios/lib/platform/common/utils.js +0 -9
- package/axios/lib/platform/index.js +0 -10
- package/axios.js +0 -24
- package/axiosMockAdapter.js +0 -9
- package/types/axios/index.d.ts +0 -19
- package/types/axios/lib/adapters/adapters.d.ts +0 -28
- package/types/axios/lib/adapters/fetch.d.ts +0 -3
- package/types/axios/lib/adapters/http.d.ts +0 -12
- package/types/axios/lib/adapters/xhr.d.ts +0 -2
- package/types/axios/lib/axios.d.ts +0 -3
- package/types/axios/lib/cancel/CancelToken.d.ts +0 -34
- package/types/axios/lib/cancel/CanceledError.d.ts +0 -24
- package/types/axios/lib/cancel/isCancel.d.ts +0 -1
- package/types/axios/lib/core/Axios.d.ts +0 -28
- package/types/axios/lib/core/AxiosError.d.ts +0 -38
- package/types/axios/lib/core/AxiosHeaders.d.ts +0 -23
- package/types/axios/lib/core/InterceptorManager.d.ts +0 -38
- package/types/axios/lib/core/buildFullPath.d.ts +0 -11
- package/types/axios/lib/core/dispatchRequest.d.ts +0 -8
- package/types/axios/lib/core/mergeConfig.d.ts +0 -10
- package/types/axios/lib/core/settle.d.ts +0 -10
- package/types/axios/lib/core/transformData.d.ts +0 -9
- package/types/axios/lib/defaults/index.d.ts +0 -30
- package/types/axios/lib/defaults/transitional.d.ts +0 -6
- package/types/axios/lib/env/classes/FormData.d.ts +0 -2
- package/types/axios/lib/env/data.d.ts +0 -1
- package/types/axios/lib/helpers/AxiosTransformStream.d.ts +0 -19
- package/types/axios/lib/helpers/AxiosURLSearchParams.d.ts +0 -30
- package/types/axios/lib/helpers/HttpStatusCode.d.ts +0 -72
- package/types/axios/lib/helpers/ZlibHeaderTransformStream.d.ts +0 -5
- package/types/axios/lib/helpers/bind.d.ts +0 -8
- package/types/axios/lib/helpers/buildURL.d.ts +0 -10
- package/types/axios/lib/helpers/callbackify.d.ts +0 -2
- package/types/axios/lib/helpers/combineURLs.d.ts +0 -9
- package/types/axios/lib/helpers/composeSignals.d.ts +0 -2
- package/types/axios/lib/helpers/cookies.d.ts +0 -6
- package/types/axios/lib/helpers/deprecatedMethod.d.ts +0 -11
- package/types/axios/lib/helpers/estimateDataURLDecodedBytes.d.ts +0 -10
- package/types/axios/lib/helpers/formDataToJSON.d.ts +0 -11
- package/types/axios/lib/helpers/formDataToStream.d.ts +0 -2
- package/types/axios/lib/helpers/fromDataURI.d.ts +0 -11
- package/types/axios/lib/helpers/isAbsoluteURL.d.ts +0 -8
- package/types/axios/lib/helpers/isAxiosError.d.ts +0 -8
- package/types/axios/lib/helpers/isURLSameOrigin.d.ts +0 -2
- package/types/axios/lib/helpers/null.d.ts +0 -2
- package/types/axios/lib/helpers/parseHeaders.d.ts +0 -2
- package/types/axios/lib/helpers/parseProtocol.d.ts +0 -1
- package/types/axios/lib/helpers/progressEventReducer.d.ts +0 -3
- package/types/axios/lib/helpers/readBlob.d.ts +0 -2
- package/types/axios/lib/helpers/resolveConfig.d.ts +0 -2
- package/types/axios/lib/helpers/speedometer.d.ts +0 -8
- package/types/axios/lib/helpers/spread.d.ts +0 -22
- package/types/axios/lib/helpers/throttle.d.ts +0 -8
- package/types/axios/lib/helpers/toFormData.d.ts +0 -26
- package/types/axios/lib/helpers/toURLEncodedForm.d.ts +0 -1
- package/types/axios/lib/helpers/trackStream.d.ts +0 -3
- package/types/axios/lib/helpers/validator.d.ts +0 -28
- package/types/axios/lib/platform/browser/classes/Blob.d.ts +0 -5
- package/types/axios/lib/platform/browser/classes/FormData.d.ts +0 -5
- package/types/axios/lib/platform/browser/classes/URLSearchParams.d.ts +0 -6
- package/types/axios/lib/platform/browser/index.d.ts +0 -13
- package/types/axios/lib/platform/common/utils.d.ts +0 -32
- package/types/axios/lib/platform/index.d.ts +0 -24
- package/types/axios/lib/platform/node/classes/FormData.d.ts +0 -1
- package/types/axios/lib/platform/node/classes/URLSearchParams.d.ts +0 -2
- package/types/axios/lib/platform/node/index.d.ts +0 -25
- package/types/axios/lib/utils.d.ts +0 -289
- package/types/axios-mock-adapter/index.d.ts +0 -19
- package/types/axios-mock-adapter/request.d.ts +0 -2
- package/types/axios-mock-adapter/utils.d.ts +0 -31
- /package/{axios-mock-adapter → axios/mock-adapter}/index.d.ts +0 -0
package/axios/lib/utils.js
CHANGED
|
@@ -1,248 +1,5 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import
|
|
3
|
-
const { toString: T } = Object.prototype, { getPrototypeOf: A } = Object, { iterator: g, toStringTag: S } = Symbol, O = /* @__PURE__ */ ((e) => (t) => {
|
|
4
|
-
const n = T.call(t);
|
|
5
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
6
|
-
})(/* @__PURE__ */ Object.create(null)), f = (e) => (e = e.toLowerCase(), (t) => O(t) === e), F = (e) => (t) => typeof t === e, { isArray: p } = Array, a = F("undefined");
|
|
7
|
-
function d(e) {
|
|
8
|
-
return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && c(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
9
|
-
}
|
|
10
|
-
const B = f("ArrayBuffer");
|
|
11
|
-
function M(e) {
|
|
12
|
-
let t;
|
|
13
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && B(e.buffer), t;
|
|
14
|
-
}
|
|
15
|
-
const k = F("string"), c = F("function"), P = F("number"), y = (e) => e !== null && typeof e == "object", U = (e) => e === !0 || e === !1, w = (e) => {
|
|
16
|
-
if (O(e) !== "object")
|
|
17
|
-
return !1;
|
|
18
|
-
const t = A(e);
|
|
19
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
|
|
20
|
-
}, N = (e) => {
|
|
21
|
-
if (!y(e) || d(e))
|
|
22
|
-
return !1;
|
|
23
|
-
try {
|
|
24
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
25
|
-
} catch {
|
|
26
|
-
return !1;
|
|
27
|
-
}
|
|
28
|
-
}, I = f("Date"), V = f("File"), _ = f("Blob"), q = f("FileList"), H = (e) => y(e) && c(e.pipe), z = (e) => {
|
|
29
|
-
let t;
|
|
30
|
-
return e && (typeof FormData == "function" && e instanceof FormData || c(e.append) && ((t = O(e)) === "formdata" || // detect form-data instance
|
|
31
|
-
t === "object" && c(e.toString) && e.toString() === "[object FormData]"));
|
|
32
|
-
}, J = f("URLSearchParams"), [K, $, W, G] = [
|
|
33
|
-
"ReadableStream",
|
|
34
|
-
"Request",
|
|
35
|
-
"Response",
|
|
36
|
-
"Headers"
|
|
37
|
-
].map(f), Q = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
38
|
-
function m(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
39
|
-
if (e === null || typeof e > "u")
|
|
40
|
-
return;
|
|
41
|
-
let r, s;
|
|
42
|
-
if (typeof e != "object" && (e = [e]), p(e))
|
|
43
|
-
for (r = 0, s = e.length; r < s; r++)
|
|
44
|
-
t.call(null, e[r], r, e);
|
|
45
|
-
else {
|
|
46
|
-
if (d(e))
|
|
47
|
-
return;
|
|
48
|
-
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
49
|
-
let l;
|
|
50
|
-
for (r = 0; r < i; r++)
|
|
51
|
-
l = o[r], t.call(null, e[l], l, e);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function E(e, t) {
|
|
55
|
-
if (d(e))
|
|
56
|
-
return null;
|
|
57
|
-
t = t.toLowerCase();
|
|
58
|
-
const n = Object.keys(e);
|
|
59
|
-
let r = n.length, s;
|
|
60
|
-
for (; r-- > 0; )
|
|
61
|
-
if (s = n[r], t === s.toLowerCase())
|
|
62
|
-
return s;
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
const u = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !a(e) && e !== u;
|
|
66
|
-
function h() {
|
|
67
|
-
const { caseless: e, skipUndefined: t } = L(this) && this || {}, n = {}, r = (s, o) => {
|
|
68
|
-
const i = e && E(n, o) || o;
|
|
69
|
-
w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : p(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
|
|
70
|
-
};
|
|
71
|
-
for (let s = 0, o = arguments.length; s < o; s++)
|
|
72
|
-
arguments[s] && m(arguments[s], r);
|
|
73
|
-
return n;
|
|
74
|
-
}
|
|
75
|
-
const X = (e, t, n, { allOwnKeys: r } = {}) => (m(
|
|
76
|
-
t,
|
|
77
|
-
(s, o) => {
|
|
78
|
-
n && c(s) ? e[o] = R(s, n) : e[o] = s;
|
|
79
|
-
},
|
|
80
|
-
{ allOwnKeys: r }
|
|
81
|
-
), e), Y = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Z = (e, t, n, r) => {
|
|
82
|
-
e.prototype = Object.create(
|
|
83
|
-
t.prototype,
|
|
84
|
-
r
|
|
85
|
-
), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
86
|
-
value: t.prototype
|
|
87
|
-
}), n && Object.assign(e.prototype, n);
|
|
88
|
-
}, j = (e, t, n, r) => {
|
|
89
|
-
let s, o, i;
|
|
90
|
-
const l = {};
|
|
91
|
-
if (t = t || {}, e == null) return t;
|
|
92
|
-
do {
|
|
93
|
-
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
94
|
-
i = s[o], (!r || r(i, e, t)) && !l[i] && (t[i] = e[i], l[i] = !0);
|
|
95
|
-
e = n !== !1 && A(e);
|
|
96
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
97
|
-
return t;
|
|
98
|
-
}, v = (e, t, n) => {
|
|
99
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
100
|
-
const r = e.indexOf(t, n);
|
|
101
|
-
return r !== -1 && r === n;
|
|
102
|
-
}, ee = (e) => {
|
|
103
|
-
if (!e) return null;
|
|
104
|
-
if (p(e)) return e;
|
|
105
|
-
let t = e.length;
|
|
106
|
-
if (!P(t)) return null;
|
|
107
|
-
const n = new Array(t);
|
|
108
|
-
for (; t-- > 0; )
|
|
109
|
-
n[t] = e[t];
|
|
110
|
-
return n;
|
|
111
|
-
}, te = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && A(Uint8Array)), ne = (e, t) => {
|
|
112
|
-
const r = (e && e[g]).call(e);
|
|
113
|
-
let s;
|
|
114
|
-
for (; (s = r.next()) && !s.done; ) {
|
|
115
|
-
const o = s.value;
|
|
116
|
-
t.call(e, o[0], o[1]);
|
|
117
|
-
}
|
|
118
|
-
}, re = (e, t) => {
|
|
119
|
-
let n;
|
|
120
|
-
const r = [];
|
|
121
|
-
for (; (n = e.exec(t)) !== null; )
|
|
122
|
-
r.push(n);
|
|
123
|
-
return r;
|
|
124
|
-
}, se = f("HTMLFormElement"), oe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
|
|
125
|
-
return r.toUpperCase() + s;
|
|
126
|
-
}), x = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ie = f("RegExp"), C = (e, t) => {
|
|
127
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
128
|
-
m(n, (s, o) => {
|
|
129
|
-
let i;
|
|
130
|
-
(i = t(s, o, e)) !== !1 && (r[o] = i || s);
|
|
131
|
-
}), Object.defineProperties(e, r);
|
|
132
|
-
}, ce = (e) => {
|
|
133
|
-
C(e, (t, n) => {
|
|
134
|
-
if (c(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
135
|
-
return !1;
|
|
136
|
-
const r = e[n];
|
|
137
|
-
if (c(r)) {
|
|
138
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
139
|
-
t.writable = !1;
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
t.set || (t.set = () => {
|
|
143
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}, fe = (e, t) => {
|
|
148
|
-
const n = {}, r = (s) => {
|
|
149
|
-
s.forEach((o) => {
|
|
150
|
-
n[o] = !0;
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
return p(e) ? r(e) : r(String(e).split(t)), n;
|
|
154
|
-
}, le = () => {
|
|
155
|
-
}, ue = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
156
|
-
function ae(e) {
|
|
157
|
-
return !!(e && c(e.append) && e[S] === "FormData" && e[g]);
|
|
158
|
-
}
|
|
159
|
-
const pe = (e) => {
|
|
160
|
-
const t = new Array(10), n = (r, s) => {
|
|
161
|
-
if (y(r)) {
|
|
162
|
-
if (t.indexOf(r) >= 0)
|
|
163
|
-
return;
|
|
164
|
-
if (d(r))
|
|
165
|
-
return r;
|
|
166
|
-
if (!("toJSON" in r)) {
|
|
167
|
-
t[s] = r;
|
|
168
|
-
const o = p(r) ? [] : {};
|
|
169
|
-
return m(r, (i, l) => {
|
|
170
|
-
const b = n(i, s + 1);
|
|
171
|
-
!a(b) && (o[l] = b);
|
|
172
|
-
}), t[s] = void 0, o;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return r;
|
|
176
|
-
};
|
|
177
|
-
return n(e, 0);
|
|
178
|
-
}, de = f("AsyncFunction"), ye = (e) => e && (y(e) || c(e)) && c(e.then) && c(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (u.addEventListener(
|
|
179
|
-
"message",
|
|
180
|
-
({ source: s, data: o }) => {
|
|
181
|
-
s === u && o === n && r.length && r.shift()();
|
|
182
|
-
},
|
|
183
|
-
!1
|
|
184
|
-
), (s) => {
|
|
185
|
-
r.push(s), u.postMessage(n, "*");
|
|
186
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", c(u.postMessage)), me = typeof queueMicrotask < "u" ? queueMicrotask.bind(u) : typeof process < "u" && process.nextTick || D, we = (e) => e != null && c(e[g]), Oe = {
|
|
187
|
-
isArray: p,
|
|
188
|
-
isArrayBuffer: B,
|
|
189
|
-
isBuffer: d,
|
|
190
|
-
isFormData: z,
|
|
191
|
-
isArrayBufferView: M,
|
|
192
|
-
isString: k,
|
|
193
|
-
isNumber: P,
|
|
194
|
-
isBoolean: U,
|
|
195
|
-
isObject: y,
|
|
196
|
-
isPlainObject: w,
|
|
197
|
-
isEmptyObject: N,
|
|
198
|
-
isReadableStream: K,
|
|
199
|
-
isRequest: $,
|
|
200
|
-
isResponse: W,
|
|
201
|
-
isHeaders: G,
|
|
202
|
-
isUndefined: a,
|
|
203
|
-
isDate: I,
|
|
204
|
-
isFile: V,
|
|
205
|
-
isBlob: _,
|
|
206
|
-
isRegExp: ie,
|
|
207
|
-
isFunction: c,
|
|
208
|
-
isStream: H,
|
|
209
|
-
isURLSearchParams: J,
|
|
210
|
-
isTypedArray: te,
|
|
211
|
-
isFileList: q,
|
|
212
|
-
forEach: m,
|
|
213
|
-
merge: h,
|
|
214
|
-
extend: X,
|
|
215
|
-
trim: Q,
|
|
216
|
-
stripBOM: Y,
|
|
217
|
-
inherits: Z,
|
|
218
|
-
toFlatObject: j,
|
|
219
|
-
kindOf: O,
|
|
220
|
-
kindOfTest: f,
|
|
221
|
-
endsWith: v,
|
|
222
|
-
toArray: ee,
|
|
223
|
-
forEachEntry: ne,
|
|
224
|
-
matchAll: re,
|
|
225
|
-
isHTMLForm: se,
|
|
226
|
-
hasOwnProperty: x,
|
|
227
|
-
hasOwnProp: x,
|
|
228
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
229
|
-
reduceDescriptors: C,
|
|
230
|
-
freezeMethods: ce,
|
|
231
|
-
toObjectSet: fe,
|
|
232
|
-
toCamelCase: oe,
|
|
233
|
-
noop: le,
|
|
234
|
-
toFiniteNumber: ue,
|
|
235
|
-
findKey: E,
|
|
236
|
-
global: u,
|
|
237
|
-
isContextDefined: L,
|
|
238
|
-
isSpecCompliantForm: ae,
|
|
239
|
-
toJSONObject: pe,
|
|
240
|
-
isAsyncFn: de,
|
|
241
|
-
isThenable: ye,
|
|
242
|
-
setImmediate: D,
|
|
243
|
-
asap: me,
|
|
244
|
-
isIterable: we
|
|
245
|
-
};
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
import { A as f } from "../chunk/BJvTEV6n.js";
|
|
246
3
|
export {
|
|
247
|
-
|
|
4
|
+
f as default
|
|
248
5
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import "../
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
import { A as E } from "../chunk/BJvTEV6n.js";
|
|
3
3
|
import { request as w } from "./request.js";
|
|
4
|
-
import
|
|
5
|
-
import E from "../axios/lib/utils.js";
|
|
4
|
+
import i from "./utils.js";
|
|
6
5
|
const A = [
|
|
7
6
|
"get",
|
|
8
7
|
"post",
|
|
@@ -80,11 +79,11 @@ function g(r) {
|
|
|
80
79
|
return `on${r.charAt(0).toUpperCase()}${r.slice(1)}`;
|
|
81
80
|
}
|
|
82
81
|
A.concat("any").forEach(function(r) {
|
|
83
|
-
N.prototype[g(r)] = function(e, n,
|
|
82
|
+
N.prototype[g(r)] = function(e, n, a) {
|
|
84
83
|
const s = this;
|
|
85
84
|
let d;
|
|
86
85
|
e = e === void 0 ? /.*/ : e;
|
|
87
|
-
const o = T(r, n,
|
|
86
|
+
const o = T(r, n, a);
|
|
88
87
|
function c(t, u, p) {
|
|
89
88
|
const h = {
|
|
90
89
|
url: e,
|
|
@@ -133,7 +132,7 @@ A.concat("any").forEach(function(r) {
|
|
|
133
132
|
},
|
|
134
133
|
abortRequest() {
|
|
135
134
|
return c(async function(t) {
|
|
136
|
-
throw
|
|
135
|
+
throw i.createAxiosError(
|
|
137
136
|
"Request aborted",
|
|
138
137
|
t,
|
|
139
138
|
void 0,
|
|
@@ -143,7 +142,7 @@ A.concat("any").forEach(function(r) {
|
|
|
143
142
|
},
|
|
144
143
|
abortRequestOnce() {
|
|
145
144
|
return l(async function(t) {
|
|
146
|
-
throw
|
|
145
|
+
throw i.createAxiosError(
|
|
147
146
|
"Request aborted",
|
|
148
147
|
t,
|
|
149
148
|
void 0,
|
|
@@ -153,17 +152,17 @@ A.concat("any").forEach(function(r) {
|
|
|
153
152
|
},
|
|
154
153
|
networkError() {
|
|
155
154
|
return c(async function(t) {
|
|
156
|
-
throw
|
|
155
|
+
throw i.createAxiosError("Network Error", t);
|
|
157
156
|
});
|
|
158
157
|
},
|
|
159
158
|
networkErrorOnce() {
|
|
160
159
|
return l(async function(t) {
|
|
161
|
-
throw
|
|
160
|
+
throw i.createAxiosError("Network Error", t);
|
|
162
161
|
});
|
|
163
162
|
},
|
|
164
163
|
timeout() {
|
|
165
164
|
return c(async function(t) {
|
|
166
|
-
throw
|
|
165
|
+
throw i.createAxiosError(
|
|
167
166
|
t.timeoutErrorMessage || `timeout of ${t.timeout}ms exceeded`,
|
|
168
167
|
t,
|
|
169
168
|
void 0,
|
|
@@ -173,7 +172,7 @@ A.concat("any").forEach(function(r) {
|
|
|
173
172
|
},
|
|
174
173
|
timeoutOnce() {
|
|
175
174
|
return l(async function(t) {
|
|
176
|
-
throw
|
|
175
|
+
throw i.createAxiosError(
|
|
177
176
|
t.timeoutErrorMessage || `timeout of ${t.timeout}ms exceeded`,
|
|
178
177
|
t,
|
|
179
178
|
void 0,
|
|
@@ -187,9 +186,9 @@ A.concat("any").forEach(function(r) {
|
|
|
187
186
|
});
|
|
188
187
|
function M(r, e) {
|
|
189
188
|
let n = -1;
|
|
190
|
-
for (let
|
|
191
|
-
const s = r[
|
|
192
|
-
(!s.method || s.method === e.method) && d &&
|
|
189
|
+
for (let a = 0; a < r.length; a += 1) {
|
|
190
|
+
const s = r[a], d = s.url instanceof RegExp && e.url instanceof RegExp ? String(s.url) === String(e.url) : s.url === e.url;
|
|
191
|
+
(!s.method || s.method === e.method) && d && i.isEqual(s.params, e.params) && i.isEqual(s.data, e.data) && i.isEqual(s.headers, e.headers) && !s.replyOnce && (n = a);
|
|
193
192
|
}
|
|
194
193
|
return n;
|
|
195
194
|
}
|
|
@@ -197,8 +196,8 @@ function y(r, e, n) {
|
|
|
197
196
|
if (r === "any")
|
|
198
197
|
e.push(n);
|
|
199
198
|
else {
|
|
200
|
-
const
|
|
201
|
-
|
|
199
|
+
const a = M(e, n);
|
|
200
|
+
a > -1 && !n.replyOnce ? e.splice(a, 1, n) : e.push(n);
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
203
|
export {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
import "../
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
|
+
import { A as l } from "../chunk/BJvTEV6n.js";
|
|
3
3
|
import a from "./utils.js";
|
|
4
|
-
import l from "../axios/lib/utils.js";
|
|
5
4
|
function u(s, e) {
|
|
6
5
|
let t = e.baseURL;
|
|
7
6
|
return t && !/^https?:/.test(t) && (t = void 0), l.isFunction(s.originalAdapter) ? s.originalAdapter(e) : s.axiosInstanceWithoutInterceptors(
|
|
@@ -18,7 +17,7 @@ function u(s, e) {
|
|
|
18
17
|
function n(s, e) {
|
|
19
18
|
return l.isNumber(e.delay) ? e.delay : s.delayResponse;
|
|
20
19
|
}
|
|
21
|
-
async function
|
|
20
|
+
async function i(s, e) {
|
|
22
21
|
let t = e.url || "";
|
|
23
22
|
e.baseURL && t.substr(0, e.baseURL.length) === e.baseURL && (t = t.slice(e.baseURL.length)), delete e.adapter, s.history.push(e);
|
|
24
23
|
const r = a.findHandler(
|
|
@@ -46,6 +45,6 @@ async function p(s, e) {
|
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
i as default,
|
|
49
|
+
i as request
|
|
51
50
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-07 13:23:48 */
|
|
2
2
|
import O from "lodash/isArrayBuffer.js";
|
|
3
3
|
import b from "lodash/isBuffer.js";
|
|
4
4
|
import d from "lodash/isEqual.js";
|
|
5
|
-
import {
|
|
6
|
-
import o from "../
|
|
5
|
+
import { A as m } from "../chunk/CB3wlosT.js";
|
|
6
|
+
import { A as o } from "../chunk/BJvTEV6n.js";
|
|
7
7
|
function p(t, r) {
|
|
8
8
|
const n = t.length;
|
|
9
9
|
for (let i = 0; i < n; i++) {
|
|
@@ -42,7 +42,8 @@ function y(t, r) {
|
|
|
42
42
|
let n;
|
|
43
43
|
try {
|
|
44
44
|
n = JSON.parse(t);
|
|
45
|
-
} catch {
|
|
45
|
+
} catch (i) {
|
|
46
|
+
console.error(i);
|
|
46
47
|
}
|
|
47
48
|
return f(n || t, r);
|
|
48
49
|
}
|
|
@@ -50,12 +51,12 @@ function M(t, r) {
|
|
|
50
51
|
const n = t.handlers.indexOf(r);
|
|
51
52
|
n > -1 && t.handlers.splice(n, 1);
|
|
52
53
|
}
|
|
53
|
-
function
|
|
54
|
+
function A(t) {
|
|
54
55
|
return O(t) || o.isBuffer(t) || w(t) || N(t) ? t : o.isObject(t) ? JSON.parse(JSON.stringify(t)) : t;
|
|
55
56
|
}
|
|
56
|
-
async function
|
|
57
|
+
async function B(t, r) {
|
|
57
58
|
o.isFunction(t) && (t = await t(r));
|
|
58
|
-
const n = t.status || t[0], i =
|
|
59
|
+
const n = t.status || t[0], i = A(t.data || t[1]), e = t.headers || t[2];
|
|
59
60
|
return t.config && (r = t.config), {
|
|
60
61
|
status: n,
|
|
61
62
|
data: i,
|
|
@@ -64,9 +65,9 @@ async function J(t, r) {
|
|
|
64
65
|
request: { responseURL: r.url }
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
async function
|
|
68
|
+
async function J(t, r, n) {
|
|
68
69
|
n > 0 && await new Promise((e) => setTimeout(e, n));
|
|
69
|
-
const i = await
|
|
70
|
+
const i = await B(r, t);
|
|
70
71
|
if (!i.config.validateStatus || i.config.validateStatus(i.status))
|
|
71
72
|
return i;
|
|
72
73
|
throw g(
|
|
@@ -98,7 +99,7 @@ function g(t, r, n, i) {
|
|
|
98
99
|
};
|
|
99
100
|
}, e;
|
|
100
101
|
}
|
|
101
|
-
function
|
|
102
|
+
function k(t) {
|
|
102
103
|
const r = `Could not find mock for:
|
|
103
104
|
${JSON.stringify(
|
|
104
105
|
{
|
|
@@ -114,7 +115,7 @@ ${JSON.stringify(
|
|
|
114
115
|
}
|
|
115
116
|
const U = {
|
|
116
117
|
createAxiosError: g,
|
|
117
|
-
createCouldNotFindMockError:
|
|
118
|
+
createCouldNotFindMockError: k,
|
|
118
119
|
find: p,
|
|
119
120
|
findHandler: E,
|
|
120
121
|
isBlob: N,
|
|
@@ -122,7 +123,7 @@ const U = {
|
|
|
122
123
|
isBuffer: b,
|
|
123
124
|
isEqual: d,
|
|
124
125
|
purgeIfReplyOnce: M,
|
|
125
|
-
settle:
|
|
126
|
+
settle: J
|
|
126
127
|
};
|
|
127
128
|
export {
|
|
128
129
|
U as default
|
package/case-name/index.js
CHANGED
package/caseName.js
CHANGED
package/class-name/index.js
CHANGED
package/className.js
CHANGED
package/clipboard-copy/index.js
CHANGED
package/clipboardCopy.js
CHANGED
package/constant/address.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* 2025-11-
|
|
1
|
+
/* 2025-11-07 15:27:13 */
|
|
2
2
|
const t = "的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞";
|
|
3
3
|
export {
|
|
4
4
|
t as default
|
package/constant/domain.js
CHANGED
package/constant/emoji.js
CHANGED
package/constant/identity.js
CHANGED
package/constant/index.js
CHANGED
package/constant/keyboardCode.js
CHANGED
package/constant/licensePlate.js
CHANGED
package/constant/name.js
CHANGED
package/constant/platform.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
),
|
|
5
|
-
i
|
|
6
|
-
)) && ("ontouchend" in document || "ontouchend" in window), l = ["fullscreen", "standalone", "minimal-ui"].some((e) => window.matchMedia(`(display-mode: ${e})`).matches) || window.navigator.standalone === !0, u = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1
|
+
/* 2025-11-07 15:27:13 */
|
|
2
|
+
const n = navigator.userAgent.toLowerCase(), e = ("ontouchstart" in document || "ontouchstart" in window) && ("ontouchend" in document || "ontouchend" in window), a = window.__wxjs_environment === "miniprogram" || !!window.wx?.getSystemInfoSync, r = /micromessenger/i.test(n), c = /dingtalk/i.test(n), d = /alipay|aliapp/i.test(n), o = /ipad|iphone|ipod/i.test(n), t = /android/i.test(n), w = /openharmony/i.test(n), s = /macintosh|mac os x/i.test(n), m = o || s, p = /windows|win32|win64|wow64/i.test(n), u = e && (o || t || /windows phone|blackberry|mobile|webos|iemobile|opera (mini|mobi)/i.test(
|
|
3
|
+
n
|
|
4
|
+
)), l = ["fullscreen", "standalone", "minimal-ui"].some((i) => window.matchMedia(`(display-mode: ${i})`).matches) || window.navigator.standalone === !0, h = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
7
5
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
d as isAlipayBrowser,
|
|
7
|
+
t as isAndroidOS,
|
|
8
|
+
m as isAppleDevice,
|
|
9
|
+
h as isBrowser,
|
|
10
|
+
c as isDingtalkBrowser,
|
|
13
11
|
w as isHarmony,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
o as isIOS_OS,
|
|
13
|
+
s as isMacOS,
|
|
14
|
+
u as isMobileDevice,
|
|
17
15
|
l as isPWA,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
e as isTouchSupport,
|
|
17
|
+
r as isWeChatBrowser,
|
|
18
|
+
a as isWeChatMiniProgram,
|
|
19
|
+
p as isWindowsOS
|
|
21
20
|
};
|
package/constant/protocol.js
CHANGED
package/constant/ui.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/* 2025-11-
|
|
2
|
-
const
|
|
1
|
+
/* 2025-11-07 15:27:13 */
|
|
2
|
+
const t = "pc", I = "mobile", _ = "pqbc", o = "pqb-common", c = `${_}-theme-light`, e = `${_}-theme-dark`, E = "pqb", n = "pqb-pc", A = `${E}-theme-light`, C = `${E}-theme-dark`, M = "pqbm", s = "pqb-mobile", L = `${M}-theme-light`, O = `${M}-theme-dark`;
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
I as MOBILE_KEY,
|
|
5
|
+
t as PC_KEY,
|
|
6
|
+
o as UI_COMMON_KEY,
|
|
7
|
+
_ as UI_COMMON_PREFIX,
|
|
8
|
+
e as UI_COMMON_THEME_DARK_CLASS_NAME,
|
|
9
|
+
c as UI_COMMON_THEME_LIGHT_CLASS_NAME,
|
|
10
|
+
s as UI_MOBILE_KEY,
|
|
11
|
+
M as UI_MOBILE_PREFIX,
|
|
12
|
+
O as UI_MOBILE_THEME_DARK_CLASS_NAME,
|
|
13
|
+
L as UI_MOBILE_THEME_LIGHT_CLASS_NAME,
|
|
14
|
+
n as UI_PC_KEY,
|
|
15
|
+
E as UI_PC_PREFIX,
|
|
16
|
+
C as UI_PC_THEME_DARK_CLASS_NAME,
|
|
17
|
+
A as UI_PC_THEME_LIGHT_CLASS_NAME
|
|
18
18
|
};
|
package/constant.js
CHANGED