@nutui/nutui-react-taro 1.3.11 → 1.3.12-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,22 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.3.11 Wed Nov 16 2022 13:53:31 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.3.12-beta.1 Fri Nov 18 2022 20:36:03 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
6
  import * as React from "react";
7
- import React__default, { useCallback, useState, useEffect, useRef, createContext as createContext$1, useContext as useContext$1, forwardRef, useImperativeHandle, useLayoutEffect, useMemo, memo, Component } from "react";
7
+ import React__default, { useCallback, useState, useEffect, useRef, createContext, useContext, forwardRef, useImperativeHandle, useLayoutEffect, useMemo, memo, Component } from "react";
8
8
  import Taro, { usePageScroll, eventCenter, getCurrentInstance, nextTick, useReady, createSelectorQuery } from "@tarojs/taro";
9
9
  import ReactDOM, { createPortal, unstable_batchedUpdates } from "react-dom";
10
- function getAugmentedNamespace(n2) {
11
- if (n2.__esModule)
12
- return n2;
10
+ function getAugmentedNamespace(n) {
11
+ if (n.__esModule)
12
+ return n;
13
13
  var a = Object.defineProperty({}, "__esModule", { value: true });
14
- Object.keys(n2).forEach(function(k2) {
15
- var d2 = Object.getOwnPropertyDescriptor(n2, k2);
16
- Object.defineProperty(a, k2, d2.get ? d2 : {
14
+ Object.keys(n).forEach(function(k) {
15
+ var d = Object.getOwnPropertyDescriptor(n, k);
16
+ Object.defineProperty(a, k, d.get ? d : {
17
17
  enumerable: true,
18
18
  get: function() {
19
- return n2[k2];
19
+ return n[k];
20
20
  }
21
21
  });
22
22
  });
@@ -24,38 +24,38 @@ function getAugmentedNamespace(n2) {
24
24
  }
25
25
  var classname = { exports: {} };
26
26
  var classname_production_min = {};
27
- function r$1(r2) {
27
+ function r(r2) {
28
28
  function e2(e3, i, a, o) {
29
- var f2 = i ? t2 + e3 + r2.e + i : t2 + e3, v2 = f2;
29
+ var f = i ? t + e3 + r2.e + i : t + e3, v = f;
30
30
  if (a) {
31
- var u = " " + v2 + r2.m;
31
+ var u = " " + v + r2.m;
32
32
  for (var s in a)
33
33
  if (a.hasOwnProperty(s)) {
34
- var p2 = a[s];
35
- true === p2 ? v2 += u + s : p2 && (v2 += u + s + n2 + p2);
34
+ var p = a[s];
35
+ true === p ? v += u + s : p && (v += u + s + n + p);
36
36
  }
37
37
  }
38
38
  if (void 0 !== o)
39
- for (var c6 = 0, l2 = o.length; c6 < l2; c6++) {
40
- var y2 = o[c6];
41
- if (y2 && "string" == typeof y2.valueOf())
42
- for (var g2 = y2.valueOf().split(" "), d2 = 0; d2 < g2.length; d2++) {
43
- var h2 = g2[d2];
44
- h2 !== f2 && (v2 += " " + h2);
39
+ for (var c = 0, l = o.length; c < l; c++) {
40
+ var y = o[c];
41
+ if (y && "string" == typeof y.valueOf())
42
+ for (var g = y.valueOf().split(" "), d = 0; d < g.length; d++) {
43
+ var h = g[d];
44
+ h !== f && (v += " " + h);
45
45
  }
46
46
  }
47
- return v2;
47
+ return v;
48
48
  }
49
- var t2 = r2.n || "", n2 = r2.v || r2.m;
50
- return function(r3, t3) {
51
- return function(n3, i, a) {
52
- return "string" == typeof n3 ? Array.isArray(i) ? e2(r3, n3, void 0, i) : e2(r3, n3, i, a) : e2(r3, t3, n3, i);
49
+ var t = r2.n || "", n = r2.v || r2.m;
50
+ return function(r3, t2) {
51
+ return function(n2, i, a) {
52
+ return "string" == typeof n2 ? Array.isArray(i) ? e2(r3, n2, void 0, i) : e2(r3, n2, i, a) : e2(r3, t2, n2, i);
53
53
  };
54
54
  };
55
55
  }
56
56
  Object.defineProperty(classname_production_min, "__esModule", { value: true });
57
- var e$1 = r$1({ e: "-", m: "_" });
58
- classname_production_min.cn = e$1, classname_production_min.withNaming = r$1;
57
+ var e = r({ e: "-", m: "_" });
58
+ classname_production_min.cn = e, classname_production_min.withNaming = r;
59
59
  {
60
60
  classname.exports = classname_production_min;
61
61
  }
@@ -245,1229 +245,6 @@ const Button = (props) => {
245
245
  };
246
246
  Button.defaultProps = defaultProps$1n;
247
247
  Button.displayName = "NutButton";
248
- function _setPrototypeOf(o, p2) {
249
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
250
- o2.__proto__ = p3;
251
- return o2;
252
- };
253
- return _setPrototypeOf(o, p2);
254
- }
255
- function _inheritsLoose(subClass, superClass) {
256
- subClass.prototype = Object.create(superClass.prototype);
257
- subClass.prototype.constructor = subClass;
258
- _setPrototypeOf(subClass, superClass);
259
- }
260
- var propTypes = { exports: {} };
261
- var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
262
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
263
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
264
- function emptyFunction() {
265
- }
266
- function emptyFunctionWithReset() {
267
- }
268
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
269
- var factoryWithThrowingShims = function() {
270
- function shim(props, propName, componentName, location, propFullName, secret) {
271
- if (secret === ReactPropTypesSecret) {
272
- return;
273
- }
274
- var err = new Error(
275
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
276
- );
277
- err.name = "Invariant Violation";
278
- throw err;
279
- }
280
- shim.isRequired = shim;
281
- function getShim() {
282
- return shim;
283
- }
284
- var ReactPropTypes = {
285
- array: shim,
286
- bigint: shim,
287
- bool: shim,
288
- func: shim,
289
- number: shim,
290
- object: shim,
291
- string: shim,
292
- symbol: shim,
293
- any: shim,
294
- arrayOf: getShim,
295
- element: shim,
296
- elementType: shim,
297
- instanceOf: getShim,
298
- node: shim,
299
- objectOf: getShim,
300
- oneOf: getShim,
301
- oneOfType: getShim,
302
- shape: getShim,
303
- exact: getShim,
304
- checkPropTypes: emptyFunctionWithReset,
305
- resetWarningCache: emptyFunction
306
- };
307
- ReactPropTypes.PropTypes = ReactPropTypes;
308
- return ReactPropTypes;
309
- };
310
- {
311
- propTypes.exports = factoryWithThrowingShims();
312
- }
313
- var PropTypes = propTypes.exports;
314
- function _extends$3() {
315
- _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
316
- for (var i = 1; i < arguments.length; i++) {
317
- var source = arguments[i];
318
- for (var key in source) {
319
- if (Object.prototype.hasOwnProperty.call(source, key)) {
320
- target[key] = source[key];
321
- }
322
- }
323
- }
324
- return target;
325
- };
326
- return _extends$3.apply(this, arguments);
327
- }
328
- function isAbsolute(pathname) {
329
- return pathname.charAt(0) === "/";
330
- }
331
- function spliceOne(list, index) {
332
- for (var i = index, k2 = i + 1, n2 = list.length; k2 < n2; i += 1, k2 += 1) {
333
- list[i] = list[k2];
334
- }
335
- list.pop();
336
- }
337
- function resolvePathname(to2, from) {
338
- if (from === void 0)
339
- from = "";
340
- var toParts = to2 && to2.split("/") || [];
341
- var fromParts = from && from.split("/") || [];
342
- var isToAbs = to2 && isAbsolute(to2);
343
- var isFromAbs = from && isAbsolute(from);
344
- var mustEndAbs = isToAbs || isFromAbs;
345
- if (to2 && isAbsolute(to2)) {
346
- fromParts = toParts;
347
- } else if (toParts.length) {
348
- fromParts.pop();
349
- fromParts = fromParts.concat(toParts);
350
- }
351
- if (!fromParts.length)
352
- return "/";
353
- var hasTrailingSlash;
354
- if (fromParts.length) {
355
- var last = fromParts[fromParts.length - 1];
356
- hasTrailingSlash = last === "." || last === ".." || last === "";
357
- } else {
358
- hasTrailingSlash = false;
359
- }
360
- var up = 0;
361
- for (var i = fromParts.length; i >= 0; i--) {
362
- var part = fromParts[i];
363
- if (part === ".") {
364
- spliceOne(fromParts, i);
365
- } else if (part === "..") {
366
- spliceOne(fromParts, i);
367
- up++;
368
- } else if (up) {
369
- spliceOne(fromParts, i);
370
- up--;
371
- }
372
- }
373
- if (!mustEndAbs)
374
- for (; up--; up)
375
- fromParts.unshift("..");
376
- if (mustEndAbs && fromParts[0] !== "" && (!fromParts[0] || !isAbsolute(fromParts[0])))
377
- fromParts.unshift("");
378
- var result = fromParts.join("/");
379
- if (hasTrailingSlash && result.substr(-1) !== "/")
380
- result += "/";
381
- return result;
382
- }
383
- var isProduction = true;
384
- var prefix$1 = "Invariant failed";
385
- function invariant(condition, message) {
386
- if (condition) {
387
- return;
388
- }
389
- if (isProduction) {
390
- throw new Error(prefix$1);
391
- }
392
- var provided = typeof message === "function" ? message() : message;
393
- var value = provided ? "".concat(prefix$1, ": ").concat(provided) : prefix$1;
394
- throw new Error(value);
395
- }
396
- function parsePath(path) {
397
- var pathname = path || "/";
398
- var search = "";
399
- var hash = "";
400
- var hashIndex = pathname.indexOf("#");
401
- if (hashIndex !== -1) {
402
- hash = pathname.substr(hashIndex);
403
- pathname = pathname.substr(0, hashIndex);
404
- }
405
- var searchIndex = pathname.indexOf("?");
406
- if (searchIndex !== -1) {
407
- search = pathname.substr(searchIndex);
408
- pathname = pathname.substr(0, searchIndex);
409
- }
410
- return {
411
- pathname,
412
- search: search === "?" ? "" : search,
413
- hash: hash === "#" ? "" : hash
414
- };
415
- }
416
- function createPath(location) {
417
- var pathname = location.pathname, search = location.search, hash = location.hash;
418
- var path = pathname || "/";
419
- if (search && search !== "?")
420
- path += search.charAt(0) === "?" ? search : "?" + search;
421
- if (hash && hash !== "#")
422
- path += hash.charAt(0) === "#" ? hash : "#" + hash;
423
- return path;
424
- }
425
- function createLocation(path, state, key, currentLocation) {
426
- var location;
427
- if (typeof path === "string") {
428
- location = parsePath(path);
429
- location.state = state;
430
- } else {
431
- location = _extends$3({}, path);
432
- if (location.pathname === void 0)
433
- location.pathname = "";
434
- if (location.search) {
435
- if (location.search.charAt(0) !== "?")
436
- location.search = "?" + location.search;
437
- } else {
438
- location.search = "";
439
- }
440
- if (location.hash) {
441
- if (location.hash.charAt(0) !== "#")
442
- location.hash = "#" + location.hash;
443
- } else {
444
- location.hash = "";
445
- }
446
- if (state !== void 0 && location.state === void 0)
447
- location.state = state;
448
- }
449
- try {
450
- location.pathname = decodeURI(location.pathname);
451
- } catch (e2) {
452
- if (e2 instanceof URIError) {
453
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
454
- } else {
455
- throw e2;
456
- }
457
- }
458
- if (key)
459
- location.key = key;
460
- if (currentLocation) {
461
- if (!location.pathname) {
462
- location.pathname = currentLocation.pathname;
463
- } else if (location.pathname.charAt(0) !== "/") {
464
- location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
465
- }
466
- } else {
467
- if (!location.pathname) {
468
- location.pathname = "/";
469
- }
470
- }
471
- return location;
472
- }
473
- function createTransitionManager() {
474
- var prompt = null;
475
- function setPrompt(nextPrompt) {
476
- prompt = nextPrompt;
477
- return function() {
478
- if (prompt === nextPrompt)
479
- prompt = null;
480
- };
481
- }
482
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
483
- if (prompt != null) {
484
- var result = typeof prompt === "function" ? prompt(location, action) : prompt;
485
- if (typeof result === "string") {
486
- if (typeof getUserConfirmation === "function") {
487
- getUserConfirmation(result, callback);
488
- } else {
489
- callback(true);
490
- }
491
- } else {
492
- callback(result !== false);
493
- }
494
- } else {
495
- callback(true);
496
- }
497
- }
498
- var listeners = [];
499
- function appendListener(fn) {
500
- var isActive = true;
501
- function listener() {
502
- if (isActive)
503
- fn.apply(void 0, arguments);
504
- }
505
- listeners.push(listener);
506
- return function() {
507
- isActive = false;
508
- listeners = listeners.filter(function(item) {
509
- return item !== listener;
510
- });
511
- };
512
- }
513
- function notifyListeners() {
514
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
515
- args[_key] = arguments[_key];
516
- }
517
- listeners.forEach(function(listener) {
518
- return listener.apply(void 0, args);
519
- });
520
- }
521
- return {
522
- setPrompt,
523
- confirmTransitionTo,
524
- appendListener,
525
- notifyListeners
526
- };
527
- }
528
- function clamp$1(n2, lowerBound, upperBound) {
529
- return Math.min(Math.max(n2, lowerBound), upperBound);
530
- }
531
- function createMemoryHistory(props) {
532
- if (props === void 0) {
533
- props = {};
534
- }
535
- var _props = props, getUserConfirmation = _props.getUserConfirmation, _props$initialEntries = _props.initialEntries, initialEntries = _props$initialEntries === void 0 ? ["/"] : _props$initialEntries, _props$initialIndex = _props.initialIndex, initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex, _props$keyLength = _props.keyLength, keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
536
- var transitionManager = createTransitionManager();
537
- function setState(nextState) {
538
- _extends$3(history, nextState);
539
- history.length = history.entries.length;
540
- transitionManager.notifyListeners(history.location, history.action);
541
- }
542
- function createKey() {
543
- return Math.random().toString(36).substr(2, keyLength);
544
- }
545
- var index = clamp$1(initialIndex, 0, initialEntries.length - 1);
546
- var entries = initialEntries.map(function(entry) {
547
- return typeof entry === "string" ? createLocation(entry, void 0, createKey()) : createLocation(entry, void 0, entry.key || createKey());
548
- });
549
- var createHref = createPath;
550
- function push(path, state) {
551
- var action = "PUSH";
552
- var location = createLocation(path, state, createKey(), history.location);
553
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function(ok) {
554
- if (!ok)
555
- return;
556
- var prevIndex = history.index;
557
- var nextIndex = prevIndex + 1;
558
- var nextEntries = history.entries.slice(0);
559
- if (nextEntries.length > nextIndex) {
560
- nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
561
- } else {
562
- nextEntries.push(location);
563
- }
564
- setState({
565
- action,
566
- location,
567
- index: nextIndex,
568
- entries: nextEntries
569
- });
570
- });
571
- }
572
- function replace(path, state) {
573
- var action = "REPLACE";
574
- var location = createLocation(path, state, createKey(), history.location);
575
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function(ok) {
576
- if (!ok)
577
- return;
578
- history.entries[history.index] = location;
579
- setState({
580
- action,
581
- location
582
- });
583
- });
584
- }
585
- function go(n2) {
586
- var nextIndex = clamp$1(history.index + n2, 0, history.entries.length - 1);
587
- var action = "POP";
588
- var location = history.entries[nextIndex];
589
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function(ok) {
590
- if (ok) {
591
- setState({
592
- action,
593
- location,
594
- index: nextIndex
595
- });
596
- } else {
597
- setState();
598
- }
599
- });
600
- }
601
- function goBack() {
602
- go(-1);
603
- }
604
- function goForward() {
605
- go(1);
606
- }
607
- function canGo(n2) {
608
- var nextIndex = history.index + n2;
609
- return nextIndex >= 0 && nextIndex < history.entries.length;
610
- }
611
- function block(prompt) {
612
- if (prompt === void 0) {
613
- prompt = false;
614
- }
615
- return transitionManager.setPrompt(prompt);
616
- }
617
- function listen(listener) {
618
- return transitionManager.appendListener(listener);
619
- }
620
- var history = {
621
- length: entries.length,
622
- action: "POP",
623
- location: entries[index],
624
- index,
625
- entries,
626
- createHref,
627
- push,
628
- replace,
629
- go,
630
- goBack,
631
- goForward,
632
- canGo,
633
- block,
634
- listen
635
- };
636
- return history;
637
- }
638
- var pathToRegexp$2 = { exports: {} };
639
- var isarray$1 = Array.isArray || function(arr) {
640
- return Object.prototype.toString.call(arr) == "[object Array]";
641
- };
642
- var isarray = isarray$1;
643
- pathToRegexp$2.exports = pathToRegexp;
644
- pathToRegexp$2.exports.parse = parse$1;
645
- pathToRegexp$2.exports.compile = compile;
646
- pathToRegexp$2.exports.tokensToFunction = tokensToFunction;
647
- pathToRegexp$2.exports.tokensToRegExp = tokensToRegExp;
648
- var PATH_REGEXP = new RegExp([
649
- "(\\\\.)",
650
- "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
651
- ].join("|"), "g");
652
- function parse$1(str, options) {
653
- var tokens = [];
654
- var key = 0;
655
- var index = 0;
656
- var path = "";
657
- var defaultDelimiter = options && options.delimiter || "/";
658
- var res;
659
- while ((res = PATH_REGEXP.exec(str)) != null) {
660
- var m2 = res[0];
661
- var escaped = res[1];
662
- var offset = res.index;
663
- path += str.slice(index, offset);
664
- index = offset + m2.length;
665
- if (escaped) {
666
- path += escaped[1];
667
- continue;
668
- }
669
- var next = str[index];
670
- var prefix2 = res[2];
671
- var name = res[3];
672
- var capture = res[4];
673
- var group = res[5];
674
- var modifier = res[6];
675
- var asterisk = res[7];
676
- if (path) {
677
- tokens.push(path);
678
- path = "";
679
- }
680
- var partial = prefix2 != null && next != null && next !== prefix2;
681
- var repeat = modifier === "+" || modifier === "*";
682
- var optional = modifier === "?" || modifier === "*";
683
- var delimiter = res[2] || defaultDelimiter;
684
- var pattern = capture || group;
685
- tokens.push({
686
- name: name || key++,
687
- prefix: prefix2 || "",
688
- delimiter,
689
- optional,
690
- repeat,
691
- partial,
692
- asterisk: !!asterisk,
693
- pattern: pattern ? escapeGroup(pattern) : asterisk ? ".*" : "[^" + escapeString(delimiter) + "]+?"
694
- });
695
- }
696
- if (index < str.length) {
697
- path += str.substr(index);
698
- }
699
- if (path) {
700
- tokens.push(path);
701
- }
702
- return tokens;
703
- }
704
- function compile(str, options) {
705
- return tokensToFunction(parse$1(str, options), options);
706
- }
707
- function encodeURIComponentPretty(str) {
708
- return encodeURI(str).replace(/[\/?#]/g, function(c6) {
709
- return "%" + c6.charCodeAt(0).toString(16).toUpperCase();
710
- });
711
- }
712
- function encodeAsterisk(str) {
713
- return encodeURI(str).replace(/[?#]/g, function(c6) {
714
- return "%" + c6.charCodeAt(0).toString(16).toUpperCase();
715
- });
716
- }
717
- function tokensToFunction(tokens, options) {
718
- var matches = new Array(tokens.length);
719
- for (var i = 0; i < tokens.length; i++) {
720
- if (typeof tokens[i] === "object") {
721
- matches[i] = new RegExp("^(?:" + tokens[i].pattern + ")$", flags(options));
722
- }
723
- }
724
- return function(obj, opts) {
725
- var path = "";
726
- var data = obj || {};
727
- var options2 = opts || {};
728
- var encode = options2.pretty ? encodeURIComponentPretty : encodeURIComponent;
729
- for (var i2 = 0; i2 < tokens.length; i2++) {
730
- var token = tokens[i2];
731
- if (typeof token === "string") {
732
- path += token;
733
- continue;
734
- }
735
- var value = data[token.name];
736
- var segment;
737
- if (value == null) {
738
- if (token.optional) {
739
- if (token.partial) {
740
- path += token.prefix;
741
- }
742
- continue;
743
- } else {
744
- throw new TypeError('Expected "' + token.name + '" to be defined');
745
- }
746
- }
747
- if (isarray(value)) {
748
- if (!token.repeat) {
749
- throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + "`");
750
- }
751
- if (value.length === 0) {
752
- if (token.optional) {
753
- continue;
754
- } else {
755
- throw new TypeError('Expected "' + token.name + '" to not be empty');
756
- }
757
- }
758
- for (var j = 0; j < value.length; j++) {
759
- segment = encode(value[j]);
760
- if (!matches[i2].test(segment)) {
761
- throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + "`");
762
- }
763
- path += (j === 0 ? token.prefix : token.delimiter) + segment;
764
- }
765
- continue;
766
- }
767
- segment = token.asterisk ? encodeAsterisk(value) : encode(value);
768
- if (!matches[i2].test(segment)) {
769
- throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
770
- }
771
- path += token.prefix + segment;
772
- }
773
- return path;
774
- };
775
- }
776
- function escapeString(str) {
777
- return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
778
- }
779
- function escapeGroup(group) {
780
- return group.replace(/([=!:$\/()])/g, "\\$1");
781
- }
782
- function attachKeys(re, keys) {
783
- re.keys = keys;
784
- return re;
785
- }
786
- function flags(options) {
787
- return options && options.sensitive ? "" : "i";
788
- }
789
- function regexpToRegexp(path, keys) {
790
- var groups = path.source.match(/\((?!\?)/g);
791
- if (groups) {
792
- for (var i = 0; i < groups.length; i++) {
793
- keys.push({
794
- name: i,
795
- prefix: null,
796
- delimiter: null,
797
- optional: false,
798
- repeat: false,
799
- partial: false,
800
- asterisk: false,
801
- pattern: null
802
- });
803
- }
804
- }
805
- return attachKeys(path, keys);
806
- }
807
- function arrayToRegexp(path, keys, options) {
808
- var parts = [];
809
- for (var i = 0; i < path.length; i++) {
810
- parts.push(pathToRegexp(path[i], keys, options).source);
811
- }
812
- var regexp = new RegExp("(?:" + parts.join("|") + ")", flags(options));
813
- return attachKeys(regexp, keys);
814
- }
815
- function stringToRegexp(path, keys, options) {
816
- return tokensToRegExp(parse$1(path, options), keys, options);
817
- }
818
- function tokensToRegExp(tokens, keys, options) {
819
- if (!isarray(keys)) {
820
- options = keys || options;
821
- keys = [];
822
- }
823
- options = options || {};
824
- var strict = options.strict;
825
- var end = options.end !== false;
826
- var route = "";
827
- for (var i = 0; i < tokens.length; i++) {
828
- var token = tokens[i];
829
- if (typeof token === "string") {
830
- route += escapeString(token);
831
- } else {
832
- var prefix2 = escapeString(token.prefix);
833
- var capture = "(?:" + token.pattern + ")";
834
- keys.push(token);
835
- if (token.repeat) {
836
- capture += "(?:" + prefix2 + capture + ")*";
837
- }
838
- if (token.optional) {
839
- if (!token.partial) {
840
- capture = "(?:" + prefix2 + "(" + capture + "))?";
841
- } else {
842
- capture = prefix2 + "(" + capture + ")?";
843
- }
844
- } else {
845
- capture = prefix2 + "(" + capture + ")";
846
- }
847
- route += capture;
848
- }
849
- }
850
- var delimiter = escapeString(options.delimiter || "/");
851
- var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
852
- if (!strict) {
853
- route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + "(?:" + delimiter + "(?=$))?";
854
- }
855
- if (end) {
856
- route += "$";
857
- } else {
858
- route += strict && endsWithDelimiter ? "" : "(?=" + delimiter + "|$)";
859
- }
860
- return attachKeys(new RegExp("^" + route, flags(options)), keys);
861
- }
862
- function pathToRegexp(path, keys, options) {
863
- if (!isarray(keys)) {
864
- options = keys || options;
865
- keys = [];
866
- }
867
- options = options || {};
868
- if (path instanceof RegExp) {
869
- return regexpToRegexp(path, keys);
870
- }
871
- if (isarray(path)) {
872
- return arrayToRegexp(path, keys, options);
873
- }
874
- return stringToRegexp(path, keys, options);
875
- }
876
- var pathToRegexp$1 = pathToRegexp$2.exports;
877
- var reactIs$1 = { exports: {} };
878
- var reactIs_production_min = {};
879
- /** @license React v16.13.1
880
- * react-is.production.min.js
881
- *
882
- * Copyright (c) Facebook, Inc. and its affiliates.
883
- *
884
- * This source code is licensed under the MIT license found in the
885
- * LICENSE file in the root directory of this source tree.
886
- */
887
- var b$1 = "function" === typeof Symbol && Symbol.for, c = b$1 ? Symbol.for("react.element") : 60103, d = b$1 ? Symbol.for("react.portal") : 60106, e = b$1 ? Symbol.for("react.fragment") : 60107, f = b$1 ? Symbol.for("react.strict_mode") : 60108, g = b$1 ? Symbol.for("react.profiler") : 60114, h = b$1 ? Symbol.for("react.provider") : 60109, k = b$1 ? Symbol.for("react.context") : 60110, l = b$1 ? Symbol.for("react.async_mode") : 60111, m = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n = b$1 ? Symbol.for("react.forward_ref") : 60112, p = b$1 ? Symbol.for("react.suspense") : 60113, q = b$1 ? Symbol.for("react.suspense_list") : 60120, r = b$1 ? Symbol.for("react.memo") : 60115, t = b$1 ? Symbol.for("react.lazy") : 60116, v = b$1 ? Symbol.for("react.block") : 60121, w = b$1 ? Symbol.for("react.fundamental") : 60117, x = b$1 ? Symbol.for("react.responder") : 60118, y = b$1 ? Symbol.for("react.scope") : 60119;
888
- function z(a) {
889
- if ("object" === typeof a && null !== a) {
890
- var u = a.$$typeof;
891
- switch (u) {
892
- case c:
893
- switch (a = a.type, a) {
894
- case l:
895
- case m:
896
- case e:
897
- case g:
898
- case f:
899
- case p:
900
- return a;
901
- default:
902
- switch (a = a && a.$$typeof, a) {
903
- case k:
904
- case n:
905
- case t:
906
- case r:
907
- case h:
908
- return a;
909
- default:
910
- return u;
911
- }
912
- }
913
- case d:
914
- return u;
915
- }
916
- }
917
- }
918
- function A(a) {
919
- return z(a) === m;
920
- }
921
- reactIs_production_min.AsyncMode = l;
922
- reactIs_production_min.ConcurrentMode = m;
923
- reactIs_production_min.ContextConsumer = k;
924
- reactIs_production_min.ContextProvider = h;
925
- reactIs_production_min.Element = c;
926
- reactIs_production_min.ForwardRef = n;
927
- reactIs_production_min.Fragment = e;
928
- reactIs_production_min.Lazy = t;
929
- reactIs_production_min.Memo = r;
930
- reactIs_production_min.Portal = d;
931
- reactIs_production_min.Profiler = g;
932
- reactIs_production_min.StrictMode = f;
933
- reactIs_production_min.Suspense = p;
934
- reactIs_production_min.isAsyncMode = function(a) {
935
- return A(a) || z(a) === l;
936
- };
937
- reactIs_production_min.isConcurrentMode = A;
938
- reactIs_production_min.isContextConsumer = function(a) {
939
- return z(a) === k;
940
- };
941
- reactIs_production_min.isContextProvider = function(a) {
942
- return z(a) === h;
943
- };
944
- reactIs_production_min.isElement = function(a) {
945
- return "object" === typeof a && null !== a && a.$$typeof === c;
946
- };
947
- reactIs_production_min.isForwardRef = function(a) {
948
- return z(a) === n;
949
- };
950
- reactIs_production_min.isFragment = function(a) {
951
- return z(a) === e;
952
- };
953
- reactIs_production_min.isLazy = function(a) {
954
- return z(a) === t;
955
- };
956
- reactIs_production_min.isMemo = function(a) {
957
- return z(a) === r;
958
- };
959
- reactIs_production_min.isPortal = function(a) {
960
- return z(a) === d;
961
- };
962
- reactIs_production_min.isProfiler = function(a) {
963
- return z(a) === g;
964
- };
965
- reactIs_production_min.isStrictMode = function(a) {
966
- return z(a) === f;
967
- };
968
- reactIs_production_min.isSuspense = function(a) {
969
- return z(a) === p;
970
- };
971
- reactIs_production_min.isValidElementType = function(a) {
972
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
973
- };
974
- reactIs_production_min.typeOf = z;
975
- {
976
- reactIs$1.exports = reactIs_production_min;
977
- }
978
- function _objectWithoutPropertiesLoose$3(source, excluded) {
979
- if (source == null)
980
- return {};
981
- var target = {};
982
- var sourceKeys = Object.keys(source);
983
- var key, i;
984
- for (i = 0; i < sourceKeys.length; i++) {
985
- key = sourceKeys[i];
986
- if (excluded.indexOf(key) >= 0)
987
- continue;
988
- target[key] = source[key];
989
- }
990
- return target;
991
- }
992
- var reactIs = reactIs$1.exports;
993
- var FORWARD_REF_STATICS = {
994
- "$$typeof": true,
995
- render: true,
996
- defaultProps: true,
997
- displayName: true,
998
- propTypes: true
999
- };
1000
- var MEMO_STATICS = {
1001
- "$$typeof": true,
1002
- compare: true,
1003
- defaultProps: true,
1004
- displayName: true,
1005
- propTypes: true,
1006
- type: true
1007
- };
1008
- var TYPE_STATICS = {};
1009
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1010
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1011
- var MAX_SIGNED_31_BIT_INT = 1073741823;
1012
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
1013
- function getUniqueId() {
1014
- var key = "__global_unique_id__";
1015
- return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
1016
- }
1017
- function objectIs(x2, y2) {
1018
- if (x2 === y2) {
1019
- return x2 !== 0 || 1 / x2 === 1 / y2;
1020
- } else {
1021
- return x2 !== x2 && y2 !== y2;
1022
- }
1023
- }
1024
- function createEventEmitter(value) {
1025
- var handlers = [];
1026
- return {
1027
- on: function on(handler) {
1028
- handlers.push(handler);
1029
- },
1030
- off: function off(handler) {
1031
- handlers = handlers.filter(function(h2) {
1032
- return h2 !== handler;
1033
- });
1034
- },
1035
- get: function get() {
1036
- return value;
1037
- },
1038
- set: function set(newValue, changedBits) {
1039
- value = newValue;
1040
- handlers.forEach(function(handler) {
1041
- return handler(value, changedBits);
1042
- });
1043
- }
1044
- };
1045
- }
1046
- function onlyChild(children) {
1047
- return Array.isArray(children) ? children[0] : children;
1048
- }
1049
- function createReactContext(defaultValue, calculateChangedBits) {
1050
- var _Provider$childContex, _Consumer$contextType;
1051
- var contextProp = "__create-react-context-" + getUniqueId() + "__";
1052
- var Provider = /* @__PURE__ */ function(_React$Component) {
1053
- _inheritsLoose(Provider2, _React$Component);
1054
- function Provider2() {
1055
- var _this;
1056
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1057
- args[_key] = arguments[_key];
1058
- }
1059
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1060
- _this.emitter = createEventEmitter(_this.props.value);
1061
- return _this;
1062
- }
1063
- var _proto = Provider2.prototype;
1064
- _proto.getChildContext = function getChildContext() {
1065
- var _ref;
1066
- return _ref = {}, _ref[contextProp] = this.emitter, _ref;
1067
- };
1068
- _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1069
- if (this.props.value !== nextProps.value) {
1070
- var oldValue = this.props.value;
1071
- var newValue = nextProps.value;
1072
- var changedBits;
1073
- if (objectIs(oldValue, newValue)) {
1074
- changedBits = 0;
1075
- } else {
1076
- changedBits = typeof calculateChangedBits === "function" ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
1077
- changedBits |= 0;
1078
- if (changedBits !== 0) {
1079
- this.emitter.set(nextProps.value, changedBits);
1080
- }
1081
- }
1082
- }
1083
- };
1084
- _proto.render = function render() {
1085
- return this.props.children;
1086
- };
1087
- return Provider2;
1088
- }(React__default.Component);
1089
- Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);
1090
- var Consumer = /* @__PURE__ */ function(_React$Component2) {
1091
- _inheritsLoose(Consumer2, _React$Component2);
1092
- function Consumer2() {
1093
- var _this2;
1094
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1095
- args[_key2] = arguments[_key2];
1096
- }
1097
- _this2 = _React$Component2.call.apply(_React$Component2, [this].concat(args)) || this;
1098
- _this2.observedBits = void 0;
1099
- _this2.state = {
1100
- value: _this2.getValue()
1101
- };
1102
- _this2.onUpdate = function(newValue, changedBits) {
1103
- var observedBits = _this2.observedBits | 0;
1104
- if ((observedBits & changedBits) !== 0) {
1105
- _this2.setState({
1106
- value: _this2.getValue()
1107
- });
1108
- }
1109
- };
1110
- return _this2;
1111
- }
1112
- var _proto2 = Consumer2.prototype;
1113
- _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1114
- var observedBits = nextProps.observedBits;
1115
- this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1116
- };
1117
- _proto2.componentDidMount = function componentDidMount() {
1118
- if (this.context[contextProp]) {
1119
- this.context[contextProp].on(this.onUpdate);
1120
- }
1121
- var observedBits = this.props.observedBits;
1122
- this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1123
- };
1124
- _proto2.componentWillUnmount = function componentWillUnmount() {
1125
- if (this.context[contextProp]) {
1126
- this.context[contextProp].off(this.onUpdate);
1127
- }
1128
- };
1129
- _proto2.getValue = function getValue() {
1130
- if (this.context[contextProp]) {
1131
- return this.context[contextProp].get();
1132
- } else {
1133
- return defaultValue;
1134
- }
1135
- };
1136
- _proto2.render = function render() {
1137
- return onlyChild(this.props.children)(this.state.value);
1138
- };
1139
- return Consumer2;
1140
- }(React__default.Component);
1141
- Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = PropTypes.object, _Consumer$contextType);
1142
- return {
1143
- Provider,
1144
- Consumer
1145
- };
1146
- }
1147
- var createContext = React__default.createContext || createReactContext;
1148
- var createNamedContext = function createNamedContext2(name) {
1149
- var context2 = createContext();
1150
- context2.displayName = name;
1151
- return context2;
1152
- };
1153
- var historyContext = /* @__PURE__ */ createNamedContext("Router-History");
1154
- var context = /* @__PURE__ */ createNamedContext("Router");
1155
- var Router = /* @__PURE__ */ function(_React$Component) {
1156
- _inheritsLoose(Router2, _React$Component);
1157
- Router2.computeRootMatch = function computeRootMatch(pathname) {
1158
- return {
1159
- path: "/",
1160
- url: "/",
1161
- params: {},
1162
- isExact: pathname === "/"
1163
- };
1164
- };
1165
- function Router2(props) {
1166
- var _this;
1167
- _this = _React$Component.call(this, props) || this;
1168
- _this.state = {
1169
- location: props.history.location
1170
- };
1171
- _this._isMounted = false;
1172
- _this._pendingLocation = null;
1173
- if (!props.staticContext) {
1174
- _this.unlisten = props.history.listen(function(location) {
1175
- _this._pendingLocation = location;
1176
- });
1177
- }
1178
- return _this;
1179
- }
1180
- var _proto = Router2.prototype;
1181
- _proto.componentDidMount = function componentDidMount() {
1182
- var _this2 = this;
1183
- this._isMounted = true;
1184
- if (this.unlisten) {
1185
- this.unlisten();
1186
- }
1187
- if (!this.props.staticContext) {
1188
- this.unlisten = this.props.history.listen(function(location) {
1189
- if (_this2._isMounted) {
1190
- _this2.setState({
1191
- location
1192
- });
1193
- }
1194
- });
1195
- }
1196
- if (this._pendingLocation) {
1197
- this.setState({
1198
- location: this._pendingLocation
1199
- });
1200
- }
1201
- };
1202
- _proto.componentWillUnmount = function componentWillUnmount() {
1203
- if (this.unlisten) {
1204
- this.unlisten();
1205
- this._isMounted = false;
1206
- this._pendingLocation = null;
1207
- }
1208
- };
1209
- _proto.render = function render() {
1210
- return /* @__PURE__ */ React__default.createElement(context.Provider, {
1211
- value: {
1212
- history: this.props.history,
1213
- location: this.state.location,
1214
- match: Router2.computeRootMatch(this.state.location.pathname),
1215
- staticContext: this.props.staticContext
1216
- }
1217
- }, /* @__PURE__ */ React__default.createElement(historyContext.Provider, {
1218
- children: this.props.children || null,
1219
- value: this.props.history
1220
- }));
1221
- };
1222
- return Router2;
1223
- }(React__default.Component);
1224
- /* @__PURE__ */ (function(_React$Component) {
1225
- _inheritsLoose(MemoryRouter, _React$Component);
1226
- function MemoryRouter() {
1227
- var _this;
1228
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1229
- args[_key] = arguments[_key];
1230
- }
1231
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1232
- _this.history = createMemoryHistory(_this.props);
1233
- return _this;
1234
- }
1235
- var _proto = MemoryRouter.prototype;
1236
- _proto.render = function render() {
1237
- return /* @__PURE__ */ React__default.createElement(Router, {
1238
- history: this.history,
1239
- children: this.props.children
1240
- });
1241
- };
1242
- return MemoryRouter;
1243
- })(React__default.Component);
1244
- /* @__PURE__ */ (function(_React$Component) {
1245
- _inheritsLoose(Lifecycle, _React$Component);
1246
- function Lifecycle() {
1247
- return _React$Component.apply(this, arguments) || this;
1248
- }
1249
- var _proto = Lifecycle.prototype;
1250
- _proto.componentDidMount = function componentDidMount() {
1251
- if (this.props.onMount)
1252
- this.props.onMount.call(this, this);
1253
- };
1254
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
1255
- if (this.props.onUpdate)
1256
- this.props.onUpdate.call(this, this, prevProps);
1257
- };
1258
- _proto.componentWillUnmount = function componentWillUnmount() {
1259
- if (this.props.onUnmount)
1260
- this.props.onUnmount.call(this, this);
1261
- };
1262
- _proto.render = function render() {
1263
- return null;
1264
- };
1265
- return Lifecycle;
1266
- })(React__default.Component);
1267
- var cache$1 = {};
1268
- var cacheLimit$1 = 1e4;
1269
- var cacheCount$1 = 0;
1270
- function compilePath$1(path, options) {
1271
- var cacheKey2 = "" + options.end + options.strict + options.sensitive;
1272
- var pathCache = cache$1[cacheKey2] || (cache$1[cacheKey2] = {});
1273
- if (pathCache[path])
1274
- return pathCache[path];
1275
- var keys = [];
1276
- var regexp = pathToRegexp$1(path, keys, options);
1277
- var result = {
1278
- regexp,
1279
- keys
1280
- };
1281
- if (cacheCount$1 < cacheLimit$1) {
1282
- pathCache[path] = result;
1283
- cacheCount$1++;
1284
- }
1285
- return result;
1286
- }
1287
- function matchPath(pathname, options) {
1288
- if (options === void 0) {
1289
- options = {};
1290
- }
1291
- if (typeof options === "string" || Array.isArray(options)) {
1292
- options = {
1293
- path: options
1294
- };
1295
- }
1296
- var _options = options, path = _options.path, _options$exact = _options.exact, exact = _options$exact === void 0 ? false : _options$exact, _options$strict = _options.strict, strict = _options$strict === void 0 ? false : _options$strict, _options$sensitive = _options.sensitive, sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
1297
- var paths = [].concat(path);
1298
- return paths.reduce(function(matched, path2) {
1299
- if (!path2 && path2 !== "")
1300
- return null;
1301
- if (matched)
1302
- return matched;
1303
- var _compilePath = compilePath$1(path2, {
1304
- end: exact,
1305
- strict,
1306
- sensitive
1307
- }), regexp = _compilePath.regexp, keys = _compilePath.keys;
1308
- var match = regexp.exec(pathname);
1309
- if (!match)
1310
- return null;
1311
- var url = match[0], values = match.slice(1);
1312
- var isExact = pathname === url;
1313
- if (exact && !isExact)
1314
- return null;
1315
- return {
1316
- path: path2,
1317
- url: path2 === "/" && url === "" ? "/" : url,
1318
- isExact,
1319
- params: keys.reduce(function(memo2, key, index) {
1320
- memo2[key.name] = values[index];
1321
- return memo2;
1322
- }, {})
1323
- };
1324
- }, null);
1325
- }
1326
- function isEmptyChildren(children) {
1327
- return React__default.Children.count(children) === 0;
1328
- }
1329
- /* @__PURE__ */ (function(_React$Component) {
1330
- _inheritsLoose(Route, _React$Component);
1331
- function Route() {
1332
- return _React$Component.apply(this, arguments) || this;
1333
- }
1334
- var _proto = Route.prototype;
1335
- _proto.render = function render() {
1336
- var _this = this;
1337
- return /* @__PURE__ */ React__default.createElement(context.Consumer, null, function(context$1) {
1338
- !context$1 ? invariant(false) : void 0;
1339
- var location = _this.props.location || context$1.location;
1340
- var match = _this.props.computedMatch ? _this.props.computedMatch : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
1341
- var props = _extends$3({}, context$1, {
1342
- location,
1343
- match
1344
- });
1345
- var _this$props = _this.props, children = _this$props.children, component = _this$props.component, render2 = _this$props.render;
1346
- if (Array.isArray(children) && isEmptyChildren(children)) {
1347
- children = null;
1348
- }
1349
- return /* @__PURE__ */ React__default.createElement(context.Provider, {
1350
- value: props
1351
- }, props.match ? children ? typeof children === "function" ? children(props) : children : component ? /* @__PURE__ */ React__default.createElement(component, props) : render2 ? render2(props) : null : typeof children === "function" ? children(props) : null);
1352
- });
1353
- };
1354
- return Route;
1355
- })(React__default.Component);
1356
- function addLeadingSlash(path) {
1357
- return path.charAt(0) === "/" ? path : "/" + path;
1358
- }
1359
- function addBasename(basename, location) {
1360
- if (!basename)
1361
- return location;
1362
- return _extends$3({}, location, {
1363
- pathname: addLeadingSlash(basename) + location.pathname
1364
- });
1365
- }
1366
- function stripBasename(basename, location) {
1367
- if (!basename)
1368
- return location;
1369
- var base = addLeadingSlash(basename);
1370
- if (location.pathname.indexOf(base) !== 0)
1371
- return location;
1372
- return _extends$3({}, location, {
1373
- pathname: location.pathname.substr(base.length)
1374
- });
1375
- }
1376
- function createURL(location) {
1377
- return typeof location === "string" ? location : createPath(location);
1378
- }
1379
- function staticHandler(methodName) {
1380
- return function() {
1381
- invariant(false);
1382
- };
1383
- }
1384
- function noop$3() {
1385
- }
1386
- /* @__PURE__ */ (function(_React$Component) {
1387
- _inheritsLoose(StaticRouter, _React$Component);
1388
- function StaticRouter() {
1389
- var _this;
1390
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1391
- args[_key] = arguments[_key];
1392
- }
1393
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1394
- _this.handlePush = function(location) {
1395
- return _this.navigateTo(location, "PUSH");
1396
- };
1397
- _this.handleReplace = function(location) {
1398
- return _this.navigateTo(location, "REPLACE");
1399
- };
1400
- _this.handleListen = function() {
1401
- return noop$3;
1402
- };
1403
- _this.handleBlock = function() {
1404
- return noop$3;
1405
- };
1406
- return _this;
1407
- }
1408
- var _proto = StaticRouter.prototype;
1409
- _proto.navigateTo = function navigateTo(location, action) {
1410
- var _this$props = this.props, _this$props$basename = _this$props.basename, basename = _this$props$basename === void 0 ? "" : _this$props$basename, _this$props$context = _this$props.context, context2 = _this$props$context === void 0 ? {} : _this$props$context;
1411
- context2.action = action;
1412
- context2.location = addBasename(basename, createLocation(location));
1413
- context2.url = createURL(context2.location);
1414
- };
1415
- _proto.render = function render() {
1416
- var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, context2 = _this$props2$context === void 0 ? {} : _this$props2$context, _this$props2$location = _this$props2.location, location = _this$props2$location === void 0 ? "/" : _this$props2$location, rest = _objectWithoutPropertiesLoose$3(_this$props2, ["basename", "context", "location"]);
1417
- var history = {
1418
- createHref: function createHref(path) {
1419
- return addLeadingSlash(basename + createURL(path));
1420
- },
1421
- action: "POP",
1422
- location: stripBasename(basename, createLocation(location)),
1423
- push: this.handlePush,
1424
- replace: this.handleReplace,
1425
- go: staticHandler(),
1426
- goBack: staticHandler(),
1427
- goForward: staticHandler(),
1428
- listen: this.handleListen,
1429
- block: this.handleBlock
1430
- };
1431
- return /* @__PURE__ */ React__default.createElement(Router, _extends$3({}, rest, {
1432
- history,
1433
- staticContext: context2
1434
- }));
1435
- };
1436
- return StaticRouter;
1437
- })(React__default.Component);
1438
- /* @__PURE__ */ (function(_React$Component) {
1439
- _inheritsLoose(Switch2, _React$Component);
1440
- function Switch2() {
1441
- return _React$Component.apply(this, arguments) || this;
1442
- }
1443
- var _proto = Switch2.prototype;
1444
- _proto.render = function render() {
1445
- var _this = this;
1446
- return /* @__PURE__ */ React__default.createElement(context.Consumer, null, function(context2) {
1447
- !context2 ? invariant(false) : void 0;
1448
- var location = _this.props.location || context2.location;
1449
- var element, match;
1450
- React__default.Children.forEach(_this.props.children, function(child) {
1451
- if (match == null && /* @__PURE__ */ React__default.isValidElement(child)) {
1452
- element = child;
1453
- var path = child.props.path || child.props.from;
1454
- match = path ? matchPath(location.pathname, _extends$3({}, child.props, {
1455
- path
1456
- })) : context2.match;
1457
- }
1458
- });
1459
- return match ? /* @__PURE__ */ React__default.cloneElement(element, {
1460
- location,
1461
- computedMatch: match
1462
- }) : null;
1463
- });
1464
- };
1465
- return Switch2;
1466
- })(React__default.Component);
1467
- var useContext = React__default.useContext;
1468
- function useHistory() {
1469
- return useContext(historyContext);
1470
- }
1471
248
  const defaultProps$1m = {
1472
249
  ...ComponentDefaults,
1473
250
  title: null,
@@ -1518,19 +295,10 @@ const Cell = (props) => {
1518
295
  ...props
1519
296
  };
1520
297
  const b2 = cn("cell");
1521
- const history = useHistory();
1522
298
  const handleClick2 = (event) => {
1523
- click(event);
1524
299
  onClick(event);
1525
- if (to2 && history) {
1526
- history[replace ? "replace" : "push"](to2);
1527
- } else if (url) {
1528
- if (url.startsWith("https://") || url.startsWith("http://") || url.startsWith("//")) {
1529
- replace ? window.location.replace(url) : window.location.href = url;
1530
- } else {
1531
- Taro.navigateTo({ url });
1532
- }
1533
- }
300
+ const link = to2 || url;
301
+ replace ? Taro.redirectTo({ url: link }) : Taro.navigateTo({ url: link });
1534
302
  };
1535
303
  const baseStyle = {
1536
304
  borderRadius: Number.isNaN(Number(roundRadius)) ? String(roundRadius) : `${roundRadius}px`
@@ -1601,9 +369,9 @@ CellGroup.defaultProps = defaultProps$1l;
1601
369
  CellGroup.displayName = "NutCellGroup";
1602
370
  var classnames = { exports: {} };
1603
371
  /*!
1604
- Copyright (c) 2018 Jed Watson.
1605
- Licensed under the MIT License (MIT), see
1606
- http://jedwatson.github.io/classnames
372
+ Copyright (c) 2018 Jed Watson.
373
+ Licensed under the MIT License (MIT), see
374
+ http://jedwatson.github.io/classnames
1607
375
  */
1608
376
  (function(module) {
1609
377
  (function() {
@@ -1625,14 +393,14 @@ var classnames = { exports: {} };
1625
393
  }
1626
394
  }
1627
395
  } else if (argType === "object") {
1628
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
1629
- classes.push(arg.toString());
1630
- continue;
1631
- }
1632
- for (var key in arg) {
1633
- if (hasOwn.call(arg, key) && arg[key]) {
1634
- classes.push(key);
396
+ if (arg.toString === Object.prototype.toString) {
397
+ for (var key in arg) {
398
+ if (hasOwn.call(arg, key) && arg[key]) {
399
+ classes.push(key);
400
+ }
1635
401
  }
402
+ } else {
403
+ classes.push(arg.toString());
1636
404
  }
1637
405
  }
1638
406
  }
@@ -1726,6 +494,46 @@ const Overlay = (props) => {
1726
494
  };
1727
495
  Overlay.defaultProps = defaultOverlayProps;
1728
496
  Overlay.displayName = "NutOverlay";
497
+ function _extends$3() {
498
+ _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
499
+ for (var i = 1; i < arguments.length; i++) {
500
+ var source = arguments[i];
501
+ for (var key in source) {
502
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
503
+ target[key] = source[key];
504
+ }
505
+ }
506
+ }
507
+ return target;
508
+ };
509
+ return _extends$3.apply(this, arguments);
510
+ }
511
+ function _objectWithoutPropertiesLoose$3(source, excluded) {
512
+ if (source == null)
513
+ return {};
514
+ var target = {};
515
+ var sourceKeys = Object.keys(source);
516
+ var key, i;
517
+ for (i = 0; i < sourceKeys.length; i++) {
518
+ key = sourceKeys[i];
519
+ if (excluded.indexOf(key) >= 0)
520
+ continue;
521
+ target[key] = source[key];
522
+ }
523
+ return target;
524
+ }
525
+ function _setPrototypeOf(o, p) {
526
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
527
+ o2.__proto__ = p2;
528
+ return o2;
529
+ };
530
+ return _setPrototypeOf(o, p);
531
+ }
532
+ function _inheritsLoose(subClass, superClass) {
533
+ subClass.prototype = Object.create(superClass.prototype);
534
+ subClass.prototype.constructor = subClass;
535
+ _setPrototypeOf(subClass, superClass);
536
+ }
1729
537
  function hasClass(element, className) {
1730
538
  if (element.classList)
1731
539
  return !!className && element.classList.contains(className);
@@ -1766,10 +574,10 @@ var ENTERED = "entered";
1766
574
  var EXITING = "exiting";
1767
575
  var Transition = /* @__PURE__ */ function(_React$Component) {
1768
576
  _inheritsLoose(Transition2, _React$Component);
1769
- function Transition2(props, context2) {
577
+ function Transition2(props, context) {
1770
578
  var _this;
1771
- _this = _React$Component.call(this, props, context2) || this;
1772
- var parentGroup = context2;
579
+ _this = _React$Component.call(this, props, context) || this;
580
+ var parentGroup = context;
1773
581
  var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
1774
582
  var initialStatus;
1775
583
  _this.appearStatus = null;
@@ -2012,13 +820,13 @@ Transition.ENTERED = ENTERED;
2012
820
  Transition.EXITING = EXITING;
2013
821
  var Transition$1 = Transition;
2014
822
  var _addClass = function addClass$1(node, classes) {
2015
- return node && classes && classes.split(" ").forEach(function(c6) {
2016
- return addClass(node, c6);
823
+ return node && classes && classes.split(" ").forEach(function(c) {
824
+ return addClass(node, c);
2017
825
  });
2018
826
  };
2019
827
  var removeClass = function removeClass2(node, classes) {
2020
- return node && classes && classes.split(" ").forEach(function(c6) {
2021
- return removeClass$1(node, c6);
828
+ return node && classes && classes.split(" ").forEach(function(c) {
829
+ return removeClass$1(node, c);
2022
830
  });
2023
831
  };
2024
832
  var CSSTransition = /* @__PURE__ */ function(_React$Component) {
@@ -2476,9 +1284,9 @@ const getDefaultConfig$1 = () => {
2476
1284
  };
2477
1285
  const useConfig$1 = () => {
2478
1286
  var _a;
2479
- return (_a = useContext$1(ConfigContext$1)) != null ? _a : getDefaultConfig$1();
1287
+ return (_a = useContext(ConfigContext$1)) != null ? _a : getDefaultConfig$1();
2480
1288
  };
2481
- const ConfigContext$1 = createContext$1(null);
1289
+ const ConfigContext$1 = createContext(null);
2482
1290
  const ConfigProvider = (props) => {
2483
1291
  const { children, ...config2 } = { ...defaultProps$1j, ...props };
2484
1292
  const parentConfig = useConfig$1();
@@ -2500,7 +1308,7 @@ const Layout = (props) => {
2500
1308
  };
2501
1309
  Layout.defaultProps = defaultProps$1i;
2502
1310
  Layout.displayName = "NutLayout";
2503
- const DataContext$2 = createContext$1({});
1311
+ const DataContext$2 = createContext({});
2504
1312
  const defaultProps$1h = {
2505
1313
  span: "24",
2506
1314
  offset: "0",
@@ -2520,7 +1328,7 @@ const Col = (props) => {
2520
1328
  };
2521
1329
  const [colName, setColName] = useState("");
2522
1330
  const [colStyle, setColStyle] = useState({});
2523
- const { gutter } = useContext$1(DataContext$2);
1331
+ const { gutter } = useContext(DataContext$2);
2524
1332
  const classs = () => {
2525
1333
  const prefixCls = "nut-col";
2526
1334
  return `${prefixCls} ${prefixCls}-${span} ${gutter ? `${prefixCls}-gutter` : ""} ${prefixCls}-${offset}`;
@@ -2808,9 +1616,9 @@ const getDefaultConfig = () => {
2808
1616
  };
2809
1617
  const useConfig = () => {
2810
1618
  var _a;
2811
- return (_a = useContext$1(ConfigContext)) != null ? _a : getDefaultConfig();
1619
+ return (_a = useContext(ConfigContext)) != null ? _a : getDefaultConfig();
2812
1620
  };
2813
- const ConfigContext = createContext$1(null);
1621
+ const ConfigContext = createContext(null);
2814
1622
  const defaultProps$1c = {};
2815
1623
  const Sticky = (props) => {
2816
1624
  useConfig();
@@ -3166,7 +1974,7 @@ var index_cjs$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
3166
1974
  }, Symbol.toStringTag, { value: "Module" }));
3167
1975
  var require$$0 = /* @__PURE__ */ getAugmentedNamespace(index_cjs$1);
3168
1976
  var index_cjs = require$$0;
3169
- const elevatorContext = createContext$1({});
1977
+ const elevatorContext = createContext({});
3170
1978
  const defaultProps$17 = {
3171
1979
  height: "200px",
3172
1980
  acceptKey: "title",
@@ -3622,7 +2430,7 @@ const Tabs = (props) => {
3622
2430
  color: type === "smile" ? color : "",
3623
2431
  background: type === "line" ? color : ""
3624
2432
  };
3625
- const index = titles.current.findIndex((t2) => t2.paneKey === value);
2433
+ const index = titles.current.findIndex((t) => t.paneKey === value);
3626
2434
  const contentStyle = {
3627
2435
  transform: direction === "horizontal" ? `translate3d(-${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
3628
2436
  transitionDuration: `${animatedTime}ms`
@@ -3790,7 +2598,7 @@ const handleClick = (e2) => {
3790
2598
  arrowIcon.className = isShow ? iconClass.replace("arrow-down", "arrow-up") : iconClass.replace("arrow-up", "arrow-down");
3791
2599
  }
3792
2600
  };
3793
- const OffsetContext = createContext$1(20);
2601
+ const OffsetContext = createContext(20);
3794
2602
  const defaultProps$12 = {
3795
2603
  showhead: false,
3796
2604
  position: "left",
@@ -3847,7 +2655,7 @@ const SubSideNavBar = (props) => {
3847
2655
  ...defaultProps$11,
3848
2656
  ...props
3849
2657
  };
3850
- const offset = useContext$1(OffsetContext);
2658
+ const offset = useContext(OffsetContext);
3851
2659
  console.log("offset>>>>>>>", offset);
3852
2660
  const listRef = useRef(null);
3853
2661
  const setListLevel = useCallback(
@@ -4106,8 +2914,8 @@ const MenuItem = forwardRef((props, ref) => {
4106
2914
  });
4107
2915
  const getParentOffset = () => {
4108
2916
  setTimeout(async () => {
4109
- const p2 = parent.parent().current;
4110
- const rect = await p2.getBoundingClientRect();
2917
+ const p = parent.parent().current;
2918
+ const rect = await p.getBoundingClientRect();
4111
2919
  setPosition({
4112
2920
  height: rect.height,
4113
2921
  top: rect.top
@@ -4192,11 +3000,11 @@ const MenuItem = forwardRef((props, ref) => {
4192
3000
  MenuItem.defaultProps = defaultProps$$;
4193
3001
  MenuItem.displayName = "NutMenuItem";
4194
3002
  const MIN_DISTANCE = 10;
4195
- function getDirection(x2, y2) {
4196
- if (x2 > y2 && x2 > MIN_DISTANCE) {
3003
+ function getDirection(x, y) {
3004
+ if (x > y && x > MIN_DISTANCE) {
4197
3005
  return "horizontal";
4198
3006
  }
4199
- if (y2 > x2 && y2 > MIN_DISTANCE) {
3007
+ if (y > x && y > MIN_DISTANCE) {
4200
3008
  return "vertical";
4201
3009
  }
4202
3010
  return "";
@@ -4849,8 +3657,8 @@ const Range = (props) => {
4849
3657
  Range.defaultProps = defaultProps$Y;
4850
3658
  Range.displayName = "NutRange";
4851
3659
  const Utils = {
4852
- isLeapYear(y2) {
4853
- return y2 % 4 == 0 && y2 % 100 != 0 || y2 % 400 == 0;
3660
+ isLeapYear(y) {
3661
+ return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
4854
3662
  },
4855
3663
  getWhatDay(year, month, day) {
4856
3664
  const date = new Date(`${year}/${month}/${day}`);
@@ -4894,16 +3702,16 @@ const Utils = {
4894
3702
  31
4895
3703
  ][month];
4896
3704
  },
4897
- getNumTwoBit(n2) {
4898
- n2 = Number(n2);
4899
- return (n2 > 9 ? "" : "0") + n2;
3705
+ getNumTwoBit(n) {
3706
+ n = Number(n);
3707
+ return (n > 9 ? "" : "0") + n;
4900
3708
  },
4901
3709
  date2Str(date, split) {
4902
3710
  split = split || "-";
4903
- const y2 = date.getFullYear();
4904
- const m2 = this.getNumTwoBit(date.getMonth() + 1);
4905
- const d2 = this.getNumTwoBit(date.getDate());
4906
- return [y2, m2, d2].join(split);
3711
+ const y = date.getFullYear();
3712
+ const m = this.getNumTwoBit(date.getMonth() + 1);
3713
+ const d = this.getNumTwoBit(date.getDate());
3714
+ return [y, m, d].join(split);
4907
3715
  },
4908
3716
  getDay(i) {
4909
3717
  i = i || 0;
@@ -5130,9 +3938,9 @@ const CalendarItem = (props) => {
5130
3938
  if (type2 === "prev" && days >= 7) {
5131
3939
  days -= 7;
5132
3940
  }
5133
- return Array.from(Array(days), (v2, k2) => {
3941
+ return Array.from(Array(days), (v, k) => {
5134
3942
  return {
5135
- day: k2 + 1,
3943
+ day: k + 1,
5136
3944
  type: type2
5137
3945
  };
5138
3946
  });
@@ -5205,16 +4013,16 @@ const CalendarItem = (props) => {
5205
4013
  const setMove = (move, type2, time) => {
5206
4014
  var _a, _b;
5207
4015
  let updateMove = move + state.transformY;
5208
- const h2 = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
4016
+ const h = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
5209
4017
  const offsetHeight = ((_b = monthsPanel.current) == null ? void 0 : _b.offsetHeight) || 0;
5210
4018
  if (type2 === "end") {
5211
4019
  if (updateMove > 0) {
5212
4020
  updateMove = 0;
5213
4021
  }
5214
- if (updateMove < 0 && updateMove < -offsetHeight + h2) {
5215
- updateMove = -offsetHeight + h2;
4022
+ if (updateMove < 0 && updateMove < -offsetHeight + h) {
4023
+ updateMove = -offsetHeight + h;
5216
4024
  }
5217
- if (offsetHeight <= h2 && state.monthsData.length === 1) {
4025
+ if (offsetHeight <= h && state.monthsData.length === 1) {
5218
4026
  updateMove = 0;
5219
4027
  }
5220
4028
  setTransform(updateMove, type2, time);
@@ -5222,8 +4030,8 @@ const CalendarItem = (props) => {
5222
4030
  if (updateMove > 0 && updateMove > 100) {
5223
4031
  updateMove = 100;
5224
4032
  }
5225
- if (updateMove < -offsetHeight + h2 - 100 && state.monthsData.length > 1) {
5226
- updateMove = -offsetHeight + h2 - 100;
4033
+ if (updateMove < -offsetHeight + h - 100 && state.monthsData.length > 1) {
4034
+ updateMove = -offsetHeight + h - 100;
5227
4035
  }
5228
4036
  if (updateMove < 0 && updateMove < -100 && state.monthsData.length === 1) {
5229
4037
  updateMove = -100;
@@ -5260,11 +4068,11 @@ const CalendarItem = (props) => {
5260
4068
  return false;
5261
4069
  }
5262
4070
  const updateMove = move + state.transformY;
5263
- const h2 = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
4071
+ const h = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
5264
4072
  const offsetHeight = ((_b = monthsPanel.current) == null ? void 0 : _b.offsetHeight) || 0;
5265
4073
  if (updateMove > 0) {
5266
4074
  getMonth(getCurrData("prev"), "prev");
5267
- } else if (updateMove < 0 && updateMove < -offsetHeight + (Math.abs(move) > h2 ? Math.abs(move) : h2) * 5) {
4075
+ } else if (updateMove < 0 && updateMove < -offsetHeight + (Math.abs(move) > h ? Math.abs(move) : h) * 5) {
5268
4076
  getMonth(getCurrData("next"), "next");
5269
4077
  if (Math.abs(move) >= 300) {
5270
4078
  getMonth(getCurrData("next"), "next");
@@ -5511,7 +4319,7 @@ const CheckboxGroup = React__default.forwardRef(
5511
4319
  childrenLabel.push(childProps.label || child.children);
5512
4320
  });
5513
4321
  const reverse = childrenLabel.filter(
5514
- (c6) => (innerValue == null ? void 0 : innerValue.findIndex((v2) => v2 === c6)) === -1
4322
+ (c) => (innerValue == null ? void 0 : innerValue.findIndex((v) => v === c)) === -1
5515
4323
  );
5516
4324
  setInnerValue(reverse);
5517
4325
  }
@@ -6371,21 +5179,21 @@ const DatePicker = (props) => {
6371
5179
  const getDateIndex = (type2) => {
6372
5180
  if (!currentDate)
6373
5181
  return 0;
6374
- let d2 = 0;
5182
+ let d = 0;
6375
5183
  if (type2 === "year") {
6376
- d2 = currentDate.getFullYear();
5184
+ d = currentDate.getFullYear();
6377
5185
  } else if (type2 === "month") {
6378
- d2 = currentDate.getMonth() + 1;
5186
+ d = currentDate.getMonth() + 1;
6379
5187
  } else if (type2 === "day") {
6380
- d2 = currentDate.getDate();
5188
+ d = currentDate.getDate();
6381
5189
  } else if (type2 === "hour") {
6382
- d2 = currentDate.getHours();
5190
+ d = currentDate.getHours();
6383
5191
  } else if (type2 === "minute") {
6384
- d2 = currentDate.getMinutes();
5192
+ d = currentDate.getMinutes();
6385
5193
  } else if (type2 === "seconds") {
6386
- d2 = currentDate.getSeconds();
5194
+ d = currentDate.getSeconds();
6387
5195
  }
6388
- return d2;
5196
+ return d;
6389
5197
  };
6390
5198
  const columns = (date) => {
6391
5199
  const val = ranges(date).map((res, columnIndex) => {
@@ -6508,8 +5316,8 @@ const InputNumber = (props) => {
6508
5316
  const iconAddClasses = classNames("nut-inputnumber__icon", {
6509
5317
  "nut-inputnumber__icon--disabled": !addAllow()
6510
5318
  });
6511
- const fixedDecimalPlaces = (v2) => {
6512
- return Number(v2).toFixed(Number(decimalPlaces));
5319
+ const fixedDecimalPlaces = (v) => {
5320
+ return Number(v).toFixed(Number(decimalPlaces));
6513
5321
  };
6514
5322
  const emitChange = (value, e2) => {
6515
5323
  const outputValue = fixedDecimalPlaces(value);
@@ -7088,7 +5896,7 @@ const Radio$1 = (props) => {
7088
5896
  const [checkedStatement, setCheckedStatement] = useState(checked);
7089
5897
  const [valueStatement, setValueStatement] = useState(value);
7090
5898
  const [disabledStatement, setDisabledStatement] = useState(disabled);
7091
- const context2 = useContext$1(RadioContext);
5899
+ const context = useContext(RadioContext);
7092
5900
  useEffect(() => {
7093
5901
  setDisabledStatement(disabled);
7094
5902
  setValueStatement(value);
@@ -7137,7 +5945,7 @@ const Radio$1 = (props) => {
7137
5945
  return;
7138
5946
  setCheckedStatement(!checkedStatement);
7139
5947
  onChange && onChange(e2);
7140
- context2 && context2.onChange(valueStatement);
5948
+ context && context.onChange(valueStatement);
7141
5949
  };
7142
5950
  const reverseState = textPosition === "left";
7143
5951
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -7218,35 +6026,35 @@ const Rate = (props) => {
7218
6026
  setScore(value);
7219
6027
  onChange && onChange(value);
7220
6028
  };
7221
- const onHalfClick = (event, n2) => {
6029
+ const onHalfClick = (event, n) => {
7222
6030
  event.preventDefault();
7223
6031
  event.stopPropagation();
7224
- const value = Math.max(Number(minimizeValue), n2 - 0.5);
6032
+ const value = Math.max(Number(minimizeValue), n - 0.5);
7225
6033
  setScore(value);
7226
6034
  onChange && onChange(value);
7227
6035
  };
7228
6036
  return /* @__PURE__ */ React__default.createElement("div", {
7229
6037
  className: `${b2()} ${className}`,
7230
6038
  style
7231
- }, countArray.map((n2) => {
6039
+ }, countArray.map((n) => {
7232
6040
  return /* @__PURE__ */ React__default.createElement("div", {
7233
6041
  className: bi(),
7234
- key: n2,
7235
- onClick: (event) => onClick(event, n2),
6042
+ key: n,
6043
+ onClick: (event) => onClick(event, n),
7236
6044
  style: { marginRight: pxCheck2(spacing) }
7237
6045
  }, /* @__PURE__ */ React__default.createElement(Icon, {
7238
6046
  classPrefix: iconClassPrefix,
7239
6047
  fontClassName: iconFontClassName,
7240
6048
  size: iconSize,
7241
- className: `${bi("icon")} ${disabled || n2 > score ? bi("icon--disabled") : ""}`,
7242
- name: n2 <= score ? checkedIcon : uncheckedIcon,
7243
- color: n2 <= score ? activeColor : voidColor
7244
- }), allowHalf && score > n2 - 1 && /* @__PURE__ */ React__default.createElement(Icon, {
6049
+ className: `${bi("icon")} ${disabled || n > score ? bi("icon--disabled") : ""}`,
6050
+ name: n <= score ? checkedIcon : uncheckedIcon,
6051
+ color: n <= score ? activeColor : voidColor
6052
+ }), allowHalf && score > n - 1 && /* @__PURE__ */ React__default.createElement(Icon, {
7245
6053
  classPrefix: iconClassPrefix,
7246
6054
  fontClassName: iconFontClassName,
7247
- onClick: (event) => onHalfClick(event, n2),
6055
+ onClick: (event) => onHalfClick(event, n),
7248
6056
  className: `${bi("icon")} ${bi("icon--half")}`,
7249
- color: n2 <= score ? activeColor : voidColor,
6057
+ color: n <= score ? activeColor : voidColor,
7250
6058
  size: iconSize,
7251
6059
  name: checkedIcon
7252
6060
  }));
@@ -7456,17 +6264,15 @@ const TextArea = (props) => {
7456
6264
  const textareaBem = cn("textarea");
7457
6265
  const [inputValue, SetInputValue] = useState("");
7458
6266
  useEffect(() => {
7459
- if (defaultValue) {
7460
- let initValue = defaultValue;
7461
- if (maxlength && initValue.length > Number(maxlength)) {
7462
- initValue = initValue.substring(0, Number(maxlength));
7463
- }
7464
- SetInputValue(initValue);
6267
+ let initValue = defaultValue;
6268
+ if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
6269
+ initValue = initValue.substring(0, Number(maxlength));
7465
6270
  }
6271
+ SetInputValue(initValue);
7466
6272
  }, [defaultValue]);
7467
6273
  const textChange = (event) => {
7468
6274
  const text = event.detail;
7469
- if (maxlength && text.value.length > Number(maxlength)) {
6275
+ if (maxlength && [...text.value].length > Number(maxlength)) {
7470
6276
  text.value = text.value.substring(0, Number(maxlength));
7471
6277
  }
7472
6278
  SetInputValue(text.value);
@@ -7517,7 +6323,7 @@ const TextArea = (props) => {
7517
6323
  placeholder: placeholder || locale.placeholder
7518
6324
  }), limitshow ? /* @__PURE__ */ React__default.createElement("div", {
7519
6325
  className: textareaBem("limit")
7520
- }, inputValue.length, "/", maxlength < 0 ? 0 : maxlength) : null);
6326
+ }, [...inputValue].length, "/", maxlength < 0 ? 0 : maxlength) : null);
7521
6327
  };
7522
6328
  TextArea.defaultProps = defaultProps$M;
7523
6329
  TextArea.displayName = "NutTextArea";
@@ -8002,8 +6808,8 @@ const InternalUploader = (props, ref) => {
8002
6808
  const onChangeFn = (res) => {
8003
6809
  const { tempFiles } = res;
8004
6810
  if (onBeforeUpload) {
8005
- onBeforeUpload(tempFiles).then((f2) => {
8006
- const _files = filterFiles(f2);
6811
+ onBeforeUpload(tempFiles).then((f) => {
6812
+ const _files = filterFiles(f);
8007
6813
  readFile(_files);
8008
6814
  });
8009
6815
  } else {
@@ -8434,9 +7240,9 @@ const InternalCascader = (props) => {
8434
7240
  if (parent) {
8435
7241
  needToSync = [parent.value];
8436
7242
  state.initLoading = true;
8437
- const last = await currentValue2.slice(1).reduce(async (p2, value2) => {
7243
+ const last = await currentValue2.slice(1).reduce(async (p, value2) => {
8438
7244
  var _a;
8439
- const parent2 = await p2;
7245
+ const parent2 = await p;
8440
7246
  await invokeLazyLoad(parent2);
8441
7247
  const node = (_a = parent2 == null ? void 0 : parent2.children) == null ? void 0 : _a.find(
8442
7248
  (item) => item.value === value2
@@ -9202,10 +8008,10 @@ const Drag = (props) => {
9202
8008
  e2.preventDefault();
9203
8009
  if (e2.touches.length === 1 && dragRef.current) {
9204
8010
  const touch = e2.touches[0];
9205
- const x2 = touch.clientX - axisCache.current.x;
9206
- const y2 = touch.clientY - axisCache.current.y;
9207
- translateX.current = x2 + transformCache.current.x;
9208
- translateY.current = y2 + transformCache.current.y;
8011
+ const x = touch.clientX - axisCache.current.x;
8012
+ const y = touch.clientY - axisCache.current.y;
8013
+ translateX.current = x + transformCache.current.x;
8014
+ translateY.current = y + transformCache.current.y;
9209
8015
  if (translateX.current < boundaryState.left) {
9210
8016
  translateX.current = boundaryState.left;
9211
8017
  } else if (translateX.current > boundaryState.right) {
@@ -9476,7 +8282,7 @@ const Infiniteloading = (props) => {
9476
8282
  const scrollTop = useRef(0);
9477
8283
  const direction = useRef("down");
9478
8284
  const isTouching = useRef(false);
9479
- const y2 = useRef(0);
8285
+ const y = useRef(0);
9480
8286
  const refreshMaxH = useRef(0);
9481
8287
  const distance = useRef(0);
9482
8288
  const b2 = cn("infiniteloading");
@@ -9535,12 +8341,12 @@ const Infiniteloading = (props) => {
9535
8341
  };
9536
8342
  const touchStart = (event) => {
9537
8343
  if (scrollTop.current == 0 && !isTouching.current && isOpenRefresh) {
9538
- y2.current = event.touches[0].pageY;
8344
+ y.current = event.touches[0].pageY;
9539
8345
  isTouching.current = true;
9540
8346
  }
9541
8347
  };
9542
8348
  const touchMove = (event) => {
9543
- distance.current = event.touches[0].pageY - y2.current;
8349
+ distance.current = event.touches[0].pageY - y.current;
9544
8350
  if (distance.current > 0 && isTouching.current) {
9545
8351
  event.preventDefault();
9546
8352
  setTopDisScoll(distance.current);
@@ -9809,11 +8615,11 @@ const Swipe = forwardRef((props, instanceRef) => {
9809
8615
  const onTouchStart = async (event) => {
9810
8616
  if (leftWrapper.current) {
9811
8617
  const leftRect = await getRectByTaro(leftWrapper.current);
9812
- setActionWidth((v2) => ({ ...v2, left: leftRect.width }));
8618
+ setActionWidth((v) => ({ ...v, left: leftRect.width }));
9813
8619
  }
9814
8620
  if (rightWrapper.current) {
9815
8621
  const rightRect = await getRectByTaro(rightWrapper.current);
9816
- setActionWidth((v2) => ({ ...v2, right: rightRect.width }));
8622
+ setActionWidth((v) => ({ ...v, right: rightRect.width }));
9817
8623
  }
9818
8624
  if (!props.disabled) {
9819
8625
  startOffset.current = state.offset;
@@ -9842,7 +8648,7 @@ const Swipe = forwardRef((props, instanceRef) => {
9842
8648
  };
9843
8649
  const onTouchEnd = () => {
9844
8650
  if (state.dragging) {
9845
- setState((v2) => ({ ...v2, dragging: false }));
8651
+ setState((v) => ({ ...v, dragging: false }));
9846
8652
  toggle(state.offset > 0 ? "left" : "right");
9847
8653
  setTimeout(() => {
9848
8654
  lockClick.current = false;
@@ -9866,7 +8672,7 @@ const Swipe = forwardRef((props, instanceRef) => {
9866
8672
  const offset = side === "left" ? leftWidth : -rightWidth;
9867
8673
  const name = props.name;
9868
8674
  (_a = props.onOpen) == null ? void 0 : _a.call(props, { name, position: side });
9869
- setState((v2) => ({ ...v2, offset: Number(offset) || 0 }));
8675
+ setState((v) => ({ ...v, offset: Number(offset) || 0 }));
9870
8676
  };
9871
8677
  const close = (position) => {
9872
8678
  var _a;
@@ -9877,7 +8683,7 @@ const Swipe = forwardRef((props, instanceRef) => {
9877
8683
  position: position || "left"
9878
8684
  });
9879
8685
  }
9880
- setState((v2) => ({ ...v2, offset: 0 }));
8686
+ setState((v) => ({ ...v, offset: 0 }));
9881
8687
  };
9882
8688
  const rangeCalculation = (num, min, max) => {
9883
8689
  return Math.min(Math.max(Number(num), Number(min)), Number(max));
@@ -9936,14 +8742,14 @@ const Swipe = forwardRef((props, instanceRef) => {
9936
8742
  });
9937
8743
  Swipe.defaultProps = defaultProps$y;
9938
8744
  Swipe.displayName = "NutSwipe";
9939
- function clamp(v2, min, max) {
9940
- return Math.max(min, Math.min(v2, max));
8745
+ function clamp(v, min, max) {
8746
+ return Math.max(min, Math.min(v, max));
9941
8747
  }
9942
8748
  const V = {
9943
- toVector(v2, fallback) {
9944
- if (v2 === void 0)
9945
- v2 = fallback;
9946
- return Array.isArray(v2) ? v2 : [v2, v2];
8749
+ toVector(v, fallback) {
8750
+ if (v === void 0)
8751
+ v = fallback;
8752
+ return Array.isArray(v) ? v : [v, v];
9947
8753
  },
9948
8754
  add(v1, v2) {
9949
8755
  return [v1[0] + v2[0], v1[1] + v2[1]];
@@ -10122,11 +8928,11 @@ function getEventDetails(event) {
10122
8928
  }
10123
8929
  return payload;
10124
8930
  }
10125
- function call$1(v2, ...args) {
10126
- if (typeof v2 === "function") {
10127
- return v2(...args);
8931
+ function call$1(v, ...args) {
8932
+ if (typeof v === "function") {
8933
+ return v(...args);
10128
8934
  } else {
10129
- return v2;
8935
+ return v;
10130
8936
  }
10131
8937
  }
10132
8938
  function noop$1() {
@@ -10391,20 +9197,20 @@ class CoordinatesEngine extends Engine {
10391
9197
  }
10392
9198
  state._blocked = (config2.lockDirection || !!config2.axis) && !state.axis || !!config2.axis && config2.axis !== state.axis;
10393
9199
  }
10394
- restrictToAxis(v2) {
9200
+ restrictToAxis(v) {
10395
9201
  if (this.config.axis || this.config.lockDirection) {
10396
9202
  switch (this.state.axis) {
10397
9203
  case "x":
10398
- v2[1] = 0;
9204
+ v[1] = 0;
10399
9205
  break;
10400
9206
  case "y":
10401
- v2[0] = 0;
9207
+ v[0] = 0;
10402
9208
  break;
10403
9209
  }
10404
9210
  }
10405
9211
  }
10406
9212
  }
10407
- const identity = (v2) => v2;
9213
+ const identity = (v) => v;
10408
9214
  const DEFAULT_RUBBERBAND = 0.15;
10409
9215
  const commonConfigResolver = {
10410
9216
  enabled(value = true) {
@@ -10888,11 +9694,11 @@ _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
10888
9694
  return [D.min, D.max];
10889
9695
  };
10890
9696
  const _angleBounds = (state) => {
10891
- const A2 = assignDefault(call$1(angleBounds, state), {
9697
+ const A = assignDefault(call$1(angleBounds, state), {
10892
9698
  min: -Infinity,
10893
9699
  max: Infinity
10894
9700
  });
10895
- return [A2.min, A2.max];
9701
+ return [A.min, A.max];
10896
9702
  };
10897
9703
  if (typeof scaleBounds !== "function" && typeof angleBounds !== "function")
10898
9704
  return [_scaleBounds(), _angleBounds()];
@@ -11245,7 +10051,7 @@ let timeouts = [];
11245
10051
  raf.setTimeout = (handler, ms) => {
11246
10052
  let time = raf.now() + ms;
11247
10053
  let cancel = () => {
11248
- let i = timeouts.findIndex((t2) => t2.cancel == cancel);
10054
+ let i = timeouts.findIndex((t) => t.cancel == cancel);
11249
10055
  if (~i)
11250
10056
  timeouts.splice(i, 1);
11251
10057
  pendingCount -= ~i ? 1 : 0;
@@ -11260,7 +10066,7 @@ raf.setTimeout = (handler, ms) => {
11260
10066
  start();
11261
10067
  return timeout;
11262
10068
  };
11263
- let findTimeout = (time) => ~(~timeouts.findIndex((t2) => t2.time > time) || ~timeouts.length);
10069
+ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~timeouts.length);
11264
10070
  raf.cancel = (fn) => {
11265
10071
  onStartQueue.delete(fn);
11266
10072
  onFrameQueue.delete(fn);
@@ -11341,7 +10147,7 @@ function update() {
11341
10147
  ts = raf.now();
11342
10148
  let count = findTimeout(ts);
11343
10149
  if (count) {
11344
- eachSafely(timeouts.splice(0, count), (t2) => t2.handler());
10150
+ eachSafely(timeouts.splice(0, count), (t) => t.handler());
11345
10151
  pendingCount -= count;
11346
10152
  }
11347
10153
  if (!pendingCount) {
@@ -11747,26 +10553,26 @@ function normalizeColor(color) {
11747
10553
  }
11748
10554
  return null;
11749
10555
  }
11750
- function hue2rgb(p2, q2, t2) {
11751
- if (t2 < 0)
11752
- t2 += 1;
11753
- if (t2 > 1)
11754
- t2 -= 1;
11755
- if (t2 < 1 / 6)
11756
- return p2 + (q2 - p2) * 6 * t2;
11757
- if (t2 < 1 / 2)
11758
- return q2;
11759
- if (t2 < 2 / 3)
11760
- return p2 + (q2 - p2) * (2 / 3 - t2) * 6;
11761
- return p2;
10556
+ function hue2rgb(p, q, t) {
10557
+ if (t < 0)
10558
+ t += 1;
10559
+ if (t > 1)
10560
+ t -= 1;
10561
+ if (t < 1 / 6)
10562
+ return p + (q - p) * 6 * t;
10563
+ if (t < 1 / 2)
10564
+ return q;
10565
+ if (t < 2 / 3)
10566
+ return p + (q - p) * (2 / 3 - t) * 6;
10567
+ return p;
11762
10568
  }
11763
- function hslToRgb(h2, s, l2) {
11764
- const q2 = l2 < 0.5 ? l2 * (1 + s) : l2 + s - l2 * s;
11765
- const p2 = 2 * l2 - q2;
11766
- const r2 = hue2rgb(p2, q2, h2 + 1 / 3);
11767
- const g2 = hue2rgb(p2, q2, h2);
11768
- const b2 = hue2rgb(p2, q2, h2 - 1 / 3);
11769
- return Math.round(r2 * 255) << 24 | Math.round(g2 * 255) << 16 | Math.round(b2 * 255) << 8;
10569
+ function hslToRgb(h, s, l) {
10570
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
10571
+ const p = 2 * l - q;
10572
+ const r2 = hue2rgb(p, q, h + 1 / 3);
10573
+ const g = hue2rgb(p, q, h);
10574
+ const b2 = hue2rgb(p, q, h - 1 / 3);
10575
+ return Math.round(r2 * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
11770
10576
  }
11771
10577
  function parse255(str) {
11772
10578
  const int = parseInt(str, 10);
@@ -11802,10 +10608,10 @@ function colorToRgba(input) {
11802
10608
  return input;
11803
10609
  int32Color = int32Color || 0;
11804
10610
  let r2 = (int32Color & 4278190080) >>> 24;
11805
- let g2 = (int32Color & 16711680) >>> 16;
10611
+ let g = (int32Color & 16711680) >>> 16;
11806
10612
  let b2 = (int32Color & 65280) >>> 8;
11807
10613
  let a = (int32Color & 255) / 255;
11808
- return `rgba(${r2}, ${g2}, ${b2}, ${a})`;
10614
+ return `rgba(${r2}, ${g}, ${b2}, ${a})`;
11809
10615
  }
11810
10616
  const createInterpolator = (range, output, extrapolate) => {
11811
10617
  if (is.fun(range)) {
@@ -11826,7 +10632,7 @@ const createInterpolator = (range, output, extrapolate) => {
11826
10632
  const inputRange = config2.range || [0, 1];
11827
10633
  const extrapolateLeft = config2.extrapolateLeft || config2.extrapolate || "extend";
11828
10634
  const extrapolateRight = config2.extrapolateRight || config2.extrapolate || "extend";
11829
- const easing = config2.easing || ((t2) => t2);
10635
+ const easing = config2.easing || ((t) => t);
11830
10636
  return (input) => {
11831
10637
  const range2 = findRange(input, inputRange);
11832
10638
  return interpolate(input, inputRange[range2], inputRange[range2 + 1], outputRange[range2], outputRange[range2 + 1], easing, extrapolateLeft, extrapolateRight, config2.map);
@@ -11872,7 +10678,7 @@ function findRange(input, inputRange) {
11872
10678
  return i - 1;
11873
10679
  }
11874
10680
  function _extends$2() {
11875
- _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
10681
+ _extends$2 = Object.assign || function(target) {
11876
10682
  for (var i = 1; i < arguments.length; i++) {
11877
10683
  var source = arguments[i];
11878
10684
  for (var key in source) {
@@ -12285,7 +11091,7 @@ function getAnimatedType(value) {
12285
11091
  return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
12286
11092
  }
12287
11093
  function _extends$1() {
12288
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
11094
+ _extends$1 = Object.assign || function(target) {
12289
11095
  for (var i = 1; i < arguments.length; i++) {
12290
11096
  var source = arguments[i];
12291
11097
  for (var key in source) {
@@ -12404,7 +11210,7 @@ const createHost = (components, {
12404
11210
  };
12405
11211
  const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
12406
11212
  function _extends() {
12407
- _extends = Object.assign ? Object.assign.bind() : function(target) {
11213
+ _extends = Object.assign || function(target) {
12408
11214
  for (var i = 1; i < arguments.length; i++) {
12409
11215
  var source = arguments[i];
12410
11216
  for (var key in source) {
@@ -12557,51 +11363,51 @@ const c2 = c1 * 1.525;
12557
11363
  const c3 = c1 + 1;
12558
11364
  const c4 = 2 * Math.PI / 3;
12559
11365
  const c5 = 2 * Math.PI / 4.5;
12560
- const bounceOut = (x2) => {
11366
+ const bounceOut = (x) => {
12561
11367
  const n1 = 7.5625;
12562
11368
  const d1 = 2.75;
12563
- if (x2 < 1 / d1) {
12564
- return n1 * x2 * x2;
12565
- } else if (x2 < 2 / d1) {
12566
- return n1 * (x2 -= 1.5 / d1) * x2 + 0.75;
12567
- } else if (x2 < 2.5 / d1) {
12568
- return n1 * (x2 -= 2.25 / d1) * x2 + 0.9375;
11369
+ if (x < 1 / d1) {
11370
+ return n1 * x * x;
11371
+ } else if (x < 2 / d1) {
11372
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
11373
+ } else if (x < 2.5 / d1) {
11374
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
12569
11375
  } else {
12570
- return n1 * (x2 -= 2.625 / d1) * x2 + 0.984375;
11376
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
12571
11377
  }
12572
11378
  };
12573
11379
  const easings = {
12574
- linear: (x2) => x2,
12575
- easeInQuad: (x2) => x2 * x2,
12576
- easeOutQuad: (x2) => 1 - (1 - x2) * (1 - x2),
12577
- easeInOutQuad: (x2) => x2 < 0.5 ? 2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 2) / 2,
12578
- easeInCubic: (x2) => x2 * x2 * x2,
12579
- easeOutCubic: (x2) => 1 - Math.pow(1 - x2, 3),
12580
- easeInOutCubic: (x2) => x2 < 0.5 ? 4 * x2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 3) / 2,
12581
- easeInQuart: (x2) => x2 * x2 * x2 * x2,
12582
- easeOutQuart: (x2) => 1 - Math.pow(1 - x2, 4),
12583
- easeInOutQuart: (x2) => x2 < 0.5 ? 8 * x2 * x2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 4) / 2,
12584
- easeInQuint: (x2) => x2 * x2 * x2 * x2 * x2,
12585
- easeOutQuint: (x2) => 1 - Math.pow(1 - x2, 5),
12586
- easeInOutQuint: (x2) => x2 < 0.5 ? 16 * x2 * x2 * x2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 5) / 2,
12587
- easeInSine: (x2) => 1 - Math.cos(x2 * Math.PI / 2),
12588
- easeOutSine: (x2) => Math.sin(x2 * Math.PI / 2),
12589
- easeInOutSine: (x2) => -(Math.cos(Math.PI * x2) - 1) / 2,
12590
- easeInExpo: (x2) => x2 === 0 ? 0 : Math.pow(2, 10 * x2 - 10),
12591
- easeOutExpo: (x2) => x2 === 1 ? 1 : 1 - Math.pow(2, -10 * x2),
12592
- easeInOutExpo: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : x2 < 0.5 ? Math.pow(2, 20 * x2 - 10) / 2 : (2 - Math.pow(2, -20 * x2 + 10)) / 2,
12593
- easeInCirc: (x2) => 1 - Math.sqrt(1 - Math.pow(x2, 2)),
12594
- easeOutCirc: (x2) => Math.sqrt(1 - Math.pow(x2 - 1, 2)),
12595
- easeInOutCirc: (x2) => x2 < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x2, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x2 + 2, 2)) + 1) / 2,
12596
- easeInBack: (x2) => c3 * x2 * x2 * x2 - c1 * x2 * x2,
12597
- easeOutBack: (x2) => 1 + c3 * Math.pow(x2 - 1, 3) + c1 * Math.pow(x2 - 1, 2),
12598
- easeInOutBack: (x2) => x2 < 0.5 ? Math.pow(2 * x2, 2) * ((c2 + 1) * 2 * x2 - c2) / 2 : (Math.pow(2 * x2 - 2, 2) * ((c2 + 1) * (x2 * 2 - 2) + c2) + 2) / 2,
12599
- easeInElastic: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : -Math.pow(2, 10 * x2 - 10) * Math.sin((x2 * 10 - 10.75) * c4),
12600
- easeOutElastic: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : Math.pow(2, -10 * x2) * Math.sin((x2 * 10 - 0.75) * c4) + 1,
12601
- easeInOutElastic: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : x2 < 0.5 ? -(Math.pow(2, 20 * x2 - 10) * Math.sin((20 * x2 - 11.125) * c5)) / 2 : Math.pow(2, -20 * x2 + 10) * Math.sin((20 * x2 - 11.125) * c5) / 2 + 1,
12602
- easeInBounce: (x2) => 1 - bounceOut(1 - x2),
11380
+ linear: (x) => x,
11381
+ easeInQuad: (x) => x * x,
11382
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
11383
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
11384
+ easeInCubic: (x) => x * x * x,
11385
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
11386
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
11387
+ easeInQuart: (x) => x * x * x * x,
11388
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
11389
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
11390
+ easeInQuint: (x) => x * x * x * x * x,
11391
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
11392
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
11393
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
11394
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
11395
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
11396
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
11397
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
11398
+ easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
11399
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
11400
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
11401
+ easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
11402
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
11403
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
11404
+ easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
11405
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
11406
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
11407
+ easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
11408
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
12603
11409
  easeOutBounce: bounceOut,
12604
- easeInOutBounce: (x2) => x2 < 0.5 ? (1 - bounceOut(1 - 2 * x2)) / 2 : (1 + bounceOut(2 * x2 - 1)) / 2
11410
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2
12605
11411
  };
12606
11412
  const defaults = _extends({}, config.default, {
12607
11413
  mass: 1,
@@ -12868,7 +11674,7 @@ function runAsync(to2, props, state, target) {
12868
11674
  })();
12869
11675
  }
12870
11676
  function stopAsync(state, cancelId) {
12871
- flush(state.timeouts, (t2) => t2.cancel());
11677
+ flush(state.timeouts, (t) => t.cancel());
12872
11678
  state.pauseQueue.clear();
12873
11679
  state.resumeQueue.clear();
12874
11680
  state.asyncId = state.asyncTo = state.promise = void 0;
@@ -13037,9 +11843,8 @@ class SpringValue extends FrameValue {
13037
11843
  const from = anim.fromValues[i];
13038
11844
  const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
13039
11845
  let velocity;
13040
- const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
13041
11846
  if (!is.und(config2.duration)) {
13042
- let p2 = 1;
11847
+ let p = 1;
13043
11848
  if (config2.duration > 0) {
13044
11849
  if (this._memoizedDuration !== config2.duration) {
13045
11850
  this._memoizedDuration = config2.duration;
@@ -13048,21 +11853,22 @@ class SpringValue extends FrameValue {
13048
11853
  elapsed = node2.elapsedTime += dt;
13049
11854
  }
13050
11855
  }
13051
- p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
13052
- p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
13053
- node2.durationProgress = p2;
11856
+ p = (config2.progress || 0) + elapsed / this._memoizedDuration;
11857
+ p = p > 1 ? 1 : p < 0 ? 0 : p;
11858
+ node2.durationProgress = p;
13054
11859
  }
13055
- position = from + config2.easing(p2) * (to2 - from);
11860
+ position = from + config2.easing(p) * (to2 - from);
13056
11861
  velocity = (position - node2.lastPosition) / dt;
13057
- finished = p2 == 1;
11862
+ finished = p == 1;
13058
11863
  } else if (config2.decay) {
13059
11864
  const decay = config2.decay === true ? 0.998 : config2.decay;
13060
11865
  const e2 = Math.exp(-(1 - decay) * elapsed);
13061
11866
  position = from + v0 / (1 - decay) * (1 - e2);
13062
- finished = Math.abs(node2.lastPosition - position) <= precision;
11867
+ finished = Math.abs(node2.lastPosition - position) < 0.1;
13063
11868
  velocity = v0 * e2;
13064
11869
  } else {
13065
11870
  velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
11871
+ const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
13066
11872
  const restVelocity = config2.restVelocity || precision / 10;
13067
11873
  const bounceFactor = config2.clamp ? 0 : config2.bounce;
13068
11874
  const canBounce = !is.und(bounceFactor);
@@ -13071,7 +11877,7 @@ class SpringValue extends FrameValue {
13071
11877
  let isBouncing = false;
13072
11878
  const step = 1;
13073
11879
  const numSteps = Math.ceil(dt / step);
13074
- for (let n2 = 0; n2 < numSteps; ++n2) {
11880
+ for (let n = 0; n < numSteps; ++n) {
13075
11881
  isMoving = Math.abs(velocity) > restVelocity;
13076
11882
  if (!isMoving) {
13077
11883
  finished = Math.abs(to2 - position) <= precision;
@@ -13917,7 +12723,7 @@ const SpringContext = (_ref) => {
13917
12723
  let {
13918
12724
  children
13919
12725
  } = _ref, props = _objectWithoutPropertiesLoose$1(_ref, _excluded$3);
13920
- const inherited = useContext$1(ctx);
12726
+ const inherited = useContext(ctx);
13921
12727
  const pause = props.pause || !!inherited.pause, immediate = props.immediate || !!inherited.immediate;
13922
12728
  props = useMemoOne(() => ({
13923
12729
  pause,
@@ -14052,9 +12858,9 @@ function useSprings(length, props, deps) {
14052
12858
  }
14053
12859
  }
14054
12860
  const springs = ctrls.current.map((ctrl, i) => getSprings(ctrl, updates[i]));
14055
- const context2 = useContext$1(SpringContext);
14056
- const prevContext = usePrev(context2);
14057
- const hasContext = context2 !== prevContext && hasProps(context2);
12861
+ const context = useContext(SpringContext);
12862
+ const prevContext = usePrev(context);
12863
+ const hasContext = context !== prevContext && hasProps(context);
14058
12864
  useIsomorphicLayoutEffect(() => {
14059
12865
  layoutId.current++;
14060
12866
  state.ctrls = ctrls.current;
@@ -14069,7 +12875,7 @@ function useSprings(length, props, deps) {
14069
12875
  ref == null ? void 0 : ref.add(ctrl);
14070
12876
  if (hasContext) {
14071
12877
  ctrl.start({
14072
- default: context2
12878
+ default: context
14073
12879
  });
14074
12880
  }
14075
12881
  const update2 = updates[i];
@@ -14086,7 +12892,7 @@ function useSprings(length, props, deps) {
14086
12892
  useOnce(() => () => {
14087
12893
  each(state.ctrls, (ctrl) => ctrl.stop(true));
14088
12894
  });
14089
- const values = springs.map((x2) => _extends({}, x2));
12895
+ const values = springs.map((x) => _extends({}, x));
14090
12896
  return ref ? [values, ref] : values;
14091
12897
  }
14092
12898
  function useSpring(props, deps) {
@@ -14241,7 +13047,7 @@ function applyAnimatedValues(instance, props) {
14241
13047
  scrollLeft
14242
13048
  } = _ref, attributes = _objectWithoutPropertiesLoose(_ref, _excluded$2);
14243
13049
  const values = Object.values(attributes);
14244
- const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n2) => "-" + n2.toLowerCase())));
13050
+ const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n) => "-" + n.toLowerCase())));
14245
13051
  if (children !== void 0) {
14246
13052
  instance.textContent = children;
14247
13053
  }
@@ -14319,19 +13125,19 @@ const domTransforms = /^(matrix|translate|scale|rotate|skew)/;
14319
13125
  const pxTransforms = /^(translate)/;
14320
13126
  const degTransforms = /^(rotate|skew)/;
14321
13127
  const addUnit = (value, unit) => is.num(value) && value !== 0 ? value + unit : value;
14322
- const isValueIdentity = (value, id) => is.arr(value) ? value.every((v2) => isValueIdentity(v2, id)) : is.num(value) ? value === id : parseFloat(value) === id;
13128
+ const isValueIdentity = (value, id) => is.arr(value) ? value.every((v) => isValueIdentity(v, id)) : is.num(value) ? value === id : parseFloat(value) === id;
14323
13129
  class AnimatedStyle extends AnimatedObject {
14324
13130
  constructor(_ref) {
14325
13131
  let {
14326
- x: x2,
14327
- y: y2,
14328
- z: z2
13132
+ x,
13133
+ y,
13134
+ z
14329
13135
  } = _ref, style = _objectWithoutPropertiesLoose(_ref, _excluded$1);
14330
13136
  const inputs = [];
14331
13137
  const transforms = [];
14332
- if (x2 || y2 || z2) {
14333
- inputs.push([x2 || 0, y2 || 0, z2 || 0]);
14334
- transforms.push((xyz) => [`translate3d(${xyz.map((v2) => addUnit(v2, "px")).join(",")})`, isValueIdentity(xyz, 0)]);
13138
+ if (x || y || z) {
13139
+ inputs.push([x || 0, y || 0, z || 0]);
13140
+ transforms.push((xyz) => [`translate3d(${xyz.map((v) => addUnit(v, "px")).join(",")})`, isValueIdentity(xyz, 0)]);
14335
13141
  }
14336
13142
  eachProp(style, (value, key) => {
14337
13143
  if (key === "transform") {
@@ -14343,7 +13149,7 @@ class AnimatedStyle extends AnimatedObject {
14343
13149
  return;
14344
13150
  const unit = pxTransforms.test(key) ? "px" : degTransforms.test(key) ? "deg" : "";
14345
13151
  inputs.push(toArray(value));
14346
- transforms.push(key === "rotate3d" ? ([x3, y3, z3, deg]) => [`rotate3d(${x3},${y3},${z3},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (input) => [`${key}(${input.map((v2) => addUnit(v2, unit)).join(",")})`, isValueIdentity(input, key.startsWith("scale") ? 1 : 0)]);
13152
+ transforms.push(key === "rotate3d" ? ([x2, y2, z2, deg]) => [`rotate3d(${x2},${y2},${z2},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (input) => [`${key}(${input.map((v) => addUnit(v, unit)).join(",")})`, isValueIdentity(input, key.startsWith("scale") ? 1 : 0)]);
14347
13153
  }
14348
13154
  });
14349
13155
  if (inputs.length) {
@@ -14367,8 +13173,8 @@ class FluidTransform extends FluidValue {
14367
13173
  let identity2 = true;
14368
13174
  each(this.inputs, (input, i) => {
14369
13175
  const arg1 = getFluidValue(input[0]);
14370
- const [t2, id] = this.transforms[i](is.arr(arg1) ? arg1 : input.map(getFluidValue));
14371
- transform += " " + t2;
13176
+ const [t, id] = this.transforms[i](is.arr(arg1) ? arg1 : input.map(getFluidValue));
13177
+ transform += " " + t;
14372
13178
  identity2 = identity2 && id;
14373
13179
  });
14374
13180
  return identity2 ? "none" : transform;
@@ -14473,16 +13279,16 @@ const defaultProps$x = {
14473
13279
  onRefresh: () => {
14474
13280
  }
14475
13281
  };
14476
- const PullToRefresh = (p2) => {
13282
+ const PullToRefresh = (p) => {
14477
13283
  const { locale } = useConfig$1();
14478
13284
  const props = {
14479
13285
  ...defaultProps$x,
14480
- ...p2,
13286
+ ...p,
14481
13287
  ...{
14482
- pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
14483
- canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
14484
- refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
14485
- completeText: p2.completeText || locale.pullToRefresh.completeText
13288
+ pullingText: p.pullingText || locale.pullToRefresh.pullingText,
13289
+ canReleaseText: p.canReleaseText || locale.pullToRefresh.canReleaseText,
13290
+ refreshingText: p.refreshingText || locale.pullToRefresh.refreshingText,
13291
+ completeText: p.completeText || locale.pullToRefresh.completeText
14486
13292
  }
14487
13293
  };
14488
13294
  const headHeight = props.headHeight;
@@ -14545,8 +13351,8 @@ const PullToRefresh = (p2) => {
14545
13351
  function getScrollTop(element) {
14546
13352
  return "scrollTop" in element ? element.scrollTop : element.scrollY;
14547
13353
  }
14548
- const [, y2] = state.movement;
14549
- if (state.first && y2 > 0) {
13354
+ const [, y] = state.movement;
13355
+ if (state.first && y > 0) {
14550
13356
  const target = state.event.target;
14551
13357
  if (!target || !(target instanceof Element))
14552
13358
  return;
@@ -14572,7 +13378,7 @@ const PullToRefresh = (p2) => {
14572
13378
  }
14573
13379
  event.stopPropagation();
14574
13380
  const height = Math.max(
14575
- rubberbandIfOutOfBounds(y2, 0, 0, headHeight * 5, 0.5),
13381
+ rubberbandIfOutOfBounds(y, 0, 0, headHeight * 5, 0.5),
14576
13382
  0
14577
13383
  );
14578
13384
  api.start({ height });
@@ -14727,12 +13533,12 @@ const CircleProgress = (props) => {
14727
13533
  const offset = perimeter * Number(format(parseFloat(progress2.toFixed(1)))) / 100;
14728
13534
  const isWise = props.clockwise ? 1 : 0;
14729
13535
  const color = isObject(circleColor) ? `url(%23${refRandomId})` : transColor(circleColor);
14730
- const d2 = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
13536
+ const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
14731
13537
  const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
14732
- const path = `%3Cpath d='${d2}' stroke-width='${strokeWidth}' stroke='${transColor(
13538
+ const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
14733
13539
  props.pathColor
14734
13540
  )}' fill='none'/%3E`;
14735
- const path1 = `%3Cpath d='${d2}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
13541
+ const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
14736
13542
  color
14737
13543
  )}' fill='none'/%3E`;
14738
13544
  return {
@@ -14921,7 +13727,7 @@ const NoticeBar = (props) => {
14921
13727
  }, Number(standTime) + 100 * speed);
14922
13728
  SetTimer(timerCurr);
14923
13729
  };
14924
- const scroll = (n2, last) => {
13730
+ const scroll = (n, last) => {
14925
13731
  SetAnimate(true);
14926
13732
  setTimeout(() => {
14927
13733
  let long = distance;
@@ -14933,7 +13739,7 @@ const NoticeBar = (props) => {
14933
13739
  SetDistance(0);
14934
13740
  SetAnimate(false);
14935
13741
  }
14936
- }, n2 * speed);
13742
+ }, n * speed);
14937
13743
  };
14938
13744
  const handleClickIcon = (event) => {
14939
13745
  event.stopPropagation();
@@ -15048,7 +13854,7 @@ const NoticeBar = (props) => {
15048
13854
  };
15049
13855
  NoticeBar.defaultProps = defaultProps$v;
15050
13856
  NoticeBar.displayName = "NutNoticeBar";
15051
- const DataContext$1 = createContext$1({});
13857
+ const DataContext$1 = createContext({});
15052
13858
  const defaultProps$u = {
15053
13859
  current: 0,
15054
13860
  direction: "horizontal",
@@ -15118,7 +13924,7 @@ const Step = (props) => {
15118
13924
  ...defaultProps$t,
15119
13925
  ...props
15120
13926
  };
15121
- const parent = useContext$1(DataContext$1);
13927
+ const parent = useContext(DataContext$1);
15122
13928
  const dot = parent.propSteps.progressDot;
15123
13929
  const getCurrentStatus = () => {
15124
13930
  const index = activeIndex;
@@ -15179,7 +13985,7 @@ const Step = (props) => {
15179
13985
  };
15180
13986
  Step.defaultProps = defaultProps$t;
15181
13987
  Step.displayName = "NutStep";
15182
- const DataContext = createContext$1({});
13988
+ const DataContext = createContext({});
15183
13989
  const defaultProps$s = {
15184
13990
  width: typeof window === "object" ? window.innerWidth : 375,
15185
13991
  height: 0,
@@ -15394,10 +14200,10 @@ const Swiper = React__default.forwardRef((props, ref) => {
15394
14200
  const range = (num, min, max) => {
15395
14201
  return Math.min(Math.max(num, min), max);
15396
14202
  };
15397
- const getDirection2 = (x2, y2) => {
15398
- if (x2 > y2 && x2 > DISTANCE)
14203
+ const getDirection2 = (x, y) => {
14204
+ if (x > y && x > DISTANCE)
15399
14205
  return "horizontal";
15400
- if (y2 > x2 && y2 > DISTANCE)
14206
+ if (y > x && y > DISTANCE)
15401
14207
  return "vertical";
15402
14208
  return "";
15403
14209
  };
@@ -15627,7 +14433,7 @@ const defaultProps$r = {
15627
14433
  const SwiperItem = React__default.forwardRef((props, ref) => {
15628
14434
  const _props = { ...defaultProps$r, ...props };
15629
14435
  const { className, style, children, direction, size } = _props;
15630
- const parent = useContext$1(DataContext);
14436
+ const parent = useContext(DataContext);
15631
14437
  const b2 = cn("swiper-item");
15632
14438
  const classes = classNames(b2(""), className);
15633
14439
  const getStyle = () => {
@@ -15646,7 +14452,7 @@ const SwiperItem = React__default.forwardRef((props, ref) => {
15646
14452
  });
15647
14453
  SwiperItem.defaultProps = defaultProps$r;
15648
14454
  SwiperItem.displayName = "NutSwiperItem";
15649
- const AvatarContext = createContext$1({});
14455
+ const AvatarContext = createContext({});
15650
14456
  const defaultProps$q = {
15651
14457
  ...ComponentDefaults,
15652
14458
  size: "",
@@ -15685,7 +14491,7 @@ const Avatar = (props) => {
15685
14491
  const [showMax, setShowMax] = useState(false);
15686
14492
  const [avatarIndex, setAvatarIndex] = useState(1);
15687
14493
  const avatarRef = useRef(null);
15688
- const parent = useContext$1(AvatarContext);
14494
+ const parent = useContext(AvatarContext);
15689
14495
  const b2 = cn("avatar");
15690
14496
  const classes = classNames({
15691
14497
  [`nut-avatar-${size || ((_a = parent == null ? void 0 : parent.propAvatarGroup) == null ? void 0 : _a.size) || "normal"}`]: true,
@@ -16177,7 +14983,7 @@ const Popover = (props) => {
16177
14983
  };
16178
14984
  const filter = () => {
16179
14985
  const ms = ["top", "bottom", "left", "right"];
16180
- return ms.filter((m2) => location.includes(m2))[0];
14986
+ return ms.filter((m) => location.includes(m))[0];
16181
14987
  };
16182
14988
  const popoverArrowSelf = () => {
16183
14989
  const prefixCls = "popover-arrow";
@@ -16271,7 +15077,7 @@ const Skeleton = (props) => {
16271
15077
  [`avatarClass--${avatarShape}`]: avatarShape
16272
15078
  });
16273
15079
  const repeatLines = (num) => {
16274
- return Array.from({ length: num }, (v2, i) => i);
15080
+ return Array.from({ length: num }, (v, i) => i);
16275
15081
  };
16276
15082
  const getStyle = () => {
16277
15083
  if (avatarSize) {
@@ -16358,9 +15164,9 @@ const InternalCountDown = (props, ref) => {
16358
15164
  const getTimeStamp = (timeStr) => {
16359
15165
  if (!timeStr)
16360
15166
  return Date.now();
16361
- let t2 = timeStr;
16362
- t2 = t2 > 0 ? +t2 : t2.toString().replace(/-/g, "/");
16363
- return new Date(t2).getTime();
15167
+ let t = timeStr;
15168
+ t = t > 0 ? +t : t.toString().replace(/-/g, "/");
15169
+ return new Date(t).getTime();
16364
15170
  };
16365
15171
  const initTime = () => {
16366
15172
  stateRef.current.handleEndTime = endTime;
@@ -16390,8 +15196,8 @@ const InternalCountDown = (props, ref) => {
16390
15196
  }
16391
15197
  });
16392
15198
  };
16393
- const formatRemainTime = (t2, type) => {
16394
- const ts2 = t2;
15199
+ const formatRemainTime = (t, type) => {
15200
+ const ts2 = t;
16395
15201
  const rest2 = {
16396
15202
  d: 0,
16397
15203
  h: 0,
@@ -16413,23 +15219,23 @@ const InternalCountDown = (props, ref) => {
16413
15219
  return type === "custom" ? rest2 : parseFormat({ ...rest2 });
16414
15220
  };
16415
15221
  const parseFormat = (time2) => {
16416
- const { d: d2 } = time2;
16417
- let { h: h2, m: m2, s, ms } = time2;
15222
+ const { d } = time2;
15223
+ let { h, m, s, ms } = time2;
16418
15224
  let formatCache = format;
16419
15225
  if (formatCache.includes("DD")) {
16420
- formatCache = formatCache.replace("DD", padZero(d2));
15226
+ formatCache = formatCache.replace("DD", padZero(d));
16421
15227
  } else {
16422
- h2 += Number(d2) * 24;
15228
+ h += Number(d) * 24;
16423
15229
  }
16424
15230
  if (formatCache.includes("HH")) {
16425
- formatCache = formatCache.replace("HH", padZero(h2));
15231
+ formatCache = formatCache.replace("HH", padZero(h));
16426
15232
  } else {
16427
- m2 += Number(h2) * 60;
15233
+ m += Number(h) * 60;
16428
15234
  }
16429
15235
  if (formatCache.includes("mm")) {
16430
- formatCache = formatCache.replace("mm", padZero(m2));
15236
+ formatCache = formatCache.replace("mm", padZero(m));
16431
15237
  } else {
16432
- s += Number(m2) * 60;
15238
+ s += Number(m) * 60;
16433
15239
  }
16434
15240
  if (formatCache.includes("ss")) {
16435
15241
  formatCache = formatCache.replace("ss", padZero(s));
@@ -16769,7 +15575,7 @@ const CountUp = (props) => {
16769
15575
  const b2 = cn("countup");
16770
15576
  const countupRef = useRef(null);
16771
15577
  const timerRef = useRef(0);
16772
- const numbers = Array.from({ length: 10 }, (v2, i) => i);
15578
+ const numbers = Array.from({ length: 10 }, (v, i) => i);
16773
15579
  const getShowNumber = () => {
16774
15580
  const splitArr = endNumber.split(".");
16775
15581
  const intNumber = maxLen && splitArr[0].length < maxLen ? (Array(maxLen).join("0") + splitArr[0]).slice(-maxLen) : splitArr[0];
@@ -17012,16 +15818,16 @@ const updateItemSize = (positions, items, sizeKey) => {
17012
15818
  if (sizeKey === "width") {
17013
15819
  newPos[index].right -= dValue;
17014
15820
  newPos[index][sizeKey] = nowSize;
17015
- for (let k2 = index + 1; k2 < positions.length; k2++) {
17016
- newPos[k2].left = positions[k2 - 1].right;
17017
- newPos[k2].right -= dValue;
15821
+ for (let k = index + 1; k < positions.length; k++) {
15822
+ newPos[k].left = positions[k - 1].right;
15823
+ newPos[k].right -= dValue;
17018
15824
  }
17019
15825
  } else if (sizeKey === "height") {
17020
15826
  newPos[index].bottom -= dValue;
17021
15827
  newPos[index][sizeKey] = nowSize;
17022
- for (let k2 = index + 1; k2 < positions.length; k2++) {
17023
- newPos[k2].top = positions[k2 - 1].bottom;
17024
- newPos[k2].bottom -= dValue;
15828
+ for (let k = index + 1; k < positions.length; k++) {
15829
+ newPos[k].top = positions[k - 1].bottom;
15830
+ newPos[k].bottom -= dValue;
17025
15831
  }
17026
15832
  }
17027
15833
  }