xmirror-components 1.0.2 → 1.0.4

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.
Files changed (37) hide show
  1. package/build/dist/xmirror-components.css +1 -0
  2. package/build/dist/xmirror-components.js +1444 -283
  3. package/build/dist/xmirror-components.umd.cjs +15 -11
  4. package/build/es/components/AntdApp/index.d.ts +12 -0
  5. package/build/es/components/AntdApp/index.js +14 -0
  6. package/build/es/components/CheckboxValue/index.d.ts +40 -0
  7. package/build/es/components/CheckboxValue/index.js +33 -0
  8. package/build/es/components/IconButton/index.d.ts +42 -0
  9. package/build/es/components/IconButton/index.js +51 -0
  10. package/build/es/components/IconFont/index.d.ts +21 -0
  11. package/build/es/components/IconFont/index.js +32 -0
  12. package/build/es/components/SwitchValue/index.d.ts +30 -0
  13. package/build/es/components/SwitchValue/index.js +36 -0
  14. package/build/es/components/index.d.ts +5 -0
  15. package/build/es/components/index.js +5 -0
  16. package/build/es/hooks/index.d.ts +1 -0
  17. package/build/es/hooks/index.js +1 -0
  18. package/build/es/hooks/useRequest/index.d.ts +19 -0
  19. package/build/es/hooks/useRequest/index.js +28 -0
  20. package/build/lib/components/AntdApp/index.js +19 -0
  21. package/build/lib/components/CheckboxValue/index.js +38 -0
  22. package/build/lib/components/IconButton/index.js +91 -0
  23. package/build/lib/components/IconFont/index.js +67 -0
  24. package/build/lib/components/SwitchValue/index.js +41 -0
  25. package/build/lib/components/index.js +19 -0
  26. package/build/lib/{Button → hooks}/index.js +3 -2
  27. package/build/lib/hooks/useRequest/index.js +30 -0
  28. package/build/package.json +11 -4
  29. package/package.json +11 -4
  30. package/build/es/Button/button.d.ts +0 -6
  31. package/build/es/Button/button.js +0 -17
  32. package/build/es/Button/index.d.ts +0 -3
  33. package/build/es/Button/index.js +0 -2
  34. package/build/es/index.d.ts +0 -1
  35. package/build/es/index.js +0 -1
  36. package/build/lib/Button/button.js +0 -22
  37. package/build/lib/index.js +0 -8
@@ -1,6 +1,10 @@
1
- import pe from "react";
2
- import { Button as je } from "antd";
3
- var k = { exports: {} }, y = {};
1
+ import Pr, { useRef as j, useMemo as he, useEffect as J, useState as Ar, useCallback as Yr, forwardRef as Hr, Fragment as Ur } from "react";
2
+ import { Checkbox as zr, Button as Dr, Tooltip as Vr, Switch as Jr, message as Xr, notification as Zr, Modal as Qr, App as Kr } from "antd";
3
+ var de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
+ function Ye(e) {
5
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
+ }
7
+ var ve = { exports: {} }, te = {};
4
8
  /**
5
9
  * @license React
6
10
  * react-jsx-runtime.production.js
@@ -10,29 +14,29 @@ var k = { exports: {} }, y = {};
10
14
  * This source code is licensed under the MIT license found in the
11
15
  * LICENSE file in the root directory of this source tree.
12
16
  */
13
- var ie;
14
- function Ce() {
15
- if (ie) return y;
16
- ie = 1;
17
- var s = Symbol.for("react.transitional.element"), j = Symbol.for("react.fragment");
18
- function x(C, f, i) {
19
- var v = null;
20
- if (i !== void 0 && (v = "" + i), f.key !== void 0 && (v = "" + f.key), "key" in f) {
21
- i = {};
22
- for (var _ in f)
23
- _ !== "key" && (i[_] = f[_]);
24
- } else i = f;
25
- return f = i.ref, {
26
- $$typeof: s,
27
- type: C,
28
- key: v,
29
- ref: f !== void 0 ? f : null,
30
- props: i
17
+ var ur;
18
+ function et() {
19
+ if (ur) return te;
20
+ ur = 1;
21
+ var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
22
+ function r(a, i, o) {
23
+ var c = null;
24
+ if (o !== void 0 && (c = "" + o), i.key !== void 0 && (c = "" + i.key), "key" in i) {
25
+ o = {};
26
+ for (var s in i)
27
+ s !== "key" && (o[s] = i[s]);
28
+ } else o = i;
29
+ return i = o.ref, {
30
+ $$typeof: e,
31
+ type: a,
32
+ key: c,
33
+ ref: i !== void 0 ? i : null,
34
+ props: o
31
35
  };
32
36
  }
33
- return y.Fragment = j, y.jsx = x, y.jsxs = x, y;
37
+ return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
34
38
  }
35
- var p = {};
39
+ var ne = {};
36
40
  /**
37
41
  * @license React
38
42
  * react-jsx-runtime.development.js
@@ -42,406 +46,1563 @@ var p = {};
42
46
  * This source code is licensed under the MIT license found in the
43
47
  * LICENSE file in the root directory of this source tree.
44
48
  */
45
- var ce;
46
- function he() {
47
- return ce || (ce = 1, process.env.NODE_ENV !== "production" && function() {
48
- function s(e) {
49
- if (e == null) return null;
50
- if (typeof e == "function")
51
- return e.$$typeof === Re ? null : e.displayName || e.name || null;
52
- if (typeof e == "string") return e;
53
- switch (e) {
54
- case P:
49
+ var cr;
50
+ function rt() {
51
+ return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
52
+ function e(n) {
53
+ if (n == null) return null;
54
+ if (typeof n == "function")
55
+ return n.$$typeof === Ir ? null : n.displayName || n.name || null;
56
+ if (typeof n == "string") return n;
57
+ switch (n) {
58
+ case B:
55
59
  return "Fragment";
56
- case Te:
60
+ case Y:
57
61
  return "Portal";
58
- case F:
62
+ case P:
59
63
  return "Profiler";
60
- case X:
61
- return "StrictMode";
62
64
  case $:
65
+ return "StrictMode";
66
+ case H:
63
67
  return "Suspense";
64
- case M:
68
+ case T:
65
69
  return "SuspenseList";
66
70
  }
67
- if (typeof e == "object")
68
- switch (typeof e.tag == "number" && console.error(
71
+ if (typeof n == "object")
72
+ switch (typeof n.tag == "number" && console.error(
69
73
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
- ), e.$$typeof) {
71
- case Z:
72
- return (e.displayName || "Context") + ".Provider";
74
+ ), n.$$typeof) {
75
+ case se:
76
+ return (n.displayName || "Context") + ".Provider";
77
+ case Q:
78
+ return (n._context.displayName || "Context") + ".Consumer";
79
+ case K:
80
+ var v = n.render;
81
+ return n = n.displayName, n || (n = v.displayName || v.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
82
+ case A:
83
+ return v = n.displayName || null, v !== null ? v : e(n.type) || "Memo";
73
84
  case L:
74
- return (e._context.displayName || "Context") + ".Consumer";
75
- case Y:
76
- var r = e.render;
77
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
78
- case W:
79
- return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
80
- case U:
81
- r = e._payload, e = e._init;
85
+ v = n._payload, n = n._init;
82
86
  try {
83
- return s(e(r));
87
+ return e(n(v));
84
88
  } catch {
85
89
  }
86
90
  }
87
91
  return null;
88
92
  }
89
- function j(e) {
90
- return "" + e;
93
+ function t(n) {
94
+ return "" + n;
91
95
  }
92
- function x(e) {
96
+ function r(n) {
93
97
  try {
94
- j(e);
95
- var r = !1;
98
+ t(n);
99
+ var v = !1;
96
100
  } catch {
97
- r = !0;
101
+ v = !0;
98
102
  }
99
- if (r) {
100
- r = console;
101
- var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
102
- return t.call(
103
- r,
103
+ if (v) {
104
+ v = console;
105
+ var g = v.error, y = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
106
+ return g.call(
107
+ v,
104
108
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
105
- n
106
- ), j(e);
109
+ y
110
+ ), t(n);
107
111
  }
108
112
  }
109
- function C() {
113
+ function a() {
110
114
  }
111
- function f() {
112
- if (R === 0) {
113
- K = console.log, D = console.info, ee = console.warn, re = console.error, te = console.group, oe = console.groupCollapsed, ne = console.groupEnd;
114
- var e = {
115
+ function i() {
116
+ if (ee === 0) {
117
+ Je = console.log, Xe = console.info, Ze = console.warn, Qe = console.error, Ke = console.group, er = console.groupCollapsed, rr = console.groupEnd;
118
+ var n = {
115
119
  configurable: !0,
116
120
  enumerable: !0,
117
- value: C,
121
+ value: a,
118
122
  writable: !0
119
123
  };
120
124
  Object.defineProperties(console, {
121
- info: e,
122
- log: e,
123
- warn: e,
124
- error: e,
125
- group: e,
126
- groupCollapsed: e,
127
- groupEnd: e
125
+ info: n,
126
+ log: n,
127
+ warn: n,
128
+ error: n,
129
+ group: n,
130
+ groupCollapsed: n,
131
+ groupEnd: n
128
132
  });
129
133
  }
130
- R++;
134
+ ee++;
131
135
  }
132
- function i() {
133
- if (R--, R === 0) {
134
- var e = { configurable: !0, enumerable: !0, writable: !0 };
136
+ function o() {
137
+ if (ee--, ee === 0) {
138
+ var n = { configurable: !0, enumerable: !0, writable: !0 };
135
139
  Object.defineProperties(console, {
136
- log: m({}, e, { value: K }),
137
- info: m({}, e, { value: D }),
138
- warn: m({}, e, { value: ee }),
139
- error: m({}, e, { value: re }),
140
- group: m({}, e, { value: te }),
141
- groupCollapsed: m({}, e, { value: oe }),
142
- groupEnd: m({}, e, { value: ne })
140
+ log: z({}, n, { value: Je }),
141
+ info: z({}, n, { value: Xe }),
142
+ warn: z({}, n, { value: Ze }),
143
+ error: z({}, n, { value: Qe }),
144
+ group: z({}, n, { value: Ke }),
145
+ groupCollapsed: z({}, n, { value: er }),
146
+ groupEnd: z({}, n, { value: rr })
143
147
  });
144
148
  }
145
- 0 > R && console.error(
149
+ 0 > ee && console.error(
146
150
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
147
151
  );
148
152
  }
149
- function v(e) {
150
- if (J === void 0)
153
+ function c(n) {
154
+ if (Te === void 0)
151
155
  try {
152
156
  throw Error();
153
- } catch (t) {
154
- var r = t.stack.trim().match(/\n( *(at )?)/);
155
- J = r && r[1] || "", ae = -1 < t.stack.indexOf(`
156
- at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
157
+ } catch (g) {
158
+ var v = g.stack.trim().match(/\n( *(at )?)/);
159
+ Te = v && v[1] || "", tr = -1 < g.stack.indexOf(`
160
+ at`) ? " (<anonymous>)" : -1 < g.stack.indexOf("@") ? "@unknown:0:0" : "";
157
161
  }
158
162
  return `
159
- ` + J + e + ae;
160
- }
161
- function _(e, r) {
162
- if (!e || z) return "";
163
- var t = B.get(e);
164
- if (t !== void 0) return t;
165
- z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
166
- var n = null;
167
- n = b.H, b.H = null, f();
163
+ ` + Te + n + tr;
164
+ }
165
+ function s(n, v) {
166
+ if (!n || we) return "";
167
+ var g = je.get(n);
168
+ if (g !== void 0) return g;
169
+ we = !0, g = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
170
+ var y = null;
171
+ y = U.H, U.H = null, i();
168
172
  try {
169
- var u = {
173
+ var S = {
170
174
  DetermineComponentFrameRoot: function() {
171
175
  try {
172
- if (r) {
173
- var d = function() {
176
+ if (v) {
177
+ var G = function() {
174
178
  throw Error();
175
179
  };
176
- if (Object.defineProperty(d.prototype, "props", {
180
+ if (Object.defineProperty(G.prototype, "props", {
177
181
  set: function() {
178
182
  throw Error();
179
183
  }
180
184
  }), typeof Reflect == "object" && Reflect.construct) {
181
185
  try {
182
- Reflect.construct(d, []);
183
- } catch (E) {
184
- var h = E;
186
+ Reflect.construct(G, []);
187
+ } catch (I) {
188
+ var le = I;
185
189
  }
186
- Reflect.construct(e, [], d);
190
+ Reflect.construct(n, [], G);
187
191
  } else {
188
192
  try {
189
- d.call();
190
- } catch (E) {
191
- h = E;
193
+ G.call();
194
+ } catch (I) {
195
+ le = I;
192
196
  }
193
- e.call(d.prototype);
197
+ n.call(G.prototype);
194
198
  }
195
199
  } else {
196
200
  try {
197
201
  throw Error();
198
- } catch (E) {
199
- h = E;
202
+ } catch (I) {
203
+ le = I;
200
204
  }
201
- (d = e()) && typeof d.catch == "function" && d.catch(function() {
205
+ (G = n()) && typeof G.catch == "function" && G.catch(function() {
202
206
  });
203
207
  }
204
- } catch (E) {
205
- if (E && h && typeof E.stack == "string")
206
- return [E.stack, h.stack];
208
+ } catch (I) {
209
+ if (I && le && typeof I.stack == "string")
210
+ return [I.stack, le.stack];
207
211
  }
208
212
  return [null, null];
209
213
  }
210
214
  };
211
- u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
212
- var a = Object.getOwnPropertyDescriptor(
213
- u.DetermineComponentFrameRoot,
215
+ S.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
+ var w = Object.getOwnPropertyDescriptor(
217
+ S.DetermineComponentFrameRoot,
214
218
  "name"
215
219
  );
216
- a && a.configurable && Object.defineProperty(
217
- u.DetermineComponentFrameRoot,
220
+ w && w.configurable && Object.defineProperty(
221
+ S.DetermineComponentFrameRoot,
218
222
  "name",
219
223
  { value: "DetermineComponentFrameRoot" }
220
224
  );
221
- var o = u.DetermineComponentFrameRoot(), c = o[0], T = o[1];
222
- if (c && T) {
223
- var l = c.split(`
224
- `), g = T.split(`
225
+ var h = S.DetermineComponentFrameRoot(), F = h[0], X = h[1];
226
+ if (F && X) {
227
+ var R = F.split(`
228
+ `), D = X.split(`
225
229
  `);
226
- for (o = a = 0; a < l.length && !l[a].includes(
230
+ for (h = w = 0; w < R.length && !R[w].includes(
227
231
  "DetermineComponentFrameRoot"
228
232
  ); )
229
- a++;
230
- for (; o < g.length && !g[o].includes(
233
+ w++;
234
+ for (; h < D.length && !D[h].includes(
231
235
  "DetermineComponentFrameRoot"
232
236
  ); )
233
- o++;
234
- if (a === l.length || o === g.length)
235
- for (a = l.length - 1, o = g.length - 1; 1 <= a && 0 <= o && l[a] !== g[o]; )
236
- o--;
237
- for (; 1 <= a && 0 <= o; a--, o--)
238
- if (l[a] !== g[o]) {
239
- if (a !== 1 || o !== 1)
237
+ h++;
238
+ if (w === R.length || h === D.length)
239
+ for (w = R.length - 1, h = D.length - 1; 1 <= w && 0 <= h && R[w] !== D[h]; )
240
+ h--;
241
+ for (; 1 <= w && 0 <= h; w--, h--)
242
+ if (R[w] !== D[h]) {
243
+ if (w !== 1 || h !== 1)
240
244
  do
241
- if (a--, o--, 0 > o || l[a] !== g[o]) {
242
- var w = `
243
- ` + l[a].replace(
245
+ if (w--, h--, 0 > h || R[w] !== D[h]) {
246
+ var re = `
247
+ ` + R[w].replace(
244
248
  " at new ",
245
249
  " at "
246
250
  );
247
- return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, w), w;
251
+ return n.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", n.displayName)), typeof n == "function" && je.set(n, re), re;
248
252
  }
249
- while (1 <= a && 0 <= o);
253
+ while (1 <= w && 0 <= h);
250
254
  break;
251
255
  }
252
256
  }
253
257
  } finally {
254
- z = !1, b.H = n, i(), Error.prepareStackTrace = t;
258
+ we = !1, U.H = y, o(), Error.prepareStackTrace = g;
255
259
  }
256
- return l = (l = e ? e.displayName || e.name : "") ? v(l) : "", typeof e == "function" && B.set(e, l), l;
257
- }
258
- function O(e) {
259
- if (e == null) return "";
260
- if (typeof e == "function") {
261
- var r = e.prototype;
262
- return _(
263
- e,
264
- !(!r || !r.isReactComponent)
260
+ return R = (R = n ? n.displayName || n.name : "") ? c(R) : "", typeof n == "function" && je.set(n, R), R;
261
+ }
262
+ function f(n) {
263
+ if (n == null) return "";
264
+ if (typeof n == "function") {
265
+ var v = n.prototype;
266
+ return s(
267
+ n,
268
+ !(!v || !v.isReactComponent)
265
269
  );
266
270
  }
267
- if (typeof e == "string") return v(e);
268
- switch (e) {
269
- case $:
270
- return v("Suspense");
271
- case M:
272
- return v("SuspenseList");
271
+ if (typeof n == "string") return c(n);
272
+ switch (n) {
273
+ case H:
274
+ return c("Suspense");
275
+ case T:
276
+ return c("SuspenseList");
273
277
  }
274
- if (typeof e == "object")
275
- switch (e.$$typeof) {
276
- case Y:
277
- return e = _(e.render, !1), e;
278
- case W:
279
- return O(e.type);
280
- case U:
281
- r = e._payload, e = e._init;
278
+ if (typeof n == "object")
279
+ switch (n.$$typeof) {
280
+ case K:
281
+ return n = s(n.render, !1), n;
282
+ case A:
283
+ return f(n.type);
284
+ case L:
285
+ v = n._payload, n = n._init;
282
286
  try {
283
- return O(e(r));
287
+ return f(n(v));
284
288
  } catch {
285
289
  }
286
290
  }
287
291
  return "";
288
292
  }
289
- function S() {
290
- var e = b.A;
291
- return e === null ? null : e.getOwner();
293
+ function u() {
294
+ var n = U.A;
295
+ return n === null ? null : n.getOwner();
292
296
  }
293
- function ve(e) {
294
- if (Q.call(e, "key")) {
295
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
296
- if (r && r.isReactWarning) return !1;
297
+ function d(n) {
298
+ if (Ve.call(n, "key")) {
299
+ var v = Object.getOwnPropertyDescriptor(n, "key").get;
300
+ if (v && v.isReactWarning) return !1;
297
301
  }
298
- return e.key !== void 0;
302
+ return n.key !== void 0;
299
303
  }
300
- function de(e, r) {
301
- function t() {
302
- ue || (ue = !0, console.error(
304
+ function l(n, v) {
305
+ function g() {
306
+ nr || (nr = !0, console.error(
303
307
  "%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://react.dev/link/special-props)",
304
- r
308
+ v
305
309
  ));
306
310
  }
307
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
308
- get: t,
311
+ g.isReactWarning = !0, Object.defineProperty(n, "key", {
312
+ get: g,
309
313
  configurable: !0
310
314
  });
311
315
  }
312
- function be() {
313
- var e = s(this.type);
314
- return le[e] || (le[e] = !0, console.error(
316
+ function p() {
317
+ var n = e(this.type);
318
+ return ar[n] || (ar[n] = !0, console.error(
315
319
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
316
- )), e = this.props.ref, e !== void 0 ? e : null;
317
- }
318
- function me(e, r, t, n, u, a) {
319
- return t = a.ref, e = {
320
- $$typeof: N,
321
- type: e,
322
- key: r,
323
- props: a,
324
- _owner: u
325
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
320
+ )), n = this.props.ref, n !== void 0 ? n : null;
321
+ }
322
+ function m(n, v, g, y, S, w) {
323
+ return g = w.ref, n = {
324
+ $$typeof: k,
325
+ type: n,
326
+ key: v,
327
+ props: w,
328
+ _owner: S
329
+ }, (g !== void 0 ? g : null) !== null ? Object.defineProperty(n, "ref", {
326
330
  enumerable: !1,
327
- get: be
328
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
331
+ get: p
332
+ }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
329
333
  configurable: !1,
330
334
  enumerable: !1,
331
335
  writable: !0,
332
336
  value: 0
333
- }), Object.defineProperty(e, "_debugInfo", {
337
+ }), Object.defineProperty(n, "_debugInfo", {
334
338
  configurable: !1,
335
339
  enumerable: !1,
336
340
  writable: !0,
337
341
  value: null
338
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
339
- }
340
- function V(e, r, t, n, u, a) {
341
- if (typeof e == "string" || typeof e == "function" || e === P || e === F || e === X || e === $ || e === M || e === xe || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === W || e.$$typeof === Z || e.$$typeof === L || e.$$typeof === Y || e.$$typeof === we || e.getModuleId !== void 0)) {
342
- var o = r.children;
343
- if (o !== void 0)
344
- if (n)
345
- if (q(o)) {
346
- for (n = 0; n < o.length; n++)
347
- G(o[n], e);
348
- Object.freeze && Object.freeze(o);
342
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
343
+ }
344
+ function b(n, v, g, y, S, w) {
345
+ if (typeof n == "string" || typeof n == "function" || n === B || n === P || n === $ || n === H || n === T || n === fe || typeof n == "object" && n !== null && (n.$$typeof === L || n.$$typeof === A || n.$$typeof === se || n.$$typeof === Q || n.$$typeof === K || n.$$typeof === Br || n.getModuleId !== void 0)) {
346
+ var h = v.children;
347
+ if (h !== void 0)
348
+ if (y)
349
+ if (Ee(h)) {
350
+ for (y = 0; y < h.length; y++)
351
+ E(h[y], n);
352
+ Object.freeze && Object.freeze(h);
349
353
  } else
350
354
  console.error(
351
355
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
352
356
  );
353
- else G(o, e);
357
+ else E(h, n);
354
358
  } else
355
- o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : q(e) ? n = "array" : e !== void 0 && e.$$typeof === N ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
359
+ h = "", (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), n === null ? y = "null" : Ee(n) ? y = "array" : n !== void 0 && n.$$typeof === k ? (y = "<" + (e(n.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : y = typeof n, console.error(
356
360
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
357
- n,
358
- o
361
+ y,
362
+ h
359
363
  );
360
- if (Q.call(r, "key")) {
361
- o = s(e);
362
- var c = Object.keys(r).filter(function(l) {
363
- return l !== "key";
364
+ if (Ve.call(v, "key")) {
365
+ h = e(n);
366
+ var F = Object.keys(v).filter(function(R) {
367
+ return R !== "key";
364
368
  });
365
- n = 0 < c.length ? "{key: someKey, " + c.join(": ..., ") + ": ...}" : "{key: someKey}", se[o + n] || (c = 0 < c.length ? "{" + c.join(": ..., ") + ": ...}" : "{}", console.error(
369
+ y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", or[h + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
366
370
  `A props object containing a "key" prop is being spread into JSX:
367
371
  let props = %s;
368
372
  <%s {...props} />
369
373
  React keys must be passed directly to JSX without using spread:
370
374
  let props = %s;
371
375
  <%s key={someKey} {...props} />`,
372
- n,
373
- o,
374
- c,
375
- o
376
- ), se[o + n] = !0);
376
+ y,
377
+ h,
378
+ F,
379
+ h
380
+ ), or[h + y] = !0);
377
381
  }
378
- if (o = null, t !== void 0 && (x(t), o = "" + t), ve(r) && (x(r.key), o = "" + r.key), "key" in r) {
379
- t = {};
380
- for (var T in r)
381
- T !== "key" && (t[T] = r[T]);
382
- } else t = r;
383
- return o && de(
384
- t,
385
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
386
- ), me(e, o, a, u, S(), t);
387
- }
388
- function G(e, r) {
389
- if (typeof e == "object" && e && e.$$typeof !== ye) {
390
- if (q(e))
391
- for (var t = 0; t < e.length; t++) {
392
- var n = e[t];
393
- A(n) && H(n, r);
382
+ if (h = null, g !== void 0 && (r(g), h = "" + g), d(v) && (r(v.key), h = "" + v.key), "key" in v) {
383
+ g = {};
384
+ for (var X in v)
385
+ X !== "key" && (g[X] = v[X]);
386
+ } else g = v;
387
+ return h && l(
388
+ g,
389
+ typeof n == "function" ? n.displayName || n.name || "Unknown" : n
390
+ ), m(n, h, w, S, u(), g);
391
+ }
392
+ function E(n, v) {
393
+ if (typeof n == "object" && n && n.$$typeof !== Gr) {
394
+ if (Ee(n))
395
+ for (var g = 0; g < n.length; g++) {
396
+ var y = n[g];
397
+ x(y) && M(y, v);
394
398
  }
395
- else if (A(e))
396
- e._store && (e._store.validated = 1);
397
- else if (e === null || typeof e != "object" ? t = null : (t = I && e[I] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
398
- for (; !(e = t.next()).done; )
399
- A(e.value) && H(e.value, r);
399
+ else if (x(n))
400
+ n._store && (n._store.validated = 1);
401
+ else if (n === null || typeof n != "object" ? g = null : (g = De && n[De] || n["@@iterator"], g = typeof g == "function" ? g : null), typeof g == "function" && g !== n.entries && (g = g.call(n), g !== n))
402
+ for (; !(n = g.next()).done; )
403
+ x(n.value) && M(n.value, v);
400
404
  }
401
405
  }
402
- function A(e) {
403
- return typeof e == "object" && e !== null && e.$$typeof === N;
404
- }
405
- function H(e, r) {
406
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = ge(r), !fe[r])) {
407
- fe[r] = !0;
408
- var t = "";
409
- e && e._owner != null && e._owner !== S() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
410
- var n = b.getCurrentStack;
411
- b.getCurrentStack = function() {
412
- var u = O(e.type);
413
- return n && (u += n() || ""), u;
406
+ function x(n) {
407
+ return typeof n == "object" && n !== null && n.$$typeof === k;
408
+ }
409
+ function M(n, v) {
410
+ if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, v = N(v), !ir[v])) {
411
+ ir[v] = !0;
412
+ var g = "";
413
+ n && n._owner != null && n._owner !== u() && (g = null, typeof n._owner.tag == "number" ? g = e(n._owner.type) : typeof n._owner.name == "string" && (g = n._owner.name), g = " It was passed a child from " + g + ".");
414
+ var y = U.getCurrentStack;
415
+ U.getCurrentStack = function() {
416
+ var S = f(n.type);
417
+ return y && (S += y() || ""), S;
414
418
  }, console.error(
415
419
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
416
- r,
417
- t
418
- ), b.getCurrentStack = n;
420
+ v,
421
+ g
422
+ ), U.getCurrentStack = y;
419
423
  }
420
424
  }
421
- function ge(e) {
422
- var r = "", t = S();
423
- return t && (t = s(t.type)) && (r = `
425
+ function N(n) {
426
+ var v = "", g = u();
427
+ return g && (g = e(g.type)) && (v = `
424
428
 
425
- Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
429
+ Check the render method of \`` + g + "`."), v || (n = e(n)) && (v = `
426
430
 
427
- Check the top-level render call using <` + e + ">."), r;
428
- }
429
- var _e = pe, N = Symbol.for("react.transitional.element"), Te = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), X = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), Z = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), M = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), xe = Symbol.for("react.offscreen"), I = Symbol.iterator, Re = Symbol.for("react.client.reference"), b = _e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, m = Object.assign, we = Symbol.for("react.client.reference"), q = Array.isArray, R = 0, K, D, ee, re, te, oe, ne;
430
- C.__reactDisabledLog = !0;
431
- var J, ae, z = !1, B = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), ue, le = {}, se = {}, fe = {};
432
- p.Fragment = P, p.jsx = function(e, r, t, n, u) {
433
- return V(e, r, t, !1, n, u);
434
- }, p.jsxs = function(e, r, t, n, u) {
435
- return V(e, r, t, !0, n, u);
431
+ Check the top-level render call using <` + n + ">."), v;
432
+ }
433
+ var W = Pr, k = Symbol.for("react.transitional.element"), Y = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), Q = Symbol.for("react.consumer"), se = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), fe = Symbol.for("react.offscreen"), De = Symbol.iterator, Ir = Symbol.for("react.client.reference"), U = W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Ve = Object.prototype.hasOwnProperty, z = Object.assign, Br = Symbol.for("react.client.reference"), Ee = Array.isArray, ee = 0, Je, Xe, Ze, Qe, Ke, er, rr;
434
+ a.__reactDisabledLog = !0;
435
+ var Te, tr, we = !1, je = new (typeof WeakMap == "function" ? WeakMap : Map)(), Gr = Symbol.for("react.client.reference"), nr, ar = {}, or = {}, ir = {};
436
+ ne.Fragment = B, ne.jsx = function(n, v, g, y, S) {
437
+ return b(n, v, g, !1, y, S);
438
+ }, ne.jsxs = function(n, v, g, y, S) {
439
+ return b(n, v, g, !0, y, S);
440
+ };
441
+ }()), ne;
442
+ }
443
+ var sr;
444
+ function tt() {
445
+ return sr || (sr = 1, process.env.NODE_ENV === "production" ? ve.exports = et() : ve.exports = rt()), ve.exports;
446
+ }
447
+ var q = tt();
448
+ const jn = ({
449
+ checked: e,
450
+ onChange: t,
451
+ trueValue: r = !0,
452
+ falseValue: a = !1,
453
+ trueLabel: i = "",
454
+ falseLabel: o = "",
455
+ children: c,
456
+ ...s
457
+ }) => {
458
+ const f = e === r, u = (d) => {
459
+ t == null || t(d.target.checked ? r : a, d);
460
+ };
461
+ return /* @__PURE__ */ q.jsx(
462
+ zr,
463
+ {
464
+ checked: f,
465
+ onChange: u,
466
+ ...s,
467
+ children: c || (f ? i : o)
468
+ }
469
+ );
470
+ };
471
+ var nt = typeof global == "object" && global && global.Object === Object && global, at = typeof self == "object" && self && self.Object === Object && self, ot = nt || at || Function("return this")(), me = ot.Symbol, Cr = Object.prototype, it = Cr.hasOwnProperty, ut = Cr.toString, ae = me ? me.toStringTag : void 0;
472
+ function ct(e) {
473
+ var t = it.call(e, ae), r = e[ae];
474
+ try {
475
+ e[ae] = void 0;
476
+ var a = !0;
477
+ } catch {
478
+ }
479
+ var i = ut.call(e);
480
+ return a && (t ? e[ae] = r : delete e[ae]), i;
481
+ }
482
+ var st = Object.prototype, ft = st.toString;
483
+ function lt(e) {
484
+ return ft.call(e);
485
+ }
486
+ var dt = "[object Null]", vt = "[object Undefined]", fr = me ? me.toStringTag : void 0;
487
+ function gt(e) {
488
+ return e == null ? e === void 0 ? vt : dt : fr && fr in Object(e) ? ct(e) : lt(e);
489
+ }
490
+ function bt(e) {
491
+ return e != null && typeof e == "object";
492
+ }
493
+ var mt = Array.isArray;
494
+ function ht() {
495
+ }
496
+ var pt = "[object String]";
497
+ function yt(e) {
498
+ return typeof e == "string" || !mt(e) && bt(e) && gt(e) == pt;
499
+ }
500
+ var _e = { exports: {} };
501
+ /*!
502
+ Copyright (c) 2018 Jed Watson.
503
+ Licensed under the MIT License (MIT), see
504
+ http://jedwatson.github.io/classnames
505
+ */
506
+ var lr;
507
+ function Et() {
508
+ return lr || (lr = 1, function(e) {
509
+ (function() {
510
+ var t = {}.hasOwnProperty;
511
+ function r() {
512
+ for (var o = "", c = 0; c < arguments.length; c++) {
513
+ var s = arguments[c];
514
+ s && (o = i(o, a(s)));
515
+ }
516
+ return o;
517
+ }
518
+ function a(o) {
519
+ if (typeof o == "string" || typeof o == "number")
520
+ return o;
521
+ if (typeof o != "object")
522
+ return "";
523
+ if (Array.isArray(o))
524
+ return r.apply(null, o);
525
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
526
+ return o.toString();
527
+ var c = "";
528
+ for (var s in o)
529
+ t.call(o, s) && o[s] && (c = i(c, s));
530
+ return c;
531
+ }
532
+ function i(o, c) {
533
+ return c ? o ? o + " " + c : o + c : o;
534
+ }
535
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
536
+ })();
537
+ }(_e)), _e.exports;
538
+ }
539
+ var Tt = Et();
540
+ const wt = /* @__PURE__ */ Ye(Tt);
541
+ var jt = function(e) {
542
+ return function(t, r) {
543
+ var a = j(!1);
544
+ e(function() {
545
+ return function() {
546
+ a.current = !1;
547
+ };
548
+ }, []), e(function() {
549
+ if (!a.current)
550
+ a.current = !0;
551
+ else
552
+ return t();
553
+ }, r);
554
+ };
555
+ }, C = function() {
556
+ return C = Object.assign || function(t) {
557
+ for (var r, a = 1, i = arguments.length; a < i; a++) {
558
+ r = arguments[a];
559
+ for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
560
+ }
561
+ return t;
562
+ }, C.apply(this, arguments);
563
+ };
564
+ function Nr(e, t) {
565
+ var r = {};
566
+ for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (r[a] = e[a]);
567
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
568
+ for (var i = 0, a = Object.getOwnPropertySymbols(e); i < a.length; i++)
569
+ t.indexOf(a[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[i]) && (r[a[i]] = e[a[i]]);
570
+ return r;
571
+ }
572
+ function _t(e, t, r, a) {
573
+ function i(o) {
574
+ return o instanceof r ? o : new r(function(c) {
575
+ c(o);
576
+ });
577
+ }
578
+ return new (r || (r = Promise))(function(o, c) {
579
+ function s(d) {
580
+ try {
581
+ u(a.next(d));
582
+ } catch (l) {
583
+ c(l);
584
+ }
585
+ }
586
+ function f(d) {
587
+ try {
588
+ u(a.throw(d));
589
+ } catch (l) {
590
+ c(l);
591
+ }
592
+ }
593
+ function u(d) {
594
+ d.done ? o(d.value) : i(d.value).then(s, f);
595
+ }
596
+ u((a = a.apply(e, t || [])).next());
597
+ });
598
+ }
599
+ function St(e, t) {
600
+ var r = { label: 0, sent: function() {
601
+ if (o[0] & 1) throw o[1];
602
+ return o[1];
603
+ }, trys: [], ops: [] }, a, i, o, c = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
604
+ return c.next = s(0), c.throw = s(1), c.return = s(2), typeof Symbol == "function" && (c[Symbol.iterator] = function() {
605
+ return this;
606
+ }), c;
607
+ function s(u) {
608
+ return function(d) {
609
+ return f([u, d]);
436
610
  };
437
- }()), p;
611
+ }
612
+ function f(u) {
613
+ if (a) throw new TypeError("Generator is already executing.");
614
+ for (; c && (c = 0, u[0] && (r = 0)), r; ) try {
615
+ if (a = 1, i && (o = u[0] & 2 ? i.return : u[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, u[1])).done) return o;
616
+ switch (i = 0, o && (u = [u[0] & 2, o.value]), u[0]) {
617
+ case 0:
618
+ case 1:
619
+ o = u;
620
+ break;
621
+ case 4:
622
+ return r.label++, { value: u[1], done: !1 };
623
+ case 5:
624
+ r.label++, i = u[1], u = [0];
625
+ continue;
626
+ case 7:
627
+ u = r.ops.pop(), r.trys.pop();
628
+ continue;
629
+ default:
630
+ if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (u[0] === 6 || u[0] === 2)) {
631
+ r = 0;
632
+ continue;
633
+ }
634
+ if (u[0] === 3 && (!o || u[1] > o[0] && u[1] < o[3])) {
635
+ r.label = u[1];
636
+ break;
637
+ }
638
+ if (u[0] === 6 && r.label < o[1]) {
639
+ r.label = o[1], o = u;
640
+ break;
641
+ }
642
+ if (o && r.label < o[2]) {
643
+ r.label = o[2], r.ops.push(u);
644
+ break;
645
+ }
646
+ o[2] && r.ops.pop(), r.trys.pop();
647
+ continue;
648
+ }
649
+ u = t.call(e, r);
650
+ } catch (d) {
651
+ u = [6, d], i = 0;
652
+ } finally {
653
+ a = o = 0;
654
+ }
655
+ if (u[0] & 5) throw u[1];
656
+ return { value: u[0] ? u[1] : void 0, done: !0 };
657
+ }
658
+ }
659
+ function _(e, t) {
660
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
661
+ if (!r) return e;
662
+ var a = r.call(e), i, o = [], c;
663
+ try {
664
+ for (; (t === void 0 || t-- > 0) && !(i = a.next()).done; ) o.push(i.value);
665
+ } catch (s) {
666
+ c = { error: s };
667
+ } finally {
668
+ try {
669
+ i && !i.done && (r = a.return) && r.call(a);
670
+ } finally {
671
+ if (c) throw c.error;
672
+ }
673
+ }
674
+ return o;
675
+ }
676
+ function O(e, t, r) {
677
+ if (r || arguments.length === 2) for (var a = 0, i = t.length, o; a < i; a++)
678
+ (o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
679
+ return e.concat(o || Array.prototype.slice.call(t));
680
+ }
681
+ var ue = function(e) {
682
+ return typeof e == "function";
683
+ }, pe = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
684
+ function Z(e) {
685
+ pe && (ue(e) || console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));
686
+ var t = j(e);
687
+ t.current = he(function() {
688
+ return e;
689
+ }, [e]);
690
+ var r = j();
691
+ return r.current || (r.current = function() {
692
+ for (var a = [], i = 0; i < arguments.length; i++)
693
+ a[i] = arguments[i];
694
+ return t.current.apply(this, a);
695
+ }), r.current;
696
+ }
697
+ const Be = jt(J);
698
+ var kr = function(e, t) {
699
+ var r = t.manual, a = t.ready, i = a === void 0 ? !0 : a, o = t.defaultParams, c = o === void 0 ? [] : o, s = t.refreshDeps, f = s === void 0 ? [] : s, u = t.refreshDepsAction, d = j(!1);
700
+ return d.current = !1, Be(function() {
701
+ !r && i && (d.current = !0, e.run.apply(e, O([], _(c), !1)));
702
+ }, [i]), Be(function() {
703
+ d.current || r || (d.current = !0, u ? u() : e.refresh());
704
+ }, O([], _(f), !1)), {
705
+ onBefore: function() {
706
+ if (!i)
707
+ return {
708
+ stopNow: !0
709
+ };
710
+ }
711
+ };
712
+ };
713
+ kr.onInit = function(e) {
714
+ var t = e.ready, r = t === void 0 ? !0 : t, a = e.manual;
715
+ return {
716
+ loading: !a && r
717
+ };
718
+ };
719
+ function Ge(e, t) {
720
+ if (e === t) return !0;
721
+ for (var r = 0; r < e.length; r++)
722
+ if (!Object.is(e[r], t[r])) return !1;
723
+ return !0;
724
+ }
725
+ function qr(e, t) {
726
+ var r = j({
727
+ deps: t,
728
+ obj: void 0,
729
+ initialized: !1
730
+ }).current;
731
+ return (r.initialized === !1 || !Ge(r.deps, t)) && (r.deps = t, r.obj = e(), r.initialized = !0), r.obj;
732
+ }
733
+ function He(e) {
734
+ var t = j(e);
735
+ return t.current = e, t;
736
+ }
737
+ var ye = function(e) {
738
+ pe && (ue(e) || console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));
739
+ var t = He(e);
740
+ J(function() {
741
+ return function() {
742
+ t.current();
743
+ };
744
+ }, []);
745
+ }, ge = /* @__PURE__ */ new Map(), Ot = function(e, t, r) {
746
+ var a = ge.get(e);
747
+ a != null && a.timer && clearTimeout(a.timer);
748
+ var i = void 0;
749
+ t > -1 && (i = setTimeout(function() {
750
+ ge.delete(e);
751
+ }, t)), ge.set(e, C(C({}, r), {
752
+ timer: i
753
+ }));
754
+ }, Rt = function(e) {
755
+ return ge.get(e);
756
+ }, be = /* @__PURE__ */ new Map(), xt = function(e) {
757
+ return be.get(e);
758
+ }, Pt = function(e, t) {
759
+ be.set(e, t), t.then(function(r) {
760
+ return be.delete(e), r;
761
+ }).catch(function() {
762
+ be.delete(e);
763
+ });
764
+ }, V = {}, At = function(e, t) {
765
+ V[e] && V[e].forEach(function(r) {
766
+ return r(t);
767
+ });
768
+ }, Se = function(e, t) {
769
+ return V[e] || (V[e] = []), V[e].push(t), function() {
770
+ var a = V[e].indexOf(t);
771
+ V[e].splice(a, 1);
772
+ };
773
+ }, Ct = function(e, t) {
774
+ var r = t.cacheKey, a = t.cacheTime, i = a === void 0 ? 5 * 60 * 1e3 : a, o = t.staleTime, c = o === void 0 ? 0 : o, s = t.setCache, f = t.getCache, u = j(), d = j(), l = function(m, b) {
775
+ s ? s(b) : Ot(m, i, b), At(m, b.data);
776
+ }, p = function(m, b) {
777
+ return b === void 0 && (b = []), f ? f(b) : Rt(m);
778
+ };
779
+ return qr(function() {
780
+ if (r) {
781
+ var m = p(r);
782
+ m && Object.hasOwnProperty.call(m, "data") && (e.state.data = m.data, e.state.params = m.params, (c === -1 || (/* @__PURE__ */ new Date()).getTime() - m.time <= c) && (e.state.loading = !1)), u.current = Se(r, function(b) {
783
+ e.setState({
784
+ data: b
785
+ });
786
+ });
787
+ }
788
+ }, []), ye(function() {
789
+ var m;
790
+ (m = u.current) === null || m === void 0 || m.call(u);
791
+ }), r ? {
792
+ onBefore: function(m) {
793
+ var b = p(r, m);
794
+ return !b || !Object.hasOwnProperty.call(b, "data") ? {} : c === -1 || (/* @__PURE__ */ new Date()).getTime() - b.time <= c ? {
795
+ loading: !1,
796
+ data: b == null ? void 0 : b.data,
797
+ error: void 0,
798
+ returnNow: !0
799
+ } : {
800
+ data: b == null ? void 0 : b.data,
801
+ error: void 0
802
+ };
803
+ },
804
+ onRequest: function(m, b) {
805
+ var E = xt(r);
806
+ return E && E !== d.current ? {
807
+ servicePromise: E
808
+ } : (E = m.apply(void 0, O([], _(b), !1)), d.current = E, Pt(r, E), {
809
+ servicePromise: E
810
+ });
811
+ },
812
+ onSuccess: function(m, b) {
813
+ var E;
814
+ r && ((E = u.current) === null || E === void 0 || E.call(u), l(r, {
815
+ data: m,
816
+ params: b,
817
+ time: (/* @__PURE__ */ new Date()).getTime()
818
+ }), u.current = Se(r, function(x) {
819
+ e.setState({
820
+ data: x
821
+ });
822
+ }));
823
+ },
824
+ onMutate: function(m) {
825
+ var b;
826
+ r && ((b = u.current) === null || b === void 0 || b.call(u), l(r, {
827
+ data: m,
828
+ params: e.state.params,
829
+ time: (/* @__PURE__ */ new Date()).getTime()
830
+ }), u.current = Se(r, function(E) {
831
+ e.setState({
832
+ data: E
833
+ });
834
+ }));
835
+ }
836
+ } : {};
837
+ }, Oe, dr;
838
+ function Ue() {
839
+ if (dr) return Oe;
840
+ dr = 1;
841
+ function e(t) {
842
+ var r = typeof t;
843
+ return t != null && (r == "object" || r == "function");
844
+ }
845
+ return Oe = e, Oe;
846
+ }
847
+ var Re, vr;
848
+ function Nt() {
849
+ if (vr) return Re;
850
+ vr = 1;
851
+ var e = typeof de == "object" && de && de.Object === Object && de;
852
+ return Re = e, Re;
853
+ }
854
+ var xe, gr;
855
+ function Mr() {
856
+ if (gr) return xe;
857
+ gr = 1;
858
+ var e = Nt(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
859
+ return xe = r, xe;
860
+ }
861
+ var Pe, br;
862
+ function kt() {
863
+ if (br) return Pe;
864
+ br = 1;
865
+ var e = Mr(), t = function() {
866
+ return e.Date.now();
867
+ };
868
+ return Pe = t, Pe;
869
+ }
870
+ var Ae, mr;
871
+ function qt() {
872
+ if (mr) return Ae;
873
+ mr = 1;
874
+ var e = /\s/;
875
+ function t(r) {
876
+ for (var a = r.length; a-- && e.test(r.charAt(a)); )
877
+ ;
878
+ return a;
879
+ }
880
+ return Ae = t, Ae;
881
+ }
882
+ var Ce, hr;
883
+ function Mt() {
884
+ if (hr) return Ce;
885
+ hr = 1;
886
+ var e = qt(), t = /^\s+/;
887
+ function r(a) {
888
+ return a && a.slice(0, e(a) + 1).replace(t, "");
889
+ }
890
+ return Ce = r, Ce;
891
+ }
892
+ var Ne, pr;
893
+ function Wr() {
894
+ if (pr) return Ne;
895
+ pr = 1;
896
+ var e = Mr(), t = e.Symbol;
897
+ return Ne = t, Ne;
438
898
  }
439
- var Ee;
440
- function ke() {
441
- return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? k.exports = Ce() : k.exports = he()), k.exports;
899
+ var ke, yr;
900
+ function Wt() {
901
+ if (yr) return ke;
902
+ yr = 1;
903
+ var e = Wr(), t = Object.prototype, r = t.hasOwnProperty, a = t.toString, i = e ? e.toStringTag : void 0;
904
+ function o(c) {
905
+ var s = r.call(c, i), f = c[i];
906
+ try {
907
+ c[i] = void 0;
908
+ var u = !0;
909
+ } catch {
910
+ }
911
+ var d = a.call(c);
912
+ return u && (s ? c[i] = f : delete c[i]), d;
913
+ }
914
+ return ke = o, ke;
915
+ }
916
+ var qe, Er;
917
+ function $t() {
918
+ if (Er) return qe;
919
+ Er = 1;
920
+ var e = Object.prototype, t = e.toString;
921
+ function r(a) {
922
+ return t.call(a);
923
+ }
924
+ return qe = r, qe;
925
+ }
926
+ var Me, Tr;
927
+ function Lt() {
928
+ if (Tr) return Me;
929
+ Tr = 1;
930
+ var e = Wr(), t = Wt(), r = $t(), a = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
931
+ function c(s) {
932
+ return s == null ? s === void 0 ? i : a : o && o in Object(s) ? t(s) : r(s);
933
+ }
934
+ return Me = c, Me;
935
+ }
936
+ var We, wr;
937
+ function Ft() {
938
+ if (wr) return We;
939
+ wr = 1;
940
+ function e(t) {
941
+ return t != null && typeof t == "object";
942
+ }
943
+ return We = e, We;
944
+ }
945
+ var $e, jr;
946
+ function It() {
947
+ if (jr) return $e;
948
+ jr = 1;
949
+ var e = Lt(), t = Ft(), r = "[object Symbol]";
950
+ function a(i) {
951
+ return typeof i == "symbol" || t(i) && e(i) == r;
952
+ }
953
+ return $e = a, $e;
954
+ }
955
+ var Le, _r;
956
+ function Bt() {
957
+ if (_r) return Le;
958
+ _r = 1;
959
+ var e = Mt(), t = Ue(), r = It(), a = NaN, i = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, c = /^0o[0-7]+$/i, s = parseInt;
960
+ function f(u) {
961
+ if (typeof u == "number")
962
+ return u;
963
+ if (r(u))
964
+ return a;
965
+ if (t(u)) {
966
+ var d = typeof u.valueOf == "function" ? u.valueOf() : u;
967
+ u = t(d) ? d + "" : d;
968
+ }
969
+ if (typeof u != "string")
970
+ return u === 0 ? u : +u;
971
+ u = e(u);
972
+ var l = o.test(u);
973
+ return l || c.test(u) ? s(u.slice(2), l ? 2 : 8) : i.test(u) ? a : +u;
974
+ }
975
+ return Le = f, Le;
976
+ }
977
+ var Fe, Sr;
978
+ function $r() {
979
+ if (Sr) return Fe;
980
+ Sr = 1;
981
+ var e = Ue(), t = kt(), r = Bt(), a = "Expected a function", i = Math.max, o = Math.min;
982
+ function c(s, f, u) {
983
+ var d, l, p, m, b, E, x = 0, M = !1, N = !1, W = !0;
984
+ if (typeof s != "function")
985
+ throw new TypeError(a);
986
+ f = r(f) || 0, e(u) && (M = !!u.leading, N = "maxWait" in u, p = N ? i(r(u.maxWait) || 0, f) : p, W = "trailing" in u ? !!u.trailing : W);
987
+ function k(T) {
988
+ var A = d, L = l;
989
+ return d = l = void 0, x = T, m = s.apply(L, A), m;
990
+ }
991
+ function Y(T) {
992
+ return x = T, b = setTimeout(P, f), M ? k(T) : m;
993
+ }
994
+ function B(T) {
995
+ var A = T - E, L = T - x, fe = f - A;
996
+ return N ? o(fe, p - L) : fe;
997
+ }
998
+ function $(T) {
999
+ var A = T - E, L = T - x;
1000
+ return E === void 0 || A >= f || A < 0 || N && L >= p;
1001
+ }
1002
+ function P() {
1003
+ var T = t();
1004
+ if ($(T))
1005
+ return Q(T);
1006
+ b = setTimeout(P, B(T));
1007
+ }
1008
+ function Q(T) {
1009
+ return b = void 0, W && d ? k(T) : (d = l = void 0, m);
1010
+ }
1011
+ function se() {
1012
+ b !== void 0 && clearTimeout(b), x = 0, d = E = l = b = void 0;
1013
+ }
1014
+ function K() {
1015
+ return b === void 0 ? m : Q(t());
1016
+ }
1017
+ function H() {
1018
+ var T = t(), A = $(T);
1019
+ if (d = arguments, l = this, E = T, A) {
1020
+ if (b === void 0)
1021
+ return Y(E);
1022
+ if (N)
1023
+ return clearTimeout(b), b = setTimeout(P, f), k(E);
1024
+ }
1025
+ return b === void 0 && (b = setTimeout(P, f)), m;
1026
+ }
1027
+ return H.cancel = se, H.flush = K, H;
1028
+ }
1029
+ return Fe = c, Fe;
1030
+ }
1031
+ var Gt = $r();
1032
+ const Yt = /* @__PURE__ */ Ye(Gt);
1033
+ var Ht = function(e, t) {
1034
+ var r = t.debounceWait, a = t.debounceLeading, i = t.debounceTrailing, o = t.debounceMaxWait, c = j(), s = he(function() {
1035
+ var f = {};
1036
+ return a !== void 0 && (f.leading = a), i !== void 0 && (f.trailing = i), o !== void 0 && (f.maxWait = o), f;
1037
+ }, [a, i, o]);
1038
+ return J(function() {
1039
+ if (r) {
1040
+ var f = e.runAsync.bind(e);
1041
+ return c.current = Yt(function(u) {
1042
+ u();
1043
+ }, r, s), e.runAsync = function() {
1044
+ for (var u = [], d = 0; d < arguments.length; d++)
1045
+ u[d] = arguments[d];
1046
+ return new Promise(function(l, p) {
1047
+ var m;
1048
+ (m = c.current) === null || m === void 0 || m.call(c, function() {
1049
+ f.apply(void 0, O([], _(u), !1)).then(l).catch(p);
1050
+ });
1051
+ });
1052
+ }, function() {
1053
+ var u;
1054
+ (u = c.current) === null || u === void 0 || u.cancel(), e.runAsync = f;
1055
+ };
1056
+ }
1057
+ }, [r, s]), r ? {
1058
+ onCancel: function() {
1059
+ var f;
1060
+ (f = c.current) === null || f === void 0 || f.cancel();
1061
+ }
1062
+ } : {};
1063
+ }, Ut = function(e, t) {
1064
+ var r = t.loadingDelay, a = t.ready, i = j();
1065
+ if (!r)
1066
+ return {};
1067
+ var o = function() {
1068
+ i.current && clearTimeout(i.current);
1069
+ };
1070
+ return {
1071
+ onBefore: function() {
1072
+ return o(), a !== !1 && (i.current = setTimeout(function() {
1073
+ e.setState({
1074
+ loading: !0
1075
+ });
1076
+ }, r)), {
1077
+ loading: !1
1078
+ };
1079
+ },
1080
+ onFinally: function() {
1081
+ o();
1082
+ },
1083
+ onCancel: function() {
1084
+ o();
1085
+ }
1086
+ };
1087
+ }, ce = !!(typeof window < "u" && window.document && window.document.createElement);
1088
+ function ze() {
1089
+ return ce ? document.visibilityState !== "hidden" : !0;
1090
+ }
1091
+ var oe = [];
1092
+ function zt(e) {
1093
+ return oe.push(e), function() {
1094
+ var r = oe.indexOf(e);
1095
+ oe.splice(r, 1);
1096
+ };
1097
+ }
1098
+ if (ce) {
1099
+ var Dt = function() {
1100
+ if (ze())
1101
+ for (var e = 0; e < oe.length; e++) {
1102
+ var t = oe[e];
1103
+ t();
1104
+ }
1105
+ };
1106
+ window.addEventListener("visibilitychange", Dt, !1);
1107
+ }
1108
+ var Vt = function(e, t) {
1109
+ var r = t.pollingInterval, a = t.pollingWhenHidden, i = a === void 0 ? !0 : a, o = t.pollingErrorRetryCount, c = o === void 0 ? -1 : o, s = j(), f = j(), u = j(0), d = function() {
1110
+ var l;
1111
+ s.current && clearTimeout(s.current), (l = f.current) === null || l === void 0 || l.call(f);
1112
+ };
1113
+ return Be(function() {
1114
+ r || d();
1115
+ }, [r]), r ? {
1116
+ onBefore: function() {
1117
+ d();
1118
+ },
1119
+ onError: function() {
1120
+ u.current += 1;
1121
+ },
1122
+ onSuccess: function() {
1123
+ u.current = 0;
1124
+ },
1125
+ onFinally: function() {
1126
+ c === -1 || // When an error occurs, the request is not repeated after pollingErrorRetryCount retries
1127
+ c !== -1 && u.current <= c ? s.current = setTimeout(function() {
1128
+ !i && !ze() ? f.current = zt(function() {
1129
+ e.refresh();
1130
+ }) : e.refresh();
1131
+ }, r) : u.current = 0;
1132
+ },
1133
+ onCancel: function() {
1134
+ d();
1135
+ }
1136
+ } : {};
1137
+ };
1138
+ function Jt(e, t) {
1139
+ var r = !1;
1140
+ return function() {
1141
+ for (var a = [], i = 0; i < arguments.length; i++)
1142
+ a[i] = arguments[i];
1143
+ r || (r = !0, e.apply(void 0, O([], _(a), !1)), setTimeout(function() {
1144
+ r = !1;
1145
+ }, t));
1146
+ };
1147
+ }
1148
+ function Xt() {
1149
+ return ce && typeof navigator.onLine < "u" ? navigator.onLine : !0;
1150
+ }
1151
+ var ie = [];
1152
+ function Zt(e) {
1153
+ return ie.push(e), function() {
1154
+ var r = ie.indexOf(e);
1155
+ r > -1 && ie.splice(r, 1);
1156
+ };
1157
+ }
1158
+ if (ce) {
1159
+ var Or = function() {
1160
+ if (!(!ze() || !Xt()))
1161
+ for (var e = 0; e < ie.length; e++) {
1162
+ var t = ie[e];
1163
+ t();
1164
+ }
1165
+ };
1166
+ window.addEventListener("visibilitychange", Or, !1), window.addEventListener("focus", Or, !1);
1167
+ }
1168
+ var Qt = function(e, t) {
1169
+ var r = t.refreshOnWindowFocus, a = t.focusTimespan, i = a === void 0 ? 5e3 : a, o = j(), c = function() {
1170
+ var s;
1171
+ (s = o.current) === null || s === void 0 || s.call(o);
1172
+ };
1173
+ return J(function() {
1174
+ if (r) {
1175
+ var s = Jt(e.refresh.bind(e), i);
1176
+ o.current = Zt(function() {
1177
+ s();
1178
+ });
1179
+ }
1180
+ return function() {
1181
+ c();
1182
+ };
1183
+ }, [r, i]), ye(function() {
1184
+ c();
1185
+ }), {};
1186
+ }, Kt = function(e, t) {
1187
+ var r = t.retryInterval, a = t.retryCount, i = j(), o = j(0), c = j(!1);
1188
+ return a ? {
1189
+ onBefore: function() {
1190
+ c.current || (o.current = 0), c.current = !1, i.current && clearTimeout(i.current);
1191
+ },
1192
+ onSuccess: function() {
1193
+ o.current = 0;
1194
+ },
1195
+ onError: function() {
1196
+ if (o.current += 1, a === -1 || o.current <= a) {
1197
+ var s = r ?? Math.min(1e3 * Math.pow(2, o.current), 3e4);
1198
+ i.current = setTimeout(function() {
1199
+ c.current = !0, e.refresh();
1200
+ }, s);
1201
+ } else
1202
+ o.current = 0;
1203
+ },
1204
+ onCancel: function() {
1205
+ o.current = 0, i.current && clearTimeout(i.current);
1206
+ }
1207
+ } : {};
1208
+ }, Ie, Rr;
1209
+ function en() {
1210
+ if (Rr) return Ie;
1211
+ Rr = 1;
1212
+ var e = $r(), t = Ue(), r = "Expected a function";
1213
+ function a(i, o, c) {
1214
+ var s = !0, f = !0;
1215
+ if (typeof i != "function")
1216
+ throw new TypeError(r);
1217
+ return t(c) && (s = "leading" in c ? !!c.leading : s, f = "trailing" in c ? !!c.trailing : f), e(i, o, {
1218
+ leading: s,
1219
+ maxWait: o,
1220
+ trailing: f
1221
+ });
1222
+ }
1223
+ return Ie = a, Ie;
1224
+ }
1225
+ var rn = en();
1226
+ const tn = /* @__PURE__ */ Ye(rn);
1227
+ var nn = function(e, t) {
1228
+ var r = t.throttleWait, a = t.throttleLeading, i = t.throttleTrailing, o = j(), c = {};
1229
+ return a !== void 0 && (c.leading = a), i !== void 0 && (c.trailing = i), J(function() {
1230
+ if (r) {
1231
+ var s = e.runAsync.bind(e);
1232
+ return o.current = tn(function(f) {
1233
+ f();
1234
+ }, r, c), e.runAsync = function() {
1235
+ for (var f = [], u = 0; u < arguments.length; u++)
1236
+ f[u] = arguments[u];
1237
+ return new Promise(function(d, l) {
1238
+ var p;
1239
+ (p = o.current) === null || p === void 0 || p.call(o, function() {
1240
+ s.apply(void 0, O([], _(f), !1)).then(d).catch(l);
1241
+ });
1242
+ });
1243
+ }, function() {
1244
+ var f;
1245
+ e.runAsync = s, (f = o.current) === null || f === void 0 || f.cancel();
1246
+ };
1247
+ }
1248
+ }, [r, a, i]), r ? {
1249
+ onCancel: function() {
1250
+ var s;
1251
+ (s = o.current) === null || s === void 0 || s.cancel();
1252
+ }
1253
+ } : {};
1254
+ }, an = function(e) {
1255
+ pe && (ue(e) || console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e, '".'))), J(function() {
1256
+ e == null || e();
1257
+ }, []);
1258
+ }, on = function() {
1259
+ var e = _(Ar({}), 2), t = e[1];
1260
+ return Yr(function() {
1261
+ return t({});
1262
+ }, []);
1263
+ }, un = (
1264
+ /** @class */
1265
+ function() {
1266
+ function e(t, r, a, i) {
1267
+ i === void 0 && (i = {}), this.serviceRef = t, this.options = r, this.subscribe = a, this.initState = i, this.count = 0, this.state = {
1268
+ loading: !1,
1269
+ params: void 0,
1270
+ data: void 0,
1271
+ error: void 0
1272
+ }, this.state = C(C(C({}, this.state), {
1273
+ loading: !r.manual
1274
+ }), i);
1275
+ }
1276
+ return e.prototype.setState = function(t) {
1277
+ t === void 0 && (t = {}), this.state = C(C({}, this.state), t), this.subscribe();
1278
+ }, e.prototype.runPluginHandler = function(t) {
1279
+ for (var r = [], a = 1; a < arguments.length; a++)
1280
+ r[a - 1] = arguments[a];
1281
+ var i = this.pluginImpls.map(function(o) {
1282
+ var c;
1283
+ return (c = o[t]) === null || c === void 0 ? void 0 : c.call.apply(c, O([o], _(r), !1));
1284
+ }).filter(Boolean);
1285
+ return Object.assign.apply(Object, O([{}], _(i), !1));
1286
+ }, e.prototype.runAsync = function() {
1287
+ for (var t = [], r = 0; r < arguments.length; r++)
1288
+ t[r] = arguments[r];
1289
+ return _t(this, void 0, void 0, function() {
1290
+ var a, i, o, c, s, f, u, d, l, p, m, b, E, x, M, N, W, k, Y, B, $;
1291
+ return St(this, function(P) {
1292
+ switch (P.label) {
1293
+ case 0:
1294
+ if (this.count += 1, a = this.count, i = this.runPluginHandler("onBefore", t), o = i.stopNow, c = o === void 0 ? !1 : o, s = i.returnNow, f = s === void 0 ? !1 : s, u = Nr(i, ["stopNow", "returnNow"]), c)
1295
+ return [2, new Promise(function() {
1296
+ })];
1297
+ if (this.setState(C({
1298
+ loading: !0,
1299
+ params: t
1300
+ }, u)), f)
1301
+ return [2, Promise.resolve(u.data)];
1302
+ (E = (b = this.options).onBefore) === null || E === void 0 || E.call(b, t), P.label = 1;
1303
+ case 1:
1304
+ return P.trys.push([1, 3, , 4]), d = this.runPluginHandler("onRequest", this.serviceRef.current, t).servicePromise, d || (d = (m = this.serviceRef).current.apply(m, O([], _(t), !1))), [4, d];
1305
+ case 2:
1306
+ return l = P.sent(), a !== this.count ? [2, new Promise(function() {
1307
+ })] : (this.setState({
1308
+ data: l,
1309
+ error: void 0,
1310
+ loading: !1
1311
+ }), (M = (x = this.options).onSuccess) === null || M === void 0 || M.call(x, l, t), this.runPluginHandler("onSuccess", l, t), (W = (N = this.options).onFinally) === null || W === void 0 || W.call(N, t, l, void 0), a === this.count && this.runPluginHandler("onFinally", t, l, void 0), [2, l]);
1312
+ case 3:
1313
+ if (p = P.sent(), a !== this.count)
1314
+ return [2, new Promise(function() {
1315
+ })];
1316
+ throw this.setState({
1317
+ error: p,
1318
+ loading: !1
1319
+ }), (Y = (k = this.options).onError) === null || Y === void 0 || Y.call(k, p, t), this.runPluginHandler("onError", p, t), ($ = (B = this.options).onFinally) === null || $ === void 0 || $.call(B, t, void 0, p), a === this.count && this.runPluginHandler("onFinally", t, void 0, p), p;
1320
+ case 4:
1321
+ return [
1322
+ 2
1323
+ /*return*/
1324
+ ];
1325
+ }
1326
+ });
1327
+ });
1328
+ }, e.prototype.run = function() {
1329
+ for (var t = this, r = [], a = 0; a < arguments.length; a++)
1330
+ r[a] = arguments[a];
1331
+ this.runAsync.apply(this, O([], _(r), !1)).catch(function(i) {
1332
+ t.options.onError || console.error(i);
1333
+ });
1334
+ }, e.prototype.cancel = function() {
1335
+ this.count += 1, this.setState({
1336
+ loading: !1
1337
+ }), this.runPluginHandler("onCancel");
1338
+ }, e.prototype.refresh = function() {
1339
+ this.run.apply(this, O([], _(this.state.params || []), !1));
1340
+ }, e.prototype.refreshAsync = function() {
1341
+ return this.runAsync.apply(this, O([], _(this.state.params || []), !1));
1342
+ }, e.prototype.mutate = function(t) {
1343
+ var r = ue(t) ? t(this.state.data) : t;
1344
+ this.runPluginHandler("onMutate", r), this.setState({
1345
+ data: r
1346
+ });
1347
+ }, e;
1348
+ }()
1349
+ );
1350
+ function cn(e, t, r) {
1351
+ t === void 0 && (t = {}), r === void 0 && (r = []);
1352
+ var a = t.manual, i = a === void 0 ? !1 : a, o = t.ready, c = o === void 0 ? !0 : o, s = Nr(t, ["manual", "ready"]);
1353
+ pe && t.defaultParams && !Array.isArray(t.defaultParams) && console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));
1354
+ var f = C({
1355
+ manual: i,
1356
+ ready: c
1357
+ }, s), u = He(e), d = on(), l = qr(function() {
1358
+ var p = r.map(function(m) {
1359
+ var b;
1360
+ return (b = m == null ? void 0 : m.onInit) === null || b === void 0 ? void 0 : b.call(m, f);
1361
+ }).filter(Boolean);
1362
+ return new un(u, f, d, Object.assign.apply(Object, O([{}], _(p), !1)));
1363
+ }, []);
1364
+ return l.options = f, l.pluginImpls = r.map(function(p) {
1365
+ return p(l, f);
1366
+ }), an(function() {
1367
+ if (!i && c) {
1368
+ var p = l.state.params || t.defaultParams || [];
1369
+ l.run.apply(l, O([], _(p), !1));
1370
+ }
1371
+ }), ye(function() {
1372
+ l.cancel();
1373
+ }), {
1374
+ loading: l.state.loading,
1375
+ data: l.state.data,
1376
+ error: l.state.error,
1377
+ params: l.state.params || [],
1378
+ cancel: Z(l.cancel.bind(l)),
1379
+ refresh: Z(l.refresh.bind(l)),
1380
+ refreshAsync: Z(l.refreshAsync.bind(l)),
1381
+ run: Z(l.run.bind(l)),
1382
+ runAsync: Z(l.runAsync.bind(l)),
1383
+ mutate: Z(l.mutate.bind(l))
1384
+ };
1385
+ }
1386
+ function sn(e, t, r) {
1387
+ return cn(e, t, O(O([], _(r || []), !1), [Ht, Ut, Vt, Qt, nn, kr, Ct, Kt], !1));
1388
+ }
1389
+ function fn(e, t) {
1390
+ var r = _(Ar(e), 2), a = r[0], i = r[1], o = he(function() {
1391
+ var c = !0, s = function() {
1392
+ return i(function(l) {
1393
+ return l === e ? c : e;
1394
+ });
1395
+ }, f = function(l) {
1396
+ return i(l);
1397
+ }, u = function() {
1398
+ return i(e);
1399
+ }, d = function() {
1400
+ return i(c);
1401
+ };
1402
+ return {
1403
+ toggle: s,
1404
+ set: f,
1405
+ setLeft: u,
1406
+ setRight: d
1407
+ };
1408
+ }, []);
1409
+ return [a, o];
1410
+ }
1411
+ function ln(e) {
1412
+ var t = _(fn(!1), 2), r = t[0], a = t[1], i = a.toggle, o = a.set, c = he(function() {
1413
+ var s = function() {
1414
+ return o(!0);
1415
+ }, f = function() {
1416
+ return o(!1);
1417
+ };
1418
+ return {
1419
+ toggle: i,
1420
+ set: function(u) {
1421
+ return o(!!u);
1422
+ },
1423
+ setTrue: s,
1424
+ setFalse: f
1425
+ };
1426
+ }, []);
1427
+ return [r, c];
1428
+ }
1429
+ function Lr(e, t) {
1430
+ if (ce) {
1431
+ if (!e)
1432
+ return t;
1433
+ var r;
1434
+ return ue(e) ? r = e() : "current" in e ? r = e.current : r = e, r;
1435
+ }
1436
+ }
1437
+ var dn = function(e) {
1438
+ var t = function(r, a, i) {
1439
+ var o = j(!1), c = j([]), s = j([]), f = j();
1440
+ e(function() {
1441
+ var u, d = Array.isArray(i) ? i : [i], l = d.map(function(p) {
1442
+ return Lr(p);
1443
+ });
1444
+ if (!o.current) {
1445
+ o.current = !0, c.current = l, s.current = a, f.current = r();
1446
+ return;
1447
+ }
1448
+ (l.length !== c.current.length || !Ge(c.current, l) || !Ge(s.current, a)) && ((u = f.current) === null || u === void 0 || u.call(f), c.current = l, s.current = a, f.current = r());
1449
+ }), ye(function() {
1450
+ var u;
1451
+ (u = f.current) === null || u === void 0 || u.call(f), o.current = !1;
1452
+ });
1453
+ };
1454
+ return t;
1455
+ }, vn = dn(J);
1456
+ function xr(e, t, r) {
1457
+ r === void 0 && (r = {});
1458
+ var a = r.enable, i = a === void 0 ? !0 : a, o = He(t);
1459
+ vn(function() {
1460
+ if (i) {
1461
+ var c = Lr(r.target, window);
1462
+ if (c != null && c.addEventListener) {
1463
+ var s = function(u) {
1464
+ return o.current(u);
1465
+ }, f = Array.isArray(e) ? e : [e];
1466
+ return f.forEach(function(u) {
1467
+ c.addEventListener(u, s, {
1468
+ capture: r.capture,
1469
+ once: r.once,
1470
+ passive: r.passive
1471
+ });
1472
+ }), function() {
1473
+ f.forEach(function(u) {
1474
+ c.removeEventListener(u, s, {
1475
+ capture: r.capture
1476
+ });
1477
+ });
1478
+ };
1479
+ }
1480
+ }
1481
+ }, [e, r.capture, r.once, r.passive, i], r.target);
1482
+ }
1483
+ const gn = function(e, t) {
1484
+ var r = {}, a = r.onEnter, i = r.onLeave, o = r.onChange, c = _(ln(), 2), s = c[0], f = c[1], u = f.setTrue, d = f.setFalse;
1485
+ return xr("mouseenter", function() {
1486
+ a == null || a(), u(), o == null || o(!0);
1487
+ }, {
1488
+ target: e
1489
+ }), xr("mouseleave", function() {
1490
+ i == null || i(), d(), o == null || o(!1);
1491
+ }, {
1492
+ target: e
1493
+ }), s;
1494
+ }, bn = Hr(
1495
+ ({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */ q.jsx(
1496
+ "svg",
1497
+ {
1498
+ className: `iconfont-symbol ${e} ${t}`,
1499
+ "aria-hidden": "true",
1500
+ ref: i,
1501
+ ...a,
1502
+ children: /* @__PURE__ */ q.jsx("use", { xlinkHref: `#${e}` })
1503
+ }
1504
+ ) : /* @__PURE__ */ q.jsx(
1505
+ "i",
1506
+ {
1507
+ className: `iconfont ${e} ${t}`,
1508
+ ref: i,
1509
+ ...a
1510
+ }
1511
+ )
1512
+ ), mn = "_btn_icon__warp_ay6he_1", hn = {
1513
+ btn_icon__warp: mn
1514
+ }, pn = (e, t) => {
1515
+ const r = j(null), {
1516
+ icon: a,
1517
+ tooltipDisabled: i = !1,
1518
+ onClick: o = ht,
1519
+ disabled: c,
1520
+ size: s = "middle",
1521
+ style: f = {},
1522
+ className: u,
1523
+ loading: d = !1,
1524
+ ...l
1525
+ } = e, p = gn(r), m = () => yt(a) && a.includes("icon-") ? /* @__PURE__ */ q.jsx(bn, { type: a }) : a, b = /* @__PURE__ */ q.jsx(
1526
+ Dr,
1527
+ {
1528
+ onClick: o,
1529
+ size: s,
1530
+ disabled: c,
1531
+ style: f,
1532
+ ref: t,
1533
+ loading: d,
1534
+ className: wt([u, hn.btn_icon__warp]),
1535
+ icon: m()
1536
+ }
1537
+ );
1538
+ if (!a)
1539
+ throw new Error("IconButton 组件必须传入 icon 属性");
1540
+ return /* @__PURE__ */ q.jsxs(Ur, { children: [
1541
+ i && b,
1542
+ !i && /* @__PURE__ */ q.jsx(
1543
+ Vr,
1544
+ {
1545
+ open: p,
1546
+ trigger: "contextMenu",
1547
+ destroyTooltipOnHide: !0,
1548
+ ...l,
1549
+ children: /* @__PURE__ */ q.jsx(
1550
+ "span",
1551
+ {
1552
+ ref: r,
1553
+ style: { display: "inline-block" },
1554
+ className: "icon-button-box",
1555
+ children: b
1556
+ }
1557
+ )
1558
+ }
1559
+ )
1560
+ ] });
1561
+ }, _n = Pr.forwardRef(pn), Sn = ({
1562
+ checked: e,
1563
+ onChange: t,
1564
+ trueValue: r = !0,
1565
+ falseValue: a = !1,
1566
+ ...i
1567
+ }) => {
1568
+ const o = e === r, c = (s, f) => {
1569
+ t == null || t(s ? r : a, f);
1570
+ };
1571
+ return /* @__PURE__ */ q.jsx(
1572
+ Jr,
1573
+ {
1574
+ checked: o,
1575
+ onChange: c,
1576
+ ...i
1577
+ }
1578
+ );
1579
+ };
1580
+ let Fr = Xr, yn = Zr, En = Qr;
1581
+ function On({ children: e }) {
1582
+ const t = Kr.useApp();
1583
+ return Fr = t.message, En = t.modal, yn = t.notification, e;
1584
+ }
1585
+ function Rn(e, t, r) {
1586
+ const a = sn(e, {
1587
+ ...t,
1588
+ onError(o, c) {
1589
+ var s;
1590
+ ((t == null ? void 0 : t.errorMessage) ?? !0) && Fr.error(o.message), (s = t == null ? void 0 : t.onError) == null || s.call(t, o, c);
1591
+ }
1592
+ }, r), i = a.data && typeof a.data == "object" && "data" in a.data ? a.data.data : a.data;
1593
+ return {
1594
+ ...a,
1595
+ data: i
1596
+ };
442
1597
  }
443
- var Oe = ke();
444
- const Ne = (s) => /* @__PURE__ */ Oe.jsx(je, { ...s });
445
1598
  export {
446
- Ne as Button
1599
+ On as App,
1600
+ jn as CheckboxValue,
1601
+ _n as IconButton,
1602
+ bn as IconFont,
1603
+ Sn as SwitchValue,
1604
+ Fr as message,
1605
+ En as modal,
1606
+ yn as notification,
1607
+ Rn as useRequest
447
1608
  };