@opengis/bi 1.2.7 → 1.2.8
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/bi.js +1 -1
- package/dist/bi.umd.cjs +37 -37
- package/dist/{import-file-DnbEvuUN.js → import-file-DipxjDBj.js} +881 -944
- package/dist/{vs-funnel-bar-BzIfzGso.js → vs-funnel-bar-kdOIxDGu.js} +1 -1
- package/dist/{vs-list-_I6Z56hC.js → vs-list-CewwCgIP.js} +1 -1
- package/dist/{vs-map-BsmBbjRv.js → vs-map-CI-BMR1q.js} +2 -2
- package/dist/{vs-map-cluster-DT3jfiks.js → vs-map-cluster-D5tdKsjo.js} +2 -2
- package/dist/{vs-number-D28OvROP.js → vs-number-DcvbeDYU.js} +1 -1
- package/dist/{vs-table-YpK1qNz6.js → vs-table-BqymMGlx.js} +1 -1
- package/dist/{vs-text-BU0n2bXl.js → vs-text-CTZUEX9-.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
function
|
|
1
|
+
import { createElementBlock as x, openBlock as m, createElementVNode as b, Fragment as T, renderList as F, normalizeStyle as $e, normalizeClass as J, createCommentVNode as $, toDisplayString as C, ref as be, computed as Be, onUnmounted as $t, createTextVNode as Te, defineAsyncComponent as N, defineComponent as Tt, mergeModels as Ue, useModel as Nt, withDirectives as At, vModelCheckbox as Ft, resolveComponent as j, createBlock as V, createVNode as ue, resolveDynamicComponent as Lt, createStaticVNode as st, withCtx as nt, h as ke, unref as Pt } from "vue";
|
|
2
|
+
function I(e, t) {
|
|
3
3
|
return e != null && e.value ? isNaN(e == null ? void 0 : e.value) ? e == null ? void 0 : e.value : new Intl.NumberFormat("en", t || {
|
|
4
4
|
notation: "compact"
|
|
5
5
|
}).format(e == null ? void 0 : e.value) : isNaN(e) ? e : new Intl.NumberFormat("en", t || {
|
|
@@ -12,7 +12,7 @@ function Ne(e) {
|
|
|
12
12
|
const [t, r, s] = e.split("T")[0].split("-");
|
|
13
13
|
return `${s}.${r}.${t}`;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ei(e) {
|
|
16
16
|
return Intl.NumberFormat("en").format(e);
|
|
17
17
|
}
|
|
18
18
|
function ot(e, t) {
|
|
@@ -20,29 +20,29 @@ function ot(e, t) {
|
|
|
20
20
|
return e.apply(t, arguments);
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
const { toString:
|
|
24
|
-
const r =
|
|
23
|
+
const { toString: Bt } = Object.prototype, { getPrototypeOf: Ae } = Object, de = /* @__PURE__ */ ((e) => (t) => {
|
|
24
|
+
const r = Bt.call(t);
|
|
25
25
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
26
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
27
|
-
function
|
|
28
|
-
return e !== null && !Y(e) && e.constructor !== null && !Y(e.constructor) &&
|
|
26
|
+
})(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => de(t) === e), fe = (e) => (t) => typeof t === e, { isArray: G } = Array, Y = fe("undefined");
|
|
27
|
+
function Ut(e) {
|
|
28
|
+
return e !== null && !Y(e) && e.constructor !== null && !Y(e.constructor) && L(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
29
29
|
}
|
|
30
|
-
const it =
|
|
30
|
+
const it = B("ArrayBuffer");
|
|
31
31
|
function jt(e) {
|
|
32
32
|
let t;
|
|
33
33
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && it(e.buffer), t;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
35
|
+
const It = fe("string"), L = fe("function"), at = fe("number"), he = (e) => e !== null && typeof e == "object", Vt = (e) => e === !0 || e === !1, ne = (e) => {
|
|
36
|
+
if (de(e) !== "object")
|
|
37
37
|
return !1;
|
|
38
38
|
const t = Ae(e);
|
|
39
39
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
40
|
-
},
|
|
40
|
+
}, zt = B("Date"), Mt = B("File"), qt = B("Blob"), Ht = B("FileList"), Wt = (e) => he(e) && L(e.pipe), Jt = (e) => {
|
|
41
41
|
let t;
|
|
42
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
43
|
-
t === "object" &&
|
|
44
|
-
},
|
|
45
|
-
function
|
|
42
|
+
return e && (typeof FormData == "function" && e instanceof FormData || L(e.append) && ((t = de(e)) === "formdata" || // detect form-data instance
|
|
43
|
+
t === "object" && L(e.toString) && e.toString() === "[object FormData]"));
|
|
44
|
+
}, Kt = B("URLSearchParams"), [Gt, Xt, Zt, Qt] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Yt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
45
|
+
function te(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
46
46
|
if (e === null || typeof e > "u")
|
|
47
47
|
return;
|
|
48
48
|
let s, n;
|
|
@@ -66,22 +66,22 @@ function lt(e, t) {
|
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
68
68
|
const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ct = (e) => !Y(e) && e !== H;
|
|
69
|
-
function
|
|
69
|
+
function ve() {
|
|
70
70
|
const { caseless: e } = ct(this) && this || {}, t = {}, r = (s, n) => {
|
|
71
71
|
const o = e && lt(t, n) || n;
|
|
72
|
-
|
|
72
|
+
ne(t[o]) && ne(s) ? t[o] = ve(t[o], s) : ne(s) ? t[o] = ve({}, s) : G(s) ? t[o] = s.slice() : t[o] = s;
|
|
73
73
|
};
|
|
74
74
|
for (let s = 0, n = arguments.length; s < n; s++)
|
|
75
|
-
arguments[s] &&
|
|
75
|
+
arguments[s] && te(arguments[s], r);
|
|
76
76
|
return t;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
79
|
-
r &&
|
|
80
|
-
}, { allOwnKeys: s }), e),
|
|
78
|
+
const er = (e, t, r, { allOwnKeys: s } = {}) => (te(t, (n, o) => {
|
|
79
|
+
r && L(n) ? e[o] = ot(n, r) : e[o] = n;
|
|
80
|
+
}, { allOwnKeys: s }), e), tr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), rr = (e, t, r, s) => {
|
|
81
81
|
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
82
82
|
value: t.prototype
|
|
83
83
|
}), r && Object.assign(e.prototype, r);
|
|
84
|
-
},
|
|
84
|
+
}, sr = (e, t, r, s) => {
|
|
85
85
|
let n, o, i;
|
|
86
86
|
const a = {};
|
|
87
87
|
if (t = t || {}, e == null) return t;
|
|
@@ -91,11 +91,11 @@ const tr = (e, t, r, { allOwnKeys: s } = {}) => (re(t, (n, o) => {
|
|
|
91
91
|
e = r !== !1 && Ae(e);
|
|
92
92
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
93
93
|
return t;
|
|
94
|
-
},
|
|
94
|
+
}, nr = (e, t, r) => {
|
|
95
95
|
e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
|
|
96
96
|
const s = e.indexOf(t, r);
|
|
97
97
|
return s !== -1 && s === r;
|
|
98
|
-
},
|
|
98
|
+
}, or = (e) => {
|
|
99
99
|
if (!e) return null;
|
|
100
100
|
if (G(e)) return e;
|
|
101
101
|
let t = e.length;
|
|
@@ -104,36 +104,36 @@ const tr = (e, t, r, { allOwnKeys: s } = {}) => (re(t, (n, o) => {
|
|
|
104
104
|
for (; t-- > 0; )
|
|
105
105
|
r[t] = e[t];
|
|
106
106
|
return r;
|
|
107
|
-
},
|
|
107
|
+
}, ir = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ae(Uint8Array)), ar = (e, t) => {
|
|
108
108
|
const s = (e && e[Symbol.iterator]).call(e);
|
|
109
109
|
let n;
|
|
110
110
|
for (; (n = s.next()) && !n.done; ) {
|
|
111
111
|
const o = n.value;
|
|
112
112
|
t.call(e, o[0], o[1]);
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, lr = (e, t) => {
|
|
115
115
|
let r;
|
|
116
116
|
const s = [];
|
|
117
117
|
for (; (r = e.exec(t)) !== null; )
|
|
118
118
|
s.push(r);
|
|
119
119
|
return s;
|
|
120
|
-
},
|
|
120
|
+
}, cr = B("HTMLFormElement"), ur = (e) => e.toLowerCase().replace(
|
|
121
121
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
122
122
|
function(r, s, n) {
|
|
123
123
|
return s.toUpperCase() + n;
|
|
124
124
|
}
|
|
125
|
-
),
|
|
125
|
+
), je = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), dr = B("RegExp"), ut = (e, t) => {
|
|
126
126
|
const r = Object.getOwnPropertyDescriptors(e), s = {};
|
|
127
|
-
|
|
127
|
+
te(r, (n, o) => {
|
|
128
128
|
let i;
|
|
129
129
|
(i = t(n, o, e)) !== !1 && (s[o] = i || n);
|
|
130
130
|
}), Object.defineProperties(e, s);
|
|
131
131
|
}, fr = (e) => {
|
|
132
132
|
ut(e, (t, r) => {
|
|
133
|
-
if (
|
|
133
|
+
if (L(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
134
134
|
return !1;
|
|
135
135
|
const s = e[r];
|
|
136
|
-
if (
|
|
136
|
+
if (L(s)) {
|
|
137
137
|
if (t.enumerable = !1, "writable" in t) {
|
|
138
138
|
t.writable = !1;
|
|
139
139
|
return;
|
|
@@ -143,111 +143,111 @@ const tr = (e, t, r, { allOwnKeys: s } = {}) => (re(t, (n, o) => {
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
-
},
|
|
146
|
+
}, hr = (e, t) => {
|
|
147
147
|
const r = {}, s = (n) => {
|
|
148
148
|
n.forEach((o) => {
|
|
149
149
|
r[o] = !0;
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
152
|
return G(e) ? s(e) : s(String(e).split(t)), r;
|
|
153
|
-
},
|
|
154
|
-
},
|
|
155
|
-
DIGIT:
|
|
156
|
-
ALPHA:
|
|
157
|
-
ALPHA_DIGIT:
|
|
158
|
-
},
|
|
153
|
+
}, pr = () => {
|
|
154
|
+
}, mr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, we = "abcdefghijklmnopqrstuvwxyz", Ie = "0123456789", dt = {
|
|
155
|
+
DIGIT: Ie,
|
|
156
|
+
ALPHA: we,
|
|
157
|
+
ALPHA_DIGIT: we + we.toUpperCase() + Ie
|
|
158
|
+
}, gr = (e = 16, t = dt.ALPHA_DIGIT) => {
|
|
159
159
|
let r = "";
|
|
160
160
|
const { length: s } = t;
|
|
161
161
|
for (; e--; )
|
|
162
162
|
r += t[Math.random() * s | 0];
|
|
163
163
|
return r;
|
|
164
164
|
};
|
|
165
|
-
function
|
|
166
|
-
return !!(e &&
|
|
165
|
+
function br(e) {
|
|
166
|
+
return !!(e && L(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
167
167
|
}
|
|
168
|
-
const
|
|
168
|
+
const wr = (e) => {
|
|
169
169
|
const t = new Array(10), r = (s, n) => {
|
|
170
|
-
if (
|
|
170
|
+
if (he(s)) {
|
|
171
171
|
if (t.indexOf(s) >= 0)
|
|
172
172
|
return;
|
|
173
173
|
if (!("toJSON" in s)) {
|
|
174
174
|
t[n] = s;
|
|
175
175
|
const o = G(s) ? [] : {};
|
|
176
|
-
return
|
|
177
|
-
const
|
|
178
|
-
!Y(
|
|
176
|
+
return te(s, (i, a) => {
|
|
177
|
+
const d = r(i, n + 1);
|
|
178
|
+
!Y(d) && (o[a] = d);
|
|
179
179
|
}), t[n] = void 0, o;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
return s;
|
|
183
183
|
};
|
|
184
184
|
return r(e, 0);
|
|
185
|
-
},
|
|
185
|
+
}, yr = B("AsyncFunction"), xr = (e) => e && (he(e) || L(e)) && L(e.then) && L(e.catch), ft = ((e, t) => e ? setImmediate : t ? ((r, s) => (H.addEventListener("message", ({ source: n, data: o }) => {
|
|
186
186
|
n === H && o === r && s.length && s.shift()();
|
|
187
187
|
}, !1), (n) => {
|
|
188
188
|
s.push(n), H.postMessage(r, "*");
|
|
189
189
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
190
190
|
typeof setImmediate == "function",
|
|
191
|
-
|
|
192
|
-
),
|
|
191
|
+
L(H.postMessage)
|
|
192
|
+
), _r = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || ft, l = {
|
|
193
193
|
isArray: G,
|
|
194
194
|
isArrayBuffer: it,
|
|
195
|
-
isBuffer:
|
|
196
|
-
isFormData:
|
|
195
|
+
isBuffer: Ut,
|
|
196
|
+
isFormData: Jt,
|
|
197
197
|
isArrayBufferView: jt,
|
|
198
|
-
isString:
|
|
198
|
+
isString: It,
|
|
199
199
|
isNumber: at,
|
|
200
|
-
isBoolean:
|
|
201
|
-
isObject:
|
|
202
|
-
isPlainObject:
|
|
203
|
-
isReadableStream:
|
|
204
|
-
isRequest:
|
|
205
|
-
isResponse:
|
|
206
|
-
isHeaders:
|
|
200
|
+
isBoolean: Vt,
|
|
201
|
+
isObject: he,
|
|
202
|
+
isPlainObject: ne,
|
|
203
|
+
isReadableStream: Gt,
|
|
204
|
+
isRequest: Xt,
|
|
205
|
+
isResponse: Zt,
|
|
206
|
+
isHeaders: Qt,
|
|
207
207
|
isUndefined: Y,
|
|
208
|
-
isDate:
|
|
209
|
-
isFile:
|
|
210
|
-
isBlob:
|
|
211
|
-
isRegExp:
|
|
212
|
-
isFunction:
|
|
213
|
-
isStream:
|
|
214
|
-
isURLSearchParams:
|
|
215
|
-
isTypedArray:
|
|
216
|
-
isFileList:
|
|
217
|
-
forEach:
|
|
218
|
-
merge:
|
|
219
|
-
extend:
|
|
220
|
-
trim:
|
|
221
|
-
stripBOM:
|
|
222
|
-
inherits:
|
|
223
|
-
toFlatObject:
|
|
224
|
-
kindOf:
|
|
225
|
-
kindOfTest:
|
|
226
|
-
endsWith:
|
|
227
|
-
toArray:
|
|
228
|
-
forEachEntry:
|
|
229
|
-
matchAll:
|
|
230
|
-
isHTMLForm:
|
|
231
|
-
hasOwnProperty:
|
|
232
|
-
hasOwnProp:
|
|
208
|
+
isDate: zt,
|
|
209
|
+
isFile: Mt,
|
|
210
|
+
isBlob: qt,
|
|
211
|
+
isRegExp: dr,
|
|
212
|
+
isFunction: L,
|
|
213
|
+
isStream: Wt,
|
|
214
|
+
isURLSearchParams: Kt,
|
|
215
|
+
isTypedArray: ir,
|
|
216
|
+
isFileList: Ht,
|
|
217
|
+
forEach: te,
|
|
218
|
+
merge: ve,
|
|
219
|
+
extend: er,
|
|
220
|
+
trim: Yt,
|
|
221
|
+
stripBOM: tr,
|
|
222
|
+
inherits: rr,
|
|
223
|
+
toFlatObject: sr,
|
|
224
|
+
kindOf: de,
|
|
225
|
+
kindOfTest: B,
|
|
226
|
+
endsWith: nr,
|
|
227
|
+
toArray: or,
|
|
228
|
+
forEachEntry: ar,
|
|
229
|
+
matchAll: lr,
|
|
230
|
+
isHTMLForm: cr,
|
|
231
|
+
hasOwnProperty: je,
|
|
232
|
+
hasOwnProp: je,
|
|
233
233
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
234
234
|
reduceDescriptors: ut,
|
|
235
235
|
freezeMethods: fr,
|
|
236
|
-
toObjectSet:
|
|
237
|
-
toCamelCase:
|
|
238
|
-
noop:
|
|
239
|
-
toFiniteNumber:
|
|
236
|
+
toObjectSet: hr,
|
|
237
|
+
toCamelCase: ur,
|
|
238
|
+
noop: pr,
|
|
239
|
+
toFiniteNumber: mr,
|
|
240
240
|
findKey: lt,
|
|
241
241
|
global: H,
|
|
242
242
|
isContextDefined: ct,
|
|
243
243
|
ALPHABET: dt,
|
|
244
|
-
generateString:
|
|
245
|
-
isSpecCompliantForm:
|
|
246
|
-
toJSONObject:
|
|
247
|
-
isAsyncFn:
|
|
248
|
-
isThenable:
|
|
249
|
-
setImmediate:
|
|
250
|
-
asap:
|
|
244
|
+
generateString: gr,
|
|
245
|
+
isSpecCompliantForm: br,
|
|
246
|
+
toJSONObject: wr,
|
|
247
|
+
isAsyncFn: yr,
|
|
248
|
+
isThenable: xr,
|
|
249
|
+
setImmediate: ft,
|
|
250
|
+
asap: _r
|
|
251
251
|
};
|
|
252
252
|
function D(e, t, r, s, n) {
|
|
253
253
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), s && (this.request = s), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
@@ -273,7 +273,7 @@ l.inherits(D, Error, {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
const
|
|
276
|
+
const ht = D.prototype, pt = {};
|
|
277
277
|
[
|
|
278
278
|
"ERR_BAD_OPTION_VALUE",
|
|
279
279
|
"ERR_BAD_OPTION",
|
|
@@ -292,15 +292,15 @@ const ft = D.prototype, pt = {};
|
|
|
292
292
|
pt[e] = { value: e };
|
|
293
293
|
});
|
|
294
294
|
Object.defineProperties(D, pt);
|
|
295
|
-
Object.defineProperty(
|
|
295
|
+
Object.defineProperty(ht, "isAxiosError", { value: !0 });
|
|
296
296
|
D.from = (e, t, r, s, n, o) => {
|
|
297
|
-
const i = Object.create(
|
|
298
|
-
return l.toFlatObject(e, i, function(
|
|
299
|
-
return
|
|
297
|
+
const i = Object.create(ht);
|
|
298
|
+
return l.toFlatObject(e, i, function(d) {
|
|
299
|
+
return d !== Error.prototype;
|
|
300
300
|
}, (a) => a !== "isAxiosError"), D.call(i, e.message, t, r, s, n), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
301
301
|
};
|
|
302
|
-
const
|
|
303
|
-
function
|
|
302
|
+
const Dr = null;
|
|
303
|
+
function Se(e) {
|
|
304
304
|
return l.isPlainObject(e) || l.isArray(e);
|
|
305
305
|
}
|
|
306
306
|
function mt(e) {
|
|
@@ -311,72 +311,72 @@ function Ve(e, t, r) {
|
|
|
311
311
|
return n = mt(n), !r && o ? "[" + n + "]" : n;
|
|
312
312
|
}).join(r ? "." : "") : t;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
return l.isArray(e) && !e.some(
|
|
314
|
+
function kr(e) {
|
|
315
|
+
return l.isArray(e) && !e.some(Se);
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const vr = l.toFlatObject(l, {}, null, function(t) {
|
|
318
318
|
return /^is[A-Z]/.test(t);
|
|
319
319
|
});
|
|
320
|
-
function
|
|
320
|
+
function pe(e, t, r) {
|
|
321
321
|
if (!l.isObject(e))
|
|
322
322
|
throw new TypeError("target must be an object");
|
|
323
323
|
t = t || new FormData(), r = l.toFlatObject(r, {
|
|
324
324
|
metaTokens: !0,
|
|
325
325
|
dots: !1,
|
|
326
326
|
indexes: !1
|
|
327
|
-
}, !1, function(p,
|
|
328
|
-
return !l.isUndefined(
|
|
327
|
+
}, !1, function(p, g) {
|
|
328
|
+
return !l.isUndefined(g[p]);
|
|
329
329
|
});
|
|
330
|
-
const s = r.metaTokens, n = r.visitor ||
|
|
330
|
+
const s = r.metaTokens, n = r.visitor || u, o = r.dots, i = r.indexes, d = (r.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
331
331
|
if (!l.isFunction(n))
|
|
332
332
|
throw new TypeError("visitor must be a function");
|
|
333
|
-
function
|
|
334
|
-
if (
|
|
335
|
-
if (l.isDate(
|
|
336
|
-
return
|
|
337
|
-
if (!
|
|
333
|
+
function c(f) {
|
|
334
|
+
if (f === null) return "";
|
|
335
|
+
if (l.isDate(f))
|
|
336
|
+
return f.toISOString();
|
|
337
|
+
if (!d && l.isBlob(f))
|
|
338
338
|
throw new D("Blob is not supported. Use a Buffer instead.");
|
|
339
|
-
return l.isArrayBuffer(
|
|
339
|
+
return l.isArrayBuffer(f) || l.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
let v =
|
|
343
|
-
if (
|
|
341
|
+
function u(f, p, g) {
|
|
342
|
+
let v = f;
|
|
343
|
+
if (f && !g && typeof f == "object") {
|
|
344
344
|
if (l.endsWith(p, "{}"))
|
|
345
|
-
p = s ? p : p.slice(0, -2),
|
|
346
|
-
else if (l.isArray(
|
|
347
|
-
return p = mt(p), v.forEach(function(
|
|
348
|
-
!(l.isUndefined(
|
|
345
|
+
p = s ? p : p.slice(0, -2), f = JSON.stringify(f);
|
|
346
|
+
else if (l.isArray(f) && kr(f) || (l.isFileList(f) || l.endsWith(p, "[]")) && (v = l.toArray(f)))
|
|
347
|
+
return p = mt(p), v.forEach(function(y, P) {
|
|
348
|
+
!(l.isUndefined(y) || y === null) && t.append(
|
|
349
349
|
// eslint-disable-next-line no-nested-ternary
|
|
350
|
-
i === !0 ? Ve([p],
|
|
351
|
-
|
|
350
|
+
i === !0 ? Ve([p], P, o) : i === null ? p : p + "[]",
|
|
351
|
+
c(y)
|
|
352
352
|
);
|
|
353
353
|
}), !1;
|
|
354
354
|
}
|
|
355
|
-
return
|
|
355
|
+
return Se(f) ? !0 : (t.append(Ve(g, p, o), c(f)), !1);
|
|
356
356
|
}
|
|
357
|
-
const
|
|
358
|
-
defaultVisitor:
|
|
359
|
-
convertValue:
|
|
360
|
-
isVisitable:
|
|
357
|
+
const h = [], _ = Object.assign(vr, {
|
|
358
|
+
defaultVisitor: u,
|
|
359
|
+
convertValue: c,
|
|
360
|
+
isVisitable: Se
|
|
361
361
|
});
|
|
362
|
-
function
|
|
363
|
-
if (!l.isUndefined(
|
|
364
|
-
if (
|
|
362
|
+
function w(f, p) {
|
|
363
|
+
if (!l.isUndefined(f)) {
|
|
364
|
+
if (h.indexOf(f) !== -1)
|
|
365
365
|
throw Error("Circular reference detected in " + p.join("."));
|
|
366
|
-
|
|
366
|
+
h.push(f), l.forEach(f, function(v, k) {
|
|
367
367
|
(!(l.isUndefined(v) || v === null) && n.call(
|
|
368
368
|
t,
|
|
369
369
|
v,
|
|
370
370
|
l.isString(k) ? k.trim() : k,
|
|
371
371
|
p,
|
|
372
|
-
|
|
373
|
-
)) === !0 &&
|
|
374
|
-
}),
|
|
372
|
+
_
|
|
373
|
+
)) === !0 && w(v, p ? p.concat(k) : [k]);
|
|
374
|
+
}), h.pop();
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
if (!l.isObject(e))
|
|
378
378
|
throw new TypeError("data must be an object");
|
|
379
|
-
return
|
|
379
|
+
return w(e), t;
|
|
380
380
|
}
|
|
381
381
|
function ze(e) {
|
|
382
382
|
const t = {
|
|
@@ -393,7 +393,7 @@ function ze(e) {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
function Fe(e, t) {
|
|
396
|
-
this._pairs = [], e &&
|
|
396
|
+
this._pairs = [], e && pe(e, this, t);
|
|
397
397
|
}
|
|
398
398
|
const gt = Fe.prototype;
|
|
399
399
|
gt.append = function(t, r) {
|
|
@@ -407,13 +407,13 @@ gt.toString = function(t) {
|
|
|
407
407
|
return r(n[0]) + "=" + r(n[1]);
|
|
408
408
|
}, "").join("&");
|
|
409
409
|
};
|
|
410
|
-
function
|
|
410
|
+
function Sr(e) {
|
|
411
411
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
412
412
|
}
|
|
413
413
|
function bt(e, t, r) {
|
|
414
414
|
if (!t)
|
|
415
415
|
return e;
|
|
416
|
-
const s = r && r.encode ||
|
|
416
|
+
const s = r && r.encode || Sr;
|
|
417
417
|
l.isFunction(r) && (r = {
|
|
418
418
|
serialize: r
|
|
419
419
|
});
|
|
@@ -483,37 +483,37 @@ const wt = {
|
|
|
483
483
|
silentJSONParsing: !0,
|
|
484
484
|
forcedJSONParsing: !0,
|
|
485
485
|
clarifyTimeoutError: !1
|
|
486
|
-
},
|
|
486
|
+
}, Cr = typeof URLSearchParams < "u" ? URLSearchParams : Fe, Er = typeof FormData < "u" ? FormData : null, Rr = typeof Blob < "u" ? Blob : null, Or = {
|
|
487
487
|
isBrowser: !0,
|
|
488
488
|
classes: {
|
|
489
|
-
URLSearchParams:
|
|
490
|
-
FormData:
|
|
491
|
-
Blob:
|
|
489
|
+
URLSearchParams: Cr,
|
|
490
|
+
FormData: Er,
|
|
491
|
+
Blob: Rr
|
|
492
492
|
},
|
|
493
493
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
494
|
-
}, Le = typeof window < "u" && typeof document < "u",
|
|
495
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
494
|
+
}, Le = typeof window < "u" && typeof document < "u", Ce = typeof navigator == "object" && navigator || void 0, $r = Le && (!Ce || ["ReactNative", "NativeScript", "NS"].indexOf(Ce.product) < 0), Tr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
495
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Nr = Le && window.location.href || "http://localhost", Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
496
496
|
__proto__: null,
|
|
497
497
|
hasBrowserEnv: Le,
|
|
498
|
-
hasStandardBrowserEnv:
|
|
499
|
-
hasStandardBrowserWebWorkerEnv:
|
|
500
|
-
navigator:
|
|
501
|
-
origin:
|
|
502
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
503
|
-
...
|
|
504
|
-
|
|
498
|
+
hasStandardBrowserEnv: $r,
|
|
499
|
+
hasStandardBrowserWebWorkerEnv: Tr,
|
|
500
|
+
navigator: Ce,
|
|
501
|
+
origin: Nr
|
|
502
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
503
|
+
...Ar,
|
|
504
|
+
...Or
|
|
505
505
|
};
|
|
506
|
-
function
|
|
507
|
-
return
|
|
506
|
+
function Fr(e, t) {
|
|
507
|
+
return pe(e, new O.classes.URLSearchParams(), Object.assign({
|
|
508
508
|
visitor: function(r, s, n, o) {
|
|
509
|
-
return
|
|
509
|
+
return O.isNode && l.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
510
510
|
}
|
|
511
511
|
}, t));
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Lr(e) {
|
|
514
514
|
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Pr(e) {
|
|
517
517
|
const t = {}, r = Object.keys(e);
|
|
518
518
|
let s;
|
|
519
519
|
const n = r.length;
|
|
@@ -526,18 +526,18 @@ function yt(e) {
|
|
|
526
526
|
function t(r, s, n, o) {
|
|
527
527
|
let i = r[o++];
|
|
528
528
|
if (i === "__proto__") return !0;
|
|
529
|
-
const a = Number.isFinite(+i),
|
|
530
|
-
return i = !i && l.isArray(n) ? n.length : i,
|
|
529
|
+
const a = Number.isFinite(+i), d = o >= r.length;
|
|
530
|
+
return i = !i && l.isArray(n) ? n.length : i, d ? (l.hasOwnProp(n, i) ? n[i] = [n[i], s] : n[i] = s, !a) : ((!n[i] || !l.isObject(n[i])) && (n[i] = []), t(r, s, n[i], o) && l.isArray(n[i]) && (n[i] = Pr(n[i])), !a);
|
|
531
531
|
}
|
|
532
532
|
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
533
533
|
const r = {};
|
|
534
534
|
return l.forEachEntry(e, (s, n) => {
|
|
535
|
-
t(
|
|
535
|
+
t(Lr(s), n, r, 0);
|
|
536
536
|
}), r;
|
|
537
537
|
}
|
|
538
538
|
return null;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Br(e, t, r) {
|
|
541
541
|
if (l.isString(e))
|
|
542
542
|
try {
|
|
543
543
|
return (t || JSON.parse)(e), l.trim(e);
|
|
@@ -547,7 +547,7 @@ function Ur(e, t, r) {
|
|
|
547
547
|
}
|
|
548
548
|
return (r || JSON.stringify)(e);
|
|
549
549
|
}
|
|
550
|
-
const
|
|
550
|
+
const re = {
|
|
551
551
|
transitional: wt,
|
|
552
552
|
adapter: ["xhr", "http", "fetch"],
|
|
553
553
|
transformRequest: [function(t, r) {
|
|
@@ -563,20 +563,20 @@ const se = {
|
|
|
563
563
|
let a;
|
|
564
564
|
if (o) {
|
|
565
565
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
566
|
-
return
|
|
566
|
+
return Fr(t, this.formSerializer).toString();
|
|
567
567
|
if ((a = l.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
568
|
-
const
|
|
569
|
-
return
|
|
568
|
+
const d = this.env && this.env.FormData;
|
|
569
|
+
return pe(
|
|
570
570
|
a ? { "files[]": t } : t,
|
|
571
|
-
|
|
571
|
+
d && new d(),
|
|
572
572
|
this.formSerializer
|
|
573
573
|
);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
return o || n ? (r.setContentType("application/json", !1),
|
|
576
|
+
return o || n ? (r.setContentType("application/json", !1), Br(t)) : t;
|
|
577
577
|
}],
|
|
578
578
|
transformResponse: [function(t) {
|
|
579
|
-
const r = this.transitional ||
|
|
579
|
+
const r = this.transitional || re.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
|
|
580
580
|
if (l.isResponse(t) || l.isReadableStream(t))
|
|
581
581
|
return t;
|
|
582
582
|
if (t && l.isString(t) && (s && !this.responseType || n)) {
|
|
@@ -600,8 +600,8 @@ const se = {
|
|
|
600
600
|
maxContentLength: -1,
|
|
601
601
|
maxBodyLength: -1,
|
|
602
602
|
env: {
|
|
603
|
-
FormData:
|
|
604
|
-
Blob:
|
|
603
|
+
FormData: O.classes.FormData,
|
|
604
|
+
Blob: O.classes.Blob
|
|
605
605
|
},
|
|
606
606
|
validateStatus: function(t) {
|
|
607
607
|
return t >= 200 && t < 300;
|
|
@@ -614,9 +614,9 @@ const se = {
|
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
617
|
-
|
|
617
|
+
re.headers[e] = {};
|
|
618
618
|
});
|
|
619
|
-
const
|
|
619
|
+
const Ur = l.toObjectSet([
|
|
620
620
|
"age",
|
|
621
621
|
"authorization",
|
|
622
622
|
"content-length",
|
|
@@ -639,24 +639,24 @@ const Ir = l.toObjectSet([
|
|
|
639
639
|
let r, s, n;
|
|
640
640
|
return e && e.split(`
|
|
641
641
|
`).forEach(function(i) {
|
|
642
|
-
n = i.indexOf(":"), r = i.substring(0, n).trim().toLowerCase(), s = i.substring(n + 1).trim(), !(!r || t[r] &&
|
|
642
|
+
n = i.indexOf(":"), r = i.substring(0, n).trim().toLowerCase(), s = i.substring(n + 1).trim(), !(!r || t[r] && Ur[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
|
|
643
643
|
}), t;
|
|
644
644
|
}, qe = Symbol("internals");
|
|
645
645
|
function Z(e) {
|
|
646
646
|
return e && String(e).trim().toLowerCase();
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
return e === !1 || e == null ? e : l.isArray(e) ? e.map(
|
|
648
|
+
function oe(e) {
|
|
649
|
+
return e === !1 || e == null ? e : l.isArray(e) ? e.map(oe) : String(e);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Ir(e) {
|
|
652
652
|
const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
653
653
|
let s;
|
|
654
654
|
for (; s = r.exec(e); )
|
|
655
655
|
t[s[1]] = s[2];
|
|
656
656
|
return t;
|
|
657
657
|
}
|
|
658
|
-
const
|
|
659
|
-
function
|
|
658
|
+
const Vr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
659
|
+
function ye(e, t, r, s, n) {
|
|
660
660
|
if (l.isFunction(s))
|
|
661
661
|
return s.call(this, t, r);
|
|
662
662
|
if (n && (t = r), !!l.isString(t)) {
|
|
@@ -666,10 +666,10 @@ function xe(e, t, r, s, n) {
|
|
|
666
666
|
return s.test(t);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function zr(e) {
|
|
670
670
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Mr(e, t) {
|
|
673
673
|
const r = l.toCamelCase(" " + t);
|
|
674
674
|
["get", "set", "has"].forEach((s) => {
|
|
675
675
|
Object.defineProperty(e, s + r, {
|
|
@@ -686,21 +686,21 @@ let A = class {
|
|
|
686
686
|
}
|
|
687
687
|
set(t, r, s) {
|
|
688
688
|
const n = this;
|
|
689
|
-
function o(a,
|
|
690
|
-
const
|
|
691
|
-
if (!
|
|
689
|
+
function o(a, d, c) {
|
|
690
|
+
const u = Z(d);
|
|
691
|
+
if (!u)
|
|
692
692
|
throw new Error("header name must be a non-empty string");
|
|
693
|
-
const
|
|
694
|
-
(!
|
|
693
|
+
const h = l.findKey(n, u);
|
|
694
|
+
(!h || n[h] === void 0 || c === !0 || c === void 0 && n[h] !== !1) && (n[h || d] = oe(a));
|
|
695
695
|
}
|
|
696
|
-
const i = (a,
|
|
696
|
+
const i = (a, d) => l.forEach(a, (c, u) => o(c, u, d));
|
|
697
697
|
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
698
698
|
i(t, r);
|
|
699
|
-
else if (l.isString(t) && (t = t.trim()) && !
|
|
699
|
+
else if (l.isString(t) && (t = t.trim()) && !Vr(t))
|
|
700
700
|
i(jr(t), r);
|
|
701
701
|
else if (l.isHeaders(t))
|
|
702
|
-
for (const [a,
|
|
703
|
-
o(
|
|
702
|
+
for (const [a, d] of t.entries())
|
|
703
|
+
o(d, a, s);
|
|
704
704
|
else
|
|
705
705
|
t != null && o(r, t, s);
|
|
706
706
|
return this;
|
|
@@ -713,7 +713,7 @@ let A = class {
|
|
|
713
713
|
if (!r)
|
|
714
714
|
return n;
|
|
715
715
|
if (r === !0)
|
|
716
|
-
return
|
|
716
|
+
return Ir(n);
|
|
717
717
|
if (l.isFunction(r))
|
|
718
718
|
return r.call(this, n, s);
|
|
719
719
|
if (l.isRegExp(r))
|
|
@@ -725,7 +725,7 @@ let A = class {
|
|
|
725
725
|
has(t, r) {
|
|
726
726
|
if (t = Z(t), t) {
|
|
727
727
|
const s = l.findKey(this, t);
|
|
728
|
-
return !!(s && this[s] !== void 0 && (!r ||
|
|
728
|
+
return !!(s && this[s] !== void 0 && (!r || ye(this, this[s], s, r)));
|
|
729
729
|
}
|
|
730
730
|
return !1;
|
|
731
731
|
}
|
|
@@ -735,7 +735,7 @@ let A = class {
|
|
|
735
735
|
function o(i) {
|
|
736
736
|
if (i = Z(i), i) {
|
|
737
737
|
const a = l.findKey(s, i);
|
|
738
|
-
a && (!r ||
|
|
738
|
+
a && (!r || ye(s, s[a], a, r)) && (delete s[a], n = !0);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
return l.isArray(t) ? t.forEach(o) : o(t), n;
|
|
@@ -745,7 +745,7 @@ let A = class {
|
|
|
745
745
|
let s = r.length, n = !1;
|
|
746
746
|
for (; s--; ) {
|
|
747
747
|
const o = r[s];
|
|
748
|
-
(!t ||
|
|
748
|
+
(!t || ye(this, this[o], o, t, !0)) && (delete this[o], n = !0);
|
|
749
749
|
}
|
|
750
750
|
return n;
|
|
751
751
|
}
|
|
@@ -754,11 +754,11 @@ let A = class {
|
|
|
754
754
|
return l.forEach(this, (n, o) => {
|
|
755
755
|
const i = l.findKey(s, o);
|
|
756
756
|
if (i) {
|
|
757
|
-
r[i] =
|
|
757
|
+
r[i] = oe(n), delete r[o];
|
|
758
758
|
return;
|
|
759
759
|
}
|
|
760
|
-
const a = t ?
|
|
761
|
-
a !== o && delete r[o], r[a] =
|
|
760
|
+
const a = t ? zr(o) : String(o).trim();
|
|
761
|
+
a !== o && delete r[o], r[a] = oe(n), s[a] = !0;
|
|
762
762
|
}), this;
|
|
763
763
|
}
|
|
764
764
|
concat(...t) {
|
|
@@ -793,7 +793,7 @@ let A = class {
|
|
|
793
793
|
}).accessors, n = this.prototype;
|
|
794
794
|
function o(i) {
|
|
795
795
|
const a = Z(i);
|
|
796
|
-
s[a] || (
|
|
796
|
+
s[a] || (Mr(n, i), s[a] = !0);
|
|
797
797
|
}
|
|
798
798
|
return l.isArray(t) ? t.forEach(o) : o(t), this;
|
|
799
799
|
}
|
|
@@ -809,8 +809,8 @@ l.reduceDescriptors(A.prototype, ({ value: e }, t) => {
|
|
|
809
809
|
};
|
|
810
810
|
});
|
|
811
811
|
l.freezeMethods(A);
|
|
812
|
-
function
|
|
813
|
-
const r = this ||
|
|
812
|
+
function xe(e, t) {
|
|
813
|
+
const r = this || re, s = t || r, n = A.from(s.headers);
|
|
814
814
|
let o = s.data;
|
|
815
815
|
return l.forEach(e, function(a) {
|
|
816
816
|
o = a.call(r, o, n.normalize(), t ? t.status : void 0);
|
|
@@ -835,56 +835,56 @@ function _t(e, t, r) {
|
|
|
835
835
|
r
|
|
836
836
|
));
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function qr(e) {
|
|
839
839
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
840
840
|
return t && t[1] || "";
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Hr(e, t) {
|
|
843
843
|
e = e || 10;
|
|
844
844
|
const r = new Array(e), s = new Array(e);
|
|
845
845
|
let n = 0, o = 0, i;
|
|
846
|
-
return t = t !== void 0 ? t : 1e3, function(
|
|
847
|
-
const
|
|
848
|
-
i || (i =
|
|
849
|
-
let
|
|
850
|
-
for (;
|
|
851
|
-
|
|
852
|
-
if (n = (n + 1) % e, n === o && (o = (o + 1) % e),
|
|
846
|
+
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
847
|
+
const c = Date.now(), u = s[o];
|
|
848
|
+
i || (i = c), r[n] = d, s[n] = c;
|
|
849
|
+
let h = o, _ = 0;
|
|
850
|
+
for (; h !== n; )
|
|
851
|
+
_ += r[h++], h = h % e;
|
|
852
|
+
if (n = (n + 1) % e, n === o && (o = (o + 1) % e), c - i < t)
|
|
853
853
|
return;
|
|
854
|
-
const
|
|
855
|
-
return
|
|
854
|
+
const w = u && c - u;
|
|
855
|
+
return w ? Math.round(_ * 1e3 / w) : void 0;
|
|
856
856
|
};
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Wr(e, t) {
|
|
859
859
|
let r = 0, s = 1e3 / t, n, o;
|
|
860
|
-
const i = (
|
|
861
|
-
r =
|
|
860
|
+
const i = (c, u = Date.now()) => {
|
|
861
|
+
r = u, n = null, o && (clearTimeout(o), o = null), e.apply(null, c);
|
|
862
862
|
};
|
|
863
|
-
return [(...
|
|
864
|
-
const
|
|
865
|
-
|
|
863
|
+
return [(...c) => {
|
|
864
|
+
const u = Date.now(), h = u - r;
|
|
865
|
+
h >= s ? i(c, u) : (n = c, o || (o = setTimeout(() => {
|
|
866
866
|
o = null, i(n);
|
|
867
|
-
}, s -
|
|
867
|
+
}, s - h)));
|
|
868
868
|
}, () => n && i(n)];
|
|
869
869
|
}
|
|
870
|
-
const
|
|
870
|
+
const ae = (e, t, r = 3) => {
|
|
871
871
|
let s = 0;
|
|
872
|
-
const n =
|
|
873
|
-
return
|
|
874
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0,
|
|
872
|
+
const n = Hr(50, 250);
|
|
873
|
+
return Wr((o) => {
|
|
874
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i - s, c = n(d), u = i <= a;
|
|
875
875
|
s = i;
|
|
876
|
-
const
|
|
876
|
+
const h = {
|
|
877
877
|
loaded: i,
|
|
878
878
|
total: a,
|
|
879
879
|
progress: a ? i / a : void 0,
|
|
880
|
-
bytes:
|
|
881
|
-
rate:
|
|
882
|
-
estimated:
|
|
880
|
+
bytes: d,
|
|
881
|
+
rate: c || void 0,
|
|
882
|
+
estimated: c && a && u ? (a - i) / c : void 0,
|
|
883
883
|
event: o,
|
|
884
884
|
lengthComputable: a != null,
|
|
885
885
|
[t ? "download" : "upload"]: !0
|
|
886
886
|
};
|
|
887
|
-
e(
|
|
887
|
+
e(h);
|
|
888
888
|
}, r);
|
|
889
889
|
}, He = (e, t) => {
|
|
890
890
|
const r = e != null;
|
|
@@ -893,10 +893,10 @@ const le = (e, t, r = 3) => {
|
|
|
893
893
|
total: e,
|
|
894
894
|
loaded: s
|
|
895
895
|
}), t[1]];
|
|
896
|
-
}, We = (e) => (...t) => l.asap(() => e(...t)),
|
|
897
|
-
new URL(
|
|
898
|
-
|
|
899
|
-
) : () => !0,
|
|
896
|
+
}, We = (e) => (...t) => l.asap(() => e(...t)), Jr = O.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (r) => (r = new URL(r, O.origin), e.protocol === r.protocol && e.host === r.host && (t || e.port === r.port)))(
|
|
897
|
+
new URL(O.origin),
|
|
898
|
+
O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
|
|
899
|
+
) : () => !0, Kr = O.hasStandardBrowserEnv ? (
|
|
900
900
|
// Standard browser envs support document.cookie
|
|
901
901
|
{
|
|
902
902
|
write(e, t, r, s, n, o) {
|
|
@@ -923,45 +923,45 @@ const le = (e, t, r = 3) => {
|
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
);
|
|
926
|
-
function
|
|
926
|
+
function Gr(e) {
|
|
927
927
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Xr(e, t) {
|
|
930
930
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
931
931
|
}
|
|
932
932
|
function Dt(e, t) {
|
|
933
|
-
return e && !
|
|
933
|
+
return e && !Gr(t) ? Xr(e, t) : t;
|
|
934
934
|
}
|
|
935
935
|
const Je = (e) => e instanceof A ? { ...e } : e;
|
|
936
936
|
function K(e, t) {
|
|
937
937
|
t = t || {};
|
|
938
938
|
const r = {};
|
|
939
|
-
function s(
|
|
940
|
-
return l.isPlainObject(
|
|
939
|
+
function s(c, u, h, _) {
|
|
940
|
+
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless: _ }, c, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
941
941
|
}
|
|
942
|
-
function n(
|
|
943
|
-
if (l.isUndefined(
|
|
944
|
-
if (!l.isUndefined(
|
|
945
|
-
return s(void 0,
|
|
946
|
-
} else return s(
|
|
942
|
+
function n(c, u, h, _) {
|
|
943
|
+
if (l.isUndefined(u)) {
|
|
944
|
+
if (!l.isUndefined(c))
|
|
945
|
+
return s(void 0, c, h, _);
|
|
946
|
+
} else return s(c, u, h, _);
|
|
947
947
|
}
|
|
948
|
-
function o(
|
|
949
|
-
if (!l.isUndefined(
|
|
950
|
-
return s(void 0,
|
|
948
|
+
function o(c, u) {
|
|
949
|
+
if (!l.isUndefined(u))
|
|
950
|
+
return s(void 0, u);
|
|
951
951
|
}
|
|
952
|
-
function i(
|
|
953
|
-
if (l.isUndefined(
|
|
954
|
-
if (!l.isUndefined(
|
|
955
|
-
return s(void 0,
|
|
956
|
-
} else return s(void 0,
|
|
952
|
+
function i(c, u) {
|
|
953
|
+
if (l.isUndefined(u)) {
|
|
954
|
+
if (!l.isUndefined(c))
|
|
955
|
+
return s(void 0, c);
|
|
956
|
+
} else return s(void 0, u);
|
|
957
957
|
}
|
|
958
|
-
function a(
|
|
959
|
-
if (
|
|
960
|
-
return s(
|
|
961
|
-
if (
|
|
962
|
-
return s(void 0,
|
|
958
|
+
function a(c, u, h) {
|
|
959
|
+
if (h in t)
|
|
960
|
+
return s(c, u);
|
|
961
|
+
if (h in e)
|
|
962
|
+
return s(void 0, c);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
964
|
+
const d = {
|
|
965
965
|
url: o,
|
|
966
966
|
method: o,
|
|
967
967
|
data: o,
|
|
@@ -990,11 +990,11 @@ function K(e, t) {
|
|
|
990
990
|
socketPath: i,
|
|
991
991
|
responseEncoding: i,
|
|
992
992
|
validateStatus: a,
|
|
993
|
-
headers: (
|
|
993
|
+
headers: (c, u, h) => n(Je(c), Je(u), h, !0)
|
|
994
994
|
};
|
|
995
|
-
return l.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
996
|
-
const
|
|
997
|
-
l.isUndefined(
|
|
995
|
+
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
996
|
+
const h = d[u] || n, _ = h(e[u], t[u], u);
|
|
997
|
+
l.isUndefined(_) && h !== a || (r[u] = _);
|
|
998
998
|
}), r;
|
|
999
999
|
}
|
|
1000
1000
|
const kt = (e) => {
|
|
@@ -1004,101 +1004,101 @@ const kt = (e) => {
|
|
|
1004
1004
|
"Authorization",
|
|
1005
1005
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1006
1006
|
);
|
|
1007
|
-
let
|
|
1007
|
+
let d;
|
|
1008
1008
|
if (l.isFormData(r)) {
|
|
1009
|
-
if (
|
|
1009
|
+
if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
|
|
1010
1010
|
i.setContentType(void 0);
|
|
1011
|
-
else if ((
|
|
1012
|
-
const [
|
|
1013
|
-
i.setContentType([
|
|
1011
|
+
else if ((d = i.getContentType()) !== !1) {
|
|
1012
|
+
const [c, ...u] = d ? d.split(";").map((h) => h.trim()).filter(Boolean) : [];
|
|
1013
|
+
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
|
-
if (
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1016
|
+
if (O.hasStandardBrowserEnv && (s && l.isFunction(s) && (s = s(t)), s || s !== !1 && Jr(t.url))) {
|
|
1017
|
+
const c = n && o && Kr.read(o);
|
|
1018
|
+
c && i.set(n, c);
|
|
1019
1019
|
}
|
|
1020
1020
|
return t;
|
|
1021
|
-
},
|
|
1021
|
+
}, Zr = typeof XMLHttpRequest < "u", Qr = Zr && function(e) {
|
|
1022
1022
|
return new Promise(function(r, s) {
|
|
1023
1023
|
const n = kt(e);
|
|
1024
1024
|
let o = n.data;
|
|
1025
1025
|
const i = A.from(n.headers).normalize();
|
|
1026
|
-
let { responseType: a, onUploadProgress:
|
|
1026
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = n, u, h, _, w, f;
|
|
1027
1027
|
function p() {
|
|
1028
|
-
|
|
1028
|
+
w && w(), f && f(), n.cancelToken && n.cancelToken.unsubscribe(u), n.signal && n.signal.removeEventListener("abort", u);
|
|
1029
1029
|
}
|
|
1030
|
-
let
|
|
1031
|
-
|
|
1030
|
+
let g = new XMLHttpRequest();
|
|
1031
|
+
g.open(n.method.toUpperCase(), n.url, !0), g.timeout = n.timeout;
|
|
1032
1032
|
function v() {
|
|
1033
|
-
if (!
|
|
1033
|
+
if (!g)
|
|
1034
1034
|
return;
|
|
1035
|
-
const
|
|
1036
|
-
"getAllResponseHeaders" in
|
|
1035
|
+
const y = A.from(
|
|
1036
|
+
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
1037
1037
|
), E = {
|
|
1038
|
-
data: !a || a === "text" || a === "json" ?
|
|
1039
|
-
status:
|
|
1040
|
-
statusText:
|
|
1041
|
-
headers:
|
|
1038
|
+
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
1039
|
+
status: g.status,
|
|
1040
|
+
statusText: g.statusText,
|
|
1041
|
+
headers: y,
|
|
1042
1042
|
config: e,
|
|
1043
|
-
request:
|
|
1043
|
+
request: g
|
|
1044
1044
|
};
|
|
1045
1045
|
_t(function(q) {
|
|
1046
1046
|
r(q), p();
|
|
1047
1047
|
}, function(q) {
|
|
1048
1048
|
s(q), p();
|
|
1049
|
-
}, E),
|
|
1049
|
+
}, E), g = null;
|
|
1050
1050
|
}
|
|
1051
|
-
"onloadend" in
|
|
1052
|
-
!
|
|
1053
|
-
},
|
|
1054
|
-
|
|
1055
|
-
},
|
|
1056
|
-
s(new D("Network Error", D.ERR_NETWORK, e,
|
|
1057
|
-
},
|
|
1058
|
-
let
|
|
1051
|
+
"onloadend" in g ? g.onloadend = v : g.onreadystatechange = function() {
|
|
1052
|
+
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(v);
|
|
1053
|
+
}, g.onabort = function() {
|
|
1054
|
+
g && (s(new D("Request aborted", D.ECONNABORTED, e, g)), g = null);
|
|
1055
|
+
}, g.onerror = function() {
|
|
1056
|
+
s(new D("Network Error", D.ERR_NETWORK, e, g)), g = null;
|
|
1057
|
+
}, g.ontimeout = function() {
|
|
1058
|
+
let P = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
1059
1059
|
const E = n.transitional || wt;
|
|
1060
|
-
n.timeoutErrorMessage && (
|
|
1061
|
-
|
|
1060
|
+
n.timeoutErrorMessage && (P = n.timeoutErrorMessage), s(new D(
|
|
1061
|
+
P,
|
|
1062
1062
|
E.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
|
|
1063
1063
|
e,
|
|
1064
|
-
|
|
1065
|
-
)),
|
|
1066
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
1067
|
-
|
|
1068
|
-
}), l.isUndefined(n.withCredentials) || (
|
|
1069
|
-
|
|
1070
|
-
}, n.cancelToken && n.cancelToken.subscribe(
|
|
1071
|
-
const k =
|
|
1072
|
-
if (k &&
|
|
1064
|
+
g
|
|
1065
|
+
)), g = null;
|
|
1066
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(P, E) {
|
|
1067
|
+
g.setRequestHeader(E, P);
|
|
1068
|
+
}), l.isUndefined(n.withCredentials) || (g.withCredentials = !!n.withCredentials), a && a !== "json" && (g.responseType = n.responseType), c && ([_, f] = ae(c, !0), g.addEventListener("progress", _)), d && g.upload && ([h, w] = ae(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", w)), (n.cancelToken || n.signal) && (u = (y) => {
|
|
1069
|
+
g && (s(!y || y.type ? new X(null, e, g) : y), g.abort(), g = null);
|
|
1070
|
+
}, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u)));
|
|
1071
|
+
const k = qr(n.url);
|
|
1072
|
+
if (k && O.protocols.indexOf(k) === -1) {
|
|
1073
1073
|
s(new D("Unsupported protocol " + k + ":", D.ERR_BAD_REQUEST, e));
|
|
1074
1074
|
return;
|
|
1075
1075
|
}
|
|
1076
|
-
|
|
1076
|
+
g.send(o || null);
|
|
1077
1077
|
});
|
|
1078
|
-
},
|
|
1078
|
+
}, Yr = (e, t) => {
|
|
1079
1079
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
1080
1080
|
if (t || r) {
|
|
1081
1081
|
let s = new AbortController(), n;
|
|
1082
|
-
const o = function(
|
|
1082
|
+
const o = function(c) {
|
|
1083
1083
|
if (!n) {
|
|
1084
1084
|
n = !0, a();
|
|
1085
|
-
const
|
|
1086
|
-
s.abort(
|
|
1085
|
+
const u = c instanceof Error ? c : this.reason;
|
|
1086
|
+
s.abort(u instanceof D ? u : new X(u instanceof Error ? u.message : u));
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
1089
|
let i = t && setTimeout(() => {
|
|
1090
1090
|
i = null, o(new D(`timeout ${t} of ms exceeded`, D.ETIMEDOUT));
|
|
1091
1091
|
}, t);
|
|
1092
1092
|
const a = () => {
|
|
1093
|
-
e && (i && clearTimeout(i), i = null, e.forEach((
|
|
1094
|
-
|
|
1093
|
+
e && (i && clearTimeout(i), i = null, e.forEach((c) => {
|
|
1094
|
+
c.unsubscribe ? c.unsubscribe(o) : c.removeEventListener("abort", o);
|
|
1095
1095
|
}), e = null);
|
|
1096
1096
|
};
|
|
1097
|
-
e.forEach((
|
|
1098
|
-
const { signal:
|
|
1099
|
-
return
|
|
1097
|
+
e.forEach((c) => c.addEventListener("abort", o));
|
|
1098
|
+
const { signal: d } = s;
|
|
1099
|
+
return d.unsubscribe = () => l.asap(a), d;
|
|
1100
1100
|
}
|
|
1101
|
-
},
|
|
1101
|
+
}, es = function* (e, t) {
|
|
1102
1102
|
let r = e.byteLength;
|
|
1103
1103
|
if (r < t) {
|
|
1104
1104
|
yield e;
|
|
@@ -1107,10 +1107,10 @@ const kt = (e) => {
|
|
|
1107
1107
|
let s = 0, n;
|
|
1108
1108
|
for (; s < r; )
|
|
1109
1109
|
n = s + t, yield e.slice(s, n), s = n;
|
|
1110
|
-
},
|
|
1111
|
-
for await (const r of
|
|
1112
|
-
yield*
|
|
1113
|
-
},
|
|
1110
|
+
}, ts = async function* (e, t) {
|
|
1111
|
+
for await (const r of rs(e))
|
|
1112
|
+
yield* es(r, t);
|
|
1113
|
+
}, rs = async function* (e) {
|
|
1114
1114
|
if (e[Symbol.asyncIterator]) {
|
|
1115
1115
|
yield* e;
|
|
1116
1116
|
return;
|
|
@@ -1127,43 +1127,43 @@ const kt = (e) => {
|
|
|
1127
1127
|
await t.cancel();
|
|
1128
1128
|
}
|
|
1129
1129
|
}, Ke = (e, t, r, s) => {
|
|
1130
|
-
const n =
|
|
1131
|
-
let o = 0, i, a = (
|
|
1132
|
-
i || (i = !0, s && s(
|
|
1130
|
+
const n = ts(e, t);
|
|
1131
|
+
let o = 0, i, a = (d) => {
|
|
1132
|
+
i || (i = !0, s && s(d));
|
|
1133
1133
|
};
|
|
1134
1134
|
return new ReadableStream({
|
|
1135
|
-
async pull(
|
|
1135
|
+
async pull(d) {
|
|
1136
1136
|
try {
|
|
1137
|
-
const { done:
|
|
1138
|
-
if (
|
|
1139
|
-
a(),
|
|
1137
|
+
const { done: c, value: u } = await n.next();
|
|
1138
|
+
if (c) {
|
|
1139
|
+
a(), d.close();
|
|
1140
1140
|
return;
|
|
1141
1141
|
}
|
|
1142
|
-
let
|
|
1142
|
+
let h = u.byteLength;
|
|
1143
1143
|
if (r) {
|
|
1144
|
-
let
|
|
1145
|
-
r(
|
|
1144
|
+
let _ = o += h;
|
|
1145
|
+
r(_);
|
|
1146
1146
|
}
|
|
1147
|
-
|
|
1148
|
-
} catch (
|
|
1149
|
-
throw a(
|
|
1147
|
+
d.enqueue(new Uint8Array(u));
|
|
1148
|
+
} catch (c) {
|
|
1149
|
+
throw a(c), c;
|
|
1150
1150
|
}
|
|
1151
1151
|
},
|
|
1152
|
-
cancel(
|
|
1153
|
-
return a(
|
|
1152
|
+
cancel(d) {
|
|
1153
|
+
return a(d), n.return();
|
|
1154
1154
|
}
|
|
1155
1155
|
}, {
|
|
1156
1156
|
highWaterMark: 2
|
|
1157
1157
|
});
|
|
1158
|
-
},
|
|
1158
|
+
}, me = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", vt = me && typeof ReadableStream == "function", ss = me && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), St = (e, ...t) => {
|
|
1159
1159
|
try {
|
|
1160
1160
|
return !!e(...t);
|
|
1161
1161
|
} catch {
|
|
1162
1162
|
return !1;
|
|
1163
1163
|
}
|
|
1164
|
-
},
|
|
1164
|
+
}, ns = vt && St(() => {
|
|
1165
1165
|
let e = !1;
|
|
1166
|
-
const t = new Request(
|
|
1166
|
+
const t = new Request(O.origin, {
|
|
1167
1167
|
body: new ReadableStream(),
|
|
1168
1168
|
method: "POST",
|
|
1169
1169
|
get duplex() {
|
|
@@ -1171,34 +1171,34 @@ const kt = (e) => {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
}).headers.has("Content-Type");
|
|
1173
1173
|
return e && !t;
|
|
1174
|
-
}), Ge = 64 * 1024,
|
|
1175
|
-
stream:
|
|
1174
|
+
}), Ge = 64 * 1024, Ee = vt && St(() => l.isReadableStream(new Response("").body)), le = {
|
|
1175
|
+
stream: Ee && ((e) => e.body)
|
|
1176
1176
|
};
|
|
1177
|
-
|
|
1177
|
+
me && ((e) => {
|
|
1178
1178
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1179
|
-
!
|
|
1179
|
+
!le[t] && (le[t] = l.isFunction(e[t]) ? (r) => r[t]() : (r, s) => {
|
|
1180
1180
|
throw new D(`Response type '${t}' is not supported`, D.ERR_NOT_SUPPORT, s);
|
|
1181
1181
|
});
|
|
1182
1182
|
});
|
|
1183
1183
|
})(new Response());
|
|
1184
|
-
const
|
|
1184
|
+
const os = async (e) => {
|
|
1185
1185
|
if (e == null)
|
|
1186
1186
|
return 0;
|
|
1187
1187
|
if (l.isBlob(e))
|
|
1188
1188
|
return e.size;
|
|
1189
1189
|
if (l.isSpecCompliantForm(e))
|
|
1190
|
-
return (await new Request(
|
|
1190
|
+
return (await new Request(O.origin, {
|
|
1191
1191
|
method: "POST",
|
|
1192
1192
|
body: e
|
|
1193
1193
|
}).arrayBuffer()).byteLength;
|
|
1194
1194
|
if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
|
|
1195
1195
|
return e.byteLength;
|
|
1196
1196
|
if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
|
|
1197
|
-
return (await
|
|
1198
|
-
},
|
|
1197
|
+
return (await ss(e)).byteLength;
|
|
1198
|
+
}, is = async (e, t) => {
|
|
1199
1199
|
const r = l.toFiniteNumber(e.getContentLength());
|
|
1200
|
-
return r ??
|
|
1201
|
-
},
|
|
1200
|
+
return r ?? os(t);
|
|
1201
|
+
}, as = me && (async (e) => {
|
|
1202
1202
|
let {
|
|
1203
1203
|
url: t,
|
|
1204
1204
|
method: r,
|
|
@@ -1207,88 +1207,88 @@ const is = async (e) => {
|
|
|
1207
1207
|
cancelToken: o,
|
|
1208
1208
|
timeout: i,
|
|
1209
1209
|
onDownloadProgress: a,
|
|
1210
|
-
onUploadProgress:
|
|
1211
|
-
responseType:
|
|
1212
|
-
headers:
|
|
1213
|
-
withCredentials:
|
|
1214
|
-
fetchOptions:
|
|
1210
|
+
onUploadProgress: d,
|
|
1211
|
+
responseType: c,
|
|
1212
|
+
headers: u,
|
|
1213
|
+
withCredentials: h = "same-origin",
|
|
1214
|
+
fetchOptions: _
|
|
1215
1215
|
} = kt(e);
|
|
1216
|
-
|
|
1217
|
-
let
|
|
1218
|
-
const p =
|
|
1219
|
-
|
|
1216
|
+
c = c ? (c + "").toLowerCase() : "text";
|
|
1217
|
+
let w = Yr([n, o && o.toAbortSignal()], i), f;
|
|
1218
|
+
const p = w && w.unsubscribe && (() => {
|
|
1219
|
+
w.unsubscribe();
|
|
1220
1220
|
});
|
|
1221
|
-
let
|
|
1221
|
+
let g;
|
|
1222
1222
|
try {
|
|
1223
|
-
if (
|
|
1223
|
+
if (d && ns && r !== "get" && r !== "head" && (g = await is(u, s)) !== 0) {
|
|
1224
1224
|
let E = new Request(t, {
|
|
1225
1225
|
method: "POST",
|
|
1226
1226
|
body: s,
|
|
1227
1227
|
duplex: "half"
|
|
1228
1228
|
}), z;
|
|
1229
|
-
if (l.isFormData(s) && (z = E.headers.get("content-type")) &&
|
|
1230
|
-
const [q,
|
|
1231
|
-
|
|
1232
|
-
|
|
1229
|
+
if (l.isFormData(s) && (z = E.headers.get("content-type")) && u.setContentType(z), E.body) {
|
|
1230
|
+
const [q, se] = He(
|
|
1231
|
+
g,
|
|
1232
|
+
ae(We(d))
|
|
1233
1233
|
);
|
|
1234
|
-
s = Ke(E.body, Ge, q,
|
|
1234
|
+
s = Ke(E.body, Ge, q, se);
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
l.isString(
|
|
1237
|
+
l.isString(h) || (h = h ? "include" : "omit");
|
|
1238
1238
|
const v = "credentials" in Request.prototype;
|
|
1239
|
-
|
|
1240
|
-
...
|
|
1241
|
-
signal:
|
|
1239
|
+
f = new Request(t, {
|
|
1240
|
+
..._,
|
|
1241
|
+
signal: w,
|
|
1242
1242
|
method: r.toUpperCase(),
|
|
1243
|
-
headers:
|
|
1243
|
+
headers: u.normalize().toJSON(),
|
|
1244
1244
|
body: s,
|
|
1245
1245
|
duplex: "half",
|
|
1246
|
-
credentials: v ?
|
|
1246
|
+
credentials: v ? h : void 0
|
|
1247
1247
|
});
|
|
1248
|
-
let k = await fetch(
|
|
1249
|
-
const
|
|
1250
|
-
if (
|
|
1248
|
+
let k = await fetch(f);
|
|
1249
|
+
const y = Ee && (c === "stream" || c === "response");
|
|
1250
|
+
if (Ee && (a || y && p)) {
|
|
1251
1251
|
const E = {};
|
|
1252
1252
|
["status", "statusText", "headers"].forEach((Pe) => {
|
|
1253
1253
|
E[Pe] = k[Pe];
|
|
1254
1254
|
});
|
|
1255
|
-
const z = l.toFiniteNumber(k.headers.get("content-length")), [q,
|
|
1255
|
+
const z = l.toFiniteNumber(k.headers.get("content-length")), [q, se] = a && He(
|
|
1256
1256
|
z,
|
|
1257
|
-
|
|
1257
|
+
ae(We(a), !0)
|
|
1258
1258
|
) || [];
|
|
1259
1259
|
k = new Response(
|
|
1260
1260
|
Ke(k.body, Ge, q, () => {
|
|
1261
|
-
|
|
1261
|
+
se && se(), p && p();
|
|
1262
1262
|
}),
|
|
1263
1263
|
E
|
|
1264
1264
|
);
|
|
1265
1265
|
}
|
|
1266
|
-
|
|
1267
|
-
let
|
|
1268
|
-
return !
|
|
1266
|
+
c = c || "text";
|
|
1267
|
+
let P = await le[l.findKey(le, c) || "text"](k, e);
|
|
1268
|
+
return !y && p && p(), await new Promise((E, z) => {
|
|
1269
1269
|
_t(E, z, {
|
|
1270
|
-
data:
|
|
1270
|
+
data: P,
|
|
1271
1271
|
headers: A.from(k.headers),
|
|
1272
1272
|
status: k.status,
|
|
1273
1273
|
statusText: k.statusText,
|
|
1274
1274
|
config: e,
|
|
1275
|
-
request:
|
|
1275
|
+
request: f
|
|
1276
1276
|
});
|
|
1277
1277
|
});
|
|
1278
1278
|
} catch (v) {
|
|
1279
1279
|
throw p && p(), v && v.name === "TypeError" && /fetch/i.test(v.message) ? Object.assign(
|
|
1280
|
-
new D("Network Error", D.ERR_NETWORK, e,
|
|
1280
|
+
new D("Network Error", D.ERR_NETWORK, e, f),
|
|
1281
1281
|
{
|
|
1282
1282
|
cause: v.cause || v
|
|
1283
1283
|
}
|
|
1284
|
-
) : D.from(v, v && v.code, e,
|
|
1284
|
+
) : D.from(v, v && v.code, e, f);
|
|
1285
1285
|
}
|
|
1286
|
-
}),
|
|
1287
|
-
http:
|
|
1288
|
-
xhr:
|
|
1289
|
-
fetch:
|
|
1286
|
+
}), Re = {
|
|
1287
|
+
http: Dr,
|
|
1288
|
+
xhr: Qr,
|
|
1289
|
+
fetch: as
|
|
1290
1290
|
};
|
|
1291
|
-
l.forEach(
|
|
1291
|
+
l.forEach(Re, (e, t) => {
|
|
1292
1292
|
if (e) {
|
|
1293
1293
|
try {
|
|
1294
1294
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1297,7 +1297,7 @@ l.forEach(Oe, (e, t) => {
|
|
|
1297
1297
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1298
1298
|
}
|
|
1299
1299
|
});
|
|
1300
|
-
const Xe = (e) => `- ${e}`,
|
|
1300
|
+
const Xe = (e) => `- ${e}`, ls = (e) => l.isFunction(e) || e === null || e === !1, Ct = {
|
|
1301
1301
|
getAdapter: (e) => {
|
|
1302
1302
|
e = l.isArray(e) ? e : [e];
|
|
1303
1303
|
const { length: t } = e;
|
|
@@ -1306,7 +1306,7 @@ const Xe = (e) => `- ${e}`, cs = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1306
1306
|
for (let o = 0; o < t; o++) {
|
|
1307
1307
|
r = e[o];
|
|
1308
1308
|
let i;
|
|
1309
|
-
if (s = r, !
|
|
1309
|
+
if (s = r, !ls(r) && (s = Re[(i = String(r)).toLowerCase()], s === void 0))
|
|
1310
1310
|
throw new D(`Unknown adapter '${i}'`);
|
|
1311
1311
|
if (s)
|
|
1312
1312
|
break;
|
|
@@ -1314,7 +1314,7 @@ const Xe = (e) => `- ${e}`, cs = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1314
1314
|
}
|
|
1315
1315
|
if (!s) {
|
|
1316
1316
|
const o = Object.entries(n).map(
|
|
1317
|
-
([a,
|
|
1317
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1318
1318
|
);
|
|
1319
1319
|
let i = t ? o.length > 1 ? `since :
|
|
1320
1320
|
` + o.map(Xe).join(`
|
|
@@ -1326,38 +1326,38 @@ const Xe = (e) => `- ${e}`, cs = (e) => l.isFunction(e) || e === null || e === !
|
|
|
1326
1326
|
}
|
|
1327
1327
|
return s;
|
|
1328
1328
|
},
|
|
1329
|
-
adapters:
|
|
1329
|
+
adapters: Re
|
|
1330
1330
|
};
|
|
1331
|
-
function
|
|
1331
|
+
function _e(e) {
|
|
1332
1332
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1333
1333
|
throw new X(null, e);
|
|
1334
1334
|
}
|
|
1335
1335
|
function Ze(e) {
|
|
1336
|
-
return
|
|
1336
|
+
return _e(e), e.headers = A.from(e.headers), e.data = xe.call(
|
|
1337
1337
|
e,
|
|
1338
1338
|
e.transformRequest
|
|
1339
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ct.getAdapter(e.adapter ||
|
|
1340
|
-
return
|
|
1339
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Ct.getAdapter(e.adapter || re.adapter)(e).then(function(s) {
|
|
1340
|
+
return _e(e), s.data = xe.call(
|
|
1341
1341
|
e,
|
|
1342
1342
|
e.transformResponse,
|
|
1343
1343
|
s
|
|
1344
1344
|
), s.headers = A.from(s.headers), s;
|
|
1345
1345
|
}, function(s) {
|
|
1346
|
-
return xt(s) || (
|
|
1346
|
+
return xt(s) || (_e(e), s && s.response && (s.response.data = xe.call(
|
|
1347
1347
|
e,
|
|
1348
1348
|
e.transformResponse,
|
|
1349
1349
|
s.response
|
|
1350
1350
|
), s.response.headers = A.from(s.response.headers))), Promise.reject(s);
|
|
1351
1351
|
});
|
|
1352
1352
|
}
|
|
1353
|
-
const Et = "1.7.9",
|
|
1353
|
+
const Et = "1.7.9", ge = {};
|
|
1354
1354
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1355
|
-
|
|
1355
|
+
ge[e] = function(s) {
|
|
1356
1356
|
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1357
1357
|
};
|
|
1358
1358
|
});
|
|
1359
1359
|
const Qe = {};
|
|
1360
|
-
|
|
1360
|
+
ge.transitional = function(t, r, s) {
|
|
1361
1361
|
function n(o, i) {
|
|
1362
1362
|
return "[Axios v" + Et + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
|
|
1363
1363
|
}
|
|
@@ -1375,10 +1375,10 @@ be.transitional = function(t, r, s) {
|
|
|
1375
1375
|
)), t ? t(o, i, a) : !0;
|
|
1376
1376
|
};
|
|
1377
1377
|
};
|
|
1378
|
-
|
|
1378
|
+
ge.spelling = function(t) {
|
|
1379
1379
|
return (r, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
1380
1380
|
};
|
|
1381
|
-
function
|
|
1381
|
+
function cs(e, t, r) {
|
|
1382
1382
|
if (typeof e != "object")
|
|
1383
1383
|
throw new D("options must be an object", D.ERR_BAD_OPTION_VALUE);
|
|
1384
1384
|
const s = Object.keys(e);
|
|
@@ -1386,19 +1386,19 @@ function us(e, t, r) {
|
|
|
1386
1386
|
for (; n-- > 0; ) {
|
|
1387
1387
|
const o = s[n], i = t[o];
|
|
1388
1388
|
if (i) {
|
|
1389
|
-
const a = e[o],
|
|
1390
|
-
if (
|
|
1391
|
-
throw new D("option " + o + " must be " +
|
|
1389
|
+
const a = e[o], d = a === void 0 || i(a, o, e);
|
|
1390
|
+
if (d !== !0)
|
|
1391
|
+
throw new D("option " + o + " must be " + d, D.ERR_BAD_OPTION_VALUE);
|
|
1392
1392
|
continue;
|
|
1393
1393
|
}
|
|
1394
1394
|
if (r !== !0)
|
|
1395
1395
|
throw new D("Unknown option " + o, D.ERR_BAD_OPTION);
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
const
|
|
1399
|
-
assertOptions:
|
|
1400
|
-
validators:
|
|
1401
|
-
},
|
|
1398
|
+
const ie = {
|
|
1399
|
+
assertOptions: cs,
|
|
1400
|
+
validators: ge
|
|
1401
|
+
}, U = ie.validators;
|
|
1402
1402
|
let W = class {
|
|
1403
1403
|
constructor(t) {
|
|
1404
1404
|
this.defaults = t, this.interceptors = {
|
|
@@ -1434,18 +1434,18 @@ let W = class {
|
|
|
1434
1434
|
_request(t, r) {
|
|
1435
1435
|
typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = K(this.defaults, r);
|
|
1436
1436
|
const { transitional: s, paramsSerializer: n, headers: o } = r;
|
|
1437
|
-
s !== void 0 &&
|
|
1438
|
-
silentJSONParsing:
|
|
1439
|
-
forcedJSONParsing:
|
|
1440
|
-
clarifyTimeoutError:
|
|
1437
|
+
s !== void 0 && ie.assertOptions(s, {
|
|
1438
|
+
silentJSONParsing: U.transitional(U.boolean),
|
|
1439
|
+
forcedJSONParsing: U.transitional(U.boolean),
|
|
1440
|
+
clarifyTimeoutError: U.transitional(U.boolean)
|
|
1441
1441
|
}, !1), n != null && (l.isFunction(n) ? r.paramsSerializer = {
|
|
1442
1442
|
serialize: n
|
|
1443
|
-
} :
|
|
1444
|
-
encode:
|
|
1445
|
-
serialize:
|
|
1446
|
-
}, !0)),
|
|
1447
|
-
baseUrl:
|
|
1448
|
-
withXsrfToken:
|
|
1443
|
+
} : ie.assertOptions(n, {
|
|
1444
|
+
encode: U.function,
|
|
1445
|
+
serialize: U.function
|
|
1446
|
+
}, !0)), ie.assertOptions(r, {
|
|
1447
|
+
baseUrl: U.spelling("baseURL"),
|
|
1448
|
+
withXsrfToken: U.spelling("withXSRFToken")
|
|
1449
1449
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1450
1450
|
let i = o && l.merge(
|
|
1451
1451
|
o.common,
|
|
@@ -1453,45 +1453,45 @@ let W = class {
|
|
|
1453
1453
|
);
|
|
1454
1454
|
o && l.forEach(
|
|
1455
1455
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1456
|
-
(
|
|
1457
|
-
delete o[
|
|
1456
|
+
(f) => {
|
|
1457
|
+
delete o[f];
|
|
1458
1458
|
}
|
|
1459
1459
|
), r.headers = A.concat(i, o);
|
|
1460
1460
|
const a = [];
|
|
1461
|
-
let
|
|
1461
|
+
let d = !0;
|
|
1462
1462
|
this.interceptors.request.forEach(function(p) {
|
|
1463
|
-
typeof p.runWhen == "function" && p.runWhen(r) === !1 || (
|
|
1463
|
+
typeof p.runWhen == "function" && p.runWhen(r) === !1 || (d = d && p.synchronous, a.unshift(p.fulfilled, p.rejected));
|
|
1464
1464
|
});
|
|
1465
|
-
const
|
|
1465
|
+
const c = [];
|
|
1466
1466
|
this.interceptors.response.forEach(function(p) {
|
|
1467
|
-
|
|
1467
|
+
c.push(p.fulfilled, p.rejected);
|
|
1468
1468
|
});
|
|
1469
|
-
let
|
|
1470
|
-
if (!
|
|
1471
|
-
const
|
|
1472
|
-
for (
|
|
1473
|
-
|
|
1474
|
-
return
|
|
1469
|
+
let u, h = 0, _;
|
|
1470
|
+
if (!d) {
|
|
1471
|
+
const f = [Ze.bind(this), void 0];
|
|
1472
|
+
for (f.unshift.apply(f, a), f.push.apply(f, c), _ = f.length, u = Promise.resolve(r); h < _; )
|
|
1473
|
+
u = u.then(f[h++], f[h++]);
|
|
1474
|
+
return u;
|
|
1475
1475
|
}
|
|
1476
|
-
|
|
1477
|
-
let
|
|
1478
|
-
for (
|
|
1479
|
-
const
|
|
1476
|
+
_ = a.length;
|
|
1477
|
+
let w = r;
|
|
1478
|
+
for (h = 0; h < _; ) {
|
|
1479
|
+
const f = a[h++], p = a[h++];
|
|
1480
1480
|
try {
|
|
1481
|
-
|
|
1482
|
-
} catch (
|
|
1483
|
-
p.call(this,
|
|
1481
|
+
w = f(w);
|
|
1482
|
+
} catch (g) {
|
|
1483
|
+
p.call(this, g);
|
|
1484
1484
|
break;
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
try {
|
|
1488
|
-
|
|
1489
|
-
} catch (
|
|
1490
|
-
return Promise.reject(
|
|
1488
|
+
u = Ze.call(this, w);
|
|
1489
|
+
} catch (f) {
|
|
1490
|
+
return Promise.reject(f);
|
|
1491
1491
|
}
|
|
1492
|
-
for (
|
|
1493
|
-
|
|
1494
|
-
return
|
|
1492
|
+
for (h = 0, _ = c.length; h < _; )
|
|
1493
|
+
u = u.then(c[h++], c[h++]);
|
|
1494
|
+
return u;
|
|
1495
1495
|
}
|
|
1496
1496
|
getUri(t) {
|
|
1497
1497
|
t = K(this.defaults, t);
|
|
@@ -1523,7 +1523,7 @@ l.forEach(["post", "put", "patch"], function(t) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
W.prototype[t] = r(), W.prototype[t + "Form"] = r(!0);
|
|
1525
1525
|
});
|
|
1526
|
-
let
|
|
1526
|
+
let us = class Rt {
|
|
1527
1527
|
constructor(t) {
|
|
1528
1528
|
if (typeof t != "function")
|
|
1529
1529
|
throw new TypeError("executor must be a function.");
|
|
@@ -1596,7 +1596,7 @@ let ds = class Rt {
|
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
1598
|
};
|
|
1599
|
-
function
|
|
1599
|
+
function ds(e) {
|
|
1600
1600
|
return function(r) {
|
|
1601
1601
|
return e.apply(null, r);
|
|
1602
1602
|
};
|
|
@@ -1604,7 +1604,7 @@ function hs(e) {
|
|
|
1604
1604
|
function fs(e) {
|
|
1605
1605
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1606
1606
|
}
|
|
1607
|
-
const
|
|
1607
|
+
const Oe = {
|
|
1608
1608
|
Continue: 100,
|
|
1609
1609
|
SwitchingProtocols: 101,
|
|
1610
1610
|
Processing: 102,
|
|
@@ -1669,8 +1669,8 @@ const $e = {
|
|
|
1669
1669
|
NotExtended: 510,
|
|
1670
1670
|
NetworkAuthenticationRequired: 511
|
|
1671
1671
|
};
|
|
1672
|
-
Object.entries(
|
|
1673
|
-
|
|
1672
|
+
Object.entries(Oe).forEach(([e, t]) => {
|
|
1673
|
+
Oe[t] = e;
|
|
1674
1674
|
});
|
|
1675
1675
|
function Ot(e) {
|
|
1676
1676
|
const t = new W(e), r = ot(W.prototype.request, t);
|
|
@@ -1678,45 +1678,45 @@ function Ot(e) {
|
|
|
1678
1678
|
return Ot(K(e, n));
|
|
1679
1679
|
}, r;
|
|
1680
1680
|
}
|
|
1681
|
-
const S = Ot(
|
|
1681
|
+
const S = Ot(re);
|
|
1682
1682
|
S.Axios = W;
|
|
1683
1683
|
S.CanceledError = X;
|
|
1684
|
-
S.CancelToken =
|
|
1684
|
+
S.CancelToken = us;
|
|
1685
1685
|
S.isCancel = xt;
|
|
1686
1686
|
S.VERSION = Et;
|
|
1687
|
-
S.toFormData =
|
|
1687
|
+
S.toFormData = pe;
|
|
1688
1688
|
S.AxiosError = D;
|
|
1689
1689
|
S.Cancel = S.CanceledError;
|
|
1690
1690
|
S.all = function(t) {
|
|
1691
1691
|
return Promise.all(t);
|
|
1692
1692
|
};
|
|
1693
|
-
S.spread =
|
|
1693
|
+
S.spread = ds;
|
|
1694
1694
|
S.isAxiosError = fs;
|
|
1695
1695
|
S.mergeConfig = K;
|
|
1696
1696
|
S.AxiosHeaders = A;
|
|
1697
1697
|
S.formToJSON = (e) => yt(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1698
1698
|
S.getAdapter = Ct.getAdapter;
|
|
1699
|
-
S.HttpStatusCode =
|
|
1699
|
+
S.HttpStatusCode = Oe;
|
|
1700
1700
|
S.default = S;
|
|
1701
1701
|
const {
|
|
1702
|
-
Axios:
|
|
1703
|
-
AxiosError:
|
|
1704
|
-
CanceledError:
|
|
1705
|
-
isCancel:
|
|
1706
|
-
CancelToken:
|
|
1707
|
-
VERSION:
|
|
1708
|
-
all:
|
|
1709
|
-
Cancel:
|
|
1710
|
-
isAxiosError:
|
|
1711
|
-
spread:
|
|
1712
|
-
toFormData:
|
|
1713
|
-
AxiosHeaders:
|
|
1714
|
-
HttpStatusCode:
|
|
1715
|
-
formToJSON:
|
|
1716
|
-
getAdapter:
|
|
1717
|
-
mergeConfig:
|
|
1702
|
+
Axios: si,
|
|
1703
|
+
AxiosError: ni,
|
|
1704
|
+
CanceledError: oi,
|
|
1705
|
+
isCancel: ii,
|
|
1706
|
+
CancelToken: ai,
|
|
1707
|
+
VERSION: li,
|
|
1708
|
+
all: ci,
|
|
1709
|
+
Cancel: ui,
|
|
1710
|
+
isAxiosError: di,
|
|
1711
|
+
spread: fi,
|
|
1712
|
+
toFormData: hi,
|
|
1713
|
+
AxiosHeaders: pi,
|
|
1714
|
+
HttpStatusCode: mi,
|
|
1715
|
+
formToJSON: gi,
|
|
1716
|
+
getAdapter: bi,
|
|
1717
|
+
mergeConfig: wi
|
|
1718
1718
|
} = S;
|
|
1719
|
-
class
|
|
1719
|
+
class hs {
|
|
1720
1720
|
static getTooltipOptions(t = !0) {
|
|
1721
1721
|
return {
|
|
1722
1722
|
show: t,
|
|
@@ -1729,7 +1729,7 @@ class ps {
|
|
|
1729
1729
|
};
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
class
|
|
1732
|
+
class ce {
|
|
1733
1733
|
static getLabelOptions(t = {}) {
|
|
1734
1734
|
return {
|
|
1735
1735
|
show: (t == null ? void 0 : t.show_label) || (t == null ? void 0 : t.show) || !1,
|
|
@@ -1746,7 +1746,7 @@ class ue {
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const ps = {
|
|
1750
1750
|
show_label: !1,
|
|
1751
1751
|
show_legend: !1,
|
|
1752
1752
|
label: null,
|
|
@@ -1755,19 +1755,19 @@ const ms = {
|
|
|
1755
1755
|
color: null,
|
|
1756
1756
|
title: null
|
|
1757
1757
|
};
|
|
1758
|
-
function
|
|
1758
|
+
function ms() {
|
|
1759
1759
|
const e = "0123456789ABCDEF";
|
|
1760
1760
|
let t = "#";
|
|
1761
1761
|
for (let r = 0; r < 6; r += 1)
|
|
1762
1762
|
t += e[Math.floor(Math.random() * 16)];
|
|
1763
1763
|
return t;
|
|
1764
1764
|
}
|
|
1765
|
-
function ee(e =
|
|
1765
|
+
function ee(e = ps) {
|
|
1766
1766
|
var r;
|
|
1767
1767
|
const t = {
|
|
1768
1768
|
label: {
|
|
1769
1769
|
show: e == null ? void 0 : e.show_label,
|
|
1770
|
-
formatter: (e == null ? void 0 : e.formatter) || ((s) =>
|
|
1770
|
+
formatter: (e == null ? void 0 : e.formatter) || ((s) => I(s)),
|
|
1771
1771
|
...(e == null ? void 0 : e.label) || {}
|
|
1772
1772
|
},
|
|
1773
1773
|
legend: {
|
|
@@ -1791,7 +1791,7 @@ function Ye(e) {
|
|
|
1791
1791
|
fontWeight: 400,
|
|
1792
1792
|
label: e == null ? void 0 : e.label,
|
|
1793
1793
|
show: !0,
|
|
1794
|
-
formatter: (e == null ? void 0 : e.formatter) || ((r) =>
|
|
1794
|
+
formatter: (e == null ? void 0 : e.formatter) || ((r) => I(r)),
|
|
1795
1795
|
margin: (e == null ? void 0 : e.margin) || 7,
|
|
1796
1796
|
interval: (e == null ? void 0 : e.interval) || "auto",
|
|
1797
1797
|
rotate: (e == null ? void 0 : e.rotate) || 0
|
|
@@ -1905,10 +1905,10 @@ const et = [
|
|
|
1905
1905
|
}
|
|
1906
1906
|
},
|
|
1907
1907
|
async initChart(e, t, r) {
|
|
1908
|
-
var s, n, o, i, a,
|
|
1908
|
+
var s, n, o, i, a, d, c;
|
|
1909
1909
|
this.widgetInstance && this.widgetInstance.clear();
|
|
1910
1910
|
try {
|
|
1911
|
-
const
|
|
1911
|
+
const u = this.$refs.chart, h = echarts == null ? void 0 : echarts.init(u), _ = {
|
|
1912
1912
|
tooltip: {
|
|
1913
1913
|
trigger: "axis",
|
|
1914
1914
|
axisPointer: { type: "shadow" },
|
|
@@ -1916,17 +1916,17 @@ const et = [
|
|
|
1916
1916
|
shadowColor: "transparent",
|
|
1917
1917
|
padding: [0, 0, 0, 0],
|
|
1918
1918
|
borderWidth: 0,
|
|
1919
|
-
formatter: (
|
|
1919
|
+
formatter: (w) => {
|
|
1920
1920
|
var v;
|
|
1921
|
-
const
|
|
1922
|
-
let
|
|
1921
|
+
const f = (v = w[0]) == null ? void 0 : v.axisValue;
|
|
1922
|
+
let g = `
|
|
1923
1923
|
<div style="background-color: rgba(255, 255, 255, 0.7)" class="border border-gray-200 text-gray-800 rounded-lg shadow-md dark:bg-neutral-800 dark:border-neutral-700 min-w-28">
|
|
1924
1924
|
<div class="font-semibold text-sm border-b border-solid border-gray-200 text-gray-800 rounded-t-lg dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-200 px-2 py-1">
|
|
1925
|
-
${
|
|
1925
|
+
${f ? this.formatDate(f) : "N/A"}
|
|
1926
1926
|
</div>
|
|
1927
1927
|
`;
|
|
1928
|
-
return
|
|
1929
|
-
|
|
1928
|
+
return w.forEach((k) => {
|
|
1929
|
+
g += `
|
|
1930
1930
|
<div class="flex justify-between items-center text-xs px-2 py-0.5 text-gray-500 dark:text-neutral-400">
|
|
1931
1931
|
<span class="flex items-center">
|
|
1932
1932
|
<span class="w-2.5 h-2.5 me-1.5 rounded-sm" style="background-color: ${k.color};"></span>
|
|
@@ -1935,7 +1935,7 @@ const et = [
|
|
|
1935
1935
|
<span>${this.getMetricValue(k == null ? void 0 : k.data)}</span>
|
|
1936
1936
|
</div>
|
|
1937
1937
|
`;
|
|
1938
|
-
}),
|
|
1938
|
+
}), g += "</div>", g;
|
|
1939
1939
|
}
|
|
1940
1940
|
},
|
|
1941
1941
|
xAxis: {
|
|
@@ -1944,10 +1944,10 @@ const et = [
|
|
|
1944
1944
|
name: ((n = (s = this.styleData) == null ? void 0 : s.x_axis) == null ? void 0 : n.name) || "",
|
|
1945
1945
|
axisLabel: {
|
|
1946
1946
|
...Ye((o = this.styleData) == null ? void 0 : o.x_axis),
|
|
1947
|
-
formatter: (
|
|
1948
|
-
var p,
|
|
1949
|
-
const
|
|
1950
|
-
return ((
|
|
1947
|
+
formatter: (w) => {
|
|
1948
|
+
var p, g;
|
|
1949
|
+
const f = this.formatDate(w);
|
|
1950
|
+
return ((g = (p = this.styleData) == null ? void 0 : p.x_axis) == null ? void 0 : g.overflow) === "ellipsis" && f.length > 10 ? `${f.slice(0, 10)}...` : f;
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
|
1953
1953
|
},
|
|
@@ -1955,7 +1955,7 @@ const et = [
|
|
|
1955
1955
|
data: r != null && r.length ? r : null,
|
|
1956
1956
|
type: r ? "category" : "value",
|
|
1957
1957
|
name: ((a = (i = this.styleData) == null ? void 0 : i.y_axis) == null ? void 0 : a.name) || "",
|
|
1958
|
-
axisLabel: Ye((
|
|
1958
|
+
axisLabel: Ye((d = this.styleData) == null ? void 0 : d.y_axis)
|
|
1959
1959
|
},
|
|
1960
1960
|
series: e != null && e.length ? e : null,
|
|
1961
1961
|
...ee(this.styleData),
|
|
@@ -1965,12 +1965,12 @@ const et = [
|
|
|
1965
1965
|
left: "0%",
|
|
1966
1966
|
top: "20px",
|
|
1967
1967
|
containLabel: !0,
|
|
1968
|
-
...((
|
|
1968
|
+
...((c = this.styleData) == null ? void 0 : c.grid) || {}
|
|
1969
1969
|
}
|
|
1970
1970
|
};
|
|
1971
|
-
await
|
|
1972
|
-
} catch (
|
|
1973
|
-
console.error(
|
|
1971
|
+
await h.setOption(_), h.resize(), this.widgetInstance = h, this.$emit("update:currentWidget", h);
|
|
1972
|
+
} catch (u) {
|
|
1973
|
+
console.error(u);
|
|
1974
1974
|
}
|
|
1975
1975
|
},
|
|
1976
1976
|
async setSeriesOption(e, t) {
|
|
@@ -1993,7 +1993,7 @@ const et = [
|
|
|
1993
1993
|
...n,
|
|
1994
1994
|
...t.options,
|
|
1995
1995
|
tooltip: {
|
|
1996
|
-
...
|
|
1996
|
+
...hs.getTooltipOptions(t.options.tooltip.show)
|
|
1997
1997
|
}
|
|
1998
1998
|
});
|
|
1999
1999
|
},
|
|
@@ -2016,13 +2016,13 @@ const et = [
|
|
|
2016
2016
|
getMetricValue(e) {
|
|
2017
2017
|
var s;
|
|
2018
2018
|
const t = (e == null ? void 0 : e.metric) || e;
|
|
2019
|
-
return parseFloat(t) ? (s =
|
|
2019
|
+
return parseFloat(t) ? (s = I(t, { notation: "standard" })) == null ? void 0 : s.replaceAll(
|
|
2020
2020
|
",",
|
|
2021
2021
|
" "
|
|
2022
2022
|
) : t;
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
|
-
},
|
|
2025
|
+
}, gs = {
|
|
2026
2026
|
name: "VsBar",
|
|
2027
2027
|
mixins: [M],
|
|
2028
2028
|
data() {
|
|
@@ -2066,23 +2066,23 @@ const et = [
|
|
|
2066
2066
|
return { series: [], xs: [], ys: void 0 };
|
|
2067
2067
|
const i = Array.from(
|
|
2068
2068
|
new Set(
|
|
2069
|
-
this.sourceData.filter((
|
|
2069
|
+
this.sourceData.filter((_) => _[this.dimensions[0]]).map((_) => _[this.dimensions[0]])
|
|
2070
2070
|
)
|
|
2071
2071
|
);
|
|
2072
2072
|
let a;
|
|
2073
|
-
this.dimensions[0].includes("date") ? a = i.map((
|
|
2074
|
-
let
|
|
2075
|
-
((t = this.styleData) == null ? void 0 : t.horizontal) === !0 ?
|
|
2076
|
-
const
|
|
2077
|
-
(
|
|
2078
|
-
).map((
|
|
2079
|
-
let
|
|
2080
|
-
return ((r = this.styleData) == null ? void 0 : r.stack) !== !1 ?
|
|
2081
|
-
name:
|
|
2073
|
+
this.dimensions[0].includes("date") ? a = i.map((_) => Ne(_)) : a = [...i];
|
|
2074
|
+
let d, c;
|
|
2075
|
+
((t = this.styleData) == null ? void 0 : t.horizontal) === !0 ? c = [...a] : d = [...a];
|
|
2076
|
+
const u = this.sourceData.filter(
|
|
2077
|
+
(_) => parseFloat(_[this.dimensions[1]]) && _[this.dimensions[0]]
|
|
2078
|
+
).map((_) => parseFloat(_[this.dimensions[1]]));
|
|
2079
|
+
let h;
|
|
2080
|
+
return ((r = this.styleData) == null ? void 0 : r.stack) !== !1 ? h = this.prepareStackData() : ((s = this.styleData) == null ? void 0 : s.negative_waterfall) === !0 ? h = this.prepareNegativeWaterfall() : ((n = this.styleData) == null ? void 0 : n.waterfall) === !0 ? h = this.prepareWaterfallData(u) : ((o = this.styleData) == null ? void 0 : o.accumulative) === !0 ? h = this.prepareAccumulative(u) : h = this.dimensions.slice(1).map((w, f) => ({
|
|
2081
|
+
name: w,
|
|
2082
2082
|
type: "bar",
|
|
2083
|
-
stack: `a${
|
|
2084
|
-
data: this.sourceData.filter((p) => parseFloat(p[
|
|
2085
|
-
})), { series:
|
|
2083
|
+
stack: `a${f}`,
|
|
2084
|
+
data: this.sourceData.filter((p) => parseFloat(p[w]) && w).map((p) => parseFloat(p[w]))
|
|
2085
|
+
})), { series: h, xs: d, ys: c };
|
|
2086
2086
|
} catch (i) {
|
|
2087
2087
|
return console.error(i), { series: [], xs: [], ys: [] };
|
|
2088
2088
|
}
|
|
@@ -2174,23 +2174,23 @@ const et = [
|
|
|
2174
2174
|
];
|
|
2175
2175
|
}
|
|
2176
2176
|
}
|
|
2177
|
-
},
|
|
2177
|
+
}, R = (e, t) => {
|
|
2178
2178
|
const r = e.__vccOpts || e;
|
|
2179
2179
|
for (const [s, n] of t)
|
|
2180
2180
|
r[s] = n;
|
|
2181
2181
|
return r;
|
|
2182
|
-
},
|
|
2183
|
-
function
|
|
2184
|
-
return
|
|
2182
|
+
}, bs = ["id"];
|
|
2183
|
+
function ws(e, t, r, s, n, o) {
|
|
2184
|
+
return m(), x("div", {
|
|
2185
2185
|
id: o.uniqueID,
|
|
2186
2186
|
ref: "chart",
|
|
2187
2187
|
class: "h-full w-full min-h-[200px]"
|
|
2188
|
-
}, null, 8,
|
|
2188
|
+
}, null, 8, bs);
|
|
2189
2189
|
}
|
|
2190
|
-
const
|
|
2190
|
+
const ys = /* @__PURE__ */ R(gs, [["render", ws]]), xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2191
2191
|
__proto__: null,
|
|
2192
|
-
default:
|
|
2193
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2192
|
+
default: ys
|
|
2193
|
+
}, Symbol.toStringTag, { value: "Module" })), _s = {
|
|
2194
2194
|
name: "VsPie",
|
|
2195
2195
|
props: ["currentWidget"],
|
|
2196
2196
|
mixins: [M],
|
|
@@ -2237,7 +2237,7 @@ const xs = /* @__PURE__ */ O(bs, [["render", ys]]), _s = /* @__PURE__ */ Object.
|
|
|
2237
2237
|
const { name: r, value: s, percent: n } = e;
|
|
2238
2238
|
return `
|
|
2239
2239
|
<div style="background-color:${t[0]}; font-size:12px; font-family:Helvetica, Arial, sans-serif; color:#ffff; padding:5px; border-radius:5px;">
|
|
2240
|
-
${r == null ? void 0 : r.replace("null", "Не визначено")}: ${
|
|
2240
|
+
${r == null ? void 0 : r.replace("null", "Не визначено")}: ${I(s)} (${n}%)
|
|
2241
2241
|
</div>`;
|
|
2242
2242
|
},
|
|
2243
2243
|
prepareData() {
|
|
@@ -2247,26 +2247,26 @@ const xs = /* @__PURE__ */ O(bs, [["render", ys]]), _s = /* @__PURE__ */ Object.
|
|
|
2247
2247
|
return console.warn("No source data available"), null;
|
|
2248
2248
|
const i = Array.from(
|
|
2249
2249
|
new Set(
|
|
2250
|
-
(this.sourceData || []).map((
|
|
2250
|
+
(this.sourceData || []).map((f) => f[this.dimensions[0]])
|
|
2251
2251
|
)
|
|
2252
2252
|
), a = Array.from(
|
|
2253
2253
|
new Set(
|
|
2254
|
-
(this.sourceData || []).map((
|
|
2254
|
+
(this.sourceData || []).map((f) => f[this.dimensions[1]])
|
|
2255
2255
|
)
|
|
2256
|
-
),
|
|
2256
|
+
), d = parseInt(
|
|
2257
2257
|
(this.sourceData || []).reduce(
|
|
2258
|
-
(
|
|
2258
|
+
(f, p) => f + parseFloat((p == null ? void 0 : p.metric) || 0),
|
|
2259
2259
|
0
|
|
2260
2260
|
),
|
|
2261
2261
|
10
|
|
2262
|
-
),
|
|
2263
|
-
const
|
|
2262
|
+
), c = i.map((f, p) => {
|
|
2263
|
+
const g = (a[p] / d * 100).toFixed(2);
|
|
2264
2264
|
return {
|
|
2265
|
-
name: `${
|
|
2265
|
+
name: `${f} (${g}%)`,
|
|
2266
2266
|
value: a[p]
|
|
2267
2267
|
};
|
|
2268
|
-
}),
|
|
2269
|
-
return this.styleData.legend =
|
|
2268
|
+
}), u = ((t = this.styleData) == null ? void 0 : t.innerRadius) || "80%", h = ((r = this.styleData) == null ? void 0 : r.outerRadius) || "100%", _ = [u, h];
|
|
2269
|
+
return this.styleData.legend = ce.getLegendOpions({
|
|
2270
2270
|
borderRadius: 10,
|
|
2271
2271
|
height: "100%",
|
|
2272
2272
|
padding: 10,
|
|
@@ -2274,22 +2274,22 @@ const xs = /* @__PURE__ */ O(bs, [["render", ys]]), _s = /* @__PURE__ */ Object.
|
|
|
2274
2274
|
type: "scroll",
|
|
2275
2275
|
itemWidth: 14,
|
|
2276
2276
|
itemHeight: 14,
|
|
2277
|
-
formatter: (
|
|
2277
|
+
formatter: (f) => {
|
|
2278
2278
|
var p;
|
|
2279
|
-
return (p =
|
|
2279
|
+
return (p = f == null ? void 0 : f.replace("null", "Не визначено")) == null ? void 0 : p.replace("NaN", "0.00");
|
|
2280
2280
|
},
|
|
2281
2281
|
...((s = this.styleData) == null ? void 0 : s.legend) || {}
|
|
2282
|
-
}), this.styleData.label =
|
|
2282
|
+
}), this.styleData.label = ce.getLabelOptions(
|
|
2283
2283
|
(n = this.styleData) == null ? void 0 : n.label
|
|
2284
2284
|
), this.styleData.show_legend = ((o = this.styleData) == null ? void 0 : o.show_legend) ?? !0, { series: [
|
|
2285
2285
|
{
|
|
2286
2286
|
name: this.titleCharts ? this.titleCharts : this.dimensions[0],
|
|
2287
2287
|
type: "pie",
|
|
2288
|
-
radius:
|
|
2288
|
+
radius: _,
|
|
2289
2289
|
center: ["50%", "60%"],
|
|
2290
2290
|
height: "75%",
|
|
2291
2291
|
...ee(this.styleData),
|
|
2292
|
-
data:
|
|
2292
|
+
data: c
|
|
2293
2293
|
}
|
|
2294
2294
|
] };
|
|
2295
2295
|
} catch (i) {
|
|
@@ -2329,7 +2329,7 @@ const xs = /* @__PURE__ */ O(bs, [["render", ys]]), _s = /* @__PURE__ */ Object.
|
|
|
2329
2329
|
series: e,
|
|
2330
2330
|
...ee(this.styleData || {}),
|
|
2331
2331
|
title: {
|
|
2332
|
-
text:
|
|
2332
|
+
text: I(r),
|
|
2333
2333
|
left: "center",
|
|
2334
2334
|
top: "41%",
|
|
2335
2335
|
textStyle: {
|
|
@@ -2348,18 +2348,18 @@ const xs = /* @__PURE__ */ O(bs, [["render", ys]]), _s = /* @__PURE__ */ Object.
|
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
|
-
},
|
|
2352
|
-
function
|
|
2353
|
-
return
|
|
2351
|
+
}, Ds = ["id"];
|
|
2352
|
+
function ks(e, t, r, s, n, o) {
|
|
2353
|
+
return m(), x("div", {
|
|
2354
2354
|
id: o.uniqueID,
|
|
2355
2355
|
ref: "chart",
|
|
2356
2356
|
class: "h-full min-h-[200px] flex items-center"
|
|
2357
|
-
}, null, 8,
|
|
2357
|
+
}, null, 8, Ds);
|
|
2358
2358
|
}
|
|
2359
|
-
const
|
|
2359
|
+
const vs = /* @__PURE__ */ R(_s, [["render", ks]]), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2360
2360
|
__proto__: null,
|
|
2361
|
-
default:
|
|
2362
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2361
|
+
default: vs
|
|
2362
|
+
}, Symbol.toStringTag, { value: "Module" })), Cs = {
|
|
2363
2363
|
name: "VsPie",
|
|
2364
2364
|
props: ["currentWidget"],
|
|
2365
2365
|
mixins: [M],
|
|
@@ -2406,7 +2406,7 @@ const Ss = /* @__PURE__ */ O(Ds, [["render", vs]]), Cs = /* @__PURE__ */ Object.
|
|
|
2406
2406
|
const { name: r, value: s, percent: n } = e;
|
|
2407
2407
|
return `
|
|
2408
2408
|
<div style="background-color:${t[0]}; font-size:12px; font-family:Helvetica, Arial, sans-serif; color:#ffff; padding:5px; border-radius:5px;">
|
|
2409
|
-
${r == null ? void 0 : r.replace("null", "Не визначено")}: ${
|
|
2409
|
+
${r == null ? void 0 : r.replace("null", "Не визначено")}: ${I(s)} (${n}%)
|
|
2410
2410
|
</div>`;
|
|
2411
2411
|
},
|
|
2412
2412
|
prepareData() {
|
|
@@ -2415,46 +2415,46 @@ const Ss = /* @__PURE__ */ O(Ds, [["render", vs]]), Cs = /* @__PURE__ */ Object.
|
|
|
2415
2415
|
this.styleData = this.styleData || {};
|
|
2416
2416
|
const o = Array.from(
|
|
2417
2417
|
new Set(
|
|
2418
|
-
(this.sourceData || []).map((
|
|
2418
|
+
(this.sourceData || []).map((w) => w[this.dimensions[0]])
|
|
2419
2419
|
)
|
|
2420
2420
|
), i = Array.from(
|
|
2421
2421
|
new Set(
|
|
2422
|
-
(this.sourceData || []).map((
|
|
2422
|
+
(this.sourceData || []).map((w) => w[this.dimensions[1]])
|
|
2423
2423
|
)
|
|
2424
2424
|
), a = parseInt(
|
|
2425
2425
|
(this.sourceData || []).reduce(
|
|
2426
|
-
(
|
|
2426
|
+
(w, f) => w + parseFloat(f == null ? void 0 : f.metric),
|
|
2427
2427
|
0
|
|
2428
2428
|
),
|
|
2429
2429
|
10
|
|
2430
|
-
),
|
|
2431
|
-
const p = (i[
|
|
2430
|
+
), d = o.map((w, f) => {
|
|
2431
|
+
const p = (i[f] / a * 100).toFixed(2);
|
|
2432
2432
|
return {
|
|
2433
|
-
name: `${
|
|
2434
|
-
value: i[
|
|
2433
|
+
name: `${w} (${p}%)`,
|
|
2434
|
+
value: i[f]
|
|
2435
2435
|
};
|
|
2436
|
-
}),
|
|
2437
|
-
return this.styleData.legend =
|
|
2436
|
+
}), c = ((e = this.styleData) == null ? void 0 : e.innerRadius) || "0%", u = ((t = this.styleData) == null ? void 0 : t.outerRadius) || "100%", h = [c, u];
|
|
2437
|
+
return this.styleData.legend = ce.getLegendOpions({
|
|
2438
2438
|
borderRadius: 10,
|
|
2439
2439
|
height: "100%",
|
|
2440
2440
|
padding: 10,
|
|
2441
2441
|
type: "scroll",
|
|
2442
2442
|
itemWidth: 14,
|
|
2443
2443
|
itemHeight: 14,
|
|
2444
|
-
formatter: (
|
|
2444
|
+
formatter: (w) => w == null ? void 0 : w.replace("null", "Не визначено"),
|
|
2445
2445
|
textStyle: { fontSize: "14px" },
|
|
2446
2446
|
...((r = this.styleData) == null ? void 0 : r.legend) || {}
|
|
2447
|
-
}), this.styleData.label =
|
|
2447
|
+
}), this.styleData.label = ce.getLabelOptions(
|
|
2448
2448
|
(s = this.styleData) == null ? void 0 : s.label
|
|
2449
2449
|
), this.styleData.show_legend = ((n = this.styleData) == null ? void 0 : n.show_legend) ?? !0, { series: [
|
|
2450
2450
|
{
|
|
2451
2451
|
name: this.titleCharts ? this.titleCharts : this.dimensions[0],
|
|
2452
2452
|
type: "pie",
|
|
2453
|
-
radius:
|
|
2453
|
+
radius: h,
|
|
2454
2454
|
center: ["50%", "60%"],
|
|
2455
2455
|
height: "75%",
|
|
2456
2456
|
...ee(this.styleData),
|
|
2457
|
-
data:
|
|
2457
|
+
data: d
|
|
2458
2458
|
}
|
|
2459
2459
|
] };
|
|
2460
2460
|
} catch (o) {
|
|
@@ -2497,18 +2497,18 @@ const Ss = /* @__PURE__ */ O(Ds, [["render", vs]]), Cs = /* @__PURE__ */ Object.
|
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
2499
|
}
|
|
2500
|
-
},
|
|
2501
|
-
function
|
|
2502
|
-
return
|
|
2500
|
+
}, Es = ["id"];
|
|
2501
|
+
function Rs(e, t, r, s, n, o) {
|
|
2502
|
+
return m(), x("div", {
|
|
2503
2503
|
id: o.uniqueID,
|
|
2504
2504
|
ref: "chart",
|
|
2505
2505
|
class: "h-full min-h-[200px] flex items-center"
|
|
2506
|
-
}, null, 8,
|
|
2506
|
+
}, null, 8, Es);
|
|
2507
2507
|
}
|
|
2508
|
-
const
|
|
2508
|
+
const Os = /* @__PURE__ */ R(Cs, [["render", Rs]]), $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2509
2509
|
__proto__: null,
|
|
2510
|
-
default:
|
|
2511
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2510
|
+
default: Os
|
|
2511
|
+
}, Symbol.toStringTag, { value: "Module" })), Ts = {
|
|
2512
2512
|
name: "VsLine",
|
|
2513
2513
|
mixins: [M],
|
|
2514
2514
|
data() {
|
|
@@ -2550,7 +2550,7 @@ const $s = /* @__PURE__ */ O(Es, [["render", Os]]), Ts = /* @__PURE__ */ Object.
|
|
|
2550
2550
|
type: "line",
|
|
2551
2551
|
stack: "a",
|
|
2552
2552
|
areaStyle: this.styleData.area ? {} : null,
|
|
2553
|
-
data: this.sourceData.filter((
|
|
2553
|
+
data: this.sourceData.filter((d) => parseFloat(d[a])).map((d) => parseFloat(d[a]))
|
|
2554
2554
|
})) : o = [
|
|
2555
2555
|
{
|
|
2556
2556
|
name: this.title,
|
|
@@ -2565,18 +2565,18 @@ const $s = /* @__PURE__ */ O(Es, [["render", Os]]), Ts = /* @__PURE__ */ Object.
|
|
|
2565
2565
|
}
|
|
2566
2566
|
}
|
|
2567
2567
|
}
|
|
2568
|
-
},
|
|
2569
|
-
function
|
|
2570
|
-
return
|
|
2568
|
+
}, Ns = ["id"];
|
|
2569
|
+
function As(e, t, r, s, n, o) {
|
|
2570
|
+
return m(), x("div", {
|
|
2571
2571
|
id: n.uniqueID,
|
|
2572
2572
|
ref: "chart",
|
|
2573
2573
|
style: { height: "400px" }
|
|
2574
|
-
}, null, 8,
|
|
2574
|
+
}, null, 8, Ns);
|
|
2575
2575
|
}
|
|
2576
|
-
const
|
|
2576
|
+
const Fs = /* @__PURE__ */ R(Ts, [["render", As]]), Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2577
2577
|
__proto__: null,
|
|
2578
|
-
default:
|
|
2579
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2578
|
+
default: Fs
|
|
2579
|
+
}, Symbol.toStringTag, { value: "Module" })), Ps = {
|
|
2580
2580
|
name: "VsStat",
|
|
2581
2581
|
mixins: [M],
|
|
2582
2582
|
data() {
|
|
@@ -2601,53 +2601,53 @@ const Ls = /* @__PURE__ */ O(Ns, [["render", Fs]]), Ps = /* @__PURE__ */ Object.
|
|
|
2601
2601
|
this.columns = Object.keys(this.sourceData[0]);
|
|
2602
2602
|
const e = this.getValues();
|
|
2603
2603
|
this.sumValue = e.reduce((t, r) => t + r, 0), this.sourceData.forEach((t, r) => {
|
|
2604
|
-
t.color = r < et.length - 1 ? et[r] :
|
|
2604
|
+
t.color = r < et.length - 1 ? et[r] : ms();
|
|
2605
2605
|
});
|
|
2606
2606
|
},
|
|
2607
2607
|
formattedValue(e) {
|
|
2608
2608
|
const t = parseFloat(e);
|
|
2609
|
-
return
|
|
2609
|
+
return I(t);
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
},
|
|
2612
|
+
}, Bs = { class: "flex flex-col w-full h-full pt-[16px] rounded-xl" }, Us = { class: "flex flex-col justify-between w-full h-full" }, js = { class: "w-full h-full pb-6 space-y-4" }, Is = { class: "flex w-full h-3 rounded-full gap-x-1 min-h-3 custom-x-scrollbar" }, Vs = ["onMouseover"], zs = {
|
|
2613
2613
|
key: 0,
|
|
2614
2614
|
class: "absolute top-[-1] left-1/2 transform -translate-x-1/2 -translate-y-full bg-black text-white rounded px-2 py-1"
|
|
2615
|
-
},
|
|
2616
|
-
function
|
|
2617
|
-
return
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
(
|
|
2622
|
-
var
|
|
2623
|
-
return
|
|
2615
|
+
}, Ms = { class: "h-[calc(100%-20px)] w-full custom-scrollbar" }, qs = { class: "grid items-center justify-between grid-cols-2 py-2 gap-x-4" }, Hs = { class: "flex items-center" }, Ws = { class: "text-sm text-gray-800" }, Js = { class: "text-end" }, Ks = { class: "text-sm text-gray-500" };
|
|
2616
|
+
function Gs(e, t, r, s, n, o) {
|
|
2617
|
+
return m(), x("div", Bs, [
|
|
2618
|
+
b("div", Us, [
|
|
2619
|
+
b("div", js, [
|
|
2620
|
+
b("div", Is, [
|
|
2621
|
+
(m(!0), x(T, null, F(e.sourceData, (i, a) => {
|
|
2622
|
+
var d, c, u, h;
|
|
2623
|
+
return m(), x("div", {
|
|
2624
2624
|
class: J(["flex flex-col min-w-[5px] justify-center min-h-2.5 h-2.5 text-xs text-white text-center whitespace-nowrap", `bg-[${i.color}]`]),
|
|
2625
|
-
style:
|
|
2626
|
-
width: `${parseFloat(i == null ? void 0 : i[(
|
|
2625
|
+
style: $e({
|
|
2626
|
+
width: `${parseFloat(i == null ? void 0 : i[(d = n.columns) == null ? void 0 : d[1]]) / n.sumValue * 100}%`
|
|
2627
2627
|
}),
|
|
2628
2628
|
role: "progressbar",
|
|
2629
2629
|
"aria-valuenow": "42",
|
|
2630
2630
|
"aria-valuemin": "0",
|
|
2631
2631
|
"aria-valuemax": "100",
|
|
2632
|
-
onMouseover: (
|
|
2633
|
-
onMouseleave: t[0] || (t[0] = (
|
|
2632
|
+
onMouseover: (_) => n.showTooltip = a,
|
|
2633
|
+
onMouseleave: t[0] || (t[0] = (_) => n.showTooltip = -1)
|
|
2634
2634
|
}, [
|
|
2635
|
-
n.showTooltip > -1 ? (
|
|
2636
|
-
], 46,
|
|
2635
|
+
n.showTooltip > -1 ? (m(), x("div", zs, C(e.sourceData[n.showTooltip][n.columns[0]]) + " " + C((parseFloat((h = (c = e.sourceData) == null ? void 0 : c[n.showTooltip]) == null ? void 0 : h[(u = n.columns) == null ? void 0 : u[1]]) / n.sumValue * 100).toFixed(2)) + "% ", 1)) : $("", !0)
|
|
2636
|
+
], 46, Vs);
|
|
2637
2637
|
}), 256))
|
|
2638
2638
|
]),
|
|
2639
|
-
|
|
2640
|
-
(
|
|
2641
|
-
var a,
|
|
2642
|
-
return
|
|
2643
|
-
|
|
2644
|
-
|
|
2639
|
+
b("ul", Ms, [
|
|
2640
|
+
(m(!0), x(T, null, F(e.sourceData, (i) => {
|
|
2641
|
+
var a, d;
|
|
2642
|
+
return m(), x("li", qs, [
|
|
2643
|
+
b("div", Hs, [
|
|
2644
|
+
b("span", {
|
|
2645
2645
|
class: J(["shrink-0 size-2.5 inline-block rounded-sm me-2.5 min-w-[10px] w-[10px] h-[10px] min-h-[10px]", `bg-[${i.color}]`])
|
|
2646
2646
|
}, null, 2),
|
|
2647
|
-
|
|
2647
|
+
b("span", Ws, C((i == null ? void 0 : i[(a = n.columns) == null ? void 0 : a[0]]) || "Не визначено"), 1)
|
|
2648
2648
|
]),
|
|
2649
|
-
|
|
2650
|
-
|
|
2649
|
+
b("div", Js, [
|
|
2650
|
+
b("span", Ks, C(o.formattedValue(i == null ? void 0 : i[(d = n.columns) == null ? void 0 : d[1]]) || "-"), 1)
|
|
2651
2651
|
])
|
|
2652
2652
|
]);
|
|
2653
2653
|
}), 256))
|
|
@@ -2656,10 +2656,10 @@ function Xs(e, t, r, s, n, o) {
|
|
|
2656
2656
|
])
|
|
2657
2657
|
]);
|
|
2658
2658
|
}
|
|
2659
|
-
const
|
|
2659
|
+
const Xs = /* @__PURE__ */ R(Ps, [["render", Gs]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2660
2660
|
__proto__: null,
|
|
2661
|
-
default:
|
|
2662
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2661
|
+
default: Xs
|
|
2662
|
+
}, Symbol.toStringTag, { value: "Module" })), Qs = {
|
|
2663
2663
|
name: "VsProgressBar",
|
|
2664
2664
|
mixins: [M],
|
|
2665
2665
|
data() {
|
|
@@ -2686,46 +2686,46 @@ const Zs = /* @__PURE__ */ O(Bs, [["render", Xs]]), Qs = /* @__PURE__ */ Object.
|
|
|
2686
2686
|
this.maxValue = Math.max(...e);
|
|
2687
2687
|
},
|
|
2688
2688
|
formattedValue(e) {
|
|
2689
|
-
return
|
|
2689
|
+
return I(e);
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
-
},
|
|
2692
|
+
}, Ys = {
|
|
2693
2693
|
key: 0,
|
|
2694
2694
|
class: "flex flex-col h-full pt-[16px] rounded-xl"
|
|
2695
|
-
},
|
|
2695
|
+
}, en = { class: "h-full pt-0 pb-6 space-y-4" }, tn = { class: "h-full space-y-4 custom-scrollbar" }, rn = { class: "flex items-center justify-between mr-2 gap-x-2" }, sn = { class: "grid items-center w-full grid-cols-2 gap-x-2" }, nn = { class: "text-sm text-gray-800" }, on = {
|
|
2696
2696
|
class: "flex justify-end",
|
|
2697
2697
|
role: "progressbar",
|
|
2698
2698
|
"aria-valuenow": "100",
|
|
2699
2699
|
"aria-valuemin": "0",
|
|
2700
2700
|
"aria-valuemax": "100"
|
|
2701
|
-
},
|
|
2702
|
-
function
|
|
2703
|
-
return n.columns ? (
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
(
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2701
|
+
}, an = { class: "min-w-[60px] text-end" }, ln = { class: "text-sm text-gray-500" };
|
|
2702
|
+
function cn(e, t, r, s, n, o) {
|
|
2703
|
+
return n.columns ? (m(), x("div", Ys, [
|
|
2704
|
+
b("div", en, [
|
|
2705
|
+
b("ul", tn, [
|
|
2706
|
+
(m(!0), x(T, null, F(e.sourceData, (i, a) => (m(), x("li", rn, [
|
|
2707
|
+
b("div", sn, [
|
|
2708
|
+
b("span", nn, C(i[n.columns[0]]), 1),
|
|
2709
|
+
b("div", on, [
|
|
2710
|
+
b("div", {
|
|
2711
2711
|
class: "h-1.5 flex flex-col justify-center overflow-hidden bg-indigo-500 rounded-full text-xs text-white text-center whitespace-nowrap",
|
|
2712
|
-
style:
|
|
2712
|
+
style: $e({
|
|
2713
2713
|
width: `${parseFloat(i[n.columns[1]]) / n.maxValue * 100}%`
|
|
2714
2714
|
})
|
|
2715
2715
|
}, null, 4)
|
|
2716
2716
|
])
|
|
2717
2717
|
]),
|
|
2718
|
-
|
|
2719
|
-
|
|
2718
|
+
b("div", an, [
|
|
2719
|
+
b("span", ln, C(o.formattedValue(i[n.columns[1]])), 1)
|
|
2720
2720
|
])
|
|
2721
2721
|
]))), 256))
|
|
2722
2722
|
])
|
|
2723
2723
|
])
|
|
2724
|
-
])) :
|
|
2724
|
+
])) : $("", !0);
|
|
2725
2725
|
}
|
|
2726
|
-
const
|
|
2726
|
+
const un = /* @__PURE__ */ R(Qs, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2727
2727
|
__proto__: null,
|
|
2728
|
-
default:
|
|
2728
|
+
default: un
|
|
2729
2729
|
}, Symbol.toStringTag, { value: "Module" })), fn = {
|
|
2730
2730
|
name: "VsListbar",
|
|
2731
2731
|
mixins: [M],
|
|
@@ -2758,49 +2758,49 @@ const dn = /* @__PURE__ */ O(Ys, [["render", un]]), hn = /* @__PURE__ */ Object.
|
|
|
2758
2758
|
this.maxValue = Math.max(...e || []), this.restDimensions = (s = this.columns) == null ? void 0 : s.filter((n, o) => o !== 0);
|
|
2759
2759
|
},
|
|
2760
2760
|
formattedValue(e) {
|
|
2761
|
-
return
|
|
2761
|
+
return I(e);
|
|
2762
2762
|
},
|
|
2763
2763
|
getWidth(e) {
|
|
2764
2764
|
return `${e / this.maxValue * 100}%`;
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
|
-
},
|
|
2768
|
-
function
|
|
2769
|
-
return
|
|
2770
|
-
|
|
2771
|
-
(
|
|
2772
|
-
var
|
|
2773
|
-
return
|
|
2767
|
+
}, hn = { class: "h-full pt-[20px] list-bar" }, pn = { class: "space-y-2 custom-scrollbar h-full h-[calc(100%-20px)]" }, mn = { class: "relative w-full truncate" }, gn = { class: "relative z-[1] text-sm block py-1 px-2 w-full text-sm truncate text-gray-800" }, bn = { class: "text-[14px] text-gray-500" };
|
|
2768
|
+
function wn(e, t, r, s, n, o) {
|
|
2769
|
+
return m(), x("div", hn, [
|
|
2770
|
+
b("ul", pn, [
|
|
2771
|
+
(m(!0), x(T, null, F(e.sourceData, (i, a) => {
|
|
2772
|
+
var d, c, u;
|
|
2773
|
+
return m(), x("li", {
|
|
2774
2774
|
key: a,
|
|
2775
2775
|
class: "flex items-center justify-between w-full gap-x-2"
|
|
2776
2776
|
}, [
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
class: J(["absolute inset-y-0 h-full rounded start-0", i != null && i[(
|
|
2781
|
-
style:
|
|
2777
|
+
b("div", mn, [
|
|
2778
|
+
b("span", gn, C((i == null ? void 0 : i[(d = n.columns) == null ? void 0 : d[0]]) || "Без категорії"), 1),
|
|
2779
|
+
b("div", {
|
|
2780
|
+
class: J(["absolute inset-y-0 h-full rounded start-0", i != null && i[(c = n.columns) == null ? void 0 : c[0]] ? "bg-indigo-100" : "bg-gray-100"]),
|
|
2781
|
+
style: $e({ width: o.getWidth(i == null ? void 0 : i[(u = n.columns) == null ? void 0 : u[1]]) })
|
|
2782
2782
|
}, null, 6)
|
|
2783
2783
|
]),
|
|
2784
|
-
(
|
|
2785
|
-
key:
|
|
2784
|
+
(m(!0), x(T, null, F(n.restDimensions, (h, _) => (m(), x("div", {
|
|
2785
|
+
key: _,
|
|
2786
2786
|
class: "w-20 mr-2 text-end"
|
|
2787
2787
|
}, [
|
|
2788
|
-
|
|
2788
|
+
b("span", bn, C(o.formattedValue(i == null ? void 0 : i[h])), 1)
|
|
2789
2789
|
]))), 128))
|
|
2790
2790
|
]);
|
|
2791
2791
|
}), 128))
|
|
2792
2792
|
])
|
|
2793
2793
|
]);
|
|
2794
2794
|
}
|
|
2795
|
-
const
|
|
2795
|
+
const yn = /* @__PURE__ */ R(fn, [["render", wn]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2796
2796
|
__proto__: null,
|
|
2797
|
-
default:
|
|
2798
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2797
|
+
default: yn
|
|
2798
|
+
}, Symbol.toStringTag, { value: "Module" })), De = {
|
|
2799
2799
|
week: "Тиждень",
|
|
2800
2800
|
month: "Місяць",
|
|
2801
2801
|
quarter: "Квартал",
|
|
2802
2802
|
year: "Рік"
|
|
2803
|
-
},
|
|
2803
|
+
}, _n = ["onClick"], Dn = { class: "flex items-center justify-between w-full" }, kn = { key: 0 }, vn = {
|
|
2804
2804
|
__name: "vs-bi-dropdown",
|
|
2805
2805
|
props: {
|
|
2806
2806
|
title: String,
|
|
@@ -2809,31 +2809,31 @@ const xn = /* @__PURE__ */ O(fn, [["render", yn]]), _n = /* @__PURE__ */ Object.
|
|
|
2809
2809
|
},
|
|
2810
2810
|
emits: ["selected"],
|
|
2811
2811
|
setup(e, { emit: t }) {
|
|
2812
|
-
const r = e, s = t, n =
|
|
2813
|
-
const
|
|
2814
|
-
(
|
|
2812
|
+
const r = e, s = t, n = be(!1), o = be(r.value || null), i = be(null), a = Be(() => typeof r.options == "string" ? r.options.split(",").map((w, f) => ({ id: f, text: w.trim() })) : r.options), d = Be(() => {
|
|
2813
|
+
const w = a.value.find(
|
|
2814
|
+
(f) => (f.id || f) === o.value
|
|
2815
2815
|
);
|
|
2816
|
-
return
|
|
2817
|
-
}),
|
|
2818
|
-
o.value =
|
|
2819
|
-
},
|
|
2820
|
-
i.value && !i.value.contains(
|
|
2821
|
-
},
|
|
2816
|
+
return w ? w.text || w : r.title;
|
|
2817
|
+
}), c = (w) => {
|
|
2818
|
+
o.value = w.id || w, n.value = !1, s("selected", (w == null ? void 0 : w.id) || w), document.removeEventListener("click", u);
|
|
2819
|
+
}, u = (w) => {
|
|
2820
|
+
i.value && !i.value.contains(w.target) && (n.value = !1, document.removeEventListener("click", u));
|
|
2821
|
+
}, h = () => {
|
|
2822
2822
|
n.value = !n.value, n.value ? setTimeout(() => {
|
|
2823
|
-
document.addEventListener("click",
|
|
2824
|
-
}, 200) : document.removeEventListener("click",
|
|
2825
|
-
},
|
|
2823
|
+
document.addEventListener("click", u);
|
|
2824
|
+
}, 200) : document.removeEventListener("click", u);
|
|
2825
|
+
}, _ = (w) => (De == null ? void 0 : De[w]) || w;
|
|
2826
2826
|
return $t(() => {
|
|
2827
|
-
document.removeEventListener("click",
|
|
2828
|
-
}), (
|
|
2829
|
-
|
|
2827
|
+
document.removeEventListener("click", u);
|
|
2828
|
+
}), (w, f) => (m(), x(T, null, [
|
|
2829
|
+
b("button", {
|
|
2830
2830
|
type: "button",
|
|
2831
2831
|
"aria-expanded": "true",
|
|
2832
2832
|
class: "hs-select-disabled:pointer-events-none hs-select-disabled:opacity-50 relative group pr-2 -ms-2 py-1.5 pl-2.5 inline-flex shrink-0 justify-center items-center gap-x-1.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100 before:absolute before:inset-0 before:z-[1] dark:text-neutral-400 dark:hover:bg-neutral-800 dark:focus:bg-neutral-700",
|
|
2833
|
-
onClick:
|
|
2833
|
+
onClick: h
|
|
2834
2834
|
}, [
|
|
2835
|
-
|
|
2836
|
-
|
|
2835
|
+
Te(C(_(d.value)) + " ", 1),
|
|
2836
|
+
f[0] || (f[0] = b("svg", {
|
|
2837
2837
|
class: "shrink-0 size-3.5 text-gray-600 dark:text-neutral-400",
|
|
2838
2838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2839
2839
|
width: "16",
|
|
@@ -2845,10 +2845,10 @@ const xn = /* @__PURE__ */ O(fn, [["render", yn]]), _n = /* @__PURE__ */ Object.
|
|
|
2845
2845
|
"stroke-linecap": "round",
|
|
2846
2846
|
"stroke-linejoin": "round"
|
|
2847
2847
|
}, [
|
|
2848
|
-
|
|
2848
|
+
b("path", { d: "m6 9 6 6 6-6" })
|
|
2849
2849
|
], -1))
|
|
2850
2850
|
]),
|
|
2851
|
-
n.value ? (
|
|
2851
|
+
n.value ? (m(), x("div", {
|
|
2852
2852
|
key: 0,
|
|
2853
2853
|
ref_key: "biDropdown",
|
|
2854
2854
|
ref: i,
|
|
@@ -2859,15 +2859,15 @@ const xn = /* @__PURE__ */ O(fn, [["render", yn]]), _n = /* @__PURE__ */ Object.
|
|
|
2859
2859
|
"aria-orientation": "vertical",
|
|
2860
2860
|
style: { "margin-top": "10px" }
|
|
2861
2861
|
}, [
|
|
2862
|
-
(
|
|
2862
|
+
(m(!0), x(T, null, F(a.value, (p) => (m(), x("div", {
|
|
2863
2863
|
key: p.id || p,
|
|
2864
2864
|
class: "cursor-pointer selected hs-selected:bg-gray-100 dark:hs-selected:bg-neutral-800 py-1.5 px-2 w-full text-[13px] text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
|
2865
|
-
onClick: (
|
|
2865
|
+
onClick: (g) => c(p)
|
|
2866
2866
|
}, [
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
o.value === (p.id || p) ? (
|
|
2870
|
-
|
|
2867
|
+
b("div", Dn, [
|
|
2868
|
+
b("span", null, C(_(p.text || p)), 1),
|
|
2869
|
+
o.value === (p.id || p) ? (m(), x("span", kn, f[1] || (f[1] = [
|
|
2870
|
+
b("svg", {
|
|
2871
2871
|
class: "shrink-0 h-3.5 w-3.5 text-gray-800 dark:text-neutral-200",
|
|
2872
2872
|
xmlns: "http:.w3.org/2000/svg",
|
|
2873
2873
|
width: "24",
|
|
@@ -2879,30 +2879,30 @@ const xn = /* @__PURE__ */ O(fn, [["render", yn]]), _n = /* @__PURE__ */ Object.
|
|
|
2879
2879
|
"stroke-linecap": "round",
|
|
2880
2880
|
"stroke-linejoin": "round"
|
|
2881
2881
|
}, [
|
|
2882
|
-
|
|
2882
|
+
b("polyline", { points: "20 6 9 17 4 12" })
|
|
2883
2883
|
], -1)
|
|
2884
|
-
]))) :
|
|
2884
|
+
]))) : $("", !0)
|
|
2885
2885
|
])
|
|
2886
|
-
], 8,
|
|
2887
|
-
], 512)) :
|
|
2886
|
+
], 8, _n))), 128))
|
|
2887
|
+
], 512)) : $("", !0)
|
|
2888
2888
|
], 64));
|
|
2889
2889
|
}
|
|
2890
|
-
},
|
|
2891
|
-
"bi-bar": N(() => Promise.resolve().then(() =>
|
|
2892
|
-
"bi-number": N(() => import("./vs-number-
|
|
2893
|
-
"bi-text": N(() => import("./vs-text-
|
|
2894
|
-
"bi-listbar": N(() => Promise.resolve().then(() =>
|
|
2895
|
-
"bi-pie": N(() => Promise.resolve().then(() =>
|
|
2896
|
-
"bi-donut": N(() => Promise.resolve().then(() =>
|
|
2897
|
-
"bi-line": N(() => Promise.resolve().then(() =>
|
|
2898
|
-
"bi-stat": N(() => Promise.resolve().then(() =>
|
|
2899
|
-
"bi-pivot": N(() => Promise.resolve().then(() =>
|
|
2900
|
-
"bi-progress": N(() => Promise.resolve().then(() =>
|
|
2901
|
-
"bi-funnel": N(() => import("./vs-funnel-bar-
|
|
2902
|
-
"bi-map": N(() => import("./vs-map-
|
|
2903
|
-
"bi-cluster": N(() => import("./vs-map-cluster-
|
|
2904
|
-
"bi-table": N(() => import("./vs-table-
|
|
2905
|
-
},
|
|
2890
|
+
}, Sn = {
|
|
2891
|
+
"bi-bar": N(() => Promise.resolve().then(() => xs)),
|
|
2892
|
+
"bi-number": N(() => import("./vs-number-DcvbeDYU.js")),
|
|
2893
|
+
"bi-text": N(() => import("./vs-text-CTZUEX9-.js")),
|
|
2894
|
+
"bi-listbar": N(() => Promise.resolve().then(() => xn)),
|
|
2895
|
+
"bi-pie": N(() => Promise.resolve().then(() => $s)),
|
|
2896
|
+
"bi-donut": N(() => Promise.resolve().then(() => Ss)),
|
|
2897
|
+
"bi-line": N(() => Promise.resolve().then(() => Ls)),
|
|
2898
|
+
"bi-stat": N(() => Promise.resolve().then(() => Zs)),
|
|
2899
|
+
"bi-pivot": N(() => Promise.resolve().then(() => Qo)),
|
|
2900
|
+
"bi-progress": N(() => Promise.resolve().then(() => dn)),
|
|
2901
|
+
"bi-funnel": N(() => import("./vs-funnel-bar-kdOIxDGu.js")),
|
|
2902
|
+
"bi-map": N(() => import("./vs-map-CI-BMR1q.js")),
|
|
2903
|
+
"bi-cluster": N(() => import("./vs-map-cluster-D5tdKsjo.js")),
|
|
2904
|
+
"bi-table": N(() => import("./vs-table-BqymMGlx.js"))
|
|
2905
|
+
}, Cn = { class: "flex items-center space-x-2" }, En = /* @__PURE__ */ Tt({
|
|
2906
2906
|
__name: "vs-bi-switch",
|
|
2907
2907
|
props: /* @__PURE__ */ Ue({
|
|
2908
2908
|
leftLabel: {},
|
|
@@ -2920,12 +2920,12 @@ const xn = /* @__PURE__ */ O(fn, [["render", yn]]), _n = /* @__PURE__ */ Object.
|
|
|
2920
2920
|
const r = t, s = Nt(e, "modelValue"), n = () => {
|
|
2921
2921
|
r("update:is-enabled", s);
|
|
2922
2922
|
};
|
|
2923
|
-
return (o, i) => (
|
|
2924
|
-
o.leftLabel ? (
|
|
2923
|
+
return (o, i) => (m(), x("div", Cn, [
|
|
2924
|
+
o.leftLabel ? (m(), x("div", {
|
|
2925
2925
|
key: 0,
|
|
2926
2926
|
class: J(["transition-colors", { "text-blue-500": !s.value }])
|
|
2927
|
-
}, C(o.leftLabel), 3)) :
|
|
2928
|
-
At(
|
|
2927
|
+
}, C(o.leftLabel), 3)) : $("", !0),
|
|
2928
|
+
At(b("input", {
|
|
2929
2929
|
"onUpdate:modelValue": i[0] || (i[0] = (a) => s.value = a),
|
|
2930
2930
|
type: "checkbox",
|
|
2931
2931
|
class: "relative w-11 h-6 p-px bg-gray-100 border-transparent text-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:ring-blue-600 disabled:opacity-50 disabled:pointer-events-none checked:bg-none checked:text-blue-600 checked:border-blue-600 focus:checked:border-blue-600 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-600 before:inline-block before:size-5 before:bg-white checked:before:bg-blue-200 before:translate-x-0 checked:before:translate-x-full before:rounded-full before:shadow before:h-5 before:w-5 before:transform before:ring-0 before:transition before:ease-in-out before:duration-200 dark:before:bg-neutral-400 dark:checked:before:bg-blue-200",
|
|
@@ -2933,21 +2933,21 @@ const xn = /* @__PURE__ */ O(fn, [["render", yn]]), _n = /* @__PURE__ */ Object.
|
|
|
2933
2933
|
}, null, 544), [
|
|
2934
2934
|
[Ft, s.value]
|
|
2935
2935
|
]),
|
|
2936
|
-
o.rightLabel ? (
|
|
2936
|
+
o.rightLabel ? (m(), x("div", {
|
|
2937
2937
|
key: 1,
|
|
2938
2938
|
class: J(["transition-colors", { "text-blue-500": s.value }])
|
|
2939
|
-
}, C(o.rightLabel), 3)) :
|
|
2939
|
+
}, C(o.rightLabel), 3)) : $("", !0)
|
|
2940
2940
|
]));
|
|
2941
2941
|
}
|
|
2942
|
-
}),
|
|
2943
|
-
function
|
|
2944
|
-
return
|
|
2945
|
-
|
|
2946
|
-
|
|
2942
|
+
}), Rn = {}, On = { class: "flex items-center justify-center h-full" };
|
|
2943
|
+
function $n(e, t) {
|
|
2944
|
+
return m(), x("div", On, t[0] || (t[0] = [
|
|
2945
|
+
b("div", { class: "text-center text-gray-500" }, [
|
|
2946
|
+
b("h2", { class: "text-2xl font-bold" }, "No data available")
|
|
2947
2947
|
], -1)
|
|
2948
2948
|
]));
|
|
2949
2949
|
}
|
|
2950
|
-
const
|
|
2950
|
+
const Tn = /* @__PURE__ */ R(Rn, [["render", $n]]), Nn = {}, An = {
|
|
2951
2951
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2952
2952
|
viewBox: "0 0 24 24",
|
|
2953
2953
|
fill: "none",
|
|
@@ -2957,25 +2957,25 @@ const Nn = /* @__PURE__ */ O(On, [["render", Tn]]), An = {}, Fn = {
|
|
|
2957
2957
|
"stroke-linejoin": "round",
|
|
2958
2958
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
|
|
2959
2959
|
};
|
|
2960
|
-
function
|
|
2961
|
-
return
|
|
2962
|
-
|
|
2960
|
+
function Fn(e, t, r, s, n, o) {
|
|
2961
|
+
return m(), x("svg", An, t[0] || (t[0] = [
|
|
2962
|
+
b("path", {
|
|
2963
2963
|
stroke: "none",
|
|
2964
2964
|
d: "M0 0h24v24H0z",
|
|
2965
2965
|
fill: "none"
|
|
2966
2966
|
}, null, -1),
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2967
|
+
b("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
|
|
2968
|
+
b("path", { d: "M7 11l5 5l5 -5" }, null, -1),
|
|
2969
|
+
b("path", { d: "M12 4l0 12" }, null, -1)
|
|
2970
2970
|
]));
|
|
2971
2971
|
}
|
|
2972
|
-
const
|
|
2972
|
+
const Ln = /* @__PURE__ */ R(Nn, [["render", Fn]]), Pn = {
|
|
2973
2973
|
components: {
|
|
2974
|
-
VsBiDropdown:
|
|
2975
|
-
VsBiSwitch:
|
|
2976
|
-
VsNoDataChart:
|
|
2977
|
-
IconDownload:
|
|
2978
|
-
...
|
|
2974
|
+
VsBiDropdown: vn,
|
|
2975
|
+
VsBiSwitch: En,
|
|
2976
|
+
VsNoDataChart: Tn,
|
|
2977
|
+
IconDownload: Ln,
|
|
2978
|
+
...Sn
|
|
2979
2979
|
},
|
|
2980
2980
|
props: {
|
|
2981
2981
|
dashboard: { type: String },
|
|
@@ -3068,82 +3068,82 @@ const Pn = /* @__PURE__ */ O(An, [["render", Ln]]), Bn = {
|
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
3070
3070
|
}
|
|
3071
|
-
},
|
|
3071
|
+
}, Bn = {
|
|
3072
3072
|
key: 0,
|
|
3073
3073
|
class: "text-[16px] flex max-w-full items-center min-h-0 flex justify-between max-h-[50px] h-fit shrink-0"
|
|
3074
|
-
},
|
|
3074
|
+
}, Un = { class: "flex items-center justify-between w-full" }, jn = { class: "grid" }, In = { class: "text-gray-800 max-h-[30px] inline-block line-clamp-1 font-semibold" }, Vn = { class: "flex flex-col justify-end" }, zn = {
|
|
3075
3075
|
key: 0,
|
|
3076
3076
|
class: "flex items-center justify-end w-full gap-2"
|
|
3077
|
-
},
|
|
3078
|
-
function
|
|
3079
|
-
var
|
|
3080
|
-
const i =
|
|
3081
|
-
return
|
|
3077
|
+
}, Mn = { class: "w-full h-full" };
|
|
3078
|
+
function qn(e, t, r, s, n, o) {
|
|
3079
|
+
var u, h, _, w, f, p, g, v, k;
|
|
3080
|
+
const i = j("VsBiDropdown"), a = j("VsBiSwitch"), d = j("IconDownload"), c = j("VsNoDataChart");
|
|
3081
|
+
return m(), x("div", {
|
|
3082
3082
|
ref: "widget",
|
|
3083
3083
|
class: J(["box-border relative h-full p-4 bg-white border border-gray-200 select-auto rounded-xl", [
|
|
3084
|
-
(
|
|
3084
|
+
(h = (u = n.widgetData) == null ? void 0 : u.style) != null && h.height ? `max-h-[${(w = (_ = n.widgetData) == null ? void 0 : _.style) == null ? void 0 : w.height}px] h-[${(p = (f = n.widgetData) == null ? void 0 : f.style) == null ? void 0 : p.height}px]` : "max-h-[460px]"
|
|
3085
3085
|
]])
|
|
3086
3086
|
}, [
|
|
3087
|
-
["text", "cluster", "map"].includes(o.computedType) ?
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3087
|
+
["text", "cluster", "map"].includes(o.computedType) ? $("", !0) : (m(), x("div", Bn, [
|
|
3088
|
+
b("div", Un, [
|
|
3089
|
+
b("div", jn, [
|
|
3090
|
+
b("span", In, C(o.computedTitle), 1)
|
|
3091
3091
|
]),
|
|
3092
|
-
|
|
3093
|
-
(
|
|
3094
|
-
(
|
|
3095
|
-
(
|
|
3096
|
-
), (
|
|
3097
|
-
var
|
|
3098
|
-
return
|
|
3099
|
-
Array.isArray(
|
|
3092
|
+
b("div", Vn, [
|
|
3093
|
+
(g = o.controls) != null && g.length ? (m(), x("span", zn, [
|
|
3094
|
+
(m(!0), x(T, null, F((v = o.controls) == null ? void 0 : v.filter(
|
|
3095
|
+
(y) => (y == null ? void 0 : y.options) && (y == null ? void 0 : y.name) !== "export"
|
|
3096
|
+
), (y) => {
|
|
3097
|
+
var P;
|
|
3098
|
+
return m(), x("div", null, [
|
|
3099
|
+
Array.isArray(y == null ? void 0 : y.options) ? (m(), V(i, {
|
|
3100
3100
|
key: 0,
|
|
3101
|
-
title:
|
|
3102
|
-
options:
|
|
3103
|
-
value: (
|
|
3104
|
-
onSelected: (E) => o.selectedOptionHandler(E,
|
|
3105
|
-
}, null, 8, ["title", "options", "value", "onSelected"])) : typeof
|
|
3101
|
+
title: y == null ? void 0 : y.name,
|
|
3102
|
+
options: y == null ? void 0 : y.options,
|
|
3103
|
+
value: (P = n.widgetData) == null ? void 0 : P.data[y == null ? void 0 : y.name],
|
|
3104
|
+
onSelected: (E) => o.selectedOptionHandler(E, y == null ? void 0 : y.name)
|
|
3105
|
+
}, null, 8, ["title", "options", "value", "onSelected"])) : typeof y.options == "boolean" ? (m(), V(a, {
|
|
3106
3106
|
key: 1,
|
|
3107
|
-
"left-label":
|
|
3108
|
-
"is-enabled":
|
|
3109
|
-
"onUpdate:isEnabled": (E) => o.changeStyleHandler(
|
|
3110
|
-
}, null, 8, ["left-label", "is-enabled", "onUpdate:isEnabled"])) :
|
|
3107
|
+
"left-label": y == null ? void 0 : y.name,
|
|
3108
|
+
"is-enabled": y == null ? void 0 : y.options,
|
|
3109
|
+
"onUpdate:isEnabled": (E) => o.changeStyleHandler(y == null ? void 0 : y.name, E)
|
|
3110
|
+
}, null, 8, ["left-label", "is-enabled", "onUpdate:isEnabled"])) : $("", !0)
|
|
3111
3111
|
]);
|
|
3112
3112
|
}), 256)),
|
|
3113
|
-
(k = o.controls) != null && k.some((
|
|
3113
|
+
(k = o.controls) != null && k.some((y) => (y == null ? void 0 : y.name) === "export") ? (m(), x("button", {
|
|
3114
3114
|
key: 0,
|
|
3115
|
-
onClick: t[0] || (t[0] = (...
|
|
3115
|
+
onClick: t[0] || (t[0] = (...y) => o.exportChart && o.exportChart(...y)),
|
|
3116
3116
|
class: "h-[32px] w-[32px] rounded-lg hover:bg-gray-100 duration-100 flex items-center justify-center"
|
|
3117
3117
|
}, [
|
|
3118
|
-
|
|
3118
|
+
ue(d, {
|
|
3119
3119
|
height: "16",
|
|
3120
3120
|
width: "16",
|
|
3121
3121
|
class: "text-gray-800"
|
|
3122
3122
|
})
|
|
3123
|
-
])) :
|
|
3124
|
-
])) :
|
|
3123
|
+
])) : $("", !0)
|
|
3124
|
+
])) : $("", !0)
|
|
3125
3125
|
])
|
|
3126
3126
|
])
|
|
3127
3127
|
])),
|
|
3128
|
-
|
|
3129
|
-
n.widgetData ? (
|
|
3128
|
+
b("div", Mn, [
|
|
3129
|
+
n.widgetData ? (m(), V(Lt("bi-" + o.computedType), {
|
|
3130
3130
|
key: 0,
|
|
3131
3131
|
currentWidget: n.currentWidget,
|
|
3132
|
-
"onUpdate:currentWidget": t[1] || (t[1] = (
|
|
3132
|
+
"onUpdate:currentWidget": t[1] || (t[1] = (y) => n.currentWidget = y),
|
|
3133
3133
|
widgetData: n.widgetData,
|
|
3134
|
-
"onUpdate:widgetData": t[2] || (t[2] = (
|
|
3134
|
+
"onUpdate:widgetData": t[2] || (t[2] = (y) => n.widgetData = y),
|
|
3135
3135
|
ref: "chart",
|
|
3136
3136
|
dashboard: r.dashboard,
|
|
3137
3137
|
title: o.computedTitle,
|
|
3138
3138
|
widget: r.widget
|
|
3139
|
-
}, null, 40, ["currentWidget", "widgetData", "dashboard", "title", "widget"])) : (
|
|
3139
|
+
}, null, 40, ["currentWidget", "widgetData", "dashboard", "title", "widget"])) : (m(), V(c, {
|
|
3140
3140
|
key: 1,
|
|
3141
3141
|
class: "w-full h-full"
|
|
3142
3142
|
}))
|
|
3143
3143
|
])
|
|
3144
3144
|
], 2);
|
|
3145
3145
|
}
|
|
3146
|
-
const
|
|
3146
|
+
const Hn = /* @__PURE__ */ R(Pn, [["render", qn]]), Wn = {
|
|
3147
3147
|
props: {
|
|
3148
3148
|
title: { type: String, default: () => "Дані для відображення відсутні" },
|
|
3149
3149
|
text: {
|
|
@@ -3151,21 +3151,21 @@ const Wn = /* @__PURE__ */ O(Bn, [["render", Hn]]), Jn = {
|
|
|
3151
3151
|
default: () => "Змініть параметри пошуку або спробуйте пізніше"
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
},
|
|
3155
|
-
function
|
|
3156
|
-
return
|
|
3157
|
-
|
|
3158
|
-
|
|
3154
|
+
}, Jn = { class: "w-full overflow-hidden rounded vs-table-interface__table-wrp h-fit" }, Kn = { class: "p-5 min-h-[500px] flex flex-col justify-center items-center text-center" }, Gn = { class: "max-w-sm mx-auto mt-6" }, Xn = { class: "font-medium text-gray-800 dark:text-neutral-200" }, Zn = { class: "mt-2 text-sm text-gray-500 dark:text-neutral-500" };
|
|
3155
|
+
function Qn(e, t, r, s, n, o) {
|
|
3156
|
+
return m(), x("div", Jn, [
|
|
3157
|
+
b("div", null, [
|
|
3158
|
+
b("div", Kn, [
|
|
3159
3159
|
t[0] || (t[0] = st('<svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>', 1)),
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3160
|
+
b("div", Gn, [
|
|
3161
|
+
b("p", Xn, C(r.title), 1),
|
|
3162
|
+
b("p", Zn, C(r.text), 1)
|
|
3163
3163
|
])
|
|
3164
3164
|
])
|
|
3165
3165
|
])
|
|
3166
3166
|
]);
|
|
3167
3167
|
}
|
|
3168
|
-
const
|
|
3168
|
+
const Yn = /* @__PURE__ */ R(Wn, [["render", Qn]]), eo = {}, to = {
|
|
3169
3169
|
class: "flex-shrink-0 size-3.5",
|
|
3170
3170
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3171
3171
|
width: "22",
|
|
@@ -3177,12 +3177,12 @@ const eo = /* @__PURE__ */ O(Jn, [["render", Yn]]), to = {}, ro = {
|
|
|
3177
3177
|
"stroke-linecap": "round",
|
|
3178
3178
|
"stroke-linejoin": "round"
|
|
3179
3179
|
};
|
|
3180
|
-
function
|
|
3181
|
-
return
|
|
3180
|
+
function ro(e, t) {
|
|
3181
|
+
return m(), x("svg", to, t[0] || (t[0] = [
|
|
3182
3182
|
st('<line x1="21" x2="14" y1="4" y2="4"></line><line x1="10" x2="3" y1="4" y2="4"></line><line x1="21" x2="12" y1="12" y2="12"></line><line x1="8" x2="3" y1="12" y2="12"></line><line x1="21" x2="16" y1="20" y2="20"></line><line x1="12" x2="3" y1="20" y2="20"></line><line x1="14" x2="14" y1="2" y2="6"></line><line x1="8" x2="8" y1="10" y2="14"></line><line x1="16" x2="16" y1="18" y2="22"></line>', 9)
|
|
3183
3183
|
]));
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3185
|
+
const so = /* @__PURE__ */ R(eo, [["render", ro]]), no = {}, oo = {
|
|
3186
3186
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3187
3187
|
viewBox: "0 0 24 24",
|
|
3188
3188
|
fill: "none",
|
|
@@ -3192,19 +3192,19 @@ const no = /* @__PURE__ */ O(to, [["render", so]]), oo = {}, io = {
|
|
|
3192
3192
|
"stroke-linejoin": "round",
|
|
3193
3193
|
class: "icon icon-tabler icons-tabler-outline icon-tabler-refresh"
|
|
3194
3194
|
};
|
|
3195
|
-
function
|
|
3196
|
-
return
|
|
3197
|
-
|
|
3195
|
+
function io(e, t) {
|
|
3196
|
+
return m(), x("svg", oo, t[0] || (t[0] = [
|
|
3197
|
+
b("path", {
|
|
3198
3198
|
stroke: "none",
|
|
3199
3199
|
d: "M0 0h24v24H0z",
|
|
3200
3200
|
fill: "none"
|
|
3201
3201
|
}, null, -1),
|
|
3202
|
-
|
|
3203
|
-
|
|
3202
|
+
b("path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" }, null, -1),
|
|
3203
|
+
b("path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }, null, -1)
|
|
3204
3204
|
]));
|
|
3205
3205
|
}
|
|
3206
|
-
const
|
|
3207
|
-
components: { filterIcon:
|
|
3206
|
+
const ao = /* @__PURE__ */ R(no, [["render", io]]), lo = {
|
|
3207
|
+
components: { filterIcon: so, refreshIcon: ao },
|
|
3208
3208
|
props: ["filterScheme"],
|
|
3209
3209
|
emits: ["filters:changed"],
|
|
3210
3210
|
data() {
|
|
@@ -3241,19 +3241,19 @@ const lo = /* @__PURE__ */ O(oo, [["render", ao]]), co = {
|
|
|
3241
3241
|
this.isFilterVisible && e.classList.contains("filter-container") && (this.isFilterVisible = !1);
|
|
3242
3242
|
}
|
|
3243
3243
|
}
|
|
3244
|
-
},
|
|
3244
|
+
}, co = { class: "flex items-center" }, uo = {
|
|
3245
3245
|
key: 0,
|
|
3246
3246
|
class: "font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"
|
|
3247
3247
|
};
|
|
3248
3248
|
function fo(e, t, r, s, n, o) {
|
|
3249
|
-
const i =
|
|
3250
|
-
return
|
|
3251
|
-
r.filterScheme ? (
|
|
3249
|
+
const i = j("filterIcon"), a = j("VsFilterList");
|
|
3250
|
+
return m(), x("div", co, [
|
|
3251
|
+
r.filterScheme ? (m(), V(a, {
|
|
3252
3252
|
key: 0,
|
|
3253
3253
|
ref: "filter",
|
|
3254
3254
|
scheme: r.filterScheme,
|
|
3255
3255
|
closeFilterBtn: !0,
|
|
3256
|
-
onFilterClose: t[1] || (t[1] = (
|
|
3256
|
+
onFilterClose: t[1] || (t[1] = (d) => n.isFilterVisible = !1),
|
|
3257
3257
|
layout: "default",
|
|
3258
3258
|
"apply-vue-router": "",
|
|
3259
3259
|
history: "",
|
|
@@ -3265,109 +3265,63 @@ function fo(e, t, r, s, n, o) {
|
|
|
3265
3265
|
onFilterChange: o.handleFilterChange
|
|
3266
3266
|
}, {
|
|
3267
3267
|
button: nt(() => [
|
|
3268
|
-
|
|
3268
|
+
b("button", {
|
|
3269
3269
|
type: "button",
|
|
3270
3270
|
class: "py-2 px-2.5 ml-3 h-[38px] inline-flex items-center gap-x-1.5 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50",
|
|
3271
|
-
onClick: t[0] || (t[0] = (...
|
|
3271
|
+
onClick: t[0] || (t[0] = (...d) => o.toggleFilterShown && o.toggleFilterShown(...d))
|
|
3272
3272
|
}, [
|
|
3273
|
-
|
|
3274
|
-
t[2] || (t[2] =
|
|
3275
|
-
o.activeFiltersCount >= 1 ? (
|
|
3273
|
+
ue(i),
|
|
3274
|
+
t[2] || (t[2] = Te(" Фільтри ")),
|
|
3275
|
+
o.activeFiltersCount >= 1 ? (m(), x("span", uo, C(o.activeFiltersCount), 1)) : $("", !0)
|
|
3276
3276
|
])
|
|
3277
3277
|
]),
|
|
3278
3278
|
_: 1
|
|
3279
|
-
}, 8, ["scheme", "token", "onFilterChange"])) :
|
|
3279
|
+
}, 8, ["scheme", "token", "onFilterChange"])) : $("", !0)
|
|
3280
3280
|
]);
|
|
3281
3281
|
}
|
|
3282
|
-
const
|
|
3283
|
-
|
|
3284
|
-
width: "24",
|
|
3285
|
-
height: "24",
|
|
3286
|
-
viewBox: "0 0 24 24",
|
|
3287
|
-
fill: "none",
|
|
3288
|
-
stroke: "currentColor",
|
|
3289
|
-
"stroke-width": "1",
|
|
3290
|
-
"stroke-linecap": "round",
|
|
3291
|
-
"stroke-linejoin": "round",
|
|
3292
|
-
class: "icon icon-tabler icons-tabler-outline icon-tabler-edit"
|
|
3293
|
-
};
|
|
3294
|
-
function bo(e, t) {
|
|
3295
|
-
return g(), _("svg", go, t[0] || (t[0] = [
|
|
3296
|
-
m("path", {
|
|
3297
|
-
stroke: "none",
|
|
3298
|
-
d: "M0 0h24v24H0z",
|
|
3299
|
-
fill: "none"
|
|
3300
|
-
}, null, -1),
|
|
3301
|
-
m("path", { d: "M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" }, null, -1),
|
|
3302
|
-
m("path", { d: "M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" }, null, -1),
|
|
3303
|
-
m("path", { d: "M16 5l3 3" }, null, -1)
|
|
3304
|
-
]));
|
|
3305
|
-
}
|
|
3306
|
-
const wo = /* @__PURE__ */ O(mo, [["render", bo]]), yo = {
|
|
3307
|
-
components: { VsFilterHeader: po, IconEditor: wo },
|
|
3282
|
+
const ho = /* @__PURE__ */ R(lo, [["render", fo]]), po = {
|
|
3283
|
+
components: { VsFilterHeader: ho },
|
|
3308
3284
|
props: {
|
|
3309
3285
|
dashboardData: { type: Object, default: null },
|
|
3310
|
-
filters: { type: Array, default: null }
|
|
3311
|
-
dashboardId: { type: String, default: "" }
|
|
3312
|
-
},
|
|
3313
|
-
computed: {
|
|
3314
|
-
editorUrl() {
|
|
3315
|
-
return this.dashboardId ? `${typeof window < "u" ? window.location.origin : ""}/editor?dashboard=${encodeURIComponent(this.dashboardId)}` : "#";
|
|
3316
|
-
}
|
|
3317
|
-
},
|
|
3318
|
-
methods: {
|
|
3319
|
-
goToEditor() {
|
|
3320
|
-
var e;
|
|
3321
|
-
this.dashboardId && ((e = this.$router) == null || e.push({
|
|
3322
|
-
path: "/editor",
|
|
3323
|
-
query: { dashboard: this.dashboardId }
|
|
3324
|
-
}));
|
|
3325
|
-
}
|
|
3286
|
+
filters: { type: Array, default: null }
|
|
3326
3287
|
}
|
|
3327
|
-
},
|
|
3288
|
+
}, mo = { class: "bg-white px-5 flex gap-4 h-[90px] border border-gray-200 rounded-xl mb-2 pt-[3px] justify-between items-center" }, go = { class: "grow" }, bo = { class: "text-lg font-semibold text-stone-800 dark:text-neutral-200" }, wo = {
|
|
3328
3289
|
key: 0,
|
|
3329
3290
|
class: "inline-flex items-center text-sm gap-x-2 text-stone-800 hover:text-stone-500 focus:outline-none focus:text-stone-500 dark:text-neutral-200 dark:hover:text-neutral-400 dark:focus:text-neutral-400"
|
|
3330
|
-
},
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3291
|
+
}, yo = {
|
|
3292
|
+
key: 0,
|
|
3293
|
+
class: "flex items-center gap-3"
|
|
3294
|
+
};
|
|
3295
|
+
function xo(e, t, r, s, n, o) {
|
|
3296
|
+
var a, d, c;
|
|
3297
|
+
const i = j("VsFilterHeader");
|
|
3298
|
+
return m(), x("div", mo, [
|
|
3299
|
+
b("div", go, [
|
|
3300
|
+
b("h1", bo, C((a = r.dashboardData) == null ? void 0 : a.title), 1),
|
|
3301
|
+
(d = r.dashboardData) != null && d.description ? (m(), x("button", wo, C((c = r.dashboardData) == null ? void 0 : c.description), 1)) : $("", !0)
|
|
3338
3302
|
]),
|
|
3339
|
-
m("div",
|
|
3340
|
-
|
|
3341
|
-
key: 0,
|
|
3303
|
+
r.filters ? (m(), x("div", yo, [
|
|
3304
|
+
ue(i, {
|
|
3342
3305
|
filterScheme: r.filters,
|
|
3343
|
-
"onFilters:changed": t[0] || (t[0] = (
|
|
3344
|
-
}, null, 8, ["filterScheme"])
|
|
3345
|
-
|
|
3346
|
-
key: 1,
|
|
3347
|
-
href: o.editorUrl,
|
|
3348
|
-
class: "inline-flex items-center gap-2 px-3 py-2 text-sm font-medium text-stone-700 bg-stone-100 hover:bg-stone-200 rounded-lg transition-colors dark:text-neutral-200 dark:bg-neutral-600 dark:hover:bg-neutral-500",
|
|
3349
|
-
onClick: t[1] || (t[1] = Pt((...f) => o.goToEditor && o.goToEditor(...f), ["prevent"]))
|
|
3350
|
-
}, [
|
|
3351
|
-
te(a, { class: "w-4 h-4 shrink-0" }),
|
|
3352
|
-
t[2] || (t[2] = de(" Налаштування "))
|
|
3353
|
-
], 8, So)) : R("", !0)
|
|
3354
|
-
])
|
|
3306
|
+
"onFilters:changed": t[0] || (t[0] = (u) => e.$emit("filters:changed", u))
|
|
3307
|
+
}, null, 8, ["filterScheme"])
|
|
3308
|
+
])) : $("", !0)
|
|
3355
3309
|
]);
|
|
3356
3310
|
}
|
|
3357
|
-
const
|
|
3311
|
+
const _o = /* @__PURE__ */ R(po, [["render", xo]]);
|
|
3358
3312
|
/**
|
|
3359
3313
|
* @license lucide-vue-next v0.546.0 - ISC
|
|
3360
3314
|
*
|
|
3361
3315
|
* This source code is licensed under the ISC license.
|
|
3362
3316
|
* See the LICENSE file in the root directory of this source tree.
|
|
3363
3317
|
*/
|
|
3364
|
-
const tt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
3318
|
+
const tt = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Do = (e) => e.replace(
|
|
3365
3319
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
3366
3320
|
(t, r, s) => s ? s.toUpperCase() : r.toLowerCase()
|
|
3367
|
-
),
|
|
3368
|
-
const t =
|
|
3321
|
+
), ko = (e) => {
|
|
3322
|
+
const t = Do(e);
|
|
3369
3323
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
3370
|
-
},
|
|
3324
|
+
}, vo = (...e) => e.filter((t, r, s) => !!t && t.trim() !== "" && s.indexOf(t) === r).join(" ").trim(), rt = (e) => e === "";
|
|
3371
3325
|
/**
|
|
3372
3326
|
* @license lucide-vue-next v0.546.0 - ISC
|
|
3373
3327
|
*
|
|
@@ -3391,7 +3345,7 @@ var Q = {
|
|
|
3391
3345
|
* This source code is licensed under the ISC license.
|
|
3392
3346
|
* See the LICENSE file in the root directory of this source tree.
|
|
3393
3347
|
*/
|
|
3394
|
-
const
|
|
3348
|
+
const So = ({
|
|
3395
3349
|
name: e,
|
|
3396
3350
|
iconNode: t,
|
|
3397
3351
|
absoluteStrokeWidth: r,
|
|
@@ -3400,23 +3354,23 @@ const To = ({
|
|
|
3400
3354
|
"stroke-width": o,
|
|
3401
3355
|
size: i = Q.width,
|
|
3402
3356
|
color: a = Q.stroke,
|
|
3403
|
-
...
|
|
3404
|
-
}, { slots:
|
|
3357
|
+
...d
|
|
3358
|
+
}, { slots: c }) => ke(
|
|
3405
3359
|
"svg",
|
|
3406
3360
|
{
|
|
3407
3361
|
...Q,
|
|
3408
|
-
...
|
|
3362
|
+
...d,
|
|
3409
3363
|
width: i,
|
|
3410
3364
|
height: i,
|
|
3411
3365
|
stroke: a,
|
|
3412
3366
|
"stroke-width": rt(r) || rt(s) || r === !0 || s === !0 ? Number(n || o || Q["stroke-width"]) * 24 / Number(i) : n || o || Q["stroke-width"],
|
|
3413
|
-
class:
|
|
3367
|
+
class: vo(
|
|
3414
3368
|
"lucide",
|
|
3415
|
-
|
|
3416
|
-
...e ? [`lucide-${tt(
|
|
3369
|
+
d.class,
|
|
3370
|
+
...e ? [`lucide-${tt(ko(e))}-icon`, `lucide-${tt(e)}`] : ["lucide-icon"]
|
|
3417
3371
|
)
|
|
3418
3372
|
},
|
|
3419
|
-
[...t.map((
|
|
3373
|
+
[...t.map((u) => ke(...u)), ...c.default ? [c.default()] : []]
|
|
3420
3374
|
);
|
|
3421
3375
|
/**
|
|
3422
3376
|
* @license lucide-vue-next v0.546.0 - ISC
|
|
@@ -3424,8 +3378,8 @@ const To = ({
|
|
|
3424
3378
|
* This source code is licensed under the ISC license.
|
|
3425
3379
|
* See the LICENSE file in the root directory of this source tree.
|
|
3426
3380
|
*/
|
|
3427
|
-
const
|
|
3428
|
-
|
|
3381
|
+
const Co = (e, t) => (r, { slots: s, attrs: n }) => ke(
|
|
3382
|
+
So,
|
|
3429
3383
|
{
|
|
3430
3384
|
...n,
|
|
3431
3385
|
...r,
|
|
@@ -3440,18 +3394,18 @@ const No = (e, t) => (r, { slots: s, attrs: n }) => ve(
|
|
|
3440
3394
|
* This source code is licensed under the ISC license.
|
|
3441
3395
|
* See the LICENSE file in the root directory of this source tree.
|
|
3442
3396
|
*/
|
|
3443
|
-
const
|
|
3397
|
+
const Eo = Co("chevron-right", [
|
|
3444
3398
|
["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
|
|
3445
|
-
]),
|
|
3399
|
+
]), Ro = {
|
|
3446
3400
|
class: "flex items-center gap-2 py-6 text-sm text-gray-600",
|
|
3447
3401
|
"aria-label": "Breadcrumb"
|
|
3448
|
-
},
|
|
3402
|
+
}, Oo = {
|
|
3449
3403
|
key: 0,
|
|
3450
3404
|
class: "text-gray-400 shrink-0"
|
|
3451
|
-
},
|
|
3405
|
+
}, $o = {
|
|
3452
3406
|
key: 2,
|
|
3453
3407
|
class: "text-gray-900 font-medium truncate"
|
|
3454
|
-
},
|
|
3408
|
+
}, To = {
|
|
3455
3409
|
__name: "vs-breadcrumbs",
|
|
3456
3410
|
props: {
|
|
3457
3411
|
items: {
|
|
@@ -3462,28 +3416,28 @@ const Ao = No("chevron-right", [
|
|
|
3462
3416
|
},
|
|
3463
3417
|
setup(e) {
|
|
3464
3418
|
return (t, r) => {
|
|
3465
|
-
const s =
|
|
3466
|
-
return
|
|
3467
|
-
(
|
|
3468
|
-
o > 0 ? (
|
|
3469
|
-
|
|
3470
|
-
])) :
|
|
3471
|
-
n.to ? (
|
|
3419
|
+
const s = j("router-link");
|
|
3420
|
+
return m(), x("nav", Ro, [
|
|
3421
|
+
(m(!0), x(T, null, F(e.items, (n, o) => (m(), x(T, { key: o }, [
|
|
3422
|
+
o > 0 ? (m(), x("span", Oo, [
|
|
3423
|
+
ue(Pt(Eo), { class: "w-4 h-4" })
|
|
3424
|
+
])) : $("", !0),
|
|
3425
|
+
n.to ? (m(), V(s, {
|
|
3472
3426
|
key: 1,
|
|
3473
3427
|
to: n.to,
|
|
3474
3428
|
class: "hover:text-gray-900 transition-colors"
|
|
3475
3429
|
}, {
|
|
3476
3430
|
default: nt(() => [
|
|
3477
|
-
|
|
3431
|
+
Te(C(n.label), 1)
|
|
3478
3432
|
]),
|
|
3479
3433
|
_: 2
|
|
3480
|
-
}, 1032, ["to"])) : (
|
|
3434
|
+
}, 1032, ["to"])) : (m(), x("span", $o, C(n.label), 1))
|
|
3481
3435
|
], 64))), 128))
|
|
3482
3436
|
]);
|
|
3483
3437
|
};
|
|
3484
3438
|
}
|
|
3485
|
-
},
|
|
3486
|
-
components: { VsWidget:
|
|
3439
|
+
}, No = {
|
|
3440
|
+
components: { VsWidget: Hn, VsNewNodata: Yn, VsHeader: _o, VsBreadcrumbs: To },
|
|
3487
3441
|
props: ["id", "prefix"],
|
|
3488
3442
|
data() {
|
|
3489
3443
|
return {
|
|
@@ -3495,13 +3449,6 @@ const Ao = No("chevron-right", [
|
|
|
3495
3449
|
dashboardData: null
|
|
3496
3450
|
};
|
|
3497
3451
|
},
|
|
3498
|
-
computed: {
|
|
3499
|
-
breadcrumbItems() {
|
|
3500
|
-
var t, r;
|
|
3501
|
-
const e = [{ label: "Дашборди", to: "/editor" }];
|
|
3502
|
-
return ((t = this.dashboardData) != null && t.title || this.id) && e.push({ label: ((r = this.dashboardData) == null ? void 0 : r.title) || this.id }), e;
|
|
3503
|
-
}
|
|
3504
|
-
},
|
|
3505
3452
|
async mounted() {
|
|
3506
3453
|
S.defaults.baseURL = this.prefix || "/api", await this.fetchData();
|
|
3507
3454
|
},
|
|
@@ -3538,43 +3485,33 @@ const Ao = No("chevron-right", [
|
|
|
3538
3485
|
}), this.filterURl += t);
|
|
3539
3486
|
}
|
|
3540
3487
|
}
|
|
3541
|
-
},
|
|
3542
|
-
function
|
|
3543
|
-
var
|
|
3544
|
-
const i =
|
|
3545
|
-
return
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
n.dashboardData ? (g(), U(a, {
|
|
3549
|
-
key: 0,
|
|
3550
|
-
filters: (c = n.dashboardData) == null ? void 0 : c.filters,
|
|
3551
|
-
dashboardData: n.dashboardData,
|
|
3552
|
-
"dashboard-id": r.id,
|
|
3553
|
-
"onFilters:changed": t[0] || (t[0] = (y) => o.filterHandler(y))
|
|
3554
|
-
}, null, 8, ["filters", "dashboardData", "dashboard-id"])) : R("", !0)
|
|
3555
|
-
]),
|
|
3556
|
-
m("div", jo, [
|
|
3557
|
-
n.error || !n.dashboardData ? (g(), U(h, {
|
|
3488
|
+
}, Ao = { class: "w-full pb-8 overflow-y-auto mx-auto" }, Fo = { class: "grid flex-grow w-full grid-cols-12 gap-4 h-fit" };
|
|
3489
|
+
function Lo(e, t, r, s, n, o) {
|
|
3490
|
+
var d;
|
|
3491
|
+
const i = j("VsNewNodata"), a = j("VsWidget");
|
|
3492
|
+
return m(), x("div", Ao, [
|
|
3493
|
+
b("div", Fo, [
|
|
3494
|
+
n.error || !n.dashboardData ? (m(), V(i, {
|
|
3558
3495
|
key: 0,
|
|
3559
3496
|
class: "col-span-12"
|
|
3560
|
-
})) :
|
|
3561
|
-
(
|
|
3562
|
-
var
|
|
3563
|
-
return
|
|
3564
|
-
key:
|
|
3565
|
-
class: J([`col-span-${
|
|
3497
|
+
})) : $("", !0),
|
|
3498
|
+
(m(!0), x(T, null, F(((d = n.dashboardData) == null ? void 0 : d.panels) || [], (c, u) => {
|
|
3499
|
+
var h;
|
|
3500
|
+
return m(), x("div", {
|
|
3501
|
+
key: u,
|
|
3502
|
+
class: J([`col-span-${c.col || 12}`, "flex flex-col gap-[10px]"])
|
|
3566
3503
|
}, [
|
|
3567
|
-
(
|
|
3568
|
-
key:
|
|
3504
|
+
(h = c.widgets) != null && h.length ? (m(!0), x(T, { key: 0 }, F(c.widgets, (_) => (m(), V(a, {
|
|
3505
|
+
key: _,
|
|
3569
3506
|
dashboard: r.id,
|
|
3570
|
-
widget:
|
|
3507
|
+
widget: _,
|
|
3571
3508
|
"dashboard-widgets": n.dashboardData.widgets,
|
|
3572
3509
|
"filter-u-rl": n.filterURl
|
|
3573
|
-
}, null, 8, ["dashboard", "widget", "dashboard-widgets", "filter-u-rl"]))), 128)) : (
|
|
3510
|
+
}, null, 8, ["dashboard", "widget", "dashboard-widgets", "filter-u-rl"]))), 128)) : (m(), V(a, {
|
|
3574
3511
|
key: 1,
|
|
3575
3512
|
class: "flex flex-col",
|
|
3576
3513
|
dashboard: r.id,
|
|
3577
|
-
widget:
|
|
3514
|
+
widget: c.widget,
|
|
3578
3515
|
"dashboard-widgets": n.dashboardData.widgets,
|
|
3579
3516
|
"filter-u-rl": n.filterURl
|
|
3580
3517
|
}, null, 8, ["dashboard", "widget", "dashboard-widgets", "filter-u-rl"]))
|
|
@@ -3583,7 +3520,7 @@ function Vo(e, t, r, s, n, o) {
|
|
|
3583
3520
|
])
|
|
3584
3521
|
]);
|
|
3585
3522
|
}
|
|
3586
|
-
const
|
|
3523
|
+
const yi = /* @__PURE__ */ R(No, [["render", Lo]]), Po = {
|
|
3587
3524
|
name: "VsPivotTable",
|
|
3588
3525
|
mixins: [M],
|
|
3589
3526
|
data() {
|
|
@@ -3610,44 +3547,44 @@ const Si = /* @__PURE__ */ O(Uo, [["render", Vo]]), zo = {
|
|
|
3610
3547
|
);
|
|
3611
3548
|
this.dimensions[0].includes("date") ? this.xs = e.map((t) => Ne(t)) : this.xs = [...e], this.products = this.dimensions.filter((t, r) => r != 0), this.values = this.products.map((t, r) => ({
|
|
3612
3549
|
name: t,
|
|
3613
|
-
data: this.sourceData.filter((s) => parseFloat(s[t])).map((s) =>
|
|
3550
|
+
data: this.sourceData.filter((s) => parseFloat(s[t])).map((s) => I(parseFloat(s[t])))
|
|
3614
3551
|
}));
|
|
3615
3552
|
} catch (e) {
|
|
3616
3553
|
console.error(e);
|
|
3617
3554
|
}
|
|
3618
3555
|
}
|
|
3619
3556
|
}
|
|
3620
|
-
},
|
|
3557
|
+
}, Bo = { class: "flex flex-col h-full p-5 space-y-4 rounded-xl custom-scrollbar" }, Uo = { class: "overflow-x-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 custom-scrollbar" }, jo = { class: "inline-block min-w-full align-middle" }, Io = { class: "min-w-full divide-y divide-gray-200" }, Vo = { class: "space-x-2" }, zo = {
|
|
3621
3558
|
scope: "col",
|
|
3622
3559
|
class: "xl:min-w-[120px] min-w-48"
|
|
3623
|
-
},
|
|
3624
|
-
function
|
|
3625
|
-
return
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
t[0] || (t[0] =
|
|
3560
|
+
}, Mo = { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" }, qo = { class: "divide-y divide-gray-200 text-[12px]" }, Ho = { class: "py-3 size-px whitespace-nowrap" }, Wo = { class: "flex items-center gap-x-3" }, Jo = { class: "font-medium text-gray-800" }, Ko = { class: "py-3 size-px whitespace-nowrap" }, Go = { class: "text-gray-600" };
|
|
3561
|
+
function Xo(e, t, r, s, n, o) {
|
|
3562
|
+
return m(), x("div", Bo, [
|
|
3563
|
+
b("div", Uo, [
|
|
3564
|
+
b("div", jo, [
|
|
3565
|
+
b("table", Io, [
|
|
3566
|
+
b("thead", null, [
|
|
3567
|
+
b("tr", Vo, [
|
|
3568
|
+
t[0] || (t[0] = b("th", {
|
|
3632
3569
|
scope: "col",
|
|
3633
3570
|
class: "min-w-[200px]"
|
|
3634
3571
|
}, [
|
|
3635
|
-
|
|
3572
|
+
b("div", { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" })
|
|
3636
3573
|
], -1)),
|
|
3637
|
-
(
|
|
3638
|
-
|
|
3574
|
+
(m(!0), x(T, null, F(n.xs, (i) => (m(), x("th", zo, [
|
|
3575
|
+
b("div", Mo, C(i), 1)
|
|
3639
3576
|
]))), 256))
|
|
3640
3577
|
])
|
|
3641
3578
|
]),
|
|
3642
|
-
(
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3579
|
+
(m(!0), x(T, null, F(n.values, (i) => (m(), x("tbody", qo, [
|
|
3580
|
+
b("tr", null, [
|
|
3581
|
+
b("td", Ho, [
|
|
3582
|
+
b("div", Wo, [
|
|
3583
|
+
b("span", Jo, C(i.name), 1)
|
|
3647
3584
|
])
|
|
3648
3585
|
]),
|
|
3649
|
-
(
|
|
3650
|
-
|
|
3586
|
+
(m(!0), x(T, null, F(n.xs, (a, d) => (m(), x("td", Ko, [
|
|
3587
|
+
b("span", Go, C(i.data[d]), 1)
|
|
3651
3588
|
]))), 256))
|
|
3652
3589
|
])
|
|
3653
3590
|
]))), 256))
|
|
@@ -3656,26 +3593,26 @@ function ri(e, t, r, s, n, o) {
|
|
|
3656
3593
|
])
|
|
3657
3594
|
]);
|
|
3658
3595
|
}
|
|
3659
|
-
const
|
|
3596
|
+
const Zo = /* @__PURE__ */ R(Po, [["render", Xo]]), Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3660
3597
|
__proto__: null,
|
|
3661
|
-
default:
|
|
3598
|
+
default: Zo
|
|
3662
3599
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3663
3600
|
export {
|
|
3664
|
-
|
|
3665
|
-
|
|
3601
|
+
ys as V,
|
|
3602
|
+
R as _,
|
|
3666
3603
|
ee as a,
|
|
3667
3604
|
Ne as b,
|
|
3668
3605
|
M as c,
|
|
3669
|
-
|
|
3606
|
+
I as d,
|
|
3670
3607
|
S as e,
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3608
|
+
ei as f,
|
|
3609
|
+
Os as g,
|
|
3610
|
+
Fs as h,
|
|
3611
|
+
Xs as i,
|
|
3612
|
+
un as j,
|
|
3613
|
+
yn as k,
|
|
3614
|
+
Zo as l,
|
|
3615
|
+
yi as m,
|
|
3616
|
+
Hn as n,
|
|
3617
|
+
vs as v
|
|
3681
3618
|
};
|