@363045841yyt/klinechart 0.5.2 → 0.5.4
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/README.md +2 -2
- package/dist/index.cjs +9 -9
- package/dist/index.js +748 -719
- package/dist/klinechart.css +1 -1
- package/dist/src/components/KLineChart.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, markRaw as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onMounted as h, onUnmounted as g, openBlock as _, reactive as v, ref as y, renderList as b, resolveDynamicComponent as x, shallowRef as S, toDisplayString as C, unref as w, watch as T, withCtx as E, withModifiers as D } from "vue";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, M = Object.getPrototypeOf, N = Object.prototype.hasOwnProperty, ee = (e, t) => () => (e && (t = e(e = 0)), t), P = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports),
|
|
3
|
+
var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescriptor, j = Object.getOwnPropertyNames, M = Object.getPrototypeOf, N = Object.prototype.hasOwnProperty, ee = (e, t) => () => (e && (t = e(e = 0)), t), P = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), te = (e, t) => {
|
|
4
4
|
let n = {};
|
|
5
5
|
for (var r in e) k(n, r, {
|
|
6
6
|
get: e[r],
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
9
|
return t || k(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
-
},
|
|
10
|
+
}, F = (e, t, n, r) => {
|
|
11
11
|
if (t && typeof t == "object" || typeof t == "function") for (var i = j(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !N.call(e, s) && s !== n && k(e, s, {
|
|
12
12
|
get: ((e) => t[e]).bind(null, s),
|
|
13
13
|
enumerable: !(r = A(t, s)) || r.enumerable
|
|
14
14
|
});
|
|
15
15
|
return e;
|
|
16
|
-
}, ne = (e, t, n) => (n = e == null ? {} : O(M(e)),
|
|
16
|
+
}, ne = (e, t, n) => (n = e == null ? {} : O(M(e)), F(t || !e || !e.__esModule ? k(n, "default", {
|
|
17
17
|
value: e,
|
|
18
18
|
enumerable: !0
|
|
19
|
-
}) : n, e)), re = (e) => N.call(e, "module.exports") ? e["module.exports"] :
|
|
19
|
+
}) : n, e)), re = (e) => N.call(e, "module.exports") ? e["module.exports"] : F(k({}, "__esModule", { value: !0 }), e), I = class {
|
|
20
20
|
listeners = /* @__PURE__ */ new Map();
|
|
21
21
|
on(e, t) {
|
|
22
22
|
this.listeners.has(e) || this.listeners.set(e, /* @__PURE__ */ new Set()), this.listeners.get(e).add(t);
|
|
@@ -50,84 +50,84 @@ var O = Object.create, k = Object.defineProperty, A = Object.getOwnPropertyDescr
|
|
|
50
50
|
};
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/helpers/bind.js
|
|
53
|
-
function
|
|
53
|
+
function ie(e, t) {
|
|
54
54
|
return function() {
|
|
55
55
|
return e.apply(t, arguments);
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/utils.js
|
|
60
|
-
var { toString:
|
|
61
|
-
let n =
|
|
60
|
+
var { toString: ae } = Object.prototype, { getPrototypeOf: oe } = Object, { iterator: se, toStringTag: L } = Symbol, R = ((e) => (t) => {
|
|
61
|
+
let n = ae.call(t);
|
|
62
62
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
63
|
-
})(Object.create(null)),
|
|
64
|
-
function
|
|
65
|
-
return e !== null && !
|
|
63
|
+
})(Object.create(null)), z = (e) => (e = e.toLowerCase(), (t) => R(t) === e), ce = (e) => (t) => typeof t === e, { isArray: le } = Array, ue = ce("undefined");
|
|
64
|
+
function de(e) {
|
|
65
|
+
return e !== null && !ue(e) && e.constructor !== null && !ue(e.constructor) && B(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
67
|
+
var fe = z("ArrayBuffer");
|
|
68
|
+
function pe(e) {
|
|
69
69
|
let t;
|
|
70
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer &&
|
|
71
|
-
}
|
|
72
|
-
var
|
|
73
|
-
if (
|
|
74
|
-
let t =
|
|
75
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(
|
|
76
|
-
},
|
|
77
|
-
if (!
|
|
70
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && fe(e.buffer), t;
|
|
71
|
+
}
|
|
72
|
+
var me = ce("string"), B = ce("function"), he = ce("number"), ge = (e) => typeof e == "object" && !!e, _e = (e) => e === !0 || e === !1, ve = (e) => {
|
|
73
|
+
if (R(e) !== "object") return !1;
|
|
74
|
+
let t = oe(e);
|
|
75
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(L in e) && !(se in e);
|
|
76
|
+
}, ye = (e) => {
|
|
77
|
+
if (!ge(e) || de(e)) return !1;
|
|
78
78
|
try {
|
|
79
79
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
80
80
|
} catch {
|
|
81
81
|
return !1;
|
|
82
82
|
}
|
|
83
|
-
},
|
|
84
|
-
function
|
|
83
|
+
}, be = z("Date"), xe = z("File"), Se = (e) => !!(e && e.uri !== void 0), Ce = (e) => e && e.getParts !== void 0, we = z("Blob"), Te = z("FileList"), Ee = (e) => ge(e) && B(e.pipe);
|
|
84
|
+
function De() {
|
|
85
85
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
86
86
|
}
|
|
87
|
-
var
|
|
87
|
+
var Oe = De(), ke = Oe.FormData === void 0 ? void 0 : Oe.FormData, Ae = (e) => {
|
|
88
88
|
if (!e) return !1;
|
|
89
|
-
if (
|
|
90
|
-
let t =
|
|
91
|
-
if (!t || t === Object.prototype || !
|
|
92
|
-
let n =
|
|
93
|
-
return n === "formdata" || n === "object" &&
|
|
94
|
-
},
|
|
89
|
+
if (ke && e instanceof ke) return !0;
|
|
90
|
+
let t = oe(e);
|
|
91
|
+
if (!t || t === Object.prototype || !B(e.append)) return !1;
|
|
92
|
+
let n = R(e);
|
|
93
|
+
return n === "formdata" || n === "object" && B(e.toString) && e.toString() === "[object FormData]";
|
|
94
|
+
}, je = z("URLSearchParams"), [Me, Ne, Pe, Fe] = [
|
|
95
95
|
"ReadableStream",
|
|
96
96
|
"Request",
|
|
97
97
|
"Response",
|
|
98
98
|
"Headers"
|
|
99
|
-
].map(
|
|
100
|
-
function
|
|
99
|
+
].map(z), Ie = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
100
|
+
function Le(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
101
101
|
if (e == null) return;
|
|
102
102
|
let r, i;
|
|
103
|
-
if (typeof e != "object" && (e = [e]),
|
|
103
|
+
if (typeof e != "object" && (e = [e]), le(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
104
104
|
else {
|
|
105
|
-
if (
|
|
105
|
+
if (de(e)) return;
|
|
106
106
|
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
107
107
|
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
110
|
+
function Re(e, t) {
|
|
111
|
+
if (de(e)) return null;
|
|
112
112
|
t = t.toLowerCase();
|
|
113
113
|
let n = Object.keys(e), r = n.length, i;
|
|
114
114
|
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
115
115
|
return null;
|
|
116
116
|
}
|
|
117
|
-
var
|
|
118
|
-
function
|
|
119
|
-
let { caseless: t, skipUndefined: n } =
|
|
117
|
+
var ze = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Be = (e) => !ue(e) && e !== ze;
|
|
118
|
+
function V(...e) {
|
|
119
|
+
let { caseless: t, skipUndefined: n } = Be(this) && this || {}, r = {}, i = (e, i) => {
|
|
120
120
|
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
121
|
-
let a = t &&
|
|
122
|
-
|
|
121
|
+
let a = t && Re(r, i) || i, o = Ze(r, a) ? r[a] : void 0;
|
|
122
|
+
ve(o) && ve(e) ? r[a] = V(o, e) : ve(e) ? r[a] = V({}, e) : le(e) ? r[a] = e.slice() : (!n || !ue(e)) && (r[a] = e);
|
|
123
123
|
};
|
|
124
|
-
for (let t = 0, n = e.length; t < n; t++) e[t] &&
|
|
124
|
+
for (let t = 0, n = e.length; t < n; t++) e[t] && Le(e[t], i);
|
|
125
125
|
return r;
|
|
126
126
|
}
|
|
127
|
-
var
|
|
128
|
-
n &&
|
|
127
|
+
var Ve = (e, t, n, { allOwnKeys: r } = {}) => (Le(t, (t, r) => {
|
|
128
|
+
n && B(t) ? Object.defineProperty(e, r, {
|
|
129
129
|
__proto__: null,
|
|
130
|
-
value:
|
|
130
|
+
value: ie(t, n),
|
|
131
131
|
writable: !0,
|
|
132
132
|
enumerable: !0,
|
|
133
133
|
configurable: !0
|
|
@@ -138,7 +138,7 @@ var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
|
|
|
138
138
|
enumerable: !0,
|
|
139
139
|
configurable: !0
|
|
140
140
|
});
|
|
141
|
-
}, { allOwnKeys: r }), e),
|
|
141
|
+
}, { allOwnKeys: r }), e), H = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), He = (e, t, n, r) => {
|
|
142
142
|
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
143
143
|
__proto__: null,
|
|
144
144
|
value: e,
|
|
@@ -149,53 +149,53 @@ var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
|
|
|
149
149
|
__proto__: null,
|
|
150
150
|
value: t.prototype
|
|
151
151
|
}), n && Object.assign(e.prototype, n);
|
|
152
|
-
},
|
|
152
|
+
}, Ue = (e, t, n, r) => {
|
|
153
153
|
let i, a, o, s = {};
|
|
154
154
|
if (t ||= {}, e == null) return t;
|
|
155
155
|
do {
|
|
156
156
|
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
|
157
|
-
e = n !== !1 &&
|
|
157
|
+
e = n !== !1 && oe(e);
|
|
158
158
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
159
159
|
return t;
|
|
160
|
-
},
|
|
160
|
+
}, We = (e, t, n) => {
|
|
161
161
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
162
162
|
let r = e.indexOf(t, n);
|
|
163
163
|
return r !== -1 && r === n;
|
|
164
|
-
},
|
|
164
|
+
}, Ge = (e) => {
|
|
165
165
|
if (!e) return null;
|
|
166
|
-
if (
|
|
166
|
+
if (le(e)) return e;
|
|
167
167
|
let t = e.length;
|
|
168
|
-
if (!
|
|
168
|
+
if (!he(t)) return null;
|
|
169
169
|
let n = Array(t);
|
|
170
170
|
for (; t-- > 0;) n[t] = e[t];
|
|
171
171
|
return n;
|
|
172
|
-
},
|
|
173
|
-
let n = (e && e[
|
|
172
|
+
}, Ke = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && oe(Uint8Array)), qe = (e, t) => {
|
|
173
|
+
let n = (e && e[se]).call(e), r;
|
|
174
174
|
for (; (r = n.next()) && !r.done;) {
|
|
175
175
|
let n = r.value;
|
|
176
176
|
t.call(e, n[0], n[1]);
|
|
177
177
|
}
|
|
178
|
-
},
|
|
178
|
+
}, Je = (e, t) => {
|
|
179
179
|
let n, r = [];
|
|
180
180
|
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
181
181
|
return r;
|
|
182
|
-
},
|
|
182
|
+
}, Ye = z("HTMLFormElement"), Xe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
183
183
|
return t.toUpperCase() + n;
|
|
184
|
-
}),
|
|
184
|
+
}), Ze = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Qe = z("RegExp"), $e = (e, t) => {
|
|
185
185
|
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
186
|
-
|
|
186
|
+
Le(n, (n, i) => {
|
|
187
187
|
let a;
|
|
188
188
|
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
189
189
|
}), Object.defineProperties(e, r);
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
if (
|
|
190
|
+
}, et = (e) => {
|
|
191
|
+
$e(e, (t, n) => {
|
|
192
|
+
if (B(e) && [
|
|
193
193
|
"arguments",
|
|
194
194
|
"caller",
|
|
195
195
|
"callee"
|
|
196
196
|
].includes(n)) return !1;
|
|
197
197
|
let r = e[n];
|
|
198
|
-
if (
|
|
198
|
+
if (B(r)) {
|
|
199
199
|
if (t.enumerable = !1, "writable" in t) {
|
|
200
200
|
t.writable = !1;
|
|
201
201
|
return;
|
|
@@ -205,99 +205,99 @@ var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
|
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
|
-
},
|
|
208
|
+
}, tt = (e, t) => {
|
|
209
209
|
let n = {}, r = (e) => {
|
|
210
210
|
e.forEach((e) => {
|
|
211
211
|
n[e] = !0;
|
|
212
212
|
});
|
|
213
213
|
};
|
|
214
|
-
return
|
|
215
|
-
},
|
|
216
|
-
function
|
|
217
|
-
return !!(e &&
|
|
214
|
+
return le(e) ? r(e) : r(String(e).split(t)), n;
|
|
215
|
+
}, nt = () => {}, rt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
216
|
+
function it(e) {
|
|
217
|
+
return !!(e && B(e.append) && e[L] === "FormData" && e[se]);
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var at = (e) => {
|
|
220
220
|
let t = Array(10), n = (e, r) => {
|
|
221
|
-
if (
|
|
221
|
+
if (ge(e)) {
|
|
222
222
|
if (t.indexOf(e) >= 0) return;
|
|
223
|
-
if (
|
|
223
|
+
if (de(e)) return e;
|
|
224
224
|
if (!("toJSON" in e)) {
|
|
225
225
|
t[r] = e;
|
|
226
|
-
let i =
|
|
227
|
-
return
|
|
226
|
+
let i = le(e) ? [] : {};
|
|
227
|
+
return Le(e, (e, t) => {
|
|
228
228
|
let a = n(e, r + 1);
|
|
229
|
-
!
|
|
229
|
+
!ue(a) && (i[t] = a);
|
|
230
230
|
}), t[r] = void 0, i;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
return e;
|
|
234
234
|
};
|
|
235
235
|
return n(e, 0);
|
|
236
|
-
},
|
|
237
|
-
n ===
|
|
236
|
+
}, ot = z("AsyncFunction"), st = (e) => e && (ge(e) || B(e)) && B(e.then) && B(e.catch), ct = ((e, t) => e ? setImmediate : t ? ((e, t) => (ze.addEventListener("message", ({ source: n, data: r }) => {
|
|
237
|
+
n === ze && r === e && t.length && t.shift()();
|
|
238
238
|
}, !1), (n) => {
|
|
239
|
-
t.push(n),
|
|
240
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function",
|
|
241
|
-
isArray:
|
|
242
|
-
isArrayBuffer:
|
|
243
|
-
isBuffer:
|
|
244
|
-
isFormData:
|
|
245
|
-
isArrayBufferView:
|
|
246
|
-
isString:
|
|
247
|
-
isNumber:
|
|
248
|
-
isBoolean:
|
|
249
|
-
isObject:
|
|
250
|
-
isPlainObject:
|
|
251
|
-
isEmptyObject:
|
|
252
|
-
isReadableStream:
|
|
253
|
-
isRequest:
|
|
254
|
-
isResponse:
|
|
255
|
-
isHeaders:
|
|
256
|
-
isUndefined:
|
|
257
|
-
isDate:
|
|
258
|
-
isFile:
|
|
259
|
-
isReactNativeBlob:
|
|
260
|
-
isReactNative:
|
|
261
|
-
isBlob:
|
|
262
|
-
isRegExp:
|
|
263
|
-
isFunction:
|
|
264
|
-
isStream:
|
|
265
|
-
isURLSearchParams:
|
|
266
|
-
isTypedArray:
|
|
267
|
-
isFileList:
|
|
268
|
-
forEach:
|
|
269
|
-
merge:
|
|
270
|
-
extend:
|
|
271
|
-
trim:
|
|
272
|
-
stripBOM:
|
|
273
|
-
inherits:
|
|
274
|
-
toFlatObject:
|
|
275
|
-
kindOf:
|
|
276
|
-
kindOfTest:
|
|
277
|
-
endsWith:
|
|
278
|
-
toArray:
|
|
279
|
-
forEachEntry:
|
|
280
|
-
matchAll:
|
|
281
|
-
isHTMLForm:
|
|
282
|
-
hasOwnProperty:
|
|
283
|
-
hasOwnProp:
|
|
284
|
-
reduceDescriptors:
|
|
285
|
-
freezeMethods:
|
|
286
|
-
toObjectSet:
|
|
287
|
-
toCamelCase:
|
|
288
|
-
noop:
|
|
289
|
-
toFiniteNumber:
|
|
290
|
-
findKey:
|
|
291
|
-
global:
|
|
292
|
-
isContextDefined:
|
|
293
|
-
isSpecCompliantForm:
|
|
294
|
-
toJSONObject:
|
|
295
|
-
isAsyncFn:
|
|
296
|
-
isThenable:
|
|
297
|
-
setImmediate:
|
|
298
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
299
|
-
isIterable: (e) => e != null &&
|
|
300
|
-
},
|
|
239
|
+
t.push(n), ze.postMessage(e, "*");
|
|
240
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", B(ze.postMessage)), U = {
|
|
241
|
+
isArray: le,
|
|
242
|
+
isArrayBuffer: fe,
|
|
243
|
+
isBuffer: de,
|
|
244
|
+
isFormData: Ae,
|
|
245
|
+
isArrayBufferView: pe,
|
|
246
|
+
isString: me,
|
|
247
|
+
isNumber: he,
|
|
248
|
+
isBoolean: _e,
|
|
249
|
+
isObject: ge,
|
|
250
|
+
isPlainObject: ve,
|
|
251
|
+
isEmptyObject: ye,
|
|
252
|
+
isReadableStream: Me,
|
|
253
|
+
isRequest: Ne,
|
|
254
|
+
isResponse: Pe,
|
|
255
|
+
isHeaders: Fe,
|
|
256
|
+
isUndefined: ue,
|
|
257
|
+
isDate: be,
|
|
258
|
+
isFile: xe,
|
|
259
|
+
isReactNativeBlob: Se,
|
|
260
|
+
isReactNative: Ce,
|
|
261
|
+
isBlob: we,
|
|
262
|
+
isRegExp: Qe,
|
|
263
|
+
isFunction: B,
|
|
264
|
+
isStream: Ee,
|
|
265
|
+
isURLSearchParams: je,
|
|
266
|
+
isTypedArray: Ke,
|
|
267
|
+
isFileList: Te,
|
|
268
|
+
forEach: Le,
|
|
269
|
+
merge: V,
|
|
270
|
+
extend: Ve,
|
|
271
|
+
trim: Ie,
|
|
272
|
+
stripBOM: H,
|
|
273
|
+
inherits: He,
|
|
274
|
+
toFlatObject: Ue,
|
|
275
|
+
kindOf: R,
|
|
276
|
+
kindOfTest: z,
|
|
277
|
+
endsWith: We,
|
|
278
|
+
toArray: Ge,
|
|
279
|
+
forEachEntry: qe,
|
|
280
|
+
matchAll: Je,
|
|
281
|
+
isHTMLForm: Ye,
|
|
282
|
+
hasOwnProperty: Ze,
|
|
283
|
+
hasOwnProp: Ze,
|
|
284
|
+
reduceDescriptors: $e,
|
|
285
|
+
freezeMethods: et,
|
|
286
|
+
toObjectSet: tt,
|
|
287
|
+
toCamelCase: Xe,
|
|
288
|
+
noop: nt,
|
|
289
|
+
toFiniteNumber: rt,
|
|
290
|
+
findKey: Re,
|
|
291
|
+
global: ze,
|
|
292
|
+
isContextDefined: Be,
|
|
293
|
+
isSpecCompliantForm: it,
|
|
294
|
+
toJSONObject: at,
|
|
295
|
+
isAsyncFn: ot,
|
|
296
|
+
isThenable: st,
|
|
297
|
+
setImmediate: ct,
|
|
298
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(ze) : typeof process < "u" && process.nextTick || ct,
|
|
299
|
+
isIterable: (e) => e != null && B(e[se])
|
|
300
|
+
}, lt = U.toObjectSet([
|
|
301
301
|
"age",
|
|
302
302
|
"authorization",
|
|
303
303
|
"content-length",
|
|
@@ -315,13 +315,13 @@ var it = (e) => {
|
|
|
315
315
|
"referer",
|
|
316
316
|
"retry-after",
|
|
317
317
|
"user-agent"
|
|
318
|
-
]),
|
|
318
|
+
]), ut = (e) => {
|
|
319
319
|
let t = {}, n, r, i;
|
|
320
320
|
return e && e.split("\n").forEach(function(e) {
|
|
321
|
-
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] &&
|
|
321
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && lt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
322
322
|
}), t;
|
|
323
|
-
},
|
|
324
|
-
function
|
|
323
|
+
}, dt = Symbol("internals"), ft = /[^\x09\x20-\x7E\x80-\xFF]/g;
|
|
324
|
+
function pt(e) {
|
|
325
325
|
let t = 0, n = e.length;
|
|
326
326
|
for (; t < n;) {
|
|
327
327
|
let n = e.charCodeAt(t);
|
|
@@ -335,33 +335,33 @@ function ft(e) {
|
|
|
335
335
|
}
|
|
336
336
|
return t === 0 && n === e.length ? e : e.slice(t, n);
|
|
337
337
|
}
|
|
338
|
-
function pt(e) {
|
|
339
|
-
return e && String(e).trim().toLowerCase();
|
|
340
|
-
}
|
|
341
338
|
function mt(e) {
|
|
342
|
-
return
|
|
339
|
+
return e && String(e).trim().toLowerCase();
|
|
343
340
|
}
|
|
344
341
|
function ht(e) {
|
|
345
|
-
return
|
|
342
|
+
return pt(e.replace(ft, ""));
|
|
346
343
|
}
|
|
347
344
|
function gt(e) {
|
|
345
|
+
return e === !1 || e == null ? e : U.isArray(e) ? e.map(gt) : ht(String(e));
|
|
346
|
+
}
|
|
347
|
+
function _t(e) {
|
|
348
348
|
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
349
349
|
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
350
350
|
return t;
|
|
351
351
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
-
if (
|
|
355
|
-
if (i && (t = n),
|
|
356
|
-
if (
|
|
357
|
-
if (
|
|
352
|
+
var vt = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
353
|
+
function yt(e, t, n, r, i) {
|
|
354
|
+
if (U.isFunction(r)) return r.call(this, t, n);
|
|
355
|
+
if (i && (t = n), U.isString(t)) {
|
|
356
|
+
if (U.isString(r)) return t.indexOf(r) !== -1;
|
|
357
|
+
if (U.isRegExp(r)) return r.test(t);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function bt(e) {
|
|
361
361
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
let n =
|
|
363
|
+
function xt(e, t) {
|
|
364
|
+
let n = U.toCamelCase(" " + t);
|
|
365
365
|
[
|
|
366
366
|
"get",
|
|
367
367
|
"set",
|
|
@@ -376,79 +376,79 @@ function bt(e, t) {
|
|
|
376
376
|
});
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var W = class {
|
|
380
380
|
constructor(e) {
|
|
381
381
|
e && this.set(e);
|
|
382
382
|
}
|
|
383
383
|
set(e, t, n) {
|
|
384
384
|
let r = this;
|
|
385
385
|
function i(e, t, n) {
|
|
386
|
-
let i =
|
|
386
|
+
let i = mt(t);
|
|
387
387
|
if (!i) throw Error("header name must be a non-empty string");
|
|
388
|
-
let a =
|
|
389
|
-
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] =
|
|
388
|
+
let a = U.findKey(r, i);
|
|
389
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = gt(e));
|
|
390
390
|
}
|
|
391
|
-
let a = (e, t) =>
|
|
392
|
-
if (
|
|
393
|
-
else if (
|
|
394
|
-
else if (
|
|
391
|
+
let a = (e, t) => U.forEach(e, (e, n) => i(e, n, t));
|
|
392
|
+
if (U.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
393
|
+
else if (U.isString(e) && (e = e.trim()) && !vt(e)) a(ut(e), t);
|
|
394
|
+
else if (U.isObject(e) && U.isIterable(e)) {
|
|
395
395
|
let n = {}, r, i;
|
|
396
396
|
for (let t of e) {
|
|
397
|
-
if (!
|
|
398
|
-
n[i = t[0]] = (r = n[i]) ?
|
|
397
|
+
if (!U.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
|
|
398
|
+
n[i = t[0]] = (r = n[i]) ? U.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
|
|
399
399
|
}
|
|
400
400
|
a(n, t);
|
|
401
401
|
} else e != null && i(t, e, n);
|
|
402
402
|
return this;
|
|
403
403
|
}
|
|
404
404
|
get(e, t) {
|
|
405
|
-
if (e =
|
|
406
|
-
let n =
|
|
405
|
+
if (e = mt(e), e) {
|
|
406
|
+
let n = U.findKey(this, e);
|
|
407
407
|
if (n) {
|
|
408
408
|
let e = this[n];
|
|
409
409
|
if (!t) return e;
|
|
410
|
-
if (t === !0) return
|
|
411
|
-
if (
|
|
412
|
-
if (
|
|
410
|
+
if (t === !0) return _t(e);
|
|
411
|
+
if (U.isFunction(t)) return t.call(this, e, n);
|
|
412
|
+
if (U.isRegExp(t)) return t.exec(e);
|
|
413
413
|
throw TypeError("parser must be boolean|regexp|function");
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
has(e, t) {
|
|
418
|
-
if (e =
|
|
419
|
-
let n =
|
|
420
|
-
return !!(n && this[n] !== void 0 && (!t ||
|
|
418
|
+
if (e = mt(e), e) {
|
|
419
|
+
let n = U.findKey(this, e);
|
|
420
|
+
return !!(n && this[n] !== void 0 && (!t || yt(this, this[n], n, t)));
|
|
421
421
|
}
|
|
422
422
|
return !1;
|
|
423
423
|
}
|
|
424
424
|
delete(e, t) {
|
|
425
425
|
let n = this, r = !1;
|
|
426
426
|
function i(e) {
|
|
427
|
-
if (e =
|
|
428
|
-
let i =
|
|
429
|
-
i && (!t ||
|
|
427
|
+
if (e = mt(e), e) {
|
|
428
|
+
let i = U.findKey(n, e);
|
|
429
|
+
i && (!t || yt(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
return
|
|
432
|
+
return U.isArray(e) ? e.forEach(i) : i(e), r;
|
|
433
433
|
}
|
|
434
434
|
clear(e) {
|
|
435
435
|
let t = Object.keys(this), n = t.length, r = !1;
|
|
436
436
|
for (; n--;) {
|
|
437
437
|
let i = t[n];
|
|
438
|
-
(!e ||
|
|
438
|
+
(!e || yt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
439
439
|
}
|
|
440
440
|
return r;
|
|
441
441
|
}
|
|
442
442
|
normalize(e) {
|
|
443
443
|
let t = this, n = {};
|
|
444
|
-
return
|
|
445
|
-
let a =
|
|
444
|
+
return U.forEach(this, (r, i) => {
|
|
445
|
+
let a = U.findKey(n, i);
|
|
446
446
|
if (a) {
|
|
447
|
-
t[a] =
|
|
447
|
+
t[a] = gt(r), delete t[i];
|
|
448
448
|
return;
|
|
449
449
|
}
|
|
450
|
-
let o = e ?
|
|
451
|
-
o !== i && delete t[i], t[o] =
|
|
450
|
+
let o = e ? bt(i) : String(i).trim();
|
|
451
|
+
o !== i && delete t[i], t[o] = gt(r), n[o] = !0;
|
|
452
452
|
}), this;
|
|
453
453
|
}
|
|
454
454
|
concat(...e) {
|
|
@@ -456,8 +456,8 @@ var xt = class {
|
|
|
456
456
|
}
|
|
457
457
|
toJSON(e) {
|
|
458
458
|
let t = Object.create(null);
|
|
459
|
-
return
|
|
460
|
-
n != null && n !== !1 && (t[r] = e &&
|
|
459
|
+
return U.forEach(this, (n, r) => {
|
|
460
|
+
n != null && n !== !1 && (t[r] = e && U.isArray(n) ? n.join(", ") : n);
|
|
461
461
|
}), t;
|
|
462
462
|
}
|
|
463
463
|
[Symbol.iterator]() {
|
|
@@ -480,22 +480,22 @@ var xt = class {
|
|
|
480
480
|
return t.forEach((e) => n.set(e)), n;
|
|
481
481
|
}
|
|
482
482
|
static accessor(e) {
|
|
483
|
-
let t = (this[
|
|
483
|
+
let t = (this[dt] = this[dt] = { accessors: {} }).accessors, n = this.prototype;
|
|
484
484
|
function r(e) {
|
|
485
|
-
let r =
|
|
486
|
-
t[r] || (
|
|
485
|
+
let r = mt(e);
|
|
486
|
+
t[r] || (xt(n, e), t[r] = !0);
|
|
487
487
|
}
|
|
488
|
-
return
|
|
488
|
+
return U.isArray(e) ? e.forEach(r) : r(e), this;
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
|
|
491
|
+
W.accessor([
|
|
492
492
|
"Content-Type",
|
|
493
493
|
"Content-Length",
|
|
494
494
|
"Accept",
|
|
495
495
|
"Accept-Encoding",
|
|
496
496
|
"User-Agent",
|
|
497
497
|
"Authorization"
|
|
498
|
-
]),
|
|
498
|
+
]), U.reduceDescriptors(W.prototype, ({ value: e }, t) => {
|
|
499
499
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
500
500
|
return {
|
|
501
501
|
get: () => e,
|
|
@@ -503,35 +503,35 @@ xt.accessor([
|
|
|
503
503
|
this[n] = e;
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
|
-
}),
|
|
506
|
+
}), U.freezeMethods(W);
|
|
507
507
|
//#endregion
|
|
508
508
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/core/AxiosError.js
|
|
509
509
|
var St = "[REDACTED ****]";
|
|
510
510
|
function Ct(e) {
|
|
511
|
-
if (
|
|
511
|
+
if (U.hasOwnProp(e, "toJSON")) return !0;
|
|
512
512
|
let t = Object.getPrototypeOf(e);
|
|
513
513
|
for (; t && t !== Object.prototype;) {
|
|
514
|
-
if (
|
|
514
|
+
if (U.hasOwnProp(t, "toJSON")) return !0;
|
|
515
515
|
t = Object.getPrototypeOf(t);
|
|
516
516
|
}
|
|
517
517
|
return !1;
|
|
518
518
|
}
|
|
519
519
|
function wt(e, t) {
|
|
520
520
|
let n = new Set(t.map((e) => String(e).toLowerCase())), r = [], i = (e) => {
|
|
521
|
-
if (typeof e != "object" || !e ||
|
|
521
|
+
if (typeof e != "object" || !e || U.isBuffer(e)) return e;
|
|
522
522
|
if (r.indexOf(e) !== -1) return;
|
|
523
|
-
e instanceof
|
|
523
|
+
e instanceof W && (e = e.toJSON()), r.push(e);
|
|
524
524
|
let t;
|
|
525
|
-
if (
|
|
525
|
+
if (U.isArray(e)) t = [], e.forEach((e, n) => {
|
|
526
526
|
let r = i(e);
|
|
527
|
-
|
|
527
|
+
U.isUndefined(r) || (t[n] = r);
|
|
528
528
|
});
|
|
529
529
|
else {
|
|
530
|
-
if (!
|
|
530
|
+
if (!U.isPlainObject(e) && Ct(e)) return r.pop(), e;
|
|
531
531
|
t = Object.create(null);
|
|
532
532
|
for (let [r, a] of Object.entries(e)) {
|
|
533
533
|
let e = n.has(r.toLowerCase()) ? St : i(a);
|
|
534
|
-
|
|
534
|
+
U.isUndefined(e) || (t[r] = e);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
return r.pop(), t;
|
|
@@ -553,7 +553,7 @@ var G = class e extends Error {
|
|
|
553
553
|
}), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status);
|
|
554
554
|
}
|
|
555
555
|
toJSON() {
|
|
556
|
-
let e = this.config, t = e &&
|
|
556
|
+
let e = this.config, t = e && U.hasOwnProp(e, "redact") ? e.redact : void 0, n = U.isArray(t) && t.length > 0 ? wt(e, t) : U.toJSONObject(e);
|
|
557
557
|
return {
|
|
558
558
|
message: this.message,
|
|
559
559
|
name: this.name,
|
|
@@ -573,10 +573,10 @@ G.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", G.ERR_BAD_OPTION = "ERR_BAD_OPT
|
|
|
573
573
|
//#endregion
|
|
574
574
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/helpers/toFormData.js
|
|
575
575
|
function Tt(e) {
|
|
576
|
-
return
|
|
576
|
+
return U.isPlainObject(e) || U.isArray(e);
|
|
577
577
|
}
|
|
578
578
|
function Et(e) {
|
|
579
|
-
return
|
|
579
|
+
return U.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
580
580
|
}
|
|
581
581
|
function Dt(e, t, n) {
|
|
582
582
|
return e ? e.concat(t).map(function(e, t) {
|
|
@@ -584,36 +584,36 @@ function Dt(e, t, n) {
|
|
|
584
584
|
}).join(n ? "." : "") : t;
|
|
585
585
|
}
|
|
586
586
|
function Ot(e) {
|
|
587
|
-
return
|
|
587
|
+
return U.isArray(e) && !e.some(Tt);
|
|
588
588
|
}
|
|
589
|
-
var kt =
|
|
589
|
+
var kt = U.toFlatObject(U, {}, null, function(e) {
|
|
590
590
|
return /^is[A-Z]/.test(e);
|
|
591
591
|
});
|
|
592
592
|
function At(e, t, n) {
|
|
593
|
-
if (!
|
|
594
|
-
t ||= new FormData(), n =
|
|
593
|
+
if (!U.isObject(e)) throw TypeError("target must be an object");
|
|
594
|
+
t ||= new FormData(), n = U.toFlatObject(n, {
|
|
595
595
|
metaTokens: !0,
|
|
596
596
|
dots: !1,
|
|
597
597
|
indexes: !1
|
|
598
598
|
}, !1, function(e, t) {
|
|
599
|
-
return !
|
|
599
|
+
return !U.isUndefined(t[e]);
|
|
600
600
|
});
|
|
601
|
-
let r = n.metaTokens, i = n.visitor || d, a = n.dots, o = n.indexes, s = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, l = s &&
|
|
602
|
-
if (!
|
|
601
|
+
let r = n.metaTokens, i = n.visitor || d, a = n.dots, o = n.indexes, s = n.Blob || typeof Blob < "u" && Blob, c = n.maxDepth === void 0 ? 100 : n.maxDepth, l = s && U.isSpecCompliantForm(t);
|
|
602
|
+
if (!U.isFunction(i)) throw TypeError("visitor must be a function");
|
|
603
603
|
function u(e) {
|
|
604
604
|
if (e === null) return "";
|
|
605
|
-
if (
|
|
606
|
-
if (
|
|
607
|
-
if (!l &&
|
|
608
|
-
return
|
|
605
|
+
if (U.isDate(e)) return e.toISOString();
|
|
606
|
+
if (U.isBoolean(e)) return e.toString();
|
|
607
|
+
if (!l && U.isBlob(e)) throw new G("Blob is not supported. Use a Buffer instead.");
|
|
608
|
+
return U.isArrayBuffer(e) || U.isTypedArray(e) ? l && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
609
609
|
}
|
|
610
610
|
function d(e, n, i) {
|
|
611
611
|
let s = e;
|
|
612
|
-
if (
|
|
612
|
+
if (U.isReactNative(t) && U.isReactNativeBlob(e)) return t.append(Dt(i, n, a), u(e)), !1;
|
|
613
613
|
if (e && !i && typeof e == "object") {
|
|
614
|
-
if (
|
|
615
|
-
else if (
|
|
616
|
-
!(
|
|
614
|
+
if (U.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
615
|
+
else if (U.isArray(e) && Ot(e) || (U.isFileList(e) || U.endsWith(n, "[]")) && (s = U.toArray(e))) return n = Et(n), s.forEach(function(e, r) {
|
|
616
|
+
!(U.isUndefined(e) || e === null) && t.append(o === !0 ? Dt([n], r, a) : o === null ? n : n + "[]", u(e));
|
|
617
617
|
}), !1;
|
|
618
618
|
}
|
|
619
619
|
return Tt(e) ? !0 : (t.append(Dt(i, n, a), u(e)), !1);
|
|
@@ -624,15 +624,15 @@ function At(e, t, n) {
|
|
|
624
624
|
isVisitable: Tt
|
|
625
625
|
});
|
|
626
626
|
function m(e, n, r = 0) {
|
|
627
|
-
if (!
|
|
627
|
+
if (!U.isUndefined(e)) {
|
|
628
628
|
if (r > c) throw new G("Object is too deeply nested (" + r + " levels). Max depth: " + c, G.ERR_FORM_DATA_DEPTH_EXCEEDED);
|
|
629
629
|
if (f.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
|
|
630
|
-
f.push(e),
|
|
631
|
-
(!(
|
|
630
|
+
f.push(e), U.forEach(e, function(e, a) {
|
|
631
|
+
(!(U.isUndefined(e) || e === null) && i.call(t, e, U.isString(a) ? a.trim() : a, n, p)) === !0 && m(e, n ? n.concat(a) : [a], r + 1);
|
|
632
632
|
}), f.pop();
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
if (!
|
|
635
|
+
if (!U.isObject(e)) throw TypeError("data must be an object");
|
|
636
636
|
return m(e), t;
|
|
637
637
|
}
|
|
638
638
|
//#endregion
|
|
@@ -671,8 +671,8 @@ function Pt(e) {
|
|
|
671
671
|
}
|
|
672
672
|
function Ft(e, t, n) {
|
|
673
673
|
if (!t) return e;
|
|
674
|
-
let r = n && n.encode || Pt, i =
|
|
675
|
-
if (o = a ? a(t, i) :
|
|
674
|
+
let r = n && n.encode || Pt, i = U.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
675
|
+
if (o = a ? a(t, i) : U.isURLSearchParams(t) ? t.toString() : new Mt(t, i).toString(r), o) {
|
|
676
676
|
let t = e.indexOf("#");
|
|
677
677
|
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
678
678
|
}
|
|
@@ -699,7 +699,7 @@ var It = class {
|
|
|
699
699
|
this.handlers &&= [];
|
|
700
700
|
}
|
|
701
701
|
forEach(e) {
|
|
702
|
-
|
|
702
|
+
U.forEach(this.handlers, function(t) {
|
|
703
703
|
t !== null && e(t);
|
|
704
704
|
});
|
|
705
705
|
}
|
|
@@ -723,7 +723,7 @@ var It = class {
|
|
|
723
723
|
"url",
|
|
724
724
|
"data"
|
|
725
725
|
]
|
|
726
|
-
}, zt = /* @__PURE__ */
|
|
726
|
+
}, zt = /* @__PURE__ */ te({
|
|
727
727
|
hasBrowserEnv: () => Bt,
|
|
728
728
|
hasStandardBrowserEnv: () => Ht,
|
|
729
729
|
hasStandardBrowserWebWorkerEnv: () => Ut,
|
|
@@ -742,7 +742,7 @@ var It = class {
|
|
|
742
742
|
function Gt(e, t) {
|
|
743
743
|
return At(e, new K.classes.URLSearchParams(), {
|
|
744
744
|
visitor: function(e, t, n, r) {
|
|
745
|
-
return K.isNode &&
|
|
745
|
+
return K.isNode && U.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
746
746
|
},
|
|
747
747
|
...t
|
|
748
748
|
});
|
|
@@ -750,7 +750,7 @@ function Gt(e, t) {
|
|
|
750
750
|
//#endregion
|
|
751
751
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
752
752
|
function Kt(e) {
|
|
753
|
-
return
|
|
753
|
+
return U.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
754
754
|
}
|
|
755
755
|
function qt(e) {
|
|
756
756
|
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
@@ -762,11 +762,11 @@ function Jt(e) {
|
|
|
762
762
|
let a = e[i++];
|
|
763
763
|
if (a === "__proto__") return !0;
|
|
764
764
|
let o = Number.isFinite(+a), s = i >= e.length;
|
|
765
|
-
return a = !a &&
|
|
765
|
+
return a = !a && U.isArray(r) ? r.length : a, s ? (U.hasOwnProp(r, a) ? r[a] = U.isArray(r[a]) ? r[a].concat(n) : [r[a], n] : r[a] = n, !o) : ((!r[a] || !U.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && U.isArray(r[a]) && (r[a] = qt(r[a])), !o);
|
|
766
766
|
}
|
|
767
|
-
if (
|
|
767
|
+
if (U.isFormData(e) && U.isFunction(e.entries)) {
|
|
768
768
|
let n = {};
|
|
769
|
-
return
|
|
769
|
+
return U.forEachEntry(e, (e, r) => {
|
|
770
770
|
t(Kt(e), r, n, 0);
|
|
771
771
|
}), n;
|
|
772
772
|
}
|
|
@@ -774,10 +774,10 @@ function Jt(e) {
|
|
|
774
774
|
}
|
|
775
775
|
//#endregion
|
|
776
776
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/defaults/index.js
|
|
777
|
-
var Yt = (e, t) => e != null &&
|
|
777
|
+
var Yt = (e, t) => e != null && U.hasOwnProp(e, t) ? e[t] : void 0;
|
|
778
778
|
function Xt(e, t, n) {
|
|
779
|
-
if (
|
|
780
|
-
return (t || JSON.parse)(e),
|
|
779
|
+
if (U.isString(e)) try {
|
|
780
|
+
return (t || JSON.parse)(e), U.trim(e);
|
|
781
781
|
} catch (e) {
|
|
782
782
|
if (e.name !== "SyntaxError") throw e;
|
|
783
783
|
}
|
|
@@ -791,16 +791,16 @@ var Zt = {
|
|
|
791
791
|
"fetch"
|
|
792
792
|
],
|
|
793
793
|
transformRequest: [function(e, t) {
|
|
794
|
-
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i =
|
|
795
|
-
if (i &&
|
|
796
|
-
if (
|
|
797
|
-
if (
|
|
798
|
-
if (
|
|
794
|
+
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = U.isObject(e);
|
|
795
|
+
if (i && U.isHTMLForm(e) && (e = new FormData(e)), U.isFormData(e)) return r ? JSON.stringify(Jt(e)) : e;
|
|
796
|
+
if (U.isArrayBuffer(e) || U.isBuffer(e) || U.isStream(e) || U.isFile(e) || U.isBlob(e) || U.isReadableStream(e)) return e;
|
|
797
|
+
if (U.isArrayBufferView(e)) return e.buffer;
|
|
798
|
+
if (U.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
799
799
|
let a;
|
|
800
800
|
if (i) {
|
|
801
801
|
let t = Yt(this, "formSerializer");
|
|
802
802
|
if (n.indexOf("application/x-www-form-urlencoded") > -1) return Gt(e, t).toString();
|
|
803
|
-
if ((a =
|
|
803
|
+
if ((a = U.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
804
804
|
let n = Yt(this, "env"), r = n && n.FormData;
|
|
805
805
|
return At(a ? { "files[]": e } : e, r && new r(), t);
|
|
806
806
|
}
|
|
@@ -809,8 +809,8 @@ var Zt = {
|
|
|
809
809
|
}],
|
|
810
810
|
transformResponse: [function(e) {
|
|
811
811
|
let t = Yt(this, "transitional") || Zt.transitional, n = t && t.forcedJSONParsing, r = Yt(this, "responseType"), i = r === "json";
|
|
812
|
-
if (
|
|
813
|
-
if (e &&
|
|
812
|
+
if (U.isResponse(e) || U.isReadableStream(e)) return e;
|
|
813
|
+
if (e && U.isString(e) && (n && !r || i)) {
|
|
814
814
|
let n = !(t && t.silentJSONParsing) && i;
|
|
815
815
|
try {
|
|
816
816
|
return JSON.parse(e, Yt(this, "parseReviver"));
|
|
@@ -837,7 +837,7 @@ var Zt = {
|
|
|
837
837
|
"Content-Type": void 0
|
|
838
838
|
} }
|
|
839
839
|
};
|
|
840
|
-
|
|
840
|
+
U.forEach([
|
|
841
841
|
"delete",
|
|
842
842
|
"get",
|
|
843
843
|
"head",
|
|
@@ -851,8 +851,8 @@ W.forEach([
|
|
|
851
851
|
//#endregion
|
|
852
852
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/core/transformData.js
|
|
853
853
|
function Qt(e, t) {
|
|
854
|
-
let n = this || Zt, r = t || n, i =
|
|
855
|
-
return
|
|
854
|
+
let n = this || Zt, r = t || n, i = W.from(r.headers), a = r.data;
|
|
855
|
+
return U.forEach(e, function(e) {
|
|
856
856
|
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
857
857
|
}), i.normalize(), a;
|
|
858
858
|
}
|
|
@@ -933,11 +933,11 @@ var on = (e, t, n = 3) => {
|
|
|
933
933
|
total: e,
|
|
934
934
|
loaded: r
|
|
935
935
|
}), t[1]];
|
|
936
|
-
}, cn = (e) => (...t) =>
|
|
936
|
+
}, cn = (e) => (...t) => U.asap(() => e(...t)), ln = K.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, K.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(K.origin), K.navigator && /(msie|trident)/i.test(K.navigator.userAgent)) : () => !0, un = K.hasStandardBrowserEnv ? {
|
|
937
937
|
write(e, t, n, r, i, a, o) {
|
|
938
938
|
if (typeof document > "u") return;
|
|
939
939
|
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
940
|
-
|
|
940
|
+
U.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), U.isString(r) && s.push(`path=${r}`), U.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), U.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
|
|
941
941
|
},
|
|
942
942
|
read(e) {
|
|
943
943
|
if (typeof document > "u") return null;
|
|
@@ -976,7 +976,7 @@ function pn(e, t, n) {
|
|
|
976
976
|
}
|
|
977
977
|
//#endregion
|
|
978
978
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/core/mergeConfig.js
|
|
979
|
-
var mn = (e) => e instanceof
|
|
979
|
+
var mn = (e) => e instanceof W ? { ...e } : e;
|
|
980
980
|
function hn(e, t) {
|
|
981
981
|
t ||= {};
|
|
982
982
|
let n = Object.create(null);
|
|
@@ -988,22 +988,22 @@ function hn(e, t) {
|
|
|
988
988
|
configurable: !0
|
|
989
989
|
});
|
|
990
990
|
function r(e, t, n, r) {
|
|
991
|
-
return
|
|
991
|
+
return U.isPlainObject(e) && U.isPlainObject(t) ? U.merge.call({ caseless: r }, e, t) : U.isPlainObject(t) ? U.merge({}, t) : U.isArray(t) ? t.slice() : t;
|
|
992
992
|
}
|
|
993
993
|
function i(e, t, n, i) {
|
|
994
|
-
if (!
|
|
995
|
-
if (!
|
|
994
|
+
if (!U.isUndefined(t)) return r(e, t, n, i);
|
|
995
|
+
if (!U.isUndefined(e)) return r(void 0, e, n, i);
|
|
996
996
|
}
|
|
997
997
|
function a(e, t) {
|
|
998
|
-
if (!
|
|
998
|
+
if (!U.isUndefined(t)) return r(void 0, t);
|
|
999
999
|
}
|
|
1000
1000
|
function o(e, t) {
|
|
1001
|
-
if (!
|
|
1002
|
-
if (!
|
|
1001
|
+
if (!U.isUndefined(t)) return r(void 0, t);
|
|
1002
|
+
if (!U.isUndefined(e)) return r(void 0, e);
|
|
1003
1003
|
}
|
|
1004
1004
|
function s(n, i, a) {
|
|
1005
|
-
if (
|
|
1006
|
-
if (
|
|
1005
|
+
if (U.hasOwnProp(t, a)) return r(n, i);
|
|
1006
|
+
if (U.hasOwnProp(e, a)) return r(void 0, n);
|
|
1007
1007
|
}
|
|
1008
1008
|
let c = {
|
|
1009
1009
|
url: a,
|
|
@@ -1037,13 +1037,13 @@ function hn(e, t) {
|
|
|
1037
1037
|
validateStatus: s,
|
|
1038
1038
|
headers: (e, t, n) => i(mn(e), mn(t), n, !0)
|
|
1039
1039
|
};
|
|
1040
|
-
return
|
|
1040
|
+
return U.forEach(Object.keys({
|
|
1041
1041
|
...e,
|
|
1042
1042
|
...t
|
|
1043
1043
|
}), function(r) {
|
|
1044
1044
|
if (r === "__proto__" || r === "constructor" || r === "prototype") return;
|
|
1045
|
-
let a =
|
|
1046
|
-
|
|
1045
|
+
let a = U.hasOwnProp(c, r) ? c[r] : i, o = a(U.hasOwnProp(e, r) ? e[r] : void 0, U.hasOwnProp(t, r) ? t[r] : void 0, r);
|
|
1046
|
+
U.isUndefined(o) && a !== s || (n[r] = o);
|
|
1047
1047
|
}), n;
|
|
1048
1048
|
}
|
|
1049
1049
|
//#endregion
|
|
@@ -1059,15 +1059,15 @@ function _n(e, t, n) {
|
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
1061
|
var vn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), yn = (e) => {
|
|
1062
|
-
let t = hn({}, e), n = (e) =>
|
|
1063
|
-
if (t.headers = s =
|
|
1062
|
+
let t = hn({}, e), n = (e) => U.hasOwnProp(t, e) ? t[e] : void 0, r = n("data"), i = n("withXSRFToken"), a = n("xsrfHeaderName"), o = n("xsrfCookieName"), s = n("headers"), c = n("auth"), l = n("baseURL"), u = n("allowAbsoluteUrls"), d = n("url");
|
|
1063
|
+
if (t.headers = s = W.from(s), t.url = Ft(pn(l, d, u), e.params, e.paramsSerializer), c && s.set("Authorization", "Basic " + btoa((c.username || "") + ":" + (c.password ? vn(c.password) : ""))), U.isFormData(r) && (K.hasStandardBrowserEnv || K.hasStandardBrowserWebWorkerEnv ? s.setContentType(void 0) : U.isFunction(r.getHeaders) && _n(s, r.getHeaders(), n("formDataHeaderPolicy"))), K.hasStandardBrowserEnv && (U.isFunction(i) && (i = i(t)), i === !0 || i == null && ln(t.url))) {
|
|
1064
1064
|
let e = a && o && un.read(o);
|
|
1065
1065
|
e && s.set(a, e);
|
|
1066
1066
|
}
|
|
1067
1067
|
return t;
|
|
1068
1068
|
}, bn = typeof XMLHttpRequest < "u" && function(e) {
|
|
1069
1069
|
return new Promise(function(t, n) {
|
|
1070
|
-
let r = yn(e), i = r.data, a =
|
|
1070
|
+
let r = yn(e), i = r.data, a = W.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
1071
1071
|
function m() {
|
|
1072
1072
|
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
1073
1073
|
}
|
|
@@ -1075,7 +1075,7 @@ var vn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => Stri
|
|
|
1075
1075
|
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1076
1076
|
function g() {
|
|
1077
1077
|
if (!h) return;
|
|
1078
|
-
let r =
|
|
1078
|
+
let r = W.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
1079
1079
|
tn(function(e) {
|
|
1080
1080
|
t(e), m();
|
|
1081
1081
|
}, function(e) {
|
|
@@ -1099,9 +1099,9 @@ var vn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => Stri
|
|
|
1099
1099
|
}, h.ontimeout = function() {
|
|
1100
1100
|
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || Lt;
|
|
1101
1101
|
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new G(t, i.clarifyTimeoutError ? G.ETIMEDOUT : G.ECONNABORTED, e, h)), m(), h = null;
|
|
1102
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h &&
|
|
1102
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && U.forEach(a.toJSON(), function(e, t) {
|
|
1103
1103
|
h.setRequestHeader(t, e);
|
|
1104
|
-
}),
|
|
1104
|
+
}), U.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = on(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = on(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
1105
1105
|
h &&= (n(!t || t.type ? new en(null, e, h) : t), h.abort(), m(), null);
|
|
1106
1106
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1107
1107
|
let _ = nn(r.url);
|
|
@@ -1129,7 +1129,7 @@ var vn = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => Stri
|
|
|
1129
1129
|
};
|
|
1130
1130
|
e.forEach((e) => e.addEventListener("abort", i));
|
|
1131
1131
|
let { signal: s } = n;
|
|
1132
|
-
return s.unsubscribe = () =>
|
|
1132
|
+
return s.unsubscribe = () => U.asap(o), s;
|
|
1133
1133
|
}
|
|
1134
1134
|
}, Sn = function* (e, t) {
|
|
1135
1135
|
let n = e.byteLength;
|
|
@@ -1212,15 +1212,15 @@ function En(e) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
//#endregion
|
|
1214
1214
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/env/data.js
|
|
1215
|
-
var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } =
|
|
1215
|
+
var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = U, An = (e, ...t) => {
|
|
1216
1216
|
try {
|
|
1217
1217
|
return !!e(...t);
|
|
1218
1218
|
} catch {
|
|
1219
1219
|
return !1;
|
|
1220
1220
|
}
|
|
1221
1221
|
}, jn = (e) => {
|
|
1222
|
-
let t =
|
|
1223
|
-
e =
|
|
1222
|
+
let t = U.global ?? globalThis, { ReadableStream: n, TextEncoder: r } = t;
|
|
1223
|
+
e = U.merge.call({ skipUndefined: !0 }, {
|
|
1224
1224
|
Request: t.Request,
|
|
1225
1225
|
Response: t.Response
|
|
1226
1226
|
}, e);
|
|
@@ -1235,7 +1235,7 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
}), r = t.headers.has("Content-Type");
|
|
1237
1237
|
return t.body != null && t.body.cancel(), e && !r;
|
|
1238
|
-
}), p = l && u && An(() =>
|
|
1238
|
+
}), p = l && u && An(() => U.isReadableStream(new o("").body)), m = { stream: p && ((e) => e.body) };
|
|
1239
1239
|
s && [
|
|
1240
1240
|
"text",
|
|
1241
1241
|
"arrayBuffer",
|
|
@@ -1251,16 +1251,16 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1251
1251
|
});
|
|
1252
1252
|
let h = async (e) => {
|
|
1253
1253
|
if (e == null) return 0;
|
|
1254
|
-
if (
|
|
1255
|
-
if (
|
|
1254
|
+
if (U.isBlob(e)) return e.size;
|
|
1255
|
+
if (U.isSpecCompliantForm(e)) return (await new a(K.origin, {
|
|
1256
1256
|
method: "POST",
|
|
1257
1257
|
body: e
|
|
1258
1258
|
}).arrayBuffer()).byteLength;
|
|
1259
|
-
if (
|
|
1260
|
-
if (
|
|
1261
|
-
}, g = async (e, t) =>
|
|
1259
|
+
if (U.isArrayBufferView(e) || U.isArrayBuffer(e)) return e.byteLength;
|
|
1260
|
+
if (U.isURLSearchParams(e) && (e += ""), U.isString(e)) return (await d(e)).byteLength;
|
|
1261
|
+
}, g = async (e, t) => U.toFiniteNumber(e.getContentLength()) ?? h(t);
|
|
1262
1262
|
return async (e) => {
|
|
1263
|
-
let { url: t, method: n, data: s, signal: l, cancelToken: u, timeout: d, onDownloadProgress: h, onUploadProgress: _, responseType: v, headers: y, withCredentials: b = "same-origin", fetchOptions: x, maxContentLength: S, maxBodyLength: C } = yn(e), w =
|
|
1263
|
+
let { url: t, method: n, data: s, signal: l, cancelToken: u, timeout: d, onDownloadProgress: h, onUploadProgress: _, responseType: v, headers: y, withCredentials: b = "same-origin", fetchOptions: x, maxContentLength: S, maxBodyLength: C } = yn(e), w = U.isNumber(S) && S > -1, T = U.isNumber(C) && C > -1, E = i || fetch;
|
|
1264
1264
|
v = v ? (v + "").toLowerCase() : "text";
|
|
1265
1265
|
let D = xn([l, u && u.toAbortSignal()], d), O = null, k = D && D.unsubscribe && (() => {
|
|
1266
1266
|
D.unsubscribe();
|
|
@@ -1277,14 +1277,14 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1277
1277
|
body: s,
|
|
1278
1278
|
duplex: "half"
|
|
1279
1279
|
}), n;
|
|
1280
|
-
if (
|
|
1280
|
+
if (U.isFormData(s) && (n = e.headers.get("content-type")) && y.setContentType(n), e.body) {
|
|
1281
1281
|
let [t, n] = sn(A, on(cn(_)));
|
|
1282
1282
|
s = Tn(e.body, On, t, n);
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1285
|
+
U.isString(b) || (b = b ? "include" : "omit");
|
|
1286
1286
|
let i = c && "credentials" in a.prototype;
|
|
1287
|
-
if (
|
|
1287
|
+
if (U.isFormData(s)) {
|
|
1288
1288
|
let e = y.getContentType();
|
|
1289
1289
|
e && /^multipart\/form-data/i.test(e) && !/boundary=/i.test(e) && y.delete("content-type");
|
|
1290
1290
|
}
|
|
@@ -1301,7 +1301,7 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1301
1301
|
O = c && new a(t, l);
|
|
1302
1302
|
let u = await (c ? E(O, x) : E(t, l));
|
|
1303
1303
|
if (w) {
|
|
1304
|
-
let t =
|
|
1304
|
+
let t = U.toFiniteNumber(u.headers.get("content-length"));
|
|
1305
1305
|
if (t != null && t > S) throw new G("maxContentLength size of " + S + " exceeded", G.ERR_BAD_RESPONSE, e, O);
|
|
1306
1306
|
}
|
|
1307
1307
|
let d = p && (v === "stream" || v === "response");
|
|
@@ -1314,7 +1314,7 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1314
1314
|
].forEach((e) => {
|
|
1315
1315
|
t[e] = u[e];
|
|
1316
1316
|
});
|
|
1317
|
-
let n =
|
|
1317
|
+
let n = U.toFiniteNumber(u.headers.get("content-length")), [r, i] = h && sn(n, on(cn(h), !0)) || [], a = 0;
|
|
1318
1318
|
u = new o(Tn(u.body, On, (t) => {
|
|
1319
1319
|
if (w && (a = t, a > S)) throw new G("maxContentLength size of " + S + " exceeded", G.ERR_BAD_RESPONSE, e, O);
|
|
1320
1320
|
r && r(t);
|
|
@@ -1323,7 +1323,7 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1323
1323
|
}), t);
|
|
1324
1324
|
}
|
|
1325
1325
|
v ||= "text";
|
|
1326
|
-
let j = await m[
|
|
1326
|
+
let j = await m[U.findKey(m, v) || "text"](u, e);
|
|
1327
1327
|
if (w && !p && !d) {
|
|
1328
1328
|
let t;
|
|
1329
1329
|
if (j != null && (typeof j.byteLength == "number" ? t = j.byteLength : typeof j.size == "number" ? t = j.size : typeof j == "string" && (t = typeof r == "function" ? new r().encode(j).byteLength : j.length)), typeof t == "number" && t > S) throw new G("maxContentLength size of " + S + " exceeded", G.ERR_BAD_RESPONSE, e, O);
|
|
@@ -1331,7 +1331,7 @@ var Dn = "1.16.0", On = 64 * 1024, { isFunction: kn } = W, An = (e, ...t) => {
|
|
|
1331
1331
|
return !d && k && k(), await new Promise((t, n) => {
|
|
1332
1332
|
tn(t, n, {
|
|
1333
1333
|
data: j,
|
|
1334
|
-
headers:
|
|
1334
|
+
headers: W.from(u.headers),
|
|
1335
1335
|
status: u.status,
|
|
1336
1336
|
statusText: u.statusText,
|
|
1337
1337
|
config: e,
|
|
@@ -1363,7 +1363,7 @@ var Pn = {
|
|
|
1363
1363
|
xhr: bn,
|
|
1364
1364
|
fetch: { get: Nn }
|
|
1365
1365
|
};
|
|
1366
|
-
|
|
1366
|
+
U.forEach(Pn, (e, t) => {
|
|
1367
1367
|
if (e) {
|
|
1368
1368
|
try {
|
|
1369
1369
|
Object.defineProperty(e, "name", {
|
|
@@ -1377,15 +1377,15 @@ W.forEach(Pn, (e, t) => {
|
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
|
-
var Fn = (e) => `- ${e}`, In = (e) =>
|
|
1380
|
+
var Fn = (e) => `- ${e}`, In = (e) => U.isFunction(e) || e === null || e === !1;
|
|
1381
1381
|
function Ln(e, t) {
|
|
1382
|
-
e =
|
|
1382
|
+
e = U.isArray(e) ? e : [e];
|
|
1383
1383
|
let { length: n } = e, r, i, a = {};
|
|
1384
1384
|
for (let o = 0; o < n; o++) {
|
|
1385
1385
|
r = e[o];
|
|
1386
1386
|
let n;
|
|
1387
1387
|
if (i = r, !In(r) && (i = Pn[(n = String(r)).toLowerCase()], i === void 0)) throw new G(`Unknown adapter '${n}'`);
|
|
1388
|
-
if (i && (
|
|
1388
|
+
if (i && (U.isFunction(i) || (i = i.get(t)))) break;
|
|
1389
1389
|
a[n || "#" + o] = i;
|
|
1390
1390
|
}
|
|
1391
1391
|
if (!i) {
|
|
@@ -1404,7 +1404,7 @@ function zn(e) {
|
|
|
1404
1404
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new en(null, e);
|
|
1405
1405
|
}
|
|
1406
1406
|
function Bn(e) {
|
|
1407
|
-
return zn(e), e.headers =
|
|
1407
|
+
return zn(e), e.headers = W.from(e.headers), e.data = Qt.call(e, e.transformRequest), [
|
|
1408
1408
|
"post",
|
|
1409
1409
|
"put",
|
|
1410
1410
|
"patch"
|
|
@@ -1415,7 +1415,7 @@ function Bn(e) {
|
|
|
1415
1415
|
} finally {
|
|
1416
1416
|
delete e.response;
|
|
1417
1417
|
}
|
|
1418
|
-
return t.headers =
|
|
1418
|
+
return t.headers = W.from(t.headers), t;
|
|
1419
1419
|
}, function(t) {
|
|
1420
1420
|
if (!$t(t) && (zn(e), t && t.response)) {
|
|
1421
1421
|
e.response = t.response;
|
|
@@ -1424,7 +1424,7 @@ function Bn(e) {
|
|
|
1424
1424
|
} finally {
|
|
1425
1425
|
delete e.response;
|
|
1426
1426
|
}
|
|
1427
|
-
t.response.headers =
|
|
1427
|
+
t.response.headers = W.from(t.response.headers);
|
|
1428
1428
|
}
|
|
1429
1429
|
return Promise.reject(t);
|
|
1430
1430
|
});
|
|
@@ -1510,15 +1510,15 @@ var Wn = {
|
|
|
1510
1510
|
forcedJSONParsing: Gn.transitional(Gn.boolean),
|
|
1511
1511
|
clarifyTimeoutError: Gn.transitional(Gn.boolean),
|
|
1512
1512
|
legacyInterceptorReqResOrdering: Gn.transitional(Gn.boolean)
|
|
1513
|
-
}, !1), r != null && (
|
|
1513
|
+
}, !1), r != null && (U.isFunction(r) ? t.paramsSerializer = { serialize: r } : Wn.assertOptions(r, {
|
|
1514
1514
|
encode: Gn.function,
|
|
1515
1515
|
serialize: Gn.function
|
|
1516
1516
|
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), Wn.assertOptions(t, {
|
|
1517
1517
|
baseUrl: Gn.spelling("baseURL"),
|
|
1518
1518
|
withXsrfToken: Gn.spelling("withXSRFToken")
|
|
1519
1519
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1520
|
-
let a = i &&
|
|
1521
|
-
i &&
|
|
1520
|
+
let a = i && U.merge(i.common, i[t.method]);
|
|
1521
|
+
i && U.forEach([
|
|
1522
1522
|
"delete",
|
|
1523
1523
|
"get",
|
|
1524
1524
|
"head",
|
|
@@ -1529,7 +1529,7 @@ var Wn = {
|
|
|
1529
1529
|
"common"
|
|
1530
1530
|
], (e) => {
|
|
1531
1531
|
delete i[e];
|
|
1532
|
-
}), t.headers =
|
|
1532
|
+
}), t.headers = W.concat(a, i);
|
|
1533
1533
|
let o = [], s = !0;
|
|
1534
1534
|
this.interceptors.request.forEach(function(e) {
|
|
1535
1535
|
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
@@ -1570,7 +1570,7 @@ var Wn = {
|
|
|
1570
1570
|
return e = hn(this.defaults, e), Ft(pn(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
|
-
|
|
1573
|
+
U.forEach([
|
|
1574
1574
|
"delete",
|
|
1575
1575
|
"get",
|
|
1576
1576
|
"head",
|
|
@@ -1583,7 +1583,7 @@ W.forEach([
|
|
|
1583
1583
|
data: (n || {}).data
|
|
1584
1584
|
}));
|
|
1585
1585
|
};
|
|
1586
|
-
}),
|
|
1586
|
+
}), U.forEach([
|
|
1587
1587
|
"post",
|
|
1588
1588
|
"put",
|
|
1589
1589
|
"patch",
|
|
@@ -1668,7 +1668,7 @@ function Jn(e) {
|
|
|
1668
1668
|
//#endregion
|
|
1669
1669
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/helpers/isAxiosError.js
|
|
1670
1670
|
function Yn(e) {
|
|
1671
|
-
return
|
|
1671
|
+
return U.isObject(e) && e.isAxiosError === !0;
|
|
1672
1672
|
}
|
|
1673
1673
|
//#endregion
|
|
1674
1674
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
@@ -1749,15 +1749,15 @@ Object.entries(Xn).forEach(([e, t]) => {
|
|
|
1749
1749
|
//#endregion
|
|
1750
1750
|
//#region node_modules/.pnpm/axios@1.16.0/node_modules/axios/lib/axios.js
|
|
1751
1751
|
function Zn(e) {
|
|
1752
|
-
let t = new Kn(e), n =
|
|
1753
|
-
return
|
|
1752
|
+
let t = new Kn(e), n = ie(Kn.prototype.request, t);
|
|
1753
|
+
return U.extend(n, Kn.prototype, t, { allOwnKeys: !0 }), U.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
1754
1754
|
return Zn(hn(e, t));
|
|
1755
1755
|
}, n;
|
|
1756
1756
|
}
|
|
1757
1757
|
var q = Zn(Zt);
|
|
1758
1758
|
q.Axios = Kn, q.CanceledError = en, q.CancelToken = qn, q.isCancel = $t, q.VERSION = Dn, q.toFormData = At, q.AxiosError = G, q.Cancel = q.CanceledError, q.all = function(e) {
|
|
1759
1759
|
return Promise.all(e);
|
|
1760
|
-
}, q.spread = Jn, q.isAxiosError = Yn, q.mergeConfig = hn, q.AxiosHeaders =
|
|
1760
|
+
}, q.spread = Jn, q.isAxiosError = Yn, q.mergeConfig = hn, q.AxiosHeaders = W, q.formToJSON = (e) => Jt(U.isHTMLForm(e) ? new FormData(e) : e), q.getAdapter = Rn.getAdapter, q.HttpStatusCode = Xn, q.default = q;
|
|
1761
1761
|
//#endregion
|
|
1762
1762
|
//#region src/api/data/baostock.ts
|
|
1763
1763
|
function Qn(e) {
|
|
@@ -2706,23 +2706,23 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
2706
2706
|
for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
|
|
2707
2707
|
}
|
|
2708
2708
|
function j(e) {
|
|
2709
|
-
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${
|
|
2709
|
+
return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${F(e)}`;
|
|
2710
2710
|
}
|
|
2711
2711
|
e.not = j;
|
|
2712
|
-
var M =
|
|
2712
|
+
var M = te(e.operators.AND);
|
|
2713
2713
|
function N(...e) {
|
|
2714
2714
|
return e.reduce(M);
|
|
2715
2715
|
}
|
|
2716
2716
|
e.and = N;
|
|
2717
|
-
var ee =
|
|
2717
|
+
var ee = te(e.operators.OR);
|
|
2718
2718
|
function P(...e) {
|
|
2719
2719
|
return e.reduce(ee);
|
|
2720
2720
|
}
|
|
2721
2721
|
e.or = P;
|
|
2722
|
-
function F(e) {
|
|
2723
|
-
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${te(n)} ${e} ${te(r)}`;
|
|
2724
|
-
}
|
|
2725
2722
|
function te(e) {
|
|
2723
|
+
return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${F(n)} ${e} ${F(r)}`;
|
|
2724
|
+
}
|
|
2725
|
+
function F(e) {
|
|
2726
2726
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
2727
2727
|
}
|
|
2728
2728
|
})), Y = /* @__PURE__ */ P(((e) => {
|
|
@@ -3698,7 +3698,7 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
3698
3698
|
function N(e, t, n, a) {
|
|
3699
3699
|
let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
|
|
3700
3700
|
if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
|
|
3701
|
-
o.block(() =>
|
|
3701
|
+
o.block(() => se(e, "$ref", h.all.$ref.definition));
|
|
3702
3702
|
return;
|
|
3703
3703
|
}
|
|
3704
3704
|
p.jtd || P(e, t), o.block(() => {
|
|
@@ -3712,25 +3712,25 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
3712
3712
|
function ee(e, t) {
|
|
3713
3713
|
let { gen: n, schema: i, opts: { useDefaults: o } } = e;
|
|
3714
3714
|
o && (0, a.assignDefaults)(e, t.type), n.block(() => {
|
|
3715
|
-
for (let n of t.rules) (0, r.shouldUseRule)(i, n) &&
|
|
3715
|
+
for (let n of t.rules) (0, r.shouldUseRule)(i, n) && se(e, n.keyword, n.definition, t.type);
|
|
3716
3716
|
});
|
|
3717
3717
|
}
|
|
3718
3718
|
function P(e, t) {
|
|
3719
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
3719
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (te(e, t), e.opts.allowUnionTypes || F(e, t), ne(e, e.dataTypes));
|
|
3720
3720
|
}
|
|
3721
|
-
function
|
|
3721
|
+
function te(e, t) {
|
|
3722
3722
|
if (t.length) {
|
|
3723
3723
|
if (!e.dataTypes.length) {
|
|
3724
3724
|
e.dataTypes = t;
|
|
3725
3725
|
return;
|
|
3726
3726
|
}
|
|
3727
3727
|
t.forEach((t) => {
|
|
3728
|
-
I(e.dataTypes, t) ||
|
|
3729
|
-
}),
|
|
3728
|
+
I(e.dataTypes, t) || ae(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
3729
|
+
}), ie(e, t);
|
|
3730
3730
|
}
|
|
3731
3731
|
}
|
|
3732
|
-
function
|
|
3733
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
3732
|
+
function F(e, t) {
|
|
3733
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && ae(e, "use allowUnionTypes to allow union type keyword");
|
|
3734
3734
|
}
|
|
3735
3735
|
function ne(e, t) {
|
|
3736
3736
|
let n = e.self.RULES.all;
|
|
@@ -3738,7 +3738,7 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
3738
3738
|
let a = n[i];
|
|
3739
3739
|
if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
|
|
3740
3740
|
let { type: n } = a.definition;
|
|
3741
|
-
n.length && !n.some((e) => re(t, e)) &&
|
|
3741
|
+
n.length && !n.some((e) => re(t, e)) && ae(e, `missing type "${n.join(",")}" for keyword "${i}"`);
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
@@ -3748,18 +3748,18 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
3748
3748
|
function I(e, t) {
|
|
3749
3749
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
3750
3750
|
}
|
|
3751
|
-
function
|
|
3751
|
+
function ie(e, t) {
|
|
3752
3752
|
let n = [];
|
|
3753
3753
|
for (let r of e.dataTypes) I(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
3754
3754
|
e.dataTypes = n;
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function ae(e, t) {
|
|
3757
3757
|
let n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
3758
3758
|
t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
3759
3759
|
}
|
|
3760
|
-
var
|
|
3760
|
+
var oe = class {
|
|
3761
3761
|
constructor(e, t, n) {
|
|
3762
|
-
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema",
|
|
3762
|
+
if ((0, o.validateKeywordUsage)(e, t, n), this.gen = e.gen, this.allErrors = e.allErrors, this.keyword = n, this.data = e.data, this.schema = e.schema[n], this.$data = t.$data && e.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, d.schemaRefOrVal)(e, this.schema, n, this.$data), this.schemaType = t.schemaType, this.parentSchema = e.schema, this.params = {}, this.it = e, this.def = t, this.$data) this.schemaCode = e.gen.const("vSchema", z(this.$data, e));
|
|
3763
3763
|
else if (this.schemaCode = this.schemaValue, !(0, o.validSchemaType)(this.schema, t.schemaType, t.allowUndefined)) throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);
|
|
3764
3764
|
("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
|
|
3765
3765
|
}
|
|
@@ -3857,20 +3857,20 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
3857
3857
|
if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
|
|
3858
3858
|
}
|
|
3859
3859
|
};
|
|
3860
|
-
e.KeywordCxt =
|
|
3861
|
-
function
|
|
3862
|
-
let i = new
|
|
3860
|
+
e.KeywordCxt = oe;
|
|
3861
|
+
function se(e, t, n, r) {
|
|
3862
|
+
let i = new oe(e, n, t);
|
|
3863
3863
|
"code" in n ? n.code(i, r) : i.$data && n.validate ? (0, o.funcKeywordCode)(i, n) : "macro" in n ? (0, o.macroKeywordCode)(i, n) : (n.compile || n.validate) && (0, o.funcKeywordCode)(i, n);
|
|
3864
3864
|
}
|
|
3865
|
-
var
|
|
3866
|
-
function
|
|
3865
|
+
var L = /^\/(?:[^~]|~0|~1)*$/, R = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
3866
|
+
function z(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
3867
3867
|
let i, a;
|
|
3868
3868
|
if (e === "") return l.default.rootData;
|
|
3869
3869
|
if (e[0] === "/") {
|
|
3870
|
-
if (!
|
|
3870
|
+
if (!L.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3871
3871
|
i = e, a = l.default.rootData;
|
|
3872
3872
|
} else {
|
|
3873
|
-
let o =
|
|
3873
|
+
let o = R.exec(e);
|
|
3874
3874
|
if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
|
|
3875
3875
|
let s = +o[1];
|
|
3876
3876
|
if (i = o[2], i === "#") {
|
|
@@ -3887,7 +3887,7 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
3887
3887
|
return `Cannot access ${e} ${n} levels up, current level is ${t}`;
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
e.getData =
|
|
3890
|
+
e.getData = z;
|
|
3891
3891
|
})), Fr = /* @__PURE__ */ P(((e) => {
|
|
3892
3892
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
3893
3893
|
constructor(e) {
|
|
@@ -4063,7 +4063,7 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
4063
4063
|
baseId: t
|
|
4064
4064
|
}), o.schema !== o.root.schema) return o;
|
|
4065
4065
|
}
|
|
4066
|
-
})), Rr = /* @__PURE__ */
|
|
4066
|
+
})), Rr = /* @__PURE__ */ te({
|
|
4067
4067
|
$id: () => zr,
|
|
4068
4068
|
additionalProperties: () => !1,
|
|
4069
4069
|
default: () => Wr,
|
|
@@ -6067,7 +6067,7 @@ var yr = /* @__PURE__ */ P(((e) => {
|
|
|
6067
6067
|
}
|
|
6068
6068
|
}
|
|
6069
6069
|
};
|
|
6070
|
-
})), Ii = /* @__PURE__ */
|
|
6070
|
+
})), Ii = /* @__PURE__ */ te({
|
|
6071
6071
|
$id: () => Ri,
|
|
6072
6072
|
$schema: () => Li,
|
|
6073
6073
|
default: () => Ui,
|
|
@@ -8422,22 +8422,22 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8422
8422
|
], v = f.filter((e) => e.pane === "main"), x = f.filter((e) => e.pane === "sub"), S = u, T = d, O = y(null), k = y(null), A = y(!1), j = y(null), M = y(null), N = y(!1), ee = y({
|
|
8423
8423
|
left: "0",
|
|
8424
8424
|
bottom: "0"
|
|
8425
|
-
}), P = y(!1),
|
|
8426
|
-
function
|
|
8425
|
+
}), P = y(!1), te = y(null), F = y(null), ne = r(() => S.activeIndicators?.length ? S.activeIndicators.map((e) => f.find((t) => t.id === e)).filter((e) => e !== void 0).sort((e, t) => e.pane === t.pane ? 0 : e.pane === "main" ? -1 : 1) : []), re = r(() => ne.value.some((e) => e.pane === "main") ? ne.value.find((e) => e.pane === "sub")?.id ?? null : null), I = r(() => j.value && f.find((e) => e.id === j.value) || null);
|
|
8426
|
+
function ie(e) {
|
|
8427
8427
|
return S.activeIndicators?.includes(e) ?? !1;
|
|
8428
8428
|
}
|
|
8429
|
-
function
|
|
8430
|
-
if (
|
|
8429
|
+
function ae(e) {
|
|
8430
|
+
if (ie(e)) return;
|
|
8431
8431
|
let t = f.find((t) => t.id === e);
|
|
8432
|
-
t && (t.pane === "main" && f.filter((t) => t.pane === "main" && t.id !== e &&
|
|
8432
|
+
t && (t.pane === "main" && f.filter((t) => t.pane === "main" && t.id !== e && ie(t.id)).forEach((e) => T("toggle", e.id, !1)), T("toggle", e, !0), N.value = !1);
|
|
8433
8433
|
}
|
|
8434
|
-
function
|
|
8434
|
+
function oe(e) {
|
|
8435
8435
|
T("toggle", e, !1);
|
|
8436
8436
|
}
|
|
8437
|
-
function
|
|
8437
|
+
function se(e) {
|
|
8438
8438
|
j.value = e, A.value = !0;
|
|
8439
8439
|
}
|
|
8440
|
-
function
|
|
8440
|
+
function L(e) {
|
|
8441
8441
|
let t = f.find((t) => t.id === e);
|
|
8442
8442
|
if (!t?.params) return {};
|
|
8443
8443
|
let n = {};
|
|
@@ -8446,52 +8446,52 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8446
8446
|
for (let [e, t] of Object.entries(r)) typeof t == "number" && (i[e] = t);
|
|
8447
8447
|
return i;
|
|
8448
8448
|
}
|
|
8449
|
-
function
|
|
8450
|
-
let t =
|
|
8449
|
+
function R(e) {
|
|
8450
|
+
let t = L(e.id);
|
|
8451
8451
|
return e.params ? e.params.map((e) => t[e.key] ?? "").join(",") : "";
|
|
8452
8452
|
}
|
|
8453
|
-
function
|
|
8453
|
+
function z(e) {
|
|
8454
8454
|
j.value && T("updateParams", j.value, e), A.value = !1;
|
|
8455
8455
|
}
|
|
8456
|
-
function
|
|
8456
|
+
function ce(e) {
|
|
8457
8457
|
return f.find((t) => t.id === e)?.pane === "sub";
|
|
8458
8458
|
}
|
|
8459
|
-
function
|
|
8460
|
-
if (!
|
|
8459
|
+
function le(e, t) {
|
|
8460
|
+
if (!ce(t)) {
|
|
8461
8461
|
e.preventDefault();
|
|
8462
8462
|
return;
|
|
8463
8463
|
}
|
|
8464
|
-
|
|
8465
|
-
}
|
|
8466
|
-
function le(e, t) {
|
|
8467
|
-
!te.value || !se(t) || te.value === t || (F.value = t, e.dataTransfer && (e.dataTransfer.dropEffect = "move"));
|
|
8464
|
+
F.value = t, te.value = null, e.dataTransfer?.setData("text/plain", t), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
8468
8465
|
}
|
|
8469
8466
|
function ue(e, t) {
|
|
8470
|
-
|
|
8467
|
+
!F.value || !ce(t) || F.value === t || (te.value = t, e.dataTransfer && (e.dataTransfer.dropEffect = "move"));
|
|
8468
|
+
}
|
|
8469
|
+
function de(e, t) {
|
|
8470
|
+
let n = F.value || e.dataTransfer?.getData("text/plain") || "";
|
|
8471
8471
|
if (!n || n === t) {
|
|
8472
|
-
|
|
8472
|
+
fe();
|
|
8473
8473
|
return;
|
|
8474
8474
|
}
|
|
8475
|
-
if (!
|
|
8476
|
-
|
|
8475
|
+
if (!ce(n) || !ce(t)) {
|
|
8476
|
+
fe();
|
|
8477
8477
|
return;
|
|
8478
8478
|
}
|
|
8479
8479
|
let r = ne.value.findIndex((e) => e.id === n), i = ne.value.findIndex((e) => e.id === t);
|
|
8480
8480
|
if (r < 0 || i < 0) {
|
|
8481
|
-
|
|
8481
|
+
fe();
|
|
8482
8482
|
return;
|
|
8483
8483
|
}
|
|
8484
8484
|
let a = [...ne.value.map((e) => e.id)], [o] = a.splice(r, 1);
|
|
8485
8485
|
if (!o) {
|
|
8486
|
-
|
|
8486
|
+
fe();
|
|
8487
8487
|
return;
|
|
8488
8488
|
}
|
|
8489
|
-
a.splice(i, 0, o), T("reorderSubIndicators", a.filter((e) =>
|
|
8490
|
-
}
|
|
8491
|
-
function de() {
|
|
8492
|
-
F.value = null, te.value = null;
|
|
8489
|
+
a.splice(i, 0, o), T("reorderSubIndicators", a.filter((e) => ce(e))), fe();
|
|
8493
8490
|
}
|
|
8494
8491
|
function fe() {
|
|
8492
|
+
te.value = null, F.value = null;
|
|
8493
|
+
}
|
|
8494
|
+
function pe() {
|
|
8495
8495
|
if (!N.value && O.value && !P.value) {
|
|
8496
8496
|
let e = O.value.getBoundingClientRect(), t = window.innerWidth, n = e.left + e.width / 2;
|
|
8497
8497
|
n + 160 > t - 8 && (n = t - 160 - 8), n - 160 < 8 && (n = 168), ee.value = {
|
|
@@ -8501,29 +8501,29 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8501
8501
|
}
|
|
8502
8502
|
N.value = !N.value;
|
|
8503
8503
|
}
|
|
8504
|
-
function
|
|
8504
|
+
function me(e) {
|
|
8505
8505
|
let t = k.value && !k.value.contains(e.target), n = O.value && !O.value.contains(e.target);
|
|
8506
8506
|
t && n && (N.value = !1);
|
|
8507
8507
|
}
|
|
8508
|
-
function
|
|
8508
|
+
function B() {
|
|
8509
8509
|
N.value &&= !1;
|
|
8510
8510
|
}
|
|
8511
8511
|
return h(() => {
|
|
8512
|
-
P.value = typeof CSS < "u" && CSS.supports("anchor-name: --kmap-anchor") && CSS.supports("position-anchor: --kmap-anchor"), document.addEventListener("click",
|
|
8512
|
+
P.value = typeof CSS < "u" && CSS.supports("anchor-name: --kmap-anchor") && CSS.supports("position-anchor: --kmap-anchor"), document.addEventListener("click", me), window.addEventListener("resize", B);
|
|
8513
8513
|
}), g(() => {
|
|
8514
|
-
document.removeEventListener("click",
|
|
8514
|
+
document.removeEventListener("click", me), window.removeEventListener("resize", B);
|
|
8515
8515
|
}), (r, u) => (_(), o("div", $o, [
|
|
8516
8516
|
s("div", es, [s("div", ts, [(_(!0), o(e, null, b(ne.value, (t) => (_(), o(e, { key: t.id }, [t.id === re.value ? (_(), o("div", ns)) : a("", !0), s("div", {
|
|
8517
8517
|
class: p(["indicator-item", {
|
|
8518
|
-
draggable:
|
|
8519
|
-
"drag-over":
|
|
8520
|
-
"is-dragging":
|
|
8518
|
+
draggable: ce(t.id),
|
|
8519
|
+
"drag-over": te.value === t.id,
|
|
8520
|
+
"is-dragging": F.value === t.id
|
|
8521
8521
|
}]),
|
|
8522
|
-
draggable:
|
|
8523
|
-
onDragstart: (e) =>
|
|
8524
|
-
onDragover: D((e) =>
|
|
8525
|
-
onDrop: D((e) =>
|
|
8526
|
-
onDragend:
|
|
8522
|
+
draggable: ce(t.id),
|
|
8523
|
+
onDragstart: (e) => le(e, t.id),
|
|
8524
|
+
onDragover: D((e) => ue(e, t.id), ["prevent"]),
|
|
8525
|
+
onDrop: D((e) => de(e, t.id), ["prevent"]),
|
|
8526
|
+
onDragend: fe
|
|
8527
8527
|
}, [s("div", {
|
|
8528
8528
|
class: "indicator-btn-wrapper",
|
|
8529
8529
|
onMouseenter: (e) => M.value = t.id,
|
|
@@ -8531,12 +8531,12 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8531
8531
|
}, [s("button", { class: p(["indicator-btn", {
|
|
8532
8532
|
active: !0,
|
|
8533
8533
|
hovering: M.value === t.id
|
|
8534
|
-
}]) }, [s("span", as, [c(C(t.label) + " ", 1), t.params ? (_(), o("span", os, " (" + C(
|
|
8534
|
+
}]) }, [s("span", as, [c(C(t.label) + " ", 1), t.params ? (_(), o("span", os, " (" + C(R(t)) + ") ", 1)) : a("", !0)]), l(n, { name: "fade" }, {
|
|
8535
8535
|
default: E(() => [M.value === t.id ? (_(), o("div", ss, [
|
|
8536
8536
|
t.params ? (_(), o("button", {
|
|
8537
8537
|
key: 0,
|
|
8538
8538
|
class: "action-btn settings-btn",
|
|
8539
|
-
onClick: D((e) =>
|
|
8539
|
+
onClick: D((e) => se(t.id), ["stop"]),
|
|
8540
8540
|
title: "编辑参数"
|
|
8541
8541
|
}, [...u[2] ||= [s("svg", {
|
|
8542
8542
|
viewBox: "0 0 24 24",
|
|
@@ -8547,7 +8547,7 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8547
8547
|
t.params ? (_(), o("span", ls)) : a("", !0),
|
|
8548
8548
|
s("button", {
|
|
8549
8549
|
class: "action-btn remove-btn",
|
|
8550
|
-
onClick: D((e) =>
|
|
8550
|
+
onClick: D((e) => oe(t.id), ["stop"]),
|
|
8551
8551
|
title: "移除指标"
|
|
8552
8552
|
}, [...u[3] ||= [s("svg", {
|
|
8553
8553
|
viewBox: "0 0 24 24",
|
|
@@ -8561,7 +8561,7 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8561
8561
|
ref_key: "addBtnRef",
|
|
8562
8562
|
ref: O,
|
|
8563
8563
|
class: "add-btn",
|
|
8564
|
-
onClick:
|
|
8564
|
+
onClick: pe,
|
|
8565
8565
|
title: "添加指标"
|
|
8566
8566
|
}, [...u[4] ||= [s("svg", {
|
|
8567
8567
|
viewBox: "0 0 24 24",
|
|
@@ -8578,13 +8578,13 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8578
8578
|
style: m(P.value ? void 0 : ee.value)
|
|
8579
8579
|
}, [s("div", fs, [u[6] ||= s("div", { class: "menu-title" }, "主图指标", -1), s("div", ps, [(_(!0), o(e, null, b(w(v), (e) => (_(), o("button", {
|
|
8580
8580
|
key: e.id,
|
|
8581
|
-
class: p(["menu-item", { disabled:
|
|
8582
|
-
disabled:
|
|
8583
|
-
onClick: (t) =>
|
|
8581
|
+
class: p(["menu-item", { disabled: ie(e.id) }]),
|
|
8582
|
+
disabled: ie(e.id),
|
|
8583
|
+
onClick: (t) => ae(e.id)
|
|
8584
8584
|
}, [
|
|
8585
8585
|
c(C(e.label) + " ", 1),
|
|
8586
8586
|
s("span", hs, " (" + C(e.name) + ") ", 1),
|
|
8587
|
-
|
|
8587
|
+
ie(e.id) ? (_(), o("span", gs, [...u[5] ||= [s("svg", {
|
|
8588
8588
|
viewBox: "0 0 24 24",
|
|
8589
8589
|
width: "14",
|
|
8590
8590
|
height: "14",
|
|
@@ -8592,13 +8592,13 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8592
8592
|
}, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })], -1)]])) : a("", !0)
|
|
8593
8593
|
], 10, ms))), 128))])]), s("div", _s, [u[8] ||= s("div", { class: "menu-title" }, "副图指标", -1), s("div", vs, [(_(!0), o(e, null, b(w(x), (e) => (_(), o("button", {
|
|
8594
8594
|
key: e.id,
|
|
8595
|
-
class: p(["menu-item", { disabled:
|
|
8596
|
-
disabled:
|
|
8597
|
-
onClick: (t) =>
|
|
8595
|
+
class: p(["menu-item", { disabled: ie(e.id) }]),
|
|
8596
|
+
disabled: ie(e.id),
|
|
8597
|
+
onClick: (t) => ae(e.id)
|
|
8598
8598
|
}, [
|
|
8599
8599
|
c(C(e.label) + " ", 1),
|
|
8600
8600
|
s("span", bs, " (" + C(e.name) + ") ", 1),
|
|
8601
|
-
|
|
8601
|
+
ie(e.id) ? (_(), o("span", xs, [...u[7] ||= [s("svg", {
|
|
8602
8602
|
viewBox: "0 0 24 24",
|
|
8603
8603
|
width: "14",
|
|
8604
8604
|
height: "14",
|
|
@@ -8614,9 +8614,9 @@ var mo = { class: "kline-tooltip__title" }, ho = { key: 0 }, go = { class: "klin
|
|
|
8614
8614
|
"indicator-name": I.value.name,
|
|
8615
8615
|
"indicator-description": I.value.description,
|
|
8616
8616
|
params: I.value.params || [],
|
|
8617
|
-
values:
|
|
8617
|
+
values: L(I.value.id),
|
|
8618
8618
|
onClose: u[1] ||= (e) => A.value = !1,
|
|
8619
|
-
onConfirm:
|
|
8619
|
+
onConfirm: z
|
|
8620
8620
|
}, null, 8, [
|
|
8621
8621
|
"visible",
|
|
8622
8622
|
"indicator-id",
|
|
@@ -9185,7 +9185,7 @@ var Ls = class {
|
|
|
9185
9185
|
this.hoveredIndex = null;
|
|
9186
9186
|
return;
|
|
9187
9187
|
}
|
|
9188
|
-
let E = i - w.top, D = w.yAxis.priceToY(T.open), O = w.yAxis.priceToY(T.close), k = w.yAxis.priceToY(T.high), A = w.yAxis.priceToY(T.low), j = Math.min(D, O), M = Math.max(D, O), N = h - this.kLinePositions[x], ee = v / 2, P = Math.abs(M - j),
|
|
9188
|
+
let E = i - w.top, D = w.yAxis.priceToY(T.open), O = w.yAxis.priceToY(T.close), k = w.yAxis.priceToY(T.high), A = w.yAxis.priceToY(T.low), j = Math.min(D, O), M = Math.max(D, O), N = h - this.kLinePositions[x], ee = v / 2, P = Math.abs(M - j), te = P < 8 ? (j + M) / 2 - 8 / 2 : j, F = P < 8 ? (j + M) / 2 + 8 / 2 : M, ne = E >= te && E <= F && N >= 0 && N <= v, re = Math.abs(N - ee) <= 3 && E >= Math.min(k, A) && E <= Math.max(k, A);
|
|
9189
9189
|
if (!ne && !re) {
|
|
9190
9190
|
this.hoveredIndex = null;
|
|
9191
9191
|
return;
|
|
@@ -9198,10 +9198,10 @@ var Ls = class {
|
|
|
9198
9198
|
};
|
|
9199
9199
|
return;
|
|
9200
9200
|
}
|
|
9201
|
-
let I = this.tooltipSize.width,
|
|
9201
|
+
let I = this.tooltipSize.width, ie = this.tooltipSize.height, ae = r + 14, oe = r - 14 - I, se = ae + I + 12 <= s ? ae : oe, L = i + 14, R = Math.max(12, s - I - 12), z = Math.max(12, c - ie - 12);
|
|
9202
9202
|
this.tooltipPos = {
|
|
9203
|
-
x: Math.min(Math.max(
|
|
9204
|
-
y: Math.min(Math.max(
|
|
9203
|
+
x: Math.min(Math.max(se, 12), R),
|
|
9204
|
+
y: Math.min(Math.max(L, 12), z)
|
|
9205
9205
|
};
|
|
9206
9206
|
}
|
|
9207
9207
|
reset() {
|
|
@@ -9229,8 +9229,8 @@ var Ls = class {
|
|
|
9229
9229
|
resize(e, t, n) {
|
|
9230
9230
|
let r = this.dom.plotCanvas, i = this.dom.yAxisCanvas;
|
|
9231
9231
|
r.width = Math.round(e * n), r.height = Math.round(t * n), r.style.width = `${r.width / n}px`, r.style.height = `${r.height / n}px`;
|
|
9232
|
-
let a = this.opt.rightAxisWidth + (this.opt.priceLabelWidth || 60);
|
|
9233
|
-
i.width = Math.round(
|
|
9232
|
+
let a = this.opt.rightAxisWidth + (this.opt.priceLabelWidth || 60), o = i.parentElement?.clientWidth ?? 0, s = o > 0 ? o : a;
|
|
9233
|
+
i.width = Math.round(s * n), i.height = Math.round(t * n), i.style.width = `${s}px`, i.style.height = `${i.height / n}px`;
|
|
9234
9234
|
}
|
|
9235
9235
|
destroy() {}
|
|
9236
9236
|
};
|
|
@@ -12358,11 +12358,12 @@ var ml = class e {
|
|
|
12358
12358
|
}
|
|
12359
12359
|
}
|
|
12360
12360
|
applyRenderState(e, t, n) {
|
|
12361
|
-
this.
|
|
12361
|
+
let r = n === void 0 ? this.currentZoomLevel : Math.max(1, Math.min(this.zoomLevelCount, n));
|
|
12362
|
+
(this.opt.kWidth !== e || this.opt.kGap !== t || this.currentZoomLevel !== r) && (this.opt = {
|
|
12362
12363
|
...this.opt,
|
|
12363
12364
|
kWidth: e,
|
|
12364
12365
|
kGap: t
|
|
12365
|
-
}, n !== void 0 && (this.currentZoomLevel =
|
|
12366
|
+
}, n !== void 0 && (this.currentZoomLevel = r), this.scheduleDraw());
|
|
12366
12367
|
}
|
|
12367
12368
|
getZoomLevelCount() {
|
|
12368
12369
|
return this.zoomLevelCount;
|
|
@@ -12768,8 +12769,8 @@ var ml = class e {
|
|
|
12768
12769
|
plotHeight: o,
|
|
12769
12770
|
scrollLeft: l,
|
|
12770
12771
|
dpr: s
|
|
12771
|
-
};
|
|
12772
|
-
return this.viewport = u, this.onViewportChange?.(u), u;
|
|
12772
|
+
}, d = this.viewport, f = !d || d.viewWidth !== u.viewWidth || d.viewHeight !== u.viewHeight || d.plotWidth !== u.plotWidth || d.plotHeight !== u.plotHeight || d.scrollLeft !== u.scrollLeft || d.dpr !== u.dpr;
|
|
12773
|
+
return this.viewport = u, f && this.onViewportChange?.(u), u;
|
|
12773
12774
|
}
|
|
12774
12775
|
}, hl = 3;
|
|
12775
12776
|
function gl(e, t) {
|
|
@@ -13953,10 +13954,10 @@ var Gu = d({
|
|
|
13953
13954
|
}))], 40, $u)])
|
|
13954
13955
|
]));
|
|
13955
13956
|
}
|
|
13956
|
-
}), [["__scopeId", "data-v-f1125609"]]), td = { class: "chart-wrapper" }, nd = {
|
|
13957
|
+
}), [["__scopeId", "data-v-f1125609"]]), td = { class: "chart-wrapper" }, nd = {
|
|
13957
13958
|
class: "pane-separator-layer",
|
|
13958
13959
|
"aria-hidden": "true"
|
|
13959
|
-
},
|
|
13960
|
+
}, rd = 4, id = /* @__PURE__ */ Oo(/* @__PURE__ */ u({
|
|
13960
13961
|
__name: "KLineChart",
|
|
13961
13962
|
props: {
|
|
13962
13963
|
semanticConfig: {},
|
|
@@ -13974,44 +13975,44 @@ var Gu = d({
|
|
|
13974
13975
|
}
|
|
13975
13976
|
},
|
|
13976
13977
|
emits: ["zoomLevelChange", "toggleFullscreen"],
|
|
13977
|
-
setup(
|
|
13978
|
-
let u =
|
|
13979
|
-
initialZoomLevel:
|
|
13980
|
-
minKWidth:
|
|
13981
|
-
maxKWidth:
|
|
13982
|
-
zoomLevels:
|
|
13983
|
-
rightAxisWidth:
|
|
13984
|
-
priceLabelWidth:
|
|
13978
|
+
setup(n, { expose: c, emit: u }) {
|
|
13979
|
+
let d = n, v = u, x = y(null), C = y(null), E = y(null), D = y(null), O = y(null), k = y(null), A = S(null), j = S(null), M = Vs({
|
|
13980
|
+
initialZoomLevel: d.initialZoomLevel ?? 1,
|
|
13981
|
+
minKWidth: d.minKWidth,
|
|
13982
|
+
maxKWidth: d.maxKWidth,
|
|
13983
|
+
zoomLevels: d.zoomLevels,
|
|
13984
|
+
rightAxisWidth: d.rightAxisWidth,
|
|
13985
|
+
priceLabelWidth: d.priceLabelWidth
|
|
13985
13986
|
});
|
|
13986
|
-
|
|
13987
|
-
minKWidth:
|
|
13988
|
-
maxKWidth:
|
|
13989
|
-
zoomLevelCount:
|
|
13990
|
-
dpr:
|
|
13991
|
-
}), _l(
|
|
13992
|
-
let
|
|
13993
|
-
function
|
|
13994
|
-
|
|
13995
|
-
}
|
|
13996
|
-
function
|
|
13987
|
+
M.actions.setZoomState(M.state.zoomLevel, gl(M.state.zoomLevel, {
|
|
13988
|
+
minKWidth: d.minKWidth,
|
|
13989
|
+
maxKWidth: d.maxKWidth,
|
|
13990
|
+
zoomLevelCount: d.zoomLevels,
|
|
13991
|
+
dpr: M.state.viewportDpr
|
|
13992
|
+
}), _l(M.state.viewportDpr)), r(() => M.state.dataLength), r(() => M.state.viewportDpr);
|
|
13993
|
+
let N = r(() => M.state.zoomLevel), ee = r(() => M.state.kWidth), P = r(() => M.state.kGap), te = r(() => M.state.paneRatios), F = r(() => M.state.selectedDrawingId), ne = r(() => M.state.dataVersion);
|
|
13994
|
+
function re() {
|
|
13995
|
+
A.value?.scheduleDraw();
|
|
13996
|
+
}
|
|
13997
|
+
function I(e, t, n) {
|
|
13997
13998
|
let r = e.getBoundingClientRect();
|
|
13998
13999
|
return {
|
|
13999
14000
|
width: Math.max(t, Math.round(r.width)),
|
|
14000
14001
|
height: Math.max(n, Math.round(r.height))
|
|
14001
14002
|
};
|
|
14002
14003
|
}
|
|
14003
|
-
function
|
|
14004
|
+
function ie(e) {
|
|
14004
14005
|
if (!e) return;
|
|
14005
|
-
let t =
|
|
14006
|
-
|
|
14006
|
+
let t = I(e, 180, 80);
|
|
14007
|
+
A.value?.interaction.setTooltipSize(t);
|
|
14007
14008
|
}
|
|
14008
|
-
function
|
|
14009
|
-
e && (
|
|
14009
|
+
function ae(e) {
|
|
14010
|
+
e && (le.value = I(e, 120, 60));
|
|
14010
14011
|
}
|
|
14011
|
-
let
|
|
14012
|
+
let oe = y({
|
|
14012
14013
|
x: 0,
|
|
14013
14014
|
y: 0
|
|
14014
|
-
}),
|
|
14015
|
+
}), se = y(!1), L = S({
|
|
14015
14016
|
crosshairPos: null,
|
|
14016
14017
|
crosshairIndex: null,
|
|
14017
14018
|
crosshairPrice: null,
|
|
@@ -14029,84 +14030,105 @@ var Gu = d({
|
|
|
14029
14030
|
isHoveringPaneBoundary: !1,
|
|
14030
14031
|
hoveredPaneBoundaryId: null,
|
|
14031
14032
|
isHoveringRightAxis: !1
|
|
14032
|
-
}),
|
|
14033
|
-
let e =
|
|
14034
|
-
return e ?
|
|
14035
|
-
}),
|
|
14033
|
+
}), R = S(null), z = r(() => {
|
|
14034
|
+
let e = F.value;
|
|
14035
|
+
return e ? M.state.drawings.find((t) => t.id === e) ?? null : null;
|
|
14036
|
+
}), ce = y([]), le = y({
|
|
14036
14037
|
width: 220,
|
|
14037
14038
|
height: 120
|
|
14038
|
-
}),
|
|
14039
|
-
let e =
|
|
14039
|
+
}), ue = r(() => {
|
|
14040
|
+
let e = D.value, t = O.value;
|
|
14041
|
+
return !e || !t ? {
|
|
14042
|
+
x: 0,
|
|
14043
|
+
y: 0
|
|
14044
|
+
} : {
|
|
14045
|
+
x: e.offsetLeft,
|
|
14046
|
+
y: e.offsetTop
|
|
14047
|
+
};
|
|
14048
|
+
}), de = r(() => L.value.hoveredMarkerData), fe = r(() => L.value.hoveredCustomMarker), pe = r(() => L.value.isDragging), me = r(() => L.value.isResizingPaneBoundary), B = r(() => L.value.isHoveringPaneBoundary), he = r(() => L.value.hoveredPaneBoundaryId), ge = r(() => L.value.isHoveringRightAxis), _e = r(() => L.value.hoveredIndex), ve = r(() => L.value.crosshairIndex), ye = r(() => {
|
|
14049
|
+
let e = L.value.hoveredIndex;
|
|
14040
14050
|
if (typeof e != "number") return null;
|
|
14041
|
-
|
|
14042
|
-
let t =
|
|
14051
|
+
ne.value;
|
|
14052
|
+
let t = A.value?.getData();
|
|
14043
14053
|
return t && e >= 0 && e < t.length ? t[e] : null;
|
|
14044
|
-
}),
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
}),
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
}
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14054
|
+
}), be = r(() => L.value.hoveredIndex), xe = r(() => L.value.tooltipPos), Se = r(() => ({
|
|
14055
|
+
x: xe.value.x + ue.value.x,
|
|
14056
|
+
y: xe.value.y + ue.value.y
|
|
14057
|
+
})), Ce = r(() => ({
|
|
14058
|
+
left: `${Se.value.x}px`,
|
|
14059
|
+
top: `${Se.value.y}px`
|
|
14060
|
+
})), we = r(() => ({
|
|
14061
|
+
x: oe.value.x + ue.value.x,
|
|
14062
|
+
y: oe.value.y + ue.value.y
|
|
14063
|
+
})), Te = r(() => ({
|
|
14064
|
+
left: `${we.value.x}px`,
|
|
14065
|
+
top: `${we.value.y}px`
|
|
14066
|
+
})), Ee = r(() => L.value.tooltipAnchorPlacement), De = r(() => {
|
|
14067
|
+
let e = A.value?.getViewport(), t = D.value, n = e?.plotWidth ?? (t ? t.clientWidth : 0);
|
|
14068
|
+
return oe.value.x + 12 + le.value.width + 12 > n ? "left-bottom" : "right-bottom";
|
|
14069
|
+
}), Oe = r(() => (ne.value, A.value?.getData() ?? []));
|
|
14070
|
+
function ke(e) {
|
|
14071
|
+
R.value?.setTool(e);
|
|
14072
|
+
}
|
|
14073
|
+
function Ae(e) {
|
|
14074
|
+
let t = z.value;
|
|
14075
|
+
!t || !R.value || (R.value.updateDrawingStyle(t.id, e), M.actions.bumpDrawingVersion());
|
|
14076
|
+
}
|
|
14077
|
+
function je() {
|
|
14078
|
+
let e = z.value;
|
|
14079
|
+
!e || !R.value || (R.value.removeDrawing(e.id), M.actions.setSelectedDrawingId(null), M.actions.bumpDrawingVersion(), M.actions.setDrawings(R.value.getDrawings()));
|
|
14080
|
+
}
|
|
14081
|
+
function Me(e) {
|
|
14082
|
+
let t = D.value;
|
|
14061
14083
|
if (t) {
|
|
14062
|
-
if (
|
|
14063
|
-
|
|
14084
|
+
if (R.value?.onPointerDown(e, t)) {
|
|
14085
|
+
M.actions.setDrawings(R.value.getDrawings()), M.actions.bumpDrawingVersion();
|
|
14064
14086
|
return;
|
|
14065
14087
|
}
|
|
14066
|
-
|
|
14088
|
+
A.value?.interaction.onPointerDown(e);
|
|
14067
14089
|
}
|
|
14068
14090
|
}
|
|
14069
|
-
function
|
|
14070
|
-
let t =
|
|
14091
|
+
function Ne(e) {
|
|
14092
|
+
let t = D.value;
|
|
14071
14093
|
if (t) {
|
|
14072
14094
|
let n = t.getBoundingClientRect();
|
|
14073
|
-
if (
|
|
14095
|
+
if (oe.value = {
|
|
14074
14096
|
x: e.clientX - n.left,
|
|
14075
14097
|
y: e.clientY - n.top
|
|
14076
|
-
},
|
|
14077
|
-
|
|
14098
|
+
}, R.value?.onPointerMove(e, t)) {
|
|
14099
|
+
M.actions.setDrawings(R.value.getDrawings());
|
|
14078
14100
|
return;
|
|
14079
14101
|
}
|
|
14080
14102
|
}
|
|
14081
|
-
|
|
14103
|
+
A.value?.interaction.onPointerMove(e);
|
|
14082
14104
|
}
|
|
14083
|
-
function
|
|
14084
|
-
let t =
|
|
14085
|
-
if (t &&
|
|
14086
|
-
|
|
14105
|
+
function Pe(e) {
|
|
14106
|
+
let t = D.value;
|
|
14107
|
+
if (t && R.value?.onPointerUp(e, t)) {
|
|
14108
|
+
M.actions.setDrawings(R.value.getDrawings());
|
|
14087
14109
|
return;
|
|
14088
14110
|
}
|
|
14089
|
-
|
|
14111
|
+
A.value?.interaction.onPointerUp(e);
|
|
14090
14112
|
}
|
|
14091
|
-
function
|
|
14092
|
-
|
|
14113
|
+
function Fe(e) {
|
|
14114
|
+
A.value?.interaction.onPointerLeave(e);
|
|
14093
14115
|
}
|
|
14094
|
-
function
|
|
14095
|
-
|
|
14116
|
+
function Ie(e) {
|
|
14117
|
+
A.value?.interaction.onRightAxisPointerDown(e);
|
|
14096
14118
|
}
|
|
14097
|
-
function
|
|
14098
|
-
|
|
14119
|
+
function Le(e) {
|
|
14120
|
+
A.value?.interaction.onRightAxisPointerMove(e);
|
|
14099
14121
|
}
|
|
14100
|
-
function
|
|
14101
|
-
|
|
14122
|
+
function Re(e) {
|
|
14123
|
+
A.value?.interaction.onRightAxisPointerUp(e);
|
|
14102
14124
|
}
|
|
14103
|
-
function
|
|
14104
|
-
|
|
14125
|
+
function ze(e) {
|
|
14126
|
+
A.value?.interaction.onRightAxisPointerLeave(e);
|
|
14105
14127
|
}
|
|
14106
|
-
function
|
|
14107
|
-
|
|
14128
|
+
function Be() {
|
|
14129
|
+
A.value?.interaction.onScroll();
|
|
14108
14130
|
}
|
|
14109
|
-
let
|
|
14131
|
+
let V = y([]), Ve = y({}), H = y([]), He = {
|
|
14110
14132
|
VOLUME: {
|
|
14111
14133
|
defaultParams: {},
|
|
14112
14134
|
getTitleInfo: () => ({
|
|
@@ -14164,10 +14186,10 @@ var Gu = d({
|
|
|
14164
14186
|
defaultParams: { period: 9 },
|
|
14165
14187
|
getTitleInfo: (e, t, n) => t === null ? null : Hc(e, t, n.period ?? 9)
|
|
14166
14188
|
}
|
|
14167
|
-
},
|
|
14168
|
-
function
|
|
14169
|
-
let e =
|
|
14170
|
-
return
|
|
14189
|
+
}, Ue = Object.keys(He);
|
|
14190
|
+
function We() {
|
|
14191
|
+
let e = te.value.main ?? 3;
|
|
14192
|
+
return H.value.length === 0 ? [{
|
|
14171
14193
|
id: "main",
|
|
14172
14194
|
ratio: e,
|
|
14173
14195
|
visible: !0,
|
|
@@ -14177,239 +14199,239 @@ var Gu = d({
|
|
|
14177
14199
|
ratio: e,
|
|
14178
14200
|
visible: !0,
|
|
14179
14201
|
role: "price"
|
|
14180
|
-
}, ...
|
|
14202
|
+
}, ...H.value.map((e) => ({
|
|
14181
14203
|
id: e.id,
|
|
14182
|
-
ratio:
|
|
14204
|
+
ratio: te.value[e.id] ?? 1,
|
|
14183
14205
|
visible: !0,
|
|
14184
14206
|
role: "indicator"
|
|
14185
14207
|
}))];
|
|
14186
14208
|
}
|
|
14187
|
-
function
|
|
14188
|
-
return { ...
|
|
14209
|
+
function Ge(e) {
|
|
14210
|
+
return { ...He[e].defaultParams };
|
|
14189
14211
|
}
|
|
14190
|
-
function
|
|
14191
|
-
if (
|
|
14212
|
+
function Ke(e = "VOLUME", t) {
|
|
14213
|
+
if (H.value.length >= rd) return !1;
|
|
14192
14214
|
let n = `sub_${e}`;
|
|
14193
|
-
if (
|
|
14194
|
-
if (!
|
|
14215
|
+
if (H.value.some((e) => e.id === n)) return !0;
|
|
14216
|
+
if (!A.value?.createSubPane(e, t ?? Ge(e))) return !1;
|
|
14195
14217
|
let r = Zl({
|
|
14196
14218
|
paneId: n,
|
|
14197
14219
|
title: e,
|
|
14198
|
-
getTitleInfo: () =>
|
|
14220
|
+
getTitleInfo: () => Qe(n)
|
|
14199
14221
|
});
|
|
14200
|
-
return
|
|
14222
|
+
return A.value?.useRenderer(r), H.value.push({
|
|
14201
14223
|
id: n,
|
|
14202
14224
|
indicatorId: e,
|
|
14203
14225
|
rendererName: `${e.toLowerCase()}_${n}`,
|
|
14204
14226
|
paneTitleRendererName: r.name,
|
|
14205
|
-
params: t ??
|
|
14206
|
-
}),
|
|
14227
|
+
params: t ?? Ge(e)
|
|
14228
|
+
}), V.value.includes(e) || V.value.push(e), re(), !0;
|
|
14207
14229
|
}
|
|
14208
|
-
function
|
|
14209
|
-
let t =
|
|
14230
|
+
function qe(e) {
|
|
14231
|
+
let t = H.value.findIndex((t) => t.id === e);
|
|
14210
14232
|
if (t === -1) return;
|
|
14211
|
-
let n =
|
|
14212
|
-
n && (
|
|
14233
|
+
let n = H.value[t];
|
|
14234
|
+
n && (A.value?.removeRenderer(n.paneTitleRendererName), A.value?.removeSubPane(n.indicatorId), H.value.splice(t, 1), H.value.some((e) => e.indicatorId === n.indicatorId) || (V.value = V.value.filter((e) => e !== n.indicatorId)));
|
|
14213
14235
|
}
|
|
14214
|
-
function
|
|
14215
|
-
for (let e of
|
|
14216
|
-
|
|
14236
|
+
function Je() {
|
|
14237
|
+
for (let e of H.value) A.value?.removeRenderer(e.paneTitleRendererName);
|
|
14238
|
+
A.value?.clearSubPanes(), H.value = [], V.value = V.value.filter((e) => !Ue.includes(e));
|
|
14217
14239
|
}
|
|
14218
|
-
function
|
|
14219
|
-
let e =
|
|
14220
|
-
if (e) for (let t of e) t.enabled && (
|
|
14240
|
+
function Ye() {
|
|
14241
|
+
let e = d.semanticConfig.indicators?.main;
|
|
14242
|
+
if (e) for (let t of e) t.enabled && (V.value.includes(t.type) || V.value.push(t.type), t.params && (Ve.value[t.type] = t.params));
|
|
14221
14243
|
}
|
|
14222
|
-
T([
|
|
14223
|
-
let t =
|
|
14244
|
+
T([V, Ve], ([e]) => {
|
|
14245
|
+
let t = A.value;
|
|
14224
14246
|
t && (t.updateRendererConfig("mainIndicatorLegend", { indicators: {
|
|
14225
14247
|
MA: {
|
|
14226
14248
|
enabled: e.includes("MA"),
|
|
14227
|
-
params:
|
|
14249
|
+
params: Ve.value.MA || {}
|
|
14228
14250
|
},
|
|
14229
14251
|
BOLL: {
|
|
14230
14252
|
enabled: e.includes("BOLL"),
|
|
14231
|
-
params:
|
|
14253
|
+
params: Ve.value.BOLL || {}
|
|
14232
14254
|
},
|
|
14233
14255
|
EXPMA: {
|
|
14234
14256
|
enabled: e.includes("EXPMA"),
|
|
14235
|
-
params:
|
|
14257
|
+
params: Ve.value.EXPMA || {}
|
|
14236
14258
|
},
|
|
14237
14259
|
ENE: {
|
|
14238
14260
|
enabled: e.includes("ENE"),
|
|
14239
|
-
params:
|
|
14261
|
+
params: Ve.value.ENE || {}
|
|
14240
14262
|
}
|
|
14241
|
-
} }), t.setRendererEnabled("ma", e.includes("MA")), t.setRendererEnabled("boll", e.includes("BOLL")), t.setRendererEnabled("expma", e.includes("EXPMA")), t.setRendererEnabled("ene", e.includes("ENE")),
|
|
14263
|
+
} }), t.setRendererEnabled("ma", e.includes("MA")), t.setRendererEnabled("boll", e.includes("BOLL")), t.setRendererEnabled("expma", e.includes("EXPMA")), t.setRendererEnabled("ene", e.includes("ENE")), re());
|
|
14242
14264
|
}, { deep: !0 });
|
|
14243
|
-
function
|
|
14244
|
-
let e =
|
|
14245
|
-
|
|
14265
|
+
function Xe() {
|
|
14266
|
+
let e = A.value?.getSubPaneIndicators() ?? [];
|
|
14267
|
+
H.value = [];
|
|
14246
14268
|
for (let t of e) {
|
|
14247
14269
|
let e = `sub_${t}`, n = Zl({
|
|
14248
14270
|
paneId: e,
|
|
14249
14271
|
title: t,
|
|
14250
|
-
getTitleInfo: () =>
|
|
14272
|
+
getTitleInfo: () => Qe(e)
|
|
14251
14273
|
});
|
|
14252
|
-
|
|
14274
|
+
A.value?.useRenderer(n), H.value.push({
|
|
14253
14275
|
id: e,
|
|
14254
14276
|
indicatorId: t,
|
|
14255
14277
|
rendererName: `${t.toLowerCase()}_${e}`,
|
|
14256
14278
|
paneTitleRendererName: n.name,
|
|
14257
|
-
params:
|
|
14258
|
-
}),
|
|
14279
|
+
params: Ge(t)
|
|
14280
|
+
}), V.value.includes(t) || V.value.push(t);
|
|
14259
14281
|
}
|
|
14260
|
-
|
|
14282
|
+
re();
|
|
14261
14283
|
}
|
|
14262
|
-
function
|
|
14263
|
-
let n =
|
|
14284
|
+
function Ze(e, t) {
|
|
14285
|
+
let n = H.value.find((t) => t.id === e);
|
|
14264
14286
|
if (!n) return;
|
|
14265
14287
|
let r = n.indicatorId;
|
|
14266
|
-
|
|
14288
|
+
A.value?.removeRenderer(n.paneTitleRendererName), A.value?.removeSubPane(r), A.value?.createSubPane(t, Ge(t));
|
|
14267
14289
|
let i = `sub_${t}`, a = Zl({
|
|
14268
14290
|
paneId: i,
|
|
14269
14291
|
title: t,
|
|
14270
|
-
getTitleInfo: () =>
|
|
14292
|
+
getTitleInfo: () => Qe(i)
|
|
14271
14293
|
});
|
|
14272
|
-
|
|
14273
|
-
let o =
|
|
14274
|
-
o !== -1 && (
|
|
14294
|
+
A.value?.useRenderer(a);
|
|
14295
|
+
let o = H.value.findIndex((t) => t.id === e);
|
|
14296
|
+
o !== -1 && (H.value[o] = {
|
|
14275
14297
|
id: i,
|
|
14276
14298
|
indicatorId: t,
|
|
14277
14299
|
rendererName: `${t.toLowerCase()}_${i}`,
|
|
14278
14300
|
paneTitleRendererName: a.name,
|
|
14279
|
-
params:
|
|
14280
|
-
}),
|
|
14301
|
+
params: Ge(t)
|
|
14302
|
+
}), V.value = V.value.filter((e) => e !== r), V.value.includes(t) || V.value.push(t);
|
|
14281
14303
|
}
|
|
14282
|
-
function
|
|
14283
|
-
let t =
|
|
14304
|
+
function Qe(e) {
|
|
14305
|
+
let t = H.value.find((t) => t.id === e);
|
|
14284
14306
|
if (!t) return null;
|
|
14285
|
-
let n =
|
|
14307
|
+
let n = A.value?.getData();
|
|
14286
14308
|
if (!n || n.length === 0) return null;
|
|
14287
|
-
let r =
|
|
14288
|
-
return r.getTitleInfo(n,
|
|
14309
|
+
let r = He[t.indicatorId], i = t.params;
|
|
14310
|
+
return r.getTitleInfo(n, ve.value, i);
|
|
14289
14311
|
}
|
|
14290
|
-
function
|
|
14312
|
+
function $e(e, t) {
|
|
14291
14313
|
if (e === "MA" || e === "BOLL" || e === "EXPMA" || e === "ENE") {
|
|
14292
|
-
t ?
|
|
14314
|
+
t ? V.value.includes(e) || V.value.push(e) : V.value = V.value.filter((t) => t !== e);
|
|
14293
14315
|
return;
|
|
14294
14316
|
}
|
|
14295
|
-
if (
|
|
14317
|
+
if (Ue.includes(e)) {
|
|
14296
14318
|
if (t) {
|
|
14297
|
-
if (
|
|
14298
|
-
if (!
|
|
14299
|
-
let t =
|
|
14300
|
-
t &&
|
|
14319
|
+
if (V.value.includes(e) || V.value.push(e), H.value.find((t) => t.indicatorId === e)) return;
|
|
14320
|
+
if (!Ke(e)) {
|
|
14321
|
+
let t = H.value[H.value.length - 1];
|
|
14322
|
+
t && Ze(t.id, e);
|
|
14301
14323
|
}
|
|
14302
|
-
} else
|
|
14303
|
-
|
|
14324
|
+
} else V.value = V.value.filter((t) => t !== e), H.value.filter((t) => t.indicatorId === e).forEach((e) => qe(e.id));
|
|
14325
|
+
re();
|
|
14304
14326
|
}
|
|
14305
14327
|
}
|
|
14306
|
-
function
|
|
14307
|
-
|
|
14328
|
+
function et() {
|
|
14329
|
+
A.value?.updateRendererConfig("mainIndicatorLegend", { indicators: {
|
|
14308
14330
|
MA: {
|
|
14309
|
-
enabled:
|
|
14310
|
-
params:
|
|
14331
|
+
enabled: V.value.includes("MA"),
|
|
14332
|
+
params: Ve.value.MA || {}
|
|
14311
14333
|
},
|
|
14312
14334
|
BOLL: {
|
|
14313
|
-
enabled:
|
|
14314
|
-
params:
|
|
14335
|
+
enabled: V.value.includes("BOLL"),
|
|
14336
|
+
params: Ve.value.BOLL || {}
|
|
14315
14337
|
},
|
|
14316
14338
|
EXPMA: {
|
|
14317
|
-
enabled:
|
|
14318
|
-
params:
|
|
14339
|
+
enabled: V.value.includes("EXPMA"),
|
|
14340
|
+
params: Ve.value.EXPMA || {}
|
|
14319
14341
|
},
|
|
14320
14342
|
ENE: {
|
|
14321
|
-
enabled:
|
|
14322
|
-
params:
|
|
14343
|
+
enabled: V.value.includes("ENE"),
|
|
14344
|
+
params: Ve.value.ENE || {}
|
|
14323
14345
|
}
|
|
14324
14346
|
} });
|
|
14325
14347
|
}
|
|
14326
|
-
function
|
|
14327
|
-
if (
|
|
14328
|
-
e === "BOLL" &&
|
|
14348
|
+
function tt(e, t) {
|
|
14349
|
+
if (Ve.value[e] = t, e === "MA" || e === "BOLL" || e === "EXPMA" || e === "ENE") {
|
|
14350
|
+
e === "BOLL" && A.value?.updateRendererConfig("boll", t), e === "EXPMA" && A.value?.updateRendererConfig("expma", t), e === "ENE" && A.value?.updateRendererConfig("ene", t), et(), re();
|
|
14329
14351
|
return;
|
|
14330
14352
|
}
|
|
14331
|
-
|
|
14332
|
-
e.params = { ...t },
|
|
14333
|
-
}),
|
|
14353
|
+
Ue.includes(e) && H.value.filter((t) => t.indicatorId === e).forEach((e) => {
|
|
14354
|
+
e.params = { ...t }, A.value?.updateRendererConfig(e.rendererName, t);
|
|
14355
|
+
}), re();
|
|
14334
14356
|
}
|
|
14335
|
-
function
|
|
14336
|
-
if (!e.length ||
|
|
14337
|
-
let t = e.filter((e) =>
|
|
14357
|
+
function nt(e) {
|
|
14358
|
+
if (!e.length || H.value.length <= 1) return;
|
|
14359
|
+
let t = e.filter((e) => Ue.includes(e));
|
|
14338
14360
|
if (!t.length) return;
|
|
14339
|
-
let n = new Map(
|
|
14361
|
+
let n = new Map(H.value.map((e) => [e.indicatorId, e])), r = [];
|
|
14340
14362
|
for (let e of t) {
|
|
14341
14363
|
let t = n.get(e);
|
|
14342
14364
|
t && (r.push(t), n.delete(e));
|
|
14343
14365
|
}
|
|
14344
14366
|
if (r.length === 0) return;
|
|
14345
|
-
for (let e of
|
|
14346
|
-
let i =
|
|
14367
|
+
for (let e of H.value) n.has(e.indicatorId) && (r.push(e), n.delete(e.indicatorId));
|
|
14368
|
+
let i = H.value.map((e) => e.id), a = r.map((e) => e.id);
|
|
14347
14369
|
if (i.join("|") === a.join("|")) return;
|
|
14348
|
-
|
|
14349
|
-
let o =
|
|
14350
|
-
|
|
14351
|
-
let c =
|
|
14352
|
-
c && c.updatePaneLayout(
|
|
14353
|
-
}
|
|
14354
|
-
let
|
|
14355
|
-
function
|
|
14356
|
-
let e =
|
|
14370
|
+
H.value = r;
|
|
14371
|
+
let o = V.value.filter((e) => !Ue.includes(e)), s = H.value.map((e) => e.indicatorId);
|
|
14372
|
+
V.value = [...o, ...s];
|
|
14373
|
+
let c = A.value;
|
|
14374
|
+
c && c.updatePaneLayout(We());
|
|
14375
|
+
}
|
|
14376
|
+
let rt = r(() => d.rightAxisWidth + d.priceLabelWidth), it = M.computed.totalWidth;
|
|
14377
|
+
function at() {
|
|
14378
|
+
let e = D.value, t = A.value;
|
|
14357
14379
|
if (!e || !t) return;
|
|
14358
14380
|
let n = t.getData()?.length ?? 0;
|
|
14359
14381
|
if (n === 0) return;
|
|
14360
|
-
let r = t.getCurrentDpr(), { unitPx: i, startXPx: a } = Ms(
|
|
14361
|
-
e.scrollLeft = Math.round(c * r) / r,
|
|
14382
|
+
let r = t.getCurrentDpr(), { unitPx: i, startXPx: a } = Ms(ee.value, P.value, r), o = (a + n * i) / r, s = Math.max(0, e.scrollWidth - e.clientWidth), c = Math.min(s, Math.max(0, o - e.clientWidth));
|
|
14383
|
+
e.scrollLeft = Math.round(c * r) / r, re();
|
|
14362
14384
|
}
|
|
14363
|
-
function
|
|
14364
|
-
let n =
|
|
14385
|
+
function ot(e, t) {
|
|
14386
|
+
let n = A.value, r = D.value;
|
|
14365
14387
|
if (!n || !r) return;
|
|
14366
|
-
let i = n.getCurrentDpr(), a = yl(e, t ?? (n.getViewport()?.plotWidth ?? r.clientWidth) / 2, r.scrollLeft,
|
|
14367
|
-
minKWidth:
|
|
14368
|
-
maxKWidth:
|
|
14369
|
-
zoomLevelCount:
|
|
14388
|
+
let i = n.getCurrentDpr(), a = yl(e, t ?? (n.getViewport()?.plotWidth ?? r.clientWidth) / 2, r.scrollLeft, N.value, ee.value, P.value, {
|
|
14389
|
+
minKWidth: d.minKWidth,
|
|
14390
|
+
maxKWidth: d.maxKWidth,
|
|
14391
|
+
zoomLevelCount: d.zoomLevels,
|
|
14370
14392
|
dpr: i
|
|
14371
14393
|
});
|
|
14372
|
-
a && (
|
|
14373
|
-
let e =
|
|
14394
|
+
a && (M.actions.setZoomState(a.targetLevel, a.newKWidth, a.newKGap), n.interaction.clearHover(), f(() => {
|
|
14395
|
+
let e = D.value;
|
|
14374
14396
|
if (!e) return;
|
|
14375
14397
|
let t = Math.max(0, e.scrollWidth - e.clientWidth), r = Math.min(Math.max(0, a.newScrollLeft), t);
|
|
14376
|
-
e.scrollLeft = Math.round(r * i) / i, n.applyRenderState(a.newKWidth, a.newKGap, a.targetLevel),
|
|
14398
|
+
e.scrollLeft = Math.round(r * i) / i, n.applyRenderState(a.newKWidth, a.newKGap, a.targetLevel), v("zoomLevelChange", a.targetLevel, a.newKWidth);
|
|
14377
14399
|
}));
|
|
14378
14400
|
}
|
|
14379
|
-
return
|
|
14380
|
-
scheduleRender:
|
|
14381
|
-
scrollToRight:
|
|
14382
|
-
addSubPane:
|
|
14383
|
-
removeSubPane:
|
|
14384
|
-
switchSubIndicator:
|
|
14385
|
-
clearAllSubPanes:
|
|
14401
|
+
return c({
|
|
14402
|
+
scheduleRender: re,
|
|
14403
|
+
scrollToRight: at,
|
|
14404
|
+
addSubPane: Ke,
|
|
14405
|
+
removeSubPane: qe,
|
|
14406
|
+
switchSubIndicator: Ze,
|
|
14407
|
+
clearAllSubPanes: Je,
|
|
14386
14408
|
get plugin() {
|
|
14387
|
-
return
|
|
14409
|
+
return A.value?.plugin;
|
|
14388
14410
|
},
|
|
14389
|
-
zoomToLevel:
|
|
14390
|
-
zoomIn: (e) =>
|
|
14391
|
-
zoomOut: (e) =>
|
|
14392
|
-
getZoomLevel: () =>
|
|
14393
|
-
getZoomLevelCount: () =>
|
|
14411
|
+
zoomToLevel: ot,
|
|
14412
|
+
zoomIn: (e) => ot(N.value + 1, e),
|
|
14413
|
+
zoomOut: (e) => ot(N.value - 1, e),
|
|
14414
|
+
getZoomLevel: () => N.value,
|
|
14415
|
+
getZoomLevelCount: () => A.value?.getZoomLevelCount() ?? 10
|
|
14394
14416
|
}), h(() => {
|
|
14395
|
-
|
|
14396
|
-
let e =
|
|
14417
|
+
se.value = typeof CSS < "u" && CSS.supports("anchor-name: --kmap-anchor") && CSS.supports("position-anchor: --kmap-anchor");
|
|
14418
|
+
let e = D.value, t = C.value, n = E.value, r = x.value;
|
|
14397
14419
|
if (!e || !t || !n || !r) return;
|
|
14398
14420
|
let i = (t) => {
|
|
14399
14421
|
t.preventDefault();
|
|
14400
|
-
let n =
|
|
14422
|
+
let n = A.value;
|
|
14401
14423
|
if (!n) return;
|
|
14402
|
-
let r = e.getBoundingClientRect(), i = t.clientX - r.left, a = e.scrollLeft, o = n.getCurrentDpr(), s = vl(t.deltaY > 0 ? -1 : 1, i, a,
|
|
14403
|
-
minKWidth:
|
|
14404
|
-
maxKWidth:
|
|
14405
|
-
zoomLevelCount:
|
|
14424
|
+
let r = e.getBoundingClientRect(), i = t.clientX - r.left, a = e.scrollLeft, o = n.getCurrentDpr(), s = vl(t.deltaY > 0 ? -1 : 1, i, a, N.value, ee.value, P.value, {
|
|
14425
|
+
minKWidth: d.minKWidth,
|
|
14426
|
+
maxKWidth: d.maxKWidth,
|
|
14427
|
+
zoomLevelCount: d.zoomLevels,
|
|
14406
14428
|
dpr: o
|
|
14407
14429
|
});
|
|
14408
|
-
s && (
|
|
14409
|
-
let e =
|
|
14430
|
+
s && (M.actions.setZoomState(s.targetLevel, s.newKWidth, s.newKGap), n.interaction.clearHover(), f(() => {
|
|
14431
|
+
let e = D.value;
|
|
14410
14432
|
if (!e) return;
|
|
14411
14433
|
let t = Math.max(0, e.scrollWidth - e.clientWidth), r = Math.min(Math.max(0, s.newScrollLeft), t);
|
|
14412
|
-
e.scrollLeft = Math.round(r * o) / o, n.applyRenderState(s.newKWidth, s.newKGap, s.targetLevel),
|
|
14434
|
+
e.scrollLeft = Math.round(r * o) / o, n.applyRenderState(s.newKWidth, s.newKGap, s.targetLevel), v("zoomLevelChange", s.targetLevel, s.newKWidth);
|
|
14413
14435
|
}));
|
|
14414
14436
|
};
|
|
14415
14437
|
e.addEventListener("wheel", i, { passive: !1 });
|
|
@@ -14419,19 +14441,19 @@ var Gu = d({
|
|
|
14419
14441
|
rightAxisLayer: n,
|
|
14420
14442
|
xAxisCanvas: r
|
|
14421
14443
|
}, {
|
|
14422
|
-
yPaddingPx:
|
|
14423
|
-
rightAxisWidth:
|
|
14424
|
-
bottomAxisHeight:
|
|
14425
|
-
priceLabelWidth:
|
|
14426
|
-
minKWidth:
|
|
14427
|
-
maxKWidth:
|
|
14444
|
+
yPaddingPx: d.yPaddingPx,
|
|
14445
|
+
rightAxisWidth: d.rightAxisWidth,
|
|
14446
|
+
bottomAxisHeight: d.bottomAxisHeight,
|
|
14447
|
+
priceLabelWidth: d.priceLabelWidth,
|
|
14448
|
+
minKWidth: d.minKWidth,
|
|
14449
|
+
maxKWidth: d.maxKWidth,
|
|
14428
14450
|
panes: [{
|
|
14429
14451
|
id: "main",
|
|
14430
14452
|
ratio: 1
|
|
14431
14453
|
}],
|
|
14432
14454
|
paneGap: 0,
|
|
14433
|
-
zoomLevels:
|
|
14434
|
-
initialZoomLevel:
|
|
14455
|
+
zoomLevels: d.zoomLevels,
|
|
14456
|
+
initialZoomLevel: d.initialZoomLevel
|
|
14435
14457
|
});
|
|
14436
14458
|
a.useRenderer(Dl()), a.useRenderer(kl()), a.useRenderer(Xs({
|
|
14437
14459
|
ma5: !0,
|
|
@@ -14440,7 +14462,7 @@ var Gu = d({
|
|
|
14440
14462
|
ma30: !0,
|
|
14441
14463
|
ma60: !0
|
|
14442
14464
|
})), a.useRenderer(Qs()), a.setRendererEnabled("boll", !1), a.useRenderer(nc()), a.setRendererEnabled("expma", !1), a.useRenderer(ac()), a.setRendererEnabled("ene", !1), a.useRenderer(wl()), a.useRenderer(Ol()), a.useRenderer(ka());
|
|
14443
|
-
let o =
|
|
14465
|
+
let o = d.rightAxisWidth + d.priceLabelWidth, s = () => {
|
|
14444
14466
|
let e = a.interaction.crosshairPos, t = a.interaction.crosshairPrice, n = a.interaction.activePaneId;
|
|
14445
14467
|
return e && t !== null ? {
|
|
14446
14468
|
y: e.y,
|
|
@@ -14450,9 +14472,9 @@ var Gu = d({
|
|
|
14450
14472
|
};
|
|
14451
14473
|
a.useRenderer(Ll({
|
|
14452
14474
|
axisWidth: o,
|
|
14453
|
-
yPaddingPx:
|
|
14475
|
+
yPaddingPx: d.yPaddingPx,
|
|
14454
14476
|
getCrosshair: s
|
|
14455
|
-
})), a.useRenderer(sc({ yPaddingPx:
|
|
14477
|
+
})), a.useRenderer(sc({ yPaddingPx: d.yPaddingPx }));
|
|
14456
14478
|
let c = [
|
|
14457
14479
|
{
|
|
14458
14480
|
create: Bl,
|
|
@@ -14494,7 +14516,7 @@ var Gu = d({
|
|
|
14494
14516
|
for (let e of c) a.useRenderer(e.create({
|
|
14495
14517
|
axisWidth: o,
|
|
14496
14518
|
paneId: e.paneId,
|
|
14497
|
-
yPaddingPx:
|
|
14519
|
+
yPaddingPx: d.yPaddingPx,
|
|
14498
14520
|
getCrosshair: s
|
|
14499
14521
|
}));
|
|
14500
14522
|
a.useRenderer(Xl({ getCrosshairState: () => ({
|
|
@@ -14503,7 +14525,7 @@ var Gu = d({
|
|
|
14503
14525
|
isDragging: a.interaction.isDraggingState(),
|
|
14504
14526
|
price: a.interaction.crosshairPrice
|
|
14505
14527
|
}) })), a.useRenderer(Yl({
|
|
14506
|
-
height:
|
|
14528
|
+
height: d.bottomAxisHeight,
|
|
14507
14529
|
getCrosshair: () => {
|
|
14508
14530
|
let e = a.interaction.crosshairPos, t = a.interaction.crosshairIndex;
|
|
14509
14531
|
return e && t !== null ? {
|
|
@@ -14512,15 +14534,17 @@ var Gu = d({
|
|
|
14512
14534
|
} : null;
|
|
14513
14535
|
}
|
|
14514
14536
|
})), a.setOnViewportChange((e) => {
|
|
14515
|
-
|
|
14537
|
+
M.state.viewportDpr !== e.dpr && M.actions.setViewportDpr(e.dpr), M.state.viewWidth !== e.plotWidth && M.actions.setViewWidth(e.plotWidth);
|
|
14516
14538
|
let t = _l(e.dpr);
|
|
14517
|
-
|
|
14539
|
+
M.state.kGap !== t && M.actions.setZoomState(M.state.zoomLevel, M.state.kWidth, t);
|
|
14540
|
+
let n = a.getOption();
|
|
14541
|
+
(n.kWidth !== M.state.kWidth || n.kGap !== t) && a.applyRenderState(M.state.kWidth, t, M.state.zoomLevel);
|
|
14518
14542
|
}), a.setOnPaneLayoutChange((e) => {
|
|
14519
14543
|
let t = {};
|
|
14520
14544
|
for (let n of e) t[n.id] = n.ratio;
|
|
14521
|
-
|
|
14522
|
-
let n = a.getPaneRenderers(), r =
|
|
14523
|
-
|
|
14545
|
+
M.actions.setPaneRatios(t);
|
|
14546
|
+
let n = a.getPaneRenderers(), r = D.value && parseInt(getComputedStyle(D.value).borderTopWidth) || 0;
|
|
14547
|
+
ce.value = n.slice(0, -1).map((e) => {
|
|
14524
14548
|
let t = e.getPane();
|
|
14525
14549
|
return {
|
|
14526
14550
|
id: t.id,
|
|
@@ -14528,118 +14552,129 @@ var Gu = d({
|
|
|
14528
14552
|
};
|
|
14529
14553
|
});
|
|
14530
14554
|
}), a.setOnDataChange((e) => {
|
|
14531
|
-
|
|
14532
|
-
}),
|
|
14555
|
+
M.actions.setDataLength(e.length), M.actions.bumpDataVersion();
|
|
14556
|
+
}), A.value = a, a.applyRenderState(M.state.kWidth, M.state.kGap, M.state.zoomLevel), R.value = new Kc(a), R.value.setCallbacks({
|
|
14533
14557
|
onDrawingCreated: (e) => {
|
|
14534
|
-
|
|
14558
|
+
M.actions.setDrawings([...M.state.drawings, e]), M.actions.setSelectedDrawingId(e.id);
|
|
14535
14559
|
},
|
|
14536
14560
|
onToolChange: (e) => {},
|
|
14537
14561
|
onDrawingSelected: (e) => {
|
|
14538
|
-
|
|
14562
|
+
M.actions.setSelectedDrawingId(e?.id ?? null);
|
|
14539
14563
|
}
|
|
14540
|
-
}), a.interaction.setTooltipAnchorPositioning(
|
|
14541
|
-
|
|
14564
|
+
}), a.interaction.setTooltipAnchorPositioning(se.value), a.interaction.setOnInteractionChange((e) => {
|
|
14565
|
+
L.value = e;
|
|
14542
14566
|
}), a.interaction.setOnPinchZoom((e, t) => {
|
|
14543
|
-
let n =
|
|
14567
|
+
let n = D.value;
|
|
14544
14568
|
if (!n || !a) return;
|
|
14545
|
-
let r = t - n.getBoundingClientRect().left, i = n.scrollLeft, o = a.getCurrentDpr(), s = vl(e, r, i,
|
|
14546
|
-
minKWidth:
|
|
14547
|
-
maxKWidth:
|
|
14548
|
-
zoomLevelCount:
|
|
14569
|
+
let r = t - n.getBoundingClientRect().left, i = n.scrollLeft, o = a.getCurrentDpr(), s = vl(e, r, i, N.value, ee.value, P.value, {
|
|
14570
|
+
minKWidth: d.minKWidth,
|
|
14571
|
+
maxKWidth: d.maxKWidth,
|
|
14572
|
+
zoomLevelCount: d.zoomLevels,
|
|
14549
14573
|
dpr: o
|
|
14550
14574
|
});
|
|
14551
|
-
s && (
|
|
14552
|
-
let e =
|
|
14575
|
+
s && (M.actions.setZoomState(s.targetLevel, s.newKWidth, s.newKGap), a.interaction.clearHover(), f(() => {
|
|
14576
|
+
let e = D.value;
|
|
14553
14577
|
if (!e) return;
|
|
14554
14578
|
let t = Math.max(0, e.scrollWidth - e.clientWidth), n = Math.min(Math.max(0, s.newScrollLeft), t);
|
|
14555
|
-
e.scrollLeft = Math.round(n * o) / o, a.applyRenderState(s.newKWidth, s.newKGap, s.targetLevel),
|
|
14579
|
+
e.scrollLeft = Math.round(n * o) / o, a.applyRenderState(s.newKWidth, s.newKGap, s.targetLevel), v("zoomLevelChange", s.targetLevel, s.newKWidth);
|
|
14556
14580
|
}));
|
|
14557
|
-
}),
|
|
14581
|
+
}), L.value = a.interaction.getInteractionSnapshot(), M.actions.setViewportDpr(a.getCurrentDpr()), a.resize(), j.value = new $i(a), j.value.on("config:error", (e) => {
|
|
14558
14582
|
console.error("Semantic config error:", e);
|
|
14559
|
-
}),
|
|
14560
|
-
|
|
14561
|
-
}),
|
|
14583
|
+
}), j.value.on("config:ready", () => {
|
|
14584
|
+
M.actions.setDataLength(a.getData()?.length ?? 0), M.actions.bumpDataVersion(), Ye(), Xe(), f(() => at());
|
|
14585
|
+
}), j.value.applyConfig(d.semanticConfig).then((e) => {
|
|
14562
14586
|
e && !e.success && console.error("Semantic config apply failed:", e.errors);
|
|
14563
14587
|
}), a.__onWheel = i;
|
|
14564
14588
|
}), g(() => {
|
|
14565
|
-
let e =
|
|
14589
|
+
let e = A.value;
|
|
14566
14590
|
if (e) {
|
|
14567
|
-
let t = e.__onWheel, n =
|
|
14591
|
+
let t = e.__onWheel, n = D.value;
|
|
14568
14592
|
t && n && n.removeEventListener("wheel", t), e.destroy();
|
|
14569
14593
|
}
|
|
14570
|
-
|
|
14571
|
-
}), T(() =>
|
|
14572
|
-
|
|
14573
|
-
}), T(() =>
|
|
14594
|
+
A.value = null, R.value = null;
|
|
14595
|
+
}), T(() => d.yPaddingPx, (e) => {
|
|
14596
|
+
A.value?.updateOptions({ yPaddingPx: e });
|
|
14597
|
+
}), T(() => d.semanticConfig, async (e, t) => {
|
|
14574
14598
|
if (e && e !== t) {
|
|
14575
|
-
let t = await
|
|
14599
|
+
let t = await j.value?.applyConfig(e);
|
|
14576
14600
|
t && !t.success && console.error("Semantic config apply failed:", t.errors);
|
|
14577
14601
|
}
|
|
14578
|
-
}, { deep: !0 }), (
|
|
14579
|
-
"is-dragging":
|
|
14580
|
-
"is-resizing-pane":
|
|
14581
|
-
"is-hovering-pane-separator":
|
|
14582
|
-
"is-hovering-right-axis":
|
|
14583
|
-
"is-hovering-kline":
|
|
14602
|
+
}, { deep: !0 }), (r, c) => (_(), o("div", td, [s("div", { class: p(["chart-stage", {
|
|
14603
|
+
"is-dragging": pe.value,
|
|
14604
|
+
"is-resizing-pane": me.value,
|
|
14605
|
+
"is-hovering-pane-separator": B.value,
|
|
14606
|
+
"is-hovering-right-axis": ge.value,
|
|
14607
|
+
"is-hovering-kline": _e.value !== null
|
|
14584
14608
|
}]) }, [l(ed, {
|
|
14585
|
-
"is-fullscreen":
|
|
14586
|
-
onSelectTool:
|
|
14587
|
-
onToggleFullscreen:
|
|
14588
|
-
onZoomIn:
|
|
14589
|
-
onZoomOut:
|
|
14590
|
-
}, null, 8, ["is-fullscreen"]), s("div",
|
|
14591
|
-
|
|
14609
|
+
"is-fullscreen": n.isFullscreen,
|
|
14610
|
+
onSelectTool: ke,
|
|
14611
|
+
onToggleFullscreen: c[0] ||= (e) => r.$emit("toggleFullscreen"),
|
|
14612
|
+
onZoomIn: c[1] ||= (e) => ot(N.value + 1),
|
|
14613
|
+
onZoomOut: c[2] ||= (e) => ot(N.value - 1)
|
|
14614
|
+
}, null, 8, ["is-fullscreen"]), s("div", {
|
|
14615
|
+
class: "chart-main",
|
|
14616
|
+
ref_key: "chartMainRef",
|
|
14617
|
+
ref: O
|
|
14618
|
+
}, [
|
|
14619
|
+
s("div", nd, [(_(!0), o(e, null, b(ce.value, (e) => (_(), o("div", {
|
|
14592
14620
|
key: e.id,
|
|
14593
|
-
class: p(["pane-separator-line", { "is-active":
|
|
14621
|
+
class: p(["pane-separator-line", { "is-active": he.value === e.id }]),
|
|
14594
14622
|
style: m({ top: `${e.top}px` })
|
|
14595
14623
|
}, null, 6))), 128))]),
|
|
14624
|
+
s("div", {
|
|
14625
|
+
ref_key: "tooltipLayerRef",
|
|
14626
|
+
ref: k,
|
|
14627
|
+
class: "tooltip-layer"
|
|
14628
|
+
}, null, 512),
|
|
14596
14629
|
s("div", {
|
|
14597
14630
|
class: "chart-container",
|
|
14598
14631
|
ref_key: "containerRef",
|
|
14599
|
-
ref:
|
|
14600
|
-
onScrollPassive:
|
|
14601
|
-
onPointerdown:
|
|
14602
|
-
onPointermove:
|
|
14603
|
-
onPointerup:
|
|
14604
|
-
onPointerleave:
|
|
14632
|
+
ref: D,
|
|
14633
|
+
onScrollPassive: Be,
|
|
14634
|
+
onPointerdown: Me,
|
|
14635
|
+
onPointermove: Ne,
|
|
14636
|
+
onPointerup: Pe,
|
|
14637
|
+
onPointerleave: Fe
|
|
14605
14638
|
}, [s("div", {
|
|
14606
14639
|
class: "scroll-content",
|
|
14607
|
-
style: m({ width: w(
|
|
14640
|
+
style: m({ width: w(it) + "px" })
|
|
14608
14641
|
}, [s("div", {
|
|
14609
14642
|
class: "canvas-layer",
|
|
14610
14643
|
ref_key: "canvasLayerRef",
|
|
14644
|
+
ref: C
|
|
14645
|
+
}, [s("canvas", {
|
|
14646
|
+
class: "x-axis-canvas",
|
|
14647
|
+
ref_key: "xAxisCanvasRef",
|
|
14611
14648
|
ref: x
|
|
14649
|
+
}, null, 512), z.value ? (_(), i(As, {
|
|
14650
|
+
key: 0,
|
|
14651
|
+
drawing: z.value,
|
|
14652
|
+
onUpdateStyle: Ae,
|
|
14653
|
+
onDelete: je
|
|
14654
|
+
}, null, 8, ["drawing"])) : a("", !0)], 512)], 4)], 544),
|
|
14655
|
+
k.value ? (_(), i(t, {
|
|
14656
|
+
key: 0,
|
|
14657
|
+
to: k.value
|
|
14612
14658
|
}, [
|
|
14613
|
-
|
|
14614
|
-
class: "x-axis-canvas",
|
|
14615
|
-
ref_key: "xAxisCanvasRef",
|
|
14616
|
-
ref: v
|
|
14617
|
-
}, null, 512),
|
|
14618
|
-
me.value ? (_(), o("div", {
|
|
14659
|
+
ye.value ? (_(), o("div", {
|
|
14619
14660
|
key: 0,
|
|
14620
|
-
class: p(["tooltip-anchor kline-tooltip-anchor", { "use-anchor":
|
|
14621
|
-
style: m(
|
|
14622
|
-
left: `${ge.value.x}px`,
|
|
14623
|
-
top: `${ge.value.y}px`
|
|
14624
|
-
})
|
|
14661
|
+
class: p(["tooltip-anchor kline-tooltip-anchor", { "use-anchor": se.value }]),
|
|
14662
|
+
style: m(Ce.value)
|
|
14625
14663
|
}, null, 6)) : a("", !0),
|
|
14626
|
-
|
|
14664
|
+
de.value || fe.value ? (_(), o("div", {
|
|
14627
14665
|
key: 1,
|
|
14628
|
-
class: p(["tooltip-anchor marker-tooltip-anchor", { "use-anchor":
|
|
14629
|
-
style: m(
|
|
14630
|
-
left: `${I.value.x}px`,
|
|
14631
|
-
top: `${I.value.y}px`
|
|
14632
|
-
})
|
|
14666
|
+
class: p(["tooltip-anchor marker-tooltip-anchor", { "use-anchor": se.value }]),
|
|
14667
|
+
style: m(Te.value)
|
|
14633
14668
|
}, null, 6)) : a("", !0),
|
|
14634
|
-
|
|
14669
|
+
ye.value ? (_(), i(ko, {
|
|
14635
14670
|
key: 2,
|
|
14636
|
-
k:
|
|
14637
|
-
index:
|
|
14638
|
-
data:
|
|
14639
|
-
pos:
|
|
14640
|
-
"set-el":
|
|
14641
|
-
"use-anchor":
|
|
14642
|
-
"anchor-placement":
|
|
14671
|
+
k: ye.value,
|
|
14672
|
+
index: be.value,
|
|
14673
|
+
data: Oe.value,
|
|
14674
|
+
pos: Se.value,
|
|
14675
|
+
"set-el": ie,
|
|
14676
|
+
"use-anchor": se.value,
|
|
14677
|
+
"anchor-placement": Ee.value
|
|
14643
14678
|
}, null, 8, [
|
|
14644
14679
|
"k",
|
|
14645
14680
|
"index",
|
|
@@ -14648,46 +14683,40 @@ var Gu = d({
|
|
|
14648
14683
|
"use-anchor",
|
|
14649
14684
|
"anchor-placement"
|
|
14650
14685
|
])) : a("", !0),
|
|
14651
|
-
|
|
14686
|
+
de.value || fe.value ? (_(), i(Po, {
|
|
14652
14687
|
key: 3,
|
|
14653
|
-
marker:
|
|
14654
|
-
pos:
|
|
14655
|
-
"use-anchor":
|
|
14656
|
-
"anchor-placement":
|
|
14657
|
-
"set-el":
|
|
14688
|
+
marker: de.value || fe.value,
|
|
14689
|
+
pos: we.value,
|
|
14690
|
+
"use-anchor": se.value,
|
|
14691
|
+
"anchor-placement": De.value,
|
|
14692
|
+
"set-el": ae
|
|
14658
14693
|
}, null, 8, [
|
|
14659
14694
|
"marker",
|
|
14660
14695
|
"pos",
|
|
14661
14696
|
"use-anchor",
|
|
14662
14697
|
"anchor-placement"
|
|
14663
|
-
])) : a("", !0)
|
|
14664
|
-
|
|
14665
|
-
key: 4,
|
|
14666
|
-
drawing: ie.value,
|
|
14667
|
-
onUpdateStyle: xe,
|
|
14668
|
-
onDelete: Se
|
|
14669
|
-
}, null, 8, ["drawing"])) : a("", !0)
|
|
14670
|
-
], 512)], 4)], 544),
|
|
14698
|
+
])) : a("", !0)
|
|
14699
|
+
], 8, ["to"])) : a("", !0),
|
|
14671
14700
|
s("div", {
|
|
14672
14701
|
class: "right-axis-host",
|
|
14673
14702
|
ref_key: "rightAxisLayerRef",
|
|
14674
|
-
ref:
|
|
14675
|
-
style: m({ width:
|
|
14676
|
-
onPointerdown:
|
|
14677
|
-
onPointermove:
|
|
14678
|
-
onPointerup:
|
|
14679
|
-
onPointerleave:
|
|
14703
|
+
ref: E,
|
|
14704
|
+
style: m({ width: rt.value + "px" }),
|
|
14705
|
+
onPointerdown: Ie,
|
|
14706
|
+
onPointermove: Le,
|
|
14707
|
+
onPointerup: Re,
|
|
14708
|
+
onPointerleave: ze
|
|
14680
14709
|
}, null, 36)
|
|
14681
|
-
])], 2), l(Ss, {
|
|
14682
|
-
"active-indicators":
|
|
14683
|
-
"indicator-params":
|
|
14684
|
-
onToggle:
|
|
14685
|
-
onUpdateParams:
|
|
14686
|
-
onReorderSubIndicators:
|
|
14710
|
+
], 512)], 2), l(Ss, {
|
|
14711
|
+
"active-indicators": V.value,
|
|
14712
|
+
"indicator-params": Ve.value,
|
|
14713
|
+
onToggle: $e,
|
|
14714
|
+
onUpdateParams: tt,
|
|
14715
|
+
onReorderSubIndicators: nt
|
|
14687
14716
|
}, null, 8, ["active-indicators", "indicator-params"])]));
|
|
14688
14717
|
}
|
|
14689
|
-
}), [["__scopeId", "data-v-
|
|
14690
|
-
e.component("KLineChart",
|
|
14718
|
+
}), [["__scopeId", "data-v-c53b9583"]]), ad = { install(e) {
|
|
14719
|
+
e.component("KLineChart", id);
|
|
14691
14720
|
} };
|
|
14692
14721
|
//#endregion
|
|
14693
|
-
export { ya as ConfigManager, I as EventBus, ga as GLOBAL_PANE_ID, va as HookSystem,
|
|
14722
|
+
export { ya as ConfigManager, I as EventBus, ga as GLOBAL_PANE_ID, va as HookSystem, id as KLineChart, ad as KMapPlugin, xa as PluginHostImpl, _a as PluginRegistry, ma as PluginState, X as RENDERER_PRIORITY, wa as RendererPluginManager, Sa as createPluginHost, ha as wrapPaneInfo };
|