xmirror-components 1.0.4 → 1.0.6

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.
@@ -1,10 +1,14 @@
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;
1
+ import { message as qe, notification as Ve, Modal as Be, App as ze, Button as Ge, Tooltip as He } from "antd";
2
+ import Oe, { useRef as R, useEffect as Re, useState as Ie, useMemo as Ae, forwardRef as Je, Fragment as Xe } from "react";
3
+ let Ze = qe, Qe = Ve, Ke = Be;
4
+ function Wr({ children: r }) {
5
+ const c = ze.useApp();
6
+ return Ze = c.message, Ke = c.modal, Qe = c.notification, r;
6
7
  }
7
- var ve = { exports: {} }, te = {};
8
+ function De(r) {
9
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
10
+ }
11
+ var W = { exports: {} }, P = {};
8
12
  /**
9
13
  * @license React
10
14
  * react-jsx-runtime.production.js
@@ -14,29 +18,29 @@ var ve = { exports: {} }, te = {};
14
18
  * This source code is licensed under the MIT license found in the
15
19
  * LICENSE file in the root directory of this source tree.
16
20
  */
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
21
+ var _e;
22
+ function er() {
23
+ if (_e) return P;
24
+ _e = 1;
25
+ var r = Symbol.for("react.transitional.element"), c = Symbol.for("react.fragment");
26
+ function o(f, u, a) {
27
+ var i = null;
28
+ if (a !== void 0 && (i = "" + a), u.key !== void 0 && (i = "" + u.key), "key" in u) {
29
+ a = {};
30
+ for (var v in u)
31
+ v !== "key" && (a[v] = u[v]);
32
+ } else a = u;
33
+ return u = a.ref, {
34
+ $$typeof: r,
35
+ type: f,
36
+ key: i,
37
+ ref: u !== void 0 ? u : null,
38
+ props: a
35
39
  };
36
40
  }
37
- return te.Fragment = t, te.jsx = r, te.jsxs = r, te;
41
+ return P.Fragment = c, P.jsx = o, P.jsxs = o, P;
38
42
  }
39
- var ne = {};
43
+ var $ = {};
40
44
  /**
41
45
  * @license React
42
46
  * react-jsx-runtime.development.js
@@ -46,1563 +50,690 @@ var ne = {};
46
50
  * This source code is licensed under the MIT license found in the
47
51
  * LICENSE file in the root directory of this source tree.
48
52
  */
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:
53
+ var Te;
54
+ function rr() {
55
+ return Te || (Te = 1, process.env.NODE_ENV !== "production" && function() {
56
+ function r(e) {
57
+ if (e == null) return null;
58
+ if (typeof e == "function")
59
+ return e.$$typeof === Ue ? null : e.displayName || e.name || null;
60
+ if (typeof e == "string") return e;
61
+ switch (e) {
62
+ case V:
59
63
  return "Fragment";
60
- case Y:
64
+ case Me:
61
65
  return "Portal";
62
- case P:
66
+ case ne:
63
67
  return "Profiler";
64
- case $:
68
+ case te:
65
69
  return "StrictMode";
66
- case H:
70
+ case z:
67
71
  return "Suspense";
68
- case T:
72
+ case G:
69
73
  return "SuspenseList";
70
74
  }
71
- if (typeof n == "object")
72
- switch (typeof n.tag == "number" && console.error(
75
+ if (typeof e == "object")
76
+ switch (typeof e.tag == "number" && console.error(
73
77
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
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";
84
- case L:
85
- v = n._payload, n = n._init;
78
+ ), e.$$typeof) {
79
+ case ae:
80
+ return (e.displayName || "Context") + ".Provider";
81
+ case oe:
82
+ return (e._context.displayName || "Context") + ".Consumer";
83
+ case B:
84
+ var t = e.render;
85
+ return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
86
+ case H:
87
+ return t = e.displayName || null, t !== null ? t : r(e.type) || "Memo";
88
+ case I:
89
+ t = e._payload, e = e._init;
86
90
  try {
87
- return e(n(v));
91
+ return r(e(t));
88
92
  } catch {
89
93
  }
90
94
  }
91
95
  return null;
92
96
  }
93
- function t(n) {
94
- return "" + n;
97
+ function c(e) {
98
+ return "" + e;
95
99
  }
96
- function r(n) {
100
+ function o(e) {
97
101
  try {
98
- t(n);
99
- var v = !1;
102
+ c(e);
103
+ var t = !1;
100
104
  } catch {
101
- v = !0;
105
+ t = !0;
102
106
  }
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,
107
+ if (t) {
108
+ t = console;
109
+ var n = t.error, l = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
110
+ return n.call(
111
+ t,
108
112
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
- y
110
- ), t(n);
113
+ l
114
+ ), c(e);
111
115
  }
112
116
  }
113
- function a() {
117
+ function f() {
114
118
  }
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 = {
119
+ function u() {
120
+ if (N === 0) {
121
+ se = console.log, ce = console.info, fe = console.warn, le = console.error, ve = console.group, de = console.groupCollapsed, ge = console.groupEnd;
122
+ var e = {
119
123
  configurable: !0,
120
124
  enumerable: !0,
121
- value: a,
125
+ value: f,
122
126
  writable: !0
123
127
  };
124
128
  Object.defineProperties(console, {
125
- info: n,
126
- log: n,
127
- warn: n,
128
- error: n,
129
- group: n,
130
- groupCollapsed: n,
131
- groupEnd: n
129
+ info: e,
130
+ log: e,
131
+ warn: e,
132
+ error: e,
133
+ group: e,
134
+ groupCollapsed: e,
135
+ groupEnd: e
132
136
  });
133
137
  }
134
- ee++;
138
+ N++;
135
139
  }
136
- function o() {
137
- if (ee--, ee === 0) {
138
- var n = { configurable: !0, enumerable: !0, writable: !0 };
140
+ function a() {
141
+ if (N--, N === 0) {
142
+ var e = { configurable: !0, enumerable: !0, writable: !0 };
139
143
  Object.defineProperties(console, {
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 })
144
+ log: x({}, e, { value: se }),
145
+ info: x({}, e, { value: ce }),
146
+ warn: x({}, e, { value: fe }),
147
+ error: x({}, e, { value: le }),
148
+ group: x({}, e, { value: ve }),
149
+ groupCollapsed: x({}, e, { value: de }),
150
+ groupEnd: x({}, e, { value: ge })
147
151
  });
148
152
  }
149
- 0 > ee && console.error(
153
+ 0 > N && console.error(
150
154
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
151
155
  );
152
156
  }
153
- function c(n) {
154
- if (Te === void 0)
157
+ function i(e) {
158
+ if (X === void 0)
155
159
  try {
156
160
  throw Error();
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" : "";
161
+ } catch (n) {
162
+ var t = n.stack.trim().match(/\n( *(at )?)/);
163
+ X = t && t[1] || "", be = -1 < n.stack.indexOf(`
164
+ at`) ? " (<anonymous>)" : -1 < n.stack.indexOf("@") ? "@unknown:0:0" : "";
161
165
  }
162
166
  return `
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();
167
+ ` + X + e + be;
168
+ }
169
+ function v(e, t) {
170
+ if (!e || Z) return "";
171
+ var n = Q.get(e);
172
+ if (n !== void 0) return n;
173
+ Z = !0, n = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
174
+ var l = null;
175
+ l = w.H, w.H = null, u();
172
176
  try {
173
- var S = {
177
+ var E = {
174
178
  DetermineComponentFrameRoot: function() {
175
179
  try {
176
- if (v) {
177
- var G = function() {
180
+ if (t) {
181
+ var h = function() {
178
182
  throw Error();
179
183
  };
180
- if (Object.defineProperty(G.prototype, "props", {
184
+ if (Object.defineProperty(h.prototype, "props", {
181
185
  set: function() {
182
186
  throw Error();
183
187
  }
184
188
  }), typeof Reflect == "object" && Reflect.construct) {
185
189
  try {
186
- Reflect.construct(G, []);
187
- } catch (I) {
188
- var le = I;
190
+ Reflect.construct(h, []);
191
+ } catch (T) {
192
+ var M = T;
189
193
  }
190
- Reflect.construct(n, [], G);
194
+ Reflect.construct(e, [], h);
191
195
  } else {
192
196
  try {
193
- G.call();
194
- } catch (I) {
195
- le = I;
197
+ h.call();
198
+ } catch (T) {
199
+ M = T;
196
200
  }
197
- n.call(G.prototype);
201
+ e.call(h.prototype);
198
202
  }
199
203
  } else {
200
204
  try {
201
205
  throw Error();
202
- } catch (I) {
203
- le = I;
206
+ } catch (T) {
207
+ M = T;
204
208
  }
205
- (G = n()) && typeof G.catch == "function" && G.catch(function() {
209
+ (h = e()) && typeof h.catch == "function" && h.catch(function() {
206
210
  });
207
211
  }
208
- } catch (I) {
209
- if (I && le && typeof I.stack == "string")
210
- return [I.stack, le.stack];
212
+ } catch (T) {
213
+ if (T && M && typeof T.stack == "string")
214
+ return [T.stack, M.stack];
211
215
  }
212
216
  return [null, null];
213
217
  }
214
218
  };
215
- S.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
216
- var w = Object.getOwnPropertyDescriptor(
217
- S.DetermineComponentFrameRoot,
219
+ E.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
220
+ var g = Object.getOwnPropertyDescriptor(
221
+ E.DetermineComponentFrameRoot,
218
222
  "name"
219
223
  );
220
- w && w.configurable && Object.defineProperty(
221
- S.DetermineComponentFrameRoot,
224
+ g && g.configurable && Object.defineProperty(
225
+ E.DetermineComponentFrameRoot,
222
226
  "name",
223
227
  { value: "DetermineComponentFrameRoot" }
224
228
  );
225
- var h = S.DetermineComponentFrameRoot(), F = h[0], X = h[1];
226
- if (F && X) {
227
- var R = F.split(`
228
- `), D = X.split(`
229
+ var s = E.DetermineComponentFrameRoot(), _ = s[0], O = s[1];
230
+ if (_ && O) {
231
+ var m = _.split(`
232
+ `), S = O.split(`
229
233
  `);
230
- for (h = w = 0; w < R.length && !R[w].includes(
234
+ for (s = g = 0; g < m.length && !m[g].includes(
231
235
  "DetermineComponentFrameRoot"
232
236
  ); )
233
- w++;
234
- for (; h < D.length && !D[h].includes(
237
+ g++;
238
+ for (; s < S.length && !S[s].includes(
235
239
  "DetermineComponentFrameRoot"
236
240
  ); )
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)
241
+ s++;
242
+ if (g === m.length || s === S.length)
243
+ for (g = m.length - 1, s = S.length - 1; 1 <= g && 0 <= s && m[g] !== S[s]; )
244
+ s--;
245
+ for (; 1 <= g && 0 <= s; g--, s--)
246
+ if (m[g] !== S[s]) {
247
+ if (g !== 1 || s !== 1)
244
248
  do
245
- if (w--, h--, 0 > h || R[w] !== D[h]) {
246
- var re = `
247
- ` + R[w].replace(
249
+ if (g--, s--, 0 > s || m[g] !== S[s]) {
250
+ var k = `
251
+ ` + m[g].replace(
248
252
  " at new ",
249
253
  " at "
250
254
  );
251
- return n.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", n.displayName)), typeof n == "function" && je.set(n, re), re;
255
+ return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, k), k;
252
256
  }
253
- while (1 <= w && 0 <= h);
257
+ while (1 <= g && 0 <= s);
254
258
  break;
255
259
  }
256
260
  }
257
261
  } finally {
258
- we = !1, U.H = y, o(), Error.prepareStackTrace = g;
262
+ Z = !1, w.H = l, a(), Error.prepareStackTrace = n;
259
263
  }
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)
264
+ return m = (m = e ? e.displayName || e.name : "") ? i(m) : "", typeof e == "function" && Q.set(e, m), m;
265
+ }
266
+ function b(e) {
267
+ if (e == null) return "";
268
+ if (typeof e == "function") {
269
+ var t = e.prototype;
270
+ return v(
271
+ e,
272
+ !(!t || !t.isReactComponent)
269
273
  );
270
274
  }
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");
275
+ if (typeof e == "string") return i(e);
276
+ switch (e) {
277
+ case z:
278
+ return i("Suspense");
279
+ case G:
280
+ return i("SuspenseList");
277
281
  }
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
+ if (typeof e == "object")
283
+ switch (e.$$typeof) {
284
+ case B:
285
+ return e = v(e.render, !1), e;
286
+ case H:
287
+ return b(e.type);
288
+ case I:
289
+ t = e._payload, e = e._init;
286
290
  try {
287
- return f(n(v));
291
+ return b(e(t));
288
292
  } catch {
289
293
  }
290
294
  }
291
295
  return "";
292
296
  }
293
- function u() {
294
- var n = U.A;
295
- return n === null ? null : n.getOwner();
297
+ function d() {
298
+ var e = w.A;
299
+ return e === null ? null : e.getOwner();
296
300
  }
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;
301
+ function y(e) {
302
+ if (ie.call(e, "key")) {
303
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
304
+ if (t && t.isReactWarning) return !1;
301
305
  }
302
- return n.key !== void 0;
306
+ return e.key !== void 0;
303
307
  }
304
- function l(n, v) {
305
- function g() {
306
- nr || (nr = !0, console.error(
308
+ function p(e, t) {
309
+ function n() {
310
+ Ee || (Ee = !0, console.error(
307
311
  "%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)",
308
- v
312
+ t
309
313
  ));
310
314
  }
311
- g.isReactWarning = !0, Object.defineProperty(n, "key", {
312
- get: g,
315
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
316
+ get: n,
313
317
  configurable: !0
314
318
  });
315
319
  }
316
- function p() {
317
- var n = e(this.type);
318
- return ar[n] || (ar[n] = !0, console.error(
320
+ function A() {
321
+ var e = r(this.type);
322
+ return me[e] || (me[e] = !0, console.error(
319
323
  "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."
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", {
324
+ )), e = this.props.ref, e !== void 0 ? e : null;
325
+ }
326
+ function L(e, t, n, l, E, g) {
327
+ return n = g.ref, e = {
328
+ $$typeof: q,
329
+ type: e,
330
+ key: t,
331
+ props: g,
332
+ _owner: E
333
+ }, (n !== void 0 ? n : null) !== null ? Object.defineProperty(e, "ref", {
330
334
  enumerable: !1,
331
- get: p
332
- }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
335
+ get: A
336
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
333
337
  configurable: !1,
334
338
  enumerable: !1,
335
339
  writable: !0,
336
340
  value: 0
337
- }), Object.defineProperty(n, "_debugInfo", {
341
+ }), Object.defineProperty(e, "_debugInfo", {
338
342
  configurable: !1,
339
343
  enumerable: !1,
340
344
  writable: !0,
341
345
  value: null
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);
346
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
347
+ }
348
+ function C(e, t, n, l, E, g) {
349
+ if (typeof e == "string" || typeof e == "function" || e === V || e === ne || e === te || e === z || e === G || e === We || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === H || e.$$typeof === ae || e.$$typeof === oe || e.$$typeof === B || e.$$typeof === Le || e.getModuleId !== void 0)) {
350
+ var s = t.children;
351
+ if (s !== void 0)
352
+ if (l)
353
+ if (J(s)) {
354
+ for (l = 0; l < s.length; l++)
355
+ ee(s[l], e);
356
+ Object.freeze && Object.freeze(s);
353
357
  } else
354
358
  console.error(
355
359
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
356
360
  );
357
- else E(h, n);
361
+ else ee(s, e);
358
362
  } else
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(
363
+ s = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " 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 ? l = "null" : J(e) ? l = "array" : e !== void 0 && e.$$typeof === q ? (l = "<" + (r(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, console.error(
360
364
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
361
- y,
362
- h
365
+ l,
366
+ s
363
367
  );
364
- if (Ve.call(v, "key")) {
365
- h = e(n);
366
- var F = Object.keys(v).filter(function(R) {
367
- return R !== "key";
368
+ if (ie.call(t, "key")) {
369
+ s = r(e);
370
+ var _ = Object.keys(t).filter(function(m) {
371
+ return m !== "key";
368
372
  });
369
- y = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", or[h + y] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
373
+ l = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", pe[s + l] || (_ = 0 < _.length ? "{" + _.join(": ..., ") + ": ...}" : "{}", console.error(
370
374
  `A props object containing a "key" prop is being spread into JSX:
371
375
  let props = %s;
372
376
  <%s {...props} />
373
377
  React keys must be passed directly to JSX without using spread:
374
378
  let props = %s;
375
379
  <%s key={someKey} {...props} />`,
376
- y,
377
- h,
378
- F,
379
- h
380
- ), or[h + y] = !0);
380
+ l,
381
+ s,
382
+ _,
383
+ s
384
+ ), pe[s + l] = !0);
381
385
  }
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);
386
+ if (s = null, n !== void 0 && (o(n), s = "" + n), y(t) && (o(t.key), s = "" + t.key), "key" in t) {
387
+ n = {};
388
+ for (var O in t)
389
+ O !== "key" && (n[O] = t[O]);
390
+ } else n = t;
391
+ return s && p(
392
+ n,
393
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
394
+ ), L(e, s, g, E, d(), n);
395
+ }
396
+ function ee(e, t) {
397
+ if (typeof e == "object" && e && e.$$typeof !== Fe) {
398
+ if (J(e))
399
+ for (var n = 0; n < e.length; n++) {
400
+ var l = e[n];
401
+ F(l) && re(l, t);
398
402
  }
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);
403
+ else if (F(e))
404
+ e._store && (e._store.validated = 1);
405
+ else if (e === null || typeof e != "object" ? n = null : (n = ue && e[ue] || e["@@iterator"], n = typeof n == "function" ? n : null), typeof n == "function" && n !== e.entries && (n = n.call(e), n !== e))
406
+ for (; !(e = n.next()).done; )
407
+ F(e.value) && re(e.value, t);
404
408
  }
405
409
  }
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;
410
+ function F(e) {
411
+ return typeof e == "object" && e !== null && e.$$typeof === q;
412
+ }
413
+ function re(e, t) {
414
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, t = $e(t), !ye[t])) {
415
+ ye[t] = !0;
416
+ var n = "";
417
+ e && e._owner != null && e._owner !== d() && (n = null, typeof e._owner.tag == "number" ? n = r(e._owner.type) : typeof e._owner.name == "string" && (n = e._owner.name), n = " It was passed a child from " + n + ".");
418
+ var l = w.getCurrentStack;
419
+ w.getCurrentStack = function() {
420
+ var E = b(e.type);
421
+ return l && (E += l() || ""), E;
418
422
  }, console.error(
419
423
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
420
- v,
421
- g
422
- ), U.getCurrentStack = y;
424
+ t,
425
+ n
426
+ ), w.getCurrentStack = l;
423
427
  }
424
428
  }
425
- function N(n) {
426
- var v = "", g = u();
427
- return g && (g = e(g.type)) && (v = `
429
+ function $e(e) {
430
+ var t = "", n = d();
431
+ return n && (n = r(n.type)) && (t = `
428
432
 
429
- Check the render method of \`` + g + "`."), v || (n = e(n)) && (v = `
433
+ Check the render method of \`` + n + "`."), t || (e = r(e)) && (t = `
430
434
 
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);
435
+ Check the top-level render call using <` + e + ">."), t;
436
+ }
437
+ var Ye = Oe, q = Symbol.for("react.transitional.element"), Me = Symbol.for("react.portal"), V = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), ne = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), ae = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), We = Symbol.for("react.offscreen"), ue = Symbol.iterator, Ue = Symbol.for("react.client.reference"), w = Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, x = Object.assign, Le = Symbol.for("react.client.reference"), J = Array.isArray, N = 0, se, ce, fe, le, ve, de, ge;
438
+ f.__reactDisabledLog = !0;
439
+ var X, be, Z = !1, Q = new (typeof WeakMap == "function" ? WeakMap : Map)(), Fe = Symbol.for("react.client.reference"), Ee, me = {}, pe = {}, ye = {};
440
+ $.Fragment = V, $.jsx = function(e, t, n, l, E) {
441
+ return C(e, t, n, !1, l, E);
442
+ }, $.jsxs = function(e, t, n, l, E) {
443
+ return C(e, t, n, !0, l, E);
440
444
  };
441
- }()), ne;
445
+ }()), $;
442
446
  }
443
- var sr;
444
- function tt() {
445
- return sr || (sr = 1, process.env.NODE_ENV === "production" ? ve.exports = et() : ve.exports = rt()), ve.exports;
447
+ var he;
448
+ function tr() {
449
+ return he || (he = 1, process.env.NODE_ENV === "production" ? W.exports = er() : W.exports = rr()), W.exports;
446
450
  }
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];
451
+ var j = tr(), nr = typeof global == "object" && global && global.Object === Object && global, or = typeof self == "object" && self && self.Object === Object && self, ar = nr || or || Function("return this")(), U = ar.Symbol, Ce = Object.prototype, ur = Ce.hasOwnProperty, ir = Ce.toString, Y = U ? U.toStringTag : void 0;
452
+ function sr(r) {
453
+ var c = ur.call(r, Y), o = r[Y];
474
454
  try {
475
- e[ae] = void 0;
476
- var a = !0;
455
+ r[Y] = void 0;
456
+ var f = !0;
477
457
  } catch {
478
458
  }
479
- var i = ut.call(e);
480
- return a && (t ? e[ae] = r : delete e[ae]), i;
459
+ var u = ir.call(r);
460
+ return f && (c ? r[Y] = o : delete r[Y]), u;
481
461
  }
482
- var st = Object.prototype, ft = st.toString;
483
- function lt(e) {
484
- return ft.call(e);
462
+ var cr = Object.prototype, fr = cr.toString;
463
+ function lr(r) {
464
+ return fr.call(r);
485
465
  }
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);
466
+ var vr = "[object Null]", dr = "[object Undefined]", je = U ? U.toStringTag : void 0;
467
+ function gr(r) {
468
+ return r == null ? r === void 0 ? dr : vr : je && je in Object(r) ? sr(r) : lr(r);
489
469
  }
490
- function bt(e) {
491
- return e != null && typeof e == "object";
470
+ function br(r) {
471
+ return r != null && typeof r == "object";
492
472
  }
493
- var mt = Array.isArray;
494
- function ht() {
473
+ var Er = Array.isArray;
474
+ function mr() {
495
475
  }
496
- var pt = "[object String]";
497
- function yt(e) {
498
- return typeof e == "string" || !mt(e) && bt(e) && gt(e) == pt;
476
+ var pr = "[object String]";
477
+ function yr(r) {
478
+ return typeof r == "string" || !Er(r) && br(r) && gr(r) == pr;
499
479
  }
500
- var _e = { exports: {} };
480
+ var K = { exports: {} };
501
481
  /*!
502
482
  Copyright (c) 2018 Jed Watson.
503
483
  Licensed under the MIT License (MIT), see
504
484
  http://jedwatson.github.io/classnames
505
485
  */
506
- var lr;
507
- function Et() {
508
- return lr || (lr = 1, function(e) {
486
+ var we;
487
+ function _r() {
488
+ return we || (we = 1, function(r) {
509
489
  (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)));
490
+ var c = {}.hasOwnProperty;
491
+ function o() {
492
+ for (var a = "", i = 0; i < arguments.length; i++) {
493
+ var v = arguments[i];
494
+ v && (a = u(a, f(v)));
515
495
  }
516
- return o;
496
+ return a;
517
497
  }
518
- function a(o) {
519
- if (typeof o == "string" || typeof o == "number")
520
- return o;
521
- if (typeof o != "object")
498
+ function f(a) {
499
+ if (typeof a == "string" || typeof a == "number")
500
+ return a;
501
+ if (typeof a != "object")
522
502
  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;
503
+ if (Array.isArray(a))
504
+ return o.apply(null, a);
505
+ if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
506
+ return a.toString();
507
+ var i = "";
508
+ for (var v in a)
509
+ c.call(a, v) && a[v] && (i = u(i, v));
510
+ return i;
531
511
  }
532
- function i(o, c) {
533
- return c ? o ? o + " " + c : o + c : o;
512
+ function u(a, i) {
513
+ return i ? a ? a + " " + i : a + i : a;
534
514
  }
535
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
515
+ r.exports ? (o.default = o, r.exports = o) : window.classNames = o;
536
516
  })();
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]);
610
- };
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;
517
+ }(K)), K.exports;
518
+ }
519
+ var Tr = _r();
520
+ const hr = /* @__PURE__ */ De(Tr);
521
+ function D(r, c) {
522
+ var o = typeof Symbol == "function" && r[Symbol.iterator];
523
+ if (!o) return r;
524
+ var f = o.call(r), u, a = [], i;
663
525
  try {
664
- for (; (t === void 0 || t-- > 0) && !(i = a.next()).done; ) o.push(i.value);
665
- } catch (s) {
666
- c = { error: s };
526
+ for (; (c === void 0 || c-- > 0) && !(u = f.next()).done; ) a.push(u.value);
527
+ } catch (v) {
528
+ i = { error: v };
667
529
  } finally {
668
530
  try {
669
- i && !i.done && (r = a.return) && r.call(a);
531
+ u && !u.done && (o = f.return) && o.call(f);
670
532
  } finally {
671
- if (c) throw c.error;
533
+ if (i) throw i.error;
672
534
  }
673
535
  }
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;
536
+ return a;
537
+ }
538
+ var Ne = function(r) {
539
+ return typeof r == "function";
540
+ }, jr = process.env.NODE_ENV === "development" || process.env.NODE_ENV === "test";
541
+ function xe(r, c) {
542
+ if (r === c) return !0;
543
+ for (var o = 0; o < r.length; o++)
544
+ if (!Object.is(r[o], c[o])) return !1;
723
545
  return !0;
724
546
  }
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;
547
+ function ke(r) {
548
+ var c = R(r);
549
+ return c.current = r, c;
732
550
  }
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() {
551
+ var wr = function(r) {
552
+ jr && (Ne(r) || console.error("useUnmount expected parameter is a function, got ".concat(typeof r)));
553
+ var c = ke(r);
554
+ Re(function() {
741
555
  return function() {
742
- t.current();
556
+ c.current();
743
557
  };
744
558
  }, []);
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
559
+ }, xr = !!(typeof window < "u" && window.document && window.document.createElement);
560
+ function Sr(r, c) {
561
+ var o = D(Ie(r), 2), f = o[0], u = o[1], a = Ae(function() {
562
+ var i = !0, v = function() {
563
+ return u(function(p) {
564
+ return p === r ? i : r;
810
565
  });
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;
898
- }
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);
566
+ }, b = function(p) {
567
+ return u(p);
1399
568
  }, d = function() {
1400
- return i(c);
569
+ return u(r);
570
+ }, y = function() {
571
+ return u(i);
1401
572
  };
1402
573
  return {
1403
- toggle: s,
1404
- set: f,
1405
- setLeft: u,
1406
- setRight: d
574
+ toggle: v,
575
+ set: b,
576
+ setLeft: d,
577
+ setRight: y
1407
578
  };
1408
579
  }, []);
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);
580
+ return [f, a];
581
+ }
582
+ function Or(r) {
583
+ var c = D(Sr(!1), 2), o = c[0], f = c[1], u = f.toggle, a = f.set, i = Ae(function() {
584
+ var v = function() {
585
+ return a(!0);
586
+ }, b = function() {
587
+ return a(!1);
1417
588
  };
1418
589
  return {
1419
- toggle: i,
1420
- set: function(u) {
1421
- return o(!!u);
590
+ toggle: u,
591
+ set: function(d) {
592
+ return a(!!d);
1422
593
  },
1423
- setTrue: s,
1424
- setFalse: f
594
+ setTrue: v,
595
+ setFalse: b
1425
596
  };
1426
597
  }, []);
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;
598
+ return [o, i];
599
+ }
600
+ function Pe(r, c) {
601
+ if (xr) {
602
+ if (!r)
603
+ return c;
604
+ var o;
605
+ return Ne(r) ? o = r() : "current" in r ? o = r.current : o = r, o;
1435
606
  }
1436
607
  }
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);
608
+ var Rr = function(r) {
609
+ var c = function(o, f, u) {
610
+ var a = R(!1), i = R([]), v = R([]), b = R();
611
+ r(function() {
612
+ var d, y = Array.isArray(u) ? u : [u], p = y.map(function(A) {
613
+ return Pe(A);
1443
614
  });
1444
- if (!o.current) {
1445
- o.current = !0, c.current = l, s.current = a, f.current = r();
615
+ if (!a.current) {
616
+ a.current = !0, i.current = p, v.current = f, b.current = o();
1446
617
  return;
1447
618
  }
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;
619
+ (p.length !== i.current.length || !xe(i.current, p) || !xe(v.current, f)) && ((d = b.current) === null || d === void 0 || d.call(b), i.current = p, v.current = f, b.current = o());
620
+ }), wr(function() {
621
+ var d;
622
+ (d = b.current) === null || d === void 0 || d.call(b), a.current = !1;
1452
623
  });
1453
624
  };
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
625
+ return c;
626
+ }, Ar = Rr(Re);
627
+ function Se(r, c, o) {
628
+ o === void 0 && (o = {});
629
+ var f = o.enable, u = f === void 0 ? !0 : f, a = ke(c);
630
+ Ar(function() {
631
+ if (u) {
632
+ var i = Pe(o.target, window);
633
+ if (i != null && i.addEventListener) {
634
+ var v = function(d) {
635
+ return a.current(d);
636
+ }, b = Array.isArray(r) ? r : [r];
637
+ return b.forEach(function(d) {
638
+ i.addEventListener(d, v, {
639
+ capture: o.capture,
640
+ once: o.once,
641
+ passive: o.passive
1471
642
  });
1472
643
  }), function() {
1473
- f.forEach(function(u) {
1474
- c.removeEventListener(u, s, {
1475
- capture: r.capture
644
+ b.forEach(function(d) {
645
+ i.removeEventListener(d, v, {
646
+ capture: o.capture
1476
647
  });
1477
648
  });
1478
649
  };
1479
650
  }
1480
651
  }
1481
- }, [e, r.capture, r.once, r.passive, i], r.target);
652
+ }, [r, o.capture, o.once, o.passive, u], o.target);
1482
653
  }
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);
654
+ const Cr = function(r, c) {
655
+ var o = {}, f = o.onEnter, u = o.onLeave, a = o.onChange, i = D(Or(), 2), v = i[0], b = i[1], d = b.setTrue, y = b.setFalse;
656
+ return Se("mouseenter", function() {
657
+ f == null || f(), d(), a == null || a(!0);
1487
658
  }, {
1488
- target: e
1489
- }), xr("mouseleave", function() {
1490
- i == null || i(), d(), o == null || o(!1);
659
+ target: r
660
+ }), Se("mouseleave", function() {
661
+ u == null || u(), y(), a == null || a(!1);
1491
662
  }, {
1492
- target: e
1493
- }), s;
1494
- }, bn = Hr(
1495
- ({ type: e = "", className: t = "", symbol: r = !1, ...a }, i) => r ? /* @__PURE__ */ q.jsx(
663
+ target: r
664
+ }), v;
665
+ }, Nr = Je(
666
+ ({ type: r = "", className: c = "", symbol: o = !1, ...f }, u) => o ? /* @__PURE__ */ j.jsx(
1496
667
  "svg",
1497
668
  {
1498
- className: `iconfont-symbol ${e} ${t}`,
669
+ className: `iconfont-symbol ${r} ${c}`,
1499
670
  "aria-hidden": "true",
1500
- ref: i,
1501
- ...a,
1502
- children: /* @__PURE__ */ q.jsx("use", { xlinkHref: `#${e}` })
671
+ ref: u,
672
+ ...f,
673
+ children: /* @__PURE__ */ j.jsx("use", { xlinkHref: `#${r}` })
1503
674
  }
1504
- ) : /* @__PURE__ */ q.jsx(
675
+ ) : /* @__PURE__ */ j.jsx(
1505
676
  "i",
1506
677
  {
1507
- className: `iconfont ${e} ${t}`,
1508
- ref: i,
1509
- ...a
678
+ className: `iconfont ${r} ${c}`,
679
+ ref: u,
680
+ ...f
1510
681
  }
1511
682
  )
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,
683
+ ), kr = "_btn_icon__warp_ay6he_1", Pr = {
684
+ btn_icon__warp: kr
685
+ }, $r = (r, c) => {
686
+ const o = R(null), {
687
+ icon: f,
688
+ tooltipDisabled: u = !1,
689
+ onClick: a = mr,
690
+ disabled: i,
691
+ size: v = "middle",
692
+ style: b = {},
693
+ className: d,
694
+ loading: y = !1,
695
+ ...p
696
+ } = r, A = Cr(o), L = () => yr(f) && f.includes("icon-") ? /* @__PURE__ */ j.jsx(Nr, { type: f }) : f, C = /* @__PURE__ */ j.jsx(
697
+ Ge,
1527
698
  {
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()
699
+ onClick: a,
700
+ size: v,
701
+ disabled: i,
702
+ style: b,
703
+ ref: c,
704
+ loading: y,
705
+ className: hr([d, Pr.btn_icon__warp]),
706
+ icon: L()
1536
707
  }
1537
708
  );
1538
- if (!a)
709
+ if (!f)
1539
710
  throw new Error("IconButton 组件必须传入 icon 属性");
1540
- return /* @__PURE__ */ q.jsxs(Ur, { children: [
1541
- i && b,
1542
- !i && /* @__PURE__ */ q.jsx(
1543
- Vr,
711
+ return /* @__PURE__ */ j.jsxs(Xe, { children: [
712
+ u && C,
713
+ !u && /* @__PURE__ */ j.jsx(
714
+ He,
1544
715
  {
1545
- open: p,
716
+ open: A,
1546
717
  trigger: "contextMenu",
1547
718
  destroyTooltipOnHide: !0,
1548
- ...l,
1549
- children: /* @__PURE__ */ q.jsx(
719
+ ...p,
720
+ children: /* @__PURE__ */ j.jsx(
1550
721
  "span",
1551
722
  {
1552
- ref: r,
723
+ ref: o,
1553
724
  style: { display: "inline-block" },
1554
725
  className: "icon-button-box",
1555
- children: b
726
+ children: C
1556
727
  }
1557
728
  )
1558
729
  }
1559
730
  )
1560
731
  ] });
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
- };
1597
- }
732
+ }, Ur = Oe.forwardRef($r);
1598
733
  export {
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
734
+ Wr as App,
735
+ Ur as IconButton,
736
+ Ze as message,
737
+ Ke as modal,
738
+ Qe as notification
1608
739
  };