@363045841yyt/klinechart 0.2.8 → 0.2.9

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/dist/index.js CHANGED
@@ -7,16 +7,16 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
7
7
  enumerable: !0
8
8
  });
9
9
  return t || E(n, Symbol.toStringTag, { value: "Module" }), n;
10
- }, P = (e, t, n, r) => {
10
+ }, ee = (e, t, n, r) => {
11
11
  if (t && typeof t == "object" || typeof t == "function") for (var i = O(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !A.call(e, s) && s !== n && E(e, s, {
12
12
  get: ((e) => t[e]).bind(null, s),
13
13
  enumerable: !(r = D(t, s)) || r.enumerable
14
14
  });
15
15
  return e;
16
- }, ee = (e, t, n) => (n = e == null ? {} : T(k(e)), P(t || !e || !e.__esModule ? E(n, "default", {
16
+ }, te = (e, t, n) => (n = e == null ? {} : T(k(e)), ee(t || !e || !e.__esModule ? E(n, "default", {
17
17
  value: e,
18
18
  enumerable: !0
19
- }) : n, e)), te = (e) => A.call(e, "module.exports") ? e["module.exports"] : P(E({}, "__esModule", { value: !0 }), e), ne = class {
19
+ }) : n, e)), P = (e) => A.call(e, "module.exports") ? e["module.exports"] : ee(E({}, "__esModule", { value: !0 }), e), F = 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,79 +50,79 @@ var T = Object.create, E = Object.defineProperty, D = Object.getOwnPropertyDescr
50
50
  };
51
51
  //#endregion
52
52
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/bind.js
53
- function re(e, t) {
53
+ function ne(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.15.0/node_modules/axios/lib/utils.js
60
- var { toString: F } = Object.prototype, { getPrototypeOf: ie } = Object, { iterator: ae, toStringTag: oe } = Symbol, se = ((e) => (t) => {
61
- let n = F.call(t);
60
+ var { toString: I } = Object.prototype, { getPrototypeOf: re } = Object, { iterator: ie, toStringTag: ae } = Symbol, oe = ((e) => (t) => {
61
+ let n = I.call(t);
62
62
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
63
- })(Object.create(null)), I = (e) => (e = e.toLowerCase(), (t) => se(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) && z(e.constructor.isBuffer) && e.constructor.isBuffer(e);
63
+ })(Object.create(null)), L = (e) => (e = e.toLowerCase(), (t) => oe(t) === e), se = (e) => (t) => typeof t === e, { isArray: ce } = Array, le = se("undefined");
64
+ function ue(e) {
65
+ return e !== null && !le(e) && e.constructor !== null && !le(e.constructor) && B(e.constructor.isBuffer) && e.constructor.isBuffer(e);
66
66
  }
67
- var L = I("ArrayBuffer");
68
- function fe(e) {
67
+ var R = L("ArrayBuffer");
68
+ function de(e) {
69
69
  let t;
70
- return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && L(e.buffer), t;
71
- }
72
- var R = ce("string"), z = ce("function"), pe = ce("number"), me = (e) => typeof e == "object" && !!e, he = (e) => e === !0 || e === !1, ge = (e) => {
73
- if (se(e) !== "object") return !1;
74
- let t = ie(e);
75
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(oe in e) && !(ae in e);
76
- }, _e = (e) => {
77
- if (!me(e) || de(e)) return !1;
70
+ return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && R(e.buffer), t;
71
+ }
72
+ var z = se("string"), B = se("function"), fe = se("number"), pe = (e) => typeof e == "object" && !!e, me = (e) => e === !0 || e === !1, he = (e) => {
73
+ if (oe(e) !== "object") return !1;
74
+ let t = re(e);
75
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ae in e) && !(ie in e);
76
+ }, ge = (e) => {
77
+ if (!pe(e) || ue(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
- }, ve = I("Date"), ye = I("File"), be = (e) => !!(e && e.uri !== void 0), xe = (e) => e && e.getParts !== void 0, Se = I("Blob"), Ce = I("FileList"), we = (e) => me(e) && z(e.pipe);
84
- function Te() {
83
+ }, _e = L("Date"), ve = L("File"), ye = (e) => !!(e && e.uri !== void 0), be = (e) => e && e.getParts !== void 0, xe = L("Blob"), Se = L("FileList"), Ce = (e) => pe(e) && B(e.pipe);
84
+ function we() {
85
85
  return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
86
86
  }
87
- var Ee = Te(), De = Ee.FormData === void 0 ? void 0 : Ee.FormData, Oe = (e) => {
87
+ var Te = we(), Ee = Te.FormData === void 0 ? void 0 : Te.FormData, De = (e) => {
88
88
  let t;
89
- return e && (De && e instanceof De || z(e.append) && ((t = se(e)) === "formdata" || t === "object" && z(e.toString) && e.toString() === "[object FormData]"));
90
- }, ke = I("URLSearchParams"), [Ae, je, Me, Ne] = [
89
+ return e && (Ee && e instanceof Ee || B(e.append) && ((t = oe(e)) === "formdata" || t === "object" && B(e.toString) && e.toString() === "[object FormData]"));
90
+ }, Oe = L("URLSearchParams"), [ke, Ae, je, Me] = [
91
91
  "ReadableStream",
92
92
  "Request",
93
93
  "Response",
94
94
  "Headers"
95
- ].map(I), Pe = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
96
- function Fe(e, t, { allOwnKeys: n = !1 } = {}) {
95
+ ].map(L), Ne = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
96
+ function Pe(e, t, { allOwnKeys: n = !1 } = {}) {
97
97
  if (e == null) return;
98
98
  let r, i;
99
- if (typeof e != "object" && (e = [e]), le(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
99
+ if (typeof e != "object" && (e = [e]), ce(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
100
100
  else {
101
- if (de(e)) return;
101
+ if (ue(e)) return;
102
102
  let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
103
103
  for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
104
104
  }
105
105
  }
106
- function Ie(e, t) {
107
- if (de(e)) return null;
106
+ function Fe(e, t) {
107
+ if (ue(e)) return null;
108
108
  t = t.toLowerCase();
109
109
  let n = Object.keys(e), r = n.length, i;
110
110
  for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
111
111
  return null;
112
112
  }
113
- var Le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Re = (e) => !ue(e) && e !== Le;
114
- function ze() {
115
- let { caseless: e, skipUndefined: t } = Re(this) && this || {}, n = {}, r = (r, i) => {
113
+ var Ie = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Le = (e) => !le(e) && e !== Ie;
114
+ function Re() {
115
+ let { caseless: e, skipUndefined: t } = Le(this) && this || {}, n = {}, r = (r, i) => {
116
116
  if (i === "__proto__" || i === "constructor" || i === "prototype") return;
117
- let a = e && Ie(n, i) || i;
118
- ge(n[a]) && ge(r) ? n[a] = ze(n[a], r) : ge(r) ? n[a] = ze({}, r) : le(r) ? n[a] = r.slice() : (!t || !ue(r)) && (n[a] = r);
117
+ let a = e && Fe(n, i) || i;
118
+ he(n[a]) && he(r) ? n[a] = Re(n[a], r) : he(r) ? n[a] = Re({}, r) : ce(r) ? n[a] = r.slice() : (!t || !le(r)) && (n[a] = r);
119
119
  };
120
- for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && Fe(arguments[e], r);
120
+ for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && Pe(arguments[e], r);
121
121
  return n;
122
122
  }
123
- var Be = (e, t, n, { allOwnKeys: r } = {}) => (Fe(t, (t, r) => {
124
- n && z(t) ? Object.defineProperty(e, r, {
125
- value: re(t, n),
123
+ var ze = (e, t, n, { allOwnKeys: r } = {}) => (Pe(t, (t, r) => {
124
+ n && B(t) ? Object.defineProperty(e, r, {
125
+ value: ne(t, n),
126
126
  writable: !0,
127
127
  enumerable: !0,
128
128
  configurable: !0
@@ -132,60 +132,60 @@ var Be = (e, t, n, { allOwnKeys: r } = {}) => (Fe(t, (t, r) => {
132
132
  enumerable: !0,
133
133
  configurable: !0
134
134
  });
135
- }, { allOwnKeys: r }), e), Ve = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), He = (e, t, n, r) => {
135
+ }, { allOwnKeys: r }), e), Be = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ve = (e, t, n, r) => {
136
136
  e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
137
137
  value: e,
138
138
  writable: !0,
139
139
  enumerable: !1,
140
140
  configurable: !0
141
141
  }), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
142
- }, Ue = (e, t, n, r) => {
142
+ }, He = (e, t, n, r) => {
143
143
  let i, a, o, s = {};
144
144
  if (t ||= {}, e == null) return t;
145
145
  do {
146
146
  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);
147
- e = n !== !1 && ie(e);
147
+ e = n !== !1 && re(e);
148
148
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
149
149
  return t;
150
- }, We = (e, t, n) => {
150
+ }, Ue = (e, t, n) => {
151
151
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
152
152
  let r = e.indexOf(t, n);
153
153
  return r !== -1 && r === n;
154
- }, Ge = (e) => {
154
+ }, We = (e) => {
155
155
  if (!e) return null;
156
- if (le(e)) return e;
156
+ if (ce(e)) return e;
157
157
  let t = e.length;
158
- if (!pe(t)) return null;
158
+ if (!fe(t)) return null;
159
159
  let n = Array(t);
160
160
  for (; t-- > 0;) n[t] = e[t];
161
161
  return n;
162
- }, Ke = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ie(Uint8Array)), qe = (e, t) => {
163
- let n = (e && e[ae]).call(e), r;
162
+ }, Ge = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && re(Uint8Array)), Ke = (e, t) => {
163
+ let n = (e && e[ie]).call(e), r;
164
164
  for (; (r = n.next()) && !r.done;) {
165
165
  let n = r.value;
166
166
  t.call(e, n[0], n[1]);
167
167
  }
168
- }, Je = (e, t) => {
168
+ }, qe = (e, t) => {
169
169
  let n, r = [];
170
170
  for (; (n = e.exec(t)) !== null;) r.push(n);
171
171
  return r;
172
- }, Ye = I("HTMLFormElement"), Xe = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
172
+ }, Je = L("HTMLFormElement"), Ye = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
173
173
  return t.toUpperCase() + n;
174
- }), Ze = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Qe = I("RegExp"), $e = (e, t) => {
174
+ }), Xe = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ze = L("RegExp"), Qe = (e, t) => {
175
175
  let n = Object.getOwnPropertyDescriptors(e), r = {};
176
- Fe(n, (n, i) => {
176
+ Pe(n, (n, i) => {
177
177
  let a;
178
178
  (a = t(n, i, e)) !== !1 && (r[i] = a || n);
179
179
  }), Object.defineProperties(e, r);
180
- }, et = (e) => {
181
- $e(e, (t, n) => {
182
- if (z(e) && [
180
+ }, $e = (e) => {
181
+ Qe(e, (t, n) => {
182
+ if (B(e) && [
183
183
  "arguments",
184
184
  "caller",
185
185
  "callee"
186
186
  ].indexOf(n) !== -1) return !1;
187
187
  let r = e[n];
188
- if (z(r)) {
188
+ if (B(r)) {
189
189
  if (t.enumerable = !1, "writable" in t) {
190
190
  t.writable = !1;
191
191
  return;
@@ -195,99 +195,99 @@ var Be = (e, t, n, { allOwnKeys: r } = {}) => (Fe(t, (t, r) => {
195
195
  };
196
196
  }
197
197
  });
198
- }, tt = (e, t) => {
198
+ }, et = (e, t) => {
199
199
  let n = {}, r = (e) => {
200
200
  e.forEach((e) => {
201
201
  n[e] = !0;
202
202
  });
203
203
  };
204
- return le(e) ? r(e) : r(String(e).split(t)), n;
205
- }, nt = () => {}, rt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
206
- function it(e) {
207
- return !!(e && z(e.append) && e[oe] === "FormData" && e[ae]);
204
+ return ce(e) ? r(e) : r(String(e).split(t)), n;
205
+ }, tt = () => {}, nt = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
206
+ function rt(e) {
207
+ return !!(e && B(e.append) && e[ae] === "FormData" && e[ie]);
208
208
  }
209
- var at = (e) => {
209
+ var it = (e) => {
210
210
  let t = Array(10), n = (e, r) => {
211
- if (me(e)) {
211
+ if (pe(e)) {
212
212
  if (t.indexOf(e) >= 0) return;
213
- if (de(e)) return e;
213
+ if (ue(e)) return e;
214
214
  if (!("toJSON" in e)) {
215
215
  t[r] = e;
216
- let i = le(e) ? [] : {};
217
- return Fe(e, (e, t) => {
216
+ let i = ce(e) ? [] : {};
217
+ return Pe(e, (e, t) => {
218
218
  let a = n(e, r + 1);
219
- !ue(a) && (i[t] = a);
219
+ !le(a) && (i[t] = a);
220
220
  }), t[r] = void 0, i;
221
221
  }
222
222
  }
223
223
  return e;
224
224
  };
225
225
  return n(e, 0);
226
- }, ot = I("AsyncFunction"), st = (e) => e && (me(e) || z(e)) && z(e.then) && z(e.catch), ct = ((e, t) => e ? setImmediate : t ? ((e, t) => (Le.addEventListener("message", ({ source: n, data: r }) => {
227
- n === Le && r === e && t.length && t.shift()();
226
+ }, at = L("AsyncFunction"), ot = (e) => e && (pe(e) || B(e)) && B(e.then) && B(e.catch), st = ((e, t) => e ? setImmediate : t ? ((e, t) => (Ie.addEventListener("message", ({ source: n, data: r }) => {
227
+ n === Ie && r === e && t.length && t.shift()();
228
228
  }, !1), (n) => {
229
- t.push(n), Le.postMessage(e, "*");
230
- }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", z(Le.postMessage)), B = {
231
- isArray: le,
232
- isArrayBuffer: L,
233
- isBuffer: de,
234
- isFormData: Oe,
235
- isArrayBufferView: fe,
236
- isString: R,
237
- isNumber: pe,
238
- isBoolean: he,
239
- isObject: me,
240
- isPlainObject: ge,
241
- isEmptyObject: _e,
242
- isReadableStream: Ae,
243
- isRequest: je,
244
- isResponse: Me,
245
- isHeaders: Ne,
246
- isUndefined: ue,
247
- isDate: ve,
248
- isFile: ye,
249
- isReactNativeBlob: be,
250
- isReactNative: xe,
251
- isBlob: Se,
252
- isRegExp: Qe,
253
- isFunction: z,
254
- isStream: we,
255
- isURLSearchParams: ke,
256
- isTypedArray: Ke,
257
- isFileList: Ce,
258
- forEach: Fe,
259
- merge: ze,
260
- extend: Be,
261
- trim: Pe,
262
- stripBOM: Ve,
263
- inherits: He,
264
- toFlatObject: Ue,
265
- kindOf: se,
266
- kindOfTest: I,
267
- endsWith: We,
268
- toArray: Ge,
269
- forEachEntry: qe,
270
- matchAll: Je,
271
- isHTMLForm: Ye,
272
- hasOwnProperty: Ze,
273
- hasOwnProp: Ze,
274
- reduceDescriptors: $e,
275
- freezeMethods: et,
276
- toObjectSet: tt,
277
- toCamelCase: Xe,
278
- noop: nt,
279
- toFiniteNumber: rt,
280
- findKey: Ie,
281
- global: Le,
282
- isContextDefined: Re,
283
- isSpecCompliantForm: it,
284
- toJSONObject: at,
285
- isAsyncFn: ot,
286
- isThenable: st,
287
- setImmediate: ct,
288
- asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(Le) : typeof process < "u" && process.nextTick || ct,
289
- isIterable: (e) => e != null && z(e[ae])
290
- }, V = class e extends Error {
229
+ t.push(n), Ie.postMessage(e, "*");
230
+ }))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", B(Ie.postMessage)), V = {
231
+ isArray: ce,
232
+ isArrayBuffer: R,
233
+ isBuffer: ue,
234
+ isFormData: De,
235
+ isArrayBufferView: de,
236
+ isString: z,
237
+ isNumber: fe,
238
+ isBoolean: me,
239
+ isObject: pe,
240
+ isPlainObject: he,
241
+ isEmptyObject: ge,
242
+ isReadableStream: ke,
243
+ isRequest: Ae,
244
+ isResponse: je,
245
+ isHeaders: Me,
246
+ isUndefined: le,
247
+ isDate: _e,
248
+ isFile: ve,
249
+ isReactNativeBlob: ye,
250
+ isReactNative: be,
251
+ isBlob: xe,
252
+ isRegExp: Ze,
253
+ isFunction: B,
254
+ isStream: Ce,
255
+ isURLSearchParams: Oe,
256
+ isTypedArray: Ge,
257
+ isFileList: Se,
258
+ forEach: Pe,
259
+ merge: Re,
260
+ extend: ze,
261
+ trim: Ne,
262
+ stripBOM: Be,
263
+ inherits: Ve,
264
+ toFlatObject: He,
265
+ kindOf: oe,
266
+ kindOfTest: L,
267
+ endsWith: Ue,
268
+ toArray: We,
269
+ forEachEntry: Ke,
270
+ matchAll: qe,
271
+ isHTMLForm: Je,
272
+ hasOwnProperty: Xe,
273
+ hasOwnProp: Xe,
274
+ reduceDescriptors: Qe,
275
+ freezeMethods: $e,
276
+ toObjectSet: et,
277
+ toCamelCase: Ye,
278
+ noop: tt,
279
+ toFiniteNumber: nt,
280
+ findKey: Fe,
281
+ global: Ie,
282
+ isContextDefined: Le,
283
+ isSpecCompliantForm: rt,
284
+ toJSONObject: it,
285
+ isAsyncFn: at,
286
+ isThenable: ot,
287
+ setImmediate: st,
288
+ asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(Ie) : typeof process < "u" && process.nextTick || st,
289
+ isIterable: (e) => e != null && B(e[ie])
290
+ }, H = class e extends Error {
291
291
  static from(t, n, r, i, a, o) {
292
292
  let s = new e(t.message, n || t.code, r, i, a);
293
293
  return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
@@ -310,80 +310,80 @@ var at = (e) => {
310
310
  lineNumber: this.lineNumber,
311
311
  columnNumber: this.columnNumber,
312
312
  stack: this.stack,
313
- config: B.toJSONObject(this.config),
313
+ config: V.toJSONObject(this.config),
314
314
  code: this.code,
315
315
  status: this.status
316
316
  };
317
317
  }
318
318
  };
319
- V.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", V.ERR_BAD_OPTION = "ERR_BAD_OPTION", V.ECONNABORTED = "ECONNABORTED", V.ETIMEDOUT = "ETIMEDOUT", V.ERR_NETWORK = "ERR_NETWORK", V.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", V.ERR_DEPRECATED = "ERR_DEPRECATED", V.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", V.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", V.ERR_CANCELED = "ERR_CANCELED", V.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", V.ERR_INVALID_URL = "ERR_INVALID_URL";
319
+ H.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", H.ERR_BAD_OPTION = "ERR_BAD_OPTION", H.ECONNABORTED = "ECONNABORTED", H.ETIMEDOUT = "ETIMEDOUT", H.ERR_NETWORK = "ERR_NETWORK", H.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", H.ERR_DEPRECATED = "ERR_DEPRECATED", H.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", H.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", H.ERR_CANCELED = "ERR_CANCELED", H.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", H.ERR_INVALID_URL = "ERR_INVALID_URL";
320
320
  //#endregion
321
321
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/toFormData.js
322
- function lt(e) {
323
- return B.isPlainObject(e) || B.isArray(e);
322
+ function ct(e) {
323
+ return V.isPlainObject(e) || V.isArray(e);
324
324
  }
325
- function ut(e) {
326
- return B.endsWith(e, "[]") ? e.slice(0, -2) : e;
325
+ function lt(e) {
326
+ return V.endsWith(e, "[]") ? e.slice(0, -2) : e;
327
327
  }
328
- function dt(e, t, n) {
328
+ function ut(e, t, n) {
329
329
  return e ? e.concat(t).map(function(e, t) {
330
- return e = ut(e), !n && t ? "[" + e + "]" : e;
330
+ return e = lt(e), !n && t ? "[" + e + "]" : e;
331
331
  }).join(n ? "." : "") : t;
332
332
  }
333
- function ft(e) {
334
- return B.isArray(e) && !e.some(lt);
333
+ function dt(e) {
334
+ return V.isArray(e) && !e.some(ct);
335
335
  }
336
- var pt = B.toFlatObject(B, {}, null, function(e) {
336
+ var ft = V.toFlatObject(V, {}, null, function(e) {
337
337
  return /^is[A-Z]/.test(e);
338
338
  });
339
- function mt(e, t, n) {
340
- if (!B.isObject(e)) throw TypeError("target must be an object");
341
- t ||= new FormData(), n = B.toFlatObject(n, {
339
+ function pt(e, t, n) {
340
+ if (!V.isObject(e)) throw TypeError("target must be an object");
341
+ t ||= new FormData(), n = V.toFlatObject(n, {
342
342
  metaTokens: !0,
343
343
  dots: !1,
344
344
  indexes: !1
345
345
  }, !1, function(e, t) {
346
- return !B.isUndefined(t[e]);
346
+ return !V.isUndefined(t[e]);
347
347
  });
348
- let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && B.isSpecCompliantForm(t);
349
- if (!B.isFunction(i)) throw TypeError("visitor must be a function");
348
+ let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && V.isSpecCompliantForm(t);
349
+ if (!V.isFunction(i)) throw TypeError("visitor must be a function");
350
350
  function c(e) {
351
351
  if (e === null) return "";
352
- if (B.isDate(e)) return e.toISOString();
353
- if (B.isBoolean(e)) return e.toString();
354
- if (!s && B.isBlob(e)) throw new V("Blob is not supported. Use a Buffer instead.");
355
- return B.isArrayBuffer(e) || B.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
352
+ if (V.isDate(e)) return e.toISOString();
353
+ if (V.isBoolean(e)) return e.toString();
354
+ if (!s && V.isBlob(e)) throw new H("Blob is not supported. Use a Buffer instead.");
355
+ return V.isArrayBuffer(e) || V.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
356
356
  }
357
357
  function l(e, n, i) {
358
358
  let s = e;
359
- if (B.isReactNative(t) && B.isReactNativeBlob(e)) return t.append(dt(i, n, a), c(e)), !1;
359
+ if (V.isReactNative(t) && V.isReactNativeBlob(e)) return t.append(ut(i, n, a), c(e)), !1;
360
360
  if (e && !i && typeof e == "object") {
361
- if (B.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
362
- else if (B.isArray(e) && ft(e) || (B.isFileList(e) || B.endsWith(n, "[]")) && (s = B.toArray(e))) return n = ut(n), s.forEach(function(e, r) {
363
- !(B.isUndefined(e) || e === null) && t.append(o === !0 ? dt([n], r, a) : o === null ? n : n + "[]", c(e));
361
+ if (V.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
362
+ else if (V.isArray(e) && dt(e) || (V.isFileList(e) || V.endsWith(n, "[]")) && (s = V.toArray(e))) return n = lt(n), s.forEach(function(e, r) {
363
+ !(V.isUndefined(e) || e === null) && t.append(o === !0 ? ut([n], r, a) : o === null ? n : n + "[]", c(e));
364
364
  }), !1;
365
365
  }
366
- return lt(e) ? !0 : (t.append(dt(i, n, a), c(e)), !1);
366
+ return ct(e) ? !0 : (t.append(ut(i, n, a), c(e)), !1);
367
367
  }
368
- let u = [], d = Object.assign(pt, {
368
+ let u = [], d = Object.assign(ft, {
369
369
  defaultVisitor: l,
370
370
  convertValue: c,
371
- isVisitable: lt
371
+ isVisitable: ct
372
372
  });
373
373
  function f(e, n) {
374
- if (!B.isUndefined(e)) {
374
+ if (!V.isUndefined(e)) {
375
375
  if (u.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
376
- u.push(e), B.forEach(e, function(e, r) {
377
- (!(B.isUndefined(e) || e === null) && i.call(t, e, B.isString(r) ? r.trim() : r, n, d)) === !0 && f(e, n ? n.concat(r) : [r]);
376
+ u.push(e), V.forEach(e, function(e, r) {
377
+ (!(V.isUndefined(e) || e === null) && i.call(t, e, V.isString(r) ? r.trim() : r, n, d)) === !0 && f(e, n ? n.concat(r) : [r]);
378
378
  }), u.pop();
379
379
  }
380
380
  }
381
- if (!B.isObject(e)) throw TypeError("data must be an object");
381
+ if (!V.isObject(e)) throw TypeError("data must be an object");
382
382
  return f(e), t;
383
383
  }
384
384
  //#endregion
385
385
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
386
- function ht(e) {
386
+ function mt(e) {
387
387
  let t = {
388
388
  "!": "%21",
389
389
  "'": "%27",
@@ -397,29 +397,29 @@ function ht(e) {
397
397
  return t[e];
398
398
  });
399
399
  }
400
- function gt(e, t) {
401
- this._pairs = [], e && mt(e, this, t);
400
+ function ht(e, t) {
401
+ this._pairs = [], e && pt(e, this, t);
402
402
  }
403
- var _t = gt.prototype;
404
- _t.append = function(e, t) {
403
+ var gt = ht.prototype;
404
+ gt.append = function(e, t) {
405
405
  this._pairs.push([e, t]);
406
- }, _t.toString = function(e) {
406
+ }, gt.toString = function(e) {
407
407
  let t = e ? function(t) {
408
- return e.call(this, t, ht);
409
- } : ht;
408
+ return e.call(this, t, mt);
409
+ } : mt;
410
410
  return this._pairs.map(function(e) {
411
411
  return t(e[0]) + "=" + t(e[1]);
412
412
  }, "").join("&");
413
413
  };
414
414
  //#endregion
415
415
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/buildURL.js
416
- function vt(e) {
416
+ function _t(e) {
417
417
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
418
418
  }
419
- function yt(e, t, n) {
419
+ function vt(e, t, n) {
420
420
  if (!t) return e;
421
- let r = n && n.encode || vt, i = B.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
422
- if (o = a ? a(t, i) : B.isURLSearchParams(t) ? t.toString() : new gt(t, i).toString(r), o) {
421
+ let r = n && n.encode || _t, i = V.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
422
+ if (o = a ? a(t, i) : V.isURLSearchParams(t) ? t.toString() : new ht(t, i).toString(r), o) {
423
423
  let t = e.indexOf("#");
424
424
  t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
425
425
  }
@@ -427,7 +427,7 @@ function yt(e, t, n) {
427
427
  }
428
428
  //#endregion
429
429
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/InterceptorManager.js
430
- var bt = class {
430
+ var yt = class {
431
431
  constructor() {
432
432
  this.handlers = [];
433
433
  }
@@ -446,19 +446,19 @@ var bt = class {
446
446
  this.handlers &&= [];
447
447
  }
448
448
  forEach(e) {
449
- B.forEach(this.handlers, function(t) {
449
+ V.forEach(this.handlers, function(t) {
450
450
  t !== null && e(t);
451
451
  });
452
452
  }
453
- }, xt = {
453
+ }, bt = {
454
454
  silentJSONParsing: !0,
455
455
  forcedJSONParsing: !0,
456
456
  clarifyTimeoutError: !1,
457
457
  legacyInterceptorReqResOrdering: !0
458
- }, St = {
458
+ }, xt = {
459
459
  isBrowser: !0,
460
460
  classes: {
461
- URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : gt,
461
+ URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : ht,
462
462
  FormData: typeof FormData < "u" ? FormData : null,
463
463
  Blob: typeof Blob < "u" ? Blob : null
464
464
  },
@@ -470,97 +470,97 @@ var bt = class {
470
470
  "url",
471
471
  "data"
472
472
  ]
473
- }, Ct = /* @__PURE__ */ N({
474
- hasBrowserEnv: () => wt,
475
- hasStandardBrowserEnv: () => Et,
476
- hasStandardBrowserWebWorkerEnv: () => Dt,
477
- navigator: () => Tt,
478
- origin: () => Ot
479
- }), wt = typeof window < "u" && typeof document < "u", Tt = typeof navigator == "object" && navigator || void 0, Et = wt && (!Tt || [
473
+ }, St = /* @__PURE__ */ N({
474
+ hasBrowserEnv: () => Ct,
475
+ hasStandardBrowserEnv: () => Tt,
476
+ hasStandardBrowserWebWorkerEnv: () => Et,
477
+ navigator: () => wt,
478
+ origin: () => Dt
479
+ }), Ct = typeof window < "u" && typeof document < "u", wt = typeof navigator == "object" && navigator || void 0, Tt = Ct && (!wt || [
480
480
  "ReactNative",
481
481
  "NativeScript",
482
482
  "NS"
483
- ].indexOf(Tt.product) < 0), Dt = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ot = wt && window.location.href || "http://localhost", H = {
484
- ...Ct,
485
- ...St
483
+ ].indexOf(wt.product) < 0), Et = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Dt = Ct && window.location.href || "http://localhost", U = {
484
+ ...St,
485
+ ...xt
486
486
  };
487
487
  //#endregion
488
488
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
489
- function kt(e, t) {
490
- return mt(e, new H.classes.URLSearchParams(), {
489
+ function Ot(e, t) {
490
+ return pt(e, new U.classes.URLSearchParams(), {
491
491
  visitor: function(e, t, n, r) {
492
- return H.isNode && B.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
492
+ return U.isNode && V.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
493
493
  },
494
494
  ...t
495
495
  });
496
496
  }
497
497
  //#endregion
498
498
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/formDataToJSON.js
499
- function At(e) {
500
- return B.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
499
+ function kt(e) {
500
+ return V.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
501
501
  }
502
- function jt(e) {
502
+ function At(e) {
503
503
  let t = {}, n = Object.keys(e), r, i = n.length, a;
504
504
  for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
505
505
  return t;
506
506
  }
507
- function Mt(e) {
507
+ function jt(e) {
508
508
  function t(e, n, r, i) {
509
509
  let a = e[i++];
510
510
  if (a === "__proto__") return !0;
511
511
  let o = Number.isFinite(+a), s = i >= e.length;
512
- return a = !a && B.isArray(r) ? r.length : a, s ? (B.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !B.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && B.isArray(r[a]) && (r[a] = jt(r[a])), !o);
512
+ return a = !a && V.isArray(r) ? r.length : a, s ? (V.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !V.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && V.isArray(r[a]) && (r[a] = At(r[a])), !o);
513
513
  }
514
- if (B.isFormData(e) && B.isFunction(e.entries)) {
514
+ if (V.isFormData(e) && V.isFunction(e.entries)) {
515
515
  let n = {};
516
- return B.forEachEntry(e, (e, r) => {
517
- t(At(e), r, n, 0);
516
+ return V.forEachEntry(e, (e, r) => {
517
+ t(kt(e), r, n, 0);
518
518
  }), n;
519
519
  }
520
520
  return null;
521
521
  }
522
522
  //#endregion
523
523
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/defaults/index.js
524
- function Nt(e, t, n) {
525
- if (B.isString(e)) try {
526
- return (t || JSON.parse)(e), B.trim(e);
524
+ function Mt(e, t, n) {
525
+ if (V.isString(e)) try {
526
+ return (t || JSON.parse)(e), V.trim(e);
527
527
  } catch (e) {
528
528
  if (e.name !== "SyntaxError") throw e;
529
529
  }
530
530
  return (n || JSON.stringify)(e);
531
531
  }
532
- var Pt = {
533
- transitional: xt,
532
+ var Nt = {
533
+ transitional: bt,
534
534
  adapter: [
535
535
  "xhr",
536
536
  "http",
537
537
  "fetch"
538
538
  ],
539
539
  transformRequest: [function(e, t) {
540
- let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = B.isObject(e);
541
- if (i && B.isHTMLForm(e) && (e = new FormData(e)), B.isFormData(e)) return r ? JSON.stringify(Mt(e)) : e;
542
- if (B.isArrayBuffer(e) || B.isBuffer(e) || B.isStream(e) || B.isFile(e) || B.isBlob(e) || B.isReadableStream(e)) return e;
543
- if (B.isArrayBufferView(e)) return e.buffer;
544
- if (B.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
540
+ let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = V.isObject(e);
541
+ if (i && V.isHTMLForm(e) && (e = new FormData(e)), V.isFormData(e)) return r ? JSON.stringify(jt(e)) : e;
542
+ if (V.isArrayBuffer(e) || V.isBuffer(e) || V.isStream(e) || V.isFile(e) || V.isBlob(e) || V.isReadableStream(e)) return e;
543
+ if (V.isArrayBufferView(e)) return e.buffer;
544
+ if (V.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
545
545
  let a;
546
546
  if (i) {
547
- if (n.indexOf("application/x-www-form-urlencoded") > -1) return kt(e, this.formSerializer).toString();
548
- if ((a = B.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
547
+ if (n.indexOf("application/x-www-form-urlencoded") > -1) return Ot(e, this.formSerializer).toString();
548
+ if ((a = V.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
549
549
  let t = this.env && this.env.FormData;
550
- return mt(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
550
+ return pt(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
551
551
  }
552
552
  }
553
- return i || r ? (t.setContentType("application/json", !1), Nt(e)) : e;
553
+ return i || r ? (t.setContentType("application/json", !1), Mt(e)) : e;
554
554
  }],
555
555
  transformResponse: [function(e) {
556
- let t = this.transitional || Pt.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
557
- if (B.isResponse(e) || B.isReadableStream(e)) return e;
558
- if (e && B.isString(e) && (n && !this.responseType || r)) {
556
+ let t = this.transitional || Nt.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
557
+ if (V.isResponse(e) || V.isReadableStream(e)) return e;
558
+ if (e && V.isString(e) && (n && !this.responseType || r)) {
559
559
  let n = !(t && t.silentJSONParsing) && r;
560
560
  try {
561
561
  return JSON.parse(e, this.parseReviver);
562
562
  } catch (e) {
563
- if (n) throw e.name === "SyntaxError" ? V.from(e, V.ERR_BAD_RESPONSE, this, null, this.response) : e;
563
+ if (n) throw e.name === "SyntaxError" ? H.from(e, H.ERR_BAD_RESPONSE, this, null, this.response) : e;
564
564
  }
565
565
  }
566
566
  return e;
@@ -571,8 +571,8 @@ var Pt = {
571
571
  maxContentLength: -1,
572
572
  maxBodyLength: -1,
573
573
  env: {
574
- FormData: H.classes.FormData,
575
- Blob: H.classes.Blob
574
+ FormData: U.classes.FormData,
575
+ Blob: U.classes.Blob
576
576
  },
577
577
  validateStatus: function(e) {
578
578
  return e >= 200 && e < 300;
@@ -582,7 +582,7 @@ var Pt = {
582
582
  "Content-Type": void 0
583
583
  } }
584
584
  };
585
- B.forEach([
585
+ V.forEach([
586
586
  "delete",
587
587
  "get",
588
588
  "head",
@@ -590,11 +590,11 @@ B.forEach([
590
590
  "put",
591
591
  "patch"
592
592
  ], (e) => {
593
- Pt.headers[e] = {};
593
+ Nt.headers[e] = {};
594
594
  });
595
595
  //#endregion
596
596
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/parseHeaders.js
597
- var Ft = B.toObjectSet([
597
+ var Pt = V.toObjectSet([
598
598
  "age",
599
599
  "authorization",
600
600
  "content-length",
@@ -612,25 +612,25 @@ var Ft = B.toObjectSet([
612
612
  "referer",
613
613
  "retry-after",
614
614
  "user-agent"
615
- ]), It = (e) => {
615
+ ]), Ft = (e) => {
616
616
  let t = {}, n, r, i;
617
617
  return e && e.split("\n").forEach(function(e) {
618
- i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && Ft[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
618
+ i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && Pt[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
619
619
  }), t;
620
- }, Lt = Symbol("internals"), Rt = (e) => !/[\r\n]/.test(e);
621
- function zt(e, t) {
620
+ }, It = Symbol("internals"), Lt = (e) => !/[\r\n]/.test(e);
621
+ function Rt(e, t) {
622
622
  if (!(e === !1 || e == null)) {
623
- if (B.isArray(e)) {
624
- e.forEach((e) => zt(e, t));
623
+ if (V.isArray(e)) {
624
+ e.forEach((e) => Rt(e, t));
625
625
  return;
626
626
  }
627
- if (!Rt(String(e))) throw Error(`Invalid character in header content ["${t}"]`);
627
+ if (!Lt(String(e))) throw Error(`Invalid character in header content ["${t}"]`);
628
628
  }
629
629
  }
630
- function Bt(e) {
630
+ function zt(e) {
631
631
  return e && String(e).trim().toLowerCase();
632
632
  }
633
- function Vt(e) {
633
+ function Bt(e) {
634
634
  let t = e.length;
635
635
  for (; t > 0;) {
636
636
  let n = e.charCodeAt(t - 1);
@@ -639,27 +639,27 @@ function Vt(e) {
639
639
  }
640
640
  return t === e.length ? e : e.slice(0, t);
641
641
  }
642
- function Ht(e) {
643
- return e === !1 || e == null ? e : B.isArray(e) ? e.map(Ht) : Vt(String(e));
642
+ function Vt(e) {
643
+ return e === !1 || e == null ? e : V.isArray(e) ? e.map(Vt) : Bt(String(e));
644
644
  }
645
- function Ut(e) {
645
+ function Ht(e) {
646
646
  let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
647
647
  for (; r = n.exec(e);) t[r[1]] = r[2];
648
648
  return t;
649
649
  }
650
- var Wt = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
- function Gt(e, t, n, r, i) {
652
- if (B.isFunction(r)) return r.call(this, t, n);
653
- if (i && (t = n), B.isString(t)) {
654
- if (B.isString(r)) return t.indexOf(r) !== -1;
655
- if (B.isRegExp(r)) return r.test(t);
650
+ var Ut = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
651
+ function Wt(e, t, n, r, i) {
652
+ if (V.isFunction(r)) return r.call(this, t, n);
653
+ if (i && (t = n), V.isString(t)) {
654
+ if (V.isString(r)) return t.indexOf(r) !== -1;
655
+ if (V.isRegExp(r)) return r.test(t);
656
656
  }
657
657
  }
658
- function Kt(e) {
658
+ function Gt(e) {
659
659
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
660
660
  }
661
- function qt(e, t) {
662
- let n = B.toCamelCase(" " + t);
661
+ function Kt(e, t) {
662
+ let n = V.toCamelCase(" " + t);
663
663
  [
664
664
  "get",
665
665
  "set",
@@ -673,79 +673,79 @@ function qt(e, t) {
673
673
  });
674
674
  });
675
675
  }
676
- var U = class {
676
+ var W = class {
677
677
  constructor(e) {
678
678
  e && this.set(e);
679
679
  }
680
680
  set(e, t, n) {
681
681
  let r = this;
682
682
  function i(e, t, n) {
683
- let i = Bt(t);
683
+ let i = zt(t);
684
684
  if (!i) throw Error("header name must be a non-empty string");
685
- let a = B.findKey(r, i);
686
- (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (zt(e, t), r[a || t] = Ht(e));
685
+ let a = V.findKey(r, i);
686
+ (!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (Rt(e, t), r[a || t] = Vt(e));
687
687
  }
688
- let a = (e, t) => B.forEach(e, (e, n) => i(e, n, t));
689
- if (B.isPlainObject(e) || e instanceof this.constructor) a(e, t);
690
- else if (B.isString(e) && (e = e.trim()) && !Wt(e)) a(It(e), t);
691
- else if (B.isObject(e) && B.isIterable(e)) {
688
+ let a = (e, t) => V.forEach(e, (e, n) => i(e, n, t));
689
+ if (V.isPlainObject(e) || e instanceof this.constructor) a(e, t);
690
+ else if (V.isString(e) && (e = e.trim()) && !Ut(e)) a(Ft(e), t);
691
+ else if (V.isObject(e) && V.isIterable(e)) {
692
692
  let n = {}, r, i;
693
693
  for (let t of e) {
694
- if (!B.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
695
- n[i = t[0]] = (r = n[i]) ? B.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
694
+ if (!V.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
695
+ n[i = t[0]] = (r = n[i]) ? V.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
696
696
  }
697
697
  a(n, t);
698
698
  } else e != null && i(t, e, n);
699
699
  return this;
700
700
  }
701
701
  get(e, t) {
702
- if (e = Bt(e), e) {
703
- let n = B.findKey(this, e);
702
+ if (e = zt(e), e) {
703
+ let n = V.findKey(this, e);
704
704
  if (n) {
705
705
  let e = this[n];
706
706
  if (!t) return e;
707
- if (t === !0) return Ut(e);
708
- if (B.isFunction(t)) return t.call(this, e, n);
709
- if (B.isRegExp(t)) return t.exec(e);
707
+ if (t === !0) return Ht(e);
708
+ if (V.isFunction(t)) return t.call(this, e, n);
709
+ if (V.isRegExp(t)) return t.exec(e);
710
710
  throw TypeError("parser must be boolean|regexp|function");
711
711
  }
712
712
  }
713
713
  }
714
714
  has(e, t) {
715
- if (e = Bt(e), e) {
716
- let n = B.findKey(this, e);
717
- return !!(n && this[n] !== void 0 && (!t || Gt(this, this[n], n, t)));
715
+ if (e = zt(e), e) {
716
+ let n = V.findKey(this, e);
717
+ return !!(n && this[n] !== void 0 && (!t || Wt(this, this[n], n, t)));
718
718
  }
719
719
  return !1;
720
720
  }
721
721
  delete(e, t) {
722
722
  let n = this, r = !1;
723
723
  function i(e) {
724
- if (e = Bt(e), e) {
725
- let i = B.findKey(n, e);
726
- i && (!t || Gt(n, n[i], i, t)) && (delete n[i], r = !0);
724
+ if (e = zt(e), e) {
725
+ let i = V.findKey(n, e);
726
+ i && (!t || Wt(n, n[i], i, t)) && (delete n[i], r = !0);
727
727
  }
728
728
  }
729
- return B.isArray(e) ? e.forEach(i) : i(e), r;
729
+ return V.isArray(e) ? e.forEach(i) : i(e), r;
730
730
  }
731
731
  clear(e) {
732
732
  let t = Object.keys(this), n = t.length, r = !1;
733
733
  for (; n--;) {
734
734
  let i = t[n];
735
- (!e || Gt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
735
+ (!e || Wt(this, this[i], i, e, !0)) && (delete this[i], r = !0);
736
736
  }
737
737
  return r;
738
738
  }
739
739
  normalize(e) {
740
740
  let t = this, n = {};
741
- return B.forEach(this, (r, i) => {
742
- let a = B.findKey(n, i);
741
+ return V.forEach(this, (r, i) => {
742
+ let a = V.findKey(n, i);
743
743
  if (a) {
744
- t[a] = Ht(r), delete t[i];
744
+ t[a] = Vt(r), delete t[i];
745
745
  return;
746
746
  }
747
- let o = e ? Kt(i) : String(i).trim();
748
- o !== i && delete t[i], t[o] = Ht(r), n[o] = !0;
747
+ let o = e ? Gt(i) : String(i).trim();
748
+ o !== i && delete t[i], t[o] = Vt(r), n[o] = !0;
749
749
  }), this;
750
750
  }
751
751
  concat(...e) {
@@ -753,8 +753,8 @@ var U = class {
753
753
  }
754
754
  toJSON(e) {
755
755
  let t = Object.create(null);
756
- return B.forEach(this, (n, r) => {
757
- n != null && n !== !1 && (t[r] = e && B.isArray(n) ? n.join(", ") : n);
756
+ return V.forEach(this, (n, r) => {
757
+ n != null && n !== !1 && (t[r] = e && V.isArray(n) ? n.join(", ") : n);
758
758
  }), t;
759
759
  }
760
760
  [Symbol.iterator]() {
@@ -777,22 +777,22 @@ var U = class {
777
777
  return t.forEach((e) => n.set(e)), n;
778
778
  }
779
779
  static accessor(e) {
780
- let t = (this[Lt] = this[Lt] = { accessors: {} }).accessors, n = this.prototype;
780
+ let t = (this[It] = this[It] = { accessors: {} }).accessors, n = this.prototype;
781
781
  function r(e) {
782
- let r = Bt(e);
783
- t[r] || (qt(n, e), t[r] = !0);
782
+ let r = zt(e);
783
+ t[r] || (Kt(n, e), t[r] = !0);
784
784
  }
785
- return B.isArray(e) ? e.forEach(r) : r(e), this;
785
+ return V.isArray(e) ? e.forEach(r) : r(e), this;
786
786
  }
787
787
  };
788
- U.accessor([
788
+ W.accessor([
789
789
  "Content-Type",
790
790
  "Content-Length",
791
791
  "Accept",
792
792
  "Accept-Encoding",
793
793
  "User-Agent",
794
794
  "Authorization"
795
- ]), B.reduceDescriptors(U.prototype, ({ value: e }, t) => {
795
+ ]), V.reduceDescriptors(W.prototype, ({ value: e }, t) => {
796
796
  let n = t[0].toUpperCase() + t.slice(1);
797
797
  return {
798
798
  get: () => e,
@@ -800,42 +800,42 @@ U.accessor([
800
800
  this[n] = e;
801
801
  }
802
802
  };
803
- }), B.freezeMethods(U);
803
+ }), V.freezeMethods(W);
804
804
  //#endregion
805
805
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/transformData.js
806
- function Jt(e, t) {
807
- let n = this || Pt, r = t || n, i = U.from(r.headers), a = r.data;
808
- return B.forEach(e, function(e) {
806
+ function qt(e, t) {
807
+ let n = this || Nt, r = t || n, i = W.from(r.headers), a = r.data;
808
+ return V.forEach(e, function(e) {
809
809
  a = e.call(n, a, i.normalize(), t ? t.status : void 0);
810
810
  }), i.normalize(), a;
811
811
  }
812
812
  //#endregion
813
813
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/cancel/isCancel.js
814
- function Yt(e) {
814
+ function Jt(e) {
815
815
  return !!(e && e.__CANCEL__);
816
816
  }
817
817
  //#endregion
818
818
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/cancel/CanceledError.js
819
- var Xt = class extends V {
819
+ var Yt = class extends H {
820
820
  constructor(e, t, n) {
821
- super(e ?? "canceled", V.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
821
+ super(e ?? "canceled", H.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
822
822
  }
823
823
  };
824
824
  //#endregion
825
825
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/settle.js
826
- function Zt(e, t, n) {
826
+ function Xt(e, t, n) {
827
827
  let r = n.config.validateStatus;
828
- !n.status || !r || r(n.status) ? e(n) : t(new V("Request failed with status code " + n.status, [V.ERR_BAD_REQUEST, V.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
828
+ !n.status || !r || r(n.status) ? e(n) : t(new H("Request failed with status code " + n.status, [H.ERR_BAD_REQUEST, H.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
829
829
  }
830
830
  //#endregion
831
831
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/parseProtocol.js
832
- function Qt(e) {
832
+ function Zt(e) {
833
833
  let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
834
834
  return t && t[1] || "";
835
835
  }
836
836
  //#endregion
837
837
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/speedometer.js
838
- function $t(e, t) {
838
+ function Qt(e, t) {
839
839
  e ||= 10;
840
840
  let n = Array(e), r = Array(e), i = 0, a = 0, o;
841
841
  return t = t === void 0 ? 1e3 : t, function(s) {
@@ -850,7 +850,7 @@ function $t(e, t) {
850
850
  }
851
851
  //#endregion
852
852
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/throttle.js
853
- function en(e, t) {
853
+ function $t(e, t) {
854
854
  let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
855
855
  n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
856
856
  };
@@ -863,9 +863,9 @@ function en(e, t) {
863
863
  }
864
864
  //#endregion
865
865
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/progressEventReducer.js
866
- var tn = (e, t, n = 3) => {
867
- let r = 0, i = $t(50, 250);
868
- return en((n) => {
866
+ var en = (e, t, n = 3) => {
867
+ let r = 0, i = Qt(50, 250);
868
+ return $t((n) => {
869
869
  let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
870
870
  r = a, e({
871
871
  loaded: a,
@@ -879,18 +879,18 @@ var tn = (e, t, n = 3) => {
879
879
  [t ? "download" : "upload"]: !0
880
880
  });
881
881
  }, n);
882
- }, nn = (e, t) => {
882
+ }, tn = (e, t) => {
883
883
  let n = e != null;
884
884
  return [(r) => t[0]({
885
885
  lengthComputable: n,
886
886
  total: e,
887
887
  loaded: r
888
888
  }), t[1]];
889
- }, rn = (e) => (...t) => B.asap(() => e(...t)), an = H.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, H.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(H.origin), H.navigator && /(msie|trident)/i.test(H.navigator.userAgent)) : () => !0, on = H.hasStandardBrowserEnv ? {
889
+ }, nn = (e) => (...t) => V.asap(() => e(...t)), rn = U.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, U.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(U.origin), U.navigator && /(msie|trident)/i.test(U.navigator.userAgent)) : () => !0, an = U.hasStandardBrowserEnv ? {
890
890
  write(e, t, n, r, i, a, o) {
891
891
  if (typeof document > "u") return;
892
892
  let s = [`${e}=${encodeURIComponent(t)}`];
893
- B.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), B.isString(r) && s.push(`path=${r}`), B.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), B.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
893
+ V.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), V.isString(r) && s.push(`path=${r}`), V.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), V.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
894
894
  },
895
895
  read(e) {
896
896
  if (typeof document > "u") return null;
@@ -909,39 +909,39 @@ var tn = (e, t, n = 3) => {
909
909
  };
910
910
  //#endregion
911
911
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
912
- function sn(e) {
912
+ function on(e) {
913
913
  return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
914
914
  }
915
915
  //#endregion
916
916
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/combineURLs.js
917
- function cn(e, t) {
917
+ function sn(e, t) {
918
918
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
919
919
  }
920
920
  //#endregion
921
921
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/buildFullPath.js
922
- function ln(e, t, n) {
923
- let r = !sn(t);
924
- return e && (r || n == 0) ? cn(e, t) : t;
922
+ function cn(e, t, n) {
923
+ let r = !on(t);
924
+ return e && (r || n == 0) ? sn(e, t) : t;
925
925
  }
926
926
  //#endregion
927
927
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/mergeConfig.js
928
- var un = (e) => e instanceof U ? { ...e } : e;
929
- function dn(e, t) {
928
+ var ln = (e) => e instanceof W ? { ...e } : e;
929
+ function un(e, t) {
930
930
  t ||= {};
931
931
  let n = {};
932
932
  function r(e, t, n, r) {
933
- return B.isPlainObject(e) && B.isPlainObject(t) ? B.merge.call({ caseless: r }, e, t) : B.isPlainObject(t) ? B.merge({}, t) : B.isArray(t) ? t.slice() : t;
933
+ return V.isPlainObject(e) && V.isPlainObject(t) ? V.merge.call({ caseless: r }, e, t) : V.isPlainObject(t) ? V.merge({}, t) : V.isArray(t) ? t.slice() : t;
934
934
  }
935
935
  function i(e, t, n, i) {
936
- if (!B.isUndefined(t)) return r(e, t, n, i);
937
- if (!B.isUndefined(e)) return r(void 0, e, n, i);
936
+ if (!V.isUndefined(t)) return r(e, t, n, i);
937
+ if (!V.isUndefined(e)) return r(void 0, e, n, i);
938
938
  }
939
939
  function a(e, t) {
940
- if (!B.isUndefined(t)) return r(void 0, t);
940
+ if (!V.isUndefined(t)) return r(void 0, t);
941
941
  }
942
942
  function o(e, t) {
943
- if (!B.isUndefined(t)) return r(void 0, t);
944
- if (!B.isUndefined(e)) return r(void 0, e);
943
+ if (!V.isUndefined(t)) return r(void 0, t);
944
+ if (!V.isUndefined(e)) return r(void 0, e);
945
945
  }
946
946
  function s(n, i, a) {
947
947
  if (a in t) return r(n, i);
@@ -976,38 +976,38 @@ function dn(e, t) {
976
976
  socketPath: o,
977
977
  responseEncoding: o,
978
978
  validateStatus: s,
979
- headers: (e, t, n) => i(un(e), un(t), n, !0)
979
+ headers: (e, t, n) => i(ln(e), ln(t), n, !0)
980
980
  };
981
- return B.forEach(Object.keys({
981
+ return V.forEach(Object.keys({
982
982
  ...e,
983
983
  ...t
984
984
  }), function(r) {
985
985
  if (r === "__proto__" || r === "constructor" || r === "prototype") return;
986
- let a = B.hasOwnProp(c, r) ? c[r] : i, o = a(e[r], t[r], r);
987
- B.isUndefined(o) && a !== s || (n[r] = o);
986
+ let a = V.hasOwnProp(c, r) ? c[r] : i, o = a(e[r], t[r], r);
987
+ V.isUndefined(o) && a !== s || (n[r] = o);
988
988
  }), n;
989
989
  }
990
990
  //#endregion
991
991
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/resolveConfig.js
992
- var fn = (e) => {
993
- let t = dn({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
994
- if (t.headers = o = U.from(o), t.url = yt(ln(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), B.isFormData(n)) {
995
- if (H.hasStandardBrowserEnv || H.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
996
- else if (B.isFunction(n.getHeaders)) {
992
+ var dn = (e) => {
993
+ let t = un({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
994
+ if (t.headers = o = W.from(o), t.url = vt(cn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), V.isFormData(n)) {
995
+ if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
996
+ else if (V.isFunction(n.getHeaders)) {
997
997
  let e = n.getHeaders(), t = ["content-type", "content-length"];
998
998
  Object.entries(e).forEach(([e, n]) => {
999
999
  t.includes(e.toLowerCase()) && o.set(e, n);
1000
1000
  });
1001
1001
  }
1002
1002
  }
1003
- if (H.hasStandardBrowserEnv && (r && B.isFunction(r) && (r = r(t)), r || r !== !1 && an(t.url))) {
1004
- let e = i && a && on.read(a);
1003
+ if (U.hasStandardBrowserEnv && (r && V.isFunction(r) && (r = r(t)), r || r !== !1 && rn(t.url))) {
1004
+ let e = i && a && an.read(a);
1005
1005
  e && o.set(i, e);
1006
1006
  }
1007
1007
  return t;
1008
- }, pn = typeof XMLHttpRequest < "u" && function(e) {
1008
+ }, fn = typeof XMLHttpRequest < "u" && function(e) {
1009
1009
  return new Promise(function(t, n) {
1010
- let r = fn(e), i = r.data, a = U.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
1010
+ let r = dn(e), i = r.data, a = W.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
1011
1011
  function m() {
1012
1012
  f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
1013
1013
  }
@@ -1015,8 +1015,8 @@ var fn = (e) => {
1015
1015
  h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
1016
1016
  function g() {
1017
1017
  if (!h) return;
1018
- let r = U.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
1019
- Zt(function(e) {
1018
+ let r = W.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
1019
+ Xt(function(e) {
1020
1020
  t(e), m();
1021
1021
  }, function(e) {
1022
1022
  n(e), m();
@@ -1032,36 +1032,36 @@ var fn = (e) => {
1032
1032
  "onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
1033
1033
  !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
1034
1034
  }, h.onabort = function() {
1035
- h &&= (n(new V("Request aborted", V.ECONNABORTED, e, h)), null);
1035
+ h &&= (n(new H("Request aborted", H.ECONNABORTED, e, h)), null);
1036
1036
  }, h.onerror = function(t) {
1037
- let r = new V(t && t.message ? t.message : "Network Error", V.ERR_NETWORK, e, h);
1037
+ let r = new H(t && t.message ? t.message : "Network Error", H.ERR_NETWORK, e, h);
1038
1038
  r.event = t || null, n(r), h = null;
1039
1039
  }, h.ontimeout = function() {
1040
- let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || xt;
1041
- r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new V(t, i.clarifyTimeoutError ? V.ETIMEDOUT : V.ECONNABORTED, e, h)), h = null;
1042
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && B.forEach(a.toJSON(), function(e, t) {
1040
+ let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || bt;
1041
+ r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new H(t, i.clarifyTimeoutError ? H.ETIMEDOUT : H.ECONNABORTED, e, h)), h = null;
1042
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in h && V.forEach(a.toJSON(), function(e, t) {
1043
1043
  h.setRequestHeader(t, e);
1044
- }), B.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = tn(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = tn(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
1045
- h &&= (n(!t || t.type ? new Xt(null, e, h) : t), h.abort(), null);
1044
+ }), V.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = en(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = en(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
1045
+ h &&= (n(!t || t.type ? new Yt(null, e, h) : t), h.abort(), null);
1046
1046
  }, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
1047
- let _ = Qt(r.url);
1048
- if (_ && H.protocols.indexOf(_) === -1) {
1049
- n(new V("Unsupported protocol " + _ + ":", V.ERR_BAD_REQUEST, e));
1047
+ let _ = Zt(r.url);
1048
+ if (_ && U.protocols.indexOf(_) === -1) {
1049
+ n(new H("Unsupported protocol " + _ + ":", H.ERR_BAD_REQUEST, e));
1050
1050
  return;
1051
1051
  }
1052
1052
  h.send(i || null);
1053
1053
  });
1054
- }, mn = (e, t) => {
1054
+ }, pn = (e, t) => {
1055
1055
  let { length: n } = e = e ? e.filter(Boolean) : [];
1056
1056
  if (t || n) {
1057
1057
  let n = new AbortController(), r, i = function(e) {
1058
1058
  if (!r) {
1059
1059
  r = !0, o();
1060
1060
  let t = e instanceof Error ? e : this.reason;
1061
- n.abort(t instanceof V ? t : new Xt(t instanceof Error ? t.message : t));
1061
+ n.abort(t instanceof H ? t : new Yt(t instanceof Error ? t.message : t));
1062
1062
  }
1063
1063
  }, a = t && setTimeout(() => {
1064
- a = null, i(new V(`timeout of ${t}ms exceeded`, V.ETIMEDOUT));
1064
+ a = null, i(new H(`timeout of ${t}ms exceeded`, H.ETIMEDOUT));
1065
1065
  }, t), o = () => {
1066
1066
  e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
1067
1067
  e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
@@ -1069,9 +1069,9 @@ var fn = (e) => {
1069
1069
  };
1070
1070
  e.forEach((e) => e.addEventListener("abort", i));
1071
1071
  let { signal: s } = n;
1072
- return s.unsubscribe = () => B.asap(o), s;
1072
+ return s.unsubscribe = () => V.asap(o), s;
1073
1073
  }
1074
- }, hn = function* (e, t) {
1074
+ }, mn = function* (e, t) {
1075
1075
  let n = e.byteLength;
1076
1076
  if (!t || n < t) {
1077
1077
  yield e;
@@ -1079,9 +1079,9 @@ var fn = (e) => {
1079
1079
  }
1080
1080
  let r = 0, i;
1081
1081
  for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
1082
- }, gn = async function* (e, t) {
1083
- for await (let n of _n(e)) yield* hn(n, t);
1084
- }, _n = async function* (e) {
1082
+ }, hn = async function* (e, t) {
1083
+ for await (let n of gn(e)) yield* mn(n, t);
1084
+ }, gn = async function* (e) {
1085
1085
  if (e[Symbol.asyncIterator]) {
1086
1086
  yield* e;
1087
1087
  return;
@@ -1096,8 +1096,8 @@ var fn = (e) => {
1096
1096
  } finally {
1097
1097
  await t.cancel();
1098
1098
  }
1099
- }, vn = (e, t, n, r) => {
1100
- let i = gn(e, t), a = 0, o, s = (e) => {
1099
+ }, _n = (e, t, n, r) => {
1100
+ let i = hn(e, t), a = 0, o, s = (e) => {
1101
1101
  o || (o = !0, r && r(e));
1102
1102
  };
1103
1103
  return new ReadableStream({
@@ -1118,21 +1118,21 @@ var fn = (e) => {
1118
1118
  return s(e), i.return();
1119
1119
  }
1120
1120
  }, { highWaterMark: 2 });
1121
- }, yn = 64 * 1024, { isFunction: bn } = B, xn = (({ Request: e, Response: t }) => ({
1121
+ }, vn = 64 * 1024, { isFunction: yn } = V, bn = (({ Request: e, Response: t }) => ({
1122
1122
  Request: e,
1123
1123
  Response: t
1124
- }))(B.global), { ReadableStream: Sn, TextEncoder: Cn } = B.global, wn = (e, ...t) => {
1124
+ }))(V.global), { ReadableStream: xn, TextEncoder: Sn } = V.global, Cn = (e, ...t) => {
1125
1125
  try {
1126
1126
  return !!e(...t);
1127
1127
  } catch {
1128
1128
  return !1;
1129
1129
  }
1130
- }, Tn = (e) => {
1131
- e = B.merge.call({ skipUndefined: !0 }, xn, e);
1132
- let { fetch: t, Request: n, Response: r } = e, i = t ? bn(t) : typeof fetch == "function", a = bn(n), o = bn(r);
1130
+ }, wn = (e) => {
1131
+ e = V.merge.call({ skipUndefined: !0 }, bn, e);
1132
+ let { fetch: t, Request: n, Response: r } = e, i = t ? yn(t) : typeof fetch == "function", a = yn(n), o = yn(r);
1133
1133
  if (!i) return !1;
1134
- let s = i && bn(Sn), c = i && (typeof Cn == "function" ? ((e) => (t) => e.encode(t))(new Cn()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && wn(() => {
1135
- let e = !1, t = new Sn(), r = new n(H.origin, {
1134
+ let s = i && yn(xn), c = i && (typeof Sn == "function" ? ((e) => (t) => e.encode(t))(new Sn()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && Cn(() => {
1135
+ let e = !1, t = new xn(), r = new n(U.origin, {
1136
1136
  body: t,
1137
1137
  method: "POST",
1138
1138
  get duplex() {
@@ -1140,7 +1140,7 @@ var fn = (e) => {
1140
1140
  }
1141
1141
  }).headers.has("Content-Type");
1142
1142
  return t.cancel(), e && !r;
1143
- }), u = o && s && wn(() => B.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
1143
+ }), u = o && s && Cn(() => V.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
1144
1144
  i && [
1145
1145
  "text",
1146
1146
  "arrayBuffer",
@@ -1151,23 +1151,23 @@ var fn = (e) => {
1151
1151
  !d[e] && (d[e] = (t, n) => {
1152
1152
  let r = t && t[e];
1153
1153
  if (r) return r.call(t);
1154
- throw new V(`Response type '${e}' is not supported`, V.ERR_NOT_SUPPORT, n);
1154
+ throw new H(`Response type '${e}' is not supported`, H.ERR_NOT_SUPPORT, n);
1155
1155
  });
1156
1156
  });
1157
1157
  let f = async (e) => {
1158
1158
  if (e == null) return 0;
1159
- if (B.isBlob(e)) return e.size;
1160
- if (B.isSpecCompliantForm(e)) return (await new n(H.origin, {
1159
+ if (V.isBlob(e)) return e.size;
1160
+ if (V.isSpecCompliantForm(e)) return (await new n(U.origin, {
1161
1161
  method: "POST",
1162
1162
  body: e
1163
1163
  }).arrayBuffer()).byteLength;
1164
- if (B.isArrayBufferView(e) || B.isArrayBuffer(e)) return e.byteLength;
1165
- if (B.isURLSearchParams(e) && (e += ""), B.isString(e)) return (await c(e)).byteLength;
1166
- }, p = async (e, t) => B.toFiniteNumber(e.getContentLength()) ?? f(t);
1164
+ if (V.isArrayBufferView(e) || V.isArrayBuffer(e)) return e.byteLength;
1165
+ if (V.isURLSearchParams(e) && (e += ""), V.isString(e)) return (await c(e)).byteLength;
1166
+ }, p = async (e, t) => V.toFiniteNumber(e.getContentLength()) ?? f(t);
1167
1167
  return async (e) => {
1168
- let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = fn(e), x = t || fetch;
1168
+ let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = dn(e), x = t || fetch;
1169
1169
  _ = _ ? (_ + "").toLowerCase() : "text";
1170
- let S = mn([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
1170
+ let S = pn([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
1171
1171
  S.unsubscribe();
1172
1172
  }), T;
1173
1173
  try {
@@ -1177,12 +1177,12 @@ var fn = (e) => {
1177
1177
  body: s,
1178
1178
  duplex: "half"
1179
1179
  }), t;
1180
- if (B.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
1181
- let [t, n] = nn(T, tn(rn(g)));
1182
- s = vn(e.body, yn, t, n);
1180
+ if (V.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
1181
+ let [t, n] = tn(T, en(nn(g)));
1182
+ s = _n(e.body, vn, t, n);
1183
1183
  }
1184
1184
  }
1185
- B.isString(y) || (y = y ? "include" : "omit");
1185
+ V.isString(y) || (y = y ? "include" : "omit");
1186
1186
  let t = a && "credentials" in n.prototype, c = {
1187
1187
  ...b,
1188
1188
  signal: S,
@@ -1203,17 +1203,17 @@ var fn = (e) => {
1203
1203
  ].forEach((t) => {
1204
1204
  e[t] = f[t];
1205
1205
  });
1206
- let t = B.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && nn(t, tn(rn(h), !0)) || [];
1207
- f = new r(vn(f.body, yn, n, () => {
1206
+ let t = V.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && tn(t, en(nn(h), !0)) || [];
1207
+ f = new r(_n(f.body, vn, n, () => {
1208
1208
  i && i(), w && w();
1209
1209
  }), e);
1210
1210
  }
1211
1211
  _ ||= "text";
1212
- let E = await d[B.findKey(d, _) || "text"](f, e);
1212
+ let E = await d[V.findKey(d, _) || "text"](f, e);
1213
1213
  return !m && w && w(), await new Promise((t, n) => {
1214
- Zt(t, n, {
1214
+ Xt(t, n, {
1215
1215
  data: E,
1216
- headers: U.from(f.headers),
1216
+ headers: W.from(f.headers),
1217
1217
  status: f.status,
1218
1218
  statusText: f.statusText,
1219
1219
  config: e,
@@ -1221,27 +1221,27 @@ var fn = (e) => {
1221
1221
  });
1222
1222
  });
1223
1223
  } catch (t) {
1224
- throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new V("Network Error", V.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : V.from(t, t && t.code, e, C, t && t.response);
1224
+ throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new H("Network Error", H.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : H.from(t, t && t.code, e, C, t && t.response);
1225
1225
  }
1226
1226
  };
1227
- }, En = /* @__PURE__ */ new Map(), Dn = (e) => {
1227
+ }, Tn = /* @__PURE__ */ new Map(), En = (e) => {
1228
1228
  let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
1229
1229
  r,
1230
1230
  i,
1231
1231
  n
1232
- ], o = a.length, s, c, l = En;
1233
- for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : Tn(t)), l = c;
1232
+ ], o = a.length, s, c, l = Tn;
1233
+ for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : wn(t)), l = c;
1234
1234
  return c;
1235
1235
  };
1236
- Dn();
1236
+ En();
1237
1237
  //#endregion
1238
1238
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/adapters/adapters.js
1239
- var On = {
1239
+ var Dn = {
1240
1240
  http: null,
1241
- xhr: pn,
1242
- fetch: { get: Dn }
1241
+ xhr: fn,
1242
+ fetch: { get: En }
1243
1243
  };
1244
- B.forEach(On, (e, t) => {
1244
+ V.forEach(Dn, (e, t) => {
1245
1245
  if (e) {
1246
1246
  try {
1247
1247
  Object.defineProperty(e, "name", { value: t });
@@ -1249,46 +1249,46 @@ B.forEach(On, (e, t) => {
1249
1249
  Object.defineProperty(e, "adapterName", { value: t });
1250
1250
  }
1251
1251
  });
1252
- var kn = (e) => `- ${e}`, An = (e) => B.isFunction(e) || e === null || e === !1;
1253
- function jn(e, t) {
1254
- e = B.isArray(e) ? e : [e];
1252
+ var On = (e) => `- ${e}`, kn = (e) => V.isFunction(e) || e === null || e === !1;
1253
+ function An(e, t) {
1254
+ e = V.isArray(e) ? e : [e];
1255
1255
  let { length: n } = e, r, i, a = {};
1256
1256
  for (let o = 0; o < n; o++) {
1257
1257
  r = e[o];
1258
1258
  let n;
1259
- if (i = r, !An(r) && (i = On[(n = String(r)).toLowerCase()], i === void 0)) throw new V(`Unknown adapter '${n}'`);
1260
- if (i && (B.isFunction(i) || (i = i.get(t)))) break;
1259
+ if (i = r, !kn(r) && (i = Dn[(n = String(r)).toLowerCase()], i === void 0)) throw new H(`Unknown adapter '${n}'`);
1260
+ if (i && (V.isFunction(i) || (i = i.get(t)))) break;
1261
1261
  a[n || "#" + o] = i;
1262
1262
  }
1263
1263
  if (!i) {
1264
1264
  let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
1265
- throw new V("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(kn).join("\n") : " " + kn(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
1265
+ throw new H("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(On).join("\n") : " " + On(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
1266
1266
  }
1267
1267
  return i;
1268
1268
  }
1269
- var Mn = {
1270
- getAdapter: jn,
1271
- adapters: On
1269
+ var jn = {
1270
+ getAdapter: An,
1271
+ adapters: Dn
1272
1272
  };
1273
1273
  //#endregion
1274
1274
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/core/dispatchRequest.js
1275
- function Nn(e) {
1276
- if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Xt(null, e);
1275
+ function Mn(e) {
1276
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Yt(null, e);
1277
1277
  }
1278
- function Pn(e) {
1279
- return Nn(e), e.headers = U.from(e.headers), e.data = Jt.call(e, e.transformRequest), [
1278
+ function Nn(e) {
1279
+ return Mn(e), e.headers = W.from(e.headers), e.data = qt.call(e, e.transformRequest), [
1280
1280
  "post",
1281
1281
  "put",
1282
1282
  "patch"
1283
- ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Mn.getAdapter(e.adapter || Pt.adapter, e)(e).then(function(t) {
1284
- return Nn(e), t.data = Jt.call(e, e.transformResponse, t), t.headers = U.from(t.headers), t;
1283
+ ].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), jn.getAdapter(e.adapter || Nt.adapter, e)(e).then(function(t) {
1284
+ return Mn(e), t.data = qt.call(e, e.transformResponse, t), t.headers = W.from(t.headers), t;
1285
1285
  }, function(t) {
1286
- return Yt(t) || (Nn(e), t && t.response && (t.response.data = Jt.call(e, e.transformResponse, t.response), t.response.headers = U.from(t.response.headers))), Promise.reject(t);
1286
+ return Jt(t) || (Mn(e), t && t.response && (t.response.data = qt.call(e, e.transformResponse, t.response), t.response.headers = W.from(t.response.headers))), Promise.reject(t);
1287
1287
  });
1288
1288
  }
1289
1289
  //#endregion
1290
1290
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/env/data.js
1291
- var Fn = "1.15.0", In = {};
1291
+ var Pn = "1.15.0", Fn = {};
1292
1292
  [
1293
1293
  "object",
1294
1294
  "boolean",
@@ -1297,43 +1297,43 @@ var Fn = "1.15.0", In = {};
1297
1297
  "string",
1298
1298
  "symbol"
1299
1299
  ].forEach((e, t) => {
1300
- In[e] = function(n) {
1300
+ Fn[e] = function(n) {
1301
1301
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
1302
1302
  };
1303
1303
  });
1304
- var Ln = {};
1305
- In.transitional = function(e, t, n) {
1304
+ var In = {};
1305
+ Fn.transitional = function(e, t, n) {
1306
1306
  function r(e, t) {
1307
- return "[Axios v" + Fn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
1307
+ return "[Axios v" + Pn + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
1308
1308
  }
1309
1309
  return (n, i, a) => {
1310
- if (e === !1) throw new V(r(i, " has been removed" + (t ? " in " + t : "")), V.ERR_DEPRECATED);
1311
- return t && !Ln[i] && (Ln[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
1310
+ if (e === !1) throw new H(r(i, " has been removed" + (t ? " in " + t : "")), H.ERR_DEPRECATED);
1311
+ return t && !In[i] && (In[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
1312
1312
  };
1313
- }, In.spelling = function(e) {
1313
+ }, Fn.spelling = function(e) {
1314
1314
  return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
1315
1315
  };
1316
- function Rn(e, t, n) {
1317
- if (typeof e != "object") throw new V("options must be an object", V.ERR_BAD_OPTION_VALUE);
1316
+ function Ln(e, t, n) {
1317
+ if (typeof e != "object") throw new H("options must be an object", H.ERR_BAD_OPTION_VALUE);
1318
1318
  let r = Object.keys(e), i = r.length;
1319
1319
  for (; i-- > 0;) {
1320
1320
  let a = r[i], o = t[a];
1321
1321
  if (o) {
1322
1322
  let t = e[a], n = t === void 0 || o(t, a, e);
1323
- if (n !== !0) throw new V("option " + a + " must be " + n, V.ERR_BAD_OPTION_VALUE);
1323
+ if (n !== !0) throw new H("option " + a + " must be " + n, H.ERR_BAD_OPTION_VALUE);
1324
1324
  continue;
1325
1325
  }
1326
- if (n !== !0) throw new V("Unknown option " + a, V.ERR_BAD_OPTION);
1326
+ if (n !== !0) throw new H("Unknown option " + a, H.ERR_BAD_OPTION);
1327
1327
  }
1328
1328
  }
1329
- var zn = {
1330
- assertOptions: Rn,
1331
- validators: In
1332
- }, W = zn.validators, Bn = class {
1329
+ var Rn = {
1330
+ assertOptions: Ln,
1331
+ validators: Fn
1332
+ }, G = Rn.validators, zn = class {
1333
1333
  constructor(e) {
1334
1334
  this.defaults = e || {}, this.interceptors = {
1335
- request: new bt(),
1336
- response: new bt()
1335
+ request: new yt(),
1336
+ response: new yt()
1337
1337
  };
1338
1338
  }
1339
1339
  async request(e, t) {
@@ -1360,22 +1360,22 @@ var zn = {
1360
1360
  }
1361
1361
  }
1362
1362
  _request(e, t) {
1363
- typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = dn(this.defaults, t);
1363
+ typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = un(this.defaults, t);
1364
1364
  let { transitional: n, paramsSerializer: r, headers: i } = t;
1365
- n !== void 0 && zn.assertOptions(n, {
1366
- silentJSONParsing: W.transitional(W.boolean),
1367
- forcedJSONParsing: W.transitional(W.boolean),
1368
- clarifyTimeoutError: W.transitional(W.boolean),
1369
- legacyInterceptorReqResOrdering: W.transitional(W.boolean)
1370
- }, !1), r != null && (B.isFunction(r) ? t.paramsSerializer = { serialize: r } : zn.assertOptions(r, {
1371
- encode: W.function,
1372
- serialize: W.function
1373
- }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), zn.assertOptions(t, {
1374
- baseUrl: W.spelling("baseURL"),
1375
- withXsrfToken: W.spelling("withXSRFToken")
1365
+ n !== void 0 && Rn.assertOptions(n, {
1366
+ silentJSONParsing: G.transitional(G.boolean),
1367
+ forcedJSONParsing: G.transitional(G.boolean),
1368
+ clarifyTimeoutError: G.transitional(G.boolean),
1369
+ legacyInterceptorReqResOrdering: G.transitional(G.boolean)
1370
+ }, !1), r != null && (V.isFunction(r) ? t.paramsSerializer = { serialize: r } : Rn.assertOptions(r, {
1371
+ encode: G.function,
1372
+ serialize: G.function
1373
+ }, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), Rn.assertOptions(t, {
1374
+ baseUrl: G.spelling("baseURL"),
1375
+ withXsrfToken: G.spelling("withXSRFToken")
1376
1376
  }, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
1377
- let a = i && B.merge(i.common, i[t.method]);
1378
- i && B.forEach([
1377
+ let a = i && V.merge(i.common, i[t.method]);
1378
+ i && V.forEach([
1379
1379
  "delete",
1380
1380
  "get",
1381
1381
  "head",
@@ -1385,12 +1385,12 @@ var zn = {
1385
1385
  "common"
1386
1386
  ], (e) => {
1387
1387
  delete i[e];
1388
- }), t.headers = U.concat(a, i);
1388
+ }), t.headers = W.concat(a, i);
1389
1389
  let o = [], s = !0;
1390
1390
  this.interceptors.request.forEach(function(e) {
1391
1391
  if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
1392
1392
  s &&= e.synchronous;
1393
- let n = t.transitional || xt;
1393
+ let n = t.transitional || bt;
1394
1394
  n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
1395
1395
  });
1396
1396
  let c = [];
@@ -1399,7 +1399,7 @@ var zn = {
1399
1399
  });
1400
1400
  let l, u = 0, d;
1401
1401
  if (!s) {
1402
- let e = [Pn.bind(this), void 0];
1402
+ let e = [Nn.bind(this), void 0];
1403
1403
  for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
1404
1404
  return l;
1405
1405
  }
@@ -1415,7 +1415,7 @@ var zn = {
1415
1415
  }
1416
1416
  }
1417
1417
  try {
1418
- l = Pn.call(this, f);
1418
+ l = Nn.call(this, f);
1419
1419
  } catch (e) {
1420
1420
  return Promise.reject(e);
1421
1421
  }
@@ -1423,30 +1423,30 @@ var zn = {
1423
1423
  return l;
1424
1424
  }
1425
1425
  getUri(e) {
1426
- return e = dn(this.defaults, e), yt(ln(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
1426
+ return e = un(this.defaults, e), vt(cn(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
1427
1427
  }
1428
1428
  };
1429
- B.forEach([
1429
+ V.forEach([
1430
1430
  "delete",
1431
1431
  "get",
1432
1432
  "head",
1433
1433
  "options"
1434
1434
  ], function(e) {
1435
- Bn.prototype[e] = function(t, n) {
1436
- return this.request(dn(n || {}, {
1435
+ zn.prototype[e] = function(t, n) {
1436
+ return this.request(un(n || {}, {
1437
1437
  method: e,
1438
1438
  url: t,
1439
1439
  data: (n || {}).data
1440
1440
  }));
1441
1441
  };
1442
- }), B.forEach([
1442
+ }), V.forEach([
1443
1443
  "post",
1444
1444
  "put",
1445
1445
  "patch"
1446
1446
  ], function(e) {
1447
1447
  function t(t) {
1448
1448
  return function(n, r, i) {
1449
- return this.request(dn(i || {}, {
1449
+ return this.request(un(i || {}, {
1450
1450
  method: e,
1451
1451
  headers: t ? { "Content-Type": "multipart/form-data" } : {},
1452
1452
  url: n,
@@ -1454,11 +1454,11 @@ B.forEach([
1454
1454
  }));
1455
1455
  };
1456
1456
  }
1457
- Bn.prototype[e] = t(), Bn.prototype[e + "Form"] = t(!0);
1457
+ zn.prototype[e] = t(), zn.prototype[e + "Form"] = t(!0);
1458
1458
  });
1459
1459
  //#endregion
1460
1460
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/cancel/CancelToken.js
1461
- var Vn = class e {
1461
+ var Bn = class e {
1462
1462
  constructor(e) {
1463
1463
  if (typeof e != "function") throw TypeError("executor must be a function.");
1464
1464
  let t;
@@ -1479,7 +1479,7 @@ var Vn = class e {
1479
1479
  n.unsubscribe(t);
1480
1480
  }, r;
1481
1481
  }, e(function(e, r, i) {
1482
- n.reason || (n.reason = new Xt(e, r, i), t(n.reason));
1482
+ n.reason || (n.reason = new Yt(e, r, i), t(n.reason));
1483
1483
  });
1484
1484
  }
1485
1485
  throwIfRequested() {
@@ -1515,19 +1515,19 @@ var Vn = class e {
1515
1515
  };
1516
1516
  //#endregion
1517
1517
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/spread.js
1518
- function Hn(e) {
1518
+ function Vn(e) {
1519
1519
  return function(t) {
1520
1520
  return e.apply(null, t);
1521
1521
  };
1522
1522
  }
1523
1523
  //#endregion
1524
1524
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/isAxiosError.js
1525
- function Un(e) {
1526
- return B.isObject(e) && e.isAxiosError === !0;
1525
+ function Hn(e) {
1526
+ return V.isObject(e) && e.isAxiosError === !0;
1527
1527
  }
1528
1528
  //#endregion
1529
1529
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/helpers/HttpStatusCode.js
1530
- var Wn = {
1530
+ var Un = {
1531
1531
  Continue: 100,
1532
1532
  SwitchingProtocols: 101,
1533
1533
  Processing: 102,
@@ -1598,37 +1598,37 @@ var Wn = {
1598
1598
  SslHandshakeFailed: 525,
1599
1599
  InvalidSslCertificate: 526
1600
1600
  };
1601
- Object.entries(Wn).forEach(([e, t]) => {
1602
- Wn[t] = e;
1601
+ Object.entries(Un).forEach(([e, t]) => {
1602
+ Un[t] = e;
1603
1603
  });
1604
1604
  //#endregion
1605
1605
  //#region node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/axios.js
1606
- function Gn(e) {
1607
- let t = new Bn(e), n = re(Bn.prototype.request, t);
1608
- return B.extend(n, Bn.prototype, t, { allOwnKeys: !0 }), B.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
1609
- return Gn(dn(e, t));
1606
+ function Wn(e) {
1607
+ let t = new zn(e), n = ne(zn.prototype.request, t);
1608
+ return V.extend(n, zn.prototype, t, { allOwnKeys: !0 }), V.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
1609
+ return Wn(un(e, t));
1610
1610
  }, n;
1611
1611
  }
1612
- var G = Gn(Pt);
1613
- G.Axios = Bn, G.CanceledError = Xt, G.CancelToken = Vn, G.isCancel = Yt, G.VERSION = Fn, G.toFormData = mt, G.AxiosError = V, G.Cancel = G.CanceledError, G.all = function(e) {
1612
+ var K = Wn(Nt);
1613
+ K.Axios = zn, K.CanceledError = Yt, K.CancelToken = Bn, K.isCancel = Jt, K.VERSION = Pn, K.toFormData = pt, K.AxiosError = H, K.Cancel = K.CanceledError, K.all = function(e) {
1614
1614
  return Promise.all(e);
1615
- }, G.spread = Hn, G.isAxiosError = Un, G.mergeConfig = dn, G.AxiosHeaders = U, G.formToJSON = (e) => Mt(B.isHTMLForm(e) ? new FormData(e) : e), G.getAdapter = Mn.getAdapter, G.HttpStatusCode = Wn, G.default = G;
1615
+ }, K.spread = Vn, K.isAxiosError = Hn, K.mergeConfig = un, K.AxiosHeaders = W, K.formToJSON = (e) => jt(V.isHTMLForm(e) ? new FormData(e) : e), K.getAdapter = jn.getAdapter, K.HttpStatusCode = Un, K.default = K;
1616
1616
  //#endregion
1617
1617
  //#region src/api/data/baostock.ts
1618
- function Kn(e) {
1618
+ function Gn(e) {
1619
1619
  if (/^\d{8}$/.test(e)) return `${e.slice(0, 4)}-${e.slice(4, 6)}-${e.slice(6, 8)}`;
1620
1620
  if (/^\d{4}-\d{2}-\d{2}T/.test(e)) return e.slice(0, 10);
1621
1621
  if (/^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
1622
1622
  let t = new Date(e);
1623
1623
  return Number.isNaN(t.getTime()) ? e : t.toISOString().slice(0, 10);
1624
1624
  }
1625
- function qn(e) {
1625
+ function Kn(e) {
1626
1626
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
1627
1627
  if (!t) throw Error(`无法解析日期: ${e}`);
1628
1628
  let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]);
1629
1629
  return Date.UTC(n, r - 1, i, -8, 0, 0, 0);
1630
1630
  }
1631
- function Jn(e) {
1631
+ function qn(e) {
1632
1632
  return e && {
1633
1633
  daily: "d",
1634
1634
  weekly: "w",
@@ -1639,20 +1639,20 @@ function Jn(e) {
1639
1639
  60: "60"
1640
1640
  }[e] || "d";
1641
1641
  }
1642
- function Yn(e) {
1642
+ function Jn(e) {
1643
1643
  return e && {
1644
1644
  qfq: "2",
1645
1645
  hfq: "1",
1646
1646
  none: "3"
1647
1647
  }[e] || "3";
1648
1648
  }
1649
- function Xn(e) {
1650
- let t = Kn(e.date), n = (e) => {
1649
+ function Yn(e) {
1650
+ let t = Gn(e.date), n = (e) => {
1651
1651
  let t = parseFloat(e);
1652
1652
  return Number.isNaN(t) ? 0 : t;
1653
1653
  };
1654
1654
  return {
1655
- timestamp: qn(t),
1655
+ timestamp: Kn(t),
1656
1656
  stockCode: e.code,
1657
1657
  open: n(e.open),
1658
1658
  high: n(e.high),
@@ -1664,30 +1664,30 @@ function Xn(e) {
1664
1664
  turnoverRate: n(e.turn)
1665
1665
  };
1666
1666
  }
1667
- var Zn = "", Qn = "/api/stock/kdata";
1668
- async function $n(e) {
1669
- let { timeout: t, ...n } = e, r = `${Zn}${Qn}`, i = {
1667
+ var Xn = "", Zn = "/api/stock/kdata";
1668
+ async function Qn(e) {
1669
+ let { timeout: t, ...n } = e, r = `${Xn}${Zn}`, i = {
1670
1670
  stock_code: n.symbol,
1671
1671
  start_date: n.start_date,
1672
1672
  end_date: n.end_date,
1673
- frequency: Jn(n.period),
1674
- adjustflag: Yn(n.adjust),
1673
+ frequency: qn(n.period),
1674
+ adjustflag: Jn(n.adjust),
1675
1675
  timeout: t
1676
1676
  };
1677
1677
  try {
1678
- let e = (await G.get(r, {
1678
+ let e = (await K.get(r, {
1679
1679
  params: i,
1680
1680
  timeout: t ? t * 1e3 : void 0
1681
1681
  })).data;
1682
1682
  if (!e.success) throw Error(`获取K线数据失败: ${e.error_msg || "未知错误"} (code: ${e.error_code})`);
1683
- return !e.data || e.data.length === 0 ? [] : e.data.map(Xn).sort((e, t) => e.timestamp - t.timestamp);
1683
+ return !e.data || e.data.length === 0 ? [] : e.data.map(Yn).sort((e, t) => e.timestamp - t.timestamp);
1684
1684
  } catch (e) {
1685
- throw G.isAxiosError(e) ? Error(`获取K线数据失败: ${e.message}`) : e;
1685
+ throw K.isAxiosError(e) ? Error(`获取K线数据失败: ${e.message}`) : e;
1686
1686
  }
1687
1687
  }
1688
1688
  //#endregion
1689
1689
  //#region src/types/price.ts
1690
- function er(e) {
1690
+ function $n(e) {
1691
1691
  return e.map((e) => ({
1692
1692
  timestamp: e.timestamp,
1693
1693
  open: e.open,
@@ -1705,23 +1705,23 @@ function er(e) {
1705
1705
  }
1706
1706
  //#endregion
1707
1707
  //#region src/api/data/kLine.ts
1708
- var tr = "/api/public/stock_zh_a_hist";
1709
- function nr(e) {
1708
+ var er = "/api/public/stock_zh_a_hist";
1709
+ function tr(e) {
1710
1710
  if (/^\d{8}$/.test(e)) return `${e.slice(0, 4)}-${e.slice(4, 6)}-${e.slice(6, 8)}`;
1711
1711
  if (/^\d{4}-\d{2}-\d{2}T/.test(e)) return e.slice(0, 10);
1712
1712
  if (/^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
1713
1713
  let t = new Date(e);
1714
1714
  return Number.isNaN(t.getTime()) ? e : t.toISOString().slice(0, 10);
1715
1715
  }
1716
- function rr(e) {
1716
+ function nr(e) {
1717
1717
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
1718
1718
  if (!t) throw Error(`无法解析日期: ${e}`);
1719
1719
  let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]);
1720
1720
  return Date.UTC(n, r - 1, i, -8, 0, 0, 0);
1721
1721
  }
1722
- function ir(e) {
1722
+ function rr(e) {
1723
1723
  return {
1724
- timestamp: rr(nr(e.日期)),
1724
+ timestamp: nr(tr(e.日期)),
1725
1725
  stockCode: e.股票代码,
1726
1726
  open: e.开盘,
1727
1727
  close: e.收盘,
@@ -1735,23 +1735,23 @@ function ir(e) {
1735
1735
  turnoverRate: e.换手率
1736
1736
  };
1737
1737
  }
1738
- async function ar(e) {
1738
+ async function ir(e) {
1739
1739
  try {
1740
1740
  let { timeout: t, ...n } = e;
1741
- return (await G.get(tr, {
1741
+ return (await K.get(er, {
1742
1742
  params: n,
1743
1743
  timeout: t ? t * 1e3 : void 0
1744
- })).data.map(ir);
1744
+ })).data.map(rr);
1745
1745
  } catch (e) {
1746
- throw G.isAxiosError(e) ? Error(`获取K线数据失败: ${e.message}`) : e;
1746
+ throw K.isAxiosError(e) ? Error(`获取K线数据失败: ${e.message}`) : e;
1747
1747
  }
1748
1748
  }
1749
1749
  //#endregion
1750
1750
  //#region src/api/data/unified.ts
1751
- var or = class {
1751
+ var ar = class {
1752
1752
  name = "baostock";
1753
1753
  async fetchKLineData(e) {
1754
- return $n({
1754
+ return Qn({
1755
1755
  symbol: this.addMarketPrefix(e.symbol),
1756
1756
  start_date: e.startDate,
1757
1757
  end_date: e.endDate,
@@ -1771,7 +1771,7 @@ var or = class {
1771
1771
  addMarketPrefix(e) {
1772
1772
  return /^(6|68)\d{5}$/.test(e) ? `sh.${e}` : /^(0|3)\d{5}$/.test(e) ? `sz.${e}` : e;
1773
1773
  }
1774
- }, sr = class {
1774
+ }, or = class {
1775
1775
  name = "dongcai";
1776
1776
  async fetchKLineData(e) {
1777
1777
  let t = e.startDate.replace(/-/g, ""), n = e.endDate.replace(/-/g, ""), r = {
@@ -1780,7 +1780,7 @@ var or = class {
1780
1780
  monthly: "monthly"
1781
1781
  }[e.period];
1782
1782
  if (!r) throw Error(`东财数据源不支持周期: ${e.period}`);
1783
- return er(await ar({
1783
+ return $n(await ir({
1784
1784
  symbol: e.symbol,
1785
1785
  start_date: t,
1786
1786
  end_date: n,
@@ -1789,27 +1789,27 @@ var or = class {
1789
1789
  timeout: e.timeout
1790
1790
  }));
1791
1791
  }
1792
- }, cr = class {
1792
+ }, sr = class {
1793
1793
  static instances = /* @__PURE__ */ new Map();
1794
1794
  static create(e) {
1795
1795
  if (!this.instances.has(e)) switch (e) {
1796
1796
  case "baostock":
1797
- this.instances.set(e, new or());
1797
+ this.instances.set(e, new ar());
1798
1798
  break;
1799
1799
  case "dongcai":
1800
- this.instances.set(e, new sr());
1800
+ this.instances.set(e, new or());
1801
1801
  break;
1802
1802
  default: throw Error(`未知的数据源类型: ${e}`);
1803
1803
  }
1804
1804
  return this.instances.get(e);
1805
1805
  }
1806
1806
  };
1807
- async function lr(e, t) {
1808
- return cr.create(e).fetchKLineData(t);
1807
+ async function cr(e, t) {
1808
+ return sr.create(e).fetchKLineData(t);
1809
1809
  }
1810
1810
  //#endregion
1811
1811
  //#region node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
1812
- var ur = /* @__PURE__ */ M(((e) => {
1812
+ var lr = /* @__PURE__ */ M(((e) => {
1813
1813
  Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
1814
1814
  var t = class {};
1815
1815
  e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
@@ -1914,9 +1914,9 @@ var ur = /* @__PURE__ */ M(((e) => {
1914
1914
  return new r(e.toString());
1915
1915
  }
1916
1916
  e.regexpCode = g;
1917
- })), dr = /* @__PURE__ */ M(((e) => {
1917
+ })), ur = /* @__PURE__ */ M(((e) => {
1918
1918
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
1919
- var t = ur(), n = class extends Error {
1919
+ var t = lr(), n = class extends Error {
1920
1920
  constructor(e) {
1921
1921
  super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
1922
1922
  }
@@ -2025,9 +2025,9 @@ var ur = /* @__PURE__ */ M(((e) => {
2025
2025
  return c;
2026
2026
  }
2027
2027
  };
2028
- })), K = /* @__PURE__ */ M(((e) => {
2028
+ })), q = /* @__PURE__ */ M(((e) => {
2029
2029
  Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
2030
- var t = ur(), n = dr(), r = ur();
2030
+ var t = lr(), n = ur(), r = lr();
2031
2031
  Object.defineProperty(e, "_", {
2032
2032
  enumerable: !0,
2033
2033
  get: function() {
@@ -2069,7 +2069,7 @@ var ur = /* @__PURE__ */ M(((e) => {
2069
2069
  return r.Name;
2070
2070
  }
2071
2071
  });
2072
- var i = dr();
2072
+ var i = ur();
2073
2073
  Object.defineProperty(e, "Scope", {
2074
2074
  enumerable: !0,
2075
2075
  get: function() {
@@ -2521,28 +2521,28 @@ var ur = /* @__PURE__ */ M(((e) => {
2521
2521
  for (let n in t) e[n] = (e[n] || 0) - (t[n] || 0);
2522
2522
  }
2523
2523
  function j(e) {
2524
- return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${ne(e)}`;
2524
+ return typeof e == "boolean" || typeof e == "number" || e === null ? !e : (0, t._)`!${F(e)}`;
2525
2525
  }
2526
2526
  e.not = j;
2527
- var M = te(e.operators.AND);
2527
+ var M = P(e.operators.AND);
2528
2528
  function N(...e) {
2529
2529
  return e.reduce(M);
2530
2530
  }
2531
2531
  e.and = N;
2532
- var P = te(e.operators.OR);
2533
- function ee(...e) {
2534
- return e.reduce(P);
2532
+ var ee = P(e.operators.OR);
2533
+ function te(...e) {
2534
+ return e.reduce(ee);
2535
2535
  }
2536
- e.or = ee;
2537
- function te(e) {
2538
- return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${ne(n)} ${e} ${ne(r)}`;
2536
+ e.or = te;
2537
+ function P(e) {
2538
+ return (n, r) => n === t.nil ? r : r === t.nil ? n : (0, t._)`${F(n)} ${e} ${F(r)}`;
2539
2539
  }
2540
- function ne(e) {
2540
+ function F(e) {
2541
2541
  return e instanceof t.Name ? e : (0, t._)`(${e})`;
2542
2542
  }
2543
- })), q = /* @__PURE__ */ M(((e) => {
2543
+ })), J = /* @__PURE__ */ M(((e) => {
2544
2544
  Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
2545
- var t = K(), n = ur();
2545
+ var t = q(), n = lr();
2546
2546
  function r(e) {
2547
2547
  let t = {};
2548
2548
  for (let n of e) t[n] = !0;
@@ -2665,9 +2665,9 @@ var ur = /* @__PURE__ */ M(((e) => {
2665
2665
  }
2666
2666
  }
2667
2667
  e.checkStrictMode = x;
2668
- })), fr = /* @__PURE__ */ M(((e) => {
2668
+ })), dr = /* @__PURE__ */ M(((e) => {
2669
2669
  Object.defineProperty(e, "__esModule", { value: !0 });
2670
- var t = K();
2670
+ var t = q();
2671
2671
  e.default = {
2672
2672
  data: new t.Name("data"),
2673
2673
  valCxt: new t.Name("valCxt"),
@@ -2686,9 +2686,9 @@ var ur = /* @__PURE__ */ M(((e) => {
2686
2686
  jsonLen: new t.Name("jsonLen"),
2687
2687
  jsonPart: new t.Name("jsonPart")
2688
2688
  };
2689
- })), pr = /* @__PURE__ */ M(((e) => {
2689
+ })), fr = /* @__PURE__ */ M(((e) => {
2690
2690
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
2691
- var t = K(), n = q(), r = fr();
2691
+ var t = q(), n = J(), r = dr();
2692
2692
  e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
2693
2693
  function i(n, r = e.keywordError, i, a) {
2694
2694
  let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
@@ -2750,9 +2750,9 @@ var ur = /* @__PURE__ */ M(((e) => {
2750
2750
  let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
2751
2751
  a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
2752
2752
  }
2753
- })), mr = /* @__PURE__ */ M(((e) => {
2753
+ })), pr = /* @__PURE__ */ M(((e) => {
2754
2754
  Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
2755
- var t = pr(), n = K(), r = fr(), i = { message: "boolean schema is false" };
2755
+ var t = fr(), n = q(), r = dr(), i = { message: "boolean schema is false" };
2756
2756
  function a(e) {
2757
2757
  let { gen: t, schema: i, validateName: a } = e;
2758
2758
  i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
@@ -2776,7 +2776,7 @@ var ur = /* @__PURE__ */ M(((e) => {
2776
2776
  };
2777
2777
  (0, t.reportError)(o, i, void 0, n);
2778
2778
  }
2779
- })), hr = /* @__PURE__ */ M(((e) => {
2779
+ })), mr = /* @__PURE__ */ M(((e) => {
2780
2780
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
2781
2781
  var t = new Set([
2782
2782
  "string",
@@ -2830,7 +2830,7 @@ var ur = /* @__PURE__ */ M(((e) => {
2830
2830
  };
2831
2831
  }
2832
2832
  e.getRules = r;
2833
- })), gr = /* @__PURE__ */ M(((e) => {
2833
+ })), hr = /* @__PURE__ */ M(((e) => {
2834
2834
  Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
2835
2835
  function t({ schema: e, self: t }, r) {
2836
2836
  let i = t.RULES.types[r];
@@ -2845,9 +2845,9 @@ var ur = /* @__PURE__ */ M(((e) => {
2845
2845
  return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
2846
2846
  }
2847
2847
  e.shouldUseRule = r;
2848
- })), _r = /* @__PURE__ */ M(((e) => {
2848
+ })), gr = /* @__PURE__ */ M(((e) => {
2849
2849
  Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
2850
- var t = hr(), n = gr(), r = pr(), i = K(), a = q(), o;
2850
+ var t = mr(), n = hr(), r = fr(), i = q(), a = J(), o;
2851
2851
  (function(e) {
2852
2852
  e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
2853
2853
  })(o || (e.DataType = o = {}));
@@ -2982,9 +2982,9 @@ var ur = /* @__PURE__ */ M(((e) => {
2982
2982
  it: e
2983
2983
  };
2984
2984
  }
2985
- })), vr = /* @__PURE__ */ M(((e) => {
2985
+ })), _r = /* @__PURE__ */ M(((e) => {
2986
2986
  Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
2987
- var t = K(), n = q();
2987
+ var t = q(), n = J();
2988
2988
  function r(e, t) {
2989
2989
  let { properties: n, items: r } = e.schema;
2990
2990
  if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
@@ -3002,9 +3002,9 @@ var ur = /* @__PURE__ */ M(((e) => {
3002
3002
  let u = (0, t._)`${l} === undefined`;
3003
3003
  c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
3004
3004
  }
3005
- })), J = /* @__PURE__ */ M(((e) => {
3005
+ })), vr = /* @__PURE__ */ M(((e) => {
3006
3006
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
3007
- var t = K(), n = q(), r = fr(), i = q();
3007
+ var t = q(), n = J(), r = dr(), i = J();
3008
3008
  function a(e, n) {
3009
3009
  let { gen: r, data: i, it: a } = e;
3010
3010
  r.if(d(r, i, n, a.opts.ownProperties), () => {
@@ -3108,7 +3108,7 @@ var ur = /* @__PURE__ */ M(((e) => {
3108
3108
  e.validateUnion = v;
3109
3109
  })), yr = /* @__PURE__ */ M(((e) => {
3110
3110
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
3111
- var t = K(), n = fr(), r = J(), i = pr();
3111
+ var t = q(), n = dr(), r = vr(), i = fr();
3112
3112
  function a(e, n) {
3113
3113
  let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
3114
3114
  s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
@@ -3189,7 +3189,7 @@ var ur = /* @__PURE__ */ M(((e) => {
3189
3189
  e.validateKeywordUsage = f;
3190
3190
  })), br = /* @__PURE__ */ M(((e) => {
3191
3191
  Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
3192
- var t = K(), n = q();
3192
+ var t = q(), n = J();
3193
3193
  function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
3194
3194
  if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
3195
3195
  if (r !== void 0) {
@@ -3322,7 +3322,7 @@ var ur = /* @__PURE__ */ M(((e) => {
3322
3322
  }
3323
3323
  })), Cr = /* @__PURE__ */ M(((e) => {
3324
3324
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
3325
- var t = q(), n = xr(), r = Sr(), i = new Set([
3325
+ var t = J(), n = xr(), r = Sr(), i = new Set([
3326
3326
  "type",
3327
3327
  "format",
3328
3328
  "pattern",
@@ -3413,7 +3413,7 @@ var ur = /* @__PURE__ */ M(((e) => {
3413
3413
  e.getSchemaRefs = h;
3414
3414
  })), wr = /* @__PURE__ */ M(((e) => {
3415
3415
  Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
3416
- var t = mr(), n = _r(), r = gr(), i = _r(), a = vr(), o = yr(), s = br(), c = K(), l = fr(), u = Cr(), d = q(), f = pr();
3416
+ var t = pr(), n = gr(), r = hr(), i = gr(), a = _r(), o = yr(), s = br(), c = q(), l = dr(), u = Cr(), d = J(), f = fr();
3417
3417
  function p(e) {
3418
3418
  if (S(e) && (w(e), x(e))) {
3419
3419
  _(e);
@@ -3513,68 +3513,68 @@ var ur = /* @__PURE__ */ M(((e) => {
3513
3513
  function N(e, t, n, a) {
3514
3514
  let { gen: o, schema: s, data: u, allErrors: f, opts: p, self: m } = e, { RULES: h } = m;
3515
3515
  if (s.$ref && (p.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(s, h))) {
3516
- o.block(() => I(e, "$ref", h.all.$ref.definition));
3516
+ o.block(() => L(e, "$ref", h.all.$ref.definition));
3517
3517
  return;
3518
3518
  }
3519
- p.jtd || ee(e, t), o.block(() => {
3519
+ p.jtd || te(e, t), o.block(() => {
3520
3520
  for (let e of h.rules) g(e);
3521
3521
  g(h.post);
3522
3522
  });
3523
3523
  function g(d) {
3524
- (0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), P(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : P(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
3524
+ (0, r.shouldUseGroup)(s, d) && (d.type ? (o.if((0, i.checkDataType)(d.type, u, p.strictNumbers)), ee(e, d), t.length === 1 && t[0] === d.type && n && (o.else(), (0, i.reportTypeError)(e)), o.endIf()) : ee(e, d), f || o.if((0, c._)`${l.default.errors} === ${a || 0}`));
3525
3525
  }
3526
3526
  }
3527
- function P(e, t) {
3527
+ function ee(e, t) {
3528
3528
  let { gen: n, schema: i, opts: { useDefaults: o } } = e;
3529
3529
  o && (0, a.assignDefaults)(e, t.type), n.block(() => {
3530
- for (let n of t.rules) (0, r.shouldUseRule)(i, n) && I(e, n.keyword, n.definition, t.type);
3530
+ for (let n of t.rules) (0, r.shouldUseRule)(i, n) && L(e, n.keyword, n.definition, t.type);
3531
3531
  });
3532
3532
  }
3533
- function ee(e, t) {
3534
- e.schemaEnv.meta || !e.opts.strictTypes || (te(e, t), e.opts.allowUnionTypes || ne(e, t), re(e, e.dataTypes));
3535
- }
3536
3533
  function te(e, t) {
3534
+ e.schemaEnv.meta || !e.opts.strictTypes || (P(e, t), e.opts.allowUnionTypes || F(e, t), ne(e, e.dataTypes));
3535
+ }
3536
+ function P(e, t) {
3537
3537
  if (t.length) {
3538
3538
  if (!e.dataTypes.length) {
3539
3539
  e.dataTypes = t;
3540
3540
  return;
3541
3541
  }
3542
3542
  t.forEach((t) => {
3543
- ie(e.dataTypes, t) || oe(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
3544
- }), ae(e, t);
3543
+ re(e.dataTypes, t) || ae(e, `type "${t}" not allowed by context "${e.dataTypes.join(",")}"`);
3544
+ }), ie(e, t);
3545
3545
  }
3546
3546
  }
3547
- function ne(e, t) {
3548
- t.length > 1 && !(t.length === 2 && t.includes("null")) && oe(e, "use allowUnionTypes to allow union type keyword");
3547
+ function F(e, t) {
3548
+ t.length > 1 && !(t.length === 2 && t.includes("null")) && ae(e, "use allowUnionTypes to allow union type keyword");
3549
3549
  }
3550
- function re(e, t) {
3550
+ function ne(e, t) {
3551
3551
  let n = e.self.RULES.all;
3552
3552
  for (let i in n) {
3553
3553
  let a = n[i];
3554
3554
  if (typeof a == "object" && (0, r.shouldUseRule)(e.schema, a)) {
3555
3555
  let { type: n } = a.definition;
3556
- n.length && !n.some((e) => F(t, e)) && oe(e, `missing type "${n.join(",")}" for keyword "${i}"`);
3556
+ n.length && !n.some((e) => I(t, e)) && ae(e, `missing type "${n.join(",")}" for keyword "${i}"`);
3557
3557
  }
3558
3558
  }
3559
3559
  }
3560
- function F(e, t) {
3560
+ function I(e, t) {
3561
3561
  return e.includes(t) || t === "number" && e.includes("integer");
3562
3562
  }
3563
- function ie(e, t) {
3563
+ function re(e, t) {
3564
3564
  return e.includes(t) || t === "integer" && e.includes("number");
3565
3565
  }
3566
- function ae(e, t) {
3566
+ function ie(e, t) {
3567
3567
  let n = [];
3568
- for (let r of e.dataTypes) ie(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
3568
+ for (let r of e.dataTypes) re(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
3569
3569
  e.dataTypes = n;
3570
3570
  }
3571
- function oe(e, t) {
3571
+ function ae(e, t) {
3572
3572
  let n = e.schemaEnv.baseId + e.errSchemaPath;
3573
3573
  t += ` at "${n}" (strictTypes)`, (0, d.checkStrictMode)(e, t, e.opts.strictTypes);
3574
3574
  }
3575
- var se = class {
3575
+ var oe = class {
3576
3576
  constructor(e, t, n) {
3577
- 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", ue(this.$data, e));
3577
+ 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", le(this.$data, e));
3578
3578
  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)}`);
3579
3579
  ("code" in t ? t.trackErrors : t.errors !== !1) && (this.errsCount = e.gen.const("_errs", l.default.errors));
3580
3580
  }
@@ -3672,20 +3672,20 @@ var ur = /* @__PURE__ */ M(((e) => {
3672
3672
  if (n.opts.unevaluated && (n.props !== !0 || n.items !== !0)) return r.if(t, () => this.mergeEvaluated(e, c.Name)), !0;
3673
3673
  }
3674
3674
  };
3675
- e.KeywordCxt = se;
3676
- function I(e, t, n, r) {
3677
- let i = new se(e, n, t);
3675
+ e.KeywordCxt = oe;
3676
+ function L(e, t, n, r) {
3677
+ let i = new oe(e, n, t);
3678
3678
  "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);
3679
3679
  }
3680
- var ce = /^\/(?:[^~]|~0|~1)*$/, le = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
3681
- function ue(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
3680
+ var se = /^\/(?:[^~]|~0|~1)*$/, ce = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
3681
+ function le(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
3682
3682
  let i, a;
3683
3683
  if (e === "") return l.default.rootData;
3684
3684
  if (e[0] === "/") {
3685
- if (!ce.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
3685
+ if (!se.test(e)) throw Error(`Invalid JSON-pointer: ${e}`);
3686
3686
  i = e, a = l.default.rootData;
3687
3687
  } else {
3688
- let o = le.exec(e);
3688
+ let o = ce.exec(e);
3689
3689
  if (!o) throw Error(`Invalid JSON-pointer: ${e}`);
3690
3690
  let s = +o[1];
3691
3691
  if (i = o[2], i === "#") {
@@ -3702,7 +3702,7 @@ var ur = /* @__PURE__ */ M(((e) => {
3702
3702
  return `Cannot access ${e} ${n} levels up, current level is ${t}`;
3703
3703
  }
3704
3704
  }
3705
- e.getData = ue;
3705
+ e.getData = le;
3706
3706
  })), Tr = /* @__PURE__ */ M(((e) => {
3707
3707
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
3708
3708
  constructor(e) {
@@ -3719,7 +3719,7 @@ var ur = /* @__PURE__ */ M(((e) => {
3719
3719
  };
3720
3720
  })), Dr = /* @__PURE__ */ M(((e) => {
3721
3721
  Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
3722
- var t = K(), n = Tr(), r = fr(), i = Cr(), a = q(), o = wr(), s = class {
3722
+ var t = q(), n = Tr(), r = dr(), i = Cr(), a = J(), o = wr(), s = class {
3723
3723
  constructor(e) {
3724
3724
  this.refs = {}, this.dynamicAnchors = {};
3725
3725
  let t;
@@ -4266,7 +4266,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4266
4266
  return t.KeywordCxt;
4267
4267
  }
4268
4268
  });
4269
- var n = K();
4269
+ var n = q();
4270
4270
  Object.defineProperty(e, "_", {
4271
4271
  enumerable: !0,
4272
4272
  get: function() {
@@ -4298,7 +4298,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4298
4298
  return n.CodeGen;
4299
4299
  }
4300
4300
  });
4301
- var r = Tr(), i = Er(), a = hr(), o = Dr(), s = K(), c = Cr(), l = _r(), u = q(), d = (Fr(), te(Or).default), f = zr(), p = (e, t) => new RegExp(e, t);
4301
+ var r = Tr(), i = Er(), a = mr(), o = Dr(), s = q(), c = Cr(), l = gr(), u = J(), d = (Fr(), P(Or).default), f = zr(), p = (e, t) => new RegExp(e, t);
4302
4302
  p.code = "new RegExp";
4303
4303
  var m = [
4304
4304
  "removeAdditional",
@@ -4551,7 +4551,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4551
4551
  let t = n[e];
4552
4552
  if (typeof t != "object") continue;
4553
4553
  let { $data: r } = t.definition, a = i[e];
4554
- r && a && (i[e] = ee(a));
4554
+ r && a && (i[e] = te(a));
4555
4555
  }
4556
4556
  }
4557
4557
  return e;
@@ -4678,11 +4678,11 @@ var ur = /* @__PURE__ */ M(((e) => {
4678
4678
  }
4679
4679
  function N(e) {
4680
4680
  let { metaSchema: t } = e;
4681
- t !== void 0 && (e.$data && this.opts.$data && (t = ee(t)), e.validateSchema = this.compile(t, !0));
4681
+ t !== void 0 && (e.$data && this.opts.$data && (t = te(t)), e.validateSchema = this.compile(t, !0));
4682
4682
  }
4683
- var P = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
4684
- function ee(e) {
4685
- return { anyOf: [e, P] };
4683
+ var ee = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
4684
+ function te(e) {
4685
+ return { anyOf: [e, ee] };
4686
4686
  }
4687
4687
  })), Vr = /* @__PURE__ */ M(((e) => {
4688
4688
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
@@ -4693,7 +4693,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4693
4693
  };
4694
4694
  })), Hr = /* @__PURE__ */ M(((e) => {
4695
4695
  Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
4696
- var t = Er(), n = J(), r = K(), i = fr(), a = Dr(), o = q(), s = {
4696
+ var t = Er(), n = vr(), r = q(), i = dr(), a = Dr(), o = J(), s = {
4697
4697
  keyword: "$ref",
4698
4698
  schemaType: "string",
4699
4699
  code(e) {
@@ -4781,7 +4781,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4781
4781
  ];
4782
4782
  })), Wr = /* @__PURE__ */ M(((e) => {
4783
4783
  Object.defineProperty(e, "__esModule", { value: !0 });
4784
- var t = K(), n = t.operators, r = {
4784
+ var t = q(), n = t.operators, r = {
4785
4785
  maximum: {
4786
4786
  okStr: "<=",
4787
4787
  ok: n.LTE,
@@ -4819,7 +4819,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4819
4819
  };
4820
4820
  })), Gr = /* @__PURE__ */ M(((e) => {
4821
4821
  Object.defineProperty(e, "__esModule", { value: !0 });
4822
- var t = K();
4822
+ var t = q();
4823
4823
  e.default = {
4824
4824
  keyword: "multipleOf",
4825
4825
  type: "number",
@@ -4844,7 +4844,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4844
4844
  e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
4845
4845
  })), qr = /* @__PURE__ */ M(((e) => {
4846
4846
  Object.defineProperty(e, "__esModule", { value: !0 });
4847
- var t = K(), n = q(), r = Kr();
4847
+ var t = q(), n = J(), r = Kr();
4848
4848
  e.default = {
4849
4849
  keyword: ["maxLength", "minLength"],
4850
4850
  type: "string",
@@ -4864,7 +4864,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4864
4864
  };
4865
4865
  })), Jr = /* @__PURE__ */ M(((e) => {
4866
4866
  Object.defineProperty(e, "__esModule", { value: !0 });
4867
- var t = J(), n = q(), r = K();
4867
+ var t = vr(), n = J(), r = q();
4868
4868
  e.default = {
4869
4869
  keyword: "pattern",
4870
4870
  type: "string",
@@ -4887,7 +4887,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4887
4887
  };
4888
4888
  })), Yr = /* @__PURE__ */ M(((e) => {
4889
4889
  Object.defineProperty(e, "__esModule", { value: !0 });
4890
- var t = K();
4890
+ var t = q();
4891
4891
  e.default = {
4892
4892
  keyword: ["maxProperties", "minProperties"],
4893
4893
  type: "object",
@@ -4907,7 +4907,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4907
4907
  };
4908
4908
  })), Xr = /* @__PURE__ */ M(((e) => {
4909
4909
  Object.defineProperty(e, "__esModule", { value: !0 });
4910
- var t = J(), n = K(), r = q();
4910
+ var t = vr(), n = q(), r = J();
4911
4911
  e.default = {
4912
4912
  keyword: "required",
4913
4913
  type: "object",
@@ -4955,7 +4955,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4955
4955
  };
4956
4956
  })), Zr = /* @__PURE__ */ M(((e) => {
4957
4957
  Object.defineProperty(e, "__esModule", { value: !0 });
4958
- var t = K();
4958
+ var t = q();
4959
4959
  e.default = {
4960
4960
  keyword: ["maxItems", "minItems"],
4961
4961
  type: "array",
@@ -4979,7 +4979,7 @@ var ur = /* @__PURE__ */ M(((e) => {
4979
4979
  t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
4980
4980
  })), $r = /* @__PURE__ */ M(((e) => {
4981
4981
  Object.defineProperty(e, "__esModule", { value: !0 });
4982
- var t = _r(), n = K(), r = q(), i = Qr();
4982
+ var t = gr(), n = q(), r = J(), i = Qr();
4983
4983
  e.default = {
4984
4984
  keyword: "uniqueItems",
4985
4985
  type: "array",
@@ -5022,7 +5022,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5022
5022
  };
5023
5023
  })), ei = /* @__PURE__ */ M(((e) => {
5024
5024
  Object.defineProperty(e, "__esModule", { value: !0 });
5025
- var t = K(), n = q(), r = Qr();
5025
+ var t = q(), n = J(), r = Qr();
5026
5026
  e.default = {
5027
5027
  keyword: "const",
5028
5028
  $data: !0,
@@ -5037,7 +5037,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5037
5037
  };
5038
5038
  })), ti = /* @__PURE__ */ M(((e) => {
5039
5039
  Object.defineProperty(e, "__esModule", { value: !0 });
5040
- var t = K(), n = q(), r = Qr();
5040
+ var t = q(), n = J(), r = Qr();
5041
5041
  e.default = {
5042
5042
  keyword: "enum",
5043
5043
  schemaType: "array",
@@ -5092,7 +5092,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5092
5092
  ];
5093
5093
  })), ri = /* @__PURE__ */ M(((e) => {
5094
5094
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
5095
- var t = K(), n = q(), r = {
5095
+ var t = q(), n = J(), r = {
5096
5096
  keyword: "additionalItems",
5097
5097
  type: "array",
5098
5098
  schemaType: ["boolean", "object"],
@@ -5132,7 +5132,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5132
5132
  e.validateAdditionalItems = i, e.default = r;
5133
5133
  })), ii = /* @__PURE__ */ M(((e) => {
5134
5134
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
5135
- var t = K(), n = q(), r = J(), i = {
5135
+ var t = q(), n = J(), r = vr(), i = {
5136
5136
  keyword: "items",
5137
5137
  type: "array",
5138
5138
  schemaType: [
@@ -5179,7 +5179,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5179
5179
  };
5180
5180
  })), oi = /* @__PURE__ */ M(((e) => {
5181
5181
  Object.defineProperty(e, "__esModule", { value: !0 });
5182
- var t = K(), n = q(), r = J(), i = ri();
5182
+ var t = q(), n = J(), r = vr(), i = ri();
5183
5183
  e.default = {
5184
5184
  keyword: "items",
5185
5185
  type: "array",
@@ -5196,7 +5196,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5196
5196
  };
5197
5197
  })), si = /* @__PURE__ */ M(((e) => {
5198
5198
  Object.defineProperty(e, "__esModule", { value: !0 });
5199
- var t = K(), n = q();
5199
+ var t = q(), n = J();
5200
5200
  e.default = {
5201
5201
  keyword: "contains",
5202
5202
  type: "array",
@@ -5251,7 +5251,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5251
5251
  };
5252
5252
  })), ci = /* @__PURE__ */ M(((e) => {
5253
5253
  Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
5254
- var t = K(), n = q(), r = J();
5254
+ var t = q(), n = J(), r = vr();
5255
5255
  e.error = {
5256
5256
  message: ({ params: { property: e, depsCount: n, deps: r } }) => {
5257
5257
  let i = n === 1 ? "property" : "properties";
@@ -5312,7 +5312,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5312
5312
  e.validateSchemaDeps = s, e.default = i;
5313
5313
  })), li = /* @__PURE__ */ M(((e) => {
5314
5314
  Object.defineProperty(e, "__esModule", { value: !0 });
5315
- var t = K(), n = q();
5315
+ var t = q(), n = J();
5316
5316
  e.default = {
5317
5317
  keyword: "propertyNames",
5318
5318
  type: "object",
@@ -5340,7 +5340,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5340
5340
  };
5341
5341
  })), ui = /* @__PURE__ */ M(((e) => {
5342
5342
  Object.defineProperty(e, "__esModule", { value: !0 });
5343
- var t = J(), n = K(), r = fr(), i = q();
5343
+ var t = vr(), n = q(), r = dr(), i = J();
5344
5344
  e.default = {
5345
5345
  keyword: "additionalProperties",
5346
5346
  type: ["object"],
@@ -5407,7 +5407,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5407
5407
  };
5408
5408
  })), di = /* @__PURE__ */ M(((e) => {
5409
5409
  Object.defineProperty(e, "__esModule", { value: !0 });
5410
- var t = wr(), n = J(), r = q(), i = ui();
5410
+ var t = wr(), n = vr(), r = J(), i = ui();
5411
5411
  e.default = {
5412
5412
  keyword: "properties",
5413
5413
  type: "object",
@@ -5436,7 +5436,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5436
5436
  };
5437
5437
  })), fi = /* @__PURE__ */ M(((e) => {
5438
5438
  Object.defineProperty(e, "__esModule", { value: !0 });
5439
- var t = J(), n = K(), r = q(), i = q();
5439
+ var t = vr(), n = q(), r = J(), i = J();
5440
5440
  e.default = {
5441
5441
  keyword: "patternProperties",
5442
5442
  type: "object",
@@ -5471,7 +5471,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5471
5471
  };
5472
5472
  })), pi = /* @__PURE__ */ M(((e) => {
5473
5473
  Object.defineProperty(e, "__esModule", { value: !0 });
5474
- var t = q();
5474
+ var t = J();
5475
5475
  e.default = {
5476
5476
  keyword: "not",
5477
5477
  schemaType: ["object", "boolean"],
@@ -5497,12 +5497,12 @@ var ur = /* @__PURE__ */ M(((e) => {
5497
5497
  keyword: "anyOf",
5498
5498
  schemaType: "array",
5499
5499
  trackErrors: !0,
5500
- code: J().validateUnion,
5500
+ code: vr().validateUnion,
5501
5501
  error: { message: "must match a schema in anyOf" }
5502
5502
  };
5503
5503
  })), hi = /* @__PURE__ */ M(((e) => {
5504
5504
  Object.defineProperty(e, "__esModule", { value: !0 });
5505
- var t = K(), n = q();
5505
+ var t = q(), n = J();
5506
5506
  e.default = {
5507
5507
  keyword: "oneOf",
5508
5508
  schemaType: "array",
@@ -5534,7 +5534,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5534
5534
  };
5535
5535
  })), gi = /* @__PURE__ */ M(((e) => {
5536
5536
  Object.defineProperty(e, "__esModule", { value: !0 });
5537
- var t = q();
5537
+ var t = J();
5538
5538
  e.default = {
5539
5539
  keyword: "allOf",
5540
5540
  schemaType: "array",
@@ -5555,7 +5555,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5555
5555
  };
5556
5556
  })), _i = /* @__PURE__ */ M(((e) => {
5557
5557
  Object.defineProperty(e, "__esModule", { value: !0 });
5558
- var t = K(), n = q(), r = {
5558
+ var t = q(), n = J(), r = {
5559
5559
  keyword: "if",
5560
5560
  schemaType: ["object", "boolean"],
5561
5561
  trackErrors: !0,
@@ -5598,7 +5598,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5598
5598
  e.default = r;
5599
5599
  })), vi = /* @__PURE__ */ M(((e) => {
5600
5600
  Object.defineProperty(e, "__esModule", { value: !0 });
5601
- var t = q();
5601
+ var t = J();
5602
5602
  e.default = {
5603
5603
  keyword: ["then", "else"],
5604
5604
  schemaType: ["object", "boolean"],
@@ -5628,7 +5628,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5628
5628
  e.default = _;
5629
5629
  })), bi = /* @__PURE__ */ M(((e) => {
5630
5630
  Object.defineProperty(e, "__esModule", { value: !0 });
5631
- var t = K();
5631
+ var t = q();
5632
5632
  e.default = {
5633
5633
  keyword: "format",
5634
5634
  type: ["number", "string"],
@@ -5736,7 +5736,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5736
5736
  })(t || (e.DiscrError = t = {}));
5737
5737
  })), Ti = /* @__PURE__ */ M(((e) => {
5738
5738
  Object.defineProperty(e, "__esModule", { value: !0 });
5739
- var t = K(), n = wi(), r = Dr(), i = Er(), a = q();
5739
+ var t = q(), n = wi(), r = Dr(), i = Er(), a = J();
5740
5740
  e.default = {
5741
5741
  keyword: "discriminator",
5742
5742
  type: "object",
@@ -5947,9 +5947,9 @@ var ur = /* @__PURE__ */ M(((e) => {
5947
5947
  properties: Mi,
5948
5948
  default: !0
5949
5949
  };
5950
- })), Fi = /* @__PURE__ */ ee((/* @__PURE__ */ M(((e, t) => {
5950
+ })), Fi = /* @__PURE__ */ te((/* @__PURE__ */ M(((e, t) => {
5951
5951
  Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
5952
- var n = Br(), r = Ci(), i = Ti(), a = (Pi(), te(Ei).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
5952
+ var n = Br(), r = Ci(), i = Ti(), a = (Pi(), P(Ei).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
5953
5953
  _addVocabularies() {
5954
5954
  super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
5955
5955
  }
@@ -5970,7 +5970,7 @@ var ur = /* @__PURE__ */ M(((e) => {
5970
5970
  return l.KeywordCxt;
5971
5971
  }
5972
5972
  });
5973
- var u = K();
5973
+ var u = q();
5974
5974
  Object.defineProperty(e, "_", {
5975
5975
  enumerable: !0,
5976
5976
  get: function() {
@@ -6586,7 +6586,7 @@ var Vi = (typeof document < "u" ? document.createElement("canvas") : null)?.getC
6586
6586
  validator;
6587
6587
  events;
6588
6588
  constructor(e) {
6589
- this.chart = e, this.validator = new Hi(), this.events = new ne();
6589
+ this.chart = e, this.validator = new Hi(), this.events = new F();
6590
6590
  }
6591
6591
  async applyConfig(e) {
6592
6592
  let t = this.validator.validate(e);
@@ -6617,7 +6617,7 @@ var Vi = (typeof document < "u" ? document.createElement("canvas") : null)?.getC
6617
6617
  }
6618
6618
  async doApplyConfig(e) {
6619
6619
  console.log("[Semantic] doApplyConfig start, data config:", e.data);
6620
- let t = await lr(e.data.source, {
6620
+ let t = await cr(e.data.source, {
6621
6621
  symbol: e.data.symbol,
6622
6622
  startDate: e.data.startDate,
6623
6623
  endDate: e.data.endDate,
@@ -6942,7 +6942,7 @@ var oa = Symbol("global-pane"), Y = {
6942
6942
  configManager;
6943
6943
  isDestroyed = !1;
6944
6944
  constructor() {
6945
- this.registry = new sa(), this.eventBus = new ne(), this.hookSystem = new ca(), this.configManager = new la();
6945
+ this.registry = new sa(), this.eventBus = new F(), this.hookSystem = new ca(), this.configManager = new la();
6946
6946
  }
6947
6947
  events = {
6948
6948
  on: (e, t) => {
@@ -7707,18 +7707,33 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7707
7707
  _: 1
7708
7708
  })]));
7709
7709
  }
7710
- }), [["__scopeId", "data-v-730f2212"]]), Ro = { class: "indicator-selector" }, zo = { class: "indicator-list" }, Bo = ["onClick", "title"], Vo = {
7710
+ }), [["__scopeId", "data-v-730f2212"]]), Ro = { class: "indicator-selector" }, zo = { class: "indicator-scroll-container" }, Bo = { class: "indicator-list" }, Vo = ["onMouseenter"], Ho = { class: "btn-content" }, Uo = {
7711
7711
  key: 0,
7712
7712
  class: "param-hint"
7713
- }, Ho = ["onClick"], Uo = /* @__PURE__ */ po(/* @__PURE__ */ u({
7713
+ }, Wo = {
7714
+ key: 0,
7715
+ class: "hover-overlay"
7716
+ }, Go = ["onClick"], Ko = ["onClick"], qo = { class: "indicator-item" }, Jo = { class: "menu-section" }, Yo = { class: "menu-items" }, Xo = ["disabled", "onClick"], Zo = {
7717
+ key: 0,
7718
+ class: "param-hint"
7719
+ }, Qo = {
7720
+ key: 1,
7721
+ class: "active-tag"
7722
+ }, $o = { class: "menu-section" }, es = { class: "menu-items" }, ts = ["disabled", "onClick"], ns = {
7723
+ key: 0,
7724
+ class: "param-hint"
7725
+ }, rs = {
7726
+ key: 1,
7727
+ class: "active-tag"
7728
+ }, is = /* @__PURE__ */ po(/* @__PURE__ */ u({
7714
7729
  __name: "IndicatorSelector",
7715
7730
  props: {
7716
7731
  activeIndicators: {},
7717
7732
  indicatorParams: {}
7718
7733
  },
7719
7734
  emits: ["toggle", "updateParams"],
7720
- setup(t, { emit: n }) {
7721
- let l = [
7735
+ setup(u, { emit: d }) {
7736
+ let y = [
7722
7737
  {
7723
7738
  id: "MA",
7724
7739
  label: "MA",
@@ -7738,6 +7753,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7738
7753
  min: 2,
7739
7754
  max: 100,
7740
7755
  step: 1,
7756
+ default: 20,
7741
7757
  description: "计算移动平均线的周期数,周期越长轨道越平滑"
7742
7758
  }, {
7743
7759
  key: "multiplier",
@@ -7746,6 +7762,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7746
7762
  min: .1,
7747
7763
  max: 5,
7748
7764
  step: .1,
7765
+ default: 2,
7749
7766
  description: "标准差倍数,决定轨道宽度,通常为 2"
7750
7767
  }]
7751
7768
  },
@@ -7763,6 +7780,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7763
7780
  min: 2,
7764
7781
  max: 50,
7765
7782
  step: 1,
7783
+ default: 12,
7766
7784
  description: "快线 EMA 周期,对价格变化更敏感"
7767
7785
  },
7768
7786
  {
@@ -7772,6 +7790,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7772
7790
  min: 2,
7773
7791
  max: 100,
7774
7792
  step: 1,
7793
+ default: 26,
7775
7794
  description: "慢线 EMA 周期,用于计算 DIF"
7776
7795
  },
7777
7796
  {
@@ -7781,6 +7800,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7781
7800
  min: 2,
7782
7801
  max: 50,
7783
7802
  step: 1,
7803
+ default: 9,
7784
7804
  description: "DEA 的 EMA 周期,用于生成买卖信号"
7785
7805
  }
7786
7806
  ]
@@ -7799,6 +7819,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7799
7819
  min: 2,
7800
7820
  max: 100,
7801
7821
  step: 1,
7822
+ default: 6,
7802
7823
  description: "第一条 RSI 周期,通常为 6(快线)"
7803
7824
  },
7804
7825
  {
@@ -7808,6 +7829,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7808
7829
  min: 2,
7809
7830
  max: 100,
7810
7831
  step: 1,
7832
+ default: 12,
7811
7833
  description: "第二条 RSI 周期,通常为 12(中线)"
7812
7834
  },
7813
7835
  {
@@ -7817,6 +7839,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7817
7839
  min: 2,
7818
7840
  max: 100,
7819
7841
  step: 1,
7842
+ default: 24,
7820
7843
  description: "第三条 RSI 周期,通常为 24(慢线)"
7821
7844
  }
7822
7845
  ]
@@ -7834,6 +7857,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7834
7857
  min: 2,
7835
7858
  max: 100,
7836
7859
  step: 1,
7860
+ default: 14,
7837
7861
  description: "计算周期,周期越短信号越灵敏"
7838
7862
  }]
7839
7863
  },
@@ -7850,6 +7874,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7850
7874
  min: 2,
7851
7875
  max: 100,
7852
7876
  step: 1,
7877
+ default: 9,
7853
7878
  description: "计算 K 值的周期,统计 N 日内价格区间"
7854
7879
  }, {
7855
7880
  key: "m",
@@ -7858,6 +7883,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7858
7883
  min: 1,
7859
7884
  max: 50,
7860
7885
  step: 1,
7886
+ default: 3,
7861
7887
  description: "D 值是 K 的 M 日移动平均,使信号更平滑"
7862
7888
  }]
7863
7889
  },
@@ -7874,6 +7900,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7874
7900
  min: 2,
7875
7901
  max: 100,
7876
7902
  step: 1,
7903
+ default: 10,
7877
7904
  description: "与多少日前价格比较,周期越短越灵敏"
7878
7905
  }]
7879
7906
  },
@@ -7890,6 +7917,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7890
7917
  min: 2,
7891
7918
  max: 100,
7892
7919
  step: 1,
7920
+ default: 14,
7893
7921
  description: "回溯周期,统计周期内最高最低价"
7894
7922
  }]
7895
7923
  },
@@ -7907,6 +7935,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7907
7935
  min: 2,
7908
7936
  max: 100,
7909
7937
  step: 1,
7938
+ default: 10,
7910
7939
  description: "短期变化率周期"
7911
7940
  },
7912
7941
  {
@@ -7916,6 +7945,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7916
7945
  min: 2,
7917
7946
  max: 100,
7918
7947
  step: 1,
7948
+ default: 15,
7919
7949
  description: "中短期变化率周期"
7920
7950
  },
7921
7951
  {
@@ -7925,6 +7955,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7925
7955
  min: 2,
7926
7956
  max: 100,
7927
7957
  step: 1,
7958
+ default: 20,
7928
7959
  description: "中长期变化率周期"
7929
7960
  },
7930
7961
  {
@@ -7934,6 +7965,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7934
7965
  min: 2,
7935
7966
  max: 100,
7936
7967
  step: 1,
7968
+ default: 30,
7937
7969
  description: "长期变化率周期"
7938
7970
  },
7939
7971
  {
@@ -7943,6 +7975,7 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7943
7975
  min: 2,
7944
7976
  max: 50,
7945
7977
  step: 1,
7978
+ default: 9,
7946
7979
  description: "信号线的 SMA 周期"
7947
7980
  }
7948
7981
  ]
@@ -7960,81 +7993,181 @@ var Qa = { class: "kline-tooltip__title" }, $a = { key: 0 }, eo = { class: "klin
7960
7993
  min: 2,
7961
7994
  max: 100,
7962
7995
  step: 1,
7996
+ default: 9,
7963
7997
  description: "计算周期,周期越短越敏感"
7964
7998
  }]
7965
7999
  }
7966
- ], u = t, d = n, p = _(null), m = _(!1), h = _(null), y = r(() => h.value && l.find((e) => e.id === h.value) || null);
7967
- function x(e) {
7968
- return u.activeIndicators?.includes(e) ?? !1;
8000
+ ], S = y.filter((e) => e.pane === "main"), T = y.filter((e) => e.pane === "sub"), E = u, D = d, O = _(null), k = _(null), A = _(!1), j = _(null), M = _(null), N = _(!1), ee = _({
8001
+ left: "0",
8002
+ bottom: "0"
8003
+ }), te = r(() => E.activeIndicators?.length ? E.activeIndicators.map((e) => y.find((t) => t.id === e)).filter((e) => e !== void 0) : []), P = r(() => j.value && y.find((e) => e.id === j.value) || null);
8004
+ function F(e) {
8005
+ return E.activeIndicators?.includes(e) ?? !1;
7969
8006
  }
7970
- function S(e) {
7971
- let t = l.find((t) => t.id === e);
7972
- t && (x(e) ? d("toggle", e, !1) : (t.pane === "main" && l.filter((t) => t.pane === "main" && t.id !== e && x(t.id)).forEach((e) => d("toggle", e.id, !1)), d("toggle", e, !0)));
8007
+ function ne(e) {
8008
+ if (F(e)) return;
8009
+ let t = y.find((t) => t.id === e);
8010
+ t && (t.pane === "main" && y.filter((t) => t.pane === "main" && t.id !== e && F(t.id)).forEach((e) => D("toggle", e.id, !1)), D("toggle", e, !0), N.value = !1);
7973
8011
  }
7974
- function C(e) {
7975
- h.value = e, m.value = !0;
8012
+ function I(e) {
8013
+ D("toggle", e, !1);
7976
8014
  }
7977
- function T(e) {
7978
- let t = {}, n = l.find((t) => t.id === e);
7979
- if (n?.params) for (let r of n.params) r.key === "period" && e === "BOLL" ? t[r.key] = 20 : r.key === "multiplier" ? t[r.key] = 2 : r.key === "fastPeriod" ? t[r.key] = 12 : r.key === "slowPeriod" ? t[r.key] = 26 : r.key === "signalPeriod" && e === "MACD" ? t[r.key] = 9 : r.key === "period1" ? t[r.key] = 6 : r.key === "period2" ? t[r.key] = 12 : r.key === "period3" ? t[r.key] = 24 : r.key === "period" && e === "CCI" ? t[r.key] = 14 : r.key === "n" ? t[r.key] = 9 : r.key === "m" ? t[r.key] = 3 : r.key === "period" && e === "MOM" ? t[r.key] = 10 : r.key === "period" && e === "WMSR" ? t[r.key] = 14 : r.key === "roc1" ? t[r.key] = 10 : r.key === "roc2" ? t[r.key] = 15 : r.key === "roc3" ? t[r.key] = 20 : r.key === "roc4" ? t[r.key] = 30 : (r.key === "signalPeriod" && e === "KST" || r.key === "period" && e === "FASTK") && (t[r.key] = 9);
8015
+ function re(e) {
8016
+ j.value = e, A.value = !0;
8017
+ }
8018
+ function ie(e) {
8019
+ let t = y.find((t) => t.id === e);
8020
+ if (!t?.params) return {};
8021
+ let n = {};
8022
+ for (let e of t.params) n[e.key] = e.default ?? e.min ?? 1;
7980
8023
  return {
7981
- ...t,
7982
- ...u.indicatorParams?.[e] || {}
8024
+ ...n,
8025
+ ...E.indicatorParams?.[e] || {}
7983
8026
  };
7984
8027
  }
7985
- function E(e) {
7986
- let t = T(e.id);
7987
- return e.params ? e.params.map((e) => t[e.key]).join(",") : "";
8028
+ function ae(e) {
8029
+ let t = ie(e.id);
8030
+ return e.params ? e.params.map((e) => t[e.key] ?? "").join(",") : "";
7988
8031
  }
7989
- function D(e) {
7990
- h.value && d("updateParams", h.value, e), m.value = !1;
7991
- }
7992
- return (t, n) => (g(), o("div", Ro, [s("div", {
7993
- class: "indicator-scroll-container",
7994
- ref_key: "scrollContainerRef",
7995
- ref: p
7996
- }, [s("div", zo, [(g(), o(e, null, v(l, (e) => s("div", {
7997
- key: e.id,
7998
- class: "indicator-item",
7999
- ref_for: !0,
8000
- ref: "itemRefs"
8001
- }, [s("button", {
8002
- class: f(["indicator-btn", { active: x(e.id) }]),
8003
- onClick: (t) => S(e.id),
8004
- title: e.name
8005
- }, [c(b(e.label) + " ", 1), e.params ? (g(), o("span", Vo, " (" + b(E(e)) + ") ", 1)) : a("", !0)], 10, Bo), e.params && x(e.id) ? (g(), o("button", {
8006
- key: 0,
8007
- class: "settings-btn",
8008
- onClick: w((t) => C(e.id), ["stop"]),
8009
- title: "编辑参数"
8010
- }, "", 8, Ho)) : a("", !0)])), 64))])], 512), y.value ? (g(), i(Lo, {
8011
- key: 0,
8012
- visible: m.value,
8013
- "indicator-id": y.value.id,
8014
- "indicator-name": y.value.name,
8015
- "indicator-description": y.value.description,
8016
- params: y.value.params || [],
8017
- values: T(y.value.id),
8018
- onClose: n[0] ||= (e) => m.value = !1,
8019
- onConfirm: D
8020
- }, null, 8, [
8021
- "visible",
8022
- "indicator-id",
8023
- "indicator-name",
8024
- "indicator-description",
8025
- "params",
8026
- "values"
8027
- ])) : a("", !0)]));
8028
- }
8029
- }), [["__scopeId", "data-v-bd302de5"]]);
8032
+ function oe(e) {
8033
+ j.value && D("updateParams", j.value, e), A.value = !1;
8034
+ }
8035
+ function L() {
8036
+ if (!N.value && O.value) {
8037
+ let e = O.value.getBoundingClientRect(), t = window.innerWidth, n = e.left + e.width / 2;
8038
+ n + 160 > t - 8 && (n = t - 160 - 8), n - 160 < 8 && (n = 168), ee.value = {
8039
+ left: `${n}px`,
8040
+ bottom: `${window.innerHeight - e.top + 8}px`
8041
+ };
8042
+ }
8043
+ N.value = !N.value;
8044
+ }
8045
+ function se(e) {
8046
+ let t = k.value && !k.value.contains(e.target), n = O.value && !O.value.contains(e.target);
8047
+ t && n && (N.value = !1);
8048
+ }
8049
+ function ce() {
8050
+ N.value &&= !1;
8051
+ }
8052
+ return m(() => {
8053
+ document.addEventListener("click", se), window.addEventListener("resize", ce);
8054
+ }), h(() => {
8055
+ document.removeEventListener("click", se), window.removeEventListener("resize", ce);
8056
+ }), (r, u) => (g(), o("div", Ro, [
8057
+ s("div", zo, [s("div", Bo, [(g(!0), o(e, null, v(te.value, (e) => (g(), o("div", {
8058
+ key: e.id,
8059
+ class: "indicator-item"
8060
+ }, [s("div", {
8061
+ class: "indicator-btn-wrapper",
8062
+ onMouseenter: (t) => M.value = e.id,
8063
+ onMouseleave: u[0] ||= (e) => M.value = null
8064
+ }, [s("button", { class: f(["indicator-btn", {
8065
+ active: !0,
8066
+ hovering: M.value === e.id
8067
+ }]) }, [s("span", Ho, [c(b(e.label) + " ", 1), e.params ? (g(), o("span", Uo, " (" + b(ae(e)) + ") ", 1)) : a("", !0)]), l(n, { name: "fade" }, {
8068
+ default: C(() => [M.value === e.id ? (g(), o("div", Wo, [
8069
+ s("button", {
8070
+ class: "action-btn settings-btn",
8071
+ onClick: w((t) => re(e.id), ["stop"]),
8072
+ title: "编辑参数"
8073
+ }, [...u[2] ||= [s("svg", {
8074
+ viewBox: "0 0 24 24",
8075
+ width: "14",
8076
+ height: "14",
8077
+ fill: "currentColor"
8078
+ }, [s("path", { d: "M19.14 12.94c.04-.31.06-.63.06-.94 0-.31-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z" })], -1)]], 8, Go),
8079
+ u[4] ||= s("span", { class: "divider" }, null, -1),
8080
+ s("button", {
8081
+ class: "action-btn remove-btn",
8082
+ onClick: w((t) => I(e.id), ["stop"]),
8083
+ title: "移除指标"
8084
+ }, [...u[3] ||= [s("svg", {
8085
+ viewBox: "0 0 24 24",
8086
+ width: "14",
8087
+ height: "14",
8088
+ fill: "currentColor"
8089
+ }, [s("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })], -1)]], 8, Ko)
8090
+ ])) : a("", !0)]),
8091
+ _: 2
8092
+ }, 1024)], 2)], 40, Vo)]))), 128)), s("div", qo, [s("button", {
8093
+ ref_key: "addBtnRef",
8094
+ ref: O,
8095
+ class: "add-btn",
8096
+ onClick: L,
8097
+ title: "添加指标"
8098
+ }, [...u[5] ||= [s("svg", {
8099
+ viewBox: "0 0 24 24",
8100
+ width: "16",
8101
+ height: "16",
8102
+ fill: "currentColor"
8103
+ }, [s("path", { d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" })], -1)]], 512)])])]),
8104
+ (g(), i(t, { to: "body" }, [l(n, { name: "slide" }, {
8105
+ default: C(() => [N.value ? (g(), o("div", {
8106
+ key: 0,
8107
+ class: "add-menu",
8108
+ ref_key: "addMenuRef",
8109
+ ref: k,
8110
+ style: p(ee.value)
8111
+ }, [s("div", Jo, [u[7] ||= s("div", { class: "menu-title" }, "主图指标", -1), s("div", Yo, [(g(!0), o(e, null, v(x(S), (e) => (g(), o("button", {
8112
+ key: e.id,
8113
+ class: f(["menu-item", { disabled: F(e.id) }]),
8114
+ disabled: F(e.id),
8115
+ onClick: (t) => ne(e.id)
8116
+ }, [
8117
+ c(b(e.label) + " ", 1),
8118
+ e.params ? (g(), o("span", Zo, " (" + b(e.name) + ") ", 1)) : a("", !0),
8119
+ F(e.id) ? (g(), o("span", Qo, [...u[6] ||= [s("svg", {
8120
+ viewBox: "0 0 24 24",
8121
+ width: "14",
8122
+ height: "14",
8123
+ fill: "currentColor"
8124
+ }, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })], -1)]])) : a("", !0)
8125
+ ], 10, Xo))), 128))])]), s("div", $o, [u[9] ||= s("div", { class: "menu-title" }, "副图指标", -1), s("div", es, [(g(!0), o(e, null, v(x(T), (e) => (g(), o("button", {
8126
+ key: e.id,
8127
+ class: f(["menu-item", { disabled: F(e.id) }]),
8128
+ disabled: F(e.id),
8129
+ onClick: (t) => ne(e.id)
8130
+ }, [
8131
+ c(b(e.label) + " ", 1),
8132
+ e.params ? (g(), o("span", ns, " (" + b(e.name) + ") ", 1)) : a("", !0),
8133
+ F(e.id) ? (g(), o("span", rs, [...u[8] ||= [s("svg", {
8134
+ viewBox: "0 0 24 24",
8135
+ width: "14",
8136
+ height: "14",
8137
+ fill: "currentColor"
8138
+ }, [s("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })], -1)]])) : a("", !0)
8139
+ ], 10, ts))), 128))])])], 4)) : a("", !0)]),
8140
+ _: 1
8141
+ })])),
8142
+ P.value ? (g(), i(Lo, {
8143
+ key: 0,
8144
+ visible: A.value,
8145
+ "indicator-id": P.value.id,
8146
+ "indicator-name": P.value.name,
8147
+ "indicator-description": P.value.description,
8148
+ params: P.value.params || [],
8149
+ values: ie(P.value.id),
8150
+ onClose: u[1] ||= (e) => A.value = !1,
8151
+ onConfirm: oe
8152
+ }, null, 8, [
8153
+ "visible",
8154
+ "indicator-id",
8155
+ "indicator-name",
8156
+ "indicator-description",
8157
+ "params",
8158
+ "values"
8159
+ ])) : a("", !0)
8160
+ ]));
8161
+ }
8162
+ }), [["__scopeId", "data-v-76ea9e8f"]]);
8030
8163
  //#endregion
8031
8164
  //#region src/core/utils/klineConfig.ts
8032
- function Wo(e, t) {
8165
+ function as(e, t) {
8033
8166
  let n = Math.round(e * t);
8034
8167
  return n % 2 == 0 && (n += 1), Math.max(1, n);
8035
8168
  }
8036
- function Go(e, t, n) {
8037
- let r = Wo(e, n), i = Math.round(t * n), a = r + i, o = i;
8169
+ function os(e, t, n) {
8170
+ let r = as(e, n), i = Math.round(t * n), a = r + i, o = i;
8038
8171
  return {
8039
8172
  kWidthPx: r,
8040
8173
  kGapPx: i,
@@ -8048,14 +8181,14 @@ function Go(e, t, n) {
8048
8181
  }
8049
8182
  //#endregion
8050
8183
  //#region src/core/viewport/viewport.ts
8051
- function Ko(e, t, n, r, i, a = 1) {
8052
- let { unitPx: o, startXPx: s } = Go(n, r, a), c = e * a, l = t * a;
8184
+ function ss(e, t, n, r, i, a = 1) {
8185
+ let { unitPx: o, startXPx: s } = os(n, r, a), c = e * a, l = t * a;
8053
8186
  return {
8054
8187
  start: Math.max(0, Math.floor((c - s) / o) - 1),
8055
8188
  end: Math.min(i, Math.ceil((c + l - s) / o) + 1)
8056
8189
  };
8057
8190
  }
8058
- function qo(e, t, n) {
8191
+ function cs(e, t, n) {
8059
8192
  let r = -Infinity, i = Infinity;
8060
8193
  for (let a = t; a < n && a < e.length; a++) {
8061
8194
  let t = e[a];
@@ -8071,7 +8204,7 @@ function qo(e, t, n) {
8071
8204
  }
8072
8205
  //#endregion
8073
8206
  //#region src/core/scale/priceScale.ts
8074
- var Jo = class {
8207
+ var ls = class {
8075
8208
  range = {
8076
8209
  maxPrice: 100,
8077
8210
  minPrice: 0
@@ -8105,7 +8238,7 @@ var Jo = class {
8105
8238
  let { maxPrice: t, minPrice: n } = this.range, r = t - n || 1, i = Math.max(1, this.height - this.paddingTop - this.paddingBottom);
8106
8239
  return n + (1 - (e - this.paddingTop) / i) * r;
8107
8240
  }
8108
- }, Yo = class {
8241
+ }, us = class {
8109
8242
  id;
8110
8243
  top = 0;
8111
8244
  height = 0;
@@ -8113,7 +8246,7 @@ var Jo = class {
8113
8246
  maxPrice: 100,
8114
8247
  minPrice: 0
8115
8248
  };
8116
- yAxis = new Jo();
8249
+ yAxis = new ls();
8117
8250
  renderers = [];
8118
8251
  constructor(e) {
8119
8252
  this.id = e;
@@ -8128,9 +8261,9 @@ var Jo = class {
8128
8261
  this.renderers.push(e);
8129
8262
  }
8130
8263
  updateRange(e, t) {
8131
- this.priceRange = qo(e, t.start, t.end), this.yAxis.setRange(this.priceRange);
8264
+ this.priceRange = cs(e, t.start, t.end), this.yAxis.setRange(this.priceRange);
8132
8265
  }
8133
- }, Xo = class {
8266
+ }, ds = class {
8134
8267
  chart;
8135
8268
  isDragging = !1;
8136
8269
  dragStartX = 0;
@@ -8295,22 +8428,22 @@ var Jo = class {
8295
8428
  this.hoveredIndex = null;
8296
8429
  return;
8297
8430
  }
8298
- let T = a - C.top, E = C.yAxis.priceToY(w.open), D = C.yAxis.priceToY(w.close), O = C.yAxis.priceToY(w.high), k = C.yAxis.priceToY(w.low), A = Math.min(E, D), j = Math.max(E, D), M = m - this.kLinePositions[b], N = _ / 2, P = Math.abs(j - A), ee = P < 8 ? (A + j) / 2 - 8 / 2 : A, te = P < 8 ? (A + j) / 2 + 8 / 2 : j, ne = T >= ee && T <= te && M >= 0 && M <= _, re = Math.abs(M - N) <= 3 && T >= O && T <= k;
8299
- if (!ne && !re) {
8431
+ let T = a - C.top, E = C.yAxis.priceToY(w.open), D = C.yAxis.priceToY(w.close), O = C.yAxis.priceToY(w.high), k = C.yAxis.priceToY(w.low), A = Math.min(E, D), j = Math.max(E, D), M = m - this.kLinePositions[b], N = _ / 2, ee = Math.abs(j - A), te = ee < 8 ? (A + j) / 2 - 8 / 2 : A, P = ee < 8 ? (A + j) / 2 + 8 / 2 : j, F = T >= te && T <= P && M >= 0 && M <= _, ne = Math.abs(M - N) <= 3 && T >= O && T <= k;
8432
+ if (!F && !ne) {
8300
8433
  this.hoveredIndex = null;
8301
8434
  return;
8302
8435
  }
8303
8436
  this.hoveredIndex = this.crosshairIndex;
8304
- let F = this.tooltipSize.width, ie = this.tooltipSize.height, ae = i + 14, oe = i - 14 - F, se = ae + F + 12 <= s ? ae : oe, I = a + 14, ce = Math.max(12, s - F - 12), le = Math.max(12, c - ie - 12);
8437
+ let I = this.tooltipSize.width, re = this.tooltipSize.height, ie = i + 14, ae = i - 14 - I, oe = ie + I + 12 <= s ? ie : ae, L = a + 14, se = Math.max(12, s - I - 12), ce = Math.max(12, c - re - 12);
8305
8438
  this.tooltipPos = {
8306
- x: Math.min(Math.max(se, 12), ce),
8307
- y: Math.min(Math.max(I, 12), le)
8439
+ x: Math.min(Math.max(oe, 12), se),
8440
+ y: Math.min(Math.max(L, 12), ce)
8308
8441
  };
8309
8442
  }
8310
8443
  reset() {
8311
8444
  this.isDragging = !1, this.dragStartX = 0, this.scrollStartX = 0, this.isTouchSession = !1, this.crosshairPos = null, this.crosshairIndex = null, this.hoveredIndex = null, this.activePaneId = null, this.hoveredMarkerId = null, this.clickedMarkerId = null, this.hoveredMarkerData = null, this.clickedMarkerData = null, this.kLinePositions = null, this.visibleRange = null, this.kWidthPx = null;
8312
8445
  }
8313
- }, Zo = class {
8446
+ }, fs = class {
8314
8447
  dom;
8315
8448
  pane;
8316
8449
  opt;
@@ -8336,7 +8469,7 @@ var Jo = class {
8336
8469
  };
8337
8470
  //#endregion
8338
8471
  //#region src/core/renderers/subVolume.ts
8339
- function Qo(e = {}) {
8472
+ function ps(e = {}) {
8340
8473
  let { paneId: t = "sub" } = e;
8341
8474
  return {
8342
8475
  name: `volume_${t}`,
@@ -8355,26 +8488,26 @@ function Qo(e = {}) {
8355
8488
  if (!r) continue;
8356
8489
  let i = r.volume;
8357
8490
  if (!i) continue;
8358
- let a = es(r), d = c[e - u];
8359
- d && $o(t, d, a, i, f, o, s, n.height);
8491
+ let a = hs(r), d = c[e - u];
8492
+ d && ms(t, d, a, i, f, o, s, n.height);
8360
8493
  }
8361
8494
  t.restore();
8362
8495
  }
8363
8496
  };
8364
8497
  }
8365
- function $o(e, t, n, r, i, a, o, s) {
8366
- let c = ts(r, i, s), l = a;
8498
+ function ms(e, t, n, r, i, a, o, s) {
8499
+ let c = gs(r, i, s), l = a;
8367
8500
  e.fillStyle = n, e.fillRect(t, c, l, s - c);
8368
8501
  }
8369
- function es(e) {
8502
+ function hs(e) {
8370
8503
  return e.close > e.open ? X.UP : e.close < e.open ? X.DOWN : X.NEUTRAL;
8371
8504
  }
8372
- function ts(e, t, n) {
8505
+ function gs(e, t, n) {
8373
8506
  return n - n / t * e;
8374
8507
  }
8375
8508
  //#endregion
8376
8509
  //#region src/utils/priceToY.ts
8377
- function ns(e, t, n, r, i, a) {
8510
+ function _s(e, t, n, r, i, a) {
8378
8511
  let o = t - n || 1, s = (e - n) / o;
8379
8512
  return i + Math.max(1, r - i - a) * (1 - s);
8380
8513
  }
@@ -8386,7 +8519,7 @@ function Z(e, t) {
8386
8519
  function Q(e, t) {
8387
8520
  return (Math.floor(e * t) + .5) / t;
8388
8521
  }
8389
- function rs(e, t, n, r) {
8522
+ function vs(e, t, n, r) {
8390
8523
  if (t === n) return null;
8391
8524
  let i = Math.min(t, n), a = Math.max(t, n), o = Math.round(e * r), s = Math.round(i * r), c = Math.round(a * r);
8392
8525
  return {
@@ -8396,7 +8529,7 @@ function rs(e, t, n, r) {
8396
8529
  height: Math.max(1, c - s) / r
8397
8530
  };
8398
8531
  }
8399
- function is(e, t, n, r) {
8532
+ function ys(e, t, n, r) {
8400
8533
  if (e === t) return null;
8401
8534
  let i = Math.min(e, t), a = Math.max(e, t), o = Math.round(i * r), s = Math.round(a * r), c = Math.round(n * r);
8402
8535
  return {
@@ -8406,7 +8539,7 @@ function is(e, t, n, r) {
8406
8539
  height: 1 / r
8407
8540
  };
8408
8541
  }
8409
- function as(e, t, n, r, i) {
8542
+ function bs(e, t, n, r, i) {
8410
8543
  let a = e + n, o = n, s = Math.round(t * i), c = Math.round((t + r) * i), l = Math.max(1, c - s), u = e + (n - 1) / 2, d = u, f = o % 2 == 1;
8411
8544
  return {
8412
8545
  bodyRect: {
@@ -8429,7 +8562,7 @@ function as(e, t, n, r, i) {
8429
8562
  }
8430
8563
  //#endregion
8431
8564
  //#region src/core/renderers/Indicator/ma.ts
8432
- function os(e, t) {
8565
+ function xs(e, t) {
8433
8566
  let n = Array(e.length);
8434
8567
  if (e.length < t) return n;
8435
8568
  let r = 0;
@@ -8445,7 +8578,7 @@ function os(e, t) {
8445
8578
  }
8446
8579
  return n;
8447
8580
  }
8448
- function ss(e = {}) {
8581
+ function Ss(e = {}) {
8449
8582
  let t = {
8450
8583
  ma5: !0,
8451
8584
  ma10: !0,
@@ -8457,7 +8590,7 @@ function ss(e = {}) {
8457
8590
  function i(e, t) {
8458
8591
  let i = n.get(t);
8459
8592
  if (i && r === e) return i.values;
8460
- let a = os(e, t);
8593
+ let a = xs(e, t);
8461
8594
  return n.set(t, {
8462
8595
  period: t,
8463
8596
  values: a
@@ -8473,7 +8606,7 @@ function ss(e = {}) {
8473
8606
  for (let n = a.start; n < a.end && n < t.length; n++) {
8474
8607
  let r = t[n];
8475
8608
  if (r === void 0) continue;
8476
- let i = l[n - a.start] + o / 2, s = ns(r, h, g, u, p, m), d = Q(i, c), f = Q(s, c);
8609
+ let i = l[n - a.start] + o / 2, s = _s(r, h, g, u, p, m), d = Q(i, c), f = Q(s, c);
8477
8610
  _ ? (e.moveTo(d, f), _ = !1) : e.lineTo(d, f);
8478
8611
  }
8479
8612
  e.stroke();
@@ -8502,7 +8635,7 @@ function ss(e = {}) {
8502
8635
  }
8503
8636
  //#endregion
8504
8637
  //#region src/utils/kline/ma.ts
8505
- function cs(e, t, n) {
8638
+ function Cs(e, t, n) {
8506
8639
  if (t < n - 1) return;
8507
8640
  let r = 0;
8508
8641
  for (let i = 0; i < n; i++) {
@@ -8514,7 +8647,7 @@ function cs(e, t, n) {
8514
8647
  }
8515
8648
  //#endregion
8516
8649
  //#region src/core/renderers/Indicator/maLegend.ts
8517
- function ls(e) {
8650
+ function ws(e) {
8518
8651
  let t = {
8519
8652
  ma5: !0,
8520
8653
  ma10: !0,
@@ -8539,23 +8672,23 @@ function ls(e) {
8539
8672
  if (t.ma5 && l.push({
8540
8673
  label: "MA5",
8541
8674
  color: ja.MA5,
8542
- value: cs(o, c, 5)
8675
+ value: Cs(o, c, 5)
8543
8676
  }), t.ma10 && l.push({
8544
8677
  label: "MA10",
8545
8678
  color: ja.MA10,
8546
- value: cs(o, c, 10)
8679
+ value: Cs(o, c, 10)
8547
8680
  }), t.ma20 && l.push({
8548
8681
  label: "MA20",
8549
8682
  color: ja.MA20,
8550
- value: cs(o, c, 20)
8683
+ value: Cs(o, c, 20)
8551
8684
  }), t.ma30 && l.push({
8552
8685
  label: "MA30",
8553
8686
  color: ja.MA30,
8554
- value: cs(o, c, 30)
8687
+ value: Cs(o, c, 30)
8555
8688
  }), t.ma60 && l.push({
8556
8689
  label: "MA60",
8557
8690
  color: ja.MA60,
8558
- value: cs(o, c, 60)
8691
+ value: Cs(o, c, 60)
8559
8692
  }), l.length > 0) {
8560
8693
  let e = 12, t = s;
8561
8694
  r.fillStyle = X.NEUTRAL, r.fillText("均线", e, t), e += r.measureText("均线").width + 10;
@@ -8576,7 +8709,7 @@ function ls(e) {
8576
8709
  }
8577
8710
  //#endregion
8578
8711
  //#region src/core/renderers/Indicator/boll.ts
8579
- function us(e, t, n) {
8712
+ function Ts(e, t, n) {
8580
8713
  let r = Array(e.length);
8581
8714
  if (e.length < t) return r;
8582
8715
  let i = 0, a = [];
@@ -8609,7 +8742,7 @@ function us(e, t, n) {
8609
8742
  }
8610
8743
  return r;
8611
8744
  }
8612
- function ds(e = {}) {
8745
+ function Es(e = {}) {
8613
8746
  let t = {
8614
8747
  period: 20,
8615
8748
  multiplier: 2,
@@ -8620,7 +8753,7 @@ function ds(e = {}) {
8620
8753
  ...e
8621
8754
  }, n = null, r = 0, i = 0, a = [];
8622
8755
  function o(e) {
8623
- return (n !== e || r !== t.period || i !== t.multiplier) && (a = us(e, t.period, t.multiplier), n = e, r = t.period, i = t.multiplier), a;
8756
+ return (n !== e || r !== t.period || i !== t.multiplier) && (a = Ts(e, t.period, t.multiplier), n = e, r = t.period, i = t.multiplier), a;
8624
8757
  }
8625
8758
  return {
8626
8759
  name: "boll",
@@ -8650,13 +8783,13 @@ function ds(e = {}) {
8650
8783
  for (let t = C; t < w; t++) {
8651
8784
  let r = p[t];
8652
8785
  if (!r) continue;
8653
- let i = d[t - a.start] + m.kWidth / 2, o = ns(r.upper, x, S, g, y, b), s = Q(i, u), c = Q(o, u);
8786
+ let i = d[t - a.start] + m.kWidth / 2, o = _s(r.upper, x, S, g, y, b), s = Q(i, u), c = Q(o, u);
8654
8787
  e ? (n.moveTo(s, c), e = !1) : n.lineTo(s, c);
8655
8788
  }
8656
8789
  for (let e = w - 1; e >= C; e--) {
8657
8790
  let t = p[e];
8658
8791
  if (!t) continue;
8659
- let r = d[e - a.start] + m.kWidth / 2, i = ns(t.lower, x, S, g, y, b), o = Q(r, u), s = Q(i, u);
8792
+ let r = d[e - a.start] + m.kWidth / 2, i = _s(t.lower, x, S, g, y, b), o = Q(r, u), s = Q(i, u);
8660
8793
  n.lineTo(o, s);
8661
8794
  }
8662
8795
  n.closePath(), n.fill();
@@ -8668,7 +8801,7 @@ function ds(e = {}) {
8668
8801
  for (let t = C; t < w; t++) {
8669
8802
  let i = p[t];
8670
8803
  if (!i) continue;
8671
- let o = d[t - a.start] + m.kWidth / 2, s = ns(i[e], x, S, g, y, b), c = Q(o, u), l = Q(s, u);
8804
+ let o = d[t - a.start] + m.kWidth / 2, s = _s(i[e], x, S, g, y, b), c = Q(o, u), l = Q(s, u);
8672
8805
  r ? (n.moveTo(c, l), r = !1) : n.lineTo(c, l);
8673
8806
  }
8674
8807
  n.stroke();
@@ -8686,7 +8819,7 @@ function ds(e = {}) {
8686
8819
  }
8687
8820
  };
8688
8821
  }
8689
- function fs(e, t, n = 20, r = 2) {
8822
+ function Ds(e, t, n = 20, r = 2) {
8690
8823
  if (t < n - 1 || t >= e.length) return null;
8691
8824
  let i = 0;
8692
8825
  for (let r = 0; r < n; r++) {
@@ -8709,7 +8842,7 @@ function fs(e, t, n = 20, r = 2) {
8709
8842
  }
8710
8843
  //#endregion
8711
8844
  //#region src/core/renderers/Indicator/bollLegend.ts
8712
- function ps(e) {
8845
+ function Os(e) {
8713
8846
  let t = {
8714
8847
  period: 20,
8715
8848
  multiplier: 2,
@@ -8729,7 +8862,7 @@ function ps(e) {
8729
8862
  if (!o.length) return;
8730
8863
  let s = (12 + e.yPaddingPx) / 2;
8731
8864
  r.save(), r.font = "12px Arial", r.textAlign = "left";
8732
- let c = fs(o, Math.min(a.end - 1, o.length - 1), t.period, t.multiplier), l = 12;
8865
+ let c = Ds(o, Math.min(a.end - 1, o.length - 1), t.period, t.multiplier), l = 12;
8733
8866
  r.fillStyle = X.NEUTRAL, r.fillText(`BOLL(${t.period},${t.multiplier})`, l, s), l += r.measureText(`BOLL(${t.period},${t.multiplier})`).width + 10, c && (r.fillStyle = Ma.UPPER, r.fillText(`上轨:${c.upper.toFixed(2)}`, l, s), l += r.measureText(`上轨:${c.upper.toFixed(2)}`).width + 10, r.fillStyle = Ma.MIDDLE, r.fillText(`中轨:${c.middle.toFixed(2)}`, l, s), l += r.measureText(`中轨:${c.middle.toFixed(2)}`).width + 10, r.fillStyle = Ma.LOWER, r.fillText(`下轨:${c.lower.toFixed(2)}`, l, s)), r.restore();
8734
8867
  },
8735
8868
  getConfig() {
@@ -8742,7 +8875,7 @@ function ps(e) {
8742
8875
  }
8743
8876
  //#endregion
8744
8877
  //#region src/core/renderers/Indicator/macd.ts
8745
- function ms(e, t) {
8878
+ function ks(e, t) {
8746
8879
  let n = Array(e.length), r = 2 / (t + 1);
8747
8880
  if (e.length === 0) return n;
8748
8881
  n[0] = e[0].close;
@@ -8752,7 +8885,7 @@ function ms(e, t) {
8752
8885
  }
8753
8886
  return n;
8754
8887
  }
8755
- function hs(e, t) {
8888
+ function As(e, t) {
8756
8889
  let n = Array(e.length), r = 2 / (t + 1), i = e.findIndex((e) => e !== void 0);
8757
8890
  if (i === -1) return n;
8758
8891
  n[i] = e[i];
@@ -8762,15 +8895,15 @@ function hs(e, t) {
8762
8895
  }
8763
8896
  return n;
8764
8897
  }
8765
- function gs(e, t, n, r) {
8898
+ function js(e, t, n, r) {
8766
8899
  let i = Array(e.length);
8767
8900
  if (e.length < n) return i;
8768
- let a = ms(e, t), o = ms(e, n), s = Array(e.length);
8901
+ let a = ks(e, t), o = ks(e, n), s = Array(e.length);
8769
8902
  for (let t = 0; t < e.length; t++) {
8770
8903
  let e = a[t], n = o[t];
8771
8904
  e !== void 0 && n !== void 0 && (s[t] = e - n);
8772
8905
  }
8773
- let c = hs(s, r);
8906
+ let c = As(s, r);
8774
8907
  for (let t = 0; t < e.length; t++) {
8775
8908
  let e = s[t], n = c[t];
8776
8909
  e !== void 0 && n !== void 0 && (i[t] = {
@@ -8781,7 +8914,7 @@ function gs(e, t, n, r) {
8781
8914
  }
8782
8915
  return i;
8783
8916
  }
8784
- function _s(e = {}) {
8917
+ function Ms(e = {}) {
8785
8918
  let { paneId: t = "sub", config: n = {} } = e, r = {
8786
8919
  fastPeriod: 12,
8787
8920
  slowPeriod: 26,
@@ -8792,7 +8925,7 @@ function _s(e = {}) {
8792
8925
  ...n
8793
8926
  }, i = null, a = 0, o = 0, s = 0, c = [];
8794
8927
  function l(e) {
8795
- return (i !== e || a !== r.fastPeriod || o !== r.slowPeriod || s !== r.signalPeriod) && (c = gs(e, r.fastPeriod, r.slowPeriod, r.signalPeriod), i = e, a = r.fastPeriod, o = r.slowPeriod, s = r.signalPeriod), c;
8928
+ return (i !== e || a !== r.fastPeriod || o !== r.slowPeriod || s !== r.signalPeriod) && (c = js(e, r.fastPeriod, r.slowPeriod, r.signalPeriod), i = e, a = r.fastPeriod, o = r.slowPeriod, s = r.signalPeriod), c;
8796
8929
  }
8797
8930
  return {
8798
8931
  name: `macd_${t}`,
@@ -8865,11 +8998,11 @@ function _s(e = {}) {
8865
8998
  }
8866
8999
  };
8867
9000
  }
8868
- function vs(e, t, n = 12, r = 26, i = 9) {
8869
- return t < r || t >= e.length ? null : gs(e, n, r, i)[t] ?? null;
9001
+ function Ns(e, t, n = 12, r = 26, i = 9) {
9002
+ return t < r || t >= e.length ? null : js(e, n, r, i)[t] ?? null;
8870
9003
  }
8871
- function ys(e, t, n = 12, r = 26, i = 9) {
8872
- let a = vs(e, t, n, r, i);
9004
+ function Ps(e, t, n = 12, r = 26, i = 9) {
9005
+ let a = Ns(e, t, n, r, i);
8873
9006
  return a ? {
8874
9007
  name: "MACD",
8875
9008
  params: [
@@ -8898,7 +9031,7 @@ function ys(e, t, n = 12, r = 26, i = 9) {
8898
9031
  }
8899
9032
  //#endregion
8900
9033
  //#region src/core/renderers/Indicator/rsi.ts
8901
- function bs(e, t) {
9034
+ function Fs(e, t) {
8902
9035
  let n = Array(e.length);
8903
9036
  if (e.length < t + 1) return n;
8904
9037
  let r = [];
@@ -8920,7 +9053,7 @@ function bs(e, t) {
8920
9053
  }
8921
9054
  return n;
8922
9055
  }
8923
- function xs(e = {}) {
9056
+ function Is(e = {}) {
8924
9057
  let { paneId: t = "sub", config: n = {} } = e, r = {
8925
9058
  period1: 6,
8926
9059
  period2: 12,
@@ -8931,7 +9064,7 @@ function xs(e = {}) {
8931
9064
  ...n
8932
9065
  }, i = null, a = 0, o = 0, s = 0, c = [], l = [], u = [];
8933
9066
  function d(e) {
8934
- return (i !== e || a !== r.period1 || o !== r.period2 || s !== r.period3) && (c = bs(e, r.period1), l = bs(e, r.period2), u = bs(e, r.period3), i = e, a = r.period1, o = r.period2, s = r.period3), {
9067
+ return (i !== e || a !== r.period1 || o !== r.period2 || s !== r.period3) && (c = Fs(e, r.period1), l = Fs(e, r.period2), u = Fs(e, r.period3), i = e, a = r.period1, o = r.period2, s = r.period3), {
8935
9068
  rsi1: c,
8936
9069
  rsi2: l,
8937
9070
  rsi3: u
@@ -8977,9 +9110,9 @@ function xs(e = {}) {
8977
9110
  }
8978
9111
  };
8979
9112
  }
8980
- function Ss(e, t, n = 6, r = 12, i = 24) {
9113
+ function Ls(e, t, n = 6, r = 12, i = 24) {
8981
9114
  if (t < n + 1 || t >= e.length) return null;
8982
- let a = bs(e, n)[t], o = bs(e, r)[t], s = bs(e, i)[t], c = [];
9115
+ let a = Fs(e, n)[t], o = Fs(e, r)[t], s = Fs(e, i)[t], c = [];
8983
9116
  return a !== void 0 && c.push({
8984
9117
  label: `RSI${n}`,
8985
9118
  value: a,
@@ -9004,7 +9137,7 @@ function Ss(e, t, n = 6, r = 12, i = 24) {
9004
9137
  }
9005
9138
  //#endregion
9006
9139
  //#region src/core/renderers/Indicator/cci.ts
9007
- function Cs(e, t) {
9140
+ function Rs(e, t) {
9008
9141
  let n = Array(e.length);
9009
9142
  if (e.length < t) return n;
9010
9143
  let r = e.map((e) => (e.high + e.low + e.close) / 3);
@@ -9018,14 +9151,14 @@ function Cs(e, t) {
9018
9151
  }
9019
9152
  return n;
9020
9153
  }
9021
- function ws(e = {}) {
9154
+ function zs(e = {}) {
9022
9155
  let { paneId: t = "sub", config: n = {} } = e, r = {
9023
9156
  period: 14,
9024
9157
  showCCI: !0,
9025
9158
  ...n
9026
9159
  }, i = null, a = 0, o = [];
9027
9160
  function s(e) {
9028
- return (i !== e || a !== r.period) && (o = Cs(e, r.period), i = e, a = r.period), o;
9161
+ return (i !== e || a !== r.period) && (o = Rs(e, r.period), i = e, a = r.period), o;
9029
9162
  }
9030
9163
  return {
9031
9164
  name: `cci_${t}`,
@@ -9075,12 +9208,12 @@ function ws(e = {}) {
9075
9208
  }
9076
9209
  };
9077
9210
  }
9078
- function Ts(e, t, n) {
9079
- return Cs(e, n)[t];
9211
+ function Bs(e, t, n) {
9212
+ return Rs(e, n)[t];
9080
9213
  }
9081
- function Es(e, t, n = 14) {
9214
+ function Vs(e, t, n = 14) {
9082
9215
  if (t < n || t >= e.length) return null;
9083
- let r = Ts(e, t, n);
9216
+ let r = Bs(e, t, n);
9084
9217
  return r === void 0 ? null : {
9085
9218
  name: "CCI",
9086
9219
  params: [n],
@@ -9093,7 +9226,7 @@ function Es(e, t, n = 14) {
9093
9226
  }
9094
9227
  //#endregion
9095
9228
  //#region src/core/renderers/Indicator/stoch.ts
9096
- function Ds(e, t, n) {
9229
+ function Hs(e, t, n) {
9097
9230
  let r = Array(e.length);
9098
9231
  if (e.length < t) return r;
9099
9232
  let i = Array(e.length);
@@ -9121,7 +9254,7 @@ function Ds(e, t, n) {
9121
9254
  }
9122
9255
  return r;
9123
9256
  }
9124
- function Os(e = {}) {
9257
+ function Us(e = {}) {
9125
9258
  let { paneId: t = "sub", config: n = {} } = e, r = {
9126
9259
  n: 9,
9127
9260
  m: 3,
@@ -9130,7 +9263,7 @@ function Os(e = {}) {
9130
9263
  ...n
9131
9264
  }, i = null, a = 0, o = 0, s = [];
9132
9265
  function c(e) {
9133
- return (i !== e || a !== r.n || o !== r.m) && (s = Ds(e, r.n, r.m), i = e, a = r.n, o = r.m), s;
9266
+ return (i !== e || a !== r.n || o !== r.m) && (s = Hs(e, r.n, r.m), i = e, a = r.n, o = r.m), s;
9134
9267
  }
9135
9268
  return {
9136
9269
  name: `stoch_${t}`,
@@ -9186,12 +9319,12 @@ function Os(e = {}) {
9186
9319
  }
9187
9320
  };
9188
9321
  }
9189
- function ks(e, t, n, r) {
9190
- return Ds(e, n, r)[t];
9322
+ function Ws(e, t, n, r) {
9323
+ return Hs(e, n, r)[t];
9191
9324
  }
9192
- function As(e, t, n = 9, r = 3) {
9325
+ function Gs(e, t, n = 9, r = 3) {
9193
9326
  if (t < n + r - 1 || t >= e.length) return null;
9194
- let i = ks(e, t, n, r);
9327
+ let i = Ws(e, t, n, r);
9195
9328
  return i ? {
9196
9329
  name: "STOCH",
9197
9330
  params: [n, r],
@@ -9208,7 +9341,7 @@ function As(e, t, n = 9, r = 3) {
9208
9341
  }
9209
9342
  //#endregion
9210
9343
  //#region src/core/renderers/Indicator/mom.ts
9211
- function js(e, t) {
9344
+ function Ks(e, t) {
9212
9345
  let n = Array(e.length);
9213
9346
  if (e.length < t + 1) return n;
9214
9347
  for (let r = t; r < e.length; r++) {
@@ -9217,14 +9350,14 @@ function js(e, t) {
9217
9350
  }
9218
9351
  return n;
9219
9352
  }
9220
- function Ms(e = {}) {
9353
+ function qs(e = {}) {
9221
9354
  let { paneId: t = "sub", config: n = {} } = e, r = {
9222
9355
  period: 10,
9223
9356
  showMOM: !0,
9224
9357
  ...n
9225
9358
  }, i = null, a = 0, o = [];
9226
9359
  function s(e) {
9227
- return (i !== e || a !== r.period) && (o = js(e, r.period), i = e, a = r.period), o;
9360
+ return (i !== e || a !== r.period) && (o = Ks(e, r.period), i = e, a = r.period), o;
9228
9361
  }
9229
9362
  return {
9230
9363
  name: `mom_${t}`,
@@ -9275,12 +9408,12 @@ function Ms(e = {}) {
9275
9408
  }
9276
9409
  };
9277
9410
  }
9278
- function Ns(e, t, n) {
9279
- return js(e, n)[t];
9411
+ function Js(e, t, n) {
9412
+ return Ks(e, n)[t];
9280
9413
  }
9281
- function Ps(e, t, n = 10) {
9414
+ function Ys(e, t, n = 10) {
9282
9415
  if (t < n || t >= e.length) return null;
9283
- let r = Ns(e, t, n);
9416
+ let r = Js(e, t, n);
9284
9417
  return r === void 0 ? null : {
9285
9418
  name: "MOM",
9286
9419
  params: [n],
@@ -9293,7 +9426,7 @@ function Ps(e, t, n = 10) {
9293
9426
  }
9294
9427
  //#endregion
9295
9428
  //#region src/core/renderers/Indicator/wmsr.ts
9296
- function Fs(e, t) {
9429
+ function Xs(e, t) {
9297
9430
  let n = Array(e.length);
9298
9431
  if (e.length < t) return n;
9299
9432
  for (let r = t - 1; r < e.length; r++) {
@@ -9307,14 +9440,14 @@ function Fs(e, t) {
9307
9440
  }
9308
9441
  return n;
9309
9442
  }
9310
- function Is(e = {}) {
9443
+ function Zs(e = {}) {
9311
9444
  let { paneId: t = "sub", config: n = {} } = e, r = {
9312
9445
  period: 14,
9313
9446
  showWMSR: !0,
9314
9447
  ...n
9315
9448
  }, i = null, a = 0, o = [];
9316
9449
  function s(e) {
9317
- return (i !== e || a !== r.period) && (o = Fs(e, r.period), i = e, a = r.period), o;
9450
+ return (i !== e || a !== r.period) && (o = Xs(e, r.period), i = e, a = r.period), o;
9318
9451
  }
9319
9452
  return {
9320
9453
  name: `wmsr_${t}`,
@@ -9357,12 +9490,12 @@ function Is(e = {}) {
9357
9490
  }
9358
9491
  };
9359
9492
  }
9360
- function Ls(e, t, n) {
9361
- return Fs(e, n)[t];
9493
+ function Qs(e, t, n) {
9494
+ return Xs(e, n)[t];
9362
9495
  }
9363
- function Rs(e, t, n = 14) {
9496
+ function $s(e, t, n = 14) {
9364
9497
  if (t < n || t >= e.length) return null;
9365
- let r = Ls(e, t, n);
9498
+ let r = Qs(e, t, n);
9366
9499
  return r === void 0 ? null : {
9367
9500
  name: "WMSR",
9368
9501
  params: [n],
@@ -9375,7 +9508,7 @@ function Rs(e, t, n = 14) {
9375
9508
  }
9376
9509
  //#endregion
9377
9510
  //#region src/core/renderers/Indicator/kst.ts
9378
- function zs(e, t) {
9511
+ function ec(e, t) {
9379
9512
  let n = Array(e.length);
9380
9513
  if (e.length < t + 1) return n;
9381
9514
  for (let r = t; r < e.length; r++) {
@@ -9384,7 +9517,7 @@ function zs(e, t) {
9384
9517
  }
9385
9518
  return n;
9386
9519
  }
9387
- function Bs(e, t) {
9520
+ function tc(e, t) {
9388
9521
  let n = Array(e.length), r = 0, i = 0;
9389
9522
  for (let a = 0; a < e.length; a++) {
9390
9523
  let o = e[a];
@@ -9398,13 +9531,13 @@ function Bs(e, t) {
9398
9531
  }
9399
9532
  return n;
9400
9533
  }
9401
- function Vs(e, t, n, r, i, a) {
9402
- let o = Array(e.length), s = zs(e, t), c = zs(e, n), l = zs(e, r), u = zs(e, i), d = Bs(s, 10), f = Bs(c, 10), p = Bs(l, 10), m = Bs(u, 15), h = Array(e.length);
9534
+ function nc(e, t, n, r, i, a) {
9535
+ let o = Array(e.length), s = ec(e, t), c = ec(e, n), l = ec(e, r), u = ec(e, i), d = tc(s, 10), f = tc(c, 10), p = tc(l, 10), m = tc(u, 15), h = Array(e.length);
9403
9536
  for (let t = 0; t < e.length; t++) {
9404
9537
  let e = d[t], n = f[t], r = p[t], i = m[t];
9405
9538
  e !== void 0 && n !== void 0 && r !== void 0 && i !== void 0 && (h[t] = e * 1 + n * 2 + r * 3 + i * 4);
9406
9539
  }
9407
- let g = Bs(h, a);
9540
+ let g = tc(h, a);
9408
9541
  for (let t = 0; t < e.length; t++) {
9409
9542
  let e = h[t], n = g[t];
9410
9543
  e !== void 0 && n !== void 0 && (o[t] = {
@@ -9414,7 +9547,7 @@ function Vs(e, t, n, r, i, a) {
9414
9547
  }
9415
9548
  return o;
9416
9549
  }
9417
- function Hs(e = {}) {
9550
+ function rc(e = {}) {
9418
9551
  let { paneId: t = "sub", config: n = {} } = e, r = {
9419
9552
  roc1: 10,
9420
9553
  roc2: 15,
@@ -9427,7 +9560,7 @@ function Hs(e = {}) {
9427
9560
  }, i = null, a = "", o = [];
9428
9561
  function s(e) {
9429
9562
  let t = `${r.roc1}-${r.roc2}-${r.roc3}-${r.roc4}-${r.signalPeriod}`;
9430
- return (i !== e || a !== t) && (o = Vs(e, r.roc1, r.roc2, r.roc3, r.roc4, r.signalPeriod), i = e, a = t), o;
9563
+ return (i !== e || a !== t) && (o = nc(e, r.roc1, r.roc2, r.roc3, r.roc4, r.signalPeriod), i = e, a = t), o;
9431
9564
  }
9432
9565
  return {
9433
9566
  name: `kst_${t}`,
@@ -9491,12 +9624,12 @@ function Hs(e = {}) {
9491
9624
  }
9492
9625
  };
9493
9626
  }
9494
- function Us(e, t, n, r, i, a, o) {
9495
- return Vs(e, n, r, i, a, o)[t];
9627
+ function ic(e, t, n, r, i, a, o) {
9628
+ return nc(e, n, r, i, a, o)[t];
9496
9629
  }
9497
- function Ws(e, t, n = 10, r = 15, i = 20, a = 30, o = 9) {
9630
+ function ac(e, t, n = 10, r = 15, i = 20, a = 30, o = 9) {
9498
9631
  if (t < a + 15 + o || t >= e.length) return null;
9499
- let s = Us(e, t, n, r, i, a, o);
9632
+ let s = ic(e, t, n, r, i, a, o);
9500
9633
  return s ? {
9501
9634
  name: "KST",
9502
9635
  params: [
@@ -9519,7 +9652,7 @@ function Ws(e, t, n = 10, r = 15, i = 20, a = 30, o = 9) {
9519
9652
  }
9520
9653
  //#endregion
9521
9654
  //#region src/core/renderers/Indicator/fastk.ts
9522
- function Gs(e, t) {
9655
+ function oc(e, t) {
9523
9656
  let n = Array(e.length);
9524
9657
  if (e.length < t) return n;
9525
9658
  for (let r = t - 1; r < e.length; r++) {
@@ -9533,14 +9666,14 @@ function Gs(e, t) {
9533
9666
  }
9534
9667
  return n;
9535
9668
  }
9536
- function Ks(e = {}) {
9669
+ function sc(e = {}) {
9537
9670
  let { paneId: t = "sub", config: n = {} } = e, r = {
9538
9671
  period: 9,
9539
9672
  showFASTK: !0,
9540
9673
  ...n
9541
9674
  }, i = null, a = 0, o = [];
9542
9675
  function s(e) {
9543
- return (i !== e || a !== r.period) && (o = Gs(e, r.period), i = e, a = r.period), o;
9676
+ return (i !== e || a !== r.period) && (o = oc(e, r.period), i = e, a = r.period), o;
9544
9677
  }
9545
9678
  return {
9546
9679
  name: `fastk_${t}`,
@@ -9583,12 +9716,12 @@ function Ks(e = {}) {
9583
9716
  }
9584
9717
  };
9585
9718
  }
9586
- function qs(e, t, n) {
9587
- return Gs(e, n)[t];
9719
+ function cc(e, t, n) {
9720
+ return oc(e, n)[t];
9588
9721
  }
9589
- function Js(e, t, n = 9) {
9722
+ function lc(e, t, n = 9) {
9590
9723
  if (t < n || t >= e.length) return null;
9591
- let r = qs(e, t, n);
9724
+ let r = cc(e, t, n);
9592
9725
  return r === void 0 ? null : {
9593
9726
  name: "FASTK",
9594
9727
  params: [n],
@@ -9601,24 +9734,24 @@ function Js(e, t, n = 9) {
9601
9734
  }
9602
9735
  //#endregion
9603
9736
  //#region src/core/renderers/Indicator/index.ts
9604
- function Ys(e) {
9737
+ function uc(e) {
9605
9738
  let { indicatorId: t, paneId: n } = e;
9606
9739
  switch (t) {
9607
- case "VOLUME": return Qo({ paneId: n });
9608
- case "MACD": return _s({ paneId: n });
9609
- case "RSI": return xs({ paneId: n });
9610
- case "CCI": return ws({ paneId: n });
9611
- case "STOCH": return Os({ paneId: n });
9612
- case "MOM": return Ms({ paneId: n });
9613
- case "WMSR": return Is({ paneId: n });
9614
- case "KST": return Hs({ paneId: n });
9615
- case "FASTK": return Ks({ paneId: n });
9740
+ case "VOLUME": return ps({ paneId: n });
9741
+ case "MACD": return Ms({ paneId: n });
9742
+ case "RSI": return Is({ paneId: n });
9743
+ case "CCI": return zs({ paneId: n });
9744
+ case "STOCH": return Us({ paneId: n });
9745
+ case "MOM": return qs({ paneId: n });
9746
+ case "WMSR": return Zs({ paneId: n });
9747
+ case "KST": return rc({ paneId: n });
9748
+ case "FASTK": return sc({ paneId: n });
9616
9749
  default: throw Error(`Unknown indicator: ${t}`);
9617
9750
  }
9618
9751
  }
9619
9752
  //#endregion
9620
9753
  //#region src/core/chart.ts
9621
- var Xs = class e {
9754
+ var dc = class e {
9622
9755
  dom;
9623
9756
  opt;
9624
9757
  data = [];
@@ -9630,7 +9763,7 @@ var Xs = class e {
9630
9763
  pluginHost;
9631
9764
  rendererPluginManager;
9632
9765
  constructor(e, t) {
9633
- this.dom = e, this.opt = t, this.interaction = new Xo(this), this.markerManager = new go(), this.pluginHost = da(), this.rendererPluginManager = new pa(), this.rendererPluginManager.setPluginHost(this.pluginHost), this.rendererPluginManager.setInvalidateCallback(() => this.scheduleDraw()), this.initPanes();
9766
+ this.dom = e, this.opt = t, this.interaction = new ds(this), this.markerManager = new go(), this.pluginHost = da(), this.rendererPluginManager = new pa(), this.rendererPluginManager.setPluginHost(this.pluginHost), this.rendererPluginManager.setInvalidateCallback(() => this.scheduleDraw()), this.initPanes();
9634
9767
  }
9635
9768
  get plugin() {
9636
9769
  return this.pluginHost;
@@ -9664,10 +9797,10 @@ var Xs = class e {
9664
9797
  console.log("[Chart] draw aborted: no data");
9665
9798
  return;
9666
9799
  }
9667
- let { start: t, end: n } = Ko(e.scrollLeft, e.plotWidth, this.opt.kWidth, this.opt.kGap, this.data.length, e.dpr), r = {
9800
+ let { start: t, end: n } = ss(e.scrollLeft, e.plotWidth, this.opt.kWidth, this.opt.kGap, this.data.length, e.dpr), r = {
9668
9801
  start: t,
9669
9802
  end: n
9670
- }, i = this.calcKLinePositions(r), { kWidthPx: a } = Go(this.opt.kWidth, this.opt.kGap, e.dpr);
9803
+ }, i = this.calcKLinePositions(r), { kWidthPx: a } = os(this.opt.kWidth, this.opt.kGap, e.dpr);
9671
9804
  this.interaction.setKLinePositions(i, r, a);
9672
9805
  for (let t of this.paneRenderers) {
9673
9806
  let n = t.getPane(), a = t.getDom().plotCanvas.getContext("2d"), o = t.getDom().yAxisCanvas.getContext("2d");
@@ -9820,7 +9953,7 @@ var Xs = class e {
9820
9953
  calcKLinePositions(e) {
9821
9954
  let { start: t, end: n } = e, r = n - t;
9822
9955
  if (r <= 0) return [];
9823
- let i = this.viewport?.dpr || window.devicePixelRatio || 1, { unitPx: a, startXPx: o } = Go(this.opt.kWidth, this.opt.kGap, i), s = Array(r);
9956
+ let i = this.viewport?.dpr || window.devicePixelRatio || 1, { unitPx: a, startXPx: o } = os(this.opt.kWidth, this.opt.kGap, i), s = Array(r);
9824
9957
  for (let e = 0; e < r; e++) s[e] = (o + (t + e) * a) / i;
9825
9958
  return s;
9826
9959
  }
@@ -9838,9 +9971,9 @@ var Xs = class e {
9838
9971
  console.warn(`Pane "${e}" already exists`);
9839
9972
  return;
9840
9973
  }
9841
- let t = new Yo(e), n = document.createElement("canvas"), r = document.createElement("canvas");
9974
+ let t = new us(e), n = document.createElement("canvas"), r = document.createElement("canvas");
9842
9975
  n.id = `${e}-plot`, n.className = "plot-canvas", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", r.id = `${e}-yAxis`, r.className = "y-axis-canvas", r.style.position = "absolute", r.style.right = "0";
9843
- let i = new Zo({
9976
+ let i = new fs({
9844
9977
  plotCanvas: n,
9845
9978
  yAxisCanvas: r
9846
9979
  }, t, {
@@ -9871,7 +10004,7 @@ var Xs = class e {
9871
10004
  return n && this.updateRendererConfig(e, n), !0;
9872
10005
  }
9873
10006
  this.addPane(r);
9874
- let i = Ys({
10007
+ let i = uc({
9875
10008
  indicatorId: t,
9876
10009
  paneId: r
9877
10010
  });
@@ -9909,7 +10042,7 @@ var Xs = class e {
9909
10042
  return this.data;
9910
10043
  }
9911
10044
  getContentWidth() {
9912
- let e = this.data?.length ?? 0, t = this.viewport?.dpr || window.devicePixelRatio || 1, { startXPx: n, unitPx: r } = Go(this.opt.kWidth, this.opt.kGap, t);
10045
+ let e = this.data?.length ?? 0, t = this.viewport?.dpr || window.devicePixelRatio || 1, { startXPx: n, unitPx: r } = os(this.opt.kWidth, this.opt.kGap, t);
9913
10046
  return (n + e * r) / t + (this.opt.rightAxisWidth + (this.opt.priceLabelWidth || 60));
9914
10047
  }
9915
10048
  resize() {
@@ -9926,8 +10059,8 @@ var Xs = class e {
9926
10059
  }
9927
10060
  initPanes() {
9928
10061
  this.paneRenderers = this.opt.panes.map((e) => {
9929
- let t = new Yo(e.id), n = document.createElement("canvas"), r = document.createElement("canvas");
9930
- return n.id = `${e.id}-plot`, n.className = "plot-canvas", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", r.id = `${e.id}-yAxis`, r.className = "y-axis-canvas", r.style.position = "absolute", r.style.right = "0", new Zo({
10062
+ let t = new us(e.id), n = document.createElement("canvas"), r = document.createElement("canvas");
10063
+ return n.id = `${e.id}-plot`, n.className = "plot-canvas", n.style.position = "absolute", n.style.left = "0", n.style.top = "0", r.id = `${e.id}-yAxis`, r.className = "y-axis-canvas", r.style.position = "absolute", r.style.right = "0", new fs({
9931
10064
  plotCanvas: n,
9932
10065
  yAxisCanvas: r
9933
10066
  }, t, {
@@ -9980,18 +10113,18 @@ var Xs = class e {
9980
10113
  };
9981
10114
  //#endregion
9982
10115
  //#region src/types/kLine.ts
9983
- function Zs(e) {
10116
+ function fc(e) {
9984
10117
  return e.open > e.close ? "down" : e.open < e.close ? "up" : "flat";
9985
10118
  }
9986
10119
  //#endregion
9987
10120
  //#region src/types/volumePrice.ts
9988
10121
  var $ = /* @__PURE__ */ function(e) {
9989
10122
  return e.RISE_WITH_VOLUME = "rise_with_volume", e.RISE_WITHOUT_VOLUME = "rise_without_volume", e.FALL_WITH_VOLUME = "fall_with_volume", e.FALL_WITHOUT_VOLUME = "fall_without_volume", e.OTHERS = "others", e;
9990
- }({}), Qs = {
10123
+ }({}), pc = {
9991
10124
  volumeAmplifyThreshold: 1.5,
9992
10125
  volumeShrinkThreshold: .8,
9993
10126
  avgPeriod: 20
9994
- }, $s = class {
10127
+ }, mc = class {
9995
10128
  prefixSum = [];
9996
10129
  dataLength = 0;
9997
10130
  build(e) {
@@ -10016,8 +10149,8 @@ var $ = /* @__PURE__ */ function(e) {
10016
10149
  return this.dataLength;
10017
10150
  }
10018
10151
  };
10019
- function ec(e, t, n, r = Qs) {
10020
- let i = new $s();
10152
+ function hc(e, t, n, r = pc) {
10153
+ let i = new mc();
10021
10154
  i.build(e);
10022
10155
  let a = [], { volumeAmplifyThreshold: o, volumeShrinkThreshold: s, avgPeriod: c } = r;
10023
10156
  for (let r = t; r < n && r < e.length; r++) {
@@ -10038,7 +10171,7 @@ function ec(e, t, n, r = Qs) {
10038
10171
  }
10039
10172
  //#endregion
10040
10173
  //#region src/core/renderers/candle.ts
10041
- function tc() {
10174
+ function gc() {
10042
10175
  return {
10043
10176
  name: "candle",
10044
10177
  version: "1.0.0",
@@ -10049,36 +10182,36 @@ function tc() {
10049
10182
  draw(e) {
10050
10183
  let { ctx: t, pane: n, data: r, range: i, scrollLeft: a, kWidth: o, kGap: s, dpr: c, kLinePositions: l, markerManager: u } = e, d = r;
10051
10184
  if (!d.length) return;
10052
- let { kWidthPx: f } = Go(o, s, c);
10185
+ let { kWidthPx: f } = os(o, s, c);
10053
10186
  t.save(), t.translate(-a, 0);
10054
- let p = l || [], m = ec(d, i.start, i.end, Qs);
10187
+ let p = l || [], m = hc(d, i.start, i.end, pc);
10055
10188
  for (let e = i.start; e < i.end && e < d.length; e++) {
10056
10189
  let r = d[e];
10057
10190
  if (!r) continue;
10058
10191
  let a = n.yAxis.priceToY(r.open), s = n.yAxis.priceToY(r.close), l = n.yAxis.priceToY(r.high), h = n.yAxis.priceToY(r.low), g = Math.min(a, s), _ = Math.max(Math.abs(a - s), 1), v = p[e - i.start];
10059
10192
  if (!v) continue;
10060
- let y = as(Math.round(v * c), g, f, _, c);
10061
- t.fillStyle = Zs(r) === "up" ? X.UP : X.DOWN, t.fillRect(y.bodyRect.x, y.bodyRect.y, y.bodyRect.width, y.bodyRect.height);
10193
+ let y = bs(Math.round(v * c), g, f, _, c);
10194
+ t.fillStyle = fc(r) === "up" ? X.UP : X.DOWN, t.fillRect(y.bodyRect.x, y.bodyRect.y, y.bodyRect.width, y.bodyRect.height);
10062
10195
  let b = y.wickRect.width, x = y.wickRect.x, S = y.bodyRect.y, C = y.bodyRect.y + y.bodyRect.height, w = Math.max(r.open, r.close), T = Math.min(r.open, r.close);
10063
10196
  if (r.high > w) {
10064
- let e = rs(x, l, S, c);
10197
+ let e = vs(x, l, S, c);
10065
10198
  e && t.fillRect(e.x, e.y, b, e.height);
10066
10199
  }
10067
10200
  if (r.low < T) {
10068
- let e = rs(x, C, h, c);
10201
+ let e = vs(x, C, h, c);
10069
10202
  e && t.fillRect(e.x, e.y, b, e.height);
10070
10203
  }
10071
10204
  let E = m[e - i.start];
10072
10205
  if (E !== $.OTHERS && u) {
10073
10206
  let n = E === $.RISE_WITH_VOLUME || E === $.RISE_WITHOUT_VOLUME ? l - 15 : h + 15;
10074
- nc(t, y.bodyRect.x + y.bodyRect.width / 2, n, E, e, o, 4, u);
10207
+ _c(t, y.bodyRect.x + y.bodyRect.width / 2, n, E, e, o, 4, u);
10075
10208
  }
10076
10209
  }
10077
10210
  t.restore();
10078
10211
  }
10079
10212
  };
10080
10213
  }
10081
- function nc(e, t, n, r, i, a, o = 4, s) {
10214
+ function _c(e, t, n, r, i, a, o = 4, s) {
10082
10215
  let c = Math.min(a, 20), l = c * Math.sqrt(3) / 2, u, d;
10083
10216
  switch (r) {
10084
10217
  case $.RISE_WITH_VOLUME:
@@ -10142,12 +10275,12 @@ function nc(e, t, n, r, i, a, o = 4, s) {
10142
10275
  }
10143
10276
  //#endregion
10144
10277
  //#region src/core/utils/tickCount.ts
10145
- function rc(e, t) {
10278
+ function vc(e, t) {
10146
10279
  return t ? Math.max(4, Math.min(8, Math.round(e / 80))) : 2;
10147
10280
  }
10148
10281
  //#endregion
10149
10282
  //#region src/core/renderers/gridLines.ts
10150
- function ic() {
10283
+ function yc() {
10151
10284
  return {
10152
10285
  name: "gridLines",
10153
10286
  version: "1.0.0",
@@ -10158,11 +10291,11 @@ function ic() {
10158
10291
  draw(e) {
10159
10292
  let { ctx: t, pane: n, data: r, range: i, scrollLeft: a, kWidth: o, dpr: s, kLinePositions: c } = e, l = r;
10160
10293
  if (!l.length) return;
10161
- let u = rc(n.height, n.id === "main");
10294
+ let u = vc(n.height, n.id === "main");
10162
10295
  t.save(), t.fillStyle = Aa.HORIZONTAL, t.translate(-a, 0);
10163
10296
  let d = t.canvas.width / s, f = a, p = a + d, m = n.yAxis.getPaddingTop(), h = n.yAxis.getPaddingBottom(), g = m, _ = Math.max(m, n.height - h), v = Math.max(0, _ - g);
10164
10297
  for (let e = 0; e < u; e++) {
10165
- let n = u <= 1 ? 0 : e / (u - 1), r = is(f, p, Math.round(g + n * v), s);
10298
+ let n = u <= 1 ? 0 : e / (u - 1), r = ys(f, p, Math.round(g + n * v), s);
10166
10299
  r && t.fillRect(r.x, r.y, r.width, r.height);
10167
10300
  }
10168
10301
  let y = Ea(l);
@@ -10170,7 +10303,7 @@ function ic() {
10170
10303
  if (e < i.start || e >= i.end || e >= l.length) continue;
10171
10304
  let r = e - i.start;
10172
10305
  if (r < 0 || r >= c.length) continue;
10173
- let a = rs(c[r] + o / 2, 0, n.height, s);
10306
+ let a = vs(c[r] + o / 2, 0, n.height, s);
10174
10307
  a && t.fillRect(a.x, a.y, a.width, a.height);
10175
10308
  }
10176
10309
  t.restore();
@@ -10179,7 +10312,7 @@ function ic() {
10179
10312
  }
10180
10313
  //#endregion
10181
10314
  //#region src/core/renderers/lastPrice.ts
10182
- function ac() {
10315
+ function bc() {
10183
10316
  return {
10184
10317
  name: "lastPriceLine",
10185
10318
  version: "1.0.0",
@@ -10200,7 +10333,7 @@ function ac() {
10200
10333
  }
10201
10334
  //#endregion
10202
10335
  //#region src/core/renderers/extremaMarkers.ts
10203
- function oc() {
10336
+ function xc() {
10204
10337
  return {
10205
10338
  name: "extremaMarkers",
10206
10339
  version: "1.0.0",
@@ -10223,28 +10356,28 @@ function oc() {
10223
10356
  let t = e - i.start;
10224
10357
  return t < 0 || t >= l.length ? 0 : l[t] + o / 2;
10225
10358
  };
10226
- t.save(), t.translate(-a, 0), sc(t, _(h), n.yAxis.priceToY(p), p, s, c, a), sc(t, _(g), n.yAxis.priceToY(m), m, s, c, a), t.restore();
10359
+ t.save(), t.translate(-a, 0), Sc(t, _(h), n.yAxis.priceToY(p), p, s, c, a), Sc(t, _(g), n.yAxis.priceToY(m), m, s, c, a), t.restore();
10227
10360
  }
10228
10361
  };
10229
10362
  }
10230
- function sc(e, t, n, r, i, a, o) {
10363
+ function Sc(e, t, n, r, i, a, o) {
10231
10364
  let s = r.toFixed(2);
10232
10365
  e.font = "12px Arial";
10233
10366
  let c = e.measureText(s).width, l = t - o + 30 + 4 + c > a, u = t, d = l ? t - 30 : t + 30;
10234
10367
  u > d && ([u, d] = [d, u]);
10235
- let f = is(u, d, n, i);
10368
+ let f = ys(u, d, n, i);
10236
10369
  f && (e.fillStyle = Da.WEAK, e.fillRect(f.x, f.y, f.width, f.height));
10237
10370
  let p = Z(d, i), m = Z(n, i);
10238
10371
  e.fillStyle = Da.WEAK, e.beginPath(), e.arc(p, m, 2, 0, Math.PI * 2), e.fill(), e.font = "12px Arial", e.textBaseline = "middle", e.fillStyle = X.NEUTRAL, l ? (e.textAlign = "right", e.fillText(s, Z(t - 30 - 4, i), Z(n, i))) : (e.textAlign = "left", e.fillText(s, Z(t + 30 + 4, i), Z(n, i)));
10239
10372
  }
10240
10373
  //#endregion
10241
10374
  //#region src/utils/kLineDraw/axis.ts
10242
- function cc(e, t) {
10375
+ function Cc(e, t) {
10243
10376
  let { x: n, y: r, width: i, height: a, priceRange: o, yPaddingPx: s = 0, dpr: c, ticks: l = 10, bgColor: u = Oa.TRANSPARENT, textColor: d = Da.SECONDARY, lineColor: f = ka.DARK, fontSize: p = 16, paddingX: m = 12, drawLeftBorder: h = !0, drawTickLines: g = !0 } = t, _ = Math.max(0, Math.min(s, Math.floor(a / 2) - 1)), { maxPrice: v, minPrice: y } = o, b = v - y, x = b === 0 ? 0 : b / (Math.max(2, l) - 1);
10244
10377
  e.fillStyle = u, e.fillRect(n, r, i, a), h && (e.strokeStyle = f, e.lineWidth = 1, e.beginPath(), e.moveTo(Q(n, c), r), e.lineTo(Q(n, c), r + a), e.stroke()), e.font = `${p}px -apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif`, e.textBaseline = "middle", e.textAlign = "left";
10245
10378
  let S = n + m;
10246
10379
  for (let t = 0; t < Math.max(2, l); t++) {
10247
- let i = b === 0 ? v : v - x * t, o = Math.round(ns(i, v, y, a, _, _) + r);
10380
+ let i = b === 0 ? v : v - x * t, o = Math.round(_s(i, v, y, a, _, _) + r);
10248
10381
  if (g) {
10249
10382
  e.strokeStyle = f, e.beginPath();
10250
10383
  let t = Q(o, c);
@@ -10253,13 +10386,13 @@ function cc(e, t) {
10253
10386
  e.fillStyle = d, e.fillText(i.toFixed(2), Z(S, c), Z(o, c));
10254
10387
  }
10255
10388
  }
10256
- function lc(e, t) {
10389
+ function wc(e, t) {
10257
10390
  let { x: n, y: r, width: i, height: a, crosshairX: o, timestamp: s, dpr: c, bgColor: l = Oa.WHITE, textColor: u = Da.PRIMARY, fontSize: d = 16, paddingX: f = 8, paddingY: p = 4 } = t, m = Ta(s);
10258
10391
  e.save(), e.font = `${d}px -apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif`, e.textBaseline = "middle", e.textAlign = "center";
10259
10392
  let h = Math.round(e.measureText(m).width), g = Math.min(i, h + f * 2), _ = Math.min(a, d + p * 2), v = Math.min(Math.max(o, n + g / 2), n + i - g / 2), y = r + a / 2, b = v - g / 2;
10260
10393
  y - _ / 2, e.fillStyle = l, e.fillRect(Z(b, c), 0, Z(g, c), Z(_, c)), e.fillStyle = u, e.fillText(m, Z(v, c), Z(y, c)), e.restore();
10261
10394
  }
10262
- function uc(e, t) {
10395
+ function Tc(e, t) {
10263
10396
  let { x: n, y: r, width: i, height: a, data: o, scrollLeft: s, kWidth: c, kGap: l, startIndex: u, endIndex: d, dpr: f, bgColor: p = Oa.TRANSPARENT, textColor: m = Da.SECONDARY, lineColor: h = ka.DARK, fontSize: g = 16, paddingX: _ = 8, drawTopBorder: v = !0, drawBottomBorder: y = !0 } = t, b = Math.round(c * f), x = b % 2 == 0 ? b + 1 : b, S = Math.round(l * f), C = x + S, w = S, T = C / f, E = w / f, D = x / f;
10264
10397
  e.fillStyle = p, e.fillRect(n, r, i, a), v && (e.strokeStyle = h, e.lineWidth = 1, e.beginPath(), e.moveTo(n, Q(r, f)), e.lineTo(n + i, Q(r, f)), e.stroke()), y && (e.strokeStyle = h, e.lineWidth = 1, e.beginPath(), e.moveTo(n, Q(r + a, f)), e.lineTo(n + i, Q(r + a, f)), e.stroke()), e.textAlign = "center", e.textBaseline = "middle";
10265
10398
  let O = r + a / 2, k = Ea(o).filter((e) => e >= u && e < d);
@@ -10279,7 +10412,7 @@ function uc(e, t) {
10279
10412
  }
10280
10413
  //#endregion
10281
10414
  //#region src/core/renderers/yAxis.ts
10282
- function dc(e) {
10415
+ function Ec(e) {
10283
10416
  return {
10284
10417
  name: "yAxis",
10285
10418
  version: "1.0.0",
@@ -10288,8 +10421,8 @@ function dc(e) {
10288
10421
  paneId: oa,
10289
10422
  priority: Y.SYSTEM_YAXIS,
10290
10423
  draw(t) {
10291
- let { ctx: n, pane: r, dpr: i, yAxisCtx: a } = t, o = a || n, s = rc(r.height, r.id === "main");
10292
- cc(o, {
10424
+ let { ctx: n, pane: r, dpr: i, yAxisCtx: a } = t, o = a || n, s = vc(r.height, r.id === "main");
10425
+ Cc(o, {
10293
10426
  x: 0,
10294
10427
  y: r.top,
10295
10428
  width: e.axisWidth,
@@ -10306,19 +10439,19 @@ function dc(e) {
10306
10439
  }
10307
10440
  //#endregion
10308
10441
  //#region src/core/renderers/timeAxis.ts
10309
- var fc = Symbol("time-axis");
10310
- function pc(e) {
10442
+ var Dc = Symbol("time-axis");
10443
+ function Oc(e) {
10311
10444
  return {
10312
10445
  name: "timeAxis",
10313
10446
  version: "1.0.0",
10314
10447
  description: "时间轴渲染器",
10315
10448
  debugName: "时间轴",
10316
- paneId: fc,
10449
+ paneId: Dc,
10317
10450
  priority: Y.SYSTEM_XAXIS,
10318
10451
  isSystem: !0,
10319
10452
  draw(t) {
10320
10453
  let { ctx: n, data: r, range: i, scrollLeft: a, kWidth: o, kGap: s, dpr: c, paneWidth: l } = t, u = r, d = n, f = l, p = e.height;
10321
- d.setTransform(1, 0, 0, 1, 0, 0), d.scale(c, c), d.clearRect(0, 0, f, p), uc(d, {
10454
+ d.setTransform(1, 0, 0, 1, 0, 0), d.scale(c, c), d.clearRect(0, 0, f, p), Tc(d, {
10322
10455
  x: 0,
10323
10456
  y: 0,
10324
10457
  width: f,
@@ -10336,7 +10469,7 @@ function pc(e) {
10336
10469
  let m = e.getCrosshair?.();
10337
10470
  if (m && typeof m.index == "number") {
10338
10471
  let e = u[m.index];
10339
- e && lc(d, {
10472
+ e && wc(d, {
10340
10473
  x: 0,
10341
10474
  y: 0,
10342
10475
  width: f,
@@ -10351,7 +10484,7 @@ function pc(e) {
10351
10484
  }
10352
10485
  //#endregion
10353
10486
  //#region src/core/renderers/crosshair.ts
10354
- function mc(e) {
10487
+ function kc(e) {
10355
10488
  return {
10356
10489
  name: "crosshair",
10357
10490
  version: "1.0.0",
@@ -10364,9 +10497,9 @@ function mc(e) {
10364
10497
  if (o.isDragging || !o.pos) return;
10365
10498
  let { x: s, y: c } = o.pos, l = r.id === o.activePaneId, u = l ? c - r.top : -1;
10366
10499
  n.save(), n.beginPath(), n.rect(0, 0, a, r.height), n.clip(), n.fillStyle = Ba.LINE;
10367
- let d = rs(s, 0, r.height, i);
10500
+ let d = vs(s, 0, r.height, i);
10368
10501
  if (d && n.fillRect(d.x, d.y, d.width, d.height), l && u >= 0) {
10369
- let e = is(0, a, Math.min(u, r.height - 1 / i), i);
10502
+ let e = ys(0, a, Math.min(u, r.height - 1 / i), i);
10370
10503
  e && n.fillRect(e.x, e.y, e.width, e.height);
10371
10504
  }
10372
10505
  n.restore();
@@ -10375,14 +10508,14 @@ function mc(e) {
10375
10508
  }
10376
10509
  //#endregion
10377
10510
  //#region src/core/renderers/globalBorders.ts
10378
- var hc = Symbol("global-borders");
10379
- function gc(e) {
10511
+ var Ac = Symbol("global-borders");
10512
+ function jc(e) {
10380
10513
  return {
10381
10514
  name: "globalBorders",
10382
10515
  version: "1.0.0",
10383
10516
  description: "全局边框渲染器",
10384
10517
  debugName: "边框",
10385
- paneId: hc,
10518
+ paneId: Ac,
10386
10519
  priority: Y.SYSTEM_BORDER,
10387
10520
  isSystem: !0,
10388
10521
  draw(t) {
@@ -10409,7 +10542,7 @@ function gc(e) {
10409
10542
  }
10410
10543
  //#endregion
10411
10544
  //#region src/core/renderers/paneTitle.ts
10412
- function _c(e) {
10545
+ function Mc(e) {
10413
10546
  let t = { ...e };
10414
10547
  return {
10415
10548
  name: `paneTitle_${e.paneId}`,
@@ -10450,7 +10583,7 @@ function _c(e) {
10450
10583
  }
10451
10584
  //#endregion
10452
10585
  //#region src/components/KLineChart.vue?vue&type=script&setup=true&lang.ts
10453
- var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE__ */ u({
10586
+ var Nc = { class: "chart-wrapper" }, Pc = 4, Fc = /* @__PURE__ */ po(/* @__PURE__ */ u({
10454
10587
  __name: "KLineChart",
10455
10588
  props: {
10456
10589
  semanticConfig: {},
@@ -10479,16 +10612,16 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10479
10612
  let O = _(null), k = _(null), A = _({
10480
10613
  x: 0,
10481
10614
  y: 0
10482
- }), j = _(!1), M = _(null), N = _(null), P = _({
10615
+ }), j = _(!1), M = _(null), N = _(null), ee = _({
10483
10616
  x: 0,
10484
10617
  y: 0
10485
- }), ee = r(() => {
10618
+ }), te = r(() => {
10486
10619
  let e = M.value;
10487
10620
  if (typeof e != "number") return null;
10488
10621
  let t = C.value?.getData();
10489
10622
  return t && e >= 0 && e < t.length ? t[e] : null;
10490
- }), te = r(() => M.value), ne = r(() => P.value), re = r(() => C.value?.getData() ?? []);
10491
- function F() {
10623
+ }), P = r(() => M.value), F = r(() => ee.value), ne = r(() => C.value?.getData() ?? []);
10624
+ function I() {
10492
10625
  let e = C.value?.interaction;
10493
10626
  if (!e) {
10494
10627
  M.value = null, N.value = null, O.value = null, k.value = null;
@@ -10496,18 +10629,18 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10496
10629
  }
10497
10630
  M.value = e.hoveredIndex ?? null, N.value = e.crosshairIndex ?? null, O.value = e.hoveredMarkerData ?? null, k.value = e.hoveredCustomMarker ?? null;
10498
10631
  let t = e.tooltipPos;
10499
- t && (P.value = {
10632
+ t && (ee.value = {
10500
10633
  x: t.x,
10501
10634
  y: t.y
10502
10635
  });
10503
10636
  }
10637
+ function re(e) {
10638
+ j.value = !0, C.value?.interaction.onMouseDown(e), I();
10639
+ }
10504
10640
  function ie(e) {
10505
- j.value = !0, C.value?.interaction.onMouseDown(e), F();
10641
+ j.value = !0, C.value?.interaction.onPointerDown(e), I();
10506
10642
  }
10507
10643
  function ae(e) {
10508
- j.value = !0, C.value?.interaction.onPointerDown(e), F();
10509
- }
10510
- function oe(e) {
10511
10644
  let t = v.value;
10512
10645
  if (t) {
10513
10646
  let n = t.getBoundingClientRect();
@@ -10516,9 +10649,9 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10516
10649
  y: e.clientY - n.top
10517
10650
  };
10518
10651
  }
10519
- C.value?.interaction.onMouseMove(e), F();
10652
+ C.value?.interaction.onMouseMove(e), I();
10520
10653
  }
10521
- function se(e) {
10654
+ function oe(e) {
10522
10655
  let t = v.value;
10523
10656
  if (t) {
10524
10657
  let n = t.getBoundingClientRect();
@@ -10527,24 +10660,24 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10527
10660
  y: e.clientY - n.top
10528
10661
  };
10529
10662
  }
10530
- C.value?.interaction.onPointerMove(e), F();
10663
+ C.value?.interaction.onPointerMove(e), I();
10531
10664
  }
10532
- function I() {
10533
- j.value = !1, C.value?.interaction.onMouseUp(), F();
10665
+ function L() {
10666
+ j.value = !1, C.value?.interaction.onMouseUp(), I();
10534
10667
  }
10535
- function ce(e) {
10536
- j.value = !1, C.value?.interaction.onPointerUp(e), F();
10668
+ function se(e) {
10669
+ j.value = !1, C.value?.interaction.onPointerUp(e), I();
10537
10670
  }
10538
- function le() {
10671
+ function ce() {
10539
10672
  j.value = !1, C.value?.interaction.onMouseLeave(), M.value = null;
10540
10673
  }
10541
- function ue(e) {
10674
+ function le(e) {
10542
10675
  j.value = !1, C.value?.interaction.onPointerLeave(e), M.value = null;
10543
10676
  }
10544
- function de() {
10545
- C.value?.interaction.onScroll(), F();
10677
+ function ue() {
10678
+ C.value?.interaction.onScroll(), I();
10546
10679
  }
10547
- let L = _(["MA"]), fe = _({}), R = _([]), z = [
10680
+ let R = _(["MA"]), de = _({}), z = _([]), B = [
10548
10681
  "VOLUME",
10549
10682
  "MACD",
10550
10683
  "RSI",
@@ -10555,7 +10688,7 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10555
10688
  "KST",
10556
10689
  "FASTK"
10557
10690
  ];
10558
- S(r(() => R.value.length === 0 ? [{
10691
+ S(r(() => z.value.length === 0 ? [{
10559
10692
  id: "main",
10560
10693
  ratio: 1,
10561
10694
  visible: !0
@@ -10563,14 +10696,14 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10563
10696
  id: "main",
10564
10697
  ratio: 1,
10565
10698
  visible: !0
10566
- }, ...R.value.map((e) => ({
10699
+ }, ...z.value.map((e) => ({
10567
10700
  id: e.id,
10568
10701
  ratio: 1,
10569
10702
  visible: !0
10570
10703
  }))]), (e) => {
10571
10704
  C.value?.updatePaneLayout(e);
10572
10705
  }, { flush: "post" });
10573
- function pe(e) {
10706
+ function fe(e) {
10574
10707
  switch (e) {
10575
10708
  case "MACD": return {
10576
10709
  fastPeriod: 12,
@@ -10600,74 +10733,74 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10600
10733
  default: return {};
10601
10734
  }
10602
10735
  }
10603
- function me(e = "VOLUME", t) {
10604
- if (R.value.length >= yc) return !1;
10736
+ function pe(e = "VOLUME", t) {
10737
+ if (z.value.length >= Pc) return !1;
10605
10738
  let n = `sub_${e}`;
10606
- if (R.value.some((e) => e.id === n)) return !0;
10607
- if (!C.value?.createSubPane(e, t ?? pe(e))) return !1;
10608
- let r = _c({
10739
+ if (z.value.some((e) => e.id === n)) return !0;
10740
+ if (!C.value?.createSubPane(e, t ?? fe(e))) return !1;
10741
+ let r = Mc({
10609
10742
  paneId: n,
10610
10743
  title: e,
10611
- getTitleInfo: () => ye(n)
10744
+ getTitleInfo: () => ve(n)
10612
10745
  });
10613
- return C.value?.useRenderer(r), R.value.push({
10746
+ return C.value?.useRenderer(r), z.value.push({
10614
10747
  id: n,
10615
10748
  indicatorId: e,
10616
10749
  rendererName: `${e.toLowerCase()}_${n}`,
10617
10750
  paneTitleRendererName: r.name,
10618
- params: t ?? pe(e)
10619
- }), L.value.includes(e) || L.value.push(e), !0;
10751
+ params: t ?? fe(e)
10752
+ }), R.value.includes(e) || R.value.push(e), !0;
10620
10753
  }
10621
- function he(e) {
10622
- let t = R.value.findIndex((t) => t.id === e);
10754
+ function me(e) {
10755
+ let t = z.value.findIndex((t) => t.id === e);
10623
10756
  if (t === -1) return;
10624
- let n = R.value[t];
10625
- n && (C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(n.indicatorId), R.value.splice(t, 1), R.value.some((e) => e.indicatorId === n.indicatorId) || (L.value = L.value.filter((e) => e !== n.indicatorId)));
10757
+ let n = z.value[t];
10758
+ n && (C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(n.indicatorId), z.value.splice(t, 1), z.value.some((e) => e.indicatorId === n.indicatorId) || (R.value = R.value.filter((e) => e !== n.indicatorId)));
10626
10759
  }
10627
- function ge() {
10628
- for (let e of R.value) C.value?.removeRenderer(e.paneTitleRendererName);
10629
- C.value?.clearSubPanes(), R.value = [], L.value = L.value.filter((e) => !z.includes(e));
10760
+ function he() {
10761
+ for (let e of z.value) C.value?.removeRenderer(e.paneTitleRendererName);
10762
+ C.value?.clearSubPanes(), z.value = [], R.value = R.value.filter((e) => !B.includes(e));
10630
10763
  }
10631
- function _e() {
10764
+ function ge() {
10632
10765
  let e = C.value?.getSubPaneIndicators() ?? [];
10633
- R.value = [];
10766
+ z.value = [];
10634
10767
  for (let t of e) {
10635
- let e = `sub_${t}`, n = _c({
10768
+ let e = `sub_${t}`, n = Mc({
10636
10769
  paneId: e,
10637
10770
  title: t,
10638
- getTitleInfo: () => ye(e)
10771
+ getTitleInfo: () => ve(e)
10639
10772
  });
10640
- C.value?.useRenderer(n), R.value.push({
10773
+ C.value?.useRenderer(n), z.value.push({
10641
10774
  id: e,
10642
10775
  indicatorId: t,
10643
10776
  rendererName: `${t.toLowerCase()}_${e}`,
10644
10777
  paneTitleRendererName: n.name,
10645
- params: pe(t)
10646
- }), L.value.includes(t) || L.value.push(t);
10778
+ params: fe(t)
10779
+ }), R.value.includes(t) || R.value.push(t);
10647
10780
  }
10648
10781
  }
10649
- function ve(e, t) {
10650
- let n = R.value.find((t) => t.id === e);
10782
+ function _e(e, t) {
10783
+ let n = z.value.find((t) => t.id === e);
10651
10784
  if (!n) return;
10652
10785
  let r = n.indicatorId;
10653
- C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(r), C.value?.createSubPane(t, pe(t));
10654
- let i = `sub_${t}`, a = _c({
10786
+ C.value?.removeRenderer(n.paneTitleRendererName), C.value?.removeSubPane(r), C.value?.createSubPane(t, fe(t));
10787
+ let i = `sub_${t}`, a = Mc({
10655
10788
  paneId: i,
10656
10789
  title: t,
10657
- getTitleInfo: () => ye(i)
10790
+ getTitleInfo: () => ve(i)
10658
10791
  });
10659
10792
  C.value?.useRenderer(a);
10660
- let o = R.value.findIndex((t) => t.id === e);
10661
- o !== -1 && (R.value[o] = {
10793
+ let o = z.value.findIndex((t) => t.id === e);
10794
+ o !== -1 && (z.value[o] = {
10662
10795
  id: i,
10663
10796
  indicatorId: t,
10664
10797
  rendererName: `${t.toLowerCase()}_${i}`,
10665
10798
  paneTitleRendererName: a.name,
10666
- params: pe(t)
10667
- }), L.value = L.value.filter((e) => e !== r), L.value.includes(t) || L.value.push(t);
10799
+ params: fe(t)
10800
+ }), R.value = R.value.filter((e) => e !== r), R.value.includes(t) || R.value.push(t);
10668
10801
  }
10669
- function ye(e) {
10670
- let t = R.value.find((t) => t.id === e);
10802
+ function ve(e) {
10803
+ let t = z.value.find((t) => t.id === e);
10671
10804
  if (!t) return null;
10672
10805
  let n = C.value?.getData();
10673
10806
  if (!n || n.length === 0) return null;
@@ -10680,26 +10813,26 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10680
10813
  let i = N.value;
10681
10814
  if (i === null) return null;
10682
10815
  switch (t.indicatorId) {
10683
- case "MACD": return ys(n, i, r.fastPeriod ?? 12, r.slowPeriod ?? 26, r.signalPeriod ?? 9);
10684
- case "RSI": return Ss(n, i, r.period1 ?? 6, r.period2 ?? 12, r.period3 ?? 24);
10685
- case "CCI": return Es(n, i, r.period ?? 14);
10686
- case "STOCH": return As(n, i, r.n ?? 9, r.m ?? 3);
10687
- case "MOM": return Ps(n, i, r.period ?? 10);
10688
- case "WMSR": return Rs(n, i, r.period ?? 14);
10689
- case "KST": return Ws(n, i, r.roc1 ?? 10, r.roc2 ?? 15, r.roc3 ?? 20, r.roc4 ?? 30, r.signalPeriod ?? 9);
10690
- case "FASTK": return Js(n, i, r.period ?? 9);
10816
+ case "MACD": return Ps(n, i, r.fastPeriod ?? 12, r.slowPeriod ?? 26, r.signalPeriod ?? 9);
10817
+ case "RSI": return Ls(n, i, r.period1 ?? 6, r.period2 ?? 12, r.period3 ?? 24);
10818
+ case "CCI": return Vs(n, i, r.period ?? 14);
10819
+ case "STOCH": return Gs(n, i, r.n ?? 9, r.m ?? 3);
10820
+ case "MOM": return Ys(n, i, r.period ?? 10);
10821
+ case "WMSR": return $s(n, i, r.period ?? 14);
10822
+ case "KST": return ac(n, i, r.roc1 ?? 10, r.roc2 ?? 15, r.roc3 ?? 20, r.roc4 ?? 30, r.signalPeriod ?? 9);
10823
+ case "FASTK": return lc(n, i, r.period ?? 9);
10691
10824
  default: return null;
10692
10825
  }
10693
10826
  }
10694
- function be(e, t) {
10827
+ function ye(e, t) {
10695
10828
  if (e === "MA") {
10696
- t ? (L.value.includes(e) || L.value.push(e), C.value?.updateRendererConfig("ma", {
10829
+ t ? (R.value.includes(e) || R.value.push(e), C.value?.updateRendererConfig("ma", {
10697
10830
  ma5: !0,
10698
10831
  ma10: !0,
10699
10832
  ma20: !0,
10700
10833
  ma30: !0,
10701
10834
  ma60: !0
10702
- }), C.value?.setRendererEnabled("maLegend", !0)) : (L.value = L.value.filter((t) => t !== e), C.value?.updateRendererConfig("ma", {
10835
+ }), C.value?.setRendererEnabled("maLegend", !0)) : (R.value = R.value.filter((t) => t !== e), C.value?.updateRendererConfig("ma", {
10703
10836
  ma5: !1,
10704
10837
  ma10: !1,
10705
10838
  ma20: !1,
@@ -10709,44 +10842,44 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10709
10842
  return;
10710
10843
  }
10711
10844
  if (e === "BOLL") {
10712
- t ? L.value.includes(e) || L.value.push(e) : L.value = L.value.filter((t) => t !== e), C.value?.setRendererEnabled("boll", t), C.value?.setRendererEnabled("bollLegend", t), E();
10845
+ t ? R.value.includes(e) || R.value.push(e) : R.value = R.value.filter((t) => t !== e), C.value?.setRendererEnabled("boll", t), C.value?.setRendererEnabled("bollLegend", t), E();
10713
10846
  return;
10714
10847
  }
10715
- if (z.includes(e)) {
10848
+ if (B.includes(e)) {
10716
10849
  if (t) {
10717
- if (R.value.find((t) => t.indicatorId === e)) return;
10718
- if (!me(e)) {
10719
- let t = R.value[R.value.length - 1];
10720
- t && ve(t.id, e);
10850
+ if (z.value.find((t) => t.indicatorId === e)) return;
10851
+ if (!pe(e)) {
10852
+ let t = z.value[z.value.length - 1];
10853
+ t && _e(t.id, e);
10721
10854
  }
10722
- } else R.value.filter((t) => t.indicatorId === e).forEach((e) => he(e.id));
10855
+ } else z.value.filter((t) => t.indicatorId === e).forEach((e) => me(e.id));
10723
10856
  E();
10724
10857
  }
10725
10858
  }
10726
- function xe(e, t) {
10727
- if (fe.value[e] = t, e === "BOLL") {
10859
+ function be(e, t) {
10860
+ if (de.value[e] = t, e === "BOLL") {
10728
10861
  C.value?.updateRendererConfig("boll", t), C.value?.updateRendererConfig("bollLegend", t), E();
10729
10862
  return;
10730
10863
  }
10731
- z.includes(e) && R.value.filter((t) => t.indicatorId === e).forEach((e) => {
10864
+ B.includes(e) && z.value.filter((t) => t.indicatorId === e).forEach((e) => {
10732
10865
  e.params = { ...t }, C.value?.updateRendererConfig(e.rendererName, t);
10733
10866
  }), E();
10734
10867
  }
10735
- let Se = r(() => {
10736
- let e = T.value, t = window.devicePixelRatio || 1, { startXPx: r, unitPx: i } = Go(b.value, x.value, t);
10868
+ let xe = r(() => {
10869
+ let e = T.value, t = window.devicePixelRatio || 1, { startXPx: r, unitPx: i } = os(b.value, x.value, t);
10737
10870
  return (r + e * i) / t + (n.rightAxisWidth + n.priceLabelWidth);
10738
10871
  });
10739
- function Ce() {
10872
+ function Se() {
10740
10873
  let e = v.value;
10741
10874
  e && (e.scrollLeft = e.scrollWidth, E());
10742
10875
  }
10743
10876
  return t({
10744
10877
  scheduleRender: E,
10745
- scrollToRight: Ce,
10746
- addSubPane: me,
10747
- removeSubPane: he,
10748
- switchSubIndicator: ve,
10749
- clearAllSubPanes: ge,
10878
+ scrollToRight: Se,
10879
+ addSubPane: pe,
10880
+ removeSubPane: me,
10881
+ switchSubIndicator: _e,
10882
+ clearAllSubPanes: he,
10750
10883
  get plugin() {
10751
10884
  return C.value?.plugin;
10752
10885
  }
@@ -10754,9 +10887,9 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10754
10887
  let e = v.value, t = u.value, r = c.value;
10755
10888
  if (!e || !t || !r) return;
10756
10889
  e.addEventListener("wheel", (e) => {
10757
- C.value?.interaction.onWheel(e), F();
10890
+ C.value?.interaction.onWheel(e), I();
10758
10891
  }, { passive: !1 });
10759
- let i = new Xs({
10892
+ let i = new dc({
10760
10893
  container: e,
10761
10894
  canvasLayer: t,
10762
10895
  xAxisCanvas: r
@@ -10781,16 +10914,16 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10781
10914
  if (!r) return;
10782
10915
  let a = Math.max(0, r.scrollWidth - r.clientWidth);
10783
10916
  r.scrollLeft = Math.min(Math.max(0, n), a), i.applyZoom(e, t);
10784
- }), i.useRenderer(ic()), i.useRenderer(oc()), i.useRenderer(ss({
10917
+ }), i.useRenderer(yc()), i.useRenderer(xc()), i.useRenderer(Ss({
10785
10918
  ma5: !0,
10786
10919
  ma10: !0,
10787
10920
  ma20: !0,
10788
10921
  ma30: !0,
10789
10922
  ma60: !0
10790
- })), i.useRenderer(ds()), i.setRendererEnabled("boll", !1), i.useRenderer(tc()), i.useRenderer(ac()), i.useRenderer(va()), i.useRenderer(dc({
10923
+ })), i.useRenderer(Es()), i.setRendererEnabled("boll", !1), i.useRenderer(gc()), i.useRenderer(bc()), i.useRenderer(va()), i.useRenderer(Ec({
10791
10924
  axisWidth: n.rightAxisWidth,
10792
10925
  yPaddingPx: n.yPaddingPx
10793
- })), i.useRenderer(ls({
10926
+ })), i.useRenderer(ws({
10794
10927
  yPaddingPx: n.yPaddingPx,
10795
10928
  showMA: {
10796
10929
  ma5: !0,
@@ -10799,11 +10932,11 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10799
10932
  ma30: !0,
10800
10933
  ma60: !0
10801
10934
  }
10802
- })), i.useRenderer(ps({ yPaddingPx: n.yPaddingPx })), i.setRendererEnabled("bollLegend", !1), i.useRenderer(mc({ getCrosshairState: () => ({
10935
+ })), i.useRenderer(Os({ yPaddingPx: n.yPaddingPx })), i.setRendererEnabled("bollLegend", !1), i.useRenderer(kc({ getCrosshairState: () => ({
10803
10936
  pos: i.interaction.crosshairPos,
10804
10937
  activePaneId: i.interaction.activePaneId,
10805
10938
  isDragging: i.interaction.isDraggingState()
10806
- }) })), i.useRenderer(pc({
10939
+ }) })), i.useRenderer(Oc({
10807
10940
  height: n.bottomAxisHeight,
10808
10941
  getCrosshair: () => {
10809
10942
  let e = i.interaction.crosshairPos, t = i.interaction.hoveredIndex;
@@ -10812,13 +10945,13 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10812
10945
  index: t
10813
10946
  } : null;
10814
10947
  }
10815
- })), i.useRenderer(gc({ getPaneInfos: () => i.getPaneRenderers().map((e) => ({
10948
+ })), i.useRenderer(jc({ getPaneInfos: () => i.getPaneRenderers().map((e) => ({
10816
10949
  top: e.getPane().top,
10817
10950
  height: e.getPane().height
10818
10951
  })) })), C.value = i, i.resize(), w.value = new Ui(i), w.value.on("config:error", (e) => {
10819
10952
  console.error("Semantic config error:", e);
10820
10953
  }), w.value.on("config:ready", () => {
10821
- T.value = i.getData()?.length ?? 0, _e(), d(() => Ce());
10954
+ T.value = i.getData()?.length ?? 0, ge(), d(() => Se());
10822
10955
  }), w.value.applyConfig(n.semanticConfig).then((e) => {
10823
10956
  e && !e.success && console.error("Semantic config apply failed:", e.errors);
10824
10957
  }), i.interaction.setOnMarkerHover((e) => {
@@ -10853,22 +10986,22 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10853
10986
  let t = await w.value?.applyConfig(e);
10854
10987
  t && !t.success && console.error("Semantic config apply failed:", t.errors);
10855
10988
  }
10856
- }, { deep: !0 }), (e, t) => (g(), o("div", vc, [s("div", {
10989
+ }, { deep: !0 }), (e, t) => (g(), o("div", Nc, [s("div", {
10857
10990
  class: f(["chart-container", { "is-dragging": j.value }]),
10858
10991
  ref_key: "containerRef",
10859
10992
  ref: v,
10860
- onScrollPassive: de,
10861
- onMousedown: ie,
10862
- onMousemove: oe,
10863
- onMouseup: I,
10864
- onMouseleave: le,
10865
- onPointerdown: ae,
10866
- onPointermove: se,
10867
- onPointerup: ce,
10868
- onPointerleave: ue
10993
+ onScrollPassive: ue,
10994
+ onMousedown: re,
10995
+ onMousemove: ae,
10996
+ onMouseup: L,
10997
+ onMouseleave: ce,
10998
+ onPointerdown: ie,
10999
+ onPointermove: oe,
11000
+ onPointerup: se,
11001
+ onPointerleave: le
10869
11002
  }, [s("div", {
10870
11003
  class: "scroll-content",
10871
- style: p({ width: Se.value + "px" })
11004
+ style: p({ width: xe.value + "px" })
10872
11005
  }, [s("div", {
10873
11006
  class: "canvas-layer",
10874
11007
  ref_key: "canvasLayerRef",
@@ -10879,12 +11012,12 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10879
11012
  ref_key: "xAxisCanvasRef",
10880
11013
  ref: c
10881
11014
  }, null, 512),
10882
- ee.value ? (g(), i(mo, {
11015
+ te.value ? (g(), i(mo, {
10883
11016
  key: 0,
10884
- k: ee.value,
10885
- index: te.value,
10886
- data: re.value,
10887
- pos: ne.value,
11017
+ k: te.value,
11018
+ index: P.value,
11019
+ data: ne.value,
11020
+ pos: F.value,
10888
11021
  "set-el": D
10889
11022
  }, null, 8, [
10890
11023
  "k",
@@ -10897,15 +11030,15 @@ var vc = { class: "chart-wrapper" }, yc = 4, bc = /* @__PURE__ */ po(/* @__PURE_
10897
11030
  marker: O.value || k.value,
10898
11031
  pos: A.value
10899
11032
  }, null, 8, ["marker", "pos"])) : a("", !0)
10900
- ], 512)], 4)], 34), l(Uo, {
10901
- "active-indicators": L.value,
10902
- "indicator-params": fe.value,
10903
- onToggle: be,
10904
- onUpdateParams: xe
11033
+ ], 512)], 4)], 34), l(is, {
11034
+ "active-indicators": R.value,
11035
+ "indicator-params": de.value,
11036
+ onToggle: ye,
11037
+ onUpdateParams: be
10905
11038
  }, null, 8, ["active-indicators", "indicator-params"])]));
10906
11039
  }
10907
- }), [["__scopeId", "data-v-8c9105eb"]]), xc = { install(e) {
10908
- e.component("KLineChart", bc);
11040
+ }), [["__scopeId", "data-v-8c9105eb"]]), Ic = { install(e) {
11041
+ e.component("KLineChart", Fc);
10909
11042
  } };
10910
11043
  //#endregion
10911
- export { la as ConfigManager, ne as EventBus, oa as GLOBAL_PANE_ID, ca as HookSystem, bc as KLineChart, xc as KMapPlugin, ua as PluginHostImpl, sa as PluginRegistry, ia as PluginState, Y as RENDERER_PRIORITY, pa as RendererPluginManager, da as createPluginHost, aa as wrapPaneInfo };
11044
+ export { la as ConfigManager, F as EventBus, oa as GLOBAL_PANE_ID, ca as HookSystem, Fc as KLineChart, Ic as KMapPlugin, ua as PluginHostImpl, sa as PluginRegistry, ia as PluginState, Y as RENDERER_PRIORITY, pa as RendererPluginManager, da as createPluginHost, aa as wrapPaneInfo };