yahee-components 0.0.18 → 0.0.19

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 (212) hide show
  1. package/es/_virtual/dayjs.min.js +4 -0
  2. package/es/annex-upload/annex-upload.vue.js +158 -0
  3. package/es/annex-upload/annex-upload.vue2.js +4 -0
  4. package/es/annex-upload/index.js +7 -0
  5. package/es/annex-upload/mimeType.js +822 -0
  6. package/es/annex-upload/style/index.css +7 -0
  7. package/es/api/server.js +29 -0
  8. package/es/api/tool.js +68 -0
  9. package/es/comprehensive-search/comprehensive-search.vue.js +165 -122
  10. package/es/copy/copy.vue.js +1 -1
  11. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +218 -0
  12. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +4 -0
  13. package/es/country-platform-shop-condition/index.js +7 -0
  14. package/es/country-platform-shop-condition/style/index.css +48 -0
  15. package/es/drop-down-condition/drop-down-condition.vue.js +216 -0
  16. package/es/drop-down-condition/drop-down-condition.vue2.js +4 -0
  17. package/es/drop-down-condition/index.js +7 -0
  18. package/es/drop-down-condition/style/index.css +45 -0
  19. package/es/image-upload/image-upload.vue.js +177 -0
  20. package/es/image-upload/image-upload.vue2.js +4 -0
  21. package/es/image-upload/index.js +7 -0
  22. package/es/image-upload/style/index.css +33 -0
  23. package/es/index.js +26 -7
  24. package/es/installs.js +22 -4
  25. package/es/left-condition/index.js +7 -0
  26. package/es/left-condition/left-condition-sub.vue.js +95 -0
  27. package/es/left-condition/left-condition-sub.vue2.js +4 -0
  28. package/es/left-condition/left-condition.vue.js +216 -0
  29. package/es/left-condition/left-condition.vue2.js +4 -0
  30. package/es/left-condition/style/index.css +10 -0
  31. package/es/left-condition-enum/index.js +7 -0
  32. package/es/left-condition-enum/left-condition-enum.vue.js +80 -0
  33. package/es/left-condition-enum/left-condition-enum.vue2.js +4 -0
  34. package/es/left-condition-enum/style/index.css +10 -0
  35. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/index.js +38 -0
  36. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/adapters.js +53 -0
  37. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/fetch.js +141 -0
  38. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/adapters/xhr.js +71 -0
  39. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/axios.js +46 -0
  40. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  41. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  42. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/cancel/isCancel.js +6 -0
  43. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/Axios.js +133 -0
  44. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosError.js +54 -0
  45. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/AxiosHeaders.js +173 -0
  46. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  47. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/buildFullPath.js +8 -0
  48. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  49. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/mergeConfig.js +70 -0
  50. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/settle.js +14 -0
  51. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/core/transformData.js +13 -0
  52. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/index.js +89 -0
  53. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/defaults/transitional.js +8 -0
  54. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/env/data.js +4 -0
  55. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  56. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  57. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/bind.js +8 -0
  58. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/buildURL.js +19 -0
  59. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  60. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  61. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/cookies.js +32 -0
  62. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  63. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  64. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  65. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
  66. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/null.js +4 -0
  67. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  68. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  69. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  70. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  71. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/speedometer.js +19 -0
  72. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/spread.js +8 -0
  73. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/throttle.js +15 -0
  74. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toFormData.js +83 -0
  75. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  76. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/trackStream.js +63 -0
  77. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/helpers/validator.js +51 -0
  78. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  79. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  80. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  81. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/browser/index.js +15 -0
  82. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/common/utils.js +9 -0
  83. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/platform/index.js +9 -0
  84. package/es/node_modules/.pnpm/axios@1.7.7/node_modules/axios/lib/utils.js +233 -0
  85. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  86. package/es/node_modules/{lodash → .pnpm/lodash@4.17.21/node_modules/lodash}/lodash.js +2 -2
  87. package/es/node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js +120 -0
  88. package/es/operation-log/index.js +7 -0
  89. package/es/operation-log/operation-log-content.vue.js +100 -0
  90. package/es/operation-log/operation-log-content.vue2.js +4 -0
  91. package/es/operation-log/operation-log-dialog.vue.js +70 -0
  92. package/es/operation-log/operation-log-dialog.vue2.js +4 -0
  93. package/es/operation-log/operation-log-form.vue.js +181 -0
  94. package/es/operation-log/operation-log-form.vue2.js +4 -0
  95. package/es/operation-log/operation-log.vue.js +232 -0
  96. package/es/operation-log/operation-log.vue2.js +4 -0
  97. package/es/operation-log/style/index.css +220 -0
  98. package/es/packages/components/api/log/index.js +15 -0
  99. package/es/packages/components/api/log-server.js +50 -0
  100. package/es/packages/components/api/server.js +32 -0
  101. package/es/packages/components/api/tool.js +56 -0
  102. package/es/packages/components/api/upload-server.js +65 -0
  103. package/es/packages/components/assets/images/errorimg.png.js +4 -0
  104. package/es/packages/components/assets/images/excel.png.js +4 -0
  105. package/es/packages/components/assets/images/file-word.png.js +4 -0
  106. package/es/packages/components/assets/images/pdf.png.js +4 -0
  107. package/es/packages/components/assets/images/ppt.png.js +4 -0
  108. package/es/packages/components/assets/images/vue.svg.js +4 -0
  109. package/es/packages/components/hooks/useClipboard.js +30 -0
  110. package/es/packages/components/hooks/useImg.js +15 -0
  111. package/es/packages/components/hooks/useImgPath.js +14 -0
  112. package/es/packages/components/hooks/useImport.js +33 -0
  113. package/es/packages/components/hooks/useUpload.js +24 -0
  114. package/es/static/CommonObject.js +4 -0
  115. package/es/style.css +946 -0
  116. package/es/styles/custom.css +83 -0
  117. package/es/styles/globals.css +697 -0
  118. package/es/styles/index.css +787 -0
  119. package/es/styles/variables.css +32 -0
  120. package/es/utils/config.js +19 -0
  121. package/es/utils/const.js +19 -0
  122. package/es/utils/storage.js +52 -0
  123. package/es/utils/style.js +28 -0
  124. package/es/utils/translate.js +57 -0
  125. package/lib/annex-upload/style/index.css +7 -0
  126. package/lib/country-platform-shop-condition/style/index.css +48 -0
  127. package/lib/drop-down-condition/style/index.css +45 -0
  128. package/lib/image-upload/style/index.css +33 -0
  129. package/lib/left-condition/style/index.css +10 -0
  130. package/lib/left-condition-enum/style/index.css +10 -0
  131. package/lib/operation-log/style/index.css +220 -0
  132. package/lib/style.css +946 -0
  133. package/lib/styles/custom.css +83 -0
  134. package/lib/styles/globals.css +697 -0
  135. package/lib/styles/index.css +787 -0
  136. package/lib/styles/variables.css +32 -0
  137. package/package.json +10 -4
  138. package/types/hooks/useClipboard.d.ts +7 -0
  139. package/types/hooks/useImg.d.ts +10 -0
  140. package/types/hooks/useImgPath.d.ts +5 -0
  141. package/types/hooks/useImport.d.ts +11 -0
  142. package/types/hooks/useUpload.d.ts +12 -0
  143. package/types/index.d.ts +6 -204
  144. package/types/src/annex-upload/annex-upload.d.ts +30 -0
  145. package/types/src/annex-upload/annex-upload.vue.d.ts +443 -0
  146. package/types/src/annex-upload/index.d.ts +123 -0
  147. package/types/src/annex-upload/mimeType.d.ts +2 -0
  148. package/types/src/api/server.d.ts +6 -0
  149. package/types/src/api/tool.d.ts +6 -0
  150. package/types/src/api/types.d.ts +17 -0
  151. package/types/src/components.d.ts +10 -0
  152. package/types/src/comprehensive-search/comprehensive-search.d.ts +12 -0
  153. package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +52 -0
  154. package/types/src/copy/copy.d.ts +12 -0
  155. package/types/src/copy/copy.vue.d.ts +21 -0
  156. package/types/src/copy/index.d.ts +32 -0
  157. package/types/src/country-platform-shop-condition/country-platform-shop-condition.d.ts +17 -0
  158. package/types/src/country-platform-shop-condition/country-platform-shop-condition.vue.d.ts +14 -0
  159. package/types/src/country-platform-shop-condition/index.d.ts +16 -0
  160. package/types/src/drop-down-condition/drop-down-condition.d.ts +6 -0
  161. package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +40 -0
  162. package/types/src/drop-down-condition/index.d.ts +42 -0
  163. package/types/src/image-upload/image-upload.d.ts +26 -0
  164. package/types/src/image-upload/image-upload.vue.d.ts +43 -0
  165. package/types/src/image-upload/index.d.ts +94 -0
  166. package/types/src/index.d.ts +7 -0
  167. package/types/src/input/index.d.ts +16 -0
  168. package/types/src/input/input.d.ts +18 -0
  169. package/types/src/input/input.vue.d.ts +14 -0
  170. package/types/src/left-condition/index.d.ts +69 -0
  171. package/types/src/left-condition/left-condition-sub.vue.d.ts +47 -0
  172. package/types/src/left-condition/left-condition.d.ts +5 -0
  173. package/types/src/left-condition/left-condition.vue.d.ts +68 -0
  174. package/types/src/left-condition-enum/index.d.ts +162 -0
  175. package/types/src/left-condition-enum/left-condition-enum.d.ts +5 -0
  176. package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +160 -0
  177. package/types/src/operation-log/index.d.ts +9 -0
  178. package/types/src/operation-log/operation-log-content.vue.d.ts +24 -0
  179. package/types/src/operation-log/operation-log-dialog.vue.d.ts +39 -0
  180. package/types/src/operation-log/operation-log-form.vue.d.ts +19 -0
  181. package/types/src/operation-log/operation-log.d.ts +11 -0
  182. package/types/src/operation-log/operation-log.vue.d.ts +6 -0
  183. package/types/src/static/CommonObject.d.ts +18 -0
  184. package/types/src/static/CommonVariables.d.ts +4 -0
  185. package/types/src/utils/config.d.ts +8 -0
  186. package/types/src/utils/const.d.ts +19 -0
  187. package/types/src/utils/functions.d.ts +1 -0
  188. package/types/src/utils/install.d.ts +8 -0
  189. package/types/src/utils/storage.d.ts +18 -0
  190. package/types/src/utils/style.d.ts +19 -0
  191. package/types/src/utils/to-kebab-case.d.ts +1 -0
  192. package/types/src/utils/translate.d.ts +5 -0
  193. package/types/src/utils/typescript.d.ts +5 -0
  194. package/es/hooks/useClipboard.js +0 -28
  195. package/lib/_virtual/_commonjsHelpers.js +0 -1
  196. package/lib/_virtual/lodash.js +0 -1
  197. package/lib/comprehensive-search/comprehensive-search.vue.js +0 -1
  198. package/lib/comprehensive-search/comprehensive-search.vue2.js +0 -1
  199. package/lib/comprehensive-search/index.js +0 -1
  200. package/lib/copy/copy.vue.js +0 -1
  201. package/lib/copy/copy.vue2.js +0 -1
  202. package/lib/copy/index.js +0 -1
  203. package/lib/hooks/useClipboard.js +0 -1
  204. package/lib/index.js +0 -1
  205. package/lib/input/index.js +0 -1
  206. package/lib/input/input.vue.js +0 -1
  207. package/lib/input/input.vue2.js +0 -1
  208. package/lib/installs.js +0 -1
  209. package/lib/node_modules/element-plus/es/locale/lang/zh-cn.js +0 -1
  210. package/lib/node_modules/lodash/lodash.js +0 -27
  211. package/lib/utils/install.js +0 -1
  212. /package/es/node_modules/{element-plus → .pnpm/element-plus@2.8.3_vue@3.5.12_typescript@5.6.2_/node_modules/element-plus}/es/locale/lang/zh-cn.js +0 -0
@@ -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
+ };
@@ -0,0 +1,173 @@
1
+ import i from "../utils.js";
2
+ import S from "../helpers/parseHeaders.js";
3
+ const h = Symbol("internals");
4
+ function l(r) {
5
+ return r && String(r).trim().toLowerCase();
6
+ }
7
+ function p(r) {
8
+ return r === !1 || r == null ? r : i.isArray(r) ? r.map(p) : String(r);
9
+ }
10
+ function d(r) {
11
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
12
+ let s;
13
+ for (; s = n.exec(r); )
14
+ t[s[1]] = s[2];
15
+ return t;
16
+ }
17
+ const A = (r) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());
18
+ function g(r, t, n, s, e) {
19
+ if (i.isFunction(s))
20
+ return s.call(this, t, n);
21
+ if (e && (t = n), !!i.isString(t)) {
22
+ if (i.isString(s))
23
+ return t.indexOf(s) !== -1;
24
+ if (i.isRegExp(s))
25
+ return s.test(t);
26
+ }
27
+ }
28
+ function E(r) {
29
+ return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
30
+ }
31
+ function H(r, t) {
32
+ const n = i.toCamelCase(" " + t);
33
+ ["get", "set", "has"].forEach((s) => {
34
+ Object.defineProperty(r, s + n, {
35
+ value: function(e, o, f) {
36
+ return this[s].call(this, t, e, o, f);
37
+ },
38
+ configurable: !0
39
+ });
40
+ });
41
+ }
42
+ class b {
43
+ constructor(t) {
44
+ t && this.set(t);
45
+ }
46
+ set(t, n, s) {
47
+ const e = this;
48
+ function o(c, u, a) {
49
+ const y = l(u);
50
+ if (!y)
51
+ throw new Error("header name must be a non-empty string");
52
+ const m = i.findKey(e, y);
53
+ (!m || e[m] === void 0 || a === !0 || a === void 0 && e[m] !== !1) && (e[m || u] = p(c));
54
+ }
55
+ const f = (c, u) => i.forEach(c, (a, y) => o(a, y, u));
56
+ if (i.isPlainObject(t) || t instanceof this.constructor)
57
+ f(t, n);
58
+ else if (i.isString(t) && (t = t.trim()) && !A(t))
59
+ f(S(t), n);
60
+ else if (i.isHeaders(t))
61
+ for (const [c, u] of t.entries())
62
+ o(u, c, s);
63
+ else
64
+ t != null && o(n, t, s);
65
+ return this;
66
+ }
67
+ get(t, n) {
68
+ if (t = l(t), t) {
69
+ const s = i.findKey(this, t);
70
+ if (s) {
71
+ const e = this[s];
72
+ if (!n)
73
+ return e;
74
+ if (n === !0)
75
+ return d(e);
76
+ if (i.isFunction(n))
77
+ return n.call(this, e, s);
78
+ if (i.isRegExp(n))
79
+ return n.exec(e);
80
+ throw new TypeError("parser must be boolean|regexp|function");
81
+ }
82
+ }
83
+ }
84
+ has(t, n) {
85
+ if (t = l(t), t) {
86
+ const s = i.findKey(this, t);
87
+ return !!(s && this[s] !== void 0 && (!n || g(this, this[s], s, n)));
88
+ }
89
+ return !1;
90
+ }
91
+ delete(t, n) {
92
+ const s = this;
93
+ let e = !1;
94
+ function o(f) {
95
+ if (f = l(f), f) {
96
+ const c = i.findKey(s, f);
97
+ c && (!n || g(s, s[c], c, n)) && (delete s[c], e = !0);
98
+ }
99
+ }
100
+ return i.isArray(t) ? t.forEach(o) : o(t), e;
101
+ }
102
+ clear(t) {
103
+ const n = Object.keys(this);
104
+ let s = n.length, e = !1;
105
+ for (; s--; ) {
106
+ const o = n[s];
107
+ (!t || g(this, this[o], o, t, !0)) && (delete this[o], e = !0);
108
+ }
109
+ return e;
110
+ }
111
+ normalize(t) {
112
+ const n = this, s = {};
113
+ return i.forEach(this, (e, o) => {
114
+ const f = i.findKey(s, o);
115
+ if (f) {
116
+ n[f] = p(e), delete n[o];
117
+ return;
118
+ }
119
+ const c = t ? E(o) : String(o).trim();
120
+ c !== o && delete n[o], n[c] = p(e), s[c] = !0;
121
+ }), this;
122
+ }
123
+ concat(...t) {
124
+ return this.constructor.concat(this, ...t);
125
+ }
126
+ toJSON(t) {
127
+ const n = /* @__PURE__ */ Object.create(null);
128
+ return i.forEach(this, (s, e) => {
129
+ s != null && s !== !1 && (n[e] = t && i.isArray(s) ? s.join(", ") : s);
130
+ }), n;
131
+ }
132
+ [Symbol.iterator]() {
133
+ return Object.entries(this.toJSON())[Symbol.iterator]();
134
+ }
135
+ toString() {
136
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
137
+ `);
138
+ }
139
+ get [Symbol.toStringTag]() {
140
+ return "AxiosHeaders";
141
+ }
142
+ static from(t) {
143
+ return t instanceof this ? t : new this(t);
144
+ }
145
+ static concat(t, ...n) {
146
+ const s = new this(t);
147
+ return n.forEach((e) => s.set(e)), s;
148
+ }
149
+ static accessor(t) {
150
+ const s = (this[h] = this[h] = {
151
+ accessors: {}
152
+ }).accessors, e = this.prototype;
153
+ function o(f) {
154
+ const c = l(f);
155
+ s[c] || (H(e, f), s[c] = !0);
156
+ }
157
+ return i.isArray(t) ? t.forEach(o) : o(t), this;
158
+ }
159
+ }
160
+ b.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
161
+ i.reduceDescriptors(b.prototype, ({ value: r }, t) => {
162
+ let n = t[0].toUpperCase() + t.slice(1);
163
+ return {
164
+ get: () => r,
165
+ set(s) {
166
+ this[n] = s;
167
+ }
168
+ };
169
+ });
170
+ i.freezeMethods(b);
171
+ export {
172
+ b as default
173
+ };
@@ -0,0 +1,58 @@
1
+ import n from "../utils.js";
2
+ class a {
3
+ constructor() {
4
+ this.handlers = [];
5
+ }
6
+ /**
7
+ * Add a new interceptor to the stack
8
+ *
9
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
10
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
11
+ *
12
+ * @return {Number} An ID used to remove interceptor later
13
+ */
14
+ use(s, h, r) {
15
+ return this.handlers.push({
16
+ fulfilled: s,
17
+ rejected: h,
18
+ synchronous: r ? r.synchronous : !1,
19
+ runWhen: r ? r.runWhen : null
20
+ }), this.handlers.length - 1;
21
+ }
22
+ /**
23
+ * Remove an interceptor from the stack
24
+ *
25
+ * @param {Number} id The ID that was returned by `use`
26
+ *
27
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
28
+ */
29
+ eject(s) {
30
+ this.handlers[s] && (this.handlers[s] = null);
31
+ }
32
+ /**
33
+ * Clear all interceptors from the stack
34
+ *
35
+ * @returns {void}
36
+ */
37
+ clear() {
38
+ this.handlers && (this.handlers = []);
39
+ }
40
+ /**
41
+ * Iterate over all the registered interceptors
42
+ *
43
+ * This method is particularly useful for skipping over any
44
+ * interceptors that may have become `null` calling `eject`.
45
+ *
46
+ * @param {Function} fn The function to call for each interceptor
47
+ *
48
+ * @returns {void}
49
+ */
50
+ forEach(s) {
51
+ n.forEach(this.handlers, function(r) {
52
+ r !== null && s(r);
53
+ });
54
+ }
55
+ }
56
+ export {
57
+ a as default
58
+ };
@@ -0,0 +1,8 @@
1
+ import r from "../helpers/isAbsoluteURL.js";
2
+ import t from "../helpers/combineURLs.js";
3
+ function m(i, o) {
4
+ return i && !r(o) ? t(i, o) : o;
5
+ }
6
+ export {
7
+ m as default
8
+ };
@@ -0,0 +1,31 @@
1
+ import r from "./transformData.js";
2
+ import p from "../cancel/isCancel.js";
3
+ import o from "../defaults/index.js";
4
+ import l from "../cancel/CanceledError.js";
5
+ import a from "./AxiosHeaders.js";
6
+ import m from "../adapters/adapters.js";
7
+ function d(e) {
8
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
9
+ throw new l(null, e);
10
+ }
11
+ function q(e) {
12
+ return d(e), e.headers = a.from(e.headers), e.data = r.call(
13
+ e,
14
+ e.transformRequest
15
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), m.getAdapter(e.adapter || o.adapter)(e).then(function(t) {
16
+ return d(e), t.data = r.call(
17
+ e,
18
+ e.transformResponse,
19
+ t
20
+ ), t.headers = a.from(t.headers), t;
21
+ }, function(t) {
22
+ return p(t) || (d(e), t && t.response && (t.response.data = r.call(
23
+ e,
24
+ e.transformResponse,
25
+ t.response
26
+ ), t.response.headers = a.from(t.response.headers))), Promise.reject(t);
27
+ });
28
+ }
29
+ export {
30
+ q as default
31
+ };
@@ -0,0 +1,70 @@
1
+ import i from "../utils.js";
2
+ import h from "./AxiosHeaders.js";
3
+ const c = (s) => s instanceof h ? { ...s } : s;
4
+ function C(s, o) {
5
+ o = o || {};
6
+ const f = {};
7
+ function d(t, e, r) {
8
+ return i.isPlainObject(t) && i.isPlainObject(e) ? i.merge.call({ caseless: r }, t, e) : i.isPlainObject(e) ? i.merge({}, e) : i.isArray(e) ? e.slice() : e;
9
+ }
10
+ function u(t, e, r) {
11
+ if (i.isUndefined(e)) {
12
+ if (!i.isUndefined(t))
13
+ return d(void 0, t, r);
14
+ } else return d(t, e, r);
15
+ }
16
+ function a(t, e) {
17
+ if (!i.isUndefined(e))
18
+ return d(void 0, e);
19
+ }
20
+ function n(t, e) {
21
+ if (i.isUndefined(e)) {
22
+ if (!i.isUndefined(t))
23
+ return d(void 0, t);
24
+ } else return d(void 0, e);
25
+ }
26
+ function l(t, e, r) {
27
+ if (r in o)
28
+ return d(t, e);
29
+ if (r in s)
30
+ return d(void 0, t);
31
+ }
32
+ const g = {
33
+ url: a,
34
+ method: a,
35
+ data: a,
36
+ baseURL: n,
37
+ transformRequest: n,
38
+ transformResponse: n,
39
+ paramsSerializer: n,
40
+ timeout: n,
41
+ timeoutMessage: n,
42
+ withCredentials: n,
43
+ withXSRFToken: n,
44
+ adapter: n,
45
+ responseType: n,
46
+ xsrfCookieName: n,
47
+ xsrfHeaderName: n,
48
+ onUploadProgress: n,
49
+ onDownloadProgress: n,
50
+ decompress: n,
51
+ maxContentLength: n,
52
+ maxBodyLength: n,
53
+ beforeRedirect: n,
54
+ transport: n,
55
+ httpAgent: n,
56
+ httpsAgent: n,
57
+ cancelToken: n,
58
+ socketPath: n,
59
+ responseEncoding: n,
60
+ validateStatus: l,
61
+ headers: (t, e) => u(c(t), c(e), !0)
62
+ };
63
+ return i.forEach(Object.keys(Object.assign({}, s, o)), function(e) {
64
+ const r = g[e] || u, m = r(s[e], o[e], e);
65
+ i.isUndefined(m) && r !== l || (f[e] = m);
66
+ }), f;
67
+ }
68
+ export {
69
+ C as default
70
+ };
@@ -0,0 +1,14 @@
1
+ import a from "./AxiosError.js";
2
+ function E(i, f, t) {
3
+ const u = t.config.validateStatus;
4
+ !t.status || !u || u(t.status) ? i(t) : f(new a(
5
+ "Request failed with status code " + t.status,
6
+ [a.ERR_BAD_REQUEST, a.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
7
+ t.config,
8
+ t.request,
9
+ t
10
+ ));
11
+ }
12
+ export {
13
+ E as default
14
+ };
@@ -0,0 +1,13 @@
1
+ import i from "../utils.js";
2
+ import m from "../defaults/index.js";
3
+ import s from "./AxiosHeaders.js";
4
+ function h(f, t) {
5
+ const o = this || m, r = t || o, n = s.from(r.headers);
6
+ let a = r.data;
7
+ return i.forEach(f, function(e) {
8
+ a = e.call(o, a, n.normalize(), t ? t.status : void 0);
9
+ }), n.normalize(), a;
10
+ }
11
+ export {
12
+ h as default
13
+ };
@@ -0,0 +1,89 @@
1
+ import t from "../utils.js";
2
+ import p from "../core/AxiosError.js";
3
+ import u from "./transitional.js";
4
+ import S from "../helpers/toFormData.js";
5
+ import h from "../helpers/toURLEncodedForm.js";
6
+ import l from "../platform/index.js";
7
+ import O from "../helpers/formDataToJSON.js";
8
+ function y(i, r, e) {
9
+ if (t.isString(i))
10
+ try {
11
+ return (r || JSON.parse)(i), t.trim(i);
12
+ } catch (n) {
13
+ if (n.name !== "SyntaxError")
14
+ throw n;
15
+ }
16
+ return (e || JSON.stringify)(i);
17
+ }
18
+ const a = {
19
+ transitional: u,
20
+ adapter: ["xhr", "http", "fetch"],
21
+ transformRequest: [function(r, e) {
22
+ const n = e.getContentType() || "", s = n.indexOf("application/json") > -1, f = t.isObject(r);
23
+ if (f && t.isHTMLForm(r) && (r = new FormData(r)), t.isFormData(r))
24
+ return s ? JSON.stringify(O(r)) : r;
25
+ if (t.isArrayBuffer(r) || t.isBuffer(r) || t.isStream(r) || t.isFile(r) || t.isBlob(r) || t.isReadableStream(r))
26
+ return r;
27
+ if (t.isArrayBufferView(r))
28
+ return r.buffer;
29
+ if (t.isURLSearchParams(r))
30
+ return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
31
+ let o;
32
+ if (f) {
33
+ if (n.indexOf("application/x-www-form-urlencoded") > -1)
34
+ return h(r, this.formSerializer).toString();
35
+ if ((o = t.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
36
+ const c = this.env && this.env.FormData;
37
+ return S(
38
+ o ? { "files[]": r } : r,
39
+ c && new c(),
40
+ this.formSerializer
41
+ );
42
+ }
43
+ }
44
+ return f || s ? (e.setContentType("application/json", !1), y(r)) : r;
45
+ }],
46
+ transformResponse: [function(r) {
47
+ const e = this.transitional || a.transitional, n = e && e.forcedJSONParsing, s = this.responseType === "json";
48
+ if (t.isResponse(r) || t.isReadableStream(r))
49
+ return r;
50
+ if (r && t.isString(r) && (n && !this.responseType || s)) {
51
+ const m = !(e && e.silentJSONParsing) && s;
52
+ try {
53
+ return JSON.parse(r);
54
+ } catch (o) {
55
+ if (m)
56
+ throw o.name === "SyntaxError" ? p.from(o, p.ERR_BAD_RESPONSE, this, null, this.response) : o;
57
+ }
58
+ }
59
+ return r;
60
+ }],
61
+ /**
62
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
63
+ * timeout is not created.
64
+ */
65
+ timeout: 0,
66
+ xsrfCookieName: "XSRF-TOKEN",
67
+ xsrfHeaderName: "X-XSRF-TOKEN",
68
+ maxContentLength: -1,
69
+ maxBodyLength: -1,
70
+ env: {
71
+ FormData: l.classes.FormData,
72
+ Blob: l.classes.Blob
73
+ },
74
+ validateStatus: function(r) {
75
+ return r >= 200 && r < 300;
76
+ },
77
+ headers: {
78
+ common: {
79
+ Accept: "application/json, text/plain, */*",
80
+ "Content-Type": void 0
81
+ }
82
+ }
83
+ };
84
+ t.forEach(["delete", "get", "head", "post", "put", "patch"], (i) => {
85
+ a.headers[i] = {};
86
+ });
87
+ export {
88
+ a as default
89
+ };
@@ -0,0 +1,8 @@
1
+ const r = {
2
+ silentJSONParsing: !0,
3
+ forcedJSONParsing: !0,
4
+ clarifyTimeoutError: !1
5
+ };
6
+ export {
7
+ r as default
8
+ };
@@ -0,0 +1,4 @@
1
+ const o = "1.7.7";
2
+ export {
3
+ o as VERSION
4
+ };
@@ -0,0 +1,33 @@
1
+ import p from "./toFormData.js";
2
+ function i(n) {
3
+ const t = {
4
+ "!": "%21",
5
+ "'": "%27",
6
+ "(": "%28",
7
+ ")": "%29",
8
+ "~": "%7E",
9
+ "%20": "+",
10
+ "%00": "\0"
11
+ };
12
+ return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
13
+ return t[r];
14
+ });
15
+ }
16
+ function a(n, t) {
17
+ this._pairs = [], n && p(n, this, t);
18
+ }
19
+ const c = a.prototype;
20
+ c.append = function(t, o) {
21
+ this._pairs.push([t, o]);
22
+ };
23
+ c.toString = function(t) {
24
+ const o = t ? function(r) {
25
+ return t.call(this, r, i);
26
+ } : i;
27
+ return this._pairs.map(function(e) {
28
+ return o(e[0]) + "=" + o(e[1]);
29
+ }, "").join("&");
30
+ };
31
+ export {
32
+ a as default
33
+ };
@@ -0,0 +1,71 @@
1
+ const e = {
2
+ Continue: 100,
3
+ SwitchingProtocols: 101,
4
+ Processing: 102,
5
+ EarlyHints: 103,
6
+ Ok: 200,
7
+ Created: 201,
8
+ Accepted: 202,
9
+ NonAuthoritativeInformation: 203,
10
+ NoContent: 204,
11
+ ResetContent: 205,
12
+ PartialContent: 206,
13
+ MultiStatus: 207,
14
+ AlreadyReported: 208,
15
+ ImUsed: 226,
16
+ MultipleChoices: 300,
17
+ MovedPermanently: 301,
18
+ Found: 302,
19
+ SeeOther: 303,
20
+ NotModified: 304,
21
+ UseProxy: 305,
22
+ Unused: 306,
23
+ TemporaryRedirect: 307,
24
+ PermanentRedirect: 308,
25
+ BadRequest: 400,
26
+ Unauthorized: 401,
27
+ PaymentRequired: 402,
28
+ Forbidden: 403,
29
+ NotFound: 404,
30
+ MethodNotAllowed: 405,
31
+ NotAcceptable: 406,
32
+ ProxyAuthenticationRequired: 407,
33
+ RequestTimeout: 408,
34
+ Conflict: 409,
35
+ Gone: 410,
36
+ LengthRequired: 411,
37
+ PreconditionFailed: 412,
38
+ PayloadTooLarge: 413,
39
+ UriTooLong: 414,
40
+ UnsupportedMediaType: 415,
41
+ RangeNotSatisfiable: 416,
42
+ ExpectationFailed: 417,
43
+ ImATeapot: 418,
44
+ MisdirectedRequest: 421,
45
+ UnprocessableEntity: 422,
46
+ Locked: 423,
47
+ FailedDependency: 424,
48
+ TooEarly: 425,
49
+ UpgradeRequired: 426,
50
+ PreconditionRequired: 428,
51
+ TooManyRequests: 429,
52
+ RequestHeaderFieldsTooLarge: 431,
53
+ UnavailableForLegalReasons: 451,
54
+ InternalServerError: 500,
55
+ NotImplemented: 501,
56
+ BadGateway: 502,
57
+ ServiceUnavailable: 503,
58
+ GatewayTimeout: 504,
59
+ HttpVersionNotSupported: 505,
60
+ VariantAlsoNegotiates: 506,
61
+ InsufficientStorage: 507,
62
+ LoopDetected: 508,
63
+ NotExtended: 510,
64
+ NetworkAuthenticationRequired: 511
65
+ };
66
+ Object.entries(e).forEach(([t, o]) => {
67
+ e[o] = t;
68
+ });
69
+ export {
70
+ e as default
71
+ };
@@ -0,0 +1,8 @@
1
+ function u(n, r) {
2
+ return function() {
3
+ return n.apply(r, arguments);
4
+ };
5
+ }
6
+ export {
7
+ u as default
8
+ };
@@ -0,0 +1,19 @@
1
+ import f from "../utils.js";
2
+ import d from "./AxiosURLSearchParams.js";
3
+ function l(e) {
4
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
5
+ }
6
+ function s(e, c, i) {
7
+ if (!c)
8
+ return e;
9
+ const a = i && i.encode || l, r = i && i.serialize;
10
+ let n;
11
+ if (r ? n = r(c, i) : n = f.isURLSearchParams(c) ? c.toString() : new d(c, i).toString(a), n) {
12
+ const t = e.indexOf("#");
13
+ t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + n;
14
+ }
15
+ return e;
16
+ }
17
+ export {
18
+ s as default
19
+ };
@@ -0,0 +1,6 @@
1
+ function n(e, c) {
2
+ return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
3
+ }
4
+ export {
5
+ n as default
6
+ };