@db-vincent/react 0.0.0-stage → 0.1.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/components/Accordion/Accordion.d.ts +14 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/index.d.ts +4 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +11 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +12 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +13 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Breadcrumbs/index.d.ts +4 -0
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +16 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +13 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +16 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Chip/Chip.d.ts +11 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/index.d.ts +3 -0
- package/dist/components/Chip/index.d.ts.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +7 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/components/CodeBlock/index.d.ts +3 -0
- package/dist/components/CodeBlock/index.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +10 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/EmptyState/index.d.ts +3 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -0
- package/dist/components/Example/Example.d.ts +9 -0
- package/dist/components/Example/Example.d.ts.map +1 -0
- package/dist/components/Example/index.d.ts +3 -0
- package/dist/components/Example/index.d.ts.map +1 -0
- package/dist/components/Grid/Grid.d.ts +7 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +3 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/GridItem/GridItem.d.ts +7 -0
- package/dist/components/GridItem/GridItem.d.ts.map +1 -0
- package/dist/components/GridItem/index.d.ts +3 -0
- package/dist/components/GridItem/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +14 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +15 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.d.ts +46 -0
- package/dist/components/Navbar/Navbar.d.ts.map +1 -0
- package/dist/components/Navbar/index.d.ts +4 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +9 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +13 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +16 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +9 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup/index.d.ts +3 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -0
- package/dist/components/Section/Section.d.ts +9 -0
- package/dist/components/Section/Section.d.ts.map +1 -0
- package/dist/components/Section/index.d.ts +3 -0
- package/dist/components/Section/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +29 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +4 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +29 -0
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -0
- package/dist/components/Sidebar/index.d.ts +4 -0
- package/dist/components/Sidebar/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +8 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +4 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +8 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +4 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +28 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts +5 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/TextField/TextField.d.ts +30 -0
- package/dist/components/TextField/TextField.d.ts.map +1 -0
- package/dist/components/TextField/index.d.ts +3 -0
- package/dist/components/TextField/index.d.ts.map +1 -0
- package/dist/components/ThemeToggle/ThemeToggle.d.ts +6 -0
- package/dist/components/ThemeToggle/ThemeToggle.d.ts.map +1 -0
- package/dist/components/ThemeToggle/index.d.ts +3 -0
- package/dist/components/ThemeToggle/index.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts +19 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/index.d.ts +4 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/TopBar/TopBar.d.ts +8 -0
- package/dist/components/TopBar/TopBar.d.ts.map +1 -0
- package/dist/components/TopBar/index.d.ts +3 -0
- package/dist/components/TopBar/index.d.ts.map +1 -0
- package/dist/components/data/icons.d.ts +2 -0
- package/dist/components/data/icons.d.ts.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4103 -0
- package/dist/index.js.map +1 -0
- package/package.json +43 -4
- package/README.md +0 -3
package/dist/index.js
ADDED
|
@@ -0,0 +1,4103 @@
|
|
|
1
|
+
var xr = { exports: {} }, rr = {}, jr = { exports: {} }, X = {};
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var bt;
|
|
12
|
+
function Kt() {
|
|
13
|
+
if (bt) return X;
|
|
14
|
+
bt = 1;
|
|
15
|
+
var c = Symbol.for("react.element"), s = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), j = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), k = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), y = Symbol.iterator;
|
|
16
|
+
function E(n) {
|
|
17
|
+
return n === null || typeof n != "object" ? null : (n = y && n[y] || n["@@iterator"], typeof n == "function" ? n : null);
|
|
18
|
+
}
|
|
19
|
+
var b = { isMounted: function() {
|
|
20
|
+
return !1;
|
|
21
|
+
}, enqueueForceUpdate: function() {
|
|
22
|
+
}, enqueueReplaceState: function() {
|
|
23
|
+
}, enqueueSetState: function() {
|
|
24
|
+
} }, O = Object.assign, $ = {};
|
|
25
|
+
function K(n, u, A) {
|
|
26
|
+
this.props = n, this.context = u, this.refs = $, this.updater = A || b;
|
|
27
|
+
}
|
|
28
|
+
K.prototype.isReactComponent = {}, K.prototype.setState = function(n, u) {
|
|
29
|
+
if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
30
|
+
this.updater.enqueueSetState(this, n, u, "setState");
|
|
31
|
+
}, K.prototype.forceUpdate = function(n) {
|
|
32
|
+
this.updater.enqueueForceUpdate(this, n, "forceUpdate");
|
|
33
|
+
};
|
|
34
|
+
function Z() {
|
|
35
|
+
}
|
|
36
|
+
Z.prototype = K.prototype;
|
|
37
|
+
function B(n, u, A) {
|
|
38
|
+
this.props = n, this.context = u, this.refs = $, this.updater = A || b;
|
|
39
|
+
}
|
|
40
|
+
var se = B.prototype = new Z();
|
|
41
|
+
se.constructor = B, O(se, K.prototype), se.isPureReactComponent = !0;
|
|
42
|
+
var Q = Array.isArray, G = Object.prototype.hasOwnProperty, ue = { current: null }, le = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
|
+
function ie(n, u, A) {
|
|
44
|
+
var L, P = {}, f = null, D = null;
|
|
45
|
+
if (u != null) for (L in u.ref !== void 0 && (D = u.ref), u.key !== void 0 && (f = "" + u.key), u) G.call(u, L) && !le.hasOwnProperty(L) && (P[L] = u[L]);
|
|
46
|
+
var V = arguments.length - 2;
|
|
47
|
+
if (V === 1) P.children = A;
|
|
48
|
+
else if (1 < V) {
|
|
49
|
+
for (var re = Array(V), he = 0; he < V; he++) re[he] = arguments[he + 2];
|
|
50
|
+
P.children = re;
|
|
51
|
+
}
|
|
52
|
+
if (n && n.defaultProps) for (L in V = n.defaultProps, V) P[L] === void 0 && (P[L] = V[L]);
|
|
53
|
+
return { $$typeof: c, type: n, key: f, ref: D, props: P, _owner: ue.current };
|
|
54
|
+
}
|
|
55
|
+
function F(n, u) {
|
|
56
|
+
return { $$typeof: c, type: n.type, key: u, ref: n.ref, props: n.props, _owner: n._owner };
|
|
57
|
+
}
|
|
58
|
+
function W(n) {
|
|
59
|
+
return typeof n == "object" && n !== null && n.$$typeof === c;
|
|
60
|
+
}
|
|
61
|
+
function oe(n) {
|
|
62
|
+
var u = { "=": "=0", ":": "=2" };
|
|
63
|
+
return "$" + n.replace(/[=:]/g, function(A) {
|
|
64
|
+
return u[A];
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
var be = /\/+/g;
|
|
68
|
+
function fe(n, u) {
|
|
69
|
+
return typeof n == "object" && n !== null && n.key != null ? oe("" + n.key) : u.toString(36);
|
|
70
|
+
}
|
|
71
|
+
function l(n, u, A, L, P) {
|
|
72
|
+
var f = typeof n;
|
|
73
|
+
(f === "undefined" || f === "boolean") && (n = null);
|
|
74
|
+
var D = !1;
|
|
75
|
+
if (n === null) D = !0;
|
|
76
|
+
else switch (f) {
|
|
77
|
+
case "string":
|
|
78
|
+
case "number":
|
|
79
|
+
D = !0;
|
|
80
|
+
break;
|
|
81
|
+
case "object":
|
|
82
|
+
switch (n.$$typeof) {
|
|
83
|
+
case c:
|
|
84
|
+
case s:
|
|
85
|
+
D = !0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (D) return D = n, P = P(D), n = L === "" ? "." + fe(D, 0) : L, Q(P) ? (A = "", n != null && (A = n.replace(be, "$&/") + "/"), l(P, u, A, "", function(he) {
|
|
89
|
+
return he;
|
|
90
|
+
})) : P != null && (W(P) && (P = F(P, A + (!P.key || D && D.key === P.key ? "" : ("" + P.key).replace(be, "$&/") + "/") + n)), u.push(P)), 1;
|
|
91
|
+
if (D = 0, L = L === "" ? "." : L + ":", Q(n)) for (var V = 0; V < n.length; V++) {
|
|
92
|
+
f = n[V];
|
|
93
|
+
var re = L + fe(f, V);
|
|
94
|
+
D += l(f, u, A, re, P);
|
|
95
|
+
}
|
|
96
|
+
else if (re = E(n), typeof re == "function") for (n = re.call(n), V = 0; !(f = n.next()).done; ) f = f.value, re = L + fe(f, V++), D += l(f, u, A, re, P);
|
|
97
|
+
else if (f === "object") throw u = String(n), Error("Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead.");
|
|
98
|
+
return D;
|
|
99
|
+
}
|
|
100
|
+
function g(n, u, A) {
|
|
101
|
+
if (n == null) return n;
|
|
102
|
+
var L = [], P = 0;
|
|
103
|
+
return l(n, L, "", "", function(f) {
|
|
104
|
+
return u.call(A, f, P++);
|
|
105
|
+
}), L;
|
|
106
|
+
}
|
|
107
|
+
function C(n) {
|
|
108
|
+
if (n._status === -1) {
|
|
109
|
+
var u = n._result;
|
|
110
|
+
u = u(), u.then(function(A) {
|
|
111
|
+
(n._status === 0 || n._status === -1) && (n._status = 1, n._result = A);
|
|
112
|
+
}, function(A) {
|
|
113
|
+
(n._status === 0 || n._status === -1) && (n._status = 2, n._result = A);
|
|
114
|
+
}), n._status === -1 && (n._status = 0, n._result = u);
|
|
115
|
+
}
|
|
116
|
+
if (n._status === 1) return n._result.default;
|
|
117
|
+
throw n._result;
|
|
118
|
+
}
|
|
119
|
+
var h = { current: null }, Y = { transition: null }, z = { ReactCurrentDispatcher: h, ReactCurrentBatchConfig: Y, ReactCurrentOwner: ue };
|
|
120
|
+
function ee() {
|
|
121
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
122
|
+
}
|
|
123
|
+
return X.Children = { map: g, forEach: function(n, u, A) {
|
|
124
|
+
g(n, function() {
|
|
125
|
+
u.apply(this, arguments);
|
|
126
|
+
}, A);
|
|
127
|
+
}, count: function(n) {
|
|
128
|
+
var u = 0;
|
|
129
|
+
return g(n, function() {
|
|
130
|
+
u++;
|
|
131
|
+
}), u;
|
|
132
|
+
}, toArray: function(n) {
|
|
133
|
+
return g(n, function(u) {
|
|
134
|
+
return u;
|
|
135
|
+
}) || [];
|
|
136
|
+
}, only: function(n) {
|
|
137
|
+
if (!W(n)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
138
|
+
return n;
|
|
139
|
+
} }, X.Component = K, X.Fragment = p, X.Profiler = m, X.PureComponent = B, X.StrictMode = v, X.Suspense = N, X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = z, X.act = ee, X.cloneElement = function(n, u, A) {
|
|
140
|
+
if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
|
|
141
|
+
var L = O({}, n.props), P = n.key, f = n.ref, D = n._owner;
|
|
142
|
+
if (u != null) {
|
|
143
|
+
if (u.ref !== void 0 && (f = u.ref, D = ue.current), u.key !== void 0 && (P = "" + u.key), n.type && n.type.defaultProps) var V = n.type.defaultProps;
|
|
144
|
+
for (re in u) G.call(u, re) && !le.hasOwnProperty(re) && (L[re] = u[re] === void 0 && V !== void 0 ? V[re] : u[re]);
|
|
145
|
+
}
|
|
146
|
+
var re = arguments.length - 2;
|
|
147
|
+
if (re === 1) L.children = A;
|
|
148
|
+
else if (1 < re) {
|
|
149
|
+
V = Array(re);
|
|
150
|
+
for (var he = 0; he < re; he++) V[he] = arguments[he + 2];
|
|
151
|
+
L.children = V;
|
|
152
|
+
}
|
|
153
|
+
return { $$typeof: c, type: n.type, key: P, ref: f, props: L, _owner: D };
|
|
154
|
+
}, X.createContext = function(n) {
|
|
155
|
+
return n = { $$typeof: j, _currentValue: n, _currentValue2: n, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, n.Provider = { $$typeof: R, _context: n }, n.Consumer = n;
|
|
156
|
+
}, X.createElement = ie, X.createFactory = function(n) {
|
|
157
|
+
var u = ie.bind(null, n);
|
|
158
|
+
return u.type = n, u;
|
|
159
|
+
}, X.createRef = function() {
|
|
160
|
+
return { current: null };
|
|
161
|
+
}, X.forwardRef = function(n) {
|
|
162
|
+
return { $$typeof: S, render: n };
|
|
163
|
+
}, X.isValidElement = W, X.lazy = function(n) {
|
|
164
|
+
return { $$typeof: x, _payload: { _status: -1, _result: n }, _init: C };
|
|
165
|
+
}, X.memo = function(n, u) {
|
|
166
|
+
return { $$typeof: k, type: n, compare: u === void 0 ? null : u };
|
|
167
|
+
}, X.startTransition = function(n) {
|
|
168
|
+
var u = Y.transition;
|
|
169
|
+
Y.transition = {};
|
|
170
|
+
try {
|
|
171
|
+
n();
|
|
172
|
+
} finally {
|
|
173
|
+
Y.transition = u;
|
|
174
|
+
}
|
|
175
|
+
}, X.unstable_act = ee, X.useCallback = function(n, u) {
|
|
176
|
+
return h.current.useCallback(n, u);
|
|
177
|
+
}, X.useContext = function(n) {
|
|
178
|
+
return h.current.useContext(n);
|
|
179
|
+
}, X.useDebugValue = function() {
|
|
180
|
+
}, X.useDeferredValue = function(n) {
|
|
181
|
+
return h.current.useDeferredValue(n);
|
|
182
|
+
}, X.useEffect = function(n, u) {
|
|
183
|
+
return h.current.useEffect(n, u);
|
|
184
|
+
}, X.useId = function() {
|
|
185
|
+
return h.current.useId();
|
|
186
|
+
}, X.useImperativeHandle = function(n, u, A) {
|
|
187
|
+
return h.current.useImperativeHandle(n, u, A);
|
|
188
|
+
}, X.useInsertionEffect = function(n, u) {
|
|
189
|
+
return h.current.useInsertionEffect(n, u);
|
|
190
|
+
}, X.useLayoutEffect = function(n, u) {
|
|
191
|
+
return h.current.useLayoutEffect(n, u);
|
|
192
|
+
}, X.useMemo = function(n, u) {
|
|
193
|
+
return h.current.useMemo(n, u);
|
|
194
|
+
}, X.useReducer = function(n, u, A) {
|
|
195
|
+
return h.current.useReducer(n, u, A);
|
|
196
|
+
}, X.useRef = function(n) {
|
|
197
|
+
return h.current.useRef(n);
|
|
198
|
+
}, X.useState = function(n) {
|
|
199
|
+
return h.current.useState(n);
|
|
200
|
+
}, X.useSyncExternalStore = function(n, u, A) {
|
|
201
|
+
return h.current.useSyncExternalStore(n, u, A);
|
|
202
|
+
}, X.useTransition = function() {
|
|
203
|
+
return h.current.useTransition();
|
|
204
|
+
}, X.version = "18.3.1", X;
|
|
205
|
+
}
|
|
206
|
+
var ar = { exports: {} };
|
|
207
|
+
/**
|
|
208
|
+
* @license React
|
|
209
|
+
* react.development.js
|
|
210
|
+
*
|
|
211
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the MIT license found in the
|
|
214
|
+
* LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/
|
|
216
|
+
ar.exports;
|
|
217
|
+
var gt;
|
|
218
|
+
function Gt() {
|
|
219
|
+
return gt || (gt = 1, (function(c, s) {
|
|
220
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
221
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
222
|
+
var p = "18.3.1", v = Symbol.for("react.element"), m = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), N = Symbol.for("react.provider"), k = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), $ = Symbol.for("react.offscreen"), K = Symbol.iterator, Z = "@@iterator";
|
|
223
|
+
function B(e) {
|
|
224
|
+
if (e === null || typeof e != "object")
|
|
225
|
+
return null;
|
|
226
|
+
var t = K && e[K] || e[Z];
|
|
227
|
+
return typeof t == "function" ? t : null;
|
|
228
|
+
}
|
|
229
|
+
var se = {
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
* @type {ReactComponent}
|
|
233
|
+
*/
|
|
234
|
+
current: null
|
|
235
|
+
}, Q = {
|
|
236
|
+
transition: null
|
|
237
|
+
}, G = {
|
|
238
|
+
current: null,
|
|
239
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
240
|
+
isBatchingLegacy: !1,
|
|
241
|
+
didScheduleLegacyUpdate: !1
|
|
242
|
+
}, ue = {
|
|
243
|
+
/**
|
|
244
|
+
* @internal
|
|
245
|
+
* @type {ReactComponent}
|
|
246
|
+
*/
|
|
247
|
+
current: null
|
|
248
|
+
}, le = {}, ie = null;
|
|
249
|
+
function F(e) {
|
|
250
|
+
ie = e;
|
|
251
|
+
}
|
|
252
|
+
le.setExtraStackFrame = function(e) {
|
|
253
|
+
ie = e;
|
|
254
|
+
}, le.getCurrentStack = null, le.getStackAddendum = function() {
|
|
255
|
+
var e = "";
|
|
256
|
+
ie && (e += ie);
|
|
257
|
+
var t = le.getCurrentStack;
|
|
258
|
+
return t && (e += t() || ""), e;
|
|
259
|
+
};
|
|
260
|
+
var W = !1, oe = !1, be = !1, fe = !1, l = !1, g = {
|
|
261
|
+
ReactCurrentDispatcher: se,
|
|
262
|
+
ReactCurrentBatchConfig: Q,
|
|
263
|
+
ReactCurrentOwner: ue
|
|
264
|
+
};
|
|
265
|
+
g.ReactDebugCurrentFrame = le, g.ReactCurrentActQueue = G;
|
|
266
|
+
function C(e) {
|
|
267
|
+
{
|
|
268
|
+
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
269
|
+
i[o - 1] = arguments[o];
|
|
270
|
+
Y("warn", e, i);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function h(e) {
|
|
274
|
+
{
|
|
275
|
+
for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
276
|
+
i[o - 1] = arguments[o];
|
|
277
|
+
Y("error", e, i);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
function Y(e, t, i) {
|
|
281
|
+
{
|
|
282
|
+
var o = g.ReactDebugCurrentFrame, _ = o.getStackAddendum();
|
|
283
|
+
_ !== "" && (t += "%s", i = i.concat([_]));
|
|
284
|
+
var U = i.map(function(M) {
|
|
285
|
+
return String(M);
|
|
286
|
+
});
|
|
287
|
+
U.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, U);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
var z = {};
|
|
291
|
+
function ee(e, t) {
|
|
292
|
+
{
|
|
293
|
+
var i = e.constructor, o = i && (i.displayName || i.name) || "ReactClass", _ = o + "." + t;
|
|
294
|
+
if (z[_])
|
|
295
|
+
return;
|
|
296
|
+
h("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, o), z[_] = !0;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
var n = {
|
|
300
|
+
/**
|
|
301
|
+
* Checks whether or not this composite component is mounted.
|
|
302
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
303
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
304
|
+
* @protected
|
|
305
|
+
* @final
|
|
306
|
+
*/
|
|
307
|
+
isMounted: function(e) {
|
|
308
|
+
return !1;
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* Forces an update. This should only be invoked when it is known with
|
|
312
|
+
* certainty that we are **not** in a DOM transaction.
|
|
313
|
+
*
|
|
314
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
315
|
+
* component's state has changed but `setState` was not called.
|
|
316
|
+
*
|
|
317
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
318
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
319
|
+
*
|
|
320
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
321
|
+
* @param {?function} callback Called after component is updated.
|
|
322
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
323
|
+
* @internal
|
|
324
|
+
*/
|
|
325
|
+
enqueueForceUpdate: function(e, t, i) {
|
|
326
|
+
ee(e, "forceUpdate");
|
|
327
|
+
},
|
|
328
|
+
/**
|
|
329
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
330
|
+
* You should treat `this.state` as immutable.
|
|
331
|
+
*
|
|
332
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
333
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
334
|
+
*
|
|
335
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
336
|
+
* @param {object} completeState Next state.
|
|
337
|
+
* @param {?function} callback Called after component is updated.
|
|
338
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
339
|
+
* @internal
|
|
340
|
+
*/
|
|
341
|
+
enqueueReplaceState: function(e, t, i, o) {
|
|
342
|
+
ee(e, "replaceState");
|
|
343
|
+
},
|
|
344
|
+
/**
|
|
345
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
346
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
347
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
348
|
+
* during the merge.
|
|
349
|
+
*
|
|
350
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
351
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
352
|
+
* @param {?function} callback Called after component is updated.
|
|
353
|
+
* @param {?string} Name of the calling function in the public API.
|
|
354
|
+
* @internal
|
|
355
|
+
*/
|
|
356
|
+
enqueueSetState: function(e, t, i, o) {
|
|
357
|
+
ee(e, "setState");
|
|
358
|
+
}
|
|
359
|
+
}, u = Object.assign, A = {};
|
|
360
|
+
Object.freeze(A);
|
|
361
|
+
function L(e, t, i) {
|
|
362
|
+
this.props = e, this.context = t, this.refs = A, this.updater = i || n;
|
|
363
|
+
}
|
|
364
|
+
L.prototype.isReactComponent = {}, L.prototype.setState = function(e, t) {
|
|
365
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
366
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
367
|
+
this.updater.enqueueSetState(this, e, t, "setState");
|
|
368
|
+
}, L.prototype.forceUpdate = function(e) {
|
|
369
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
370
|
+
};
|
|
371
|
+
{
|
|
372
|
+
var P = {
|
|
373
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
374
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
375
|
+
}, f = function(e, t) {
|
|
376
|
+
Object.defineProperty(L.prototype, e, {
|
|
377
|
+
get: function() {
|
|
378
|
+
C("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
for (var D in P)
|
|
383
|
+
P.hasOwnProperty(D) && f(D, P[D]);
|
|
384
|
+
}
|
|
385
|
+
function V() {
|
|
386
|
+
}
|
|
387
|
+
V.prototype = L.prototype;
|
|
388
|
+
function re(e, t, i) {
|
|
389
|
+
this.props = e, this.context = t, this.refs = A, this.updater = i || n;
|
|
390
|
+
}
|
|
391
|
+
var he = re.prototype = new V();
|
|
392
|
+
he.constructor = re, u(he, L.prototype), he.isPureReactComponent = !0;
|
|
393
|
+
function Er() {
|
|
394
|
+
var e = {
|
|
395
|
+
current: null
|
|
396
|
+
};
|
|
397
|
+
return Object.seal(e), e;
|
|
398
|
+
}
|
|
399
|
+
var nr = Array.isArray;
|
|
400
|
+
function Le(e) {
|
|
401
|
+
return nr(e);
|
|
402
|
+
}
|
|
403
|
+
function wr(e) {
|
|
404
|
+
{
|
|
405
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, i = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
406
|
+
return i;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
function Fe(e) {
|
|
410
|
+
try {
|
|
411
|
+
return ke(e), !1;
|
|
412
|
+
} catch {
|
|
413
|
+
return !0;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
function ke(e) {
|
|
417
|
+
return "" + e;
|
|
418
|
+
}
|
|
419
|
+
function Oe(e) {
|
|
420
|
+
if (Fe(e))
|
|
421
|
+
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", wr(e)), ke(e);
|
|
422
|
+
}
|
|
423
|
+
function sr(e, t, i) {
|
|
424
|
+
var o = e.displayName;
|
|
425
|
+
if (o)
|
|
426
|
+
return o;
|
|
427
|
+
var _ = t.displayName || t.name || "";
|
|
428
|
+
return _ !== "" ? i + "(" + _ + ")" : i;
|
|
429
|
+
}
|
|
430
|
+
function Pe(e) {
|
|
431
|
+
return e.displayName || "Context";
|
|
432
|
+
}
|
|
433
|
+
function Ne(e) {
|
|
434
|
+
if (e == null)
|
|
435
|
+
return null;
|
|
436
|
+
if (typeof e.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
437
|
+
return e.displayName || e.name || null;
|
|
438
|
+
if (typeof e == "string")
|
|
439
|
+
return e;
|
|
440
|
+
switch (e) {
|
|
441
|
+
case R:
|
|
442
|
+
return "Fragment";
|
|
443
|
+
case m:
|
|
444
|
+
return "Portal";
|
|
445
|
+
case S:
|
|
446
|
+
return "Profiler";
|
|
447
|
+
case j:
|
|
448
|
+
return "StrictMode";
|
|
449
|
+
case y:
|
|
450
|
+
return "Suspense";
|
|
451
|
+
case E:
|
|
452
|
+
return "SuspenseList";
|
|
453
|
+
}
|
|
454
|
+
if (typeof e == "object")
|
|
455
|
+
switch (e.$$typeof) {
|
|
456
|
+
case k:
|
|
457
|
+
var t = e;
|
|
458
|
+
return Pe(t) + ".Consumer";
|
|
459
|
+
case N:
|
|
460
|
+
var i = e;
|
|
461
|
+
return Pe(i._context) + ".Provider";
|
|
462
|
+
case x:
|
|
463
|
+
return sr(e, e.render, "ForwardRef");
|
|
464
|
+
case b:
|
|
465
|
+
var o = e.displayName || null;
|
|
466
|
+
return o !== null ? o : Ne(e.type) || "Memo";
|
|
467
|
+
case O: {
|
|
468
|
+
var _ = e, U = _._payload, M = _._init;
|
|
469
|
+
try {
|
|
470
|
+
return Ne(M(U));
|
|
471
|
+
} catch {
|
|
472
|
+
return null;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
return null;
|
|
477
|
+
}
|
|
478
|
+
var Ae = Object.prototype.hasOwnProperty, Be = {
|
|
479
|
+
key: !0,
|
|
480
|
+
ref: !0,
|
|
481
|
+
__self: !0,
|
|
482
|
+
__source: !0
|
|
483
|
+
}, ir, or, Ve;
|
|
484
|
+
Ve = {};
|
|
485
|
+
function He(e) {
|
|
486
|
+
if (Ae.call(e, "ref")) {
|
|
487
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
488
|
+
if (t && t.isReactWarning)
|
|
489
|
+
return !1;
|
|
490
|
+
}
|
|
491
|
+
return e.ref !== void 0;
|
|
492
|
+
}
|
|
493
|
+
function Ke(e) {
|
|
494
|
+
if (Ae.call(e, "key")) {
|
|
495
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
496
|
+
if (t && t.isReactWarning)
|
|
497
|
+
return !1;
|
|
498
|
+
}
|
|
499
|
+
return e.key !== void 0;
|
|
500
|
+
}
|
|
501
|
+
function Rr(e, t) {
|
|
502
|
+
var i = function() {
|
|
503
|
+
ir || (ir = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
504
|
+
};
|
|
505
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
506
|
+
get: i,
|
|
507
|
+
configurable: !0
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
function lr(e, t) {
|
|
511
|
+
var i = function() {
|
|
512
|
+
or || (or = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
513
|
+
};
|
|
514
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
515
|
+
get: i,
|
|
516
|
+
configurable: !0
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
function cr(e) {
|
|
520
|
+
if (typeof e.ref == "string" && ue.current && e.__self && ue.current.stateNode !== e.__self) {
|
|
521
|
+
var t = Ne(ue.current.type);
|
|
522
|
+
Ve[t] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), Ve[t] = !0);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
var Ge = function(e, t, i, o, _, U, M) {
|
|
526
|
+
var H = {
|
|
527
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
528
|
+
$$typeof: v,
|
|
529
|
+
// Built-in properties that belong on the element
|
|
530
|
+
type: e,
|
|
531
|
+
key: t,
|
|
532
|
+
ref: i,
|
|
533
|
+
props: M,
|
|
534
|
+
// Record the component responsible for creating this element.
|
|
535
|
+
_owner: U
|
|
536
|
+
};
|
|
537
|
+
return H._store = {}, Object.defineProperty(H._store, "validated", {
|
|
538
|
+
configurable: !1,
|
|
539
|
+
enumerable: !1,
|
|
540
|
+
writable: !0,
|
|
541
|
+
value: !1
|
|
542
|
+
}), Object.defineProperty(H, "_self", {
|
|
543
|
+
configurable: !1,
|
|
544
|
+
enumerable: !1,
|
|
545
|
+
writable: !1,
|
|
546
|
+
value: o
|
|
547
|
+
}), Object.defineProperty(H, "_source", {
|
|
548
|
+
configurable: !1,
|
|
549
|
+
enumerable: !1,
|
|
550
|
+
writable: !1,
|
|
551
|
+
value: _
|
|
552
|
+
}), Object.freeze && (Object.freeze(H.props), Object.freeze(H)), H;
|
|
553
|
+
};
|
|
554
|
+
function Nr(e, t, i) {
|
|
555
|
+
var o, _ = {}, U = null, M = null, H = null, ae = null;
|
|
556
|
+
if (t != null) {
|
|
557
|
+
He(t) && (M = t.ref, cr(t)), Ke(t) && (Oe(t.key), U = "" + t.key), H = t.__self === void 0 ? null : t.__self, ae = t.__source === void 0 ? null : t.__source;
|
|
558
|
+
for (o in t)
|
|
559
|
+
Ae.call(t, o) && !Be.hasOwnProperty(o) && (_[o] = t[o]);
|
|
560
|
+
}
|
|
561
|
+
var de = arguments.length - 2;
|
|
562
|
+
if (de === 1)
|
|
563
|
+
_.children = i;
|
|
564
|
+
else if (de > 1) {
|
|
565
|
+
for (var pe = Array(de), ve = 0; ve < de; ve++)
|
|
566
|
+
pe[ve] = arguments[ve + 2];
|
|
567
|
+
Object.freeze && Object.freeze(pe), _.children = pe;
|
|
568
|
+
}
|
|
569
|
+
if (e && e.defaultProps) {
|
|
570
|
+
var _e = e.defaultProps;
|
|
571
|
+
for (o in _e)
|
|
572
|
+
_[o] === void 0 && (_[o] = _e[o]);
|
|
573
|
+
}
|
|
574
|
+
if (U || M) {
|
|
575
|
+
var ge = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
576
|
+
U && Rr(_, ge), M && lr(_, ge);
|
|
577
|
+
}
|
|
578
|
+
return Ge(e, U, M, H, ae, ue.current, _);
|
|
579
|
+
}
|
|
580
|
+
function Cr(e, t) {
|
|
581
|
+
var i = Ge(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
582
|
+
return i;
|
|
583
|
+
}
|
|
584
|
+
function kr(e, t, i) {
|
|
585
|
+
if (e == null)
|
|
586
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
587
|
+
var o, _ = u({}, e.props), U = e.key, M = e.ref, H = e._self, ae = e._source, de = e._owner;
|
|
588
|
+
if (t != null) {
|
|
589
|
+
He(t) && (M = t.ref, de = ue.current), Ke(t) && (Oe(t.key), U = "" + t.key);
|
|
590
|
+
var pe;
|
|
591
|
+
e.type && e.type.defaultProps && (pe = e.type.defaultProps);
|
|
592
|
+
for (o in t)
|
|
593
|
+
Ae.call(t, o) && !Be.hasOwnProperty(o) && (t[o] === void 0 && pe !== void 0 ? _[o] = pe[o] : _[o] = t[o]);
|
|
594
|
+
}
|
|
595
|
+
var ve = arguments.length - 2;
|
|
596
|
+
if (ve === 1)
|
|
597
|
+
_.children = i;
|
|
598
|
+
else if (ve > 1) {
|
|
599
|
+
for (var _e = Array(ve), ge = 0; ge < ve; ge++)
|
|
600
|
+
_e[ge] = arguments[ge + 2];
|
|
601
|
+
_.children = _e;
|
|
602
|
+
}
|
|
603
|
+
return Ge(e.type, U, M, H, ae, de, _);
|
|
604
|
+
}
|
|
605
|
+
function Se(e) {
|
|
606
|
+
return typeof e == "object" && e !== null && e.$$typeof === v;
|
|
607
|
+
}
|
|
608
|
+
var ur = ".", Sr = ":";
|
|
609
|
+
function Ze(e) {
|
|
610
|
+
var t = /[=:]/g, i = {
|
|
611
|
+
"=": "=0",
|
|
612
|
+
":": "=2"
|
|
613
|
+
}, o = e.replace(t, function(_) {
|
|
614
|
+
return i[_];
|
|
615
|
+
});
|
|
616
|
+
return "$" + o;
|
|
617
|
+
}
|
|
618
|
+
var Je = !1, Te = /\/+/g;
|
|
619
|
+
function Ue(e) {
|
|
620
|
+
return e.replace(Te, "$&/");
|
|
621
|
+
}
|
|
622
|
+
function Ie(e, t) {
|
|
623
|
+
return typeof e == "object" && e !== null && e.key != null ? (Oe(e.key), Ze("" + e.key)) : t.toString(36);
|
|
624
|
+
}
|
|
625
|
+
function $e(e, t, i, o, _) {
|
|
626
|
+
var U = typeof e;
|
|
627
|
+
(U === "undefined" || U === "boolean") && (e = null);
|
|
628
|
+
var M = !1;
|
|
629
|
+
if (e === null)
|
|
630
|
+
M = !0;
|
|
631
|
+
else
|
|
632
|
+
switch (U) {
|
|
633
|
+
case "string":
|
|
634
|
+
case "number":
|
|
635
|
+
M = !0;
|
|
636
|
+
break;
|
|
637
|
+
case "object":
|
|
638
|
+
switch (e.$$typeof) {
|
|
639
|
+
case v:
|
|
640
|
+
case m:
|
|
641
|
+
M = !0;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
if (M) {
|
|
645
|
+
var H = e, ae = _(H), de = o === "" ? ur + Ie(H, 0) : o;
|
|
646
|
+
if (Le(ae)) {
|
|
647
|
+
var pe = "";
|
|
648
|
+
de != null && (pe = Ue(de) + "/"), $e(ae, t, pe, "", function(Ht) {
|
|
649
|
+
return Ht;
|
|
650
|
+
});
|
|
651
|
+
} else ae != null && (Se(ae) && (ae.key && (!H || H.key !== ae.key) && Oe(ae.key), ae = Cr(
|
|
652
|
+
ae,
|
|
653
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
654
|
+
// traverseAllChildren used to do for objects as children
|
|
655
|
+
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
656
|
+
(ae.key && (!H || H.key !== ae.key) ? (
|
|
657
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
658
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
659
|
+
Ue("" + ae.key) + "/"
|
|
660
|
+
) : "") + de
|
|
661
|
+
)), t.push(ae));
|
|
662
|
+
return 1;
|
|
663
|
+
}
|
|
664
|
+
var ve, _e, ge = 0, je = o === "" ? ur : o + Sr;
|
|
665
|
+
if (Le(e))
|
|
666
|
+
for (var gr = 0; gr < e.length; gr++)
|
|
667
|
+
ve = e[gr], _e = je + Ie(ve, gr), ge += $e(ve, t, i, _e, _);
|
|
668
|
+
else {
|
|
669
|
+
var qr = B(e);
|
|
670
|
+
if (typeof qr == "function") {
|
|
671
|
+
var mt = e;
|
|
672
|
+
qr === mt.entries && (Je || C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Je = !0);
|
|
673
|
+
for (var qt = qr.call(mt), _t, Yt = 0; !(_t = qt.next()).done; )
|
|
674
|
+
ve = _t.value, _e = je + Ie(ve, Yt++), ge += $e(ve, t, i, _e, _);
|
|
675
|
+
} else if (U === "object") {
|
|
676
|
+
var yt = String(e);
|
|
677
|
+
throw new Error("Objects are not valid as a React child (found: " + (yt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : yt) + "). If you meant to render a collection of children, use an array instead.");
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
return ge;
|
|
681
|
+
}
|
|
682
|
+
function ze(e, t, i) {
|
|
683
|
+
if (e == null)
|
|
684
|
+
return e;
|
|
685
|
+
var o = [], _ = 0;
|
|
686
|
+
return $e(e, o, "", "", function(U) {
|
|
687
|
+
return t.call(i, U, _++);
|
|
688
|
+
}), o;
|
|
689
|
+
}
|
|
690
|
+
function dr(e) {
|
|
691
|
+
var t = 0;
|
|
692
|
+
return ze(e, function() {
|
|
693
|
+
t++;
|
|
694
|
+
}), t;
|
|
695
|
+
}
|
|
696
|
+
function Tr(e, t, i) {
|
|
697
|
+
ze(e, function() {
|
|
698
|
+
t.apply(this, arguments);
|
|
699
|
+
}, i);
|
|
700
|
+
}
|
|
701
|
+
function fr(e) {
|
|
702
|
+
return ze(e, function(t) {
|
|
703
|
+
return t;
|
|
704
|
+
}) || [];
|
|
705
|
+
}
|
|
706
|
+
function hr(e) {
|
|
707
|
+
if (!Se(e))
|
|
708
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
709
|
+
return e;
|
|
710
|
+
}
|
|
711
|
+
function Mr(e) {
|
|
712
|
+
var t = {
|
|
713
|
+
$$typeof: k,
|
|
714
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
715
|
+
// some renderers as primary and others as secondary. We only expect
|
|
716
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
717
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
718
|
+
// Secondary renderers store their context values on separate fields.
|
|
719
|
+
_currentValue: e,
|
|
720
|
+
_currentValue2: e,
|
|
721
|
+
// Used to track how many concurrent renderers this context currently
|
|
722
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
723
|
+
_threadCount: 0,
|
|
724
|
+
// These are circular
|
|
725
|
+
Provider: null,
|
|
726
|
+
Consumer: null,
|
|
727
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
728
|
+
_defaultValue: null,
|
|
729
|
+
_globalName: null
|
|
730
|
+
};
|
|
731
|
+
t.Provider = {
|
|
732
|
+
$$typeof: N,
|
|
733
|
+
_context: t
|
|
734
|
+
};
|
|
735
|
+
var i = !1, o = !1, _ = !1;
|
|
736
|
+
{
|
|
737
|
+
var U = {
|
|
738
|
+
$$typeof: k,
|
|
739
|
+
_context: t
|
|
740
|
+
};
|
|
741
|
+
Object.defineProperties(U, {
|
|
742
|
+
Provider: {
|
|
743
|
+
get: function() {
|
|
744
|
+
return o || (o = !0, h("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
|
|
745
|
+
},
|
|
746
|
+
set: function(M) {
|
|
747
|
+
t.Provider = M;
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
_currentValue: {
|
|
751
|
+
get: function() {
|
|
752
|
+
return t._currentValue;
|
|
753
|
+
},
|
|
754
|
+
set: function(M) {
|
|
755
|
+
t._currentValue = M;
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
_currentValue2: {
|
|
759
|
+
get: function() {
|
|
760
|
+
return t._currentValue2;
|
|
761
|
+
},
|
|
762
|
+
set: function(M) {
|
|
763
|
+
t._currentValue2 = M;
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
_threadCount: {
|
|
767
|
+
get: function() {
|
|
768
|
+
return t._threadCount;
|
|
769
|
+
},
|
|
770
|
+
set: function(M) {
|
|
771
|
+
t._threadCount = M;
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
Consumer: {
|
|
775
|
+
get: function() {
|
|
776
|
+
return i || (i = !0, h("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
displayName: {
|
|
780
|
+
get: function() {
|
|
781
|
+
return t.displayName;
|
|
782
|
+
},
|
|
783
|
+
set: function(M) {
|
|
784
|
+
_ || (C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", M), _ = !0);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
}), t.Consumer = U;
|
|
788
|
+
}
|
|
789
|
+
return t._currentRenderer = null, t._currentRenderer2 = null, t;
|
|
790
|
+
}
|
|
791
|
+
var De = -1, We = 0, Xe = 1, Or = 2;
|
|
792
|
+
function Pr(e) {
|
|
793
|
+
if (e._status === De) {
|
|
794
|
+
var t = e._result, i = t();
|
|
795
|
+
if (i.then(function(U) {
|
|
796
|
+
if (e._status === We || e._status === De) {
|
|
797
|
+
var M = e;
|
|
798
|
+
M._status = Xe, M._result = U;
|
|
799
|
+
}
|
|
800
|
+
}, function(U) {
|
|
801
|
+
if (e._status === We || e._status === De) {
|
|
802
|
+
var M = e;
|
|
803
|
+
M._status = Or, M._result = U;
|
|
804
|
+
}
|
|
805
|
+
}), e._status === De) {
|
|
806
|
+
var o = e;
|
|
807
|
+
o._status = We, o._result = i;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
if (e._status === Xe) {
|
|
811
|
+
var _ = e._result;
|
|
812
|
+
return _ === void 0 && h(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
813
|
+
|
|
814
|
+
Your code should look like:
|
|
815
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
816
|
+
|
|
817
|
+
Did you accidentally put curly braces around the import?`, _), "default" in _ || h(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
818
|
+
|
|
819
|
+
Your code should look like:
|
|
820
|
+
const MyComponent = lazy(() => import('./MyComponent'))`, _), _.default;
|
|
821
|
+
} else
|
|
822
|
+
throw e._result;
|
|
823
|
+
}
|
|
824
|
+
function Ar(e) {
|
|
825
|
+
var t = {
|
|
826
|
+
// We use these fields to store the result.
|
|
827
|
+
_status: De,
|
|
828
|
+
_result: e
|
|
829
|
+
}, i = {
|
|
830
|
+
$$typeof: O,
|
|
831
|
+
_payload: t,
|
|
832
|
+
_init: Pr
|
|
833
|
+
};
|
|
834
|
+
{
|
|
835
|
+
var o, _;
|
|
836
|
+
Object.defineProperties(i, {
|
|
837
|
+
defaultProps: {
|
|
838
|
+
configurable: !0,
|
|
839
|
+
get: function() {
|
|
840
|
+
return o;
|
|
841
|
+
},
|
|
842
|
+
set: function(U) {
|
|
843
|
+
h("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = U, Object.defineProperty(i, "defaultProps", {
|
|
844
|
+
enumerable: !0
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
propTypes: {
|
|
849
|
+
configurable: !0,
|
|
850
|
+
get: function() {
|
|
851
|
+
return _;
|
|
852
|
+
},
|
|
853
|
+
set: function(U) {
|
|
854
|
+
h("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), _ = U, Object.defineProperty(i, "propTypes", {
|
|
855
|
+
enumerable: !0
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
return i;
|
|
862
|
+
}
|
|
863
|
+
function Ir(e) {
|
|
864
|
+
e != null && e.$$typeof === b ? h("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? h("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && h("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && h("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
865
|
+
var t = {
|
|
866
|
+
$$typeof: x,
|
|
867
|
+
render: e
|
|
868
|
+
};
|
|
869
|
+
{
|
|
870
|
+
var i;
|
|
871
|
+
Object.defineProperty(t, "displayName", {
|
|
872
|
+
enumerable: !1,
|
|
873
|
+
configurable: !0,
|
|
874
|
+
get: function() {
|
|
875
|
+
return i;
|
|
876
|
+
},
|
|
877
|
+
set: function(o) {
|
|
878
|
+
i = o, !e.name && !e.displayName && (e.displayName = o);
|
|
879
|
+
}
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
return t;
|
|
883
|
+
}
|
|
884
|
+
var a;
|
|
885
|
+
a = Symbol.for("react.module.reference");
|
|
886
|
+
function d(e) {
|
|
887
|
+
return !!(typeof e == "string" || typeof e == "function" || e === R || e === S || l || e === j || e === y || e === E || fe || e === $ || W || oe || be || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === b || e.$$typeof === N || e.$$typeof === k || e.$$typeof === x || // This needs to include all possible module reference object
|
|
888
|
+
// types supported by any Flight configuration anywhere since
|
|
889
|
+
// we don't know which Flight build this will end up being used
|
|
890
|
+
// with.
|
|
891
|
+
e.$$typeof === a || e.getModuleId !== void 0));
|
|
892
|
+
}
|
|
893
|
+
function w(e, t) {
|
|
894
|
+
d(e) || h("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
895
|
+
var i = {
|
|
896
|
+
$$typeof: b,
|
|
897
|
+
type: e,
|
|
898
|
+
compare: t === void 0 ? null : t
|
|
899
|
+
};
|
|
900
|
+
{
|
|
901
|
+
var o;
|
|
902
|
+
Object.defineProperty(i, "displayName", {
|
|
903
|
+
enumerable: !1,
|
|
904
|
+
configurable: !0,
|
|
905
|
+
get: function() {
|
|
906
|
+
return o;
|
|
907
|
+
},
|
|
908
|
+
set: function(_) {
|
|
909
|
+
o = _, !e.name && !e.displayName && (e.displayName = _);
|
|
910
|
+
}
|
|
911
|
+
});
|
|
912
|
+
}
|
|
913
|
+
return i;
|
|
914
|
+
}
|
|
915
|
+
function T() {
|
|
916
|
+
var e = se.current;
|
|
917
|
+
return e === null && h(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
918
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
919
|
+
2. You might be breaking the Rules of Hooks
|
|
920
|
+
3. You might have more than one copy of React in the same app
|
|
921
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
922
|
+
}
|
|
923
|
+
function ne(e) {
|
|
924
|
+
var t = T();
|
|
925
|
+
if (e._context !== void 0) {
|
|
926
|
+
var i = e._context;
|
|
927
|
+
i.Consumer === e ? h("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : i.Provider === e && h("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
928
|
+
}
|
|
929
|
+
return t.useContext(e);
|
|
930
|
+
}
|
|
931
|
+
function ce(e) {
|
|
932
|
+
var t = T();
|
|
933
|
+
return t.useState(e);
|
|
934
|
+
}
|
|
935
|
+
function te(e, t, i) {
|
|
936
|
+
var o = T();
|
|
937
|
+
return o.useReducer(e, t, i);
|
|
938
|
+
}
|
|
939
|
+
function J(e) {
|
|
940
|
+
var t = T();
|
|
941
|
+
return t.useRef(e);
|
|
942
|
+
}
|
|
943
|
+
function xe(e, t) {
|
|
944
|
+
var i = T();
|
|
945
|
+
return i.useEffect(e, t);
|
|
946
|
+
}
|
|
947
|
+
function me(e, t) {
|
|
948
|
+
var i = T();
|
|
949
|
+
return i.useInsertionEffect(e, t);
|
|
950
|
+
}
|
|
951
|
+
function ye(e, t) {
|
|
952
|
+
var i = T();
|
|
953
|
+
return i.useLayoutEffect(e, t);
|
|
954
|
+
}
|
|
955
|
+
function we(e, t) {
|
|
956
|
+
var i = T();
|
|
957
|
+
return i.useCallback(e, t);
|
|
958
|
+
}
|
|
959
|
+
function Me(e, t) {
|
|
960
|
+
var i = T();
|
|
961
|
+
return i.useMemo(e, t);
|
|
962
|
+
}
|
|
963
|
+
function Ce(e, t, i) {
|
|
964
|
+
var o = T();
|
|
965
|
+
return o.useImperativeHandle(e, t, i);
|
|
966
|
+
}
|
|
967
|
+
function Ee(e, t) {
|
|
968
|
+
{
|
|
969
|
+
var i = T();
|
|
970
|
+
return i.useDebugValue(e, t);
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
function Qe() {
|
|
974
|
+
var e = T();
|
|
975
|
+
return e.useTransition();
|
|
976
|
+
}
|
|
977
|
+
function $r(e) {
|
|
978
|
+
var t = T();
|
|
979
|
+
return t.useDeferredValue(e);
|
|
980
|
+
}
|
|
981
|
+
function Dr() {
|
|
982
|
+
var e = T();
|
|
983
|
+
return e.useId();
|
|
984
|
+
}
|
|
985
|
+
function Nt(e, t, i) {
|
|
986
|
+
var o = T();
|
|
987
|
+
return o.useSyncExternalStore(e, t, i);
|
|
988
|
+
}
|
|
989
|
+
var er = 0, Gr, Zr, Jr, Xr, Qr, et, rt;
|
|
990
|
+
function tt() {
|
|
991
|
+
}
|
|
992
|
+
tt.__reactDisabledLog = !0;
|
|
993
|
+
function Ct() {
|
|
994
|
+
{
|
|
995
|
+
if (er === 0) {
|
|
996
|
+
Gr = console.log, Zr = console.info, Jr = console.warn, Xr = console.error, Qr = console.group, et = console.groupCollapsed, rt = console.groupEnd;
|
|
997
|
+
var e = {
|
|
998
|
+
configurable: !0,
|
|
999
|
+
enumerable: !0,
|
|
1000
|
+
value: tt,
|
|
1001
|
+
writable: !0
|
|
1002
|
+
};
|
|
1003
|
+
Object.defineProperties(console, {
|
|
1004
|
+
info: e,
|
|
1005
|
+
log: e,
|
|
1006
|
+
warn: e,
|
|
1007
|
+
error: e,
|
|
1008
|
+
group: e,
|
|
1009
|
+
groupCollapsed: e,
|
|
1010
|
+
groupEnd: e
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
er++;
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
function kt() {
|
|
1017
|
+
{
|
|
1018
|
+
if (er--, er === 0) {
|
|
1019
|
+
var e = {
|
|
1020
|
+
configurable: !0,
|
|
1021
|
+
enumerable: !0,
|
|
1022
|
+
writable: !0
|
|
1023
|
+
};
|
|
1024
|
+
Object.defineProperties(console, {
|
|
1025
|
+
log: u({}, e, {
|
|
1026
|
+
value: Gr
|
|
1027
|
+
}),
|
|
1028
|
+
info: u({}, e, {
|
|
1029
|
+
value: Zr
|
|
1030
|
+
}),
|
|
1031
|
+
warn: u({}, e, {
|
|
1032
|
+
value: Jr
|
|
1033
|
+
}),
|
|
1034
|
+
error: u({}, e, {
|
|
1035
|
+
value: Xr
|
|
1036
|
+
}),
|
|
1037
|
+
group: u({}, e, {
|
|
1038
|
+
value: Qr
|
|
1039
|
+
}),
|
|
1040
|
+
groupCollapsed: u({}, e, {
|
|
1041
|
+
value: et
|
|
1042
|
+
}),
|
|
1043
|
+
groupEnd: u({}, e, {
|
|
1044
|
+
value: rt
|
|
1045
|
+
})
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
er < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
var Lr = g.ReactCurrentDispatcher, Fr;
|
|
1052
|
+
function pr(e, t, i) {
|
|
1053
|
+
{
|
|
1054
|
+
if (Fr === void 0)
|
|
1055
|
+
try {
|
|
1056
|
+
throw Error();
|
|
1057
|
+
} catch (_) {
|
|
1058
|
+
var o = _.stack.trim().match(/\n( *(at )?)/);
|
|
1059
|
+
Fr = o && o[1] || "";
|
|
1060
|
+
}
|
|
1061
|
+
return `
|
|
1062
|
+
` + Fr + e;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
var Br = !1, vr;
|
|
1066
|
+
{
|
|
1067
|
+
var St = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1068
|
+
vr = new St();
|
|
1069
|
+
}
|
|
1070
|
+
function at(e, t) {
|
|
1071
|
+
if (!e || Br)
|
|
1072
|
+
return "";
|
|
1073
|
+
{
|
|
1074
|
+
var i = vr.get(e);
|
|
1075
|
+
if (i !== void 0)
|
|
1076
|
+
return i;
|
|
1077
|
+
}
|
|
1078
|
+
var o;
|
|
1079
|
+
Br = !0;
|
|
1080
|
+
var _ = Error.prepareStackTrace;
|
|
1081
|
+
Error.prepareStackTrace = void 0;
|
|
1082
|
+
var U;
|
|
1083
|
+
U = Lr.current, Lr.current = null, Ct();
|
|
1084
|
+
try {
|
|
1085
|
+
if (t) {
|
|
1086
|
+
var M = function() {
|
|
1087
|
+
throw Error();
|
|
1088
|
+
};
|
|
1089
|
+
if (Object.defineProperty(M.prototype, "props", {
|
|
1090
|
+
set: function() {
|
|
1091
|
+
throw Error();
|
|
1092
|
+
}
|
|
1093
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1094
|
+
try {
|
|
1095
|
+
Reflect.construct(M, []);
|
|
1096
|
+
} catch (je) {
|
|
1097
|
+
o = je;
|
|
1098
|
+
}
|
|
1099
|
+
Reflect.construct(e, [], M);
|
|
1100
|
+
} else {
|
|
1101
|
+
try {
|
|
1102
|
+
M.call();
|
|
1103
|
+
} catch (je) {
|
|
1104
|
+
o = je;
|
|
1105
|
+
}
|
|
1106
|
+
e.call(M.prototype);
|
|
1107
|
+
}
|
|
1108
|
+
} else {
|
|
1109
|
+
try {
|
|
1110
|
+
throw Error();
|
|
1111
|
+
} catch (je) {
|
|
1112
|
+
o = je;
|
|
1113
|
+
}
|
|
1114
|
+
e();
|
|
1115
|
+
}
|
|
1116
|
+
} catch (je) {
|
|
1117
|
+
if (je && o && typeof je.stack == "string") {
|
|
1118
|
+
for (var H = je.stack.split(`
|
|
1119
|
+
`), ae = o.stack.split(`
|
|
1120
|
+
`), de = H.length - 1, pe = ae.length - 1; de >= 1 && pe >= 0 && H[de] !== ae[pe]; )
|
|
1121
|
+
pe--;
|
|
1122
|
+
for (; de >= 1 && pe >= 0; de--, pe--)
|
|
1123
|
+
if (H[de] !== ae[pe]) {
|
|
1124
|
+
if (de !== 1 || pe !== 1)
|
|
1125
|
+
do
|
|
1126
|
+
if (de--, pe--, pe < 0 || H[de] !== ae[pe]) {
|
|
1127
|
+
var ve = `
|
|
1128
|
+
` + H[de].replace(" at new ", " at ");
|
|
1129
|
+
return e.displayName && ve.includes("<anonymous>") && (ve = ve.replace("<anonymous>", e.displayName)), typeof e == "function" && vr.set(e, ve), ve;
|
|
1130
|
+
}
|
|
1131
|
+
while (de >= 1 && pe >= 0);
|
|
1132
|
+
break;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
} finally {
|
|
1136
|
+
Br = !1, Lr.current = U, kt(), Error.prepareStackTrace = _;
|
|
1137
|
+
}
|
|
1138
|
+
var _e = e ? e.displayName || e.name : "", ge = _e ? pr(_e) : "";
|
|
1139
|
+
return typeof e == "function" && vr.set(e, ge), ge;
|
|
1140
|
+
}
|
|
1141
|
+
function Tt(e, t, i) {
|
|
1142
|
+
return at(e, !1);
|
|
1143
|
+
}
|
|
1144
|
+
function Mt(e) {
|
|
1145
|
+
var t = e.prototype;
|
|
1146
|
+
return !!(t && t.isReactComponent);
|
|
1147
|
+
}
|
|
1148
|
+
function mr(e, t, i) {
|
|
1149
|
+
if (e == null)
|
|
1150
|
+
return "";
|
|
1151
|
+
if (typeof e == "function")
|
|
1152
|
+
return at(e, Mt(e));
|
|
1153
|
+
if (typeof e == "string")
|
|
1154
|
+
return pr(e);
|
|
1155
|
+
switch (e) {
|
|
1156
|
+
case y:
|
|
1157
|
+
return pr("Suspense");
|
|
1158
|
+
case E:
|
|
1159
|
+
return pr("SuspenseList");
|
|
1160
|
+
}
|
|
1161
|
+
if (typeof e == "object")
|
|
1162
|
+
switch (e.$$typeof) {
|
|
1163
|
+
case x:
|
|
1164
|
+
return Tt(e.render);
|
|
1165
|
+
case b:
|
|
1166
|
+
return mr(e.type, t, i);
|
|
1167
|
+
case O: {
|
|
1168
|
+
var o = e, _ = o._payload, U = o._init;
|
|
1169
|
+
try {
|
|
1170
|
+
return mr(U(_), t, i);
|
|
1171
|
+
} catch {
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
return "";
|
|
1176
|
+
}
|
|
1177
|
+
var nt = {}, st = g.ReactDebugCurrentFrame;
|
|
1178
|
+
function _r(e) {
|
|
1179
|
+
if (e) {
|
|
1180
|
+
var t = e._owner, i = mr(e.type, e._source, t ? t.type : null);
|
|
1181
|
+
st.setExtraStackFrame(i);
|
|
1182
|
+
} else
|
|
1183
|
+
st.setExtraStackFrame(null);
|
|
1184
|
+
}
|
|
1185
|
+
function Ot(e, t, i, o, _) {
|
|
1186
|
+
{
|
|
1187
|
+
var U = Function.call.bind(Ae);
|
|
1188
|
+
for (var M in e)
|
|
1189
|
+
if (U(e, M)) {
|
|
1190
|
+
var H = void 0;
|
|
1191
|
+
try {
|
|
1192
|
+
if (typeof e[M] != "function") {
|
|
1193
|
+
var ae = Error((o || "React class") + ": " + i + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1194
|
+
throw ae.name = "Invariant Violation", ae;
|
|
1195
|
+
}
|
|
1196
|
+
H = e[M](t, M, o, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1197
|
+
} catch (de) {
|
|
1198
|
+
H = de;
|
|
1199
|
+
}
|
|
1200
|
+
H && !(H instanceof Error) && (_r(_), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", i, M, typeof H), _r(null)), H instanceof Error && !(H.message in nt) && (nt[H.message] = !0, _r(_), h("Failed %s type: %s", i, H.message), _r(null));
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
function qe(e) {
|
|
1205
|
+
if (e) {
|
|
1206
|
+
var t = e._owner, i = mr(e.type, e._source, t ? t.type : null);
|
|
1207
|
+
F(i);
|
|
1208
|
+
} else
|
|
1209
|
+
F(null);
|
|
1210
|
+
}
|
|
1211
|
+
var Vr;
|
|
1212
|
+
Vr = !1;
|
|
1213
|
+
function it() {
|
|
1214
|
+
if (ue.current) {
|
|
1215
|
+
var e = Ne(ue.current.type);
|
|
1216
|
+
if (e)
|
|
1217
|
+
return `
|
|
1218
|
+
|
|
1219
|
+
Check the render method of \`` + e + "`.";
|
|
1220
|
+
}
|
|
1221
|
+
return "";
|
|
1222
|
+
}
|
|
1223
|
+
function Pt(e) {
|
|
1224
|
+
if (e !== void 0) {
|
|
1225
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
|
|
1226
|
+
return `
|
|
1227
|
+
|
|
1228
|
+
Check your code at ` + t + ":" + i + ".";
|
|
1229
|
+
}
|
|
1230
|
+
return "";
|
|
1231
|
+
}
|
|
1232
|
+
function At(e) {
|
|
1233
|
+
return e != null ? Pt(e.__source) : "";
|
|
1234
|
+
}
|
|
1235
|
+
var ot = {};
|
|
1236
|
+
function It(e) {
|
|
1237
|
+
var t = it();
|
|
1238
|
+
if (!t) {
|
|
1239
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
1240
|
+
i && (t = `
|
|
1241
|
+
|
|
1242
|
+
Check the top-level render call using <` + i + ">.");
|
|
1243
|
+
}
|
|
1244
|
+
return t;
|
|
1245
|
+
}
|
|
1246
|
+
function lt(e, t) {
|
|
1247
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1248
|
+
e._store.validated = !0;
|
|
1249
|
+
var i = It(t);
|
|
1250
|
+
if (!ot[i]) {
|
|
1251
|
+
ot[i] = !0;
|
|
1252
|
+
var o = "";
|
|
1253
|
+
e && e._owner && e._owner !== ue.current && (o = " It was passed a child from " + Ne(e._owner.type) + "."), qe(e), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, o), qe(null);
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
function ct(e, t) {
|
|
1258
|
+
if (typeof e == "object") {
|
|
1259
|
+
if (Le(e))
|
|
1260
|
+
for (var i = 0; i < e.length; i++) {
|
|
1261
|
+
var o = e[i];
|
|
1262
|
+
Se(o) && lt(o, t);
|
|
1263
|
+
}
|
|
1264
|
+
else if (Se(e))
|
|
1265
|
+
e._store && (e._store.validated = !0);
|
|
1266
|
+
else if (e) {
|
|
1267
|
+
var _ = B(e);
|
|
1268
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
1269
|
+
for (var U = _.call(e), M; !(M = U.next()).done; )
|
|
1270
|
+
Se(M.value) && lt(M.value, t);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
function ut(e) {
|
|
1275
|
+
{
|
|
1276
|
+
var t = e.type;
|
|
1277
|
+
if (t == null || typeof t == "string")
|
|
1278
|
+
return;
|
|
1279
|
+
var i;
|
|
1280
|
+
if (typeof t == "function")
|
|
1281
|
+
i = t.propTypes;
|
|
1282
|
+
else if (typeof t == "object" && (t.$$typeof === x || // Note: Memo only checks outer props here.
|
|
1283
|
+
// Inner props are checked in the reconciler.
|
|
1284
|
+
t.$$typeof === b))
|
|
1285
|
+
i = t.propTypes;
|
|
1286
|
+
else
|
|
1287
|
+
return;
|
|
1288
|
+
if (i) {
|
|
1289
|
+
var o = Ne(t);
|
|
1290
|
+
Ot(i, e.props, "prop", o, e);
|
|
1291
|
+
} else if (t.PropTypes !== void 0 && !Vr) {
|
|
1292
|
+
Vr = !0;
|
|
1293
|
+
var _ = Ne(t);
|
|
1294
|
+
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
1295
|
+
}
|
|
1296
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
function $t(e) {
|
|
1300
|
+
{
|
|
1301
|
+
for (var t = Object.keys(e.props), i = 0; i < t.length; i++) {
|
|
1302
|
+
var o = t[i];
|
|
1303
|
+
if (o !== "children" && o !== "key") {
|
|
1304
|
+
qe(e), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), qe(null);
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
e.ref !== null && (qe(e), h("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
function dt(e, t, i) {
|
|
1312
|
+
var o = d(e);
|
|
1313
|
+
if (!o) {
|
|
1314
|
+
var _ = "";
|
|
1315
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1316
|
+
var U = At(t);
|
|
1317
|
+
U ? _ += U : _ += it();
|
|
1318
|
+
var M;
|
|
1319
|
+
e === null ? M = "null" : Le(e) ? M = "array" : e !== void 0 && e.$$typeof === v ? (M = "<" + (Ne(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : M = typeof e, h("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, _);
|
|
1320
|
+
}
|
|
1321
|
+
var H = Nr.apply(this, arguments);
|
|
1322
|
+
if (H == null)
|
|
1323
|
+
return H;
|
|
1324
|
+
if (o)
|
|
1325
|
+
for (var ae = 2; ae < arguments.length; ae++)
|
|
1326
|
+
ct(arguments[ae], e);
|
|
1327
|
+
return e === R ? $t(H) : ut(H), H;
|
|
1328
|
+
}
|
|
1329
|
+
var ft = !1;
|
|
1330
|
+
function Dt(e) {
|
|
1331
|
+
var t = dt.bind(null, e);
|
|
1332
|
+
return t.type = e, ft || (ft = !0, C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
|
|
1333
|
+
enumerable: !1,
|
|
1334
|
+
get: function() {
|
|
1335
|
+
return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1336
|
+
value: e
|
|
1337
|
+
}), e;
|
|
1338
|
+
}
|
|
1339
|
+
}), t;
|
|
1340
|
+
}
|
|
1341
|
+
function Lt(e, t, i) {
|
|
1342
|
+
for (var o = kr.apply(this, arguments), _ = 2; _ < arguments.length; _++)
|
|
1343
|
+
ct(arguments[_], o.type);
|
|
1344
|
+
return ut(o), o;
|
|
1345
|
+
}
|
|
1346
|
+
function Ft(e, t) {
|
|
1347
|
+
var i = Q.transition;
|
|
1348
|
+
Q.transition = {};
|
|
1349
|
+
var o = Q.transition;
|
|
1350
|
+
Q.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1351
|
+
try {
|
|
1352
|
+
e();
|
|
1353
|
+
} finally {
|
|
1354
|
+
if (Q.transition = i, i === null && o._updatedFibers) {
|
|
1355
|
+
var _ = o._updatedFibers.size;
|
|
1356
|
+
_ > 10 && C("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), o._updatedFibers.clear();
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
var ht = !1, yr = null;
|
|
1361
|
+
function Bt(e) {
|
|
1362
|
+
if (yr === null)
|
|
1363
|
+
try {
|
|
1364
|
+
var t = ("require" + Math.random()).slice(0, 7), i = c && c[t];
|
|
1365
|
+
yr = i.call(c, "timers").setImmediate;
|
|
1366
|
+
} catch {
|
|
1367
|
+
yr = function(_) {
|
|
1368
|
+
ht === !1 && (ht = !0, typeof MessageChannel > "u" && h("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
1369
|
+
var U = new MessageChannel();
|
|
1370
|
+
U.port1.onmessage = _, U.port2.postMessage(void 0);
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
return yr(e);
|
|
1374
|
+
}
|
|
1375
|
+
var Ye = 0, pt = !1;
|
|
1376
|
+
function vt(e) {
|
|
1377
|
+
{
|
|
1378
|
+
var t = Ye;
|
|
1379
|
+
Ye++, G.current === null && (G.current = []);
|
|
1380
|
+
var i = G.isBatchingLegacy, o;
|
|
1381
|
+
try {
|
|
1382
|
+
if (G.isBatchingLegacy = !0, o = e(), !i && G.didScheduleLegacyUpdate) {
|
|
1383
|
+
var _ = G.current;
|
|
1384
|
+
_ !== null && (G.didScheduleLegacyUpdate = !1, Wr(_));
|
|
1385
|
+
}
|
|
1386
|
+
} catch (_e) {
|
|
1387
|
+
throw br(t), _e;
|
|
1388
|
+
} finally {
|
|
1389
|
+
G.isBatchingLegacy = i;
|
|
1390
|
+
}
|
|
1391
|
+
if (o !== null && typeof o == "object" && typeof o.then == "function") {
|
|
1392
|
+
var U = o, M = !1, H = {
|
|
1393
|
+
then: function(_e, ge) {
|
|
1394
|
+
M = !0, U.then(function(je) {
|
|
1395
|
+
br(t), Ye === 0 ? Ur(je, _e, ge) : _e(je);
|
|
1396
|
+
}, function(je) {
|
|
1397
|
+
br(t), ge(je);
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
return !pt && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1402
|
+
}).then(function() {
|
|
1403
|
+
M || (pt = !0, h("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1404
|
+
}), H;
|
|
1405
|
+
} else {
|
|
1406
|
+
var ae = o;
|
|
1407
|
+
if (br(t), Ye === 0) {
|
|
1408
|
+
var de = G.current;
|
|
1409
|
+
de !== null && (Wr(de), G.current = null);
|
|
1410
|
+
var pe = {
|
|
1411
|
+
then: function(_e, ge) {
|
|
1412
|
+
G.current === null ? (G.current = [], Ur(ae, _e, ge)) : _e(ae);
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
return pe;
|
|
1416
|
+
} else {
|
|
1417
|
+
var ve = {
|
|
1418
|
+
then: function(_e, ge) {
|
|
1419
|
+
_e(ae);
|
|
1420
|
+
}
|
|
1421
|
+
};
|
|
1422
|
+
return ve;
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
function br(e) {
|
|
1428
|
+
e !== Ye - 1 && h("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ye = e;
|
|
1429
|
+
}
|
|
1430
|
+
function Ur(e, t, i) {
|
|
1431
|
+
{
|
|
1432
|
+
var o = G.current;
|
|
1433
|
+
if (o !== null)
|
|
1434
|
+
try {
|
|
1435
|
+
Wr(o), Bt(function() {
|
|
1436
|
+
o.length === 0 ? (G.current = null, t(e)) : Ur(e, t, i);
|
|
1437
|
+
});
|
|
1438
|
+
} catch (_) {
|
|
1439
|
+
i(_);
|
|
1440
|
+
}
|
|
1441
|
+
else
|
|
1442
|
+
t(e);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
var zr = !1;
|
|
1446
|
+
function Wr(e) {
|
|
1447
|
+
if (!zr) {
|
|
1448
|
+
zr = !0;
|
|
1449
|
+
var t = 0;
|
|
1450
|
+
try {
|
|
1451
|
+
for (; t < e.length; t++) {
|
|
1452
|
+
var i = e[t];
|
|
1453
|
+
do
|
|
1454
|
+
i = i(!0);
|
|
1455
|
+
while (i !== null);
|
|
1456
|
+
}
|
|
1457
|
+
e.length = 0;
|
|
1458
|
+
} catch (o) {
|
|
1459
|
+
throw e = e.slice(t + 1), o;
|
|
1460
|
+
} finally {
|
|
1461
|
+
zr = !1;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
var Vt = dt, Ut = Lt, zt = Dt, Wt = {
|
|
1466
|
+
map: ze,
|
|
1467
|
+
forEach: Tr,
|
|
1468
|
+
count: dr,
|
|
1469
|
+
toArray: fr,
|
|
1470
|
+
only: hr
|
|
1471
|
+
};
|
|
1472
|
+
s.Children = Wt, s.Component = L, s.Fragment = R, s.Profiler = S, s.PureComponent = re, s.StrictMode = j, s.Suspense = y, s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = g, s.act = vt, s.cloneElement = Ut, s.createContext = Mr, s.createElement = Vt, s.createFactory = zt, s.createRef = Er, s.forwardRef = Ir, s.isValidElement = Se, s.lazy = Ar, s.memo = w, s.startTransition = Ft, s.unstable_act = vt, s.useCallback = we, s.useContext = ne, s.useDebugValue = Ee, s.useDeferredValue = $r, s.useEffect = xe, s.useId = Dr, s.useImperativeHandle = Ce, s.useInsertionEffect = me, s.useLayoutEffect = ye, s.useMemo = Me, s.useReducer = te, s.useRef = J, s.useState = ce, s.useSyncExternalStore = Nt, s.useTransition = Qe, s.version = p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1473
|
+
})();
|
|
1474
|
+
})(ar, ar.exports)), ar.exports;
|
|
1475
|
+
}
|
|
1476
|
+
var xt;
|
|
1477
|
+
function Hr() {
|
|
1478
|
+
return xt || (xt = 1, process.env.NODE_ENV === "production" ? jr.exports = Kt() : jr.exports = Gt()), jr.exports;
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* @license React
|
|
1482
|
+
* react-jsx-runtime.production.min.js
|
|
1483
|
+
*
|
|
1484
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1485
|
+
*
|
|
1486
|
+
* This source code is licensed under the MIT license found in the
|
|
1487
|
+
* LICENSE file in the root directory of this source tree.
|
|
1488
|
+
*/
|
|
1489
|
+
var jt;
|
|
1490
|
+
function Zt() {
|
|
1491
|
+
if (jt) return rr;
|
|
1492
|
+
jt = 1;
|
|
1493
|
+
var c = Hr(), s = Symbol.for("react.element"), p = Symbol.for("react.fragment"), v = Object.prototype.hasOwnProperty, m = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1494
|
+
function j(S, N, k) {
|
|
1495
|
+
var x, y = {}, E = null, b = null;
|
|
1496
|
+
k !== void 0 && (E = "" + k), N.key !== void 0 && (E = "" + N.key), N.ref !== void 0 && (b = N.ref);
|
|
1497
|
+
for (x in N) v.call(N, x) && !R.hasOwnProperty(x) && (y[x] = N[x]);
|
|
1498
|
+
if (S && S.defaultProps) for (x in N = S.defaultProps, N) y[x] === void 0 && (y[x] = N[x]);
|
|
1499
|
+
return { $$typeof: s, type: S, key: E, ref: b, props: y, _owner: m.current };
|
|
1500
|
+
}
|
|
1501
|
+
return rr.Fragment = p, rr.jsx = j, rr.jsxs = j, rr;
|
|
1502
|
+
}
|
|
1503
|
+
var tr = {};
|
|
1504
|
+
/**
|
|
1505
|
+
* @license React
|
|
1506
|
+
* react-jsx-runtime.development.js
|
|
1507
|
+
*
|
|
1508
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1509
|
+
*
|
|
1510
|
+
* This source code is licensed under the MIT license found in the
|
|
1511
|
+
* LICENSE file in the root directory of this source tree.
|
|
1512
|
+
*/
|
|
1513
|
+
var Et;
|
|
1514
|
+
function Jt() {
|
|
1515
|
+
return Et || (Et = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1516
|
+
var c = Hr(), s = Symbol.for("react.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), S = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), O = Symbol.iterator, $ = "@@iterator";
|
|
1517
|
+
function K(a) {
|
|
1518
|
+
if (a === null || typeof a != "object")
|
|
1519
|
+
return null;
|
|
1520
|
+
var d = O && a[O] || a[$];
|
|
1521
|
+
return typeof d == "function" ? d : null;
|
|
1522
|
+
}
|
|
1523
|
+
var Z = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1524
|
+
function B(a) {
|
|
1525
|
+
{
|
|
1526
|
+
for (var d = arguments.length, w = new Array(d > 1 ? d - 1 : 0), T = 1; T < d; T++)
|
|
1527
|
+
w[T - 1] = arguments[T];
|
|
1528
|
+
se("error", a, w);
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
function se(a, d, w) {
|
|
1532
|
+
{
|
|
1533
|
+
var T = Z.ReactDebugCurrentFrame, ne = T.getStackAddendum();
|
|
1534
|
+
ne !== "" && (d += "%s", w = w.concat([ne]));
|
|
1535
|
+
var ce = w.map(function(te) {
|
|
1536
|
+
return String(te);
|
|
1537
|
+
});
|
|
1538
|
+
ce.unshift("Warning: " + d), Function.prototype.apply.call(console[a], console, ce);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
var Q = !1, G = !1, ue = !1, le = !1, ie = !1, F;
|
|
1542
|
+
F = Symbol.for("react.module.reference");
|
|
1543
|
+
function W(a) {
|
|
1544
|
+
return !!(typeof a == "string" || typeof a == "function" || a === v || a === R || ie || a === m || a === k || a === x || le || a === b || Q || G || ue || typeof a == "object" && a !== null && (a.$$typeof === E || a.$$typeof === y || a.$$typeof === j || a.$$typeof === S || a.$$typeof === N || // This needs to include all possible module reference object
|
|
1545
|
+
// types supported by any Flight configuration anywhere since
|
|
1546
|
+
// we don't know which Flight build this will end up being used
|
|
1547
|
+
// with.
|
|
1548
|
+
a.$$typeof === F || a.getModuleId !== void 0));
|
|
1549
|
+
}
|
|
1550
|
+
function oe(a, d, w) {
|
|
1551
|
+
var T = a.displayName;
|
|
1552
|
+
if (T)
|
|
1553
|
+
return T;
|
|
1554
|
+
var ne = d.displayName || d.name || "";
|
|
1555
|
+
return ne !== "" ? w + "(" + ne + ")" : w;
|
|
1556
|
+
}
|
|
1557
|
+
function be(a) {
|
|
1558
|
+
return a.displayName || "Context";
|
|
1559
|
+
}
|
|
1560
|
+
function fe(a) {
|
|
1561
|
+
if (a == null)
|
|
1562
|
+
return null;
|
|
1563
|
+
if (typeof a.tag == "number" && B("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
|
|
1564
|
+
return a.displayName || a.name || null;
|
|
1565
|
+
if (typeof a == "string")
|
|
1566
|
+
return a;
|
|
1567
|
+
switch (a) {
|
|
1568
|
+
case v:
|
|
1569
|
+
return "Fragment";
|
|
1570
|
+
case p:
|
|
1571
|
+
return "Portal";
|
|
1572
|
+
case R:
|
|
1573
|
+
return "Profiler";
|
|
1574
|
+
case m:
|
|
1575
|
+
return "StrictMode";
|
|
1576
|
+
case k:
|
|
1577
|
+
return "Suspense";
|
|
1578
|
+
case x:
|
|
1579
|
+
return "SuspenseList";
|
|
1580
|
+
}
|
|
1581
|
+
if (typeof a == "object")
|
|
1582
|
+
switch (a.$$typeof) {
|
|
1583
|
+
case S:
|
|
1584
|
+
var d = a;
|
|
1585
|
+
return be(d) + ".Consumer";
|
|
1586
|
+
case j:
|
|
1587
|
+
var w = a;
|
|
1588
|
+
return be(w._context) + ".Provider";
|
|
1589
|
+
case N:
|
|
1590
|
+
return oe(a, a.render, "ForwardRef");
|
|
1591
|
+
case y:
|
|
1592
|
+
var T = a.displayName || null;
|
|
1593
|
+
return T !== null ? T : fe(a.type) || "Memo";
|
|
1594
|
+
case E: {
|
|
1595
|
+
var ne = a, ce = ne._payload, te = ne._init;
|
|
1596
|
+
try {
|
|
1597
|
+
return fe(te(ce));
|
|
1598
|
+
} catch {
|
|
1599
|
+
return null;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
return null;
|
|
1604
|
+
}
|
|
1605
|
+
var l = Object.assign, g = 0, C, h, Y, z, ee, n, u;
|
|
1606
|
+
function A() {
|
|
1607
|
+
}
|
|
1608
|
+
A.__reactDisabledLog = !0;
|
|
1609
|
+
function L() {
|
|
1610
|
+
{
|
|
1611
|
+
if (g === 0) {
|
|
1612
|
+
C = console.log, h = console.info, Y = console.warn, z = console.error, ee = console.group, n = console.groupCollapsed, u = console.groupEnd;
|
|
1613
|
+
var a = {
|
|
1614
|
+
configurable: !0,
|
|
1615
|
+
enumerable: !0,
|
|
1616
|
+
value: A,
|
|
1617
|
+
writable: !0
|
|
1618
|
+
};
|
|
1619
|
+
Object.defineProperties(console, {
|
|
1620
|
+
info: a,
|
|
1621
|
+
log: a,
|
|
1622
|
+
warn: a,
|
|
1623
|
+
error: a,
|
|
1624
|
+
group: a,
|
|
1625
|
+
groupCollapsed: a,
|
|
1626
|
+
groupEnd: a
|
|
1627
|
+
});
|
|
1628
|
+
}
|
|
1629
|
+
g++;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
function P() {
|
|
1633
|
+
{
|
|
1634
|
+
if (g--, g === 0) {
|
|
1635
|
+
var a = {
|
|
1636
|
+
configurable: !0,
|
|
1637
|
+
enumerable: !0,
|
|
1638
|
+
writable: !0
|
|
1639
|
+
};
|
|
1640
|
+
Object.defineProperties(console, {
|
|
1641
|
+
log: l({}, a, {
|
|
1642
|
+
value: C
|
|
1643
|
+
}),
|
|
1644
|
+
info: l({}, a, {
|
|
1645
|
+
value: h
|
|
1646
|
+
}),
|
|
1647
|
+
warn: l({}, a, {
|
|
1648
|
+
value: Y
|
|
1649
|
+
}),
|
|
1650
|
+
error: l({}, a, {
|
|
1651
|
+
value: z
|
|
1652
|
+
}),
|
|
1653
|
+
group: l({}, a, {
|
|
1654
|
+
value: ee
|
|
1655
|
+
}),
|
|
1656
|
+
groupCollapsed: l({}, a, {
|
|
1657
|
+
value: n
|
|
1658
|
+
}),
|
|
1659
|
+
groupEnd: l({}, a, {
|
|
1660
|
+
value: u
|
|
1661
|
+
})
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
g < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
var f = Z.ReactCurrentDispatcher, D;
|
|
1668
|
+
function V(a, d, w) {
|
|
1669
|
+
{
|
|
1670
|
+
if (D === void 0)
|
|
1671
|
+
try {
|
|
1672
|
+
throw Error();
|
|
1673
|
+
} catch (ne) {
|
|
1674
|
+
var T = ne.stack.trim().match(/\n( *(at )?)/);
|
|
1675
|
+
D = T && T[1] || "";
|
|
1676
|
+
}
|
|
1677
|
+
return `
|
|
1678
|
+
` + D + a;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
var re = !1, he;
|
|
1682
|
+
{
|
|
1683
|
+
var Er = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1684
|
+
he = new Er();
|
|
1685
|
+
}
|
|
1686
|
+
function nr(a, d) {
|
|
1687
|
+
if (!a || re)
|
|
1688
|
+
return "";
|
|
1689
|
+
{
|
|
1690
|
+
var w = he.get(a);
|
|
1691
|
+
if (w !== void 0)
|
|
1692
|
+
return w;
|
|
1693
|
+
}
|
|
1694
|
+
var T;
|
|
1695
|
+
re = !0;
|
|
1696
|
+
var ne = Error.prepareStackTrace;
|
|
1697
|
+
Error.prepareStackTrace = void 0;
|
|
1698
|
+
var ce;
|
|
1699
|
+
ce = f.current, f.current = null, L();
|
|
1700
|
+
try {
|
|
1701
|
+
if (d) {
|
|
1702
|
+
var te = function() {
|
|
1703
|
+
throw Error();
|
|
1704
|
+
};
|
|
1705
|
+
if (Object.defineProperty(te.prototype, "props", {
|
|
1706
|
+
set: function() {
|
|
1707
|
+
throw Error();
|
|
1708
|
+
}
|
|
1709
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1710
|
+
try {
|
|
1711
|
+
Reflect.construct(te, []);
|
|
1712
|
+
} catch (Ee) {
|
|
1713
|
+
T = Ee;
|
|
1714
|
+
}
|
|
1715
|
+
Reflect.construct(a, [], te);
|
|
1716
|
+
} else {
|
|
1717
|
+
try {
|
|
1718
|
+
te.call();
|
|
1719
|
+
} catch (Ee) {
|
|
1720
|
+
T = Ee;
|
|
1721
|
+
}
|
|
1722
|
+
a.call(te.prototype);
|
|
1723
|
+
}
|
|
1724
|
+
} else {
|
|
1725
|
+
try {
|
|
1726
|
+
throw Error();
|
|
1727
|
+
} catch (Ee) {
|
|
1728
|
+
T = Ee;
|
|
1729
|
+
}
|
|
1730
|
+
a();
|
|
1731
|
+
}
|
|
1732
|
+
} catch (Ee) {
|
|
1733
|
+
if (Ee && T && typeof Ee.stack == "string") {
|
|
1734
|
+
for (var J = Ee.stack.split(`
|
|
1735
|
+
`), xe = T.stack.split(`
|
|
1736
|
+
`), me = J.length - 1, ye = xe.length - 1; me >= 1 && ye >= 0 && J[me] !== xe[ye]; )
|
|
1737
|
+
ye--;
|
|
1738
|
+
for (; me >= 1 && ye >= 0; me--, ye--)
|
|
1739
|
+
if (J[me] !== xe[ye]) {
|
|
1740
|
+
if (me !== 1 || ye !== 1)
|
|
1741
|
+
do
|
|
1742
|
+
if (me--, ye--, ye < 0 || J[me] !== xe[ye]) {
|
|
1743
|
+
var we = `
|
|
1744
|
+
` + J[me].replace(" at new ", " at ");
|
|
1745
|
+
return a.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", a.displayName)), typeof a == "function" && he.set(a, we), we;
|
|
1746
|
+
}
|
|
1747
|
+
while (me >= 1 && ye >= 0);
|
|
1748
|
+
break;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
} finally {
|
|
1752
|
+
re = !1, f.current = ce, P(), Error.prepareStackTrace = ne;
|
|
1753
|
+
}
|
|
1754
|
+
var Me = a ? a.displayName || a.name : "", Ce = Me ? V(Me) : "";
|
|
1755
|
+
return typeof a == "function" && he.set(a, Ce), Ce;
|
|
1756
|
+
}
|
|
1757
|
+
function Le(a, d, w) {
|
|
1758
|
+
return nr(a, !1);
|
|
1759
|
+
}
|
|
1760
|
+
function wr(a) {
|
|
1761
|
+
var d = a.prototype;
|
|
1762
|
+
return !!(d && d.isReactComponent);
|
|
1763
|
+
}
|
|
1764
|
+
function Fe(a, d, w) {
|
|
1765
|
+
if (a == null)
|
|
1766
|
+
return "";
|
|
1767
|
+
if (typeof a == "function")
|
|
1768
|
+
return nr(a, wr(a));
|
|
1769
|
+
if (typeof a == "string")
|
|
1770
|
+
return V(a);
|
|
1771
|
+
switch (a) {
|
|
1772
|
+
case k:
|
|
1773
|
+
return V("Suspense");
|
|
1774
|
+
case x:
|
|
1775
|
+
return V("SuspenseList");
|
|
1776
|
+
}
|
|
1777
|
+
if (typeof a == "object")
|
|
1778
|
+
switch (a.$$typeof) {
|
|
1779
|
+
case N:
|
|
1780
|
+
return Le(a.render);
|
|
1781
|
+
case y:
|
|
1782
|
+
return Fe(a.type, d, w);
|
|
1783
|
+
case E: {
|
|
1784
|
+
var T = a, ne = T._payload, ce = T._init;
|
|
1785
|
+
try {
|
|
1786
|
+
return Fe(ce(ne), d, w);
|
|
1787
|
+
} catch {
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
return "";
|
|
1792
|
+
}
|
|
1793
|
+
var ke = Object.prototype.hasOwnProperty, Oe = {}, sr = Z.ReactDebugCurrentFrame;
|
|
1794
|
+
function Pe(a) {
|
|
1795
|
+
if (a) {
|
|
1796
|
+
var d = a._owner, w = Fe(a.type, a._source, d ? d.type : null);
|
|
1797
|
+
sr.setExtraStackFrame(w);
|
|
1798
|
+
} else
|
|
1799
|
+
sr.setExtraStackFrame(null);
|
|
1800
|
+
}
|
|
1801
|
+
function Ne(a, d, w, T, ne) {
|
|
1802
|
+
{
|
|
1803
|
+
var ce = Function.call.bind(ke);
|
|
1804
|
+
for (var te in a)
|
|
1805
|
+
if (ce(a, te)) {
|
|
1806
|
+
var J = void 0;
|
|
1807
|
+
try {
|
|
1808
|
+
if (typeof a[te] != "function") {
|
|
1809
|
+
var xe = Error((T || "React class") + ": " + w + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1810
|
+
throw xe.name = "Invariant Violation", xe;
|
|
1811
|
+
}
|
|
1812
|
+
J = a[te](d, te, T, w, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1813
|
+
} catch (me) {
|
|
1814
|
+
J = me;
|
|
1815
|
+
}
|
|
1816
|
+
J && !(J instanceof Error) && (Pe(ne), B("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", w, te, typeof J), Pe(null)), J instanceof Error && !(J.message in Oe) && (Oe[J.message] = !0, Pe(ne), B("Failed %s type: %s", w, J.message), Pe(null));
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
var Ae = Array.isArray;
|
|
1821
|
+
function Be(a) {
|
|
1822
|
+
return Ae(a);
|
|
1823
|
+
}
|
|
1824
|
+
function ir(a) {
|
|
1825
|
+
{
|
|
1826
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, w = d && a[Symbol.toStringTag] || a.constructor.name || "Object";
|
|
1827
|
+
return w;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
function or(a) {
|
|
1831
|
+
try {
|
|
1832
|
+
return Ve(a), !1;
|
|
1833
|
+
} catch {
|
|
1834
|
+
return !0;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
function Ve(a) {
|
|
1838
|
+
return "" + a;
|
|
1839
|
+
}
|
|
1840
|
+
function He(a) {
|
|
1841
|
+
if (or(a))
|
|
1842
|
+
return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(a)), Ve(a);
|
|
1843
|
+
}
|
|
1844
|
+
var Ke = Z.ReactCurrentOwner, Rr = {
|
|
1845
|
+
key: !0,
|
|
1846
|
+
ref: !0,
|
|
1847
|
+
__self: !0,
|
|
1848
|
+
__source: !0
|
|
1849
|
+
}, lr, cr;
|
|
1850
|
+
function Ge(a) {
|
|
1851
|
+
if (ke.call(a, "ref")) {
|
|
1852
|
+
var d = Object.getOwnPropertyDescriptor(a, "ref").get;
|
|
1853
|
+
if (d && d.isReactWarning)
|
|
1854
|
+
return !1;
|
|
1855
|
+
}
|
|
1856
|
+
return a.ref !== void 0;
|
|
1857
|
+
}
|
|
1858
|
+
function Nr(a) {
|
|
1859
|
+
if (ke.call(a, "key")) {
|
|
1860
|
+
var d = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
1861
|
+
if (d && d.isReactWarning)
|
|
1862
|
+
return !1;
|
|
1863
|
+
}
|
|
1864
|
+
return a.key !== void 0;
|
|
1865
|
+
}
|
|
1866
|
+
function Cr(a, d) {
|
|
1867
|
+
typeof a.ref == "string" && Ke.current;
|
|
1868
|
+
}
|
|
1869
|
+
function kr(a, d) {
|
|
1870
|
+
{
|
|
1871
|
+
var w = function() {
|
|
1872
|
+
lr || (lr = !0, B("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
1873
|
+
};
|
|
1874
|
+
w.isReactWarning = !0, Object.defineProperty(a, "key", {
|
|
1875
|
+
get: w,
|
|
1876
|
+
configurable: !0
|
|
1877
|
+
});
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
function Se(a, d) {
|
|
1881
|
+
{
|
|
1882
|
+
var w = function() {
|
|
1883
|
+
cr || (cr = !0, B("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
|
|
1884
|
+
};
|
|
1885
|
+
w.isReactWarning = !0, Object.defineProperty(a, "ref", {
|
|
1886
|
+
get: w,
|
|
1887
|
+
configurable: !0
|
|
1888
|
+
});
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
var ur = function(a, d, w, T, ne, ce, te) {
|
|
1892
|
+
var J = {
|
|
1893
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
1894
|
+
$$typeof: s,
|
|
1895
|
+
// Built-in properties that belong on the element
|
|
1896
|
+
type: a,
|
|
1897
|
+
key: d,
|
|
1898
|
+
ref: w,
|
|
1899
|
+
props: te,
|
|
1900
|
+
// Record the component responsible for creating this element.
|
|
1901
|
+
_owner: ce
|
|
1902
|
+
};
|
|
1903
|
+
return J._store = {}, Object.defineProperty(J._store, "validated", {
|
|
1904
|
+
configurable: !1,
|
|
1905
|
+
enumerable: !1,
|
|
1906
|
+
writable: !0,
|
|
1907
|
+
value: !1
|
|
1908
|
+
}), Object.defineProperty(J, "_self", {
|
|
1909
|
+
configurable: !1,
|
|
1910
|
+
enumerable: !1,
|
|
1911
|
+
writable: !1,
|
|
1912
|
+
value: T
|
|
1913
|
+
}), Object.defineProperty(J, "_source", {
|
|
1914
|
+
configurable: !1,
|
|
1915
|
+
enumerable: !1,
|
|
1916
|
+
writable: !1,
|
|
1917
|
+
value: ne
|
|
1918
|
+
}), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
|
|
1919
|
+
};
|
|
1920
|
+
function Sr(a, d, w, T, ne) {
|
|
1921
|
+
{
|
|
1922
|
+
var ce, te = {}, J = null, xe = null;
|
|
1923
|
+
w !== void 0 && (He(w), J = "" + w), Nr(d) && (He(d.key), J = "" + d.key), Ge(d) && (xe = d.ref, Cr(d, ne));
|
|
1924
|
+
for (ce in d)
|
|
1925
|
+
ke.call(d, ce) && !Rr.hasOwnProperty(ce) && (te[ce] = d[ce]);
|
|
1926
|
+
if (a && a.defaultProps) {
|
|
1927
|
+
var me = a.defaultProps;
|
|
1928
|
+
for (ce in me)
|
|
1929
|
+
te[ce] === void 0 && (te[ce] = me[ce]);
|
|
1930
|
+
}
|
|
1931
|
+
if (J || xe) {
|
|
1932
|
+
var ye = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
1933
|
+
J && kr(te, ye), xe && Se(te, ye);
|
|
1934
|
+
}
|
|
1935
|
+
return ur(a, J, xe, ne, T, Ke.current, te);
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
var Ze = Z.ReactCurrentOwner, Je = Z.ReactDebugCurrentFrame;
|
|
1939
|
+
function Te(a) {
|
|
1940
|
+
if (a) {
|
|
1941
|
+
var d = a._owner, w = Fe(a.type, a._source, d ? d.type : null);
|
|
1942
|
+
Je.setExtraStackFrame(w);
|
|
1943
|
+
} else
|
|
1944
|
+
Je.setExtraStackFrame(null);
|
|
1945
|
+
}
|
|
1946
|
+
var Ue;
|
|
1947
|
+
Ue = !1;
|
|
1948
|
+
function Ie(a) {
|
|
1949
|
+
return typeof a == "object" && a !== null && a.$$typeof === s;
|
|
1950
|
+
}
|
|
1951
|
+
function $e() {
|
|
1952
|
+
{
|
|
1953
|
+
if (Ze.current) {
|
|
1954
|
+
var a = fe(Ze.current.type);
|
|
1955
|
+
if (a)
|
|
1956
|
+
return `
|
|
1957
|
+
|
|
1958
|
+
Check the render method of \`` + a + "`.";
|
|
1959
|
+
}
|
|
1960
|
+
return "";
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
function ze(a) {
|
|
1964
|
+
return "";
|
|
1965
|
+
}
|
|
1966
|
+
var dr = {};
|
|
1967
|
+
function Tr(a) {
|
|
1968
|
+
{
|
|
1969
|
+
var d = $e();
|
|
1970
|
+
if (!d) {
|
|
1971
|
+
var w = typeof a == "string" ? a : a.displayName || a.name;
|
|
1972
|
+
w && (d = `
|
|
1973
|
+
|
|
1974
|
+
Check the top-level render call using <` + w + ">.");
|
|
1975
|
+
}
|
|
1976
|
+
return d;
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
function fr(a, d) {
|
|
1980
|
+
{
|
|
1981
|
+
if (!a._store || a._store.validated || a.key != null)
|
|
1982
|
+
return;
|
|
1983
|
+
a._store.validated = !0;
|
|
1984
|
+
var w = Tr(d);
|
|
1985
|
+
if (dr[w])
|
|
1986
|
+
return;
|
|
1987
|
+
dr[w] = !0;
|
|
1988
|
+
var T = "";
|
|
1989
|
+
a && a._owner && a._owner !== Ze.current && (T = " It was passed a child from " + fe(a._owner.type) + "."), Te(a), B('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, T), Te(null);
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
function hr(a, d) {
|
|
1993
|
+
{
|
|
1994
|
+
if (typeof a != "object")
|
|
1995
|
+
return;
|
|
1996
|
+
if (Be(a))
|
|
1997
|
+
for (var w = 0; w < a.length; w++) {
|
|
1998
|
+
var T = a[w];
|
|
1999
|
+
Ie(T) && fr(T, d);
|
|
2000
|
+
}
|
|
2001
|
+
else if (Ie(a))
|
|
2002
|
+
a._store && (a._store.validated = !0);
|
|
2003
|
+
else if (a) {
|
|
2004
|
+
var ne = K(a);
|
|
2005
|
+
if (typeof ne == "function" && ne !== a.entries)
|
|
2006
|
+
for (var ce = ne.call(a), te; !(te = ce.next()).done; )
|
|
2007
|
+
Ie(te.value) && fr(te.value, d);
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
function Mr(a) {
|
|
2012
|
+
{
|
|
2013
|
+
var d = a.type;
|
|
2014
|
+
if (d == null || typeof d == "string")
|
|
2015
|
+
return;
|
|
2016
|
+
var w;
|
|
2017
|
+
if (typeof d == "function")
|
|
2018
|
+
w = d.propTypes;
|
|
2019
|
+
else if (typeof d == "object" && (d.$$typeof === N || // Note: Memo only checks outer props here.
|
|
2020
|
+
// Inner props are checked in the reconciler.
|
|
2021
|
+
d.$$typeof === y))
|
|
2022
|
+
w = d.propTypes;
|
|
2023
|
+
else
|
|
2024
|
+
return;
|
|
2025
|
+
if (w) {
|
|
2026
|
+
var T = fe(d);
|
|
2027
|
+
Ne(w, a.props, "prop", T, a);
|
|
2028
|
+
} else if (d.PropTypes !== void 0 && !Ue) {
|
|
2029
|
+
Ue = !0;
|
|
2030
|
+
var ne = fe(d);
|
|
2031
|
+
B("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ne || "Unknown");
|
|
2032
|
+
}
|
|
2033
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && B("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
function De(a) {
|
|
2037
|
+
{
|
|
2038
|
+
for (var d = Object.keys(a.props), w = 0; w < d.length; w++) {
|
|
2039
|
+
var T = d[w];
|
|
2040
|
+
if (T !== "children" && T !== "key") {
|
|
2041
|
+
Te(a), B("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), Te(null);
|
|
2042
|
+
break;
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
a.ref !== null && (Te(a), B("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
var We = {};
|
|
2049
|
+
function Xe(a, d, w, T, ne, ce) {
|
|
2050
|
+
{
|
|
2051
|
+
var te = W(a);
|
|
2052
|
+
if (!te) {
|
|
2053
|
+
var J = "";
|
|
2054
|
+
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2055
|
+
var xe = ze();
|
|
2056
|
+
xe ? J += xe : J += $e();
|
|
2057
|
+
var me;
|
|
2058
|
+
a === null ? me = "null" : Be(a) ? me = "array" : a !== void 0 && a.$$typeof === s ? (me = "<" + (fe(a.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : me = typeof a, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", me, J);
|
|
2059
|
+
}
|
|
2060
|
+
var ye = Sr(a, d, w, ne, ce);
|
|
2061
|
+
if (ye == null)
|
|
2062
|
+
return ye;
|
|
2063
|
+
if (te) {
|
|
2064
|
+
var we = d.children;
|
|
2065
|
+
if (we !== void 0)
|
|
2066
|
+
if (T)
|
|
2067
|
+
if (Be(we)) {
|
|
2068
|
+
for (var Me = 0; Me < we.length; Me++)
|
|
2069
|
+
hr(we[Me], a);
|
|
2070
|
+
Object.freeze && Object.freeze(we);
|
|
2071
|
+
} else
|
|
2072
|
+
B("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2073
|
+
else
|
|
2074
|
+
hr(we, a);
|
|
2075
|
+
}
|
|
2076
|
+
if (ke.call(d, "key")) {
|
|
2077
|
+
var Ce = fe(a), Ee = Object.keys(d).filter(function(Dr) {
|
|
2078
|
+
return Dr !== "key";
|
|
2079
|
+
}), Qe = Ee.length > 0 ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
2080
|
+
if (!We[Ce + Qe]) {
|
|
2081
|
+
var $r = Ee.length > 0 ? "{" + Ee.join(": ..., ") + ": ...}" : "{}";
|
|
2082
|
+
B(`A props object containing a "key" prop is being spread into JSX:
|
|
2083
|
+
let props = %s;
|
|
2084
|
+
<%s {...props} />
|
|
2085
|
+
React keys must be passed directly to JSX without using spread:
|
|
2086
|
+
let props = %s;
|
|
2087
|
+
<%s key={someKey} {...props} />`, Qe, Ce, $r, Ce), We[Ce + Qe] = !0;
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
return a === v ? De(ye) : Mr(ye), ye;
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
function Or(a, d, w) {
|
|
2094
|
+
return Xe(a, d, w, !0);
|
|
2095
|
+
}
|
|
2096
|
+
function Pr(a, d, w) {
|
|
2097
|
+
return Xe(a, d, w, !1);
|
|
2098
|
+
}
|
|
2099
|
+
var Ar = Pr, Ir = Or;
|
|
2100
|
+
tr.Fragment = v, tr.jsx = Ar, tr.jsxs = Ir;
|
|
2101
|
+
})()), tr;
|
|
2102
|
+
}
|
|
2103
|
+
var wt;
|
|
2104
|
+
function Xt() {
|
|
2105
|
+
return wt || (wt = 1, process.env.NODE_ENV === "production" ? xr.exports = Zt() : xr.exports = Jt()), xr.exports;
|
|
2106
|
+
}
|
|
2107
|
+
var r = Xt();
|
|
2108
|
+
const Qt = {
|
|
2109
|
+
"app-window": '<rect x="2" y="4" width="20" height="16" rx="2"/><path d="M2 9h20"/><path d="M6 6.5h.01M9 6.5h.01"/>',
|
|
2110
|
+
card: '<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 15h18"/>',
|
|
2111
|
+
"check-square": '<rect x="3" y="3" width="18" height="18" rx="2"/><path d="m8 12 3 3 5-6"/>',
|
|
2112
|
+
"chevrons-up-down": '<path d="m7 15 5 5 5-5"/><path d="m7 9 5-5 5 5"/>',
|
|
2113
|
+
"circle-dot": '<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3"/>',
|
|
2114
|
+
loader: '<path d="M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4M4.9 19.1l2.8-2.8M16.3 7.7l2.8-2.8"/>',
|
|
2115
|
+
"message-square": '<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z"/>',
|
|
2116
|
+
"mouse-pointer": '<path d="m4 4 7 17 2.5-7.5L21 11 4 4Z"/>',
|
|
2117
|
+
"panel-top": '<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18"/>',
|
|
2118
|
+
"rectangle-horizontal": '<rect x="3" y="8" width="18" height="8" rx="2"/>',
|
|
2119
|
+
rows: '<rect x="3" y="3" width="18" height="7" rx="1.5"/><rect x="3" y="14" width="18" height="7" rx="1.5"/>',
|
|
2120
|
+
"square-dashed": '<path d="M5 3a2 2 0 0 0-2 2M19 3a2 2 0 0 1 2 2M21 19a2 2 0 0 1-2 2M5 21a2 2 0 0 1-2-2M9 3h1M9 21h1M14 3h1M14 21h1M3 9v1M21 9v1M3 14v1M21 14v1"/>',
|
|
2121
|
+
table: '<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M3 15h18M9 9v12"/>',
|
|
2122
|
+
tag: '<path d="M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4Z"/><circle cx="7.5" cy="7.5" r="1"/>',
|
|
2123
|
+
"text-cursor": '<path d="M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1"/><path d="M7 22h1a4 4 0 0 0 4-4v-1"/><path d="M7 2h1a4 4 0 0 1 4 4v1"/>',
|
|
2124
|
+
"alert-circle": '<circle cx="12" cy="12" r="9"/><path d="M12 8v4"/><path d="M12 16h.01"/>',
|
|
2125
|
+
"alert-triangle": '<path d="M10.3 3.6 2.4 17a2 2 0 0 0 1.7 3h15.8a2 2 0 0 0 1.7-3L13.7 3.6a2 2 0 0 0-3.4 0Z"/><path d="M12 9v4"/><path d="M12 17h.01"/>',
|
|
2126
|
+
"arrow-left": '<path d="m12 19-7-7 7-7"/><path d="M19 12H5"/>',
|
|
2127
|
+
"arrow-right": '<path d="M5 12h14"/><path d="m12 5 7 7-7 7"/>',
|
|
2128
|
+
"arrow-up-right": '<path d="M7 17 17 7"/><path d="M7 7h10v10"/>',
|
|
2129
|
+
activity: '<path d="M22 12h-4l-3 9L9 3l-3 9H2"/>',
|
|
2130
|
+
bell: '<path d="M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.7 21a2 2 0 0 1-3.4 0"/>',
|
|
2131
|
+
book: '<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"/>',
|
|
2132
|
+
box: '<path d="m21 8-9 5-9-5"/><path d="M3 8v8l9 5 9-5V8"/><path d="m12 3 9 5-9 5-9-5 9-5Z"/>',
|
|
2133
|
+
check: '<path d="M20 6 9 17l-5-5"/>',
|
|
2134
|
+
"check-circle": '<circle cx="12" cy="12" r="9"/><path d="m8.5 12 2.5 2.5 4.5-5"/>',
|
|
2135
|
+
"chevron-down": '<path d="m6 9 6 6 6-6"/>',
|
|
2136
|
+
"chevron-left": '<path d="m15 18-6-6 6-6"/>',
|
|
2137
|
+
"chevron-right": '<path d="m9 18 6-6-6-6"/>',
|
|
2138
|
+
clock: '<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>',
|
|
2139
|
+
command: '<path d="M9 6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6Z"/>',
|
|
2140
|
+
cpu: '<rect x="6" y="6" width="12" height="12" rx="2"/><path d="M9 2v4M15 2v4M9 18v4M15 18v4M2 9h4M2 15h4M18 9h4M18 15h4"/>',
|
|
2141
|
+
database: '<ellipse cx="12" cy="5" rx="8" ry="3"/><path d="M4 5v14c0 1.7 3.6 3 8 3s8-1.3 8-3V5"/><path d="M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3"/>',
|
|
2142
|
+
download: '<path d="M12 3v12"/><path d="m7 10 5 5 5-5"/><path d="M5 21h14"/>',
|
|
2143
|
+
external: '<path d="M15 3h6v6"/><path d="m10 14 11-11"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',
|
|
2144
|
+
eye: '<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>',
|
|
2145
|
+
"eye-off": '<path d="m3 3 18 18"/><path d="M10.6 10.6a3 3 0 0 0 4.2 4.2"/><path d="M9.9 5.2A10.5 10.5 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-2.2 3.2"/><path d="M6.6 6.6A17 17 0 0 0 2 12s3.5 7 10 7a10.5 10.5 0 0 0 4.1-.8"/>',
|
|
2146
|
+
"file-text": '<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6"/><path d="M8 13h8M8 17h6"/>',
|
|
2147
|
+
filter: '<path d="M3 5h18l-7 8v6l-4 2v-8Z"/>',
|
|
2148
|
+
"git-branch": '<path d="M6 3v12"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>',
|
|
2149
|
+
grid: '<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/>',
|
|
2150
|
+
"hard-drive": '<path d="M22 12H2"/><path d="M5.5 5h13L22 12v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5Z"/><path d="M6 16h.01M10 16h.01"/>',
|
|
2151
|
+
home: '<path d="m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1Z"/>',
|
|
2152
|
+
inbox: '<path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.5 5h13L22 12v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5Z"/>',
|
|
2153
|
+
info: '<circle cx="12" cy="12" r="9"/><path d="M12 11v5"/><path d="M12 8h.01"/>',
|
|
2154
|
+
layers: '<path d="m12 2 9 5-9 5-9-5 9-5Z"/><path d="m3 12 9 5 9-5"/><path d="m3 17 9 5 9-5"/>',
|
|
2155
|
+
login: '<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><path d="m10 17 5-5-5-5"/><path d="M15 12H3"/>',
|
|
2156
|
+
"log-out": '<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><path d="m16 17 5-5-5-5"/><path d="M21 12H9"/>',
|
|
2157
|
+
menu: '<path d="M4 6h16M4 12h16M4 18h16"/>',
|
|
2158
|
+
minus: '<path d="M5 12h14"/>',
|
|
2159
|
+
"more-horizontal": '<circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/>',
|
|
2160
|
+
moon: '<path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"/>',
|
|
2161
|
+
network: '<rect x="9" y="2" width="6" height="6" rx="1"/><rect x="2" y="16" width="6" height="6" rx="1"/><rect x="16" y="16" width="6" height="6" rx="1"/><path d="M12 8v4M5 16v-4h14v4"/>',
|
|
2162
|
+
"panel-left": '<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M3 15h18"/>',
|
|
2163
|
+
"panel-right": '<rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 15h12"/>',
|
|
2164
|
+
pencil: '<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/><path d="m17 3 16 17-5.5-1.5Z"/>',
|
|
2165
|
+
plus: '<path d="M12 5v14M5 12h14"/>',
|
|
2166
|
+
"power-off": '<path d="M3 12a9 9 0 0 1 9-9c4.7 0 8.6 3.5 9.3 8.2h.1c.7 4.7-3.5 8.9-8.2 9.5z"/><path d="M12 3v4M12 17v4M5.5 5.5 17.5 17.5"/>',
|
|
2167
|
+
save: '<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z"/><polyline points="17 21 17 13 7 13 7 21"/><polyline points="7 3 7 8 15 8"/>',
|
|
2168
|
+
search: '<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',
|
|
2169
|
+
send: '<path d="M19 12H5M5 12l6 6-6 6M19 12l-6 6 6 6"/>',
|
|
2170
|
+
settings: '<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1-1.51l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1 1.51Z"/><path d="M12 17a5 5 0 0 0 5-5 5.005 5.005 0 0 0-8.535-2.293l-.01-.01a4.995 4.995 0 0 0-6.93 0l-.01.01A5 5 0 0 0 12 7a5 5 0 0 0 5 5 5.005 5.005 0 0 0 5-5l-.01-.01"/><line x1="12" y1="1" x2="12" y2="23"/><line x1="1" y1="12" x2="23" y2="12"/>',
|
|
2171
|
+
share: '<path d="M18 16l-6-6 6-6"/><path d="M13 18H7l3 3 3-3H13"/>',
|
|
2172
|
+
shield: '<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"/>',
|
|
2173
|
+
star: '<path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2Z"/>',
|
|
2174
|
+
sun: '<circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/>',
|
|
2175
|
+
terminal: '<polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="12" y2="5"/>',
|
|
2176
|
+
"trash-2": '<polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>',
|
|
2177
|
+
user: '<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>',
|
|
2178
|
+
x: '<line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/>'
|
|
2179
|
+
}, ea = {
|
|
2180
|
+
14: 2,
|
|
2181
|
+
16: 1.75,
|
|
2182
|
+
20: 1.6,
|
|
2183
|
+
24: 1.5
|
|
2184
|
+
};
|
|
2185
|
+
function q({
|
|
2186
|
+
name: c,
|
|
2187
|
+
size: s = 16,
|
|
2188
|
+
stroke: p,
|
|
2189
|
+
label: v,
|
|
2190
|
+
className: m
|
|
2191
|
+
}) {
|
|
2192
|
+
const R = Qt[c];
|
|
2193
|
+
if (!R)
|
|
2194
|
+
throw new Error(`Icon: unknown name "${c}".`);
|
|
2195
|
+
const j = typeof s == "number" ? s : Number.parseFloat(String(s)) || 16, S = p ?? ea[j] ?? (j <= 14 ? 2 : 1.6), N = {
|
|
2196
|
+
className: ["ds-icon", m].filter(Boolean).join(" "),
|
|
2197
|
+
width: j,
|
|
2198
|
+
height: j,
|
|
2199
|
+
viewBox: "0 0 24 24",
|
|
2200
|
+
fill: "none",
|
|
2201
|
+
stroke: "currentColor",
|
|
2202
|
+
strokeWidth: S,
|
|
2203
|
+
strokeLinecap: "round",
|
|
2204
|
+
strokeLinejoin: "round",
|
|
2205
|
+
role: v ? "img" : void 0,
|
|
2206
|
+
"aria-label": v,
|
|
2207
|
+
"aria-hidden": v ? void 0 : !0,
|
|
2208
|
+
dangerouslySetInnerHTML: { __html: R }
|
|
2209
|
+
};
|
|
2210
|
+
return /* @__PURE__ */ r.jsx("svg", { ...N });
|
|
2211
|
+
}
|
|
2212
|
+
function ia({ items: c, name: s, className: p }) {
|
|
2213
|
+
const v = ["ds-accordion", p].filter(Boolean).join(" ");
|
|
2214
|
+
return /* @__PURE__ */ r.jsx("div", { className: v, children: c.map((m, R) => /* @__PURE__ */ r.jsxs(
|
|
2215
|
+
"details",
|
|
2216
|
+
{
|
|
2217
|
+
className: "ds-accordion__item",
|
|
2218
|
+
open: m.open,
|
|
2219
|
+
name: s,
|
|
2220
|
+
children: [
|
|
2221
|
+
/* @__PURE__ */ r.jsxs("summary", { className: "ds-accordion__trigger", children: [
|
|
2222
|
+
/* @__PURE__ */ r.jsx("span", { children: m.title }),
|
|
2223
|
+
/* @__PURE__ */ r.jsx(
|
|
2224
|
+
q,
|
|
2225
|
+
{
|
|
2226
|
+
name: "chevron-down",
|
|
2227
|
+
size: 20,
|
|
2228
|
+
className: "ds-accordion__icon",
|
|
2229
|
+
"aria-hidden": !0
|
|
2230
|
+
}
|
|
2231
|
+
)
|
|
2232
|
+
] }),
|
|
2233
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-accordion__panel", children: /* @__PURE__ */ r.jsx("p", { children: m.content }) })
|
|
2234
|
+
]
|
|
2235
|
+
},
|
|
2236
|
+
R
|
|
2237
|
+
)) });
|
|
2238
|
+
}
|
|
2239
|
+
const ra = {
|
|
2240
|
+
info: "info",
|
|
2241
|
+
success: "check-circle",
|
|
2242
|
+
warning: "alert-triangle",
|
|
2243
|
+
danger: "alert-circle"
|
|
2244
|
+
};
|
|
2245
|
+
function oa({
|
|
2246
|
+
tone: c = "info",
|
|
2247
|
+
title: s,
|
|
2248
|
+
message: p,
|
|
2249
|
+
dismissible: v = !1,
|
|
2250
|
+
className: m,
|
|
2251
|
+
children: R
|
|
2252
|
+
}) {
|
|
2253
|
+
const j = ra[c], S = `alert-${crypto.randomUUID()}`, N = [
|
|
2254
|
+
"ds-alert",
|
|
2255
|
+
c !== "info" && `ds-alert--${c}`,
|
|
2256
|
+
m
|
|
2257
|
+
].filter(Boolean).join(" "), k = () => {
|
|
2258
|
+
const x = document.getElementById(S);
|
|
2259
|
+
if (!x) return;
|
|
2260
|
+
const y = x.parentElement;
|
|
2261
|
+
x.remove(), y && (y.hasAttribute("tabindex") || (y.tabIndex = -1), y.focus({ preventScroll: !0 }));
|
|
2262
|
+
};
|
|
2263
|
+
return /* @__PURE__ */ r.jsxs("div", { className: N, id: S, "data-alert": !0, children: [
|
|
2264
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-alert__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: j, size: 20 }) }),
|
|
2265
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-alert__content", children: [
|
|
2266
|
+
/* @__PURE__ */ r.jsx("p", { className: "ds-alert__title", children: s }),
|
|
2267
|
+
p && /* @__PURE__ */ r.jsx("p", { className: "ds-alert__body", children: p }),
|
|
2268
|
+
R
|
|
2269
|
+
] }),
|
|
2270
|
+
v && /* @__PURE__ */ r.jsx(
|
|
2271
|
+
"button",
|
|
2272
|
+
{
|
|
2273
|
+
className: "ds-alert__close",
|
|
2274
|
+
type: "button",
|
|
2275
|
+
"aria-label": "Dismiss alert",
|
|
2276
|
+
"data-alert-close": !0,
|
|
2277
|
+
onClick: k,
|
|
2278
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "x", size: 16 })
|
|
2279
|
+
}
|
|
2280
|
+
)
|
|
2281
|
+
] });
|
|
2282
|
+
}
|
|
2283
|
+
function ta({
|
|
2284
|
+
tone: c = "neutral",
|
|
2285
|
+
dot: s = !1,
|
|
2286
|
+
className: p,
|
|
2287
|
+
children: v
|
|
2288
|
+
}) {
|
|
2289
|
+
const m = [
|
|
2290
|
+
"ds-badge",
|
|
2291
|
+
c !== "neutral" && `ds-badge--${c}`,
|
|
2292
|
+
p
|
|
2293
|
+
].filter(Boolean).join(" ");
|
|
2294
|
+
return /* @__PURE__ */ r.jsxs("span", { className: m, children: [
|
|
2295
|
+
s && /* @__PURE__ */ r.jsx("span", { className: "ds-badge__dot", "aria-hidden": "true" }),
|
|
2296
|
+
v
|
|
2297
|
+
] });
|
|
2298
|
+
}
|
|
2299
|
+
function la({
|
|
2300
|
+
items: c,
|
|
2301
|
+
label: s = "Breadcrumb",
|
|
2302
|
+
className: p
|
|
2303
|
+
}) {
|
|
2304
|
+
const v = ["ds-breadcrumbs", p].filter(Boolean).join(" ");
|
|
2305
|
+
return /* @__PURE__ */ r.jsx("nav", { className: v, "aria-label": s, children: /* @__PURE__ */ r.jsx("ol", { className: "ds-breadcrumbs__list", children: c.map((m, R) => /* @__PURE__ */ r.jsxs("li", { className: "ds-breadcrumbs__item", children: [
|
|
2306
|
+
m.href && R < c.length - 1 ? /* @__PURE__ */ r.jsx("a", { className: "ds-breadcrumbs__link", href: m.href, children: m.label }) : /* @__PURE__ */ r.jsx(
|
|
2307
|
+
"span",
|
|
2308
|
+
{
|
|
2309
|
+
className: "ds-breadcrumbs__current",
|
|
2310
|
+
"aria-current": R === c.length - 1 ? "page" : void 0,
|
|
2311
|
+
children: m.label
|
|
2312
|
+
}
|
|
2313
|
+
),
|
|
2314
|
+
R < c.length - 1 && /* @__PURE__ */ r.jsx(
|
|
2315
|
+
q,
|
|
2316
|
+
{
|
|
2317
|
+
name: "chevron-right",
|
|
2318
|
+
size: 12,
|
|
2319
|
+
className: "ds-breadcrumbs__separator",
|
|
2320
|
+
"aria-hidden": !0
|
|
2321
|
+
}
|
|
2322
|
+
)
|
|
2323
|
+
] }, m.href ?? m.label)) }) });
|
|
2324
|
+
}
|
|
2325
|
+
function Kr({
|
|
2326
|
+
variant: c = "secondary",
|
|
2327
|
+
size: s = "md",
|
|
2328
|
+
href: p,
|
|
2329
|
+
type: v = "button",
|
|
2330
|
+
disabled: m = !1,
|
|
2331
|
+
loading: R = !1,
|
|
2332
|
+
icon: j,
|
|
2333
|
+
iconPosition: S = "start",
|
|
2334
|
+
iconOnly: N = !1,
|
|
2335
|
+
block: k = !1,
|
|
2336
|
+
className: x,
|
|
2337
|
+
children: y,
|
|
2338
|
+
...E
|
|
2339
|
+
}) {
|
|
2340
|
+
const b = p ? "a" : "button", O = m || R, $ = s === "lg" ? 20 : 16, K = [
|
|
2341
|
+
"ds-button",
|
|
2342
|
+
`ds-button--${c}`,
|
|
2343
|
+
s !== "md" && `ds-button--${s}`,
|
|
2344
|
+
N && "ds-button--icon",
|
|
2345
|
+
k && "ds-button--block",
|
|
2346
|
+
x
|
|
2347
|
+
].filter(Boolean).join(" "), Z = j && S === "start", B = j && S === "end", se = (G) => {
|
|
2348
|
+
O && (G.preventDefault(), G.stopPropagation());
|
|
2349
|
+
}, Q = {
|
|
2350
|
+
className: K,
|
|
2351
|
+
"aria-label": E["aria-label"],
|
|
2352
|
+
"aria-busy": R ? !0 : void 0,
|
|
2353
|
+
"data-loading": R ? !0 : void 0,
|
|
2354
|
+
onClick: se
|
|
2355
|
+
};
|
|
2356
|
+
return b === "a" ? Object.assign(Q, {
|
|
2357
|
+
href: m ? void 0 : p,
|
|
2358
|
+
role: m ? "link" : void 0,
|
|
2359
|
+
"aria-disabled": O ? !0 : void 0
|
|
2360
|
+
}) : Object.assign(Q, {
|
|
2361
|
+
type: v,
|
|
2362
|
+
disabled: m,
|
|
2363
|
+
"aria-disabled": O ? !0 : void 0
|
|
2364
|
+
}), /* @__PURE__ */ r.jsxs(b, { ...Q, ...E, children: [
|
|
2365
|
+
R && /* @__PURE__ */ r.jsx("span", { className: "ds-button__spinner", "aria-hidden": "true" }),
|
|
2366
|
+
Z && !R && /* @__PURE__ */ r.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: j, size: $ }) }),
|
|
2367
|
+
!N && /* @__PURE__ */ r.jsx("span", { className: "ds-button__label", children: y }),
|
|
2368
|
+
N && !j && /* @__PURE__ */ r.jsx("span", { className: "ds-button__icon", children: y }),
|
|
2369
|
+
B && !R && /* @__PURE__ */ r.jsx("span", { className: "ds-button__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: j, size: $ }) })
|
|
2370
|
+
] });
|
|
2371
|
+
}
|
|
2372
|
+
function ca({
|
|
2373
|
+
variant: c = "default",
|
|
2374
|
+
href: s,
|
|
2375
|
+
eyebrow: p,
|
|
2376
|
+
title: v,
|
|
2377
|
+
meta: m,
|
|
2378
|
+
className: R,
|
|
2379
|
+
children: j,
|
|
2380
|
+
footer: S
|
|
2381
|
+
}) {
|
|
2382
|
+
const N = s ? "a" : "div", k = [
|
|
2383
|
+
"ds-card",
|
|
2384
|
+
c !== "default" && `ds-card--${c}`,
|
|
2385
|
+
s && "ds-card--interactive",
|
|
2386
|
+
R
|
|
2387
|
+
].filter(Boolean).join(" "), x = !!(p || v || m), y = !!S;
|
|
2388
|
+
return /* @__PURE__ */ r.jsxs(N, { className: k, href: s, children: [
|
|
2389
|
+
x && /* @__PURE__ */ r.jsxs("header", { className: "ds-card__header", children: [
|
|
2390
|
+
p && /* @__PURE__ */ r.jsx("div", { className: "ds-card__eyebrow", children: p }),
|
|
2391
|
+
v && /* @__PURE__ */ r.jsx("div", { className: "ds-card__title", children: v }),
|
|
2392
|
+
m && /* @__PURE__ */ r.jsx("div", { className: "ds-card__meta", children: m })
|
|
2393
|
+
] }),
|
|
2394
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-card__body", children: j }),
|
|
2395
|
+
y && /* @__PURE__ */ r.jsx("footer", { className: "ds-card__footer", children: S })
|
|
2396
|
+
] });
|
|
2397
|
+
}
|
|
2398
|
+
function ua({
|
|
2399
|
+
label: c,
|
|
2400
|
+
description: s,
|
|
2401
|
+
id: p,
|
|
2402
|
+
name: v,
|
|
2403
|
+
value: m,
|
|
2404
|
+
checked: R = !1,
|
|
2405
|
+
disabled: j = !1,
|
|
2406
|
+
required: S = !1,
|
|
2407
|
+
className: N,
|
|
2408
|
+
onChange: k,
|
|
2409
|
+
children: x
|
|
2410
|
+
}) {
|
|
2411
|
+
const y = p ?? `checkbox-${crypto.randomUUID()}`, E = s ? `${y}-description` : void 0, b = `${y}-label`, O = ($) => {
|
|
2412
|
+
k == null || k($.target.checked);
|
|
2413
|
+
};
|
|
2414
|
+
return /* @__PURE__ */ r.jsxs("label", { className: ["ds-choice", N].filter(Boolean).join(" "), children: [
|
|
2415
|
+
/* @__PURE__ */ r.jsx(
|
|
2416
|
+
"input",
|
|
2417
|
+
{
|
|
2418
|
+
className: "ds-choice__input",
|
|
2419
|
+
id: y,
|
|
2420
|
+
type: "checkbox",
|
|
2421
|
+
name: v,
|
|
2422
|
+
value: m,
|
|
2423
|
+
checked: R,
|
|
2424
|
+
disabled: j,
|
|
2425
|
+
required: S,
|
|
2426
|
+
"aria-labelledby": s ? b : void 0,
|
|
2427
|
+
"aria-describedby": E,
|
|
2428
|
+
onChange: O
|
|
2429
|
+
}
|
|
2430
|
+
),
|
|
2431
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-choice__box", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "check", size: 14 }) }),
|
|
2432
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-choice__label", children: [
|
|
2433
|
+
/* @__PURE__ */ r.jsx("span", { id: b, children: c }),
|
|
2434
|
+
s && /* @__PURE__ */ r.jsx("span", { className: "ds-choice__description", id: E, children: s })
|
|
2435
|
+
] }),
|
|
2436
|
+
x
|
|
2437
|
+
] });
|
|
2438
|
+
}
|
|
2439
|
+
function da({
|
|
2440
|
+
selected: c = !1,
|
|
2441
|
+
disabled: s = !1,
|
|
2442
|
+
removable: p = !1,
|
|
2443
|
+
onRemove: v,
|
|
2444
|
+
className: m,
|
|
2445
|
+
children: R
|
|
2446
|
+
}) {
|
|
2447
|
+
const j = [
|
|
2448
|
+
"ds-chip",
|
|
2449
|
+
c && "ds-chip--selected",
|
|
2450
|
+
s && "ds-chip--disabled",
|
|
2451
|
+
m
|
|
2452
|
+
].filter(Boolean).join(" ");
|
|
2453
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2454
|
+
"span",
|
|
2455
|
+
{
|
|
2456
|
+
className: j,
|
|
2457
|
+
"aria-selected": c ? !0 : void 0,
|
|
2458
|
+
"aria-disabled": s ? !0 : void 0,
|
|
2459
|
+
children: [
|
|
2460
|
+
R,
|
|
2461
|
+
p && !s && /* @__PURE__ */ r.jsx(
|
|
2462
|
+
"button",
|
|
2463
|
+
{
|
|
2464
|
+
type: "button",
|
|
2465
|
+
className: "ds-chip__remove",
|
|
2466
|
+
"aria-label": "Remove",
|
|
2467
|
+
onClick: v,
|
|
2468
|
+
children: /* @__PURE__ */ r.jsx("span", { "aria-hidden": "true", children: "×" })
|
|
2469
|
+
}
|
|
2470
|
+
)
|
|
2471
|
+
]
|
|
2472
|
+
}
|
|
2473
|
+
);
|
|
2474
|
+
}
|
|
2475
|
+
function fa({ className: c, children: s }) {
|
|
2476
|
+
const p = ["ds-code", c].filter(Boolean).join(" ");
|
|
2477
|
+
return /* @__PURE__ */ r.jsx("pre", { className: p, children: s });
|
|
2478
|
+
}
|
|
2479
|
+
function ha({
|
|
2480
|
+
title: c,
|
|
2481
|
+
body: s,
|
|
2482
|
+
icon: p,
|
|
2483
|
+
className: v,
|
|
2484
|
+
children: m
|
|
2485
|
+
}) {
|
|
2486
|
+
const R = ["ds-empty", v].filter(Boolean).join(" ");
|
|
2487
|
+
return /* @__PURE__ */ r.jsxs("div", { className: R, children: [
|
|
2488
|
+
p && /* @__PURE__ */ r.jsx("span", { className: "ds-empty__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: p, size: 24 }) }),
|
|
2489
|
+
/* @__PURE__ */ r.jsx("h2", { className: "ds-empty__title", children: c }),
|
|
2490
|
+
s && /* @__PURE__ */ r.jsx("p", { className: "ds-empty__body", children: s }),
|
|
2491
|
+
m
|
|
2492
|
+
] });
|
|
2493
|
+
}
|
|
2494
|
+
function pa({
|
|
2495
|
+
label: c,
|
|
2496
|
+
description: s,
|
|
2497
|
+
className: p,
|
|
2498
|
+
children: v
|
|
2499
|
+
}) {
|
|
2500
|
+
const m = ["ds-example", p].filter(Boolean).join(" ");
|
|
2501
|
+
return /* @__PURE__ */ r.jsxs("div", { className: m, children: [
|
|
2502
|
+
c && /* @__PURE__ */ r.jsx("span", { className: "ds-example__label", children: c }),
|
|
2503
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-example__preview", children: v }),
|
|
2504
|
+
s && /* @__PURE__ */ r.jsx("p", { className: "ds-example__description", children: s })
|
|
2505
|
+
] });
|
|
2506
|
+
}
|
|
2507
|
+
function va({ className: c, children: s }) {
|
|
2508
|
+
const p = ["ds-grid", c].filter(Boolean).join(" ");
|
|
2509
|
+
return /* @__PURE__ */ r.jsx("div", { className: p, children: s });
|
|
2510
|
+
}
|
|
2511
|
+
function ma({ className: c, children: s }) {
|
|
2512
|
+
const p = ["ds-grid__item", c].filter(Boolean).join(" ");
|
|
2513
|
+
return /* @__PURE__ */ r.jsx("div", { className: p, children: s });
|
|
2514
|
+
}
|
|
2515
|
+
var I = Hr();
|
|
2516
|
+
function _a({
|
|
2517
|
+
id: c,
|
|
2518
|
+
title: s,
|
|
2519
|
+
description: p,
|
|
2520
|
+
triggerLabel: v = "Open dialog",
|
|
2521
|
+
triggerVariant: m = "secondary",
|
|
2522
|
+
size: R = "md",
|
|
2523
|
+
variant: j = "dialog",
|
|
2524
|
+
className: S,
|
|
2525
|
+
children: N,
|
|
2526
|
+
footer: k
|
|
2527
|
+
}) {
|
|
2528
|
+
const x = I.useRef(null), y = `${c}-title`, E = p ? `${c}-description` : void 0, b = I.useCallback(() => {
|
|
2529
|
+
var O;
|
|
2530
|
+
(O = x.current) == null || O.showModal();
|
|
2531
|
+
}, []);
|
|
2532
|
+
return I.useEffect(() => {
|
|
2533
|
+
const O = x.current;
|
|
2534
|
+
if (!O) return;
|
|
2535
|
+
const $ = (K) => {
|
|
2536
|
+
if (K.target !== O) return;
|
|
2537
|
+
const Z = O.getBoundingClientRect();
|
|
2538
|
+
K.clientX >= Z.left && K.clientX <= Z.right && K.clientY >= Z.top && K.clientY <= Z.bottom || O.close();
|
|
2539
|
+
};
|
|
2540
|
+
return O.addEventListener("click", $), () => O.removeEventListener("click", $);
|
|
2541
|
+
}, []), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2542
|
+
/* @__PURE__ */ r.jsx(
|
|
2543
|
+
Kr,
|
|
2544
|
+
{
|
|
2545
|
+
variant: m,
|
|
2546
|
+
type: "button",
|
|
2547
|
+
"data-modal-open": c,
|
|
2548
|
+
"aria-haspopup": "dialog",
|
|
2549
|
+
onClick: b,
|
|
2550
|
+
children: v
|
|
2551
|
+
}
|
|
2552
|
+
),
|
|
2553
|
+
/* @__PURE__ */ r.jsxs(
|
|
2554
|
+
"dialog",
|
|
2555
|
+
{
|
|
2556
|
+
ref: x,
|
|
2557
|
+
className: [
|
|
2558
|
+
"ds-modal",
|
|
2559
|
+
R !== "md" && `ds-modal--${R}`,
|
|
2560
|
+
j === "sheet" && "ds-modal--sheet",
|
|
2561
|
+
S
|
|
2562
|
+
].filter(Boolean).join(" "),
|
|
2563
|
+
id: c,
|
|
2564
|
+
"aria-labelledby": y,
|
|
2565
|
+
"aria-describedby": E,
|
|
2566
|
+
children: [
|
|
2567
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-modal__header", children: [
|
|
2568
|
+
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
2569
|
+
s && /* @__PURE__ */ r.jsx("h2", { className: "ds-modal__title", id: y, children: s }),
|
|
2570
|
+
p && /* @__PURE__ */ r.jsx("p", { className: "ds-modal__description", id: E, children: p })
|
|
2571
|
+
] }),
|
|
2572
|
+
/* @__PURE__ */ r.jsx("form", { method: "dialog", children: /* @__PURE__ */ r.jsx(
|
|
2573
|
+
"button",
|
|
2574
|
+
{
|
|
2575
|
+
className: "ds-modal__close",
|
|
2576
|
+
type: "submit",
|
|
2577
|
+
"aria-label": "Close dialog",
|
|
2578
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "x", size: 20 })
|
|
2579
|
+
}
|
|
2580
|
+
) })
|
|
2581
|
+
] }),
|
|
2582
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-modal__body", children: N }),
|
|
2583
|
+
k && /* @__PURE__ */ r.jsx("footer", { className: "ds-modal__footer", children: k })
|
|
2584
|
+
]
|
|
2585
|
+
}
|
|
2586
|
+
)
|
|
2587
|
+
] });
|
|
2588
|
+
}
|
|
2589
|
+
function ya({
|
|
2590
|
+
label: c = "Main",
|
|
2591
|
+
items: s = [],
|
|
2592
|
+
brand: p,
|
|
2593
|
+
brandHref: v = "/",
|
|
2594
|
+
sticky: m = !1,
|
|
2595
|
+
footerLinks: R = [],
|
|
2596
|
+
navId: j = `navbar-${crypto.randomUUID()}`,
|
|
2597
|
+
className: S,
|
|
2598
|
+
children: N
|
|
2599
|
+
}) {
|
|
2600
|
+
const k = `${j}-sheet`, x = (l) => `${j}-panel-${l}`, y = I.useRef(null), [E, b] = I.useState(!1), [O, $] = I.useState(!1), K = (l) => {
|
|
2601
|
+
var g, C;
|
|
2602
|
+
return !!((g = l.children) != null && g.length || (C = l.groups) != null && C.length || l.feature);
|
|
2603
|
+
}, Z = (l) => {
|
|
2604
|
+
var g;
|
|
2605
|
+
return (g = l.groups) != null && g.length ? l.groups.flatMap((C) => C.items) : l.children ?? [];
|
|
2606
|
+
}, B = (l) => !!(l.active || Z(l).some((g) => g.active)), se = (l) => {
|
|
2607
|
+
var g;
|
|
2608
|
+
return (g = l.groups) != null && g.length ? "groups" : l.feature ? "featured" : l.layout ?? "list";
|
|
2609
|
+
}, [Q, G] = I.useState(
|
|
2610
|
+
null
|
|
2611
|
+
), ue = I.useCallback((l, g) => {
|
|
2612
|
+
const C = y.current, h = C == null ? void 0 : C.querySelector(".ds-navbar__nav"), Y = C == null ? void 0 : C.querySelector(
|
|
2613
|
+
"[data-navbar-viewport]"
|
|
2614
|
+
);
|
|
2615
|
+
if (!Y || !h || !C) return;
|
|
2616
|
+
const z = h.getBoundingClientRect(), ee = C.getBoundingClientRect(), n = l.getBoundingClientRect(), u = g.offsetWidth, A = g.offsetHeight, L = 8, P = ee.left - z.left + L, f = ee.right - z.left - u - L, D = Math.max(
|
|
2617
|
+
P,
|
|
2618
|
+
Math.min(n.left - z.left, f)
|
|
2619
|
+
);
|
|
2620
|
+
Y.style.setProperty("--ds-navbar-viewport-x", `${D}px`), Y.style.setProperty("--ds-navbar-viewport-w", `${u}px`), Y.style.setProperty("--ds-navbar-viewport-h", `${A}px`);
|
|
2621
|
+
}, []), le = I.useCallback(
|
|
2622
|
+
(l, g = null) => {
|
|
2623
|
+
var n;
|
|
2624
|
+
const C = y.current, h = C == null ? void 0 : C.querySelector(
|
|
2625
|
+
"[data-navbar-viewport]"
|
|
2626
|
+
), Y = Array.from(
|
|
2627
|
+
(C == null ? void 0 : C.querySelectorAll("[data-navbar-trigger]")) || []
|
|
2628
|
+
), z = document.getElementById(
|
|
2629
|
+
l.dataset.navbarTrigger ?? ""
|
|
2630
|
+
);
|
|
2631
|
+
if (!h || !z) return;
|
|
2632
|
+
const ee = Q !== null;
|
|
2633
|
+
if (Y.forEach((u) => {
|
|
2634
|
+
const A = u === l;
|
|
2635
|
+
u.setAttribute("aria-expanded", String(A));
|
|
2636
|
+
const L = document.getElementById(
|
|
2637
|
+
u.dataset.navbarTrigger ?? ""
|
|
2638
|
+
);
|
|
2639
|
+
L && (L.hidden = !A);
|
|
2640
|
+
}), h.hidden = !1, h.dataset.instant = ee ? "false" : "true", G(l), ue(l, z), g) {
|
|
2641
|
+
const u = Array.from(
|
|
2642
|
+
z.querySelectorAll("[data-navbar-row]")
|
|
2643
|
+
);
|
|
2644
|
+
(n = g === "first" ? u[0] : u[u.length - 1]) == null || n.focus();
|
|
2645
|
+
}
|
|
2646
|
+
},
|
|
2647
|
+
[Q, ue]
|
|
2648
|
+
), ie = I.useCallback(
|
|
2649
|
+
(l = !1) => {
|
|
2650
|
+
if (!Q) return;
|
|
2651
|
+
const g = y.current, C = g == null ? void 0 : g.querySelector(
|
|
2652
|
+
"[data-navbar-viewport]"
|
|
2653
|
+
), h = Array.from(
|
|
2654
|
+
(g == null ? void 0 : g.querySelectorAll("[data-navbar-trigger]")) || []
|
|
2655
|
+
), Y = Q;
|
|
2656
|
+
G(null), h.forEach((z) => z.setAttribute("aria-expanded", "false")), C && (C.hidden = !0, C.querySelectorAll("[data-navbar-panel]").forEach((z) => z.hidden = !0)), l && Y.focus();
|
|
2657
|
+
},
|
|
2658
|
+
[Q]
|
|
2659
|
+
);
|
|
2660
|
+
I.useEffect(() => {
|
|
2661
|
+
var u;
|
|
2662
|
+
const l = y.current;
|
|
2663
|
+
if (!l) return;
|
|
2664
|
+
const g = l.querySelector(".ds-navbar__inner"), C = l.querySelector(".ds-navbar__nav"), h = l.querySelector(
|
|
2665
|
+
"[data-navbar-toggle]"
|
|
2666
|
+
), Y = l.querySelector(
|
|
2667
|
+
"[data-navbar-sheet]"
|
|
2668
|
+
);
|
|
2669
|
+
let z = 0;
|
|
2670
|
+
const ee = () => {
|
|
2671
|
+
if (!g || !C) return;
|
|
2672
|
+
l.dataset.collapsed = "false";
|
|
2673
|
+
const A = getComputedStyle(g), L = Number.parseFloat(A.columnGap) || 0, P = Array.from(g.children).filter(
|
|
2674
|
+
(f) => f !== h && getComputedStyle(f).display !== "none"
|
|
2675
|
+
);
|
|
2676
|
+
z = P.reduce((f, D) => f + D.scrollWidth, 0) + L * Math.max(0, P.length - 1) + (Number.parseFloat(A.paddingInlineStart) || 0) + (Number.parseFloat(A.paddingInlineEnd) || 0);
|
|
2677
|
+
}, n = () => {
|
|
2678
|
+
if (!g || !C) return;
|
|
2679
|
+
const A = l.clientWidth < z;
|
|
2680
|
+
b(A), l.dataset.collapsed = String(A), A ? ie() : Y != null && Y.open && Y.close();
|
|
2681
|
+
};
|
|
2682
|
+
if (C) {
|
|
2683
|
+
ee(), n();
|
|
2684
|
+
const A = new ResizeObserver(n);
|
|
2685
|
+
return A.observe(l), (u = document.fonts) == null || u.ready.then(() => {
|
|
2686
|
+
ee(), n();
|
|
2687
|
+
}), () => A.disconnect();
|
|
2688
|
+
}
|
|
2689
|
+
}, [ie]), I.useEffect(() => {
|
|
2690
|
+
const l = y.current;
|
|
2691
|
+
if (!l || !m) return;
|
|
2692
|
+
let g = null;
|
|
2693
|
+
for (let ee = l.parentElement; ee; ee = ee.parentElement) {
|
|
2694
|
+
const { overflowY: n } = getComputedStyle(ee);
|
|
2695
|
+
if (/(auto|scroll|overlay)/.test(n) && ee.scrollHeight > ee.clientHeight) {
|
|
2696
|
+
g = ee;
|
|
2697
|
+
break;
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
const C = () => g ? g.scrollTop : window.scrollY;
|
|
2701
|
+
let h = !1;
|
|
2702
|
+
const Y = () => {
|
|
2703
|
+
$(C() > 4), h = !1;
|
|
2704
|
+
}, z = () => {
|
|
2705
|
+
h || (h = !0, requestAnimationFrame(Y));
|
|
2706
|
+
};
|
|
2707
|
+
return (g ?? window).addEventListener("scroll", z, {
|
|
2708
|
+
passive: !0
|
|
2709
|
+
}), Y(), () => (g ?? window).removeEventListener("scroll", z);
|
|
2710
|
+
}, [m]);
|
|
2711
|
+
const F = I.useRef(null), W = I.useRef(null), oe = I.useCallback(() => {
|
|
2712
|
+
var l, g, C, h;
|
|
2713
|
+
ie(), (l = W.current) == null || l.showModal(), (g = F.current) == null || g.setAttribute("aria-expanded", "true"), (h = (C = W.current) == null ? void 0 : C.querySelector(
|
|
2714
|
+
".ds-navbar__sheet-nav [aria-current='page'], .ds-navbar__sheet-nav a, .ds-navbar__sheet-nav summary"
|
|
2715
|
+
)) == null || h.focus();
|
|
2716
|
+
}, [ie]), be = I.useCallback(() => {
|
|
2717
|
+
var l, g;
|
|
2718
|
+
(l = F.current) == null || l.setAttribute("aria-expanded", "false"), (g = F.current) == null || g.focus();
|
|
2719
|
+
}, []), fe = I.useCallback(
|
|
2720
|
+
(l) => {
|
|
2721
|
+
const g = W.current;
|
|
2722
|
+
if (g) {
|
|
2723
|
+
if (l.target === g) {
|
|
2724
|
+
g.close();
|
|
2725
|
+
return;
|
|
2726
|
+
}
|
|
2727
|
+
l.target.closest("a[href]") && g.close();
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
[]
|
|
2731
|
+
);
|
|
2732
|
+
return /* @__PURE__ */ r.jsxs(
|
|
2733
|
+
"header",
|
|
2734
|
+
{
|
|
2735
|
+
ref: y,
|
|
2736
|
+
className: [
|
|
2737
|
+
"ds-navbar",
|
|
2738
|
+
m && "ds-navbar--sticky",
|
|
2739
|
+
O && "ds-navbar--scrolled",
|
|
2740
|
+
E && "ds-navbar--collapsed",
|
|
2741
|
+
S
|
|
2742
|
+
].filter(Boolean).join(" "),
|
|
2743
|
+
"data-navbar": !0,
|
|
2744
|
+
children: [
|
|
2745
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-navbar__inner", children: [
|
|
2746
|
+
p && /* @__PURE__ */ r.jsxs("a", { className: "ds-navbar__brand", href: v, children: [
|
|
2747
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-navbar__mark", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "terminal", size: 16 }) }),
|
|
2748
|
+
/* @__PURE__ */ r.jsx("span", { children: p })
|
|
2749
|
+
] }),
|
|
2750
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-navbar__start", children: N }),
|
|
2751
|
+
s.length > 0 && /* @__PURE__ */ r.jsxs("nav", { id: j, className: "ds-navbar__nav", "aria-label": c, children: [
|
|
2752
|
+
/* @__PURE__ */ r.jsx("ul", { className: "ds-navbar__list", children: s.map((l, g) => /* @__PURE__ */ r.jsx("li", { className: "ds-navbar__item", children: K(l) ? /* @__PURE__ */ r.jsxs(
|
|
2753
|
+
"button",
|
|
2754
|
+
{
|
|
2755
|
+
className: [
|
|
2756
|
+
"ds-navbar__trigger",
|
|
2757
|
+
B(l) && "is-current"
|
|
2758
|
+
].filter(Boolean).join(" "),
|
|
2759
|
+
type: "button",
|
|
2760
|
+
"aria-expanded": "false",
|
|
2761
|
+
"aria-controls": x(g),
|
|
2762
|
+
"data-navbar-trigger": x(g),
|
|
2763
|
+
onClick: () => {
|
|
2764
|
+
const C = document.getElementById(x(g));
|
|
2765
|
+
if (Q === C)
|
|
2766
|
+
ie();
|
|
2767
|
+
else {
|
|
2768
|
+
const h = document.getElementById(
|
|
2769
|
+
`ds-navbar-trigger-${g}`
|
|
2770
|
+
);
|
|
2771
|
+
h && le(h);
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2774
|
+
children: [
|
|
2775
|
+
l.icon && /* @__PURE__ */ r.jsx(q, { name: l.icon, size: 16 }),
|
|
2776
|
+
/* @__PURE__ */ r.jsx("span", { children: l.label }),
|
|
2777
|
+
/* @__PURE__ */ r.jsx(
|
|
2778
|
+
q,
|
|
2779
|
+
{
|
|
2780
|
+
name: "chevron-down",
|
|
2781
|
+
size: 14,
|
|
2782
|
+
className: "ds-navbar__chevron"
|
|
2783
|
+
}
|
|
2784
|
+
)
|
|
2785
|
+
]
|
|
2786
|
+
}
|
|
2787
|
+
) : /* @__PURE__ */ r.jsxs(
|
|
2788
|
+
"a",
|
|
2789
|
+
{
|
|
2790
|
+
className: "ds-navbar__trigger",
|
|
2791
|
+
href: l.href ?? "#",
|
|
2792
|
+
"aria-current": l.active ? "page" : void 0,
|
|
2793
|
+
"data-navbar-link": !0,
|
|
2794
|
+
children: [
|
|
2795
|
+
l.icon && /* @__PURE__ */ r.jsx(q, { name: l.icon, size: 16 }),
|
|
2796
|
+
/* @__PURE__ */ r.jsx("span", { children: l.label })
|
|
2797
|
+
]
|
|
2798
|
+
}
|
|
2799
|
+
) }, g)) }),
|
|
2800
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-navbar__viewport", "data-navbar-viewport": !0, hidden: !0, children: s.map(
|
|
2801
|
+
(l, g) => {
|
|
2802
|
+
var C;
|
|
2803
|
+
return K(l) && /* @__PURE__ */ r.jsxs(
|
|
2804
|
+
"div",
|
|
2805
|
+
{
|
|
2806
|
+
className: [
|
|
2807
|
+
"ds-navbar__panel",
|
|
2808
|
+
`ds-navbar__panel--${se(l)}`
|
|
2809
|
+
].filter(Boolean).join(" "),
|
|
2810
|
+
id: x(g),
|
|
2811
|
+
"data-navbar-panel": !0,
|
|
2812
|
+
hidden: !0,
|
|
2813
|
+
children: [
|
|
2814
|
+
l.feature && /* @__PURE__ */ r.jsxs(
|
|
2815
|
+
"a",
|
|
2816
|
+
{
|
|
2817
|
+
className: "ds-navbar__feature",
|
|
2818
|
+
href: l.feature.href,
|
|
2819
|
+
"data-navbar-row": !0,
|
|
2820
|
+
children: [
|
|
2821
|
+
l.feature.icon && /* @__PURE__ */ r.jsx(
|
|
2822
|
+
"span",
|
|
2823
|
+
{
|
|
2824
|
+
className: "ds-navbar__feature-icon",
|
|
2825
|
+
"aria-hidden": "true",
|
|
2826
|
+
children: /* @__PURE__ */ r.jsx(q, { name: l.feature.icon, size: 20 })
|
|
2827
|
+
}
|
|
2828
|
+
),
|
|
2829
|
+
l.feature.eyebrow && /* @__PURE__ */ r.jsx("span", { className: "ds-navbar__eyebrow", children: l.feature.eyebrow }),
|
|
2830
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-navbar__feature-title", children: l.feature.title }),
|
|
2831
|
+
l.feature.description && /* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-desc", children: l.feature.description })
|
|
2832
|
+
]
|
|
2833
|
+
}
|
|
2834
|
+
),
|
|
2835
|
+
((C = l.groups) != null && C.length ? l.groups : [{ items: l.children ?? [] }]).map((h, Y) => /* @__PURE__ */ r.jsxs("div", { className: "ds-navbar__group", children: [
|
|
2836
|
+
h.label && /* @__PURE__ */ r.jsx("p", { className: "ds-navbar__eyebrow", children: h.label }),
|
|
2837
|
+
/* @__PURE__ */ r.jsx("ul", { className: "ds-navbar__rows", children: h.items.map((z, ee) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
2838
|
+
"a",
|
|
2839
|
+
{
|
|
2840
|
+
className: "ds-navbar__row",
|
|
2841
|
+
href: z.href,
|
|
2842
|
+
"aria-current": z.active ? "page" : void 0,
|
|
2843
|
+
"data-navbar-row": !0,
|
|
2844
|
+
children: [
|
|
2845
|
+
z.icon && /* @__PURE__ */ r.jsx(
|
|
2846
|
+
"span",
|
|
2847
|
+
{
|
|
2848
|
+
className: "ds-navbar__row-icon",
|
|
2849
|
+
"aria-hidden": "true",
|
|
2850
|
+
children: /* @__PURE__ */ r.jsx(q, { name: z.icon, size: 16 })
|
|
2851
|
+
}
|
|
2852
|
+
),
|
|
2853
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-navbar__row-body", children: [
|
|
2854
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-title", children: z.label }),
|
|
2855
|
+
z.description && /* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-desc", children: z.description })
|
|
2856
|
+
] })
|
|
2857
|
+
]
|
|
2858
|
+
}
|
|
2859
|
+
) }, ee)) })
|
|
2860
|
+
] }, Y))
|
|
2861
|
+
]
|
|
2862
|
+
},
|
|
2863
|
+
g
|
|
2864
|
+
);
|
|
2865
|
+
}
|
|
2866
|
+
) })
|
|
2867
|
+
] }),
|
|
2868
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-navbar__actions", children: N }),
|
|
2869
|
+
s.length > 0 && /* @__PURE__ */ r.jsx(
|
|
2870
|
+
"button",
|
|
2871
|
+
{
|
|
2872
|
+
ref: F,
|
|
2873
|
+
className: "ds-navbar__toggle",
|
|
2874
|
+
type: "button",
|
|
2875
|
+
"aria-haspopup": "dialog",
|
|
2876
|
+
"aria-expanded": "false",
|
|
2877
|
+
"aria-controls": k,
|
|
2878
|
+
"aria-label": "Open navigation menu",
|
|
2879
|
+
"data-navbar-toggle": !0,
|
|
2880
|
+
onClick: oe,
|
|
2881
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "menu", size: 20 })
|
|
2882
|
+
}
|
|
2883
|
+
)
|
|
2884
|
+
] }),
|
|
2885
|
+
s.length > 0 && /* @__PURE__ */ r.jsxs(
|
|
2886
|
+
"dialog",
|
|
2887
|
+
{
|
|
2888
|
+
ref: W,
|
|
2889
|
+
className: "ds-navbar__sheet",
|
|
2890
|
+
id: k,
|
|
2891
|
+
"aria-label": `${c} navigation`,
|
|
2892
|
+
"data-navbar-sheet": !0,
|
|
2893
|
+
onClose: be,
|
|
2894
|
+
onClick: fe,
|
|
2895
|
+
children: [
|
|
2896
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-navbar__sheet-head", children: [
|
|
2897
|
+
p ? /* @__PURE__ */ r.jsxs("a", { className: "ds-navbar__brand", href: v, children: [
|
|
2898
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-navbar__mark", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "terminal", size: 16 }) }),
|
|
2899
|
+
/* @__PURE__ */ r.jsx("span", { children: p })
|
|
2900
|
+
] }) : /* @__PURE__ */ r.jsx("span", { className: "ds-navbar__sheet-title", children: c }),
|
|
2901
|
+
/* @__PURE__ */ r.jsx("form", { method: "dialog", children: /* @__PURE__ */ r.jsx(
|
|
2902
|
+
"button",
|
|
2903
|
+
{
|
|
2904
|
+
className: "ds-navbar__toggle ds-navbar__sheet-close",
|
|
2905
|
+
type: "submit",
|
|
2906
|
+
"aria-label": "Close navigation menu",
|
|
2907
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "x", size: 20 })
|
|
2908
|
+
}
|
|
2909
|
+
) })
|
|
2910
|
+
] }),
|
|
2911
|
+
/* @__PURE__ */ r.jsx("nav", { className: "ds-navbar__sheet-nav", "aria-label": c, children: /* @__PURE__ */ r.jsx("ul", { className: "ds-navbar__sheet-list", children: s.map(
|
|
2912
|
+
(l) => {
|
|
2913
|
+
var g;
|
|
2914
|
+
return K(l) ? /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
2915
|
+
"details",
|
|
2916
|
+
{
|
|
2917
|
+
className: "ds-navbar__disclosure",
|
|
2918
|
+
open: B(l) ? !0 : void 0,
|
|
2919
|
+
children: [
|
|
2920
|
+
/* @__PURE__ */ r.jsxs(
|
|
2921
|
+
"summary",
|
|
2922
|
+
{
|
|
2923
|
+
className: [
|
|
2924
|
+
"ds-navbar__sheet-link",
|
|
2925
|
+
B(l) && "is-current"
|
|
2926
|
+
].filter(Boolean).join(" "),
|
|
2927
|
+
children: [
|
|
2928
|
+
l.icon && /* @__PURE__ */ r.jsx(q, { name: l.icon, size: 20 }),
|
|
2929
|
+
/* @__PURE__ */ r.jsx("span", { children: l.label }),
|
|
2930
|
+
/* @__PURE__ */ r.jsx(
|
|
2931
|
+
q,
|
|
2932
|
+
{
|
|
2933
|
+
name: "chevron-down",
|
|
2934
|
+
size: 16,
|
|
2935
|
+
className: "ds-navbar__chevron"
|
|
2936
|
+
}
|
|
2937
|
+
)
|
|
2938
|
+
]
|
|
2939
|
+
}
|
|
2940
|
+
),
|
|
2941
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-navbar__sheet-panel", children: [
|
|
2942
|
+
l.feature && /* @__PURE__ */ r.jsxs(
|
|
2943
|
+
"a",
|
|
2944
|
+
{
|
|
2945
|
+
className: "ds-navbar__sheet-sublink",
|
|
2946
|
+
href: l.feature.href,
|
|
2947
|
+
children: [
|
|
2948
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-title", children: l.feature.title }),
|
|
2949
|
+
l.feature.description && /* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-desc", children: l.feature.description })
|
|
2950
|
+
]
|
|
2951
|
+
}
|
|
2952
|
+
),
|
|
2953
|
+
((g = l.groups) != null && g.length ? l.groups : [{ items: l.children ?? [] }]).map((C, h) => /* @__PURE__ */ r.jsxs("div", { className: "ds-navbar__sheet-group", children: [
|
|
2954
|
+
C.label && /* @__PURE__ */ r.jsx("p", { className: "ds-navbar__eyebrow", children: C.label }),
|
|
2955
|
+
/* @__PURE__ */ r.jsx("ul", { children: C.items.map((Y, z) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
2956
|
+
"a",
|
|
2957
|
+
{
|
|
2958
|
+
className: "ds-navbar__sheet-sublink",
|
|
2959
|
+
href: Y.href,
|
|
2960
|
+
"aria-current": Y.active ? "page" : void 0,
|
|
2961
|
+
children: [
|
|
2962
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-title", children: Y.label }),
|
|
2963
|
+
Y.description && /* @__PURE__ */ r.jsx("span", { className: "ds-navbar__row-desc", children: Y.description })
|
|
2964
|
+
]
|
|
2965
|
+
}
|
|
2966
|
+
) }, z)) })
|
|
2967
|
+
] }, h))
|
|
2968
|
+
] })
|
|
2969
|
+
]
|
|
2970
|
+
}
|
|
2971
|
+
) }, l.label) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
2972
|
+
"a",
|
|
2973
|
+
{
|
|
2974
|
+
className: "ds-navbar__sheet-link",
|
|
2975
|
+
href: l.href ?? "#",
|
|
2976
|
+
"aria-current": l.active ? "page" : void 0,
|
|
2977
|
+
children: [
|
|
2978
|
+
l.icon && /* @__PURE__ */ r.jsx(q, { name: l.icon, size: 20 }),
|
|
2979
|
+
/* @__PURE__ */ r.jsx("span", { children: l.label })
|
|
2980
|
+
]
|
|
2981
|
+
}
|
|
2982
|
+
) }, l.label);
|
|
2983
|
+
}
|
|
2984
|
+
) }) }),
|
|
2985
|
+
(R.length > 0 || N) && /* @__PURE__ */ r.jsxs("div", { className: "ds-navbar__sheet-footer", children: [
|
|
2986
|
+
R.length > 0 && /* @__PURE__ */ r.jsx("ul", { className: "ds-navbar__sheet-meta", children: R.map((l) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("a", { href: l.href, children: l.label }) }, l.href)) }),
|
|
2987
|
+
N && /* @__PURE__ */ r.jsx("div", { className: "ds-navbar__sheet-actions", children: N })
|
|
2988
|
+
] })
|
|
2989
|
+
]
|
|
2990
|
+
}
|
|
2991
|
+
)
|
|
2992
|
+
]
|
|
2993
|
+
}
|
|
2994
|
+
);
|
|
2995
|
+
}
|
|
2996
|
+
function ba({
|
|
2997
|
+
title: c,
|
|
2998
|
+
lede: s,
|
|
2999
|
+
className: p,
|
|
3000
|
+
children: v
|
|
3001
|
+
}) {
|
|
3002
|
+
const m = ["ds-page-header", p].filter(Boolean).join(" ");
|
|
3003
|
+
return /* @__PURE__ */ r.jsxs("header", { className: m, children: [
|
|
3004
|
+
/* @__PURE__ */ r.jsx("h1", { className: "ds-page-header__title", children: c }),
|
|
3005
|
+
s && /* @__PURE__ */ r.jsx("p", { className: "ds-page-header__lede", children: s }),
|
|
3006
|
+
v
|
|
3007
|
+
] });
|
|
3008
|
+
}
|
|
3009
|
+
function ga({
|
|
3010
|
+
current: c,
|
|
3011
|
+
total: s,
|
|
3012
|
+
href: p = "?page={page}",
|
|
3013
|
+
label: v = "Pagination",
|
|
3014
|
+
interactive: m = !1,
|
|
3015
|
+
className: R,
|
|
3016
|
+
onPageChange: j
|
|
3017
|
+
}) {
|
|
3018
|
+
const S = (b) => p.replace("{page}", String(b)), N = [];
|
|
3019
|
+
if (s <= 7)
|
|
3020
|
+
for (let b = 1; b <= s; b++) N.push(b);
|
|
3021
|
+
else {
|
|
3022
|
+
N.push(1), c > 4 && N.push("ellipsis-start");
|
|
3023
|
+
const b = Math.max(2, c - 1), O = Math.min(s - 1, c + 1);
|
|
3024
|
+
for (let $ = b; $ <= O; $++) N.push($);
|
|
3025
|
+
c < s - 3 && N.push("ellipsis-end"), N.push(s);
|
|
3026
|
+
}
|
|
3027
|
+
const k = m ? "button" : "a", x = (b, O) => {
|
|
3028
|
+
O.preventDefault(), !(b < 1 || b > s || b === c) && (j == null || j(b));
|
|
3029
|
+
}, y = (b) => m ? {
|
|
3030
|
+
type: "button",
|
|
3031
|
+
"data-page": b,
|
|
3032
|
+
onClick: (O) => x(b, O),
|
|
3033
|
+
disabled: b < 1 || b > s,
|
|
3034
|
+
"aria-disabled": b < 1 || b > s
|
|
3035
|
+
} : {
|
|
3036
|
+
href: S(b),
|
|
3037
|
+
"data-page": b
|
|
3038
|
+
}, E = [
|
|
3039
|
+
"ds-pagination",
|
|
3040
|
+
m && "ds-pagination--interactive",
|
|
3041
|
+
R
|
|
3042
|
+
].filter(Boolean).join(" ");
|
|
3043
|
+
return /* @__PURE__ */ r.jsx(
|
|
3044
|
+
"nav",
|
|
3045
|
+
{
|
|
3046
|
+
className: E,
|
|
3047
|
+
"aria-label": v,
|
|
3048
|
+
"data-pagination-interactive": m ? !0 : void 0,
|
|
3049
|
+
"data-total": s,
|
|
3050
|
+
children: /* @__PURE__ */ r.jsxs("ul", { className: "ds-pagination__list", children: [
|
|
3051
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
3052
|
+
k,
|
|
3053
|
+
{
|
|
3054
|
+
className: "ds-pagination__link ds-pagination__link--direction",
|
|
3055
|
+
...y(c - 1),
|
|
3056
|
+
"aria-disabled": c <= 1 ? !0 : void 0,
|
|
3057
|
+
"data-direction": "prev",
|
|
3058
|
+
rel: m ? void 0 : "prev",
|
|
3059
|
+
children: [
|
|
3060
|
+
/* @__PURE__ */ r.jsx(q, { name: "chevron-left", size: 14, "aria-hidden": !0 }),
|
|
3061
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-pagination__label", children: "Previous" })
|
|
3062
|
+
]
|
|
3063
|
+
}
|
|
3064
|
+
) }),
|
|
3065
|
+
N.map(
|
|
3066
|
+
(b) => typeof b == "number" ? /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
3067
|
+
k,
|
|
3068
|
+
{
|
|
3069
|
+
className: "ds-pagination__link",
|
|
3070
|
+
...y(b),
|
|
3071
|
+
"aria-current": b === c ? "page" : void 0,
|
|
3072
|
+
"aria-label": `Page ${b}`,
|
|
3073
|
+
children: b
|
|
3074
|
+
}
|
|
3075
|
+
) }, b) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx("span", { className: "ds-pagination__ellipsis", "aria-hidden": "true", children: "…" }) }, b)
|
|
3076
|
+
),
|
|
3077
|
+
/* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
3078
|
+
k,
|
|
3079
|
+
{
|
|
3080
|
+
className: "ds-pagination__link ds-pagination__link--direction",
|
|
3081
|
+
...y(c + 1),
|
|
3082
|
+
"aria-disabled": c >= s ? !0 : void 0,
|
|
3083
|
+
"data-direction": "next",
|
|
3084
|
+
rel: m ? void 0 : "next",
|
|
3085
|
+
children: [
|
|
3086
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-pagination__label", children: "Next" }),
|
|
3087
|
+
/* @__PURE__ */ r.jsx(q, { name: "chevron-right", size: 14, "aria-hidden": !0 })
|
|
3088
|
+
]
|
|
3089
|
+
}
|
|
3090
|
+
) })
|
|
3091
|
+
] })
|
|
3092
|
+
}
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
function xa({
|
|
3096
|
+
label: c,
|
|
3097
|
+
description: s,
|
|
3098
|
+
id: p,
|
|
3099
|
+
name: v,
|
|
3100
|
+
value: m,
|
|
3101
|
+
checked: R = !1,
|
|
3102
|
+
disabled: j = !1,
|
|
3103
|
+
required: S = !1,
|
|
3104
|
+
className: N,
|
|
3105
|
+
onChange: k,
|
|
3106
|
+
children: x
|
|
3107
|
+
}) {
|
|
3108
|
+
const y = p ?? `radio-${crypto.randomUUID()}`, E = s ? `${y}-description` : void 0, b = `${y}-label`, O = () => {
|
|
3109
|
+
k == null || k(m);
|
|
3110
|
+
};
|
|
3111
|
+
return /* @__PURE__ */ r.jsxs(
|
|
3112
|
+
"label",
|
|
3113
|
+
{
|
|
3114
|
+
className: ["ds-choice", "ds-choice--radio", N].filter(Boolean).join(" "),
|
|
3115
|
+
children: [
|
|
3116
|
+
/* @__PURE__ */ r.jsx(
|
|
3117
|
+
"input",
|
|
3118
|
+
{
|
|
3119
|
+
className: "ds-choice__input",
|
|
3120
|
+
id: y,
|
|
3121
|
+
type: "radio",
|
|
3122
|
+
name: v,
|
|
3123
|
+
value: m,
|
|
3124
|
+
checked: R,
|
|
3125
|
+
disabled: j,
|
|
3126
|
+
required: S,
|
|
3127
|
+
"aria-labelledby": s ? b : void 0,
|
|
3128
|
+
"aria-describedby": E,
|
|
3129
|
+
onChange: O
|
|
3130
|
+
}
|
|
3131
|
+
),
|
|
3132
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-choice__box", "aria-hidden": "true" }),
|
|
3133
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-choice__label", children: [
|
|
3134
|
+
/* @__PURE__ */ r.jsx("span", { id: b, children: c }),
|
|
3135
|
+
s && /* @__PURE__ */ r.jsx("span", { className: "ds-choice__description", id: E, children: s })
|
|
3136
|
+
] }),
|
|
3137
|
+
x
|
|
3138
|
+
]
|
|
3139
|
+
}
|
|
3140
|
+
);
|
|
3141
|
+
}
|
|
3142
|
+
function ja({
|
|
3143
|
+
legend: c,
|
|
3144
|
+
hint: s,
|
|
3145
|
+
className: p,
|
|
3146
|
+
children: v
|
|
3147
|
+
}) {
|
|
3148
|
+
const m = s ? `group-${crypto.randomUUID()}-hint` : void 0;
|
|
3149
|
+
return /* @__PURE__ */ r.jsxs(
|
|
3150
|
+
"fieldset",
|
|
3151
|
+
{
|
|
3152
|
+
className: ["ds-choice-group", p].filter(Boolean).join(" "),
|
|
3153
|
+
"aria-describedby": m,
|
|
3154
|
+
children: [
|
|
3155
|
+
/* @__PURE__ */ r.jsx("legend", { className: "ds-choice-group__legend", children: c }),
|
|
3156
|
+
s && /* @__PURE__ */ r.jsx("p", { className: "ds-choice-group__hint", id: m, children: s }),
|
|
3157
|
+
v
|
|
3158
|
+
]
|
|
3159
|
+
}
|
|
3160
|
+
);
|
|
3161
|
+
}
|
|
3162
|
+
function Ea({
|
|
3163
|
+
title: c,
|
|
3164
|
+
intro: s,
|
|
3165
|
+
className: p,
|
|
3166
|
+
children: v
|
|
3167
|
+
}) {
|
|
3168
|
+
const m = ["ds-section", p].filter(Boolean).join(" "), R = !!(c || s);
|
|
3169
|
+
return /* @__PURE__ */ r.jsxs("section", { className: m, children: [
|
|
3170
|
+
R && /* @__PURE__ */ r.jsxs("div", { className: "ds-section__head", children: [
|
|
3171
|
+
c && /* @__PURE__ */ r.jsx("h2", { className: "ds-section__title", children: c }),
|
|
3172
|
+
s && /* @__PURE__ */ r.jsx("p", { className: "ds-section__intro", children: s })
|
|
3173
|
+
] }),
|
|
3174
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-section__body", children: v })
|
|
3175
|
+
] });
|
|
3176
|
+
}
|
|
3177
|
+
function wa({
|
|
3178
|
+
label: c,
|
|
3179
|
+
id: s,
|
|
3180
|
+
name: p,
|
|
3181
|
+
options: v,
|
|
3182
|
+
value: m,
|
|
3183
|
+
values: R,
|
|
3184
|
+
multiple: j = !1,
|
|
3185
|
+
placeholder: S,
|
|
3186
|
+
hint: N,
|
|
3187
|
+
error: k,
|
|
3188
|
+
disabled: x = !1,
|
|
3189
|
+
required: y = !1,
|
|
3190
|
+
optional: E = !1,
|
|
3191
|
+
size: b = "md",
|
|
3192
|
+
className: O,
|
|
3193
|
+
onChange: $
|
|
3194
|
+
}) {
|
|
3195
|
+
const K = s ?? `select-${crypto.randomUUID()}`, Z = `${K}-listbox`, B = `${K}-hint`, se = `${K}-error`, Q = [N && B, k && se].filter(Boolean).join(" ") || void 0, [G, ue] = I.useState(!1), [le, ie] = I.useState(-1), [F, W] = I.useState(
|
|
3196
|
+
new Set(
|
|
3197
|
+
j ? R ?? (m ? [m] : []) : m ? [m] : []
|
|
3198
|
+
)
|
|
3199
|
+
), oe = I.useRef(null), be = I.useRef(null), fe = I.useRef(null), l = v.filter((f) => F.has(f.value)), g = l.length === 0 ? S ?? "Select an option" : l.length === 1 ? l[0].label : `${l.length} selected`, C = I.useCallback(() => {
|
|
3200
|
+
$ == null || $([...F]);
|
|
3201
|
+
}, [F, $]), h = I.useCallback(
|
|
3202
|
+
(f) => {
|
|
3203
|
+
f.disabled || (j ? W((D) => {
|
|
3204
|
+
const V = new Set(D);
|
|
3205
|
+
return V.has(f.value) ? V.delete(f.value) : V.add(f.value), C(), V;
|
|
3206
|
+
}) : (W(/* @__PURE__ */ new Set([f.value])), C(), ue(!1)));
|
|
3207
|
+
},
|
|
3208
|
+
[j, C]
|
|
3209
|
+
), Y = I.useCallback(() => {
|
|
3210
|
+
if (x) return;
|
|
3211
|
+
ue(!0);
|
|
3212
|
+
const f = v.findIndex((D) => F.has(D.value));
|
|
3213
|
+
ie(f >= 0 ? f : -1);
|
|
3214
|
+
}, [x, v, F]), z = I.useCallback(() => {
|
|
3215
|
+
ue(!1);
|
|
3216
|
+
}, []), ee = I.useCallback(
|
|
3217
|
+
(f, D) => {
|
|
3218
|
+
for (let V = f + D; V >= 0 && V < v.length; V += D)
|
|
3219
|
+
if (!v[V].disabled) return V;
|
|
3220
|
+
return le;
|
|
3221
|
+
},
|
|
3222
|
+
[v, le]
|
|
3223
|
+
), n = I.useCallback(
|
|
3224
|
+
(f, D = !1) => {
|
|
3225
|
+
var re;
|
|
3226
|
+
if (!v.length) return;
|
|
3227
|
+
const V = Math.max(0, Math.min(v.length - 1, f));
|
|
3228
|
+
if (ie(V), D) {
|
|
3229
|
+
const he = (re = fe.current) == null ? void 0 : re.querySelectorAll('[role="option"]')[V];
|
|
3230
|
+
he == null || he.focus();
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
[v]
|
|
3234
|
+
), u = I.useCallback(() => {
|
|
3235
|
+
G ? z() : Y();
|
|
3236
|
+
}, [G, Y, z]), A = I.useCallback(
|
|
3237
|
+
(f) => {
|
|
3238
|
+
["ArrowDown", "ArrowUp", "Enter", " "].includes(f.key) && (f.preventDefault(), G ? n(le, !0) : Y());
|
|
3239
|
+
},
|
|
3240
|
+
[G, Y, le, n]
|
|
3241
|
+
), L = I.useCallback(
|
|
3242
|
+
(f) => {
|
|
3243
|
+
switch (f.key) {
|
|
3244
|
+
case "ArrowDown":
|
|
3245
|
+
f.preventDefault(), n(ee(le, 1), !0);
|
|
3246
|
+
break;
|
|
3247
|
+
case "ArrowUp":
|
|
3248
|
+
f.preventDefault(), n(ee(le, -1), !0);
|
|
3249
|
+
break;
|
|
3250
|
+
case "Home":
|
|
3251
|
+
f.preventDefault(), n(ee(-1, 1), !0);
|
|
3252
|
+
break;
|
|
3253
|
+
case "End":
|
|
3254
|
+
f.preventDefault(), n(ee(v.length, -1), !0);
|
|
3255
|
+
break;
|
|
3256
|
+
case "Enter":
|
|
3257
|
+
case " ":
|
|
3258
|
+
f.preventDefault(), le >= 0 && h(v[le]);
|
|
3259
|
+
break;
|
|
3260
|
+
case "Escape":
|
|
3261
|
+
f.preventDefault(), z();
|
|
3262
|
+
break;
|
|
3263
|
+
default:
|
|
3264
|
+
if (f.key.length === 1) {
|
|
3265
|
+
const D = f.key.toLowerCase();
|
|
3266
|
+
for (let V = 1; V <= v.length; V += 1) {
|
|
3267
|
+
const re = (le + V) % v.length, he = v[re].label.toLowerCase();
|
|
3268
|
+
if (!v[re].disabled && he.startsWith(D)) {
|
|
3269
|
+
n(re, !0);
|
|
3270
|
+
break;
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
}
|
|
3274
|
+
}
|
|
3275
|
+
},
|
|
3276
|
+
[le, v, ee, n, h, z]
|
|
3277
|
+
), P = I.useCallback(
|
|
3278
|
+
(f) => {
|
|
3279
|
+
var D, V;
|
|
3280
|
+
h(f), j ? (V = fe.current) == null || V.focus() : (D = be.current) == null || D.focus();
|
|
3281
|
+
},
|
|
3282
|
+
[h, j]
|
|
3283
|
+
);
|
|
3284
|
+
return I.useEffect(() => {
|
|
3285
|
+
const f = (D) => {
|
|
3286
|
+
G && oe.current && !oe.current.contains(D.target) && z();
|
|
3287
|
+
};
|
|
3288
|
+
return document.addEventListener("pointerdown", f), () => document.removeEventListener("pointerdown", f);
|
|
3289
|
+
}, [G, z]), /* @__PURE__ */ r.jsxs(
|
|
3290
|
+
"div",
|
|
3291
|
+
{
|
|
3292
|
+
className: [
|
|
3293
|
+
"ds-field",
|
|
3294
|
+
"ds-select",
|
|
3295
|
+
j && "ds-select--multiple",
|
|
3296
|
+
b !== "md" && `ds-select--${b}`,
|
|
3297
|
+
O
|
|
3298
|
+
].filter(Boolean).join(" "),
|
|
3299
|
+
"data-ds-select": !0,
|
|
3300
|
+
"data-multiple": j,
|
|
3301
|
+
"data-name": p,
|
|
3302
|
+
"data-placeholder": S ?? "Select an option",
|
|
3303
|
+
children: [
|
|
3304
|
+
c && /* @__PURE__ */ r.jsxs("label", { className: "ds-field__label", htmlFor: K, children: [
|
|
3305
|
+
c,
|
|
3306
|
+
E && /* @__PURE__ */ r.jsx("span", { className: "ds-field__optional", children: " (optional)" }),
|
|
3307
|
+
y && /* @__PURE__ */ r.jsx("span", { className: "ds-field__required", "aria-hidden": "true", children: "*" })
|
|
3308
|
+
] }),
|
|
3309
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-select__anchor", children: [
|
|
3310
|
+
/* @__PURE__ */ r.jsxs(
|
|
3311
|
+
"button",
|
|
3312
|
+
{
|
|
3313
|
+
className: [
|
|
3314
|
+
"ds-select__control",
|
|
3315
|
+
"ds-select__trigger",
|
|
3316
|
+
k && "is-invalid",
|
|
3317
|
+
l.length === 0 && "is-placeholder"
|
|
3318
|
+
].filter(Boolean).join(" "),
|
|
3319
|
+
id: K,
|
|
3320
|
+
type: "button",
|
|
3321
|
+
role: "combobox",
|
|
3322
|
+
"aria-haspopup": "listbox",
|
|
3323
|
+
"aria-expanded": G,
|
|
3324
|
+
"aria-controls": Z,
|
|
3325
|
+
"aria-required": y ? !0 : void 0,
|
|
3326
|
+
"aria-invalid": k ? !0 : void 0,
|
|
3327
|
+
"aria-describedby": Q,
|
|
3328
|
+
disabled: x,
|
|
3329
|
+
ref: be,
|
|
3330
|
+
onClick: u,
|
|
3331
|
+
onKeyDown: A,
|
|
3332
|
+
children: [
|
|
3333
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-select__value", "data-ds-value": !0, children: g }),
|
|
3334
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-select__chevron", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "chevron-down", size: 16 }) })
|
|
3335
|
+
]
|
|
3336
|
+
}
|
|
3337
|
+
),
|
|
3338
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-select__popup", ref: oe, hidden: !G, children: [
|
|
3339
|
+
/* @__PURE__ */ r.jsx(
|
|
3340
|
+
"ul",
|
|
3341
|
+
{
|
|
3342
|
+
className: "ds-select__list",
|
|
3343
|
+
id: Z,
|
|
3344
|
+
role: "listbox",
|
|
3345
|
+
"aria-label": c ?? "Options",
|
|
3346
|
+
"aria-multiselectable": j ? !0 : void 0,
|
|
3347
|
+
ref: fe,
|
|
3348
|
+
onKeyDown: L,
|
|
3349
|
+
children: v.map((f, D) => /* @__PURE__ */ r.jsxs(
|
|
3350
|
+
"li",
|
|
3351
|
+
{
|
|
3352
|
+
className: "ds-select__option",
|
|
3353
|
+
id: `${K}-option-${D}`,
|
|
3354
|
+
role: "option",
|
|
3355
|
+
tabIndex: -1,
|
|
3356
|
+
"data-value": f.value,
|
|
3357
|
+
"data-label": f.label,
|
|
3358
|
+
"aria-selected": F.has(f.value),
|
|
3359
|
+
"aria-disabled": f.disabled ? !0 : void 0,
|
|
3360
|
+
onClick: () => P(f),
|
|
3361
|
+
children: [
|
|
3362
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-select__option-text", children: [
|
|
3363
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-select__option-label", children: f.label }),
|
|
3364
|
+
f.description && /* @__PURE__ */ r.jsx("span", { className: "ds-select__option-description", children: f.description })
|
|
3365
|
+
] }),
|
|
3366
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-select__indicator", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "check", size: 14 }) })
|
|
3367
|
+
]
|
|
3368
|
+
},
|
|
3369
|
+
f.value
|
|
3370
|
+
))
|
|
3371
|
+
}
|
|
3372
|
+
),
|
|
3373
|
+
j && /* @__PURE__ */ r.jsx("div", { className: "ds-select__footer", children: /* @__PURE__ */ r.jsx(
|
|
3374
|
+
"button",
|
|
3375
|
+
{
|
|
3376
|
+
className: "ds-select__done",
|
|
3377
|
+
type: "button",
|
|
3378
|
+
onClick: () => z(),
|
|
3379
|
+
onKeyDown: (f) => {
|
|
3380
|
+
f.key === "Escape" ? (f.preventDefault(), z()) : f.key === "Tab" && f.shiftKey ? (f.preventDefault(), n(le, !0)) : f.key === "Tab" && z();
|
|
3381
|
+
},
|
|
3382
|
+
children: "Done"
|
|
3383
|
+
}
|
|
3384
|
+
) })
|
|
3385
|
+
] })
|
|
3386
|
+
] }),
|
|
3387
|
+
/* @__PURE__ */ r.jsx("div", { "data-ds-values": !0, children: [...F].map((f) => /* @__PURE__ */ r.jsx("input", { type: "hidden", name: p, value: f }, f)) }),
|
|
3388
|
+
N && /* @__PURE__ */ r.jsx("div", { className: "ds-field__hint", id: B, children: N }),
|
|
3389
|
+
k && /* @__PURE__ */ r.jsxs("div", { className: "ds-field__error", id: se, children: [
|
|
3390
|
+
/* @__PURE__ */ r.jsx(q, { name: "alert-circle", size: 14 }),
|
|
3391
|
+
k
|
|
3392
|
+
] })
|
|
3393
|
+
]
|
|
3394
|
+
}
|
|
3395
|
+
);
|
|
3396
|
+
}
|
|
3397
|
+
function Ra({
|
|
3398
|
+
brand: c,
|
|
3399
|
+
brandHref: s = "/",
|
|
3400
|
+
groups: p,
|
|
3401
|
+
label: v = "Primary",
|
|
3402
|
+
id: m = "ds-sidebar",
|
|
3403
|
+
className: R,
|
|
3404
|
+
children: j
|
|
3405
|
+
}) {
|
|
3406
|
+
const S = I.useRef(null), N = I.useRef(null), k = I.useCallback((x) => {
|
|
3407
|
+
const y = S.current, E = N.current, b = y == null ? void 0 : y.nextElementSibling;
|
|
3408
|
+
if (y)
|
|
3409
|
+
if (y.dataset.open = String(x), E == null || E.setAttribute("aria-expanded", String(x)), E == null || E.setAttribute(
|
|
3410
|
+
"aria-label",
|
|
3411
|
+
x ? "Close navigation" : "Open navigation"
|
|
3412
|
+
), b && (b.hidden = !x), document.body.style.overflow = x ? "hidden" : "", x) {
|
|
3413
|
+
const O = y.querySelector("a, button, summary");
|
|
3414
|
+
O == null || O.focus();
|
|
3415
|
+
} else
|
|
3416
|
+
E == null || E.focus();
|
|
3417
|
+
}, []);
|
|
3418
|
+
return I.useEffect(() => {
|
|
3419
|
+
const x = N.current, y = S.current;
|
|
3420
|
+
if (!x || !y || x.dataset.bound) return;
|
|
3421
|
+
x.dataset.bound = "true";
|
|
3422
|
+
const E = y.nextElementSibling, b = () => {
|
|
3423
|
+
k(y.dataset.open !== "true");
|
|
3424
|
+
}, O = () => {
|
|
3425
|
+
k(!1);
|
|
3426
|
+
}, $ = (Z) => {
|
|
3427
|
+
if (Z.key === "Escape" && y.dataset.open === "true") {
|
|
3428
|
+
k(!1);
|
|
3429
|
+
return;
|
|
3430
|
+
}
|
|
3431
|
+
if (Z.key !== "Tab" || y.dataset.open !== "true") return;
|
|
3432
|
+
const B = Array.from(
|
|
3433
|
+
y.querySelectorAll(
|
|
3434
|
+
'a[href], button:not([disabled]), summary, [tabindex]:not([tabindex="-1"])'
|
|
3435
|
+
)
|
|
3436
|
+
).filter(
|
|
3437
|
+
(G) => typeof G.checkVisibility == "function" ? G.checkVisibility() : G.offsetParent !== null
|
|
3438
|
+
);
|
|
3439
|
+
if (!B.length) return;
|
|
3440
|
+
const se = B[0], Q = B[B.length - 1];
|
|
3441
|
+
Z.shiftKey && document.activeElement === se ? (Z.preventDefault(), Q.focus()) : !Z.shiftKey && document.activeElement === Q && (Z.preventDefault(), se.focus());
|
|
3442
|
+
}, K = () => {
|
|
3443
|
+
window.innerWidth > 900 && y.dataset.open === "true" && k(!1);
|
|
3444
|
+
};
|
|
3445
|
+
return x.addEventListener("click", b), E == null || E.addEventListener("click", O), y.addEventListener("keydown", $), window.addEventListener("resize", K), () => {
|
|
3446
|
+
x.removeEventListener("click", b), E == null || E.removeEventListener("click", O), y.removeEventListener("keydown", $), window.removeEventListener("resize", K);
|
|
3447
|
+
};
|
|
3448
|
+
}, [k]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3449
|
+
/* @__PURE__ */ r.jsxs("header", { className: "ds-nav__mobilebar", children: [
|
|
3450
|
+
/* @__PURE__ */ r.jsxs("a", { className: "ds-nav__brand", href: s, children: [
|
|
3451
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-nav__brand-mark", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "terminal", size: 16 }) }),
|
|
3452
|
+
c
|
|
3453
|
+
] }),
|
|
3454
|
+
/* @__PURE__ */ r.jsx(
|
|
3455
|
+
"button",
|
|
3456
|
+
{
|
|
3457
|
+
ref: N,
|
|
3458
|
+
className: "ds-nav__toggle",
|
|
3459
|
+
type: "button",
|
|
3460
|
+
"aria-controls": m,
|
|
3461
|
+
"aria-expanded": "false",
|
|
3462
|
+
"data-nav-toggle": !0,
|
|
3463
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "menu", size: 20, label: "Open navigation" })
|
|
3464
|
+
}
|
|
3465
|
+
)
|
|
3466
|
+
] }),
|
|
3467
|
+
/* @__PURE__ */ r.jsxs(
|
|
3468
|
+
"aside",
|
|
3469
|
+
{
|
|
3470
|
+
ref: S,
|
|
3471
|
+
className: ["ds-nav", R].filter(Boolean).join(" "),
|
|
3472
|
+
id: m,
|
|
3473
|
+
"data-nav": !0,
|
|
3474
|
+
"data-open": "false",
|
|
3475
|
+
children: [
|
|
3476
|
+
/* @__PURE__ */ r.jsxs("a", { className: "ds-nav__brand", href: s, children: [
|
|
3477
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-nav__brand-mark", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "terminal", size: 16 }) }),
|
|
3478
|
+
c
|
|
3479
|
+
] }),
|
|
3480
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-nav__scroll", children: /* @__PURE__ */ r.jsx("nav", { "aria-label": v, children: p.map((x, y) => /* @__PURE__ */ r.jsxs(
|
|
3481
|
+
"div",
|
|
3482
|
+
{
|
|
3483
|
+
className: "ds-nav__group",
|
|
3484
|
+
children: [
|
|
3485
|
+
x.label && /* @__PURE__ */ r.jsx("div", { className: "ds-nav__group-label", children: x.label }),
|
|
3486
|
+
/* @__PURE__ */ r.jsx("ul", { className: "ds-nav__list", children: x.items.map(
|
|
3487
|
+
(E, b) => {
|
|
3488
|
+
var O;
|
|
3489
|
+
return (O = E.children) != null && O.length ? /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
3490
|
+
"details",
|
|
3491
|
+
{
|
|
3492
|
+
className: "ds-nav__submenu",
|
|
3493
|
+
open: E.open || E.children.some(($) => $.active),
|
|
3494
|
+
children: [
|
|
3495
|
+
/* @__PURE__ */ r.jsxs(
|
|
3496
|
+
"summary",
|
|
3497
|
+
{
|
|
3498
|
+
className: "ds-nav__summary",
|
|
3499
|
+
"data-active": E.children.some(($) => $.active) ? "true" : void 0,
|
|
3500
|
+
children: [
|
|
3501
|
+
E.icon && /* @__PURE__ */ r.jsx(
|
|
3502
|
+
q,
|
|
3503
|
+
{
|
|
3504
|
+
name: E.icon,
|
|
3505
|
+
size: 16,
|
|
3506
|
+
className: "ds-nav__icon"
|
|
3507
|
+
}
|
|
3508
|
+
),
|
|
3509
|
+
/* @__PURE__ */ r.jsx("span", { children: E.label }),
|
|
3510
|
+
/* @__PURE__ */ r.jsx(
|
|
3511
|
+
q,
|
|
3512
|
+
{
|
|
3513
|
+
name: "chevron-right",
|
|
3514
|
+
size: 14,
|
|
3515
|
+
className: "ds-nav__chevron"
|
|
3516
|
+
}
|
|
3517
|
+
)
|
|
3518
|
+
]
|
|
3519
|
+
}
|
|
3520
|
+
),
|
|
3521
|
+
/* @__PURE__ */ r.jsx("ul", { className: "ds-nav__list", children: E.children.map(($, K) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
3522
|
+
"a",
|
|
3523
|
+
{
|
|
3524
|
+
className: "ds-nav__link",
|
|
3525
|
+
href: $.href,
|
|
3526
|
+
"aria-current": $.active ? "page" : void 0,
|
|
3527
|
+
children: /* @__PURE__ */ r.jsx("span", { children: $.label })
|
|
3528
|
+
}
|
|
3529
|
+
) }, K)) })
|
|
3530
|
+
]
|
|
3531
|
+
}
|
|
3532
|
+
) }, b) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsxs(
|
|
3533
|
+
"a",
|
|
3534
|
+
{
|
|
3535
|
+
className: "ds-nav__link",
|
|
3536
|
+
href: E.href,
|
|
3537
|
+
"aria-current": E.active ? "page" : void 0,
|
|
3538
|
+
children: [
|
|
3539
|
+
E.icon && /* @__PURE__ */ r.jsx(
|
|
3540
|
+
q,
|
|
3541
|
+
{
|
|
3542
|
+
name: E.icon,
|
|
3543
|
+
size: 16,
|
|
3544
|
+
className: "ds-nav__icon"
|
|
3545
|
+
}
|
|
3546
|
+
),
|
|
3547
|
+
/* @__PURE__ */ r.jsx("span", { children: E.label }),
|
|
3548
|
+
E.badge && /* @__PURE__ */ r.jsx("span", { className: "ds-nav__badge", children: /* @__PURE__ */ r.jsx(ta, { children: E.badge }) })
|
|
3549
|
+
]
|
|
3550
|
+
}
|
|
3551
|
+
) }, b);
|
|
3552
|
+
}
|
|
3553
|
+
) })
|
|
3554
|
+
]
|
|
3555
|
+
},
|
|
3556
|
+
x.label ?? String(y)
|
|
3557
|
+
)) }) }),
|
|
3558
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-nav__footer", children: j })
|
|
3559
|
+
]
|
|
3560
|
+
}
|
|
3561
|
+
),
|
|
3562
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-nav__backdrop", "data-nav-close": !0, hidden: !0 })
|
|
3563
|
+
] });
|
|
3564
|
+
}
|
|
3565
|
+
function Na({
|
|
3566
|
+
variant: c = "text",
|
|
3567
|
+
className: s
|
|
3568
|
+
}) {
|
|
3569
|
+
const p = ["ds-skeleton", `ds-skeleton--${c}`, s].filter(Boolean).join(" ");
|
|
3570
|
+
return /* @__PURE__ */ r.jsx("div", { className: p, "aria-hidden": "true" });
|
|
3571
|
+
}
|
|
3572
|
+
function Ca({ size: c = "md", className: s }) {
|
|
3573
|
+
const p = ["ds-spinner", `ds-spinner--${c}`, s].filter(Boolean).join(" ");
|
|
3574
|
+
return /* @__PURE__ */ r.jsx("div", { className: p, role: "status", "aria-label": "Loading" });
|
|
3575
|
+
}
|
|
3576
|
+
function ka({
|
|
3577
|
+
columns: c,
|
|
3578
|
+
rows: s,
|
|
3579
|
+
caption: p,
|
|
3580
|
+
hideCaption: v = !1,
|
|
3581
|
+
empty: m = "No records yet.",
|
|
3582
|
+
sortable: R = !1,
|
|
3583
|
+
filterable: j = !1,
|
|
3584
|
+
filterLabel: S = "Filter rows",
|
|
3585
|
+
filterPlaceholder: N = "Filter…",
|
|
3586
|
+
className: k
|
|
3587
|
+
}) {
|
|
3588
|
+
const x = `table-filter-${crypto.randomUUID()}`, [y, E] = I.useState(""), [b, O] = I.useState(-1), [$, K] = I.useState(1), Z = I.useRef(null), B = I.useRef(null), se = (F, W) => {
|
|
3589
|
+
var oe;
|
|
3590
|
+
return (((oe = F.cells[W]) == null ? void 0 : oe.textContent) || "").trim();
|
|
3591
|
+
}, Q = (F) => {
|
|
3592
|
+
if (!/[0-9]/.test(F)) return null;
|
|
3593
|
+
const W = Number(F.replace(/[^0-9.-]/g, ""));
|
|
3594
|
+
return Number.isFinite(W) ? W : null;
|
|
3595
|
+
}, G = (F, W) => {
|
|
3596
|
+
const oe = Q(F), be = Q(W);
|
|
3597
|
+
return oe !== null && be !== null ? oe - be : F.localeCompare(W);
|
|
3598
|
+
}, ue = I.useMemo(() => y ? s.filter(
|
|
3599
|
+
(F) => Object.values(F).some((W) => String(typeof W == "object" && W !== null ? W.text : W).toLowerCase().includes(y.toLowerCase()))
|
|
3600
|
+
).length : s.length, [y, s]);
|
|
3601
|
+
I.useEffect(() => {
|
|
3602
|
+
const F = B.current;
|
|
3603
|
+
if (!F) return;
|
|
3604
|
+
const W = Array.from(
|
|
3605
|
+
F.querySelectorAll("tr[data-row]")
|
|
3606
|
+
);
|
|
3607
|
+
(() => {
|
|
3608
|
+
var g;
|
|
3609
|
+
const be = y.trim().toLowerCase();
|
|
3610
|
+
let fe = 0;
|
|
3611
|
+
W.forEach((C) => {
|
|
3612
|
+
const h = !be || C.textContent.toLowerCase().includes(be);
|
|
3613
|
+
C.hidden = !h, h && fe++;
|
|
3614
|
+
}), b >= 0 && (W.sort(
|
|
3615
|
+
(C, h) => $ * G(se(C, b), se(h, b))
|
|
3616
|
+
), W.forEach((C) => F.append(C)));
|
|
3617
|
+
const l = (g = Z.current) == null ? void 0 : g.querySelector("[data-table-empty]");
|
|
3618
|
+
l && (l.hidden = fe !== 0);
|
|
3619
|
+
})();
|
|
3620
|
+
}, [y, b, $]);
|
|
3621
|
+
const le = I.useCallback(
|
|
3622
|
+
(F) => {
|
|
3623
|
+
K(b === F && $ === 1 ? -1 : 1), O(F);
|
|
3624
|
+
},
|
|
3625
|
+
[b, $]
|
|
3626
|
+
), ie = !!(p && !v);
|
|
3627
|
+
return /* @__PURE__ */ r.jsxs(
|
|
3628
|
+
"div",
|
|
3629
|
+
{
|
|
3630
|
+
className: ["ds-table-wrap", k].filter(Boolean).join(" "),
|
|
3631
|
+
ref: Z,
|
|
3632
|
+
"data-ds-table": !0,
|
|
3633
|
+
children: [
|
|
3634
|
+
j && /* @__PURE__ */ r.jsxs("div", { className: "ds-table__toolbar", children: [
|
|
3635
|
+
/* @__PURE__ */ r.jsx("label", { className: "ds-sr-only", htmlFor: x, children: S }),
|
|
3636
|
+
/* @__PURE__ */ r.jsx(
|
|
3637
|
+
"input",
|
|
3638
|
+
{
|
|
3639
|
+
className: "ds-input ds-input--sm ds-table__filter",
|
|
3640
|
+
id: x,
|
|
3641
|
+
type: "search",
|
|
3642
|
+
placeholder: N,
|
|
3643
|
+
value: y,
|
|
3644
|
+
onChange: (F) => E(F.target.value),
|
|
3645
|
+
"data-table-filter": !0
|
|
3646
|
+
}
|
|
3647
|
+
),
|
|
3648
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-table__count", "aria-live": "polite", "data-table-count": !0, children: [
|
|
3649
|
+
ue,
|
|
3650
|
+
" ",
|
|
3651
|
+
ue === 1 ? "row" : "rows"
|
|
3652
|
+
] })
|
|
3653
|
+
] }),
|
|
3654
|
+
/* @__PURE__ */ r.jsxs(
|
|
3655
|
+
"table",
|
|
3656
|
+
{
|
|
3657
|
+
className: ["ds-table", c.length >= 4 && "ds-table--wide"].filter(Boolean).join(" "),
|
|
3658
|
+
children: [
|
|
3659
|
+
ie && /* @__PURE__ */ r.jsx(
|
|
3660
|
+
"caption",
|
|
3661
|
+
{
|
|
3662
|
+
className: ["ds-table__caption", v && "ds-sr-only"].filter(Boolean).join(" "),
|
|
3663
|
+
children: p
|
|
3664
|
+
}
|
|
3665
|
+
),
|
|
3666
|
+
/* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsx("tr", { children: c.map((F, W) => /* @__PURE__ */ r.jsx(
|
|
3667
|
+
"th",
|
|
3668
|
+
{
|
|
3669
|
+
scope: "col",
|
|
3670
|
+
className: [
|
|
3671
|
+
F.numeric && "is-numeric",
|
|
3672
|
+
F.align === "end" && "is-end"
|
|
3673
|
+
].filter(Boolean).join(" "),
|
|
3674
|
+
"aria-sort": R && b === W ? $ === 1 ? "ascending" : "descending" : "none",
|
|
3675
|
+
children: R ? /* @__PURE__ */ r.jsxs(
|
|
3676
|
+
"button",
|
|
3677
|
+
{
|
|
3678
|
+
className: "ds-table__sort-button",
|
|
3679
|
+
type: "button",
|
|
3680
|
+
"data-sort-index": W,
|
|
3681
|
+
onClick: () => le(W),
|
|
3682
|
+
children: [
|
|
3683
|
+
F.label,
|
|
3684
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-table__sort", "aria-hidden": "true", children: [
|
|
3685
|
+
/* @__PURE__ */ r.jsx(
|
|
3686
|
+
q,
|
|
3687
|
+
{
|
|
3688
|
+
name: "chevrons-up-down",
|
|
3689
|
+
size: 14,
|
|
3690
|
+
className: "ds-table__sort-idle"
|
|
3691
|
+
}
|
|
3692
|
+
),
|
|
3693
|
+
/* @__PURE__ */ r.jsx(
|
|
3694
|
+
q,
|
|
3695
|
+
{
|
|
3696
|
+
name: "chevron-down",
|
|
3697
|
+
size: 14,
|
|
3698
|
+
className: "ds-table__sort-dir"
|
|
3699
|
+
}
|
|
3700
|
+
)
|
|
3701
|
+
] })
|
|
3702
|
+
]
|
|
3703
|
+
}
|
|
3704
|
+
) : F.label
|
|
3705
|
+
},
|
|
3706
|
+
F.key
|
|
3707
|
+
)) }) }),
|
|
3708
|
+
/* @__PURE__ */ r.jsxs("tbody", { ref: B, children: [
|
|
3709
|
+
s.length === 0 ? /* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { className: "ds-table__empty", colSpan: c.length, children: m }) }) : s.map((F) => /* @__PURE__ */ r.jsx("tr", { "data-row": !0, children: c.map((W) => {
|
|
3710
|
+
const oe = F[W.key];
|
|
3711
|
+
return /* @__PURE__ */ r.jsx(
|
|
3712
|
+
"td",
|
|
3713
|
+
{
|
|
3714
|
+
className: [
|
|
3715
|
+
W.numeric && "is-numeric",
|
|
3716
|
+
W.align === "end" && "is-end"
|
|
3717
|
+
].filter(Boolean).join(" "),
|
|
3718
|
+
children: typeof oe == "object" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3719
|
+
oe.swatch && /* @__PURE__ */ r.jsx(
|
|
3720
|
+
"span",
|
|
3721
|
+
{
|
|
3722
|
+
className: "ds-table__swatch",
|
|
3723
|
+
style: { background: oe.swatch },
|
|
3724
|
+
"aria-hidden": "true"
|
|
3725
|
+
}
|
|
3726
|
+
),
|
|
3727
|
+
oe.kbd ? /* @__PURE__ */ r.jsx("kbd", { children: oe.text }) : /* @__PURE__ */ r.jsx(
|
|
3728
|
+
"span",
|
|
3729
|
+
{
|
|
3730
|
+
className: [oe.mono && "ds-table__mono"].filter(Boolean).join(" "),
|
|
3731
|
+
children: oe.text
|
|
3732
|
+
}
|
|
3733
|
+
)
|
|
3734
|
+
] }) : oe
|
|
3735
|
+
},
|
|
3736
|
+
W.key
|
|
3737
|
+
);
|
|
3738
|
+
}) }, c[0].key)),
|
|
3739
|
+
j && s.length > 0 && /* @__PURE__ */ r.jsx("tr", { "data-table-empty": !0, hidden: !0, children: /* @__PURE__ */ r.jsx("td", { className: "ds-table__empty", colSpan: c.length, children: "No matching rows." }) })
|
|
3740
|
+
] })
|
|
3741
|
+
]
|
|
3742
|
+
}
|
|
3743
|
+
)
|
|
3744
|
+
]
|
|
3745
|
+
}
|
|
3746
|
+
);
|
|
3747
|
+
}
|
|
3748
|
+
function Sa({
|
|
3749
|
+
label: c,
|
|
3750
|
+
id: s,
|
|
3751
|
+
name: p,
|
|
3752
|
+
type: v = "text",
|
|
3753
|
+
value: m,
|
|
3754
|
+
placeholder: R,
|
|
3755
|
+
hint: j,
|
|
3756
|
+
error: S,
|
|
3757
|
+
valid: N = !1,
|
|
3758
|
+
validate: k = !1,
|
|
3759
|
+
disabled: x = !1,
|
|
3760
|
+
required: y = !1,
|
|
3761
|
+
optional: E = !1,
|
|
3762
|
+
multiline: b = !1,
|
|
3763
|
+
rows: O = 3,
|
|
3764
|
+
maxlength: $,
|
|
3765
|
+
minlength: K,
|
|
3766
|
+
pattern: Z,
|
|
3767
|
+
count: B = !1,
|
|
3768
|
+
size: se = "md",
|
|
3769
|
+
autocomplete: Q,
|
|
3770
|
+
inputmode: G,
|
|
3771
|
+
className: ue,
|
|
3772
|
+
onChange: le
|
|
3773
|
+
}) {
|
|
3774
|
+
const ie = s ?? `field-${crypto.randomUUID()}`, F = `${ie}-hint`, W = `${ie}-error`, oe = !b && v === "password", be = [
|
|
3775
|
+
"ds-input",
|
|
3776
|
+
se !== "md" && `ds-input--${se}`,
|
|
3777
|
+
S && "is-invalid",
|
|
3778
|
+
N && !S && "is-valid",
|
|
3779
|
+
N && !S && "ds-input--with-state"
|
|
3780
|
+
].filter(Boolean).join(" "), fe = [j && (!S || k) && F, (S || k) && W].filter(Boolean).join(" ") || void 0, [l, g] = I.useState(m ?? ""), C = I.useRef(null), h = I.useRef(null), [Y, z] = I.useState(S), ee = (P) => {
|
|
3781
|
+
if (g(P.target.value), le == null || le(P.target.value), k && Y) {
|
|
3782
|
+
const f = A(P.target);
|
|
3783
|
+
z(f || void 0);
|
|
3784
|
+
}
|
|
3785
|
+
}, n = I.useCallback(() => {
|
|
3786
|
+
if (k) {
|
|
3787
|
+
const P = C.current ?? h.current;
|
|
3788
|
+
if (!P) return;
|
|
3789
|
+
const f = A(P);
|
|
3790
|
+
z(f || void 0);
|
|
3791
|
+
}
|
|
3792
|
+
}, [k]), u = l, A = (P) => {
|
|
3793
|
+
var f;
|
|
3794
|
+
return P.validity.valueMissing ? P.dataset.requiredMessage || "This field is required." : P.validity.tooShort ? `Use at least ${P.minLength} characters.` : P.validity.patternMismatch ? ((f = document.getElementById(ie)) == null ? void 0 : f.dataset.message) || "Use the requested format." : P.validity.typeMismatch ? "Enter a valid value." : P.validity.tooLong ? `Use at most ${P.maxLength} characters.` : "";
|
|
3795
|
+
}, L = C.current ?? h.current;
|
|
3796
|
+
return I.useEffect(() => {
|
|
3797
|
+
if (B && $ && L) {
|
|
3798
|
+
const P = () => {
|
|
3799
|
+
const f = L, D = document.querySelector(
|
|
3800
|
+
`[data-field="${ie}"] .ds-field__count`
|
|
3801
|
+
);
|
|
3802
|
+
D && (D.textContent = `${f.value.length} / ${f.maxLength}`);
|
|
3803
|
+
};
|
|
3804
|
+
return L.addEventListener("input", P), P(), () => L.removeEventListener("input", P);
|
|
3805
|
+
}
|
|
3806
|
+
}, [B, $, ie, L]), /* @__PURE__ */ r.jsxs(
|
|
3807
|
+
"div",
|
|
3808
|
+
{
|
|
3809
|
+
className: ["ds-field", oe && "ds-field--reveal", ue].filter(Boolean).join(" "),
|
|
3810
|
+
"data-field": ie,
|
|
3811
|
+
children: [
|
|
3812
|
+
c && /* @__PURE__ */ r.jsxs("label", { className: "ds-field__label", htmlFor: ie, children: [
|
|
3813
|
+
c,
|
|
3814
|
+
E && /* @__PURE__ */ r.jsx("span", { className: "ds-field__optional", children: " (optional)" }),
|
|
3815
|
+
y && /* @__PURE__ */ r.jsx("span", { className: "ds-field__required", "aria-hidden": "true", children: "*" })
|
|
3816
|
+
] }),
|
|
3817
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-field__control", children: [
|
|
3818
|
+
b ? /* @__PURE__ */ r.jsx(
|
|
3819
|
+
"textarea",
|
|
3820
|
+
{
|
|
3821
|
+
className: be,
|
|
3822
|
+
id: ie,
|
|
3823
|
+
name: p,
|
|
3824
|
+
rows: O,
|
|
3825
|
+
placeholder: R,
|
|
3826
|
+
disabled: x,
|
|
3827
|
+
required: y,
|
|
3828
|
+
maxLength: $,
|
|
3829
|
+
minLength: K,
|
|
3830
|
+
"aria-invalid": S ? !0 : void 0,
|
|
3831
|
+
"aria-describedby": fe,
|
|
3832
|
+
autoComplete: Q,
|
|
3833
|
+
ref: h,
|
|
3834
|
+
onChange: ee,
|
|
3835
|
+
onBlur: n,
|
|
3836
|
+
defaultValue: u
|
|
3837
|
+
}
|
|
3838
|
+
) : /* @__PURE__ */ r.jsx(
|
|
3839
|
+
"input",
|
|
3840
|
+
{
|
|
3841
|
+
className: be,
|
|
3842
|
+
id: ie,
|
|
3843
|
+
name: p,
|
|
3844
|
+
type: v,
|
|
3845
|
+
placeholder: R,
|
|
3846
|
+
disabled: x,
|
|
3847
|
+
required: y,
|
|
3848
|
+
maxLength: $,
|
|
3849
|
+
minLength: K,
|
|
3850
|
+
pattern: Z,
|
|
3851
|
+
inputMode: G,
|
|
3852
|
+
autoComplete: Q,
|
|
3853
|
+
"aria-invalid": S ? !0 : void 0,
|
|
3854
|
+
"aria-describedby": fe,
|
|
3855
|
+
ref: C,
|
|
3856
|
+
onChange: ee,
|
|
3857
|
+
onBlur: n,
|
|
3858
|
+
defaultValue: u
|
|
3859
|
+
}
|
|
3860
|
+
),
|
|
3861
|
+
N && !S && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3862
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-field__state", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "check", size: 14 }) }),
|
|
3863
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-sr-only", children: "Valid." })
|
|
3864
|
+
] }),
|
|
3865
|
+
oe && /* @__PURE__ */ r.jsxs(
|
|
3866
|
+
"button",
|
|
3867
|
+
{
|
|
3868
|
+
type: "button",
|
|
3869
|
+
className: "ds-field__reveal",
|
|
3870
|
+
"data-ds-reveal": !0,
|
|
3871
|
+
"aria-label": "Show password",
|
|
3872
|
+
"aria-pressed": "false",
|
|
3873
|
+
"aria-controls": ie,
|
|
3874
|
+
disabled: x,
|
|
3875
|
+
children: [
|
|
3876
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-field__reveal-show", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "eye", size: 16 }) }),
|
|
3877
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-field__reveal-hide", "aria-hidden": "true", hidden: !0, children: /* @__PURE__ */ r.jsx(q, { name: "eye-off", size: 16 }) })
|
|
3878
|
+
]
|
|
3879
|
+
}
|
|
3880
|
+
)
|
|
3881
|
+
] }),
|
|
3882
|
+
(S && !k || j && (!S || k)) && /* @__PURE__ */ r.jsxs(
|
|
3883
|
+
"div",
|
|
3884
|
+
{
|
|
3885
|
+
className: S && !k ? "ds-field__error" : "ds-field__hint",
|
|
3886
|
+
id: S && !k ? W : F,
|
|
3887
|
+
children: [
|
|
3888
|
+
S && !k && /* @__PURE__ */ r.jsx(q, { name: "alert-circle", size: 14 }),
|
|
3889
|
+
S && !k ? S : j
|
|
3890
|
+
]
|
|
3891
|
+
}
|
|
3892
|
+
),
|
|
3893
|
+
B && $ && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3894
|
+
/* @__PURE__ */ r.jsxs("span", { className: "ds-field__count", "data-ds-count": !0, children: [
|
|
3895
|
+
u.length,
|
|
3896
|
+
" / ",
|
|
3897
|
+
$
|
|
3898
|
+
] }),
|
|
3899
|
+
/* @__PURE__ */ r.jsx(
|
|
3900
|
+
"span",
|
|
3901
|
+
{
|
|
3902
|
+
className: "ds-sr-only",
|
|
3903
|
+
"aria-live": "polite",
|
|
3904
|
+
"data-ds-count-live": !0
|
|
3905
|
+
}
|
|
3906
|
+
)
|
|
3907
|
+
] }),
|
|
3908
|
+
k && /* @__PURE__ */ r.jsxs("div", { className: "ds-field__error", id: W, hidden: !Y, children: [
|
|
3909
|
+
/* @__PURE__ */ r.jsx(q, { name: "alert-circle", size: 14 }),
|
|
3910
|
+
/* @__PURE__ */ r.jsx("span", { "data-ds-error-text": !0, children: Y || "Check this field." })
|
|
3911
|
+
] })
|
|
3912
|
+
]
|
|
3913
|
+
}
|
|
3914
|
+
);
|
|
3915
|
+
}
|
|
3916
|
+
function Ta({ className: c }) {
|
|
3917
|
+
const s = document.documentElement, p = window.matchMedia("(prefers-color-scheme: dark)"), v = () => (s.dataset.theme ?? "") || (p.matches ? "dark" : "light"), [m, R] = I.useState(v()), j = () => {
|
|
3918
|
+
const x = v();
|
|
3919
|
+
R(x);
|
|
3920
|
+
}, S = (x) => {
|
|
3921
|
+
s.dataset.theme = x;
|
|
3922
|
+
try {
|
|
3923
|
+
localStorage.setItem("minerva-theme", x);
|
|
3924
|
+
} catch {
|
|
3925
|
+
}
|
|
3926
|
+
R(x);
|
|
3927
|
+
}, N = () => {
|
|
3928
|
+
S(v() === "dark" ? "light" : "dark");
|
|
3929
|
+
}, k = `Switch to ${m === "dark" ? "light" : "dark"} theme`;
|
|
3930
|
+
return I.useEffect(() => (j(), p.addEventListener("change", j), () => p.removeEventListener("change", j)), []), /* @__PURE__ */ r.jsxs(
|
|
3931
|
+
Kr,
|
|
3932
|
+
{
|
|
3933
|
+
variant: "ghost",
|
|
3934
|
+
iconOnly: !0,
|
|
3935
|
+
"aria-label": k,
|
|
3936
|
+
className: ["ds-theme-toggle", c].filter(Boolean).join(" "),
|
|
3937
|
+
onClick: N,
|
|
3938
|
+
children: [
|
|
3939
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-theme-toggle__sun", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "sun", size: 16 }) }),
|
|
3940
|
+
/* @__PURE__ */ r.jsx("span", { className: "ds-theme-toggle__moon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: "moon", size: 16 }) })
|
|
3941
|
+
]
|
|
3942
|
+
}
|
|
3943
|
+
);
|
|
3944
|
+
}
|
|
3945
|
+
const aa = {
|
|
3946
|
+
info: "info",
|
|
3947
|
+
success: "check-circle",
|
|
3948
|
+
warning: "alert-triangle",
|
|
3949
|
+
danger: "alert-circle",
|
|
3950
|
+
loading: "loader"
|
|
3951
|
+
};
|
|
3952
|
+
function Ma({
|
|
3953
|
+
tone: c,
|
|
3954
|
+
type: s,
|
|
3955
|
+
title: p,
|
|
3956
|
+
message: v,
|
|
3957
|
+
description: m,
|
|
3958
|
+
dismissible: R = !0,
|
|
3959
|
+
icon: j = !0,
|
|
3960
|
+
triggerLabel: S,
|
|
3961
|
+
triggerVariant: N = "secondary",
|
|
3962
|
+
duration: k = 5e3,
|
|
3963
|
+
id: x,
|
|
3964
|
+
className: y,
|
|
3965
|
+
children: E
|
|
3966
|
+
}) {
|
|
3967
|
+
const b = s ?? c ?? "info", O = b === "error" ? "danger" : b, $ = O === "danger" || O === "warning" ? "alert" : "status", K = $ === "alert" ? "assertive" : "polite", Z = aa[O], B = m ?? v, se = x ?? `toast-${crypto.randomUUID()}`, Q = ["ds-toast", `ds-toast--${O}`, y].filter(Boolean).join(" ");
|
|
3968
|
+
return S ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3969
|
+
/* @__PURE__ */ r.jsx(
|
|
3970
|
+
Kr,
|
|
3971
|
+
{
|
|
3972
|
+
variant: N,
|
|
3973
|
+
type: "button",
|
|
3974
|
+
"aria-haspopup": "dialog",
|
|
3975
|
+
onClick: () => sa(se),
|
|
3976
|
+
children: S
|
|
3977
|
+
}
|
|
3978
|
+
),
|
|
3979
|
+
/* @__PURE__ */ r.jsx("template", { id: `${se}-template`, children: /* @__PURE__ */ r.jsxs(
|
|
3980
|
+
"div",
|
|
3981
|
+
{
|
|
3982
|
+
className: Q,
|
|
3983
|
+
id: se,
|
|
3984
|
+
role: $,
|
|
3985
|
+
"aria-live": K,
|
|
3986
|
+
"aria-atomic": "true",
|
|
3987
|
+
"data-toast": !0,
|
|
3988
|
+
"data-toast-type": O,
|
|
3989
|
+
"data-toast-duration": k,
|
|
3990
|
+
children: [
|
|
3991
|
+
j && /* @__PURE__ */ r.jsx("span", { className: "ds-toast__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: Z, size: 16 }) }),
|
|
3992
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-toast__content", children: [
|
|
3993
|
+
/* @__PURE__ */ r.jsx("p", { className: "ds-toast__title", children: p }),
|
|
3994
|
+
B && /* @__PURE__ */ r.jsx("p", { className: "ds-toast__body", children: B }),
|
|
3995
|
+
E
|
|
3996
|
+
] }),
|
|
3997
|
+
R && /* @__PURE__ */ r.jsx(
|
|
3998
|
+
"button",
|
|
3999
|
+
{
|
|
4000
|
+
className: "ds-toast__close",
|
|
4001
|
+
type: "button",
|
|
4002
|
+
"aria-label": "Close toast",
|
|
4003
|
+
onClick: () => Rt(se),
|
|
4004
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "x", size: 16 })
|
|
4005
|
+
}
|
|
4006
|
+
)
|
|
4007
|
+
]
|
|
4008
|
+
}
|
|
4009
|
+
) })
|
|
4010
|
+
] }) : /* @__PURE__ */ r.jsxs(
|
|
4011
|
+
"div",
|
|
4012
|
+
{
|
|
4013
|
+
className: Q,
|
|
4014
|
+
id: se,
|
|
4015
|
+
role: $,
|
|
4016
|
+
"aria-live": K,
|
|
4017
|
+
"aria-atomic": "true",
|
|
4018
|
+
"data-toast": !0,
|
|
4019
|
+
"data-toast-type": O,
|
|
4020
|
+
children: [
|
|
4021
|
+
j && /* @__PURE__ */ r.jsx("span", { className: "ds-toast__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(q, { name: Z, size: 16 }) }),
|
|
4022
|
+
/* @__PURE__ */ r.jsxs("div", { className: "ds-toast__content", children: [
|
|
4023
|
+
/* @__PURE__ */ r.jsx("p", { className: "ds-toast__title", children: p }),
|
|
4024
|
+
B && /* @__PURE__ */ r.jsx("p", { className: "ds-toast__body", children: B }),
|
|
4025
|
+
E
|
|
4026
|
+
] }),
|
|
4027
|
+
R && /* @__PURE__ */ r.jsx(
|
|
4028
|
+
"button",
|
|
4029
|
+
{
|
|
4030
|
+
className: "ds-toast__close",
|
|
4031
|
+
type: "button",
|
|
4032
|
+
"aria-label": "Close toast",
|
|
4033
|
+
onClick: () => Rt(se),
|
|
4034
|
+
children: /* @__PURE__ */ r.jsx(q, { name: "x", size: 16 })
|
|
4035
|
+
}
|
|
4036
|
+
)
|
|
4037
|
+
]
|
|
4038
|
+
}
|
|
4039
|
+
);
|
|
4040
|
+
}
|
|
4041
|
+
let Re = null;
|
|
4042
|
+
function na() {
|
|
4043
|
+
return Re || (Re = document.createElement("div"), Re.setAttribute("data-toast-region", ""), Re.style.position = "fixed", Re.style.bottom = "1rem", Re.style.right = "1rem", Re.style.display = "flex", Re.style.flexDirection = "column", Re.style.gap = "0.5rem", Re.style.zIndex = "1500", document.body.appendChild(Re)), Re;
|
|
4044
|
+
}
|
|
4045
|
+
function sa(c) {
|
|
4046
|
+
var j;
|
|
4047
|
+
const s = document.getElementById(
|
|
4048
|
+
`${c}-template`
|
|
4049
|
+
), p = (j = s == null ? void 0 : s.content.firstElementChild) == null ? void 0 : j.cloneNode(
|
|
4050
|
+
!0
|
|
4051
|
+
);
|
|
4052
|
+
if (!p) return;
|
|
4053
|
+
na().appendChild(p);
|
|
4054
|
+
const m = p.querySelector("[data-toast-close]"), R = parseInt(p.dataset.toastDuration ?? "5000", 10);
|
|
4055
|
+
m && m.addEventListener("click", () => Yr(p)), R > 0 && setTimeout(() => Yr(p), R);
|
|
4056
|
+
}
|
|
4057
|
+
function Rt(c) {
|
|
4058
|
+
const s = document.getElementById(c);
|
|
4059
|
+
s && Yr(s);
|
|
4060
|
+
}
|
|
4061
|
+
function Yr(c) {
|
|
4062
|
+
c.remove();
|
|
4063
|
+
}
|
|
4064
|
+
function Oa({ className: c, start: s, actions: p }) {
|
|
4065
|
+
const v = ["ds-topbar", c].filter(Boolean).join(" ");
|
|
4066
|
+
return /* @__PURE__ */ r.jsx("div", { className: v, children: /* @__PURE__ */ r.jsxs("div", { className: "ds-topbar__inner", children: [
|
|
4067
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-topbar__start", children: s }),
|
|
4068
|
+
/* @__PURE__ */ r.jsx("div", { className: "ds-topbar__actions", children: p })
|
|
4069
|
+
] }) });
|
|
4070
|
+
}
|
|
4071
|
+
export {
|
|
4072
|
+
ia as Accordion,
|
|
4073
|
+
oa as Alert,
|
|
4074
|
+
ta as Badge,
|
|
4075
|
+
la as Breadcrumbs,
|
|
4076
|
+
Kr as Button,
|
|
4077
|
+
ca as Card,
|
|
4078
|
+
ua as Checkbox,
|
|
4079
|
+
da as Chip,
|
|
4080
|
+
fa as CodeBlock,
|
|
4081
|
+
ha as EmptyState,
|
|
4082
|
+
pa as Example,
|
|
4083
|
+
va as Grid,
|
|
4084
|
+
ma as GridItem,
|
|
4085
|
+
q as Icon,
|
|
4086
|
+
_a as Modal,
|
|
4087
|
+
ya as Navbar,
|
|
4088
|
+
ba as PageHeader,
|
|
4089
|
+
ga as Pagination,
|
|
4090
|
+
xa as Radio,
|
|
4091
|
+
ja as RadioGroup,
|
|
4092
|
+
Ea as Section,
|
|
4093
|
+
wa as Select,
|
|
4094
|
+
Ra as Sidebar,
|
|
4095
|
+
Na as Skeleton,
|
|
4096
|
+
Ca as Spinner,
|
|
4097
|
+
ka as Table,
|
|
4098
|
+
Sa as TextField,
|
|
4099
|
+
Ta as ThemeToggle,
|
|
4100
|
+
Ma as Toast,
|
|
4101
|
+
Oa as TopBar
|
|
4102
|
+
};
|
|
4103
|
+
//# sourceMappingURL=index.js.map
|