@ck-ui/component-library 0.3.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DropdownFooter-Dm6aLDx8.js +89 -0
- package/dist/IconSlot-CPQsGPB-.js +33 -0
- package/dist/{OptionList-BNaH2PnX.js → OptionList-DN1xZbnV.js} +29 -29
- package/dist/assets/DropdownFooter-DjdPf69A.css +1 -0
- package/dist/assets/IconSlot-D8WWEHKb.css +1 -0
- package/dist/assets/index-B81zpOpq.css +1 -0
- package/dist/assets/index-BXwGxK7I.css +1 -0
- package/dist/assets/index-BZgvXFWW.css +1 -0
- package/dist/assets/index-BoQKDmZt.css +1 -0
- package/dist/assets/index-Cdmws__2.css +1 -0
- package/dist/assets/index-CtR-jzNi.css +1 -0
- package/dist/assets/index-PKpDB4Cl.css +1 -0
- package/dist/assets/index-UphWJR2V.css +1 -0
- package/dist/assets/index-i-aBFBOq.css +1 -0
- package/dist/assets/styles-Bj-7zn37.css +1 -0
- package/dist/assets/styles-CZCmGNUn.css +1 -0
- package/dist/assets/styles-DLJzdWsF.css +1 -0
- package/dist/assets/{styles-CbbBUzsN.css → styles-DngCqCGW.css} +1 -1
- package/dist/assets/styles-O-5pBCak.css +1 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.js +53 -47
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/index.js +1 -1
- package/dist/components/CKCheckbox/index.d.ts.map +1 -1
- package/dist/components/CKCheckbox/index.js +22 -21
- package/dist/components/CardBox/index.js +18 -18
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts +3 -1
- package/dist/components/CostComparatorTable/_helpers/CostCell.d.ts.map +1 -1
- package/dist/components/CostComparatorTable/_helpers/CostCell.js +30 -28
- package/dist/components/CostComparatorTable/_helpers/HeaderCheckbox.js +1 -1
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts +7 -0
- package/dist/components/CostComparatorTable/_types/costComparatorTable.types.d.ts.map +1 -1
- package/dist/components/CostComparatorTable/index.d.ts +1 -1
- package/dist/components/CostComparatorTable/index.d.ts.map +1 -1
- package/dist/components/CostComparatorTable/index.js +93 -85
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1685 -1651
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts +10 -0
- package/dist/components/DateRangePicker/_types/dateRangePicker.types.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +141 -141
- package/dist/components/FusionChart/_config/helpers.js +2 -2
- package/dist/components/FusionChart/_helpers/doughnutHelper.d.ts.map +1 -1
- package/dist/components/FusionChart/_helpers/doughnutHelper.js +56 -43
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +356 -340
- package/dist/components/Loader/_types/loader.types.d.ts +10 -0
- package/dist/components/Loader/_types/loader.types.d.ts.map +1 -0
- package/dist/components/Loader/_types/loader.types.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/Loader/index.js +37 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts +27 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.d.ts.map +1 -0
- package/dist/components/MAVDropdown/_types/mavDropdown.types.js +1 -0
- package/dist/components/MAVDropdown/index.d.ts +6 -0
- package/dist/components/MAVDropdown/index.d.ts.map +1 -0
- package/dist/components/MAVDropdown/index.js +162 -0
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +33 -33
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +22 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -0
- package/dist/components/MultiSelect/SimpleMultiSelect.js +221 -0
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.js +20 -19
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +39 -34
- package/dist/components/MultiSelect/_types/type.d.ts +4 -0
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +148 -145
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts +28 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/_types/profileDropdown.types.js +13 -0
- package/dist/components/ProfileDropdown/constants.d.ts +3 -0
- package/dist/components/ProfileDropdown/constants.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/constants.js +8 -0
- package/dist/components/ProfileDropdown/index.d.ts +6 -0
- package/dist/components/ProfileDropdown/index.d.ts.map +1 -0
- package/dist/components/ProfileDropdown/index.js +154 -0
- package/dist/components/RadioButton/index.js +34 -34
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts +1 -0
- package/dist/components/RadioGroup/_types/radioGroup.types.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.d.ts +1 -1
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +19 -17
- package/dist/components/Search/index.js +35 -35
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts +2 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +7 -3
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts +2 -2
- package/dist/components/SingleSelectDropdown/_types/singleSelectDropdown.types.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts +1 -1
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.js +61 -57
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts +1 -0
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/ColumnConfig.js +49 -47
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.js +393 -385
- package/dist/components/Table/_helpers/ExpandableRow/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ExpandableRow/index.js +30 -20
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +2 -2
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/GroupedHeader/index.js +79 -87
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.js +43 -42
- package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableRows.js +288 -283
- package/dist/components/Table/_types/table.types.d.ts +9 -3
- package/dist/components/Table/_types/table.types.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.d.ts +3 -0
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.js +73 -23
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +388 -358
- package/dist/components/Typography/index.js +30 -30
- package/dist/main.d.ts +6 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +97 -85
- package/dist/styles.module-BXby6f8d.js +16 -0
- package/dist/styles.module-DakCndIP.js +42 -0
- package/package.json +1 -1
- package/dist/DropdownFooter-C20yRiDR.js +0 -84
- package/dist/IconSlot-CFKmSU2_.js +0 -33
- package/dist/assets/DropdownFooter-C7Cml53c.css +0 -1
- package/dist/assets/IconSlot-CLpdZgmb.css +0 -1
- package/dist/assets/index-BQ0m7FKV.css +0 -1
- package/dist/assets/index-BmQOtMhS.css +0 -1
- package/dist/assets/index-CaWXKQ7j.css +0 -1
- package/dist/assets/index-CiQd_iRw.css +0 -1
- package/dist/assets/index-Dudb2XKF.css +0 -1
- package/dist/assets/index-w7AdSPwF.css +0 -1
- package/dist/assets/styles-BA66-SUu.css +0 -1
- package/dist/assets/styles-BTZL03H2.css +0 -1
- package/dist/assets/styles-CflOKRvX.css +0 -1
- package/dist/assets/styles-D8sahtFb.css +0 -1
- package/dist/styles.module-CCyijXTv.js +0 -16
- package/dist/styles.module-CmWIIYpK.js +0 -41
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as Fe, jsx as $ } from "react/jsx-runtime";
|
|
2
2
|
import Je, { useState as de, useRef as Qe, useCallback as he, useMemo as ge, useEffect as ve } from "react";
|
|
3
3
|
import { g as Ge } from "../../_commonjsHelpers-C6fGbg64.js";
|
|
4
4
|
import { buildChartConfig as Xe } from "./_config/builders.js";
|
|
5
5
|
import { getOnRender as ze, getChartEvents as Ze } from "./_config/events.js";
|
|
6
|
-
import { EXTENDED_PALETTE as ee, STACKED_AREA_PALETTE as
|
|
6
|
+
import { EXTENDED_PALETTE as ee, STACKED_AREA_PALETTE as Ne } from "./_constant/constants.js";
|
|
7
7
|
import { mergeClasses as xe } from "../../utils/mergeClasses.js";
|
|
8
|
-
import '../../assets/index-
|
|
8
|
+
import '../../assets/index-B81zpOpq.css';var ae = {}, ie = {}, F = {}, me;
|
|
9
9
|
function Ye() {
|
|
10
|
-
return
|
|
10
|
+
return me || (me = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.default = "ffffffff-ffff-ffff-ffff-ffffffffffff"), F;
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var N = {}, pe;
|
|
13
13
|
function Be() {
|
|
14
|
-
return
|
|
14
|
+
return pe || (pe = 1, Object.defineProperty(N, "__esModule", { value: !0 }), N.default = "00000000-0000-0000-0000-000000000000"), N;
|
|
15
15
|
}
|
|
16
16
|
var x = {}, H = {}, W = {}, ye;
|
|
17
17
|
function et() {
|
|
@@ -22,8 +22,8 @@ function re() {
|
|
|
22
22
|
if (_e) return H;
|
|
23
23
|
_e = 1, Object.defineProperty(H, "__esModule", { value: !0 });
|
|
24
24
|
const r = et();
|
|
25
|
-
function l(
|
|
26
|
-
return typeof
|
|
25
|
+
function l(v) {
|
|
26
|
+
return typeof v == "string" && r.default.test(v);
|
|
27
27
|
}
|
|
28
28
|
return H.default = l, H;
|
|
29
29
|
}
|
|
@@ -32,40 +32,40 @@ function ne() {
|
|
|
32
32
|
if (be) return x;
|
|
33
33
|
be = 1, Object.defineProperty(x, "__esModule", { value: !0 });
|
|
34
34
|
const r = re();
|
|
35
|
-
function l(
|
|
36
|
-
if (!(0, r.default)(
|
|
35
|
+
function l(v) {
|
|
36
|
+
if (!(0, r.default)(v))
|
|
37
37
|
throw TypeError("Invalid UUID");
|
|
38
38
|
let g;
|
|
39
|
-
return Uint8Array.of((g = parseInt(
|
|
39
|
+
return Uint8Array.of((g = parseInt(v.slice(0, 8), 16)) >>> 24, g >>> 16 & 255, g >>> 8 & 255, g & 255, (g = parseInt(v.slice(9, 13), 16)) >>> 8, g & 255, (g = parseInt(v.slice(14, 18), 16)) >>> 8, g & 255, (g = parseInt(v.slice(19, 23), 16)) >>> 8, g & 255, (g = parseInt(v.slice(24, 36), 16)) / 1099511627776 & 255, g / 4294967296 & 255, g >>> 24 & 255, g >>> 16 & 255, g >>> 8 & 255, g & 255);
|
|
40
40
|
}
|
|
41
41
|
return x.default = l, x;
|
|
42
42
|
}
|
|
43
|
-
var
|
|
43
|
+
var L = {}, Ce;
|
|
44
44
|
function P() {
|
|
45
|
-
if (
|
|
46
|
-
|
|
45
|
+
if (Ce) return L;
|
|
46
|
+
Ce = 1, Object.defineProperty(L, "__esModule", { value: !0 }), L.unsafeStringify = void 0;
|
|
47
47
|
const r = re(), l = [];
|
|
48
48
|
for (let e = 0; e < 256; ++e)
|
|
49
49
|
l.push((e + 256).toString(16).slice(1));
|
|
50
|
-
function
|
|
50
|
+
function v(e, i = 0) {
|
|
51
51
|
return (l[e[i + 0]] + l[e[i + 1]] + l[e[i + 2]] + l[e[i + 3]] + "-" + l[e[i + 4]] + l[e[i + 5]] + "-" + l[e[i + 6]] + l[e[i + 7]] + "-" + l[e[i + 8]] + l[e[i + 9]] + "-" + l[e[i + 10]] + l[e[i + 11]] + l[e[i + 12]] + l[e[i + 13]] + l[e[i + 14]] + l[e[i + 15]]).toLowerCase();
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
L.unsafeStringify = v;
|
|
54
54
|
function g(e, i = 0) {
|
|
55
|
-
const a =
|
|
55
|
+
const a = v(e, i);
|
|
56
56
|
if (!(0, r.default)(a))
|
|
57
57
|
throw TypeError("Stringified UUID is invalid");
|
|
58
58
|
return a;
|
|
59
59
|
}
|
|
60
|
-
return
|
|
60
|
+
return L.default = g, L;
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var q = {}, K = {}, Oe;
|
|
63
63
|
function ce() {
|
|
64
|
-
if (
|
|
65
|
-
|
|
64
|
+
if (Oe) return K;
|
|
65
|
+
Oe = 1, Object.defineProperty(K, "__esModule", { value: !0 });
|
|
66
66
|
let r;
|
|
67
67
|
const l = new Uint8Array(16);
|
|
68
|
-
function
|
|
68
|
+
function v() {
|
|
69
69
|
if (!r) {
|
|
70
70
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
71
71
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
@@ -73,60 +73,60 @@ function ce() {
|
|
|
73
73
|
}
|
|
74
74
|
return r(l);
|
|
75
75
|
}
|
|
76
|
-
return K.default =
|
|
76
|
+
return K.default = v, K;
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Se;
|
|
79
79
|
function He() {
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
const r = ce(), l = P(),
|
|
80
|
+
if (Se) return q;
|
|
81
|
+
Se = 1, Object.defineProperty(q, "__esModule", { value: !0 }), q.updateV1State = void 0;
|
|
82
|
+
const r = ce(), l = P(), v = {};
|
|
83
83
|
function g(a, y, u) {
|
|
84
84
|
let f;
|
|
85
|
-
const
|
|
85
|
+
const m = a?._v6 ?? !1;
|
|
86
86
|
if (a) {
|
|
87
|
-
const
|
|
88
|
-
|
|
87
|
+
const O = Object.keys(a);
|
|
88
|
+
O.length === 1 && O[0] === "_v6" && (a = void 0);
|
|
89
89
|
}
|
|
90
90
|
if (a)
|
|
91
91
|
f = i(a.random ?? a.rng?.() ?? (0, r.default)(), a.msecs, a.nsecs, a.clockseq, a.node, y, u);
|
|
92
92
|
else {
|
|
93
|
-
const
|
|
94
|
-
e(
|
|
93
|
+
const O = Date.now(), t = (0, r.default)();
|
|
94
|
+
e(v, O, t), f = i(t, v.msecs, v.nsecs, m ? void 0 : v.clockseq, m ? void 0 : v.node, y, u);
|
|
95
95
|
}
|
|
96
96
|
return y ?? (0, l.unsafeStringify)(f);
|
|
97
97
|
}
|
|
98
98
|
function e(a, y, u) {
|
|
99
99
|
return a.msecs ??= -1 / 0, a.nsecs ??= 0, y === a.msecs ? (a.nsecs++, a.nsecs >= 1e4 && (a.node = void 0, a.nsecs = 0)) : y > a.msecs ? a.nsecs = 0 : y < a.msecs && (a.node = void 0), a.node || (a.node = u.slice(10, 16), a.node[0] |= 1, a.clockseq = (u[8] << 8 | u[9]) & 16383), a.msecs = y, a;
|
|
100
100
|
}
|
|
101
|
-
|
|
102
|
-
function i(a, y, u, f,
|
|
101
|
+
q.updateV1State = e;
|
|
102
|
+
function i(a, y, u, f, m, O, t = 0) {
|
|
103
103
|
if (a.length < 16)
|
|
104
104
|
throw new Error("Random bytes length must be >= 16");
|
|
105
|
-
if (!
|
|
106
|
-
|
|
107
|
-
else if (t < 0 || t + 16 >
|
|
105
|
+
if (!O)
|
|
106
|
+
O = new Uint8Array(16), t = 0;
|
|
107
|
+
else if (t < 0 || t + 16 > O.length)
|
|
108
108
|
throw new RangeError(`UUID byte range ${t}:${t + 15} is out of buffer bounds`);
|
|
109
|
-
y ??= Date.now(), u ??= 0, f ??= (a[8] << 8 | a[9]) & 16383,
|
|
110
|
-
const
|
|
111
|
-
|
|
109
|
+
y ??= Date.now(), u ??= 0, f ??= (a[8] << 8 | a[9]) & 16383, m ??= a.slice(10, 16), y += 122192928e5;
|
|
110
|
+
const S = ((y & 268435455) * 1e4 + u) % 4294967296;
|
|
111
|
+
O[t++] = S >>> 24 & 255, O[t++] = S >>> 16 & 255, O[t++] = S >>> 8 & 255, O[t++] = S & 255;
|
|
112
112
|
const A = y / 4294967296 * 1e4 & 268435455;
|
|
113
|
-
|
|
113
|
+
O[t++] = A >>> 8 & 255, O[t++] = A & 255, O[t++] = A >>> 24 & 15 | 16, O[t++] = A >>> 16 & 255, O[t++] = f >>> 8 | 128, O[t++] = f & 255;
|
|
114
114
|
for (let s = 0; s < 6; ++s)
|
|
115
|
-
|
|
116
|
-
return
|
|
115
|
+
O[t++] = m[s];
|
|
116
|
+
return O;
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return q.default = g, q;
|
|
119
119
|
}
|
|
120
|
-
var J = {},
|
|
120
|
+
var J = {}, je;
|
|
121
121
|
function We() {
|
|
122
|
-
if (
|
|
123
|
-
|
|
122
|
+
if (je) return J;
|
|
123
|
+
je = 1, Object.defineProperty(J, "__esModule", { value: !0 });
|
|
124
124
|
const r = ne(), l = P();
|
|
125
|
-
function
|
|
125
|
+
function v(e) {
|
|
126
126
|
const i = typeof e == "string" ? (0, r.default)(e) : e, a = g(i);
|
|
127
127
|
return typeof e == "string" ? (0, l.unsafeStringify)(a) : a;
|
|
128
128
|
}
|
|
129
|
-
J.default =
|
|
129
|
+
J.default = v;
|
|
130
130
|
function g(e) {
|
|
131
131
|
return Uint8Array.of((e[6] & 15) << 4 | e[7] >> 4 & 15, (e[7] & 15) << 4 | (e[4] & 240) >> 4, (e[4] & 15) << 4 | (e[5] & 240) >> 4, (e[5] & 15) << 4 | (e[0] & 240) >> 4, (e[0] & 15) << 4 | (e[1] & 240) >> 4, (e[1] & 15) << 4 | (e[2] & 240) >> 4, 96 | e[2] & 15, e[3], e[8], e[9], e[10], e[11], e[12], e[13], e[14], e[15]);
|
|
132
132
|
}
|
|
@@ -137,57 +137,57 @@ function tt() {
|
|
|
137
137
|
if (Ae) return Q;
|
|
138
138
|
Ae = 1, Object.defineProperty(Q, "__esModule", { value: !0 });
|
|
139
139
|
function r(t) {
|
|
140
|
-
const
|
|
140
|
+
const S = e(t), A = g(S, t.length * 8);
|
|
141
141
|
return l(A);
|
|
142
142
|
}
|
|
143
143
|
function l(t) {
|
|
144
|
-
const
|
|
144
|
+
const S = new Uint8Array(t.length * 4);
|
|
145
145
|
for (let A = 0; A < t.length * 4; A++)
|
|
146
|
-
|
|
147
|
-
return
|
|
146
|
+
S[A] = t[A >> 2] >>> A % 4 * 8 & 255;
|
|
147
|
+
return S;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function v(t) {
|
|
150
150
|
return (t + 64 >>> 9 << 4) + 14 + 1;
|
|
151
151
|
}
|
|
152
|
-
function g(t,
|
|
153
|
-
const A = new Uint32Array(
|
|
154
|
-
A.set(t), A[
|
|
152
|
+
function g(t, S) {
|
|
153
|
+
const A = new Uint32Array(v(S)).fill(0);
|
|
154
|
+
A.set(t), A[S >> 5] |= 128 << S % 32, A[A.length - 1] = S, t = A;
|
|
155
155
|
let s = 1732584193, o = -271733879, n = -1732584194, c = 271733878;
|
|
156
|
-
for (let
|
|
157
|
-
const
|
|
158
|
-
s = u(s, o, n, c, t[
|
|
156
|
+
for (let p = 0; p < t.length; p += 16) {
|
|
157
|
+
const I = s, _ = o, b = n, w = c;
|
|
158
|
+
s = u(s, o, n, c, t[p], 7, -680876936), c = u(c, s, o, n, t[p + 1], 12, -389564586), n = u(n, c, s, o, t[p + 2], 17, 606105819), o = u(o, n, c, s, t[p + 3], 22, -1044525330), s = u(s, o, n, c, t[p + 4], 7, -176418897), c = u(c, s, o, n, t[p + 5], 12, 1200080426), n = u(n, c, s, o, t[p + 6], 17, -1473231341), o = u(o, n, c, s, t[p + 7], 22, -45705983), s = u(s, o, n, c, t[p + 8], 7, 1770035416), c = u(c, s, o, n, t[p + 9], 12, -1958414417), n = u(n, c, s, o, t[p + 10], 17, -42063), o = u(o, n, c, s, t[p + 11], 22, -1990404162), s = u(s, o, n, c, t[p + 12], 7, 1804603682), c = u(c, s, o, n, t[p + 13], 12, -40341101), n = u(n, c, s, o, t[p + 14], 17, -1502002290), o = u(o, n, c, s, t[p + 15], 22, 1236535329), s = f(s, o, n, c, t[p + 1], 5, -165796510), c = f(c, s, o, n, t[p + 6], 9, -1069501632), n = f(n, c, s, o, t[p + 11], 14, 643717713), o = f(o, n, c, s, t[p], 20, -373897302), s = f(s, o, n, c, t[p + 5], 5, -701558691), c = f(c, s, o, n, t[p + 10], 9, 38016083), n = f(n, c, s, o, t[p + 15], 14, -660478335), o = f(o, n, c, s, t[p + 4], 20, -405537848), s = f(s, o, n, c, t[p + 9], 5, 568446438), c = f(c, s, o, n, t[p + 14], 9, -1019803690), n = f(n, c, s, o, t[p + 3], 14, -187363961), o = f(o, n, c, s, t[p + 8], 20, 1163531501), s = f(s, o, n, c, t[p + 13], 5, -1444681467), c = f(c, s, o, n, t[p + 2], 9, -51403784), n = f(n, c, s, o, t[p + 7], 14, 1735328473), o = f(o, n, c, s, t[p + 12], 20, -1926607734), s = m(s, o, n, c, t[p + 5], 4, -378558), c = m(c, s, o, n, t[p + 8], 11, -2022574463), n = m(n, c, s, o, t[p + 11], 16, 1839030562), o = m(o, n, c, s, t[p + 14], 23, -35309556), s = m(s, o, n, c, t[p + 1], 4, -1530992060), c = m(c, s, o, n, t[p + 4], 11, 1272893353), n = m(n, c, s, o, t[p + 7], 16, -155497632), o = m(o, n, c, s, t[p + 10], 23, -1094730640), s = m(s, o, n, c, t[p + 13], 4, 681279174), c = m(c, s, o, n, t[p], 11, -358537222), n = m(n, c, s, o, t[p + 3], 16, -722521979), o = m(o, n, c, s, t[p + 6], 23, 76029189), s = m(s, o, n, c, t[p + 9], 4, -640364487), c = m(c, s, o, n, t[p + 12], 11, -421815835), n = m(n, c, s, o, t[p + 15], 16, 530742520), o = m(o, n, c, s, t[p + 2], 23, -995338651), s = O(s, o, n, c, t[p], 6, -198630844), c = O(c, s, o, n, t[p + 7], 10, 1126891415), n = O(n, c, s, o, t[p + 14], 15, -1416354905), o = O(o, n, c, s, t[p + 5], 21, -57434055), s = O(s, o, n, c, t[p + 12], 6, 1700485571), c = O(c, s, o, n, t[p + 3], 10, -1894986606), n = O(n, c, s, o, t[p + 10], 15, -1051523), o = O(o, n, c, s, t[p + 1], 21, -2054922799), s = O(s, o, n, c, t[p + 8], 6, 1873313359), c = O(c, s, o, n, t[p + 15], 10, -30611744), n = O(n, c, s, o, t[p + 6], 15, -1560198380), o = O(o, n, c, s, t[p + 13], 21, 1309151649), s = O(s, o, n, c, t[p + 4], 6, -145523070), c = O(c, s, o, n, t[p + 11], 10, -1120210379), n = O(n, c, s, o, t[p + 2], 15, 718787259), o = O(o, n, c, s, t[p + 9], 21, -343485551), s = i(s, I), o = i(o, _), n = i(n, b), c = i(c, w);
|
|
159
159
|
}
|
|
160
160
|
return Uint32Array.of(s, o, n, c);
|
|
161
161
|
}
|
|
162
162
|
function e(t) {
|
|
163
163
|
if (t.length === 0)
|
|
164
164
|
return new Uint32Array();
|
|
165
|
-
const
|
|
165
|
+
const S = new Uint32Array(v(t.length * 8)).fill(0);
|
|
166
166
|
for (let A = 0; A < t.length; A++)
|
|
167
|
-
|
|
168
|
-
return
|
|
167
|
+
S[A >> 2] |= (t[A] & 255) << A % 4 * 8;
|
|
168
|
+
return S;
|
|
169
169
|
}
|
|
170
|
-
function i(t,
|
|
171
|
-
const A = (t & 65535) + (
|
|
172
|
-
return (t >> 16) + (
|
|
170
|
+
function i(t, S) {
|
|
171
|
+
const A = (t & 65535) + (S & 65535);
|
|
172
|
+
return (t >> 16) + (S >> 16) + (A >> 16) << 16 | A & 65535;
|
|
173
173
|
}
|
|
174
|
-
function a(t,
|
|
175
|
-
return t <<
|
|
174
|
+
function a(t, S) {
|
|
175
|
+
return t << S | t >>> 32 - S;
|
|
176
176
|
}
|
|
177
|
-
function y(t,
|
|
178
|
-
return i(a(i(i(
|
|
177
|
+
function y(t, S, A, s, o, n) {
|
|
178
|
+
return i(a(i(i(S, t), i(s, n)), o), A);
|
|
179
179
|
}
|
|
180
|
-
function u(t,
|
|
181
|
-
return y(
|
|
180
|
+
function u(t, S, A, s, o, n, c) {
|
|
181
|
+
return y(S & A | ~S & s, t, S, o, n, c);
|
|
182
182
|
}
|
|
183
|
-
function f(t,
|
|
184
|
-
return y(
|
|
183
|
+
function f(t, S, A, s, o, n, c) {
|
|
184
|
+
return y(S & s | A & ~s, t, S, o, n, c);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
return y(
|
|
186
|
+
function m(t, S, A, s, o, n, c) {
|
|
187
|
+
return y(S ^ A ^ s, t, S, o, n, c);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
return y(A ^ (
|
|
189
|
+
function O(t, S, A, s, o, n, c) {
|
|
190
|
+
return y(A ^ (S | ~s), t, S, o, n, c);
|
|
191
191
|
}
|
|
192
192
|
return Q.default = r, Q;
|
|
193
193
|
}
|
|
@@ -196,35 +196,35 @@ function te() {
|
|
|
196
196
|
if (we) return E;
|
|
197
197
|
we = 1, Object.defineProperty(E, "__esModule", { value: !0 }), E.URL = E.DNS = E.stringToBytes = void 0;
|
|
198
198
|
const r = ne(), l = P();
|
|
199
|
-
function
|
|
199
|
+
function v(e) {
|
|
200
200
|
e = unescape(encodeURIComponent(e));
|
|
201
201
|
const i = new Uint8Array(e.length);
|
|
202
202
|
for (let a = 0; a < e.length; ++a)
|
|
203
203
|
i[a] = e.charCodeAt(a);
|
|
204
204
|
return i;
|
|
205
205
|
}
|
|
206
|
-
E.stringToBytes =
|
|
206
|
+
E.stringToBytes = v, E.DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", E.URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
207
207
|
function g(e, i, a, y, u, f) {
|
|
208
|
-
const
|
|
208
|
+
const m = typeof a == "string" ? v(a) : a, O = typeof y == "string" ? (0, r.default)(y) : y;
|
|
209
209
|
if (typeof y == "string" && (y = (0, r.default)(y)), y?.length !== 16)
|
|
210
210
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
211
|
-
let t = new Uint8Array(16 +
|
|
212
|
-
if (t.set(
|
|
211
|
+
let t = new Uint8Array(16 + m.length);
|
|
212
|
+
if (t.set(O), t.set(m, O.length), t = i(t), t[6] = t[6] & 15 | e, t[8] = t[8] & 63 | 128, u) {
|
|
213
213
|
if (f = f || 0, f < 0 || f + 16 > u.length)
|
|
214
214
|
throw new RangeError(`UUID byte range ${f}:${f + 15} is out of buffer bounds`);
|
|
215
|
-
for (let
|
|
216
|
-
u[f +
|
|
215
|
+
for (let S = 0; S < 16; ++S)
|
|
216
|
+
u[f + S] = t[S];
|
|
217
217
|
return u;
|
|
218
218
|
}
|
|
219
219
|
return (0, l.unsafeStringify)(t);
|
|
220
220
|
}
|
|
221
221
|
return E.default = g, E;
|
|
222
222
|
}
|
|
223
|
-
var
|
|
223
|
+
var ke;
|
|
224
224
|
function rt() {
|
|
225
|
-
return
|
|
225
|
+
return ke || (ke = 1, (function(r) {
|
|
226
226
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.URL = r.DNS = void 0;
|
|
227
|
-
const l = tt(),
|
|
227
|
+
const l = tt(), v = te();
|
|
228
228
|
var g = te();
|
|
229
229
|
Object.defineProperty(r, "DNS", { enumerable: !0, get: function() {
|
|
230
230
|
return g.DNS;
|
|
@@ -232,23 +232,23 @@ function rt() {
|
|
|
232
232
|
return g.URL;
|
|
233
233
|
} });
|
|
234
234
|
function e(i, a, y, u) {
|
|
235
|
-
return (0,
|
|
235
|
+
return (0, v.default)(48, l.default, i, a, y, u);
|
|
236
236
|
}
|
|
237
|
-
e.DNS =
|
|
237
|
+
e.DNS = v.DNS, e.URL = v.URL, r.default = e;
|
|
238
238
|
})(oe)), oe;
|
|
239
239
|
}
|
|
240
|
-
var G = {}, X = {},
|
|
240
|
+
var G = {}, X = {}, Re;
|
|
241
241
|
function nt() {
|
|
242
|
-
if (
|
|
243
|
-
|
|
242
|
+
if (Re) return X;
|
|
243
|
+
Re = 1, Object.defineProperty(X, "__esModule", { value: !0 });
|
|
244
244
|
const r = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
245
245
|
return X.default = { randomUUID: r }, X;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var Ue;
|
|
248
248
|
function at() {
|
|
249
|
-
if (
|
|
250
|
-
|
|
251
|
-
const r = nt(), l = ce(),
|
|
249
|
+
if (Ue) return G;
|
|
250
|
+
Ue = 1, Object.defineProperty(G, "__esModule", { value: !0 });
|
|
251
|
+
const r = nt(), l = ce(), v = P();
|
|
252
252
|
function g(e, i, a) {
|
|
253
253
|
if (r.default.randomUUID && !i && !e)
|
|
254
254
|
return r.default.randomUUID();
|
|
@@ -263,14 +263,14 @@ function at() {
|
|
|
263
263
|
i[a + u] = y[u];
|
|
264
264
|
return i;
|
|
265
265
|
}
|
|
266
|
-
return (0,
|
|
266
|
+
return (0, v.unsafeStringify)(y);
|
|
267
267
|
}
|
|
268
268
|
return G.default = g, G;
|
|
269
269
|
}
|
|
270
|
-
var ue = {}, z = {},
|
|
270
|
+
var ue = {}, z = {}, Me;
|
|
271
271
|
function it() {
|
|
272
|
-
if (
|
|
273
|
-
|
|
272
|
+
if (Me) return z;
|
|
273
|
+
Me = 1, Object.defineProperty(z, "__esModule", { value: !0 });
|
|
274
274
|
function r(g, e, i, a) {
|
|
275
275
|
switch (g) {
|
|
276
276
|
case 0:
|
|
@@ -286,39 +286,39 @@ function it() {
|
|
|
286
286
|
function l(g, e) {
|
|
287
287
|
return g << e | g >>> 32 - e;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function v(g) {
|
|
290
290
|
const e = [1518500249, 1859775393, 2400959708, 3395469782], i = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], a = new Uint8Array(g.length + 1);
|
|
291
291
|
a.set(g), a[g.length] = 128, g = a;
|
|
292
292
|
const y = g.length / 4 + 2, u = Math.ceil(y / 16), f = new Array(u);
|
|
293
|
-
for (let
|
|
294
|
-
const
|
|
293
|
+
for (let m = 0; m < u; ++m) {
|
|
294
|
+
const O = new Uint32Array(16);
|
|
295
295
|
for (let t = 0; t < 16; ++t)
|
|
296
|
-
|
|
297
|
-
f[
|
|
296
|
+
O[t] = g[m * 64 + t * 4] << 24 | g[m * 64 + t * 4 + 1] << 16 | g[m * 64 + t * 4 + 2] << 8 | g[m * 64 + t * 4 + 3];
|
|
297
|
+
f[m] = O;
|
|
298
298
|
}
|
|
299
299
|
f[u - 1][14] = (g.length - 1) * 8 / Math.pow(2, 32), f[u - 1][14] = Math.floor(f[u - 1][14]), f[u - 1][15] = (g.length - 1) * 8 & 4294967295;
|
|
300
|
-
for (let
|
|
301
|
-
const
|
|
300
|
+
for (let m = 0; m < u; ++m) {
|
|
301
|
+
const O = new Uint32Array(80);
|
|
302
302
|
for (let n = 0; n < 16; ++n)
|
|
303
|
-
|
|
303
|
+
O[n] = f[m][n];
|
|
304
304
|
for (let n = 16; n < 80; ++n)
|
|
305
|
-
|
|
306
|
-
let t = i[0],
|
|
305
|
+
O[n] = l(O[n - 3] ^ O[n - 8] ^ O[n - 14] ^ O[n - 16], 1);
|
|
306
|
+
let t = i[0], S = i[1], A = i[2], s = i[3], o = i[4];
|
|
307
307
|
for (let n = 0; n < 80; ++n) {
|
|
308
|
-
const c = Math.floor(n / 20),
|
|
309
|
-
o = s, s = A, A = l(
|
|
308
|
+
const c = Math.floor(n / 20), p = l(t, 5) + r(c, S, A, s) + o + e[c] + O[n] >>> 0;
|
|
309
|
+
o = s, s = A, A = l(S, 30) >>> 0, S = t, t = p;
|
|
310
310
|
}
|
|
311
|
-
i[0] = i[0] + t >>> 0, i[1] = i[1] +
|
|
311
|
+
i[0] = i[0] + t >>> 0, i[1] = i[1] + S >>> 0, i[2] = i[2] + A >>> 0, i[3] = i[3] + s >>> 0, i[4] = i[4] + o >>> 0;
|
|
312
312
|
}
|
|
313
313
|
return Uint8Array.of(i[0] >> 24, i[0] >> 16, i[0] >> 8, i[0], i[1] >> 24, i[1] >> 16, i[1] >> 8, i[1], i[2] >> 24, i[2] >> 16, i[2] >> 8, i[2], i[3] >> 24, i[3] >> 16, i[3] >> 8, i[3], i[4] >> 24, i[4] >> 16, i[4] >> 8, i[4]);
|
|
314
314
|
}
|
|
315
|
-
return z.default =
|
|
315
|
+
return z.default = v, z;
|
|
316
316
|
}
|
|
317
317
|
var De;
|
|
318
318
|
function ot() {
|
|
319
319
|
return De || (De = 1, (function(r) {
|
|
320
320
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.URL = r.DNS = void 0;
|
|
321
|
-
const l = it(),
|
|
321
|
+
const l = it(), v = te();
|
|
322
322
|
var g = te();
|
|
323
323
|
Object.defineProperty(r, "DNS", { enumerable: !0, get: function() {
|
|
324
324
|
return g.DNS;
|
|
@@ -326,20 +326,20 @@ function ot() {
|
|
|
326
326
|
return g.URL;
|
|
327
327
|
} });
|
|
328
328
|
function e(i, a, y, u) {
|
|
329
|
-
return (0,
|
|
329
|
+
return (0, v.default)(80, l.default, i, a, y, u);
|
|
330
330
|
}
|
|
331
|
-
e.DNS =
|
|
331
|
+
e.DNS = v.DNS, e.URL = v.URL, r.default = e;
|
|
332
332
|
})(ue)), ue;
|
|
333
333
|
}
|
|
334
334
|
var Z = {}, Ie;
|
|
335
335
|
function ut() {
|
|
336
336
|
if (Ie) return Z;
|
|
337
337
|
Ie = 1, Object.defineProperty(Z, "__esModule", { value: !0 });
|
|
338
|
-
const r = P(), l = He(),
|
|
338
|
+
const r = P(), l = He(), v = We();
|
|
339
339
|
function g(e, i, a) {
|
|
340
340
|
e ??= {}, a ??= 0;
|
|
341
341
|
let y = (0, l.default)({ ...e, _v6: !0 }, new Uint8Array(16));
|
|
342
|
-
if (y = (0,
|
|
342
|
+
if (y = (0, v.default)(y), i) {
|
|
343
343
|
if (a < 0 || a + 16 > i.length)
|
|
344
344
|
throw new RangeError(`UUID byte range ${a}:${a + 15} is out of buffer bounds`);
|
|
345
345
|
for (let u = 0; u < 16; u++)
|
|
@@ -355,69 +355,69 @@ function st() {
|
|
|
355
355
|
if (Ee) return Y;
|
|
356
356
|
Ee = 1, Object.defineProperty(Y, "__esModule", { value: !0 });
|
|
357
357
|
const r = ne(), l = P();
|
|
358
|
-
function
|
|
358
|
+
function v(e) {
|
|
359
359
|
const i = typeof e == "string" ? (0, r.default)(e) : e, a = g(i);
|
|
360
360
|
return typeof e == "string" ? (0, l.unsafeStringify)(a) : a;
|
|
361
361
|
}
|
|
362
|
-
Y.default =
|
|
362
|
+
Y.default = v;
|
|
363
363
|
function g(e) {
|
|
364
364
|
return Uint8Array.of((e[3] & 15) << 4 | e[4] >> 4 & 15, (e[4] & 15) << 4 | (e[5] & 240) >> 4, (e[5] & 15) << 4 | e[6] & 15, e[7], (e[1] & 15) << 4 | (e[2] & 240) >> 4, (e[2] & 15) << 4 | (e[3] & 240) >> 4, 16 | (e[0] & 240) >> 4, (e[0] & 15) << 4 | (e[1] & 240) >> 4, e[8], e[9], e[10], e[11], e[12], e[13], e[14], e[15]);
|
|
365
365
|
}
|
|
366
366
|
return Y;
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var V = {}, Te;
|
|
369
369
|
function ct() {
|
|
370
|
-
if (Te) return
|
|
371
|
-
Te = 1, Object.defineProperty(
|
|
372
|
-
const r = ce(), l = P(),
|
|
370
|
+
if (Te) return V;
|
|
371
|
+
Te = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.updateV7State = void 0;
|
|
372
|
+
const r = ce(), l = P(), v = {};
|
|
373
373
|
function g(a, y, u) {
|
|
374
374
|
let f;
|
|
375
375
|
if (a)
|
|
376
376
|
f = i(a.random ?? a.rng?.() ?? (0, r.default)(), a.msecs, a.seq, y, u);
|
|
377
377
|
else {
|
|
378
|
-
const
|
|
379
|
-
e(
|
|
378
|
+
const m = Date.now(), O = (0, r.default)();
|
|
379
|
+
e(v, m, O), f = i(O, v.msecs, v.seq, y, u);
|
|
380
380
|
}
|
|
381
381
|
return y ?? (0, l.unsafeStringify)(f);
|
|
382
382
|
}
|
|
383
383
|
function e(a, y, u) {
|
|
384
384
|
return a.msecs ??= -1 / 0, a.seq ??= 0, y > a.msecs ? (a.seq = u[6] << 23 | u[7] << 16 | u[8] << 8 | u[9], a.msecs = y) : (a.seq = a.seq + 1 | 0, a.seq === 0 && a.msecs++), a;
|
|
385
385
|
}
|
|
386
|
-
|
|
387
|
-
function i(a, y, u, f,
|
|
386
|
+
V.updateV7State = e;
|
|
387
|
+
function i(a, y, u, f, m = 0) {
|
|
388
388
|
if (a.length < 16)
|
|
389
389
|
throw new Error("Random bytes length must be >= 16");
|
|
390
390
|
if (!f)
|
|
391
|
-
f = new Uint8Array(16),
|
|
392
|
-
else if (
|
|
393
|
-
throw new RangeError(`UUID byte range ${
|
|
394
|
-
return y ??= Date.now(), u ??= a[6] * 127 << 24 | a[7] << 16 | a[8] << 8 | a[9], f[
|
|
391
|
+
f = new Uint8Array(16), m = 0;
|
|
392
|
+
else if (m < 0 || m + 16 > f.length)
|
|
393
|
+
throw new RangeError(`UUID byte range ${m}:${m + 15} is out of buffer bounds`);
|
|
394
|
+
return y ??= Date.now(), u ??= a[6] * 127 << 24 | a[7] << 16 | a[8] << 8 | a[9], f[m++] = y / 1099511627776 & 255, f[m++] = y / 4294967296 & 255, f[m++] = y / 16777216 & 255, f[m++] = y / 65536 & 255, f[m++] = y / 256 & 255, f[m++] = y & 255, f[m++] = 112 | u >>> 28 & 15, f[m++] = u >>> 20 & 255, f[m++] = 128 | u >>> 14 & 63, f[m++] = u >>> 6 & 255, f[m++] = u << 2 & 255 | a[10] & 3, f[m++] = a[11], f[m++] = a[12], f[m++] = a[13], f[m++] = a[14], f[m++] = a[15], f;
|
|
395
395
|
}
|
|
396
|
-
return
|
|
396
|
+
return V.default = g, V;
|
|
397
397
|
}
|
|
398
398
|
var B = {}, Pe;
|
|
399
399
|
function ft() {
|
|
400
400
|
if (Pe) return B;
|
|
401
401
|
Pe = 1, Object.defineProperty(B, "__esModule", { value: !0 });
|
|
402
402
|
const r = re();
|
|
403
|
-
function l(
|
|
404
|
-
if (!(0, r.default)(
|
|
403
|
+
function l(v) {
|
|
404
|
+
if (!(0, r.default)(v))
|
|
405
405
|
throw TypeError("Invalid UUID");
|
|
406
|
-
return parseInt(
|
|
406
|
+
return parseInt(v.slice(14, 15), 16);
|
|
407
407
|
}
|
|
408
408
|
return B.default = l, B;
|
|
409
409
|
}
|
|
410
|
-
var
|
|
410
|
+
var Le;
|
|
411
411
|
function lt() {
|
|
412
|
-
return
|
|
412
|
+
return Le || (Le = 1, (function(r) {
|
|
413
413
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.version = r.validate = r.v7 = r.v6ToV1 = r.v6 = r.v5 = r.v4 = r.v3 = r.v1ToV6 = r.v1 = r.stringify = r.parse = r.NIL = r.MAX = void 0;
|
|
414
414
|
var l = Ye();
|
|
415
415
|
Object.defineProperty(r, "MAX", { enumerable: !0, get: function() {
|
|
416
416
|
return l.default;
|
|
417
417
|
} });
|
|
418
|
-
var
|
|
418
|
+
var v = Be();
|
|
419
419
|
Object.defineProperty(r, "NIL", { enumerable: !0, get: function() {
|
|
420
|
-
return
|
|
420
|
+
return v.default;
|
|
421
421
|
} });
|
|
422
422
|
var g = ne();
|
|
423
423
|
Object.defineProperty(r, "parse", { enumerable: !0, get: function() {
|
|
@@ -447,21 +447,21 @@ function lt() {
|
|
|
447
447
|
Object.defineProperty(r, "v5", { enumerable: !0, get: function() {
|
|
448
448
|
return f.default;
|
|
449
449
|
} });
|
|
450
|
-
var
|
|
450
|
+
var m = ut();
|
|
451
451
|
Object.defineProperty(r, "v6", { enumerable: !0, get: function() {
|
|
452
|
-
return
|
|
452
|
+
return m.default;
|
|
453
453
|
} });
|
|
454
|
-
var
|
|
454
|
+
var O = st();
|
|
455
455
|
Object.defineProperty(r, "v6ToV1", { enumerable: !0, get: function() {
|
|
456
|
-
return
|
|
456
|
+
return O.default;
|
|
457
457
|
} });
|
|
458
458
|
var t = ct();
|
|
459
459
|
Object.defineProperty(r, "v7", { enumerable: !0, get: function() {
|
|
460
460
|
return t.default;
|
|
461
461
|
} });
|
|
462
|
-
var
|
|
462
|
+
var S = re();
|
|
463
463
|
Object.defineProperty(r, "validate", { enumerable: !0, get: function() {
|
|
464
|
-
return
|
|
464
|
+
return S.default;
|
|
465
465
|
} });
|
|
466
466
|
var A = ft();
|
|
467
467
|
Object.defineProperty(r, "version", { enumerable: !0, get: function() {
|
|
@@ -469,12 +469,12 @@ function lt() {
|
|
|
469
469
|
} });
|
|
470
470
|
})(ie)), ie;
|
|
471
471
|
}
|
|
472
|
-
var T = {},
|
|
472
|
+
var T = {}, qe;
|
|
473
473
|
function dt() {
|
|
474
|
-
if (
|
|
475
|
-
|
|
474
|
+
if (qe) return T;
|
|
475
|
+
qe = 1, Object.defineProperty(T, "__esModule", {
|
|
476
476
|
value: !0
|
|
477
|
-
}), T.checkIfDataTableExists = a, T.cloneDataSource = y, T.deepCopyOf = i, T.isCallable =
|
|
477
|
+
}), T.checkIfDataTableExists = a, T.cloneDataSource = y, T.deepCopyOf = i, T.isCallable = v, T.isObject = l, T.isSameObjectContent = g, T.isUndefined = e;
|
|
478
478
|
function r(u) {
|
|
479
479
|
"@babel/helpers - typeof";
|
|
480
480
|
return r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
|
|
@@ -486,14 +486,14 @@ function dt() {
|
|
|
486
486
|
function l(u) {
|
|
487
487
|
return u !== null && r(u) === "object";
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function v(u) {
|
|
490
490
|
return typeof u == "function";
|
|
491
491
|
}
|
|
492
492
|
function g(u, f) {
|
|
493
493
|
if (Object.keys(u).length !== Object.keys(f).length)
|
|
494
494
|
return !1;
|
|
495
|
-
for (var
|
|
496
|
-
var t =
|
|
495
|
+
for (var m = Object.keys(u), O = 0; O < m.length; O += 1) {
|
|
496
|
+
var t = m[O];
|
|
497
497
|
if (l(u[t]) && l(f[t])) {
|
|
498
498
|
if (!g(u[t], f[t]))
|
|
499
499
|
return !1;
|
|
@@ -513,31 +513,31 @@ function dt() {
|
|
|
513
513
|
return !!(u && u.data && u.data._dataStore);
|
|
514
514
|
}
|
|
515
515
|
function y(u) {
|
|
516
|
-
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "clone",
|
|
517
|
-
if (
|
|
516
|
+
var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "clone", m = r(u);
|
|
517
|
+
if (m === "string" || m === "number" || m === "function" || m === "boolean" || u == null)
|
|
518
518
|
return u;
|
|
519
519
|
if (Array.isArray(u)) {
|
|
520
|
-
for (var
|
|
521
|
-
|
|
522
|
-
return
|
|
520
|
+
for (var O = [], t = 0; t < u.length; t++)
|
|
521
|
+
O.push(this.cloneDataSource(u[t]));
|
|
522
|
+
return O;
|
|
523
523
|
}
|
|
524
524
|
if (r(u) === "object") {
|
|
525
|
-
var
|
|
525
|
+
var S = {};
|
|
526
526
|
for (var A in u) {
|
|
527
527
|
if (A === "data") {
|
|
528
|
-
u[A]._dataStore && f === "clone" ?
|
|
528
|
+
u[A]._dataStore && f === "clone" ? S[A] = u[A] : u[A]._dataStore && f === "diff" ? S[A] = "-" : S[A] = this.cloneDataSource(u[A]);
|
|
529
529
|
continue;
|
|
530
530
|
}
|
|
531
|
-
|
|
531
|
+
S[A] = this.cloneDataSource(u[A]);
|
|
532
532
|
}
|
|
533
|
-
return
|
|
533
|
+
return S;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
return T;
|
|
537
537
|
}
|
|
538
|
-
var se = {},
|
|
538
|
+
var se = {}, Ve;
|
|
539
539
|
function ht() {
|
|
540
|
-
return
|
|
540
|
+
return Ve || (Ve = 1, (function(r) {
|
|
541
541
|
Object.defineProperty(r, "__esModule", {
|
|
542
542
|
value: !0
|
|
543
543
|
}), r.default = void 0, r.default = ["type", "id", "width", "height", "dataFormat", "dataSource", "events", "link", "showDataLoadingMessage", "showChartLoadingMessage", "baseChartMessageFont", "baseChartMessageFontSize", "baseChartMessageColor", "dataLoadStartMessage", "dataLoadErrorMessage", "dataInvalidMessage", "dataEmptyMessage", "typeNotSupportedMessage", "loadMessage", "renderErrorMessage", "containerBackgroundColor", "containerBackgroundOpacity", "containerClassName", "baseChartMessageImageHAlign", "baseChartMessageImageVAlign", "baseChartMessageImageAlpha", "baseChartMessageImageScale", "typeNotSupportedMessageImageHAalign", "typeNotSupportedMessageImageVAlign", "typeNotSupportedMessageImageAlpha", "typeNotSupportedMessageImageScale", "dataLoadErrorMessageImageHAlign", "dataLoadErrorMessageImageVAlign", "dataLoadErrorMessageImageAlpha", "dataLoadErrorMessageImageScale", "dataLoadStartMessageImageHAlign", "dataLoadStartMessageImageVAlign", "dataLoadStartMessageImageAlpha", "dataLoadStartMessageImageScale", "dataInvalidMessageImageHAlign", "dataInvalidMessageImageVAlign", "dataInvalidMessageImageAlpha", "dataInvalidMessageImageScale", "dataEmptyMessageImageHAlign", "dataEmptyMessageImageVAlign", "dataEmptyMessageImageAlpha", "dataEmptyMessageImageScale", "renderErrorMessageImageHAlign", "renderErrorMessageImageVAlign", "renderErrorMessageImageAlpha", "renderErrorMessageImageScale", "loadMessageImageHAlign", "loadMessageImageVAlign", "loadMessageImageAlpha", "loadMessageImageScale"];
|
|
@@ -557,19 +557,19 @@ function gt() {
|
|
|
557
557
|
Object.defineProperty(r, "__esModule", {
|
|
558
558
|
value: !0
|
|
559
559
|
}), r.default = void 0;
|
|
560
|
-
var
|
|
560
|
+
var v = y(Je), g = /* @__PURE__ */ lt(), e = a(dt()), i = y(ht());
|
|
561
561
|
function a(_, b) {
|
|
562
562
|
if (typeof WeakMap == "function") var w = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap();
|
|
563
|
-
return (a = function(h,
|
|
564
|
-
if (!
|
|
565
|
-
var
|
|
566
|
-
if (h === null || l(h) != "object" && typeof h != "function") return
|
|
567
|
-
if (
|
|
568
|
-
if (
|
|
569
|
-
|
|
563
|
+
return (a = function(h, j) {
|
|
564
|
+
if (!j && h && h.__esModule) return h;
|
|
565
|
+
var k, R, M = { __proto__: null, default: h };
|
|
566
|
+
if (h === null || l(h) != "object" && typeof h != "function") return M;
|
|
567
|
+
if (k = j ? d : w) {
|
|
568
|
+
if (k.has(h)) return k.get(h);
|
|
569
|
+
k.set(h, M);
|
|
570
570
|
}
|
|
571
|
-
for (var
|
|
572
|
-
return
|
|
571
|
+
for (var U in h) U !== "default" && {}.hasOwnProperty.call(h, U) && ((R = (k = Object.defineProperty) && Object.getOwnPropertyDescriptor(h, U)) && (R.get || R.set) ? k(M, U, R) : M[U] = h[U]);
|
|
572
|
+
return M;
|
|
573
573
|
})(_, b);
|
|
574
574
|
}
|
|
575
575
|
function y(_) {
|
|
@@ -581,13 +581,13 @@ function gt() {
|
|
|
581
581
|
function f(_, b) {
|
|
582
582
|
for (var w = 0; w < b.length; w++) {
|
|
583
583
|
var d = b[w];
|
|
584
|
-
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(_,
|
|
584
|
+
d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(_, O(d.key), d);
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function m(_, b, w) {
|
|
588
588
|
return b && f(_.prototype, b), w && f(_, w), Object.defineProperty(_, "prototype", { writable: !1 }), _;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function O(_) {
|
|
591
591
|
var b = t(_, "string");
|
|
592
592
|
return l(b) == "symbol" ? b : b + "";
|
|
593
593
|
}
|
|
@@ -601,7 +601,7 @@ function gt() {
|
|
|
601
601
|
}
|
|
602
602
|
return String(_);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function S(_, b, w) {
|
|
605
605
|
return b = n(b), A(_, o() ? Reflect.construct(b, w || [], n(_).constructor) : b.apply(_, w));
|
|
606
606
|
}
|
|
607
607
|
function A(_, b) {
|
|
@@ -630,19 +630,19 @@ function gt() {
|
|
|
630
630
|
}
|
|
631
631
|
function c(_, b) {
|
|
632
632
|
if (typeof b != "function" && b !== null) throw new TypeError("Super expression must either be null or a function");
|
|
633
|
-
_.prototype = Object.create(b && b.prototype, { constructor: { value: _, writable: !0, configurable: !0 } }), Object.defineProperty(_, "prototype", { writable: !1 }), b &&
|
|
633
|
+
_.prototype = Object.create(b && b.prototype, { constructor: { value: _, writable: !0, configurable: !0 } }), Object.defineProperty(_, "prototype", { writable: !1 }), b && p(_, b);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
635
|
+
function p(_, b) {
|
|
636
|
+
return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(w, d) {
|
|
637
637
|
return w.__proto__ = d, w;
|
|
638
|
-
},
|
|
638
|
+
}, p(_, b);
|
|
639
639
|
}
|
|
640
|
-
var
|
|
640
|
+
var I = /* @__PURE__ */ (function(_) {
|
|
641
641
|
function b(w) {
|
|
642
642
|
var d;
|
|
643
|
-
return u(this, b), d =
|
|
643
|
+
return u(this, b), d = S(this, b, [w]), d.initialUnmount = !1, d.containerRef = /* @__PURE__ */ v.default.createRef(), d.containerId = (0, g.v4)(), d.oldOptions = null, d.FusionCharts = w.fcLibrary || b.fusionChartsCore || window.FusionCharts, d;
|
|
644
644
|
}
|
|
645
|
-
return c(b, _),
|
|
645
|
+
return c(b, _), m(b, [{
|
|
646
646
|
key: "componentDidMount",
|
|
647
647
|
value: function() {
|
|
648
648
|
this.renderChart();
|
|
@@ -660,44 +660,44 @@ function gt() {
|
|
|
660
660
|
else {
|
|
661
661
|
var d;
|
|
662
662
|
this.initialUnmount = !0;
|
|
663
|
-
var
|
|
664
|
-
|
|
663
|
+
var C = (d = this.props.type) === null || d === void 0 ? void 0 : d.toLowerCase().includes("map");
|
|
664
|
+
C || this.chartObj.dispose();
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
}, {
|
|
668
668
|
key: "detectChanges",
|
|
669
669
|
value: function(d) {
|
|
670
|
-
var
|
|
671
|
-
this.checkAndUpdateChartDimensions(
|
|
672
|
-
return
|
|
673
|
-
}),
|
|
670
|
+
var C = this.resolveChartOptions(d), h = this.oldOptions, j = ["width", "height", "type", "dataFormat", "dataSource", "events"];
|
|
671
|
+
this.checkAndUpdateChartDimensions(C, h), this.checkAndUpdateChartType(C, h), this.checkAndUpdateChartData(C, h), this.checkAndUpdateEvents(C, h), this.checkAndUpdateRestOptions(i.default.filter(function(k) {
|
|
672
|
+
return j.indexOf(k) === -1;
|
|
673
|
+
}), C, h), this.oldOptions = C;
|
|
674
674
|
}
|
|
675
675
|
}, {
|
|
676
676
|
key: "checkAndUpdateChartDimensions",
|
|
677
|
-
value: function(d,
|
|
678
|
-
var h = d.width,
|
|
679
|
-
(String(h) !== String(
|
|
677
|
+
value: function(d, C) {
|
|
678
|
+
var h = d.width, j = d.height, k = C.width, R = C.height;
|
|
679
|
+
(String(h) !== String(k) || String(j) !== String(R)) && (!e.isUndefined(h) && !e.isUndefined(j) ? this.chartObj.resizeTo(h, j) : (e.isUndefined(h) || this.chartObj.resizeTo({
|
|
680
680
|
w: h
|
|
681
|
-
}), e.isUndefined(
|
|
682
|
-
h:
|
|
681
|
+
}), e.isUndefined(j) || this.chartObj.resizeTo({
|
|
682
|
+
h: j
|
|
683
683
|
})));
|
|
684
684
|
}
|
|
685
685
|
}, {
|
|
686
686
|
key: "checkAndUpdateChartType",
|
|
687
|
-
value: function(d,
|
|
688
|
-
var h = d.type,
|
|
689
|
-
String(h).toLowerCase() !== String(
|
|
687
|
+
value: function(d, C) {
|
|
688
|
+
var h = d.type, j = C.type;
|
|
689
|
+
String(h).toLowerCase() !== String(j).toLowerCase() && (e.isUndefined(h) || this.chartObj.chartType(String(h).toLowerCase()));
|
|
690
690
|
}
|
|
691
691
|
}, {
|
|
692
692
|
key: "checkAndUpdateChartData",
|
|
693
|
-
value: function(d,
|
|
694
|
-
var h = d.dataFormat,
|
|
695
|
-
if (String(h).toLowerCase() !== String(
|
|
696
|
-
this.chartObj.setChartData(
|
|
693
|
+
value: function(d, C) {
|
|
694
|
+
var h = d.dataFormat, j = d.dataSource, k = C.dataFormat, R = C.dataSource;
|
|
695
|
+
if (String(h).toLowerCase() !== String(k).toLowerCase() && !e.isUndefined(h) && !e.isUndefined(j)) {
|
|
696
|
+
this.chartObj.setChartData(j, String(h).toLowerCase()), this.chartObj.render();
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
this.isSameChartData(
|
|
700
|
-
|
|
699
|
+
this.isSameChartData(j, R) || e.isUndefined(j) || this.chartObj.setChartData(
|
|
700
|
+
j,
|
|
701
701
|
// When dataFormat is not given, but data is changed,
|
|
702
702
|
// then use 'json' as default dataFormat
|
|
703
703
|
h ? String(h).toLowerCase() : "json"
|
|
@@ -705,77 +705,77 @@ function gt() {
|
|
|
705
705
|
}
|
|
706
706
|
}, {
|
|
707
707
|
key: "isSameChartData",
|
|
708
|
-
value: function(d,
|
|
709
|
-
if (e.checkIfDataTableExists(d) && !e.checkIfDataTableExists(
|
|
708
|
+
value: function(d, C) {
|
|
709
|
+
if (e.checkIfDataTableExists(d) && !e.checkIfDataTableExists(C) || !e.checkIfDataTableExists(d) && e.checkIfDataTableExists(C) || e.checkIfDataTableExists(d) && e.checkIfDataTableExists(C) && d.data !== C.data)
|
|
710
710
|
return !1;
|
|
711
|
-
var h = JSON.stringify(e.cloneDataSource(
|
|
712
|
-
return h ===
|
|
711
|
+
var h = JSON.stringify(e.cloneDataSource(C, "diff")), j = JSON.stringify(e.cloneDataSource(d, "diff"));
|
|
712
|
+
return h === j;
|
|
713
713
|
}
|
|
714
714
|
}, {
|
|
715
715
|
key: "checkAndUpdateEvents",
|
|
716
|
-
value: function(d,
|
|
717
|
-
var h = this,
|
|
718
|
-
this.detectChartEventsChange(
|
|
719
|
-
|
|
720
|
-
}), Object.keys(
|
|
721
|
-
U
|
|
716
|
+
value: function(d, C) {
|
|
717
|
+
var h = this, j = d.events, k = C.events, R, M;
|
|
718
|
+
this.detectChartEventsChange(j, k) && (e.isUndefined(j) || (R = Object.assign({}, j), M = e.isUndefined(k) ? {} : Object.assign({}, k), Object.keys(M).forEach(function(U) {
|
|
719
|
+
M[U] === R[U] ? R[U] = void 0 : h.chartObj.removeEventListener(U, M[U]);
|
|
720
|
+
}), Object.keys(R).forEach(function(U) {
|
|
721
|
+
R[U] && h.chartObj.addEventListener(U, R[U]);
|
|
722
722
|
})));
|
|
723
723
|
}
|
|
724
724
|
}, {
|
|
725
725
|
key: "detectChartEventsChange",
|
|
726
|
-
value: function(d,
|
|
727
|
-
return e.isObject(d) && e.isObject(
|
|
726
|
+
value: function(d, C) {
|
|
727
|
+
return e.isObject(d) && e.isObject(C) ? !this.isSameChartEvents(d, C) : d !== C;
|
|
728
728
|
}
|
|
729
729
|
}, {
|
|
730
730
|
key: "isSameChartEvents",
|
|
731
|
-
value: function(d,
|
|
732
|
-
if (Object.keys(d).length !== Object.keys(
|
|
731
|
+
value: function(d, C) {
|
|
732
|
+
if (Object.keys(d).length !== Object.keys(C).length)
|
|
733
733
|
return !1;
|
|
734
|
-
for (var h = Object.keys(d),
|
|
735
|
-
var
|
|
736
|
-
if (d[
|
|
734
|
+
for (var h = Object.keys(d), j = 0; j < h.length; ++j) {
|
|
735
|
+
var k = h[j];
|
|
736
|
+
if (d[k] !== C[k])
|
|
737
737
|
return !1;
|
|
738
738
|
}
|
|
739
739
|
return !0;
|
|
740
740
|
}
|
|
741
741
|
}, {
|
|
742
742
|
key: "checkAndUpdateRestOptions",
|
|
743
|
-
value: function(d,
|
|
744
|
-
var
|
|
745
|
-
d.forEach(function(
|
|
746
|
-
var
|
|
747
|
-
|
|
748
|
-
}),
|
|
743
|
+
value: function(d, C, h) {
|
|
744
|
+
var j = this, k = !1;
|
|
745
|
+
d.forEach(function(R) {
|
|
746
|
+
var M = C[R], U = h[R];
|
|
747
|
+
j.isSameOptionValue(M, U) || e.isUndefined(M) || j.chartObj.options && j.chartObj.options.hasOwnProperty(R) && (j.chartObj.options[R] = M, k = !0);
|
|
748
|
+
}), k && this.chartObj.render();
|
|
749
749
|
}
|
|
750
750
|
}, {
|
|
751
751
|
key: "isSameOptionValue",
|
|
752
|
-
value: function(d,
|
|
753
|
-
return e.isObject(d) && e.isObject(
|
|
752
|
+
value: function(d, C) {
|
|
753
|
+
return e.isObject(d) && e.isObject(C) ? e.isSameObjectContent(d, C) : String(d) === String(C);
|
|
754
754
|
}
|
|
755
755
|
}, {
|
|
756
756
|
key: "renderChart",
|
|
757
757
|
value: function() {
|
|
758
|
-
var d = this,
|
|
759
|
-
this.containerRef.current && this.props.renderInShadowDom ?
|
|
760
|
-
var
|
|
761
|
-
if (
|
|
762
|
-
var
|
|
763
|
-
h[
|
|
758
|
+
var d = this, C = this.resolveChartOptions(this.props), h = {};
|
|
759
|
+
this.containerRef.current && this.props.renderInShadowDom ? C.renderAt = this.containerRef.current : C.renderAt = this.containerId, Object.keys(this.props).forEach(function(j) {
|
|
760
|
+
var k = j.match(/^fcEvent-.*/i);
|
|
761
|
+
if (k && typeof d.props[j] == "function") {
|
|
762
|
+
var R = j.replace(/^fcEvent-/i, "");
|
|
763
|
+
h[R] = d.props[j];
|
|
764
764
|
}
|
|
765
|
-
}), Object.keys(h).length > 0 && (
|
|
765
|
+
}), Object.keys(h).length > 0 && (C.events === void 0 ? C.events = h : C.events = Object.assign(C.events, h)), this.chartObj = new this.FusionCharts(C), this.chartObj.render(), this.oldOptions = C, this.props.onRender && typeof this.props.onRender == "function" && this.props.onRender(this.chartObj);
|
|
766
766
|
}
|
|
767
767
|
}, {
|
|
768
768
|
key: "resolveChartOptions",
|
|
769
769
|
value: function(d) {
|
|
770
|
-
var
|
|
771
|
-
return
|
|
770
|
+
var C = d.chartConfig ? d.chartConfig : {}, h = i.default.reduce(function(j, k) {
|
|
771
|
+
return j[k] = d[k], j;
|
|
772
772
|
}, {});
|
|
773
|
-
return Object.assign(h,
|
|
773
|
+
return Object.assign(h, C), e.isObject(h.dataSource) && !e.checkIfDataTableExists(h.dataSource) ? h.dataSource = e.deepCopyOf(h.dataSource) : e.isObject(h.dataSource) && e.checkIfDataTableExists(h.dataSource) && (h.dataSource = e.cloneDataSource(h.dataSource, "clone")), e.isObject(h.link) && (h.link = e.deepCopyOf(h.link)), e.isObject(h.events) && (h.events = Object.assign({}, h.events)), h;
|
|
774
774
|
}
|
|
775
775
|
}, {
|
|
776
776
|
key: "render",
|
|
777
777
|
value: function() {
|
|
778
|
-
return /* @__PURE__ */
|
|
778
|
+
return /* @__PURE__ */ v.default.createElement("div", {
|
|
779
779
|
ref: this.containerRef,
|
|
780
780
|
className: this.props.className,
|
|
781
781
|
id: this.containerId
|
|
@@ -784,44 +784,46 @@ function gt() {
|
|
|
784
784
|
}], [{
|
|
785
785
|
key: "fcRoot",
|
|
786
786
|
value: function(d) {
|
|
787
|
-
for (var
|
|
788
|
-
h[
|
|
789
|
-
h.forEach(function(
|
|
790
|
-
|
|
787
|
+
for (var C = arguments.length, h = new Array(C > 1 ? C - 1 : 0), j = 1; j < C; j++)
|
|
788
|
+
h[j - 1] = arguments[j];
|
|
789
|
+
h.forEach(function(k) {
|
|
790
|
+
k.getName && k.getType || k.name && k.type ? d.addDep(k) : k(d);
|
|
791
791
|
}), b.fusionChartsCore = d;
|
|
792
792
|
}
|
|
793
793
|
}]);
|
|
794
|
-
})(
|
|
795
|
-
r.default =
|
|
794
|
+
})(v.default.Component);
|
|
795
|
+
r.default = I;
|
|
796
796
|
})(ae)), ae;
|
|
797
797
|
}
|
|
798
798
|
var vt = gt();
|
|
799
|
-
const
|
|
800
|
-
"
|
|
801
|
-
sankey:
|
|
799
|
+
const mt = /* @__PURE__ */ Ge(vt), pt = "_sankey_xb921_1", yt = "_scrollArea_xb921_32", _t = "_stackedArea_xb921_32", bt = "_msCombiDy2d_xb921_32", Ct = "_stackedcolumn2d_xb921_44", Ot = "_scrollStackedColumn2d_xb921_44", St = "_fusion_chart_wrapper_xb921_179", D = {
|
|
800
|
+
"ckds-finops-charts": "_ckds-finops-charts_xb921_1",
|
|
801
|
+
sankey: pt,
|
|
802
802
|
scrollArea: yt,
|
|
803
803
|
stackedArea: _t,
|
|
804
804
|
msCombiDy2d: bt,
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
"doughnut-legend
|
|
809
|
-
"doughnut-legend-
|
|
810
|
-
"doughnut-legend-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
805
|
+
stackedcolumn2d: Ct,
|
|
806
|
+
scrollStackedColumn2d: Ot,
|
|
807
|
+
fusion_chart_wrapper: St,
|
|
808
|
+
"doughnut-legend": "_doughnut-legend_xb921_183",
|
|
809
|
+
"doughnut-legend-item": "_doughnut-legend-item_xb921_192",
|
|
810
|
+
"doughnut-legend-item--hidden": "_doughnut-legend-item--hidden_xb921_204",
|
|
811
|
+
"doughnut-legend-text": "_doughnut-legend-text_xb921_207",
|
|
812
|
+
"doughnut-legend-icon": "_doughnut-legend-icon_xb921_211"
|
|
813
|
+
}, jt = mt;
|
|
814
|
+
function At(r) {
|
|
815
|
+
return r.chartType === "stackedArea" ? (r.palettecolors || Ne).split(",").map((g) => g.trim()) : r.chartType === "scrollArea" || r.chartType === "line" ? (r.palettecolors || "#8ECFFF").split(",").map((g) => g.trim()) : (r.palettecolors || ee).split(",").map((v) => v.trim());
|
|
814
816
|
}
|
|
815
|
-
function
|
|
816
|
-
return r.length === 0 ? null : /* @__PURE__ */ $("div", { className:
|
|
817
|
-
const a = !!
|
|
818
|
-
return /* @__PURE__ */
|
|
817
|
+
function wt({ items: r, colors: l, hiddenSeries: v, onToggle: g }) {
|
|
818
|
+
return r.length === 0 ? null : /* @__PURE__ */ $("div", { className: D["doughnut-legend"], children: r.map((e, i) => {
|
|
819
|
+
const a = !!v[e];
|
|
820
|
+
return /* @__PURE__ */ Fe(
|
|
819
821
|
"button",
|
|
820
822
|
{
|
|
821
823
|
type: "button",
|
|
822
824
|
className: xe(
|
|
823
|
-
|
|
824
|
-
a &&
|
|
825
|
+
D["doughnut-legend-item"],
|
|
826
|
+
a && D["doughnut-legend-item--hidden"]
|
|
825
827
|
),
|
|
826
828
|
onClick: () => g(e),
|
|
827
829
|
"aria-pressed": !a,
|
|
@@ -830,39 +832,49 @@ function St({ items: r, colors: l, hiddenSeries: p, onToggle: g }) {
|
|
|
830
832
|
/* @__PURE__ */ $(
|
|
831
833
|
"span",
|
|
832
834
|
{
|
|
833
|
-
className:
|
|
835
|
+
className: D["doughnut-legend-icon"],
|
|
834
836
|
style: {
|
|
835
837
|
backgroundColor: a ? "#C2C2C2" : l[i % l.length]
|
|
836
838
|
}
|
|
837
839
|
}
|
|
838
840
|
),
|
|
839
|
-
/* @__PURE__ */ $("span", { className:
|
|
841
|
+
/* @__PURE__ */ $("span", { className: D["doughnut-legend-text"], children: e })
|
|
840
842
|
]
|
|
841
843
|
},
|
|
842
844
|
e || i
|
|
843
845
|
);
|
|
844
846
|
}) });
|
|
845
847
|
}
|
|
846
|
-
function
|
|
847
|
-
const { chartType: l, showLegend:
|
|
848
|
-
if (
|
|
848
|
+
function kt(r) {
|
|
849
|
+
const { chartType: l, showLegend: v } = r;
|
|
850
|
+
if (v === "0") return null;
|
|
849
851
|
if (l === "doughnutChart")
|
|
850
852
|
return (r.graphData?.data || []).map((i) => i.legendItemName || i.label || "");
|
|
851
|
-
if (l === "multipleLineChart" || l === "groupChart" || l === "stackedcolumn2d" || l === "stackedArea" || l === "stackBarChart" || l === "
|
|
852
|
-
if (
|
|
853
|
+
if (l === "multipleLineChart" || l === "groupChart" || l === "stackedcolumn2d" || l === "stackedArea" || l === "stackBarChart" || l === "scrollColumn2d" || l === "scrollStackedColumn2d" || l === "msCombiDy2d") {
|
|
854
|
+
if (l === "scrollColumn2d" && !(!Array.isArray(r.graphData) && r.graphData?.dataset))
|
|
853
855
|
return null;
|
|
854
856
|
const e = r.graphData?.dataset || [];
|
|
855
857
|
if (e.length > 0)
|
|
856
858
|
return e.map((i) => i.seriesname || "");
|
|
857
859
|
}
|
|
860
|
+
if (l === "scrollArea") {
|
|
861
|
+
if (!Array.isArray(r.graphData) && r.graphData?.dataset) {
|
|
862
|
+
const i = r.graphData?.dataset || [];
|
|
863
|
+
if (i.length > 0)
|
|
864
|
+
return i.map((a) => a.seriesname || "");
|
|
865
|
+
}
|
|
866
|
+
return [r.legendLabel || "Spend"];
|
|
867
|
+
}
|
|
868
|
+
if (l === "line")
|
|
869
|
+
return [r.legendLabel || "Series 1"];
|
|
858
870
|
if ((l === "column2d" || l === "bar2d" || l === "area") && Array.isArray(r.graphData)) {
|
|
859
871
|
const g = r.graphData;
|
|
860
872
|
if (g.length > 0)
|
|
861
873
|
return g.map((e) => e.label || "");
|
|
862
874
|
}
|
|
863
|
-
return r.legendLabel &&
|
|
875
|
+
return r.legendLabel && v === "1" ? [r.legendLabel] : null;
|
|
864
876
|
}
|
|
865
|
-
function
|
|
877
|
+
function Rt(r) {
|
|
866
878
|
return [
|
|
867
879
|
"multipleLineChart",
|
|
868
880
|
"groupChart",
|
|
@@ -875,97 +887,99 @@ function wt(r) {
|
|
|
875
887
|
"msCombiDy2d"
|
|
876
888
|
].includes(r);
|
|
877
889
|
}
|
|
878
|
-
function
|
|
890
|
+
function Ut(r, l, v, g) {
|
|
879
891
|
if (!Object.values(l).some(Boolean)) return r;
|
|
880
|
-
if (
|
|
892
|
+
if (v === "doughnutChart") {
|
|
881
893
|
const f = r;
|
|
882
894
|
if (!f?.data) return r;
|
|
883
|
-
const
|
|
884
|
-
...
|
|
885
|
-
color:
|
|
895
|
+
const m = (g || ee).split(",").map((S) => S.trim()), t = f.data.map((S, A) => ({
|
|
896
|
+
...S,
|
|
897
|
+
color: S.color || m[A % m.length]
|
|
886
898
|
})).filter(
|
|
887
|
-
(
|
|
899
|
+
(S) => !l[S.legendItemName || S.label || ""]
|
|
888
900
|
);
|
|
889
901
|
return { ...f, data: t };
|
|
890
902
|
}
|
|
891
|
-
if (
|
|
903
|
+
if ((v === "scrollArea" || v === "line") && Array.isArray(r))
|
|
904
|
+
return Object.values(l).some(Boolean) ? [] : r;
|
|
905
|
+
if (v === "column2d" || v === "bar2d" || v === "area") {
|
|
892
906
|
if (Array.isArray(r)) {
|
|
893
907
|
const f = (g || ee).split(",").map((t) => t.trim());
|
|
894
|
-
return r.map((t,
|
|
908
|
+
return r.map((t, S) => ({
|
|
895
909
|
...t,
|
|
896
|
-
color: t.color || f[
|
|
910
|
+
color: t.color || f[S % f.length]
|
|
897
911
|
})).filter((t) => !l[t.label || ""]);
|
|
898
912
|
}
|
|
899
913
|
return r;
|
|
900
914
|
}
|
|
901
|
-
if (!
|
|
915
|
+
if (!Rt(v)) return r;
|
|
902
916
|
const i = r;
|
|
903
917
|
if (!i?.dataset) return r;
|
|
904
|
-
const a = (
|
|
918
|
+
const a = (v === "stackedArea" ? g || Ne : g || ee).split(",").map((f) => f.trim()), u = i.dataset.map((f, m) => ({
|
|
905
919
|
...f,
|
|
906
|
-
color: f.color || a[
|
|
920
|
+
color: f.color || a[m % a.length]
|
|
907
921
|
})).filter(
|
|
908
922
|
(f) => !l[f.seriesname || ""]
|
|
909
923
|
);
|
|
910
924
|
return { ...i, dataset: u };
|
|
911
925
|
}
|
|
912
|
-
function
|
|
913
|
-
const { chartType: l, applyRoundedBarsOnRender:
|
|
926
|
+
function Mt(r) {
|
|
927
|
+
const { chartType: l, applyRoundedBarsOnRender: v } = r, [g, e] = de({}), [i, a] = de(!1), y = Qe(null), u = he((o) => {
|
|
914
928
|
e((n) => ({
|
|
915
929
|
...n,
|
|
916
930
|
[o]: !n[o]
|
|
917
931
|
}));
|
|
918
932
|
}, []), f = ge(
|
|
919
|
-
() =>
|
|
933
|
+
() => Ut(r.graphData, g, l, r.palettecolors),
|
|
920
934
|
[r.graphData, g, l, r.palettecolors]
|
|
921
|
-
),
|
|
935
|
+
), m = Xe({ ...r, graphData: f }), O = ge(
|
|
922
936
|
() => Object.entries(g).filter(([, o]) => o).map(([o]) => o).join("|") || "all",
|
|
923
937
|
[g]
|
|
924
938
|
), t = he(() => {
|
|
925
|
-
if (!
|
|
939
|
+
if (!v || !y.current) return;
|
|
926
940
|
const o = y.current;
|
|
927
941
|
if (o.getAttribute("data-rounded-applied") === "true") return;
|
|
928
942
|
const n = o.querySelector("svg");
|
|
929
943
|
if (!n) return;
|
|
930
|
-
const c = Array.from(n.querySelectorAll("rect")),
|
|
931
|
-
const b = parseFloat(_.getAttribute("height") || "0"), w = parseFloat(_.getAttribute("width") || "0"), d = _.getAttribute("fill") || "",
|
|
932
|
-
return b > 10 && w > 2 && !
|
|
944
|
+
const c = Array.from(n.querySelectorAll("rect")), p = l === "bar2d", I = c.filter((_) => {
|
|
945
|
+
const b = parseFloat(_.getAttribute("height") || "0"), w = parseFloat(_.getAttribute("width") || "0"), d = _.getAttribute("fill") || "", C = d === "#ffffff" || d === "none" || d === "transparent" || d === "#FFFFFF";
|
|
946
|
+
return b > 10 && w > 2 && !C;
|
|
933
947
|
});
|
|
934
|
-
if (
|
|
935
|
-
if (
|
|
936
|
-
|
|
937
|
-
const b = parseFloat(_.getAttribute("x") || "0"), w = parseFloat(_.getAttribute("y") || "0"), d = parseFloat(_.getAttribute("width") || "0"),
|
|
938
|
-
|
|
939
|
-
const
|
|
940
|
-
|
|
941
|
-
}), _.getAttribute("style") &&
|
|
948
|
+
if (I.length !== 0) {
|
|
949
|
+
if (p)
|
|
950
|
+
I.forEach((_) => {
|
|
951
|
+
const b = parseFloat(_.getAttribute("x") || "0"), w = parseFloat(_.getAttribute("y") || "0"), d = parseFloat(_.getAttribute("width") || "0"), C = parseFloat(_.getAttribute("height") || "0"), h = 4, j = document.createElementNS("http://www.w3.org/2000/svg", "path"), k = `M${b},${w} L${b + d - h},${w} Q${b + d},${w} ${b + d},${w + h} L${b + d},${w + C - h} Q${b + d},${w + C} ${b + d - h},${w + C} L${b},${w + C} Z`;
|
|
952
|
+
j.setAttribute("d", k), ["fill", "fill-opacity", "stroke", "stroke-width", "opacity", "class"].forEach((M) => {
|
|
953
|
+
const U = _.getAttribute(M);
|
|
954
|
+
U && j.setAttribute(M, U);
|
|
955
|
+
}), _.getAttribute("style") && j.setAttribute("style", _.getAttribute("style") || ""), _.parentNode?.replaceChild(j, _);
|
|
942
956
|
});
|
|
943
957
|
else {
|
|
944
958
|
const _ = {};
|
|
945
|
-
|
|
959
|
+
I.forEach((b) => {
|
|
946
960
|
const d = `${Math.round(parseFloat(b.getAttribute("x") || "0"))}`;
|
|
947
961
|
_[d] || (_[d] = []), _[d].push(b);
|
|
948
962
|
}), Object.values(_).forEach((b) => {
|
|
949
963
|
let w = null, d = 1 / 0;
|
|
950
964
|
b.forEach((h) => {
|
|
951
|
-
const
|
|
952
|
-
|
|
965
|
+
const j = parseFloat(h.getAttribute("y") || "0");
|
|
966
|
+
j < d && (d = j, w = h);
|
|
953
967
|
});
|
|
954
|
-
const
|
|
955
|
-
if (
|
|
956
|
-
const h = parseFloat(
|
|
957
|
-
|
|
958
|
-
const le =
|
|
959
|
-
le &&
|
|
960
|
-
}),
|
|
968
|
+
const C = w;
|
|
969
|
+
if (C) {
|
|
970
|
+
const h = parseFloat(C.getAttribute("x") || "0"), j = parseFloat(C.getAttribute("y") || "0"), k = parseFloat(C.getAttribute("width") || "0"), R = parseFloat(C.getAttribute("height") || "0"), M = 4, U = document.createElementNS("http://www.w3.org/2000/svg", "path"), Ke = `M${h},${j + R} L${h},${j + M} Q${h},${j} ${h + M},${j} L${h + k - M},${j} Q${h + k},${j} ${h + k},${j + M} L${h + k},${j + R} Z`;
|
|
971
|
+
U.setAttribute("d", Ke), ["fill", "fill-opacity", "stroke", "stroke-width", "opacity", "class"].forEach((fe) => {
|
|
972
|
+
const le = C.getAttribute(fe);
|
|
973
|
+
le && U.setAttribute(fe, le);
|
|
974
|
+
}), C.getAttribute("style") && U.setAttribute("style", C.getAttribute("style") || ""), C.parentNode?.replaceChild(U, C);
|
|
961
975
|
}
|
|
962
976
|
});
|
|
963
977
|
}
|
|
964
978
|
o.setAttribute("data-rounded-applied", "true");
|
|
965
979
|
}
|
|
966
|
-
}, [
|
|
980
|
+
}, [v, l]);
|
|
967
981
|
ve(() => {
|
|
968
|
-
if (!
|
|
982
|
+
if (!v) return;
|
|
969
983
|
y.current && y.current.removeAttribute("data-rounded-applied");
|
|
970
984
|
const o = y.current;
|
|
971
985
|
if (!o) return;
|
|
@@ -978,56 +992,58 @@ function Ut(r) {
|
|
|
978
992
|
n() && c.disconnect();
|
|
979
993
|
});
|
|
980
994
|
c.observe(o, { childList: !0, subtree: !0 });
|
|
981
|
-
const
|
|
995
|
+
const p = [
|
|
982
996
|
setTimeout(() => n(), 500),
|
|
983
997
|
setTimeout(() => n(), 1500),
|
|
984
998
|
setTimeout(() => n(), 3e3)
|
|
985
999
|
];
|
|
986
1000
|
return () => {
|
|
987
|
-
c.disconnect(),
|
|
1001
|
+
c.disconnect(), p.forEach(clearTimeout);
|
|
988
1002
|
};
|
|
989
|
-
}, [
|
|
1003
|
+
}, [v, f, t]), ve(() => {
|
|
990
1004
|
a(!1);
|
|
991
1005
|
const o = y.current;
|
|
992
1006
|
if (!o) return;
|
|
993
1007
|
const n = () => {
|
|
994
|
-
const
|
|
995
|
-
return
|
|
1008
|
+
const I = o.querySelector("svg");
|
|
1009
|
+
return I && I.getBoundingClientRect().height > 0 ? (a(!0), !0) : !1;
|
|
996
1010
|
};
|
|
997
1011
|
if (n()) return;
|
|
998
1012
|
const c = new MutationObserver(() => {
|
|
999
1013
|
n() && c.disconnect();
|
|
1000
1014
|
});
|
|
1001
1015
|
c.observe(o, { childList: !0, subtree: !0 });
|
|
1002
|
-
const
|
|
1016
|
+
const p = setTimeout(() => {
|
|
1003
1017
|
n(), c.disconnect();
|
|
1004
1018
|
}, 2e3);
|
|
1005
1019
|
return () => {
|
|
1006
|
-
c.disconnect(), clearTimeout(
|
|
1020
|
+
c.disconnect(), clearTimeout(p);
|
|
1007
1021
|
};
|
|
1008
|
-
}, [f,
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
l === "sankey" &&
|
|
1012
|
-
l === "stackedArea" &&
|
|
1013
|
-
l === "scrollArea" &&
|
|
1014
|
-
l === "msCombiDy2d" &&
|
|
1022
|
+
}, [f, O]);
|
|
1023
|
+
const S = xe(
|
|
1024
|
+
D["ckds-finops-charts"],
|
|
1025
|
+
l === "sankey" && D.sankey,
|
|
1026
|
+
l === "stackedArea" && D.stackedArea,
|
|
1027
|
+
l === "scrollArea" && D.scrollArea,
|
|
1028
|
+
l === "msCombiDy2d" && D.msCombiDy2d,
|
|
1029
|
+
l === "stackedcolumn2d" && D.stackedcolumn2d,
|
|
1030
|
+
l === "scrollStackedColumn2d" && D.scrollStackedColumn2d
|
|
1015
1031
|
);
|
|
1016
|
-
if (!
|
|
1032
|
+
if (!m)
|
|
1017
1033
|
return null;
|
|
1018
|
-
const A =
|
|
1019
|
-
return /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ $("div", { className:
|
|
1021
|
-
|
|
1034
|
+
const A = kt(r), s = At(r);
|
|
1035
|
+
return /* @__PURE__ */ Fe("div", { className: S, children: [
|
|
1036
|
+
/* @__PURE__ */ $("div", { className: D.fusion_chart_wrapper, ref: y, children: /* @__PURE__ */ $(
|
|
1037
|
+
jt,
|
|
1022
1038
|
{
|
|
1023
|
-
...
|
|
1039
|
+
...m,
|
|
1024
1040
|
events: Ze(r),
|
|
1025
1041
|
onRender: ze(r)
|
|
1026
1042
|
},
|
|
1027
|
-
|
|
1043
|
+
O
|
|
1028
1044
|
) }),
|
|
1029
1045
|
A && i && /* @__PURE__ */ $(
|
|
1030
|
-
|
|
1046
|
+
wt,
|
|
1031
1047
|
{
|
|
1032
1048
|
items: A,
|
|
1033
1049
|
colors: s,
|
|
@@ -1037,7 +1053,7 @@ function Ut(r) {
|
|
|
1037
1053
|
)
|
|
1038
1054
|
] });
|
|
1039
1055
|
}
|
|
1040
|
-
|
|
1056
|
+
Mt.displayName = "FusionChart";
|
|
1041
1057
|
export {
|
|
1042
|
-
|
|
1058
|
+
Mt as FusionChart
|
|
1043
1059
|
};
|