st-comp 0.0.122 → 0.0.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +14 -13
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +26 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +849 -1605
- package/es/KlineBasic.cjs +6 -0
- package/es/KlineBasic.js +2888 -0
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +18 -17
- package/es/Pie.cjs +1 -1
- package/es/Pie.js +1 -1
- package/es/Table.cjs +1 -1
- package/es/Table.js +18 -17
- package/es/User.cjs +1 -1
- package/es/User.js +75 -74
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +903 -1253
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +13 -12
- package/es/{base-f7877059.js → base-a8f938bd.js} +6 -6
- package/es/{castArray-18f43497.js → castArray-5c01dae1.js} +1 -1
- package/es/config-provider-4954003d.cjs +1 -0
- package/es/{config-provider-6479d795.js → config-provider-d3edea8a.js} +3 -3
- package/es/{debounce-2336e546.js → debounce-edbff018.js} +10 -10
- package/es/{dropdown-46daf582.js → dropdown-7e381525.js} +4 -4
- package/es/el-button-c7b375c4.cjs +1 -0
- package/es/{el-button-802f579a.js → el-button-ce99c64e.js} +6 -5
- package/es/{el-empty-3c5ec277.js → el-empty-ed6c115b.js} +1 -1
- package/es/{el-form-item-84099d46.js → el-form-item-b686a8bb.js} +9 -9
- package/es/{el-form-item-c39f717e.cjs → el-form-item-ff0d8d07.cjs} +1 -1
- package/es/{el-input-fac5b401.js → el-input-21e079e4.js} +5 -5
- package/es/el-menu-item-9369a2ad.js +771 -0
- package/es/el-menu-item-dc904a35.cjs +1 -0
- package/es/el-message-e97bdea1.cjs +1 -0
- package/es/el-message-fd827012.js +374 -0
- package/es/el-overlay-7b90d61c.cjs +1 -0
- package/es/{el-overlay-69e9ae49.js → el-overlay-9245ec1e.js} +77 -76
- package/es/{el-popover-694ded47.js → el-popover-6f075cee.js} +4 -4
- package/es/{el-popover-8735b1fa.cjs → el-popover-6f48d00b.cjs} +1 -1
- package/es/{el-popper-6126b1f6.js → el-popper-8dca8dd4.js} +4 -4
- package/es/{el-scrollbar-e0493906.js → el-scrollbar-906103f8.js} +1 -1
- package/es/{el-select-513126a5.js → el-select-6d6093eb.js} +10 -10
- package/es/el-table-column-26e7f13f.cjs +14 -0
- package/es/{el-table-column-3c920bdd.js → el-table-column-3f388c44.js} +15 -14
- package/es/{el-tag-5becabc9.js → el-tag-cdf0019e.js} +19 -19
- package/es/{index-7e40be25.js → index-53bce290.js} +3 -3
- package/es/index-669a0983.js +14 -0
- package/es/{index-048dca7e.js → index-6ced00c4.js} +1 -1
- package/es/index-c4649a37.cjs +3 -0
- package/es/{index-dc273ea2.cjs → index-d1b7c61e.cjs} +39 -39
- package/es/{index-57f8f7b9.js → index-f8e448bc.js} +5893 -5856
- package/es/{raf-07da7cdf.js → raf-b584bce8.js} +1 -1
- package/es/{refs-1b1fe6ca.js → refs-e1675167.js} +1 -1
- package/es/{scroll-3b521d81.js → scroll-25ec9230.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-f3a520d0.js → use-form-common-props-f7d2e83c.js} +18 -18
- package/es/use-global-config-8429db7d.js +72 -0
- package/es/{index-8a0b1c53.cjs → use-global-config-ac2dad80.cjs} +1 -3
- package/es/{vnode-25d7c2f5.js → vnode-699e61cb.js} +1 -1
- package/es/{zh-cn-74781bbd.js → zh-cn-61ca7f91.js} +2 -2
- package/es/{zh-cn-ab9a583d.cjs → zh-cn-a20960b5.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +213 -208
- package/lib/{index-62c62885.js → index-741ecbcc.js} +38391 -35484
- package/lib/{python-6cdad7a6.js → python-5a672b35.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/packages/KlineBasic/api.js +60 -0
- package/packages/KlineBasic/components/Contextmenu/index.vue +105 -0
- package/packages/KlineBasic/components/KlineSub/index.vue +297 -0
- package/packages/KlineBasic/components/KlineTips/index.vue +66 -0
- package/packages/KlineBasic/components/Tips/index.vue +33 -0
- package/packages/KlineBasic/index.ts +8 -0
- package/packages/KlineBasic/index.vue +565 -0
- package/packages/KlineBasic/utils.js +86 -0
- package/packages/VarietySearch/components/FactorScreen/index.vue +7 -7
- package/packages/index.ts +2 -0
- package/src/main.ts +2 -0
- package/src/pages/KlineBasic/api.js +45 -0
- package/src/pages/KlineBasic/index.vue +74 -0
- package/src/pages/KlineBasic/indicator.js +114 -0
- package/src/pages/VarietySearch/index.vue +3 -2
- package/src/router/routes.ts +5 -0
- package/es/config-provider-7cdfca4d.cjs +0 -1
- package/es/el-button-196807af.cjs +0 -1
- package/es/el-overlay-891dcc40.cjs +0 -1
- package/es/el-table-column-dd8b62aa.cjs +0 -14
- package/es/index-35117549.js +0 -81
package/es/KlineBasic.js
ADDED
|
@@ -0,0 +1,2888 @@
|
|
|
1
|
+
import "./base-a8f938bd.js";
|
|
2
|
+
import { E as en, a as tn } from "./el-menu-item-9369a2ad.js";
|
|
3
|
+
import "./el-tooltip-4ed993c7.js";
|
|
4
|
+
import "./el-popper-8dca8dd4.js";
|
|
5
|
+
import { defineComponent as Et, openBlock as z, createElementBlock as Z, Fragment as Ze, renderList as Ge, normalizeStyle as Qe, toDisplayString as qe, computed as he, createVNode as oe, ref as Q, onMounted as vt, onUnmounted as Rt, nextTick as Tt, createElementVNode as pe, withCtx as fe, createBlock as Ot, createCommentVNode as et, renderSlot as at, watch as nn, createTextVNode as rn } from "vue";
|
|
6
|
+
import * as He from "echarts";
|
|
7
|
+
import { U as sn, V as ke, x as $e, D as on } from "./index-f8e448bc.js";
|
|
8
|
+
import { E as At } from "./el-message-fd827012.js";
|
|
9
|
+
import { _ as ye } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
+
import "./el-tag-cdf0019e.js";
|
|
11
|
+
import { E as an, a as cn } from "./el-select-6d6093eb.js";
|
|
12
|
+
import "./el-scrollbar-906103f8.js";
|
|
13
|
+
import "./use-form-common-props-f7d2e83c.js";
|
|
14
|
+
import "./index-6ced00c4.js";
|
|
15
|
+
import "./index-657047bb.js";
|
|
16
|
+
import "./typescript-7ae59c4c.js";
|
|
17
|
+
import "./vnode-699e61cb.js";
|
|
18
|
+
import "./use-global-config-8429db7d.js";
|
|
19
|
+
import "./config-provider-d3edea8a.js";
|
|
20
|
+
import "./index-53bce290.js";
|
|
21
|
+
import "./castArray-5c01dae1.js";
|
|
22
|
+
import "./event-09e37cc8.js";
|
|
23
|
+
import "./scroll-25ec9230.js";
|
|
24
|
+
import "./debounce-edbff018.js";
|
|
25
|
+
var ln = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
26
|
+
function un(e) {
|
|
27
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
28
|
+
}
|
|
29
|
+
var kt = { exports: {} };
|
|
30
|
+
(function(e, t) {
|
|
31
|
+
(function(r, n) {
|
|
32
|
+
e.exports = n();
|
|
33
|
+
})(ln, function() {
|
|
34
|
+
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", d = "hour", l = "day", u = "week", h = "month", x = "quarter", R = "year", p = "date", S = "Invalid Date", y = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, L = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, N = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
35
|
+
var b = ["th", "st", "nd", "rd"], f = w % 100;
|
|
36
|
+
return "[" + w + (b[(f - 20) % 10] || b[f] || b[0]) + "]";
|
|
37
|
+
} }, A = function(w, b, f) {
|
|
38
|
+
var g = String(w);
|
|
39
|
+
return !g || g.length >= b ? w : "" + Array(b + 1 - g.length).join(f) + w;
|
|
40
|
+
}, k = { s: A, z: function(w) {
|
|
41
|
+
var b = -w.utcOffset(), f = Math.abs(b), g = Math.floor(f / 60), m = f % 60;
|
|
42
|
+
return (b <= 0 ? "+" : "-") + A(g, 2, "0") + ":" + A(m, 2, "0");
|
|
43
|
+
}, m: function w(b, f) {
|
|
44
|
+
if (b.date() < f.date())
|
|
45
|
+
return -w(f, b);
|
|
46
|
+
var g = 12 * (f.year() - b.year()) + (f.month() - b.month()), m = b.clone().add(g, h), _ = f - m < 0, E = b.clone().add(g + (_ ? -1 : 1), h);
|
|
47
|
+
return +(-(g + (f - m) / (_ ? m - E : E - m)) || 0);
|
|
48
|
+
}, a: function(w) {
|
|
49
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
50
|
+
}, p: function(w) {
|
|
51
|
+
return { M: h, y: R, w: u, d: l, D: p, h: d, m: c, s: i, ms: s, Q: x }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
52
|
+
}, u: function(w) {
|
|
53
|
+
return w === void 0;
|
|
54
|
+
} }, P = "en", M = {};
|
|
55
|
+
M[P] = N;
|
|
56
|
+
var Y = "$isDayjsObject", G = function(w) {
|
|
57
|
+
return w instanceof F || !(!w || !w[Y]);
|
|
58
|
+
}, K = function w(b, f, g) {
|
|
59
|
+
var m;
|
|
60
|
+
if (!b)
|
|
61
|
+
return P;
|
|
62
|
+
if (typeof b == "string") {
|
|
63
|
+
var _ = b.toLowerCase();
|
|
64
|
+
M[_] && (m = _), f && (M[_] = f, m = _);
|
|
65
|
+
var E = b.split("-");
|
|
66
|
+
if (!m && E.length > 1)
|
|
67
|
+
return w(E[0]);
|
|
68
|
+
} else {
|
|
69
|
+
var $ = b.name;
|
|
70
|
+
M[$] = b, m = $;
|
|
71
|
+
}
|
|
72
|
+
return !g && m && (P = m), m || !g && P;
|
|
73
|
+
}, U = function(w, b) {
|
|
74
|
+
if (G(w))
|
|
75
|
+
return w.clone();
|
|
76
|
+
var f = typeof b == "object" ? b : {};
|
|
77
|
+
return f.date = w, f.args = arguments, new F(f);
|
|
78
|
+
}, v = k;
|
|
79
|
+
v.l = K, v.i = G, v.w = function(w, b) {
|
|
80
|
+
return U(w, { locale: b.$L, utc: b.$u, x: b.$x, $offset: b.$offset });
|
|
81
|
+
};
|
|
82
|
+
var F = function() {
|
|
83
|
+
function w(f) {
|
|
84
|
+
this.$L = K(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[Y] = !0;
|
|
85
|
+
}
|
|
86
|
+
var b = w.prototype;
|
|
87
|
+
return b.parse = function(f) {
|
|
88
|
+
this.$d = function(g) {
|
|
89
|
+
var m = g.date, _ = g.utc;
|
|
90
|
+
if (m === null)
|
|
91
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
92
|
+
if (v.u(m))
|
|
93
|
+
return /* @__PURE__ */ new Date();
|
|
94
|
+
if (m instanceof Date)
|
|
95
|
+
return new Date(m);
|
|
96
|
+
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
97
|
+
var E = m.match(y);
|
|
98
|
+
if (E) {
|
|
99
|
+
var $ = E[2] - 1 || 0, C = (E[7] || "0").substring(0, 3);
|
|
100
|
+
return _ ? new Date(Date.UTC(E[1], $, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, C)) : new Date(E[1], $, E[3] || 1, E[4] || 0, E[5] || 0, E[6] || 0, C);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return new Date(m);
|
|
104
|
+
}(f), this.init();
|
|
105
|
+
}, b.init = function() {
|
|
106
|
+
var f = this.$d;
|
|
107
|
+
this.$y = f.getFullYear(), this.$M = f.getMonth(), this.$D = f.getDate(), this.$W = f.getDay(), this.$H = f.getHours(), this.$m = f.getMinutes(), this.$s = f.getSeconds(), this.$ms = f.getMilliseconds();
|
|
108
|
+
}, b.$utils = function() {
|
|
109
|
+
return v;
|
|
110
|
+
}, b.isValid = function() {
|
|
111
|
+
return this.$d.toString() !== S;
|
|
112
|
+
}, b.isSame = function(f, g) {
|
|
113
|
+
var m = U(f);
|
|
114
|
+
return this.startOf(g) <= m && m <= this.endOf(g);
|
|
115
|
+
}, b.isAfter = function(f, g) {
|
|
116
|
+
return U(f) < this.startOf(g);
|
|
117
|
+
}, b.isBefore = function(f, g) {
|
|
118
|
+
return this.endOf(g) < U(f);
|
|
119
|
+
}, b.$g = function(f, g, m) {
|
|
120
|
+
return v.u(f) ? this[g] : this.set(m, f);
|
|
121
|
+
}, b.unix = function() {
|
|
122
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
123
|
+
}, b.valueOf = function() {
|
|
124
|
+
return this.$d.getTime();
|
|
125
|
+
}, b.startOf = function(f, g) {
|
|
126
|
+
var m = this, _ = !!v.u(g) || g, E = v.p(f), $ = function(W, V) {
|
|
127
|
+
var se = v.w(m.$u ? Date.UTC(m.$y, V, W) : new Date(m.$y, V, W), m);
|
|
128
|
+
return _ ? se : se.endOf(l);
|
|
129
|
+
}, C = function(W, V) {
|
|
130
|
+
return v.w(m.toDate()[W].apply(m.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), m);
|
|
131
|
+
}, D = this.$W, T = this.$M, j = this.$D, q = "set" + (this.$u ? "UTC" : "");
|
|
132
|
+
switch (E) {
|
|
133
|
+
case R:
|
|
134
|
+
return _ ? $(1, 0) : $(31, 11);
|
|
135
|
+
case h:
|
|
136
|
+
return _ ? $(1, T) : $(0, T + 1);
|
|
137
|
+
case u:
|
|
138
|
+
var X = this.$locale().weekStart || 0, ne = (D < X ? D + 7 : D) - X;
|
|
139
|
+
return $(_ ? j - ne : j + (6 - ne), T);
|
|
140
|
+
case l:
|
|
141
|
+
case p:
|
|
142
|
+
return C(q + "Hours", 0);
|
|
143
|
+
case d:
|
|
144
|
+
return C(q + "Minutes", 1);
|
|
145
|
+
case c:
|
|
146
|
+
return C(q + "Seconds", 2);
|
|
147
|
+
case i:
|
|
148
|
+
return C(q + "Milliseconds", 3);
|
|
149
|
+
default:
|
|
150
|
+
return this.clone();
|
|
151
|
+
}
|
|
152
|
+
}, b.endOf = function(f) {
|
|
153
|
+
return this.startOf(f, !1);
|
|
154
|
+
}, b.$set = function(f, g) {
|
|
155
|
+
var m, _ = v.p(f), E = "set" + (this.$u ? "UTC" : ""), $ = (m = {}, m[l] = E + "Date", m[p] = E + "Date", m[h] = E + "Month", m[R] = E + "FullYear", m[d] = E + "Hours", m[c] = E + "Minutes", m[i] = E + "Seconds", m[s] = E + "Milliseconds", m)[_], C = _ === l ? this.$D + (g - this.$W) : g;
|
|
156
|
+
if (_ === h || _ === R) {
|
|
157
|
+
var D = this.clone().set(p, 1);
|
|
158
|
+
D.$d[$](C), D.init(), this.$d = D.set(p, Math.min(this.$D, D.daysInMonth())).$d;
|
|
159
|
+
} else
|
|
160
|
+
$ && this.$d[$](C);
|
|
161
|
+
return this.init(), this;
|
|
162
|
+
}, b.set = function(f, g) {
|
|
163
|
+
return this.clone().$set(f, g);
|
|
164
|
+
}, b.get = function(f) {
|
|
165
|
+
return this[v.p(f)]();
|
|
166
|
+
}, b.add = function(f, g) {
|
|
167
|
+
var m, _ = this;
|
|
168
|
+
f = Number(f);
|
|
169
|
+
var E = v.p(g), $ = function(T) {
|
|
170
|
+
var j = U(_);
|
|
171
|
+
return v.w(j.date(j.date() + Math.round(T * f)), _);
|
|
172
|
+
};
|
|
173
|
+
if (E === h)
|
|
174
|
+
return this.set(h, this.$M + f);
|
|
175
|
+
if (E === R)
|
|
176
|
+
return this.set(R, this.$y + f);
|
|
177
|
+
if (E === l)
|
|
178
|
+
return $(1);
|
|
179
|
+
if (E === u)
|
|
180
|
+
return $(7);
|
|
181
|
+
var C = (m = {}, m[c] = n, m[d] = o, m[i] = r, m)[E] || 1, D = this.$d.getTime() + f * C;
|
|
182
|
+
return v.w(D, this);
|
|
183
|
+
}, b.subtract = function(f, g) {
|
|
184
|
+
return this.add(-1 * f, g);
|
|
185
|
+
}, b.format = function(f) {
|
|
186
|
+
var g = this, m = this.$locale();
|
|
187
|
+
if (!this.isValid())
|
|
188
|
+
return m.invalidDate || S;
|
|
189
|
+
var _ = f || "YYYY-MM-DDTHH:mm:ssZ", E = v.z(this), $ = this.$H, C = this.$m, D = this.$M, T = m.weekdays, j = m.months, q = m.meridiem, X = function(V, se, ue, xe) {
|
|
190
|
+
return V && (V[se] || V(g, _)) || ue[se].slice(0, xe);
|
|
191
|
+
}, ne = function(V) {
|
|
192
|
+
return v.s($ % 12 || 12, V, "0");
|
|
193
|
+
}, W = q || function(V, se, ue) {
|
|
194
|
+
var xe = V < 12 ? "AM" : "PM";
|
|
195
|
+
return ue ? xe.toLowerCase() : xe;
|
|
196
|
+
};
|
|
197
|
+
return _.replace(L, function(V, se) {
|
|
198
|
+
return se || function(ue) {
|
|
199
|
+
switch (ue) {
|
|
200
|
+
case "YY":
|
|
201
|
+
return String(g.$y).slice(-2);
|
|
202
|
+
case "YYYY":
|
|
203
|
+
return v.s(g.$y, 4, "0");
|
|
204
|
+
case "M":
|
|
205
|
+
return D + 1;
|
|
206
|
+
case "MM":
|
|
207
|
+
return v.s(D + 1, 2, "0");
|
|
208
|
+
case "MMM":
|
|
209
|
+
return X(m.monthsShort, D, j, 3);
|
|
210
|
+
case "MMMM":
|
|
211
|
+
return X(j, D);
|
|
212
|
+
case "D":
|
|
213
|
+
return g.$D;
|
|
214
|
+
case "DD":
|
|
215
|
+
return v.s(g.$D, 2, "0");
|
|
216
|
+
case "d":
|
|
217
|
+
return String(g.$W);
|
|
218
|
+
case "dd":
|
|
219
|
+
return X(m.weekdaysMin, g.$W, T, 2);
|
|
220
|
+
case "ddd":
|
|
221
|
+
return X(m.weekdaysShort, g.$W, T, 3);
|
|
222
|
+
case "dddd":
|
|
223
|
+
return T[g.$W];
|
|
224
|
+
case "H":
|
|
225
|
+
return String($);
|
|
226
|
+
case "HH":
|
|
227
|
+
return v.s($, 2, "0");
|
|
228
|
+
case "h":
|
|
229
|
+
return ne(1);
|
|
230
|
+
case "hh":
|
|
231
|
+
return ne(2);
|
|
232
|
+
case "a":
|
|
233
|
+
return W($, C, !0);
|
|
234
|
+
case "A":
|
|
235
|
+
return W($, C, !1);
|
|
236
|
+
case "m":
|
|
237
|
+
return String(C);
|
|
238
|
+
case "mm":
|
|
239
|
+
return v.s(C, 2, "0");
|
|
240
|
+
case "s":
|
|
241
|
+
return String(g.$s);
|
|
242
|
+
case "ss":
|
|
243
|
+
return v.s(g.$s, 2, "0");
|
|
244
|
+
case "SSS":
|
|
245
|
+
return v.s(g.$ms, 3, "0");
|
|
246
|
+
case "Z":
|
|
247
|
+
return E;
|
|
248
|
+
}
|
|
249
|
+
return null;
|
|
250
|
+
}(V) || E.replace(":", "");
|
|
251
|
+
});
|
|
252
|
+
}, b.utcOffset = function() {
|
|
253
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
254
|
+
}, b.diff = function(f, g, m) {
|
|
255
|
+
var _, E = this, $ = v.p(g), C = U(f), D = (C.utcOffset() - this.utcOffset()) * n, T = this - C, j = function() {
|
|
256
|
+
return v.m(E, C);
|
|
257
|
+
};
|
|
258
|
+
switch ($) {
|
|
259
|
+
case R:
|
|
260
|
+
_ = j() / 12;
|
|
261
|
+
break;
|
|
262
|
+
case h:
|
|
263
|
+
_ = j();
|
|
264
|
+
break;
|
|
265
|
+
case x:
|
|
266
|
+
_ = j() / 3;
|
|
267
|
+
break;
|
|
268
|
+
case u:
|
|
269
|
+
_ = (T - D) / 6048e5;
|
|
270
|
+
break;
|
|
271
|
+
case l:
|
|
272
|
+
_ = (T - D) / 864e5;
|
|
273
|
+
break;
|
|
274
|
+
case d:
|
|
275
|
+
_ = T / o;
|
|
276
|
+
break;
|
|
277
|
+
case c:
|
|
278
|
+
_ = T / n;
|
|
279
|
+
break;
|
|
280
|
+
case i:
|
|
281
|
+
_ = T / r;
|
|
282
|
+
break;
|
|
283
|
+
default:
|
|
284
|
+
_ = T;
|
|
285
|
+
}
|
|
286
|
+
return m ? _ : v.a(_);
|
|
287
|
+
}, b.daysInMonth = function() {
|
|
288
|
+
return this.endOf(h).$D;
|
|
289
|
+
}, b.$locale = function() {
|
|
290
|
+
return M[this.$L];
|
|
291
|
+
}, b.locale = function(f, g) {
|
|
292
|
+
if (!f)
|
|
293
|
+
return this.$L;
|
|
294
|
+
var m = this.clone(), _ = K(f, g, !0);
|
|
295
|
+
return _ && (m.$L = _), m;
|
|
296
|
+
}, b.clone = function() {
|
|
297
|
+
return v.w(this.$d, this);
|
|
298
|
+
}, b.toDate = function() {
|
|
299
|
+
return new Date(this.valueOf());
|
|
300
|
+
}, b.toJSON = function() {
|
|
301
|
+
return this.isValid() ? this.toISOString() : null;
|
|
302
|
+
}, b.toISOString = function() {
|
|
303
|
+
return this.$d.toISOString();
|
|
304
|
+
}, b.toString = function() {
|
|
305
|
+
return this.$d.toUTCString();
|
|
306
|
+
}, w;
|
|
307
|
+
}(), B = F.prototype;
|
|
308
|
+
return U.prototype = B, [["$ms", s], ["$s", i], ["$m", c], ["$H", d], ["$W", l], ["$M", h], ["$y", R], ["$D", p]].forEach(function(w) {
|
|
309
|
+
B[w[1]] = function(b) {
|
|
310
|
+
return this.$g(b, w[0], w[1]);
|
|
311
|
+
};
|
|
312
|
+
}), U.extend = function(w, b) {
|
|
313
|
+
return w.$i || (w(b, F, U), w.$i = !0), U;
|
|
314
|
+
}, U.locale = K, U.isDayjs = G, U.unix = function(w) {
|
|
315
|
+
return U(1e3 * w);
|
|
316
|
+
}, U.en = M[P], U.Ls = M, U.p = {}, U;
|
|
317
|
+
});
|
|
318
|
+
})(kt);
|
|
319
|
+
var dn = kt.exports;
|
|
320
|
+
const fn = /* @__PURE__ */ un(dn);
|
|
321
|
+
function $t(e, t) {
|
|
322
|
+
return function() {
|
|
323
|
+
return e.apply(t, arguments);
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
const { toString: pn } = Object.prototype, { getPrototypeOf: tt } = Object, Le = ((e) => (t) => {
|
|
327
|
+
const r = pn.call(t);
|
|
328
|
+
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
329
|
+
})(/* @__PURE__ */ Object.create(null)), te = (e) => (e = e.toLowerCase(), (t) => Le(t) === e), De = (e) => (t) => typeof t === e, { isArray: ce } = Array, me = De("undefined");
|
|
330
|
+
function hn(e) {
|
|
331
|
+
return e !== null && !me(e) && e.constructor !== null && !me(e.constructor) && J(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
332
|
+
}
|
|
333
|
+
const Lt = te("ArrayBuffer");
|
|
334
|
+
function mn(e) {
|
|
335
|
+
let t;
|
|
336
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Lt(e.buffer), t;
|
|
337
|
+
}
|
|
338
|
+
const yn = De("string"), J = De("function"), Dt = De("number"), Fe = (e) => e !== null && typeof e == "object", bn = (e) => e === !0 || e === !1, _e = (e) => {
|
|
339
|
+
if (Le(e) !== "object")
|
|
340
|
+
return !1;
|
|
341
|
+
const t = tt(e);
|
|
342
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
343
|
+
}, gn = te("Date"), wn = te("File"), Sn = te("Blob"), xn = te("FileList"), _n = (e) => Fe(e) && J(e.pipe), En = (e) => {
|
|
344
|
+
let t;
|
|
345
|
+
return e && (typeof FormData == "function" && e instanceof FormData || J(e.append) && ((t = Le(e)) === "formdata" || // detect form-data instance
|
|
346
|
+
t === "object" && J(e.toString) && e.toString() === "[object FormData]"));
|
|
347
|
+
}, vn = te("URLSearchParams"), [Rn, Tn, On, An] = ["ReadableStream", "Request", "Response", "Headers"].map(te), kn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
348
|
+
function be(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
349
|
+
if (e === null || typeof e > "u")
|
|
350
|
+
return;
|
|
351
|
+
let n, o;
|
|
352
|
+
if (typeof e != "object" && (e = [e]), ce(e))
|
|
353
|
+
for (n = 0, o = e.length; n < o; n++)
|
|
354
|
+
t.call(null, e[n], n, e);
|
|
355
|
+
else {
|
|
356
|
+
const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
357
|
+
let c;
|
|
358
|
+
for (n = 0; n < i; n++)
|
|
359
|
+
c = s[n], t.call(null, e[c], c, e);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
function Ft(e, t) {
|
|
363
|
+
t = t.toLowerCase();
|
|
364
|
+
const r = Object.keys(e);
|
|
365
|
+
let n = r.length, o;
|
|
366
|
+
for (; n-- > 0; )
|
|
367
|
+
if (o = r[n], t === o.toLowerCase())
|
|
368
|
+
return o;
|
|
369
|
+
return null;
|
|
370
|
+
}
|
|
371
|
+
const ie = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), Pt = (e) => !me(e) && e !== ie;
|
|
372
|
+
function Ve() {
|
|
373
|
+
const { caseless: e } = Pt(this) && this || {}, t = {}, r = (n, o) => {
|
|
374
|
+
const s = e && Ft(t, o) || o;
|
|
375
|
+
_e(t[s]) && _e(n) ? t[s] = Ve(t[s], n) : _e(n) ? t[s] = Ve({}, n) : ce(n) ? t[s] = n.slice() : t[s] = n;
|
|
376
|
+
};
|
|
377
|
+
for (let n = 0, o = arguments.length; n < o; n++)
|
|
378
|
+
arguments[n] && be(arguments[n], r);
|
|
379
|
+
return t;
|
|
380
|
+
}
|
|
381
|
+
const $n = (e, t, r, { allOwnKeys: n } = {}) => (be(t, (o, s) => {
|
|
382
|
+
r && J(o) ? e[s] = $t(o, r) : e[s] = o;
|
|
383
|
+
}, { allOwnKeys: n }), e), Ln = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Dn = (e, t, r, n) => {
|
|
384
|
+
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
385
|
+
value: t.prototype
|
|
386
|
+
}), r && Object.assign(e.prototype, r);
|
|
387
|
+
}, Fn = (e, t, r, n) => {
|
|
388
|
+
let o, s, i;
|
|
389
|
+
const c = {};
|
|
390
|
+
if (t = t || {}, e == null)
|
|
391
|
+
return t;
|
|
392
|
+
do {
|
|
393
|
+
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
394
|
+
i = o[s], (!n || n(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
395
|
+
e = r !== !1 && tt(e);
|
|
396
|
+
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
397
|
+
return t;
|
|
398
|
+
}, Pn = (e, t, r) => {
|
|
399
|
+
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
400
|
+
const n = e.indexOf(t, r);
|
|
401
|
+
return n !== -1 && n === r;
|
|
402
|
+
}, Nn = (e) => {
|
|
403
|
+
if (!e)
|
|
404
|
+
return null;
|
|
405
|
+
if (ce(e))
|
|
406
|
+
return e;
|
|
407
|
+
let t = e.length;
|
|
408
|
+
if (!Dt(t))
|
|
409
|
+
return null;
|
|
410
|
+
const r = new Array(t);
|
|
411
|
+
for (; t-- > 0; )
|
|
412
|
+
r[t] = e[t];
|
|
413
|
+
return r;
|
|
414
|
+
}, Cn = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && tt(Uint8Array)), Mn = (e, t) => {
|
|
415
|
+
const n = (e && e[Symbol.iterator]).call(e);
|
|
416
|
+
let o;
|
|
417
|
+
for (; (o = n.next()) && !o.done; ) {
|
|
418
|
+
const s = o.value;
|
|
419
|
+
t.call(e, s[0], s[1]);
|
|
420
|
+
}
|
|
421
|
+
}, Bn = (e, t) => {
|
|
422
|
+
let r;
|
|
423
|
+
const n = [];
|
|
424
|
+
for (; (r = e.exec(t)) !== null; )
|
|
425
|
+
n.push(r);
|
|
426
|
+
return n;
|
|
427
|
+
}, Un = te("HTMLFormElement"), jn = (e) => e.toLowerCase().replace(
|
|
428
|
+
/[-_\s]([a-z\d])(\w*)/g,
|
|
429
|
+
function(r, n, o) {
|
|
430
|
+
return n.toUpperCase() + o;
|
|
431
|
+
}
|
|
432
|
+
), ct = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), In = te("RegExp"), Nt = (e, t) => {
|
|
433
|
+
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
434
|
+
be(r, (o, s) => {
|
|
435
|
+
let i;
|
|
436
|
+
(i = t(o, s, e)) !== !1 && (n[s] = i || o);
|
|
437
|
+
}), Object.defineProperties(e, n);
|
|
438
|
+
}, qn = (e) => {
|
|
439
|
+
Nt(e, (t, r) => {
|
|
440
|
+
if (J(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
441
|
+
return !1;
|
|
442
|
+
const n = e[r];
|
|
443
|
+
if (J(n)) {
|
|
444
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
445
|
+
t.writable = !1;
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
t.set || (t.set = () => {
|
|
449
|
+
throw Error("Can not rewrite read-only method '" + r + "'");
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
}, Hn = (e, t) => {
|
|
454
|
+
const r = {}, n = (o) => {
|
|
455
|
+
o.forEach((s) => {
|
|
456
|
+
r[s] = !0;
|
|
457
|
+
});
|
|
458
|
+
};
|
|
459
|
+
return ce(e) ? n(e) : n(String(e).split(t)), r;
|
|
460
|
+
}, Vn = () => {
|
|
461
|
+
}, zn = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, Be = "abcdefghijklmnopqrstuvwxyz", lt = "0123456789", Ct = {
|
|
462
|
+
DIGIT: lt,
|
|
463
|
+
ALPHA: Be,
|
|
464
|
+
ALPHA_DIGIT: Be + Be.toUpperCase() + lt
|
|
465
|
+
}, Wn = (e = 16, t = Ct.ALPHA_DIGIT) => {
|
|
466
|
+
let r = "";
|
|
467
|
+
const { length: n } = t;
|
|
468
|
+
for (; e--; )
|
|
469
|
+
r += t[Math.random() * n | 0];
|
|
470
|
+
return r;
|
|
471
|
+
};
|
|
472
|
+
function Jn(e) {
|
|
473
|
+
return !!(e && J(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
474
|
+
}
|
|
475
|
+
const Yn = (e) => {
|
|
476
|
+
const t = new Array(10), r = (n, o) => {
|
|
477
|
+
if (Fe(n)) {
|
|
478
|
+
if (t.indexOf(n) >= 0)
|
|
479
|
+
return;
|
|
480
|
+
if (!("toJSON" in n)) {
|
|
481
|
+
t[o] = n;
|
|
482
|
+
const s = ce(n) ? [] : {};
|
|
483
|
+
return be(n, (i, c) => {
|
|
484
|
+
const d = r(i, o + 1);
|
|
485
|
+
!me(d) && (s[c] = d);
|
|
486
|
+
}), t[o] = void 0, s;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return n;
|
|
490
|
+
};
|
|
491
|
+
return r(e, 0);
|
|
492
|
+
}, Kn = te("AsyncFunction"), Xn = (e) => e && (Fe(e) || J(e)) && J(e.then) && J(e.catch), Mt = ((e, t) => e ? setImmediate : t ? ((r, n) => (ie.addEventListener("message", ({ source: o, data: s }) => {
|
|
493
|
+
o === ie && s === r && n.length && n.shift()();
|
|
494
|
+
}, !1), (o) => {
|
|
495
|
+
n.push(o), ie.postMessage(r, "*");
|
|
496
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
497
|
+
typeof setImmediate == "function",
|
|
498
|
+
J(ie.postMessage)
|
|
499
|
+
), Zn = typeof queueMicrotask < "u" ? queueMicrotask.bind(ie) : typeof process < "u" && process.nextTick || Mt, a = {
|
|
500
|
+
isArray: ce,
|
|
501
|
+
isArrayBuffer: Lt,
|
|
502
|
+
isBuffer: hn,
|
|
503
|
+
isFormData: En,
|
|
504
|
+
isArrayBufferView: mn,
|
|
505
|
+
isString: yn,
|
|
506
|
+
isNumber: Dt,
|
|
507
|
+
isBoolean: bn,
|
|
508
|
+
isObject: Fe,
|
|
509
|
+
isPlainObject: _e,
|
|
510
|
+
isReadableStream: Rn,
|
|
511
|
+
isRequest: Tn,
|
|
512
|
+
isResponse: On,
|
|
513
|
+
isHeaders: An,
|
|
514
|
+
isUndefined: me,
|
|
515
|
+
isDate: gn,
|
|
516
|
+
isFile: wn,
|
|
517
|
+
isBlob: Sn,
|
|
518
|
+
isRegExp: In,
|
|
519
|
+
isFunction: J,
|
|
520
|
+
isStream: _n,
|
|
521
|
+
isURLSearchParams: vn,
|
|
522
|
+
isTypedArray: Cn,
|
|
523
|
+
isFileList: xn,
|
|
524
|
+
forEach: be,
|
|
525
|
+
merge: Ve,
|
|
526
|
+
extend: $n,
|
|
527
|
+
trim: kn,
|
|
528
|
+
stripBOM: Ln,
|
|
529
|
+
inherits: Dn,
|
|
530
|
+
toFlatObject: Fn,
|
|
531
|
+
kindOf: Le,
|
|
532
|
+
kindOfTest: te,
|
|
533
|
+
endsWith: Pn,
|
|
534
|
+
toArray: Nn,
|
|
535
|
+
forEachEntry: Mn,
|
|
536
|
+
matchAll: Bn,
|
|
537
|
+
isHTMLForm: Un,
|
|
538
|
+
hasOwnProperty: ct,
|
|
539
|
+
hasOwnProp: ct,
|
|
540
|
+
// an alias to avoid ESLint no-prototype-builtins detection
|
|
541
|
+
reduceDescriptors: Nt,
|
|
542
|
+
freezeMethods: qn,
|
|
543
|
+
toObjectSet: Hn,
|
|
544
|
+
toCamelCase: jn,
|
|
545
|
+
noop: Vn,
|
|
546
|
+
toFiniteNumber: zn,
|
|
547
|
+
findKey: Ft,
|
|
548
|
+
global: ie,
|
|
549
|
+
isContextDefined: Pt,
|
|
550
|
+
ALPHABET: Ct,
|
|
551
|
+
generateString: Wn,
|
|
552
|
+
isSpecCompliantForm: Jn,
|
|
553
|
+
toJSONObject: Yn,
|
|
554
|
+
isAsyncFn: Kn,
|
|
555
|
+
isThenable: Xn,
|
|
556
|
+
setImmediate: Mt,
|
|
557
|
+
asap: Zn
|
|
558
|
+
};
|
|
559
|
+
function O(e, t, r, n, o) {
|
|
560
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
561
|
+
}
|
|
562
|
+
a.inherits(O, Error, {
|
|
563
|
+
toJSON: function() {
|
|
564
|
+
return {
|
|
565
|
+
// Standard
|
|
566
|
+
message: this.message,
|
|
567
|
+
name: this.name,
|
|
568
|
+
// Microsoft
|
|
569
|
+
description: this.description,
|
|
570
|
+
number: this.number,
|
|
571
|
+
// Mozilla
|
|
572
|
+
fileName: this.fileName,
|
|
573
|
+
lineNumber: this.lineNumber,
|
|
574
|
+
columnNumber: this.columnNumber,
|
|
575
|
+
stack: this.stack,
|
|
576
|
+
// Axios
|
|
577
|
+
config: a.toJSONObject(this.config),
|
|
578
|
+
code: this.code,
|
|
579
|
+
status: this.status
|
|
580
|
+
};
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
const Bt = O.prototype, Ut = {};
|
|
584
|
+
[
|
|
585
|
+
"ERR_BAD_OPTION_VALUE",
|
|
586
|
+
"ERR_BAD_OPTION",
|
|
587
|
+
"ECONNABORTED",
|
|
588
|
+
"ETIMEDOUT",
|
|
589
|
+
"ERR_NETWORK",
|
|
590
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
591
|
+
"ERR_DEPRECATED",
|
|
592
|
+
"ERR_BAD_RESPONSE",
|
|
593
|
+
"ERR_BAD_REQUEST",
|
|
594
|
+
"ERR_CANCELED",
|
|
595
|
+
"ERR_NOT_SUPPORT",
|
|
596
|
+
"ERR_INVALID_URL"
|
|
597
|
+
// eslint-disable-next-line func-names
|
|
598
|
+
].forEach((e) => {
|
|
599
|
+
Ut[e] = { value: e };
|
|
600
|
+
});
|
|
601
|
+
Object.defineProperties(O, Ut);
|
|
602
|
+
Object.defineProperty(Bt, "isAxiosError", { value: !0 });
|
|
603
|
+
O.from = (e, t, r, n, o, s) => {
|
|
604
|
+
const i = Object.create(Bt);
|
|
605
|
+
return a.toFlatObject(e, i, function(d) {
|
|
606
|
+
return d !== Error.prototype;
|
|
607
|
+
}, (c) => c !== "isAxiosError"), O.call(i, e.message, t, r, n, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
608
|
+
};
|
|
609
|
+
const Gn = null;
|
|
610
|
+
function ze(e) {
|
|
611
|
+
return a.isPlainObject(e) || a.isArray(e);
|
|
612
|
+
}
|
|
613
|
+
function jt(e) {
|
|
614
|
+
return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
615
|
+
}
|
|
616
|
+
function ut(e, t, r) {
|
|
617
|
+
return e ? e.concat(t).map(function(o, s) {
|
|
618
|
+
return o = jt(o), !r && s ? "[" + o + "]" : o;
|
|
619
|
+
}).join(r ? "." : "") : t;
|
|
620
|
+
}
|
|
621
|
+
function Qn(e) {
|
|
622
|
+
return a.isArray(e) && !e.some(ze);
|
|
623
|
+
}
|
|
624
|
+
const er = a.toFlatObject(a, {}, null, function(t) {
|
|
625
|
+
return /^is[A-Z]/.test(t);
|
|
626
|
+
});
|
|
627
|
+
function Pe(e, t, r) {
|
|
628
|
+
if (!a.isObject(e))
|
|
629
|
+
throw new TypeError("target must be an object");
|
|
630
|
+
t = t || new FormData(), r = a.toFlatObject(r, {
|
|
631
|
+
metaTokens: !0,
|
|
632
|
+
dots: !1,
|
|
633
|
+
indexes: !1
|
|
634
|
+
}, !1, function(S, y) {
|
|
635
|
+
return !a.isUndefined(y[S]);
|
|
636
|
+
});
|
|
637
|
+
const n = r.metaTokens, o = r.visitor || u, s = r.dots, i = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && a.isSpecCompliantForm(t);
|
|
638
|
+
if (!a.isFunction(o))
|
|
639
|
+
throw new TypeError("visitor must be a function");
|
|
640
|
+
function l(p) {
|
|
641
|
+
if (p === null)
|
|
642
|
+
return "";
|
|
643
|
+
if (a.isDate(p))
|
|
644
|
+
return p.toISOString();
|
|
645
|
+
if (!d && a.isBlob(p))
|
|
646
|
+
throw new O("Blob is not supported. Use a Buffer instead.");
|
|
647
|
+
return a.isArrayBuffer(p) || a.isTypedArray(p) ? d && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
648
|
+
}
|
|
649
|
+
function u(p, S, y) {
|
|
650
|
+
let L = p;
|
|
651
|
+
if (p && !y && typeof p == "object") {
|
|
652
|
+
if (a.endsWith(S, "{}"))
|
|
653
|
+
S = n ? S : S.slice(0, -2), p = JSON.stringify(p);
|
|
654
|
+
else if (a.isArray(p) && Qn(p) || (a.isFileList(p) || a.endsWith(S, "[]")) && (L = a.toArray(p)))
|
|
655
|
+
return S = jt(S), L.forEach(function(A, k) {
|
|
656
|
+
!(a.isUndefined(A) || A === null) && t.append(
|
|
657
|
+
// eslint-disable-next-line no-nested-ternary
|
|
658
|
+
i === !0 ? ut([S], k, s) : i === null ? S : S + "[]",
|
|
659
|
+
l(A)
|
|
660
|
+
);
|
|
661
|
+
}), !1;
|
|
662
|
+
}
|
|
663
|
+
return ze(p) ? !0 : (t.append(ut(y, S, s), l(p)), !1);
|
|
664
|
+
}
|
|
665
|
+
const h = [], x = Object.assign(er, {
|
|
666
|
+
defaultVisitor: u,
|
|
667
|
+
convertValue: l,
|
|
668
|
+
isVisitable: ze
|
|
669
|
+
});
|
|
670
|
+
function R(p, S) {
|
|
671
|
+
if (!a.isUndefined(p)) {
|
|
672
|
+
if (h.indexOf(p) !== -1)
|
|
673
|
+
throw Error("Circular reference detected in " + S.join("."));
|
|
674
|
+
h.push(p), a.forEach(p, function(L, N) {
|
|
675
|
+
(!(a.isUndefined(L) || L === null) && o.call(
|
|
676
|
+
t,
|
|
677
|
+
L,
|
|
678
|
+
a.isString(N) ? N.trim() : N,
|
|
679
|
+
S,
|
|
680
|
+
x
|
|
681
|
+
)) === !0 && R(L, S ? S.concat(N) : [N]);
|
|
682
|
+
}), h.pop();
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
if (!a.isObject(e))
|
|
686
|
+
throw new TypeError("data must be an object");
|
|
687
|
+
return R(e), t;
|
|
688
|
+
}
|
|
689
|
+
function dt(e) {
|
|
690
|
+
const t = {
|
|
691
|
+
"!": "%21",
|
|
692
|
+
"'": "%27",
|
|
693
|
+
"(": "%28",
|
|
694
|
+
")": "%29",
|
|
695
|
+
"~": "%7E",
|
|
696
|
+
"%20": "+",
|
|
697
|
+
"%00": "\0"
|
|
698
|
+
};
|
|
699
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(n) {
|
|
700
|
+
return t[n];
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
function nt(e, t) {
|
|
704
|
+
this._pairs = [], e && Pe(e, this, t);
|
|
705
|
+
}
|
|
706
|
+
const It = nt.prototype;
|
|
707
|
+
It.append = function(t, r) {
|
|
708
|
+
this._pairs.push([t, r]);
|
|
709
|
+
};
|
|
710
|
+
It.toString = function(t) {
|
|
711
|
+
const r = t ? function(n) {
|
|
712
|
+
return t.call(this, n, dt);
|
|
713
|
+
} : dt;
|
|
714
|
+
return this._pairs.map(function(o) {
|
|
715
|
+
return r(o[0]) + "=" + r(o[1]);
|
|
716
|
+
}, "").join("&");
|
|
717
|
+
};
|
|
718
|
+
function tr(e) {
|
|
719
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
720
|
+
}
|
|
721
|
+
function qt(e, t, r) {
|
|
722
|
+
if (!t)
|
|
723
|
+
return e;
|
|
724
|
+
const n = r && r.encode || tr;
|
|
725
|
+
a.isFunction(r) && (r = {
|
|
726
|
+
serialize: r
|
|
727
|
+
});
|
|
728
|
+
const o = r && r.serialize;
|
|
729
|
+
let s;
|
|
730
|
+
if (o ? s = o(t, r) : s = a.isURLSearchParams(t) ? t.toString() : new nt(t, r).toString(n), s) {
|
|
731
|
+
const i = e.indexOf("#");
|
|
732
|
+
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
733
|
+
}
|
|
734
|
+
return e;
|
|
735
|
+
}
|
|
736
|
+
class nr {
|
|
737
|
+
constructor() {
|
|
738
|
+
this.handlers = [];
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Add a new interceptor to the stack
|
|
742
|
+
*
|
|
743
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
744
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
745
|
+
*
|
|
746
|
+
* @return {Number} An ID used to remove interceptor later
|
|
747
|
+
*/
|
|
748
|
+
use(t, r, n) {
|
|
749
|
+
return this.handlers.push({
|
|
750
|
+
fulfilled: t,
|
|
751
|
+
rejected: r,
|
|
752
|
+
synchronous: n ? n.synchronous : !1,
|
|
753
|
+
runWhen: n ? n.runWhen : null
|
|
754
|
+
}), this.handlers.length - 1;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Remove an interceptor from the stack
|
|
758
|
+
*
|
|
759
|
+
* @param {Number} id The ID that was returned by `use`
|
|
760
|
+
*
|
|
761
|
+
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
762
|
+
*/
|
|
763
|
+
eject(t) {
|
|
764
|
+
this.handlers[t] && (this.handlers[t] = null);
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Clear all interceptors from the stack
|
|
768
|
+
*
|
|
769
|
+
* @returns {void}
|
|
770
|
+
*/
|
|
771
|
+
clear() {
|
|
772
|
+
this.handlers && (this.handlers = []);
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Iterate over all the registered interceptors
|
|
776
|
+
*
|
|
777
|
+
* This method is particularly useful for skipping over any
|
|
778
|
+
* interceptors that may have become `null` calling `eject`.
|
|
779
|
+
*
|
|
780
|
+
* @param {Function} fn The function to call for each interceptor
|
|
781
|
+
*
|
|
782
|
+
* @returns {void}
|
|
783
|
+
*/
|
|
784
|
+
forEach(t) {
|
|
785
|
+
a.forEach(this.handlers, function(n) {
|
|
786
|
+
n !== null && t(n);
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
const ft = nr, Ht = {
|
|
791
|
+
silentJSONParsing: !0,
|
|
792
|
+
forcedJSONParsing: !0,
|
|
793
|
+
clarifyTimeoutError: !1
|
|
794
|
+
}, rr = typeof URLSearchParams < "u" ? URLSearchParams : nt, sr = typeof FormData < "u" ? FormData : null, or = typeof Blob < "u" ? Blob : null, ir = {
|
|
795
|
+
isBrowser: !0,
|
|
796
|
+
classes: {
|
|
797
|
+
URLSearchParams: rr,
|
|
798
|
+
FormData: sr,
|
|
799
|
+
Blob: or
|
|
800
|
+
},
|
|
801
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
802
|
+
}, rt = typeof window < "u" && typeof document < "u", We = typeof navigator == "object" && navigator || void 0, ar = rt && (!We || ["ReactNative", "NativeScript", "NS"].indexOf(We.product) < 0), cr = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
803
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), lr = rt && window.location.href || "http://localhost", ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
804
|
+
__proto__: null,
|
|
805
|
+
hasBrowserEnv: rt,
|
|
806
|
+
hasStandardBrowserEnv: ar,
|
|
807
|
+
hasStandardBrowserWebWorkerEnv: cr,
|
|
808
|
+
navigator: We,
|
|
809
|
+
origin: lr
|
|
810
|
+
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
811
|
+
...ur,
|
|
812
|
+
...ir
|
|
813
|
+
};
|
|
814
|
+
function dr(e, t) {
|
|
815
|
+
return Pe(e, new H.classes.URLSearchParams(), Object.assign({
|
|
816
|
+
visitor: function(r, n, o, s) {
|
|
817
|
+
return H.isNode && a.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
818
|
+
}
|
|
819
|
+
}, t));
|
|
820
|
+
}
|
|
821
|
+
function fr(e) {
|
|
822
|
+
return a.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
823
|
+
}
|
|
824
|
+
function pr(e) {
|
|
825
|
+
const t = {}, r = Object.keys(e);
|
|
826
|
+
let n;
|
|
827
|
+
const o = r.length;
|
|
828
|
+
let s;
|
|
829
|
+
for (n = 0; n < o; n++)
|
|
830
|
+
s = r[n], t[s] = e[s];
|
|
831
|
+
return t;
|
|
832
|
+
}
|
|
833
|
+
function Vt(e) {
|
|
834
|
+
function t(r, n, o, s) {
|
|
835
|
+
let i = r[s++];
|
|
836
|
+
if (i === "__proto__")
|
|
837
|
+
return !0;
|
|
838
|
+
const c = Number.isFinite(+i), d = s >= r.length;
|
|
839
|
+
return i = !i && a.isArray(o) ? o.length : i, d ? (a.hasOwnProp(o, i) ? o[i] = [o[i], n] : o[i] = n, !c) : ((!o[i] || !a.isObject(o[i])) && (o[i] = []), t(r, n, o[i], s) && a.isArray(o[i]) && (o[i] = pr(o[i])), !c);
|
|
840
|
+
}
|
|
841
|
+
if (a.isFormData(e) && a.isFunction(e.entries)) {
|
|
842
|
+
const r = {};
|
|
843
|
+
return a.forEachEntry(e, (n, o) => {
|
|
844
|
+
t(fr(n), o, r, 0);
|
|
845
|
+
}), r;
|
|
846
|
+
}
|
|
847
|
+
return null;
|
|
848
|
+
}
|
|
849
|
+
function hr(e, t, r) {
|
|
850
|
+
if (a.isString(e))
|
|
851
|
+
try {
|
|
852
|
+
return (t || JSON.parse)(e), a.trim(e);
|
|
853
|
+
} catch (n) {
|
|
854
|
+
if (n.name !== "SyntaxError")
|
|
855
|
+
throw n;
|
|
856
|
+
}
|
|
857
|
+
return (r || JSON.stringify)(e);
|
|
858
|
+
}
|
|
859
|
+
const st = {
|
|
860
|
+
transitional: Ht,
|
|
861
|
+
adapter: ["xhr", "http", "fetch"],
|
|
862
|
+
transformRequest: [function(t, r) {
|
|
863
|
+
const n = r.getContentType() || "", o = n.indexOf("application/json") > -1, s = a.isObject(t);
|
|
864
|
+
if (s && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
|
|
865
|
+
return o ? JSON.stringify(Vt(t)) : t;
|
|
866
|
+
if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
|
|
867
|
+
return t;
|
|
868
|
+
if (a.isArrayBufferView(t))
|
|
869
|
+
return t.buffer;
|
|
870
|
+
if (a.isURLSearchParams(t))
|
|
871
|
+
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
872
|
+
let c;
|
|
873
|
+
if (s) {
|
|
874
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
875
|
+
return dr(t, this.formSerializer).toString();
|
|
876
|
+
if ((c = a.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
|
|
877
|
+
const d = this.env && this.env.FormData;
|
|
878
|
+
return Pe(
|
|
879
|
+
c ? { "files[]": t } : t,
|
|
880
|
+
d && new d(),
|
|
881
|
+
this.formSerializer
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
return s || o ? (r.setContentType("application/json", !1), hr(t)) : t;
|
|
886
|
+
}],
|
|
887
|
+
transformResponse: [function(t) {
|
|
888
|
+
const r = this.transitional || st.transitional, n = r && r.forcedJSONParsing, o = this.responseType === "json";
|
|
889
|
+
if (a.isResponse(t) || a.isReadableStream(t))
|
|
890
|
+
return t;
|
|
891
|
+
if (t && a.isString(t) && (n && !this.responseType || o)) {
|
|
892
|
+
const i = !(r && r.silentJSONParsing) && o;
|
|
893
|
+
try {
|
|
894
|
+
return JSON.parse(t);
|
|
895
|
+
} catch (c) {
|
|
896
|
+
if (i)
|
|
897
|
+
throw c.name === "SyntaxError" ? O.from(c, O.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return t;
|
|
901
|
+
}],
|
|
902
|
+
/**
|
|
903
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
904
|
+
* timeout is not created.
|
|
905
|
+
*/
|
|
906
|
+
timeout: 0,
|
|
907
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
908
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
909
|
+
maxContentLength: -1,
|
|
910
|
+
maxBodyLength: -1,
|
|
911
|
+
env: {
|
|
912
|
+
FormData: H.classes.FormData,
|
|
913
|
+
Blob: H.classes.Blob
|
|
914
|
+
},
|
|
915
|
+
validateStatus: function(t) {
|
|
916
|
+
return t >= 200 && t < 300;
|
|
917
|
+
},
|
|
918
|
+
headers: {
|
|
919
|
+
common: {
|
|
920
|
+
Accept: "application/json, text/plain, */*",
|
|
921
|
+
"Content-Type": void 0
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
a.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
926
|
+
st.headers[e] = {};
|
|
927
|
+
});
|
|
928
|
+
const ot = st, mr = a.toObjectSet([
|
|
929
|
+
"age",
|
|
930
|
+
"authorization",
|
|
931
|
+
"content-length",
|
|
932
|
+
"content-type",
|
|
933
|
+
"etag",
|
|
934
|
+
"expires",
|
|
935
|
+
"from",
|
|
936
|
+
"host",
|
|
937
|
+
"if-modified-since",
|
|
938
|
+
"if-unmodified-since",
|
|
939
|
+
"last-modified",
|
|
940
|
+
"location",
|
|
941
|
+
"max-forwards",
|
|
942
|
+
"proxy-authorization",
|
|
943
|
+
"referer",
|
|
944
|
+
"retry-after",
|
|
945
|
+
"user-agent"
|
|
946
|
+
]), yr = (e) => {
|
|
947
|
+
const t = {};
|
|
948
|
+
let r, n, o;
|
|
949
|
+
return e && e.split(`
|
|
950
|
+
`).forEach(function(i) {
|
|
951
|
+
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] && mr[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
952
|
+
}), t;
|
|
953
|
+
}, pt = Symbol("internals");
|
|
954
|
+
function de(e) {
|
|
955
|
+
return e && String(e).trim().toLowerCase();
|
|
956
|
+
}
|
|
957
|
+
function Ee(e) {
|
|
958
|
+
return e === !1 || e == null ? e : a.isArray(e) ? e.map(Ee) : String(e);
|
|
959
|
+
}
|
|
960
|
+
function br(e) {
|
|
961
|
+
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
962
|
+
let n;
|
|
963
|
+
for (; n = r.exec(e); )
|
|
964
|
+
t[n[1]] = n[2];
|
|
965
|
+
return t;
|
|
966
|
+
}
|
|
967
|
+
const gr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
968
|
+
function Ue(e, t, r, n, o) {
|
|
969
|
+
if (a.isFunction(n))
|
|
970
|
+
return n.call(this, t, r);
|
|
971
|
+
if (o && (t = r), !!a.isString(t)) {
|
|
972
|
+
if (a.isString(n))
|
|
973
|
+
return t.indexOf(n) !== -1;
|
|
974
|
+
if (a.isRegExp(n))
|
|
975
|
+
return n.test(t);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function wr(e) {
|
|
979
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
980
|
+
}
|
|
981
|
+
function Sr(e, t) {
|
|
982
|
+
const r = a.toCamelCase(" " + t);
|
|
983
|
+
["get", "set", "has"].forEach((n) => {
|
|
984
|
+
Object.defineProperty(e, n + r, {
|
|
985
|
+
value: function(o, s, i) {
|
|
986
|
+
return this[n].call(this, t, o, s, i);
|
|
987
|
+
},
|
|
988
|
+
configurable: !0
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
class Ne {
|
|
993
|
+
constructor(t) {
|
|
994
|
+
t && this.set(t);
|
|
995
|
+
}
|
|
996
|
+
set(t, r, n) {
|
|
997
|
+
const o = this;
|
|
998
|
+
function s(c, d, l) {
|
|
999
|
+
const u = de(d);
|
|
1000
|
+
if (!u)
|
|
1001
|
+
throw new Error("header name must be a non-empty string");
|
|
1002
|
+
const h = a.findKey(o, u);
|
|
1003
|
+
(!h || o[h] === void 0 || l === !0 || l === void 0 && o[h] !== !1) && (o[h || d] = Ee(c));
|
|
1004
|
+
}
|
|
1005
|
+
const i = (c, d) => a.forEach(c, (l, u) => s(l, u, d));
|
|
1006
|
+
if (a.isPlainObject(t) || t instanceof this.constructor)
|
|
1007
|
+
i(t, r);
|
|
1008
|
+
else if (a.isString(t) && (t = t.trim()) && !gr(t))
|
|
1009
|
+
i(yr(t), r);
|
|
1010
|
+
else if (a.isHeaders(t))
|
|
1011
|
+
for (const [c, d] of t.entries())
|
|
1012
|
+
s(d, c, n);
|
|
1013
|
+
else
|
|
1014
|
+
t != null && s(r, t, n);
|
|
1015
|
+
return this;
|
|
1016
|
+
}
|
|
1017
|
+
get(t, r) {
|
|
1018
|
+
if (t = de(t), t) {
|
|
1019
|
+
const n = a.findKey(this, t);
|
|
1020
|
+
if (n) {
|
|
1021
|
+
const o = this[n];
|
|
1022
|
+
if (!r)
|
|
1023
|
+
return o;
|
|
1024
|
+
if (r === !0)
|
|
1025
|
+
return br(o);
|
|
1026
|
+
if (a.isFunction(r))
|
|
1027
|
+
return r.call(this, o, n);
|
|
1028
|
+
if (a.isRegExp(r))
|
|
1029
|
+
return r.exec(o);
|
|
1030
|
+
throw new TypeError("parser must be boolean|regexp|function");
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
has(t, r) {
|
|
1035
|
+
if (t = de(t), t) {
|
|
1036
|
+
const n = a.findKey(this, t);
|
|
1037
|
+
return !!(n && this[n] !== void 0 && (!r || Ue(this, this[n], n, r)));
|
|
1038
|
+
}
|
|
1039
|
+
return !1;
|
|
1040
|
+
}
|
|
1041
|
+
delete(t, r) {
|
|
1042
|
+
const n = this;
|
|
1043
|
+
let o = !1;
|
|
1044
|
+
function s(i) {
|
|
1045
|
+
if (i = de(i), i) {
|
|
1046
|
+
const c = a.findKey(n, i);
|
|
1047
|
+
c && (!r || Ue(n, n[c], c, r)) && (delete n[c], o = !0);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
return a.isArray(t) ? t.forEach(s) : s(t), o;
|
|
1051
|
+
}
|
|
1052
|
+
clear(t) {
|
|
1053
|
+
const r = Object.keys(this);
|
|
1054
|
+
let n = r.length, o = !1;
|
|
1055
|
+
for (; n--; ) {
|
|
1056
|
+
const s = r[n];
|
|
1057
|
+
(!t || Ue(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
1058
|
+
}
|
|
1059
|
+
return o;
|
|
1060
|
+
}
|
|
1061
|
+
normalize(t) {
|
|
1062
|
+
const r = this, n = {};
|
|
1063
|
+
return a.forEach(this, (o, s) => {
|
|
1064
|
+
const i = a.findKey(n, s);
|
|
1065
|
+
if (i) {
|
|
1066
|
+
r[i] = Ee(o), delete r[s];
|
|
1067
|
+
return;
|
|
1068
|
+
}
|
|
1069
|
+
const c = t ? wr(s) : String(s).trim();
|
|
1070
|
+
c !== s && delete r[s], r[c] = Ee(o), n[c] = !0;
|
|
1071
|
+
}), this;
|
|
1072
|
+
}
|
|
1073
|
+
concat(...t) {
|
|
1074
|
+
return this.constructor.concat(this, ...t);
|
|
1075
|
+
}
|
|
1076
|
+
toJSON(t) {
|
|
1077
|
+
const r = /* @__PURE__ */ Object.create(null);
|
|
1078
|
+
return a.forEach(this, (n, o) => {
|
|
1079
|
+
n != null && n !== !1 && (r[o] = t && a.isArray(n) ? n.join(", ") : n);
|
|
1080
|
+
}), r;
|
|
1081
|
+
}
|
|
1082
|
+
[Symbol.iterator]() {
|
|
1083
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1084
|
+
}
|
|
1085
|
+
toString() {
|
|
1086
|
+
return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
|
|
1087
|
+
`);
|
|
1088
|
+
}
|
|
1089
|
+
get [Symbol.toStringTag]() {
|
|
1090
|
+
return "AxiosHeaders";
|
|
1091
|
+
}
|
|
1092
|
+
static from(t) {
|
|
1093
|
+
return t instanceof this ? t : new this(t);
|
|
1094
|
+
}
|
|
1095
|
+
static concat(t, ...r) {
|
|
1096
|
+
const n = new this(t);
|
|
1097
|
+
return r.forEach((o) => n.set(o)), n;
|
|
1098
|
+
}
|
|
1099
|
+
static accessor(t) {
|
|
1100
|
+
const n = (this[pt] = this[pt] = {
|
|
1101
|
+
accessors: {}
|
|
1102
|
+
}).accessors, o = this.prototype;
|
|
1103
|
+
function s(i) {
|
|
1104
|
+
const c = de(i);
|
|
1105
|
+
n[c] || (Sr(o, i), n[c] = !0);
|
|
1106
|
+
}
|
|
1107
|
+
return a.isArray(t) ? t.forEach(s) : s(t), this;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
Ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1111
|
+
a.reduceDescriptors(Ne.prototype, ({ value: e }, t) => {
|
|
1112
|
+
let r = t[0].toUpperCase() + t.slice(1);
|
|
1113
|
+
return {
|
|
1114
|
+
get: () => e,
|
|
1115
|
+
set(n) {
|
|
1116
|
+
this[r] = n;
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
});
|
|
1120
|
+
a.freezeMethods(Ne);
|
|
1121
|
+
const ee = Ne;
|
|
1122
|
+
function je(e, t) {
|
|
1123
|
+
const r = this || ot, n = t || r, o = ee.from(n.headers);
|
|
1124
|
+
let s = n.data;
|
|
1125
|
+
return a.forEach(e, function(c) {
|
|
1126
|
+
s = c.call(r, s, o.normalize(), t ? t.status : void 0);
|
|
1127
|
+
}), o.normalize(), s;
|
|
1128
|
+
}
|
|
1129
|
+
function zt(e) {
|
|
1130
|
+
return !!(e && e.__CANCEL__);
|
|
1131
|
+
}
|
|
1132
|
+
function le(e, t, r) {
|
|
1133
|
+
O.call(this, e ?? "canceled", O.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
1134
|
+
}
|
|
1135
|
+
a.inherits(le, O, {
|
|
1136
|
+
__CANCEL__: !0
|
|
1137
|
+
});
|
|
1138
|
+
function Wt(e, t, r) {
|
|
1139
|
+
const n = r.config.validateStatus;
|
|
1140
|
+
!r.status || !n || n(r.status) ? e(r) : t(new O(
|
|
1141
|
+
"Request failed with status code " + r.status,
|
|
1142
|
+
[O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
1143
|
+
r.config,
|
|
1144
|
+
r.request,
|
|
1145
|
+
r
|
|
1146
|
+
));
|
|
1147
|
+
}
|
|
1148
|
+
function xr(e) {
|
|
1149
|
+
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1150
|
+
return t && t[1] || "";
|
|
1151
|
+
}
|
|
1152
|
+
function _r(e, t) {
|
|
1153
|
+
e = e || 10;
|
|
1154
|
+
const r = new Array(e), n = new Array(e);
|
|
1155
|
+
let o = 0, s = 0, i;
|
|
1156
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
1157
|
+
const l = Date.now(), u = n[s];
|
|
1158
|
+
i || (i = l), r[o] = d, n[o] = l;
|
|
1159
|
+
let h = s, x = 0;
|
|
1160
|
+
for (; h !== o; )
|
|
1161
|
+
x += r[h++], h = h % e;
|
|
1162
|
+
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - i < t)
|
|
1163
|
+
return;
|
|
1164
|
+
const R = u && l - u;
|
|
1165
|
+
return R ? Math.round(x * 1e3 / R) : void 0;
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
function Er(e, t) {
|
|
1169
|
+
let r = 0, n = 1e3 / t, o, s;
|
|
1170
|
+
const i = (l, u = Date.now()) => {
|
|
1171
|
+
r = u, o = null, s && (clearTimeout(s), s = null), e.apply(null, l);
|
|
1172
|
+
};
|
|
1173
|
+
return [(...l) => {
|
|
1174
|
+
const u = Date.now(), h = u - r;
|
|
1175
|
+
h >= n ? i(l, u) : (o = l, s || (s = setTimeout(() => {
|
|
1176
|
+
s = null, i(o);
|
|
1177
|
+
}, n - h)));
|
|
1178
|
+
}, () => o && i(o)];
|
|
1179
|
+
}
|
|
1180
|
+
const Te = (e, t, r = 3) => {
|
|
1181
|
+
let n = 0;
|
|
1182
|
+
const o = _r(50, 250);
|
|
1183
|
+
return Er((s) => {
|
|
1184
|
+
const i = s.loaded, c = s.lengthComputable ? s.total : void 0, d = i - n, l = o(d), u = i <= c;
|
|
1185
|
+
n = i;
|
|
1186
|
+
const h = {
|
|
1187
|
+
loaded: i,
|
|
1188
|
+
total: c,
|
|
1189
|
+
progress: c ? i / c : void 0,
|
|
1190
|
+
bytes: d,
|
|
1191
|
+
rate: l || void 0,
|
|
1192
|
+
estimated: l && c && u ? (c - i) / l : void 0,
|
|
1193
|
+
event: s,
|
|
1194
|
+
lengthComputable: c != null,
|
|
1195
|
+
[t ? "download" : "upload"]: !0
|
|
1196
|
+
};
|
|
1197
|
+
e(h);
|
|
1198
|
+
}, r);
|
|
1199
|
+
}, ht = (e, t) => {
|
|
1200
|
+
const r = e != null;
|
|
1201
|
+
return [(n) => t[0]({
|
|
1202
|
+
lengthComputable: r,
|
|
1203
|
+
total: e,
|
|
1204
|
+
loaded: n
|
|
1205
|
+
}), t[1]];
|
|
1206
|
+
}, mt = (e) => (...t) => a.asap(() => e(...t)), vr = H.hasStandardBrowserEnv ? ((e, t) => (r) => (r = new URL(r, H.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
1207
|
+
new URL(H.origin),
|
|
1208
|
+
H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)
|
|
1209
|
+
) : () => !0, Rr = H.hasStandardBrowserEnv ? (
|
|
1210
|
+
// Standard browser envs support document.cookie
|
|
1211
|
+
{
|
|
1212
|
+
write(e, t, r, n, o, s) {
|
|
1213
|
+
const i = [e + "=" + encodeURIComponent(t)];
|
|
1214
|
+
a.isNumber(r) && i.push("expires=" + new Date(r).toGMTString()), a.isString(n) && i.push("path=" + n), a.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
1215
|
+
},
|
|
1216
|
+
read(e) {
|
|
1217
|
+
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
1218
|
+
return t ? decodeURIComponent(t[3]) : null;
|
|
1219
|
+
},
|
|
1220
|
+
remove(e) {
|
|
1221
|
+
this.write(e, "", Date.now() - 864e5);
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
) : (
|
|
1225
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
1226
|
+
{
|
|
1227
|
+
write() {
|
|
1228
|
+
},
|
|
1229
|
+
read() {
|
|
1230
|
+
return null;
|
|
1231
|
+
},
|
|
1232
|
+
remove() {
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
);
|
|
1236
|
+
function Tr(e) {
|
|
1237
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
1238
|
+
}
|
|
1239
|
+
function Or(e, t) {
|
|
1240
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1241
|
+
}
|
|
1242
|
+
function Jt(e, t) {
|
|
1243
|
+
return e && !Tr(t) ? Or(e, t) : t;
|
|
1244
|
+
}
|
|
1245
|
+
const yt = (e) => e instanceof ee ? { ...e } : e;
|
|
1246
|
+
function ae(e, t) {
|
|
1247
|
+
t = t || {};
|
|
1248
|
+
const r = {};
|
|
1249
|
+
function n(l, u, h, x) {
|
|
1250
|
+
return a.isPlainObject(l) && a.isPlainObject(u) ? a.merge.call({ caseless: x }, l, u) : a.isPlainObject(u) ? a.merge({}, u) : a.isArray(u) ? u.slice() : u;
|
|
1251
|
+
}
|
|
1252
|
+
function o(l, u, h, x) {
|
|
1253
|
+
if (a.isUndefined(u)) {
|
|
1254
|
+
if (!a.isUndefined(l))
|
|
1255
|
+
return n(void 0, l, h, x);
|
|
1256
|
+
} else
|
|
1257
|
+
return n(l, u, h, x);
|
|
1258
|
+
}
|
|
1259
|
+
function s(l, u) {
|
|
1260
|
+
if (!a.isUndefined(u))
|
|
1261
|
+
return n(void 0, u);
|
|
1262
|
+
}
|
|
1263
|
+
function i(l, u) {
|
|
1264
|
+
if (a.isUndefined(u)) {
|
|
1265
|
+
if (!a.isUndefined(l))
|
|
1266
|
+
return n(void 0, l);
|
|
1267
|
+
} else
|
|
1268
|
+
return n(void 0, u);
|
|
1269
|
+
}
|
|
1270
|
+
function c(l, u, h) {
|
|
1271
|
+
if (h in t)
|
|
1272
|
+
return n(l, u);
|
|
1273
|
+
if (h in e)
|
|
1274
|
+
return n(void 0, l);
|
|
1275
|
+
}
|
|
1276
|
+
const d = {
|
|
1277
|
+
url: s,
|
|
1278
|
+
method: s,
|
|
1279
|
+
data: s,
|
|
1280
|
+
baseURL: i,
|
|
1281
|
+
transformRequest: i,
|
|
1282
|
+
transformResponse: i,
|
|
1283
|
+
paramsSerializer: i,
|
|
1284
|
+
timeout: i,
|
|
1285
|
+
timeoutMessage: i,
|
|
1286
|
+
withCredentials: i,
|
|
1287
|
+
withXSRFToken: i,
|
|
1288
|
+
adapter: i,
|
|
1289
|
+
responseType: i,
|
|
1290
|
+
xsrfCookieName: i,
|
|
1291
|
+
xsrfHeaderName: i,
|
|
1292
|
+
onUploadProgress: i,
|
|
1293
|
+
onDownloadProgress: i,
|
|
1294
|
+
decompress: i,
|
|
1295
|
+
maxContentLength: i,
|
|
1296
|
+
maxBodyLength: i,
|
|
1297
|
+
beforeRedirect: i,
|
|
1298
|
+
transport: i,
|
|
1299
|
+
httpAgent: i,
|
|
1300
|
+
httpsAgent: i,
|
|
1301
|
+
cancelToken: i,
|
|
1302
|
+
socketPath: i,
|
|
1303
|
+
responseEncoding: i,
|
|
1304
|
+
validateStatus: c,
|
|
1305
|
+
headers: (l, u, h) => o(yt(l), yt(u), h, !0)
|
|
1306
|
+
};
|
|
1307
|
+
return a.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
1308
|
+
const h = d[u] || o, x = h(e[u], t[u], u);
|
|
1309
|
+
a.isUndefined(x) && h !== c || (r[u] = x);
|
|
1310
|
+
}), r;
|
|
1311
|
+
}
|
|
1312
|
+
const Yt = (e) => {
|
|
1313
|
+
const t = ae({}, e);
|
|
1314
|
+
let { data: r, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
|
|
1315
|
+
t.headers = i = ee.from(i), t.url = qt(Jt(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1316
|
+
"Authorization",
|
|
1317
|
+
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1318
|
+
);
|
|
1319
|
+
let d;
|
|
1320
|
+
if (a.isFormData(r)) {
|
|
1321
|
+
if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv)
|
|
1322
|
+
i.setContentType(void 0);
|
|
1323
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
1324
|
+
const [l, ...u] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
|
|
1325
|
+
i.setContentType([l || "multipart/form-data", ...u].join("; "));
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
if (H.hasStandardBrowserEnv && (n && a.isFunction(n) && (n = n(t)), n || n !== !1 && vr(t.url))) {
|
|
1329
|
+
const l = o && s && Rr.read(s);
|
|
1330
|
+
l && i.set(o, l);
|
|
1331
|
+
}
|
|
1332
|
+
return t;
|
|
1333
|
+
}, Ar = typeof XMLHttpRequest < "u", kr = Ar && function(e) {
|
|
1334
|
+
return new Promise(function(r, n) {
|
|
1335
|
+
const o = Yt(e);
|
|
1336
|
+
let s = o.data;
|
|
1337
|
+
const i = ee.from(o.headers).normalize();
|
|
1338
|
+
let { responseType: c, onUploadProgress: d, onDownloadProgress: l } = o, u, h, x, R, p;
|
|
1339
|
+
function S() {
|
|
1340
|
+
R && R(), p && p(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
|
|
1341
|
+
}
|
|
1342
|
+
let y = new XMLHttpRequest();
|
|
1343
|
+
y.open(o.method.toUpperCase(), o.url, !0), y.timeout = o.timeout;
|
|
1344
|
+
function L() {
|
|
1345
|
+
if (!y)
|
|
1346
|
+
return;
|
|
1347
|
+
const A = ee.from(
|
|
1348
|
+
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
1349
|
+
), P = {
|
|
1350
|
+
data: !c || c === "text" || c === "json" ? y.responseText : y.response,
|
|
1351
|
+
status: y.status,
|
|
1352
|
+
statusText: y.statusText,
|
|
1353
|
+
headers: A,
|
|
1354
|
+
config: e,
|
|
1355
|
+
request: y
|
|
1356
|
+
};
|
|
1357
|
+
Wt(function(Y) {
|
|
1358
|
+
r(Y), S();
|
|
1359
|
+
}, function(Y) {
|
|
1360
|
+
n(Y), S();
|
|
1361
|
+
}, P), y = null;
|
|
1362
|
+
}
|
|
1363
|
+
"onloadend" in y ? y.onloadend = L : y.onreadystatechange = function() {
|
|
1364
|
+
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(L);
|
|
1365
|
+
}, y.onabort = function() {
|
|
1366
|
+
y && (n(new O("Request aborted", O.ECONNABORTED, e, y)), y = null);
|
|
1367
|
+
}, y.onerror = function() {
|
|
1368
|
+
n(new O("Network Error", O.ERR_NETWORK, e, y)), y = null;
|
|
1369
|
+
}, y.ontimeout = function() {
|
|
1370
|
+
let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1371
|
+
const P = o.transitional || Ht;
|
|
1372
|
+
o.timeoutErrorMessage && (k = o.timeoutErrorMessage), n(new O(
|
|
1373
|
+
k,
|
|
1374
|
+
P.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED,
|
|
1375
|
+
e,
|
|
1376
|
+
y
|
|
1377
|
+
)), y = null;
|
|
1378
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in y && a.forEach(i.toJSON(), function(k, P) {
|
|
1379
|
+
y.setRequestHeader(P, k);
|
|
1380
|
+
}), a.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), c && c !== "json" && (y.responseType = o.responseType), l && ([x, p] = Te(l, !0), y.addEventListener("progress", x)), d && y.upload && ([h, R] = Te(d), y.upload.addEventListener("progress", h), y.upload.addEventListener("loadend", R)), (o.cancelToken || o.signal) && (u = (A) => {
|
|
1381
|
+
y && (n(!A || A.type ? new le(null, e, y) : A), y.abort(), y = null);
|
|
1382
|
+
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
1383
|
+
const N = xr(o.url);
|
|
1384
|
+
if (N && H.protocols.indexOf(N) === -1) {
|
|
1385
|
+
n(new O("Unsupported protocol " + N + ":", O.ERR_BAD_REQUEST, e));
|
|
1386
|
+
return;
|
|
1387
|
+
}
|
|
1388
|
+
y.send(s || null);
|
|
1389
|
+
});
|
|
1390
|
+
}, $r = (e, t) => {
|
|
1391
|
+
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1392
|
+
if (t || r) {
|
|
1393
|
+
let n = new AbortController(), o;
|
|
1394
|
+
const s = function(l) {
|
|
1395
|
+
if (!o) {
|
|
1396
|
+
o = !0, c();
|
|
1397
|
+
const u = l instanceof Error ? l : this.reason;
|
|
1398
|
+
n.abort(u instanceof O ? u : new le(u instanceof Error ? u.message : u));
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
let i = t && setTimeout(() => {
|
|
1402
|
+
i = null, s(new O(`timeout ${t} of ms exceeded`, O.ETIMEDOUT));
|
|
1403
|
+
}, t);
|
|
1404
|
+
const c = () => {
|
|
1405
|
+
e && (i && clearTimeout(i), i = null, e.forEach((l) => {
|
|
1406
|
+
l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
|
|
1407
|
+
}), e = null);
|
|
1408
|
+
};
|
|
1409
|
+
e.forEach((l) => l.addEventListener("abort", s));
|
|
1410
|
+
const { signal: d } = n;
|
|
1411
|
+
return d.unsubscribe = () => a.asap(c), d;
|
|
1412
|
+
}
|
|
1413
|
+
}, Lr = $r, Dr = function* (e, t) {
|
|
1414
|
+
let r = e.byteLength;
|
|
1415
|
+
if (!t || r < t) {
|
|
1416
|
+
yield e;
|
|
1417
|
+
return;
|
|
1418
|
+
}
|
|
1419
|
+
let n = 0, o;
|
|
1420
|
+
for (; n < r; )
|
|
1421
|
+
o = n + t, yield e.slice(n, o), n = o;
|
|
1422
|
+
}, Fr = async function* (e, t) {
|
|
1423
|
+
for await (const r of Pr(e))
|
|
1424
|
+
yield* Dr(r, t);
|
|
1425
|
+
}, Pr = async function* (e) {
|
|
1426
|
+
if (e[Symbol.asyncIterator]) {
|
|
1427
|
+
yield* e;
|
|
1428
|
+
return;
|
|
1429
|
+
}
|
|
1430
|
+
const t = e.getReader();
|
|
1431
|
+
try {
|
|
1432
|
+
for (; ; ) {
|
|
1433
|
+
const { done: r, value: n } = await t.read();
|
|
1434
|
+
if (r)
|
|
1435
|
+
break;
|
|
1436
|
+
yield n;
|
|
1437
|
+
}
|
|
1438
|
+
} finally {
|
|
1439
|
+
await t.cancel();
|
|
1440
|
+
}
|
|
1441
|
+
}, bt = (e, t, r, n) => {
|
|
1442
|
+
const o = Fr(e, t);
|
|
1443
|
+
let s = 0, i, c = (d) => {
|
|
1444
|
+
i || (i = !0, n && n(d));
|
|
1445
|
+
};
|
|
1446
|
+
return new ReadableStream({
|
|
1447
|
+
async pull(d) {
|
|
1448
|
+
try {
|
|
1449
|
+
const { done: l, value: u } = await o.next();
|
|
1450
|
+
if (l) {
|
|
1451
|
+
c(), d.close();
|
|
1452
|
+
return;
|
|
1453
|
+
}
|
|
1454
|
+
let h = u.byteLength;
|
|
1455
|
+
if (r) {
|
|
1456
|
+
let x = s += h;
|
|
1457
|
+
r(x);
|
|
1458
|
+
}
|
|
1459
|
+
d.enqueue(new Uint8Array(u));
|
|
1460
|
+
} catch (l) {
|
|
1461
|
+
throw c(l), l;
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
cancel(d) {
|
|
1465
|
+
return c(d), o.return();
|
|
1466
|
+
}
|
|
1467
|
+
}, {
|
|
1468
|
+
highWaterMark: 2
|
|
1469
|
+
});
|
|
1470
|
+
}, Ce = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Kt = Ce && typeof ReadableStream == "function", Nr = Ce && (typeof TextEncoder == "function" ? ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Xt = (e, ...t) => {
|
|
1471
|
+
try {
|
|
1472
|
+
return !!e(...t);
|
|
1473
|
+
} catch {
|
|
1474
|
+
return !1;
|
|
1475
|
+
}
|
|
1476
|
+
}, Cr = Kt && Xt(() => {
|
|
1477
|
+
let e = !1;
|
|
1478
|
+
const t = new Request(H.origin, {
|
|
1479
|
+
body: new ReadableStream(),
|
|
1480
|
+
method: "POST",
|
|
1481
|
+
get duplex() {
|
|
1482
|
+
return e = !0, "half";
|
|
1483
|
+
}
|
|
1484
|
+
}).headers.has("Content-Type");
|
|
1485
|
+
return e && !t;
|
|
1486
|
+
}), gt = 64 * 1024, Je = Kt && Xt(() => a.isReadableStream(new Response("").body)), Oe = {
|
|
1487
|
+
stream: Je && ((e) => e.body)
|
|
1488
|
+
};
|
|
1489
|
+
Ce && ((e) => {
|
|
1490
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1491
|
+
!Oe[t] && (Oe[t] = a.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
|
|
1492
|
+
throw new O(`Response type '${t}' is not supported`, O.ERR_NOT_SUPPORT, n);
|
|
1493
|
+
});
|
|
1494
|
+
});
|
|
1495
|
+
})(new Response());
|
|
1496
|
+
const Mr = async (e) => {
|
|
1497
|
+
if (e == null)
|
|
1498
|
+
return 0;
|
|
1499
|
+
if (a.isBlob(e))
|
|
1500
|
+
return e.size;
|
|
1501
|
+
if (a.isSpecCompliantForm(e))
|
|
1502
|
+
return (await new Request(H.origin, {
|
|
1503
|
+
method: "POST",
|
|
1504
|
+
body: e
|
|
1505
|
+
}).arrayBuffer()).byteLength;
|
|
1506
|
+
if (a.isArrayBufferView(e) || a.isArrayBuffer(e))
|
|
1507
|
+
return e.byteLength;
|
|
1508
|
+
if (a.isURLSearchParams(e) && (e = e + ""), a.isString(e))
|
|
1509
|
+
return (await Nr(e)).byteLength;
|
|
1510
|
+
}, Br = async (e, t) => {
|
|
1511
|
+
const r = a.toFiniteNumber(e.getContentLength());
|
|
1512
|
+
return r ?? Mr(t);
|
|
1513
|
+
}, Ur = Ce && (async (e) => {
|
|
1514
|
+
let {
|
|
1515
|
+
url: t,
|
|
1516
|
+
method: r,
|
|
1517
|
+
data: n,
|
|
1518
|
+
signal: o,
|
|
1519
|
+
cancelToken: s,
|
|
1520
|
+
timeout: i,
|
|
1521
|
+
onDownloadProgress: c,
|
|
1522
|
+
onUploadProgress: d,
|
|
1523
|
+
responseType: l,
|
|
1524
|
+
headers: u,
|
|
1525
|
+
withCredentials: h = "same-origin",
|
|
1526
|
+
fetchOptions: x
|
|
1527
|
+
} = Yt(e);
|
|
1528
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
1529
|
+
let R = Lr([o, s && s.toAbortSignal()], i), p;
|
|
1530
|
+
const S = R && R.unsubscribe && (() => {
|
|
1531
|
+
R.unsubscribe();
|
|
1532
|
+
});
|
|
1533
|
+
let y;
|
|
1534
|
+
try {
|
|
1535
|
+
if (d && Cr && r !== "get" && r !== "head" && (y = await Br(u, n)) !== 0) {
|
|
1536
|
+
let P = new Request(t, {
|
|
1537
|
+
method: "POST",
|
|
1538
|
+
body: n,
|
|
1539
|
+
duplex: "half"
|
|
1540
|
+
}), M;
|
|
1541
|
+
if (a.isFormData(n) && (M = P.headers.get("content-type")) && u.setContentType(M), P.body) {
|
|
1542
|
+
const [Y, G] = ht(
|
|
1543
|
+
y,
|
|
1544
|
+
Te(mt(d))
|
|
1545
|
+
);
|
|
1546
|
+
n = bt(P.body, gt, Y, G);
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
a.isString(h) || (h = h ? "include" : "omit");
|
|
1550
|
+
const L = "credentials" in Request.prototype;
|
|
1551
|
+
p = new Request(t, {
|
|
1552
|
+
...x,
|
|
1553
|
+
signal: R,
|
|
1554
|
+
method: r.toUpperCase(),
|
|
1555
|
+
headers: u.normalize().toJSON(),
|
|
1556
|
+
body: n,
|
|
1557
|
+
duplex: "half",
|
|
1558
|
+
credentials: L ? h : void 0
|
|
1559
|
+
});
|
|
1560
|
+
let N = await fetch(p);
|
|
1561
|
+
const A = Je && (l === "stream" || l === "response");
|
|
1562
|
+
if (Je && (c || A && S)) {
|
|
1563
|
+
const P = {};
|
|
1564
|
+
["status", "statusText", "headers"].forEach((K) => {
|
|
1565
|
+
P[K] = N[K];
|
|
1566
|
+
});
|
|
1567
|
+
const M = a.toFiniteNumber(N.headers.get("content-length")), [Y, G] = c && ht(
|
|
1568
|
+
M,
|
|
1569
|
+
Te(mt(c), !0)
|
|
1570
|
+
) || [];
|
|
1571
|
+
N = new Response(
|
|
1572
|
+
bt(N.body, gt, Y, () => {
|
|
1573
|
+
G && G(), S && S();
|
|
1574
|
+
}),
|
|
1575
|
+
P
|
|
1576
|
+
);
|
|
1577
|
+
}
|
|
1578
|
+
l = l || "text";
|
|
1579
|
+
let k = await Oe[a.findKey(Oe, l) || "text"](N, e);
|
|
1580
|
+
return !A && S && S(), await new Promise((P, M) => {
|
|
1581
|
+
Wt(P, M, {
|
|
1582
|
+
data: k,
|
|
1583
|
+
headers: ee.from(N.headers),
|
|
1584
|
+
status: N.status,
|
|
1585
|
+
statusText: N.statusText,
|
|
1586
|
+
config: e,
|
|
1587
|
+
request: p
|
|
1588
|
+
});
|
|
1589
|
+
});
|
|
1590
|
+
} catch (L) {
|
|
1591
|
+
throw S && S(), L && L.name === "TypeError" && /fetch/i.test(L.message) ? Object.assign(
|
|
1592
|
+
new O("Network Error", O.ERR_NETWORK, e, p),
|
|
1593
|
+
{
|
|
1594
|
+
cause: L.cause || L
|
|
1595
|
+
}
|
|
1596
|
+
) : O.from(L, L && L.code, e, p);
|
|
1597
|
+
}
|
|
1598
|
+
}), Ye = {
|
|
1599
|
+
http: Gn,
|
|
1600
|
+
xhr: kr,
|
|
1601
|
+
fetch: Ur
|
|
1602
|
+
};
|
|
1603
|
+
a.forEach(Ye, (e, t) => {
|
|
1604
|
+
if (e) {
|
|
1605
|
+
try {
|
|
1606
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1607
|
+
} catch {
|
|
1608
|
+
}
|
|
1609
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1610
|
+
}
|
|
1611
|
+
});
|
|
1612
|
+
const wt = (e) => `- ${e}`, jr = (e) => a.isFunction(e) || e === null || e === !1, Zt = {
|
|
1613
|
+
getAdapter: (e) => {
|
|
1614
|
+
e = a.isArray(e) ? e : [e];
|
|
1615
|
+
const { length: t } = e;
|
|
1616
|
+
let r, n;
|
|
1617
|
+
const o = {};
|
|
1618
|
+
for (let s = 0; s < t; s++) {
|
|
1619
|
+
r = e[s];
|
|
1620
|
+
let i;
|
|
1621
|
+
if (n = r, !jr(r) && (n = Ye[(i = String(r)).toLowerCase()], n === void 0))
|
|
1622
|
+
throw new O(`Unknown adapter '${i}'`);
|
|
1623
|
+
if (n)
|
|
1624
|
+
break;
|
|
1625
|
+
o[i || "#" + s] = n;
|
|
1626
|
+
}
|
|
1627
|
+
if (!n) {
|
|
1628
|
+
const s = Object.entries(o).map(
|
|
1629
|
+
([c, d]) => `adapter ${c} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1630
|
+
);
|
|
1631
|
+
let i = t ? s.length > 1 ? `since :
|
|
1632
|
+
` + s.map(wt).join(`
|
|
1633
|
+
`) : " " + wt(s[0]) : "as no adapter specified";
|
|
1634
|
+
throw new O(
|
|
1635
|
+
"There is no suitable adapter to dispatch the request " + i,
|
|
1636
|
+
"ERR_NOT_SUPPORT"
|
|
1637
|
+
);
|
|
1638
|
+
}
|
|
1639
|
+
return n;
|
|
1640
|
+
},
|
|
1641
|
+
adapters: Ye
|
|
1642
|
+
};
|
|
1643
|
+
function Ie(e) {
|
|
1644
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1645
|
+
throw new le(null, e);
|
|
1646
|
+
}
|
|
1647
|
+
function St(e) {
|
|
1648
|
+
return Ie(e), e.headers = ee.from(e.headers), e.data = je.call(
|
|
1649
|
+
e,
|
|
1650
|
+
e.transformRequest
|
|
1651
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Zt.getAdapter(e.adapter || ot.adapter)(e).then(function(n) {
|
|
1652
|
+
return Ie(e), n.data = je.call(
|
|
1653
|
+
e,
|
|
1654
|
+
e.transformResponse,
|
|
1655
|
+
n
|
|
1656
|
+
), n.headers = ee.from(n.headers), n;
|
|
1657
|
+
}, function(n) {
|
|
1658
|
+
return zt(n) || (Ie(e), n && n.response && (n.response.data = je.call(
|
|
1659
|
+
e,
|
|
1660
|
+
e.transformResponse,
|
|
1661
|
+
n.response
|
|
1662
|
+
), n.response.headers = ee.from(n.response.headers))), Promise.reject(n);
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
const Gt = "1.7.9", Me = {};
|
|
1666
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1667
|
+
Me[e] = function(n) {
|
|
1668
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1669
|
+
};
|
|
1670
|
+
});
|
|
1671
|
+
const xt = {};
|
|
1672
|
+
Me.transitional = function(t, r, n) {
|
|
1673
|
+
function o(s, i) {
|
|
1674
|
+
return "[Axios v" + Gt + "] Transitional option '" + s + "'" + i + (n ? ". " + n : "");
|
|
1675
|
+
}
|
|
1676
|
+
return (s, i, c) => {
|
|
1677
|
+
if (t === !1)
|
|
1678
|
+
throw new O(
|
|
1679
|
+
o(i, " has been removed" + (r ? " in " + r : "")),
|
|
1680
|
+
O.ERR_DEPRECATED
|
|
1681
|
+
);
|
|
1682
|
+
return r && !xt[i] && (xt[i] = !0, console.warn(
|
|
1683
|
+
o(
|
|
1684
|
+
i,
|
|
1685
|
+
" has been deprecated since v" + r + " and will be removed in the near future"
|
|
1686
|
+
)
|
|
1687
|
+
)), t ? t(s, i, c) : !0;
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
Me.spelling = function(t) {
|
|
1691
|
+
return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
|
|
1692
|
+
};
|
|
1693
|
+
function Ir(e, t, r) {
|
|
1694
|
+
if (typeof e != "object")
|
|
1695
|
+
throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE);
|
|
1696
|
+
const n = Object.keys(e);
|
|
1697
|
+
let o = n.length;
|
|
1698
|
+
for (; o-- > 0; ) {
|
|
1699
|
+
const s = n[o], i = t[s];
|
|
1700
|
+
if (i) {
|
|
1701
|
+
const c = e[s], d = c === void 0 || i(c, s, e);
|
|
1702
|
+
if (d !== !0)
|
|
1703
|
+
throw new O("option " + s + " must be " + d, O.ERR_BAD_OPTION_VALUE);
|
|
1704
|
+
continue;
|
|
1705
|
+
}
|
|
1706
|
+
if (r !== !0)
|
|
1707
|
+
throw new O("Unknown option " + s, O.ERR_BAD_OPTION);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
const ve = {
|
|
1711
|
+
assertOptions: Ir,
|
|
1712
|
+
validators: Me
|
|
1713
|
+
}, re = ve.validators;
|
|
1714
|
+
class Ae {
|
|
1715
|
+
constructor(t) {
|
|
1716
|
+
this.defaults = t, this.interceptors = {
|
|
1717
|
+
request: new ft(),
|
|
1718
|
+
response: new ft()
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* Dispatch a request
|
|
1723
|
+
*
|
|
1724
|
+
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1725
|
+
* @param {?Object} config
|
|
1726
|
+
*
|
|
1727
|
+
* @returns {Promise} The Promise to be fulfilled
|
|
1728
|
+
*/
|
|
1729
|
+
async request(t, r) {
|
|
1730
|
+
try {
|
|
1731
|
+
return await this._request(t, r);
|
|
1732
|
+
} catch (n) {
|
|
1733
|
+
if (n instanceof Error) {
|
|
1734
|
+
let o = {};
|
|
1735
|
+
Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
|
|
1736
|
+
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1737
|
+
try {
|
|
1738
|
+
n.stack ? s && !String(n.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (n.stack += `
|
|
1739
|
+
` + s) : n.stack = s;
|
|
1740
|
+
} catch {
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
throw n;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
_request(t, r) {
|
|
1747
|
+
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ae(this.defaults, r);
|
|
1748
|
+
const { transitional: n, paramsSerializer: o, headers: s } = r;
|
|
1749
|
+
n !== void 0 && ve.assertOptions(n, {
|
|
1750
|
+
silentJSONParsing: re.transitional(re.boolean),
|
|
1751
|
+
forcedJSONParsing: re.transitional(re.boolean),
|
|
1752
|
+
clarifyTimeoutError: re.transitional(re.boolean)
|
|
1753
|
+
}, !1), o != null && (a.isFunction(o) ? r.paramsSerializer = {
|
|
1754
|
+
serialize: o
|
|
1755
|
+
} : ve.assertOptions(o, {
|
|
1756
|
+
encode: re.function,
|
|
1757
|
+
serialize: re.function
|
|
1758
|
+
}, !0)), ve.assertOptions(r, {
|
|
1759
|
+
baseUrl: re.spelling("baseURL"),
|
|
1760
|
+
withXsrfToken: re.spelling("withXSRFToken")
|
|
1761
|
+
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1762
|
+
let i = s && a.merge(
|
|
1763
|
+
s.common,
|
|
1764
|
+
s[r.method]
|
|
1765
|
+
);
|
|
1766
|
+
s && a.forEach(
|
|
1767
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1768
|
+
(p) => {
|
|
1769
|
+
delete s[p];
|
|
1770
|
+
}
|
|
1771
|
+
), r.headers = ee.concat(i, s);
|
|
1772
|
+
const c = [];
|
|
1773
|
+
let d = !0;
|
|
1774
|
+
this.interceptors.request.forEach(function(S) {
|
|
1775
|
+
typeof S.runWhen == "function" && S.runWhen(r) === !1 || (d = d && S.synchronous, c.unshift(S.fulfilled, S.rejected));
|
|
1776
|
+
});
|
|
1777
|
+
const l = [];
|
|
1778
|
+
this.interceptors.response.forEach(function(S) {
|
|
1779
|
+
l.push(S.fulfilled, S.rejected);
|
|
1780
|
+
});
|
|
1781
|
+
let u, h = 0, x;
|
|
1782
|
+
if (!d) {
|
|
1783
|
+
const p = [St.bind(this), void 0];
|
|
1784
|
+
for (p.unshift.apply(p, c), p.push.apply(p, l), x = p.length, u = Promise.resolve(r); h < x; )
|
|
1785
|
+
u = u.then(p[h++], p[h++]);
|
|
1786
|
+
return u;
|
|
1787
|
+
}
|
|
1788
|
+
x = c.length;
|
|
1789
|
+
let R = r;
|
|
1790
|
+
for (h = 0; h < x; ) {
|
|
1791
|
+
const p = c[h++], S = c[h++];
|
|
1792
|
+
try {
|
|
1793
|
+
R = p(R);
|
|
1794
|
+
} catch (y) {
|
|
1795
|
+
S.call(this, y);
|
|
1796
|
+
break;
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
try {
|
|
1800
|
+
u = St.call(this, R);
|
|
1801
|
+
} catch (p) {
|
|
1802
|
+
return Promise.reject(p);
|
|
1803
|
+
}
|
|
1804
|
+
for (h = 0, x = l.length; h < x; )
|
|
1805
|
+
u = u.then(l[h++], l[h++]);
|
|
1806
|
+
return u;
|
|
1807
|
+
}
|
|
1808
|
+
getUri(t) {
|
|
1809
|
+
t = ae(this.defaults, t);
|
|
1810
|
+
const r = Jt(t.baseURL, t.url);
|
|
1811
|
+
return qt(r, t.params, t.paramsSerializer);
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
a.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1815
|
+
Ae.prototype[t] = function(r, n) {
|
|
1816
|
+
return this.request(ae(n || {}, {
|
|
1817
|
+
method: t,
|
|
1818
|
+
url: r,
|
|
1819
|
+
data: (n || {}).data
|
|
1820
|
+
}));
|
|
1821
|
+
};
|
|
1822
|
+
});
|
|
1823
|
+
a.forEach(["post", "put", "patch"], function(t) {
|
|
1824
|
+
function r(n) {
|
|
1825
|
+
return function(s, i, c) {
|
|
1826
|
+
return this.request(ae(c || {}, {
|
|
1827
|
+
method: t,
|
|
1828
|
+
headers: n ? {
|
|
1829
|
+
"Content-Type": "multipart/form-data"
|
|
1830
|
+
} : {},
|
|
1831
|
+
url: s,
|
|
1832
|
+
data: i
|
|
1833
|
+
}));
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
Ae.prototype[t] = r(), Ae.prototype[t + "Form"] = r(!0);
|
|
1837
|
+
});
|
|
1838
|
+
const Re = Ae;
|
|
1839
|
+
class it {
|
|
1840
|
+
constructor(t) {
|
|
1841
|
+
if (typeof t != "function")
|
|
1842
|
+
throw new TypeError("executor must be a function.");
|
|
1843
|
+
let r;
|
|
1844
|
+
this.promise = new Promise(function(s) {
|
|
1845
|
+
r = s;
|
|
1846
|
+
});
|
|
1847
|
+
const n = this;
|
|
1848
|
+
this.promise.then((o) => {
|
|
1849
|
+
if (!n._listeners)
|
|
1850
|
+
return;
|
|
1851
|
+
let s = n._listeners.length;
|
|
1852
|
+
for (; s-- > 0; )
|
|
1853
|
+
n._listeners[s](o);
|
|
1854
|
+
n._listeners = null;
|
|
1855
|
+
}), this.promise.then = (o) => {
|
|
1856
|
+
let s;
|
|
1857
|
+
const i = new Promise((c) => {
|
|
1858
|
+
n.subscribe(c), s = c;
|
|
1859
|
+
}).then(o);
|
|
1860
|
+
return i.cancel = function() {
|
|
1861
|
+
n.unsubscribe(s);
|
|
1862
|
+
}, i;
|
|
1863
|
+
}, t(function(s, i, c) {
|
|
1864
|
+
n.reason || (n.reason = new le(s, i, c), r(n.reason));
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
1869
|
+
*/
|
|
1870
|
+
throwIfRequested() {
|
|
1871
|
+
if (this.reason)
|
|
1872
|
+
throw this.reason;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Subscribe to the cancel signal
|
|
1876
|
+
*/
|
|
1877
|
+
subscribe(t) {
|
|
1878
|
+
if (this.reason) {
|
|
1879
|
+
t(this.reason);
|
|
1880
|
+
return;
|
|
1881
|
+
}
|
|
1882
|
+
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Unsubscribe from the cancel signal
|
|
1886
|
+
*/
|
|
1887
|
+
unsubscribe(t) {
|
|
1888
|
+
if (!this._listeners)
|
|
1889
|
+
return;
|
|
1890
|
+
const r = this._listeners.indexOf(t);
|
|
1891
|
+
r !== -1 && this._listeners.splice(r, 1);
|
|
1892
|
+
}
|
|
1893
|
+
toAbortSignal() {
|
|
1894
|
+
const t = new AbortController(), r = (n) => {
|
|
1895
|
+
t.abort(n);
|
|
1896
|
+
};
|
|
1897
|
+
return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1901
|
+
* cancels the `CancelToken`.
|
|
1902
|
+
*/
|
|
1903
|
+
static source() {
|
|
1904
|
+
let t;
|
|
1905
|
+
return {
|
|
1906
|
+
token: new it(function(o) {
|
|
1907
|
+
t = o;
|
|
1908
|
+
}),
|
|
1909
|
+
cancel: t
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
const qr = it;
|
|
1914
|
+
function Hr(e) {
|
|
1915
|
+
return function(r) {
|
|
1916
|
+
return e.apply(null, r);
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
function Vr(e) {
|
|
1920
|
+
return a.isObject(e) && e.isAxiosError === !0;
|
|
1921
|
+
}
|
|
1922
|
+
const Ke = {
|
|
1923
|
+
Continue: 100,
|
|
1924
|
+
SwitchingProtocols: 101,
|
|
1925
|
+
Processing: 102,
|
|
1926
|
+
EarlyHints: 103,
|
|
1927
|
+
Ok: 200,
|
|
1928
|
+
Created: 201,
|
|
1929
|
+
Accepted: 202,
|
|
1930
|
+
NonAuthoritativeInformation: 203,
|
|
1931
|
+
NoContent: 204,
|
|
1932
|
+
ResetContent: 205,
|
|
1933
|
+
PartialContent: 206,
|
|
1934
|
+
MultiStatus: 207,
|
|
1935
|
+
AlreadyReported: 208,
|
|
1936
|
+
ImUsed: 226,
|
|
1937
|
+
MultipleChoices: 300,
|
|
1938
|
+
MovedPermanently: 301,
|
|
1939
|
+
Found: 302,
|
|
1940
|
+
SeeOther: 303,
|
|
1941
|
+
NotModified: 304,
|
|
1942
|
+
UseProxy: 305,
|
|
1943
|
+
Unused: 306,
|
|
1944
|
+
TemporaryRedirect: 307,
|
|
1945
|
+
PermanentRedirect: 308,
|
|
1946
|
+
BadRequest: 400,
|
|
1947
|
+
Unauthorized: 401,
|
|
1948
|
+
PaymentRequired: 402,
|
|
1949
|
+
Forbidden: 403,
|
|
1950
|
+
NotFound: 404,
|
|
1951
|
+
MethodNotAllowed: 405,
|
|
1952
|
+
NotAcceptable: 406,
|
|
1953
|
+
ProxyAuthenticationRequired: 407,
|
|
1954
|
+
RequestTimeout: 408,
|
|
1955
|
+
Conflict: 409,
|
|
1956
|
+
Gone: 410,
|
|
1957
|
+
LengthRequired: 411,
|
|
1958
|
+
PreconditionFailed: 412,
|
|
1959
|
+
PayloadTooLarge: 413,
|
|
1960
|
+
UriTooLong: 414,
|
|
1961
|
+
UnsupportedMediaType: 415,
|
|
1962
|
+
RangeNotSatisfiable: 416,
|
|
1963
|
+
ExpectationFailed: 417,
|
|
1964
|
+
ImATeapot: 418,
|
|
1965
|
+
MisdirectedRequest: 421,
|
|
1966
|
+
UnprocessableEntity: 422,
|
|
1967
|
+
Locked: 423,
|
|
1968
|
+
FailedDependency: 424,
|
|
1969
|
+
TooEarly: 425,
|
|
1970
|
+
UpgradeRequired: 426,
|
|
1971
|
+
PreconditionRequired: 428,
|
|
1972
|
+
TooManyRequests: 429,
|
|
1973
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1974
|
+
UnavailableForLegalReasons: 451,
|
|
1975
|
+
InternalServerError: 500,
|
|
1976
|
+
NotImplemented: 501,
|
|
1977
|
+
BadGateway: 502,
|
|
1978
|
+
ServiceUnavailable: 503,
|
|
1979
|
+
GatewayTimeout: 504,
|
|
1980
|
+
HttpVersionNotSupported: 505,
|
|
1981
|
+
VariantAlsoNegotiates: 506,
|
|
1982
|
+
InsufficientStorage: 507,
|
|
1983
|
+
LoopDetected: 508,
|
|
1984
|
+
NotExtended: 510,
|
|
1985
|
+
NetworkAuthenticationRequired: 511
|
|
1986
|
+
};
|
|
1987
|
+
Object.entries(Ke).forEach(([e, t]) => {
|
|
1988
|
+
Ke[t] = e;
|
|
1989
|
+
});
|
|
1990
|
+
const zr = Ke;
|
|
1991
|
+
function Qt(e) {
|
|
1992
|
+
const t = new Re(e), r = $t(Re.prototype.request, t);
|
|
1993
|
+
return a.extend(r, Re.prototype, t, { allOwnKeys: !0 }), a.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1994
|
+
return Qt(ae(e, o));
|
|
1995
|
+
}, r;
|
|
1996
|
+
}
|
|
1997
|
+
const I = Qt(ot);
|
|
1998
|
+
I.Axios = Re;
|
|
1999
|
+
I.CanceledError = le;
|
|
2000
|
+
I.CancelToken = qr;
|
|
2001
|
+
I.isCancel = zt;
|
|
2002
|
+
I.VERSION = Gt;
|
|
2003
|
+
I.toFormData = Pe;
|
|
2004
|
+
I.AxiosError = O;
|
|
2005
|
+
I.Cancel = I.CanceledError;
|
|
2006
|
+
I.all = function(t) {
|
|
2007
|
+
return Promise.all(t);
|
|
2008
|
+
};
|
|
2009
|
+
I.spread = Hr;
|
|
2010
|
+
I.isAxiosError = Vr;
|
|
2011
|
+
I.mergeConfig = ae;
|
|
2012
|
+
I.AxiosHeaders = ee;
|
|
2013
|
+
I.formToJSON = (e) => Vt(a.isHTMLForm(e) ? new FormData(e) : e);
|
|
2014
|
+
I.getAdapter = Zt.getAdapter;
|
|
2015
|
+
I.HttpStatusCode = zr;
|
|
2016
|
+
I.default = I;
|
|
2017
|
+
const ge = I, we = sn(), Se = "http://127.0.0.1:7001", Wr = async (e) => (await ge({
|
|
2018
|
+
method: "post",
|
|
2019
|
+
headers: { token: we },
|
|
2020
|
+
url: `${Se}/middleLayer/kline/getKlineBasic`,
|
|
2021
|
+
data: { ...e, userId: ke("id") }
|
|
2022
|
+
})).data, Jr = async (e) => (await ge({
|
|
2023
|
+
method: "post",
|
|
2024
|
+
headers: { token: we },
|
|
2025
|
+
url: `${Se}/middleLayer/kline/getKline`,
|
|
2026
|
+
data: e
|
|
2027
|
+
})).data, Yr = async (e) => (await ge({
|
|
2028
|
+
method: "post",
|
|
2029
|
+
headers: { token: we },
|
|
2030
|
+
url: `${Se}/middleLayer/post/alarm/deliversign/addAlarmPrice`,
|
|
2031
|
+
data: { ...e, userId: ke("id") }
|
|
2032
|
+
})).data, Kr = async (e) => (await ge({
|
|
2033
|
+
method: "post",
|
|
2034
|
+
headers: { token: we },
|
|
2035
|
+
url: `${Se}/middleLayer/post/alarm/deliversign/findAlarmPriceByUserId`,
|
|
2036
|
+
data: { ...e, userId: ke("id") }
|
|
2037
|
+
})).data, Xr = async (e) => (await ge({
|
|
2038
|
+
method: "post",
|
|
2039
|
+
headers: { token: we },
|
|
2040
|
+
url: `${Se}/middleLayer/post/alarm/deliversign/updateAlarmPrice`,
|
|
2041
|
+
data: { ...e, userId: ke("id") }
|
|
2042
|
+
})).data, { round: _t } = $e, Zr = (e, t, r, n, o) => {
|
|
2043
|
+
const { variety: s, featureId: i, featureType: c } = r, { gridLeft: d, gridRight: l } = n;
|
|
2044
|
+
return t.map((u) => {
|
|
2045
|
+
const { warnPrice: h } = u, x = e == null ? void 0 : e.convertToPixel({ yAxisIndex: 0 }, h);
|
|
2046
|
+
let R = 0;
|
|
2047
|
+
return {
|
|
2048
|
+
type: "group",
|
|
2049
|
+
name: "warningLine",
|
|
2050
|
+
info: u,
|
|
2051
|
+
draggable: "vertical",
|
|
2052
|
+
children: [
|
|
2053
|
+
{
|
|
2054
|
+
type: "line",
|
|
2055
|
+
info: u,
|
|
2056
|
+
shape: {
|
|
2057
|
+
x1: d,
|
|
2058
|
+
// 开始X坐标
|
|
2059
|
+
y1: x,
|
|
2060
|
+
// 开始Y坐标
|
|
2061
|
+
x2: (e == null ? void 0 : e.getWidth()) - l,
|
|
2062
|
+
// 结束X坐标
|
|
2063
|
+
y2: x
|
|
2064
|
+
// 结束Y坐标
|
|
2065
|
+
},
|
|
2066
|
+
style: {
|
|
2067
|
+
stroke: "#FFF",
|
|
2068
|
+
lineWidth: 1,
|
|
2069
|
+
lineDash: [8, 4]
|
|
2070
|
+
},
|
|
2071
|
+
z: 10
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
type: "text",
|
|
2075
|
+
info: u,
|
|
2076
|
+
x: (e == null ? void 0 : e.getWidth()) - l,
|
|
2077
|
+
y: x - 5,
|
|
2078
|
+
style: {
|
|
2079
|
+
fill: "#FFF",
|
|
2080
|
+
text: h,
|
|
2081
|
+
stroke: "#000",
|
|
2082
|
+
lineWidth: 1,
|
|
2083
|
+
opacity: 1
|
|
2084
|
+
},
|
|
2085
|
+
z: 10
|
|
2086
|
+
}
|
|
2087
|
+
],
|
|
2088
|
+
// 事件:开始拖拽
|
|
2089
|
+
ondragstart: (p) => {
|
|
2090
|
+
R = p.offsetY;
|
|
2091
|
+
},
|
|
2092
|
+
ondrag: (p) => {
|
|
2093
|
+
var S;
|
|
2094
|
+
if (p.target && p.target.childAt(1)) {
|
|
2095
|
+
const y = e.convertFromPixel({ yAxisIndex: 0 }, x + (p.offsetY - R));
|
|
2096
|
+
(S = p.target.childAt(1)) == null || S.animate("style", !1).when(1, { text: _t(y, 3) }).start();
|
|
2097
|
+
}
|
|
2098
|
+
},
|
|
2099
|
+
// 事件:结束拖拽
|
|
2100
|
+
ondragend: async (p) => {
|
|
2101
|
+
const y = p.offsetY - R;
|
|
2102
|
+
if (y !== 0) {
|
|
2103
|
+
const L = e == null ? void 0 : e.convertFromPixel({ yAxisIndex: 0 }, y + x), N = {
|
|
2104
|
+
id: u.id,
|
|
2105
|
+
warnPrice: _t(L, 3),
|
|
2106
|
+
featureId: i,
|
|
2107
|
+
//品种id
|
|
2108
|
+
featureCode: s,
|
|
2109
|
+
//品种代码
|
|
2110
|
+
featureType: c
|
|
2111
|
+
//品种类型
|
|
2112
|
+
};
|
|
2113
|
+
await Xr(N), At.success("画线预警修改成功");
|
|
2114
|
+
const A = await Kr({ featureId: i });
|
|
2115
|
+
o && o((A == null ? void 0 : A.body) || []);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
};
|
|
2119
|
+
});
|
|
2120
|
+
}, Gr = { class: "kline-tips" }, Qr = /* @__PURE__ */ Et({
|
|
2121
|
+
__name: "index",
|
|
2122
|
+
props: {
|
|
2123
|
+
// 提示数据
|
|
2124
|
+
data: {
|
|
2125
|
+
type: Array,
|
|
2126
|
+
require: !0
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
setup(e) {
|
|
2130
|
+
return (t, r) => (z(), Z("div", Gr, [
|
|
2131
|
+
(z(!0), Z(Ze, null, Ge(e.data, (n, o) => (z(), Z("div", {
|
|
2132
|
+
key: o,
|
|
2133
|
+
class: "kline-tips-item",
|
|
2134
|
+
style: Qe({ color: n.color })
|
|
2135
|
+
}, qe(n.label) + " " + qe(n.value), 5))), 128))
|
|
2136
|
+
]));
|
|
2137
|
+
}
|
|
2138
|
+
});
|
|
2139
|
+
const Xe = /* @__PURE__ */ ye(Qr, [["__scopeId", "data-v-f83b6b36"]]);
|
|
2140
|
+
const es = { class: "kline-tips" }, ts = {
|
|
2141
|
+
__name: "index",
|
|
2142
|
+
props: {
|
|
2143
|
+
// 提示数据
|
|
2144
|
+
data: {
|
|
2145
|
+
type: Object,
|
|
2146
|
+
require: !0
|
|
2147
|
+
},
|
|
2148
|
+
activeIndex: {
|
|
2149
|
+
type: [Number, String],
|
|
2150
|
+
require: !0
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
setup(e) {
|
|
2154
|
+
const { round: t, formatValue: r } = $e, n = e, o = he(() => {
|
|
2155
|
+
const { data: i, activeIndex: c } = n;
|
|
2156
|
+
if (i.data && i.data[c]) {
|
|
2157
|
+
const d = i.data[c], l = [
|
|
2158
|
+
{ label: "开", value: t(d[0]) },
|
|
2159
|
+
{ label: "高", value: t(d[3]) },
|
|
2160
|
+
{ label: "低", value: t(d[2]) },
|
|
2161
|
+
{ label: "收", value: t(d[1]) }
|
|
2162
|
+
];
|
|
2163
|
+
d[4] !== null && l.push({ label: "额", value: r(d[4]) });
|
|
2164
|
+
let u;
|
|
2165
|
+
return d[6] > 0 ? u = "red" : d[6] < 0 && (u = "green"), l.push({ label: "涨跌", value: `${t(d[6])}%`, color: u }), l;
|
|
2166
|
+
}
|
|
2167
|
+
return [];
|
|
2168
|
+
}), s = he(() => {
|
|
2169
|
+
var d;
|
|
2170
|
+
const { data: i, activeIndex: c } = n;
|
|
2171
|
+
return ((d = i == null ? void 0 : i.mainIndicator) == null ? void 0 : d.map((l) => ({ label: l.key, value: t(l.data[c]), color: l.color }))) || [];
|
|
2172
|
+
});
|
|
2173
|
+
return (i, c) => (z(), Z("div", es, [
|
|
2174
|
+
oe(Xe, { data: o.value }, null, 8, ["data"]),
|
|
2175
|
+
oe(Xe, { data: s.value }, null, 8, ["data"])
|
|
2176
|
+
]));
|
|
2177
|
+
}
|
|
2178
|
+
}, ns = /* @__PURE__ */ ye(ts, [["__scopeId", "data-v-64b5c2a3"]]);
|
|
2179
|
+
const rs = { class: "klineSub" }, ss = { class: "klineSub-tips" }, os = {
|
|
2180
|
+
key: 0,
|
|
2181
|
+
class: "klineSub-tips-select"
|
|
2182
|
+
}, is = {
|
|
2183
|
+
__name: "index",
|
|
2184
|
+
props: {
|
|
2185
|
+
data: { type: Object, require: !0 },
|
|
2186
|
+
activeIndex: { type: [Number, String], require: !0 },
|
|
2187
|
+
modelValue: { type: String, required: !0 },
|
|
2188
|
+
// 副图指标
|
|
2189
|
+
subIndicatorList: { type: Array, required: !0 }
|
|
2190
|
+
// 副图指标列表
|
|
2191
|
+
},
|
|
2192
|
+
emits: ["update:modelValue"],
|
|
2193
|
+
setup(e, { expose: t, emit: r }) {
|
|
2194
|
+
const { round: n } = $e;
|
|
2195
|
+
let o, s;
|
|
2196
|
+
const i = r, c = e, d = Q(), l = he({
|
|
2197
|
+
get() {
|
|
2198
|
+
return c.modelValue;
|
|
2199
|
+
},
|
|
2200
|
+
set(x) {
|
|
2201
|
+
i("update:modelValue", x);
|
|
2202
|
+
}
|
|
2203
|
+
}), u = he(() => {
|
|
2204
|
+
var p;
|
|
2205
|
+
const { data: x, activeIndex: R } = c;
|
|
2206
|
+
return ((p = x == null ? void 0 : x.subIndicator) == null ? void 0 : p.map((S) => ({ label: S.key, color: S.color, value: S.data[R] || "-" }))) || [];
|
|
2207
|
+
});
|
|
2208
|
+
vt(() => {
|
|
2209
|
+
o = He.init(d.value);
|
|
2210
|
+
let x = !0;
|
|
2211
|
+
s = new ResizeObserver(() => {
|
|
2212
|
+
if (x) {
|
|
2213
|
+
x = null;
|
|
2214
|
+
return;
|
|
2215
|
+
}
|
|
2216
|
+
o.resize();
|
|
2217
|
+
}), s.observe(d.value);
|
|
2218
|
+
}), Rt(() => {
|
|
2219
|
+
o.dispose(), s.disconnect(), s = null;
|
|
2220
|
+
});
|
|
2221
|
+
const h = (x, R) => {
|
|
2222
|
+
const p = x[R], S = R === 0 ? x[R] : x[R - 1];
|
|
2223
|
+
return p[0] === p[1] ? p[0] >= S[1] ? {
|
|
2224
|
+
color: "transparent",
|
|
2225
|
+
borderColor: "#FF0000"
|
|
2226
|
+
} : {
|
|
2227
|
+
color: "#00FFFF"
|
|
2228
|
+
} : p[1] > p[0] ? {
|
|
2229
|
+
color: "transparent",
|
|
2230
|
+
borderColor: "#FF0000"
|
|
2231
|
+
} : {
|
|
2232
|
+
color: "#00FFFF"
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2235
|
+
return t({
|
|
2236
|
+
connect: (x) => {
|
|
2237
|
+
He.connect([x, o]);
|
|
2238
|
+
},
|
|
2239
|
+
// 联动
|
|
2240
|
+
draw: (x, R) => {
|
|
2241
|
+
Tt(() => {
|
|
2242
|
+
const { startValue: p, endValue: S, maxValueSpan: y } = x, { leftYAxisRange: L, rightYAxisRange: N } = c.data.subIndicator[0], A = c.data.subIndicator.map((k) => {
|
|
2243
|
+
if (k.series === "bar")
|
|
2244
|
+
return {
|
|
2245
|
+
name: "subMain",
|
|
2246
|
+
xAxisIndex: 0,
|
|
2247
|
+
yAxisIndex: 1,
|
|
2248
|
+
type: "bar",
|
|
2249
|
+
silent: !0,
|
|
2250
|
+
symbol: "none",
|
|
2251
|
+
data: k.data.map((P, M) => k.seriesColor === "kline" ? {
|
|
2252
|
+
value: P,
|
|
2253
|
+
itemStyle: h(c.data.data, M)
|
|
2254
|
+
} : k.seriesColor === "value" ? {
|
|
2255
|
+
value: P,
|
|
2256
|
+
itemStyle: {
|
|
2257
|
+
color: P >= 0 ? "#FF0000" : "#00FFFF"
|
|
2258
|
+
}
|
|
2259
|
+
} : {
|
|
2260
|
+
value: P,
|
|
2261
|
+
itemStyle: {
|
|
2262
|
+
color: k.seriesColor
|
|
2263
|
+
}
|
|
2264
|
+
})
|
|
2265
|
+
};
|
|
2266
|
+
if (k.series === "line")
|
|
2267
|
+
return {
|
|
2268
|
+
xAxisIndex: 0,
|
|
2269
|
+
yAxisIndex: k.yAxis === "right" ? 2 : 1,
|
|
2270
|
+
name: k.key,
|
|
2271
|
+
type: "line",
|
|
2272
|
+
silent: !0,
|
|
2273
|
+
symbol: "none",
|
|
2274
|
+
data: k.data,
|
|
2275
|
+
lineStyle: {
|
|
2276
|
+
width: 1
|
|
2277
|
+
},
|
|
2278
|
+
itemStyle: {
|
|
2279
|
+
color: k.color
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
});
|
|
2283
|
+
o.setOption(
|
|
2284
|
+
{
|
|
2285
|
+
animation: !1,
|
|
2286
|
+
grid: {
|
|
2287
|
+
left: `${R.gridLeft}px`,
|
|
2288
|
+
top: "10px",
|
|
2289
|
+
right: `${R.gridRight}px`,
|
|
2290
|
+
bottom: "20px"
|
|
2291
|
+
},
|
|
2292
|
+
dataZoom: [
|
|
2293
|
+
{
|
|
2294
|
+
type: "inside",
|
|
2295
|
+
startValue: p,
|
|
2296
|
+
endValue: S,
|
|
2297
|
+
maxValueSpan: y
|
|
2298
|
+
}
|
|
2299
|
+
],
|
|
2300
|
+
tooltip: {
|
|
2301
|
+
trigger: "axis",
|
|
2302
|
+
appendToBody: !0,
|
|
2303
|
+
confine: !0,
|
|
2304
|
+
axisPointer: {
|
|
2305
|
+
type: "cross",
|
|
2306
|
+
label: {
|
|
2307
|
+
rich: {},
|
|
2308
|
+
formatter: (k) => {
|
|
2309
|
+
const { axisDimension: P, value: M } = k;
|
|
2310
|
+
if (P === "x")
|
|
2311
|
+
return M;
|
|
2312
|
+
if (k.axisIndex === 1)
|
|
2313
|
+
return String(n(M));
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
formatter: () => ""
|
|
2318
|
+
},
|
|
2319
|
+
xAxis: {
|
|
2320
|
+
type: "category",
|
|
2321
|
+
data: c.data.time,
|
|
2322
|
+
axisLine: {
|
|
2323
|
+
show: !0
|
|
2324
|
+
},
|
|
2325
|
+
splitLine: {
|
|
2326
|
+
show: !1
|
|
2327
|
+
},
|
|
2328
|
+
axisLabel: {
|
|
2329
|
+
show: !0,
|
|
2330
|
+
formatter: (k) => k
|
|
2331
|
+
}
|
|
2332
|
+
},
|
|
2333
|
+
yAxis: [
|
|
2334
|
+
{
|
|
2335
|
+
position: "right"
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
position: "left",
|
|
2339
|
+
min: L === "cover" ? (k) => k.min : null,
|
|
2340
|
+
max: L === "cover" ? (k) => k.max : null,
|
|
2341
|
+
splitNumber: 1,
|
|
2342
|
+
axisLine: {
|
|
2343
|
+
show: !0
|
|
2344
|
+
},
|
|
2345
|
+
splitLine: {
|
|
2346
|
+
show: !0,
|
|
2347
|
+
lineStyle: {
|
|
2348
|
+
type: "dotted",
|
|
2349
|
+
color: "#333"
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
position: "right",
|
|
2355
|
+
min: N === "cover" ? (k) => k.min : null,
|
|
2356
|
+
max: N === "cover" ? (k) => k.max : null,
|
|
2357
|
+
splitNumber: 1,
|
|
2358
|
+
axisLine: {
|
|
2359
|
+
show: !1
|
|
2360
|
+
},
|
|
2361
|
+
splitLine: {
|
|
2362
|
+
show: !1
|
|
2363
|
+
},
|
|
2364
|
+
axisLabel: {
|
|
2365
|
+
show: !1
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
],
|
|
2369
|
+
series: A
|
|
2370
|
+
},
|
|
2371
|
+
!0
|
|
2372
|
+
);
|
|
2373
|
+
});
|
|
2374
|
+
}
|
|
2375
|
+
// 重置
|
|
2376
|
+
}), (x, R) => {
|
|
2377
|
+
const p = an, S = cn;
|
|
2378
|
+
return z(), Z("div", rs, [
|
|
2379
|
+
pe("div", ss, [
|
|
2380
|
+
u.value.length ? (z(), Z("div", os, [
|
|
2381
|
+
oe(S, {
|
|
2382
|
+
modelValue: l.value,
|
|
2383
|
+
"onUpdate:modelValue": R[0] || (R[0] = (y) => l.value = y),
|
|
2384
|
+
size: "small",
|
|
2385
|
+
"popper-class": "element-dark",
|
|
2386
|
+
class: "element-dark subIndicator"
|
|
2387
|
+
}, {
|
|
2388
|
+
default: fe(() => [
|
|
2389
|
+
(z(!0), Z(Ze, null, Ge(e.subIndicatorList, (y) => (z(), Ot(p, {
|
|
2390
|
+
key: y.value,
|
|
2391
|
+
label: y.label,
|
|
2392
|
+
value: y.value
|
|
2393
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
2394
|
+
]),
|
|
2395
|
+
_: 1
|
|
2396
|
+
}, 8, ["modelValue"])
|
|
2397
|
+
])) : et("", !0),
|
|
2398
|
+
oe(Xe, { data: u.value }, null, 8, ["data"])
|
|
2399
|
+
]),
|
|
2400
|
+
pe("div", {
|
|
2401
|
+
class: "klineSub-chart",
|
|
2402
|
+
ref_key: "subChartRef",
|
|
2403
|
+
ref: d
|
|
2404
|
+
}, null, 512)
|
|
2405
|
+
]);
|
|
2406
|
+
};
|
|
2407
|
+
}
|
|
2408
|
+
}, as = /* @__PURE__ */ ye(is, [["__scopeId", "data-v-c06321cd"]]), cs = /* @__PURE__ */ Et({
|
|
2409
|
+
__name: "index",
|
|
2410
|
+
emits: ["closeContextMenuCallBack"],
|
|
2411
|
+
setup(e, { emit: t }) {
|
|
2412
|
+
const r = t, n = Q(), o = Q(), s = Q({
|
|
2413
|
+
display: "none",
|
|
2414
|
+
top: "0px",
|
|
2415
|
+
left: "0px"
|
|
2416
|
+
}), i = () => {
|
|
2417
|
+
s.value.display = "none", r("closeContextMenuCallBack"), document.removeEventListener("click", i);
|
|
2418
|
+
}, c = (d) => {
|
|
2419
|
+
if (d.preventDefault(), s.value.display === "block") {
|
|
2420
|
+
const { offsetX: l, offsetY: u } = d, { offsetWidth: h, offsetHeight: x } = o.value;
|
|
2421
|
+
if (l <= h && u <= x)
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
n.value.click(), s.value = {
|
|
2425
|
+
display: "block",
|
|
2426
|
+
top: `${d.offsetY}px`,
|
|
2427
|
+
left: `${d.offsetX}px`
|
|
2428
|
+
}, Tt(() => {
|
|
2429
|
+
const l = n.value.getBoundingClientRect(), u = o.value.getBoundingClientRect();
|
|
2430
|
+
u.left + u.width >= l.right && (s.value.left = `${d.offsetX - u.width}px`), u.top + u.height >= l.bottom && (console.log("高度超出"), s.value.top = `${d.offsetY - u.height}px`);
|
|
2431
|
+
}), document.addEventListener("click", i);
|
|
2432
|
+
};
|
|
2433
|
+
return (d, l) => (z(), Z("div", {
|
|
2434
|
+
ref_key: "contextmenuRef",
|
|
2435
|
+
ref: n,
|
|
2436
|
+
class: "contextmenu",
|
|
2437
|
+
onContextmenu: c,
|
|
2438
|
+
onMouseleave: i
|
|
2439
|
+
}, [
|
|
2440
|
+
at(d.$slots, "default", {}, void 0, !0),
|
|
2441
|
+
s.value.display !== "none" ? (z(), Z("div", {
|
|
2442
|
+
key: 0,
|
|
2443
|
+
ref_key: "contextmenuContentRef",
|
|
2444
|
+
ref: o,
|
|
2445
|
+
class: "contextmenu-popover",
|
|
2446
|
+
style: Qe(s.value)
|
|
2447
|
+
}, [
|
|
2448
|
+
at(d.$slots, "popover", {}, void 0, !0)
|
|
2449
|
+
], 4)) : et("", !0)
|
|
2450
|
+
], 544));
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
const ls = /* @__PURE__ */ ye(cs, [["__scopeId", "data-v-811db6b4"]]);
|
|
2454
|
+
const us = { class: "klineBasic" }, ds = { class: "klineBasic-tips" }, fs = {
|
|
2455
|
+
key: 0,
|
|
2456
|
+
class: "klineBasic-sub"
|
|
2457
|
+
}, ps = {
|
|
2458
|
+
__name: "index",
|
|
2459
|
+
props: {
|
|
2460
|
+
variety: {
|
|
2461
|
+
type: [String, Number],
|
|
2462
|
+
required: !0
|
|
2463
|
+
},
|
|
2464
|
+
// 品种代码
|
|
2465
|
+
varietyName: {
|
|
2466
|
+
type: [String, Number],
|
|
2467
|
+
default: () => ""
|
|
2468
|
+
},
|
|
2469
|
+
// 品种名称
|
|
2470
|
+
featureId: {
|
|
2471
|
+
type: [String, Number],
|
|
2472
|
+
default: () => ""
|
|
2473
|
+
},
|
|
2474
|
+
// 合约id
|
|
2475
|
+
featureType: {
|
|
2476
|
+
type: [String, Number],
|
|
2477
|
+
default: () => ""
|
|
2478
|
+
},
|
|
2479
|
+
// 合约类型
|
|
2480
|
+
cycle: {
|
|
2481
|
+
type: String,
|
|
2482
|
+
required: !0
|
|
2483
|
+
},
|
|
2484
|
+
// 周期id
|
|
2485
|
+
mainIndicator: {
|
|
2486
|
+
type: Object,
|
|
2487
|
+
default: () => ""
|
|
2488
|
+
},
|
|
2489
|
+
// 主图指标名称
|
|
2490
|
+
indicatorStore: {
|
|
2491
|
+
type: Object,
|
|
2492
|
+
default: () => null
|
|
2493
|
+
},
|
|
2494
|
+
// 指标配置Store
|
|
2495
|
+
startTime: {
|
|
2496
|
+
type: String,
|
|
2497
|
+
default: () => null
|
|
2498
|
+
},
|
|
2499
|
+
endTime: {
|
|
2500
|
+
type: String,
|
|
2501
|
+
default: () => null
|
|
2502
|
+
},
|
|
2503
|
+
right: {
|
|
2504
|
+
type: Number,
|
|
2505
|
+
default: 1
|
|
2506
|
+
},
|
|
2507
|
+
// 复权方式,前复权-1,不复权-0
|
|
2508
|
+
config: {
|
|
2509
|
+
type: Object,
|
|
2510
|
+
default: () => ({})
|
|
2511
|
+
}
|
|
2512
|
+
// 配置
|
|
2513
|
+
},
|
|
2514
|
+
emits: ["change", "getFactorData"],
|
|
2515
|
+
setup(e, { expose: t, emit: r }) {
|
|
2516
|
+
const { round: n } = $e;
|
|
2517
|
+
let o = null, s = null, i, c, d = !1, l = !1;
|
|
2518
|
+
const u = r, h = e, x = Q(null), R = Q(null), p = Q("VOL"), S = Q(0), y = Q({}), L = Q([]), N = Q([{ label: "画线预警", key: "drawWarningLine" }]), A = he(() => ({
|
|
2519
|
+
defaultShowCounts: 500,
|
|
2520
|
+
// 默认展示条数
|
|
2521
|
+
addCounts: 2e3,
|
|
2522
|
+
// 滚动加载条数
|
|
2523
|
+
maxShowCounts: 5e3,
|
|
2524
|
+
// 单页最大展示条数
|
|
2525
|
+
loadCheckCounts: 500,
|
|
2526
|
+
// 滚动加载检测的条数
|
|
2527
|
+
showSubChart: !0,
|
|
2528
|
+
// 是否展示副图
|
|
2529
|
+
gridLeft: 80,
|
|
2530
|
+
// 主图左侧距离
|
|
2531
|
+
gridRight: 50,
|
|
2532
|
+
// 主图右侧距离
|
|
2533
|
+
showWarningLine: !0,
|
|
2534
|
+
// 是否展示预警线
|
|
2535
|
+
getFactorData: !0,
|
|
2536
|
+
// 是否获取因子数据
|
|
2537
|
+
...h.config
|
|
2538
|
+
}));
|
|
2539
|
+
nn(
|
|
2540
|
+
() => [
|
|
2541
|
+
h.variety,
|
|
2542
|
+
h.cycle,
|
|
2543
|
+
h.mainIndicator,
|
|
2544
|
+
p.value,
|
|
2545
|
+
indicatorStore.filterIndicator,
|
|
2546
|
+
indicatorStore.customIndicator
|
|
2547
|
+
],
|
|
2548
|
+
() => {
|
|
2549
|
+
M();
|
|
2550
|
+
},
|
|
2551
|
+
{ deep: !0 }
|
|
2552
|
+
), vt(() => {
|
|
2553
|
+
M();
|
|
2554
|
+
}), Rt(() => {
|
|
2555
|
+
s == null || s.off("datazoom"), s == null || s.off("highlight"), s == null || s.off("globalout"), s == null || s.dispose(), o == null || o.dispose();
|
|
2556
|
+
});
|
|
2557
|
+
const k = () => {
|
|
2558
|
+
s || (s = He.init(x.value), P(), A.value.showSubChart && R.value.connect(s), o = on(x.value), o.listen(() => {
|
|
2559
|
+
requestAnimationFrame(() => {
|
|
2560
|
+
s.resize();
|
|
2561
|
+
});
|
|
2562
|
+
}));
|
|
2563
|
+
}, P = () => {
|
|
2564
|
+
s == null || s.on("datazoom", (v) => {
|
|
2565
|
+
clearTimeout(c), c = setTimeout(() => {
|
|
2566
|
+
var B, w, b, f;
|
|
2567
|
+
const { loadCheckCounts: F } = A.value;
|
|
2568
|
+
if ((w = (B = s == null ? void 0 : s.getOption()) == null ? void 0 : B.dataZoom) != null && w[0]) {
|
|
2569
|
+
const { startValue: g } = (f = (b = s == null ? void 0 : s.getOption()) == null ? void 0 : b.dataZoom) == null ? void 0 : f[0];
|
|
2570
|
+
g < F && d === !1 && l === !1 && (d = !0, Y("history")), K();
|
|
2571
|
+
}
|
|
2572
|
+
clearTimeout(c);
|
|
2573
|
+
}, 100);
|
|
2574
|
+
}), s == null || s.on("highlight", (v) => {
|
|
2575
|
+
var B, w;
|
|
2576
|
+
let F = v.dataIndex || -1;
|
|
2577
|
+
v.batch && (F = typeof ((B = v == null ? void 0 : v.batch[0]) == null ? void 0 : B.dataIndex) == "number" ? (w = v == null ? void 0 : v.batch[0]) == null ? void 0 : w.dataIndex : -1), clearTimeout(i), i = setTimeout(() => {
|
|
2578
|
+
S.value = F, clearTimeout(i);
|
|
2579
|
+
}, 20);
|
|
2580
|
+
}), s == null || s.on("globalout", () => {
|
|
2581
|
+
var F, B, w;
|
|
2582
|
+
const v = (w = (B = (F = s == null ? void 0 : s.getOption()) == null ? void 0 : F.dataZoom) == null ? void 0 : B[0]) == null ? void 0 : w.endValue;
|
|
2583
|
+
S.value = v;
|
|
2584
|
+
});
|
|
2585
|
+
}, M = async () => {
|
|
2586
|
+
var j, q, X, ne;
|
|
2587
|
+
if (!h.variety || !h.cycle)
|
|
2588
|
+
return;
|
|
2589
|
+
const {
|
|
2590
|
+
variety: v,
|
|
2591
|
+
featureId: F,
|
|
2592
|
+
cycle: B,
|
|
2593
|
+
indicatorStore: w,
|
|
2594
|
+
mainIndicator: b,
|
|
2595
|
+
right: f,
|
|
2596
|
+
startTime: g,
|
|
2597
|
+
endTime: m
|
|
2598
|
+
} = h, { defaultShowCounts: _, addCounts: E, showWarningLine: $, getFactorData: C } = A.value, D = {
|
|
2599
|
+
variety: v,
|
|
2600
|
+
featureId: F,
|
|
2601
|
+
cycle: B,
|
|
2602
|
+
mainIndicatorList: w.getIndicatorParams(b),
|
|
2603
|
+
subIndicator: p.value,
|
|
2604
|
+
right: f,
|
|
2605
|
+
showWarningLine: $,
|
|
2606
|
+
getFactorData: C
|
|
2607
|
+
};
|
|
2608
|
+
g && m ? (D.startTime = g, D.endTime = m) : g ? (D.startTime = g, D.limit = _ + E) : m ? (D.endTime = m, D.limit = _ + E) : (D.endTime = fn().format("YYYY-MM-DD HH:mm:ss"), D.limit = _ + E);
|
|
2609
|
+
const T = await Wr(D);
|
|
2610
|
+
y.value = (j = T == null ? void 0 : T.body) == null ? void 0 : j.kline, L.value = ((q = T == null ? void 0 : T.body) == null ? void 0 : q.warningLine) || [], G(), K(), C && u("getFactorData", (ne = (X = T == null ? void 0 : T.body) == null ? void 0 : X.factorData) == null ? void 0 : ne.filter((W) => W.freqId === B));
|
|
2611
|
+
}, Y = async (v) => {
|
|
2612
|
+
const { variety: F, cycle: B, indicatorStore: w, mainIndicator: b, right: f } = h, { addCounts: g } = A.value, { time: m } = y.value;
|
|
2613
|
+
if (v === "history") {
|
|
2614
|
+
const _ = await Jr({
|
|
2615
|
+
variety: F,
|
|
2616
|
+
cycle: B,
|
|
2617
|
+
endTime: m[0],
|
|
2618
|
+
limit: g,
|
|
2619
|
+
mainIndicatorList: w.getIndicatorParams(b),
|
|
2620
|
+
subIndicator: p.value,
|
|
2621
|
+
right: f
|
|
2622
|
+
});
|
|
2623
|
+
y.value = {
|
|
2624
|
+
time: [..._.body.time, ...y.value.time.slice(1)],
|
|
2625
|
+
data: [..._.body.data, ...y.value.data.slice(1)],
|
|
2626
|
+
mainIndicator: y.value.mainIndicator.map((E, $) => ({
|
|
2627
|
+
...E,
|
|
2628
|
+
data: [..._.body.mainIndicator[$].data, ...E.data.slice(1)]
|
|
2629
|
+
})),
|
|
2630
|
+
subIndicator: y.value.subIndicator.map((E, $) => ({
|
|
2631
|
+
...E,
|
|
2632
|
+
data: [..._.body.subIndicator[$].data, ...E.data.slice(1)]
|
|
2633
|
+
}))
|
|
2634
|
+
}, G(!0), _.body.data.length < g && (l = !0), d = !1;
|
|
2635
|
+
}
|
|
2636
|
+
}, G = (v = !1) => {
|
|
2637
|
+
var $, C, D;
|
|
2638
|
+
k();
|
|
2639
|
+
const { data: F, time: B } = y.value, { gridRight: w, gridLeft: b, defaultShowCounts: f, maxShowCounts: g, showSubChart: m } = A.value;
|
|
2640
|
+
let _ = F.length - 1 - f, E = F.length - 1;
|
|
2641
|
+
if (v) {
|
|
2642
|
+
const T = s.getOption(), j = (C = ($ = T == null ? void 0 : T.xAxis) == null ? void 0 : $[0]) == null ? void 0 : C.data, q = (D = T == null ? void 0 : T.dataZoom) == null ? void 0 : D[0], X = j[q == null ? void 0 : q.startValue], ne = j[q == null ? void 0 : q.endValue];
|
|
2643
|
+
_ = B.findIndex((W) => W === X), E = B.findIndex((W) => W === ne);
|
|
2644
|
+
}
|
|
2645
|
+
s.setOption({
|
|
2646
|
+
animation: !1,
|
|
2647
|
+
grid: {
|
|
2648
|
+
top: "48px",
|
|
2649
|
+
right: `${w}px`,
|
|
2650
|
+
bottom: m ? "6px" : "24px",
|
|
2651
|
+
left: `${b}px`
|
|
2652
|
+
},
|
|
2653
|
+
dataZoom: [
|
|
2654
|
+
{
|
|
2655
|
+
type: "inside",
|
|
2656
|
+
startValue: _,
|
|
2657
|
+
endValue: E,
|
|
2658
|
+
maxValueSpan: g
|
|
2659
|
+
}
|
|
2660
|
+
],
|
|
2661
|
+
tooltip: {
|
|
2662
|
+
trigger: "axis",
|
|
2663
|
+
appendToBody: !0,
|
|
2664
|
+
confine: !0,
|
|
2665
|
+
axisPointer: {
|
|
2666
|
+
type: "cross",
|
|
2667
|
+
label: {
|
|
2668
|
+
rich: {},
|
|
2669
|
+
formatter: (T) => {
|
|
2670
|
+
const { axisDimension: j, value: q } = T;
|
|
2671
|
+
return j === "x" ? m ? "" : q : String(n(q));
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
formatter: () => ""
|
|
2676
|
+
},
|
|
2677
|
+
xAxis: {
|
|
2678
|
+
show: !m,
|
|
2679
|
+
type: "category",
|
|
2680
|
+
data: B,
|
|
2681
|
+
splitLine: {
|
|
2682
|
+
show: !1
|
|
2683
|
+
}
|
|
2684
|
+
},
|
|
2685
|
+
yAxis: {
|
|
2686
|
+
type: "value",
|
|
2687
|
+
axisLine: {
|
|
2688
|
+
show: !0
|
|
2689
|
+
},
|
|
2690
|
+
splitLine: {
|
|
2691
|
+
show: !0,
|
|
2692
|
+
lineStyle: {
|
|
2693
|
+
type: "dotted",
|
|
2694
|
+
color: "#333"
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
min: (T) => n(T.min),
|
|
2698
|
+
max: (T) => n(T.max)
|
|
2699
|
+
},
|
|
2700
|
+
series: [
|
|
2701
|
+
{
|
|
2702
|
+
type: "candlestick",
|
|
2703
|
+
data: F,
|
|
2704
|
+
itemStyle: {
|
|
2705
|
+
color: "transparent",
|
|
2706
|
+
color0: "#00FFFF",
|
|
2707
|
+
borderColor: "#FF0000",
|
|
2708
|
+
borderColor0: "#00FFFF",
|
|
2709
|
+
borderWidth: 1
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
...y.value.mainIndicator.map((T) => ({
|
|
2713
|
+
name: T.key,
|
|
2714
|
+
type: "line",
|
|
2715
|
+
silent: !0,
|
|
2716
|
+
symbol: "none",
|
|
2717
|
+
data: T.data,
|
|
2718
|
+
lineStyle: {
|
|
2719
|
+
width: T.width || 1
|
|
2720
|
+
},
|
|
2721
|
+
itemStyle: {
|
|
2722
|
+
color: T.color
|
|
2723
|
+
}
|
|
2724
|
+
}))
|
|
2725
|
+
]
|
|
2726
|
+
}, !0), S.value = E, m && R.value.draw(
|
|
2727
|
+
{ startValue: _, endValue: E, maxValueSpan: g },
|
|
2728
|
+
{ gridLeft: b, gridRight: w }
|
|
2729
|
+
);
|
|
2730
|
+
}, K = () => {
|
|
2731
|
+
if (!s)
|
|
2732
|
+
return;
|
|
2733
|
+
const v = s == null ? void 0 : s.getOption();
|
|
2734
|
+
v && (s == null || s.setOption(
|
|
2735
|
+
{
|
|
2736
|
+
...v,
|
|
2737
|
+
graphic: [
|
|
2738
|
+
...Zr(s, L.value, h, A.value, (F) => {
|
|
2739
|
+
L.value = F, K(), u("change", "warningLine", F);
|
|
2740
|
+
})
|
|
2741
|
+
]
|
|
2742
|
+
},
|
|
2743
|
+
!0
|
|
2744
|
+
));
|
|
2745
|
+
}, U = (v) => {
|
|
2746
|
+
const { variety: F, varietyName: B, featureId: w, featureType: b } = h;
|
|
2747
|
+
if (v.key === "drawWarningLine") {
|
|
2748
|
+
const f = s == null ? void 0 : s.getOption(), g = f.tooltip[0];
|
|
2749
|
+
s == null || s.setOption({
|
|
2750
|
+
...f,
|
|
2751
|
+
// 指示器样式
|
|
2752
|
+
tooltip: {
|
|
2753
|
+
...g,
|
|
2754
|
+
// 坐标轴指示器
|
|
2755
|
+
axisPointer: {
|
|
2756
|
+
// 保留原有部分配置
|
|
2757
|
+
...g.axisPointer,
|
|
2758
|
+
// X轴指示线的宽度
|
|
2759
|
+
lineStyle: {
|
|
2760
|
+
width: 0
|
|
2761
|
+
},
|
|
2762
|
+
// Y轴指示线的宽度
|
|
2763
|
+
crossStyle: {
|
|
2764
|
+
width: 2
|
|
2765
|
+
},
|
|
2766
|
+
// 文本标签
|
|
2767
|
+
label: {
|
|
2768
|
+
// 保留原有部分配置
|
|
2769
|
+
...g.axisPointer.label,
|
|
2770
|
+
// 颜色改为透明
|
|
2771
|
+
backgroundColor: "transparent",
|
|
2772
|
+
// 仅显示Y轴值
|
|
2773
|
+
formatter: (_) => ""
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
});
|
|
2778
|
+
const m = async (_) => {
|
|
2779
|
+
s == null || s.getZr().off("mousedown", m);
|
|
2780
|
+
const E = s == null ? void 0 : s.convertFromPixel({ yAxisIndex: 0 }, _.offsetY), $ = Math.round(E * 1e3) / 1e3;
|
|
2781
|
+
s == null || s.setOption({
|
|
2782
|
+
...f,
|
|
2783
|
+
// 指示器样式
|
|
2784
|
+
tooltip: {
|
|
2785
|
+
...g,
|
|
2786
|
+
axisPointer: {
|
|
2787
|
+
...g.axisPointer,
|
|
2788
|
+
lineStyle: {
|
|
2789
|
+
width: 1
|
|
2790
|
+
},
|
|
2791
|
+
crossStyle: {
|
|
2792
|
+
width: 1
|
|
2793
|
+
},
|
|
2794
|
+
label: {
|
|
2795
|
+
...g.axisPointer.label,
|
|
2796
|
+
backgroundColor: null
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
}), await Yr({
|
|
2801
|
+
featureCode: F,
|
|
2802
|
+
//品种代码
|
|
2803
|
+
featureName: B,
|
|
2804
|
+
//品种名称
|
|
2805
|
+
featureId: w,
|
|
2806
|
+
//品种id
|
|
2807
|
+
featureType: b,
|
|
2808
|
+
//品种类型
|
|
2809
|
+
warnPrice: $
|
|
2810
|
+
}), At.success("画线预警成功!");
|
|
2811
|
+
};
|
|
2812
|
+
s == null || s.getZr().on("mousedown", m);
|
|
2813
|
+
}
|
|
2814
|
+
};
|
|
2815
|
+
return t({
|
|
2816
|
+
draw(v, F) {
|
|
2817
|
+
v === "warningLine" && (L.value = F, K());
|
|
2818
|
+
}
|
|
2819
|
+
}), (v, F) => {
|
|
2820
|
+
var b;
|
|
2821
|
+
const B = en, w = tn;
|
|
2822
|
+
return z(), Z("div", us, [
|
|
2823
|
+
pe("div", ds, [
|
|
2824
|
+
oe(ns, {
|
|
2825
|
+
data: y.value,
|
|
2826
|
+
activeIndex: S.value
|
|
2827
|
+
}, null, 8, ["data", "activeIndex"])
|
|
2828
|
+
]),
|
|
2829
|
+
pe("div", {
|
|
2830
|
+
class: "klineBasic-main",
|
|
2831
|
+
style: Qe({ height: A.value.showSubChart ? "70%" : "100%" })
|
|
2832
|
+
}, [
|
|
2833
|
+
oe(ls, null, {
|
|
2834
|
+
popover: fe(() => [
|
|
2835
|
+
oe(w, { style: {
|
|
2836
|
+
borderRadius: "4px",
|
|
2837
|
+
overflow: "hidden",
|
|
2838
|
+
background: "#fff",
|
|
2839
|
+
borderRight: 0
|
|
2840
|
+
} }, {
|
|
2841
|
+
default: fe(() => [
|
|
2842
|
+
(z(!0), Z(Ze, null, Ge(N.value, (f) => (z(), Ot(B, {
|
|
2843
|
+
style: { height: "36px" },
|
|
2844
|
+
key: f.key,
|
|
2845
|
+
index: f.key,
|
|
2846
|
+
onClick: (g) => U(f)
|
|
2847
|
+
}, {
|
|
2848
|
+
default: fe(() => [
|
|
2849
|
+
rn(qe(f.label), 1)
|
|
2850
|
+
]),
|
|
2851
|
+
_: 2
|
|
2852
|
+
}, 1032, ["index", "onClick"]))), 128))
|
|
2853
|
+
]),
|
|
2854
|
+
_: 1
|
|
2855
|
+
})
|
|
2856
|
+
]),
|
|
2857
|
+
default: fe(() => [
|
|
2858
|
+
pe("div", {
|
|
2859
|
+
ref_key: "klineBasicMainRef",
|
|
2860
|
+
ref: x,
|
|
2861
|
+
style: { height: "100%" }
|
|
2862
|
+
}, null, 512)
|
|
2863
|
+
]),
|
|
2864
|
+
_: 1
|
|
2865
|
+
})
|
|
2866
|
+
], 4),
|
|
2867
|
+
A.value.showSubChart ? (z(), Z("div", fs, [
|
|
2868
|
+
oe(as, {
|
|
2869
|
+
ref_key: "klineSubRef",
|
|
2870
|
+
ref: R,
|
|
2871
|
+
modelValue: p.value,
|
|
2872
|
+
"onUpdate:modelValue": F[0] || (F[0] = (f) => p.value = f),
|
|
2873
|
+
data: y.value,
|
|
2874
|
+
activeIndex: S.value,
|
|
2875
|
+
subIndicatorList: (b = e.indicatorStore) == null ? void 0 : b.subIndicatorList
|
|
2876
|
+
}, null, 8, ["modelValue", "data", "activeIndex", "subIndicatorList"])
|
|
2877
|
+
])) : et("", !0)
|
|
2878
|
+
]);
|
|
2879
|
+
};
|
|
2880
|
+
}
|
|
2881
|
+
}, hs = /* @__PURE__ */ ye(ps, [["__scopeId", "data-v-37522fe0"]]), Bs = {
|
|
2882
|
+
install(e) {
|
|
2883
|
+
e.component("st-klineBasic", hs);
|
|
2884
|
+
}
|
|
2885
|
+
};
|
|
2886
|
+
export {
|
|
2887
|
+
Bs as default
|
|
2888
|
+
};
|