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.
Files changed (176) hide show
  1. package/es/annex-upload/annex-upload.vue.js +55 -0
  2. package/es/annex-upload/annex-upload.vue2.js +121 -0
  3. package/es/annex-upload/index.js +7 -0
  4. package/es/annex-upload/mimeType.js +822 -0
  5. package/es/annex-upload/style/index.css +7 -0
  6. package/es/border-wrap/border-wrap.vue.js +75 -0
  7. package/es/border-wrap/border-wrap.vue2.js +48 -0
  8. package/es/border-wrap/index.js +7 -0
  9. package/es/border-wrap/props.js +11 -0
  10. package/es/border-wrap/style/index.css +24 -0
  11. package/es/common-import/common-import.vue.js +394 -0
  12. package/es/common-import/common-import.vue2.js +366 -0
  13. package/es/common-import/index.js +7 -0
  14. package/es/common-import/props.js +23 -0
  15. package/es/common-import/style/index.css +32 -0
  16. package/es/complex-search/batch-search-dialog.vue.js +119 -0
  17. package/es/complex-search/batch-search-dialog.vue2.js +50 -0
  18. package/es/complex-search/complex-search.vue.js +122 -0
  19. package/es/complex-search/complex-search.vue2.js +71 -0
  20. package/es/complex-search/index.js +7 -0
  21. package/es/complex-search/props.js +19 -0
  22. package/es/complex-search/style/index.css +24 -0
  23. package/es/complex-search/useComplexSearch.js +44 -0
  24. package/es/copy/copy.vue.js +39 -0
  25. package/es/copy/copy.vue2.js +36 -0
  26. package/es/copy/index.js +7 -0
  27. package/es/copy/props.js +9 -0
  28. package/es/copy/style/index.css +12 -0
  29. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
  30. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
  31. package/es/country-platform-shop-condition/index.js +7 -0
  32. package/es/country-platform-shop-condition/style/index.css +59 -0
  33. package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
  34. package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
  35. package/es/drop-down-condition/index.js +7 -0
  36. package/es/drop-down-condition/style/index.css +64 -0
  37. package/es/echart-gauge/echart-gauge.vue.js +14 -0
  38. package/es/echart-gauge/echart-gauge.vue2.js +149 -0
  39. package/es/echart-gauge/index.js +7 -0
  40. package/es/echart-gauge/props.js +9 -0
  41. package/es/echart-gauge/style/index.css +4 -0
  42. package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
  43. package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
  44. package/es/file-download-wrapper/index.js +7 -0
  45. package/es/file-download-wrapper/key.js +17 -0
  46. package/es/file-download-wrapper/props.js +12 -0
  47. package/es/file-download-wrapper/style/index.css +66 -0
  48. package/es/filter-container/filter-container.vue.js +24 -0
  49. package/es/filter-container/filter-container.vue2.js +61 -0
  50. package/es/filter-container/index.js +7 -0
  51. package/es/filter-container/key.js +4 -0
  52. package/es/filter-container/props.js +11 -0
  53. package/es/filter-container/style/index.css +16 -0
  54. package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
  55. package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
  56. package/es/filter-wrapper/index.js +7 -0
  57. package/es/filter-wrapper/props.js +10 -0
  58. package/es/filter-wrapper/style/index.css +3 -0
  59. package/es/height-collapse/height-collapse.vue.js +26 -0
  60. package/es/height-collapse/height-collapse.vue2.js +44 -0
  61. package/es/height-collapse/index.js +7 -0
  62. package/es/height-collapse/props.js +11 -0
  63. package/es/height-collapse/style/index.css +32 -0
  64. package/es/help-tag/help-tag.vue.js +46 -0
  65. package/es/help-tag/help-tag.vue2.js +51 -0
  66. package/es/help-tag/index.js +7 -0
  67. package/es/help-tag/props.js +9 -0
  68. package/es/help-tag/style/index.css +8 -0
  69. package/es/image-upload/image-upload.vue.js +116 -0
  70. package/es/image-upload/image-upload.vue2.js +93 -0
  71. package/es/image-upload/index.js +7 -0
  72. package/es/image-upload/style/index.css +33 -0
  73. package/es/index.js +63 -0
  74. package/es/installs.js +41 -0
  75. package/es/left-condition/index.js +7 -0
  76. package/es/left-condition/left-condition-sub.vue.js +36 -0
  77. package/es/left-condition/left-condition-sub.vue2.js +78 -0
  78. package/es/left-condition/left-condition.vue.js +77 -0
  79. package/es/left-condition/left-condition.vue2.js +162 -0
  80. package/es/left-condition/style/index.css +10 -0
  81. package/es/left-condition-enum/index.js +7 -0
  82. package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
  83. package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
  84. package/es/left-condition-enum/style/index.css +10 -0
  85. 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
  86. 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
  87. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
  88. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
  89. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
  90. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
  91. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
  92. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  93. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  94. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
  137. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  138. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
  139. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
  140. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
  141. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
  142. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
  143. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
  144. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
  145. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
  151. package/es/operation-log/operation-log.vue2.js +88 -77
  152. package/lib/annex-upload/style/index.css +7 -0
  153. package/lib/border-wrap/style/index.css +24 -0
  154. package/lib/common-import/style/index.css +32 -0
  155. package/lib/complex-search/style/index.css +24 -0
  156. package/lib/copy/style/index.css +12 -0
  157. package/lib/country-platform-shop-condition/style/index.css +59 -0
  158. package/lib/drop-down-condition/style/index.css +64 -0
  159. package/lib/echart-gauge/style/index.css +4 -0
  160. package/lib/file-download-wrapper/style/index.css +66 -0
  161. package/lib/filter-container/style/index.css +16 -0
  162. package/lib/filter-wrapper/style/index.css +3 -0
  163. package/lib/height-collapse/style/index.css +32 -0
  164. package/lib/help-tag/style/index.css +8 -0
  165. package/lib/image-upload/style/index.css +33 -0
  166. package/lib/left-condition/style/index.css +10 -0
  167. package/lib/left-condition-enum/style/index.css +10 -0
  168. package/lib/operation-log/style/index.css +234 -0
  169. package/lib/scale-screen/style/index.css +0 -0
  170. package/lib/style.css +1405 -0
  171. package/lib/styles/custom.css +82 -0
  172. package/lib/styles/globals.css +699 -0
  173. package/lib/styles/index.css +753 -0
  174. package/lib/styles/variables.css +34 -0
  175. package/package.json +1 -1
  176. package/types/src/operation-log/operation-log.vue.d.ts +2 -2
@@ -0,0 +1,141 @@
1
+ import D from "../platform/index.js";
2
+ import r from "../utils.js";
3
+ import l from "../core/AxiosError.js";
4
+ import H from "../helpers/composeSignals.js";
5
+ import { trackStream as P } from "../helpers/trackStream.js";
6
+ import K from "../core/AxiosHeaders.js";
7
+ import { progressEventDecorator as A, progressEventReducer as O, asyncDecorator as _ } from "../helpers/progressEventReducer.js";
8
+ import z from "../helpers/resolveConfig.js";
9
+ import j from "../core/settle.js";
10
+ const w = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", F = w && typeof ReadableStream == "function", I = w && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), N = (e, ...t) => {
11
+ try {
12
+ return !!e(...t);
13
+ } catch {
14
+ return !1;
15
+ }
16
+ }, J = F && N(() => {
17
+ let e = !1;
18
+ const t = new Request(D.origin, {
19
+ body: new ReadableStream(),
20
+ method: "POST",
21
+ get duplex() {
22
+ return e = !0, "half";
23
+ }
24
+ }).headers.has("Content-Type");
25
+ return e && !t;
26
+ }), B = 64 * 1024, T = F && N(() => r.isReadableStream(new Response("").body)), g = {
27
+ stream: T && ((e) => e.body)
28
+ };
29
+ w && ((e) => {
30
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
31
+ !g[t] && (g[t] = r.isFunction(e[t]) ? (s) => s[t]() : (s, u) => {
32
+ throw new l(`Response type '${t}' is not supported`, l.ERR_NOT_SUPPORT, u);
33
+ });
34
+ });
35
+ })(new Response());
36
+ const V = async (e) => {
37
+ if (e == null)
38
+ return 0;
39
+ if (r.isBlob(e))
40
+ return e.size;
41
+ if (r.isSpecCompliantForm(e))
42
+ return (await new Request(D.origin, {
43
+ method: "POST",
44
+ body: e
45
+ }).arrayBuffer()).byteLength;
46
+ if (r.isArrayBufferView(e) || r.isArrayBuffer(e))
47
+ return e.byteLength;
48
+ if (r.isURLSearchParams(e) && (e = e + ""), r.isString(e))
49
+ return (await I(e)).byteLength;
50
+ }, W = async (e, t) => {
51
+ const s = r.toFiniteNumber(e.getContentLength());
52
+ return s ?? V(t);
53
+ }, re = w && (async (e) => {
54
+ let {
55
+ url: t,
56
+ method: s,
57
+ data: u,
58
+ signal: U,
59
+ cancelToken: x,
60
+ timeout: v,
61
+ onDownloadProgress: R,
62
+ onUploadProgress: b,
63
+ responseType: n,
64
+ headers: y,
65
+ withCredentials: m = "same-origin",
66
+ fetchOptions: E
67
+ } = z(e);
68
+ n = n ? (n + "").toLowerCase() : "text";
69
+ let d = H([U, x && x.toAbortSignal()], v), f;
70
+ const c = d && d.unsubscribe && (() => {
71
+ d.unsubscribe();
72
+ });
73
+ let C;
74
+ try {
75
+ if (b && J && s !== "get" && s !== "head" && (C = await W(y, u)) !== 0) {
76
+ let i = new Request(t, {
77
+ method: "POST",
78
+ body: u,
79
+ duplex: "half"
80
+ }), p;
81
+ if (r.isFormData(u) && (p = i.headers.get("content-type")) && y.setContentType(p), i.body) {
82
+ const [S, h] = A(
83
+ C,
84
+ O(_(b))
85
+ );
86
+ u = P(i.body, B, S, h);
87
+ }
88
+ }
89
+ r.isString(m) || (m = m ? "include" : "omit");
90
+ const o = "credentials" in Request.prototype;
91
+ f = new Request(t, {
92
+ ...E,
93
+ signal: d,
94
+ method: s.toUpperCase(),
95
+ headers: y.normalize().toJSON(),
96
+ body: u,
97
+ duplex: "half",
98
+ credentials: o ? m : void 0
99
+ });
100
+ let a = await fetch(f, E);
101
+ const q = T && (n === "stream" || n === "response");
102
+ if (T && (R || q && c)) {
103
+ const i = {};
104
+ ["status", "statusText", "headers"].forEach((L) => {
105
+ i[L] = a[L];
106
+ });
107
+ const p = r.toFiniteNumber(a.headers.get("content-length")), [S, h] = R && A(
108
+ p,
109
+ O(_(R), !0)
110
+ ) || [];
111
+ a = new Response(
112
+ P(a.body, B, S, () => {
113
+ h && h(), c && c();
114
+ }),
115
+ i
116
+ );
117
+ }
118
+ n = n || "text";
119
+ let k = await g[r.findKey(g, n) || "text"](a, e);
120
+ return !q && c && c(), await new Promise((i, p) => {
121
+ j(i, p, {
122
+ data: k,
123
+ headers: K.from(a.headers),
124
+ status: a.status,
125
+ statusText: a.statusText,
126
+ config: e,
127
+ request: f
128
+ });
129
+ });
130
+ } catch (o) {
131
+ throw c && c(), o && o.name === "TypeError" && /Load failed|fetch/i.test(o.message) ? Object.assign(
132
+ new l("Network Error", l.ERR_NETWORK, e, f),
133
+ {
134
+ cause: o.cause || o
135
+ }
136
+ ) : l.from(o, o && o.code, e, f);
137
+ }
138
+ });
139
+ export {
140
+ re as default
141
+ };
@@ -0,0 +1,71 @@
1
+ import b from "../utils.js";
2
+ import D from "../core/settle.js";
3
+ import L from "../defaults/transitional.js";
4
+ import r from "../core/AxiosError.js";
5
+ import v from "../cancel/CanceledError.js";
6
+ import y from "../helpers/parseProtocol.js";
7
+ import O from "../platform/index.js";
8
+ import H from "../core/AxiosHeaders.js";
9
+ import { progressEventReducer as q } from "../helpers/progressEventReducer.js";
10
+ import U from "../helpers/resolveConfig.js";
11
+ const N = typeof XMLHttpRequest < "u", Q = N && function(n) {
12
+ return new Promise(function(A, s) {
13
+ const t = U(n);
14
+ let c = t.data;
15
+ const E = H.from(t.headers).normalize();
16
+ let { responseType: i, onUploadProgress: T, onDownloadProgress: R } = t, a, h, w, u, p;
17
+ function g() {
18
+ u && u(), p && p(), t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
19
+ }
20
+ let e = new XMLHttpRequest();
21
+ e.open(t.method.toUpperCase(), t.url, !0), e.timeout = t.timeout;
22
+ function x() {
23
+ if (!e)
24
+ return;
25
+ const o = H.from(
26
+ "getAllResponseHeaders" in e && e.getAllResponseHeaders()
27
+ ), d = {
28
+ data: !i || i === "text" || i === "json" ? e.responseText : e.response,
29
+ status: e.status,
30
+ statusText: e.statusText,
31
+ headers: o,
32
+ config: n,
33
+ request: e
34
+ };
35
+ D(function(m) {
36
+ A(m), g();
37
+ }, function(m) {
38
+ s(m), g();
39
+ }, d), e = null;
40
+ }
41
+ "onloadend" in e ? e.onloadend = x : e.onreadystatechange = function() {
42
+ !e || e.readyState !== 4 || e.status === 0 && !(e.responseURL && e.responseURL.indexOf("file:") === 0) || setTimeout(x);
43
+ }, e.onabort = function() {
44
+ e && (s(new r("Request aborted", r.ECONNABORTED, n, e)), e = null);
45
+ }, e.onerror = function() {
46
+ s(new r("Network Error", r.ERR_NETWORK, n, e)), e = null;
47
+ }, e.ontimeout = function() {
48
+ let l = t.timeout ? "timeout of " + t.timeout + "ms exceeded" : "timeout exceeded";
49
+ const d = t.transitional || L;
50
+ t.timeoutErrorMessage && (l = t.timeoutErrorMessage), s(new r(
51
+ l,
52
+ d.clarifyTimeoutError ? r.ETIMEDOUT : r.ECONNABORTED,
53
+ n,
54
+ e
55
+ )), e = null;
56
+ }, c === void 0 && E.setContentType(null), "setRequestHeader" in e && b.forEach(E.toJSON(), function(l, d) {
57
+ e.setRequestHeader(d, l);
58
+ }), b.isUndefined(t.withCredentials) || (e.withCredentials = !!t.withCredentials), i && i !== "json" && (e.responseType = t.responseType), R && ([w, p] = q(R, !0), e.addEventListener("progress", w)), T && e.upload && ([h, u] = q(T), e.upload.addEventListener("progress", h), e.upload.addEventListener("loadend", u)), (t.cancelToken || t.signal) && (a = (o) => {
59
+ e && (s(!o || o.type ? new v(null, n, e) : o), e.abort(), e = null);
60
+ }, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
61
+ const f = y(t.url);
62
+ if (f && O.protocols.indexOf(f) === -1) {
63
+ s(new r("Unsupported protocol " + f + ":", r.ERR_BAD_REQUEST, n));
64
+ return;
65
+ }
66
+ e.send(c || null);
67
+ });
68
+ };
69
+ export {
70
+ Q as default
71
+ };
@@ -0,0 +1,46 @@
1
+ import a from "./utils.js";
2
+ import p from "./helpers/bind.js";
3
+ import m from "./core/Axios.js";
4
+ import i from "./core/mergeConfig.js";
5
+ import f from "./defaults/index.js";
6
+ import l from "./helpers/formDataToJSON.js";
7
+ import c from "./cancel/CanceledError.js";
8
+ import d from "./cancel/CancelToken.js";
9
+ import u from "./cancel/isCancel.js";
10
+ import { VERSION as x } from "./env/data.js";
11
+ import C from "./helpers/toFormData.js";
12
+ import A from "./core/AxiosError.js";
13
+ import E from "./helpers/spread.js";
14
+ import O from "./helpers/isAxiosError.js";
15
+ import S from "./core/AxiosHeaders.js";
16
+ import H from "./adapters/adapters.js";
17
+ import T from "./helpers/HttpStatusCode.js";
18
+ function n(o) {
19
+ const t = new m(o), e = p(m.prototype.request, t);
20
+ return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
21
+ return n(i(o, s));
22
+ }, e;
23
+ }
24
+ const r = n(f);
25
+ r.Axios = m;
26
+ r.CanceledError = c;
27
+ r.CancelToken = d;
28
+ r.isCancel = u;
29
+ r.VERSION = x;
30
+ r.toFormData = C;
31
+ r.AxiosError = A;
32
+ r.Cancel = r.CanceledError;
33
+ r.all = function(t) {
34
+ return Promise.all(t);
35
+ };
36
+ r.spread = E;
37
+ r.isAxiosError = O;
38
+ r.mergeConfig = i;
39
+ r.AxiosHeaders = S;
40
+ r.formToJSON = (o) => l(a.isHTMLForm(o) ? new FormData(o) : o);
41
+ r.getAdapter = H.getAdapter;
42
+ r.HttpStatusCode = T;
43
+ r.default = r;
44
+ export {
45
+ r as default
46
+ };
@@ -0,0 +1,77 @@
1
+ import u from "./CanceledError.js";
2
+ class c {
3
+ constructor(e) {
4
+ if (typeof e != "function")
5
+ throw new TypeError("executor must be a function.");
6
+ let t;
7
+ this.promise = new Promise(function(r) {
8
+ t = r;
9
+ });
10
+ const s = this;
11
+ this.promise.then((n) => {
12
+ if (!s._listeners) return;
13
+ let r = s._listeners.length;
14
+ for (; r-- > 0; )
15
+ s._listeners[r](n);
16
+ s._listeners = null;
17
+ }), this.promise.then = (n) => {
18
+ let r;
19
+ const o = new Promise((i) => {
20
+ s.subscribe(i), r = i;
21
+ }).then(n);
22
+ return o.cancel = function() {
23
+ s.unsubscribe(r);
24
+ }, o;
25
+ }, e(function(r, o, i) {
26
+ s.reason || (s.reason = new u(r, o, i), t(s.reason));
27
+ });
28
+ }
29
+ /**
30
+ * Throws a `CanceledError` if cancellation has been requested.
31
+ */
32
+ throwIfRequested() {
33
+ if (this.reason)
34
+ throw this.reason;
35
+ }
36
+ /**
37
+ * Subscribe to the cancel signal
38
+ */
39
+ subscribe(e) {
40
+ if (this.reason) {
41
+ e(this.reason);
42
+ return;
43
+ }
44
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
45
+ }
46
+ /**
47
+ * Unsubscribe from the cancel signal
48
+ */
49
+ unsubscribe(e) {
50
+ if (!this._listeners)
51
+ return;
52
+ const t = this._listeners.indexOf(e);
53
+ t !== -1 && this._listeners.splice(t, 1);
54
+ }
55
+ toAbortSignal() {
56
+ const e = new AbortController(), t = (s) => {
57
+ e.abort(s);
58
+ };
59
+ return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
60
+ }
61
+ /**
62
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
63
+ * cancels the `CancelToken`.
64
+ */
65
+ static source() {
66
+ let e;
67
+ return {
68
+ token: new c(function(n) {
69
+ e = n;
70
+ }),
71
+ cancel: e
72
+ };
73
+ }
74
+ }
75
+ export {
76
+ c as default
77
+ };
@@ -0,0 +1,11 @@
1
+ import r from "../core/AxiosError.js";
2
+ import i from "../utils.js";
3
+ function l(o, t, e) {
4
+ r.call(this, o ?? "canceled", r.ERR_CANCELED, t, e), this.name = "CanceledError";
5
+ }
6
+ i.inherits(l, r, {
7
+ __CANCEL__: !0
8
+ });
9
+ export {
10
+ l as default
11
+ };
@@ -0,0 +1,6 @@
1
+ function t(n) {
2
+ return !!(n && n.__CANCEL__);
3
+ }
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1,136 @@
1
+ import d from "../utils.js";
2
+ import U from "../helpers/buildURL.js";
3
+ import q from "./InterceptorManager.js";
4
+ import R from "./dispatchRequest.js";
5
+ import w from "./mergeConfig.js";
6
+ import A from "./buildFullPath.js";
7
+ import m from "../helpers/validator.js";
8
+ import T from "./AxiosHeaders.js";
9
+ const i = m.validators;
10
+ class k {
11
+ constructor(t) {
12
+ this.defaults = t || {}, this.interceptors = {
13
+ request: new q(),
14
+ response: new q()
15
+ };
16
+ }
17
+ /**
18
+ * Dispatch a request
19
+ *
20
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
21
+ * @param {?Object} config
22
+ *
23
+ * @returns {Promise} The Promise to be fulfilled
24
+ */
25
+ async request(t, e) {
26
+ try {
27
+ return await this._request(t, e);
28
+ } catch (s) {
29
+ if (s instanceof Error) {
30
+ let l = {};
31
+ Error.captureStackTrace ? Error.captureStackTrace(l) : l = new Error();
32
+ const a = l.stack ? l.stack.replace(/^.+\n/, "") : "";
33
+ try {
34
+ s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
35
+ ` + a) : s.stack = a;
36
+ } catch {
37
+ }
38
+ }
39
+ throw s;
40
+ }
41
+ }
42
+ _request(t, e) {
43
+ typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = w(this.defaults, e);
44
+ const { transitional: s, paramsSerializer: l, headers: a } = e;
45
+ s !== void 0 && m.assertOptions(s, {
46
+ silentJSONParsing: i.transitional(i.boolean),
47
+ forcedJSONParsing: i.transitional(i.boolean),
48
+ clarifyTimeoutError: i.transitional(i.boolean)
49
+ }, !1), l != null && (d.isFunction(l) ? e.paramsSerializer = {
50
+ serialize: l
51
+ } : m.assertOptions(l, {
52
+ encode: i.function,
53
+ serialize: i.function
54
+ }, !0)), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), m.assertOptions(e, {
55
+ baseUrl: i.spelling("baseURL"),
56
+ withXsrfToken: i.spelling("withXSRFToken")
57
+ }, !0), e.method = (e.method || this.defaults.method || "get").toLowerCase();
58
+ let f = a && d.merge(
59
+ a.common,
60
+ a[e.method]
61
+ );
62
+ a && d.forEach(
63
+ ["delete", "get", "head", "post", "put", "patch", "common"],
64
+ (r) => {
65
+ delete a[r];
66
+ }
67
+ ), e.headers = T.concat(f, a);
68
+ const h = [];
69
+ let y = !0;
70
+ this.interceptors.request.forEach(function(n) {
71
+ typeof n.runWhen == "function" && n.runWhen(e) === !1 || (y = y && n.synchronous, h.unshift(n.fulfilled, n.rejected));
72
+ });
73
+ const c = [];
74
+ this.interceptors.response.forEach(function(n) {
75
+ c.push(n.fulfilled, n.rejected);
76
+ });
77
+ let u, o = 0, p;
78
+ if (!y) {
79
+ const r = [R.bind(this), void 0];
80
+ for (r.unshift.apply(r, h), r.push.apply(r, c), p = r.length, u = Promise.resolve(e); o < p; )
81
+ u = u.then(r[o++], r[o++]);
82
+ return u;
83
+ }
84
+ p = h.length;
85
+ let b = e;
86
+ for (o = 0; o < p; ) {
87
+ const r = h[o++], n = h[o++];
88
+ try {
89
+ b = r(b);
90
+ } catch (S) {
91
+ n.call(this, S);
92
+ break;
93
+ }
94
+ }
95
+ try {
96
+ u = R.call(this, b);
97
+ } catch (r) {
98
+ return Promise.reject(r);
99
+ }
100
+ for (o = 0, p = c.length; o < p; )
101
+ u = u.then(c[o++], c[o++]);
102
+ return u;
103
+ }
104
+ getUri(t) {
105
+ t = w(this.defaults, t);
106
+ const e = A(t.baseURL, t.url, t.allowAbsoluteUrls);
107
+ return U(e, t.params, t.paramsSerializer);
108
+ }
109
+ }
110
+ d.forEach(["delete", "get", "head", "options"], function(t) {
111
+ k.prototype[t] = function(e, s) {
112
+ return this.request(w(s || {}, {
113
+ method: t,
114
+ url: e,
115
+ data: (s || {}).data
116
+ }));
117
+ };
118
+ });
119
+ d.forEach(["post", "put", "patch"], function(t) {
120
+ function e(s) {
121
+ return function(a, f, h) {
122
+ return this.request(w(h || {}, {
123
+ method: t,
124
+ headers: s ? {
125
+ "Content-Type": "multipart/form-data"
126
+ } : {},
127
+ url: a,
128
+ data: f
129
+ }));
130
+ };
131
+ }
132
+ k.prototype[t] = e(), k.prototype[t + "Form"] = e(!0);
133
+ });
134
+ export {
135
+ k as default
136
+ };
@@ -0,0 +1,54 @@
1
+ import a from "../utils.js";
2
+ function e(t, i, o, E, r) {
3
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), o && (this.config = o), E && (this.request = E), r && (this.response = r, this.status = r.status ? r.status : null);
4
+ }
5
+ a.inherits(e, Error, {
6
+ toJSON: function() {
7
+ return {
8
+ // Standard
9
+ message: this.message,
10
+ name: this.name,
11
+ // Microsoft
12
+ description: this.description,
13
+ number: this.number,
14
+ // Mozilla
15
+ fileName: this.fileName,
16
+ lineNumber: this.lineNumber,
17
+ columnNumber: this.columnNumber,
18
+ stack: this.stack,
19
+ // Axios
20
+ config: a.toJSONObject(this.config),
21
+ code: this.code,
22
+ status: this.status
23
+ };
24
+ }
25
+ });
26
+ const R = e.prototype, u = {};
27
+ [
28
+ "ERR_BAD_OPTION_VALUE",
29
+ "ERR_BAD_OPTION",
30
+ "ECONNABORTED",
31
+ "ETIMEDOUT",
32
+ "ERR_NETWORK",
33
+ "ERR_FR_TOO_MANY_REDIRECTS",
34
+ "ERR_DEPRECATED",
35
+ "ERR_BAD_RESPONSE",
36
+ "ERR_BAD_REQUEST",
37
+ "ERR_CANCELED",
38
+ "ERR_NOT_SUPPORT",
39
+ "ERR_INVALID_URL"
40
+ // eslint-disable-next-line func-names
41
+ ].forEach((t) => {
42
+ u[t] = { value: t };
43
+ });
44
+ Object.defineProperties(e, u);
45
+ Object.defineProperty(R, "isAxiosError", { value: !0 });
46
+ e.from = (t, i, o, E, r, c) => {
47
+ const s = Object.create(R);
48
+ return a.toFlatObject(t, s, function(h) {
49
+ return h !== Error.prototype;
50
+ }, (n) => n !== "isAxiosError"), e.call(s, t.message, i, o, E, r), s.cause = t, s.name = t.name, c && Object.assign(s, c), s;
51
+ };
52
+ export {
53
+ e as default
54
+ };