stargazer-ui 1.0.0
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/LICENSE +21 -0
- package/dist/ui.es.js +1983 -0
- package/dist/ui.umd.js +33 -0
- package/package.json +49 -0
package/dist/ui.es.js
ADDED
|
@@ -0,0 +1,1983 @@
|
|
|
1
|
+
import me, { forwardRef as y, createContext as he, useState as B, useCallback as zt, useMemo as oe, useContext as H, useEffect as L, useLayoutEffect as Sr, useRef as qe } from "react";
|
|
2
|
+
import { createPortal as Bt } from "react-dom";
|
|
3
|
+
var Ke = { exports: {} }, ue = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-jsx-runtime.production.min.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var Rt;
|
|
14
|
+
function Pr() {
|
|
15
|
+
if (Rt)
|
|
16
|
+
return ue;
|
|
17
|
+
Rt = 1;
|
|
18
|
+
var e = me, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function c(a, l, v) {
|
|
20
|
+
var h, d = {}, p = null, E = null;
|
|
21
|
+
v !== void 0 && (p = "" + v), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (E = l.ref);
|
|
22
|
+
for (h in l)
|
|
23
|
+
n.call(l, h) && !i.hasOwnProperty(h) && (d[h] = l[h]);
|
|
24
|
+
if (a && a.defaultProps)
|
|
25
|
+
for (h in l = a.defaultProps, l)
|
|
26
|
+
d[h] === void 0 && (d[h] = l[h]);
|
|
27
|
+
return { $$typeof: t, type: a, key: p, ref: E, props: d, _owner: s.current };
|
|
28
|
+
}
|
|
29
|
+
return ue.Fragment = r, ue.jsx = c, ue.jsxs = c, ue;
|
|
30
|
+
}
|
|
31
|
+
var le = {};
|
|
32
|
+
/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react-jsx-runtime.development.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
var Ot;
|
|
42
|
+
function Rr() {
|
|
43
|
+
return Ot || (Ot = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
+
var e = me, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), C = Symbol.iterator, _ = "@@iterator";
|
|
45
|
+
function g(o) {
|
|
46
|
+
if (o === null || typeof o != "object")
|
|
47
|
+
return null;
|
|
48
|
+
var u = C && o[C] || o[_];
|
|
49
|
+
return typeof u == "function" ? u : null;
|
|
50
|
+
}
|
|
51
|
+
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
+
function w(o) {
|
|
53
|
+
{
|
|
54
|
+
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), b = 1; b < u; b++)
|
|
55
|
+
m[b - 1] = arguments[b];
|
|
56
|
+
A("error", o, m);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function A(o, u, m) {
|
|
60
|
+
{
|
|
61
|
+
var b = j.ReactDebugCurrentFrame, P = b.getStackAddendum();
|
|
62
|
+
P !== "" && (u += "%s", m = m.concat([P]));
|
|
63
|
+
var R = m.map(function(S) {
|
|
64
|
+
return String(S);
|
|
65
|
+
});
|
|
66
|
+
R.unshift("Warning: " + u), Function.prototype.apply.call(console[o], console, R);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
var $ = !1, M = !1, G = !1, z = !1, W = !1, Y;
|
|
70
|
+
Y = Symbol.for("react.module.reference");
|
|
71
|
+
function Ae(o) {
|
|
72
|
+
return !!(typeof o == "string" || typeof o == "function" || o === n || o === i || W || o === s || o === v || o === h || z || o === E || $ || M || G || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === d || o.$$typeof === c || o.$$typeof === a || o.$$typeof === l || // This needs to include all possible module reference object
|
|
73
|
+
// types supported by any Flight configuration anywhere since
|
|
74
|
+
// we don't know which Flight build this will end up being used
|
|
75
|
+
// with.
|
|
76
|
+
o.$$typeof === Y || o.getModuleId !== void 0));
|
|
77
|
+
}
|
|
78
|
+
function er(o, u, m) {
|
|
79
|
+
var b = o.displayName;
|
|
80
|
+
if (b)
|
|
81
|
+
return b;
|
|
82
|
+
var P = u.displayName || u.name || "";
|
|
83
|
+
return P !== "" ? m + "(" + P + ")" : m;
|
|
84
|
+
}
|
|
85
|
+
function st(o) {
|
|
86
|
+
return o.displayName || "Context";
|
|
87
|
+
}
|
|
88
|
+
function V(o) {
|
|
89
|
+
if (o == null)
|
|
90
|
+
return null;
|
|
91
|
+
if (typeof o.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
92
|
+
return o.displayName || o.name || null;
|
|
93
|
+
if (typeof o == "string")
|
|
94
|
+
return o;
|
|
95
|
+
switch (o) {
|
|
96
|
+
case n:
|
|
97
|
+
return "Fragment";
|
|
98
|
+
case r:
|
|
99
|
+
return "Portal";
|
|
100
|
+
case i:
|
|
101
|
+
return "Profiler";
|
|
102
|
+
case s:
|
|
103
|
+
return "StrictMode";
|
|
104
|
+
case v:
|
|
105
|
+
return "Suspense";
|
|
106
|
+
case h:
|
|
107
|
+
return "SuspenseList";
|
|
108
|
+
}
|
|
109
|
+
if (typeof o == "object")
|
|
110
|
+
switch (o.$$typeof) {
|
|
111
|
+
case a:
|
|
112
|
+
var u = o;
|
|
113
|
+
return st(u) + ".Consumer";
|
|
114
|
+
case c:
|
|
115
|
+
var m = o;
|
|
116
|
+
return st(m._context) + ".Provider";
|
|
117
|
+
case l:
|
|
118
|
+
return er(o, o.render, "ForwardRef");
|
|
119
|
+
case d:
|
|
120
|
+
var b = o.displayName || null;
|
|
121
|
+
return b !== null ? b : V(o.type) || "Memo";
|
|
122
|
+
case p: {
|
|
123
|
+
var P = o, R = P._payload, S = P._init;
|
|
124
|
+
try {
|
|
125
|
+
return V(S(R));
|
|
126
|
+
} catch {
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
var X = Object.assign, ae = 0, it, at, ct, ut, lt, ft, dt;
|
|
134
|
+
function pt() {
|
|
135
|
+
}
|
|
136
|
+
pt.__reactDisabledLog = !0;
|
|
137
|
+
function tr() {
|
|
138
|
+
{
|
|
139
|
+
if (ae === 0) {
|
|
140
|
+
it = console.log, at = console.info, ct = console.warn, ut = console.error, lt = console.group, ft = console.groupCollapsed, dt = console.groupEnd;
|
|
141
|
+
var o = {
|
|
142
|
+
configurable: !0,
|
|
143
|
+
enumerable: !0,
|
|
144
|
+
value: pt,
|
|
145
|
+
writable: !0
|
|
146
|
+
};
|
|
147
|
+
Object.defineProperties(console, {
|
|
148
|
+
info: o,
|
|
149
|
+
log: o,
|
|
150
|
+
warn: o,
|
|
151
|
+
error: o,
|
|
152
|
+
group: o,
|
|
153
|
+
groupCollapsed: o,
|
|
154
|
+
groupEnd: o
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
ae++;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
function rr() {
|
|
161
|
+
{
|
|
162
|
+
if (ae--, ae === 0) {
|
|
163
|
+
var o = {
|
|
164
|
+
configurable: !0,
|
|
165
|
+
enumerable: !0,
|
|
166
|
+
writable: !0
|
|
167
|
+
};
|
|
168
|
+
Object.defineProperties(console, {
|
|
169
|
+
log: X({}, o, {
|
|
170
|
+
value: it
|
|
171
|
+
}),
|
|
172
|
+
info: X({}, o, {
|
|
173
|
+
value: at
|
|
174
|
+
}),
|
|
175
|
+
warn: X({}, o, {
|
|
176
|
+
value: ct
|
|
177
|
+
}),
|
|
178
|
+
error: X({}, o, {
|
|
179
|
+
value: ut
|
|
180
|
+
}),
|
|
181
|
+
group: X({}, o, {
|
|
182
|
+
value: lt
|
|
183
|
+
}),
|
|
184
|
+
groupCollapsed: X({}, o, {
|
|
185
|
+
value: ft
|
|
186
|
+
}),
|
|
187
|
+
groupEnd: X({}, o, {
|
|
188
|
+
value: dt
|
|
189
|
+
})
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
ae < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
var Ne = j.ReactCurrentDispatcher, Me;
|
|
196
|
+
function be(o, u, m) {
|
|
197
|
+
{
|
|
198
|
+
if (Me === void 0)
|
|
199
|
+
try {
|
|
200
|
+
throw Error();
|
|
201
|
+
} catch (P) {
|
|
202
|
+
var b = P.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
Me = b && b[1] || "";
|
|
204
|
+
}
|
|
205
|
+
return `
|
|
206
|
+
` + Me + o;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
var ze = !1, _e;
|
|
210
|
+
{
|
|
211
|
+
var nr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
+
_e = new nr();
|
|
213
|
+
}
|
|
214
|
+
function mt(o, u) {
|
|
215
|
+
if (!o || ze)
|
|
216
|
+
return "";
|
|
217
|
+
{
|
|
218
|
+
var m = _e.get(o);
|
|
219
|
+
if (m !== void 0)
|
|
220
|
+
return m;
|
|
221
|
+
}
|
|
222
|
+
var b;
|
|
223
|
+
ze = !0;
|
|
224
|
+
var P = Error.prepareStackTrace;
|
|
225
|
+
Error.prepareStackTrace = void 0;
|
|
226
|
+
var R;
|
|
227
|
+
R = Ne.current, Ne.current = null, tr();
|
|
228
|
+
try {
|
|
229
|
+
if (u) {
|
|
230
|
+
var S = function() {
|
|
231
|
+
throw Error();
|
|
232
|
+
};
|
|
233
|
+
if (Object.defineProperty(S.prototype, "props", {
|
|
234
|
+
set: function() {
|
|
235
|
+
throw Error();
|
|
236
|
+
}
|
|
237
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
+
try {
|
|
239
|
+
Reflect.construct(S, []);
|
|
240
|
+
} catch (U) {
|
|
241
|
+
b = U;
|
|
242
|
+
}
|
|
243
|
+
Reflect.construct(o, [], S);
|
|
244
|
+
} else {
|
|
245
|
+
try {
|
|
246
|
+
S.call();
|
|
247
|
+
} catch (U) {
|
|
248
|
+
b = U;
|
|
249
|
+
}
|
|
250
|
+
o.call(S.prototype);
|
|
251
|
+
}
|
|
252
|
+
} else {
|
|
253
|
+
try {
|
|
254
|
+
throw Error();
|
|
255
|
+
} catch (U) {
|
|
256
|
+
b = U;
|
|
257
|
+
}
|
|
258
|
+
o();
|
|
259
|
+
}
|
|
260
|
+
} catch (U) {
|
|
261
|
+
if (U && b && typeof U.stack == "string") {
|
|
262
|
+
for (var x = U.stack.split(`
|
|
263
|
+
`), k = b.stack.split(`
|
|
264
|
+
`), O = x.length - 1, T = k.length - 1; O >= 1 && T >= 0 && x[O] !== k[T]; )
|
|
265
|
+
T--;
|
|
266
|
+
for (; O >= 1 && T >= 0; O--, T--)
|
|
267
|
+
if (x[O] !== k[T]) {
|
|
268
|
+
if (O !== 1 || T !== 1)
|
|
269
|
+
do
|
|
270
|
+
if (O--, T--, T < 0 || x[O] !== k[T]) {
|
|
271
|
+
var N = `
|
|
272
|
+
` + x[O].replace(" at new ", " at ");
|
|
273
|
+
return o.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", o.displayName)), typeof o == "function" && _e.set(o, N), N;
|
|
274
|
+
}
|
|
275
|
+
while (O >= 1 && T >= 0);
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
} finally {
|
|
280
|
+
ze = !1, Ne.current = R, rr(), Error.prepareStackTrace = P;
|
|
281
|
+
}
|
|
282
|
+
var re = o ? o.displayName || o.name : "", Pt = re ? be(re) : "";
|
|
283
|
+
return typeof o == "function" && _e.set(o, Pt), Pt;
|
|
284
|
+
}
|
|
285
|
+
function or(o, u, m) {
|
|
286
|
+
return mt(o, !1);
|
|
287
|
+
}
|
|
288
|
+
function sr(o) {
|
|
289
|
+
var u = o.prototype;
|
|
290
|
+
return !!(u && u.isReactComponent);
|
|
291
|
+
}
|
|
292
|
+
function we(o, u, m) {
|
|
293
|
+
if (o == null)
|
|
294
|
+
return "";
|
|
295
|
+
if (typeof o == "function")
|
|
296
|
+
return mt(o, sr(o));
|
|
297
|
+
if (typeof o == "string")
|
|
298
|
+
return be(o);
|
|
299
|
+
switch (o) {
|
|
300
|
+
case v:
|
|
301
|
+
return be("Suspense");
|
|
302
|
+
case h:
|
|
303
|
+
return be("SuspenseList");
|
|
304
|
+
}
|
|
305
|
+
if (typeof o == "object")
|
|
306
|
+
switch (o.$$typeof) {
|
|
307
|
+
case l:
|
|
308
|
+
return or(o.render);
|
|
309
|
+
case d:
|
|
310
|
+
return we(o.type, u, m);
|
|
311
|
+
case p: {
|
|
312
|
+
var b = o, P = b._payload, R = b._init;
|
|
313
|
+
try {
|
|
314
|
+
return we(R(P), u, m);
|
|
315
|
+
} catch {
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
return "";
|
|
320
|
+
}
|
|
321
|
+
var Ee = Object.prototype.hasOwnProperty, ht = {}, vt = j.ReactDebugCurrentFrame;
|
|
322
|
+
function xe(o) {
|
|
323
|
+
if (o) {
|
|
324
|
+
var u = o._owner, m = we(o.type, o._source, u ? u.type : null);
|
|
325
|
+
vt.setExtraStackFrame(m);
|
|
326
|
+
} else
|
|
327
|
+
vt.setExtraStackFrame(null);
|
|
328
|
+
}
|
|
329
|
+
function ir(o, u, m, b, P) {
|
|
330
|
+
{
|
|
331
|
+
var R = Function.call.bind(Ee);
|
|
332
|
+
for (var S in o)
|
|
333
|
+
if (R(o, S)) {
|
|
334
|
+
var x = void 0;
|
|
335
|
+
try {
|
|
336
|
+
if (typeof o[S] != "function") {
|
|
337
|
+
var k = Error((b || "React class") + ": " + m + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw k.name = "Invariant Violation", k;
|
|
339
|
+
}
|
|
340
|
+
x = o[S](u, S, b, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (O) {
|
|
342
|
+
x = O;
|
|
343
|
+
}
|
|
344
|
+
x && !(x instanceof Error) && (xe(P), w("%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).", b || "React class", m, S, typeof x), xe(null)), x instanceof Error && !(x.message in ht) && (ht[x.message] = !0, xe(P), w("Failed %s type: %s", m, x.message), xe(null));
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
var ar = Array.isArray;
|
|
349
|
+
function Be(o) {
|
|
350
|
+
return ar(o);
|
|
351
|
+
}
|
|
352
|
+
function cr(o) {
|
|
353
|
+
{
|
|
354
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, m = u && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
355
|
+
return m;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
function ur(o) {
|
|
359
|
+
try {
|
|
360
|
+
return gt(o), !1;
|
|
361
|
+
} catch {
|
|
362
|
+
return !0;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function gt(o) {
|
|
366
|
+
return "" + o;
|
|
367
|
+
}
|
|
368
|
+
function yt(o) {
|
|
369
|
+
if (ur(o))
|
|
370
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", cr(o)), gt(o);
|
|
371
|
+
}
|
|
372
|
+
var ce = j.ReactCurrentOwner, lr = {
|
|
373
|
+
key: !0,
|
|
374
|
+
ref: !0,
|
|
375
|
+
__self: !0,
|
|
376
|
+
__source: !0
|
|
377
|
+
}, bt, _t, We;
|
|
378
|
+
We = {};
|
|
379
|
+
function fr(o) {
|
|
380
|
+
if (Ee.call(o, "ref")) {
|
|
381
|
+
var u = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
382
|
+
if (u && u.isReactWarning)
|
|
383
|
+
return !1;
|
|
384
|
+
}
|
|
385
|
+
return o.ref !== void 0;
|
|
386
|
+
}
|
|
387
|
+
function dr(o) {
|
|
388
|
+
if (Ee.call(o, "key")) {
|
|
389
|
+
var u = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
390
|
+
if (u && u.isReactWarning)
|
|
391
|
+
return !1;
|
|
392
|
+
}
|
|
393
|
+
return o.key !== void 0;
|
|
394
|
+
}
|
|
395
|
+
function pr(o, u) {
|
|
396
|
+
if (typeof o.ref == "string" && ce.current && u && ce.current.stateNode !== u) {
|
|
397
|
+
var m = V(ce.current.type);
|
|
398
|
+
We[m] || (w('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', V(ce.current.type), o.ref), We[m] = !0);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
function mr(o, u) {
|
|
402
|
+
{
|
|
403
|
+
var m = function() {
|
|
404
|
+
bt || (bt = !0, w("%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)", u));
|
|
405
|
+
};
|
|
406
|
+
m.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
407
|
+
get: m,
|
|
408
|
+
configurable: !0
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
function hr(o, u) {
|
|
413
|
+
{
|
|
414
|
+
var m = function() {
|
|
415
|
+
_t || (_t = !0, w("%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)", u));
|
|
416
|
+
};
|
|
417
|
+
m.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
418
|
+
get: m,
|
|
419
|
+
configurable: !0
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
var vr = function(o, u, m, b, P, R, S) {
|
|
424
|
+
var x = {
|
|
425
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
+
$$typeof: t,
|
|
427
|
+
// Built-in properties that belong on the element
|
|
428
|
+
type: o,
|
|
429
|
+
key: u,
|
|
430
|
+
ref: m,
|
|
431
|
+
props: S,
|
|
432
|
+
// Record the component responsible for creating this element.
|
|
433
|
+
_owner: R
|
|
434
|
+
};
|
|
435
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
436
|
+
configurable: !1,
|
|
437
|
+
enumerable: !1,
|
|
438
|
+
writable: !0,
|
|
439
|
+
value: !1
|
|
440
|
+
}), Object.defineProperty(x, "_self", {
|
|
441
|
+
configurable: !1,
|
|
442
|
+
enumerable: !1,
|
|
443
|
+
writable: !1,
|
|
444
|
+
value: b
|
|
445
|
+
}), Object.defineProperty(x, "_source", {
|
|
446
|
+
configurable: !1,
|
|
447
|
+
enumerable: !1,
|
|
448
|
+
writable: !1,
|
|
449
|
+
value: P
|
|
450
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
451
|
+
};
|
|
452
|
+
function gr(o, u, m, b, P) {
|
|
453
|
+
{
|
|
454
|
+
var R, S = {}, x = null, k = null;
|
|
455
|
+
m !== void 0 && (yt(m), x = "" + m), dr(u) && (yt(u.key), x = "" + u.key), fr(u) && (k = u.ref, pr(u, P));
|
|
456
|
+
for (R in u)
|
|
457
|
+
Ee.call(u, R) && !lr.hasOwnProperty(R) && (S[R] = u[R]);
|
|
458
|
+
if (o && o.defaultProps) {
|
|
459
|
+
var O = o.defaultProps;
|
|
460
|
+
for (R in O)
|
|
461
|
+
S[R] === void 0 && (S[R] = O[R]);
|
|
462
|
+
}
|
|
463
|
+
if (x || k) {
|
|
464
|
+
var T = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
465
|
+
x && mr(S, T), k && hr(S, T);
|
|
466
|
+
}
|
|
467
|
+
return vr(o, x, k, P, b, ce.current, S);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
var Le = j.ReactCurrentOwner, wt = j.ReactDebugCurrentFrame;
|
|
471
|
+
function te(o) {
|
|
472
|
+
if (o) {
|
|
473
|
+
var u = o._owner, m = we(o.type, o._source, u ? u.type : null);
|
|
474
|
+
wt.setExtraStackFrame(m);
|
|
475
|
+
} else
|
|
476
|
+
wt.setExtraStackFrame(null);
|
|
477
|
+
}
|
|
478
|
+
var Ye;
|
|
479
|
+
Ye = !1;
|
|
480
|
+
function Ve(o) {
|
|
481
|
+
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
482
|
+
}
|
|
483
|
+
function Et() {
|
|
484
|
+
{
|
|
485
|
+
if (Le.current) {
|
|
486
|
+
var o = V(Le.current.type);
|
|
487
|
+
if (o)
|
|
488
|
+
return `
|
|
489
|
+
|
|
490
|
+
Check the render method of \`` + o + "`.";
|
|
491
|
+
}
|
|
492
|
+
return "";
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
function yr(o) {
|
|
496
|
+
{
|
|
497
|
+
if (o !== void 0) {
|
|
498
|
+
var u = o.fileName.replace(/^.*[\\\/]/, ""), m = o.lineNumber;
|
|
499
|
+
return `
|
|
500
|
+
|
|
501
|
+
Check your code at ` + u + ":" + m + ".";
|
|
502
|
+
}
|
|
503
|
+
return "";
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
var xt = {};
|
|
507
|
+
function br(o) {
|
|
508
|
+
{
|
|
509
|
+
var u = Et();
|
|
510
|
+
if (!u) {
|
|
511
|
+
var m = typeof o == "string" ? o : o.displayName || o.name;
|
|
512
|
+
m && (u = `
|
|
513
|
+
|
|
514
|
+
Check the top-level render call using <` + m + ">.");
|
|
515
|
+
}
|
|
516
|
+
return u;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
function Ct(o, u) {
|
|
520
|
+
{
|
|
521
|
+
if (!o._store || o._store.validated || o.key != null)
|
|
522
|
+
return;
|
|
523
|
+
o._store.validated = !0;
|
|
524
|
+
var m = br(u);
|
|
525
|
+
if (xt[m])
|
|
526
|
+
return;
|
|
527
|
+
xt[m] = !0;
|
|
528
|
+
var b = "";
|
|
529
|
+
o && o._owner && o._owner !== Le.current && (b = " It was passed a child from " + V(o._owner.type) + "."), te(o), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, b), te(null);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
function jt(o, u) {
|
|
533
|
+
{
|
|
534
|
+
if (typeof o != "object")
|
|
535
|
+
return;
|
|
536
|
+
if (Be(o))
|
|
537
|
+
for (var m = 0; m < o.length; m++) {
|
|
538
|
+
var b = o[m];
|
|
539
|
+
Ve(b) && Ct(b, u);
|
|
540
|
+
}
|
|
541
|
+
else if (Ve(o))
|
|
542
|
+
o._store && (o._store.validated = !0);
|
|
543
|
+
else if (o) {
|
|
544
|
+
var P = g(o);
|
|
545
|
+
if (typeof P == "function" && P !== o.entries)
|
|
546
|
+
for (var R = P.call(o), S; !(S = R.next()).done; )
|
|
547
|
+
Ve(S.value) && Ct(S.value, u);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
function _r(o) {
|
|
552
|
+
{
|
|
553
|
+
var u = o.type;
|
|
554
|
+
if (u == null || typeof u == "string")
|
|
555
|
+
return;
|
|
556
|
+
var m;
|
|
557
|
+
if (typeof u == "function")
|
|
558
|
+
m = u.propTypes;
|
|
559
|
+
else if (typeof u == "object" && (u.$$typeof === l || // Note: Memo only checks outer props here.
|
|
560
|
+
// Inner props are checked in the reconciler.
|
|
561
|
+
u.$$typeof === d))
|
|
562
|
+
m = u.propTypes;
|
|
563
|
+
else
|
|
564
|
+
return;
|
|
565
|
+
if (m) {
|
|
566
|
+
var b = V(u);
|
|
567
|
+
ir(m, o.props, "prop", b, o);
|
|
568
|
+
} else if (u.PropTypes !== void 0 && !Ye) {
|
|
569
|
+
Ye = !0;
|
|
570
|
+
var P = V(u);
|
|
571
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
572
|
+
}
|
|
573
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
function wr(o) {
|
|
577
|
+
{
|
|
578
|
+
for (var u = Object.keys(o.props), m = 0; m < u.length; m++) {
|
|
579
|
+
var b = u[m];
|
|
580
|
+
if (b !== "children" && b !== "key") {
|
|
581
|
+
te(o), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), te(null);
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
o.ref !== null && (te(o), w("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
function St(o, u, m, b, P, R) {
|
|
589
|
+
{
|
|
590
|
+
var S = Ae(o);
|
|
591
|
+
if (!S) {
|
|
592
|
+
var x = "";
|
|
593
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
594
|
+
var k = yr(P);
|
|
595
|
+
k ? x += k : x += Et();
|
|
596
|
+
var O;
|
|
597
|
+
o === null ? O = "null" : Be(o) ? O = "array" : o !== void 0 && o.$$typeof === t ? (O = "<" + (V(o.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : O = typeof o, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, x);
|
|
598
|
+
}
|
|
599
|
+
var T = gr(o, u, m, P, R);
|
|
600
|
+
if (T == null)
|
|
601
|
+
return T;
|
|
602
|
+
if (S) {
|
|
603
|
+
var N = u.children;
|
|
604
|
+
if (N !== void 0)
|
|
605
|
+
if (b)
|
|
606
|
+
if (Be(N)) {
|
|
607
|
+
for (var re = 0; re < N.length; re++)
|
|
608
|
+
jt(N[re], o);
|
|
609
|
+
Object.freeze && Object.freeze(N);
|
|
610
|
+
} else
|
|
611
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
612
|
+
else
|
|
613
|
+
jt(N, o);
|
|
614
|
+
}
|
|
615
|
+
return o === n ? wr(T) : _r(T), T;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function Er(o, u, m) {
|
|
619
|
+
return St(o, u, m, !0);
|
|
620
|
+
}
|
|
621
|
+
function xr(o, u, m) {
|
|
622
|
+
return St(o, u, m, !1);
|
|
623
|
+
}
|
|
624
|
+
var Cr = xr, jr = Er;
|
|
625
|
+
le.Fragment = n, le.jsx = Cr, le.jsxs = jr;
|
|
626
|
+
}()), le;
|
|
627
|
+
}
|
|
628
|
+
process.env.NODE_ENV === "production" ? Ke.exports = Pr() : Ke.exports = Rr();
|
|
629
|
+
var f = Ke.exports;
|
|
630
|
+
const Or = y(({ variant: e = "primary", children: t, className: r, ...n }, s) => /* @__PURE__ */ f.jsx("button", { ref: s, type: "button", className: `sg-button sg-button-${e}${r == null ? "" : " " + r}`, ...n, children: t })), se = y(({ children: e, className: t, ...r }, n) => {
|
|
631
|
+
let s = Object.keys(se), i = [], c = e.length === void 0 ? e : e.filter((a) => a != null && a != "");
|
|
632
|
+
return s.forEach((a) => {
|
|
633
|
+
me.Children.forEach(c, (l) => l.type.name === a ? i.push(l) : null);
|
|
634
|
+
}), i.length === 0 && (i = [c]), /* @__PURE__ */ f.jsx("div", { ref: n, className: "sg-card " + t, ...r, children: i.map((a) => a) });
|
|
635
|
+
}), Tr = y(({ as: e, className: t, children: r, ...n }, s) => {
|
|
636
|
+
let c = ["div", "span", "h1", "h2", "h3", "h4", "h5", "h6"].find((a) => a === e) ? e : "div";
|
|
637
|
+
return /* @__PURE__ */ f.jsx(c, { ref: s, className: `sg-card-header ${t}`, ...n, children: r });
|
|
638
|
+
});
|
|
639
|
+
se.Header = Tr;
|
|
640
|
+
const kr = ({ children: e, className: t, ...r }, n) => {
|
|
641
|
+
e = e.length ? e.filter((i) => i != null && i != "") : e;
|
|
642
|
+
let s = [];
|
|
643
|
+
return me.Children.forEach(e, (i) => {
|
|
644
|
+
s.push(i);
|
|
645
|
+
}), /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-card-body ${t}`, ...r, children: s.map((i) => i) });
|
|
646
|
+
};
|
|
647
|
+
se.Body = y(kr);
|
|
648
|
+
const $r = y(({ as: e, className: t, children: r, ...n }, s) => {
|
|
649
|
+
let c = ["h1", "h2", "h3", "h4", "h5", "h6"].find((a) => a === e) ? e : "h5";
|
|
650
|
+
return /* @__PURE__ */ f.jsx(c, { ref: s, className: t, ...n, children: r });
|
|
651
|
+
});
|
|
652
|
+
se.Title = $r;
|
|
653
|
+
const Dr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("p", { ref: n, className: `sg-card-text ${t}`, ...r, children: e });
|
|
654
|
+
se.Text = y(Dr);
|
|
655
|
+
const Fr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-card-footer ${t}`, ...r, children: e });
|
|
656
|
+
se.Footer = y(Fr);
|
|
657
|
+
const Ir = y(({ className: e, variant: t = !1, ...r }, n) => /* @__PURE__ */ f.jsx("button", { ref: n, className: `sg-button-close${t ? " sg-button-close-white" : ""} ${e}`, ...r, children: /* @__PURE__ */ f.jsx("span", { className: "sg-close-visually-hidden-label", children: "Close" }) })), Ar = (e, t, r = !1) => {
|
|
658
|
+
const n = r ? "top-end" : "top-start", s = r ? "top-start" : "top-end", i = r ? "bottom-end" : "bottom-start", c = r ? "bottom-start" : "bottom-end", a = r ? "right-start" : "left-start", l = r ? "right-end" : "left-end", v = r ? "left-start" : "right-start", h = r ? "left-end" : "right-end";
|
|
659
|
+
let d = e ? c : i;
|
|
660
|
+
return t === "up" ? d = e ? s : n : t === "end" ? d = e ? h : v : t === "start" ? d = e ? l : a : t === "down-centered" ? d = "bottom" : t === "up-centered" && (d = "top"), d;
|
|
661
|
+
}, Tt = (e, t = "") => {
|
|
662
|
+
let r = e.target, n = !0, s = !1;
|
|
663
|
+
for (; n; )
|
|
664
|
+
r.id != t + "-menu" ? r = r.parentElement : (s = !0, n = !1), r.id === "root" && (n = !1, s = !1);
|
|
665
|
+
return s;
|
|
666
|
+
}, Pe = he(null), Nr = ({ children: e, value: t, ...r }) => /* @__PURE__ */ f.jsx(Pe.Provider, { value: t, children: e }), q = y(({
|
|
667
|
+
children: e,
|
|
668
|
+
className: t,
|
|
669
|
+
onSelect: r,
|
|
670
|
+
onToggle: n,
|
|
671
|
+
controlID: s,
|
|
672
|
+
drop: i = "down",
|
|
673
|
+
align: c = "start",
|
|
674
|
+
autoClose: a = !0,
|
|
675
|
+
show: l = "default",
|
|
676
|
+
...v
|
|
677
|
+
}, h) => {
|
|
678
|
+
const [d, p] = B(l === "default" ? !1 : l), [E, C] = B({ case: "" }), _ = zt((A) => {
|
|
679
|
+
A.stopPropagation(), p(($) => !$);
|
|
680
|
+
}, []), j = Ar(c === "end", i), w = oe(() => ({
|
|
681
|
+
align: c,
|
|
682
|
+
drop: i,
|
|
683
|
+
showInternal: l != "default" && n ? l : d,
|
|
684
|
+
handleToggle: l != "default" && n ? n : _,
|
|
685
|
+
placement: j,
|
|
686
|
+
directionClasses: {
|
|
687
|
+
down: "dropdown",
|
|
688
|
+
"down-centered": "dropdown-center",
|
|
689
|
+
up: "dropup",
|
|
690
|
+
"up-centered": "dropup-center dropup",
|
|
691
|
+
end: "dropend",
|
|
692
|
+
start: "dropstart"
|
|
693
|
+
},
|
|
694
|
+
controlID: s,
|
|
695
|
+
activeDescendant: E,
|
|
696
|
+
setActiveDescendant: C
|
|
697
|
+
}), [c, i, l, d, n, _, j, s, E, C]);
|
|
698
|
+
return /* @__PURE__ */ f.jsx("div", { id: s + "-wrapper", ref: h, className: `sg-dropdown${t ? " " + t : ""}`, ...v, children: /* @__PURE__ */ f.jsx(Nr, { value: w, children: e }) });
|
|
699
|
+
}), Mr = ({ children: e, className: t, navDropdown: r = !1, as: n = "button", variant: s = "primary", ...i }, c) => {
|
|
700
|
+
const { controlID: a, handleToggle: l, setActiveDescendant: v, showInternal: h } = H(Pe), d = n, p = (g) => {
|
|
701
|
+
let j = !1;
|
|
702
|
+
switch (g.key) {
|
|
703
|
+
case "ArrowDown":
|
|
704
|
+
j = !0, h ? v((w) => ({ case: "next" })) : (l(g), v((w) => ({ case: "first" })));
|
|
705
|
+
break;
|
|
706
|
+
case "ArrowUp":
|
|
707
|
+
j = !0, h ? v((w) => ({ case: "previous" })) : (l(g), v((w) => ({ case: "last" })));
|
|
708
|
+
break;
|
|
709
|
+
case "Home":
|
|
710
|
+
j = !0, h && v((w) => ({ case: "first" }));
|
|
711
|
+
break;
|
|
712
|
+
case "End":
|
|
713
|
+
j = !0, h && v((w) => ({ case: "last" }));
|
|
714
|
+
break;
|
|
715
|
+
case "Escape":
|
|
716
|
+
j = !0, h && l(g);
|
|
717
|
+
break;
|
|
718
|
+
case "Enter":
|
|
719
|
+
case " ":
|
|
720
|
+
if (h) {
|
|
721
|
+
j = !0, document.querySelector(".sg-dropdown-item-visual-focus").click(), l(g);
|
|
722
|
+
break;
|
|
723
|
+
} else {
|
|
724
|
+
v((w) => ({ case: "first" }));
|
|
725
|
+
break;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
j && (g.stopPropagation(), g.preventDefault());
|
|
729
|
+
}, E = (g) => {
|
|
730
|
+
h && g.target.id !== a && (Tt(g, a) ? Tt(g, a) && (l(g), document.getElementById(a).focus()) : l(g));
|
|
731
|
+
};
|
|
732
|
+
L(() => {
|
|
733
|
+
const g = document.getElementById(a);
|
|
734
|
+
return g.addEventListener("keydown", p, !0), document.addEventListener("mouseup", E, !0), function() {
|
|
735
|
+
g.removeEventListener("keydown", p, !0), document.removeEventListener("mouseup", E, !0);
|
|
736
|
+
};
|
|
737
|
+
}, [p, a]);
|
|
738
|
+
const C = (g) => {
|
|
739
|
+
l(g), h || v((j) => ({ case: "first" }));
|
|
740
|
+
};
|
|
741
|
+
let _ = `sg-button sg-button${s ? "-" + s : "-primary"} sg-dropdown-toggle${t ? " " + t : ""}`;
|
|
742
|
+
return (d === "a" || r) && (_ = `sg-nav-dropdown-toggle sg-dropdown-toggle${t ? " " + t : ""}`), /* @__PURE__ */ f.jsx(
|
|
743
|
+
d,
|
|
744
|
+
{
|
|
745
|
+
tabIndex: "0",
|
|
746
|
+
type: "button",
|
|
747
|
+
"aria-haspopup": "true",
|
|
748
|
+
"aria-controls": a + "-menu",
|
|
749
|
+
"aria-expanded": h,
|
|
750
|
+
id: a,
|
|
751
|
+
ref: c,
|
|
752
|
+
className: _,
|
|
753
|
+
onClick: (g) => C(g),
|
|
754
|
+
...i,
|
|
755
|
+
children: e
|
|
756
|
+
}
|
|
757
|
+
);
|
|
758
|
+
};
|
|
759
|
+
q.Toggle = y(Mr);
|
|
760
|
+
const zr = ({ children: e, className: t, style: r = {}, ...n }, s) => {
|
|
761
|
+
const { controlID: i, showInternal: c, activeDescendant: a } = H(Pe), [l, v] = B(r);
|
|
762
|
+
Sr(() => {
|
|
763
|
+
if (c) {
|
|
764
|
+
const d = document.getElementById(i + "-menu");
|
|
765
|
+
console.log(d);
|
|
766
|
+
let p = {};
|
|
767
|
+
d.getBoundingClientRect().right > window.innerWidth ? p = { ...p, right: 0 } : d.getBoundingClientRect().left < 0 ? p = { ...p, left: 0 } : d.getBoundingClientRect().top < 0 ? p = { ...p, top: 0 } : d.getBoundingClientRect().bottom > window.innerHeight && (p = { ...p, bottom: 0 }), console.log(p), v((E) => ({ ...E, ...p }));
|
|
768
|
+
}
|
|
769
|
+
}, [c]), L(() => {
|
|
770
|
+
if (c) {
|
|
771
|
+
const d = document.getElementById(i + "-menu"), p = document.getElementById(i + "-menu").children, E = p.length - 1, C = document.querySelector(".sg-dropdown-item-visual-focus");
|
|
772
|
+
let _ = 0, g = p[0].children[0];
|
|
773
|
+
if (C != null) {
|
|
774
|
+
for (let j = 0; j < p.length; j++)
|
|
775
|
+
p[j] === C.parentElement && (_ = j);
|
|
776
|
+
C.classList.remove("sg-dropdown-item-visual-focus");
|
|
777
|
+
}
|
|
778
|
+
switch (a.case) {
|
|
779
|
+
case "first":
|
|
780
|
+
g = p[0].children[0], _ = 0;
|
|
781
|
+
break;
|
|
782
|
+
case "last":
|
|
783
|
+
g = p[E].children[0], _ = E;
|
|
784
|
+
break;
|
|
785
|
+
case "next":
|
|
786
|
+
_ = _ === E ? 0 : _ + 1, g = p[_].children[0];
|
|
787
|
+
break;
|
|
788
|
+
case "previous":
|
|
789
|
+
_ = _ === 0 ? E : _ - 1, g = p[_].children[0];
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
d.setAttribute("aria-activedescendant", g.id), p[_].children[0].classList.add("sg-dropdown-item-visual-focus");
|
|
793
|
+
} else
|
|
794
|
+
document.getElementById(i + "-menu").setAttribute("aria-activedescendant", "");
|
|
795
|
+
}, [i, c, a]);
|
|
796
|
+
const h = (d) => {
|
|
797
|
+
const p = d.target;
|
|
798
|
+
p.classList.contains("sg-dropdown-item-visual-focus") || (document.querySelector(".sg-dropdown-item-visual-focus").classList.remove("sg-dropdown-item-visual-focus"), p.classList.add("sg-dropdown-item-visual-focus"));
|
|
799
|
+
};
|
|
800
|
+
return L(() => {
|
|
801
|
+
const d = document.getElementById(i + "-menu");
|
|
802
|
+
for (let p of d.children)
|
|
803
|
+
p.addEventListener("mouseover", h, !0);
|
|
804
|
+
return function() {
|
|
805
|
+
for (let E of d.children)
|
|
806
|
+
E.removeEventListener("mouseover", h, !0);
|
|
807
|
+
};
|
|
808
|
+
}, []), /* @__PURE__ */ f.jsx(
|
|
809
|
+
"ul",
|
|
810
|
+
{
|
|
811
|
+
id: i + "-menu",
|
|
812
|
+
role: "menu",
|
|
813
|
+
tabIndex: "-1",
|
|
814
|
+
"aria-labelledby": i,
|
|
815
|
+
"aria-activedescendant": a,
|
|
816
|
+
ref: s,
|
|
817
|
+
className: `sg-dropdown-list${t ? " " + t : ""}${c ? " show" : ""}`,
|
|
818
|
+
style: l,
|
|
819
|
+
...n,
|
|
820
|
+
children: e
|
|
821
|
+
}
|
|
822
|
+
);
|
|
823
|
+
};
|
|
824
|
+
q.Menu = y(zr);
|
|
825
|
+
const Br = ({ children: e, as: t = "button", className: r, ...n }, s) => {
|
|
826
|
+
const i = t;
|
|
827
|
+
return /* @__PURE__ */ f.jsx("li", { role: "none", children: /* @__PURE__ */ f.jsx(i, { role: "menuitem", tabIndex: "-1", ref: s, className: `sg-dropdown-item${r ? " " + r : ""}`, ...n, children: e }) });
|
|
828
|
+
};
|
|
829
|
+
q.Item = y(Br);
|
|
830
|
+
const Wr = ({ className: e = "", ...t }, r) => /* @__PURE__ */ f.jsx("hr", { className: `.sg-dropdown-divider${e}`, ...t });
|
|
831
|
+
q.Divider = y(Wr);
|
|
832
|
+
const ve = he(!1), Lr = ({ children: e, value: t }) => /* @__PURE__ */ f.jsx(ve.Provider, { value: t, children: e }), ie = y(({ children: e, ...t }, r) => /* @__PURE__ */ f.jsx("form", { ref: r, ...t, children: e })), Yr = ({ as: e = "input", className: t = "", plaintext: r = !1, id: n = "", type: s = "text", autoFocus: i = !1, ...c }, a) => {
|
|
833
|
+
let l = ["input", "textarea"].find((p) => p === e) ? e : "input";
|
|
834
|
+
const { controlId: v } = H(ve);
|
|
835
|
+
let h = v || n, d = (r ? "sg-form-control-plaintext" : "sg-form-control") + (t != "" ? " " + t : "") + (s == "color" ? " sg-form-control-color" : "");
|
|
836
|
+
return /* @__PURE__ */ f.jsx(l, { autoFocus: i, ref: a, id: h, type: s, className: d, ...c });
|
|
837
|
+
};
|
|
838
|
+
ie.Control = y(Yr);
|
|
839
|
+
const Vr = ({ children: e, className: t, id: r, ...n }, s) => {
|
|
840
|
+
const { controlId: i } = H(ve);
|
|
841
|
+
let c = i || r;
|
|
842
|
+
return /* @__PURE__ */ f.jsx("select", { ref: s, className: `sg-form-select${t ? " " + t : ""}`, id: c, ...n, children: e });
|
|
843
|
+
};
|
|
844
|
+
ie.Select = y(Vr);
|
|
845
|
+
const Ur = ({ children: e, className: t, controlId: r, ...n }, s) => {
|
|
846
|
+
const i = oe(() => ({ controlId: r }), [r]);
|
|
847
|
+
return /* @__PURE__ */ f.jsx("div", { ref: s, className: `sg-from-group${t ? " " + t : ""}`, ...n, children: /* @__PURE__ */ f.jsx(Lr, { value: i, children: e }) });
|
|
848
|
+
};
|
|
849
|
+
ie.Group = y(Ur);
|
|
850
|
+
const Hr = ({ children: e, className: t, htmlFor: r }, n) => {
|
|
851
|
+
const { controlId: s } = H(ve);
|
|
852
|
+
let i = r || s;
|
|
853
|
+
return /* @__PURE__ */ f.jsx("label", { ref: n, htmlFor: i, className: `sg-form-label${t ? " " + t : ""}`, children: e });
|
|
854
|
+
};
|
|
855
|
+
ie.Label = y(Hr);
|
|
856
|
+
const qr = ({
|
|
857
|
+
classNameContainer: e,
|
|
858
|
+
containerRef: t,
|
|
859
|
+
containerId: r,
|
|
860
|
+
style: n,
|
|
861
|
+
classNameLabel: s,
|
|
862
|
+
labelRef: i,
|
|
863
|
+
label: c,
|
|
864
|
+
labelId: a,
|
|
865
|
+
className: l,
|
|
866
|
+
type: v,
|
|
867
|
+
id: h,
|
|
868
|
+
controlId: d,
|
|
869
|
+
reverse: p = !1,
|
|
870
|
+
checkStyle: E,
|
|
871
|
+
...C
|
|
872
|
+
}, _) => {
|
|
873
|
+
let g = d || h, j = v === "switch" ? "checkbox" : v;
|
|
874
|
+
return /* @__PURE__ */ f.jsx("div", { ref: t, id: r, style: n, className: `sg-form-check${p ? "-reverse" : ""}${e ? " " + e : ""}${v === "switch" ? " sg-form-switch" : ""}`, children: p ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
875
|
+
/* @__PURE__ */ f.jsx("input", { ref: _, type: j, id: g, className: `sg-form-check-input${l ? " " + l : ""}`, ...C }),
|
|
876
|
+
/* @__PURE__ */ f.jsx("label", { ref: i, id: a, htmlFor: g, className: `sg-form-check-label${s ? " " + s : ""}`, children: c })
|
|
877
|
+
] }) : /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
878
|
+
/* @__PURE__ */ f.jsx("label", { ref: i, id: a, htmlFor: g, className: `sg-form-check-label${s ? " " + s : ""}`, children: c }),
|
|
879
|
+
/* @__PURE__ */ f.jsx("input", { ref: _, type: j, id: g, className: `sg-form-check-input${l ? " " + l : ""}`, style: E, ...C })
|
|
880
|
+
] }) });
|
|
881
|
+
};
|
|
882
|
+
ie.Check = y(qr);
|
|
883
|
+
const Kr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("small", { className: `sg-form-text${t ? " " + t : ""}`, children: e });
|
|
884
|
+
ie.Text = y(Kr);
|
|
885
|
+
const oo = y(({ children: e, label: t, controlId: r, ...n }, s) => {
|
|
886
|
+
const i = oe(() => ({ controlId: r }));
|
|
887
|
+
return /* @__PURE__ */ f.jsx(ve.Provider, { value: i, children: /* @__PURE__ */ f.jsxs("div", { className: "sg-form-floating", children: [
|
|
888
|
+
e,
|
|
889
|
+
/* @__PURE__ */ f.jsx("label", { ref: s, htmlFor: i.controlId, className: "sg-form-floating-label", ...n, children: t })
|
|
890
|
+
] }) });
|
|
891
|
+
}), Gr = y(({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-input-group${t ? " " + t : ""}`, ...r, children: e })), Xr = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("span", { ref: n, className: `sg-input-group-text${t ? " " + t : ""}`, ...r, children: e });
|
|
892
|
+
Gr.Text = y(Xr);
|
|
893
|
+
const Wt = he(!1), Jr = ({ children: e, value: t }) => /* @__PURE__ */ f.jsx(Wt.Provider, { value: t, children: e }), Zr = () => H(Wt), K = y(({
|
|
894
|
+
children: e,
|
|
895
|
+
centered: t = !1,
|
|
896
|
+
size: r = "md",
|
|
897
|
+
show: n,
|
|
898
|
+
backdrop: s = "static",
|
|
899
|
+
onHide: i = "none",
|
|
900
|
+
className: c,
|
|
901
|
+
id: a,
|
|
902
|
+
...l
|
|
903
|
+
}, v) => {
|
|
904
|
+
const [h, d] = B(!1);
|
|
905
|
+
L(() => {
|
|
906
|
+
d(n);
|
|
907
|
+
}, [n]);
|
|
908
|
+
const p = qe(null);
|
|
909
|
+
nn(p);
|
|
910
|
+
let E = typeof n == "boolean" && typeof i == "function" ? void 0 : { show: typeof n == "boolean", onHide: typeof i == "function" };
|
|
911
|
+
E && console.error(
|
|
912
|
+
E.show ? null : "The variable 'show' must be used and must be a boolean used to decide when to show the modal!",
|
|
913
|
+
E.onHide ? null : "The variable 'onHide' must be used and must be a function which is used to set 'show' as the modal gets closed!"
|
|
914
|
+
);
|
|
915
|
+
const C = () => {
|
|
916
|
+
i && i(), d(!1);
|
|
917
|
+
};
|
|
918
|
+
L(() => {
|
|
919
|
+
const g = p.current;
|
|
920
|
+
g && (h ? g.showModal() : g.close());
|
|
921
|
+
}, [h]);
|
|
922
|
+
let _ = `sg-modal-tag sg-modal-${r}`;
|
|
923
|
+
return c && (_ += " " + c), (s === "static" || s === "true") && (_ += " sg-modal-static"), h ? Bt(
|
|
924
|
+
/* @__PURE__ */ f.jsx("dialog", { ref: p, className: _, children: /* @__PURE__ */ f.jsx(Jr, { value: i, children: E ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
|
925
|
+
/* @__PURE__ */ f.jsx(K.Header, { closeButton: !0, children: /* @__PURE__ */ f.jsx(K.Title, { children: "An Error ocurred!" }) }),
|
|
926
|
+
/* @__PURE__ */ f.jsx(K.Body, { children: /* @__PURE__ */ f.jsxs("p", { children: [
|
|
927
|
+
E.show ? null : "The variable 'show' must be used and must be a boolean used to decide when to show the modal!",
|
|
928
|
+
E.onHide ? null : "The variable 'onHide' must be used and must be a function which is used to set 'show' as the modal gets closed!"
|
|
929
|
+
] }) }),
|
|
930
|
+
/* @__PURE__ */ f.jsx(K.Footer, { children: /* @__PURE__ */ f.jsx(Or, { variant: "danger", type: "button", onClick: C, children: "Close" }) })
|
|
931
|
+
] }) : e }) }),
|
|
932
|
+
document.body
|
|
933
|
+
) : null;
|
|
934
|
+
}), Qr = y(({ as: e = "", className: t = "", children: r, closeButton: n = !1, onClick: s = "none", ...i }, c) => {
|
|
935
|
+
let l = ["div", "span", "h1", "h2", "h3", "h4", "h5", "h6"].find((d) => d === e) ? e : "div";
|
|
936
|
+
const v = Zr(), h = (d) => {
|
|
937
|
+
s != "none" && s(d), v != "none" && v();
|
|
938
|
+
};
|
|
939
|
+
return /* @__PURE__ */ f.jsxs(l, { ref: c, className: `sg-modal-header ${t}`, ...i, children: [
|
|
940
|
+
r,
|
|
941
|
+
n ? /* @__PURE__ */ f.jsx(Ir, { variant: !0, onClick: h }) : null
|
|
942
|
+
] });
|
|
943
|
+
});
|
|
944
|
+
K.Header = Qr;
|
|
945
|
+
const en = ({ children: e, as: t = "h4", className: r, ...n }, s) => {
|
|
946
|
+
let c = ["div", "span", "h1", "h2", "h3", "h4", "h5", "h6"].find((a) => a === t) ? t : "h4";
|
|
947
|
+
return /* @__PURE__ */ f.jsx(c, { ref: s, className: `sg-modal-title ${r}`, ...n, children: e });
|
|
948
|
+
};
|
|
949
|
+
K.Title = y(en);
|
|
950
|
+
const tn = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-modal-body ${t}`, ...r, children: e });
|
|
951
|
+
K.Body = y(tn);
|
|
952
|
+
const rn = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-modal-footer ${t}`, ...r, children: e });
|
|
953
|
+
K.Footer = y(rn);
|
|
954
|
+
const nn = function(e) {
|
|
955
|
+
L(() => {
|
|
956
|
+
const t = (r) => {
|
|
957
|
+
const n = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])', s = e.current;
|
|
958
|
+
if (s) {
|
|
959
|
+
const i = s.querySelectorAll(n)[0], c = s.querySelectorAll(n), a = c[c.length - 1];
|
|
960
|
+
if (!(r.key === "Tab" || r.keyCode === 9))
|
|
961
|
+
return;
|
|
962
|
+
r.shiftKey ? document.activeElement === i && (a.focus(), r.preventDefault()) : document.activeElement === a && (i.focus(), r.preventDefault());
|
|
963
|
+
}
|
|
964
|
+
};
|
|
965
|
+
return document.addEventListener("keydown", t, !0), function() {
|
|
966
|
+
document.removeEventListener("keydown", t, !0);
|
|
967
|
+
};
|
|
968
|
+
}, [e]);
|
|
969
|
+
}, Lt = he(null), on = ({ children: e, value: t }) => /* @__PURE__ */ f.jsx(Lt.Provider, { value: t, children: e }), Yt = y(({ children: e, className: t, navbarPrefix: r = "sg-navbar-", ...n }, s) => {
|
|
970
|
+
const i = oe(() => r, [r]);
|
|
971
|
+
return /* @__PURE__ */ f.jsx("nav", { ref: s, className: `sg-navbar${t ? " " + t : ""}`, ...n, children: /* @__PURE__ */ f.jsx(on, { value: i, children: e }) });
|
|
972
|
+
}), sn = ({ children: e, className: t, href: r = "#", as: n = "a", ...s }, i) => {
|
|
973
|
+
const c = n || (r && n != "Link" ? "a" : "span");
|
|
974
|
+
return /* @__PURE__ */ f.jsx(c, { ref: i, href: r, className: `sg-navbar-brand${t ? " " + t : ""}`, ...s, children: e });
|
|
975
|
+
};
|
|
976
|
+
Yt.Brand = y(sn);
|
|
977
|
+
const an = ({ children: e, className: t, as: r = "span", ...n }, s) => {
|
|
978
|
+
const i = r;
|
|
979
|
+
return /* @__PURE__ */ f.jsx(i, { ref: s, className: `sg-navbar-text${t ? " " + t : ""}`, ...n, children: e });
|
|
980
|
+
};
|
|
981
|
+
Yt.Text = y(an);
|
|
982
|
+
const Vt = y(({ children: e, className: t, fill: r, justify: n, as: s = "ul", ...i }, c) => {
|
|
983
|
+
const a = s;
|
|
984
|
+
let l = "";
|
|
985
|
+
return Lt && (l = "sg-navbar-"), /* @__PURE__ */ f.jsx(a, { role: "menubar", ref: c, className: `${t} ${l}nav`, ...i, children: e });
|
|
986
|
+
}), cn = ({ children: e, className: t, as: r = "li", ...n }, s) => {
|
|
987
|
+
const i = r;
|
|
988
|
+
return /* @__PURE__ */ f.jsx(i, { role: "none", ref: s, className: `sg-nav-item${t ? " " + t : ""}`, ...n, children: e });
|
|
989
|
+
};
|
|
990
|
+
Vt.Item = y(cn);
|
|
991
|
+
const un = ({ children: e, className: t, as: r = "a", ...n }, s) => {
|
|
992
|
+
const i = r;
|
|
993
|
+
return /* @__PURE__ */ f.jsx(i, { role: "menuitem", ref: s, className: `sg-nav-link${t ? " " + t : ""}`, ...n, children: e });
|
|
994
|
+
};
|
|
995
|
+
Vt.Link = y(un);
|
|
996
|
+
function ln(e) {
|
|
997
|
+
if (typeof e != "object" || e === null)
|
|
998
|
+
return !1;
|
|
999
|
+
let t = e;
|
|
1000
|
+
for (; Object.getPrototypeOf(t) !== null; )
|
|
1001
|
+
t = Object.getPrototypeOf(t);
|
|
1002
|
+
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
1003
|
+
}
|
|
1004
|
+
function fn(e) {
|
|
1005
|
+
return ln(e) && "type" in e && typeof e.type == "string";
|
|
1006
|
+
}
|
|
1007
|
+
var Ut = Symbol.for("immer-nothing"), kt = Symbol.for("immer-draftable"), F = Symbol.for("immer-state"), dn = process.env.NODE_ENV !== "production" ? [
|
|
1008
|
+
// All error codes, starting by 0:
|
|
1009
|
+
function(e) {
|
|
1010
|
+
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
1011
|
+
},
|
|
1012
|
+
function(e) {
|
|
1013
|
+
return `produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`;
|
|
1014
|
+
},
|
|
1015
|
+
"This object has been frozen and should not be mutated",
|
|
1016
|
+
function(e) {
|
|
1017
|
+
return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + e;
|
|
1018
|
+
},
|
|
1019
|
+
"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",
|
|
1020
|
+
"Immer forbids circular references",
|
|
1021
|
+
"The first or second argument to `produce` must be a function",
|
|
1022
|
+
"The third argument to `produce` must be a function or undefined",
|
|
1023
|
+
"First argument to `createDraft` must be a plain object, an array, or an immerable object",
|
|
1024
|
+
"First argument to `finishDraft` must be a draft returned by `createDraft`",
|
|
1025
|
+
function(e) {
|
|
1026
|
+
return `'current' expects a draft, got: ${e}`;
|
|
1027
|
+
},
|
|
1028
|
+
"Object.defineProperty() cannot be used on an Immer draft",
|
|
1029
|
+
"Object.setPrototypeOf() cannot be used on an Immer draft",
|
|
1030
|
+
"Immer only supports deleting array indices",
|
|
1031
|
+
"Immer only supports setting array indices and the 'length' property",
|
|
1032
|
+
function(e) {
|
|
1033
|
+
return `'original' expects a draft, got: ${e}`;
|
|
1034
|
+
}
|
|
1035
|
+
// Note: if more errors are added, the errorOffset in Patches.ts should be increased
|
|
1036
|
+
// See Patches.ts for additional errors
|
|
1037
|
+
] : [];
|
|
1038
|
+
function D(e, ...t) {
|
|
1039
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1040
|
+
const r = dn[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
1041
|
+
throw new Error(`[Immer] ${n}`);
|
|
1042
|
+
}
|
|
1043
|
+
throw new Error(
|
|
1044
|
+
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
1045
|
+
);
|
|
1046
|
+
}
|
|
1047
|
+
var ne = Object.getPrototypeOf;
|
|
1048
|
+
function Z(e) {
|
|
1049
|
+
return !!e && !!e[F];
|
|
1050
|
+
}
|
|
1051
|
+
function Q(e) {
|
|
1052
|
+
var t;
|
|
1053
|
+
return e ? Ht(e) || Array.isArray(e) || !!e[kt] || !!((t = e.constructor) != null && t[kt]) || Oe(e) || Te(e) : !1;
|
|
1054
|
+
}
|
|
1055
|
+
var pn = Object.prototype.constructor.toString();
|
|
1056
|
+
function Ht(e) {
|
|
1057
|
+
if (!e || typeof e != "object")
|
|
1058
|
+
return !1;
|
|
1059
|
+
const t = ne(e);
|
|
1060
|
+
if (t === null)
|
|
1061
|
+
return !0;
|
|
1062
|
+
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
1063
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === pn;
|
|
1064
|
+
}
|
|
1065
|
+
function fe(e, t) {
|
|
1066
|
+
Re(e) === 0 ? Object.entries(e).forEach(([r, n]) => {
|
|
1067
|
+
t(r, n, e);
|
|
1068
|
+
}) : e.forEach((r, n) => t(n, r, e));
|
|
1069
|
+
}
|
|
1070
|
+
function Re(e) {
|
|
1071
|
+
const t = e[F];
|
|
1072
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : Oe(e) ? 2 : Te(e) ? 3 : 0;
|
|
1073
|
+
}
|
|
1074
|
+
function Ge(e, t) {
|
|
1075
|
+
return Re(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
1076
|
+
}
|
|
1077
|
+
function qt(e, t, r) {
|
|
1078
|
+
const n = Re(e);
|
|
1079
|
+
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
1080
|
+
}
|
|
1081
|
+
function mn(e, t) {
|
|
1082
|
+
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
1083
|
+
}
|
|
1084
|
+
function Oe(e) {
|
|
1085
|
+
return e instanceof Map;
|
|
1086
|
+
}
|
|
1087
|
+
function Te(e) {
|
|
1088
|
+
return e instanceof Set;
|
|
1089
|
+
}
|
|
1090
|
+
function J(e) {
|
|
1091
|
+
return e.copy_ || e.base_;
|
|
1092
|
+
}
|
|
1093
|
+
function Xe(e, t) {
|
|
1094
|
+
if (Oe(e))
|
|
1095
|
+
return new Map(e);
|
|
1096
|
+
if (Te(e))
|
|
1097
|
+
return new Set(e);
|
|
1098
|
+
if (Array.isArray(e))
|
|
1099
|
+
return Array.prototype.slice.call(e);
|
|
1100
|
+
if (!t && Ht(e))
|
|
1101
|
+
return ne(e) ? { ...e } : Object.assign(/* @__PURE__ */ Object.create(null), e);
|
|
1102
|
+
const r = Object.getOwnPropertyDescriptors(e);
|
|
1103
|
+
delete r[F];
|
|
1104
|
+
let n = Reflect.ownKeys(r);
|
|
1105
|
+
for (let s = 0; s < n.length; s++) {
|
|
1106
|
+
const i = n[s], c = r[i];
|
|
1107
|
+
c.writable === !1 && (c.writable = !0, c.configurable = !0), (c.get || c.set) && (r[i] = {
|
|
1108
|
+
configurable: !0,
|
|
1109
|
+
writable: !0,
|
|
1110
|
+
// could live with !!desc.set as well here...
|
|
1111
|
+
enumerable: c.enumerable,
|
|
1112
|
+
value: e[i]
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
return Object.create(ne(e), r);
|
|
1116
|
+
}
|
|
1117
|
+
function tt(e, t = !1) {
|
|
1118
|
+
return ke(e) || Z(e) || !Q(e) || (Re(e) > 1 && (e.set = e.add = e.clear = e.delete = hn), Object.freeze(e), t && fe(e, (r, n) => tt(n, !0))), e;
|
|
1119
|
+
}
|
|
1120
|
+
function hn() {
|
|
1121
|
+
D(2);
|
|
1122
|
+
}
|
|
1123
|
+
function ke(e) {
|
|
1124
|
+
return Object.isFrozen(e);
|
|
1125
|
+
}
|
|
1126
|
+
var vn = {};
|
|
1127
|
+
function ee(e) {
|
|
1128
|
+
const t = vn[e];
|
|
1129
|
+
return t || D(0, e), t;
|
|
1130
|
+
}
|
|
1131
|
+
var de;
|
|
1132
|
+
function Kt() {
|
|
1133
|
+
return de;
|
|
1134
|
+
}
|
|
1135
|
+
function gn(e, t) {
|
|
1136
|
+
return {
|
|
1137
|
+
drafts_: [],
|
|
1138
|
+
parent_: e,
|
|
1139
|
+
immer_: t,
|
|
1140
|
+
// Whenever the modified draft contains a draft from another scope, we
|
|
1141
|
+
// need to prevent auto-freezing so the unowned draft can be finalized.
|
|
1142
|
+
canAutoFreeze_: !0,
|
|
1143
|
+
unfinalizedDrafts_: 0
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
function $t(e, t) {
|
|
1147
|
+
t && (ee("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
1148
|
+
}
|
|
1149
|
+
function Je(e) {
|
|
1150
|
+
Ze(e), e.drafts_.forEach(yn), e.drafts_ = null;
|
|
1151
|
+
}
|
|
1152
|
+
function Ze(e) {
|
|
1153
|
+
e === de && (de = e.parent_);
|
|
1154
|
+
}
|
|
1155
|
+
function Dt(e) {
|
|
1156
|
+
return de = gn(de, e);
|
|
1157
|
+
}
|
|
1158
|
+
function yn(e) {
|
|
1159
|
+
const t = e[F];
|
|
1160
|
+
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
1161
|
+
}
|
|
1162
|
+
function Ft(e, t) {
|
|
1163
|
+
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
1164
|
+
const r = t.drafts_[0];
|
|
1165
|
+
return e !== void 0 && e !== r ? (r[F].modified_ && (Je(t), D(4)), Q(e) && (e = je(t, e), t.parent_ || Se(t, e)), t.patches_ && ee("Patches").generateReplacementPatches_(
|
|
1166
|
+
r[F].base_,
|
|
1167
|
+
e,
|
|
1168
|
+
t.patches_,
|
|
1169
|
+
t.inversePatches_
|
|
1170
|
+
)) : e = je(t, r, []), Je(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Ut ? e : void 0;
|
|
1171
|
+
}
|
|
1172
|
+
function je(e, t, r) {
|
|
1173
|
+
if (ke(t))
|
|
1174
|
+
return t;
|
|
1175
|
+
const n = t[F];
|
|
1176
|
+
if (!n)
|
|
1177
|
+
return fe(
|
|
1178
|
+
t,
|
|
1179
|
+
(s, i) => It(e, n, t, s, i, r)
|
|
1180
|
+
), t;
|
|
1181
|
+
if (n.scope_ !== e)
|
|
1182
|
+
return t;
|
|
1183
|
+
if (!n.modified_)
|
|
1184
|
+
return Se(e, n.base_, !0), n.base_;
|
|
1185
|
+
if (!n.finalized_) {
|
|
1186
|
+
n.finalized_ = !0, n.scope_.unfinalizedDrafts_--;
|
|
1187
|
+
const s = n.copy_;
|
|
1188
|
+
let i = s, c = !1;
|
|
1189
|
+
n.type_ === 3 && (i = new Set(s), s.clear(), c = !0), fe(
|
|
1190
|
+
i,
|
|
1191
|
+
(a, l) => It(e, n, s, a, l, r, c)
|
|
1192
|
+
), Se(e, s, !1), r && e.patches_ && ee("Patches").generatePatches_(
|
|
1193
|
+
n,
|
|
1194
|
+
r,
|
|
1195
|
+
e.patches_,
|
|
1196
|
+
e.inversePatches_
|
|
1197
|
+
);
|
|
1198
|
+
}
|
|
1199
|
+
return n.copy_;
|
|
1200
|
+
}
|
|
1201
|
+
function It(e, t, r, n, s, i, c) {
|
|
1202
|
+
if (process.env.NODE_ENV !== "production" && s === r && D(5), Z(s)) {
|
|
1203
|
+
const a = i && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
1204
|
+
!Ge(t.assigned_, n) ? i.concat(n) : void 0, l = je(e, s, a);
|
|
1205
|
+
if (qt(r, n, l), Z(l))
|
|
1206
|
+
e.canAutoFreeze_ = !1;
|
|
1207
|
+
else
|
|
1208
|
+
return;
|
|
1209
|
+
} else
|
|
1210
|
+
c && r.add(s);
|
|
1211
|
+
if (Q(s) && !ke(s)) {
|
|
1212
|
+
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
1213
|
+
return;
|
|
1214
|
+
je(e, s), (!t || !t.scope_.parent_) && Se(e, s);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
function Se(e, t, r = !1) {
|
|
1218
|
+
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && tt(t, r);
|
|
1219
|
+
}
|
|
1220
|
+
function bn(e, t) {
|
|
1221
|
+
const r = Array.isArray(e), n = {
|
|
1222
|
+
type_: r ? 1 : 0,
|
|
1223
|
+
// Track which produce call this is associated with.
|
|
1224
|
+
scope_: t ? t.scope_ : Kt(),
|
|
1225
|
+
// True for both shallow and deep changes.
|
|
1226
|
+
modified_: !1,
|
|
1227
|
+
// Used during finalization.
|
|
1228
|
+
finalized_: !1,
|
|
1229
|
+
// Track which properties have been assigned (true) or deleted (false).
|
|
1230
|
+
assigned_: {},
|
|
1231
|
+
// The parent draft state.
|
|
1232
|
+
parent_: t,
|
|
1233
|
+
// The base state.
|
|
1234
|
+
base_: e,
|
|
1235
|
+
// The base proxy.
|
|
1236
|
+
draft_: null,
|
|
1237
|
+
// set below
|
|
1238
|
+
// The base copy with any updated values.
|
|
1239
|
+
copy_: null,
|
|
1240
|
+
// Called by the `produce` function.
|
|
1241
|
+
revoke_: null,
|
|
1242
|
+
isManual_: !1
|
|
1243
|
+
};
|
|
1244
|
+
let s = n, i = rt;
|
|
1245
|
+
r && (s = [n], i = pe);
|
|
1246
|
+
const { revoke: c, proxy: a } = Proxy.revocable(s, i);
|
|
1247
|
+
return n.draft_ = a, n.revoke_ = c, a;
|
|
1248
|
+
}
|
|
1249
|
+
var rt = {
|
|
1250
|
+
get(e, t) {
|
|
1251
|
+
if (t === F)
|
|
1252
|
+
return e;
|
|
1253
|
+
const r = J(e);
|
|
1254
|
+
if (!Ge(r, t))
|
|
1255
|
+
return _n(e, r, t);
|
|
1256
|
+
const n = r[t];
|
|
1257
|
+
return e.finalized_ || !Q(n) ? n : n === Ue(e.base_, t) ? (He(e), e.copy_[t] = et(n, e)) : n;
|
|
1258
|
+
},
|
|
1259
|
+
has(e, t) {
|
|
1260
|
+
return t in J(e);
|
|
1261
|
+
},
|
|
1262
|
+
ownKeys(e) {
|
|
1263
|
+
return Reflect.ownKeys(J(e));
|
|
1264
|
+
},
|
|
1265
|
+
set(e, t, r) {
|
|
1266
|
+
const n = Gt(J(e), t);
|
|
1267
|
+
if (n != null && n.set)
|
|
1268
|
+
return n.set.call(e.draft_, r), !0;
|
|
1269
|
+
if (!e.modified_) {
|
|
1270
|
+
const s = Ue(J(e), t), i = s == null ? void 0 : s[F];
|
|
1271
|
+
if (i && i.base_ === r)
|
|
1272
|
+
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
1273
|
+
if (mn(r, s) && (r !== void 0 || Ge(e.base_, t)))
|
|
1274
|
+
return !0;
|
|
1275
|
+
He(e), Qe(e);
|
|
1276
|
+
}
|
|
1277
|
+
return e.copy_[t] === r && // special case: handle new props with value 'undefined'
|
|
1278
|
+
(r !== void 0 || t in e.copy_) || // special case: NaN
|
|
1279
|
+
Number.isNaN(r) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = r, e.assigned_[t] = !0), !0;
|
|
1280
|
+
},
|
|
1281
|
+
deleteProperty(e, t) {
|
|
1282
|
+
return Ue(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, He(e), Qe(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
1283
|
+
},
|
|
1284
|
+
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
1285
|
+
// the same guarantee in ES5 mode.
|
|
1286
|
+
getOwnPropertyDescriptor(e, t) {
|
|
1287
|
+
const r = J(e), n = Reflect.getOwnPropertyDescriptor(r, t);
|
|
1288
|
+
return n && {
|
|
1289
|
+
writable: !0,
|
|
1290
|
+
configurable: e.type_ !== 1 || t !== "length",
|
|
1291
|
+
enumerable: n.enumerable,
|
|
1292
|
+
value: r[t]
|
|
1293
|
+
};
|
|
1294
|
+
},
|
|
1295
|
+
defineProperty() {
|
|
1296
|
+
D(11);
|
|
1297
|
+
},
|
|
1298
|
+
getPrototypeOf(e) {
|
|
1299
|
+
return ne(e.base_);
|
|
1300
|
+
},
|
|
1301
|
+
setPrototypeOf() {
|
|
1302
|
+
D(12);
|
|
1303
|
+
}
|
|
1304
|
+
}, pe = {};
|
|
1305
|
+
fe(rt, (e, t) => {
|
|
1306
|
+
pe[e] = function() {
|
|
1307
|
+
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
1308
|
+
};
|
|
1309
|
+
});
|
|
1310
|
+
pe.deleteProperty = function(e, t) {
|
|
1311
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && D(13), pe.set.call(this, e, t, void 0);
|
|
1312
|
+
};
|
|
1313
|
+
pe.set = function(e, t, r) {
|
|
1314
|
+
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && D(14), rt.set.call(this, e[0], t, r, e[0]);
|
|
1315
|
+
};
|
|
1316
|
+
function Ue(e, t) {
|
|
1317
|
+
const r = e[F];
|
|
1318
|
+
return (r ? J(r) : e)[t];
|
|
1319
|
+
}
|
|
1320
|
+
function _n(e, t, r) {
|
|
1321
|
+
var s;
|
|
1322
|
+
const n = Gt(t, r);
|
|
1323
|
+
return n ? "value" in n ? n.value : (
|
|
1324
|
+
// This is a very special case, if the prop is a getter defined by the
|
|
1325
|
+
// prototype, we should invoke it with the draft as context!
|
|
1326
|
+
(s = n.get) == null ? void 0 : s.call(e.draft_)
|
|
1327
|
+
) : void 0;
|
|
1328
|
+
}
|
|
1329
|
+
function Gt(e, t) {
|
|
1330
|
+
if (!(t in e))
|
|
1331
|
+
return;
|
|
1332
|
+
let r = ne(e);
|
|
1333
|
+
for (; r; ) {
|
|
1334
|
+
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
1335
|
+
if (n)
|
|
1336
|
+
return n;
|
|
1337
|
+
r = ne(r);
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
function Qe(e) {
|
|
1341
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && Qe(e.parent_));
|
|
1342
|
+
}
|
|
1343
|
+
function He(e) {
|
|
1344
|
+
e.copy_ || (e.copy_ = Xe(
|
|
1345
|
+
e.base_,
|
|
1346
|
+
e.scope_.immer_.useStrictShallowCopy_
|
|
1347
|
+
));
|
|
1348
|
+
}
|
|
1349
|
+
var wn = class {
|
|
1350
|
+
constructor(e) {
|
|
1351
|
+
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
1352
|
+
if (typeof t == "function" && typeof r != "function") {
|
|
1353
|
+
const i = r;
|
|
1354
|
+
r = t;
|
|
1355
|
+
const c = this;
|
|
1356
|
+
return function(l = i, ...v) {
|
|
1357
|
+
return c.produce(l, (h) => r.call(this, h, ...v));
|
|
1358
|
+
};
|
|
1359
|
+
}
|
|
1360
|
+
typeof r != "function" && D(6), n !== void 0 && typeof n != "function" && D(7);
|
|
1361
|
+
let s;
|
|
1362
|
+
if (Q(t)) {
|
|
1363
|
+
const i = Dt(this), c = et(t, void 0);
|
|
1364
|
+
let a = !0;
|
|
1365
|
+
try {
|
|
1366
|
+
s = r(c), a = !1;
|
|
1367
|
+
} finally {
|
|
1368
|
+
a ? Je(i) : Ze(i);
|
|
1369
|
+
}
|
|
1370
|
+
return $t(i, n), Ft(s, i);
|
|
1371
|
+
} else if (!t || typeof t != "object") {
|
|
1372
|
+
if (s = r(t), s === void 0 && (s = t), s === Ut && (s = void 0), this.autoFreeze_ && tt(s, !0), n) {
|
|
1373
|
+
const i = [], c = [];
|
|
1374
|
+
ee("Patches").generateReplacementPatches_(t, s, i, c), n(i, c);
|
|
1375
|
+
}
|
|
1376
|
+
return s;
|
|
1377
|
+
} else
|
|
1378
|
+
D(1, t);
|
|
1379
|
+
}, this.produceWithPatches = (t, r) => {
|
|
1380
|
+
if (typeof t == "function")
|
|
1381
|
+
return (c, ...a) => this.produceWithPatches(c, (l) => t(l, ...a));
|
|
1382
|
+
let n, s;
|
|
1383
|
+
return [this.produce(t, r, (c, a) => {
|
|
1384
|
+
n = c, s = a;
|
|
1385
|
+
}), n, s];
|
|
1386
|
+
}, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
|
|
1387
|
+
}
|
|
1388
|
+
createDraft(e) {
|
|
1389
|
+
Q(e) || D(8), Z(e) && (e = Xt(e));
|
|
1390
|
+
const t = Dt(this), r = et(e, void 0);
|
|
1391
|
+
return r[F].isManual_ = !0, Ze(t), r;
|
|
1392
|
+
}
|
|
1393
|
+
finishDraft(e, t) {
|
|
1394
|
+
const r = e && e[F];
|
|
1395
|
+
(!r || !r.isManual_) && D(9);
|
|
1396
|
+
const { scope_: n } = r;
|
|
1397
|
+
return $t(n, t), Ft(void 0, n);
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* Pass true to automatically freeze all copies created by Immer.
|
|
1401
|
+
*
|
|
1402
|
+
* By default, auto-freezing is enabled.
|
|
1403
|
+
*/
|
|
1404
|
+
setAutoFreeze(e) {
|
|
1405
|
+
this.autoFreeze_ = e;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Pass true to enable strict shallow copy.
|
|
1409
|
+
*
|
|
1410
|
+
* By default, immer does not copy the object descriptors such as getter, setter and non-enumrable properties.
|
|
1411
|
+
*/
|
|
1412
|
+
setUseStrictShallowCopy(e) {
|
|
1413
|
+
this.useStrictShallowCopy_ = e;
|
|
1414
|
+
}
|
|
1415
|
+
applyPatches(e, t) {
|
|
1416
|
+
let r;
|
|
1417
|
+
for (r = t.length - 1; r >= 0; r--) {
|
|
1418
|
+
const s = t[r];
|
|
1419
|
+
if (s.path.length === 0 && s.op === "replace") {
|
|
1420
|
+
e = s.value;
|
|
1421
|
+
break;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
r > -1 && (t = t.slice(r + 1));
|
|
1425
|
+
const n = ee("Patches").applyPatches_;
|
|
1426
|
+
return Z(e) ? n(e, t) : this.produce(
|
|
1427
|
+
e,
|
|
1428
|
+
(s) => n(s, t)
|
|
1429
|
+
);
|
|
1430
|
+
}
|
|
1431
|
+
};
|
|
1432
|
+
function et(e, t) {
|
|
1433
|
+
const r = Oe(e) ? ee("MapSet").proxyMap_(e, t) : Te(e) ? ee("MapSet").proxySet_(e, t) : bn(e, t);
|
|
1434
|
+
return (t ? t.scope_ : Kt()).drafts_.push(r), r;
|
|
1435
|
+
}
|
|
1436
|
+
function Xt(e) {
|
|
1437
|
+
return Z(e) || D(10, e), Jt(e);
|
|
1438
|
+
}
|
|
1439
|
+
function Jt(e) {
|
|
1440
|
+
if (!Q(e) || ke(e))
|
|
1441
|
+
return e;
|
|
1442
|
+
const t = e[F];
|
|
1443
|
+
let r;
|
|
1444
|
+
if (t) {
|
|
1445
|
+
if (!t.modified_)
|
|
1446
|
+
return t.base_;
|
|
1447
|
+
t.finalized_ = !0, r = Xe(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
1448
|
+
} else
|
|
1449
|
+
r = Xe(e, !0);
|
|
1450
|
+
return fe(r, (n, s) => {
|
|
1451
|
+
qt(r, n, Jt(s));
|
|
1452
|
+
}), t && (t.finalized_ = !1), r;
|
|
1453
|
+
}
|
|
1454
|
+
var I = new wn();
|
|
1455
|
+
I.produce;
|
|
1456
|
+
I.produceWithPatches.bind(
|
|
1457
|
+
I
|
|
1458
|
+
);
|
|
1459
|
+
I.setAutoFreeze.bind(I);
|
|
1460
|
+
I.setUseStrictShallowCopy.bind(I);
|
|
1461
|
+
I.applyPatches.bind(I);
|
|
1462
|
+
I.createDraft.bind(I);
|
|
1463
|
+
I.finishDraft.bind(I);
|
|
1464
|
+
var En = (e, t, r) => {
|
|
1465
|
+
if (t.length === 1 && t[0] === r) {
|
|
1466
|
+
let n = !1;
|
|
1467
|
+
try {
|
|
1468
|
+
const s = {};
|
|
1469
|
+
e(s) === s && (n = !0);
|
|
1470
|
+
} catch {
|
|
1471
|
+
}
|
|
1472
|
+
if (n) {
|
|
1473
|
+
let s;
|
|
1474
|
+
try {
|
|
1475
|
+
throw new Error();
|
|
1476
|
+
} catch (i) {
|
|
1477
|
+
({ stack: s } = i);
|
|
1478
|
+
}
|
|
1479
|
+
console.warn(
|
|
1480
|
+
`The result function returned its own inputs without modification. e.g
|
|
1481
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
1482
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
1483
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,
|
|
1484
|
+
{ stack: s }
|
|
1485
|
+
);
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
}, xn = (e, t, r) => {
|
|
1489
|
+
const { memoize: n, memoizeOptions: s } = t, { inputSelectorResults: i, inputSelectorResultsCopy: c } = e, a = n(() => ({}), ...s);
|
|
1490
|
+
if (!(a.apply(null, i) === a.apply(null, c))) {
|
|
1491
|
+
let v;
|
|
1492
|
+
try {
|
|
1493
|
+
throw new Error();
|
|
1494
|
+
} catch (h) {
|
|
1495
|
+
({ stack: v } = h);
|
|
1496
|
+
}
|
|
1497
|
+
console.warn(
|
|
1498
|
+
`An input selector returned a different result when passed same arguments.
|
|
1499
|
+
This means your output selector will likely run more frequently than intended.
|
|
1500
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
1501
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,
|
|
1502
|
+
{
|
|
1503
|
+
arguments: r,
|
|
1504
|
+
firstInputs: i,
|
|
1505
|
+
secondInputs: c,
|
|
1506
|
+
stack: v
|
|
1507
|
+
}
|
|
1508
|
+
);
|
|
1509
|
+
}
|
|
1510
|
+
}, Cn = {
|
|
1511
|
+
inputStabilityCheck: "once",
|
|
1512
|
+
identityFunctionCheck: "once"
|
|
1513
|
+
};
|
|
1514
|
+
function jn(e, t = `expected a function, instead received ${typeof e}`) {
|
|
1515
|
+
if (typeof e != "function")
|
|
1516
|
+
throw new TypeError(t);
|
|
1517
|
+
}
|
|
1518
|
+
function Sn(e, t = `expected an object, instead received ${typeof e}`) {
|
|
1519
|
+
if (typeof e != "object")
|
|
1520
|
+
throw new TypeError(t);
|
|
1521
|
+
}
|
|
1522
|
+
function Pn(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
1523
|
+
if (!e.every((r) => typeof r == "function")) {
|
|
1524
|
+
const r = e.map(
|
|
1525
|
+
(n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
|
|
1526
|
+
).join(", ");
|
|
1527
|
+
throw new TypeError(`${t}[${r}]`);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
var At = (e) => Array.isArray(e) ? e : [e];
|
|
1531
|
+
function Rn(e) {
|
|
1532
|
+
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
1533
|
+
return Pn(
|
|
1534
|
+
t,
|
|
1535
|
+
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
1536
|
+
), t;
|
|
1537
|
+
}
|
|
1538
|
+
function Nt(e, t) {
|
|
1539
|
+
const r = [], { length: n } = e;
|
|
1540
|
+
for (let s = 0; s < n; s++)
|
|
1541
|
+
r.push(e[s].apply(null, t));
|
|
1542
|
+
return r;
|
|
1543
|
+
}
|
|
1544
|
+
var On = (e, t) => {
|
|
1545
|
+
const { identityFunctionCheck: r, inputStabilityCheck: n } = {
|
|
1546
|
+
...Cn,
|
|
1547
|
+
...t
|
|
1548
|
+
};
|
|
1549
|
+
return {
|
|
1550
|
+
identityFunctionCheck: {
|
|
1551
|
+
shouldRun: r === "always" || r === "once" && e,
|
|
1552
|
+
run: En
|
|
1553
|
+
},
|
|
1554
|
+
inputStabilityCheck: {
|
|
1555
|
+
shouldRun: n === "always" || n === "once" && e,
|
|
1556
|
+
run: xn
|
|
1557
|
+
}
|
|
1558
|
+
};
|
|
1559
|
+
}, Tn = class {
|
|
1560
|
+
constructor(e) {
|
|
1561
|
+
this.value = e;
|
|
1562
|
+
}
|
|
1563
|
+
deref() {
|
|
1564
|
+
return this.value;
|
|
1565
|
+
}
|
|
1566
|
+
}, kn = typeof WeakRef < "u" ? WeakRef : Tn, $n = 0, Mt = 1;
|
|
1567
|
+
function Ce() {
|
|
1568
|
+
return {
|
|
1569
|
+
s: $n,
|
|
1570
|
+
v: void 0,
|
|
1571
|
+
o: null,
|
|
1572
|
+
p: null
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
function nt(e, t = {}) {
|
|
1576
|
+
let r = Ce();
|
|
1577
|
+
const { resultEqualityCheck: n } = t;
|
|
1578
|
+
let s, i = 0;
|
|
1579
|
+
function c() {
|
|
1580
|
+
var d;
|
|
1581
|
+
let a = r;
|
|
1582
|
+
const { length: l } = arguments;
|
|
1583
|
+
for (let p = 0, E = l; p < E; p++) {
|
|
1584
|
+
const C = arguments[p];
|
|
1585
|
+
if (typeof C == "function" || typeof C == "object" && C !== null) {
|
|
1586
|
+
let _ = a.o;
|
|
1587
|
+
_ === null && (a.o = _ = /* @__PURE__ */ new WeakMap());
|
|
1588
|
+
const g = _.get(C);
|
|
1589
|
+
g === void 0 ? (a = Ce(), _.set(C, a)) : a = g;
|
|
1590
|
+
} else {
|
|
1591
|
+
let _ = a.p;
|
|
1592
|
+
_ === null && (a.p = _ = /* @__PURE__ */ new Map());
|
|
1593
|
+
const g = _.get(C);
|
|
1594
|
+
g === void 0 ? (a = Ce(), _.set(C, a)) : a = g;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
const v = a;
|
|
1598
|
+
let h;
|
|
1599
|
+
if (a.s === Mt ? h = a.v : (h = e.apply(null, arguments), i++), v.s = Mt, n) {
|
|
1600
|
+
const p = ((d = s == null ? void 0 : s.deref) == null ? void 0 : d.call(s)) ?? s;
|
|
1601
|
+
p != null && n(p, h) && (h = p, i !== 0 && i--), s = typeof h == "object" && h !== null || typeof h == "function" ? new kn(h) : h;
|
|
1602
|
+
}
|
|
1603
|
+
return v.v = h, h;
|
|
1604
|
+
}
|
|
1605
|
+
return c.clearCache = () => {
|
|
1606
|
+
r = Ce(), c.resetResultsCount();
|
|
1607
|
+
}, c.resultsCount = () => i, c.resetResultsCount = () => {
|
|
1608
|
+
i = 0;
|
|
1609
|
+
}, c;
|
|
1610
|
+
}
|
|
1611
|
+
function Zt(e, ...t) {
|
|
1612
|
+
const r = typeof e == "function" ? {
|
|
1613
|
+
memoize: e,
|
|
1614
|
+
memoizeOptions: t
|
|
1615
|
+
} : e, n = (...s) => {
|
|
1616
|
+
let i = 0, c = 0, a, l = {}, v = s.pop();
|
|
1617
|
+
typeof v == "object" && (l = v, v = s.pop()), jn(
|
|
1618
|
+
v,
|
|
1619
|
+
`createSelector expects an output function after the inputs, but received: [${typeof v}]`
|
|
1620
|
+
);
|
|
1621
|
+
const h = {
|
|
1622
|
+
...r,
|
|
1623
|
+
...l
|
|
1624
|
+
}, {
|
|
1625
|
+
memoize: d,
|
|
1626
|
+
memoizeOptions: p = [],
|
|
1627
|
+
argsMemoize: E = nt,
|
|
1628
|
+
argsMemoizeOptions: C = [],
|
|
1629
|
+
devModeChecks: _ = {}
|
|
1630
|
+
} = h, g = At(p), j = At(C), w = Rn(s), A = d(function() {
|
|
1631
|
+
return i++, v.apply(
|
|
1632
|
+
null,
|
|
1633
|
+
arguments
|
|
1634
|
+
);
|
|
1635
|
+
}, ...g);
|
|
1636
|
+
let $ = !0;
|
|
1637
|
+
const M = E(function() {
|
|
1638
|
+
c++;
|
|
1639
|
+
const z = Nt(
|
|
1640
|
+
w,
|
|
1641
|
+
arguments
|
|
1642
|
+
);
|
|
1643
|
+
if (a = A.apply(null, z), process.env.NODE_ENV !== "production") {
|
|
1644
|
+
const { identityFunctionCheck: W, inputStabilityCheck: Y } = On($, _);
|
|
1645
|
+
if (W.shouldRun && W.run(
|
|
1646
|
+
v,
|
|
1647
|
+
z,
|
|
1648
|
+
a
|
|
1649
|
+
), Y.shouldRun) {
|
|
1650
|
+
const Ae = Nt(
|
|
1651
|
+
w,
|
|
1652
|
+
arguments
|
|
1653
|
+
);
|
|
1654
|
+
Y.run(
|
|
1655
|
+
{ inputSelectorResults: z, inputSelectorResultsCopy: Ae },
|
|
1656
|
+
{ memoize: d, memoizeOptions: g },
|
|
1657
|
+
arguments
|
|
1658
|
+
);
|
|
1659
|
+
}
|
|
1660
|
+
$ && ($ = !1);
|
|
1661
|
+
}
|
|
1662
|
+
return a;
|
|
1663
|
+
}, ...j);
|
|
1664
|
+
return Object.assign(M, {
|
|
1665
|
+
resultFunc: v,
|
|
1666
|
+
memoizedResultFunc: A,
|
|
1667
|
+
dependencies: w,
|
|
1668
|
+
dependencyRecomputations: () => c,
|
|
1669
|
+
resetDependencyRecomputations: () => {
|
|
1670
|
+
c = 0;
|
|
1671
|
+
},
|
|
1672
|
+
lastResult: () => a,
|
|
1673
|
+
recomputations: () => i,
|
|
1674
|
+
resetRecomputations: () => {
|
|
1675
|
+
i = 0;
|
|
1676
|
+
},
|
|
1677
|
+
memoize: d,
|
|
1678
|
+
argsMemoize: E
|
|
1679
|
+
});
|
|
1680
|
+
};
|
|
1681
|
+
return Object.assign(n, {
|
|
1682
|
+
withTypes: () => n
|
|
1683
|
+
}), n;
|
|
1684
|
+
}
|
|
1685
|
+
var Dn = /* @__PURE__ */ Zt(nt), Fn = Object.assign(
|
|
1686
|
+
(e, t = Dn) => {
|
|
1687
|
+
Sn(
|
|
1688
|
+
e,
|
|
1689
|
+
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
1690
|
+
);
|
|
1691
|
+
const r = Object.keys(e), n = r.map(
|
|
1692
|
+
(i) => e[i]
|
|
1693
|
+
);
|
|
1694
|
+
return t(
|
|
1695
|
+
n,
|
|
1696
|
+
(...i) => i.reduce((c, a, l) => (c[r[l]] = a, c), {})
|
|
1697
|
+
);
|
|
1698
|
+
},
|
|
1699
|
+
{ withTypes: () => Fn }
|
|
1700
|
+
), In = (...e) => {
|
|
1701
|
+
const t = Zt(...e), r = Object.assign((...n) => {
|
|
1702
|
+
const s = t(...n), i = (c, ...a) => s(Z(c) ? Xt(c) : c, ...a);
|
|
1703
|
+
return Object.assign(i, s), i;
|
|
1704
|
+
}, {
|
|
1705
|
+
withTypes: () => r
|
|
1706
|
+
});
|
|
1707
|
+
return r;
|
|
1708
|
+
};
|
|
1709
|
+
In(nt);
|
|
1710
|
+
function $e(e, t) {
|
|
1711
|
+
function r(...n) {
|
|
1712
|
+
if (t) {
|
|
1713
|
+
let s = t(...n);
|
|
1714
|
+
if (!s)
|
|
1715
|
+
throw new Error(process.env.NODE_ENV === "production" ? De(0) : "prepareAction did not return an object");
|
|
1716
|
+
return {
|
|
1717
|
+
type: e,
|
|
1718
|
+
payload: s.payload,
|
|
1719
|
+
..."meta" in s && {
|
|
1720
|
+
meta: s.meta
|
|
1721
|
+
},
|
|
1722
|
+
..."error" in s && {
|
|
1723
|
+
error: s.error
|
|
1724
|
+
}
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
return {
|
|
1728
|
+
type: e,
|
|
1729
|
+
payload: n[0]
|
|
1730
|
+
};
|
|
1731
|
+
}
|
|
1732
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => fn(n) && n.type === e, r;
|
|
1733
|
+
}
|
|
1734
|
+
process.env.NODE_ENV;
|
|
1735
|
+
var An = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Qt = (e = 21) => {
|
|
1736
|
+
let t = "", r = e;
|
|
1737
|
+
for (; r--; )
|
|
1738
|
+
t += An[Math.random() * 64 | 0];
|
|
1739
|
+
return t;
|
|
1740
|
+
}, Nn = (e, t) => {
|
|
1741
|
+
if (typeof e != "function")
|
|
1742
|
+
throw new Error(process.env.NODE_ENV === "production" ? De(32) : `${t} is not a function`);
|
|
1743
|
+
}, ot = "listenerMiddleware", Mn = (e) => {
|
|
1744
|
+
let {
|
|
1745
|
+
type: t,
|
|
1746
|
+
actionCreator: r,
|
|
1747
|
+
matcher: n,
|
|
1748
|
+
predicate: s,
|
|
1749
|
+
effect: i
|
|
1750
|
+
} = e;
|
|
1751
|
+
if (t)
|
|
1752
|
+
s = $e(t).match;
|
|
1753
|
+
else if (r)
|
|
1754
|
+
t = r.type, s = r.match;
|
|
1755
|
+
else if (n)
|
|
1756
|
+
s = n;
|
|
1757
|
+
else if (!s)
|
|
1758
|
+
throw new Error(process.env.NODE_ENV === "production" ? De(21) : "Creating or removing a listener requires one of the known fields for matching an action");
|
|
1759
|
+
return Nn(i, "options.listener"), {
|
|
1760
|
+
predicate: s,
|
|
1761
|
+
type: t,
|
|
1762
|
+
effect: i
|
|
1763
|
+
};
|
|
1764
|
+
}, zn = Object.assign((e) => {
|
|
1765
|
+
const {
|
|
1766
|
+
type: t,
|
|
1767
|
+
predicate: r,
|
|
1768
|
+
effect: n
|
|
1769
|
+
} = Mn(e);
|
|
1770
|
+
return {
|
|
1771
|
+
id: Qt(),
|
|
1772
|
+
effect: n,
|
|
1773
|
+
type: t,
|
|
1774
|
+
predicate: r,
|
|
1775
|
+
pending: /* @__PURE__ */ new Set(),
|
|
1776
|
+
unsubscribe: () => {
|
|
1777
|
+
throw new Error(process.env.NODE_ENV === "production" ? De(22) : "Unsubscribe not initialized");
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
}, {
|
|
1781
|
+
withTypes: () => zn
|
|
1782
|
+
}), Bn = Object.assign($e(`${ot}/add`), {
|
|
1783
|
+
withTypes: () => Bn
|
|
1784
|
+
});
|
|
1785
|
+
$e(`${ot}/removeAll`);
|
|
1786
|
+
var Wn = Object.assign($e(`${ot}/remove`), {
|
|
1787
|
+
withTypes: () => Wn
|
|
1788
|
+
});
|
|
1789
|
+
function De(e) {
|
|
1790
|
+
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
1791
|
+
}
|
|
1792
|
+
const Ln = (e, t, r = !1) => {
|
|
1793
|
+
const n = r ? "top-end" : "top-start", s = r ? "top-start" : "top-end", i = r ? "bottom-end" : "bottom-start", c = r ? "bottom-start" : "bottom-end", a = r ? "right-start" : "left-start", l = r ? "right-end" : "left-end", v = r ? "left-start" : "right-start", h = r ? "left-end" : "right-end";
|
|
1794
|
+
let d = e ? c : i;
|
|
1795
|
+
return t === "up" ? d = e ? s : n : t === "end" ? d = e ? h : v : t === "start" ? d = e ? l : a : t === "down-centered" ? d = "bottom" : t === "up-centered" && (d = "top"), d;
|
|
1796
|
+
}, Yn = ({ children: e, value: t, ...r }) => /* @__PURE__ */ f.jsx(Pe.Provider, { value: t, ...r, children: e }), ge = y(({
|
|
1797
|
+
children: e,
|
|
1798
|
+
className: t,
|
|
1799
|
+
onSelect: r,
|
|
1800
|
+
onToggle: n,
|
|
1801
|
+
controlID: s,
|
|
1802
|
+
toggleProps: i,
|
|
1803
|
+
title: c,
|
|
1804
|
+
menuProps: a,
|
|
1805
|
+
drop: l = "down",
|
|
1806
|
+
align: v = "start",
|
|
1807
|
+
autoClose: h = !0,
|
|
1808
|
+
show: d = "default",
|
|
1809
|
+
...p
|
|
1810
|
+
}, E) => {
|
|
1811
|
+
const [C, _] = B(d === "default" ? !1 : d), [g, j] = B({ case: "" }), w = zt((W) => {
|
|
1812
|
+
W.stopPropagation(), _((Y) => !Y);
|
|
1813
|
+
}, []), $ = Ln(v === "end", l), M = {
|
|
1814
|
+
down: "dropdown",
|
|
1815
|
+
"down-centered": "dropdown-center",
|
|
1816
|
+
up: "dropup",
|
|
1817
|
+
"up-centered": "dropup-center dropup",
|
|
1818
|
+
end: "dropend",
|
|
1819
|
+
start: "dropstart"
|
|
1820
|
+
}, G = s || "nav-dropdown-" + Qt(), z = oe(() => ({
|
|
1821
|
+
align: v,
|
|
1822
|
+
drop: l,
|
|
1823
|
+
showInternal: d != "default" && n ? d : C,
|
|
1824
|
+
handleToggle: d != "default" && n ? n : w,
|
|
1825
|
+
placement: $,
|
|
1826
|
+
directionClasses: M,
|
|
1827
|
+
controlID: G,
|
|
1828
|
+
activeDescendant: g,
|
|
1829
|
+
setActiveDescendant: j
|
|
1830
|
+
}), [v, l, d, C, n, w, $, M, s, g, j]);
|
|
1831
|
+
return /* @__PURE__ */ f.jsx("div", { test: "true", id: s + "-wrapper", ref: E, className: `sg-dropdown${t ? " " + t : ""} sg-nav-item`, ...p, children: /* @__PURE__ */ f.jsxs(Yn, { value: z, children: [
|
|
1832
|
+
/* @__PURE__ */ f.jsx(q.Toggle, { navDropdown: !0, ...i, children: c }),
|
|
1833
|
+
/* @__PURE__ */ f.jsx(ge.Menu, { ...a, children: e })
|
|
1834
|
+
] }) });
|
|
1835
|
+
});
|
|
1836
|
+
ge.Toggle = q.Toggle;
|
|
1837
|
+
ge.Menu = q.Menu;
|
|
1838
|
+
ge.Item = q.Item;
|
|
1839
|
+
ge.Divider = q.Divider;
|
|
1840
|
+
const Vn = (e, t, r, n) => {
|
|
1841
|
+
const s = n ? n.element : document.body;
|
|
1842
|
+
L(() => {
|
|
1843
|
+
if (s)
|
|
1844
|
+
return s.addEventListener(e, t, r), function() {
|
|
1845
|
+
s.removeEventListener(e, t, r);
|
|
1846
|
+
};
|
|
1847
|
+
}, [t, s]);
|
|
1848
|
+
}, ye = y(({ children: e, initialPosition: t, id: r, resize: n = !1, move: s = !1, ...i }, c) => {
|
|
1849
|
+
const [a, l] = B({ offSetTop: 0, offSetLeft: 0, ...t });
|
|
1850
|
+
console.log(a);
|
|
1851
|
+
const v = n ? "true" : "false", h = s ? "true" : "false", d = qe(c || null), [p, E] = B(!1), C = qe(p);
|
|
1852
|
+
L(() => {
|
|
1853
|
+
C.current = p;
|
|
1854
|
+
}, [p]);
|
|
1855
|
+
const _ = (w) => {
|
|
1856
|
+
if (s && w.target.className.includes("sg-popout-title") || w.target.className.includes("sg-popout-header")) {
|
|
1857
|
+
const { top: A, left: $ } = d.current.getBoundingClientRect();
|
|
1858
|
+
l((M) => ({
|
|
1859
|
+
...M,
|
|
1860
|
+
offSetTop: w.clientY - A,
|
|
1861
|
+
offSetLeft: w.clientX - $
|
|
1862
|
+
})), d.current.style.setProperty("user-select", "none"), d.current.setPointerCapture("moveable-popup-" + r), E((M) => !0);
|
|
1863
|
+
}
|
|
1864
|
+
}, g = (w) => {
|
|
1865
|
+
s && (d.current.style.removeProperty("user-select"), E((A) => !1));
|
|
1866
|
+
}, j = (w) => {
|
|
1867
|
+
if (s && C.current) {
|
|
1868
|
+
const A = w.clientY - a.offSetTop < 0, $ = window.innerHeight - (w.clientY - a.offSetTop + d.current.offsetHeight) < 0, M = w.clientX - a.offSetLeft < 0, G = window.innerWidth - (w.clientX - a.offSetLeft + d.current.offsetWidth) < 0;
|
|
1869
|
+
let z = A ? 0 : w.clientY - a.offSetTop;
|
|
1870
|
+
z = $ ? window.innerHeight - d.current.offsetHeight : z;
|
|
1871
|
+
let W = M ? 0 : w.clientX - a.offSetLeft;
|
|
1872
|
+
W = G ? window.innerWidth - d.current.offsetWidth : W, l((Y) => ({
|
|
1873
|
+
...Y,
|
|
1874
|
+
top: z,
|
|
1875
|
+
left: W
|
|
1876
|
+
}));
|
|
1877
|
+
}
|
|
1878
|
+
};
|
|
1879
|
+
return Vn("pointerup", g, !0, { element: document.body }), Bt(
|
|
1880
|
+
/* @__PURE__ */ f.jsx(
|
|
1881
|
+
"dialog",
|
|
1882
|
+
{
|
|
1883
|
+
"data-resize": v,
|
|
1884
|
+
"data-move": h,
|
|
1885
|
+
ref: d,
|
|
1886
|
+
id: r,
|
|
1887
|
+
className: "moveable-popout",
|
|
1888
|
+
style: { top: a.top, left: a.left, bottom: a.bottom, right: a.right },
|
|
1889
|
+
onMouseDown: _,
|
|
1890
|
+
onMouseMove: j,
|
|
1891
|
+
children: e
|
|
1892
|
+
}
|
|
1893
|
+
),
|
|
1894
|
+
document.body
|
|
1895
|
+
);
|
|
1896
|
+
}), Un = ({ as: e, className: t, children: r, ...n }, s) => {
|
|
1897
|
+
let c = ["div", "span", "h1", "h2", "h3", "h4", "h5", "h6"].find((a) => a === e) ? e : "div";
|
|
1898
|
+
return /* @__PURE__ */ f.jsx(c, { ref: s, className: `sg-popout-header ${t}`, ...n, children: r });
|
|
1899
|
+
};
|
|
1900
|
+
ye.Header = y(Un);
|
|
1901
|
+
const Hn = ({ children: e, className: t, ...r }, n) => {
|
|
1902
|
+
e = e.length ? e.filter((i) => i != null && i != "") : e;
|
|
1903
|
+
let s = [];
|
|
1904
|
+
return me.Children.forEach(e, (i) => {
|
|
1905
|
+
s.push(i);
|
|
1906
|
+
}), /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-popout-body ${t}`, ...r, children: s.map((i) => i) });
|
|
1907
|
+
};
|
|
1908
|
+
ye.Body = y(Hn);
|
|
1909
|
+
const qn = ({ as: e, className: t, children: r, ...n }, s) => {
|
|
1910
|
+
let c = ["h1", "h2", "h3", "h4", "h5", "h6"].find((a) => a === e) ? e : "h5";
|
|
1911
|
+
return /* @__PURE__ */ f.jsx(c, { ref: s, className: `sg-popout-title ${t}`, ...n, children: r });
|
|
1912
|
+
};
|
|
1913
|
+
ye.Title = y(qn);
|
|
1914
|
+
const Kn = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("p", { ref: n, className: `sg-popout-text ${t}`, ...r, children: e });
|
|
1915
|
+
ye.Text = y(Kn);
|
|
1916
|
+
const Gn = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-popout-footer ${t}`, ...r, children: e });
|
|
1917
|
+
ye.Footer = y(Gn);
|
|
1918
|
+
const Xn = (e, t) => {
|
|
1919
|
+
const r = document.getElementById(t + "-controls").children;
|
|
1920
|
+
for (let n of Object.keys(r))
|
|
1921
|
+
if (r[n] === e.target)
|
|
1922
|
+
return n;
|
|
1923
|
+
}, Fe = he(null), Jn = ({ children: e, value: t }) => /* @__PURE__ */ f.jsx(Fe.Provider, { value: t, children: e }), Ie = y(({ children: e, className: t, controlID: r, activeClassName: n, defaultActive: s = 0, ...i }, c) => {
|
|
1924
|
+
const [a, l] = B(s), [v, h] = B(null);
|
|
1925
|
+
L(() => {
|
|
1926
|
+
let p = n;
|
|
1927
|
+
p || (p = "sg-active");
|
|
1928
|
+
const E = document.getElementsByClassName(p)[0], C = document.getElementsByClassName(p)[1];
|
|
1929
|
+
E && E.classList.remove(p), C && C.classList.remove(p);
|
|
1930
|
+
const _ = document.getElementById(r + "-controls").children, g = document.getElementById(r + "-content").children;
|
|
1931
|
+
_[a].classList.add(p), g[a].classList.add(p);
|
|
1932
|
+
}, [a, r, n, h]);
|
|
1933
|
+
const d = oe(() => ({
|
|
1934
|
+
activeTab: a,
|
|
1935
|
+
setActiveTab: l,
|
|
1936
|
+
controlID: r,
|
|
1937
|
+
pageCount: v,
|
|
1938
|
+
setPageCount: h
|
|
1939
|
+
}), [a, l, r, v, h]);
|
|
1940
|
+
return /* @__PURE__ */ f.jsx(Jn, { value: d, children: /* @__PURE__ */ f.jsx("div", { ref: c, id: r + "-tabs", className: `sg-tabs${t ? " " + t : ""}`, ...i, children: e }) });
|
|
1941
|
+
}), Zn = ({ children: e, className: t, ...r }, n) => {
|
|
1942
|
+
const { controlID: s, setPageCount: i } = H(Fe);
|
|
1943
|
+
return L(() => {
|
|
1944
|
+
i(e.length);
|
|
1945
|
+
}, [e, i]), /* @__PURE__ */ f.jsx("div", { ref: n, id: s + "-controls", className: `sg-tabs-controls${t ? " " + t : ""}`, ...r, children: e });
|
|
1946
|
+
};
|
|
1947
|
+
Ie.Controls = y(Zn);
|
|
1948
|
+
const Qn = ({ children: e, className: t, onClick: r, ...n }, s) => {
|
|
1949
|
+
const { controlID: i, setActiveTab: c } = H(Fe), a = (l) => {
|
|
1950
|
+
c(Xn(l, i)), r && r(l);
|
|
1951
|
+
};
|
|
1952
|
+
return /* @__PURE__ */ f.jsx("button", { ref: s, onClick: a, className: `sg-tabs-button${t ? " " + t : ""}`, ...n, children: e });
|
|
1953
|
+
};
|
|
1954
|
+
Ie.Button = y(Qn);
|
|
1955
|
+
const eo = ({ children: e, className: t, ...r }, n) => {
|
|
1956
|
+
const { controlID: s } = H(Fe);
|
|
1957
|
+
return /* @__PURE__ */ f.jsx("div", { ref: n, id: s + "-content", className: `sg-tabs-content${t ? " " + t : ""}`, ...r, children: e });
|
|
1958
|
+
};
|
|
1959
|
+
Ie.Content = y(eo);
|
|
1960
|
+
const to = ({ children: e, className: t, ...r }, n) => /* @__PURE__ */ f.jsx("div", { ref: n, className: `sg-tabs-page${t ? " " + t : ""}`, ...r, children: e });
|
|
1961
|
+
Ie.Page = y(to);
|
|
1962
|
+
const so = y(({ children: e, toggled: t = "false", onClick: r, ...n }, s) => {
|
|
1963
|
+
const [i, c] = B(t), a = (l) => {
|
|
1964
|
+
c((v) => v === "true" ? "false" : "true"), r && r(l);
|
|
1965
|
+
};
|
|
1966
|
+
return /* @__PURE__ */ f.jsx("button", { onClick: a, toggled: i, ...n, children: e });
|
|
1967
|
+
});
|
|
1968
|
+
export {
|
|
1969
|
+
Or as Button,
|
|
1970
|
+
se as Card,
|
|
1971
|
+
Ir as CloseButton,
|
|
1972
|
+
q as Dropdown,
|
|
1973
|
+
oo as FloatingLabel,
|
|
1974
|
+
ie as Form,
|
|
1975
|
+
Gr as InputGroup,
|
|
1976
|
+
K as Modal,
|
|
1977
|
+
Vt as Nav,
|
|
1978
|
+
ge as NavDropdown,
|
|
1979
|
+
Yt as Navbar,
|
|
1980
|
+
ye as Popout,
|
|
1981
|
+
Ie as Tabs,
|
|
1982
|
+
so as ToggleButton
|
|
1983
|
+
};
|