@opengis/bi 1.2.3 → 1.2.5

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.
@@ -1,260 +1,260 @@
1
- import { createElementBlock as _, openBlock as x, createElementVNode as g, Fragment as P, renderList as U, normalizeStyle as Le, normalizeClass as Q, createCommentVNode as N, toDisplayString as E, ref as Ee, computed as Ke, onUnmounted as It, createTextVNode as pt, defineAsyncComponent as T, defineComponent as zt, mergeModels as Xe, useModel as Mt, withDirectives as Ht, vModelCheckbox as qt, resolveComponent as I, createBlock as M, createVNode as Ue, resolveDynamicComponent as Wt, createStaticVNode as mt, withCtx as Jt } from "vue";
2
- function z(e, t) {
1
+ import { createElementBlock as _, openBlock as x, createElementVNode as m, Fragment as F, renderList as P, normalizeStyle as Re, normalizeClass as J, createCommentVNode as $, toDisplayString as E, ref as be, computed as Le, onUnmounted as vt, createTextVNode as Ze, defineAsyncComponent as T, defineComponent as Et, mergeModels as Pe, useModel as Ct, withDirectives as Rt, vModelCheckbox as Ot, resolveComponent as j, createBlock as I, createVNode as Oe, resolveDynamicComponent as Tt, createStaticVNode as Ye, withCtx as $t } from "vue";
2
+ function V(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 || {
6
6
  notation: "compact"
7
7
  }).format(e);
8
8
  }
9
- function Be(e) {
9
+ function Te(e) {
10
10
  if (!(e != null && e.includes("T")))
11
11
  return e;
12
- const [t, s, r] = e.split("T")[0].split("-");
13
- return `${r}.${s}.${t}`;
12
+ const [t, r, s] = e.split("T")[0].split("-");
13
+ return `${s}.${r}.${t}`;
14
14
  }
15
- function Qi(e) {
15
+ function Bi(e) {
16
16
  return Intl.NumberFormat("en").format(e);
17
17
  }
18
- function gt(e, t) {
18
+ function et(e, t) {
19
19
  return function() {
20
20
  return e.apply(t, arguments);
21
21
  };
22
22
  }
23
- const { toString: Kt } = Object.prototype, { getPrototypeOf: je } = Object, { iterator: ye, toStringTag: bt } = Symbol, xe = /* @__PURE__ */ ((e) => (t) => {
24
- const s = Kt.call(t);
25
- return e[s] || (e[s] = s.slice(8, -1).toLowerCase());
26
- })(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => xe(t) === e), _e = (e) => (t) => typeof t === e, { isArray: te } = Array, ee = _e("undefined");
27
- function oe(e) {
28
- return e !== null && !ee(e) && e.constructor !== null && !ee(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
23
+ const { toString: Nt } = Object.prototype, { getPrototypeOf: $e } = Object, { iterator: de, toStringTag: tt } = Symbol, fe = /* @__PURE__ */ ((e) => (t) => {
24
+ const r = Nt.call(t);
25
+ return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
26
+ })(/* @__PURE__ */ Object.create(null)), B = (e) => (e = e.toLowerCase(), (t) => fe(t) === e), he = (e) => (t) => typeof t === e, { isArray: X } = Array, Z = he("undefined");
27
+ function ee(e) {
28
+ return e !== null && !Z(e) && e.constructor !== null && !Z(e.constructor) && N(e.constructor.isBuffer) && e.constructor.isBuffer(e);
29
29
  }
30
- const wt = B("ArrayBuffer");
31
- function Xt(e) {
30
+ const rt = B("ArrayBuffer");
31
+ function At(e) {
32
32
  let t;
33
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && wt(e.buffer), t;
33
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && rt(e.buffer), t;
34
34
  }
35
- const Gt = _e("string"), F = _e("function"), yt = _e("number"), ae = (e) => e !== null && typeof e == "object", Qt = (e) => e === !0 || e === !1, pe = (e) => {
36
- if (xe(e) !== "object")
35
+ const Ft = he("string"), N = he("function"), st = he("number"), te = (e) => e !== null && typeof e == "object", Lt = (e) => e === !0 || e === !1, ie = (e) => {
36
+ if (fe(e) !== "object")
37
37
  return !1;
38
- const t = je(e);
39
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(bt in e) && !(ye in e);
40
- }, Zt = (e) => {
41
- if (!ae(e) || oe(e))
38
+ const t = $e(e);
39
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(tt in e) && !(de in e);
40
+ }, Pt = (e) => {
41
+ if (!te(e) || ee(e))
42
42
  return !1;
43
43
  try {
44
44
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
45
45
  } catch {
46
46
  return !1;
47
47
  }
48
- }, Yt = B("Date"), es = B("File"), ts = B("Blob"), ss = B("FileList"), rs = (e) => ae(e) && F(e.pipe), ns = (e) => {
48
+ }, Bt = B("Date"), Ut = B("File"), jt = B("Blob"), Vt = B("FileList"), It = (e) => te(e) && N(e.pipe), zt = (e) => {
49
49
  let t;
50
- return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = xe(e)) === "formdata" || // detect form-data instance
51
- t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
52
- }, is = B("URLSearchParams"), [os, as, ls, cs] = ["ReadableStream", "Request", "Response", "Headers"].map(B), us = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
53
- function le(e, t, { allOwnKeys: s = !1 } = {}) {
50
+ return e && (typeof FormData == "function" && e instanceof FormData || N(e.append) && ((t = fe(e)) === "formdata" || // detect form-data instance
51
+ t === "object" && N(e.toString) && e.toString() === "[object FormData]"));
52
+ }, Mt = B("URLSearchParams"), [qt, Ht, Wt, Jt] = ["ReadableStream", "Request", "Response", "Headers"].map(B), Kt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
53
+ function re(e, t, { allOwnKeys: r = !1 } = {}) {
54
54
  if (e === null || typeof e > "u")
55
55
  return;
56
- let r, n;
57
- if (typeof e != "object" && (e = [e]), te(e))
58
- for (r = 0, n = e.length; r < n; r++)
59
- t.call(null, e[r], r, e);
56
+ let s, n;
57
+ if (typeof e != "object" && (e = [e]), X(e))
58
+ for (s = 0, n = e.length; s < n; s++)
59
+ t.call(null, e[s], s, e);
60
60
  else {
61
- if (oe(e))
61
+ if (ee(e))
62
62
  return;
63
- const i = s ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
63
+ const i = r ? Object.getOwnPropertyNames(e) : Object.keys(e), o = i.length;
64
64
  let a;
65
- for (r = 0; r < o; r++)
66
- a = i[r], t.call(null, e[a], a, e);
65
+ for (s = 0; s < o; s++)
66
+ a = i[s], t.call(null, e[a], a, e);
67
67
  }
68
68
  }
69
- function xt(e, t) {
70
- if (oe(e))
69
+ function nt(e, t) {
70
+ if (ee(e))
71
71
  return null;
72
72
  t = t.toLowerCase();
73
- const s = Object.keys(e);
74
- let r = s.length, n;
75
- for (; r-- > 0; )
76
- if (n = s[r], t === n.toLowerCase())
73
+ const r = Object.keys(e);
74
+ let s = r.length, n;
75
+ for (; s-- > 0; )
76
+ if (n = r[s], t === n.toLowerCase())
77
77
  return n;
78
78
  return null;
79
79
  }
80
- const X = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _t = (e) => !ee(e) && e !== X;
81
- function Te() {
82
- const { caseless: e, skipUndefined: t } = _t(this) && this || {}, s = {}, r = (n, i) => {
83
- const o = e && xt(s, i) || i;
84
- pe(s[o]) && pe(n) ? s[o] = Te(s[o], n) : pe(n) ? s[o] = Te({}, n) : te(n) ? s[o] = n.slice() : (!t || !ee(n)) && (s[o] = n);
80
+ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, it = (e) => !Z(e) && e !== H;
81
+ function De() {
82
+ const { caseless: e } = it(this) && this || {}, t = {}, r = (s, n) => {
83
+ const i = e && nt(t, n) || n;
84
+ ie(t[i]) && ie(s) ? t[i] = De(t[i], s) : ie(s) ? t[i] = De({}, s) : X(s) ? t[i] = s.slice() : t[i] = s;
85
85
  };
86
- for (let n = 0, i = arguments.length; n < i; n++)
87
- arguments[n] && le(arguments[n], r);
88
- return s;
86
+ for (let s = 0, n = arguments.length; s < n; s++)
87
+ arguments[s] && re(arguments[s], r);
88
+ return t;
89
89
  }
90
- const ds = (e, t, s, { allOwnKeys: r } = {}) => (le(t, (n, i) => {
91
- s && F(n) ? e[i] = gt(n, s) : e[i] = n;
92
- }, { allOwnKeys: r }), e), fs = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), hs = (e, t, s, r) => {
93
- e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
90
+ const Xt = (e, t, r, { allOwnKeys: s } = {}) => (re(t, (n, i) => {
91
+ r && N(n) ? e[i] = et(n, r) : e[i] = n;
92
+ }, { allOwnKeys: s }), e), Gt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Qt = (e, t, r, s) => {
93
+ e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
94
94
  value: t.prototype
95
- }), s && Object.assign(e.prototype, s);
96
- }, ps = (e, t, s, r) => {
95
+ }), r && Object.assign(e.prototype, r);
96
+ }, Zt = (e, t, r, s) => {
97
97
  let n, i, o;
98
98
  const a = {};
99
99
  if (t = t || {}, e == null) return t;
100
100
  do {
101
101
  for (n = Object.getOwnPropertyNames(e), i = n.length; i-- > 0; )
102
- o = n[i], (!r || r(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
103
- e = s !== !1 && je(e);
104
- } while (e && (!s || s(e, t)) && e !== Object.prototype);
102
+ o = n[i], (!s || s(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
103
+ e = r !== !1 && $e(e);
104
+ } while (e && (!r || r(e, t)) && e !== Object.prototype);
105
105
  return t;
106
- }, ms = (e, t, s) => {
107
- e = String(e), (s === void 0 || s > e.length) && (s = e.length), s -= t.length;
108
- const r = e.indexOf(t, s);
109
- return r !== -1 && r === s;
110
- }, gs = (e) => {
106
+ }, Yt = (e, t, r) => {
107
+ e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
108
+ const s = e.indexOf(t, r);
109
+ return s !== -1 && s === r;
110
+ }, er = (e) => {
111
111
  if (!e) return null;
112
- if (te(e)) return e;
112
+ if (X(e)) return e;
113
113
  let t = e.length;
114
- if (!yt(t)) return null;
115
- const s = new Array(t);
114
+ if (!st(t)) return null;
115
+ const r = new Array(t);
116
116
  for (; t-- > 0; )
117
- s[t] = e[t];
118
- return s;
119
- }, bs = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && je(Uint8Array)), ws = (e, t) => {
120
- const r = (e && e[ye]).call(e);
117
+ r[t] = e[t];
118
+ return r;
119
+ }, tr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && $e(Uint8Array)), rr = (e, t) => {
120
+ const s = (e && e[de]).call(e);
121
121
  let n;
122
- for (; (n = r.next()) && !n.done; ) {
122
+ for (; (n = s.next()) && !n.done; ) {
123
123
  const i = n.value;
124
124
  t.call(e, i[0], i[1]);
125
125
  }
126
- }, ys = (e, t) => {
127
- let s;
128
- const r = [];
129
- for (; (s = e.exec(t)) !== null; )
130
- r.push(s);
131
- return r;
132
- }, xs = B("HTMLFormElement"), _s = (e) => e.toLowerCase().replace(
126
+ }, sr = (e, t) => {
127
+ let r;
128
+ const s = [];
129
+ for (; (r = e.exec(t)) !== null; )
130
+ s.push(r);
131
+ return s;
132
+ }, nr = B("HTMLFormElement"), ir = (e) => e.toLowerCase().replace(
133
133
  /[-_\s]([a-z\d])(\w*)/g,
134
- function(s, r, n) {
135
- return r.toUpperCase() + n;
134
+ function(r, s, n) {
135
+ return s.toUpperCase() + n;
136
136
  }
137
- ), Ge = (({ hasOwnProperty: e }) => (t, s) => e.call(t, s))(Object.prototype), Ds = B("RegExp"), Dt = (e, t) => {
138
- const s = Object.getOwnPropertyDescriptors(e), r = {};
139
- le(s, (n, i) => {
137
+ ), Be = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), or = B("RegExp"), ot = (e, t) => {
138
+ const r = Object.getOwnPropertyDescriptors(e), s = {};
139
+ re(r, (n, i) => {
140
140
  let o;
141
- (o = t(n, i, e)) !== !1 && (r[i] = o || n);
142
- }), Object.defineProperties(e, r);
143
- }, Ss = (e) => {
144
- Dt(e, (t, s) => {
145
- if (F(e) && ["arguments", "caller", "callee"].indexOf(s) !== -1)
141
+ (o = t(n, i, e)) !== !1 && (s[i] = o || n);
142
+ }), Object.defineProperties(e, s);
143
+ }, ar = (e) => {
144
+ ot(e, (t, r) => {
145
+ if (N(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
146
146
  return !1;
147
- const r = e[s];
148
- if (F(r)) {
147
+ const s = e[r];
148
+ if (N(s)) {
149
149
  if (t.enumerable = !1, "writable" in t) {
150
150
  t.writable = !1;
151
151
  return;
152
152
  }
153
153
  t.set || (t.set = () => {
154
- throw Error("Can not rewrite read-only method '" + s + "'");
154
+ throw Error("Can not rewrite read-only method '" + r + "'");
155
155
  });
156
156
  }
157
157
  });
158
- }, ks = (e, t) => {
159
- const s = {}, r = (n) => {
158
+ }, lr = (e, t) => {
159
+ const r = {}, s = (n) => {
160
160
  n.forEach((i) => {
161
- s[i] = !0;
161
+ r[i] = !0;
162
162
  });
163
163
  };
164
- return te(e) ? r(e) : r(String(e).split(t)), s;
165
- }, vs = () => {
166
- }, Es = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
167
- function Cs(e) {
168
- return !!(e && F(e.append) && e[bt] === "FormData" && e[ye]);
169
- }
170
- const Os = (e) => {
171
- const t = new Array(10), s = (r, n) => {
172
- if (ae(r)) {
173
- if (t.indexOf(r) >= 0)
164
+ return X(e) ? s(e) : s(String(e).split(t)), r;
165
+ }, cr = () => {
166
+ }, ur = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
167
+ function dr(e) {
168
+ return !!(e && N(e.append) && e[tt] === "FormData" && e[de]);
169
+ }
170
+ const fr = (e) => {
171
+ const t = new Array(10), r = (s, n) => {
172
+ if (te(s)) {
173
+ if (t.indexOf(s) >= 0)
174
174
  return;
175
- if (oe(r))
176
- return r;
177
- if (!("toJSON" in r)) {
178
- t[n] = r;
179
- const i = te(r) ? [] : {};
180
- return le(r, (o, a) => {
181
- const f = s(o, n + 1);
182
- !ee(f) && (i[a] = f);
175
+ if (ee(s))
176
+ return s;
177
+ if (!("toJSON" in s)) {
178
+ t[n] = s;
179
+ const i = X(s) ? [] : {};
180
+ return re(s, (o, a) => {
181
+ const f = r(o, n + 1);
182
+ !Z(f) && (i[a] = f);
183
183
  }), t[n] = void 0, i;
184
184
  }
185
185
  }
186
- return r;
186
+ return s;
187
187
  };
188
- return s(e, 0);
189
- }, Rs = B("AsyncFunction"), $s = (e) => e && (ae(e) || F(e)) && F(e.then) && F(e.catch), St = ((e, t) => e ? setImmediate : t ? ((s, r) => (X.addEventListener("message", ({ source: n, data: i }) => {
190
- n === X && i === s && r.length && r.shift()();
188
+ return r(e, 0);
189
+ }, hr = B("AsyncFunction"), pr = (e) => e && (te(e) || N(e)) && N(e.then) && N(e.catch), at = ((e, t) => e ? setImmediate : t ? ((r, s) => (H.addEventListener("message", ({ source: n, data: i }) => {
190
+ n === H && i === r && s.length && s.shift()();
191
191
  }, !1), (n) => {
192
- r.push(n), X.postMessage(s, "*");
193
- }))(`axios@${Math.random()}`, []) : (s) => setTimeout(s))(
192
+ s.push(n), H.postMessage(r, "*");
193
+ }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
194
194
  typeof setImmediate == "function",
195
- F(X.postMessage)
196
- ), Ts = typeof queueMicrotask < "u" ? queueMicrotask.bind(X) : typeof process < "u" && process.nextTick || St, Ns = (e) => e != null && F(e[ye]), l = {
197
- isArray: te,
198
- isArrayBuffer: wt,
199
- isBuffer: oe,
200
- isFormData: ns,
201
- isArrayBufferView: Xt,
202
- isString: Gt,
203
- isNumber: yt,
204
- isBoolean: Qt,
205
- isObject: ae,
206
- isPlainObject: pe,
207
- isEmptyObject: Zt,
208
- isReadableStream: os,
209
- isRequest: as,
210
- isResponse: ls,
211
- isHeaders: cs,
212
- isUndefined: ee,
213
- isDate: Yt,
214
- isFile: es,
215
- isBlob: ts,
216
- isRegExp: Ds,
217
- isFunction: F,
218
- isStream: rs,
219
- isURLSearchParams: is,
220
- isTypedArray: bs,
221
- isFileList: ss,
222
- forEach: le,
223
- merge: Te,
224
- extend: ds,
225
- trim: us,
226
- stripBOM: fs,
227
- inherits: hs,
228
- toFlatObject: ps,
229
- kindOf: xe,
195
+ N(H.postMessage)
196
+ ), mr = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || at, gr = (e) => e != null && N(e[de]), l = {
197
+ isArray: X,
198
+ isArrayBuffer: rt,
199
+ isBuffer: ee,
200
+ isFormData: zt,
201
+ isArrayBufferView: At,
202
+ isString: Ft,
203
+ isNumber: st,
204
+ isBoolean: Lt,
205
+ isObject: te,
206
+ isPlainObject: ie,
207
+ isEmptyObject: Pt,
208
+ isReadableStream: qt,
209
+ isRequest: Ht,
210
+ isResponse: Wt,
211
+ isHeaders: Jt,
212
+ isUndefined: Z,
213
+ isDate: Bt,
214
+ isFile: Ut,
215
+ isBlob: jt,
216
+ isRegExp: or,
217
+ isFunction: N,
218
+ isStream: It,
219
+ isURLSearchParams: Mt,
220
+ isTypedArray: tr,
221
+ isFileList: Vt,
222
+ forEach: re,
223
+ merge: De,
224
+ extend: Xt,
225
+ trim: Kt,
226
+ stripBOM: Gt,
227
+ inherits: Qt,
228
+ toFlatObject: Zt,
229
+ kindOf: fe,
230
230
  kindOfTest: B,
231
- endsWith: ms,
232
- toArray: gs,
233
- forEachEntry: ws,
234
- matchAll: ys,
235
- isHTMLForm: xs,
236
- hasOwnProperty: Ge,
237
- hasOwnProp: Ge,
231
+ endsWith: Yt,
232
+ toArray: er,
233
+ forEachEntry: rr,
234
+ matchAll: sr,
235
+ isHTMLForm: nr,
236
+ hasOwnProperty: Be,
237
+ hasOwnProp: Be,
238
238
  // an alias to avoid ESLint no-prototype-builtins detection
239
- reduceDescriptors: Dt,
240
- freezeMethods: Ss,
241
- toObjectSet: ks,
242
- toCamelCase: _s,
243
- noop: vs,
244
- toFiniteNumber: Es,
245
- findKey: xt,
246
- global: X,
247
- isContextDefined: _t,
248
- isSpecCompliantForm: Cs,
249
- toJSONObject: Os,
250
- isAsyncFn: Rs,
251
- isThenable: $s,
252
- setImmediate: St,
253
- asap: Ts,
254
- isIterable: Ns
239
+ reduceDescriptors: ot,
240
+ freezeMethods: ar,
241
+ toObjectSet: lr,
242
+ toCamelCase: ir,
243
+ noop: cr,
244
+ toFiniteNumber: ur,
245
+ findKey: nt,
246
+ global: H,
247
+ isContextDefined: it,
248
+ isSpecCompliantForm: dr,
249
+ toJSONObject: fr,
250
+ isAsyncFn: hr,
251
+ isThenable: pr,
252
+ setImmediate: at,
253
+ asap: mr,
254
+ isIterable: gr
255
255
  };
256
- function D(e, t, s, r, n) {
257
- 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), s && (this.config = s), r && (this.request = r), n && (this.response = n, this.status = n.status ? n.status : null);
256
+ function D(e, t, r, s, n) {
257
+ 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);
258
258
  }
259
259
  l.inherits(D, Error, {
260
260
  toJSON: function() {
@@ -277,7 +277,7 @@ l.inherits(D, Error, {
277
277
  };
278
278
  }
279
279
  });
280
- const kt = D.prototype, vt = {};
280
+ const lt = D.prototype, ct = {};
281
281
  [
282
282
  "ERR_BAD_OPTION_VALUE",
283
283
  "ERR_BAD_OPTION",
@@ -293,100 +293,98 @@ const kt = D.prototype, vt = {};
293
293
  "ERR_INVALID_URL"
294
294
  // eslint-disable-next-line func-names
295
295
  ].forEach((e) => {
296
- vt[e] = { value: e };
296
+ ct[e] = { value: e };
297
297
  });
298
- Object.defineProperties(D, vt);
299
- Object.defineProperty(kt, "isAxiosError", { value: !0 });
300
- D.from = (e, t, s, r, n, i) => {
301
- const o = Object.create(kt);
302
- l.toFlatObject(e, o, function(u) {
303
- return u !== Error.prototype;
304
- }, (d) => d !== "isAxiosError");
305
- const a = e && e.message ? e.message : "Error", f = t == null && e ? e.code : t;
306
- return D.call(o, a, f, s, r, n), e && o.cause == null && Object.defineProperty(o, "cause", { value: e, configurable: !0 }), o.name = e && e.name || "Error", i && Object.assign(o, i), o;
298
+ Object.defineProperties(D, ct);
299
+ Object.defineProperty(lt, "isAxiosError", { value: !0 });
300
+ D.from = (e, t, r, s, n, i) => {
301
+ const o = Object.create(lt);
302
+ return l.toFlatObject(e, o, function(f) {
303
+ return f !== Error.prototype;
304
+ }, (a) => a !== "isAxiosError"), D.call(o, e.message, t, r, s, n), o.cause = e, o.name = e.name, i && Object.assign(o, i), o;
307
305
  };
308
- const Fs = null;
309
- function Ne(e) {
306
+ const br = null;
307
+ function ke(e) {
310
308
  return l.isPlainObject(e) || l.isArray(e);
311
309
  }
312
- function Et(e) {
310
+ function ut(e) {
313
311
  return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
314
312
  }
315
- function Qe(e, t, s) {
313
+ function Ue(e, t, r) {
316
314
  return e ? e.concat(t).map(function(n, i) {
317
- return n = Et(n), !s && i ? "[" + n + "]" : n;
318
- }).join(s ? "." : "") : t;
315
+ return n = ut(n), !r && i ? "[" + n + "]" : n;
316
+ }).join(r ? "." : "") : t;
319
317
  }
320
- function As(e) {
321
- return l.isArray(e) && !e.some(Ne);
318
+ function wr(e) {
319
+ return l.isArray(e) && !e.some(ke);
322
320
  }
323
- const Ps = l.toFlatObject(l, {}, null, function(t) {
321
+ const yr = l.toFlatObject(l, {}, null, function(t) {
324
322
  return /^is[A-Z]/.test(t);
325
323
  });
326
- function De(e, t, s) {
324
+ function pe(e, t, r) {
327
325
  if (!l.isObject(e))
328
326
  throw new TypeError("target must be an object");
329
- t = t || new FormData(), s = l.toFlatObject(s, {
327
+ t = t || new FormData(), r = l.toFlatObject(r, {
330
328
  metaTokens: !0,
331
329
  dots: !1,
332
330
  indexes: !1
333
- }, !1, function(p, m) {
334
- return !l.isUndefined(m[p]);
331
+ }, !1, function(p, b) {
332
+ return !l.isUndefined(b[p]);
335
333
  });
336
- const r = s.metaTokens, n = s.visitor || u, i = s.dots, o = s.indexes, f = (s.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
334
+ const s = r.metaTokens, n = r.visitor || c, i = r.dots, o = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
337
335
  if (!l.isFunction(n))
338
336
  throw new TypeError("visitor must be a function");
339
- function d(c) {
340
- if (c === null) return "";
341
- if (l.isDate(c))
342
- return c.toISOString();
343
- if (l.isBoolean(c))
344
- return c.toString();
345
- if (!f && l.isBlob(c))
337
+ function u(d) {
338
+ if (d === null) return "";
339
+ if (l.isDate(d))
340
+ return d.toISOString();
341
+ if (l.isBoolean(d))
342
+ return d.toString();
343
+ if (!f && l.isBlob(d))
346
344
  throw new D("Blob is not supported. Use a Buffer instead.");
347
- return l.isArrayBuffer(c) || l.isTypedArray(c) ? f && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
345
+ return l.isArrayBuffer(d) || l.isTypedArray(d) ? f && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
348
346
  }
349
- function u(c, p, m) {
350
- let k = c;
351
- if (c && !m && typeof c == "object") {
347
+ function c(d, p, b) {
348
+ let S = d;
349
+ if (d && !b && typeof d == "object") {
352
350
  if (l.endsWith(p, "{}"))
353
- p = r ? p : p.slice(0, -2), c = JSON.stringify(c);
354
- else if (l.isArray(c) && As(c) || (l.isFileList(c) || l.endsWith(p, "[]")) && (k = l.toArray(c)))
355
- return p = Et(p), k.forEach(function(y, C) {
351
+ p = s ? p : p.slice(0, -2), d = JSON.stringify(d);
352
+ else if (l.isArray(d) && wr(d) || (l.isFileList(d) || l.endsWith(p, "[]")) && (S = l.toArray(d)))
353
+ return p = ut(p), S.forEach(function(y, L) {
356
354
  !(l.isUndefined(y) || y === null) && t.append(
357
355
  // eslint-disable-next-line no-nested-ternary
358
- o === !0 ? Qe([p], C, i) : o === null ? p : p + "[]",
359
- d(y)
356
+ o === !0 ? Ue([p], L, i) : o === null ? p : p + "[]",
357
+ u(y)
360
358
  );
361
359
  }), !1;
362
360
  }
363
- return Ne(c) ? !0 : (t.append(Qe(m, p, i), d(c)), !1);
361
+ return ke(d) ? !0 : (t.append(Ue(b, p, i), u(d)), !1);
364
362
  }
365
- const h = [], w = Object.assign(Ps, {
366
- defaultVisitor: u,
367
- convertValue: d,
368
- isVisitable: Ne
363
+ const h = [], w = Object.assign(yr, {
364
+ defaultVisitor: c,
365
+ convertValue: u,
366
+ isVisitable: ke
369
367
  });
370
- function b(c, p) {
371
- if (!l.isUndefined(c)) {
372
- if (h.indexOf(c) !== -1)
368
+ function g(d, p) {
369
+ if (!l.isUndefined(d)) {
370
+ if (h.indexOf(d) !== -1)
373
371
  throw Error("Circular reference detected in " + p.join("."));
374
- h.push(c), l.forEach(c, function(k, S) {
375
- (!(l.isUndefined(k) || k === null) && n.call(
372
+ h.push(d), l.forEach(d, function(S, k) {
373
+ (!(l.isUndefined(S) || S === null) && n.call(
376
374
  t,
377
- k,
378
- l.isString(S) ? S.trim() : S,
375
+ S,
376
+ l.isString(k) ? k.trim() : k,
379
377
  p,
380
378
  w
381
- )) === !0 && b(k, p ? p.concat(S) : [S]);
379
+ )) === !0 && g(S, p ? p.concat(k) : [k]);
382
380
  }), h.pop();
383
381
  }
384
382
  }
385
383
  if (!l.isObject(e))
386
384
  throw new TypeError("data must be an object");
387
- return b(e), t;
385
+ return g(e), t;
388
386
  }
389
- function Ze(e) {
387
+ function je(e) {
390
388
  const t = {
391
389
  "!": "%21",
392
390
  "'": "%27",
@@ -396,44 +394,44 @@ function Ze(e) {
396
394
  "%20": "+",
397
395
  "%00": "\0"
398
396
  };
399
- return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
400
- return t[r];
397
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
398
+ return t[s];
401
399
  });
402
400
  }
403
- function Ve(e, t) {
404
- this._pairs = [], e && De(e, this, t);
401
+ function Ne(e, t) {
402
+ this._pairs = [], e && pe(e, this, t);
405
403
  }
406
- const Ct = Ve.prototype;
407
- Ct.append = function(t, s) {
408
- this._pairs.push([t, s]);
404
+ const dt = Ne.prototype;
405
+ dt.append = function(t, r) {
406
+ this._pairs.push([t, r]);
409
407
  };
410
- Ct.toString = function(t) {
411
- const s = t ? function(r) {
412
- return t.call(this, r, Ze);
413
- } : Ze;
408
+ dt.toString = function(t) {
409
+ const r = t ? function(s) {
410
+ return t.call(this, s, je);
411
+ } : je;
414
412
  return this._pairs.map(function(n) {
415
- return s(n[0]) + "=" + s(n[1]);
413
+ return r(n[0]) + "=" + r(n[1]);
416
414
  }, "").join("&");
417
415
  };
418
- function Ls(e) {
419
- return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
416
+ function xr(e) {
417
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
420
418
  }
421
- function Ot(e, t, s) {
419
+ function ft(e, t, r) {
422
420
  if (!t)
423
421
  return e;
424
- const r = s && s.encode || Ls;
425
- l.isFunction(s) && (s = {
426
- serialize: s
422
+ const s = r && r.encode || xr;
423
+ l.isFunction(r) && (r = {
424
+ serialize: r
427
425
  });
428
- const n = s && s.serialize;
426
+ const n = r && r.serialize;
429
427
  let i;
430
- if (n ? i = n(t, s) : i = l.isURLSearchParams(t) ? t.toString() : new Ve(t, s).toString(r), i) {
428
+ if (n ? i = n(t, r) : i = l.isURLSearchParams(t) ? t.toString() : new Ne(t, r).toString(s), i) {
431
429
  const o = e.indexOf("#");
432
430
  o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
433
431
  }
434
432
  return e;
435
433
  }
436
- class Ye {
434
+ class Ve {
437
435
  constructor() {
438
436
  this.handlers = [];
439
437
  }
@@ -445,12 +443,12 @@ class Ye {
445
443
  *
446
444
  * @return {Number} An ID used to remove interceptor later
447
445
  */
448
- use(t, s, r) {
446
+ use(t, r, s) {
449
447
  return this.handlers.push({
450
448
  fulfilled: t,
451
- rejected: s,
452
- synchronous: r ? r.synchronous : !1,
453
- runWhen: r ? r.runWhen : null
449
+ rejected: r,
450
+ synchronous: s ? s.synchronous : !1,
451
+ runWhen: s ? s.runWhen : null
454
452
  }), this.handlers.length - 1;
455
453
  }
456
454
  /**
@@ -482,116 +480,116 @@ class Ye {
482
480
  * @returns {void}
483
481
  */
484
482
  forEach(t) {
485
- l.forEach(this.handlers, function(r) {
486
- r !== null && t(r);
483
+ l.forEach(this.handlers, function(s) {
484
+ s !== null && t(s);
487
485
  });
488
486
  }
489
487
  }
490
- const Rt = {
488
+ const ht = {
491
489
  silentJSONParsing: !0,
492
490
  forcedJSONParsing: !0,
493
491
  clarifyTimeoutError: !1
494
- }, Us = typeof URLSearchParams < "u" ? URLSearchParams : Ve, Bs = typeof FormData < "u" ? FormData : null, js = typeof Blob < "u" ? Blob : null, Vs = {
492
+ }, _r = typeof URLSearchParams < "u" ? URLSearchParams : Ne, Dr = typeof FormData < "u" ? FormData : null, kr = typeof Blob < "u" ? Blob : null, Sr = {
495
493
  isBrowser: !0,
496
494
  classes: {
497
- URLSearchParams: Us,
498
- FormData: Bs,
499
- Blob: js
495
+ URLSearchParams: _r,
496
+ FormData: Dr,
497
+ Blob: kr
500
498
  },
501
499
  protocols: ["http", "https", "file", "blob", "url", "data"]
502
- }, Ie = typeof window < "u" && typeof document < "u", Fe = typeof navigator == "object" && navigator || void 0, Is = Ie && (!Fe || ["ReactNative", "NativeScript", "NS"].indexOf(Fe.product) < 0), zs = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
503
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ms = Ie && window.location.href || "http://localhost", Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
+ }, Ae = typeof window < "u" && typeof document < "u", Se = typeof navigator == "object" && navigator || void 0, vr = Ae && (!Se || ["ReactNative", "NativeScript", "NS"].indexOf(Se.product) < 0), Er = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
501
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Cr = Ae && window.location.href || "http://localhost", Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
504
502
  __proto__: null,
505
- hasBrowserEnv: Ie,
506
- hasStandardBrowserEnv: Is,
507
- hasStandardBrowserWebWorkerEnv: zs,
508
- navigator: Fe,
509
- origin: Ms
510
- }, Symbol.toStringTag, { value: "Module" })), R = {
511
- ...Hs,
512
- ...Vs
503
+ hasBrowserEnv: Ae,
504
+ hasStandardBrowserEnv: vr,
505
+ hasStandardBrowserWebWorkerEnv: Er,
506
+ navigator: Se,
507
+ origin: Cr
508
+ }, Symbol.toStringTag, { value: "Module" })), O = {
509
+ ...Rr,
510
+ ...Sr
513
511
  };
514
- function qs(e, t) {
515
- return De(e, new R.classes.URLSearchParams(), {
516
- visitor: function(s, r, n, i) {
517
- return R.isNode && l.isBuffer(s) ? (this.append(r, s.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
512
+ function Or(e, t) {
513
+ return pe(e, new O.classes.URLSearchParams(), {
514
+ visitor: function(r, s, n, i) {
515
+ return O.isNode && l.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
518
516
  },
519
517
  ...t
520
518
  });
521
519
  }
522
- function Ws(e) {
520
+ function Tr(e) {
523
521
  return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
524
522
  }
525
- function Js(e) {
526
- const t = {}, s = Object.keys(e);
527
- let r;
528
- const n = s.length;
523
+ function $r(e) {
524
+ const t = {}, r = Object.keys(e);
525
+ let s;
526
+ const n = r.length;
529
527
  let i;
530
- for (r = 0; r < n; r++)
531
- i = s[r], t[i] = e[i];
528
+ for (s = 0; s < n; s++)
529
+ i = r[s], t[i] = e[i];
532
530
  return t;
533
531
  }
534
- function $t(e) {
535
- function t(s, r, n, i) {
536
- let o = s[i++];
532
+ function pt(e) {
533
+ function t(r, s, n, i) {
534
+ let o = r[i++];
537
535
  if (o === "__proto__") return !0;
538
- const a = Number.isFinite(+o), f = i >= s.length;
539
- return o = !o && l.isArray(n) ? n.length : o, f ? (l.hasOwnProp(n, o) ? n[o] = [n[o], r] : n[o] = r, !a) : ((!n[o] || !l.isObject(n[o])) && (n[o] = []), t(s, r, n[o], i) && l.isArray(n[o]) && (n[o] = Js(n[o])), !a);
536
+ const a = Number.isFinite(+o), f = i >= r.length;
537
+ return o = !o && l.isArray(n) ? n.length : o, f ? (l.hasOwnProp(n, o) ? n[o] = [n[o], s] : n[o] = s, !a) : ((!n[o] || !l.isObject(n[o])) && (n[o] = []), t(r, s, n[o], i) && l.isArray(n[o]) && (n[o] = $r(n[o])), !a);
540
538
  }
541
539
  if (l.isFormData(e) && l.isFunction(e.entries)) {
542
- const s = {};
543
- return l.forEachEntry(e, (r, n) => {
544
- t(Ws(r), n, s, 0);
545
- }), s;
540
+ const r = {};
541
+ return l.forEachEntry(e, (s, n) => {
542
+ t(Tr(s), n, r, 0);
543
+ }), r;
546
544
  }
547
545
  return null;
548
546
  }
549
- function Ks(e, t, s) {
547
+ function Nr(e, t, r) {
550
548
  if (l.isString(e))
551
549
  try {
552
550
  return (t || JSON.parse)(e), l.trim(e);
553
- } catch (r) {
554
- if (r.name !== "SyntaxError")
555
- throw r;
551
+ } catch (s) {
552
+ if (s.name !== "SyntaxError")
553
+ throw s;
556
554
  }
557
- return (s || JSON.stringify)(e);
555
+ return (r || JSON.stringify)(e);
558
556
  }
559
- const ce = {
560
- transitional: Rt,
557
+ const se = {
558
+ transitional: ht,
561
559
  adapter: ["xhr", "http", "fetch"],
562
- transformRequest: [function(t, s) {
563
- const r = s.getContentType() || "", n = r.indexOf("application/json") > -1, i = l.isObject(t);
560
+ transformRequest: [function(t, r) {
561
+ const s = r.getContentType() || "", n = s.indexOf("application/json") > -1, i = l.isObject(t);
564
562
  if (i && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
565
- return n ? JSON.stringify($t(t)) : t;
563
+ return n ? JSON.stringify(pt(t)) : t;
566
564
  if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
567
565
  return t;
568
566
  if (l.isArrayBufferView(t))
569
567
  return t.buffer;
570
568
  if (l.isURLSearchParams(t))
571
- return s.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
569
+ return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
572
570
  let a;
573
571
  if (i) {
574
- if (r.indexOf("application/x-www-form-urlencoded") > -1)
575
- return qs(t, this.formSerializer).toString();
576
- if ((a = l.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
572
+ if (s.indexOf("application/x-www-form-urlencoded") > -1)
573
+ return Or(t, this.formSerializer).toString();
574
+ if ((a = l.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
577
575
  const f = this.env && this.env.FormData;
578
- return De(
576
+ return pe(
579
577
  a ? { "files[]": t } : t,
580
578
  f && new f(),
581
579
  this.formSerializer
582
580
  );
583
581
  }
584
582
  }
585
- return i || n ? (s.setContentType("application/json", !1), Ks(t)) : t;
583
+ return i || n ? (r.setContentType("application/json", !1), Nr(t)) : t;
586
584
  }],
587
585
  transformResponse: [function(t) {
588
- const s = this.transitional || ce.transitional, r = s && s.forcedJSONParsing, n = this.responseType === "json";
586
+ const r = this.transitional || se.transitional, s = r && r.forcedJSONParsing, n = this.responseType === "json";
589
587
  if (l.isResponse(t) || l.isReadableStream(t))
590
588
  return t;
591
- if (t && l.isString(t) && (r && !this.responseType || n)) {
592
- const o = !(s && s.silentJSONParsing) && n;
589
+ if (t && l.isString(t) && (s && !this.responseType || n)) {
590
+ const o = !(r && r.silentJSONParsing) && n;
593
591
  try {
594
- return JSON.parse(t, this.parseReviver);
592
+ return JSON.parse(t);
595
593
  } catch (a) {
596
594
  if (o)
597
595
  throw a.name === "SyntaxError" ? D.from(a, D.ERR_BAD_RESPONSE, this, null, this.response) : a;
@@ -609,8 +607,8 @@ const ce = {
609
607
  maxContentLength: -1,
610
608
  maxBodyLength: -1,
611
609
  env: {
612
- FormData: R.classes.FormData,
613
- Blob: R.classes.Blob
610
+ FormData: O.classes.FormData,
611
+ Blob: O.classes.Blob
614
612
  },
615
613
  validateStatus: function(t) {
616
614
  return t >= 200 && t < 300;
@@ -623,9 +621,9 @@ const ce = {
623
621
  }
624
622
  };
625
623
  l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
626
- ce.headers[e] = {};
624
+ se.headers[e] = {};
627
625
  });
628
- const Xs = l.toObjectSet([
626
+ const Ar = l.toObjectSet([
629
627
  "age",
630
628
  "authorization",
631
629
  "content-length",
@@ -643,47 +641,47 @@ const Xs = l.toObjectSet([
643
641
  "referer",
644
642
  "retry-after",
645
643
  "user-agent"
646
- ]), Gs = (e) => {
644
+ ]), Fr = (e) => {
647
645
  const t = {};
648
- let s, r, n;
646
+ let r, s, n;
649
647
  return e && e.split(`
650
648
  `).forEach(function(o) {
651
- n = o.indexOf(":"), s = o.substring(0, n).trim().toLowerCase(), r = o.substring(n + 1).trim(), !(!s || t[s] && Xs[s]) && (s === "set-cookie" ? t[s] ? t[s].push(r) : t[s] = [r] : t[s] = t[s] ? t[s] + ", " + r : r);
649
+ n = o.indexOf(":"), r = o.substring(0, n).trim().toLowerCase(), s = o.substring(n + 1).trim(), !(!r || t[r] && Ar[r]) && (r === "set-cookie" ? t[r] ? t[r].push(s) : t[r] = [s] : t[r] = t[r] ? t[r] + ", " + s : s);
652
650
  }), t;
653
- }, et = Symbol("internals");
654
- function ne(e) {
651
+ }, Ie = Symbol("internals");
652
+ function Q(e) {
655
653
  return e && String(e).trim().toLowerCase();
656
654
  }
657
- function me(e) {
658
- return e === !1 || e == null ? e : l.isArray(e) ? e.map(me) : String(e);
655
+ function oe(e) {
656
+ return e === !1 || e == null ? e : l.isArray(e) ? e.map(oe) : String(e);
659
657
  }
660
- function Qs(e) {
661
- const t = /* @__PURE__ */ Object.create(null), s = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
662
- let r;
663
- for (; r = s.exec(e); )
664
- t[r[1]] = r[2];
658
+ function Lr(e) {
659
+ const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
660
+ let s;
661
+ for (; s = r.exec(e); )
662
+ t[s[1]] = s[2];
665
663
  return t;
666
664
  }
667
- const Zs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
668
- function Ce(e, t, s, r, n) {
669
- if (l.isFunction(r))
670
- return r.call(this, t, s);
671
- if (n && (t = s), !!l.isString(t)) {
672
- if (l.isString(r))
673
- return t.indexOf(r) !== -1;
674
- if (l.isRegExp(r))
675
- return r.test(t);
665
+ const Pr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
666
+ function we(e, t, r, s, n) {
667
+ if (l.isFunction(s))
668
+ return s.call(this, t, r);
669
+ if (n && (t = r), !!l.isString(t)) {
670
+ if (l.isString(s))
671
+ return t.indexOf(s) !== -1;
672
+ if (l.isRegExp(s))
673
+ return s.test(t);
676
674
  }
677
675
  }
678
- function Ys(e) {
679
- return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, s, r) => s.toUpperCase() + r);
676
+ function Br(e) {
677
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, s) => r.toUpperCase() + s);
680
678
  }
681
- function er(e, t) {
682
- const s = l.toCamelCase(" " + t);
683
- ["get", "set", "has"].forEach((r) => {
684
- Object.defineProperty(e, r + s, {
679
+ function Ur(e, t) {
680
+ const r = l.toCamelCase(" " + t);
681
+ ["get", "set", "has"].forEach((s) => {
682
+ Object.defineProperty(e, s + r, {
685
683
  value: function(n, i, o) {
686
- return this[r].call(this, t, n, i, o);
684
+ return this[s].call(this, t, n, i, o);
687
685
  },
688
686
  configurable: !0
689
687
  });
@@ -693,102 +691,102 @@ let A = class {
693
691
  constructor(t) {
694
692
  t && this.set(t);
695
693
  }
696
- set(t, s, r) {
694
+ set(t, r, s) {
697
695
  const n = this;
698
- function i(a, f, d) {
699
- const u = ne(f);
700
- if (!u)
696
+ function i(a, f, u) {
697
+ const c = Q(f);
698
+ if (!c)
701
699
  throw new Error("header name must be a non-empty string");
702
- const h = l.findKey(n, u);
703
- (!h || n[h] === void 0 || d === !0 || d === void 0 && n[h] !== !1) && (n[h || f] = me(a));
700
+ const h = l.findKey(n, c);
701
+ (!h || n[h] === void 0 || u === !0 || u === void 0 && n[h] !== !1) && (n[h || f] = oe(a));
704
702
  }
705
- const o = (a, f) => l.forEach(a, (d, u) => i(d, u, f));
703
+ const o = (a, f) => l.forEach(a, (u, c) => i(u, c, f));
706
704
  if (l.isPlainObject(t) || t instanceof this.constructor)
707
- o(t, s);
708
- else if (l.isString(t) && (t = t.trim()) && !Zs(t))
709
- o(Gs(t), s);
705
+ o(t, r);
706
+ else if (l.isString(t) && (t = t.trim()) && !Pr(t))
707
+ o(Fr(t), r);
710
708
  else if (l.isObject(t) && l.isIterable(t)) {
711
- let a = {}, f, d;
712
- for (const u of t) {
713
- if (!l.isArray(u))
709
+ let a = {}, f, u;
710
+ for (const c of t) {
711
+ if (!l.isArray(c))
714
712
  throw TypeError("Object iterator must return a key-value pair");
715
- a[d = u[0]] = (f = a[d]) ? l.isArray(f) ? [...f, u[1]] : [f, u[1]] : u[1];
713
+ a[u = c[0]] = (f = a[u]) ? l.isArray(f) ? [...f, c[1]] : [f, c[1]] : c[1];
716
714
  }
717
- o(a, s);
715
+ o(a, r);
718
716
  } else
719
- t != null && i(s, t, r);
717
+ t != null && i(r, t, s);
720
718
  return this;
721
719
  }
722
- get(t, s) {
723
- if (t = ne(t), t) {
724
- const r = l.findKey(this, t);
725
- if (r) {
726
- const n = this[r];
727
- if (!s)
720
+ get(t, r) {
721
+ if (t = Q(t), t) {
722
+ const s = l.findKey(this, t);
723
+ if (s) {
724
+ const n = this[s];
725
+ if (!r)
728
726
  return n;
729
- if (s === !0)
730
- return Qs(n);
731
- if (l.isFunction(s))
732
- return s.call(this, n, r);
733
- if (l.isRegExp(s))
734
- return s.exec(n);
727
+ if (r === !0)
728
+ return Lr(n);
729
+ if (l.isFunction(r))
730
+ return r.call(this, n, s);
731
+ if (l.isRegExp(r))
732
+ return r.exec(n);
735
733
  throw new TypeError("parser must be boolean|regexp|function");
736
734
  }
737
735
  }
738
736
  }
739
- has(t, s) {
740
- if (t = ne(t), t) {
741
- const r = l.findKey(this, t);
742
- return !!(r && this[r] !== void 0 && (!s || Ce(this, this[r], r, s)));
737
+ has(t, r) {
738
+ if (t = Q(t), t) {
739
+ const s = l.findKey(this, t);
740
+ return !!(s && this[s] !== void 0 && (!r || we(this, this[s], s, r)));
743
741
  }
744
742
  return !1;
745
743
  }
746
- delete(t, s) {
747
- const r = this;
744
+ delete(t, r) {
745
+ const s = this;
748
746
  let n = !1;
749
747
  function i(o) {
750
- if (o = ne(o), o) {
751
- const a = l.findKey(r, o);
752
- a && (!s || Ce(r, r[a], a, s)) && (delete r[a], n = !0);
748
+ if (o = Q(o), o) {
749
+ const a = l.findKey(s, o);
750
+ a && (!r || we(s, s[a], a, r)) && (delete s[a], n = !0);
753
751
  }
754
752
  }
755
753
  return l.isArray(t) ? t.forEach(i) : i(t), n;
756
754
  }
757
755
  clear(t) {
758
- const s = Object.keys(this);
759
- let r = s.length, n = !1;
760
- for (; r--; ) {
761
- const i = s[r];
762
- (!t || Ce(this, this[i], i, t, !0)) && (delete this[i], n = !0);
756
+ const r = Object.keys(this);
757
+ let s = r.length, n = !1;
758
+ for (; s--; ) {
759
+ const i = r[s];
760
+ (!t || we(this, this[i], i, t, !0)) && (delete this[i], n = !0);
763
761
  }
764
762
  return n;
765
763
  }
766
764
  normalize(t) {
767
- const s = this, r = {};
765
+ const r = this, s = {};
768
766
  return l.forEach(this, (n, i) => {
769
- const o = l.findKey(r, i);
767
+ const o = l.findKey(s, i);
770
768
  if (o) {
771
- s[o] = me(n), delete s[i];
769
+ r[o] = oe(n), delete r[i];
772
770
  return;
773
771
  }
774
- const a = t ? Ys(i) : String(i).trim();
775
- a !== i && delete s[i], s[a] = me(n), r[a] = !0;
772
+ const a = t ? Br(i) : String(i).trim();
773
+ a !== i && delete r[i], r[a] = oe(n), s[a] = !0;
776
774
  }), this;
777
775
  }
778
776
  concat(...t) {
779
777
  return this.constructor.concat(this, ...t);
780
778
  }
781
779
  toJSON(t) {
782
- const s = /* @__PURE__ */ Object.create(null);
783
- return l.forEach(this, (r, n) => {
784
- r != null && r !== !1 && (s[n] = t && l.isArray(r) ? r.join(", ") : r);
785
- }), s;
780
+ const r = /* @__PURE__ */ Object.create(null);
781
+ return l.forEach(this, (s, n) => {
782
+ s != null && s !== !1 && (r[n] = t && l.isArray(s) ? s.join(", ") : s);
783
+ }), r;
786
784
  }
787
785
  [Symbol.iterator]() {
788
786
  return Object.entries(this.toJSON())[Symbol.iterator]();
789
787
  }
790
788
  toString() {
791
- return Object.entries(this.toJSON()).map(([t, s]) => t + ": " + s).join(`
789
+ return Object.entries(this.toJSON()).map(([t, r]) => t + ": " + r).join(`
792
790
  `);
793
791
  }
794
792
  getSetCookie() {
@@ -800,125 +798,125 @@ let A = class {
800
798
  static from(t) {
801
799
  return t instanceof this ? t : new this(t);
802
800
  }
803
- static concat(t, ...s) {
804
- const r = new this(t);
805
- return s.forEach((n) => r.set(n)), r;
801
+ static concat(t, ...r) {
802
+ const s = new this(t);
803
+ return r.forEach((n) => s.set(n)), s;
806
804
  }
807
805
  static accessor(t) {
808
- const r = (this[et] = this[et] = {
806
+ const s = (this[Ie] = this[Ie] = {
809
807
  accessors: {}
810
808
  }).accessors, n = this.prototype;
811
809
  function i(o) {
812
- const a = ne(o);
813
- r[a] || (er(n, o), r[a] = !0);
810
+ const a = Q(o);
811
+ s[a] || (Ur(n, o), s[a] = !0);
814
812
  }
815
813
  return l.isArray(t) ? t.forEach(i) : i(t), this;
816
814
  }
817
815
  };
818
816
  A.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
819
817
  l.reduceDescriptors(A.prototype, ({ value: e }, t) => {
820
- let s = t[0].toUpperCase() + t.slice(1);
818
+ let r = t[0].toUpperCase() + t.slice(1);
821
819
  return {
822
820
  get: () => e,
823
- set(r) {
824
- this[s] = r;
821
+ set(s) {
822
+ this[r] = s;
825
823
  }
826
824
  };
827
825
  });
828
826
  l.freezeMethods(A);
829
- function Oe(e, t) {
830
- const s = this || ce, r = t || s, n = A.from(r.headers);
831
- let i = r.data;
827
+ function ye(e, t) {
828
+ const r = this || se, s = t || r, n = A.from(s.headers);
829
+ let i = s.data;
832
830
  return l.forEach(e, function(a) {
833
- i = a.call(s, i, n.normalize(), t ? t.status : void 0);
831
+ i = a.call(r, i, n.normalize(), t ? t.status : void 0);
834
832
  }), n.normalize(), i;
835
833
  }
836
- function Tt(e) {
834
+ function mt(e) {
837
835
  return !!(e && e.__CANCEL__);
838
836
  }
839
- function se(e, t, s) {
840
- D.call(this, e ?? "canceled", D.ERR_CANCELED, t, s), this.name = "CanceledError";
837
+ function G(e, t, r) {
838
+ D.call(this, e ?? "canceled", D.ERR_CANCELED, t, r), this.name = "CanceledError";
841
839
  }
842
- l.inherits(se, D, {
840
+ l.inherits(G, D, {
843
841
  __CANCEL__: !0
844
842
  });
845
- function Nt(e, t, s) {
846
- const r = s.config.validateStatus;
847
- !s.status || !r || r(s.status) ? e(s) : t(new D(
848
- "Request failed with status code " + s.status,
849
- [D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
850
- s.config,
851
- s.request,
852
- s
843
+ function gt(e, t, r) {
844
+ const s = r.config.validateStatus;
845
+ !r.status || !s || s(r.status) ? e(r) : t(new D(
846
+ "Request failed with status code " + r.status,
847
+ [D.ERR_BAD_REQUEST, D.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
848
+ r.config,
849
+ r.request,
850
+ r
853
851
  ));
854
852
  }
855
- function tr(e) {
853
+ function jr(e) {
856
854
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
857
855
  return t && t[1] || "";
858
856
  }
859
- function sr(e, t) {
857
+ function Vr(e, t) {
860
858
  e = e || 10;
861
- const s = new Array(e), r = new Array(e);
859
+ const r = new Array(e), s = new Array(e);
862
860
  let n = 0, i = 0, o;
863
861
  return t = t !== void 0 ? t : 1e3, function(f) {
864
- const d = Date.now(), u = r[i];
865
- o || (o = d), s[n] = f, r[n] = d;
862
+ const u = Date.now(), c = s[i];
863
+ o || (o = u), r[n] = f, s[n] = u;
866
864
  let h = i, w = 0;
867
865
  for (; h !== n; )
868
- w += s[h++], h = h % e;
869
- if (n = (n + 1) % e, n === i && (i = (i + 1) % e), d - o < t)
866
+ w += r[h++], h = h % e;
867
+ if (n = (n + 1) % e, n === i && (i = (i + 1) % e), u - o < t)
870
868
  return;
871
- const b = u && d - u;
872
- return b ? Math.round(w * 1e3 / b) : void 0;
869
+ const g = c && u - c;
870
+ return g ? Math.round(w * 1e3 / g) : void 0;
873
871
  };
874
872
  }
875
- function rr(e, t) {
876
- let s = 0, r = 1e3 / t, n, i;
877
- const o = (d, u = Date.now()) => {
878
- s = u, n = null, i && (clearTimeout(i), i = null), e(...d);
873
+ function Ir(e, t) {
874
+ let r = 0, s = 1e3 / t, n, i;
875
+ const o = (u, c = Date.now()) => {
876
+ r = c, n = null, i && (clearTimeout(i), i = null), e(...u);
879
877
  };
880
- return [(...d) => {
881
- const u = Date.now(), h = u - s;
882
- h >= r ? o(d, u) : (n = d, i || (i = setTimeout(() => {
878
+ return [(...u) => {
879
+ const c = Date.now(), h = c - r;
880
+ h >= s ? o(u, c) : (n = u, i || (i = setTimeout(() => {
883
881
  i = null, o(n);
884
- }, r - h)));
882
+ }, s - h)));
885
883
  }, () => n && o(n)];
886
884
  }
887
- const be = (e, t, s = 3) => {
888
- let r = 0;
889
- const n = sr(50, 250);
890
- return rr((i) => {
891
- const o = i.loaded, a = i.lengthComputable ? i.total : void 0, f = o - r, d = n(f), u = o <= a;
892
- r = o;
885
+ const le = (e, t, r = 3) => {
886
+ let s = 0;
887
+ const n = Vr(50, 250);
888
+ return Ir((i) => {
889
+ const o = i.loaded, a = i.lengthComputable ? i.total : void 0, f = o - s, u = n(f), c = o <= a;
890
+ s = o;
893
891
  const h = {
894
892
  loaded: o,
895
893
  total: a,
896
894
  progress: a ? o / a : void 0,
897
895
  bytes: f,
898
- rate: d || void 0,
899
- estimated: d && a && u ? (a - o) / d : void 0,
896
+ rate: u || void 0,
897
+ estimated: u && a && c ? (a - o) / u : void 0,
900
898
  event: i,
901
899
  lengthComputable: a != null,
902
900
  [t ? "download" : "upload"]: !0
903
901
  };
904
902
  e(h);
905
- }, s);
906
- }, tt = (e, t) => {
907
- const s = e != null;
908
- return [(r) => t[0]({
909
- lengthComputable: s,
903
+ }, r);
904
+ }, ze = (e, t) => {
905
+ const r = e != null;
906
+ return [(s) => t[0]({
907
+ lengthComputable: r,
910
908
  total: e,
911
- loaded: r
909
+ loaded: s
912
910
  }), t[1]];
913
- }, st = (e) => (...t) => l.asap(() => e(...t)), nr = R.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (s) => (s = new URL(s, R.origin), e.protocol === s.protocol && e.host === s.host && (t || e.port === s.port)))(
914
- new URL(R.origin),
915
- R.navigator && /(msie|trident)/i.test(R.navigator.userAgent)
916
- ) : () => !0, ir = R.hasStandardBrowserEnv ? (
911
+ }, Me = (e) => (...t) => l.asap(() => e(...t)), zr = 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)))(
912
+ new URL(O.origin),
913
+ O.navigator && /(msie|trident)/i.test(O.navigator.userAgent)
914
+ ) : () => !0, Mr = O.hasStandardBrowserEnv ? (
917
915
  // Standard browser envs support document.cookie
918
916
  {
919
- write(e, t, s, r, n, i) {
917
+ write(e, t, r, s, n, i) {
920
918
  const o = [e + "=" + encodeURIComponent(t)];
921
- l.isNumber(s) && o.push("expires=" + new Date(s).toGMTString()), l.isString(r) && o.push("path=" + r), l.isString(n) && o.push("domain=" + n), i === !0 && o.push("secure"), document.cookie = o.join("; ");
919
+ l.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), l.isString(s) && o.push("path=" + s), l.isString(n) && o.push("domain=" + n), i === !0 && o.push("secure"), document.cookie = o.join("; ");
922
920
  },
923
921
  read(e) {
924
922
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -940,44 +938,44 @@ const be = (e, t, s = 3) => {
940
938
  }
941
939
  }
942
940
  );
943
- function or(e) {
941
+ function qr(e) {
944
942
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
945
943
  }
946
- function ar(e, t) {
944
+ function Hr(e, t) {
947
945
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
948
946
  }
949
- function Ft(e, t, s) {
950
- let r = !or(t);
951
- return e && (r || s == !1) ? ar(e, t) : t;
947
+ function bt(e, t, r) {
948
+ let s = !qr(t);
949
+ return e && (s || r == !1) ? Hr(e, t) : t;
952
950
  }
953
- const rt = (e) => e instanceof A ? { ...e } : e;
954
- function Z(e, t) {
951
+ const qe = (e) => e instanceof A ? { ...e } : e;
952
+ function K(e, t) {
955
953
  t = t || {};
956
- const s = {};
957
- function r(d, u, h, w) {
958
- return l.isPlainObject(d) && l.isPlainObject(u) ? l.merge.call({ caseless: w }, d, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
959
- }
960
- function n(d, u, h, w) {
961
- if (l.isUndefined(u)) {
962
- if (!l.isUndefined(d))
963
- return r(void 0, d, h, w);
964
- } else return r(d, u, h, w);
965
- }
966
- function i(d, u) {
967
- if (!l.isUndefined(u))
968
- return r(void 0, u);
969
- }
970
- function o(d, u) {
971
- if (l.isUndefined(u)) {
972
- if (!l.isUndefined(d))
973
- return r(void 0, d);
974
- } else return r(void 0, u);
975
- }
976
- function a(d, u, h) {
954
+ const r = {};
955
+ function s(u, c, h, w) {
956
+ return l.isPlainObject(u) && l.isPlainObject(c) ? l.merge.call({ caseless: w }, u, c) : l.isPlainObject(c) ? l.merge({}, c) : l.isArray(c) ? c.slice() : c;
957
+ }
958
+ function n(u, c, h, w) {
959
+ if (l.isUndefined(c)) {
960
+ if (!l.isUndefined(u))
961
+ return s(void 0, u, h, w);
962
+ } else return s(u, c, h, w);
963
+ }
964
+ function i(u, c) {
965
+ if (!l.isUndefined(c))
966
+ return s(void 0, c);
967
+ }
968
+ function o(u, c) {
969
+ if (l.isUndefined(c)) {
970
+ if (!l.isUndefined(u))
971
+ return s(void 0, u);
972
+ } else return s(void 0, c);
973
+ }
974
+ function a(u, c, h) {
977
975
  if (h in t)
978
- return r(d, u);
976
+ return s(u, c);
979
977
  if (h in e)
980
- return r(void 0, d);
978
+ return s(void 0, u);
981
979
  }
982
980
  const f = {
983
981
  url: i,
@@ -1008,128 +1006,127 @@ function Z(e, t) {
1008
1006
  socketPath: o,
1009
1007
  responseEncoding: o,
1010
1008
  validateStatus: a,
1011
- headers: (d, u, h) => n(rt(d), rt(u), h, !0)
1009
+ headers: (u, c, h) => n(qe(u), qe(c), h, !0)
1012
1010
  };
1013
- return l.forEach(Object.keys({ ...e, ...t }), function(u) {
1014
- const h = f[u] || n, w = h(e[u], t[u], u);
1015
- l.isUndefined(w) && h !== a || (s[u] = w);
1016
- }), s;
1017
- }
1018
- const At = (e) => {
1019
- const t = Z({}, e);
1020
- let { data: s, withXSRFToken: r, xsrfHeaderName: n, xsrfCookieName: i, headers: o, auth: a } = t;
1021
- if (t.headers = o = A.from(o), t.url = Ot(Ft(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
1011
+ return l.forEach(Object.keys({ ...e, ...t }), function(c) {
1012
+ const h = f[c] || n, w = h(e[c], t[c], c);
1013
+ l.isUndefined(w) && h !== a || (r[c] = w);
1014
+ }), r;
1015
+ }
1016
+ const wt = (e) => {
1017
+ const t = K({}, e);
1018
+ let { data: r, withXSRFToken: s, xsrfHeaderName: n, xsrfCookieName: i, headers: o, auth: a } = t;
1019
+ t.headers = o = A.from(o), t.url = ft(bt(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
1022
1020
  "Authorization",
1023
1021
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1024
- ), l.isFormData(s)) {
1025
- if (R.hasStandardBrowserEnv || R.hasStandardBrowserWebWorkerEnv)
1022
+ );
1023
+ let f;
1024
+ if (l.isFormData(r)) {
1025
+ if (O.hasStandardBrowserEnv || O.hasStandardBrowserWebWorkerEnv)
1026
1026
  o.setContentType(void 0);
1027
- else if (l.isFunction(s.getHeaders)) {
1028
- const f = s.getHeaders(), d = ["content-type", "content-length"];
1029
- Object.entries(f).forEach(([u, h]) => {
1030
- d.includes(u.toLowerCase()) && o.set(u, h);
1031
- });
1027
+ else if ((f = o.getContentType()) !== !1) {
1028
+ const [u, ...c] = f ? f.split(";").map((h) => h.trim()).filter(Boolean) : [];
1029
+ o.setContentType([u || "multipart/form-data", ...c].join("; "));
1032
1030
  }
1033
1031
  }
1034
- if (R.hasStandardBrowserEnv && (r && l.isFunction(r) && (r = r(t)), r || r !== !1 && nr(t.url))) {
1035
- const f = n && i && ir.read(i);
1036
- f && o.set(n, f);
1032
+ if (O.hasStandardBrowserEnv && (s && l.isFunction(s) && (s = s(t)), s || s !== !1 && zr(t.url))) {
1033
+ const u = n && i && Mr.read(i);
1034
+ u && o.set(n, u);
1037
1035
  }
1038
1036
  return t;
1039
- }, lr = typeof XMLHttpRequest < "u", cr = lr && function(e) {
1040
- return new Promise(function(s, r) {
1041
- const n = At(e);
1037
+ }, Wr = typeof XMLHttpRequest < "u", Jr = Wr && function(e) {
1038
+ return new Promise(function(r, s) {
1039
+ const n = wt(e);
1042
1040
  let i = n.data;
1043
1041
  const o = A.from(n.headers).normalize();
1044
- let { responseType: a, onUploadProgress: f, onDownloadProgress: d } = n, u, h, w, b, c;
1042
+ let { responseType: a, onUploadProgress: f, onDownloadProgress: u } = n, c, h, w, g, d;
1045
1043
  function p() {
1046
- b && b(), c && c(), n.cancelToken && n.cancelToken.unsubscribe(u), n.signal && n.signal.removeEventListener("abort", u);
1044
+ g && g(), d && d(), n.cancelToken && n.cancelToken.unsubscribe(c), n.signal && n.signal.removeEventListener("abort", c);
1047
1045
  }
1048
- let m = new XMLHttpRequest();
1049
- m.open(n.method.toUpperCase(), n.url, !0), m.timeout = n.timeout;
1050
- function k() {
1051
- if (!m)
1046
+ let b = new XMLHttpRequest();
1047
+ b.open(n.method.toUpperCase(), n.url, !0), b.timeout = n.timeout;
1048
+ function S() {
1049
+ if (!b)
1052
1050
  return;
1053
1051
  const y = A.from(
1054
- "getAllResponseHeaders" in m && m.getAllResponseHeaders()
1055
- ), $ = {
1056
- data: !a || a === "text" || a === "json" ? m.responseText : m.response,
1057
- status: m.status,
1058
- statusText: m.statusText,
1052
+ "getAllResponseHeaders" in b && b.getAllResponseHeaders()
1053
+ ), C = {
1054
+ data: !a || a === "text" || a === "json" ? b.responseText : b.response,
1055
+ status: b.status,
1056
+ statusText: b.statusText,
1059
1057
  headers: y,
1060
1058
  config: e,
1061
- request: m
1059
+ request: b
1062
1060
  };
1063
- Nt(function(L) {
1064
- s(L), p();
1065
- }, function(L) {
1066
- r(L), p();
1067
- }, $), m = null;
1061
+ gt(function(q) {
1062
+ r(q), p();
1063
+ }, function(q) {
1064
+ s(q), p();
1065
+ }, C), b = null;
1068
1066
  }
1069
- "onloadend" in m ? m.onloadend = k : m.onreadystatechange = function() {
1070
- !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(k);
1071
- }, m.onabort = function() {
1072
- m && (r(new D("Request aborted", D.ECONNABORTED, e, m)), m = null);
1073
- }, m.onerror = function(C) {
1074
- const $ = C && C.message ? C.message : "Network Error", J = new D($, D.ERR_NETWORK, e, m);
1075
- J.event = C || null, r(J), m = null;
1076
- }, m.ontimeout = function() {
1077
- let C = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1078
- const $ = n.transitional || Rt;
1079
- n.timeoutErrorMessage && (C = n.timeoutErrorMessage), r(new D(
1080
- C,
1081
- $.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
1067
+ "onloadend" in b ? b.onloadend = S : b.onreadystatechange = function() {
1068
+ !b || b.readyState !== 4 || b.status === 0 && !(b.responseURL && b.responseURL.indexOf("file:") === 0) || setTimeout(S);
1069
+ }, b.onabort = function() {
1070
+ b && (s(new D("Request aborted", D.ECONNABORTED, e, b)), b = null);
1071
+ }, b.onerror = function() {
1072
+ s(new D("Network Error", D.ERR_NETWORK, e, b)), b = null;
1073
+ }, b.ontimeout = function() {
1074
+ let L = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
1075
+ const C = n.transitional || ht;
1076
+ n.timeoutErrorMessage && (L = n.timeoutErrorMessage), s(new D(
1077
+ L,
1078
+ C.clarifyTimeoutError ? D.ETIMEDOUT : D.ECONNABORTED,
1082
1079
  e,
1083
- m
1084
- )), m = null;
1085
- }, i === void 0 && o.setContentType(null), "setRequestHeader" in m && l.forEach(o.toJSON(), function(C, $) {
1086
- m.setRequestHeader($, C);
1087
- }), l.isUndefined(n.withCredentials) || (m.withCredentials = !!n.withCredentials), a && a !== "json" && (m.responseType = n.responseType), d && ([w, c] = be(d, !0), m.addEventListener("progress", w)), f && m.upload && ([h, b] = be(f), m.upload.addEventListener("progress", h), m.upload.addEventListener("loadend", b)), (n.cancelToken || n.signal) && (u = (y) => {
1088
- m && (r(!y || y.type ? new se(null, e, m) : y), m.abort(), m = null);
1089
- }, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u)));
1090
- const S = tr(n.url);
1091
- if (S && R.protocols.indexOf(S) === -1) {
1092
- r(new D("Unsupported protocol " + S + ":", D.ERR_BAD_REQUEST, e));
1080
+ b
1081
+ )), b = null;
1082
+ }, i === void 0 && o.setContentType(null), "setRequestHeader" in b && l.forEach(o.toJSON(), function(L, C) {
1083
+ b.setRequestHeader(C, L);
1084
+ }), l.isUndefined(n.withCredentials) || (b.withCredentials = !!n.withCredentials), a && a !== "json" && (b.responseType = n.responseType), u && ([w, d] = le(u, !0), b.addEventListener("progress", w)), f && b.upload && ([h, g] = le(f), b.upload.addEventListener("progress", h), b.upload.addEventListener("loadend", g)), (n.cancelToken || n.signal) && (c = (y) => {
1085
+ b && (s(!y || y.type ? new G(null, e, b) : y), b.abort(), b = null);
1086
+ }, n.cancelToken && n.cancelToken.subscribe(c), n.signal && (n.signal.aborted ? c() : n.signal.addEventListener("abort", c)));
1087
+ const k = jr(n.url);
1088
+ if (k && O.protocols.indexOf(k) === -1) {
1089
+ s(new D("Unsupported protocol " + k + ":", D.ERR_BAD_REQUEST, e));
1093
1090
  return;
1094
1091
  }
1095
- m.send(i || null);
1092
+ b.send(i || null);
1096
1093
  });
1097
- }, ur = (e, t) => {
1098
- const { length: s } = e = e ? e.filter(Boolean) : [];
1099
- if (t || s) {
1100
- let r = new AbortController(), n;
1101
- const i = function(d) {
1094
+ }, Kr = (e, t) => {
1095
+ const { length: r } = e = e ? e.filter(Boolean) : [];
1096
+ if (t || r) {
1097
+ let s = new AbortController(), n;
1098
+ const i = function(u) {
1102
1099
  if (!n) {
1103
1100
  n = !0, a();
1104
- const u = d instanceof Error ? d : this.reason;
1105
- r.abort(u instanceof D ? u : new se(u instanceof Error ? u.message : u));
1101
+ const c = u instanceof Error ? u : this.reason;
1102
+ s.abort(c instanceof D ? c : new G(c instanceof Error ? c.message : c));
1106
1103
  }
1107
1104
  };
1108
1105
  let o = t && setTimeout(() => {
1109
1106
  o = null, i(new D(`timeout ${t} of ms exceeded`, D.ETIMEDOUT));
1110
1107
  }, t);
1111
1108
  const a = () => {
1112
- e && (o && clearTimeout(o), o = null, e.forEach((d) => {
1113
- d.unsubscribe ? d.unsubscribe(i) : d.removeEventListener("abort", i);
1109
+ e && (o && clearTimeout(o), o = null, e.forEach((u) => {
1110
+ u.unsubscribe ? u.unsubscribe(i) : u.removeEventListener("abort", i);
1114
1111
  }), e = null);
1115
1112
  };
1116
- e.forEach((d) => d.addEventListener("abort", i));
1117
- const { signal: f } = r;
1113
+ e.forEach((u) => u.addEventListener("abort", i));
1114
+ const { signal: f } = s;
1118
1115
  return f.unsubscribe = () => l.asap(a), f;
1119
1116
  }
1120
- }, dr = function* (e, t) {
1121
- let s = e.byteLength;
1122
- if (s < t) {
1117
+ }, Xr = function* (e, t) {
1118
+ let r = e.byteLength;
1119
+ if (r < t) {
1123
1120
  yield e;
1124
1121
  return;
1125
1122
  }
1126
- let r = 0, n;
1127
- for (; r < s; )
1128
- n = r + t, yield e.slice(r, n), r = n;
1129
- }, fr = async function* (e, t) {
1130
- for await (const s of hr(e))
1131
- yield* dr(s, t);
1132
- }, hr = async function* (e) {
1123
+ let s = 0, n;
1124
+ for (; s < r; )
1125
+ n = s + t, yield e.slice(s, n), s = n;
1126
+ }, Gr = async function* (e, t) {
1127
+ for await (const r of Qr(e))
1128
+ yield* Xr(r, t);
1129
+ }, Qr = async function* (e) {
1133
1130
  if (e[Symbol.asyncIterator]) {
1134
1131
  yield* e;
1135
1132
  return;
@@ -1137,35 +1134,35 @@ const At = (e) => {
1137
1134
  const t = e.getReader();
1138
1135
  try {
1139
1136
  for (; ; ) {
1140
- const { done: s, value: r } = await t.read();
1141
- if (s)
1137
+ const { done: r, value: s } = await t.read();
1138
+ if (r)
1142
1139
  break;
1143
- yield r;
1140
+ yield s;
1144
1141
  }
1145
1142
  } finally {
1146
1143
  await t.cancel();
1147
1144
  }
1148
- }, nt = (e, t, s, r) => {
1149
- const n = fr(e, t);
1145
+ }, He = (e, t, r, s) => {
1146
+ const n = Gr(e, t);
1150
1147
  let i = 0, o, a = (f) => {
1151
- o || (o = !0, r && r(f));
1148
+ o || (o = !0, s && s(f));
1152
1149
  };
1153
1150
  return new ReadableStream({
1154
1151
  async pull(f) {
1155
1152
  try {
1156
- const { done: d, value: u } = await n.next();
1157
- if (d) {
1153
+ const { done: u, value: c } = await n.next();
1154
+ if (u) {
1158
1155
  a(), f.close();
1159
1156
  return;
1160
1157
  }
1161
- let h = u.byteLength;
1162
- if (s) {
1158
+ let h = c.byteLength;
1159
+ if (r) {
1163
1160
  let w = i += h;
1164
- s(w);
1161
+ r(w);
1165
1162
  }
1166
- f.enqueue(new Uint8Array(u));
1167
- } catch (d) {
1168
- throw a(d), d;
1163
+ f.enqueue(new Uint8Array(c));
1164
+ } catch (u) {
1165
+ throw a(u), u;
1169
1166
  }
1170
1167
  },
1171
1168
  cancel(f) {
@@ -1174,171 +1171,140 @@ const At = (e) => {
1174
1171
  }, {
1175
1172
  highWaterMark: 2
1176
1173
  });
1177
- }, it = 64 * 1024, { isFunction: he } = l, pr = (({ Request: e, Response: t }) => ({
1178
- Request: e,
1179
- Response: t
1180
- }))(l.global), {
1181
- ReadableStream: ot,
1182
- TextEncoder: at
1183
- } = l.global, lt = (e, ...t) => {
1174
+ }, me = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yt = me && typeof ReadableStream == "function", Zr = me && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), xt = (e, ...t) => {
1184
1175
  try {
1185
1176
  return !!e(...t);
1186
1177
  } catch {
1187
1178
  return !1;
1188
1179
  }
1189
- }, mr = (e) => {
1190
- e = l.merge.call({
1191
- skipUndefined: !0
1192
- }, pr, e);
1193
- const { fetch: t, Request: s, Response: r } = e, n = t ? he(t) : typeof fetch == "function", i = he(s), o = he(r);
1194
- if (!n)
1195
- return !1;
1196
- const a = n && he(ot), f = n && (typeof at == "function" ? /* @__PURE__ */ ((c) => (p) => c.encode(p))(new at()) : async (c) => new Uint8Array(await new s(c).arrayBuffer())), d = i && a && lt(() => {
1197
- let c = !1;
1198
- const p = new s(R.origin, {
1199
- body: new ot(),
1200
- method: "POST",
1201
- get duplex() {
1202
- return c = !0, "half";
1203
- }
1204
- }).headers.has("Content-Type");
1205
- return c && !p;
1206
- }), u = o && a && lt(() => l.isReadableStream(new r("").body)), h = {
1207
- stream: u && ((c) => c.body)
1208
- };
1209
- n && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((c) => {
1210
- !h[c] && (h[c] = (p, m) => {
1211
- let k = p && p[c];
1212
- if (k)
1213
- return k.call(p);
1214
- throw new D(`Response type '${c}' is not supported`, D.ERR_NOT_SUPPORT, m);
1180
+ }, Yr = yt && xt(() => {
1181
+ let e = !1;
1182
+ const t = new Request(O.origin, {
1183
+ body: new ReadableStream(),
1184
+ method: "POST",
1185
+ get duplex() {
1186
+ return e = !0, "half";
1187
+ }
1188
+ }).headers.has("Content-Type");
1189
+ return e && !t;
1190
+ }), We = 64 * 1024, ve = yt && xt(() => l.isReadableStream(new Response("").body)), ce = {
1191
+ stream: ve && ((e) => e.body)
1192
+ };
1193
+ me && ((e) => {
1194
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1195
+ !ce[t] && (ce[t] = l.isFunction(e[t]) ? (r) => r[t]() : (r, s) => {
1196
+ throw new D(`Response type '${t}' is not supported`, D.ERR_NOT_SUPPORT, s);
1215
1197
  });
1216
1198
  });
1217
- const w = async (c) => {
1218
- if (c == null)
1219
- return 0;
1220
- if (l.isBlob(c))
1221
- return c.size;
1222
- if (l.isSpecCompliantForm(c))
1223
- return (await new s(R.origin, {
1199
+ })(new Response());
1200
+ const es = async (e) => {
1201
+ if (e == null)
1202
+ return 0;
1203
+ if (l.isBlob(e))
1204
+ return e.size;
1205
+ if (l.isSpecCompliantForm(e))
1206
+ return (await new Request(O.origin, {
1207
+ method: "POST",
1208
+ body: e
1209
+ }).arrayBuffer()).byteLength;
1210
+ if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
1211
+ return e.byteLength;
1212
+ if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
1213
+ return (await Zr(e)).byteLength;
1214
+ }, ts = async (e, t) => {
1215
+ const r = l.toFiniteNumber(e.getContentLength());
1216
+ return r ?? es(t);
1217
+ }, rs = me && (async (e) => {
1218
+ let {
1219
+ url: t,
1220
+ method: r,
1221
+ data: s,
1222
+ signal: n,
1223
+ cancelToken: i,
1224
+ timeout: o,
1225
+ onDownloadProgress: a,
1226
+ onUploadProgress: f,
1227
+ responseType: u,
1228
+ headers: c,
1229
+ withCredentials: h = "same-origin",
1230
+ fetchOptions: w
1231
+ } = wt(e);
1232
+ u = u ? (u + "").toLowerCase() : "text";
1233
+ let g = Kr([n, i && i.toAbortSignal()], o), d;
1234
+ const p = g && g.unsubscribe && (() => {
1235
+ g.unsubscribe();
1236
+ });
1237
+ let b;
1238
+ try {
1239
+ if (f && Yr && r !== "get" && r !== "head" && (b = await ts(c, s)) !== 0) {
1240
+ let C = new Request(t, {
1224
1241
  method: "POST",
1225
- body: c
1226
- }).arrayBuffer()).byteLength;
1227
- if (l.isArrayBufferView(c) || l.isArrayBuffer(c))
1228
- return c.byteLength;
1229
- if (l.isURLSearchParams(c) && (c = c + ""), l.isString(c))
1230
- return (await f(c)).byteLength;
1231
- }, b = async (c, p) => {
1232
- const m = l.toFiniteNumber(c.getContentLength());
1233
- return m ?? w(p);
1234
- };
1235
- return async (c) => {
1236
- let {
1237
- url: p,
1238
- method: m,
1239
- data: k,
1240
- signal: S,
1241
- cancelToken: y,
1242
- timeout: C,
1243
- onDownloadProgress: $,
1244
- onUploadProgress: J,
1245
- responseType: L,
1246
- headers: ke,
1247
- withCredentials: ue = "same-origin",
1248
- fetchOptions: ze
1249
- } = At(c), Me = t || fetch;
1250
- L = L ? (L + "").toLowerCase() : "text";
1251
- let de = ur([S, y && y.toAbortSignal()], C), re = null;
1252
- const K = de && de.unsubscribe && (() => {
1253
- de.unsubscribe();
1254
- });
1255
- let He;
1256
- try {
1257
- if (J && d && m !== "get" && m !== "head" && (He = await b(ke, k)) !== 0) {
1258
- let q = new s(p, {
1259
- method: "POST",
1260
- body: k,
1261
- duplex: "half"
1262
- }), Y;
1263
- if (l.isFormData(k) && (Y = q.headers.get("content-type")) && ke.setContentType(Y), q.body) {
1264
- const [ve, fe] = tt(
1265
- He,
1266
- be(st(J))
1267
- );
1268
- k = nt(q.body, it, ve, fe);
1269
- }
1270
- }
1271
- l.isString(ue) || (ue = ue ? "include" : "omit");
1272
- const j = i && "credentials" in s.prototype, qe = {
1273
- ...ze,
1274
- signal: de,
1275
- method: m.toUpperCase(),
1276
- headers: ke.normalize().toJSON(),
1277
- body: k,
1278
- duplex: "half",
1279
- credentials: j ? ue : void 0
1280
- };
1281
- re = i && new s(p, qe);
1282
- let H = await (i ? Me(re, ze) : Me(p, qe));
1283
- const We = u && (L === "stream" || L === "response");
1284
- if (u && ($ || We && K)) {
1285
- const q = {};
1286
- ["status", "statusText", "headers"].forEach((Je) => {
1287
- q[Je] = H[Je];
1288
- });
1289
- const Y = l.toFiniteNumber(H.headers.get("content-length")), [ve, fe] = $ && tt(
1290
- Y,
1291
- be(st($), !0)
1292
- ) || [];
1293
- H = new r(
1294
- nt(H.body, it, ve, () => {
1295
- fe && fe(), K && K();
1296
- }),
1297
- q
1242
+ body: s,
1243
+ duplex: "half"
1244
+ }), z;
1245
+ if (l.isFormData(s) && (z = C.headers.get("content-type")) && c.setContentType(z), C.body) {
1246
+ const [q, ne] = ze(
1247
+ b,
1248
+ le(Me(f))
1298
1249
  );
1250
+ s = He(C.body, We, q, ne);
1299
1251
  }
1300
- L = L || "text";
1301
- let Vt = await h[l.findKey(h, L) || "text"](H, c);
1302
- return !We && K && K(), await new Promise((q, Y) => {
1303
- Nt(q, Y, {
1304
- data: Vt,
1305
- headers: A.from(H.headers),
1306
- status: H.status,
1307
- statusText: H.statusText,
1308
- config: c,
1309
- request: re
1310
- });
1252
+ }
1253
+ l.isString(h) || (h = h ? "include" : "omit");
1254
+ const S = "credentials" in Request.prototype;
1255
+ d = new Request(t, {
1256
+ ...w,
1257
+ signal: g,
1258
+ method: r.toUpperCase(),
1259
+ headers: c.normalize().toJSON(),
1260
+ body: s,
1261
+ duplex: "half",
1262
+ credentials: S ? h : void 0
1263
+ });
1264
+ let k = await fetch(d, w);
1265
+ const y = ve && (u === "stream" || u === "response");
1266
+ if (ve && (a || y && p)) {
1267
+ const C = {};
1268
+ ["status", "statusText", "headers"].forEach((Fe) => {
1269
+ C[Fe] = k[Fe];
1311
1270
  });
1312
- } catch (j) {
1313
- throw K && K(), j && j.name === "TypeError" && /Load failed|fetch/i.test(j.message) ? Object.assign(
1314
- new D("Network Error", D.ERR_NETWORK, c, re),
1315
- {
1316
- cause: j.cause || j
1317
- }
1318
- ) : D.from(j, j && j.code, c, re);
1271
+ const z = l.toFiniteNumber(k.headers.get("content-length")), [q, ne] = a && ze(
1272
+ z,
1273
+ le(Me(a), !0)
1274
+ ) || [];
1275
+ k = new Response(
1276
+ He(k.body, We, q, () => {
1277
+ ne && ne(), p && p();
1278
+ }),
1279
+ C
1280
+ );
1319
1281
  }
1320
- };
1321
- }, gr = /* @__PURE__ */ new Map(), Pt = (e) => {
1322
- let t = e ? e.env : {};
1323
- const { fetch: s, Request: r, Response: n } = t, i = [
1324
- r,
1325
- n,
1326
- s
1327
- ];
1328
- let o = i.length, a = o, f, d, u = gr;
1329
- for (; a--; )
1330
- f = i[a], d = u.get(f), d === void 0 && u.set(f, d = a ? /* @__PURE__ */ new Map() : mr(t)), u = d;
1331
- return d;
1332
- };
1333
- Pt();
1334
- const Ae = {
1335
- http: Fs,
1336
- xhr: cr,
1337
- fetch: {
1338
- get: Pt
1282
+ u = u || "text";
1283
+ let L = await ce[l.findKey(ce, u) || "text"](k, e);
1284
+ return !y && p && p(), await new Promise((C, z) => {
1285
+ gt(C, z, {
1286
+ data: L,
1287
+ headers: A.from(k.headers),
1288
+ status: k.status,
1289
+ statusText: k.statusText,
1290
+ config: e,
1291
+ request: d
1292
+ });
1293
+ });
1294
+ } catch (S) {
1295
+ throw p && p(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
1296
+ new D("Network Error", D.ERR_NETWORK, e, d),
1297
+ {
1298
+ cause: S.cause || S
1299
+ }
1300
+ ) : D.from(S, S && S.code, e, d);
1339
1301
  }
1302
+ }), Ee = {
1303
+ http: br,
1304
+ xhr: Jr,
1305
+ fetch: rs
1340
1306
  };
1341
- l.forEach(Ae, (e, t) => {
1307
+ l.forEach(Ee, (e, t) => {
1342
1308
  if (e) {
1343
1309
  try {
1344
1310
  Object.defineProperty(e, "name", { value: t });
@@ -1347,113 +1313,113 @@ l.forEach(Ae, (e, t) => {
1347
1313
  Object.defineProperty(e, "adapterName", { value: t });
1348
1314
  }
1349
1315
  });
1350
- const ct = (e) => `- ${e}`, br = (e) => l.isFunction(e) || e === null || e === !1, Lt = {
1351
- getAdapter: (e, t) => {
1316
+ const Je = (e) => `- ${e}`, ss = (e) => l.isFunction(e) || e === null || e === !1, _t = {
1317
+ getAdapter: (e) => {
1352
1318
  e = l.isArray(e) ? e : [e];
1353
- const { length: s } = e;
1354
- let r, n;
1355
- const i = {};
1356
- for (let o = 0; o < s; o++) {
1357
- r = e[o];
1358
- let a;
1359
- if (n = r, !br(r) && (n = Ae[(a = String(r)).toLowerCase()], n === void 0))
1360
- throw new D(`Unknown adapter '${a}'`);
1361
- if (n && (l.isFunction(n) || (n = n.get(t))))
1319
+ const { length: t } = e;
1320
+ let r, s;
1321
+ const n = {};
1322
+ for (let i = 0; i < t; i++) {
1323
+ r = e[i];
1324
+ let o;
1325
+ if (s = r, !ss(r) && (s = Ee[(o = String(r)).toLowerCase()], s === void 0))
1326
+ throw new D(`Unknown adapter '${o}'`);
1327
+ if (s)
1362
1328
  break;
1363
- i[a || "#" + o] = n;
1329
+ n[o || "#" + i] = s;
1364
1330
  }
1365
- if (!n) {
1366
- const o = Object.entries(i).map(
1367
- ([f, d]) => `adapter ${f} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
1331
+ if (!s) {
1332
+ const i = Object.entries(n).map(
1333
+ ([a, f]) => `adapter ${a} ` + (f === !1 ? "is not supported by the environment" : "is not available in the build")
1368
1334
  );
1369
- let a = s ? o.length > 1 ? `since :
1370
- ` + o.map(ct).join(`
1371
- `) : " " + ct(o[0]) : "as no adapter specified";
1335
+ let o = t ? i.length > 1 ? `since :
1336
+ ` + i.map(Je).join(`
1337
+ `) : " " + Je(i[0]) : "as no adapter specified";
1372
1338
  throw new D(
1373
- "There is no suitable adapter to dispatch the request " + a,
1339
+ "There is no suitable adapter to dispatch the request " + o,
1374
1340
  "ERR_NOT_SUPPORT"
1375
1341
  );
1376
1342
  }
1377
- return n;
1343
+ return s;
1378
1344
  },
1379
- adapters: Ae
1345
+ adapters: Ee
1380
1346
  };
1381
- function Re(e) {
1347
+ function xe(e) {
1382
1348
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1383
- throw new se(null, e);
1349
+ throw new G(null, e);
1384
1350
  }
1385
- function ut(e) {
1386
- return Re(e), e.headers = A.from(e.headers), e.data = Oe.call(
1351
+ function Ke(e) {
1352
+ return xe(e), e.headers = A.from(e.headers), e.data = ye.call(
1387
1353
  e,
1388
1354
  e.transformRequest
1389
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Lt.getAdapter(e.adapter || ce.adapter, e)(e).then(function(r) {
1390
- return Re(e), r.data = Oe.call(
1355
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), _t.getAdapter(e.adapter || se.adapter)(e).then(function(s) {
1356
+ return xe(e), s.data = ye.call(
1391
1357
  e,
1392
1358
  e.transformResponse,
1393
- r
1394
- ), r.headers = A.from(r.headers), r;
1395
- }, function(r) {
1396
- return Tt(r) || (Re(e), r && r.response && (r.response.data = Oe.call(
1359
+ s
1360
+ ), s.headers = A.from(s.headers), s;
1361
+ }, function(s) {
1362
+ return mt(s) || (xe(e), s && s.response && (s.response.data = ye.call(
1397
1363
  e,
1398
1364
  e.transformResponse,
1399
- r.response
1400
- ), r.response.headers = A.from(r.response.headers))), Promise.reject(r);
1365
+ s.response
1366
+ ), s.response.headers = A.from(s.response.headers))), Promise.reject(s);
1401
1367
  });
1402
1368
  }
1403
- const Ut = "1.12.2", Se = {};
1369
+ const Dt = "1.11.0", ge = {};
1404
1370
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1405
- Se[e] = function(r) {
1406
- return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1371
+ ge[e] = function(s) {
1372
+ return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
1407
1373
  };
1408
1374
  });
1409
- const dt = {};
1410
- Se.transitional = function(t, s, r) {
1375
+ const Xe = {};
1376
+ ge.transitional = function(t, r, s) {
1411
1377
  function n(i, o) {
1412
- return "[Axios v" + Ut + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1378
+ return "[Axios v" + Dt + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1413
1379
  }
1414
1380
  return (i, o, a) => {
1415
1381
  if (t === !1)
1416
1382
  throw new D(
1417
- n(o, " has been removed" + (s ? " in " + s : "")),
1383
+ n(o, " has been removed" + (r ? " in " + r : "")),
1418
1384
  D.ERR_DEPRECATED
1419
1385
  );
1420
- return s && !dt[o] && (dt[o] = !0, console.warn(
1386
+ return r && !Xe[o] && (Xe[o] = !0, console.warn(
1421
1387
  n(
1422
1388
  o,
1423
- " has been deprecated since v" + s + " and will be removed in the near future"
1389
+ " has been deprecated since v" + r + " and will be removed in the near future"
1424
1390
  )
1425
1391
  )), t ? t(i, o, a) : !0;
1426
1392
  };
1427
1393
  };
1428
- Se.spelling = function(t) {
1429
- return (s, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1394
+ ge.spelling = function(t) {
1395
+ return (r, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
1430
1396
  };
1431
- function wr(e, t, s) {
1397
+ function ns(e, t, r) {
1432
1398
  if (typeof e != "object")
1433
1399
  throw new D("options must be an object", D.ERR_BAD_OPTION_VALUE);
1434
- const r = Object.keys(e);
1435
- let n = r.length;
1400
+ const s = Object.keys(e);
1401
+ let n = s.length;
1436
1402
  for (; n-- > 0; ) {
1437
- const i = r[n], o = t[i];
1403
+ const i = s[n], o = t[i];
1438
1404
  if (o) {
1439
1405
  const a = e[i], f = a === void 0 || o(a, i, e);
1440
1406
  if (f !== !0)
1441
1407
  throw new D("option " + i + " must be " + f, D.ERR_BAD_OPTION_VALUE);
1442
1408
  continue;
1443
1409
  }
1444
- if (s !== !0)
1410
+ if (r !== !0)
1445
1411
  throw new D("Unknown option " + i, D.ERR_BAD_OPTION);
1446
1412
  }
1447
1413
  }
1448
- const ge = {
1449
- assertOptions: wr,
1450
- validators: Se
1451
- }, V = ge.validators;
1452
- let G = class {
1414
+ const ae = {
1415
+ assertOptions: ns,
1416
+ validators: ge
1417
+ }, U = ae.validators;
1418
+ let W = class {
1453
1419
  constructor(t) {
1454
1420
  this.defaults = t || {}, this.interceptors = {
1455
- request: new Ye(),
1456
- response: new Ye()
1421
+ request: new Ve(),
1422
+ response: new Ve()
1457
1423
  };
1458
1424
  }
1459
1425
  /**
@@ -1464,106 +1430,106 @@ let G = class {
1464
1430
  *
1465
1431
  * @returns {Promise} The Promise to be fulfilled
1466
1432
  */
1467
- async request(t, s) {
1433
+ async request(t, r) {
1468
1434
  try {
1469
- return await this._request(t, s);
1470
- } catch (r) {
1471
- if (r instanceof Error) {
1435
+ return await this._request(t, r);
1436
+ } catch (s) {
1437
+ if (s instanceof Error) {
1472
1438
  let n = {};
1473
1439
  Error.captureStackTrace ? Error.captureStackTrace(n) : n = new Error();
1474
1440
  const i = n.stack ? n.stack.replace(/^.+\n/, "") : "";
1475
1441
  try {
1476
- r.stack ? i && !String(r.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (r.stack += `
1477
- ` + i) : r.stack = i;
1442
+ s.stack ? i && !String(s.stack).endsWith(i.replace(/^.+\n.+\n/, "")) && (s.stack += `
1443
+ ` + i) : s.stack = i;
1478
1444
  } catch {
1479
1445
  }
1480
1446
  }
1481
- throw r;
1447
+ throw s;
1482
1448
  }
1483
1449
  }
1484
- _request(t, s) {
1485
- typeof t == "string" ? (s = s || {}, s.url = t) : s = t || {}, s = Z(this.defaults, s);
1486
- const { transitional: r, paramsSerializer: n, headers: i } = s;
1487
- r !== void 0 && ge.assertOptions(r, {
1488
- silentJSONParsing: V.transitional(V.boolean),
1489
- forcedJSONParsing: V.transitional(V.boolean),
1490
- clarifyTimeoutError: V.transitional(V.boolean)
1491
- }, !1), n != null && (l.isFunction(n) ? s.paramsSerializer = {
1450
+ _request(t, r) {
1451
+ typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = K(this.defaults, r);
1452
+ const { transitional: s, paramsSerializer: n, headers: i } = r;
1453
+ s !== void 0 && ae.assertOptions(s, {
1454
+ silentJSONParsing: U.transitional(U.boolean),
1455
+ forcedJSONParsing: U.transitional(U.boolean),
1456
+ clarifyTimeoutError: U.transitional(U.boolean)
1457
+ }, !1), n != null && (l.isFunction(n) ? r.paramsSerializer = {
1492
1458
  serialize: n
1493
- } : ge.assertOptions(n, {
1494
- encode: V.function,
1495
- serialize: V.function
1496
- }, !0)), s.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? s.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : s.allowAbsoluteUrls = !0), ge.assertOptions(s, {
1497
- baseUrl: V.spelling("baseURL"),
1498
- withXsrfToken: V.spelling("withXSRFToken")
1499
- }, !0), s.method = (s.method || this.defaults.method || "get").toLowerCase();
1459
+ } : ae.assertOptions(n, {
1460
+ encode: U.function,
1461
+ serialize: U.function
1462
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), ae.assertOptions(r, {
1463
+ baseUrl: U.spelling("baseURL"),
1464
+ withXsrfToken: U.spelling("withXSRFToken")
1465
+ }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1500
1466
  let o = i && l.merge(
1501
1467
  i.common,
1502
- i[s.method]
1468
+ i[r.method]
1503
1469
  );
1504
1470
  i && l.forEach(
1505
1471
  ["delete", "get", "head", "post", "put", "patch", "common"],
1506
- (c) => {
1507
- delete i[c];
1472
+ (d) => {
1473
+ delete i[d];
1508
1474
  }
1509
- ), s.headers = A.concat(o, i);
1475
+ ), r.headers = A.concat(o, i);
1510
1476
  const a = [];
1511
1477
  let f = !0;
1512
1478
  this.interceptors.request.forEach(function(p) {
1513
- typeof p.runWhen == "function" && p.runWhen(s) === !1 || (f = f && p.synchronous, a.unshift(p.fulfilled, p.rejected));
1479
+ typeof p.runWhen == "function" && p.runWhen(r) === !1 || (f = f && p.synchronous, a.unshift(p.fulfilled, p.rejected));
1514
1480
  });
1515
- const d = [];
1481
+ const u = [];
1516
1482
  this.interceptors.response.forEach(function(p) {
1517
- d.push(p.fulfilled, p.rejected);
1483
+ u.push(p.fulfilled, p.rejected);
1518
1484
  });
1519
- let u, h = 0, w;
1485
+ let c, h = 0, w;
1520
1486
  if (!f) {
1521
- const c = [ut.bind(this), void 0];
1522
- for (c.unshift(...a), c.push(...d), w = c.length, u = Promise.resolve(s); h < w; )
1523
- u = u.then(c[h++], c[h++]);
1524
- return u;
1487
+ const d = [Ke.bind(this), void 0];
1488
+ for (d.unshift(...a), d.push(...u), w = d.length, c = Promise.resolve(r); h < w; )
1489
+ c = c.then(d[h++], d[h++]);
1490
+ return c;
1525
1491
  }
1526
1492
  w = a.length;
1527
- let b = s;
1528
- for (; h < w; ) {
1529
- const c = a[h++], p = a[h++];
1493
+ let g = r;
1494
+ for (h = 0; h < w; ) {
1495
+ const d = a[h++], p = a[h++];
1530
1496
  try {
1531
- b = c(b);
1532
- } catch (m) {
1533
- p.call(this, m);
1497
+ g = d(g);
1498
+ } catch (b) {
1499
+ p.call(this, b);
1534
1500
  break;
1535
1501
  }
1536
1502
  }
1537
1503
  try {
1538
- u = ut.call(this, b);
1539
- } catch (c) {
1540
- return Promise.reject(c);
1504
+ c = Ke.call(this, g);
1505
+ } catch (d) {
1506
+ return Promise.reject(d);
1541
1507
  }
1542
- for (h = 0, w = d.length; h < w; )
1543
- u = u.then(d[h++], d[h++]);
1544
- return u;
1508
+ for (h = 0, w = u.length; h < w; )
1509
+ c = c.then(u[h++], u[h++]);
1510
+ return c;
1545
1511
  }
1546
1512
  getUri(t) {
1547
- t = Z(this.defaults, t);
1548
- const s = Ft(t.baseURL, t.url, t.allowAbsoluteUrls);
1549
- return Ot(s, t.params, t.paramsSerializer);
1513
+ t = K(this.defaults, t);
1514
+ const r = bt(t.baseURL, t.url, t.allowAbsoluteUrls);
1515
+ return ft(r, t.params, t.paramsSerializer);
1550
1516
  }
1551
1517
  };
1552
1518
  l.forEach(["delete", "get", "head", "options"], function(t) {
1553
- G.prototype[t] = function(s, r) {
1554
- return this.request(Z(r || {}, {
1519
+ W.prototype[t] = function(r, s) {
1520
+ return this.request(K(s || {}, {
1555
1521
  method: t,
1556
- url: s,
1557
- data: (r || {}).data
1522
+ url: r,
1523
+ data: (s || {}).data
1558
1524
  }));
1559
1525
  };
1560
1526
  });
1561
1527
  l.forEach(["post", "put", "patch"], function(t) {
1562
- function s(r) {
1528
+ function r(s) {
1563
1529
  return function(i, o, a) {
1564
- return this.request(Z(a || {}, {
1530
+ return this.request(K(a || {}, {
1565
1531
  method: t,
1566
- headers: r ? {
1532
+ headers: s ? {
1567
1533
  "Content-Type": "multipart/form-data"
1568
1534
  } : {},
1569
1535
  url: i,
@@ -1571,33 +1537,33 @@ l.forEach(["post", "put", "patch"], function(t) {
1571
1537
  }));
1572
1538
  };
1573
1539
  }
1574
- G.prototype[t] = s(), G.prototype[t + "Form"] = s(!0);
1540
+ W.prototype[t] = r(), W.prototype[t + "Form"] = r(!0);
1575
1541
  });
1576
- let yr = class Bt {
1542
+ let is = class kt {
1577
1543
  constructor(t) {
1578
1544
  if (typeof t != "function")
1579
1545
  throw new TypeError("executor must be a function.");
1580
- let s;
1546
+ let r;
1581
1547
  this.promise = new Promise(function(i) {
1582
- s = i;
1548
+ r = i;
1583
1549
  });
1584
- const r = this;
1550
+ const s = this;
1585
1551
  this.promise.then((n) => {
1586
- if (!r._listeners) return;
1587
- let i = r._listeners.length;
1552
+ if (!s._listeners) return;
1553
+ let i = s._listeners.length;
1588
1554
  for (; i-- > 0; )
1589
- r._listeners[i](n);
1590
- r._listeners = null;
1555
+ s._listeners[i](n);
1556
+ s._listeners = null;
1591
1557
  }), this.promise.then = (n) => {
1592
1558
  let i;
1593
1559
  const o = new Promise((a) => {
1594
- r.subscribe(a), i = a;
1560
+ s.subscribe(a), i = a;
1595
1561
  }).then(n);
1596
1562
  return o.cancel = function() {
1597
- r.unsubscribe(i);
1563
+ s.unsubscribe(i);
1598
1564
  }, o;
1599
1565
  }, t(function(i, o, a) {
1600
- r.reason || (r.reason = new se(i, o, a), s(r.reason));
1566
+ s.reason || (s.reason = new G(i, o, a), r(s.reason));
1601
1567
  });
1602
1568
  }
1603
1569
  /**
@@ -1623,14 +1589,14 @@ let yr = class Bt {
1623
1589
  unsubscribe(t) {
1624
1590
  if (!this._listeners)
1625
1591
  return;
1626
- const s = this._listeners.indexOf(t);
1627
- s !== -1 && this._listeners.splice(s, 1);
1592
+ const r = this._listeners.indexOf(t);
1593
+ r !== -1 && this._listeners.splice(r, 1);
1628
1594
  }
1629
1595
  toAbortSignal() {
1630
- const t = new AbortController(), s = (r) => {
1631
- t.abort(r);
1596
+ const t = new AbortController(), r = (s) => {
1597
+ t.abort(s);
1632
1598
  };
1633
- return this.subscribe(s), t.signal.unsubscribe = () => this.unsubscribe(s), t.signal;
1599
+ return this.subscribe(r), t.signal.unsubscribe = () => this.unsubscribe(r), t.signal;
1634
1600
  }
1635
1601
  /**
1636
1602
  * Returns an object that contains a new `CancelToken` and a function that, when called,
@@ -1639,22 +1605,22 @@ let yr = class Bt {
1639
1605
  static source() {
1640
1606
  let t;
1641
1607
  return {
1642
- token: new Bt(function(n) {
1608
+ token: new kt(function(n) {
1643
1609
  t = n;
1644
1610
  }),
1645
1611
  cancel: t
1646
1612
  };
1647
1613
  }
1648
1614
  };
1649
- function xr(e) {
1650
- return function(s) {
1651
- return e.apply(null, s);
1615
+ function os(e) {
1616
+ return function(r) {
1617
+ return e.apply(null, r);
1652
1618
  };
1653
1619
  }
1654
- function _r(e) {
1620
+ function as(e) {
1655
1621
  return l.isObject(e) && e.isAxiosError === !0;
1656
1622
  }
1657
- const Pe = {
1623
+ const Ce = {
1658
1624
  Continue: 100,
1659
1625
  SwitchingProtocols: 101,
1660
1626
  Processing: 102,
@@ -1719,54 +1685,54 @@ const Pe = {
1719
1685
  NotExtended: 510,
1720
1686
  NetworkAuthenticationRequired: 511
1721
1687
  };
1722
- Object.entries(Pe).forEach(([e, t]) => {
1723
- Pe[t] = e;
1688
+ Object.entries(Ce).forEach(([e, t]) => {
1689
+ Ce[t] = e;
1724
1690
  });
1725
- function jt(e) {
1726
- const t = new G(e), s = gt(G.prototype.request, t);
1727
- return l.extend(s, G.prototype, t, { allOwnKeys: !0 }), l.extend(s, t, null, { allOwnKeys: !0 }), s.create = function(n) {
1728
- return jt(Z(e, n));
1729
- }, s;
1730
- }
1731
- const v = jt(ce);
1732
- v.Axios = G;
1733
- v.CanceledError = se;
1734
- v.CancelToken = yr;
1735
- v.isCancel = Tt;
1736
- v.VERSION = Ut;
1737
- v.toFormData = De;
1691
+ function St(e) {
1692
+ const t = new W(e), r = et(W.prototype.request, t);
1693
+ return l.extend(r, W.prototype, t, { allOwnKeys: !0 }), l.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(n) {
1694
+ return St(K(e, n));
1695
+ }, r;
1696
+ }
1697
+ const v = St(se);
1698
+ v.Axios = W;
1699
+ v.CanceledError = G;
1700
+ v.CancelToken = is;
1701
+ v.isCancel = mt;
1702
+ v.VERSION = Dt;
1703
+ v.toFormData = pe;
1738
1704
  v.AxiosError = D;
1739
1705
  v.Cancel = v.CanceledError;
1740
1706
  v.all = function(t) {
1741
1707
  return Promise.all(t);
1742
1708
  };
1743
- v.spread = xr;
1744
- v.isAxiosError = _r;
1745
- v.mergeConfig = Z;
1709
+ v.spread = os;
1710
+ v.isAxiosError = as;
1711
+ v.mergeConfig = K;
1746
1712
  v.AxiosHeaders = A;
1747
- v.formToJSON = (e) => $t(l.isHTMLForm(e) ? new FormData(e) : e);
1748
- v.getAdapter = Lt.getAdapter;
1749
- v.HttpStatusCode = Pe;
1713
+ v.formToJSON = (e) => pt(l.isHTMLForm(e) ? new FormData(e) : e);
1714
+ v.getAdapter = _t.getAdapter;
1715
+ v.HttpStatusCode = Ce;
1750
1716
  v.default = v;
1751
1717
  const {
1752
- Axios: eo,
1753
- AxiosError: to,
1754
- CanceledError: so,
1755
- isCancel: ro,
1756
- CancelToken: no,
1757
- VERSION: io,
1758
- all: oo,
1759
- Cancel: ao,
1760
- isAxiosError: lo,
1761
- spread: co,
1762
- toFormData: uo,
1763
- AxiosHeaders: fo,
1764
- HttpStatusCode: ho,
1765
- formToJSON: po,
1766
- getAdapter: mo,
1767
- mergeConfig: go
1718
+ Axios: Vi,
1719
+ AxiosError: Ii,
1720
+ CanceledError: zi,
1721
+ isCancel: Mi,
1722
+ CancelToken: qi,
1723
+ VERSION: Hi,
1724
+ all: Wi,
1725
+ Cancel: Ji,
1726
+ isAxiosError: Ki,
1727
+ spread: Xi,
1728
+ toFormData: Gi,
1729
+ AxiosHeaders: Qi,
1730
+ HttpStatusCode: Zi,
1731
+ formToJSON: Yi,
1732
+ getAdapter: eo,
1733
+ mergeConfig: to
1768
1734
  } = v;
1769
- class Dr {
1735
+ class ls {
1770
1736
  static getTooltipOptions(t = !0) {
1771
1737
  return {
1772
1738
  show: t,
@@ -1779,7 +1745,7 @@ class Dr {
1779
1745
  };
1780
1746
  }
1781
1747
  }
1782
- class we {
1748
+ class ue {
1783
1749
  static getLabelOptions(t = {}) {
1784
1750
  return {
1785
1751
  show: (t == null ? void 0 : t.show_label) || (t == null ? void 0 : t.show) || !1,
@@ -1796,7 +1762,7 @@ class we {
1796
1762
  };
1797
1763
  }
1798
1764
  }
1799
- const Sr = {
1765
+ const cs = {
1800
1766
  show_label: !1,
1801
1767
  show_legend: !1,
1802
1768
  label: null,
@@ -1805,24 +1771,24 @@ const Sr = {
1805
1771
  color: null,
1806
1772
  title: null
1807
1773
  };
1808
- function kr() {
1774
+ function us() {
1809
1775
  const e = "0123456789ABCDEF";
1810
1776
  let t = "#";
1811
- for (let s = 0; s < 6; s += 1)
1777
+ for (let r = 0; r < 6; r += 1)
1812
1778
  t += e[Math.floor(Math.random() * 16)];
1813
1779
  return t;
1814
1780
  }
1815
- function ie(e = Sr) {
1816
- var s;
1781
+ function Y(e = cs) {
1782
+ var r;
1817
1783
  const t = {
1818
1784
  label: {
1819
1785
  show: e == null ? void 0 : e.show_label,
1820
- formatter: (e == null ? void 0 : e.formatter) || ((r) => z(r)),
1786
+ formatter: (e == null ? void 0 : e.formatter) || ((s) => V(s)),
1821
1787
  ...(e == null ? void 0 : e.label) || {}
1822
1788
  },
1823
1789
  legend: {
1824
1790
  ...(e == null ? void 0 : e.legend) || {},
1825
- [((s = e == null ? void 0 : e.legend) == null ? void 0 : s.position) || "bottom"]: "0",
1791
+ [((r = e == null ? void 0 : e.legend) == null ? void 0 : r.position) || "bottom"]: "0",
1826
1792
  show: (e == null ? void 0 : e.show_legend) || !1
1827
1793
  },
1828
1794
  barWidth: "70%",
@@ -1833,7 +1799,7 @@ function ie(e = Sr) {
1833
1799
  };
1834
1800
  return (e != null && e.colors || e != null && e.color) && (t.color = (e == null ? void 0 : e.colors) || (e == null ? void 0 : e.color) || null), t;
1835
1801
  }
1836
- function ft(e) {
1802
+ function Ge(e) {
1837
1803
  return {
1838
1804
  color: "#9ca3af",
1839
1805
  fontSize: 10,
@@ -1841,13 +1807,13 @@ function ft(e) {
1841
1807
  fontWeight: 400,
1842
1808
  label: e == null ? void 0 : e.label,
1843
1809
  show: !0,
1844
- formatter: (e == null ? void 0 : e.formatter) || ((s) => z(s)),
1810
+ formatter: (e == null ? void 0 : e.formatter) || ((r) => V(r)),
1845
1811
  margin: (e == null ? void 0 : e.margin) || 7,
1846
1812
  interval: (e == null ? void 0 : e.interval) || "auto",
1847
1813
  rotate: (e == null ? void 0 : e.rotate) || 0
1848
1814
  };
1849
1815
  }
1850
- const ht = [
1816
+ const Qe = [
1851
1817
  "#d3c7e6",
1852
1818
  "#bedae3",
1853
1819
  "#f8e9cb",
@@ -1858,7 +1824,7 @@ const ht = [
1858
1824
  "#fff7c5",
1859
1825
  "#d8ffc0",
1860
1826
  "#d4f7ff"
1861
- ], W = {
1827
+ ], M = {
1862
1828
  props: [
1863
1829
  "source",
1864
1830
  "style",
@@ -1906,10 +1872,10 @@ const ht = [
1906
1872
  this.widgetInstance && this.widgetInstance.resize();
1907
1873
  },
1908
1874
  async getDataFromURL(e) {
1909
- var t, s, r, n;
1875
+ var t, r, s, n;
1910
1876
  try {
1911
1877
  const i = await v.get(e);
1912
- this.sourceData = ((t = i.data) == null ? void 0 : t.source) || [], this.$emit("update:widgetData", i.data), this.dimensions = Object.keys(((s = this.sourceData) == null ? void 0 : s[0]) || {}), this.titleCharts = this.style ? this.style : ((r = i.data) == null ? void 0 : r.title) || "", this.styleData = ((n = i.data) == null ? void 0 : n.style) || {};
1878
+ this.sourceData = ((t = i.data) == null ? void 0 : t.source) || [], this.$emit("update:widgetData", i.data), this.dimensions = Object.keys(((r = this.sourceData) == null ? void 0 : r[0]) || {}), this.titleCharts = this.style ? this.style : ((s = i.data) == null ? void 0 : s.title) || "", this.styleData = ((n = i.data) == null ? void 0 : n.style) || {};
1913
1879
  } catch (i) {
1914
1880
  const o = { message: "Дані не знайдено", title: "Помилка!", type: "error", status: 400, id: this.widgetName };
1915
1881
  (i == null ? void 0 : i.status) == "404" && (o.status = 404, o.message = "Дані не знайдено"), (i == null ? void 0 : i.status) == "400" && (o.message = "Перевірте налаштування або зверніться до адміністратора"), (i == null ? void 0 : i.status) == "500" && (o.message = "Сталася помилка сервера"), this.$emit("update:widgetData", o);
@@ -1924,7 +1890,7 @@ const ht = [
1924
1890
  formatDate(e) {
1925
1891
  const t = new Date(e);
1926
1892
  if (isNaN(t)) return e;
1927
- const s = String(t.getDate()).padStart(2, "0"), n = [
1893
+ const r = String(t.getDate()).padStart(2, "0"), n = [
1928
1894
  "січня",
1929
1895
  "лютого",
1930
1896
  "березня",
@@ -1938,7 +1904,7 @@ const ht = [
1938
1904
  "листопада",
1939
1905
  "грудня"
1940
1906
  ][t.getMonth()], i = t.getFullYear();
1941
- return `${s} ${n} ${i}`;
1907
+ return `${r} ${n} ${i}`;
1942
1908
  },
1943
1909
  async getData() {
1944
1910
  var e;
@@ -1954,11 +1920,11 @@ const ht = [
1954
1920
  console.error(t);
1955
1921
  }
1956
1922
  },
1957
- async initChart(e, t, s) {
1958
- var r, n, i, o, a, f, d;
1923
+ async initChart(e, t, r) {
1924
+ var s, n, i, o, a, f, u;
1959
1925
  this.widgetInstance && this.widgetInstance.clear();
1960
1926
  try {
1961
- const u = this.$refs.chart, h = echarts == null ? void 0 : echarts.init(u), w = {
1927
+ const c = this.$refs.chart, h = echarts == null ? void 0 : echarts.init(c), w = {
1962
1928
  tooltip: {
1963
1929
  trigger: "axis",
1964
1930
  axisPointer: { type: "shadow" },
@@ -1966,94 +1932,94 @@ const ht = [
1966
1932
  shadowColor: "transparent",
1967
1933
  padding: [0, 0, 0, 0],
1968
1934
  borderWidth: 0,
1969
- formatter: (b) => {
1970
- var k;
1971
- const c = (k = b[0]) == null ? void 0 : k.axisValue;
1972
- let m = `
1935
+ formatter: (g) => {
1936
+ var S;
1937
+ const d = (S = g[0]) == null ? void 0 : S.axisValue;
1938
+ let b = `
1973
1939
  <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">
1974
1940
  <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">
1975
- ${c ? this.formatDate(c) : "N/A"}
1941
+ ${d ? this.formatDate(d) : "N/A"}
1976
1942
  </div>
1977
1943
  `;
1978
- return b.forEach((S) => {
1979
- m += `
1944
+ return g.forEach((k) => {
1945
+ b += `
1980
1946
  <div class="flex justify-between items-center text-xs px-2 py-0.5 text-gray-500 dark:text-neutral-400">
1981
1947
  <span class="flex items-center">
1982
- <span class="w-2.5 h-2.5 me-1.5 rounded-sm" style="background-color: ${S.color};"></span>
1983
- <span class="font-medium mr-[6px]">${(S == null ? void 0 : S.seriesName) === "metric" ? "Значення" : S == null ? void 0 : S.seriesName}</span>
1948
+ <span class="w-2.5 h-2.5 me-1.5 rounded-sm" style="background-color: ${k.color};"></span>
1949
+ <span class="font-medium mr-[6px]">${(k == null ? void 0 : k.seriesName) === "metric" ? "Значення" : k == null ? void 0 : k.seriesName}</span>
1984
1950
  </span>
1985
- <span>${this.getMetricValue(S == null ? void 0 : S.data)}</span>
1951
+ <span>${this.getMetricValue(k == null ? void 0 : k.data)}</span>
1986
1952
  </div>
1987
1953
  `;
1988
- }), m += "</div>", m;
1954
+ }), b += "</div>", b;
1989
1955
  }
1990
1956
  },
1991
1957
  xAxis: {
1992
1958
  data: t != null && t.length ? t : null,
1993
1959
  type: t ? "category" : "value",
1994
- name: ((n = (r = this.styleData) == null ? void 0 : r.x_axis) == null ? void 0 : n.name) || "",
1960
+ name: ((n = (s = this.styleData) == null ? void 0 : s.x_axis) == null ? void 0 : n.name) || "",
1995
1961
  axisLabel: {
1996
- ...ft((i = this.styleData) == null ? void 0 : i.x_axis),
1997
- formatter: (b) => {
1998
- var p, m;
1999
- const c = this.formatDate(b);
2000
- return ((m = (p = this.styleData) == null ? void 0 : p.x_axis) == null ? void 0 : m.overflow) === "ellipsis" && c.length > 10 ? `${c.slice(0, 10)}...` : c;
1962
+ ...Ge((i = this.styleData) == null ? void 0 : i.x_axis),
1963
+ formatter: (g) => {
1964
+ var p, b;
1965
+ const d = this.formatDate(g);
1966
+ return ((b = (p = this.styleData) == null ? void 0 : p.x_axis) == null ? void 0 : b.overflow) === "ellipsis" && d.length > 10 ? `${d.slice(0, 10)}...` : d;
2001
1967
  }
2002
1968
  }
2003
1969
  },
2004
1970
  yAxis: {
2005
- data: s != null && s.length ? s : null,
2006
- type: s ? "category" : "value",
1971
+ data: r != null && r.length ? r : null,
1972
+ type: r ? "category" : "value",
2007
1973
  name: ((a = (o = this.styleData) == null ? void 0 : o.y_axis) == null ? void 0 : a.name) || "",
2008
- axisLabel: ft((f = this.styleData) == null ? void 0 : f.y_axis)
1974
+ axisLabel: Ge((f = this.styleData) == null ? void 0 : f.y_axis)
2009
1975
  },
2010
1976
  series: e != null && e.length ? e : null,
2011
- ...ie(this.styleData),
1977
+ ...Y(this.styleData),
2012
1978
  grid: {
2013
1979
  bottom: "0%",
2014
1980
  right: "0%",
2015
1981
  left: "0%",
2016
1982
  top: "20px",
2017
1983
  containLabel: !0,
2018
- ...((d = this.styleData) == null ? void 0 : d.grid) || {}
1984
+ ...((u = this.styleData) == null ? void 0 : u.grid) || {}
2019
1985
  }
2020
1986
  };
2021
1987
  await h.setOption(w), h.resize(), this.widgetInstance = h, this.$emit("update:currentWidget", h);
2022
- } catch (u) {
2023
- console.error(u);
1988
+ } catch (c) {
1989
+ console.error(c);
2024
1990
  }
2025
1991
  },
2026
1992
  async setSeriesOption(e, t) {
2027
- const s = e.getOption(), { series: r = [] } = s, n = r.map((i) => ({
1993
+ const r = e.getOption(), { series: s = [] } = r, n = s.map((i) => ({
2028
1994
  ...i,
2029
1995
  ...t
2030
1996
  }));
2031
1997
  e.setOption({
2032
- ...s,
1998
+ ...r,
2033
1999
  series: n
2034
2000
  });
2035
2001
  },
2036
2002
  async changeOptionsByName(e, t) {
2037
- const s = document.getElementById(e);
2038
- if (!s) return null;
2039
- const r = echarts.getInstanceByDom(s);
2003
+ const r = document.getElementById(e);
2040
2004
  if (!r) return null;
2041
- const n = r.getOption();
2042
- t.seriesOptions && this.setSeriesOption(r, t.seriesOptions), r.setOption({
2005
+ const s = echarts.getInstanceByDom(r);
2006
+ if (!s) return null;
2007
+ const n = s.getOption();
2008
+ t.seriesOptions && this.setSeriesOption(s, t.seriesOptions), s.setOption({
2043
2009
  ...n,
2044
2010
  ...t.options,
2045
2011
  tooltip: {
2046
- ...Dr.getTooltipOptions(t.options.tooltip.show)
2012
+ ...ls.getTooltipOptions(t.options.tooltip.show)
2047
2013
  }
2048
2014
  });
2049
2015
  },
2050
2016
  async changeData(e) {
2051
2017
  var t;
2052
2018
  try {
2053
- let s = this.dashboard ? `${this.prefix || ""}/bi-data?dashboard=${this.dashboard}&widget=${this.widget}` : `${this.prefix || ""}/bi-data?&widget=${this.widget}`;
2054
- (t = e == null ? void 0 : e.granularity) != null && t.length && (s += `&granularity=${e.granularity}`), e != null && e.metrics && (s += `&metrics=${e.metrics}`), this.getDataFromURL(s);
2055
- } catch (s) {
2056
- console.error(s);
2019
+ let r = this.dashboard ? `${this.prefix || ""}/bi-data?dashboard=${this.dashboard}&widget=${this.widget}` : `${this.prefix || ""}/bi-data?&widget=${this.widget}`;
2020
+ (t = e == null ? void 0 : e.granularity) != null && t.length && (r += `&granularity=${e.granularity}`), e != null && e.metrics && (r += `&metrics=${e.metrics}`), this.getDataFromURL(r);
2021
+ } catch (r) {
2022
+ console.error(r);
2057
2023
  }
2058
2024
  },
2059
2025
  async setFilter(e) {
@@ -2064,17 +2030,17 @@ const ht = [
2064
2030
  this.styleData[e] = t, this.onChangedData();
2065
2031
  },
2066
2032
  getMetricValue(e) {
2067
- var r;
2033
+ var s;
2068
2034
  const t = (e == null ? void 0 : e.metric) || e;
2069
- return parseFloat(t) ? (r = z(t, { notation: "standard" })) == null ? void 0 : r.replaceAll(
2035
+ return parseFloat(t) ? (s = V(t, { notation: "standard" })) == null ? void 0 : s.replaceAll(
2070
2036
  ",",
2071
2037
  " "
2072
2038
  ) : t;
2073
2039
  }
2074
2040
  }
2075
- }, vr = {
2041
+ }, ds = {
2076
2042
  name: "VsBar",
2077
- mixins: [W],
2043
+ mixins: [M],
2078
2044
  data() {
2079
2045
  return {
2080
2046
  resizeObserver: null
@@ -2090,8 +2056,8 @@ const ht = [
2090
2056
  this.getData(), this.onChangedData();
2091
2057
  const e = (t = this.$refs) == null ? void 0 : t.chart;
2092
2058
  e && (this.resizeObserver = new ResizeObserver(() => {
2093
- var s;
2094
- this.widgetInstance && ((s = this.widgetInstance) == null || s.resize());
2059
+ var r;
2060
+ this.widgetInstance && ((r = this.widgetInstance) == null || r.resize());
2095
2061
  }), this.resizeObserver.observe(e));
2096
2062
  },
2097
2063
  unmounted() {
@@ -2102,15 +2068,15 @@ const ht = [
2102
2068
  try {
2103
2069
  if (this.sourceData) {
2104
2070
  await this.$nextTick();
2105
- const { series: e, xs: t, ys: s } = this.prepareData();
2106
- e && (this == null || this.initChart(e, t, s));
2071
+ const { series: e, xs: t, ys: r } = this.prepareData();
2072
+ e && (this == null || this.initChart(e, t, r));
2107
2073
  }
2108
2074
  } catch (e) {
2109
2075
  console.error(e);
2110
2076
  }
2111
2077
  },
2112
2078
  prepareData() {
2113
- var e, t, s, r, n, i;
2079
+ var e, t, r, s, n, i;
2114
2080
  try {
2115
2081
  if (!((e = this.sourceData) != null && e.length))
2116
2082
  return { series: [], xs: [], ys: void 0 };
@@ -2120,26 +2086,26 @@ const ht = [
2120
2086
  )
2121
2087
  );
2122
2088
  let a;
2123
- this.dimensions[0].includes("date") ? a = o.map((w) => Be(w)) : a = [...o];
2124
- let f, d;
2125
- ((t = this.styleData) == null ? void 0 : t.horizontal) === !0 ? d = [...a] : f = [...a];
2126
- const u = this.sourceData.filter(
2089
+ this.dimensions[0].includes("date") ? a = o.map((w) => Te(w)) : a = [...o];
2090
+ let f, u;
2091
+ ((t = this.styleData) == null ? void 0 : t.horizontal) === !0 ? u = [...a] : f = [...a];
2092
+ const c = this.sourceData.filter(
2127
2093
  (w) => parseFloat(w[this.dimensions[1]]) && w[this.dimensions[0]]
2128
2094
  ).map((w) => parseFloat(w[this.dimensions[1]]));
2129
2095
  let h;
2130
- return ((s = this.styleData) == null ? void 0 : s.stack) !== !1 ? h = this.prepareStackData() : ((r = this.styleData) == null ? void 0 : r.negative_waterfall) === !0 ? h = this.prepareNegativeWaterfall() : ((n = this.styleData) == null ? void 0 : n.waterfall) === !0 ? h = this.prepareWaterfallData(u) : ((i = this.styleData) == null ? void 0 : i.accumulative) === !0 ? h = this.prepareAccumulative(u) : h = this.dimensions.slice(1).map((b, c) => ({
2131
- name: b,
2096
+ 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(c) : ((i = this.styleData) == null ? void 0 : i.accumulative) === !0 ? h = this.prepareAccumulative(c) : h = this.dimensions.slice(1).map((g, d) => ({
2097
+ name: g,
2132
2098
  type: "bar",
2133
- stack: `a${c}`,
2134
- data: this.sourceData.filter((p) => parseFloat(p[b]) && b).map((p) => parseFloat(p[b]))
2135
- })), { series: h, xs: f, ys: d };
2099
+ stack: `a${d}`,
2100
+ data: this.sourceData.filter((p) => parseFloat(p[g]) && g).map((p) => parseFloat(p[g]))
2101
+ })), { series: h, xs: f, ys: u };
2136
2102
  } catch (o) {
2137
2103
  return console.error(o), { series: [], xs: [], ys: [] };
2138
2104
  }
2139
2105
  },
2140
2106
  prepareWaterfallData(e) {
2141
2107
  let t = e.reduce((i, o) => i + o, 0);
2142
- const s = [t, ...e], r = s.map((i, o) => {
2108
+ const r = [t, ...e], s = r.map((i, o) => {
2143
2109
  if (o === 0) return 0;
2144
2110
  const a = t - i;
2145
2111
  return t -= i, a >= 0 ? a : 0;
@@ -2152,7 +2118,7 @@ const ht = [
2152
2118
  borderColor: "transparent",
2153
2119
  color: "transparent"
2154
2120
  },
2155
- data: r,
2121
+ data: s,
2156
2122
  tooltip: {
2157
2123
  show: !1
2158
2124
  }
@@ -2161,16 +2127,16 @@ const ht = [
2161
2127
  name: this.title ? this.title : this.dimensions[0],
2162
2128
  type: "bar",
2163
2129
  stack: "Total",
2164
- data: s
2130
+ data: r
2165
2131
  }
2166
2132
  ];
2167
2133
  },
2168
2134
  prepareStackData() {
2169
- return this.dimensions.slice(1).map((s) => ({
2170
- name: s,
2135
+ return this.dimensions.slice(1).map((r) => ({
2136
+ name: r,
2171
2137
  type: "bar",
2172
2138
  stack: "a",
2173
- data: this.sourceData.filter((r) => parseFloat(r[s]) && s).map((r) => parseFloat(r[s]))
2139
+ data: this.sourceData.filter((s) => parseFloat(s[r]) && r).map((s) => parseFloat(s[r]))
2174
2140
  }));
2175
2141
  },
2176
2142
  prepareNegativeWaterfall() {
@@ -2179,10 +2145,10 @@ const ht = [
2179
2145
  ), t = this.sourceData.map(
2180
2146
  (i) => Number.isNaN(i[this.dimensions[2]]) ? 0 : Number(i[this.dimensions[2]])
2181
2147
  );
2182
- let s = 0;
2183
- const r = e.map((i, o) => {
2184
- const a = s;
2185
- return s += Number.isNaN(i) ? 0 : i, o === 0 && (s -= Number.isNaN(t[o]) ? 0 : t[o]), s -= Number.isNaN(t[o + 1]) ? 0 : t[o + 1], a >= 0 ? a : 0;
2148
+ let r = 0;
2149
+ const s = e.map((i, o) => {
2150
+ const a = r;
2151
+ return r += Number.isNaN(i) ? 0 : i, o === 0 && (r -= Number.isNaN(t[o]) ? 0 : t[o]), r -= Number.isNaN(t[o + 1]) ? 0 : t[o + 1], a >= 0 ? a : 0;
2186
2152
  });
2187
2153
  return [
2188
2154
  {
@@ -2192,7 +2158,7 @@ const ht = [
2192
2158
  borderColor: "transparent",
2193
2159
  color: "transparent"
2194
2160
  },
2195
- data: r,
2161
+ data: s,
2196
2162
  tooltip: {
2197
2163
  show: !1
2198
2164
  }
@@ -2213,37 +2179,37 @@ const ht = [
2213
2179
  },
2214
2180
  prepareAccumulative(e) {
2215
2181
  let t = 0;
2216
- const s = e.map((n) => (t += n, t));
2182
+ const r = e.map((n) => (t += n, t));
2217
2183
  return [
2218
2184
  {
2219
2185
  name: this.titleCharts,
2220
2186
  type: "bar",
2221
2187
  stack: "Total",
2222
- data: s
2188
+ data: r
2223
2189
  }
2224
2190
  ];
2225
2191
  }
2226
2192
  }
2227
- }, O = (e, t) => {
2228
- const s = e.__vccOpts || e;
2229
- for (const [r, n] of t)
2230
- s[r] = n;
2231
- return s;
2232
- }, Er = ["id"];
2233
- function Cr(e, t, s, r, n, i) {
2193
+ }, R = (e, t) => {
2194
+ const r = e.__vccOpts || e;
2195
+ for (const [s, n] of t)
2196
+ r[s] = n;
2197
+ return r;
2198
+ }, fs = ["id"];
2199
+ function hs(e, t, r, s, n, i) {
2234
2200
  return x(), _("div", {
2235
2201
  id: i.uniqueID,
2236
2202
  ref: "chart",
2237
2203
  class: "h-full w-full min-h-[200px]"
2238
- }, null, 8, Er);
2204
+ }, null, 8, fs);
2239
2205
  }
2240
- const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2206
+ const ps = /* @__PURE__ */ R(ds, [["render", hs]]), ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2241
2207
  __proto__: null,
2242
- default: Or
2243
- }, Symbol.toStringTag, { value: "Module" })), $r = {
2208
+ default: ps
2209
+ }, Symbol.toStringTag, { value: "Module" })), gs = {
2244
2210
  name: "VsPie",
2245
2211
  props: ["currentWidget"],
2246
- mixins: [W],
2212
+ mixins: [M],
2247
2213
  data() {
2248
2214
  return {
2249
2215
  chartInstance: null,
@@ -2258,11 +2224,11 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2258
2224
  }
2259
2225
  },
2260
2226
  async mounted() {
2261
- var s;
2227
+ var r;
2262
2228
  await this.$nextTick(), await this.getData();
2263
2229
  const { series: e } = this.prepareData() || {};
2264
2230
  e && this.initChart(e);
2265
- const t = (s = this.$refs) == null ? void 0 : s.chart;
2231
+ const t = (r = this.$refs) == null ? void 0 : r.chart;
2266
2232
  t && (this.resizeObserver = new ResizeObserver(() => {
2267
2233
  this.chartInstance && this.chartInstance.resize();
2268
2234
  }), this.resizeObserver.observe(t));
@@ -2276,47 +2242,47 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2276
2242
  onChangedData() {
2277
2243
  try {
2278
2244
  if (this.sourceData) {
2279
- const { series: e, xs: t, ys: s } = this.prepareData();
2280
- e && this.initChart(e, t, s);
2245
+ const { series: e, xs: t, ys: r } = this.prepareData();
2246
+ e && this.initChart(e, t, r);
2281
2247
  }
2282
2248
  } catch (e) {
2283
2249
  console.error(e);
2284
2250
  }
2285
2251
  },
2286
2252
  buildTooltipForDonut(e, t) {
2287
- const { name: s, value: r, percent: n } = e;
2253
+ const { name: r, value: s, percent: n } = e;
2288
2254
  return `
2289
2255
  <div style="background-color:${t[0]}; font-size:12px; font-family:Helvetica, Arial, sans-serif; color:#ffff; padding:5px; border-radius:5px;">
2290
- ${s == null ? void 0 : s.replace("null", "Не визначено")}: ${z(r)} (${n}%)
2256
+ ${r == null ? void 0 : r.replace("null", "Не визначено")}: ${V(s)} (${n}%)
2291
2257
  </div>`;
2292
2258
  },
2293
2259
  prepareData() {
2294
- var e, t, s, r, n, i;
2260
+ var e, t, r, s, n, i;
2295
2261
  try {
2296
2262
  if (this.styleData = this.styleData || {}, !((e = this.sourceData) != null && e.length))
2297
2263
  return console.warn("No source data available"), null;
2298
2264
  const o = Array.from(
2299
2265
  new Set(
2300
- (this.sourceData || []).map((c) => c[this.dimensions[0]])
2266
+ (this.sourceData || []).map((d) => d[this.dimensions[0]])
2301
2267
  )
2302
2268
  ), a = Array.from(
2303
2269
  new Set(
2304
- (this.sourceData || []).map((c) => c[this.dimensions[1]])
2270
+ (this.sourceData || []).map((d) => d[this.dimensions[1]])
2305
2271
  )
2306
2272
  ), f = parseInt(
2307
2273
  (this.sourceData || []).reduce(
2308
- (c, p) => c + parseFloat((p == null ? void 0 : p.metric) || 0),
2274
+ (d, p) => d + parseFloat((p == null ? void 0 : p.metric) || 0),
2309
2275
  0
2310
2276
  ),
2311
2277
  10
2312
- ), d = o.map((c, p) => {
2313
- const m = (a[p] / f * 100).toFixed(2);
2278
+ ), u = o.map((d, p) => {
2279
+ const b = (a[p] / f * 100).toFixed(2);
2314
2280
  return {
2315
- name: `${c} (${m}%)`,
2281
+ name: `${d} (${b}%)`,
2316
2282
  value: a[p]
2317
2283
  };
2318
- }), u = ((t = this.styleData) == null ? void 0 : t.innerRadius) || "80%", h = ((s = this.styleData) == null ? void 0 : s.outerRadius) || "100%", w = [u, h];
2319
- return this.styleData.legend = we.getLegendOpions({
2284
+ }), c = ((t = this.styleData) == null ? void 0 : t.innerRadius) || "80%", h = ((r = this.styleData) == null ? void 0 : r.outerRadius) || "100%", w = [c, h];
2285
+ return this.styleData.legend = ue.getLegendOpions({
2320
2286
  borderRadius: 10,
2321
2287
  height: "100%",
2322
2288
  padding: 10,
@@ -2324,12 +2290,12 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2324
2290
  type: "scroll",
2325
2291
  itemWidth: 14,
2326
2292
  itemHeight: 14,
2327
- formatter: (c) => {
2293
+ formatter: (d) => {
2328
2294
  var p;
2329
- return (p = c == null ? void 0 : c.replace("null", "Не визначено")) == null ? void 0 : p.replace("NaN", "0.00");
2295
+ return (p = d == null ? void 0 : d.replace("null", "Не визначено")) == null ? void 0 : p.replace("NaN", "0.00");
2330
2296
  },
2331
- ...((r = this.styleData) == null ? void 0 : r.legend) || {}
2332
- }), this.styleData.label = we.getLabelOptions(
2297
+ ...((s = this.styleData) == null ? void 0 : s.legend) || {}
2298
+ }), this.styleData.label = ue.getLabelOptions(
2333
2299
  (n = this.styleData) == null ? void 0 : n.label
2334
2300
  ), this.styleData.show_legend = ((i = this.styleData) == null ? void 0 : i.show_legend) ?? !0, { series: [
2335
2301
  {
@@ -2338,8 +2304,8 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2338
2304
  radius: w,
2339
2305
  center: ["50%", "60%"],
2340
2306
  height: "75%",
2341
- ...ie(this.styleData),
2342
- data: d
2307
+ ...Y(this.styleData),
2308
+ data: u
2343
2309
  }
2344
2310
  ] };
2345
2311
  } catch (o) {
@@ -2358,13 +2324,13 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2358
2324
  return;
2359
2325
  }
2360
2326
  this.chartInstance = echarts.init(t);
2361
- const s = parseInt(
2327
+ const r = parseInt(
2362
2328
  (this.sourceData || []).reduce(
2363
2329
  (n, i) => n + parseFloat((i == null ? void 0 : i.metric) || 0),
2364
2330
  0
2365
2331
  ),
2366
2332
  10
2367
- ), r = {
2333
+ ), s = {
2368
2334
  tooltip: {
2369
2335
  trigger: "item",
2370
2336
  formatter: (n) => this.buildTooltipForDonut(n, [n.color]),
@@ -2377,9 +2343,9 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2377
2343
  backgroundColor: "transparent"
2378
2344
  },
2379
2345
  series: e,
2380
- ...ie(this.styleData || {}),
2346
+ ...Y(this.styleData || {}),
2381
2347
  title: {
2382
- text: z(s),
2348
+ text: V(r),
2383
2349
  left: "center",
2384
2350
  top: "41%",
2385
2351
  textStyle: {
@@ -2389,7 +2355,7 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2389
2355
  }
2390
2356
  }
2391
2357
  };
2392
- this.chartInstance.setOption(r), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
2358
+ this.chartInstance.setOption(s), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
2393
2359
  var n;
2394
2360
  (n = this.chartInstance) == null || n.resize();
2395
2361
  });
@@ -2398,21 +2364,21 @@ const Or = /* @__PURE__ */ O(vr, [["render", Cr]]), Rr = /* @__PURE__ */ Object.
2398
2364
  }
2399
2365
  }
2400
2366
  }
2401
- }, Tr = ["id"];
2402
- function Nr(e, t, s, r, n, i) {
2367
+ }, bs = ["id"];
2368
+ function ws(e, t, r, s, n, i) {
2403
2369
  return x(), _("div", {
2404
2370
  id: i.uniqueID,
2405
2371
  ref: "chart",
2406
2372
  class: "h-full min-h-[200px] flex items-center"
2407
- }, null, 8, Tr);
2373
+ }, null, 8, bs);
2408
2374
  }
2409
- const Fr = /* @__PURE__ */ O($r, [["render", Nr]]), Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2375
+ const ys = /* @__PURE__ */ R(gs, [["render", ws]]), xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2410
2376
  __proto__: null,
2411
- default: Fr
2412
- }, Symbol.toStringTag, { value: "Module" })), Pr = {
2377
+ default: ys
2378
+ }, Symbol.toStringTag, { value: "Module" })), _s = {
2413
2379
  name: "VsPie",
2414
2380
  props: ["currentWidget"],
2415
- mixins: [W],
2381
+ mixins: [M],
2416
2382
  data() {
2417
2383
  return {
2418
2384
  chartInstance: null,
@@ -2427,11 +2393,11 @@ const Fr = /* @__PURE__ */ O($r, [["render", Nr]]), Ar = /* @__PURE__ */ Object.
2427
2393
  }
2428
2394
  },
2429
2395
  async mounted() {
2430
- var s;
2396
+ var r;
2431
2397
  await this.$nextTick(), await this.getData();
2432
2398
  const { series: e } = this.prepareData() || {};
2433
2399
  e && this.initChart(e);
2434
- const t = (s = this.$refs) == null ? void 0 : s.chart;
2400
+ const t = (r = this.$refs) == null ? void 0 : r.chart;
2435
2401
  t && (this.resizeObserver = new ResizeObserver(() => {
2436
2402
  this.chartInstance && this.chartInstance.resize();
2437
2403
  }), this.resizeObserver.observe(t));
@@ -2445,57 +2411,57 @@ const Fr = /* @__PURE__ */ O($r, [["render", Nr]]), Ar = /* @__PURE__ */ Object.
2445
2411
  onChangedData() {
2446
2412
  try {
2447
2413
  if (this.sourceData) {
2448
- const { series: e, xs: t, ys: s } = this.prepareData();
2449
- e && this.initChart(e, t, s);
2414
+ const { series: e, xs: t, ys: r } = this.prepareData();
2415
+ e && this.initChart(e, t, r);
2450
2416
  }
2451
2417
  } catch (e) {
2452
2418
  console.error(e);
2453
2419
  }
2454
2420
  },
2455
2421
  buildTooltipForDonut(e, t) {
2456
- const { name: s, value: r, percent: n } = e;
2422
+ const { name: r, value: s, percent: n } = e;
2457
2423
  return `
2458
2424
  <div style="background-color:${t[0]}; font-size:12px; font-family:Helvetica, Arial, sans-serif; color:#ffff; padding:5px; border-radius:5px;">
2459
- ${s == null ? void 0 : s.replace("null", "Не визначено")}: ${z(r)} (${n}%)
2425
+ ${r == null ? void 0 : r.replace("null", "Не визначено")}: ${V(s)} (${n}%)
2460
2426
  </div>`;
2461
2427
  },
2462
2428
  prepareData() {
2463
- var e, t, s, r, n;
2429
+ var e, t, r, s, n;
2464
2430
  try {
2465
2431
  this.styleData = this.styleData || {};
2466
2432
  const i = Array.from(
2467
2433
  new Set(
2468
- (this.sourceData || []).map((b) => b[this.dimensions[0]])
2434
+ (this.sourceData || []).map((g) => g[this.dimensions[0]])
2469
2435
  )
2470
2436
  ), o = Array.from(
2471
2437
  new Set(
2472
- (this.sourceData || []).map((b) => b[this.dimensions[1]])
2438
+ (this.sourceData || []).map((g) => g[this.dimensions[1]])
2473
2439
  )
2474
2440
  ), a = parseInt(
2475
2441
  (this.sourceData || []).reduce(
2476
- (b, c) => b + parseFloat(c == null ? void 0 : c.metric),
2442
+ (g, d) => g + parseFloat(d == null ? void 0 : d.metric),
2477
2443
  0
2478
2444
  ),
2479
2445
  10
2480
- ), f = i.map((b, c) => {
2481
- const p = (o[c] / a * 100).toFixed(2);
2446
+ ), f = i.map((g, d) => {
2447
+ const p = (o[d] / a * 100).toFixed(2);
2482
2448
  return {
2483
- name: `${b} (${p}%)`,
2484
- value: o[c]
2449
+ name: `${g} (${p}%)`,
2450
+ value: o[d]
2485
2451
  };
2486
- }), d = ((e = this.styleData) == null ? void 0 : e.innerRadius) || "0%", u = ((t = this.styleData) == null ? void 0 : t.outerRadius) || "100%", h = [d, u];
2487
- return this.styleData.legend = we.getLegendOpions({
2452
+ }), u = ((e = this.styleData) == null ? void 0 : e.innerRadius) || "0%", c = ((t = this.styleData) == null ? void 0 : t.outerRadius) || "100%", h = [u, c];
2453
+ return this.styleData.legend = ue.getLegendOpions({
2488
2454
  borderRadius: 10,
2489
2455
  height: "100%",
2490
2456
  padding: 10,
2491
2457
  type: "scroll",
2492
2458
  itemWidth: 14,
2493
2459
  itemHeight: 14,
2494
- formatter: (b) => b == null ? void 0 : b.replace("null", "Не визначено"),
2460
+ formatter: (g) => g == null ? void 0 : g.replace("null", "Не визначено"),
2495
2461
  textStyle: { fontSize: "14px" },
2496
- ...((s = this.styleData) == null ? void 0 : s.legend) || {}
2497
- }), this.styleData.label = we.getLabelOptions(
2498
- (r = this.styleData) == null ? void 0 : r.label
2462
+ ...((r = this.styleData) == null ? void 0 : r.legend) || {}
2463
+ }), this.styleData.label = ue.getLabelOptions(
2464
+ (s = this.styleData) == null ? void 0 : s.label
2499
2465
  ), this.styleData.show_legend = ((n = this.styleData) == null ? void 0 : n.show_legend) ?? !0, { series: [
2500
2466
  {
2501
2467
  name: this.titleCharts ? this.titleCharts : this.dimensions[0],
@@ -2503,7 +2469,7 @@ const Fr = /* @__PURE__ */ O($r, [["render", Nr]]), Ar = /* @__PURE__ */ Object.
2503
2469
  radius: h,
2504
2470
  center: ["50%", "60%"],
2505
2471
  height: "75%",
2506
- ...ie(this.styleData),
2472
+ ...Y(this.styleData),
2507
2473
  data: f
2508
2474
  }
2509
2475
  ] };
@@ -2523,10 +2489,10 @@ const Fr = /* @__PURE__ */ O($r, [["render", Nr]]), Ar = /* @__PURE__ */ Object.
2523
2489
  return;
2524
2490
  }
2525
2491
  this.chartInstance = echarts.init(t);
2526
- const s = {
2492
+ const r = {
2527
2493
  tooltip: {
2528
2494
  trigger: "item",
2529
- formatter: (r) => this.buildTooltipForDonut(r, [r.color]),
2495
+ formatter: (s) => this.buildTooltipForDonut(s, [s.color]),
2530
2496
  borderWidth: 0,
2531
2497
  appendToBody: !0,
2532
2498
  borderColor: "transparent",
@@ -2536,31 +2502,31 @@ const Fr = /* @__PURE__ */ O($r, [["render", Nr]]), Ar = /* @__PURE__ */ Object.
2536
2502
  backgroundColor: "transparent"
2537
2503
  },
2538
2504
  series: e,
2539
- ...ie(this.styleData || {})
2505
+ ...Y(this.styleData || {})
2540
2506
  };
2541
- this.chartInstance.setOption(s), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
2542
- var r;
2543
- (r = this.chartInstance) == null || r.resize();
2507
+ this.chartInstance.setOption(r), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
2508
+ var s;
2509
+ (s = this.chartInstance) == null || s.resize();
2544
2510
  });
2545
2511
  } catch (t) {
2546
2512
  console.error("Error in initChart:", t);
2547
2513
  }
2548
2514
  }
2549
2515
  }
2550
- }, Lr = ["id"];
2551
- function Ur(e, t, s, r, n, i) {
2516
+ }, Ds = ["id"];
2517
+ function ks(e, t, r, s, n, i) {
2552
2518
  return x(), _("div", {
2553
2519
  id: i.uniqueID,
2554
2520
  ref: "chart",
2555
2521
  class: "h-full min-h-[200px] flex items-center"
2556
- }, null, 8, Lr);
2522
+ }, null, 8, Ds);
2557
2523
  }
2558
- const Br = /* @__PURE__ */ O(Pr, [["render", Ur]]), jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2524
+ const Ss = /* @__PURE__ */ R(_s, [["render", ks]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2559
2525
  __proto__: null,
2560
- default: Br
2561
- }, Symbol.toStringTag, { value: "Module" })), Vr = {
2526
+ default: Ss
2527
+ }, Symbol.toStringTag, { value: "Module" })), Es = {
2562
2528
  name: "VsLine",
2563
- mixins: [W],
2529
+ mixins: [M],
2564
2530
  data() {
2565
2531
  return {
2566
2532
  chartInstance: null,
@@ -2576,8 +2542,8 @@ const Br = /* @__PURE__ */ O(Pr, [["render", Ur]]), jr = /* @__PURE__ */ Object.
2576
2542
  onChangedData() {
2577
2543
  try {
2578
2544
  if (this.sourceData) {
2579
- const { series: e, xs: t, ys: s } = this.prepareData();
2580
- e && (this == null || this.initChart(e, t, s));
2545
+ const { series: e, xs: t, ys: r } = this.prepareData();
2546
+ e && (this == null || this.initChart(e, t, r));
2581
2547
  }
2582
2548
  } catch (e) {
2583
2549
  console.error(e);
@@ -2586,11 +2552,11 @@ const Br = /* @__PURE__ */ O(Pr, [["render", Ur]]), jr = /* @__PURE__ */ Object.
2586
2552
  prepareData() {
2587
2553
  var e, t;
2588
2554
  try {
2589
- const s = Array.from(
2555
+ const r = Array.from(
2590
2556
  new Set(this.sourceData.map((o) => o[this.dimensions[0]]))
2591
2557
  );
2592
- let r;
2593
- this.dimensions[0].includes("date") ? r = s.map((o) => Be(o)) : r = [...s];
2558
+ let s;
2559
+ this.dimensions[0].includes("date") ? s = r.map((o) => Te(o)) : s = [...r];
2594
2560
  const n = this.sourceData.map(
2595
2561
  (o) => parseFloat(o[this.dimensions[1]])
2596
2562
  );
@@ -2609,26 +2575,26 @@ const Br = /* @__PURE__ */ O(Pr, [["render", Ur]]), jr = /* @__PURE__ */ Object.
2609
2575
  data: n,
2610
2576
  stack: "a"
2611
2577
  }
2612
- ], { series: i, xs: r };
2613
- } catch (s) {
2614
- return console.error(s), null;
2578
+ ], { series: i, xs: s };
2579
+ } catch (r) {
2580
+ return console.error(r), null;
2615
2581
  }
2616
2582
  }
2617
2583
  }
2618
- }, Ir = ["id"];
2619
- function zr(e, t, s, r, n, i) {
2584
+ }, Cs = ["id"];
2585
+ function Rs(e, t, r, s, n, i) {
2620
2586
  return x(), _("div", {
2621
2587
  id: n.uniqueID,
2622
2588
  ref: "chart",
2623
2589
  style: { height: "400px" }
2624
- }, null, 8, Ir);
2590
+ }, null, 8, Cs);
2625
2591
  }
2626
- const Mr = /* @__PURE__ */ O(Vr, [["render", zr]]), Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2592
+ const Os = /* @__PURE__ */ R(Es, [["render", Rs]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2627
2593
  __proto__: null,
2628
- default: Mr
2629
- }, Symbol.toStringTag, { value: "Module" })), qr = {
2594
+ default: Os
2595
+ }, Symbol.toStringTag, { value: "Module" })), $s = {
2630
2596
  name: "VsStat",
2631
- mixins: [W],
2597
+ mixins: [M],
2632
2598
  data() {
2633
2599
  return {
2634
2600
  restDimensions: [],
@@ -2650,29 +2616,29 @@ const Mr = /* @__PURE__ */ O(Vr, [["render", zr]]), Hr = /* @__PURE__ */ Object.
2650
2616
  prepareData() {
2651
2617
  this.columns = Object.keys(this.sourceData[0]);
2652
2618
  const e = this.getValues();
2653
- this.sumValue = e.reduce((t, s) => t + s, 0), this.sourceData.forEach((t, s) => {
2654
- t.color = s < ht.length - 1 ? ht[s] : kr();
2619
+ this.sumValue = e.reduce((t, r) => t + r, 0), this.sourceData.forEach((t, r) => {
2620
+ t.color = r < Qe.length - 1 ? Qe[r] : us();
2655
2621
  });
2656
2622
  },
2657
2623
  formattedValue(e) {
2658
2624
  const t = parseFloat(e);
2659
- return z(t);
2625
+ return V(t);
2660
2626
  }
2661
2627
  }
2662
- }, Wr = { class: "flex flex-col w-full h-full pt-[16px] rounded-xl" }, Jr = { class: "flex flex-col justify-between w-full h-full" }, Kr = { class: "w-full h-full pb-6 space-y-4" }, Xr = { class: "flex w-full h-3 rounded-full gap-x-1 min-h-3 custom-x-scrollbar" }, Gr = ["onMouseover"], Qr = {
2628
+ }, Ns = { class: "flex flex-col w-full h-full pt-[16px] rounded-xl" }, As = { class: "flex flex-col justify-between w-full h-full" }, Fs = { class: "w-full h-full pb-6 space-y-4" }, Ls = { class: "flex w-full h-3 rounded-full gap-x-1 min-h-3 custom-x-scrollbar" }, Ps = ["onMouseover"], Bs = {
2663
2629
  key: 0,
2664
2630
  class: "absolute top-[-1] left-1/2 transform -translate-x-1/2 -translate-y-full bg-black text-white rounded px-2 py-1"
2665
- }, Zr = { class: "h-[calc(100%-20px)] w-full custom-scrollbar" }, Yr = { class: "grid items-center justify-between grid-cols-2 py-2 gap-x-4" }, en = { class: "flex items-center" }, tn = { class: "text-sm text-gray-800" }, sn = { class: "text-end" }, rn = { class: "text-sm text-gray-500" };
2666
- function nn(e, t, s, r, n, i) {
2667
- return x(), _("div", Wr, [
2668
- g("div", Jr, [
2669
- g("div", Kr, [
2670
- g("div", Xr, [
2671
- (x(!0), _(P, null, U(e.sourceData, (o, a) => {
2672
- var f, d, u, h;
2631
+ }, Us = { class: "h-[calc(100%-20px)] w-full custom-scrollbar" }, js = { class: "grid items-center justify-between grid-cols-2 py-2 gap-x-4" }, Vs = { class: "flex items-center" }, Is = { class: "text-sm text-gray-800" }, zs = { class: "text-end" }, Ms = { class: "text-sm text-gray-500" };
2632
+ function qs(e, t, r, s, n, i) {
2633
+ return x(), _("div", Ns, [
2634
+ m("div", As, [
2635
+ m("div", Fs, [
2636
+ m("div", Ls, [
2637
+ (x(!0), _(F, null, P(e.sourceData, (o, a) => {
2638
+ var f, u, c, h;
2673
2639
  return x(), _("div", {
2674
- class: Q(["flex flex-col min-w-[5px] justify-center min-h-2.5 h-2.5 text-xs text-white text-center whitespace-nowrap", `bg-[${o.color}]`]),
2675
- style: Le({
2640
+ 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-[${o.color}]`]),
2641
+ style: Re({
2676
2642
  width: `${parseFloat(o == null ? void 0 : o[(f = n.columns) == null ? void 0 : f[1]]) / n.sumValue * 100}%`
2677
2643
  }),
2678
2644
  role: "progressbar",
@@ -2682,22 +2648,22 @@ function nn(e, t, s, r, n, i) {
2682
2648
  onMouseover: (w) => n.showTooltip = a,
2683
2649
  onMouseleave: t[0] || (t[0] = (w) => n.showTooltip = -1)
2684
2650
  }, [
2685
- n.showTooltip > -1 ? (x(), _("div", Qr, E(e.sourceData[n.showTooltip][n.columns[0]]) + " " + E((parseFloat((h = (d = e.sourceData) == null ? void 0 : d[n.showTooltip]) == null ? void 0 : h[(u = n.columns) == null ? void 0 : u[1]]) / n.sumValue * 100).toFixed(2)) + "% ", 1)) : N("", !0)
2686
- ], 46, Gr);
2651
+ n.showTooltip > -1 ? (x(), _("div", Bs, E(e.sourceData[n.showTooltip][n.columns[0]]) + " " + E((parseFloat((h = (u = e.sourceData) == null ? void 0 : u[n.showTooltip]) == null ? void 0 : h[(c = n.columns) == null ? void 0 : c[1]]) / n.sumValue * 100).toFixed(2)) + "% ", 1)) : $("", !0)
2652
+ ], 46, Ps);
2687
2653
  }), 256))
2688
2654
  ]),
2689
- g("ul", Zr, [
2690
- (x(!0), _(P, null, U(e.sourceData, (o) => {
2655
+ m("ul", Us, [
2656
+ (x(!0), _(F, null, P(e.sourceData, (o) => {
2691
2657
  var a, f;
2692
- return x(), _("li", Yr, [
2693
- g("div", en, [
2694
- g("span", {
2695
- class: Q(["shrink-0 size-2.5 inline-block rounded-sm me-2.5 min-w-[10px] w-[10px] h-[10px] min-h-[10px]", `bg-[${o.color}]`])
2658
+ return x(), _("li", js, [
2659
+ m("div", Vs, [
2660
+ m("span", {
2661
+ 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-[${o.color}]`])
2696
2662
  }, null, 2),
2697
- g("span", tn, E((o == null ? void 0 : o[(a = n.columns) == null ? void 0 : a[0]]) || "Не визначено"), 1)
2663
+ m("span", Is, E((o == null ? void 0 : o[(a = n.columns) == null ? void 0 : a[0]]) || "Не визначено"), 1)
2698
2664
  ]),
2699
- g("div", sn, [
2700
- g("span", rn, E(i.formattedValue(o == null ? void 0 : o[(f = n.columns) == null ? void 0 : f[1]]) || "-"), 1)
2665
+ m("div", zs, [
2666
+ m("span", Ms, E(i.formattedValue(o == null ? void 0 : o[(f = n.columns) == null ? void 0 : f[1]]) || "-"), 1)
2701
2667
  ])
2702
2668
  ]);
2703
2669
  }), 256))
@@ -2706,12 +2672,12 @@ function nn(e, t, s, r, n, i) {
2706
2672
  ])
2707
2673
  ]);
2708
2674
  }
2709
- const on = /* @__PURE__ */ O(qr, [["render", nn]]), an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2675
+ const Hs = /* @__PURE__ */ R($s, [["render", qs]]), Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2710
2676
  __proto__: null,
2711
- default: on
2712
- }, Symbol.toStringTag, { value: "Module" })), ln = {
2677
+ default: Hs
2678
+ }, Symbol.toStringTag, { value: "Module" })), Js = {
2713
2679
  name: "VsProgressBar",
2714
- mixins: [W],
2680
+ mixins: [M],
2715
2681
  data() {
2716
2682
  return {
2717
2683
  restDimensions: [],
@@ -2736,49 +2702,49 @@ const on = /* @__PURE__ */ O(qr, [["render", nn]]), an = /* @__PURE__ */ Object.
2736
2702
  this.maxValue = Math.max(...e);
2737
2703
  },
2738
2704
  formattedValue(e) {
2739
- return z(e);
2705
+ return V(e);
2740
2706
  }
2741
2707
  }
2742
- }, cn = {
2708
+ }, Ks = {
2743
2709
  key: 0,
2744
2710
  class: "flex flex-col h-full pt-[16px] rounded-xl"
2745
- }, un = { class: "h-full pt-0 pb-6 space-y-4" }, dn = { class: "h-full space-y-4 custom-scrollbar" }, fn = { class: "flex items-center justify-between mr-2 gap-x-2" }, hn = { class: "grid items-center w-full grid-cols-2 gap-x-2" }, pn = { class: "text-sm text-gray-800" }, mn = {
2711
+ }, Xs = { class: "h-full pt-0 pb-6 space-y-4" }, Gs = { class: "h-full space-y-4 custom-scrollbar" }, Qs = { class: "flex items-center justify-between mr-2 gap-x-2" }, Zs = { class: "grid items-center w-full grid-cols-2 gap-x-2" }, Ys = { class: "text-sm text-gray-800" }, en = {
2746
2712
  class: "flex justify-end",
2747
2713
  role: "progressbar",
2748
2714
  "aria-valuenow": "100",
2749
2715
  "aria-valuemin": "0",
2750
2716
  "aria-valuemax": "100"
2751
- }, gn = { class: "min-w-[60px] text-end" }, bn = { class: "text-sm text-gray-500" };
2752
- function wn(e, t, s, r, n, i) {
2753
- return n.columns ? (x(), _("div", cn, [
2754
- g("div", un, [
2755
- g("ul", dn, [
2756
- (x(!0), _(P, null, U(e.sourceData, (o, a) => (x(), _("li", fn, [
2757
- g("div", hn, [
2758
- g("span", pn, E(o[n.columns[0]]), 1),
2759
- g("div", mn, [
2760
- g("div", {
2717
+ }, tn = { class: "min-w-[60px] text-end" }, rn = { class: "text-sm text-gray-500" };
2718
+ function sn(e, t, r, s, n, i) {
2719
+ return n.columns ? (x(), _("div", Ks, [
2720
+ m("div", Xs, [
2721
+ m("ul", Gs, [
2722
+ (x(!0), _(F, null, P(e.sourceData, (o, a) => (x(), _("li", Qs, [
2723
+ m("div", Zs, [
2724
+ m("span", Ys, E(o[n.columns[0]]), 1),
2725
+ m("div", en, [
2726
+ m("div", {
2761
2727
  class: "h-1.5 flex flex-col justify-center overflow-hidden bg-indigo-500 rounded-full text-xs text-white text-center whitespace-nowrap",
2762
- style: Le({
2728
+ style: Re({
2763
2729
  width: `${parseFloat(o[n.columns[1]]) / n.maxValue * 100}%`
2764
2730
  })
2765
2731
  }, null, 4)
2766
2732
  ])
2767
2733
  ]),
2768
- g("div", gn, [
2769
- g("span", bn, E(i.formattedValue(o[n.columns[1]])), 1)
2734
+ m("div", tn, [
2735
+ m("span", rn, E(i.formattedValue(o[n.columns[1]])), 1)
2770
2736
  ])
2771
2737
  ]))), 256))
2772
2738
  ])
2773
2739
  ])
2774
- ])) : N("", !0);
2740
+ ])) : $("", !0);
2775
2741
  }
2776
- const yn = /* @__PURE__ */ O(ln, [["render", wn]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2742
+ const nn = /* @__PURE__ */ R(Js, [["render", sn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2777
2743
  __proto__: null,
2778
- default: yn
2779
- }, Symbol.toStringTag, { value: "Module" })), _n = {
2744
+ default: nn
2745
+ }, Symbol.toStringTag, { value: "Module" })), an = {
2780
2746
  name: "VsListbar",
2781
- mixins: [W],
2747
+ mixins: [M],
2782
2748
  props: ["source"],
2783
2749
  data() {
2784
2750
  return {
@@ -2799,58 +2765,58 @@ const yn = /* @__PURE__ */ O(ln, [["render", wn]]), xn = /* @__PURE__ */ Object.
2799
2765
  }
2800
2766
  },
2801
2767
  prepareData() {
2802
- var t, s, r;
2768
+ var t, r, s;
2803
2769
  this.columns = Object.keys(((t = this.sourceData) == null ? void 0 : t[0]) || {});
2804
- const e = (s = this.sourceData) == null ? void 0 : s.map((n) => {
2770
+ const e = (r = this.sourceData) == null ? void 0 : r.map((n) => {
2805
2771
  var i;
2806
2772
  return n == null ? void 0 : n[(i = this.columns) == null ? void 0 : i[1]];
2807
2773
  });
2808
- this.maxValue = Math.max(...e || []), this.restDimensions = (r = this.columns) == null ? void 0 : r.filter((n, i) => i !== 0);
2774
+ this.maxValue = Math.max(...e || []), this.restDimensions = (s = this.columns) == null ? void 0 : s.filter((n, i) => i !== 0);
2809
2775
  },
2810
2776
  formattedValue(e) {
2811
- return z(e);
2777
+ return V(e);
2812
2778
  },
2813
2779
  getWidth(e) {
2814
2780
  return `${e / this.maxValue * 100}%`;
2815
2781
  }
2816
2782
  }
2817
- }, Dn = { class: "h-full pt-[20px] list-bar" }, Sn = { class: "space-y-2 custom-scrollbar h-full h-[calc(100%-20px)]" }, kn = { class: "relative w-full truncate" }, vn = { class: "relative z-[1] text-sm block py-1 px-2 w-full text-sm truncate text-gray-800" }, En = { class: "text-[14px] text-gray-500" };
2818
- function Cn(e, t, s, r, n, i) {
2819
- return x(), _("div", Dn, [
2820
- g("ul", Sn, [
2821
- (x(!0), _(P, null, U(e.sourceData, (o, a) => {
2822
- var f, d, u;
2783
+ }, ln = { class: "h-full pt-[20px] list-bar" }, cn = { class: "space-y-2 custom-scrollbar h-full h-[calc(100%-20px)]" }, un = { class: "relative w-full truncate" }, dn = { class: "relative z-[1] text-sm block py-1 px-2 w-full text-sm truncate text-gray-800" }, fn = { class: "text-[14px] text-gray-500" };
2784
+ function hn(e, t, r, s, n, i) {
2785
+ return x(), _("div", ln, [
2786
+ m("ul", cn, [
2787
+ (x(!0), _(F, null, P(e.sourceData, (o, a) => {
2788
+ var f, u, c;
2823
2789
  return x(), _("li", {
2824
2790
  key: a,
2825
2791
  class: "flex items-center justify-between w-full gap-x-2"
2826
2792
  }, [
2827
- g("div", kn, [
2828
- g("span", vn, E((o == null ? void 0 : o[(f = n.columns) == null ? void 0 : f[0]]) || "Без категорії"), 1),
2829
- g("div", {
2830
- class: Q(["absolute inset-y-0 h-full rounded start-0", o != null && o[(d = n.columns) == null ? void 0 : d[0]] ? "bg-indigo-100" : "bg-gray-100"]),
2831
- style: Le({ width: i.getWidth(o == null ? void 0 : o[(u = n.columns) == null ? void 0 : u[1]]) })
2793
+ m("div", un, [
2794
+ m("span", dn, E((o == null ? void 0 : o[(f = n.columns) == null ? void 0 : f[0]]) || "Без категорії"), 1),
2795
+ m("div", {
2796
+ class: J(["absolute inset-y-0 h-full rounded start-0", o != null && o[(u = n.columns) == null ? void 0 : u[0]] ? "bg-indigo-100" : "bg-gray-100"]),
2797
+ style: Re({ width: i.getWidth(o == null ? void 0 : o[(c = n.columns) == null ? void 0 : c[1]]) })
2832
2798
  }, null, 6)
2833
2799
  ]),
2834
- (x(!0), _(P, null, U(n.restDimensions, (h, w) => (x(), _("div", {
2800
+ (x(!0), _(F, null, P(n.restDimensions, (h, w) => (x(), _("div", {
2835
2801
  key: w,
2836
2802
  class: "w-20 mr-2 text-end"
2837
2803
  }, [
2838
- g("span", En, E(i.formattedValue(o == null ? void 0 : o[h])), 1)
2804
+ m("span", fn, E(i.formattedValue(o == null ? void 0 : o[h])), 1)
2839
2805
  ]))), 128))
2840
2806
  ]);
2841
2807
  }), 128))
2842
2808
  ])
2843
2809
  ]);
2844
2810
  }
2845
- const On = /* @__PURE__ */ O(_n, [["render", Cn]]), Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2811
+ const pn = /* @__PURE__ */ R(an, [["render", hn]]), mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2846
2812
  __proto__: null,
2847
- default: On
2848
- }, Symbol.toStringTag, { value: "Module" })), $e = {
2813
+ default: pn
2814
+ }, Symbol.toStringTag, { value: "Module" })), _e = {
2849
2815
  week: "Тиждень",
2850
2816
  month: "Місяць",
2851
2817
  quarter: "Квартал",
2852
2818
  year: "Рік"
2853
- }, $n = ["onClick"], Tn = { class: "flex items-center justify-between w-full" }, Nn = { key: 0 }, Fn = {
2819
+ }, gn = ["onClick"], bn = { class: "flex items-center justify-between w-full" }, wn = { key: 0 }, yn = {
2854
2820
  __name: "vs-bi-dropdown",
2855
2821
  props: {
2856
2822
  title: String,
@@ -2859,31 +2825,31 @@ const On = /* @__PURE__ */ O(_n, [["render", Cn]]), Rn = /* @__PURE__ */ Object.
2859
2825
  },
2860
2826
  emits: ["selected"],
2861
2827
  setup(e, { emit: t }) {
2862
- const s = e, r = t, n = Ee(!1), i = Ee(s.value || null), o = Ee(null), a = Ke(() => typeof s.options == "string" ? s.options.split(",").map((b, c) => ({ id: c, text: b.trim() })) : s.options), f = Ke(() => {
2863
- const b = a.value.find(
2864
- (c) => (c.id || c) === i.value
2828
+ const r = e, s = t, n = be(!1), i = be(r.value || null), o = be(null), a = Le(() => typeof r.options == "string" ? r.options.split(",").map((g, d) => ({ id: d, text: g.trim() })) : r.options), f = Le(() => {
2829
+ const g = a.value.find(
2830
+ (d) => (d.id || d) === i.value
2865
2831
  );
2866
- return b ? b.text || b : s.title;
2867
- }), d = (b) => {
2868
- i.value = b.id || b, n.value = !1, r("selected", (b == null ? void 0 : b.id) || b), document.removeEventListener("click", u);
2869
- }, u = (b) => {
2870
- o.value && !o.value.contains(b.target) && (n.value = !1, document.removeEventListener("click", u));
2832
+ return g ? g.text || g : r.title;
2833
+ }), u = (g) => {
2834
+ i.value = g.id || g, n.value = !1, s("selected", (g == null ? void 0 : g.id) || g), document.removeEventListener("click", c);
2835
+ }, c = (g) => {
2836
+ o.value && !o.value.contains(g.target) && (n.value = !1, document.removeEventListener("click", c));
2871
2837
  }, h = () => {
2872
2838
  n.value = !n.value, n.value ? setTimeout(() => {
2873
- document.addEventListener("click", u);
2874
- }, 200) : document.removeEventListener("click", u);
2875
- }, w = (b) => ($e == null ? void 0 : $e[b]) || b;
2876
- return It(() => {
2877
- document.removeEventListener("click", u);
2878
- }), (b, c) => (x(), _(P, null, [
2879
- g("button", {
2839
+ document.addEventListener("click", c);
2840
+ }, 200) : document.removeEventListener("click", c);
2841
+ }, w = (g) => (_e == null ? void 0 : _e[g]) || g;
2842
+ return vt(() => {
2843
+ document.removeEventListener("click", c);
2844
+ }), (g, d) => (x(), _(F, null, [
2845
+ m("button", {
2880
2846
  type: "button",
2881
2847
  "aria-expanded": "true",
2882
2848
  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",
2883
2849
  onClick: h
2884
2850
  }, [
2885
- pt(E(w(f.value)) + " ", 1),
2886
- c[0] || (c[0] = g("svg", {
2851
+ Ze(E(w(f.value)) + " ", 1),
2852
+ d[0] || (d[0] = m("svg", {
2887
2853
  class: "shrink-0 size-3.5 text-gray-600 dark:text-neutral-400",
2888
2854
  xmlns: "http://www.w3.org/2000/svg",
2889
2855
  width: "16",
@@ -2895,7 +2861,7 @@ const On = /* @__PURE__ */ O(_n, [["render", Cn]]), Rn = /* @__PURE__ */ Object.
2895
2861
  "stroke-linecap": "round",
2896
2862
  "stroke-linejoin": "round"
2897
2863
  }, [
2898
- g("path", { d: "m6 9 6 6 6-6" })
2864
+ m("path", { d: "m6 9 6 6 6-6" })
2899
2865
  ], -1))
2900
2866
  ]),
2901
2867
  n.value ? (x(), _("div", {
@@ -2909,15 +2875,15 @@ const On = /* @__PURE__ */ O(_n, [["render", Cn]]), Rn = /* @__PURE__ */ Object.
2909
2875
  "aria-orientation": "vertical",
2910
2876
  style: { "margin-top": "10px" }
2911
2877
  }, [
2912
- (x(!0), _(P, null, U(a.value, (p) => (x(), _("div", {
2878
+ (x(!0), _(F, null, P(a.value, (p) => (x(), _("div", {
2913
2879
  key: p.id || p,
2914
2880
  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",
2915
- onClick: (m) => d(p)
2881
+ onClick: (b) => u(p)
2916
2882
  }, [
2917
- g("div", Tn, [
2918
- g("span", null, E(w(p.text || p)), 1),
2919
- i.value === (p.id || p) ? (x(), _("span", Nn, [...c[1] || (c[1] = [
2920
- g("svg", {
2883
+ m("div", bn, [
2884
+ m("span", null, E(w(p.text || p)), 1),
2885
+ i.value === (p.id || p) ? (x(), _("span", wn, [...d[1] || (d[1] = [
2886
+ m("svg", {
2921
2887
  class: "shrink-0 h-3.5 w-3.5 text-gray-800 dark:text-neutral-200",
2922
2888
  xmlns: "http:.w3.org/2000/svg",
2923
2889
  width: "24",
@@ -2929,32 +2895,32 @@ const On = /* @__PURE__ */ O(_n, [["render", Cn]]), Rn = /* @__PURE__ */ Object.
2929
2895
  "stroke-linecap": "round",
2930
2896
  "stroke-linejoin": "round"
2931
2897
  }, [
2932
- g("polyline", { points: "20 6 9 17 4 12" })
2898
+ m("polyline", { points: "20 6 9 17 4 12" })
2933
2899
  ], -1)
2934
- ])])) : N("", !0)
2900
+ ])])) : $("", !0)
2935
2901
  ])
2936
- ], 8, $n))), 128))
2937
- ], 512)) : N("", !0)
2902
+ ], 8, gn))), 128))
2903
+ ], 512)) : $("", !0)
2938
2904
  ], 64));
2939
2905
  }
2940
- }, An = {
2941
- "bi-bar": T(() => Promise.resolve().then(() => Rr)),
2942
- "bi-number": T(() => import("./vs-number-Dd_21nn-.js")),
2943
- "bi-text": T(() => import("./vs-text-DEJjWxDu.js")),
2944
- "bi-listbar": T(() => Promise.resolve().then(() => Rn)),
2945
- "bi-pie": T(() => Promise.resolve().then(() => jr)),
2946
- "bi-donut": T(() => Promise.resolve().then(() => Ar)),
2947
- "bi-line": T(() => Promise.resolve().then(() => Hr)),
2948
- "bi-stat": T(() => Promise.resolve().then(() => an)),
2949
- "bi-pivot": T(() => Promise.resolve().then(() => Xi)),
2950
- "bi-progress": T(() => Promise.resolve().then(() => xn)),
2951
- "bi-funnel": T(() => import("./vs-funnel-bar-T330oJNS.js")),
2952
- "bi-map": T(() => import("./vs-map-Skt608pM.js")),
2953
- "bi-cluster": T(() => import("./vs-map-cluster-BRUiY_90.js")),
2954
- "bi-table": T(() => import("./vs-table-BwC29Zyc.js"))
2955
- }, Pn = { class: "flex items-center space-x-2" }, Ln = /* @__PURE__ */ zt({
2906
+ }, xn = {
2907
+ "bi-bar": T(() => Promise.resolve().then(() => ms)),
2908
+ "bi-number": T(() => import("./vs-number-sHlpEuZn.js")),
2909
+ "bi-text": T(() => import("./vs-text-CK4PX9CJ.js")),
2910
+ "bi-listbar": T(() => Promise.resolve().then(() => mn)),
2911
+ "bi-pie": T(() => Promise.resolve().then(() => vs)),
2912
+ "bi-donut": T(() => Promise.resolve().then(() => xs)),
2913
+ "bi-line": T(() => Promise.resolve().then(() => Ts)),
2914
+ "bi-stat": T(() => Promise.resolve().then(() => Ws)),
2915
+ "bi-pivot": T(() => Promise.resolve().then(() => Li)),
2916
+ "bi-progress": T(() => Promise.resolve().then(() => on)),
2917
+ "bi-funnel": T(() => import("./vs-funnel-bar-CyPcyYTP.js")),
2918
+ "bi-map": T(() => import("./vs-map-DesSaN8x.js")),
2919
+ "bi-cluster": T(() => import("./vs-map-cluster-Br3XHcWM.js")),
2920
+ "bi-table": T(() => import("./vs-table-C8ibl5_z.js"))
2921
+ }, _n = { class: "flex items-center space-x-2" }, Dn = /* @__PURE__ */ Et({
2956
2922
  __name: "vs-bi-switch",
2957
- props: /* @__PURE__ */ Xe({
2923
+ props: /* @__PURE__ */ Pe({
2958
2924
  leftLabel: {},
2959
2925
  rightLabel: {},
2960
2926
  modelValue: { type: Boolean }
@@ -2965,39 +2931,39 @@ const On = /* @__PURE__ */ O(_n, [["render", Cn]]), Rn = /* @__PURE__ */ Object.
2965
2931
  },
2966
2932
  modelModifiers: {}
2967
2933
  }),
2968
- emits: /* @__PURE__ */ Xe(["update:is-enabled"], ["update:modelValue"]),
2934
+ emits: /* @__PURE__ */ Pe(["update:is-enabled"], ["update:modelValue"]),
2969
2935
  setup(e, { emit: t }) {
2970
- const s = t, r = Mt(e, "modelValue"), n = () => {
2971
- s("update:is-enabled", r);
2936
+ const r = t, s = Ct(e, "modelValue"), n = () => {
2937
+ r("update:is-enabled", s);
2972
2938
  };
2973
- return (i, o) => (x(), _("div", Pn, [
2974
- e.leftLabel ? (x(), _("div", {
2939
+ return (i, o) => (x(), _("div", _n, [
2940
+ i.leftLabel ? (x(), _("div", {
2975
2941
  key: 0,
2976
- class: Q(["transition-colors", { "text-blue-500": !r.value }])
2977
- }, E(e.leftLabel), 3)) : N("", !0),
2978
- Ht(g("input", {
2979
- "onUpdate:modelValue": o[0] || (o[0] = (a) => r.value = a),
2942
+ class: J(["transition-colors", { "text-blue-500": !s.value }])
2943
+ }, E(i.leftLabel), 3)) : $("", !0),
2944
+ Rt(m("input", {
2945
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
2980
2946
  type: "checkbox",
2981
2947
  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",
2982
2948
  onChange: n
2983
2949
  }, null, 544), [
2984
- [qt, r.value]
2950
+ [Ot, s.value]
2985
2951
  ]),
2986
- e.rightLabel ? (x(), _("div", {
2952
+ i.rightLabel ? (x(), _("div", {
2987
2953
  key: 1,
2988
- class: Q(["transition-colors", { "text-blue-500": r.value }])
2989
- }, E(e.rightLabel), 3)) : N("", !0)
2954
+ class: J(["transition-colors", { "text-blue-500": s.value }])
2955
+ }, E(i.rightLabel), 3)) : $("", !0)
2990
2956
  ]));
2991
2957
  }
2992
- }), Un = {}, Bn = { class: "flex items-center justify-center h-full" };
2993
- function jn(e, t) {
2994
- return x(), _("div", Bn, [...t[0] || (t[0] = [
2995
- g("div", { class: "text-center text-gray-500" }, [
2996
- g("h2", { class: "text-2xl font-bold" }, "No data available")
2958
+ }), kn = {}, Sn = { class: "flex items-center justify-center h-full" };
2959
+ function vn(e, t) {
2960
+ return x(), _("div", Sn, [...t[0] || (t[0] = [
2961
+ m("div", { class: "text-center text-gray-500" }, [
2962
+ m("h2", { class: "text-2xl font-bold" }, "No data available")
2997
2963
  ], -1)
2998
2964
  ])]);
2999
2965
  }
3000
- const Vn = /* @__PURE__ */ O(Un, [["render", jn]]), In = {}, zn = {
2966
+ const En = /* @__PURE__ */ R(kn, [["render", vn]]), Cn = {}, Rn = {
3001
2967
  xmlns: "http://www.w3.org/2000/svg",
3002
2968
  viewBox: "0 0 24 24",
3003
2969
  fill: "none",
@@ -3007,25 +2973,25 @@ const Vn = /* @__PURE__ */ O(Un, [["render", jn]]), In = {}, zn = {
3007
2973
  "stroke-linejoin": "round",
3008
2974
  class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
3009
2975
  };
3010
- function Mn(e, t, s, r, n, i) {
3011
- return x(), _("svg", zn, [...t[0] || (t[0] = [
3012
- g("path", {
2976
+ function On(e, t, r, s, n, i) {
2977
+ return x(), _("svg", Rn, [...t[0] || (t[0] = [
2978
+ m("path", {
3013
2979
  stroke: "none",
3014
2980
  d: "M0 0h24v24H0z",
3015
2981
  fill: "none"
3016
2982
  }, null, -1),
3017
- g("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
3018
- g("path", { d: "M7 11l5 5l5 -5" }, null, -1),
3019
- g("path", { d: "M12 4l0 12" }, null, -1)
2983
+ m("path", { d: "M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2" }, null, -1),
2984
+ m("path", { d: "M7 11l5 5l5 -5" }, null, -1),
2985
+ m("path", { d: "M12 4l0 12" }, null, -1)
3020
2986
  ])]);
3021
2987
  }
3022
- const Hn = /* @__PURE__ */ O(In, [["render", Mn]]), qn = {
2988
+ const Tn = /* @__PURE__ */ R(Cn, [["render", On]]), $n = {
3023
2989
  components: {
3024
- VsBiDropdown: Fn,
3025
- VsBiSwitch: Ln,
3026
- VsNoDataChart: Vn,
3027
- IconDownload: Hn,
3028
- ...An
2990
+ VsBiDropdown: yn,
2991
+ VsBiSwitch: Dn,
2992
+ VsNoDataChart: En,
2993
+ IconDownload: Tn,
2994
+ ...xn
3029
2995
  },
3030
2996
  props: {
3031
2997
  dashboard: { type: String },
@@ -3045,27 +3011,27 @@ const Hn = /* @__PURE__ */ O(In, [["render", Mn]]), qn = {
3045
3011
  },
3046
3012
  computed: {
3047
3013
  computedTitle() {
3048
- var t, s;
3014
+ var t, r;
3049
3015
  const e = (t = this.dashboardWidgets) == null ? void 0 : t.find(
3050
- (r) => r.name === this.widget
3016
+ (s) => s.name === this.widget
3051
3017
  );
3052
- return ((s = e == null ? void 0 : e.data) == null ? void 0 : s.title) || (e == null ? void 0 : e.title) || "";
3018
+ return ((r = e == null ? void 0 : e.data) == null ? void 0 : r.title) || (e == null ? void 0 : e.title) || "";
3053
3019
  },
3054
3020
  computedType() {
3055
3021
  var t;
3056
3022
  const e = (t = this.dashboardWidgets) == null ? void 0 : t.find(
3057
- (s) => s.name === this.widget
3023
+ (r) => r.name === this.widget
3058
3024
  );
3059
3025
  return (e == null ? void 0 : e.type) || "text";
3060
3026
  },
3061
3027
  controls() {
3062
3028
  var t;
3063
3029
  return Object.keys(((t = this.widgetData) == null ? void 0 : t.controls) || {}).map(
3064
- (s) => {
3065
- var r, n, i;
3030
+ (r) => {
3031
+ var s, n, i;
3066
3032
  return {
3067
- name: s,
3068
- options: typeof ((r = this.widgetData) == null ? void 0 : r.controls) == "boolean" ? !1 : (i = (n = this.widgetData) == null ? void 0 : n.controls) == null ? void 0 : i[s]
3033
+ name: r,
3034
+ options: typeof ((s = this.widgetData) == null ? void 0 : s.controls) == "boolean" ? !1 : (i = (n = this.widgetData) == null ? void 0 : n.controls) == null ? void 0 : i[r]
3069
3035
  };
3070
3036
  }
3071
3037
  );
@@ -3076,35 +3042,35 @@ const Hn = /* @__PURE__ */ O(In, [["render", Mn]]), qn = {
3076
3042
  },
3077
3043
  watch: {
3078
3044
  filterURl(e) {
3079
- var t, s;
3080
- (s = (t = this.$refs) == null ? void 0 : t.chart) == null || s.setFilter(e);
3045
+ var t, r;
3046
+ (r = (t = this.$refs) == null ? void 0 : t.chart) == null || r.setFilter(e);
3081
3047
  },
3082
3048
  selectedWidget(e, t) {
3083
- var s;
3084
- e !== t && e === ((s = this.widgetData) == null ? void 0 : s.id) && this.$emit("update:current-widget-data", this.widgetData);
3049
+ var r;
3050
+ e !== t && e === ((r = this.widgetData) == null ? void 0 : r.id) && this.$emit("update:current-widget-data", this.widgetData);
3085
3051
  },
3086
3052
  widgetData(e, t) {
3087
3053
  if ((e == null ? void 0 : e.id) === (t == null ? void 0 : t.id)) return;
3088
- const r = new URLSearchParams(window.top.location.search).get("widget");
3089
- r && r === (e == null ? void 0 : e.id) && this.$emit("update:current-widget-data", e);
3054
+ const s = new URLSearchParams(window.top.location.search).get("widget");
3055
+ s && s === (e == null ? void 0 : e.id) && this.$emit("update:current-widget-data", e);
3090
3056
  }
3091
3057
  },
3092
3058
  methods: {
3093
3059
  changeStyleHandler(e, t) {
3094
- var s;
3095
- (s = this.$refs.chart) == null || s.changeStyle(e, t);
3060
+ var r;
3061
+ (r = this.$refs.chart) == null || r.changeStyle(e, t);
3096
3062
  },
3097
3063
  selectedOptionHandler(e, t) {
3098
- let s = !0;
3099
- this.selected.forEach((r) => {
3100
- r.name === t && (r.option = e, s = !1);
3101
- }), s && this.selected.push({ name: t, option: e }), this.makeUpUrl();
3064
+ let r = !0;
3065
+ this.selected.forEach((s) => {
3066
+ s.name === t && (s.option = e, r = !1);
3067
+ }), r && this.selected.push({ name: t, option: e }), this.makeUpUrl();
3102
3068
  },
3103
3069
  makeUpUrl() {
3104
3070
  var t;
3105
3071
  let e = `/bi-data?dashboard=${this.dashboard}&widget=${this.widget}`;
3106
- this.selected.forEach((s, r) => {
3107
- e += `&${s.name}=${s.option}`;
3072
+ this.selected.forEach((r, s) => {
3073
+ e += `&${r.name}=${r.option}`;
3108
3074
  }), (t = this.$refs.chart) == null || t.getDataFromURL(e);
3109
3075
  },
3110
3076
  exportChart() {
@@ -3118,82 +3084,82 @@ const Hn = /* @__PURE__ */ O(In, [["render", Mn]]), qn = {
3118
3084
  }
3119
3085
  }
3120
3086
  }
3121
- }, Wn = {
3087
+ }, Nn = {
3122
3088
  key: 0,
3123
3089
  class: "text-[16px] flex max-w-full items-center min-h-0 flex justify-between max-h-[50px] h-fit shrink-0"
3124
- }, Jn = { class: "flex items-center justify-between w-full" }, Kn = { class: "grid" }, Xn = { class: "text-gray-800 max-h-[30px] inline-block text-nowrap font-semibold" }, Gn = { class: "flex flex-col justify-end" }, Qn = {
3090
+ }, An = { class: "flex items-center justify-between w-full" }, Fn = { class: "grid" }, Ln = { class: "text-gray-800 max-h-[30px] inline-block line-clamp-1 font-semibold" }, Pn = { class: "flex flex-col justify-end" }, Bn = {
3125
3091
  key: 0,
3126
3092
  class: "flex items-center justify-end w-full gap-2"
3127
- }, Zn = { class: "w-full h-full" };
3128
- function Yn(e, t, s, r, n, i) {
3129
- var u, h, w, b, c, p, m, k, S;
3130
- const o = I("VsBiDropdown"), a = I("VsBiSwitch"), f = I("IconDownload"), d = I("VsNoDataChart");
3093
+ }, Un = { class: "w-full h-full" };
3094
+ function jn(e, t, r, s, n, i) {
3095
+ var c, h, w, g, d, p, b, S, k;
3096
+ const o = j("VsBiDropdown"), a = j("VsBiSwitch"), f = j("IconDownload"), u = j("VsNoDataChart");
3131
3097
  return x(), _("div", {
3132
3098
  ref: "widget",
3133
- class: Q(["box-border relative h-full p-4 bg-white border border-gray-200 select-auto rounded-xl", [
3134
- (h = (u = n.widgetData) == null ? void 0 : u.style) != null && h.height ? `max-h-[${(b = (w = n.widgetData) == null ? void 0 : w.style) == null ? void 0 : b.height}px] h-[${(p = (c = n.widgetData) == null ? void 0 : c.style) == null ? void 0 : p.height}px]` : "max-h-[460px]"
3099
+ class: J(["box-border relative h-full p-4 bg-white border border-gray-200 select-auto rounded-xl", [
3100
+ (h = (c = n.widgetData) == null ? void 0 : c.style) != null && h.height ? `max-h-[${(g = (w = n.widgetData) == null ? void 0 : w.style) == null ? void 0 : g.height}px] h-[${(p = (d = n.widgetData) == null ? void 0 : d.style) == null ? void 0 : p.height}px]` : "max-h-[460px]"
3135
3101
  ]])
3136
3102
  }, [
3137
- ["text", "cluster", "map"].includes(i.computedType) ? N("", !0) : (x(), _("div", Wn, [
3138
- g("div", Jn, [
3139
- g("div", Kn, [
3140
- g("span", Xn, E(i.computedTitle), 1)
3103
+ ["text", "cluster", "map"].includes(i.computedType) ? $("", !0) : (x(), _("div", Nn, [
3104
+ m("div", An, [
3105
+ m("div", Fn, [
3106
+ m("span", Ln, E(i.computedTitle), 1)
3141
3107
  ]),
3142
- g("div", Gn, [
3143
- (m = i.controls) != null && m.length ? (x(), _("span", Qn, [
3144
- (x(!0), _(P, null, U((k = i.controls) == null ? void 0 : k.filter(
3108
+ m("div", Pn, [
3109
+ (b = i.controls) != null && b.length ? (x(), _("span", Bn, [
3110
+ (x(!0), _(F, null, P((S = i.controls) == null ? void 0 : S.filter(
3145
3111
  (y) => (y == null ? void 0 : y.options) && (y == null ? void 0 : y.name) !== "export"
3146
3112
  ), (y) => {
3147
- var C;
3113
+ var L;
3148
3114
  return x(), _("div", null, [
3149
- Array.isArray(y == null ? void 0 : y.options) ? (x(), M(o, {
3115
+ Array.isArray(y == null ? void 0 : y.options) ? (x(), I(o, {
3150
3116
  key: 0,
3151
3117
  title: y == null ? void 0 : y.name,
3152
3118
  options: y == null ? void 0 : y.options,
3153
- value: (C = n.widgetData) == null ? void 0 : C.data[y == null ? void 0 : y.name],
3154
- onSelected: ($) => i.selectedOptionHandler($, y == null ? void 0 : y.name)
3155
- }, null, 8, ["title", "options", "value", "onSelected"])) : typeof y.options == "boolean" ? (x(), M(a, {
3119
+ value: (L = n.widgetData) == null ? void 0 : L.data[y == null ? void 0 : y.name],
3120
+ onSelected: (C) => i.selectedOptionHandler(C, y == null ? void 0 : y.name)
3121
+ }, null, 8, ["title", "options", "value", "onSelected"])) : typeof y.options == "boolean" ? (x(), I(a, {
3156
3122
  key: 1,
3157
3123
  "left-label": y == null ? void 0 : y.name,
3158
3124
  "is-enabled": y == null ? void 0 : y.options,
3159
- "onUpdate:isEnabled": ($) => i.changeStyleHandler(y == null ? void 0 : y.name, $)
3160
- }, null, 8, ["left-label", "is-enabled", "onUpdate:isEnabled"])) : N("", !0)
3125
+ "onUpdate:isEnabled": (C) => i.changeStyleHandler(y == null ? void 0 : y.name, C)
3126
+ }, null, 8, ["left-label", "is-enabled", "onUpdate:isEnabled"])) : $("", !0)
3161
3127
  ]);
3162
3128
  }), 256)),
3163
- (S = i.controls) != null && S.some((y) => (y == null ? void 0 : y.name) === "export") ? (x(), _("button", {
3129
+ (k = i.controls) != null && k.some((y) => (y == null ? void 0 : y.name) === "export") ? (x(), _("button", {
3164
3130
  key: 0,
3165
3131
  onClick: t[0] || (t[0] = (...y) => i.exportChart && i.exportChart(...y)),
3166
3132
  class: "h-[32px] w-[32px] rounded-lg hover:bg-gray-100 duration-100 flex items-center justify-center"
3167
3133
  }, [
3168
- Ue(f, {
3134
+ Oe(f, {
3169
3135
  height: "16",
3170
3136
  width: "16",
3171
3137
  class: "text-gray-800"
3172
3138
  })
3173
- ])) : N("", !0)
3174
- ])) : N("", !0)
3139
+ ])) : $("", !0)
3140
+ ])) : $("", !0)
3175
3141
  ])
3176
3142
  ])
3177
3143
  ])),
3178
- g("div", Zn, [
3179
- n.widgetData ? (x(), M(Wt("bi-" + i.computedType), {
3144
+ m("div", Un, [
3145
+ n.widgetData ? (x(), I(Tt("bi-" + i.computedType), {
3180
3146
  key: 0,
3181
3147
  currentWidget: n.currentWidget,
3182
3148
  "onUpdate:currentWidget": t[1] || (t[1] = (y) => n.currentWidget = y),
3183
3149
  widgetData: n.widgetData,
3184
3150
  "onUpdate:widgetData": t[2] || (t[2] = (y) => n.widgetData = y),
3185
3151
  ref: "chart",
3186
- dashboard: s.dashboard,
3152
+ dashboard: r.dashboard,
3187
3153
  title: i.computedTitle,
3188
- widget: s.widget
3189
- }, null, 40, ["currentWidget", "widgetData", "dashboard", "title", "widget"])) : (x(), M(d, {
3154
+ widget: r.widget
3155
+ }, null, 40, ["currentWidget", "widgetData", "dashboard", "title", "widget"])) : (x(), I(u, {
3190
3156
  key: 1,
3191
3157
  class: "w-full h-full"
3192
3158
  }))
3193
3159
  ])
3194
3160
  ], 2);
3195
3161
  }
3196
- const ei = /* @__PURE__ */ O(qn, [["render", Yn]]), ti = {
3162
+ const Vn = /* @__PURE__ */ R($n, [["render", jn]]), In = {
3197
3163
  props: {
3198
3164
  title: { type: String, default: () => "Дані для відображення відсутні" },
3199
3165
  text: {
@@ -3201,21 +3167,21 @@ const ei = /* @__PURE__ */ O(qn, [["render", Yn]]), ti = {
3201
3167
  default: () => "Змініть параметри пошуку або спробуйте пізніше"
3202
3168
  }
3203
3169
  }
3204
- }, si = { class: "w-full overflow-hidden rounded vs-table-interface__table-wrp h-fit" }, ri = { class: "p-5 min-h-[500px] flex flex-col justify-center items-center text-center" }, ni = { class: "max-w-sm mx-auto mt-6" }, ii = { class: "font-medium text-gray-800 dark:text-neutral-200" }, oi = { class: "mt-2 text-sm text-gray-500 dark:text-neutral-500" };
3205
- function ai(e, t, s, r, n, i) {
3206
- return x(), _("div", si, [
3207
- g("div", null, [
3208
- g("div", ri, [
3209
- t[0] || (t[0] = mt('<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)),
3210
- g("div", ni, [
3211
- g("p", ii, E(s.title), 1),
3212
- g("p", oi, E(s.text), 1)
3170
+ }, zn = { class: "w-full overflow-hidden rounded vs-table-interface__table-wrp h-fit" }, Mn = { class: "p-5 min-h-[500px] flex flex-col justify-center items-center text-center" }, qn = { class: "max-w-sm mx-auto mt-6" }, Hn = { class: "font-medium text-gray-800 dark:text-neutral-200" }, Wn = { class: "mt-2 text-sm text-gray-500 dark:text-neutral-500" };
3171
+ function Jn(e, t, r, s, n, i) {
3172
+ return x(), _("div", zn, [
3173
+ m("div", null, [
3174
+ m("div", Mn, [
3175
+ t[0] || (t[0] = Ye('<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)),
3176
+ m("div", qn, [
3177
+ m("p", Hn, E(r.title), 1),
3178
+ m("p", Wn, E(r.text), 1)
3213
3179
  ])
3214
3180
  ])
3215
3181
  ])
3216
3182
  ]);
3217
3183
  }
3218
- const li = /* @__PURE__ */ O(ti, [["render", ai]]), ci = {}, ui = {
3184
+ const Kn = /* @__PURE__ */ R(In, [["render", Jn]]), Xn = {}, Gn = {
3219
3185
  class: "flex-shrink-0 size-3.5",
3220
3186
  xmlns: "http://www.w3.org/2000/svg",
3221
3187
  width: "22",
@@ -3227,12 +3193,12 @@ const li = /* @__PURE__ */ O(ti, [["render", ai]]), ci = {}, ui = {
3227
3193
  "stroke-linecap": "round",
3228
3194
  "stroke-linejoin": "round"
3229
3195
  };
3230
- function di(e, t) {
3231
- return x(), _("svg", ui, [...t[0] || (t[0] = [
3232
- mt('<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)
3196
+ function Qn(e, t) {
3197
+ return x(), _("svg", Gn, [...t[0] || (t[0] = [
3198
+ Ye('<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)
3233
3199
  ])]);
3234
3200
  }
3235
- const fi = /* @__PURE__ */ O(ci, [["render", di]]), hi = {}, pi = {
3201
+ const Zn = /* @__PURE__ */ R(Xn, [["render", Qn]]), Yn = {}, ei = {
3236
3202
  xmlns: "http://www.w3.org/2000/svg",
3237
3203
  viewBox: "0 0 24 24",
3238
3204
  fill: "none",
@@ -3242,19 +3208,19 @@ const fi = /* @__PURE__ */ O(ci, [["render", di]]), hi = {}, pi = {
3242
3208
  "stroke-linejoin": "round",
3243
3209
  class: "icon icon-tabler icons-tabler-outline icon-tabler-refresh"
3244
3210
  };
3245
- function mi(e, t) {
3246
- return x(), _("svg", pi, [...t[0] || (t[0] = [
3247
- g("path", {
3211
+ function ti(e, t) {
3212
+ return x(), _("svg", ei, [...t[0] || (t[0] = [
3213
+ m("path", {
3248
3214
  stroke: "none",
3249
3215
  d: "M0 0h24v24H0z",
3250
3216
  fill: "none"
3251
3217
  }, null, -1),
3252
- g("path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" }, null, -1),
3253
- g("path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }, null, -1)
3218
+ m("path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4" }, null, -1),
3219
+ m("path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4" }, null, -1)
3254
3220
  ])]);
3255
3221
  }
3256
- const gi = /* @__PURE__ */ O(hi, [["render", mi]]), bi = {
3257
- components: { filterIcon: fi, refreshIcon: gi },
3222
+ const ri = /* @__PURE__ */ R(Yn, [["render", ti]]), si = {
3223
+ components: { filterIcon: Zn, refreshIcon: ri },
3258
3224
  props: ["filterScheme"],
3259
3225
  emits: ["filters:changed"],
3260
3226
  data() {
@@ -3281,8 +3247,8 @@ const gi = /* @__PURE__ */ O(hi, [["render", mi]]), bi = {
3281
3247
  this.isFilterVisible = !this.isFilterVisible;
3282
3248
  },
3283
3249
  handleFilterChange(e) {
3284
- var t, s;
3285
- this.filters = e, this.activeFilters = (s = (t = this.$refs) == null ? void 0 : t.filter) == null ? void 0 : s.activeFilters, this.$emit("filters:changed", this.filters);
3250
+ var t, r;
3251
+ this.filters = e, this.activeFilters = (r = (t = this.$refs) == null ? void 0 : t.filter) == null ? void 0 : r.activeFilters, this.$emit("filters:changed", this.filters);
3286
3252
  },
3287
3253
  resetFilters() {
3288
3254
  this.$refs.filter && this.$refs.filter.clearAll(), this.isFilterVisible = !1, this.$emit("filters:changed", ""), this.activeFilters = null;
@@ -3291,17 +3257,17 @@ const gi = /* @__PURE__ */ O(hi, [["render", mi]]), bi = {
3291
3257
  this.isFilterVisible && e.classList.contains("filter-container") && (this.isFilterVisible = !1);
3292
3258
  }
3293
3259
  }
3294
- }, wi = { class: "flex items-center" }, yi = {
3260
+ }, ni = { class: "flex items-center" }, ii = {
3295
3261
  key: 0,
3296
3262
  class: "font-medium text-[10px] min-w-[16px] py-0.5 px-[5px] bg-gray-800 text-white leading-3 rounded-full"
3297
3263
  };
3298
- function xi(e, t, s, r, n, i) {
3299
- const o = I("filterIcon"), a = I("VsFilterList");
3300
- return x(), _("div", wi, [
3301
- s.filterScheme ? (x(), M(a, {
3264
+ function oi(e, t, r, s, n, i) {
3265
+ const o = j("filterIcon"), a = j("VsFilterList");
3266
+ return x(), _("div", ni, [
3267
+ r.filterScheme ? (x(), I(a, {
3302
3268
  key: 0,
3303
3269
  ref: "filter",
3304
- scheme: s.filterScheme,
3270
+ scheme: r.filterScheme,
3305
3271
  closeFilterBtn: !0,
3306
3272
  onFilterClose: t[1] || (t[1] = (f) => n.isFilterVisible = !1),
3307
3273
  layout: "default",
@@ -3314,47 +3280,47 @@ function xi(e, t, s, r, n, i) {
3314
3280
  background: !0,
3315
3281
  onFilterChange: i.handleFilterChange
3316
3282
  }, {
3317
- button: Jt(() => [
3318
- g("button", {
3283
+ button: $t(() => [
3284
+ m("button", {
3319
3285
  type: "button",
3320
3286
  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",
3321
3287
  onClick: t[0] || (t[0] = (...f) => i.toggleFilterShown && i.toggleFilterShown(...f))
3322
3288
  }, [
3323
- Ue(o),
3324
- t[2] || (t[2] = pt(" Фільтри ", -1)),
3325
- i.activeFiltersCount >= 1 ? (x(), _("span", yi, E(i.activeFiltersCount), 1)) : N("", !0)
3289
+ Oe(o),
3290
+ t[2] || (t[2] = Ze(" Фільтри ", -1)),
3291
+ i.activeFiltersCount >= 1 ? (x(), _("span", ii, E(i.activeFiltersCount), 1)) : $("", !0)
3326
3292
  ])
3327
3293
  ]),
3328
3294
  _: 1
3329
- }, 8, ["scheme", "token", "onFilterChange"])) : N("", !0)
3295
+ }, 8, ["scheme", "token", "onFilterChange"])) : $("", !0)
3330
3296
  ]);
3331
3297
  }
3332
- const _i = /* @__PURE__ */ O(bi, [["render", xi]]), Di = {
3298
+ const ai = /* @__PURE__ */ R(si, [["render", oi]]), li = {
3333
3299
  props: ["dashboardData", "filters"],
3334
- components: { VsFilterHeader: _i }
3335
- }, Si = { class: "bg-white px-5 flex gap-4 h-[90px] border border-gray-200 mt-2 rounded-xl mb-2 pt-[3px] justify-between items-center" }, ki = { class: "grow" }, vi = { class: "text-lg font-semibold text-stone-800 dark:text-neutral-200" }, Ei = {
3300
+ components: { VsFilterHeader: ai }
3301
+ }, ci = { class: "bg-white px-5 flex gap-4 h-[90px] border border-gray-200 mt-2 rounded-xl mb-2 pt-[3px] justify-between items-center" }, ui = { class: "grow" }, di = { class: "text-lg font-semibold text-stone-800 dark:text-neutral-200" }, fi = {
3336
3302
  type: "button",
3337
3303
  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",
3338
3304
  "data-clipboard-target": "#hs-erc",
3339
3305
  "data-clipboard-action": "copy",
3340
3306
  "data-clipboard-success-text": "Copied"
3341
3307
  };
3342
- function Ci(e, t, s, r, n, i) {
3308
+ function hi(e, t, r, s, n, i) {
3343
3309
  var a, f;
3344
- const o = I("VsFilterHeader");
3345
- return x(), _("div", Si, [
3346
- g("div", ki, [
3347
- g("h1", vi, E((a = s.dashboardData) == null ? void 0 : a.title), 1),
3348
- g("button", Ei, E((f = s.dashboardData) == null ? void 0 : f.description), 1)
3310
+ const o = j("VsFilterHeader");
3311
+ return x(), _("div", ci, [
3312
+ m("div", ui, [
3313
+ m("h1", di, E((a = r.dashboardData) == null ? void 0 : a.title), 1),
3314
+ m("button", fi, E((f = r.dashboardData) == null ? void 0 : f.description), 1)
3349
3315
  ]),
3350
- Ue(o, {
3351
- filterScheme: s.filters,
3352
- "onFilters:changed": t[0] || (t[0] = (d) => e.$emit("filters:changed", d))
3316
+ Oe(o, {
3317
+ filterScheme: r.filters,
3318
+ "onFilters:changed": t[0] || (t[0] = (u) => e.$emit("filters:changed", u))
3353
3319
  }, null, 8, ["filterScheme"])
3354
3320
  ]);
3355
3321
  }
3356
- const Oi = /* @__PURE__ */ O(Di, [["render", Ci]]), Ri = {
3357
- components: { VsWidget: ei, VsNewNodata: li, VsHeader: Oi },
3322
+ const pi = /* @__PURE__ */ R(li, [["render", hi]]), mi = {
3323
+ components: { VsWidget: Vn, VsNewNodata: Kn, VsHeader: pi },
3358
3324
  props: ["id", "prefix"],
3359
3325
  data() {
3360
3326
  return {
@@ -3393,49 +3359,49 @@ const Oi = /* @__PURE__ */ O(Di, [["render", Ci]]), Ri = {
3393
3359
  }[t] || "w-full";
3394
3360
  },
3395
3361
  async filterHandler(e) {
3396
- var s;
3362
+ var r;
3397
3363
  this.filterURl = "";
3398
3364
  let t = "&filter=";
3399
- (s = e == null ? void 0 : e.url) != null && s.length && (e.url.split("|").forEach((n) => {
3365
+ (r = e == null ? void 0 : e.url) != null && r.length && (e.url.split("|").forEach((n) => {
3400
3366
  const i = n.split("=");
3401
3367
  t += `${i[0]}=${i[1]}`;
3402
3368
  }), this.filterURl += t);
3403
3369
  }
3404
3370
  }
3405
- }, $i = { class: "w-full pb-8 overflow-y-auto" }, Ti = { class: "grid flex-grow w-full grid-cols-12 gap-4 h-fit" };
3406
- function Ni(e, t, s, r, n, i) {
3407
- var d, u, h;
3408
- const o = I("VsHeader"), a = I("VsNewNodata"), f = I("VsWidget");
3409
- return x(), _("div", $i, [
3410
- g("div", null, [
3411
- (d = n.dashboardData) != null && d.filters ? (x(), M(o, {
3371
+ }, gi = { class: "w-full pb-8 overflow-y-auto" }, bi = { class: "grid flex-grow w-full grid-cols-12 gap-4 h-fit" };
3372
+ function wi(e, t, r, s, n, i) {
3373
+ var u, c, h;
3374
+ const o = j("VsHeader"), a = j("VsNewNodata"), f = j("VsWidget");
3375
+ return x(), _("div", gi, [
3376
+ m("div", null, [
3377
+ (u = n.dashboardData) != null && u.filters ? (x(), I(o, {
3412
3378
  key: 0,
3413
- filters: (u = n.dashboardData) == null ? void 0 : u.filters,
3379
+ filters: (c = n.dashboardData) == null ? void 0 : c.filters,
3414
3380
  dashboardData: n.dashboardData,
3415
3381
  "onFilters:changed": t[0] || (t[0] = (w) => i.filterHandler(w))
3416
- }, null, 8, ["filters", "dashboardData"])) : N("", !0)
3382
+ }, null, 8, ["filters", "dashboardData"])) : $("", !0)
3417
3383
  ]),
3418
- g("div", Ti, [
3419
- n.error || !n.dashboardData ? (x(), M(a, {
3384
+ m("div", bi, [
3385
+ n.error || !n.dashboardData ? (x(), I(a, {
3420
3386
  key: 0,
3421
3387
  class: "col-span-12"
3422
- })) : N("", !0),
3423
- (x(!0), _(P, null, U(((h = n.dashboardData) == null ? void 0 : h.panels) || [], (w, b) => {
3424
- var c;
3388
+ })) : $("", !0),
3389
+ (x(!0), _(F, null, P(((h = n.dashboardData) == null ? void 0 : h.panels) || [], (w, g) => {
3390
+ var d;
3425
3391
  return x(), _("div", {
3426
- key: b,
3427
- class: Q([`col-span-${w.col || 12}`, "flex flex-col gap-[10px]"])
3392
+ key: g,
3393
+ class: J([`col-span-${w.col || 12}`, "flex flex-col gap-[10px]"])
3428
3394
  }, [
3429
- (c = w.widgets) != null && c.length ? (x(!0), _(P, { key: 0 }, U(w.widgets, (p) => (x(), M(f, {
3395
+ (d = w.widgets) != null && d.length ? (x(!0), _(F, { key: 0 }, P(w.widgets, (p) => (x(), I(f, {
3430
3396
  key: p,
3431
- dashboard: s.id,
3397
+ dashboard: r.id,
3432
3398
  widget: p,
3433
3399
  "dashboard-widgets": n.dashboardData.widgets,
3434
3400
  "filter-u-rl": n.filterURl
3435
- }, null, 8, ["dashboard", "widget", "dashboard-widgets", "filter-u-rl"]))), 128)) : (x(), M(f, {
3401
+ }, null, 8, ["dashboard", "widget", "dashboard-widgets", "filter-u-rl"]))), 128)) : (x(), I(f, {
3436
3402
  key: 1,
3437
3403
  class: "flex flex-col",
3438
- dashboard: s.id,
3404
+ dashboard: r.id,
3439
3405
  widget: w.widget,
3440
3406
  "dashboard-widgets": n.dashboardData.widgets,
3441
3407
  "filter-u-rl": n.filterURl
@@ -3445,9 +3411,9 @@ function Ni(e, t, s, r, n, i) {
3445
3411
  ])
3446
3412
  ]);
3447
3413
  }
3448
- const bo = /* @__PURE__ */ O(Ri, [["render", Ni]]), Fi = {
3414
+ const ro = /* @__PURE__ */ R(mi, [["render", wi]]), yi = {
3449
3415
  name: "VsPivotTable",
3450
- mixins: [W],
3416
+ mixins: [M],
3451
3417
  data() {
3452
3418
  return {
3453
3419
  values: null,
@@ -3470,46 +3436,46 @@ const bo = /* @__PURE__ */ O(Ri, [["render", Ni]]), Fi = {
3470
3436
  const e = Array.from(
3471
3437
  new Set(this.sourceData.map((t) => t[this.dimensions[0]]))
3472
3438
  );
3473
- this.dimensions[0].includes("date") ? this.xs = e.map((t) => Be(t)) : this.xs = [...e], this.products = this.dimensions.filter((t, s) => s != 0), this.values = this.products.map((t, s) => ({
3439
+ this.dimensions[0].includes("date") ? this.xs = e.map((t) => Te(t)) : this.xs = [...e], this.products = this.dimensions.filter((t, r) => r != 0), this.values = this.products.map((t, r) => ({
3474
3440
  name: t,
3475
- data: this.sourceData.filter((r) => parseFloat(r[t])).map((r) => z(parseFloat(r[t])))
3441
+ data: this.sourceData.filter((s) => parseFloat(s[t])).map((s) => V(parseFloat(s[t])))
3476
3442
  }));
3477
3443
  } catch (e) {
3478
3444
  console.error(e);
3479
3445
  }
3480
3446
  }
3481
3447
  }
3482
- }, Ai = { class: "flex flex-col h-full p-5 space-y-4 rounded-xl custom-scrollbar" }, Pi = { 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" }, Li = { class: "inline-block min-w-full align-middle" }, Ui = { class: "min-w-full divide-y divide-gray-200" }, Bi = { class: "space-x-2" }, ji = {
3448
+ }, xi = { class: "flex flex-col h-full p-5 space-y-4 rounded-xl custom-scrollbar" }, _i = { 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" }, Di = { class: "inline-block min-w-full align-middle" }, ki = { class: "min-w-full divide-y divide-gray-200" }, Si = { class: "space-x-2" }, vi = {
3483
3449
  scope: "col",
3484
3450
  class: "xl:min-w-[120px] min-w-48"
3485
- }, Vi = { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" }, Ii = { class: "divide-y divide-gray-200 text-[12px]" }, zi = { class: "py-3 size-px whitespace-nowrap" }, Mi = { class: "flex items-center gap-x-3" }, Hi = { class: "font-medium text-gray-800" }, qi = { class: "py-3 size-px whitespace-nowrap" }, Wi = { class: "text-gray-600" };
3486
- function Ji(e, t, s, r, n, i) {
3487
- return x(), _("div", Ai, [
3488
- g("div", Pi, [
3489
- g("div", Li, [
3490
- g("table", Ui, [
3491
- g("thead", null, [
3492
- g("tr", Bi, [
3493
- t[0] || (t[0] = g("th", {
3451
+ }, Ei = { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" }, Ci = { class: "divide-y divide-gray-200 text-[12px]" }, Ri = { class: "py-3 size-px whitespace-nowrap" }, Oi = { class: "flex items-center gap-x-3" }, Ti = { class: "font-medium text-gray-800" }, $i = { class: "py-3 size-px whitespace-nowrap" }, Ni = { class: "text-gray-600" };
3452
+ function Ai(e, t, r, s, n, i) {
3453
+ return x(), _("div", xi, [
3454
+ m("div", _i, [
3455
+ m("div", Di, [
3456
+ m("table", ki, [
3457
+ m("thead", null, [
3458
+ m("tr", Si, [
3459
+ t[0] || (t[0] = m("th", {
3494
3460
  scope: "col",
3495
3461
  class: "min-w-[200px]"
3496
3462
  }, [
3497
- g("div", { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" })
3463
+ m("div", { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" })
3498
3464
  ], -1)),
3499
- (x(!0), _(P, null, U(n.xs, (o) => (x(), _("th", ji, [
3500
- g("div", Vi, E(o), 1)
3465
+ (x(!0), _(F, null, P(n.xs, (o) => (x(), _("th", vi, [
3466
+ m("div", Ei, E(o), 1)
3501
3467
  ]))), 256))
3502
3468
  ])
3503
3469
  ]),
3504
- (x(!0), _(P, null, U(n.values, (o) => (x(), _("tbody", Ii, [
3505
- g("tr", null, [
3506
- g("td", zi, [
3507
- g("div", Mi, [
3508
- g("span", Hi, E(o.name), 1)
3470
+ (x(!0), _(F, null, P(n.values, (o) => (x(), _("tbody", Ci, [
3471
+ m("tr", null, [
3472
+ m("td", Ri, [
3473
+ m("div", Oi, [
3474
+ m("span", Ti, E(o.name), 1)
3509
3475
  ])
3510
3476
  ]),
3511
- (x(!0), _(P, null, U(n.xs, (a, f) => (x(), _("td", qi, [
3512
- g("span", Wi, E(o.data[f]), 1)
3477
+ (x(!0), _(F, null, P(n.xs, (a, f) => (x(), _("td", $i, [
3478
+ m("span", Ni, E(o.data[f]), 1)
3513
3479
  ]))), 256))
3514
3480
  ])
3515
3481
  ]))), 256))
@@ -3518,26 +3484,26 @@ function Ji(e, t, s, r, n, i) {
3518
3484
  ])
3519
3485
  ]);
3520
3486
  }
3521
- const Ki = /* @__PURE__ */ O(Fi, [["render", Ji]]), Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3487
+ const Fi = /* @__PURE__ */ R(yi, [["render", Ai]]), Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3522
3488
  __proto__: null,
3523
- default: Ki
3489
+ default: Fi
3524
3490
  }, Symbol.toStringTag, { value: "Module" }));
3525
3491
  export {
3526
- Or as V,
3527
- O as _,
3528
- ie as a,
3529
- Be as b,
3530
- W as c,
3531
- z as d,
3492
+ ps as V,
3493
+ R as _,
3494
+ Y as a,
3495
+ Te as b,
3496
+ M as c,
3497
+ V as d,
3532
3498
  v as e,
3533
- Qi as f,
3534
- Br as g,
3535
- Mr as h,
3536
- on as i,
3537
- yn as j,
3538
- On as k,
3539
- Ki as l,
3540
- bo as m,
3541
- ei as n,
3542
- Fr as v
3499
+ Bi as f,
3500
+ Ss as g,
3501
+ Os as h,
3502
+ Hs as i,
3503
+ nn as j,
3504
+ pn as k,
3505
+ Fi as l,
3506
+ ro as m,
3507
+ Vn as n,
3508
+ ys as v
3543
3509
  };