@quoreadmin/ui 1.10.26 → 1.10.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.
Files changed (202) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index182.js +14 -14
  3. package/dist/index183.js +3 -3
  4. package/dist/index186.js +4 -4
  5. package/dist/index193.js +10 -10
  6. package/dist/index195.js +10 -10
  7. package/dist/index198.js +17 -17
  8. package/dist/index201.js +28 -28
  9. package/dist/index202.js +2 -2
  10. package/dist/index203.js +2 -2
  11. package/dist/index204.js +1 -1
  12. package/dist/index206.js +2 -2
  13. package/dist/index208.js +14 -14
  14. package/dist/index209.js +1 -1
  15. package/dist/index210.js +1 -1
  16. package/dist/index211.js +3 -3
  17. package/dist/index212.js +6 -6
  18. package/dist/index213.js +29 -84
  19. package/dist/index214.js +109 -400
  20. package/dist/index215.js +36 -22
  21. package/dist/index216.js +26 -33
  22. package/dist/index217.js +31 -111
  23. package/dist/index218.js +50 -35
  24. package/dist/index219.js +43 -26
  25. package/dist/index220.js +3 -35
  26. package/dist/index221.js +9 -51
  27. package/dist/index222.js +18 -42
  28. package/dist/index223.js +10 -4
  29. package/dist/index224.js +10 -9
  30. package/dist/index225.js +38 -18
  31. package/dist/index226.js +21 -10
  32. package/dist/index227.js +88 -10
  33. package/dist/index228.js +403 -35
  34. package/dist/index229.js +22 -21
  35. package/dist/index230.js +155 -121
  36. package/dist/index231.js +19 -37
  37. package/dist/index232.js +20 -80
  38. package/dist/index233.js +15 -13
  39. package/dist/index234.js +198 -19
  40. package/dist/index235.js +68 -18
  41. package/dist/index236.js +34 -20
  42. package/dist/index237.js +39 -19
  43. package/dist/index238.js +122 -156
  44. package/dist/index239.js +35 -225
  45. package/dist/index240.js +80 -37
  46. package/dist/index241.js +20 -10
  47. package/dist/index242.js +19 -160
  48. package/dist/index243.js +11 -11
  49. package/dist/index244.js +13 -15
  50. package/dist/index245.js +156 -194
  51. package/dist/index246.js +224 -66
  52. package/dist/index247.js +37 -34
  53. package/dist/index248.js +9 -39
  54. package/dist/index249.js +22 -3709
  55. package/dist/index250.js +22 -60
  56. package/dist/index251.js +20 -83
  57. package/dist/index252.js +823 -39
  58. package/dist/index253.js +685 -198
  59. package/dist/index254.js +175 -9
  60. package/dist/index255.js +22 -57
  61. package/dist/index256.js +20 -61
  62. package/dist/index257.js +20 -54
  63. package/dist/index258.js +3 -81
  64. package/dist/index259.js +170 -711
  65. package/dist/index260.js +127 -41
  66. package/dist/index261.js +1214 -55
  67. package/dist/index262.js +20 -11
  68. package/dist/index263.js +22 -705
  69. package/dist/index264.js +22 -820
  70. package/dist/index265.js +22 -15
  71. package/dist/index266.js +13 -15
  72. package/dist/index267.js +12 -12
  73. package/dist/index268.js +2 -836
  74. package/dist/index269.js +2 -702
  75. package/dist/index270.js +241 -164
  76. package/dist/index271.js +7 -21
  77. package/dist/index272.js +138 -20
  78. package/dist/index273.js +83 -20
  79. package/dist/index274.js +54 -3
  80. package/dist/index275.js +65 -173
  81. package/dist/index276.js +25 -132
  82. package/dist/index277.js +22 -1223
  83. package/dist/index278.js +15 -13
  84. package/dist/index279.js +16 -22
  85. package/dist/index280.js +17 -22
  86. package/dist/index281.js +22 -28
  87. package/dist/index282.js +3 -20
  88. package/dist/index283.js +26 -19
  89. package/dist/index284.js +3709 -2
  90. package/dist/index285.js +60 -2
  91. package/dist/index286.js +72 -242
  92. package/dist/index287.js +51 -7
  93. package/dist/index288.js +209 -132
  94. package/dist/index289.js +10 -83
  95. package/dist/index290.js +57 -2
  96. package/dist/index291.js +59 -77
  97. package/dist/index292.js +54 -3
  98. package/dist/index293.js +79 -25
  99. package/dist/index294.js +724 -50
  100. package/dist/index295.js +47 -26
  101. package/dist/index296.js +64 -22
  102. package/dist/index297.js +11 -22
  103. package/dist/index298.js +704 -15
  104. package/dist/index299.js +819 -16
  105. package/dist/index300.js +2 -23
  106. package/dist/index301.js +79 -1534
  107. package/dist/index302.js +22 -386
  108. package/dist/index303.js +902 -2698
  109. package/dist/index304.js +21 -85
  110. package/dist/index305.js +20 -3798
  111. package/dist/index306.js +19 -59
  112. package/dist/index307.js +69 -15
  113. package/dist/index308.js +19 -84
  114. package/dist/index309.js +18 -201
  115. package/dist/index310.js +22 -246
  116. package/dist/index311.js +21 -78
  117. package/dist/index312.js +63 -22
  118. package/dist/index313.js +250 -920
  119. package/dist/index314.js +5 -21
  120. package/dist/index315.js +149 -19
  121. package/dist/index316.js +68 -19
  122. package/dist/index317.js +86 -64
  123. package/dist/index318.js +29 -19
  124. package/dist/index319.js +16 -19
  125. package/dist/index320.js +74 -21
  126. package/dist/index321.js +3 -21
  127. package/dist/index322.js +2 -63
  128. package/dist/index323.js +78 -31
  129. package/dist/index324.js +52 -259
  130. package/dist/index325.js +3 -3
  131. package/dist/index326.js +4 -149
  132. package/dist/index327.js +185 -68
  133. package/dist/index328.js +57 -85
  134. package/dist/index329.js +75 -29
  135. package/dist/index330.js +36 -15
  136. package/dist/index331.js +8 -74
  137. package/dist/index332.js +12 -3
  138. package/dist/index333.js +55 -2
  139. package/dist/index334.js +9 -81
  140. package/dist/index335.js +13 -57
  141. package/dist/index336.js +56 -4
  142. package/dist/index337.js +51 -4
  143. package/dist/index338.js +23 -178
  144. package/dist/index339.js +2 -63
  145. package/dist/index340.js +4 -74
  146. package/dist/index341.js +2 -9
  147. package/dist/index342.js +23 -13
  148. package/dist/index343.js +38 -52
  149. package/dist/index344.js +2 -12
  150. package/dist/index345.js +11 -14
  151. package/dist/index346.js +16 -54
  152. package/dist/index347.js +10 -52
  153. package/dist/index348.js +10 -31
  154. package/dist/index349.js +17 -2
  155. package/dist/index350.js +2 -5
  156. package/dist/index351.js +9 -2
  157. package/dist/index352.js +10 -23
  158. package/dist/index353.js +12 -39
  159. package/dist/index354.js +1534 -2
  160. package/dist/index355.js +384 -9
  161. package/dist/index356.js +2727 -16
  162. package/dist/index357.js +86 -10
  163. package/dist/index358.js +3797 -9
  164. package/dist/index359.js +58 -15
  165. package/dist/index360.js +15 -2
  166. package/dist/index361.js +84 -9
  167. package/dist/index362.js +201 -9
  168. package/dist/index363.js +245 -13
  169. package/dist/index364.js +1 -1
  170. package/dist/index365.js +1 -1
  171. package/dist/index366.js +2 -2
  172. package/dist/index367.js +1 -1
  173. package/dist/index368.js +2 -2
  174. package/dist/index369.js +1 -1
  175. package/dist/index370.js +6 -6
  176. package/dist/index371.js +2 -2
  177. package/dist/index372.js +2 -2
  178. package/dist/index374.js +2 -2
  179. package/dist/index375.js +2 -2
  180. package/dist/index376.js +1 -1
  181. package/dist/index378.js +8 -8
  182. package/dist/index379.js +8 -8
  183. package/dist/index38.js +2 -2
  184. package/dist/index380.js +16 -97
  185. package/dist/index381.js +28 -98
  186. package/dist/index382.js +10 -90
  187. package/dist/index383.js +4 -17
  188. package/dist/index384.js +3 -30
  189. package/dist/index385.js +13 -11
  190. package/dist/index386.js +7 -4
  191. package/dist/index387.js +13 -3
  192. package/dist/index388.js +5 -13
  193. package/dist/index389.js +36 -7
  194. package/dist/index390.js +35 -12
  195. package/dist/index391.js +30 -5
  196. package/dist/index392.js +64 -36
  197. package/dist/index393.js +99 -35
  198. package/dist/index394.js +91 -30
  199. package/dist/index395.js +96 -62
  200. package/dist/index396.js +1 -1
  201. package/dist/index402.js +1 -1
  202. package/package.json +1 -1
package/dist/index322.js CHANGED
@@ -1,65 +1,4 @@
1
- import a from "./index288.js";
2
- var l = {
3
- root: function(e) {
4
- var p = e.instance, n = e.props, o = e.state;
5
- return ["p-dropdown p-component p-inputwrapper", {
6
- "p-disabled": n.disabled,
7
- "p-invalid": n.invalid,
8
- "p-variant-filled": n.variant ? n.variant === "filled" : p.$primevue.config.inputStyle === "filled",
9
- "p-dropdown-clearable": n.showClear,
10
- "p-focus": o.focused,
11
- "p-inputwrapper-filled": p.hasSelectedOption,
12
- "p-inputwrapper-focus": o.focused || o.overlayVisible,
13
- "p-overlay-open": o.overlayVisible
14
- }];
15
- },
16
- input: function(e) {
17
- var p, n = e.instance, o = e.props;
18
- return ["p-dropdown-label p-inputtext", {
19
- "p-placeholder": !o.editable && n.label === o.placeholder,
20
- "p-dropdown-label-empty": !o.editable && !n.$slots.value && (n.label === "p-emptylabel" || ((p = n.label) === null || p === void 0 ? void 0 : p.length) === 0)
21
- }];
22
- },
23
- clearIcon: "p-dropdown-clear-icon",
24
- trigger: "p-dropdown-trigger",
25
- loadingicon: "p-dropdown-trigger-icon",
26
- dropdownIcon: "p-dropdown-trigger-icon",
27
- panel: function(e) {
28
- e.props;
29
- var p = e.instance;
30
- return ["p-dropdown-panel p-component", {
31
- "p-ripple-disabled": p.$primevue.config.ripple === !1
32
- }];
33
- },
34
- header: "p-dropdown-header",
35
- filterContainer: "p-dropdown-filter-container",
36
- filterInput: function(e) {
37
- var p = e.props, n = e.instance;
38
- return ["p-dropdown-filter p-inputtext p-component", {
39
- "p-variant-filled": p.variant ? p.variant === "filled" : n.$primevue.config.inputStyle === "filled"
40
- }];
41
- },
42
- filterIcon: "p-dropdown-filter-icon",
43
- wrapper: "p-dropdown-items-wrapper",
44
- list: "p-dropdown-items",
45
- itemGroup: "p-dropdown-item-group",
46
- itemGroupLabel: "p-dropdown-item-group-label",
47
- item: function(e) {
48
- var p = e.instance, n = e.props, o = e.state, t = e.option, r = e.focusedOption;
49
- return ["p-dropdown-item", {
50
- "p-highlight": p.isSelected(t) && n.highlightOnSelect,
51
- "p-focus": o.focusedOptionIndex === r,
52
- "p-disabled": p.isOptionDisabled(t)
53
- }];
54
- },
55
- itemLabel: "p-dropdown-item-label",
56
- checkIcon: "p-dropdown-check-icon",
57
- blankIcon: "p-dropdown-blank-icon",
58
- emptyMessage: "p-dropdown-empty-message"
59
- }, s = a.extend({
60
- name: "dropdown",
61
- classes: l
62
- });
1
+ const o = "1.13.6";
63
2
  export {
64
- s as default
3
+ o as VERSION
65
4
  };
package/dist/index323.js CHANGED
@@ -1,39 +1,86 @@
1
- import n from "./index288.js";
2
- var e = `
3
- .p-icon {
4
- display: inline-block;
1
+ import t from "./index313.js";
2
+ import E from "./index324.js";
3
+ function a(i) {
4
+ return t.isPlainObject(i) || t.isArray(i);
5
5
  }
6
-
7
- .p-icon-spin {
8
- -webkit-animation: p-icon-spin 2s infinite linear;
9
- animation: p-icon-spin 2s infinite linear;
6
+ function F(i) {
7
+ return t.endsWith(i, "[]") ? i.slice(0, -2) : i;
10
8
  }
11
-
12
- @-webkit-keyframes p-icon-spin {
13
- 0% {
14
- -webkit-transform: rotate(0deg);
15
- transform: rotate(0deg);
16
- }
17
- 100% {
18
- -webkit-transform: rotate(359deg);
19
- transform: rotate(359deg);
20
- }
9
+ function p(i, e, s) {
10
+ return i ? i.concat(e).map(function(o, d) {
11
+ return o = F(o), !s && d ? "[" + o + "]" : o;
12
+ }).join(s ? "." : "") : e;
13
+ }
14
+ function T(i) {
15
+ return t.isArray(i) && !i.some(a);
21
16
  }
22
-
23
- @keyframes p-icon-spin {
24
- 0% {
25
- -webkit-transform: rotate(0deg);
26
- transform: rotate(0deg);
17
+ const S = t.toFlatObject(t, {}, null, function(e) {
18
+ return /^is[A-Z]/.test(e);
19
+ });
20
+ function V(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(
24
+ s,
25
+ {
26
+ metaTokens: !0,
27
+ dots: !1,
28
+ indexes: !1
29
+ },
30
+ !1,
31
+ function(n, f) {
32
+ return !t.isUndefined(f[n]);
33
+ }
34
+ );
35
+ const m = s.metaTokens, o = s.visitor || A, d = s.dots, w = s.indexes, j = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
36
+ if (!t.isFunction(o))
37
+ throw new TypeError("visitor must be a function");
38
+ function b(r) {
39
+ if (r === null) return "";
40
+ if (t.isDate(r))
41
+ return r.toISOString();
42
+ if (t.isBoolean(r))
43
+ return r.toString();
44
+ if (!j && t.isBlob(r))
45
+ throw new E("Blob is not supported. Use a Buffer instead.");
46
+ return t.isArrayBuffer(r) || t.isTypedArray(r) ? j && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
47
+ }
48
+ function A(r, n, f) {
49
+ let c = r;
50
+ if (t.isReactNative(e) && t.isReactNativeBlob(r))
51
+ return e.append(p(f, n, d), b(r)), !1;
52
+ if (r && !f && typeof r == "object") {
53
+ if (t.endsWith(n, "{}"))
54
+ n = m ? n : n.slice(0, -2), r = JSON.stringify(r);
55
+ else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (c = t.toArray(r)))
56
+ return n = F(n), c.forEach(function(l, x) {
57
+ !(t.isUndefined(l) || l === null) && e.append(
58
+ // eslint-disable-next-line no-nested-ternary
59
+ w === !0 ? p([n], x, d) : w === null ? n : n + "[]",
60
+ b(l)
61
+ );
62
+ }), !1;
27
63
  }
28
- 100% {
29
- -webkit-transform: rotate(359deg);
30
- transform: rotate(359deg);
64
+ return a(r) ? !0 : (e.append(p(f, n, d), b(r)), !1);
65
+ }
66
+ const B = [], h = Object.assign(S, {
67
+ defaultVisitor: A,
68
+ convertValue: b,
69
+ isVisitable: a
70
+ });
71
+ function O(r, n) {
72
+ if (!t.isUndefined(r)) {
73
+ if (B.indexOf(r) !== -1)
74
+ throw Error("Circular reference detected in " + n.join("."));
75
+ B.push(r), t.forEach(r, function(c, u) {
76
+ (!(t.isUndefined(c) || c === null) && o.call(e, c, t.isString(u) ? u.trim() : u, n, h)) === !0 && O(c, n ? n.concat(u) : [u]);
77
+ }), B.pop();
31
78
  }
79
+ }
80
+ if (!t.isObject(i))
81
+ throw new TypeError("data must be an object");
82
+ return O(i), e;
32
83
  }
33
- `, i = n.extend({
34
- name: "baseicon",
35
- css: e
36
- });
37
84
  export {
38
- i as default
85
+ V as default
39
86
  };
package/dist/index324.js CHANGED
@@ -1,267 +1,60 @@
1
- import M from "./index325.js";
2
- const { toString: N } = Object.prototype, { getPrototypeOf: F } = Object, { iterator: g, toStringTag: S } = Symbol, b = /* @__PURE__ */ ((e) => (t) => {
3
- const n = N.call(t);
4
- return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
5
- })(/* @__PURE__ */ Object.create(null)), c = (e) => (e = e.toLowerCase(), (t) => b(t) === e), O = (e) => (t) => typeof t === e, { isArray: d } = Array, a = O("undefined");
6
- function p(e) {
7
- return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && f(e.constructor.isBuffer) && e.constructor.isBuffer(e);
8
- }
9
- const C = c("ArrayBuffer");
10
- function _(e) {
11
- let t;
12
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && C(e.buffer), t;
13
- }
14
- const U = O("string"), f = O("function"), E = O("number"), y = (e) => e !== null && typeof e == "object", I = (e) => e === !0 || e === !1, w = (e) => {
15
- if (b(e) !== "object")
16
- return !1;
17
- const t = F(e);
18
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
19
- }, k = (e) => {
20
- if (!y(e) || p(e))
21
- return !1;
22
- try {
23
- return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
24
- } catch {
25
- return !1;
26
- }
27
- }, V = c("Date"), q = c("File"), H = (e) => !!(e && typeof e.uri < "u"), z = (e) => e && typeof e.getParts < "u", G = c("Blob"), J = c("FileList"), K = (e) => y(e) && f(e.pipe);
28
- function $() {
29
- return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
30
- }
31
- const P = $(), x = typeof P.FormData < "u" ? P.FormData : void 0, W = (e) => {
32
- let t;
33
- return e && (x && e instanceof x || f(e.append) && ((t = b(e)) === "formdata" || // detect form-data instance
34
- t === "object" && f(e.toString) && e.toString() === "[object FormData]"));
35
- }, Q = c("URLSearchParams"), [X, Y, Z, j] = [
36
- "ReadableStream",
37
- "Request",
38
- "Response",
39
- "Headers"
40
- ].map(c), v = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
41
- function m(e, t, { allOwnKeys: n = !1 } = {}) {
42
- if (e === null || typeof e > "u")
43
- return;
44
- let r, s;
45
- if (typeof e != "object" && (e = [e]), d(e))
46
- for (r = 0, s = e.length; r < s; r++)
47
- t.call(null, e[r], r, e);
48
- else {
49
- if (p(e))
50
- return;
51
- const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
52
- let u;
53
- for (r = 0; r < i; r++)
54
- u = o[r], t.call(null, e[u], u, e);
1
+ import u from "./index313.js";
2
+ class t extends Error {
3
+ static from(R, e, i, _, s, a) {
4
+ const E = new t(R.message, e || R.code, i, _, s);
5
+ return E.cause = R, E.name = R.name, R.status != null && E.status == null && (E.status = R.status), a && Object.assign(E, a), E;
55
6
  }
56
- }
57
- function L(e, t) {
58
- if (p(e))
59
- return null;
60
- t = t.toLowerCase();
61
- const n = Object.keys(e);
62
- let r = n.length, s;
63
- for (; r-- > 0; )
64
- if (s = n[r], t === s.toLowerCase())
65
- return s;
66
- return null;
67
- }
68
- const l = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, R = (e) => !a(e) && e !== l;
69
- function h() {
70
- const { caseless: e, skipUndefined: t } = R(this) && this || {}, n = {}, r = (s, o) => {
71
- if (o === "__proto__" || o === "constructor" || o === "prototype")
72
- return;
73
- const i = e && L(n, o) || o;
74
- w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : d(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
75
- };
76
- for (let s = 0, o = arguments.length; s < o; s++)
77
- arguments[s] && m(arguments[s], r);
78
- return n;
79
- }
80
- const ee = (e, t, n, { allOwnKeys: r } = {}) => (m(
81
- t,
82
- (s, o) => {
83
- n && f(s) ? Object.defineProperty(e, o, {
84
- value: M(s, n),
85
- writable: !0,
7
+ /**
8
+ * Create an Error with the specified message, config, error code, request and response.
9
+ *
10
+ * @param {string} message The error message.
11
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
12
+ * @param {Object} [config] The config.
13
+ * @param {Object} [request] The request.
14
+ * @param {Object} [response] The response.
15
+ *
16
+ * @returns {Error} The created error.
17
+ */
18
+ constructor(R, e, i, _, s) {
19
+ super(R), Object.defineProperty(this, "message", {
20
+ value: R,
86
21
  enumerable: !0,
87
- configurable: !0
88
- }) : Object.defineProperty(e, o, {
89
- value: s,
90
22
  writable: !0,
91
- enumerable: !0,
92
23
  configurable: !0
93
- });
94
- },
95
- { allOwnKeys: r }
96
- ), e), te = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ne = (e, t, n, r) => {
97
- e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
98
- value: e,
99
- writable: !0,
100
- enumerable: !1,
101
- configurable: !0
102
- }), Object.defineProperty(e, "super", {
103
- value: t.prototype
104
- }), n && Object.assign(e.prototype, n);
105
- }, re = (e, t, n, r) => {
106
- let s, o, i;
107
- const u = {};
108
- if (t = t || {}, e == null) return t;
109
- do {
110
- for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
111
- i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
112
- e = n !== !1 && F(e);
113
- } while (e && (!n || n(e, t)) && e !== Object.prototype);
114
- return t;
115
- }, se = (e, t, n) => {
116
- e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
117
- const r = e.indexOf(t, n);
118
- return r !== -1 && r === n;
119
- }, oe = (e) => {
120
- if (!e) return null;
121
- if (d(e)) return e;
122
- let t = e.length;
123
- if (!E(t)) return null;
124
- const n = new Array(t);
125
- for (; t-- > 0; )
126
- n[t] = e[t];
127
- return n;
128
- }, ie = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && F(Uint8Array)), fe = (e, t) => {
129
- const r = (e && e[g]).call(e);
130
- let s;
131
- for (; (s = r.next()) && !s.done; ) {
132
- const o = s.value;
133
- t.call(e, o[0], o[1]);
24
+ }), this.name = "AxiosError", this.isAxiosError = !0, e && (this.code = e), i && (this.config = i), _ && (this.request = _), s && (this.response = s, this.status = s.status);
25
+ }
26
+ toJSON() {
27
+ return {
28
+ // Standard
29
+ message: this.message,
30
+ name: this.name,
31
+ // Microsoft
32
+ description: this.description,
33
+ number: this.number,
34
+ // Mozilla
35
+ fileName: this.fileName,
36
+ lineNumber: this.lineNumber,
37
+ columnNumber: this.columnNumber,
38
+ stack: this.stack,
39
+ // Axios
40
+ config: u.toJSONObject(this.config),
41
+ code: this.code,
42
+ status: this.status
43
+ };
134
44
  }
135
- }, ce = (e, t) => {
136
- let n;
137
- const r = [];
138
- for (; (n = e.exec(t)) !== null; )
139
- r.push(n);
140
- return r;
141
- }, ue = c("HTMLFormElement"), le = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
142
- return r.toUpperCase() + s;
143
- }), B = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ae = c("RegExp"), T = (e, t) => {
144
- const n = Object.getOwnPropertyDescriptors(e), r = {};
145
- m(n, (s, o) => {
146
- let i;
147
- (i = t(s, o, e)) !== !1 && (r[o] = i || s);
148
- }), Object.defineProperties(e, r);
149
- }, de = (e) => {
150
- T(e, (t, n) => {
151
- if (f(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
152
- return !1;
153
- const r = e[n];
154
- if (f(r)) {
155
- if (t.enumerable = !1, "writable" in t) {
156
- t.writable = !1;
157
- return;
158
- }
159
- t.set || (t.set = () => {
160
- throw Error("Can not rewrite read-only method '" + n + "'");
161
- });
162
- }
163
- });
164
- }, pe = (e, t) => {
165
- const n = {}, r = (s) => {
166
- s.forEach((o) => {
167
- n[o] = !0;
168
- });
169
- };
170
- return d(e) ? r(e) : r(String(e).split(t)), n;
171
- }, ye = () => {
172
- }, me = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
173
- function we(e) {
174
- return !!(e && f(e.append) && e[S] === "FormData" && e[g]);
175
45
  }
176
- const ge = (e) => {
177
- const t = new Array(10), n = (r, s) => {
178
- if (y(r)) {
179
- if (t.indexOf(r) >= 0)
180
- return;
181
- if (p(r))
182
- return r;
183
- if (!("toJSON" in r)) {
184
- t[s] = r;
185
- const o = d(r) ? [] : {};
186
- return m(r, (i, u) => {
187
- const A = n(i, s + 1);
188
- !a(A) && (o[u] = A);
189
- }), t[s] = void 0, o;
190
- }
191
- }
192
- return r;
193
- };
194
- return n(e, 0);
195
- }, be = c("AsyncFunction"), Oe = (e) => e && (y(e) || f(e)) && f(e.then) && f(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (l.addEventListener(
196
- "message",
197
- ({ source: s, data: o }) => {
198
- s === l && o === n && r.length && r.shift()();
199
- },
200
- !1
201
- ), (s) => {
202
- r.push(s), l.postMessage(n, "*");
203
- }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", f(l.postMessage)), he = typeof queueMicrotask < "u" ? queueMicrotask.bind(l) : typeof process < "u" && process.nextTick || D, Fe = (e) => e != null && f(e[g]), Pe = {
204
- isArray: d,
205
- isArrayBuffer: C,
206
- isBuffer: p,
207
- isFormData: W,
208
- isArrayBufferView: _,
209
- isString: U,
210
- isNumber: E,
211
- isBoolean: I,
212
- isObject: y,
213
- isPlainObject: w,
214
- isEmptyObject: k,
215
- isReadableStream: X,
216
- isRequest: Y,
217
- isResponse: Z,
218
- isHeaders: j,
219
- isUndefined: a,
220
- isDate: V,
221
- isFile: q,
222
- isReactNativeBlob: H,
223
- isReactNative: z,
224
- isBlob: G,
225
- isRegExp: ae,
226
- isFunction: f,
227
- isStream: K,
228
- isURLSearchParams: Q,
229
- isTypedArray: ie,
230
- isFileList: J,
231
- forEach: m,
232
- merge: h,
233
- extend: ee,
234
- trim: v,
235
- stripBOM: te,
236
- inherits: ne,
237
- toFlatObject: re,
238
- kindOf: b,
239
- kindOfTest: c,
240
- endsWith: se,
241
- toArray: oe,
242
- forEachEntry: fe,
243
- matchAll: ce,
244
- isHTMLForm: ue,
245
- hasOwnProperty: B,
246
- hasOwnProp: B,
247
- // an alias to avoid ESLint no-prototype-builtins detection
248
- reduceDescriptors: T,
249
- freezeMethods: de,
250
- toObjectSet: pe,
251
- toCamelCase: le,
252
- noop: ye,
253
- toFiniteNumber: me,
254
- findKey: L,
255
- global: l,
256
- isContextDefined: R,
257
- isSpecCompliantForm: we,
258
- toJSONObject: ge,
259
- isAsyncFn: be,
260
- isThenable: Oe,
261
- setImmediate: D,
262
- asap: he,
263
- isIterable: Fe
264
- };
46
+ t.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
47
+ t.ERR_BAD_OPTION = "ERR_BAD_OPTION";
48
+ t.ECONNABORTED = "ECONNABORTED";
49
+ t.ETIMEDOUT = "ETIMEDOUT";
50
+ t.ERR_NETWORK = "ERR_NETWORK";
51
+ t.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
52
+ t.ERR_DEPRECATED = "ERR_DEPRECATED";
53
+ t.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
54
+ t.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
55
+ t.ERR_CANCELED = "ERR_CANCELED";
56
+ t.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
57
+ t.ERR_INVALID_URL = "ERR_INVALID_URL";
265
58
  export {
266
- Pe as default
59
+ t as default
267
60
  };
package/dist/index325.js CHANGED
@@ -1,6 +1,6 @@
1
- function u(n, r) {
2
- return function() {
3
- return n.apply(r, arguments);
1
+ function u(n) {
2
+ return function(r) {
3
+ return n.apply(null, r);
4
4
  };
5
5
  }
6
6
  export {
package/dist/index326.js CHANGED
@@ -1,152 +1,7 @@
1
- import d from "./index324.js";
2
- import S from "./index368.js";
3
- import E from "./index369.js";
4
- import I from "./index370.js";
5
- import w from "./index327.js";
6
- import U from "./index371.js";
7
- import y from "./index372.js";
8
- import A from "./index338.js";
9
- import T from "./index373.js";
10
- const l = y.validators;
11
- class q {
12
- constructor(t) {
13
- this.defaults = t || {}, this.interceptors = {
14
- request: new E(),
15
- response: new E()
16
- };
17
- }
18
- /**
19
- * Dispatch a request
20
- *
21
- * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
22
- * @param {?Object} config
23
- *
24
- * @returns {Promise} The Promise to be fulfilled
25
- */
26
- async request(t, e) {
27
- try {
28
- return await this._request(t, e);
29
- } catch (r) {
30
- if (r instanceof Error) {
31
- let n = {};
32
- Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
33
- const s = n.stack ? n.stack.replace(/^.+\n/, "") : "";
34
- try {
35
- r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
36
- ` + s) : r.stack = s;
37
- } catch {
38
- }
39
- }
40
- throw r;
41
- }
42
- }
43
- _request(t, e) {
44
- typeof t == "string" ? (e = e || {}, e.url = t) : e = t || {}, e = w(this.defaults, e);
45
- const { transitional: r, paramsSerializer: n, headers: s } = e;
46
- r !== void 0 && y.assertOptions(
47
- r,
48
- {
49
- silentJSONParsing: l.transitional(l.boolean),
50
- forcedJSONParsing: l.transitional(l.boolean),
51
- clarifyTimeoutError: l.transitional(l.boolean),
52
- legacyInterceptorReqResOrdering: l.transitional(l.boolean)
53
- },
54
- !1
55
- ), n != null && (d.isFunction(n) ? e.paramsSerializer = {
56
- serialize: n
57
- } : y.assertOptions(
58
- n,
59
- {
60
- encode: l.function,
61
- serialize: l.function
62
- },
63
- !0
64
- )), e.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? e.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : e.allowAbsoluteUrls = !0), y.assertOptions(
65
- e,
66
- {
67
- baseUrl: l.spelling("baseURL"),
68
- withXsrfToken: l.spelling("withXSRFToken")
69
- },
70
- !0
71
- ), e.method = (e.method || this.defaults.method || "get").toLowerCase();
72
- let f = s && d.merge(s.common, s[e.method]);
73
- s && d.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (a) => {
74
- delete s[a];
75
- }), e.headers = A.concat(f, s);
76
- const u = [];
77
- let b = !0;
78
- this.interceptors.request.forEach(function(o) {
79
- if (typeof o.runWhen == "function" && o.runWhen(e) === !1)
80
- return;
81
- b = b && o.synchronous;
82
- const m = e.transitional || T;
83
- m && m.legacyInterceptorReqResOrdering ? u.unshift(o.fulfilled, o.rejected) : u.push(o.fulfilled, o.rejected);
84
- });
85
- const p = [];
86
- this.interceptors.response.forEach(function(o) {
87
- p.push(o.fulfilled, o.rejected);
88
- });
89
- let h, i = 0, c;
90
- if (!b) {
91
- const a = [I.bind(this), void 0];
92
- for (a.unshift(...u), a.push(...p), c = a.length, h = Promise.resolve(e); i < c; )
93
- h = h.then(a[i++], a[i++]);
94
- return h;
95
- }
96
- c = u.length;
97
- let R = e;
98
- for (; i < c; ) {
99
- const a = u[i++], o = u[i++];
100
- try {
101
- R = a(R);
102
- } catch (m) {
103
- o.call(this, m);
104
- break;
105
- }
106
- }
107
- try {
108
- h = I.call(this, R);
109
- } catch (a) {
110
- return Promise.reject(a);
111
- }
112
- for (i = 0, c = p.length; i < c; )
113
- h = h.then(p[i++], p[i++]);
114
- return h;
115
- }
116
- getUri(t) {
117
- t = w(this.defaults, t);
118
- const e = U(t.baseURL, t.url, t.allowAbsoluteUrls);
119
- return S(e, t.params, t.paramsSerializer);
120
- }
1
+ import i from "./index313.js";
2
+ function o(r) {
3
+ return i.isObject(r) && r.isAxiosError === !0;
121
4
  }
122
- d.forEach(["delete", "get", "head", "options"], function(t) {
123
- q.prototype[t] = function(e, r) {
124
- return this.request(
125
- w(r || {}, {
126
- method: t,
127
- url: e,
128
- data: (r || {}).data
129
- })
130
- );
131
- };
132
- });
133
- d.forEach(["post", "put", "patch"], function(t) {
134
- function e(r) {
135
- return function(s, f, u) {
136
- return this.request(
137
- w(u || {}, {
138
- method: t,
139
- headers: r ? {
140
- "Content-Type": "multipart/form-data"
141
- } : {},
142
- url: s,
143
- data: f
144
- })
145
- );
146
- };
147
- }
148
- q.prototype[t] = e(), q.prototype[t + "Form"] = e(!0);
149
- });
150
5
  export {
151
- q as default
6
+ o as default
152
7
  };