@unicom-cloud/ui 0.8.72 → 0.8.73

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 (357) hide show
  1. package/Affix.js +2 -2
  2. package/Alert.js +2 -2
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +2 -2
  6. package/Breadcrumb.js +3 -3
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +1 -1
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +1 -1
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +4 -4
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +6 -5
  34. package/Modal.js +1 -1
  35. package/Notice.js +4 -4
  36. package/Notification.js +7 -6
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Popconfirm.js +2 -2
  40. package/Popover.js +2 -2
  41. package/Progress.js +1 -1
  42. package/Radio.js +1 -1
  43. package/Rate.js +2 -2
  44. package/ResizeBox.js +2 -2
  45. package/Result.js +1 -1
  46. package/SelectView.js +4 -3
  47. package/Skeleton.js +1 -1
  48. package/Slider.js +3 -3
  49. package/Space.js +1 -1
  50. package/SpeechSynthesis.js +20 -20
  51. package/Spin.js +2 -2
  52. package/Statistic.js +1 -1
  53. package/Steps.js +1 -1
  54. package/Switch.js +7 -5
  55. package/Table.js +1 -1
  56. package/Tabs.js +1 -1
  57. package/Tag.js +1 -1
  58. package/Tooltip.js +3 -3
  59. package/Transfer.js +2 -2
  60. package/Tree.js +1 -1
  61. package/Trigger.js +8 -7
  62. package/affix/index.js +2 -2
  63. package/alert/index.js +2 -2
  64. package/anchor/Anchor.js +53 -50
  65. package/anchor/Link.js +1 -1
  66. package/anchor/util.js +1 -1
  67. package/auto-complete/index.js +2 -2
  68. package/avatar/Avatar.js +1 -1
  69. package/avatar/Group.js +1 -1
  70. package/back-top/index.js +2 -2
  71. package/badge/Count.js +1 -1
  72. package/badge/index.js +50 -48
  73. package/breadcrumb/index.js +3 -3
  74. package/button/Group.js +1 -1
  75. package/button/index.js +1 -1
  76. package/calendar/index.js +2 -2
  77. package/card/Grid.js +1 -1
  78. package/card/Meta.js +1 -1
  79. package/card/index.js +1 -1
  80. package/carousel/Arrow.js +1 -1
  81. package/carousel/Indicator.js +1 -1
  82. package/carousel/index.js +1 -1
  83. package/cascader/Cascader.js +4 -4
  84. package/cascader/index.js +1 -1
  85. package/cascader/util.js +1 -1
  86. package/checkbox/Checkbox.js +3 -3
  87. package/checkbox/Group.js +3 -3
  88. package/checkbox/index.js +1 -1
  89. package/chunk/{BnWo0OJ0.js → 7HDzVe32.js} +7 -7
  90. package/chunk/{6nKl68Er.js → B0UZ1Ee2.js} +3 -3
  91. package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
  92. package/chunk/{BDHuWwhT.js → B7hulkj9.js} +2 -2
  93. package/chunk/Bj4EV0eG.js +27 -0
  94. package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
  95. package/chunk/{Cgbja_v_.js → Byd0ztYY.js} +13 -12
  96. package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
  97. package/chunk/{B4JiMp8I.js → CCVU-Kst.js} +8 -2
  98. package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
  99. package/chunk/CiY7w1ZO.js +647 -0
  100. package/chunk/{fFjj2KuF.js → Cj2SQJiO.js} +392 -414
  101. package/chunk/Coz3rCng.js +33 -0
  102. package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
  103. package/chunk/{CAVVFFyZ.js → D2LLXZQX.js} +5 -7
  104. package/chunk/DAAff-FT.js +59 -0
  105. package/chunk/{Cf4qn5jY.js → DJDOFlqC.js} +2 -2
  106. package/chunk/DU1RCDfh.js +29 -0
  107. package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
  108. package/chunk/{IUjEMHU1.js → DejjIa3N.js} +176 -173
  109. package/chunk/{y9unmTx_.js → Dg0M2OmF.js} +125 -125
  110. package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
  111. package/chunk/{rp1MtSd0.js → UDX9U6M7.js} +3 -3
  112. package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
  113. package/chunk/{CP7Ac47f.js → oHDWCJnz.js} +3 -3
  114. package/chunk/{CdAuhef7.js → uH6uxyao.js} +1 -1
  115. package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
  116. package/collapse/Collapse.js +3 -3
  117. package/collapse/Item.js +3 -3
  118. package/collapse/index.js +1 -1
  119. package/color-picker/ControlBar.js +1 -1
  120. package/color-picker/InputAlpha.js +1 -1
  121. package/color-picker/InputHex.js +8 -8
  122. package/color-picker/InputRgb.js +6 -6
  123. package/color-picker/Palette.js +2 -2
  124. package/color-picker/Panel.js +16 -16
  125. package/color-picker/colors.js +4 -4
  126. package/color-picker/index.js +3 -3
  127. package/color-picker/utils.js +1 -1
  128. package/comment/index.js +1 -1
  129. package/config-provider/ConfigProvider.js +2 -2
  130. package/config-provider/context.js +1 -1
  131. package/config-provider/index.js +2 -2
  132. package/copy/index.js +1 -1
  133. package/date-picker/Picker.js +1 -1
  134. package/date-picker/PickerRange.js +2 -2
  135. package/date-picker/index.js +1 -1
  136. package/descriptions/index.js +2 -2
  137. package/divider/index.js +1 -1
  138. package/draggable/index.js +1 -1
  139. package/drawer/Drawer.js +121 -111
  140. package/dropdown/Button.js +1 -1
  141. package/dropdown/index.js +4 -4
  142. package/empty/index.js +1 -1
  143. package/form/Form.js +2 -2
  144. package/form/FormItem.js +2 -2
  145. package/form/promisify.js +9 -8
  146. package/form/store.js +1 -1
  147. package/form/util.js +1 -1
  148. package/grid/Col.js +1 -1
  149. package/grid/Row.js +2 -2
  150. package/grid/grid-item.js +2 -2
  151. package/grid/grid.js +2 -2
  152. package/hooks/index.js +5 -5
  153. package/hooks/useInView.js +1 -1
  154. package/hooks/useIntersectionObserver.js +1 -1
  155. package/hooks/useMergeValue.js +1 -1
  156. package/hooks/useOverflowHidden.js +1 -1
  157. package/hooks/useOverrideRef.js +1 -1
  158. package/hooks/useVerificationCode.js +2 -2
  159. package/icon/index.js +1 -1
  160. package/icon-hover/index.js +1 -1
  161. package/image/Image.js +4 -4
  162. package/image/ImagePreview.js +8 -8
  163. package/image/ImagePreviewArrow.js +1 -1
  164. package/image/ImagePreviewGroup.js +2 -2
  165. package/image/index.js +1 -1
  166. package/index.js +591 -571
  167. package/input/Group.js +1 -1
  168. package/input/Input.js +47 -46
  169. package/input/InputElement.js +3 -3
  170. package/input/Password.js +2 -2
  171. package/input/Search.js +2 -2
  172. package/input/Textarea.js +6 -5
  173. package/input-number/index.js +1 -1
  174. package/input-tag/InputTag.js +52 -50
  175. package/layout/Content.js +1 -1
  176. package/layout/Footer.js +1 -1
  177. package/layout/Header.js +1 -1
  178. package/layout/Sider.js +3 -3
  179. package/layout/index.js +1 -1
  180. package/link/index.js +1 -1
  181. package/list/Item.js +1 -1
  182. package/list/Meta.js +1 -1
  183. package/list/index.js +2 -2
  184. package/locale/en-US.js +1 -1
  185. package/locale/tr-TR.js +1 -1
  186. package/mentions/index.js +2 -2
  187. package/menu/Item.js +1 -1
  188. package/menu/Menu.js +3 -3
  189. package/menu/OverflowWrap.js +1 -1
  190. package/menu/index.js +2 -2
  191. package/message/index.js +6 -5
  192. package/message/useMessage.js +1 -1
  193. package/modal/Confirm.js +2 -2
  194. package/modal/Modal.js +8 -7
  195. package/modal/index.js +1 -1
  196. package/notice/index.js +4 -4
  197. package/notification/index.js +7 -6
  198. package/notification/useNotification.js +1 -1
  199. package/overflow-ellipsis/OverflowItem.js +1 -1
  200. package/overflow-ellipsis/index.js +1 -1
  201. package/package.json +1 -1
  202. package/page-header/index.js +1 -1
  203. package/pagination/PageItem.js +1 -1
  204. package/pagination/PageJumper.js +1 -1
  205. package/pagination/PageOption.js +1 -1
  206. package/pagination/Pagination.js +2 -2
  207. package/picker/Input.js +1 -1
  208. package/picker/InputRange.js +1 -1
  209. package/popconfirm/index.js +2 -2
  210. package/popover/index.js +2 -2
  211. package/progress/index.js +1 -1
  212. package/radio/Group.js +3 -3
  213. package/radio/Radio.js +3 -3
  214. package/radio/index.js +2 -2
  215. package/rate/index.js +26 -26
  216. package/resize-box/ResizeTrigger.js +21 -20
  217. package/resize-box/Split.js +1 -1
  218. package/resize-box/SplitGroup.js +1 -1
  219. package/resize-box/index.js +2 -2
  220. package/result/index.js +1 -1
  221. package/select/Option.js +1 -1
  222. package/select/Select.js +5 -4
  223. package/select/util.js +12 -12
  224. package/select-view/Core.js +3 -3
  225. package/select-view/index.js +2 -1
  226. package/skeleton/index.js +1 -1
  227. package/slider/Button.js +2 -2
  228. package/slider/Tick.js +1 -1
  229. package/slider/index.js +19 -19
  230. package/slider/util.js +8 -8
  231. package/space/index.js +1 -1
  232. package/speech-synthesis/index.js +20 -20
  233. package/spin/DotLoading.js +1 -1
  234. package/spin/index.js +2 -2
  235. package/statistic/Countdown.js +1 -1
  236. package/statistic/index.js +1 -1
  237. package/steps/index.js +1 -1
  238. package/style/variables.less +1 -1
  239. package/style.css +1 -1
  240. package/switch/index.js +16 -14
  241. package/table/Table.js +2 -2
  242. package/table/index.js +3 -3
  243. package/tabs/Tab.js +3 -3
  244. package/tabs/TabContent.js +2 -2
  245. package/tabs/TabPane.js +1 -1
  246. package/tabs/index.js +2 -2
  247. package/tag/index.js +1 -1
  248. package/time-picker/Picker.js +1 -1
  249. package/time-picker/TimePicker.js +1 -1
  250. package/timeline/Item.js +1 -1
  251. package/timeline/Timeline.js +1 -1
  252. package/tooltip/index.js +3 -3
  253. package/transfer/Item.js +2 -2
  254. package/transfer/List.js +2 -2
  255. package/transfer/index.js +2 -2
  256. package/tree/Animation.js +3 -3
  257. package/tree/Node.js +3 -3
  258. package/tree/NodeList.js +2 -2
  259. package/tree/Tree.js +3 -3
  260. package/tree/index.js +1 -1
  261. package/tree-select/Select.js +25 -25
  262. package/trigger/getPopupStyle.js +2 -2
  263. package/trigger/index.js +7 -6
  264. package/types/badge/interface.d.ts +1 -0
  265. package/types/color-picker/colors.d.ts +1 -1
  266. package/types/date-picker/util.d.ts +1 -1
  267. package/types/drawer/interface.d.ts +10 -0
  268. package/types/index.d.ts +0 -7
  269. package/types/modal/Confirm.d.ts +1 -0
  270. package/types/utils/PqbCSSTransition.d.ts +3 -0
  271. package/types/utils/caseName.d.ts +1 -0
  272. package/types/utils/className.d.ts +1 -0
  273. package/types/utils/color.d.ts +1 -0
  274. package/types/utils/computeScrollIntoView.d.ts +1 -0
  275. package/types/utils/contextHolder.d.ts +1 -0
  276. package/types/utils/copy.d.ts +1 -0
  277. package/types/utils/fileToURL.d.ts +1 -0
  278. package/types/utils/fillNBSP.d.ts +1 -0
  279. package/types/utils/getHighlightText.d.ts +1 -0
  280. package/types/utils/getHotkeyHandler.d.ts +1 -0
  281. package/types/utils/getStringLength.d.ts +1 -0
  282. package/types/utils/include.d.ts +1 -0
  283. package/types/utils/index.d.ts +29 -25
  284. package/types/utils/is.d.ts +1 -1
  285. package/types/utils/keyboardCode.d.ts +1 -0
  286. package/types/utils/math.d.ts +1 -0
  287. package/types/utils/mergeProps.d.ts +1 -0
  288. package/types/utils/mergedToString.d.ts +1 -0
  289. package/types/utils/names.d.ts +497 -81
  290. package/types/utils/omit.d.ts +1 -0
  291. package/types/utils/pick.d.ts +1 -1
  292. package/types/utils/reactTransitionGroup.d.ts +1 -0
  293. package/types/utils/responsiveObserve.d.ts +1 -0
  294. package/types/utils/saveAs.d.ts +1 -0
  295. package/types/utils/screenfull.d.ts +1 -0
  296. package/types/utils/scrollIntoView.d.ts +1 -0
  297. package/types/utils/tinycolor.d.ts +1 -0
  298. package/types/utils/tree.d.ts +1 -0
  299. package/types/utils/tween.d.ts +1 -0
  300. package/types/utils/uuid.d.ts +1 -0
  301. package/types/utils/validate.d.ts +1 -0
  302. package/types/version/index.d.ts +1 -1
  303. package/typography/Base.js +6 -5
  304. package/typography/Ellipsis.js +30 -29
  305. package/typography/Paragraph.js +1 -1
  306. package/typography/Typography.js +1 -1
  307. package/typography/index.js +28 -27
  308. package/upload/TriggerNode.js +1 -1
  309. package/upload/Upload.js +60 -58
  310. package/upload/Uploader.js +21 -21
  311. package/upload/request_.js +4 -3
  312. package/utils/PqbCSSTransition.js +5 -0
  313. package/utils/caseName.js +3 -2
  314. package/utils/className.js +3 -2
  315. package/{chunk/B6X4lnd0.js → utils/color.js} +55 -53
  316. package/utils/computeScrollIntoView.js +128 -0
  317. package/utils/contextHolder.js +3 -2
  318. package/utils/copy.js +4 -2
  319. package/utils/fileToURL.js +3 -2
  320. package/utils/fillNBSP.js +2 -1
  321. package/utils/getHighlightText.js +2 -1
  322. package/utils/getHotkeyHandler.js +2 -1
  323. package/utils/getStringLength.js +2 -1
  324. package/utils/include.js +2 -1
  325. package/utils/index.js +302 -249
  326. package/utils/is.js +104 -101
  327. package/utils/keyboardCode.js +2 -1
  328. package/utils/math.js +35 -0
  329. package/utils/mergeProps.js +2 -1
  330. package/utils/mergedToString.js +2 -1
  331. package/utils/names.js +332 -81
  332. package/utils/omit.js +2 -1
  333. package/utils/pick.js +1 -0
  334. package/utils/react19Adapter.js +1 -1
  335. package/utils/reactDOM.js +1 -1
  336. package/utils/reactTransitionGroup.js +10 -0
  337. package/utils/responsiveObserve.js +2 -1
  338. package/utils/saveAs.js +3 -2
  339. package/utils/screenfull.js +2 -1
  340. package/utils/scrollIntoView.js +4 -2
  341. package/utils/tinycolor.js +30 -0
  342. package/utils/tree.js +87 -0
  343. package/utils/tween.js +6 -0
  344. package/utils/uuid.js +5 -0
  345. package/utils/validate.js +7 -0
  346. package/verification-code/VerificationCode.js +1 -1
  347. package/version/index.js +3 -3
  348. package/virtual-list/VirtualList.js +1 -1
  349. package/watermark/Watermark.js +1 -1
  350. package/chunk/BibHFOCF.js +0 -34
  351. package/chunk/CVYWxu00.js +0 -155
  352. package/chunk/CbLaCJmG.js +0 -26
  353. package/chunk/D-TPB2Do.js +0 -56
  354. package/chunk/DVfOiRp-.js +0 -629
  355. package/chunk/DxxOUMSa.js +0 -98
  356. package/types/utils/CSSTransition.d.ts +0 -2
  357. package/utils/CSSTransition.js +0 -4
@@ -1,36 +1,34 @@
1
- import { jsx as _ } from "react/jsx-runtime";
2
- import Re from "react-is";
3
- import O, { isValidElement as G, cloneElement as J, Children as Ve, useRef as Ee, useMemo as Ye } from "react";
1
+ import { jsx as W } from "react/jsx-runtime";
2
+ import x, { isValidElement as Z, cloneElement as ee, Children as Ue } from "react";
4
3
  import H from "react-dom";
5
- import { s as Be } from "./D-TPB2Do.js";
6
- import { f as He, c as Fe } from "./ClaNycDy.js";
7
- const ve = {
4
+ import Te from "react-is";
5
+ const he = {
8
6
  disabled: !1
9
7
  };
10
- function Ge(n, e) {
8
+ function Ve(n, e) {
11
9
  return n.classList ? !!e && n.classList.contains(e) : ` ${n.className.baseVal || n.className} `.indexOf(
12
10
  ` ${e} `
13
11
  ) !== -1;
14
12
  }
15
- function Je(n, e) {
16
- n.classList ? n.classList.add(e) : Ge(n, e) || (typeof n.className == "string" ? n.className = `${n.className} ${e}` : n.setAttribute(
13
+ function Ye(n, e) {
14
+ n.classList ? n.classList.add(e) : Ve(n, e) || (typeof n.className == "string" ? n.className = `${n.className} ${e}` : n.setAttribute(
17
15
  "class",
18
16
  `${n.className && n.className.baseVal || ""} ${e}`
19
17
  ));
20
18
  }
21
- function Xe(n) {
19
+ function Be(n) {
22
20
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
23
21
  }
24
- var ee = { exports: {} };
22
+ var Q = { exports: {} };
25
23
  /*
26
24
  object-assign
27
25
  (c) Sindre Sorhus
28
26
  @license MIT
29
27
  */
30
- var ne, ye;
31
- function ze() {
32
- if (ye) return ne;
33
- ye = 1;
28
+ var ne, Ee;
29
+ function He() {
30
+ if (Ee) return ne;
31
+ Ee = 1;
34
32
  var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
35
33
  function r(i) {
36
34
  if (i == null)
@@ -44,86 +42,86 @@ function ze() {
44
42
  var i = new String("abc");
45
43
  if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
46
44
  return !1;
47
- for (var u = {}, l = 0; l < 10; l++)
48
- u["_" + String.fromCharCode(l)] = l;
49
- var b = Object.getOwnPropertyNames(u).map(function(x) {
50
- return u[x];
45
+ for (var c = {}, l = 0; l < 10; l++)
46
+ c["_" + String.fromCharCode(l)] = l;
47
+ var O = Object.getOwnPropertyNames(c).map(function(b) {
48
+ return c[b];
51
49
  });
52
- if (b.join("") !== "0123456789")
50
+ if (O.join("") !== "0123456789")
53
51
  return !1;
54
52
  var T = {};
55
- return "abcdefghijklmnopqrst".split("").forEach(function(x) {
56
- T[x] = x;
53
+ return "abcdefghijklmnopqrst".split("").forEach(function(b) {
54
+ T[b] = b;
57
55
  }), Object.keys(Object.assign({}, T)).join("") === "abcdefghijklmnopqrst";
58
56
  } catch {
59
57
  return !1;
60
58
  }
61
59
  }
62
- return ne = s() ? Object.assign : function(i, u) {
63
- for (var l, b = r(i), T, x = 1; x < arguments.length; x++) {
64
- l = Object(arguments[x]);
65
- for (var R in l)
66
- e.call(l, R) && (b[R] = l[R]);
60
+ return ne = s() ? Object.assign : function(i, c) {
61
+ for (var l, O = r(i), T, b = 1; b < arguments.length; b++) {
62
+ l = Object(arguments[b]);
63
+ for (var S in l)
64
+ e.call(l, S) && (O[S] = l[S]);
67
65
  if (n) {
68
66
  T = n(l);
69
- for (var S = 0; S < T.length; S++)
70
- t.call(l, T[S]) && (b[T[S]] = l[T[S]]);
67
+ for (var R = 0; R < T.length; R++)
68
+ t.call(l, T[R]) && (O[T[R]] = l[T[R]]);
71
69
  }
72
70
  }
73
- return b;
71
+ return O;
74
72
  }, ne;
75
73
  }
76
- var re, ge;
74
+ var re, ve;
77
75
  function le() {
78
- if (ge) return re;
79
- ge = 1;
76
+ if (ve) return re;
77
+ ve = 1;
80
78
  var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
81
79
  return re = n, re;
82
80
  }
83
- var ie, me;
84
- function Se() {
85
- return me || (me = 1, ie = Function.call.bind(Object.prototype.hasOwnProperty)), ie;
81
+ var ie, ye;
82
+ function Ce() {
83
+ return ye || (ye = 1, ie = Function.call.bind(Object.prototype.hasOwnProperty)), ie;
86
84
  }
87
- var se, be;
88
- function Ke() {
89
- if (be) return se;
90
- be = 1;
85
+ var se, ge;
86
+ function Fe() {
87
+ if (ge) return se;
88
+ ge = 1;
91
89
  var n = function() {
92
90
  };
93
91
  if (process.env.NODE_ENV !== "production") {
94
- var e = /* @__PURE__ */ le(), t = {}, r = /* @__PURE__ */ Se();
92
+ var e = /* @__PURE__ */ le(), t = {}, r = /* @__PURE__ */ Ce();
95
93
  n = function(i) {
96
- var u = "Warning: " + i;
97
- typeof console < "u" && console.error(u);
94
+ var c = "Warning: " + i;
95
+ typeof console < "u" && console.error(c);
98
96
  try {
99
- throw new Error(u);
97
+ throw new Error(c);
100
98
  } catch {
101
99
  }
102
100
  };
103
101
  }
104
- function s(i, u, l, b, T) {
102
+ function s(i, c, l, O, T) {
105
103
  if (process.env.NODE_ENV !== "production") {
106
- for (var x in i)
107
- if (r(i, x)) {
108
- var R;
104
+ for (var b in i)
105
+ if (r(i, b)) {
106
+ var S;
109
107
  try {
110
- if (typeof i[x] != "function") {
111
- var S = Error(
112
- (b || "React class") + ": " + l + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
108
+ if (typeof i[b] != "function") {
109
+ var R = Error(
110
+ (O || "React class") + ": " + l + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
113
111
  );
114
- throw S.name = "Invariant Violation", S;
112
+ throw R.name = "Invariant Violation", R;
115
113
  }
116
- R = i[x](u, x, b, l, null, e);
117
- } catch (K) {
118
- R = K;
114
+ S = i[b](c, b, O, l, null, e);
115
+ } catch (X) {
116
+ S = X;
119
117
  }
120
- if (R && !(R instanceof Error) && n(
121
- (b || "React class") + ": type specification of " + l + " `" + x + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof R + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
122
- ), R instanceof Error && !(R.message in t)) {
123
- t[R.message] = !0;
124
- var A = T ? T() : "";
118
+ if (S && !(S instanceof Error) && n(
119
+ (O || "React class") + ": type specification of " + l + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof S + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
120
+ ), S instanceof Error && !(S.message in t)) {
121
+ t[S.message] = !0;
122
+ var N = T ? T() : "";
125
123
  n(
126
- "Failed " + l + " type: " + R.message + (A ?? "")
124
+ "Failed " + l + " type: " + S.message + (N ?? "")
127
125
  );
128
126
  }
129
127
  }
@@ -133,31 +131,31 @@ function Ke() {
133
131
  process.env.NODE_ENV !== "production" && (t = {});
134
132
  }, se = s, se;
135
133
  }
136
- var oe, xe;
137
- function Qe() {
138
- if (xe) return oe;
139
- xe = 1;
140
- var n = Re, e = ze(), t = /* @__PURE__ */ le(), r = /* @__PURE__ */ Se(), s = /* @__PURE__ */ Ke(), i = function() {
134
+ var oe, me;
135
+ function Ge() {
136
+ if (me) return oe;
137
+ me = 1;
138
+ var n = Te, e = He(), t = /* @__PURE__ */ le(), r = /* @__PURE__ */ Ce(), s = /* @__PURE__ */ Fe(), i = function() {
141
139
  };
142
140
  process.env.NODE_ENV !== "production" && (i = function(l) {
143
- var b = "Warning: " + l;
144
- typeof console < "u" && console.error(b);
141
+ var O = "Warning: " + l;
142
+ typeof console < "u" && console.error(O);
145
143
  try {
146
- throw new Error(b);
144
+ throw new Error(O);
147
145
  } catch {
148
146
  }
149
147
  });
150
- function u() {
148
+ function c() {
151
149
  return null;
152
150
  }
153
- return oe = function(l, b) {
154
- var T = typeof Symbol == "function" && Symbol.iterator, x = "@@iterator";
155
- function R(o) {
156
- var a = o && (T && o[T] || o[x]);
151
+ return oe = function(l, O) {
152
+ var T = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
153
+ function S(o) {
154
+ var a = o && (T && o[T] || o[b]);
157
155
  if (typeof a == "function")
158
156
  return a;
159
157
  }
160
- var S = "<<anonymous>>", A = {
158
+ var R = "<<anonymous>>", N = {
161
159
  array: I("array"),
162
160
  bigint: I("bigint"),
163
161
  bool: I("boolean"),
@@ -166,35 +164,35 @@ function Qe() {
166
164
  object: I("object"),
167
165
  string: I("string"),
168
166
  symbol: I("symbol"),
169
- any: Q(),
170
- arrayOf: je,
171
- element: ke(),
172
- elementType: $e(),
173
- instanceOf: De,
174
- node: qe(),
167
+ any: z(),
168
+ arrayOf: Pe,
169
+ element: je(),
170
+ elementType: ke(),
171
+ instanceOf: $e,
172
+ node: Ie(),
175
173
  objectOf: Ae,
176
- oneOf: Ne,
177
- oneOfType: Ie,
178
- shape: _e,
179
- exact: Le
174
+ oneOf: De,
175
+ oneOfType: Ne,
176
+ shape: qe,
177
+ exact: _e
180
178
  };
181
- function K(o, a) {
179
+ function X(o, a) {
182
180
  return o === a ? o !== 0 || 1 / o === 1 / a : o !== o && a !== a;
183
181
  }
184
182
  function C(o, a) {
185
183
  this.message = o, this.data = a && typeof a == "object" ? a : {}, this.stack = "";
186
184
  }
187
185
  C.prototype = Error.prototype;
188
- function w(o) {
186
+ function P(o) {
189
187
  if (process.env.NODE_ENV !== "production")
190
188
  var a = {}, E = 0;
191
- function d(v, f, h, y, m, g, j) {
192
- if (y = y || S, g = g || h, j !== t) {
193
- if (b) {
194
- var P = new Error(
189
+ function f(v, d, h, y, m, g, j) {
190
+ if (y = y || R, g = g || h, j !== t) {
191
+ if (O) {
192
+ var w = new Error(
195
193
  "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"
196
194
  );
197
- throw P.name = "Invariant Violation", P;
195
+ throw w.name = "Invariant Violation", w;
198
196
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
199
197
  var U = y + ":" + h;
200
198
  !a[U] && // Avoid spamming the console because they are often not actionable except for lib authors
@@ -203,186 +201,186 @@ function Qe() {
203
201
  ), a[U] = !0, E++);
204
202
  }
205
203
  }
206
- return f[h] == null ? v ? f[h] === null ? new C("The " + m + " `" + g + "` is marked as required " + ("in `" + y + "`, but its value is `null`.")) : new C("The " + m + " `" + g + "` is marked as required in " + ("`" + y + "`, but its value is `undefined`.")) : null : o(f, h, y, m, g);
204
+ return d[h] == null ? v ? d[h] === null ? new C("The " + m + " `" + g + "` is marked as required " + ("in `" + y + "`, but its value is `null`.")) : new C("The " + m + " `" + g + "` is marked as required in " + ("`" + y + "`, but its value is `undefined`.")) : null : o(d, h, y, m, g);
207
205
  }
208
- var p = d.bind(null, !1);
209
- return p.isRequired = d.bind(null, !0), p;
206
+ var p = f.bind(null, !1);
207
+ return p.isRequired = f.bind(null, !0), p;
210
208
  }
211
209
  function I(o) {
212
- function a(E, d, p, v, f, h) {
213
- var y = E[d], m = q(y);
210
+ function a(E, f, p, v, d, h) {
211
+ var y = E[f], m = q(y);
214
212
  if (m !== o) {
215
213
  var g = B(y);
216
214
  return new C(
217
- "Invalid " + v + " `" + f + "` of type " + ("`" + g + "` supplied to `" + p + "`, expected ") + ("`" + o + "`."),
215
+ "Invalid " + v + " `" + d + "` of type " + ("`" + g + "` supplied to `" + p + "`, expected ") + ("`" + o + "`."),
218
216
  { expectedType: o }
219
217
  );
220
218
  }
221
219
  return null;
222
220
  }
223
- return w(a);
221
+ return P(a);
224
222
  }
225
- function Q() {
226
- return w(u);
223
+ function z() {
224
+ return P(c);
227
225
  }
228
- function je(o) {
229
- function a(E, d, p, v, f) {
226
+ function Pe(o) {
227
+ function a(E, f, p, v, d) {
230
228
  if (typeof o != "function")
231
- return new C("Property `" + f + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
232
- var h = E[d];
229
+ return new C("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
230
+ var h = E[f];
233
231
  if (!Array.isArray(h)) {
234
232
  var y = q(h);
235
- return new C("Invalid " + v + " `" + f + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an array."));
233
+ return new C("Invalid " + v + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an array."));
236
234
  }
237
235
  for (var m = 0; m < h.length; m++) {
238
- var g = o(h, m, p, v, f + "[" + m + "]", t);
236
+ var g = o(h, m, p, v, d + "[" + m + "]", t);
239
237
  if (g instanceof Error)
240
238
  return g;
241
239
  }
242
240
  return null;
243
241
  }
244
- return w(a);
242
+ return P(a);
245
243
  }
246
- function ke() {
247
- function o(a, E, d, p, v) {
248
- var f = a[E];
249
- if (!l(f)) {
250
- var h = q(f);
251
- return new C("Invalid " + p + " `" + v + "` of type " + ("`" + h + "` supplied to `" + d + "`, expected a single ReactElement."));
244
+ function je() {
245
+ function o(a, E, f, p, v) {
246
+ var d = a[E];
247
+ if (!l(d)) {
248
+ var h = q(d);
249
+ return new C("Invalid " + p + " `" + v + "` of type " + ("`" + h + "` supplied to `" + f + "`, expected a single ReactElement."));
252
250
  }
253
251
  return null;
254
252
  }
255
- return w(o);
253
+ return P(o);
256
254
  }
257
- function $e() {
258
- function o(a, E, d, p, v) {
259
- var f = a[E];
260
- if (!n.isValidElementType(f)) {
261
- var h = q(f);
262
- return new C("Invalid " + p + " `" + v + "` of type " + ("`" + h + "` supplied to `" + d + "`, expected a single ReactElement type."));
255
+ function ke() {
256
+ function o(a, E, f, p, v) {
257
+ var d = a[E];
258
+ if (!n.isValidElementType(d)) {
259
+ var h = q(d);
260
+ return new C("Invalid " + p + " `" + v + "` of type " + ("`" + h + "` supplied to `" + f + "`, expected a single ReactElement type."));
263
261
  }
264
262
  return null;
265
263
  }
266
- return w(o);
264
+ return P(o);
267
265
  }
268
- function De(o) {
269
- function a(E, d, p, v, f) {
270
- if (!(E[d] instanceof o)) {
271
- var h = o.name || S, y = Ue(E[d]);
272
- return new C("Invalid " + v + " `" + f + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected ") + ("instance of `" + h + "`."));
266
+ function $e(o) {
267
+ function a(E, f, p, v, d) {
268
+ if (!(E[f] instanceof o)) {
269
+ var h = o.name || R, y = We(E[f]);
270
+ return new C("Invalid " + v + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected ") + ("instance of `" + h + "`."));
273
271
  }
274
272
  return null;
275
273
  }
276
- return w(a);
274
+ return P(a);
277
275
  }
278
- function Ne(o) {
276
+ function De(o) {
279
277
  if (!Array.isArray(o))
280
278
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
281
279
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
282
- ) : i("Invalid argument supplied to oneOf, expected an array.")), u;
283
- function a(E, d, p, v, f) {
284
- for (var h = E[d], y = 0; y < o.length; y++)
285
- if (K(h, o[y]))
280
+ ) : i("Invalid argument supplied to oneOf, expected an array.")), c;
281
+ function a(E, f, p, v, d) {
282
+ for (var h = E[f], y = 0; y < o.length; y++)
283
+ if (X(h, o[y]))
286
284
  return null;
287
- var m = JSON.stringify(o, function(j, P) {
288
- var U = B(P);
289
- return U === "symbol" ? String(P) : P;
285
+ var m = JSON.stringify(o, function(j, w) {
286
+ var U = B(w);
287
+ return U === "symbol" ? String(w) : w;
290
288
  });
291
- return new C("Invalid " + v + " `" + f + "` of value `" + String(h) + "` " + ("supplied to `" + p + "`, expected one of " + m + "."));
289
+ return new C("Invalid " + v + " `" + d + "` of value `" + String(h) + "` " + ("supplied to `" + p + "`, expected one of " + m + "."));
292
290
  }
293
- return w(a);
291
+ return P(a);
294
292
  }
295
293
  function Ae(o) {
296
- function a(E, d, p, v, f) {
294
+ function a(E, f, p, v, d) {
297
295
  if (typeof o != "function")
298
- return new C("Property `" + f + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
299
- var h = E[d], y = q(h);
296
+ return new C("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
297
+ var h = E[f], y = q(h);
300
298
  if (y !== "object")
301
- return new C("Invalid " + v + " `" + f + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an object."));
299
+ return new C("Invalid " + v + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an object."));
302
300
  for (var m in h)
303
301
  if (r(h, m)) {
304
- var g = o(h, m, p, v, f + "." + m, t);
302
+ var g = o(h, m, p, v, d + "." + m, t);
305
303
  if (g instanceof Error)
306
304
  return g;
307
305
  }
308
306
  return null;
309
307
  }
310
- return w(a);
308
+ return P(a);
311
309
  }
312
- function Ie(o) {
310
+ function Ne(o) {
313
311
  if (!Array.isArray(o))
314
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
312
+ return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
315
313
  for (var a = 0; a < o.length; a++) {
316
314
  var E = o[a];
317
315
  if (typeof E != "function")
318
316
  return i(
319
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + We(E) + " at index " + a + "."
320
- ), u;
317
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Me(E) + " at index " + a + "."
318
+ ), c;
321
319
  }
322
- function d(p, v, f, h, y) {
320
+ function f(p, v, d, h, y) {
323
321
  for (var m = [], g = 0; g < o.length; g++) {
324
- var j = o[g], P = j(p, v, f, h, y, t);
325
- if (P == null)
322
+ var j = o[g], w = j(p, v, d, h, y, t);
323
+ if (w == null)
326
324
  return null;
327
- P.data && r(P.data, "expectedType") && m.push(P.data.expectedType);
325
+ w.data && r(w.data, "expectedType") && m.push(w.data.expectedType);
328
326
  }
329
327
  var U = m.length > 0 ? ", expected one of type [" + m.join(", ") + "]" : "";
330
- return new C("Invalid " + h + " `" + y + "` supplied to " + ("`" + f + "`" + U + "."));
328
+ return new C("Invalid " + h + " `" + y + "` supplied to " + ("`" + d + "`" + U + "."));
331
329
  }
332
- return w(d);
330
+ return P(f);
333
331
  }
334
- function qe() {
335
- function o(a, E, d, p, v) {
336
- return Z(a[E]) ? null : new C("Invalid " + p + " `" + v + "` supplied to " + ("`" + d + "`, expected a ReactNode."));
332
+ function Ie() {
333
+ function o(a, E, f, p, v) {
334
+ return K(a[E]) ? null : new C("Invalid " + p + " `" + v + "` supplied to " + ("`" + f + "`, expected a ReactNode."));
337
335
  }
338
- return w(o);
336
+ return P(o);
339
337
  }
340
- function he(o, a, E, d, p) {
338
+ function fe(o, a, E, f, p) {
341
339
  return new C(
342
- (o || "React class") + ": " + a + " type `" + E + "." + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
340
+ (o || "React class") + ": " + a + " type `" + E + "." + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
343
341
  );
344
342
  }
345
- function _e(o) {
346
- function a(E, d, p, v, f) {
347
- var h = E[d], y = q(h);
343
+ function qe(o) {
344
+ function a(E, f, p, v, d) {
345
+ var h = E[f], y = q(h);
348
346
  if (y !== "object")
349
- return new C("Invalid " + v + " `" + f + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
347
+ return new C("Invalid " + v + " `" + d + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
350
348
  for (var m in o) {
351
349
  var g = o[m];
352
350
  if (typeof g != "function")
353
- return he(p, v, f, m, B(g));
354
- var j = g(h, m, p, v, f + "." + m, t);
351
+ return fe(p, v, d, m, B(g));
352
+ var j = g(h, m, p, v, d + "." + m, t);
355
353
  if (j)
356
354
  return j;
357
355
  }
358
356
  return null;
359
357
  }
360
- return w(a);
358
+ return P(a);
361
359
  }
362
- function Le(o) {
363
- function a(E, d, p, v, f) {
364
- var h = E[d], y = q(h);
360
+ function _e(o) {
361
+ function a(E, f, p, v, d) {
362
+ var h = E[f], y = q(h);
365
363
  if (y !== "object")
366
- return new C("Invalid " + v + " `" + f + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
367
- var m = e({}, E[d], o);
364
+ return new C("Invalid " + v + " `" + d + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
365
+ var m = e({}, E[f], o);
368
366
  for (var g in m) {
369
367
  var j = o[g];
370
368
  if (r(o, g) && typeof j != "function")
371
- return he(p, v, f, g, B(j));
369
+ return fe(p, v, d, g, B(j));
372
370
  if (!j)
373
371
  return new C(
374
- "Invalid " + v + " `" + f + "` key `" + g + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(E[d], null, " ") + `
372
+ "Invalid " + v + " `" + d + "` key `" + g + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(E[f], null, " ") + `
375
373
  Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
376
374
  );
377
- var P = j(h, g, p, v, f + "." + g, t);
378
- if (P)
379
- return P;
375
+ var w = j(h, g, p, v, d + "." + g, t);
376
+ if (w)
377
+ return w;
380
378
  }
381
379
  return null;
382
380
  }
383
- return w(a);
381
+ return P(a);
384
382
  }
385
- function Z(o) {
383
+ function K(o) {
386
384
  switch (typeof o) {
387
385
  case "number":
388
386
  case "string":
@@ -392,20 +390,20 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
392
390
  return !o;
393
391
  case "object":
394
392
  if (Array.isArray(o))
395
- return o.every(Z);
393
+ return o.every(K);
396
394
  if (o === null || l(o))
397
395
  return !0;
398
- var a = R(o);
396
+ var a = S(o);
399
397
  if (a) {
400
- var E = a.call(o), d;
398
+ var E = a.call(o), f;
401
399
  if (a !== o.entries) {
402
- for (; !(d = E.next()).done; )
403
- if (!Z(d.value))
400
+ for (; !(f = E.next()).done; )
401
+ if (!K(f.value))
404
402
  return !1;
405
403
  } else
406
- for (; !(d = E.next()).done; ) {
407
- var p = d.value;
408
- if (p && !Z(p[1]))
404
+ for (; !(f = E.next()).done; ) {
405
+ var p = f.value;
406
+ if (p && !K(p[1]))
409
407
  return !1;
410
408
  }
411
409
  } else
@@ -415,12 +413,12 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
415
413
  return !1;
416
414
  }
417
415
  }
418
- function Me(o, a) {
416
+ function Le(o, a) {
419
417
  return o === "symbol" ? !0 : a ? a["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && a instanceof Symbol : !1;
420
418
  }
421
419
  function q(o) {
422
420
  var a = typeof o;
423
- return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : Me(a, o) ? "symbol" : a;
421
+ return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : Le(a, o) ? "symbol" : a;
424
422
  }
425
423
  function B(o) {
426
424
  if (typeof o > "u" || o === null)
@@ -434,7 +432,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
434
432
  }
435
433
  return a;
436
434
  }
437
- function We(o) {
435
+ function Me(o) {
438
436
  var a = B(o);
439
437
  switch (a) {
440
438
  case "array":
@@ -448,28 +446,28 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
448
446
  return a;
449
447
  }
450
448
  }
451
- function Ue(o) {
452
- return !o.constructor || !o.constructor.name ? S : o.constructor.name;
449
+ function We(o) {
450
+ return !o.constructor || !o.constructor.name ? R : o.constructor.name;
453
451
  }
454
- return A.checkPropTypes = s, A.resetWarningCache = s.resetWarningCache, A.PropTypes = A, A;
452
+ return N.checkPropTypes = s, N.resetWarningCache = s.resetWarningCache, N.PropTypes = N, N;
455
453
  }, oe;
456
454
  }
457
- var ae, Oe;
458
- function Ze() {
459
- if (Oe) return ae;
460
- Oe = 1;
455
+ var ae, be;
456
+ function Je() {
457
+ if (be) return ae;
458
+ be = 1;
461
459
  var n = /* @__PURE__ */ le();
462
460
  function e() {
463
461
  }
464
462
  function t() {
465
463
  }
466
464
  return t.resetWarningCache = e, ae = function() {
467
- function r(u, l, b, T, x, R) {
468
- if (R !== n) {
469
- var S = new Error(
465
+ function r(c, l, O, T, b, S) {
466
+ if (S !== n) {
467
+ var R = new Error(
470
468
  "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"
471
469
  );
472
- throw S.name = "Invariant Violation", S;
470
+ throw R.name = "Invariant Violation", R;
473
471
  }
474
472
  }
475
473
  r.isRequired = r;
@@ -502,66 +500,66 @@ function Ze() {
502
500
  return i.PropTypes = i, i;
503
501
  }, ae;
504
502
  }
505
- var Te;
506
- function et() {
507
- if (Te) return ee.exports;
508
- if (Te = 1, process.env.NODE_ENV !== "production") {
509
- var n = Re, e = !0;
510
- ee.exports = /* @__PURE__ */ Qe()(n.isElement, e);
503
+ var xe;
504
+ function Xe() {
505
+ if (xe) return Q.exports;
506
+ if (xe = 1, process.env.NODE_ENV !== "production") {
507
+ var n = Te, e = !0;
508
+ Q.exports = /* @__PURE__ */ Ge()(n.isElement, e);
511
509
  } else
512
- ee.exports = /* @__PURE__ */ Ze()();
513
- return ee.exports;
510
+ Q.exports = /* @__PURE__ */ Je()();
511
+ return Q.exports;
514
512
  }
515
- var tt = /* @__PURE__ */ et();
516
- const c = /* @__PURE__ */ Xe(tt);
517
- function Ce(n, e) {
513
+ var ze = /* @__PURE__ */ Xe();
514
+ const u = /* @__PURE__ */ Be(ze);
515
+ function Oe(n, e) {
518
516
  return n.replace(new RegExp(`(^|\\s)${e}(?:\\s|$)`, "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
519
517
  }
520
- function nt(n, e) {
521
- n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className = Ce(
518
+ function Ke(n, e) {
519
+ n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className = Oe(
522
520
  n.className,
523
521
  e
524
522
  ) : n.setAttribute(
525
523
  "class",
526
- Ce(
524
+ Oe(
527
525
  n.className && n.className.baseVal || "",
528
526
  e
529
527
  )
530
528
  );
531
529
  }
532
- const X = O.createContext(null);
533
- var rt = Object.defineProperty, it = (n, e, t) => e in n ? rt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, st = (n, e, t) => it(n, e + "", t);
534
- const ot = process.env.NODE_ENV !== "production" ? c.oneOfType([
535
- c.number,
536
- c.shape({
537
- enter: c.number,
538
- exit: c.number,
539
- appear: c.number
530
+ const G = x.createContext(null);
531
+ var Qe = Object.defineProperty, Ze = (n, e, t) => e in n ? Qe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, et = (n, e, t) => Ze(n, e + "", t);
532
+ const tt = process.env.NODE_ENV !== "production" ? u.oneOfType([
533
+ u.number,
534
+ u.shape({
535
+ enter: u.number,
536
+ exit: u.number,
537
+ appear: u.number
540
538
  }).isRequired
541
- ]) : null, at = process.env.NODE_ENV !== "production" ? c.oneOfType([
542
- c.string,
543
- c.shape({
544
- enter: c.string,
545
- exit: c.string,
546
- active: c.string
539
+ ]) : null, nt = process.env.NODE_ENV !== "production" ? u.oneOfType([
540
+ u.string,
541
+ u.shape({
542
+ enter: u.string,
543
+ exit: u.string,
544
+ active: u.string
547
545
  }),
548
- c.shape({
549
- enter: c.string,
550
- enterDone: c.string,
551
- enterActive: c.string,
552
- exit: c.string,
553
- exitDone: c.string,
554
- exitActive: c.string
546
+ u.shape({
547
+ enter: u.string,
548
+ enterDone: u.string,
549
+ enterActive: u.string,
550
+ exit: u.string,
551
+ exitDone: u.string,
552
+ exitActive: u.string
555
553
  })
556
- ]) : null, Pe = (n) => n.scrollTop, F = "unmounted", M = "exited", k = "entering", D = "entered", z = "exiting";
557
- let N = class extends O.Component {
554
+ ]) : null, Se = (n) => n.scrollTop, F = "unmounted", L = "exited", k = "entering", D = "entered", J = "exiting";
555
+ let A = class extends x.Component {
558
556
  constructor(e, t) {
559
557
  super(e, t);
560
558
  let r = t, s = r && !r.isMounting ? e.enter : e.appear, i;
561
- this.appearStatus = null, e.in ? s ? (i = M, this.appearStatus = k) : i = D : e.unmountOnExit || e.mountOnEnter ? i = F : i = M, this.state = { status: i }, this.nextCallback = null;
559
+ this.appearStatus = null, e.in ? s ? (i = L, this.appearStatus = k) : i = D : e.unmountOnExit || e.mountOnEnter ? i = F : i = L, this.state = { status: i }, this.nextCallback = null;
562
560
  }
563
561
  static getDerivedStateFromProps({ in: e }, t) {
564
- return e && t.status === F ? { status: M } : null;
562
+ return e && t.status === F ? { status: L } : null;
565
563
  }
566
564
  // getSnapshotBeforeUpdate(prevProps) {
567
565
  // let nextStatus = null
@@ -586,7 +584,7 @@ let N = class extends O.Component {
586
584
  let t = null;
587
585
  if (e !== this.props) {
588
586
  const { status: r } = this.state;
589
- this.props.in ? r !== k && r !== D && (t = k) : (r === k || r === D) && (t = z);
587
+ this.props.in ? r !== k && r !== D && (t = k) : (r === k || r === D) && (t = J);
590
588
  }
591
589
  this.updateStatus(!1, t);
592
590
  }
@@ -603,16 +601,16 @@ let N = class extends O.Component {
603
601
  if (this.cancelNextCallback(), t === k) {
604
602
  if (this.props.unmountOnExit || this.props.mountOnEnter) {
605
603
  const r = this.props.nodeRef ? this.props.nodeRef.current : H.findDOMNode(this);
606
- r && Pe(r);
604
+ r && Se(r);
607
605
  }
608
606
  this.performEnter(e);
609
607
  } else
610
608
  this.performExit();
611
- else this.props.unmountOnExit && this.state.status === M && this.setState({ status: F });
609
+ else this.props.unmountOnExit && this.state.status === L && this.setState({ status: F });
612
610
  }
613
611
  performEnter(e) {
614
- const { enter: t } = this.props, r = this.context ? this.context.isMounting : e, [s, i] = this.props.nodeRef ? [r] : [H.findDOMNode(this), r], u = this.getTimeouts(), l = r ? u.appear : u.enter;
615
- if (!e && !t || ve.disabled) {
612
+ const { enter: t } = this.props, r = this.context ? this.context.isMounting : e, [s, i] = this.props.nodeRef ? [r] : [H.findDOMNode(this), r], c = this.getTimeouts(), l = r ? c.appear : c.enter;
613
+ if (!e && !t || he.disabled) {
616
614
  this.safeSetState({ status: D }, () => {
617
615
  this.props.onEntered(s);
618
616
  });
@@ -628,15 +626,15 @@ let N = class extends O.Component {
628
626
  }
629
627
  performExit() {
630
628
  const { exit: e } = this.props, t = this.getTimeouts(), r = this.props.nodeRef ? void 0 : H.findDOMNode(this);
631
- if (!e || ve.disabled) {
632
- this.safeSetState({ status: M }, () => {
629
+ if (!e || he.disabled) {
630
+ this.safeSetState({ status: L }, () => {
633
631
  this.props.onExited(r);
634
632
  });
635
633
  return;
636
634
  }
637
- this.props.onExit(r), this.safeSetState({ status: z }, () => {
635
+ this.props.onExit(r), this.safeSetState({ status: J }, () => {
638
636
  this.props.onExiting(r), this.onTransitionEnd(t.exit, () => {
639
- this.safeSetState({ status: M }, () => {
637
+ this.safeSetState({ status: L }, () => {
640
638
  this.props.onExited(r);
641
639
  });
642
640
  });
@@ -664,8 +662,8 @@ let N = class extends O.Component {
664
662
  return;
665
663
  }
666
664
  if (this.props.addEndListener) {
667
- const [i, u] = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback];
668
- this.props.addEndListener(i, u);
665
+ const [i, c] = this.props.nodeRef ? [this.nextCallback] : [r, this.nextCallback];
666
+ this.props.addEndListener(i, c);
669
667
  }
670
668
  e != null && setTimeout(this.nextCallback, e);
671
669
  }
@@ -679,28 +677,28 @@ let N = class extends O.Component {
679
677
  in: r,
680
678
  mountOnEnter: s,
681
679
  unmountOnExit: i,
682
- appear: u,
680
+ appear: c,
683
681
  enter: l,
684
- exit: b,
682
+ exit: O,
685
683
  timeout: T,
686
- addEndListener: x,
687
- onEnter: R,
688
- onEntering: S,
689
- onEntered: A,
690
- onExit: K,
684
+ addEndListener: b,
685
+ onEnter: S,
686
+ onEntering: R,
687
+ onEntered: N,
688
+ onExit: X,
691
689
  onExiting: C,
692
- onExited: w,
690
+ onExited: P,
693
691
  nodeRef: I,
694
- ...Q
692
+ ...z
695
693
  } = this.props;
696
694
  return (
697
695
  // allows for nested Transitions
698
- /* @__PURE__ */ _(X.Provider, { value: null, children: typeof t == "function" ? t(e, Q) : O.cloneElement(O.Children.only(t), Q) })
696
+ /* @__PURE__ */ W(G.Provider, { value: null, children: typeof t == "function" ? t(e, z) : x.cloneElement(x.Children.only(t), z) })
699
697
  );
700
698
  }
701
699
  };
702
- st(N, "contextType", X);
703
- N.propTypes = {
700
+ et(A, "contextType", G);
701
+ A.propTypes = {
704
702
  /**
705
703
  * A React reference to the DOM element that needs to transition:
706
704
  * https://stackoverflow.com/a/51127130/4671932
@@ -715,11 +713,11 @@ N.propTypes = {
715
713
  * (see
716
714
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
717
715
  */
718
- nodeRef: c.shape({
719
- current: typeof Element > "u" ? c.any : (n, e, t, r, s, i) => {
720
- const u = n[e];
721
- return c.instanceOf(
722
- u && "ownerDocument" in u ? u.ownerDocument.defaultView.Element : Element
716
+ nodeRef: u.shape({
717
+ current: typeof Element > "u" ? u.any : (n, e, t, r, s, i) => {
718
+ const c = n[e];
719
+ return u.instanceOf(
720
+ c && "ownerDocument" in c ? c.ownerDocument.defaultView.Element : Element
723
721
  )(n, e, t, r, s, i);
724
722
  }
725
723
  }),
@@ -737,26 +735,26 @@ N.propTypes = {
737
735
  * </Transition>
738
736
  * ```
739
737
  */
740
- children: c.oneOfType([
741
- c.func.isRequired,
742
- c.element.isRequired
738
+ children: u.oneOfType([
739
+ u.func.isRequired,
740
+ u.element.isRequired
743
741
  ]).isRequired,
744
742
  /**
745
743
  * Show the component; triggers the enter or exit states
746
744
  */
747
- in: c.bool,
745
+ in: u.bool,
748
746
  /**
749
747
  * By default the child component is mounted immediately along with
750
748
  * the parent `Transition` component. If you want to "lazy mount" the component on the
751
749
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
752
750
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
753
751
  */
754
- mountOnEnter: c.bool,
752
+ mountOnEnter: u.bool,
755
753
  /**
756
754
  * By default the child component stays mounted after it reaches the `'exited'` state.
757
755
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
758
756
  */
759
- unmountOnExit: c.bool,
757
+ unmountOnExit: u.bool,
760
758
  /**
761
759
  * By default the child component does not perform the enter transition when
762
760
  * it first mounts, regardless of the value of `in`. If you want this
@@ -768,15 +766,15 @@ N.propTypes = {
768
766
  * > additional `.appear-*` classes, that way you can choose to style it
769
767
  * > differently.
770
768
  */
771
- appear: c.bool,
769
+ appear: u.bool,
772
770
  /**
773
771
  * Enable or disable enter transitions.
774
772
  */
775
- enter: c.bool,
773
+ enter: u.bool,
776
774
  /**
777
775
  * Enable or disable exit transitions.
778
776
  */
779
- exit: c.bool,
777
+ exit: u.bool,
780
778
  /**
781
779
  * The duration of the transition, in milliseconds.
782
780
  * Required unless `addEndListener` is provided.
@@ -804,7 +802,7 @@ N.propTypes = {
804
802
  * @type {number | { enter?: number, exit?: number, appear?: number }}
805
803
  */
806
804
  timeout: (n, ...e) => {
807
- let t = ot;
805
+ let t = tt;
808
806
  return n.addEndListener || (t = t.isRequired), t(n, ...e);
809
807
  },
810
808
  /**
@@ -821,7 +819,7 @@ N.propTypes = {
821
819
  * }}
822
820
  * ```
823
821
  */
824
- addEndListener: c.func,
822
+ addEndListener: u.func,
825
823
  /**
826
824
  * Callback fired before the "entering" status is applied. An extra parameter
827
825
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -830,7 +828,7 @@ N.propTypes = {
830
828
  *
831
829
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
832
830
  */
833
- onEnter: c.func,
831
+ onEnter: u.func,
834
832
  /**
835
833
  * Callback fired after the "entering" status is applied. An extra parameter
836
834
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -839,7 +837,7 @@ N.propTypes = {
839
837
  *
840
838
  * @type Function(node: HtmlElement, isAppearing: bool)
841
839
  */
842
- onEntering: c.func,
840
+ onEntering: u.func,
843
841
  /**
844
842
  * Callback fired after the "entered" status is applied. An extra parameter
845
843
  * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
@@ -848,7 +846,7 @@ N.propTypes = {
848
846
  *
849
847
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
850
848
  */
851
- onEntered: c.func,
849
+ onEntered: u.func,
852
850
  /**
853
851
  * Callback fired before the "exiting" status is applied.
854
852
  *
@@ -856,7 +854,7 @@ N.propTypes = {
856
854
  *
857
855
  * @type Function(node: HtmlElement) -> void
858
856
  */
859
- onExit: c.func,
857
+ onExit: u.func,
860
858
  /**
861
859
  * Callback fired after the "exiting" status is applied.
862
860
  *
@@ -864,7 +862,7 @@ N.propTypes = {
864
862
  *
865
863
  * @type Function(node: HtmlElement) -> void
866
864
  */
867
- onExiting: c.func,
865
+ onExiting: u.func,
868
866
  /**
869
867
  * Callback fired after the "exited" status is applied.
870
868
  *
@@ -872,11 +870,11 @@ N.propTypes = {
872
870
  *
873
871
  * @type Function(node: HtmlElement) -> void
874
872
  */
875
- onExited: c.func
873
+ onExited: u.func
876
874
  };
877
875
  function V() {
878
876
  }
879
- N.defaultProps = {
877
+ A.defaultProps = {
880
878
  in: !1,
881
879
  mountOnEnter: !1,
882
880
  unmountOnExit: !1,
@@ -890,14 +888,14 @@ N.defaultProps = {
890
888
  onExiting: V,
891
889
  onExited: V
892
890
  };
893
- N.UNMOUNTED = F;
894
- N.EXITED = M;
895
- N.ENTERING = k;
896
- N.ENTERED = D;
897
- N.EXITING = z;
898
- var ut = Object.defineProperty, ct = (n, e, t) => e in n ? ut(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, $ = (n, e, t) => ct(n, typeof e != "symbol" ? e + "" : e, t);
899
- const lt = (n, e) => n && e && e.split(" ").forEach((t) => Je(n, t)), ue = (n, e) => n && e && e.split(" ").forEach((t) => nt(n, t));
900
- let pe = class extends O.Component {
891
+ A.UNMOUNTED = F;
892
+ A.EXITED = L;
893
+ A.ENTERING = k;
894
+ A.ENTERED = D;
895
+ A.EXITING = J;
896
+ var rt = Object.defineProperty, it = (n, e, t) => e in n ? rt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, $ = (n, e, t) => it(n, typeof e != "symbol" ? e + "" : e, t);
897
+ const st = (n, e) => n && e && e.split(" ").forEach((t) => Ye(n, t)), ue = (n, e) => n && e && e.split(" ").forEach((t) => Ke(n, t));
898
+ let Re = class extends x.Component {
901
899
  constructor() {
902
900
  super(...arguments), $(this, "appliedClasses", {
903
901
  appear: {},
@@ -923,10 +921,10 @@ let pe = class extends O.Component {
923
921
  this.removeClasses(t, "exit"), this.addClass(t, "exit", "done"), this.props.onExited && this.props.onExited(e);
924
922
  }), $(this, "resolveArguments", (e, t) => this.props.nodeRef ? [this.props.nodeRef.current, e] : [e, t]), $(this, "getClassNames", (e) => {
925
923
  const { classNames: t } = this.props, r = typeof t == "string", s = r && t ? `${t}-` : "";
926
- let i = r ? `${s}${e}` : t[e], u = r ? `${i}-active` : t[`${e}Active`], l = r ? `${i}-done` : t[`${e}Done`];
924
+ let i = r ? `${s}${e}` : t[e], c = r ? `${i}-active` : t[`${e}Active`], l = r ? `${i}-done` : t[`${e}Done`];
927
925
  return {
928
926
  baseClassName: i,
929
- activeClassName: u,
927
+ activeClassName: c,
930
928
  doneClassName: l
931
929
  };
932
930
  });
@@ -934,7 +932,7 @@ let pe = class extends O.Component {
934
932
  addClass(e, t, r) {
935
933
  let s = this.getClassNames(t)[`${r}ClassName`];
936
934
  const { doneClassName: i } = this.getClassNames("enter");
937
- t === "appear" && r === "done" && i && (s += ` ${i}`), r === "active" && e && Pe(e), s && (this.appliedClasses[t][r] = s, lt(e, s));
935
+ t === "appear" && r === "done" && i && (s += ` ${i}`), r === "active" && e && Se(e), s && (this.appliedClasses[t][r] = s, st(e, s));
938
936
  }
939
937
  removeClasses(e, t) {
940
938
  const {
@@ -946,8 +944,8 @@ let pe = class extends O.Component {
946
944
  }
947
945
  render() {
948
946
  const { classNames: e, ...t } = this.props;
949
- return /* @__PURE__ */ _(
950
- N,
947
+ return /* @__PURE__ */ W(
948
+ A,
951
949
  {
952
950
  ...t,
953
951
  onEnter: this.onEnter,
@@ -960,11 +958,11 @@ let pe = class extends O.Component {
960
958
  );
961
959
  }
962
960
  };
963
- $(pe, "defaultProps", {
961
+ $(Re, "defaultProps", {
964
962
  classNames: ""
965
963
  });
966
- pe.propTypes = {
967
- ...N.propTypes,
964
+ Re.propTypes = {
965
+ ...A.propTypes,
968
966
  /**
969
967
  * The animation classNames applied to the component as it appears, enters,
970
968
  * exits or has finished the transition. A single name can be provided, which
@@ -1033,7 +1031,7 @@ pe.propTypes = {
1033
1031
  * exitDone?: string,
1034
1032
  * }}
1035
1033
  */
1036
- classNames: at,
1034
+ classNames: nt,
1037
1035
  /**
1038
1036
  * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
1039
1037
  * applied.
@@ -1042,7 +1040,7 @@ pe.propTypes = {
1042
1040
  *
1043
1041
  * @type Function(node: HtmlElement, isAppearing: bool)
1044
1042
  */
1045
- onEnter: c.func,
1043
+ onEnter: u.func,
1046
1044
  /**
1047
1045
  * A `<Transition>` callback fired immediately after the 'enter-active' or
1048
1046
  * 'appear-active' class is applied.
@@ -1051,7 +1049,7 @@ pe.propTypes = {
1051
1049
  *
1052
1050
  * @type Function(node: HtmlElement, isAppearing: bool)
1053
1051
  */
1054
- onEntering: c.func,
1052
+ onEntering: u.func,
1055
1053
  /**
1056
1054
  * A `<Transition>` callback fired immediately after the 'enter' or
1057
1055
  * 'appear' classes are **removed** and the `done` class is added to the DOM node.
@@ -1060,7 +1058,7 @@ pe.propTypes = {
1060
1058
  *
1061
1059
  * @type Function(node: HtmlElement, isAppearing: bool)
1062
1060
  */
1063
- onEntered: c.func,
1061
+ onEntered: u.func,
1064
1062
  /**
1065
1063
  * A `<Transition>` callback fired immediately after the 'exit' class is
1066
1064
  * applied.
@@ -1069,7 +1067,7 @@ pe.propTypes = {
1069
1067
  *
1070
1068
  * @type Function(node: HtmlElement)
1071
1069
  */
1072
- onExit: c.func,
1070
+ onExit: u.func,
1073
1071
  /**
1074
1072
  * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
1075
1073
  *
@@ -1077,7 +1075,7 @@ pe.propTypes = {
1077
1075
  *
1078
1076
  * @type Function(node: HtmlElement)
1079
1077
  */
1080
- onExiting: c.func,
1078
+ onExiting: u.func,
1081
1079
  /**
1082
1080
  * A `<Transition>` callback fired immediately after the 'exit' classes
1083
1081
  * are **removed** and the `exit-done` class is added to the DOM node.
@@ -1086,15 +1084,15 @@ pe.propTypes = {
1086
1084
  *
1087
1085
  * @type Function(node: HtmlElement)
1088
1086
  */
1089
- onExited: c.func
1087
+ onExited: u.func
1090
1088
  };
1091
- function fe(n, e) {
1092
- let t = (s) => e && G(s) ? e(s) : s, r = /* @__PURE__ */ Object.create(null);
1093
- return n && Ve.map(n, (s) => s).forEach((s) => {
1089
+ function pe(n, e) {
1090
+ let t = (s) => e && Z(s) ? e(s) : s, r = /* @__PURE__ */ Object.create(null);
1091
+ return n && Ue.map(n, (s) => s).forEach((s) => {
1094
1092
  r[s.key] = t(s);
1095
1093
  }), r;
1096
1094
  }
1097
- function pt(n, e) {
1095
+ function ot(n, e) {
1098
1096
  n = n || {}, e = e || {};
1099
1097
  function t(l) {
1100
1098
  return l in e ? e[l] : n[l];
@@ -1102,55 +1100,55 @@ function pt(n, e) {
1102
1100
  let r = /* @__PURE__ */ Object.create(null), s = [];
1103
1101
  for (let l in n)
1104
1102
  l in e ? s.length && (r[l] = s, s = []) : s.push(l);
1105
- let i, u = {};
1103
+ let i, c = {};
1106
1104
  for (let l in e) {
1107
1105
  if (r[l])
1108
1106
  for (i = 0; i < r[l].length; i++) {
1109
- let b = r[l][i];
1110
- u[r[l][i]] = t(b);
1107
+ let O = r[l][i];
1108
+ c[r[l][i]] = t(O);
1111
1109
  }
1112
- u[l] = t(l);
1110
+ c[l] = t(l);
1113
1111
  }
1114
1112
  for (i = 0; i < s.length; i++)
1115
- u[s[i]] = t(s[i]);
1116
- return u;
1113
+ c[s[i]] = t(s[i]);
1114
+ return c;
1117
1115
  }
1118
- function W(n, e, t) {
1116
+ function M(n, e, t) {
1119
1117
  return t[e] != null ? t[e] : n.props[e];
1120
1118
  }
1121
- function ft(n, e) {
1122
- return fe(n.children, (t) => J(t, {
1119
+ function at(n, e) {
1120
+ return pe(n.children, (t) => ee(t, {
1123
1121
  onExited: e.bind(null, t),
1124
1122
  in: !0,
1125
- appear: W(t, "appear", n),
1126
- enter: W(t, "enter", n),
1127
- exit: W(t, "exit", n)
1123
+ appear: M(t, "appear", n),
1124
+ enter: M(t, "enter", n),
1125
+ exit: M(t, "exit", n)
1128
1126
  }));
1129
1127
  }
1130
- function dt(n, e, t) {
1131
- let r = fe(n.children), s = pt(e, r);
1128
+ function ut(n, e, t) {
1129
+ let r = pe(n.children), s = ot(e, r);
1132
1130
  return Object.keys(s).forEach((i) => {
1133
- let u = s[i];
1134
- if (!G(u)) return;
1135
- const l = i in e, b = i in r, T = e[i], x = G(T) && !T.props.in;
1136
- b && (!l || x) ? s[i] = J(u, {
1137
- onExited: t.bind(null, u),
1131
+ let c = s[i];
1132
+ if (!Z(c)) return;
1133
+ const l = i in e, O = i in r, T = e[i], b = Z(T) && !T.props.in;
1134
+ O && (!l || b) ? s[i] = ee(c, {
1135
+ onExited: t.bind(null, c),
1138
1136
  in: !0,
1139
- exit: W(u, "exit", n),
1140
- enter: W(u, "enter", n)
1141
- }) : !b && l && !x ? s[i] = J(u, { in: !1 }) : b && l && G(T) && (s[i] = J(u, {
1142
- onExited: t.bind(null, u),
1137
+ exit: M(c, "exit", n),
1138
+ enter: M(c, "enter", n)
1139
+ }) : !O && l && !b ? s[i] = ee(c, { in: !1 }) : O && l && Z(T) && (s[i] = ee(c, {
1140
+ onExited: t.bind(null, c),
1143
1141
  in: T.props.in,
1144
- exit: W(u, "exit", n),
1145
- enter: W(u, "enter", n)
1142
+ exit: M(c, "exit", n),
1143
+ enter: M(c, "enter", n)
1146
1144
  }));
1147
1145
  }), s;
1148
1146
  }
1149
- const ht = Object.values || ((n) => Object.keys(n).map((e) => n[e])), Et = {
1147
+ const ct = Object.values || ((n) => Object.keys(n).map((e) => n[e])), lt = {
1150
1148
  component: "div",
1151
1149
  childFactory: (n) => n
1152
1150
  };
1153
- class de extends O.Component {
1151
+ class de extends x.Component {
1154
1152
  constructor(e, t) {
1155
1153
  super(e, t);
1156
1154
  const r = this.handleExited.bind(this);
@@ -1170,21 +1168,21 @@ class de extends O.Component {
1170
1168
  }
1171
1169
  static getDerivedStateFromProps(e, { children: t, handleExited: r, firstRender: s }) {
1172
1170
  return {
1173
- children: s ? ft(e, r) : dt(e, t, r),
1171
+ children: s ? at(e, r) : ut(e, t, r),
1174
1172
  firstRender: !1
1175
1173
  };
1176
1174
  }
1177
1175
  // node is `undefined` when user provided `nodeRef` prop
1178
1176
  handleExited(e, t) {
1179
- let r = fe(this.props.children);
1177
+ let r = pe(this.props.children);
1180
1178
  e.key in r || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((s) => {
1181
1179
  let i = { ...s.children };
1182
1180
  return delete i[e.key], { children: i };
1183
1181
  }));
1184
1182
  }
1185
1183
  render() {
1186
- const { component: e, childFactory: t, ...r } = this.props, { contextValue: s } = this.state, i = ht(this.state.children).map(t);
1187
- return delete r.appear, delete r.enter, delete r.exit, e === null ? /* @__PURE__ */ _(X.Provider, { value: s, children: i }) : /* @__PURE__ */ _(X.Provider, { value: s, children: /* @__PURE__ */ _(e, { ...r, children: i }) });
1184
+ const { component: e, childFactory: t, ...r } = this.props, { contextValue: s } = this.state, i = ct(this.state.children).map(t);
1185
+ return delete r.appear, delete r.enter, delete r.exit, e === null ? /* @__PURE__ */ W(G.Provider, { value: s, children: i }) : /* @__PURE__ */ W(G.Provider, { value: s, children: /* @__PURE__ */ W(e, { ...r, children: i }) });
1188
1186
  }
1189
1187
  }
1190
1188
  de.propTypes = {
@@ -1195,7 +1193,7 @@ de.propTypes = {
1195
1193
  * you can pass in `component={null}`. This is useful if the wrapping div
1196
1194
  * borks your css styles.
1197
1195
  */
1198
- component: c.any,
1196
+ component: u.any,
1199
1197
  /**
1200
1198
  * A set of `<Transition>` components, that are toggled `in` and out as they
1201
1199
  * leave. the `<TransitionGroup>` will inject specific transition props, so
@@ -1209,25 +1207,25 @@ de.propTypes = {
1209
1207
  * the transition child as you change its content, this will cause
1210
1208
  * `TransitionGroup` to transition the child out and back in.
1211
1209
  */
1212
- children: c.node,
1210
+ children: u.node,
1213
1211
  /**
1214
1212
  * A convenience prop that enables or disables appear animations
1215
1213
  * for all children. Note that specifying this will override any defaults set
1216
1214
  * on individual children Transitions.
1217
1215
  */
1218
- appear: c.bool,
1216
+ appear: u.bool,
1219
1217
  /**
1220
1218
  * A convenience prop that enables or disables enter animations
1221
1219
  * for all children. Note that specifying this will override any defaults set
1222
1220
  * on individual children Transitions.
1223
1221
  */
1224
- enter: c.bool,
1222
+ enter: u.bool,
1225
1223
  /**
1226
1224
  * A convenience prop that enables or disables exit animations
1227
1225
  * for all children. Note that specifying this will override any defaults set
1228
1226
  * on individual children Transitions.
1229
1227
  */
1230
- exit: c.bool,
1228
+ exit: u.bool,
1231
1229
  /**
1232
1230
  * You may need to apply reactive updates to a child as it is exiting.
1233
1231
  * This is generally done by using `cloneElement` however in the case of an exiting
@@ -1238,29 +1236,29 @@ de.propTypes = {
1238
1236
  *
1239
1237
  * @type Function(child: ReactElement) -> ReactElement
1240
1238
  */
1241
- childFactory: c.func
1239
+ childFactory: u.func
1242
1240
  };
1243
- de.defaultProps = Et;
1244
- var vt = Object.defineProperty, yt = (n, e, t) => e in n ? vt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Y = (n, e, t) => yt(n, typeof e != "symbol" ? e + "" : e, t);
1245
- class gt extends O.Component {
1241
+ de.defaultProps = lt;
1242
+ var pt = Object.defineProperty, dt = (n, e, t) => e in n ? pt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Y = (n, e, t) => dt(n, typeof e != "symbol" ? e + "" : e, t);
1243
+ class ft extends x.Component {
1246
1244
  constructor() {
1247
1245
  super(...arguments), Y(this, "handleEnter", (...e) => this.handleLifecycle("onEnter", 0, e)), Y(this, "handleEntering", (...e) => this.handleLifecycle("onEntering", 0, e)), Y(this, "handleEntered", (...e) => this.handleLifecycle("onEntered", 0, e)), Y(this, "handleExit", (...e) => this.handleLifecycle("onExit", 1, e)), Y(this, "handleExiting", (...e) => this.handleLifecycle("onExiting", 1, e)), Y(this, "handleExited", (...e) => this.handleLifecycle("onExited", 1, e));
1248
1246
  }
1249
1247
  handleLifecycle(e, t, r) {
1250
- const { children: s } = this.props, i = O.Children.toArray(s)[t];
1248
+ const { children: s } = this.props, i = x.Children.toArray(s)[t];
1251
1249
  if (i.props[e] && i.props[e](...r), this.props[e]) {
1252
- const u = i.props.nodeRef ? void 0 : H.findDOMNode(this);
1253
- this.props[e](u);
1250
+ const c = i.props.nodeRef ? void 0 : H.findDOMNode(this);
1251
+ this.props[e](c);
1254
1252
  }
1255
1253
  }
1256
1254
  render() {
1257
- const { children: e, in: t, ...r } = this.props, [s, i] = O.Children.toArray(e);
1258
- return delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, /* @__PURE__ */ _(de, { ...r, children: t ? O.cloneElement(s, {
1255
+ const { children: e, in: t, ...r } = this.props, [s, i] = x.Children.toArray(e);
1256
+ return delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, /* @__PURE__ */ W(de, { ...r, children: t ? x.cloneElement(s, {
1259
1257
  key: "first",
1260
1258
  onEnter: this.handleEnter,
1261
1259
  onEntering: this.handleEntering,
1262
1260
  onEntered: this.handleEntered
1263
- }) : O.cloneElement(i, {
1261
+ }) : x.cloneElement(i, {
1264
1262
  key: "second",
1265
1263
  onEnter: this.handleExit,
1266
1264
  onEntering: this.handleExiting,
@@ -1268,59 +1266,59 @@ class gt extends O.Component {
1268
1266
  }) });
1269
1267
  }
1270
1268
  }
1271
- gt.propTypes = {
1272
- in: c.bool.isRequired,
1269
+ ft.propTypes = {
1270
+ in: u.bool.isRequired,
1273
1271
  children(n, e) {
1274
- return O.Children.count(n[e]) !== 2 ? new Error(
1272
+ return x.Children.count(n[e]) !== 2 ? new Error(
1275
1273
  `"${e}" must be exactly two transition components.`
1276
1274
  ) : null;
1277
1275
  }
1278
1276
  };
1279
- var mt = Object.defineProperty, bt = (n, e, t) => e in n ? mt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ce = (n, e, t) => bt(n, typeof e != "symbol" ? e + "" : e, t);
1280
- function xt(n, e) {
1281
- return !(n === e || O.isValidElement(n) && O.isValidElement(e) && n.key != null && n.key === e.key);
1277
+ var ht = Object.defineProperty, Et = (n, e, t) => e in n ? ht(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ce = (n, e, t) => Et(n, typeof e != "symbol" ? e + "" : e, t);
1278
+ function vt(n, e) {
1279
+ return !(n === e || x.isValidElement(n) && x.isValidElement(e) && n.key != null && n.key === e.key);
1282
1280
  }
1283
- const L = {
1281
+ const _ = {
1284
1282
  out: "out-in",
1285
1283
  in: "in-out"
1286
1284
  }, te = (n, e, t) => (...r) => {
1287
1285
  n.props[e] && n.props[e](...r), t();
1288
- }, Ot = {
1289
- [L.out]: ({ current: n, changeState: e }) => O.cloneElement(n, {
1286
+ }, yt = {
1287
+ [_.out]: ({ current: n, changeState: e }) => x.cloneElement(n, {
1290
1288
  in: !1,
1291
1289
  onExited: te(n, "onExited", () => {
1292
1290
  e(k, null);
1293
1291
  })
1294
1292
  }),
1295
- [L.in]: ({ current: n, changeState: e, children: t }) => [
1293
+ [_.in]: ({ current: n, changeState: e, children: t }) => [
1296
1294
  n,
1297
- O.cloneElement(t, {
1295
+ x.cloneElement(t, {
1298
1296
  in: !0,
1299
1297
  onEntered: te(t, "onEntered", () => {
1300
1298
  e(k);
1301
1299
  })
1302
1300
  })
1303
1301
  ]
1304
- }, Tt = {
1305
- [L.out]: ({ children: n, changeState: e }) => O.cloneElement(n, {
1302
+ }, gt = {
1303
+ [_.out]: ({ children: n, changeState: e }) => x.cloneElement(n, {
1306
1304
  in: !0,
1307
1305
  onEntered: te(n, "onEntered", () => {
1308
- e(D, O.cloneElement(n, { in: !0 }));
1306
+ e(D, x.cloneElement(n, { in: !0 }));
1309
1307
  })
1310
1308
  }),
1311
- [L.in]: ({ current: n, children: e, changeState: t }) => [
1312
- O.cloneElement(n, {
1309
+ [_.in]: ({ current: n, children: e, changeState: t }) => [
1310
+ x.cloneElement(n, {
1313
1311
  in: !1,
1314
1312
  onExited: te(n, "onExited", () => {
1315
- t(D, O.cloneElement(e, { in: !0 }));
1313
+ t(D, x.cloneElement(e, { in: !0 }));
1316
1314
  })
1317
1315
  }),
1318
- O.cloneElement(e, {
1316
+ x.cloneElement(e, {
1319
1317
  in: !0
1320
1318
  })
1321
1319
  ]
1322
1320
  };
1323
- class we extends O.Component {
1321
+ class we extends x.Component {
1324
1322
  constructor() {
1325
1323
  super(...arguments), ce(this, "state", {
1326
1324
  status: D,
@@ -1338,12 +1336,12 @@ class we extends O.Component {
1338
1336
  static getDerivedStateFromProps(e, t) {
1339
1337
  return e.children == null ? {
1340
1338
  current: null
1341
- } : t.status === k && e.mode === L.in ? {
1339
+ } : t.status === k && e.mode === _.in ? {
1342
1340
  status: k
1343
- } : t.current && xt(t.current, e.children) ? {
1344
- status: z
1341
+ } : t.current && vt(t.current, e.children) ? {
1342
+ status: J
1345
1343
  } : {
1346
- current: O.cloneElement(e.children, {
1344
+ current: x.cloneElement(e.children, {
1347
1345
  in: !0
1348
1346
  })
1349
1347
  };
@@ -1353,18 +1351,18 @@ class we extends O.Component {
1353
1351
  props: { children: e, mode: t },
1354
1352
  state: { status: r, current: s }
1355
1353
  } = this, i = { children: e, current: s, changeState: this.changeState, status: r };
1356
- let u;
1354
+ let c;
1357
1355
  switch (r) {
1358
1356
  case k:
1359
- u = Tt[t](i);
1357
+ c = gt[t](i);
1360
1358
  break;
1361
- case z:
1362
- u = Ot[t](i);
1359
+ case J:
1360
+ c = yt[t](i);
1363
1361
  break;
1364
1362
  case D:
1365
- u = s;
1363
+ c = s;
1366
1364
  }
1367
- return /* @__PURE__ */ _(X.Provider, { value: { isMounting: !this.appeared }, children: u });
1365
+ return /* @__PURE__ */ W(G.Provider, { value: { isMounting: !this.appeared }, children: c });
1368
1366
  }
1369
1367
  }
1370
1368
  we.propTypes = {
@@ -1375,39 +1373,19 @@ we.propTypes = {
1375
1373
  *
1376
1374
  * @type {'out-in'|'in-out'}
1377
1375
  */
1378
- mode: c.oneOf([L.in, L.out]),
1376
+ mode: u.oneOf([_.in, _.out]),
1379
1377
  /**
1380
1378
  * Any `Transition` or `CSSTransition` component.
1381
1379
  */
1382
- children: c.oneOfType([c.element.isRequired])
1380
+ children: u.oneOfType([u.element.isRequired])
1383
1381
  };
1384
1382
  we.defaultProps = {
1385
- mode: L.out
1383
+ mode: _.out
1386
1384
  };
1387
- function Dt(n) {
1388
- const { children: e, ...t } = n, r = Ee(), s = Ee(), i = Ye(() => n.nodeRef === void 0 && Be(e) && G(e) ? (s.current = !0, J(e, {
1389
- ref: (u) => {
1390
- r.current = He(u), Fe(e, u);
1391
- }
1392
- })) : (s.current = !1, e), [e, n.nodeRef]);
1393
- return s.current && [
1394
- "onEnter",
1395
- "onEntering",
1396
- "onEntered",
1397
- "onExit",
1398
- "onExiting",
1399
- "onExited"
1400
- ].forEach((u) => {
1401
- n[u] && (t[u] = (l, ...b) => {
1402
- n[u](r.current, ...b);
1403
- });
1404
- }), /* @__PURE__ */ _(pe, { ...t, nodeRef: s.current ? r : void 0, children: i });
1405
- }
1406
1385
  export {
1407
- Dt as P,
1408
1386
  de as b,
1409
- pe as c,
1387
+ Re as c,
1410
1388
  we as h,
1411
- gt as m,
1412
- N as u
1389
+ ft as m,
1390
+ A as u
1413
1391
  };