yahee-components 0.0.113 → 0.0.115
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/es/annex-upload/annex-upload.vue.js +55 -0
- package/es/annex-upload/annex-upload.vue2.js +121 -0
- package/es/annex-upload/index.js +7 -0
- package/es/annex-upload/mimeType.js +822 -0
- package/es/annex-upload/style/index.css +7 -0
- package/es/border-wrap/border-wrap.vue.js +75 -0
- package/es/border-wrap/border-wrap.vue2.js +48 -0
- package/es/border-wrap/index.js +7 -0
- package/es/border-wrap/props.js +11 -0
- package/es/border-wrap/style/index.css +24 -0
- package/es/common-import/common-import.vue.js +394 -0
- package/es/common-import/common-import.vue2.js +366 -0
- package/es/common-import/index.js +7 -0
- package/es/common-import/props.js +23 -0
- package/es/common-import/style/index.css +32 -0
- package/es/complex-search/batch-search-dialog.vue.js +119 -0
- package/es/complex-search/batch-search-dialog.vue2.js +50 -0
- package/es/complex-search/complex-search.vue.js +122 -0
- package/es/complex-search/complex-search.vue2.js +71 -0
- package/es/complex-search/index.js +7 -0
- package/es/complex-search/props.js +19 -0
- package/es/complex-search/style/index.css +24 -0
- package/es/complex-search/useComplexSearch.js +44 -0
- package/es/copy/copy.vue.js +39 -0
- package/es/copy/copy.vue2.js +36 -0
- package/es/copy/index.js +7 -0
- package/es/copy/props.js +9 -0
- package/es/copy/style/index.css +12 -0
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
- package/es/country-platform-shop-condition/index.js +7 -0
- package/es/country-platform-shop-condition/style/index.css +59 -0
- package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
- package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
- package/es/drop-down-condition/index.js +7 -0
- package/es/drop-down-condition/style/index.css +64 -0
- package/es/echart-gauge/echart-gauge.vue.js +14 -0
- package/es/echart-gauge/echart-gauge.vue2.js +149 -0
- package/es/echart-gauge/index.js +7 -0
- package/es/echart-gauge/props.js +9 -0
- package/es/echart-gauge/style/index.css +4 -0
- package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
- package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
- package/es/file-download-wrapper/index.js +7 -0
- package/es/file-download-wrapper/key.js +17 -0
- package/es/file-download-wrapper/props.js +12 -0
- package/es/file-download-wrapper/style/index.css +66 -0
- package/es/filter-container/filter-container.vue.js +24 -0
- package/es/filter-container/filter-container.vue2.js +61 -0
- package/es/filter-container/index.js +7 -0
- package/es/filter-container/key.js +4 -0
- package/es/filter-container/props.js +11 -0
- package/es/filter-container/style/index.css +16 -0
- package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
- package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
- package/es/filter-wrapper/index.js +7 -0
- package/es/filter-wrapper/props.js +10 -0
- package/es/filter-wrapper/style/index.css +3 -0
- package/es/height-collapse/height-collapse.vue.js +26 -0
- package/es/height-collapse/height-collapse.vue2.js +44 -0
- package/es/height-collapse/index.js +7 -0
- package/es/height-collapse/props.js +11 -0
- package/es/height-collapse/style/index.css +32 -0
- package/es/help-tag/help-tag.vue.js +46 -0
- package/es/help-tag/help-tag.vue2.js +51 -0
- package/es/help-tag/index.js +7 -0
- package/es/help-tag/props.js +9 -0
- package/es/help-tag/style/index.css +8 -0
- package/es/image-upload/image-upload.vue.js +116 -0
- package/es/image-upload/image-upload.vue2.js +93 -0
- package/es/image-upload/index.js +7 -0
- package/es/image-upload/style/index.css +33 -0
- package/es/index.js +63 -0
- package/es/installs.js +41 -0
- package/es/left-condition/index.js +7 -0
- package/es/left-condition/left-condition-sub.vue.js +36 -0
- package/es/left-condition/left-condition-sub.vue2.js +78 -0
- package/es/left-condition/left-condition.vue.js +77 -0
- package/es/left-condition/left-condition.vue2.js +162 -0
- package/es/left-condition/style/index.css +10 -0
- package/es/left-condition-enum/index.js +7 -0
- package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
- package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
- package/es/left-condition-enum/style/index.css +10 -0
- package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +99 -0
- package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +22 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
- package/es/operation-log/operation-log.vue2.js +88 -77
- package/lib/annex-upload/style/index.css +7 -0
- package/lib/border-wrap/style/index.css +24 -0
- package/lib/common-import/style/index.css +32 -0
- package/lib/complex-search/style/index.css +24 -0
- package/lib/copy/style/index.css +12 -0
- package/lib/country-platform-shop-condition/style/index.css +59 -0
- package/lib/drop-down-condition/style/index.css +64 -0
- package/lib/echart-gauge/style/index.css +4 -0
- package/lib/file-download-wrapper/style/index.css +66 -0
- package/lib/filter-container/style/index.css +16 -0
- package/lib/filter-wrapper/style/index.css +3 -0
- package/lib/height-collapse/style/index.css +32 -0
- package/lib/help-tag/style/index.css +8 -0
- package/lib/image-upload/style/index.css +33 -0
- package/lib/left-condition/style/index.css +10 -0
- package/lib/left-condition-enum/style/index.css +10 -0
- package/lib/operation-log/style/index.css +234 -0
- package/lib/scale-screen/style/index.css +0 -0
- package/lib/style.css +1405 -0
- package/lib/styles/custom.css +82 -0
- package/lib/styles/globals.css +699 -0
- package/lib/styles/index.css +753 -0
- package/lib/styles/variables.css +34 -0
- package/package.json +1 -1
- package/types/src/operation-log/operation-log.vue.d.ts +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import u from "../utils.js";
|
|
2
|
+
function f(e) {
|
|
3
|
+
return u.matchAll(/\w+|\[(\w*)]/g, e).map((o) => o[0] === "[]" ? "" : o[1] || o[0]);
|
|
4
|
+
}
|
|
5
|
+
function y(e) {
|
|
6
|
+
const o = {}, r = Object.keys(e);
|
|
7
|
+
let i;
|
|
8
|
+
const n = r.length;
|
|
9
|
+
let c;
|
|
10
|
+
for (i = 0; i < n; i++)
|
|
11
|
+
c = r[i], o[c] = e[c];
|
|
12
|
+
return o;
|
|
13
|
+
}
|
|
14
|
+
function m(e) {
|
|
15
|
+
function o(r, i, n, c) {
|
|
16
|
+
let s = r[c++];
|
|
17
|
+
if (s === "__proto__") return !0;
|
|
18
|
+
const t = Number.isFinite(+s), l = c >= r.length;
|
|
19
|
+
return s = !s && u.isArray(n) ? n.length : s, l ? (u.hasOwnProp(n, s) ? n[s] = [n[s], i] : n[s] = i, !t) : ((!n[s] || !u.isObject(n[s])) && (n[s] = []), o(r, i, n[s], c) && u.isArray(n[s]) && (n[s] = y(n[s])), !t);
|
|
20
|
+
}
|
|
21
|
+
if (u.isFormData(e) && u.isFunction(e.entries)) {
|
|
22
|
+
const r = {};
|
|
23
|
+
return u.forEachEntry(e, (i, n) => {
|
|
24
|
+
o(f(i), n, r, 0);
|
|
25
|
+
}), r;
|
|
26
|
+
}
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
m as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import o from "../platform/index.js";
|
|
2
|
+
const n = o.hasStandardBrowserEnv ? /* @__PURE__ */ ((r, e) => (t) => (t = new URL(t, o.origin), r.protocol === t.protocol && r.host === t.host && (e || r.port === t.port)))(
|
|
3
|
+
new URL(o.origin),
|
|
4
|
+
o.navigator && /(msie|trident)/i.test(o.navigator.userAgent)
|
|
5
|
+
) : () => !0;
|
|
6
|
+
export {
|
|
7
|
+
n as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import n from "../utils.js";
|
|
2
|
+
const a = n.toObjectSet([
|
|
3
|
+
"age",
|
|
4
|
+
"authorization",
|
|
5
|
+
"content-length",
|
|
6
|
+
"content-type",
|
|
7
|
+
"etag",
|
|
8
|
+
"expires",
|
|
9
|
+
"from",
|
|
10
|
+
"host",
|
|
11
|
+
"if-modified-since",
|
|
12
|
+
"if-unmodified-since",
|
|
13
|
+
"last-modified",
|
|
14
|
+
"location",
|
|
15
|
+
"max-forwards",
|
|
16
|
+
"proxy-authorization",
|
|
17
|
+
"referer",
|
|
18
|
+
"retry-after",
|
|
19
|
+
"user-agent"
|
|
20
|
+
]), u = (s) => {
|
|
21
|
+
const t = {};
|
|
22
|
+
let e, r, i;
|
|
23
|
+
return s && s.split(`
|
|
24
|
+
`).forEach(function(o) {
|
|
25
|
+
i = o.indexOf(":"), e = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!e || t[e] && a[e]) && (e === "set-cookie" ? t[e] ? t[e].push(r) : t[e] = [r] : t[e] = t[e] ? t[e] + ", " + r : r);
|
|
26
|
+
}), t;
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
u as default
|
|
30
|
+
};
|
package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import i from "./speedometer.js";
|
|
2
|
+
import m from "./throttle.js";
|
|
3
|
+
import f from "../utils.js";
|
|
4
|
+
const h = (t, o, a = 3) => {
|
|
5
|
+
let r = 0;
|
|
6
|
+
const c = i(50, 250);
|
|
7
|
+
return m((s) => {
|
|
8
|
+
const n = s.loaded, e = s.lengthComputable ? s.total : void 0, l = n - r, d = c(l), p = n <= e;
|
|
9
|
+
r = n;
|
|
10
|
+
const u = {
|
|
11
|
+
loaded: n,
|
|
12
|
+
total: e,
|
|
13
|
+
progress: e ? n / e : void 0,
|
|
14
|
+
bytes: l,
|
|
15
|
+
rate: d || void 0,
|
|
16
|
+
estimated: d && e && p ? (e - n) / d : void 0,
|
|
17
|
+
event: s,
|
|
18
|
+
lengthComputable: e != null,
|
|
19
|
+
[o ? "download" : "upload"]: !0
|
|
20
|
+
};
|
|
21
|
+
t(u);
|
|
22
|
+
}, a);
|
|
23
|
+
}, v = (t, o) => {
|
|
24
|
+
const a = t != null;
|
|
25
|
+
return [(r) => o[0]({
|
|
26
|
+
lengthComputable: a,
|
|
27
|
+
total: t,
|
|
28
|
+
loaded: r
|
|
29
|
+
}), o[1]];
|
|
30
|
+
}, C = (t) => (...o) => f.asap(() => t(...o));
|
|
31
|
+
export {
|
|
32
|
+
C as asyncDecorator,
|
|
33
|
+
v as progressEventDecorator,
|
|
34
|
+
h as progressEventReducer
|
|
35
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import n from "../platform/index.js";
|
|
2
|
+
import l from "../utils.js";
|
|
3
|
+
import h from "./isURLSameOrigin.js";
|
|
4
|
+
import c from "./cookies.js";
|
|
5
|
+
import w from "../core/buildFullPath.js";
|
|
6
|
+
import C from "../core/mergeConfig.js";
|
|
7
|
+
import b from "../core/AxiosHeaders.js";
|
|
8
|
+
import S from "./buildURL.js";
|
|
9
|
+
const v = (s) => {
|
|
10
|
+
const e = C({}, s);
|
|
11
|
+
let { data: p, withXSRFToken: o, xsrfHeaderName: m, xsrfCookieName: f, headers: r, auth: t } = e;
|
|
12
|
+
e.headers = r = b.from(r), e.url = S(w(e.baseURL, e.url, e.allowAbsoluteUrls), s.params, s.paramsSerializer), t && r.set(
|
|
13
|
+
"Authorization",
|
|
14
|
+
"Basic " + btoa((t.username || "") + ":" + (t.password ? unescape(encodeURIComponent(t.password)) : ""))
|
|
15
|
+
);
|
|
16
|
+
let i;
|
|
17
|
+
if (l.isFormData(p)) {
|
|
18
|
+
if (n.hasStandardBrowserEnv || n.hasStandardBrowserWebWorkerEnv)
|
|
19
|
+
r.setContentType(void 0);
|
|
20
|
+
else if ((i = r.getContentType()) !== !1) {
|
|
21
|
+
const [a, ...d] = i ? i.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
|
22
|
+
r.setContentType([a || "multipart/form-data", ...d].join("; "));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (n.hasStandardBrowserEnv && (o && l.isFunction(o) && (o = o(e)), o || o !== !1 && h(e.url))) {
|
|
26
|
+
const a = m && f && c.read(f);
|
|
27
|
+
a && r.set(m, a);
|
|
28
|
+
}
|
|
29
|
+
return e;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
v as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function y(t, n) {
|
|
2
|
+
t = t || 10;
|
|
3
|
+
const c = new Array(t), o = new Array(t);
|
|
4
|
+
let e = 0, r = 0, i;
|
|
5
|
+
return n = n !== void 0 ? n : 1e3, function(h) {
|
|
6
|
+
const d = Date.now(), a = o[r];
|
|
7
|
+
i || (i = d), c[e] = h, o[e] = d;
|
|
8
|
+
let f = r, u = 0;
|
|
9
|
+
for (; f !== e; )
|
|
10
|
+
u += c[f++], f = f % t;
|
|
11
|
+
if (e = (e + 1) % t, e === r && (r = (r + 1) % t), d - i < n)
|
|
12
|
+
return;
|
|
13
|
+
const w = a && d - a;
|
|
14
|
+
return w ? Math.round(u * 1e3 / w) : void 0;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
y as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function h(r, a) {
|
|
2
|
+
let s = 0, u = 1e3 / a, e, t;
|
|
3
|
+
const n = (l, o = Date.now()) => {
|
|
4
|
+
s = o, e = null, t && (clearTimeout(t), t = null), r.apply(null, l);
|
|
5
|
+
};
|
|
6
|
+
return [(...l) => {
|
|
7
|
+
const o = Date.now(), i = o - s;
|
|
8
|
+
i >= u ? n(l, o) : (e = l, t || (t = setTimeout(() => {
|
|
9
|
+
t = null, n(e);
|
|
10
|
+
}, u - i)));
|
|
11
|
+
}, () => e && n(e)];
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
h as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import t from "../utils.js";
|
|
2
|
+
import E from "../core/AxiosError.js";
|
|
3
|
+
function B(i) {
|
|
4
|
+
return t.isPlainObject(i) || t.isArray(i);
|
|
5
|
+
}
|
|
6
|
+
function h(i) {
|
|
7
|
+
return t.endsWith(i, "[]") ? i.slice(0, -2) : i;
|
|
8
|
+
}
|
|
9
|
+
function O(i, e, s) {
|
|
10
|
+
return i ? i.concat(e).map(function(o, d) {
|
|
11
|
+
return o = h(o), !s && d ? "[" + o + "]" : o;
|
|
12
|
+
}).join(s ? "." : "") : e;
|
|
13
|
+
}
|
|
14
|
+
function T(i) {
|
|
15
|
+
return t.isArray(i) && !i.some(B);
|
|
16
|
+
}
|
|
17
|
+
const S = t.toFlatObject(t, {}, null, function(e) {
|
|
18
|
+
return /^is[A-Z]/.test(e);
|
|
19
|
+
});
|
|
20
|
+
function W(i, e, s) {
|
|
21
|
+
if (!t.isObject(i))
|
|
22
|
+
throw new TypeError("target must be an object");
|
|
23
|
+
e = e || new FormData(), s = t.toFlatObject(s, {
|
|
24
|
+
metaTokens: !0,
|
|
25
|
+
dots: !1,
|
|
26
|
+
indexes: !1
|
|
27
|
+
}, !1, function(n, u) {
|
|
28
|
+
return !t.isUndefined(u[n]);
|
|
29
|
+
});
|
|
30
|
+
const p = s.metaTokens, o = s.visitor || j, d = s.dots, m = s.indexes, w = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
|
|
31
|
+
if (!t.isFunction(o))
|
|
32
|
+
throw new TypeError("visitor must be a function");
|
|
33
|
+
function l(r) {
|
|
34
|
+
if (r === null) return "";
|
|
35
|
+
if (t.isDate(r))
|
|
36
|
+
return r.toISOString();
|
|
37
|
+
if (t.isBoolean(r))
|
|
38
|
+
return r.toString();
|
|
39
|
+
if (!w && t.isBlob(r))
|
|
40
|
+
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
41
|
+
return t.isArrayBuffer(r) || t.isTypedArray(r) ? w && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
|
|
42
|
+
}
|
|
43
|
+
function j(r, n, u) {
|
|
44
|
+
let f = r;
|
|
45
|
+
if (r && !u && typeof r == "object") {
|
|
46
|
+
if (t.endsWith(n, "{}"))
|
|
47
|
+
n = p ? n : n.slice(0, -2), r = JSON.stringify(r);
|
|
48
|
+
else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (f = t.toArray(r)))
|
|
49
|
+
return n = h(n), f.forEach(function(b, x) {
|
|
50
|
+
!(t.isUndefined(b) || b === null) && e.append(
|
|
51
|
+
// eslint-disable-next-line no-nested-ternary
|
|
52
|
+
m === !0 ? O([n], x, d) : m === null ? n : n + "[]",
|
|
53
|
+
l(b)
|
|
54
|
+
);
|
|
55
|
+
}), !1;
|
|
56
|
+
}
|
|
57
|
+
return B(r) ? !0 : (e.append(O(u, n, d), l(r)), !1);
|
|
58
|
+
}
|
|
59
|
+
const a = [], F = Object.assign(S, {
|
|
60
|
+
defaultVisitor: j,
|
|
61
|
+
convertValue: l,
|
|
62
|
+
isVisitable: B
|
|
63
|
+
});
|
|
64
|
+
function A(r, n) {
|
|
65
|
+
if (!t.isUndefined(r)) {
|
|
66
|
+
if (a.indexOf(r) !== -1)
|
|
67
|
+
throw Error("Circular reference detected in " + n.join("."));
|
|
68
|
+
a.push(r), t.forEach(r, function(f, c) {
|
|
69
|
+
(!(t.isUndefined(f) || f === null) && o.call(
|
|
70
|
+
e,
|
|
71
|
+
f,
|
|
72
|
+
t.isString(c) ? c.trim() : c,
|
|
73
|
+
n,
|
|
74
|
+
F
|
|
75
|
+
)) === !0 && A(f, n ? n.concat(c) : [c]);
|
|
76
|
+
}), a.pop();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (!t.isObject(i))
|
|
80
|
+
throw new TypeError("data must be an object");
|
|
81
|
+
return A(i), e;
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
W as default
|
|
85
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "../utils.js";
|
|
2
|
+
import n from "./toFormData.js";
|
|
3
|
+
import r from "../platform/index.js";
|
|
4
|
+
function c(o, i) {
|
|
5
|
+
return n(o, new r.classes.URLSearchParams(), Object.assign({
|
|
6
|
+
visitor: function(t, s, f, a) {
|
|
7
|
+
return r.isNode && e.isBuffer(t) ? (this.append(s, t.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
8
|
+
}
|
|
9
|
+
}, i));
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const f = function* (e, t) {
|
|
2
|
+
let n = e.byteLength;
|
|
3
|
+
if (n < t) {
|
|
4
|
+
yield e;
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
let a = 0, r;
|
|
8
|
+
for (; a < n; )
|
|
9
|
+
r = a + t, yield e.slice(a, r), a = r;
|
|
10
|
+
}, w = async function* (e, t) {
|
|
11
|
+
for await (const n of b(e))
|
|
12
|
+
yield* f(n, t);
|
|
13
|
+
}, b = async function* (e) {
|
|
14
|
+
if (e[Symbol.asyncIterator]) {
|
|
15
|
+
yield* e;
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const t = e.getReader();
|
|
19
|
+
try {
|
|
20
|
+
for (; ; ) {
|
|
21
|
+
const { done: n, value: a } = await t.read();
|
|
22
|
+
if (n)
|
|
23
|
+
break;
|
|
24
|
+
yield a;
|
|
25
|
+
}
|
|
26
|
+
} finally {
|
|
27
|
+
await t.cancel();
|
|
28
|
+
}
|
|
29
|
+
}, h = (e, t, n, a) => {
|
|
30
|
+
const r = w(e, t);
|
|
31
|
+
let d = 0, o, c = (l) => {
|
|
32
|
+
o || (o = !0, a && a(l));
|
|
33
|
+
};
|
|
34
|
+
return new ReadableStream({
|
|
35
|
+
async pull(l) {
|
|
36
|
+
try {
|
|
37
|
+
const { done: i, value: y } = await r.next();
|
|
38
|
+
if (i) {
|
|
39
|
+
c(), l.close();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
let s = y.byteLength;
|
|
43
|
+
if (n) {
|
|
44
|
+
let u = d += s;
|
|
45
|
+
n(u);
|
|
46
|
+
}
|
|
47
|
+
l.enqueue(new Uint8Array(y));
|
|
48
|
+
} catch (i) {
|
|
49
|
+
throw c(i), i;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
cancel(l) {
|
|
53
|
+
return c(l), r.return();
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
highWaterMark: 2
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
w as readBytes,
|
|
61
|
+
f as streamChunk,
|
|
62
|
+
h as trackStream
|
|
63
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { VERSION as w } from "../env/data.js";
|
|
2
|
+
import s from "../core/AxiosError.js";
|
|
3
|
+
const l = {};
|
|
4
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, t) => {
|
|
5
|
+
l[n] = function(o) {
|
|
6
|
+
return typeof o === n || "a" + (t < 1 ? "n " : " ") + n;
|
|
7
|
+
};
|
|
8
|
+
});
|
|
9
|
+
const f = {};
|
|
10
|
+
l.transitional = function(t, i, o) {
|
|
11
|
+
function a(r, e) {
|
|
12
|
+
return "[Axios v" + w + "] Transitional option '" + r + "'" + e + (o ? ". " + o : "");
|
|
13
|
+
}
|
|
14
|
+
return (r, e, u) => {
|
|
15
|
+
if (t === !1)
|
|
16
|
+
throw new s(
|
|
17
|
+
a(e, " has been removed" + (i ? " in " + i : "")),
|
|
18
|
+
s.ERR_DEPRECATED
|
|
19
|
+
);
|
|
20
|
+
return i && !f[e] && (f[e] = !0, console.warn(
|
|
21
|
+
a(
|
|
22
|
+
e,
|
|
23
|
+
" has been deprecated since v" + i + " and will be removed in the near future"
|
|
24
|
+
)
|
|
25
|
+
)), t ? t(r, e, u) : !0;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
l.spelling = function(t) {
|
|
29
|
+
return (i, o) => (console.warn(`${o} is likely a misspelling of ${t}`), !0);
|
|
30
|
+
};
|
|
31
|
+
function b(n, t, i) {
|
|
32
|
+
if (typeof n != "object")
|
|
33
|
+
throw new s("options must be an object", s.ERR_BAD_OPTION_VALUE);
|
|
34
|
+
const o = Object.keys(n);
|
|
35
|
+
let a = o.length;
|
|
36
|
+
for (; a-- > 0; ) {
|
|
37
|
+
const r = o[a], e = t[r];
|
|
38
|
+
if (e) {
|
|
39
|
+
const u = n[r], c = u === void 0 || e(u, r, n);
|
|
40
|
+
if (c !== !0)
|
|
41
|
+
throw new s("option " + r + " must be " + c, s.ERR_BAD_OPTION_VALUE);
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
if (i !== !0)
|
|
45
|
+
throw new s("Unknown option " + r, s.ERR_BAD_OPTION);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const m = {
|
|
49
|
+
assertOptions: b,
|
|
50
|
+
validators: l
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
m as default
|
|
54
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import o from "./classes/URLSearchParams.js";
|
|
2
|
+
import r from "./classes/FormData.js";
|
|
3
|
+
import t from "./classes/Blob.js";
|
|
4
|
+
const l = {
|
|
5
|
+
isBrowser: !0,
|
|
6
|
+
classes: {
|
|
7
|
+
URLSearchParams: o,
|
|
8
|
+
FormData: r,
|
|
9
|
+
Blob: t
|
|
10
|
+
},
|
|
11
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
l as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
2
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
|
|
3
|
+
export {
|
|
4
|
+
e as hasBrowserEnv,
|
|
5
|
+
n as hasStandardBrowserEnv,
|
|
6
|
+
t as hasStandardBrowserWebWorkerEnv,
|
|
7
|
+
o as navigator,
|
|
8
|
+
r as origin
|
|
9
|
+
};
|