@plumile/ui 0.1.122 → 0.1.130
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/lib/esm/__tests__/reactDomTestUtils.js +48 -0
- package/lib/esm/__tests__/reactDomTestUtils.js.map +1 -0
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -1
- package/lib/esm/admin/theme/adminSurface.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTable.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/markdownVars.css.js +1 -0
- package/lib/esm/backoffice/atoms/tag/Tag.js +9 -8
- package/lib/esm/backoffice/atoms/tag/Tag.js.map +1 -1
- package/lib/esm/components/charts/MetricHistoryChart.js +17 -39
- package/lib/esm/components/charts/MetricHistoryChart.js.map +1 -1
- package/lib/esm/components/charts/TimeSeriesLineChart.js +37 -49
- package/lib/esm/components/charts/TimeSeriesLineChart.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.js +33 -35
- package/lib/esm/components/data-table/DataTable.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +48 -60
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
- package/lib/esm/index.js +107 -107
- package/lib/esm/internal/charts/metricHistoryChartHelpers.js +24 -0
- package/lib/esm/internal/charts/metricHistoryChartHelpers.js.map +1 -0
- package/lib/esm/internal/charts/timeSeriesLineChartHelpers.js +68 -0
- package/lib/esm/internal/charts/timeSeriesLineChartHelpers.js.map +1 -0
- package/lib/esm/internal/data-table/layout.js +6 -0
- package/lib/esm/internal/data-table/layout.js.map +1 -0
- package/lib/esm/internal/data-table/virtualization.js +12 -0
- package/lib/esm/internal/data-table/virtualization.js.map +1 -0
- package/lib/esm/node_modules/@vitest/pretty-format/dist/index.js +614 -0
- package/lib/esm/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
- package/lib/esm/node_modules/@vitest/runner/dist/chunk-artifact.js +909 -0
- package/lib/esm/node_modules/@vitest/runner/dist/chunk-artifact.js.map +1 -0
- package/lib/esm/node_modules/@vitest/runner/dist/index.js +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +50 -0
- package/lib/esm/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/display.js +424 -0
- package/lib/esm/node_modules/@vitest/utils/dist/display.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/helpers.js +43 -0
- package/lib/esm/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/source-map.js +68 -0
- package/lib/esm/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
- package/lib/esm/node_modules/@vitest/utils/dist/timers.js +19 -0
- package/lib/esm/node_modules/@vitest/utils/dist/timers.js.map +1 -0
- package/lib/esm/node_modules/tinyrainbow/dist/index.js +85 -0
- package/lib/esm/node_modules/tinyrainbow/dist/index.js.map +1 -0
- package/lib/esm/shared/currencyAmount.js +36 -23
- package/lib/esm/shared/currencyAmount.js.map +1 -1
- package/lib/types/backoffice/atoms/tag/Tag.d.ts +2 -1
- package/lib/types/backoffice/atoms/tag/Tag.d.ts.map +1 -1
- package/lib/types/components/charts/MetricHistoryChart.d.ts +0 -8
- package/lib/types/components/charts/MetricHistoryChart.d.ts.map +1 -1
- package/lib/types/components/charts/TimeSeriesLineChart.d.ts +2 -4
- package/lib/types/components/charts/TimeSeriesLineChart.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.d.ts +1 -5
- package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts +1 -34
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/internal/charts/metricHistoryChartHelpers.d.ts +4 -0
- package/lib/types/internal/charts/metricHistoryChartHelpers.d.ts.map +1 -0
- package/lib/types/internal/charts/timeSeriesLineChartHelpers.d.ts +29 -0
- package/lib/types/internal/charts/timeSeriesLineChartHelpers.d.ts.map +1 -0
- package/lib/types/internal/data-table/layout.d.ts +4 -0
- package/lib/types/internal/data-table/layout.d.ts.map +1 -0
- package/lib/types/internal/data-table/virtualization.d.ts +29 -0
- package/lib/types/internal/data-table/virtualization.d.ts.map +1 -0
- package/lib/types/shared/currencyAmount.d.ts +5 -1
- package/lib/types/shared/currencyAmount.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,614 @@
|
|
|
1
|
+
import { y as e } from "../../../tinyrainbow/dist/index.js";
|
|
2
|
+
//#region ../../node_modules/@vitest/pretty-format/dist/index.js
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
return t.forEach(function(t) {
|
|
5
|
+
t && typeof t != "string" && !Array.isArray(t) && Object.keys(t).forEach(function(n) {
|
|
6
|
+
if (n !== "default" && !(n in e)) {
|
|
7
|
+
var r = Object.getOwnPropertyDescriptor(t, n);
|
|
8
|
+
Object.defineProperty(e, n, r.get ? r : {
|
|
9
|
+
enumerable: !0,
|
|
10
|
+
get: function() {
|
|
11
|
+
return t[n];
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}), Object.freeze(e);
|
|
17
|
+
}
|
|
18
|
+
function n(e, t) {
|
|
19
|
+
let n = Object.keys(e), r = t === null ? n : n.sort(t);
|
|
20
|
+
if (Object.getOwnPropertySymbols) for (let t of Object.getOwnPropertySymbols(e)) Object.getOwnPropertyDescriptor(e, t).enumerable && r.push(t);
|
|
21
|
+
return r;
|
|
22
|
+
}
|
|
23
|
+
function r(e, t, n, r, i, a, o = ": ") {
|
|
24
|
+
let s = "", c = 0, l = e.next();
|
|
25
|
+
if (!l.done) {
|
|
26
|
+
s += t.spacingOuter;
|
|
27
|
+
let u = n + t.indent;
|
|
28
|
+
for (; !l.done;) {
|
|
29
|
+
if (s += u, c++ === t.maxWidth) {
|
|
30
|
+
s += "…";
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
let n = a(l.value[0], t, u, r, i), d = a(l.value[1], t, u, r, i);
|
|
34
|
+
s += n + o + d, l = e.next(), l.done ? t.min || (s += ",") : s += `,${t.spacingInner}`;
|
|
35
|
+
}
|
|
36
|
+
s += t.spacingOuter + n;
|
|
37
|
+
}
|
|
38
|
+
return s;
|
|
39
|
+
}
|
|
40
|
+
function i(e, t, n, r, i, a) {
|
|
41
|
+
let o = "", s = 0, c = e.next();
|
|
42
|
+
if (!c.done) {
|
|
43
|
+
o += t.spacingOuter;
|
|
44
|
+
let l = n + t.indent;
|
|
45
|
+
for (; !c.done;) {
|
|
46
|
+
if (o += l, s++ === t.maxWidth) {
|
|
47
|
+
o += "…";
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
o += a(c.value, t, l, r, i), c = e.next(), c.done ? t.min || (o += ",") : o += `,${t.spacingInner}`;
|
|
51
|
+
}
|
|
52
|
+
o += t.spacingOuter + n;
|
|
53
|
+
}
|
|
54
|
+
return o;
|
|
55
|
+
}
|
|
56
|
+
function a(e, t, n, r, i, a) {
|
|
57
|
+
let o = "";
|
|
58
|
+
e = e instanceof ArrayBuffer ? new DataView(e) : e;
|
|
59
|
+
let s = (e) => e instanceof DataView, c = s(e) ? e.byteLength : e.length;
|
|
60
|
+
if (c > 0) {
|
|
61
|
+
o += t.spacingOuter;
|
|
62
|
+
let l = n + t.indent;
|
|
63
|
+
for (let n = 0; n < c; n++) {
|
|
64
|
+
if (o += l, n === t.maxWidth) {
|
|
65
|
+
o += "…";
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
(s(e) || n in e) && (o += a(s(e) ? e.getInt8(n) : e[n], t, l, r, i)), n < c - 1 ? o += `,${t.spacingInner}` : t.min || (o += ",");
|
|
69
|
+
}
|
|
70
|
+
o += t.spacingOuter + n;
|
|
71
|
+
}
|
|
72
|
+
return o;
|
|
73
|
+
}
|
|
74
|
+
function o(e, t, r, i, a, o) {
|
|
75
|
+
let s = "", c = n(e, t.compareKeys);
|
|
76
|
+
if (c.length > 0) {
|
|
77
|
+
s += t.spacingOuter;
|
|
78
|
+
let n = r + t.indent;
|
|
79
|
+
for (let r = 0; r < c.length; r++) {
|
|
80
|
+
let l = c[r], u = o(l, t, n, i, a), d = o(e[l], t, n, i, a);
|
|
81
|
+
s += `${n + u}: ${d}`, r < c.length - 1 ? s += `,${t.spacingInner}` : t.min || (s += ",");
|
|
82
|
+
}
|
|
83
|
+
s += t.spacingOuter + r;
|
|
84
|
+
}
|
|
85
|
+
return s;
|
|
86
|
+
}
|
|
87
|
+
var s = typeof Symbol == "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621, c = " ", l = {
|
|
88
|
+
serialize: (e, t, n, r, i, s) => {
|
|
89
|
+
let l = e.toString();
|
|
90
|
+
if (l === "ArrayContaining" || l === "ArrayNotContaining") return ++r > t.maxDepth ? `[${l}]` : `${l + c}[${a(e.sample, t, n, r, i, s)}]`;
|
|
91
|
+
if (l === "ObjectContaining" || l === "ObjectNotContaining") return ++r > t.maxDepth ? `[${l}]` : `${l + c}{${o(e.sample, t, n, r, i, s)}}`;
|
|
92
|
+
if (l === "StringMatching" || l === "StringNotMatching" || l === "StringContaining" || l === "StringNotContaining") return l + c + s(e.sample, t, n, r, i);
|
|
93
|
+
if (typeof e.toAsymmetricMatcher != "function") throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);
|
|
94
|
+
return e.toAsymmetricMatcher();
|
|
95
|
+
},
|
|
96
|
+
test: (e) => e && e.$$typeof === s
|
|
97
|
+
}, u = " ", d = new Set(["DOMStringMap", "NamedNodeMap"]), f = /^(?:HTML\w*Collection|NodeList)$/;
|
|
98
|
+
function p(e) {
|
|
99
|
+
return d.has(e) || f.test(e);
|
|
100
|
+
}
|
|
101
|
+
var m = (e) => e && e.constructor && !!e.constructor.name && p(e.constructor.name);
|
|
102
|
+
function h(e) {
|
|
103
|
+
return e.constructor.name === "NamedNodeMap";
|
|
104
|
+
}
|
|
105
|
+
var ee = {
|
|
106
|
+
serialize: (e, t, n, r, i, s) => {
|
|
107
|
+
let c = e.constructor.name;
|
|
108
|
+
return ++r > t.maxDepth ? `[${c}]` : (t.min ? "" : c + u) + (d.has(c) ? `{${o(h(e) ? [...e].reduce((e, t) => (e[t.name] = t.value, e), {}) : { ...e }, t, n, r, i, s)}}` : `[${a([...e], t, n, r, i, s)}]`);
|
|
109
|
+
},
|
|
110
|
+
test: m
|
|
111
|
+
};
|
|
112
|
+
function g(e) {
|
|
113
|
+
return e.replaceAll("<", "<").replaceAll(">", ">");
|
|
114
|
+
}
|
|
115
|
+
function _(e, t, n, r, i, a, o) {
|
|
116
|
+
let s = r + n.indent, c = n.colors;
|
|
117
|
+
return e.map((e) => {
|
|
118
|
+
let l = t[e];
|
|
119
|
+
if (typeof l == "string" && l[0] === "_" && l.startsWith("__vitest_") && l.match(/__vitest_\d+__/)) return "";
|
|
120
|
+
let u = o(l, n, s, i, a);
|
|
121
|
+
return typeof l != "string" && (u.includes("\n") && (u = n.spacingOuter + s + u + n.spacingOuter + r), u = `{${u}}`), `${n.spacingInner + r + c.prop.open + e + c.prop.close}=${c.value.open}${u}${c.value.close}`;
|
|
122
|
+
}).join("");
|
|
123
|
+
}
|
|
124
|
+
function v(e, t, n, r, i, a) {
|
|
125
|
+
return e.map((e) => t.spacingOuter + n + (typeof e == "string" ? ne(e, t) : a(e, t, n, r, i))).join("");
|
|
126
|
+
}
|
|
127
|
+
function te(e, t, n, r, i, a) {
|
|
128
|
+
return t.printShadowRoot === !1 ? "" : [`${t.spacingOuter + n}#shadow-root`, v(e, t, n + t.indent, r, i, a)].join("");
|
|
129
|
+
}
|
|
130
|
+
function ne(e, t) {
|
|
131
|
+
let n = t.colors.content;
|
|
132
|
+
return n.open + g(e) + n.close;
|
|
133
|
+
}
|
|
134
|
+
function re(e, t) {
|
|
135
|
+
let n = t.colors.comment;
|
|
136
|
+
return `${n.open}<!--${g(e)}-->${n.close}`;
|
|
137
|
+
}
|
|
138
|
+
function y(e, t, n, r, i) {
|
|
139
|
+
let a = r.colors.tag;
|
|
140
|
+
return `${a.open}<${e}${t && a.close + t + r.spacingOuter + i + a.open}${n ? `>${a.close}${n}${r.spacingOuter}${i}${a.open}</${e}` : `${t && !r.min ? "" : " "}/`}>${a.close}`;
|
|
141
|
+
}
|
|
142
|
+
function b(e, t) {
|
|
143
|
+
let n = t.colors.tag;
|
|
144
|
+
return `${n.open}<${e}${n.close} …${n.open} />${n.close}`;
|
|
145
|
+
}
|
|
146
|
+
var ie = 1, x = 3, S = 8, C = 11, ae = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
147
|
+
function oe(e) {
|
|
148
|
+
try {
|
|
149
|
+
return typeof e.hasAttribute == "function" && e.hasAttribute("is");
|
|
150
|
+
} catch {
|
|
151
|
+
return !1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function se(e) {
|
|
155
|
+
let t = e.constructor.name, { nodeType: n, tagName: r } = e, i = typeof r == "string" && r.includes("-") || oe(e);
|
|
156
|
+
return n === ie && (ae.test(t) || i) || n === x && t === "Text" || n === S && t === "Comment" || n === C && t === "DocumentFragment";
|
|
157
|
+
}
|
|
158
|
+
var ce = (e) => e?.constructor?.name && se(e);
|
|
159
|
+
function le(e) {
|
|
160
|
+
return e.nodeType === x;
|
|
161
|
+
}
|
|
162
|
+
function ue(e) {
|
|
163
|
+
return e.nodeType === S;
|
|
164
|
+
}
|
|
165
|
+
function w(e) {
|
|
166
|
+
return e.nodeType === C;
|
|
167
|
+
}
|
|
168
|
+
function T(e, t) {
|
|
169
|
+
let n = e.filter((e) => e.nodeType === x ? (e.data || "").trim().length > 0 : !0);
|
|
170
|
+
return t && (n = n.filter(t)), n;
|
|
171
|
+
}
|
|
172
|
+
function E(e, t, n, r, i, a, o) {
|
|
173
|
+
if (le(e)) return ne(e.data, t);
|
|
174
|
+
if (ue(e)) return re(e.data, t);
|
|
175
|
+
let s = w(e) ? "DocumentFragment" : e.tagName.toLowerCase();
|
|
176
|
+
if (++r > t.maxDepth) return b(s, t);
|
|
177
|
+
let c = Array.prototype.slice.call(e.childNodes || e.children), l = w(e) || !e.shadowRoot ? [] : Array.prototype.slice.call(e.shadowRoot.children), u = o ? T(c, o) : c, d = o ? T(l, o) : l;
|
|
178
|
+
return y(s, _(w(e) ? [] : Array.from(e.attributes, (e) => e.name).sort(), w(e) ? {} : [...e.attributes].reduce((e, t) => (e[t.name] = t.value, e), {}), t, n + t.indent, r, i, a), (d.length > 0 ? te(d, t, n + t.indent, r, i, a) : "") + v(u, t, n + t.indent, r, i, a), t, n);
|
|
179
|
+
}
|
|
180
|
+
var de = (e, t, n, r, i, a) => E(e, t, n, r, i, a);
|
|
181
|
+
function fe(e) {
|
|
182
|
+
return {
|
|
183
|
+
test: ce,
|
|
184
|
+
serialize: (t, n, r, i, a, o) => E(t, n, r, i, a, o, e)
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
var pe = {
|
|
188
|
+
serialize: de,
|
|
189
|
+
test: ce
|
|
190
|
+
}, me = "@@__IMMUTABLE_ITERABLE__@@", he = "@@__IMMUTABLE_LIST__@@", ge = "@@__IMMUTABLE_KEYED__@@", _e = "@@__IMMUTABLE_MAP__@@", D = "@@__IMMUTABLE_ORDERED__@@", ve = "@@__IMMUTABLE_RECORD__@@", ye = "@@__IMMUTABLE_SEQ__@@", be = "@@__IMMUTABLE_SET__@@", xe = "@@__IMMUTABLE_STACK__@@", O = (e) => `Immutable.${e}`, k = (e) => `[${e}]`, A = " ", j = "…";
|
|
191
|
+
function Se(e, t, n, i, a, o, s) {
|
|
192
|
+
return ++i > t.maxDepth ? k(O(s)) : `${O(s) + A}{${r(e.entries(), t, n, i, a, o)}}`;
|
|
193
|
+
}
|
|
194
|
+
function Ce(e) {
|
|
195
|
+
let t = 0;
|
|
196
|
+
return { next() {
|
|
197
|
+
if (t < e._keys.length) {
|
|
198
|
+
let n = e._keys[t++];
|
|
199
|
+
return {
|
|
200
|
+
done: !1,
|
|
201
|
+
value: [n, e.get(n)]
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
return {
|
|
205
|
+
done: !0,
|
|
206
|
+
value: void 0
|
|
207
|
+
};
|
|
208
|
+
} };
|
|
209
|
+
}
|
|
210
|
+
function we(e, t, n, i, a, o) {
|
|
211
|
+
let s = O(e._name || "Record");
|
|
212
|
+
return ++i > t.maxDepth ? k(s) : `${s + A}{${r(Ce(e), t, n, i, a, o)}}`;
|
|
213
|
+
}
|
|
214
|
+
function Te(e, t, n, a, o, s) {
|
|
215
|
+
let c = O("Seq");
|
|
216
|
+
return ++a > t.maxDepth ? k(c) : e[ge] ? `${c + A}{${e._iter || e._object ? r(e.entries(), t, n, a, o, s) : j}}` : `${c + A}[${e._iter || e._array || e._collection || e._iterable ? i(e.values(), t, n, a, o, s) : j}]`;
|
|
217
|
+
}
|
|
218
|
+
function M(e, t, n, r, a, o, s) {
|
|
219
|
+
return ++r > t.maxDepth ? k(O(s)) : `${O(s) + A}[${i(e.values(), t, n, r, a, o)}]`;
|
|
220
|
+
}
|
|
221
|
+
var Ee = {
|
|
222
|
+
serialize: (e, t, n, r, i, a) => e[_e] ? Se(e, t, n, r, i, a, e[D] ? "OrderedMap" : "Map") : e[he] ? M(e, t, n, r, i, a, "List") : e[be] ? M(e, t, n, r, i, a, e[D] ? "OrderedSet" : "Set") : e[xe] ? M(e, t, n, r, i, a, "Stack") : e[ye] ? Te(e, t, n, r, i, a) : we(e, t, n, r, i, a),
|
|
223
|
+
test: (e) => e && (e[me] === !0 || e[ve] === !0)
|
|
224
|
+
};
|
|
225
|
+
function N(e) {
|
|
226
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
227
|
+
}
|
|
228
|
+
var P = { exports: {} }, F = {}, I;
|
|
229
|
+
function De() {
|
|
230
|
+
if (I) return F;
|
|
231
|
+
I = 1;
|
|
232
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), o = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.view_transition"), p = Symbol.for("react.client.reference");
|
|
233
|
+
function m(p) {
|
|
234
|
+
if (typeof p == "object" && p) {
|
|
235
|
+
var m = p.$$typeof;
|
|
236
|
+
switch (m) {
|
|
237
|
+
case e: switch (p = p.type, p) {
|
|
238
|
+
case n:
|
|
239
|
+
case i:
|
|
240
|
+
case r:
|
|
241
|
+
case c:
|
|
242
|
+
case l:
|
|
243
|
+
case f: return p;
|
|
244
|
+
default: switch (p &&= p.$$typeof, p) {
|
|
245
|
+
case o:
|
|
246
|
+
case s:
|
|
247
|
+
case d:
|
|
248
|
+
case u: return p;
|
|
249
|
+
case a: return p;
|
|
250
|
+
default: return m;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
case t: return m;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
return F.ContextConsumer = a, F.ContextProvider = o, F.Element = e, F.ForwardRef = s, F.Fragment = n, F.Lazy = d, F.Memo = u, F.Portal = t, F.Profiler = i, F.StrictMode = r, F.Suspense = c, F.SuspenseList = l, F.isContextConsumer = function(e) {
|
|
258
|
+
return m(e) === a;
|
|
259
|
+
}, F.isContextProvider = function(e) {
|
|
260
|
+
return m(e) === o;
|
|
261
|
+
}, F.isElement = function(t) {
|
|
262
|
+
return typeof t == "object" && !!t && t.$$typeof === e;
|
|
263
|
+
}, F.isForwardRef = function(e) {
|
|
264
|
+
return m(e) === s;
|
|
265
|
+
}, F.isFragment = function(e) {
|
|
266
|
+
return m(e) === n;
|
|
267
|
+
}, F.isLazy = function(e) {
|
|
268
|
+
return m(e) === d;
|
|
269
|
+
}, F.isMemo = function(e) {
|
|
270
|
+
return m(e) === u;
|
|
271
|
+
}, F.isPortal = function(e) {
|
|
272
|
+
return m(e) === t;
|
|
273
|
+
}, F.isProfiler = function(e) {
|
|
274
|
+
return m(e) === i;
|
|
275
|
+
}, F.isStrictMode = function(e) {
|
|
276
|
+
return m(e) === r;
|
|
277
|
+
}, F.isSuspense = function(e) {
|
|
278
|
+
return m(e) === c;
|
|
279
|
+
}, F.isSuspenseList = function(e) {
|
|
280
|
+
return m(e) === l;
|
|
281
|
+
}, F.isValidElementType = function(e) {
|
|
282
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === i || e === r || e === c || e === l || typeof e == "object" && e && (e.$$typeof === d || e.$$typeof === u || e.$$typeof === o || e.$$typeof === a || e.$$typeof === s || e.$$typeof === p || e.getModuleId !== void 0));
|
|
283
|
+
}, F.typeOf = m, F;
|
|
284
|
+
}
|
|
285
|
+
var L;
|
|
286
|
+
function Oe() {
|
|
287
|
+
return L ? P.exports : (L = 1, P.exports = De(), P.exports);
|
|
288
|
+
}
|
|
289
|
+
var R = Oe(), ke = /* @__PURE__ */ t({
|
|
290
|
+
__proto__: null,
|
|
291
|
+
default: /* @__PURE__ */ N(R)
|
|
292
|
+
}, [R]), z = { exports: {} }, B = {}, V;
|
|
293
|
+
function Ae() {
|
|
294
|
+
if (V) return B;
|
|
295
|
+
V = 1;
|
|
296
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), s = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.for("react.module.reference");
|
|
297
|
+
function h(p) {
|
|
298
|
+
if (typeof p == "object" && p) {
|
|
299
|
+
var m = p.$$typeof;
|
|
300
|
+
switch (m) {
|
|
301
|
+
case e: switch (p = p.type, p) {
|
|
302
|
+
case n:
|
|
303
|
+
case i:
|
|
304
|
+
case r:
|
|
305
|
+
case l:
|
|
306
|
+
case u: return p;
|
|
307
|
+
default: switch (p &&= p.$$typeof, p) {
|
|
308
|
+
case s:
|
|
309
|
+
case o:
|
|
310
|
+
case c:
|
|
311
|
+
case f:
|
|
312
|
+
case d:
|
|
313
|
+
case a: return p;
|
|
314
|
+
default: return m;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
case t: return m;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
return B.ContextConsumer = o, B.ContextProvider = a, B.Element = e, B.ForwardRef = c, B.Fragment = n, B.Lazy = f, B.Memo = d, B.Portal = t, B.Profiler = i, B.StrictMode = r, B.Suspense = l, B.SuspenseList = u, B.isAsyncMode = function() {
|
|
322
|
+
return !1;
|
|
323
|
+
}, B.isConcurrentMode = function() {
|
|
324
|
+
return !1;
|
|
325
|
+
}, B.isContextConsumer = function(e) {
|
|
326
|
+
return h(e) === o;
|
|
327
|
+
}, B.isContextProvider = function(e) {
|
|
328
|
+
return h(e) === a;
|
|
329
|
+
}, B.isElement = function(t) {
|
|
330
|
+
return typeof t == "object" && !!t && t.$$typeof === e;
|
|
331
|
+
}, B.isForwardRef = function(e) {
|
|
332
|
+
return h(e) === c;
|
|
333
|
+
}, B.isFragment = function(e) {
|
|
334
|
+
return h(e) === n;
|
|
335
|
+
}, B.isLazy = function(e) {
|
|
336
|
+
return h(e) === f;
|
|
337
|
+
}, B.isMemo = function(e) {
|
|
338
|
+
return h(e) === d;
|
|
339
|
+
}, B.isPortal = function(e) {
|
|
340
|
+
return h(e) === t;
|
|
341
|
+
}, B.isProfiler = function(e) {
|
|
342
|
+
return h(e) === i;
|
|
343
|
+
}, B.isStrictMode = function(e) {
|
|
344
|
+
return h(e) === r;
|
|
345
|
+
}, B.isSuspense = function(e) {
|
|
346
|
+
return h(e) === l;
|
|
347
|
+
}, B.isSuspenseList = function(e) {
|
|
348
|
+
return h(e) === u;
|
|
349
|
+
}, B.isValidElementType = function(e) {
|
|
350
|
+
return !!(typeof e == "string" || typeof e == "function" || e === n || e === i || e === r || e === l || e === u || e === p || typeof e == "object" && e && (e.$$typeof === f || e.$$typeof === d || e.$$typeof === a || e.$$typeof === o || e.$$typeof === c || e.$$typeof === m || e.getModuleId !== void 0));
|
|
351
|
+
}, B.typeOf = h, B;
|
|
352
|
+
}
|
|
353
|
+
var H;
|
|
354
|
+
function je() {
|
|
355
|
+
return H ? z.exports : (H = 1, z.exports = Ae(), z.exports);
|
|
356
|
+
}
|
|
357
|
+
var U = je(), Me = /* @__PURE__ */ t({
|
|
358
|
+
__proto__: null,
|
|
359
|
+
default: /* @__PURE__ */ N(U)
|
|
360
|
+
}, [U]), W = Object.fromEntries([
|
|
361
|
+
"isAsyncMode",
|
|
362
|
+
"isConcurrentMode",
|
|
363
|
+
"isContextConsumer",
|
|
364
|
+
"isContextProvider",
|
|
365
|
+
"isElement",
|
|
366
|
+
"isForwardRef",
|
|
367
|
+
"isFragment",
|
|
368
|
+
"isLazy",
|
|
369
|
+
"isMemo",
|
|
370
|
+
"isPortal",
|
|
371
|
+
"isProfiler",
|
|
372
|
+
"isStrictMode",
|
|
373
|
+
"isSuspense",
|
|
374
|
+
"isSuspenseList",
|
|
375
|
+
"isValidElementType"
|
|
376
|
+
].map((e) => [e, (t) => Me[e](t) || ke[e](t)]));
|
|
377
|
+
function G(e, t = []) {
|
|
378
|
+
if (Array.isArray(e)) for (let n of e) G(n, t);
|
|
379
|
+
else e != null && e !== !1 && e !== "" && t.push(e);
|
|
380
|
+
return t;
|
|
381
|
+
}
|
|
382
|
+
function K(e) {
|
|
383
|
+
let t = e.type;
|
|
384
|
+
if (typeof t == "string") return t;
|
|
385
|
+
if (typeof t == "function") return t.displayName || t.name || "Unknown";
|
|
386
|
+
if (W.isFragment(e)) return "React.Fragment";
|
|
387
|
+
if (W.isSuspense(e)) return "React.Suspense";
|
|
388
|
+
if (typeof t == "object" && t) {
|
|
389
|
+
if (W.isContextProvider(e)) return "Context.Provider";
|
|
390
|
+
if (W.isContextConsumer(e)) return "Context.Consumer";
|
|
391
|
+
if (W.isForwardRef(e)) {
|
|
392
|
+
if (t.displayName) return t.displayName;
|
|
393
|
+
let e = t.render.displayName || t.render.name || "";
|
|
394
|
+
return e === "" ? "ForwardRef" : `ForwardRef(${e})`;
|
|
395
|
+
}
|
|
396
|
+
if (W.isMemo(e)) {
|
|
397
|
+
let e = t.displayName || t.type.displayName || t.type.name || "";
|
|
398
|
+
return e === "" ? "Memo" : `Memo(${e})`;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return "UNDEFINED";
|
|
402
|
+
}
|
|
403
|
+
function Ne(e) {
|
|
404
|
+
let { props: t } = e;
|
|
405
|
+
return Object.keys(t).filter((e) => e !== "children" && t[e] !== void 0).sort();
|
|
406
|
+
}
|
|
407
|
+
var Pe = {
|
|
408
|
+
serialize: (e, t, n, r, i, a) => ++r > t.maxDepth ? b(K(e), t) : y(K(e), _(Ne(e), e.props, t, n + t.indent, r, i, a), v(G(e.props.children), t, n + t.indent, r, i, a), t, n),
|
|
409
|
+
test: (e) => e != null && W.isElement(e)
|
|
410
|
+
}, Fe = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
411
|
+
function Ie(e) {
|
|
412
|
+
let { props: t } = e;
|
|
413
|
+
return t ? Object.keys(t).filter((e) => t[e] !== void 0).sort() : [];
|
|
414
|
+
}
|
|
415
|
+
var Le = {
|
|
416
|
+
serialize: (e, t, n, r, i, a) => ++r > t.maxDepth ? b(e.type, t) : y(e.type, e.props ? _(Ie(e), e.props, t, n + t.indent, r, i, a) : "", e.children ? v(e.children, t, n + t.indent, r, i, a) : "", t, n),
|
|
417
|
+
test: (e) => e && e.$$typeof === Fe
|
|
418
|
+
}, q = Object.prototype.toString, Re = Date.prototype.toISOString, ze = Error.prototype.toString, J = RegExp.prototype.toString;
|
|
419
|
+
function Y(e) {
|
|
420
|
+
return typeof e.constructor == "function" && e.constructor.name || "Object";
|
|
421
|
+
}
|
|
422
|
+
function Be(e) {
|
|
423
|
+
return typeof window < "u" && e === window;
|
|
424
|
+
}
|
|
425
|
+
var Ve = /^Symbol\((.*)\)(.*)$/, He = /\n/g, Ue = class extends Error {
|
|
426
|
+
constructor(e, t) {
|
|
427
|
+
super(e), this.stack = t, this.name = this.constructor.name;
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
function We(e) {
|
|
431
|
+
return e === "[object Array]" || e === "[object ArrayBuffer]" || e === "[object DataView]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object Int8Array]" || e === "[object Int16Array]" || e === "[object Int32Array]" || e === "[object Uint8Array]" || e === "[object Uint8ClampedArray]" || e === "[object Uint16Array]" || e === "[object Uint32Array]";
|
|
432
|
+
}
|
|
433
|
+
function Ge(e) {
|
|
434
|
+
return Object.is(e, -0) ? "-0" : String(e);
|
|
435
|
+
}
|
|
436
|
+
function Ke(e) {
|
|
437
|
+
return String(`${e}n`);
|
|
438
|
+
}
|
|
439
|
+
function qe(e, t) {
|
|
440
|
+
return t ? `[Function ${e.name || "anonymous"}]` : "[Function]";
|
|
441
|
+
}
|
|
442
|
+
function Je(e) {
|
|
443
|
+
return String(e).replace(Ve, "Symbol($1)");
|
|
444
|
+
}
|
|
445
|
+
function Ye(e) {
|
|
446
|
+
return `[${ze.call(e)}]`;
|
|
447
|
+
}
|
|
448
|
+
function Xe(e, t, n, r) {
|
|
449
|
+
if (e === !0 || e === !1) return `${e}`;
|
|
450
|
+
if (e === void 0) return "undefined";
|
|
451
|
+
if (e === null) return "null";
|
|
452
|
+
let i = typeof e;
|
|
453
|
+
if (i === "number") return Ge(e);
|
|
454
|
+
if (i === "bigint") return Ke(e);
|
|
455
|
+
if (i === "string") return r ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`;
|
|
456
|
+
if (i === "function") return qe(e, t);
|
|
457
|
+
if (i === "symbol") return Je(e);
|
|
458
|
+
let a = q.call(e);
|
|
459
|
+
return a === "[object WeakMap]" ? "WeakMap {}" : a === "[object WeakSet]" ? "WeakSet {}" : a === "[object Function]" || a === "[object GeneratorFunction]" ? qe(e, t) : a === "[object Symbol]" ? Je(e) : a === "[object Date]" ? Number.isNaN(+e) ? "Date { NaN }" : Re.call(e) : a === "[object Error]" ? Ye(e) : a === "[object RegExp]" ? n ? J.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") : J.call(e) : e instanceof Error ? Ye(e) : null;
|
|
460
|
+
}
|
|
461
|
+
function Ze(e, t, n, s, c, l) {
|
|
462
|
+
if (c.includes(e)) return "[Circular]";
|
|
463
|
+
c = [...c], c.push(e);
|
|
464
|
+
let u = ++s > t.maxDepth, d = t.min;
|
|
465
|
+
if (t.callToJSON && !u && e.toJSON && typeof e.toJSON == "function" && !l) return Z(e.toJSON(), t, n, s, c, !0);
|
|
466
|
+
let f = q.call(e);
|
|
467
|
+
return f === "[object Arguments]" ? u ? "[Arguments]" : `${d ? "" : "Arguments "}[${a(e, t, n, s, c, Z)}]` : We(f) ? u ? `[${e.constructor.name}]` : `${d || !t.printBasicPrototype && e.constructor.name === "Array" ? "" : `${e.constructor.name} `}[${a(e, t, n, s, c, Z)}]` : f === "[object Map]" ? u ? "[Map]" : `Map {${r(e.entries(), t, n, s, c, Z, " => ")}}` : f === "[object Set]" ? u ? "[Set]" : `Set {${i(e.values(), t, n, s, c, Z)}}` : u || Be(e) ? `[${Y(e)}]` : `${d || !t.printBasicPrototype && Y(e) === "Object" ? "" : `${Y(e)} `}{${o(e, t, n, s, c, Z)}}`;
|
|
468
|
+
}
|
|
469
|
+
var Qe = {
|
|
470
|
+
test: (e) => e && e instanceof Error,
|
|
471
|
+
serialize(e, t, n, i, a, o) {
|
|
472
|
+
if (a.includes(e)) return "[Circular]";
|
|
473
|
+
a = [...a, e];
|
|
474
|
+
let s = ++i > t.maxDepth, { message: c, cause: l, ...u } = e, d = {
|
|
475
|
+
message: c,
|
|
476
|
+
...l === void 0 ? {} : { cause: l },
|
|
477
|
+
...e instanceof AggregateError ? { errors: e.errors } : {},
|
|
478
|
+
...u
|
|
479
|
+
}, f = e.name === "Error" ? Y(e) : e.name;
|
|
480
|
+
return s ? `[${f}]` : `${f} {${r(Object.entries(d).values(), t, n, i, a, o)}}`;
|
|
481
|
+
}
|
|
482
|
+
};
|
|
483
|
+
function $e(e) {
|
|
484
|
+
return e.serialize != null;
|
|
485
|
+
}
|
|
486
|
+
function et(e, t, n, r, i, a) {
|
|
487
|
+
let o;
|
|
488
|
+
try {
|
|
489
|
+
o = $e(e) ? e.serialize(t, n, r, i, a, Z) : e.print(t, (e) => Z(e, n, r, i, a), (e) => {
|
|
490
|
+
let t = r + n.indent;
|
|
491
|
+
return t + e.replaceAll(He, `\n${t}`);
|
|
492
|
+
}, {
|
|
493
|
+
edgeSpacing: n.spacingOuter,
|
|
494
|
+
min: n.min,
|
|
495
|
+
spacing: n.spacingInner
|
|
496
|
+
}, n.colors);
|
|
497
|
+
} catch (e) {
|
|
498
|
+
throw new Ue(e.message, e.stack);
|
|
499
|
+
}
|
|
500
|
+
if (typeof o != "string") throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof o}".`);
|
|
501
|
+
return o;
|
|
502
|
+
}
|
|
503
|
+
function X(e, t) {
|
|
504
|
+
for (let n of e) try {
|
|
505
|
+
if (n.test(t)) return n;
|
|
506
|
+
} catch (e) {
|
|
507
|
+
throw new Ue(e.message, e.stack);
|
|
508
|
+
}
|
|
509
|
+
return null;
|
|
510
|
+
}
|
|
511
|
+
function Z(e, t, n, r, i, a) {
|
|
512
|
+
let o, s = X(t.plugins, e);
|
|
513
|
+
if (s !== null) o = et(s, e, t, n, r, i);
|
|
514
|
+
else {
|
|
515
|
+
let s = Xe(e, t.printFunctionName, t.escapeRegex, t.escapeString);
|
|
516
|
+
o = s === null ? Ze(e, t, n, r, i, a) : s;
|
|
517
|
+
}
|
|
518
|
+
return t._outputLengthPerDepth[r] ??= 0, t._outputLengthPerDepth[r] += o.length, t._outputLengthPerDepth[r] > t.maxOutputLength && (t.maxDepth = 0), o;
|
|
519
|
+
}
|
|
520
|
+
var Q = {
|
|
521
|
+
comment: "gray",
|
|
522
|
+
content: "reset",
|
|
523
|
+
prop: "yellow",
|
|
524
|
+
tag: "cyan",
|
|
525
|
+
value: "green"
|
|
526
|
+
}, tt = Object.keys(Q), $ = {
|
|
527
|
+
callToJSON: !0,
|
|
528
|
+
compareKeys: void 0,
|
|
529
|
+
escapeRegex: !1,
|
|
530
|
+
escapeString: !0,
|
|
531
|
+
highlight: !1,
|
|
532
|
+
indent: 2,
|
|
533
|
+
maxDepth: Infinity,
|
|
534
|
+
maxOutputLength: 1e6,
|
|
535
|
+
maxWidth: Infinity,
|
|
536
|
+
min: !1,
|
|
537
|
+
plugins: [],
|
|
538
|
+
printBasicPrototype: !0,
|
|
539
|
+
printFunctionName: !0,
|
|
540
|
+
printShadowRoot: !0,
|
|
541
|
+
theme: Q
|
|
542
|
+
};
|
|
543
|
+
function nt(e) {
|
|
544
|
+
for (let t of Object.keys(e)) if (!Object.hasOwn($, t)) throw Error(`pretty-format: Unknown option "${t}".`);
|
|
545
|
+
if (e.min && e.indent !== void 0 && e.indent !== 0) throw Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
|
|
546
|
+
}
|
|
547
|
+
function rt() {
|
|
548
|
+
return tt.reduce((t, n) => {
|
|
549
|
+
let r = Q[n], i = r && e[r];
|
|
550
|
+
if (i && typeof i.close == "string" && typeof i.open == "string") t[n] = i;
|
|
551
|
+
else throw Error(`pretty-format: Option "theme" has a key "${n}" whose value "${r}" is undefined in ansi-styles.`);
|
|
552
|
+
return t;
|
|
553
|
+
}, Object.create(null));
|
|
554
|
+
}
|
|
555
|
+
function it() {
|
|
556
|
+
return tt.reduce((e, t) => (e[t] = {
|
|
557
|
+
close: "",
|
|
558
|
+
open: ""
|
|
559
|
+
}, e), Object.create(null));
|
|
560
|
+
}
|
|
561
|
+
function at(e) {
|
|
562
|
+
return e?.printFunctionName ?? $.printFunctionName;
|
|
563
|
+
}
|
|
564
|
+
function ot(e) {
|
|
565
|
+
return e?.escapeRegex ?? $.escapeRegex;
|
|
566
|
+
}
|
|
567
|
+
function st(e) {
|
|
568
|
+
return e?.escapeString ?? $.escapeString;
|
|
569
|
+
}
|
|
570
|
+
function ct(e) {
|
|
571
|
+
return {
|
|
572
|
+
callToJSON: e?.callToJSON ?? $.callToJSON,
|
|
573
|
+
colors: e?.highlight ? rt() : it(),
|
|
574
|
+
compareKeys: typeof e?.compareKeys == "function" || e?.compareKeys === null ? e.compareKeys : $.compareKeys,
|
|
575
|
+
escapeRegex: ot(e),
|
|
576
|
+
escapeString: st(e),
|
|
577
|
+
indent: e?.min ? "" : lt(e?.indent ?? $.indent),
|
|
578
|
+
maxDepth: e?.maxDepth ?? $.maxDepth,
|
|
579
|
+
maxWidth: e?.maxWidth ?? $.maxWidth,
|
|
580
|
+
min: e?.min ?? $.min,
|
|
581
|
+
plugins: e?.plugins ?? $.plugins,
|
|
582
|
+
printBasicPrototype: e?.printBasicPrototype ?? !0,
|
|
583
|
+
printFunctionName: at(e),
|
|
584
|
+
printShadowRoot: e?.printShadowRoot ?? !0,
|
|
585
|
+
spacingInner: e?.min ? " " : "\n",
|
|
586
|
+
spacingOuter: e?.min ? "" : "\n",
|
|
587
|
+
maxOutputLength: e?.maxOutputLength ?? $.maxOutputLength,
|
|
588
|
+
_outputLengthPerDepth: []
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
function lt(e) {
|
|
592
|
+
return Array.from({ length: e + 1 }).join(" ");
|
|
593
|
+
}
|
|
594
|
+
function ut(e, t) {
|
|
595
|
+
if (t && (nt(t), t.plugins)) {
|
|
596
|
+
let n = X(t.plugins, e);
|
|
597
|
+
if (n !== null) return et(n, e, ct(t), "", 0, []);
|
|
598
|
+
}
|
|
599
|
+
let n = Xe(e, at(t), ot(t), st(t));
|
|
600
|
+
return n === null ? Ze(e, ct(t), "", 0, []) : n;
|
|
601
|
+
}
|
|
602
|
+
var dt = {
|
|
603
|
+
AsymmetricMatcher: l,
|
|
604
|
+
DOMCollection: ee,
|
|
605
|
+
DOMElement: pe,
|
|
606
|
+
Immutable: Ee,
|
|
607
|
+
ReactElement: Pe,
|
|
608
|
+
ReactTestComponent: Le,
|
|
609
|
+
Error: Qe
|
|
610
|
+
};
|
|
611
|
+
//#endregion
|
|
612
|
+
export { fe as createDOMElementFilter, ut as format, dt as plugins };
|
|
613
|
+
|
|
614
|
+
//# sourceMappingURL=index.js.map
|