assui 3.2.51 → 3.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/es/a-select/index.js +3 -9
  2. package/es/button-drawer/index.js +3 -9
  3. package/es/button-modal/index.js +3 -9
  4. package/es/client-only/useClientOnly.js +1 -3
  5. package/es/color-select/index.js +2 -6
  6. package/es/complex-val-select/index.js +5 -9
  7. package/es/condition-input/index.js +3 -9
  8. package/es/condition-input/parse2RegexOption.js +1 -3
  9. package/es/condition-select/index.js +2 -6
  10. package/es/condition-select-input/index.js +2 -6
  11. package/es/copy-to-clipboard/index.js +2 -6
  12. package/es/count-down/index.js +1 -3
  13. package/es/flex/index.js +2 -6
  14. package/es/flex/utils/index.js +1 -3
  15. package/es/highlight-textarea/extractSpansOfClasses.js +1 -3
  16. package/es/highlight-textarea/getRanges.js +1 -3
  17. package/es/highlight-textarea/index.js +3 -9
  18. package/es/img-crop/EasyCrop.js +3 -9
  19. package/es/img-crop/getCroppedImg.js +49 -51
  20. package/es/img-crop/index.js +52 -60
  21. package/es/json-editor/index.js +2 -6
  22. package/es/keep-tab/index.js +3 -9
  23. package/es/label-auto-complete/index.js +2 -6
  24. package/es/label-condition-input/index.js +2 -6
  25. package/es/label-condition-select-input/index.js +2 -6
  26. package/es/label-customize-range-picker/defaultRadioList.js +1 -3
  27. package/es/label-customize-range-picker/index.js +3 -9
  28. package/es/label-customize-range-picker/utils/index.js +1 -3
  29. package/es/label-date-picker/index.js +2 -6
  30. package/es/label-input/index.js +1 -3
  31. package/es/label-number-input/index.js +2 -6
  32. package/es/label-range-number/index.js +2 -6
  33. package/es/label-range-picker/index.js +3 -9
  34. package/es/label-select/index.js +2 -6
  35. package/es/label-text-area/index.js +3 -9
  36. package/es/label-tree-select/index.js +2 -6
  37. package/es/multipart-upload/index.js +6 -12
  38. package/es/multipart-upload/parse2RegexOption.js +1 -3
  39. package/es/number-format-input/index.js +2 -6
  40. package/es/number-input/index.js +3 -9
  41. package/es/rc-echart/index.js +1 -3
  42. package/es/rc-qrcode/index.js +1 -3
  43. package/es/rc-qrcode/useQrcode.js +1 -3
  44. package/es/rich-text-editor/index.js +2 -6
  45. package/es/single-img-upload/assets/pdf.png +0 -0
  46. package/es/single-img-upload/index.js +56 -62
  47. package/es/single-img-upload/style/index.css +4 -0
  48. package/es/single-img-upload/style/index.less +5 -0
  49. package/es/split-pane/index.js +1 -3
  50. package/es/step-number-input/index.js +3 -9
  51. package/es/text-area/index.js +3 -9
  52. package/es/text-input/index.js +3 -9
  53. package/lib/a-select/index.js +3 -9
  54. package/lib/beautiful-dnd/index.js +1 -3
  55. package/lib/button-drawer/index.js +4 -12
  56. package/lib/button-modal/index.js +4 -12
  57. package/lib/client-only/useClientOnly.js +1 -3
  58. package/lib/color-select/index.js +3 -9
  59. package/lib/complex-val-select/index.js +6 -12
  60. package/lib/condition-input/index.js +4 -12
  61. package/lib/condition-input/parse2RegexOption.js +1 -3
  62. package/lib/condition-select/index.js +2 -6
  63. package/lib/condition-select-input/index.js +3 -9
  64. package/lib/copy-to-clipboard/index.js +3 -9
  65. package/lib/count-down/index.js +1 -3
  66. package/lib/count-up/index.js +1 -3
  67. package/lib/flex/index.js +2 -6
  68. package/lib/flex/utils/index.js +1 -3
  69. package/lib/highlight-textarea/extractSpansOfClasses.js +1 -3
  70. package/lib/highlight-textarea/getRanges.js +1 -3
  71. package/lib/highlight-textarea/index.js +4 -12
  72. package/lib/img-crop/EasyCrop.js +4 -12
  73. package/lib/img-crop/getCroppedImg.js +49 -51
  74. package/lib/img-crop/index.js +53 -63
  75. package/lib/json-editor/index.js +3 -9
  76. package/lib/keep-tab/index.js +4 -12
  77. package/lib/label-auto-complete/index.js +2 -6
  78. package/lib/label-condition-input/index.js +2 -6
  79. package/lib/label-condition-select-input/index.js +3 -9
  80. package/lib/label-customize-range-picker/defaultRadioList.js +2 -6
  81. package/lib/label-customize-range-picker/index.js +4 -12
  82. package/lib/label-customize-range-picker/utils/index.js +1 -3
  83. package/lib/label-date-picker/index.js +2 -6
  84. package/lib/label-input/index.js +1 -3
  85. package/lib/label-number-input/index.js +2 -6
  86. package/lib/label-range-number/index.js +2 -6
  87. package/lib/label-range-picker/index.js +3 -9
  88. package/lib/label-select/index.js +2 -6
  89. package/lib/label-text-area/index.js +3 -9
  90. package/lib/label-tree-select/index.js +2 -6
  91. package/lib/multipart-upload/index.js +7 -15
  92. package/lib/multipart-upload/parse2RegexOption.js +1 -3
  93. package/lib/number-format-input/index.js +2 -6
  94. package/lib/number-input/index.js +4 -12
  95. package/lib/rc-echart/core.js +1 -3
  96. package/lib/rc-echart/index.js +2 -6
  97. package/lib/rc-qrcode/index.js +2 -6
  98. package/lib/rc-qrcode/useQrcode.js +1 -3
  99. package/lib/rc-transition-group/index.js +1 -3
  100. package/lib/rich-text-editor/index.js +2 -6
  101. package/lib/single-img-upload/assets/pdf.png +0 -0
  102. package/lib/single-img-upload/index.js +57 -65
  103. package/lib/single-img-upload/style/index.css +4 -0
  104. package/lib/single-img-upload/style/index.less +5 -0
  105. package/lib/sortable-hoc/index.js +1 -3
  106. package/lib/split-pane/index.js +1 -3
  107. package/lib/step-number-input/index.js +4 -12
  108. package/lib/text-area/index.js +4 -12
  109. package/lib/text-input/index.js +3 -9
  110. package/package.json +3 -2
  111. package/es/single-img-upload/assets/pdf.svg +0 -16
  112. package/lib/single-img-upload/assets/pdf.svg +0 -16
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -44,11 +40,11 @@ import Select from "antd/es/select";
44
40
  import useControllableValue from "ahooks/es/useControllableValue";
45
41
  var Option = Select.Option;
46
42
  export { Option };
47
- var formatOptions = function formatOptions(dateSource) {
43
+ var _formatOptions = function formatOptions(dateSource) {
48
44
  if (dateSource) {
49
45
  var options = dateSource.map(function (item) {
50
46
  var otherProps = item.options ? {
51
- options: formatOptions(item.options)
47
+ options: _formatOptions(item.options)
52
48
  } : {};
53
49
  return __assign(__assign(__assign({}, item), {
54
50
  label: item.label,
@@ -86,7 +82,7 @@ var ComplexValSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
86
82
  });
87
83
  // 判断是否需要将optionValue转为JSON字符串
88
84
  var isReferenceTypeVal = isReferenceTypeOption(options);
89
- var finalOptions = isReferenceTypeVal ? formatOptions(options) : options;
85
+ var finalOptions = isReferenceTypeVal ? _formatOptions(options) : options;
90
86
  var handleChange = function handleChange(val) {
91
87
  var nextVal = val && isReferenceTypeVal ? JSON.parse(val) : val;
92
88
  setValue(nextVal, options);
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -18,9 +16,7 @@ var __read = this && this.__read || function (o, n) {
18
16
  ar = [],
19
17
  e;
20
18
  try {
21
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
- ar.push(r.value);
23
- }
19
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
24
20
  } catch (error) {
25
21
  e = {
26
22
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
package/es/flex/index.js CHANGED
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -6,9 +6,7 @@ var __read = this && this.__read || function (o, n) {
6
6
  ar = [],
7
7
  e;
8
8
  try {
9
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
10
- ar.push(r.value);
11
- }
9
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
12
10
  } catch (error) {
13
11
  e = {
14
12
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -2,9 +2,7 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
6
  }
9
7
  return t;
10
8
  };
@@ -12,9 +10,7 @@ var __assign = this && this.__assign || function () {
12
10
  };
13
11
  var __rest = this && this.__rest || function (s, e) {
14
12
  var t = {};
15
- for (var p in s) {
16
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
17
- }
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
18
14
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
15
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
20
16
  }
@@ -28,9 +24,7 @@ var __read = this && this.__read || function (o, n) {
28
24
  ar = [],
29
25
  e;
30
26
  try {
31
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
32
- ar.push(r.value);
33
- }
27
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
34
28
  } catch (error) {
35
29
  e = {
36
30
  error: error
@@ -49,60 +49,58 @@ var __generator = this && this.__generator || function (thisArg, body) {
49
49
  }
50
50
  function step(op) {
51
51
  if (f) throw new TypeError("Generator is already executing.");
52
- while (g && (g = 0, op[0] && (_ = 0)), _) {
53
- try {
54
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
55
- if (y = 0, t) op = [op[0] & 2, t.value];
56
- switch (op[0]) {
57
- case 0:
58
- case 1:
52
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
53
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
54
+ if (y = 0, t) op = [op[0] & 2, t.value];
55
+ switch (op[0]) {
56
+ case 0:
57
+ case 1:
58
+ t = op;
59
+ break;
60
+ case 4:
61
+ _.label++;
62
+ return {
63
+ value: op[1],
64
+ done: false
65
+ };
66
+ case 5:
67
+ _.label++;
68
+ y = op[1];
69
+ op = [0];
70
+ continue;
71
+ case 7:
72
+ op = _.ops.pop();
73
+ _.trys.pop();
74
+ continue;
75
+ default:
76
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
77
+ _ = 0;
78
+ continue;
79
+ }
80
+ if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
81
+ _.label = op[1];
82
+ break;
83
+ }
84
+ if (op[0] === 6 && _.label < t[1]) {
85
+ _.label = t[1];
59
86
  t = op;
60
87
  break;
61
- case 4:
62
- _.label++;
63
- return {
64
- value: op[1],
65
- done: false
66
- };
67
- case 5:
68
- _.label++;
69
- y = op[1];
70
- op = [0];
71
- continue;
72
- case 7:
73
- op = _.ops.pop();
74
- _.trys.pop();
75
- continue;
76
- default:
77
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
78
- _ = 0;
79
- continue;
80
- }
81
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
82
- _.label = op[1];
83
- break;
84
- }
85
- if (op[0] === 6 && _.label < t[1]) {
86
- _.label = t[1];
87
- t = op;
88
- break;
89
- }
90
- if (t && _.label < t[2]) {
91
- _.label = t[2];
92
- _.ops.push(op);
93
- break;
94
- }
95
- if (t[2]) _.ops.pop();
96
- _.trys.pop();
97
- continue;
98
- }
99
- op = body.call(thisArg, _);
100
- } catch (e) {
101
- op = [6, e];
102
- y = 0;
103
- } finally {
104
- f = t = 0;
88
+ }
89
+ if (t && _.label < t[2]) {
90
+ _.label = t[2];
91
+ _.ops.push(op);
92
+ break;
93
+ }
94
+ if (t[2]) _.ops.pop();
95
+ _.trys.pop();
96
+ continue;
105
97
  }
98
+ op = body.call(thisArg, _);
99
+ } catch (e) {
100
+ op = [6, e];
101
+ y = 0;
102
+ } finally {
103
+ f = t = 0;
106
104
  }
107
105
  if (op[0] & 5) throw op[1];
108
106
  return {