@mi-avalon/libs 0.0.14 → 0.0.16

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.
@@ -0,0 +1,691 @@
1
+ var vr = Object.defineProperty;
2
+ var pr = (g, d, b) => d in g ? vr(g, d, { enumerable: !0, configurable: !0, writable: !0, value: b }) : g[d] = b;
3
+ var u = (g, d, b) => (pr(g, typeof d != "symbol" ? d + "" : d, b), b);
4
+ import De from "react";
5
+ import { Button as mr, Input as gr } from "antd";
6
+ var ee = { exports: {} }, M = {};
7
+ /**
8
+ * @license React
9
+ * react-jsx-runtime.production.min.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var Se;
17
+ function hr() {
18
+ if (Se)
19
+ return M;
20
+ Se = 1;
21
+ var g = De, d = Symbol.for("react.element"), b = Symbol.for("react.fragment"), O = Object.prototype.hasOwnProperty, I = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, W = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function A(C, p, D) {
23
+ var _, y = {}, w = null, N = null;
24
+ D !== void 0 && (w = "" + D), p.key !== void 0 && (w = "" + p.key), p.ref !== void 0 && (N = p.ref);
25
+ for (_ in p)
26
+ O.call(p, _) && !W.hasOwnProperty(_) && (y[_] = p[_]);
27
+ if (C && C.defaultProps)
28
+ for (_ in p = C.defaultProps, p)
29
+ y[_] === void 0 && (y[_] = p[_]);
30
+ return { $$typeof: d, type: C, key: w, ref: N, props: y, _owner: I.current };
31
+ }
32
+ return M.Fragment = b, M.jsx = A, M.jsxs = A, M;
33
+ }
34
+ var F = {};
35
+ /**
36
+ * @license React
37
+ * react-jsx-runtime.development.js
38
+ *
39
+ * Copyright (c) Facebook, Inc. and its affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */
44
+ var xe;
45
+ function br() {
46
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var g = De, d = Symbol.for("react.element"), b = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), C = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), D = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), re = Symbol.iterator, je = "@@iterator";
48
+ function Te(e) {
49
+ if (e === null || typeof e != "object")
50
+ return null;
51
+ var r = re && e[re] || e[je];
52
+ return typeof r == "function" ? r : null;
53
+ }
54
+ var Y = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function v(e) {
56
+ {
57
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
58
+ t[n - 1] = arguments[n];
59
+ Ae("error", e, t);
60
+ }
61
+ }
62
+ function Ae(e, r, t) {
63
+ {
64
+ var n = Y.ReactDebugCurrentFrame, o = n.getStackAddendum();
65
+ o !== "" && (r += "%s", t = t.concat([o]));
66
+ var s = t.map(function(i) {
67
+ return String(i);
68
+ });
69
+ s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
70
+ }
71
+ }
72
+ var ke = !1, $e = !1, Pe = !1, Me = !1, Fe = !1, te;
73
+ te = Symbol.for("react.module.reference");
74
+ function Ie(e) {
75
+ return !!(typeof e == "string" || typeof e == "function" || e === O || e === W || Fe || e === I || e === D || e === _ || Me || e === N || ke || $e || Pe || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === y || e.$$typeof === A || e.$$typeof === C || e.$$typeof === p || // This needs to include all possible module reference object
76
+ // types supported by any Flight configuration anywhere since
77
+ // we don't know which Flight build this will end up being used
78
+ // with.
79
+ e.$$typeof === te || e.getModuleId !== void 0));
80
+ }
81
+ function We(e, r, t) {
82
+ var n = e.displayName;
83
+ if (n)
84
+ return n;
85
+ var o = r.displayName || r.name || "";
86
+ return o !== "" ? t + "(" + o + ")" : t;
87
+ }
88
+ function ne(e) {
89
+ return e.displayName || "Context";
90
+ }
91
+ function E(e) {
92
+ if (e == null)
93
+ return null;
94
+ if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
95
+ return e.displayName || e.name || null;
96
+ if (typeof e == "string")
97
+ return e;
98
+ switch (e) {
99
+ case O:
100
+ return "Fragment";
101
+ case b:
102
+ return "Portal";
103
+ case W:
104
+ return "Profiler";
105
+ case I:
106
+ return "StrictMode";
107
+ case D:
108
+ return "Suspense";
109
+ case _:
110
+ return "SuspenseList";
111
+ }
112
+ if (typeof e == "object")
113
+ switch (e.$$typeof) {
114
+ case C:
115
+ var r = e;
116
+ return ne(r) + ".Consumer";
117
+ case A:
118
+ var t = e;
119
+ return ne(t._context) + ".Provider";
120
+ case p:
121
+ return We(e, e.render, "ForwardRef");
122
+ case y:
123
+ var n = e.displayName || null;
124
+ return n !== null ? n : E(e.type) || "Memo";
125
+ case w: {
126
+ var o = e, s = o._payload, i = o._init;
127
+ try {
128
+ return E(i(s));
129
+ } catch {
130
+ return null;
131
+ }
132
+ }
133
+ }
134
+ return null;
135
+ }
136
+ var S = Object.assign, k = 0, ae, ie, oe, se, ue, ce, le;
137
+ function fe() {
138
+ }
139
+ fe.__reactDisabledLog = !0;
140
+ function Ne() {
141
+ {
142
+ if (k === 0) {
143
+ ae = console.log, ie = console.info, oe = console.warn, se = console.error, ue = console.group, ce = console.groupCollapsed, le = console.groupEnd;
144
+ var e = {
145
+ configurable: !0,
146
+ enumerable: !0,
147
+ value: fe,
148
+ writable: !0
149
+ };
150
+ Object.defineProperties(console, {
151
+ info: e,
152
+ log: e,
153
+ warn: e,
154
+ error: e,
155
+ group: e,
156
+ groupCollapsed: e,
157
+ groupEnd: e
158
+ });
159
+ }
160
+ k++;
161
+ }
162
+ }
163
+ function ze() {
164
+ {
165
+ if (k--, k === 0) {
166
+ var e = {
167
+ configurable: !0,
168
+ enumerable: !0,
169
+ writable: !0
170
+ };
171
+ Object.defineProperties(console, {
172
+ log: S({}, e, {
173
+ value: ae
174
+ }),
175
+ info: S({}, e, {
176
+ value: ie
177
+ }),
178
+ warn: S({}, e, {
179
+ value: oe
180
+ }),
181
+ error: S({}, e, {
182
+ value: se
183
+ }),
184
+ group: S({}, e, {
185
+ value: ue
186
+ }),
187
+ groupCollapsed: S({}, e, {
188
+ value: ce
189
+ }),
190
+ groupEnd: S({}, e, {
191
+ value: le
192
+ })
193
+ });
194
+ }
195
+ k < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ }
197
+ }
198
+ var V = Y.ReactCurrentDispatcher, Z;
199
+ function z(e, r, t) {
200
+ {
201
+ if (Z === void 0)
202
+ try {
203
+ throw Error();
204
+ } catch (o) {
205
+ var n = o.stack.trim().match(/\n( *(at )?)/);
206
+ Z = n && n[1] || "";
207
+ }
208
+ return `
209
+ ` + Z + e;
210
+ }
211
+ }
212
+ var J = !1, H;
213
+ {
214
+ var He = typeof WeakMap == "function" ? WeakMap : Map;
215
+ H = new He();
216
+ }
217
+ function de(e, r) {
218
+ if (!e || J)
219
+ return "";
220
+ {
221
+ var t = H.get(e);
222
+ if (t !== void 0)
223
+ return t;
224
+ }
225
+ var n;
226
+ J = !0;
227
+ var o = Error.prepareStackTrace;
228
+ Error.prepareStackTrace = void 0;
229
+ var s;
230
+ s = V.current, V.current = null, Ne();
231
+ try {
232
+ if (r) {
233
+ var i = function() {
234
+ throw Error();
235
+ };
236
+ if (Object.defineProperty(i.prototype, "props", {
237
+ set: function() {
238
+ throw Error();
239
+ }
240
+ }), typeof Reflect == "object" && Reflect.construct) {
241
+ try {
242
+ Reflect.construct(i, []);
243
+ } catch (h) {
244
+ n = h;
245
+ }
246
+ Reflect.construct(e, [], i);
247
+ } else {
248
+ try {
249
+ i.call();
250
+ } catch (h) {
251
+ n = h;
252
+ }
253
+ e.call(i.prototype);
254
+ }
255
+ } else {
256
+ try {
257
+ throw Error();
258
+ } catch (h) {
259
+ n = h;
260
+ }
261
+ e();
262
+ }
263
+ } catch (h) {
264
+ if (h && n && typeof h.stack == "string") {
265
+ for (var a = h.stack.split(`
266
+ `), m = n.stack.split(`
267
+ `), l = a.length - 1, f = m.length - 1; l >= 1 && f >= 0 && a[l] !== m[f]; )
268
+ f--;
269
+ for (; l >= 1 && f >= 0; l--, f--)
270
+ if (a[l] !== m[f]) {
271
+ if (l !== 1 || f !== 1)
272
+ do
273
+ if (l--, f--, f < 0 || a[l] !== m[f]) {
274
+ var R = `
275
+ ` + a[l].replace(" at new ", " at ");
276
+ return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, R), R;
277
+ }
278
+ while (l >= 1 && f >= 0);
279
+ break;
280
+ }
281
+ }
282
+ } finally {
283
+ J = !1, V.current = s, ze(), Error.prepareStackTrace = o;
284
+ }
285
+ var T = e ? e.displayName || e.name : "", x = T ? z(T) : "";
286
+ return typeof e == "function" && H.set(e, x), x;
287
+ }
288
+ function Le(e, r, t) {
289
+ return de(e, !1);
290
+ }
291
+ function Ue(e) {
292
+ var r = e.prototype;
293
+ return !!(r && r.isReactComponent);
294
+ }
295
+ function L(e, r, t) {
296
+ if (e == null)
297
+ return "";
298
+ if (typeof e == "function")
299
+ return de(e, Ue(e));
300
+ if (typeof e == "string")
301
+ return z(e);
302
+ switch (e) {
303
+ case D:
304
+ return z("Suspense");
305
+ case _:
306
+ return z("SuspenseList");
307
+ }
308
+ if (typeof e == "object")
309
+ switch (e.$$typeof) {
310
+ case p:
311
+ return Le(e.render);
312
+ case y:
313
+ return L(e.type, r, t);
314
+ case w: {
315
+ var n = e, o = n._payload, s = n._init;
316
+ try {
317
+ return L(s(o), r, t);
318
+ } catch {
319
+ }
320
+ }
321
+ }
322
+ return "";
323
+ }
324
+ var $ = Object.prototype.hasOwnProperty, ve = {}, pe = Y.ReactDebugCurrentFrame;
325
+ function U(e) {
326
+ if (e) {
327
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
328
+ pe.setExtraStackFrame(t);
329
+ } else
330
+ pe.setExtraStackFrame(null);
331
+ }
332
+ function Ve(e, r, t, n, o) {
333
+ {
334
+ var s = Function.call.bind($);
335
+ for (var i in e)
336
+ if (s(e, i)) {
337
+ var a = void 0;
338
+ try {
339
+ if (typeof e[i] != "function") {
340
+ var m = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
+ throw m.name = "Invariant Violation", m;
342
+ }
343
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ } catch (l) {
345
+ a = l;
346
+ }
347
+ a && !(a instanceof Error) && (U(o), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), U(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, U(o), v("Failed %s type: %s", t, a.message), U(null));
348
+ }
349
+ }
350
+ }
351
+ var Ze = Array.isArray;
352
+ function B(e) {
353
+ return Ze(e);
354
+ }
355
+ function Je(e) {
356
+ {
357
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
358
+ return t;
359
+ }
360
+ }
361
+ function Be(e) {
362
+ try {
363
+ return me(e), !1;
364
+ } catch {
365
+ return !0;
366
+ }
367
+ }
368
+ function me(e) {
369
+ return "" + e;
370
+ }
371
+ function ge(e) {
372
+ if (Be(e))
373
+ return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), me(e);
374
+ }
375
+ var P = Y.ReactCurrentOwner, qe = {
376
+ key: !0,
377
+ ref: !0,
378
+ __self: !0,
379
+ __source: !0
380
+ }, he, be, q;
381
+ q = {};
382
+ function Ke(e) {
383
+ if ($.call(e, "ref")) {
384
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
385
+ if (r && r.isReactWarning)
386
+ return !1;
387
+ }
388
+ return e.ref !== void 0;
389
+ }
390
+ function Ge(e) {
391
+ if ($.call(e, "key")) {
392
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
393
+ if (r && r.isReactWarning)
394
+ return !1;
395
+ }
396
+ return e.key !== void 0;
397
+ }
398
+ function Xe(e, r) {
399
+ if (typeof e.ref == "string" && P.current && r && P.current.stateNode !== r) {
400
+ var t = E(P.current.type);
401
+ q[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(P.current.type), e.ref), q[t] = !0);
402
+ }
403
+ }
404
+ function Qe(e, r) {
405
+ {
406
+ var t = function() {
407
+ he || (he = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
408
+ };
409
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
410
+ get: t,
411
+ configurable: !0
412
+ });
413
+ }
414
+ }
415
+ function er(e, r) {
416
+ {
417
+ var t = function() {
418
+ be || (be = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
419
+ };
420
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
421
+ get: t,
422
+ configurable: !0
423
+ });
424
+ }
425
+ }
426
+ var rr = function(e, r, t, n, o, s, i) {
427
+ var a = {
428
+ // This tag allows us to uniquely identify this as a React Element
429
+ $$typeof: d,
430
+ // Built-in properties that belong on the element
431
+ type: e,
432
+ key: r,
433
+ ref: t,
434
+ props: i,
435
+ // Record the component responsible for creating this element.
436
+ _owner: s
437
+ };
438
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
439
+ configurable: !1,
440
+ enumerable: !1,
441
+ writable: !0,
442
+ value: !1
443
+ }), Object.defineProperty(a, "_self", {
444
+ configurable: !1,
445
+ enumerable: !1,
446
+ writable: !1,
447
+ value: n
448
+ }), Object.defineProperty(a, "_source", {
449
+ configurable: !1,
450
+ enumerable: !1,
451
+ writable: !1,
452
+ value: o
453
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
454
+ };
455
+ function tr(e, r, t, n, o) {
456
+ {
457
+ var s, i = {}, a = null, m = null;
458
+ t !== void 0 && (ge(t), a = "" + t), Ge(r) && (ge(r.key), a = "" + r.key), Ke(r) && (m = r.ref, Xe(r, o));
459
+ for (s in r)
460
+ $.call(r, s) && !qe.hasOwnProperty(s) && (i[s] = r[s]);
461
+ if (e && e.defaultProps) {
462
+ var l = e.defaultProps;
463
+ for (s in l)
464
+ i[s] === void 0 && (i[s] = l[s]);
465
+ }
466
+ if (a || m) {
467
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
468
+ a && Qe(i, f), m && er(i, f);
469
+ }
470
+ return rr(e, a, m, o, n, P.current, i);
471
+ }
472
+ }
473
+ var K = Y.ReactCurrentOwner, _e = Y.ReactDebugCurrentFrame;
474
+ function j(e) {
475
+ if (e) {
476
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
477
+ _e.setExtraStackFrame(t);
478
+ } else
479
+ _e.setExtraStackFrame(null);
480
+ }
481
+ var G;
482
+ G = !1;
483
+ function X(e) {
484
+ return typeof e == "object" && e !== null && e.$$typeof === d;
485
+ }
486
+ function Re() {
487
+ {
488
+ if (K.current) {
489
+ var e = E(K.current.type);
490
+ if (e)
491
+ return `
492
+
493
+ Check the render method of \`` + e + "`.";
494
+ }
495
+ return "";
496
+ }
497
+ }
498
+ function nr(e) {
499
+ {
500
+ if (e !== void 0) {
501
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
502
+ return `
503
+
504
+ Check your code at ` + r + ":" + t + ".";
505
+ }
506
+ return "";
507
+ }
508
+ }
509
+ var Ee = {};
510
+ function ar(e) {
511
+ {
512
+ var r = Re();
513
+ if (!r) {
514
+ var t = typeof e == "string" ? e : e.displayName || e.name;
515
+ t && (r = `
516
+
517
+ Check the top-level render call using <` + t + ">.");
518
+ }
519
+ return r;
520
+ }
521
+ }
522
+ function ye(e, r) {
523
+ {
524
+ if (!e._store || e._store.validated || e.key != null)
525
+ return;
526
+ e._store.validated = !0;
527
+ var t = ar(r);
528
+ if (Ee[t])
529
+ return;
530
+ Ee[t] = !0;
531
+ var n = "";
532
+ e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), j(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
533
+ }
534
+ }
535
+ function Oe(e, r) {
536
+ {
537
+ if (typeof e != "object")
538
+ return;
539
+ if (B(e))
540
+ for (var t = 0; t < e.length; t++) {
541
+ var n = e[t];
542
+ X(n) && ye(n, r);
543
+ }
544
+ else if (X(e))
545
+ e._store && (e._store.validated = !0);
546
+ else if (e) {
547
+ var o = Te(e);
548
+ if (typeof o == "function" && o !== e.entries)
549
+ for (var s = o.call(e), i; !(i = s.next()).done; )
550
+ X(i.value) && ye(i.value, r);
551
+ }
552
+ }
553
+ }
554
+ function ir(e) {
555
+ {
556
+ var r = e.type;
557
+ if (r == null || typeof r == "string")
558
+ return;
559
+ var t;
560
+ if (typeof r == "function")
561
+ t = r.propTypes;
562
+ else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
563
+ // Inner props are checked in the reconciler.
564
+ r.$$typeof === y))
565
+ t = r.propTypes;
566
+ else
567
+ return;
568
+ if (t) {
569
+ var n = E(r);
570
+ Ve(t, e.props, "prop", n, e);
571
+ } else if (r.PropTypes !== void 0 && !G) {
572
+ G = !0;
573
+ var o = E(r);
574
+ v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
575
+ }
576
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ }
578
+ }
579
+ function or(e) {
580
+ {
581
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
582
+ var n = r[t];
583
+ if (n !== "children" && n !== "key") {
584
+ j(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
585
+ break;
586
+ }
587
+ }
588
+ e.ref !== null && (j(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
589
+ }
590
+ }
591
+ var Ce = {};
592
+ function we(e, r, t, n, o, s) {
593
+ {
594
+ var i = Ie(e);
595
+ if (!i) {
596
+ var a = "";
597
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
+ var m = nr(o);
599
+ m ? a += m : a += Re();
600
+ var l;
601
+ e === null ? l = "null" : B(e) ? l = "array" : e !== void 0 && e.$$typeof === d ? (l = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
602
+ }
603
+ var f = tr(e, r, t, o, s);
604
+ if (f == null)
605
+ return f;
606
+ if (i) {
607
+ var R = r.children;
608
+ if (R !== void 0)
609
+ if (n)
610
+ if (B(R)) {
611
+ for (var T = 0; T < R.length; T++)
612
+ Oe(R[T], e);
613
+ Object.freeze && Object.freeze(R);
614
+ } else
615
+ v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ else
617
+ Oe(R, e);
618
+ }
619
+ if ($.call(r, "key")) {
620
+ var x = E(e), h = Object.keys(r).filter(function(dr) {
621
+ return dr !== "key";
622
+ }), Q = h.length > 0 ? "{key: someKey, " + h.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ if (!Ce[x + Q]) {
624
+ var fr = h.length > 0 ? "{" + h.join(": ..., ") + ": ...}" : "{}";
625
+ v(`A props object containing a "key" prop is being spread into JSX:
626
+ let props = %s;
627
+ <%s {...props} />
628
+ React keys must be passed directly to JSX without using spread:
629
+ let props = %s;
630
+ <%s key={someKey} {...props} />`, Q, x, fr, x), Ce[x + Q] = !0;
631
+ }
632
+ }
633
+ return e === O ? or(f) : ir(f), f;
634
+ }
635
+ }
636
+ function sr(e, r, t) {
637
+ return we(e, r, t, !0);
638
+ }
639
+ function ur(e, r, t) {
640
+ return we(e, r, t, !1);
641
+ }
642
+ var cr = ur, lr = sr;
643
+ F.Fragment = O, F.jsx = cr, F.jsxs = lr;
644
+ }()), F;
645
+ }
646
+ process.env.NODE_ENV === "production" ? ee.exports = hr() : ee.exports = br();
647
+ var Ye = ee.exports;
648
+ const yr = ({ type: g = "primary", children: d, onClick: b, custom: O }) => /* @__PURE__ */ Ye.jsx(mr, { type: g, onClick: b, className: "my-button", children: O || d });
649
+ const Or = ({ value: g, placeholder: d, onChange: b }) => /* @__PURE__ */ Ye.jsx(gr, { value: g, placeholder: d, onChange: b, className: "my-input" }), Cr = {
650
+ YMD_Hms: "YYYY-MM-DD HH:mm:ss",
651
+ YMD: "YYYY-MM-DD",
652
+ YMD2: "YYYYMMDD",
653
+ YMD_POINT: "YYYY.M.DD",
654
+ Hms: "HH:mm:ss",
655
+ Hm: "HH:mm",
656
+ YMD_000: "YYYY-MM-DD 00:00:00",
657
+ YMD_end: "YYYY-MM-DD 23:59:59",
658
+ YMD_Hm: "YYYYMMDD HHmm"
659
+ }, wr = 10;
660
+ class c {
661
+ }
662
+ // 整数
663
+ u(c, "integerRegex", /^-?\d+$/), // 正整数
664
+ u(c, "positiveIntegerRegex", /^[1-9]\d*$/), // 负整数
665
+ u(c, "negativeIntegerRegex", /^-[1-9]\d*$/), // 浮点数
666
+ u(c, "floatRegex", /^-?\d+(\.\d+)?$/), // 字母
667
+ u(c, "letter", /^[a-zA-Z]+$/), // 汉字
668
+ u(c, "chinese", /^[\u4e00-\u9fa5]+$/), // 数字
669
+ u(c, "number", /^[0-9]*$/), // 用户名 字母开头,允许字母数字下划线,长度4-16
670
+ u(c, "username", /^[a-zA-Z]\w{3,15}$/), // 强用户名 必须包含大小写字母和数字,6-20位
671
+ u(c, "strongUsername", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/), // 密码 至少8位,包含字母和数字
672
+ u(c, "password", /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/), // 强密码 至少8位,包含大小写字母、数字和特殊字符
673
+ u(c, "strongPassword", /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/), // 中国大陆的手机号
674
+ u(c, "phone", /^1[3-9]\d{9}$/), // 带区号的手机号
675
+ u(c, "phoneWithAreaCode", /^\+?\d{2,3}-?\d{8,11}$/), // 邮箱
676
+ u(c, "email", /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/), // 身份证
677
+ u(c, "idCard", /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/), // 银行卡
678
+ u(c, "bankCard", /^[1-9]\d{3,30}$/), // 邮政编码
679
+ u(c, "zipCode", /^[1-9]\d{5}$/), // IP
680
+ u(c, "ip", /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/), // URL
681
+ u(c, "url", /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/), // 车牌
682
+ u(c, "carNumber", /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/), // 时间 hh:mm:ss
683
+ u(c, "time", /^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/), // 日期 YYYY-MM-DD
684
+ u(c, "date", /^(\d{4})-(\d{2})-(\d{2})$/);
685
+ export {
686
+ Cr as DATE_FORMAT,
687
+ yr as MyButton,
688
+ Or as MyInput,
689
+ wr as PAGE_SIZE,
690
+ c as PatternType
691
+ };