@para-ui/core 4.0.22 → 4.0.25

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 (115) hide show
  1. package/AutoTips/index.js +24 -13
  2. package/Button/index.js +1 -1
  3. package/ButtonGroup/index.js +1 -1
  4. package/Cascader/index.js +7 -6
  5. package/ComboSelect/index.js +2 -2
  6. package/CopyText/index.js +1 -1
  7. package/CycleSelector/index.d.ts +14 -2
  8. package/CycleSelector/index.js +43 -4
  9. package/DatePicker/index.js +1 -1
  10. package/Descriptions/index.js +1 -1
  11. package/Desktop/index.js +1 -1
  12. package/Drawer/index.js +1 -1
  13. package/Dropdown/index.js +1 -1
  14. package/DynamicMultiBox/index.js +2 -2
  15. package/Empty/index.js +0 -6
  16. package/Form/index.js +11 -8
  17. package/FormItem/index.js +3 -3
  18. package/FunctionModal/index.js +3 -3
  19. package/Image/PreviewGroup.d.ts +20 -0
  20. package/Image/index.d.ts +10 -0
  21. package/Image/index.js +1485 -0
  22. package/InputLang/index.js +1 -1
  23. package/Modal/index.js +1 -1
  24. package/MultiBox/index.js +1 -1
  25. package/OperateBtn/index.js +1 -1
  26. package/PageHeader/index.js +1 -1
  27. package/Pagination/index.js +3 -3
  28. package/PopConfirm/index.js +1 -1
  29. package/Popover/index.js +1 -1
  30. package/Querying/index.js +0 -12
  31. package/QuickReply/index.js +1 -1
  32. package/README.md +20 -0
  33. package/Search/index.js +1 -1
  34. package/Select/index.d.ts +2 -0
  35. package/Select/index.js +27 -10
  36. package/SelectInput/index.js +1 -1
  37. package/Selector/index.js +1 -1
  38. package/SelectorPicker/index.js +1 -1
  39. package/SingleBox/index.js +1 -1
  40. package/Slider/index.js +29 -14
  41. package/Slider/interface.d.ts +4 -0
  42. package/Table/index.js +9 -3
  43. package/Tabs/index.js +1 -1
  44. package/TextField/index.js +5 -4
  45. package/TimePicker/index.js +1 -1
  46. package/ToggleButton/index.js +1 -1
  47. package/Transfer/index.js +50 -44
  48. package/Tree/index.js +2 -2
  49. package/Upload/ImgCrop/EasyCrop.d.ts +2 -2
  50. package/Upload/ImgCrop/constants.d.ts +12 -0
  51. package/Upload/ImgCrop/interface.d.ts +10 -0
  52. package/Upload/index.js +506 -128
  53. package/Upload/interface.d.ts +43 -0
  54. package/Upload/util.d.ts +7 -0
  55. package/_verture/Portal-5bd49559.js +1698 -0
  56. package/_verture/{index-066d47d4.js → index-5f205d87.js} +38 -1727
  57. package/_verture/{index-b892f976.js → index-93662604.js} +2 -2
  58. package/_verture/{index-389675ab.js → index-bde7aabe.js} +1 -1
  59. package/index.d.ts +2 -0
  60. package/index.js +18 -12
  61. package/locale/index.js +2 -2
  62. package/package.json +3 -2
  63. package/umd/AutoBox.js +1 -1
  64. package/umd/AutoTips.js +1 -1
  65. package/umd/Breadcrumbs.js +2 -2
  66. package/umd/Button.js +2 -2
  67. package/umd/ButtonGroup.js +2 -2
  68. package/umd/Cascader.js +1 -1
  69. package/umd/ComboSelect.js +3 -3
  70. package/umd/CopyText.js +2 -2
  71. package/umd/CycleSelector.js +3 -3
  72. package/umd/DatePicker.js +2 -2
  73. package/umd/Descriptions.js +2 -2
  74. package/umd/Desktop.js +2 -2
  75. package/umd/Drawer.js +2 -2
  76. package/umd/Dropdown.js +1 -1
  77. package/umd/DynamicMultiBox.js +3 -3
  78. package/umd/Empty.js +1 -1
  79. package/umd/Form.js +4 -4
  80. package/umd/FormItem.js +3 -3
  81. package/umd/FunctionModal.js +6 -6
  82. package/umd/Image.js +42 -0
  83. package/umd/InputLang.js +2 -2
  84. package/umd/Menu.js +1 -1
  85. package/umd/Modal.js +5 -5
  86. package/umd/MultiBox.js +2 -2
  87. package/umd/OperateBtn.js +4 -4
  88. package/umd/PageHeader.js +2 -2
  89. package/umd/Pagination.js +2 -2
  90. package/umd/PopConfirm.js +4 -4
  91. package/umd/PopMenu.js +2 -2
  92. package/umd/Popover.js +1 -1
  93. package/umd/Querying.js +1 -1
  94. package/umd/QuickReply.js +4 -4
  95. package/umd/Search.js +2 -2
  96. package/umd/Select.js +3 -3
  97. package/umd/SelectInput.js +2 -2
  98. package/umd/Selector.js +2 -2
  99. package/umd/SelectorPicker.js +5 -5
  100. package/umd/SingleBox.js +2 -2
  101. package/umd/Slider.js +2 -2
  102. package/umd/Stepper.js +1 -1
  103. package/umd/Table.js +6 -6
  104. package/umd/Tabs.js +4 -4
  105. package/umd/Tag.js +1 -1
  106. package/umd/TextField.js +3 -3
  107. package/umd/TimePicker.js +2 -2
  108. package/umd/Title.js +1 -1
  109. package/umd/ToggleButton.js +2 -2
  110. package/umd/Transfer.js +2 -2
  111. package/umd/Tree.js +1 -1
  112. package/umd/Upload.js +6 -6
  113. package/umd/locale.js +1 -1
  114. /package/_verture/{index-4b965dd7.js → index-0eca82dc.js} +0 -0
  115. /package/_verture/{modalContext-c8cc3107.js → modalContext-c57b51b7.js} +0 -0
@@ -1,15 +1,16 @@
1
1
  import { _ as __rest } from './tslib.es6-55ed4bd2.js';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
+ import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-5bd49559.js';
3
4
  import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-8f4c9589.js';
4
- import { _ as _defineProperty, t as toPropertyKey } from './defineProperty-6f62bb2a.js';
5
+ import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6f62bb2a.js';
5
6
  import { _ as _slicedToArray, a as _arrayWithHoles, b as _nonIterableRest } from './slicedToArray-a8206399.js';
6
7
  import { _ as _typeof$1 } from './typeof-adeedc13.js';
7
8
  import * as React$4 from 'react';
8
- import React__default, { useState as useState$1, useMemo as useMemo$1, useCallback, useRef, useEffect } from 'react';
9
- import ReactDOM, { unstable_batchedUpdates, createPortal, flushSync } from 'react-dom';
9
+ import React__default, { useState as useState$1, useMemo, useCallback, useRef, useEffect } from 'react';
10
+ import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
10
11
  import CSSMotion from 'rc-motion';
11
12
  import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cb478f24.js';
12
- import clsx from 'clsx';
13
+ import clsx$1 from 'clsx';
13
14
  import { _ as _typeof$2 } from './typeof-6ec38efd.js';
14
15
  import { conductCheck } from 'rc-tree/lib/utils/conductUtil';
15
16
  import Right from '@para-ui/icons/Right';
@@ -25,1219 +26,13 @@ import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
25
26
  import { UUID } from '@paraview/lib';
26
27
  import { s as styleInject } from './style-inject.es-300983ab.js';
27
28
 
28
- function _extends() {
29
- _extends = Object.assign ? Object.assign.bind() : function (target) {
30
- for (var i = 1; i < arguments.length; i++) {
31
- var source = arguments[i];
32
- for (var key in source) {
33
- if (Object.prototype.hasOwnProperty.call(source, key)) {
34
- target[key] = source[key];
35
- }
36
- }
37
- }
38
- return target;
39
- };
40
- return _extends.apply(this, arguments);
41
- }
42
-
43
- function ownKeys(e, r) {
44
- var t = Object.keys(e);
45
- if (Object.getOwnPropertySymbols) {
46
- var o = Object.getOwnPropertySymbols(e);
47
- r && (o = o.filter(function (r) {
48
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
49
- })), t.push.apply(t, o);
50
- }
51
- return t;
52
- }
53
- function _objectSpread2(e) {
54
- for (var r = 1; r < arguments.length; r++) {
55
- var t = null != arguments[r] ? arguments[r] : {};
56
- r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
57
- _defineProperty(e, r, t[r]);
58
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
59
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
60
- });
61
- }
62
- return e;
63
- }
64
-
65
- function _objectWithoutPropertiesLoose(source, excluded) {
66
- if (source == null) return {};
67
- var target = {};
68
- for (var key in source) {
69
- if (Object.prototype.hasOwnProperty.call(source, key)) {
70
- if (excluded.indexOf(key) >= 0) continue;
71
- target[key] = source[key];
72
- }
73
- }
74
- return target;
75
- }
76
-
77
- function _objectWithoutProperties(source, excluded) {
78
- if (source == null) return {};
79
- var target = _objectWithoutPropertiesLoose(source, excluded);
80
- var key, i;
81
- if (Object.getOwnPropertySymbols) {
82
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
83
- for (i = 0; i < sourceSymbolKeys.length; i++) {
84
- key = sourceSymbolKeys[i];
85
- if (excluded.indexOf(key) >= 0) continue;
86
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
87
- target[key] = source[key];
88
- }
89
- }
90
- return target;
91
- }
92
-
93
- function useEvent$2(callback) {
94
- var fnRef = React$4.useRef();
95
- fnRef.current = callback;
96
- var memoFn = React$4.useCallback(function () {
97
- var _fnRef$current;
98
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
99
- args[_key] = arguments[_key];
100
- }
101
- return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
102
- }, []);
103
- return memoFn;
104
- }
105
-
106
- function canUseDom$1() {
107
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
108
- }
109
-
110
- /**
111
- * Wrap `React.useLayoutEffect` which will not throw warning message in test env
112
- */
113
- var useInternalLayoutEffect$1 = process.env.NODE_ENV !== 'test' && canUseDom$1() ? React$4.useLayoutEffect : React$4.useEffect;
114
- var useLayoutEffect$3 = function useLayoutEffect(callback, deps) {
115
- var firstMountRef = React$4.useRef(true);
116
- useInternalLayoutEffect$1(function () {
117
- return callback(firstMountRef.current);
118
- }, deps);
119
-
120
- // We tell react that first mount has passed
121
- useInternalLayoutEffect$1(function () {
122
- firstMountRef.current = false;
123
- return function () {
124
- firstMountRef.current = true;
125
- };
126
- }, []);
127
- };
128
- var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
129
- useLayoutEffect$3(function (firstMount) {
130
- if (!firstMount) {
131
- return callback();
132
- }
133
- }, deps);
134
- };
135
-
136
- /**
137
- * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
138
- * We do not make this auto is to avoid real memory leak.
139
- * Developer should confirm it's safe to ignore themselves.
140
- */
141
- function useSafeState$1(defaultValue) {
142
- var destroyRef = React$4.useRef(false);
143
- var _React$useState = React$4.useState(defaultValue),
144
- _React$useState2 = _slicedToArray(_React$useState, 2),
145
- value = _React$useState2[0],
146
- setValue = _React$useState2[1];
147
- React$4.useEffect(function () {
148
- destroyRef.current = false;
149
- return function () {
150
- destroyRef.current = true;
151
- };
152
- }, []);
153
- function safeSetState(updater, ignoreDestroy) {
154
- if (ignoreDestroy && destroyRef.current) {
155
- return;
156
- }
157
- setValue(updater);
158
- }
159
- return [value, safeSetState];
160
- }
161
-
162
- /** We only think `undefined` is empty */
163
- function hasValue$2(value) {
164
- return value !== undefined;
165
- }
166
-
167
- /**
168
- * Similar to `useState` but will use props value if provided.
169
- * Note that internal use rc-util `useState` hook.
170
- */
171
- function useMergedState$2(defaultStateValue, option) {
172
- var _ref = option || {},
173
- defaultValue = _ref.defaultValue,
174
- value = _ref.value,
175
- onChange = _ref.onChange,
176
- postState = _ref.postState;
177
-
178
- // ======================= Init =======================
179
- var _useState = useSafeState$1(function () {
180
- if (hasValue$2(value)) {
181
- return value;
182
- } else if (hasValue$2(defaultValue)) {
183
- return typeof defaultValue === 'function' ? defaultValue() : defaultValue;
184
- } else {
185
- return typeof defaultStateValue === 'function' ? defaultStateValue() : defaultStateValue;
186
- }
187
- }),
188
- _useState2 = _slicedToArray(_useState, 2),
189
- innerValue = _useState2[0],
190
- setInnerValue = _useState2[1];
191
- var mergedValue = value !== undefined ? value : innerValue;
192
- var postMergedValue = postState ? postState(mergedValue) : mergedValue;
193
-
194
- // ====================== Change ======================
195
- var onChangeFn = useEvent$2(onChange);
196
- var _useState3 = useSafeState$1([mergedValue]),
197
- _useState4 = _slicedToArray(_useState3, 2),
198
- prevValue = _useState4[0],
199
- setPrevValue = _useState4[1];
200
- useLayoutUpdateEffect(function () {
201
- var prev = prevValue[0];
202
- if (innerValue !== prev) {
203
- onChangeFn(innerValue, prev);
204
- }
205
- }, [prevValue]);
206
-
207
- // Sync value back to `undefined` when it from control to un-control
208
- useLayoutUpdateEffect(function () {
209
- if (!hasValue$2(value)) {
210
- setInnerValue(value);
211
- }
212
- }, [value]);
213
-
214
- // ====================== Update ======================
215
- var triggerChange = useEvent$2(function (updater, ignoreDestroy) {
216
- setInnerValue(updater, ignoreDestroy);
217
- setPrevValue([mergedValue], ignoreDestroy);
218
- });
219
- return [postMergedValue, triggerChange];
220
- }
221
-
222
- /* eslint-disable no-console */
223
- var warned = {};
224
- var preWarningFns = [];
225
-
226
- /**
227
- * Pre warning enable you to parse content before console.error.
228
- * Modify to null will prevent warning.
229
- */
230
- var preMessage = function preMessage(fn) {
231
- preWarningFns.push(fn);
232
- };
233
-
234
- /**
235
- * Warning if condition not match.
236
- * @param valid Condition
237
- * @param message Warning message
238
- * @example
239
- * ```js
240
- * warning(false, 'some error'); // print some error
241
- * warning(true, 'some error'); // print nothing
242
- * warning(1 === 2, 'some error'); // print some error
243
- * ```
244
- */
245
- function warning(valid, message) {
246
- if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
247
- var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {
248
- return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'warning');
249
- }, message);
250
- if (finalMessage) {
251
- console.error("Warning: ".concat(finalMessage));
252
- }
253
- }
254
- }
255
-
256
- /** @see Similar to {@link warning} */
257
- function note(valid, message) {
258
- if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
259
- var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {
260
- return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'note');
261
- }, message);
262
- if (finalMessage) {
263
- console.warn("Note: ".concat(finalMessage));
264
- }
265
- }
266
- }
267
- function resetWarned() {
268
- warned = {};
269
- }
270
- function call(method, valid, message) {
271
- if (!valid && !warned[message]) {
272
- method(false, message);
273
- warned[message] = true;
274
- }
275
- }
276
-
277
- /** @see Same as {@link warning}, but only warn once for the same message */
278
- function warningOnce(valid, message) {
279
- call(warning, valid, message);
280
- }
281
-
282
- /** @see Same as {@link warning}, but only warn once for the same message */
283
- function noteOnce(valid, message) {
284
- call(note, valid, message);
285
- }
286
- warningOnce.preMessage = preMessage;
287
- warningOnce.resetWarned = resetWarned;
288
- warningOnce.noteOnce = noteOnce;
289
-
290
- var classnames = {exports: {}};
291
-
292
- /*!
293
- Copyright (c) 2018 Jed Watson.
294
- Licensed under the MIT License (MIT), see
295
- http://jedwatson.github.io/classnames
296
- */
297
-
298
- (function (module) {
299
- /* global define */
300
-
301
- (function () {
302
-
303
- var hasOwn = {}.hasOwnProperty;
304
-
305
- function classNames () {
306
- var classes = '';
307
-
308
- for (var i = 0; i < arguments.length; i++) {
309
- var arg = arguments[i];
310
- if (arg) {
311
- classes = appendClass(classes, parseValue(arg));
312
- }
313
- }
314
-
315
- return classes;
316
- }
317
-
318
- function parseValue (arg) {
319
- if (typeof arg === 'string' || typeof arg === 'number') {
320
- return arg;
321
- }
322
-
323
- if (typeof arg !== 'object') {
324
- return '';
325
- }
326
-
327
- if (Array.isArray(arg)) {
328
- return classNames.apply(null, arg);
329
- }
330
-
331
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
332
- return arg.toString();
333
- }
334
-
335
- var classes = '';
336
-
337
- for (var key in arg) {
338
- if (hasOwn.call(arg, key) && arg[key]) {
339
- classes = appendClass(classes, key);
340
- }
341
- }
342
-
343
- return classes;
344
- }
345
-
346
- function appendClass (value, newClass) {
347
- if (!newClass) {
348
- return value;
349
- }
350
-
351
- if (value) {
352
- return value + ' ' + newClass;
353
- }
354
-
355
- return value + newClass;
356
- }
357
-
358
- if (module.exports) {
359
- classNames.default = classNames;
360
- module.exports = classNames;
361
- } else {
362
- window.classNames = classNames;
363
- }
364
- }());
365
- } (classnames));
366
-
367
- var classNames = classnames.exports;
368
-
369
- var isMobile = (function () {
370
- if (typeof navigator === 'undefined' || typeof window === 'undefined') {
371
- return false;
372
- }
373
- var agent = navigator.userAgent || navigator.vendor || window.opera;
374
- return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
375
- });
376
-
377
- /**
378
- * @ignore
379
- * some key-codes definition and utils from closure-library
380
- * @author yiminghe@gmail.com
381
- */
382
-
383
- var KeyCode = {
384
- /**
385
- * MAC_ENTER
386
- */
387
- MAC_ENTER: 3,
388
- /**
389
- * BACKSPACE
390
- */
391
- BACKSPACE: 8,
392
- /**
393
- * TAB
394
- */
395
- TAB: 9,
396
- /**
397
- * NUMLOCK on FF/Safari Mac
398
- */
399
- NUM_CENTER: 12,
400
- // NUMLOCK on FF/Safari Mac
401
- /**
402
- * ENTER
403
- */
404
- ENTER: 13,
405
- /**
406
- * SHIFT
407
- */
408
- SHIFT: 16,
409
- /**
410
- * CTRL
411
- */
412
- CTRL: 17,
413
- /**
414
- * ALT
415
- */
416
- ALT: 18,
417
- /**
418
- * PAUSE
419
- */
420
- PAUSE: 19,
421
- /**
422
- * CAPS_LOCK
423
- */
424
- CAPS_LOCK: 20,
425
- /**
426
- * ESC
427
- */
428
- ESC: 27,
429
- /**
430
- * SPACE
431
- */
432
- SPACE: 32,
433
- /**
434
- * PAGE_UP
435
- */
436
- PAGE_UP: 33,
437
- // also NUM_NORTH_EAST
438
- /**
439
- * PAGE_DOWN
440
- */
441
- PAGE_DOWN: 34,
442
- // also NUM_SOUTH_EAST
443
- /**
444
- * END
445
- */
446
- END: 35,
447
- // also NUM_SOUTH_WEST
448
- /**
449
- * HOME
450
- */
451
- HOME: 36,
452
- // also NUM_NORTH_WEST
453
- /**
454
- * LEFT
455
- */
456
- LEFT: 37,
457
- // also NUM_WEST
458
- /**
459
- * UP
460
- */
461
- UP: 38,
462
- // also NUM_NORTH
463
- /**
464
- * RIGHT
465
- */
466
- RIGHT: 39,
467
- // also NUM_EAST
468
- /**
469
- * DOWN
470
- */
471
- DOWN: 40,
472
- // also NUM_SOUTH
473
- /**
474
- * PRINT_SCREEN
475
- */
476
- PRINT_SCREEN: 44,
477
- /**
478
- * INSERT
479
- */
480
- INSERT: 45,
481
- // also NUM_INSERT
482
- /**
483
- * DELETE
484
- */
485
- DELETE: 46,
486
- // also NUM_DELETE
487
- /**
488
- * ZERO
489
- */
490
- ZERO: 48,
491
- /**
492
- * ONE
493
- */
494
- ONE: 49,
495
- /**
496
- * TWO
497
- */
498
- TWO: 50,
499
- /**
500
- * THREE
501
- */
502
- THREE: 51,
503
- /**
504
- * FOUR
505
- */
506
- FOUR: 52,
507
- /**
508
- * FIVE
509
- */
510
- FIVE: 53,
511
- /**
512
- * SIX
513
- */
514
- SIX: 54,
515
- /**
516
- * SEVEN
517
- */
518
- SEVEN: 55,
519
- /**
520
- * EIGHT
521
- */
522
- EIGHT: 56,
523
- /**
524
- * NINE
525
- */
526
- NINE: 57,
527
- /**
528
- * QUESTION_MARK
529
- */
530
- QUESTION_MARK: 63,
531
- // needs localization
532
- /**
533
- * A
534
- */
535
- A: 65,
536
- /**
537
- * B
538
- */
539
- B: 66,
540
- /**
541
- * C
542
- */
543
- C: 67,
544
- /**
545
- * D
546
- */
547
- D: 68,
548
- /**
549
- * E
550
- */
551
- E: 69,
552
- /**
553
- * F
554
- */
555
- F: 70,
556
- /**
557
- * G
558
- */
559
- G: 71,
560
- /**
561
- * H
562
- */
563
- H: 72,
564
- /**
565
- * I
566
- */
567
- I: 73,
568
- /**
569
- * J
570
- */
571
- J: 74,
572
- /**
573
- * K
574
- */
575
- K: 75,
576
- /**
577
- * L
578
- */
579
- L: 76,
580
- /**
581
- * M
582
- */
583
- M: 77,
584
- /**
585
- * N
586
- */
587
- N: 78,
588
- /**
589
- * O
590
- */
591
- O: 79,
592
- /**
593
- * P
594
- */
595
- P: 80,
596
- /**
597
- * Q
598
- */
599
- Q: 81,
600
- /**
601
- * R
602
- */
603
- R: 82,
604
- /**
605
- * S
606
- */
607
- S: 83,
608
- /**
609
- * T
610
- */
611
- T: 84,
612
- /**
613
- * U
614
- */
615
- U: 85,
616
- /**
617
- * V
618
- */
619
- V: 86,
620
- /**
621
- * W
622
- */
623
- W: 87,
624
- /**
625
- * X
626
- */
627
- X: 88,
628
- /**
629
- * Y
630
- */
631
- Y: 89,
632
- /**
633
- * Z
634
- */
635
- Z: 90,
636
- /**
637
- * META
638
- */
639
- META: 91,
640
- // WIN_KEY_LEFT
641
- /**
642
- * WIN_KEY_RIGHT
643
- */
644
- WIN_KEY_RIGHT: 92,
645
- /**
646
- * CONTEXT_MENU
647
- */
648
- CONTEXT_MENU: 93,
649
- /**
650
- * NUM_ZERO
651
- */
652
- NUM_ZERO: 96,
653
- /**
654
- * NUM_ONE
655
- */
656
- NUM_ONE: 97,
657
- /**
658
- * NUM_TWO
659
- */
660
- NUM_TWO: 98,
661
- /**
662
- * NUM_THREE
663
- */
664
- NUM_THREE: 99,
665
- /**
666
- * NUM_FOUR
667
- */
668
- NUM_FOUR: 100,
669
- /**
670
- * NUM_FIVE
671
- */
672
- NUM_FIVE: 101,
673
- /**
674
- * NUM_SIX
675
- */
676
- NUM_SIX: 102,
677
- /**
678
- * NUM_SEVEN
679
- */
680
- NUM_SEVEN: 103,
681
- /**
682
- * NUM_EIGHT
683
- */
684
- NUM_EIGHT: 104,
685
- /**
686
- * NUM_NINE
687
- */
688
- NUM_NINE: 105,
689
- /**
690
- * NUM_MULTIPLY
691
- */
692
- NUM_MULTIPLY: 106,
693
- /**
694
- * NUM_PLUS
695
- */
696
- NUM_PLUS: 107,
697
- /**
698
- * NUM_MINUS
699
- */
700
- NUM_MINUS: 109,
701
- /**
702
- * NUM_PERIOD
703
- */
704
- NUM_PERIOD: 110,
705
- /**
706
- * NUM_DIVISION
707
- */
708
- NUM_DIVISION: 111,
709
- /**
710
- * F1
711
- */
712
- F1: 112,
713
- /**
714
- * F2
715
- */
716
- F2: 113,
717
- /**
718
- * F3
719
- */
720
- F3: 114,
721
- /**
722
- * F4
723
- */
724
- F4: 115,
725
- /**
726
- * F5
727
- */
728
- F5: 116,
729
- /**
730
- * F6
731
- */
732
- F6: 117,
733
- /**
734
- * F7
735
- */
736
- F7: 118,
737
- /**
738
- * F8
739
- */
740
- F8: 119,
741
- /**
742
- * F9
743
- */
744
- F9: 120,
745
- /**
746
- * F10
747
- */
748
- F10: 121,
749
- /**
750
- * F11
751
- */
752
- F11: 122,
753
- /**
754
- * F12
755
- */
756
- F12: 123,
757
- /**
758
- * NUMLOCK
759
- */
760
- NUMLOCK: 144,
761
- /**
762
- * SEMICOLON
763
- */
764
- SEMICOLON: 186,
765
- // needs localization
766
- /**
767
- * DASH
768
- */
769
- DASH: 189,
770
- // needs localization
771
- /**
772
- * EQUALS
773
- */
774
- EQUALS: 187,
775
- // needs localization
776
- /**
777
- * COMMA
778
- */
779
- COMMA: 188,
780
- // needs localization
781
- /**
782
- * PERIOD
783
- */
784
- PERIOD: 190,
785
- // needs localization
786
- /**
787
- * SLASH
788
- */
789
- SLASH: 191,
790
- // needs localization
791
- /**
792
- * APOSTROPHE
793
- */
794
- APOSTROPHE: 192,
795
- // needs localization
796
- /**
797
- * SINGLE_QUOTE
798
- */
799
- SINGLE_QUOTE: 222,
800
- // needs localization
801
- /**
802
- * OPEN_SQUARE_BRACKET
803
- */
804
- OPEN_SQUARE_BRACKET: 219,
805
- // needs localization
806
- /**
807
- * BACKSLASH
808
- */
809
- BACKSLASH: 220,
810
- // needs localization
811
- /**
812
- * CLOSE_SQUARE_BRACKET
813
- */
814
- CLOSE_SQUARE_BRACKET: 221,
815
- // needs localization
816
- /**
817
- * WIN_KEY
818
- */
819
- WIN_KEY: 224,
820
- /**
821
- * MAC_FF_META
822
- */
823
- MAC_FF_META: 224,
824
- // Firefox (Gecko) fires this for the meta key instead of 91
825
- /**
826
- * WIN_IME
827
- */
828
- WIN_IME: 229,
829
- // ======================== Function ========================
830
- /**
831
- * whether text and modified key is entered at the same time.
832
- */
833
- isTextModifyingKeyEvent: function isTextModifyingKeyEvent(e) {
834
- var keyCode = e.keyCode;
835
- if (e.altKey && !e.ctrlKey || e.metaKey ||
836
- // Function keys don't generate text
837
- keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
838
- return false;
839
- }
840
-
841
- // The following keys are quite harmless, even in combination with
842
- // CTRL, ALT or SHIFT.
843
- switch (keyCode) {
844
- case KeyCode.ALT:
845
- case KeyCode.CAPS_LOCK:
846
- case KeyCode.CONTEXT_MENU:
847
- case KeyCode.CTRL:
848
- case KeyCode.DOWN:
849
- case KeyCode.END:
850
- case KeyCode.ESC:
851
- case KeyCode.HOME:
852
- case KeyCode.INSERT:
853
- case KeyCode.LEFT:
854
- case KeyCode.MAC_FF_META:
855
- case KeyCode.META:
856
- case KeyCode.NUMLOCK:
857
- case KeyCode.NUM_CENTER:
858
- case KeyCode.PAGE_DOWN:
859
- case KeyCode.PAGE_UP:
860
- case KeyCode.PAUSE:
861
- case KeyCode.PRINT_SCREEN:
862
- case KeyCode.RIGHT:
863
- case KeyCode.SHIFT:
864
- case KeyCode.UP:
865
- case KeyCode.WIN_KEY:
866
- case KeyCode.WIN_KEY_RIGHT:
867
- return false;
868
- default:
869
- return true;
870
- }
871
- },
872
- /**
873
- * whether character is entered.
874
- */
875
- isCharacterKey: function isCharacterKey(keyCode) {
876
- if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
877
- return true;
878
- }
879
- if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
880
- return true;
881
- }
882
- if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
883
- return true;
884
- }
885
-
886
- // Safari sends zero key code for non-latin characters.
887
- if (window.navigator.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
888
- return true;
889
- }
890
- switch (keyCode) {
891
- case KeyCode.SPACE:
892
- case KeyCode.QUESTION_MARK:
893
- case KeyCode.NUM_PLUS:
894
- case KeyCode.NUM_MINUS:
895
- case KeyCode.NUM_PERIOD:
896
- case KeyCode.NUM_DIVISION:
897
- case KeyCode.SEMICOLON:
898
- case KeyCode.DASH:
899
- case KeyCode.EQUALS:
900
- case KeyCode.COMMA:
901
- case KeyCode.PERIOD:
902
- case KeyCode.SLASH:
903
- case KeyCode.APOSTROPHE:
904
- case KeyCode.SINGLE_QUOTE:
905
- case KeyCode.OPEN_SQUARE_BRACKET:
906
- case KeyCode.BACKSLASH:
907
- case KeyCode.CLOSE_SQUARE_BRACKET:
908
- return true;
909
- default:
910
- return false;
911
- }
912
- }
913
- };
914
-
915
- var reactIs = {exports: {}};
916
-
917
- var reactIs_production_min = {};
918
-
919
- /**
920
- * @license React
921
- * react-is.production.min.js
922
- *
923
- * Copyright (c) Facebook, Inc. and its affiliates.
924
- *
925
- * This source code is licensed under the MIT license found in the
926
- * LICENSE file in the root directory of this source tree.
927
- */
928
-
929
- var hasRequiredReactIs_production_min;
930
-
931
- function requireReactIs_production_min () {
932
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
933
- hasRequiredReactIs_production_min = 1;
934
- var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
935
- function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
936
- reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
937
- reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
938
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
939
- return reactIs_production_min;
940
- }
941
-
942
- var reactIs_development = {};
943
-
944
- /**
945
- * @license React
946
- * react-is.development.js
947
- *
948
- * Copyright (c) Facebook, Inc. and its affiliates.
949
- *
950
- * This source code is licensed under the MIT license found in the
951
- * LICENSE file in the root directory of this source tree.
952
- */
953
-
954
- var hasRequiredReactIs_development;
955
-
956
- function requireReactIs_development () {
957
- if (hasRequiredReactIs_development) return reactIs_development;
958
- hasRequiredReactIs_development = 1;
959
-
960
- if (process.env.NODE_ENV !== "production") {
961
- (function() {
962
-
963
- // ATTENTION
964
- // When adding new symbols to this file,
965
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
966
- // The Symbol used to tag the ReactElement-like types.
967
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
968
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
969
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
970
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
971
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
972
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
973
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
974
- var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
975
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
976
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
977
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
978
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
979
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
980
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
981
-
982
- // -----------------------------------------------------------------------------
983
-
984
- var enableScopeAPI = false; // Experimental Create Event Handle API.
985
- var enableCacheElement = false;
986
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
987
-
988
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
989
- // stuff. Intended to enable React core members to more easily debug scheduling
990
- // issues in DEV builds.
991
-
992
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
993
-
994
- var REACT_MODULE_REFERENCE;
995
-
996
- {
997
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
998
- }
999
-
1000
- function isValidElementType(type) {
1001
- if (typeof type === 'string' || typeof type === 'function') {
1002
- return true;
1003
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1004
-
1005
-
1006
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1007
- return true;
1008
- }
1009
-
1010
- if (typeof type === 'object' && type !== null) {
1011
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1012
- // types supported by any Flight configuration anywhere since
1013
- // we don't know which Flight build this will end up being used
1014
- // with.
1015
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1016
- return true;
1017
- }
1018
- }
1019
-
1020
- return false;
1021
- }
1022
-
1023
- function typeOf(object) {
1024
- if (typeof object === 'object' && object !== null) {
1025
- var $$typeof = object.$$typeof;
1026
-
1027
- switch ($$typeof) {
1028
- case REACT_ELEMENT_TYPE:
1029
- var type = object.type;
1030
-
1031
- switch (type) {
1032
- case REACT_FRAGMENT_TYPE:
1033
- case REACT_PROFILER_TYPE:
1034
- case REACT_STRICT_MODE_TYPE:
1035
- case REACT_SUSPENSE_TYPE:
1036
- case REACT_SUSPENSE_LIST_TYPE:
1037
- return type;
1038
-
1039
- default:
1040
- var $$typeofType = type && type.$$typeof;
1041
-
1042
- switch ($$typeofType) {
1043
- case REACT_SERVER_CONTEXT_TYPE:
1044
- case REACT_CONTEXT_TYPE:
1045
- case REACT_FORWARD_REF_TYPE:
1046
- case REACT_LAZY_TYPE:
1047
- case REACT_MEMO_TYPE:
1048
- case REACT_PROVIDER_TYPE:
1049
- return $$typeofType;
1050
-
1051
- default:
1052
- return $$typeof;
1053
- }
1054
-
1055
- }
1056
-
1057
- case REACT_PORTAL_TYPE:
1058
- return $$typeof;
1059
- }
1060
- }
1061
-
1062
- return undefined;
1063
- }
1064
- var ContextConsumer = REACT_CONTEXT_TYPE;
1065
- var ContextProvider = REACT_PROVIDER_TYPE;
1066
- var Element = REACT_ELEMENT_TYPE;
1067
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1068
- var Fragment = REACT_FRAGMENT_TYPE;
1069
- var Lazy = REACT_LAZY_TYPE;
1070
- var Memo = REACT_MEMO_TYPE;
1071
- var Portal = REACT_PORTAL_TYPE;
1072
- var Profiler = REACT_PROFILER_TYPE;
1073
- var StrictMode = REACT_STRICT_MODE_TYPE;
1074
- var Suspense = REACT_SUSPENSE_TYPE;
1075
- var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
1076
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
1077
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
1078
-
1079
- function isAsyncMode(object) {
1080
- {
1081
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1082
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1083
-
1084
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1085
- }
1086
- }
1087
-
1088
- return false;
1089
- }
1090
- function isConcurrentMode(object) {
1091
- {
1092
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1093
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
1094
-
1095
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1096
- }
1097
- }
1098
-
1099
- return false;
1100
- }
1101
- function isContextConsumer(object) {
1102
- return typeOf(object) === REACT_CONTEXT_TYPE;
1103
- }
1104
- function isContextProvider(object) {
1105
- return typeOf(object) === REACT_PROVIDER_TYPE;
1106
- }
1107
- function isElement(object) {
1108
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1109
- }
1110
- function isForwardRef(object) {
1111
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1112
- }
1113
- function isFragment(object) {
1114
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1115
- }
1116
- function isLazy(object) {
1117
- return typeOf(object) === REACT_LAZY_TYPE;
1118
- }
1119
- function isMemo(object) {
1120
- return typeOf(object) === REACT_MEMO_TYPE;
1121
- }
1122
- function isPortal(object) {
1123
- return typeOf(object) === REACT_PORTAL_TYPE;
1124
- }
1125
- function isProfiler(object) {
1126
- return typeOf(object) === REACT_PROFILER_TYPE;
1127
- }
1128
- function isStrictMode(object) {
1129
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1130
- }
1131
- function isSuspense(object) {
1132
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1133
- }
1134
- function isSuspenseList(object) {
1135
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
1136
- }
1137
-
1138
- reactIs_development.ContextConsumer = ContextConsumer;
1139
- reactIs_development.ContextProvider = ContextProvider;
1140
- reactIs_development.Element = Element;
1141
- reactIs_development.ForwardRef = ForwardRef;
1142
- reactIs_development.Fragment = Fragment;
1143
- reactIs_development.Lazy = Lazy;
1144
- reactIs_development.Memo = Memo;
1145
- reactIs_development.Portal = Portal;
1146
- reactIs_development.Profiler = Profiler;
1147
- reactIs_development.StrictMode = StrictMode;
1148
- reactIs_development.Suspense = Suspense;
1149
- reactIs_development.SuspenseList = SuspenseList;
1150
- reactIs_development.isAsyncMode = isAsyncMode;
1151
- reactIs_development.isConcurrentMode = isConcurrentMode;
1152
- reactIs_development.isContextConsumer = isContextConsumer;
1153
- reactIs_development.isContextProvider = isContextProvider;
1154
- reactIs_development.isElement = isElement;
1155
- reactIs_development.isForwardRef = isForwardRef;
1156
- reactIs_development.isFragment = isFragment;
1157
- reactIs_development.isLazy = isLazy;
1158
- reactIs_development.isMemo = isMemo;
1159
- reactIs_development.isPortal = isPortal;
1160
- reactIs_development.isProfiler = isProfiler;
1161
- reactIs_development.isStrictMode = isStrictMode;
1162
- reactIs_development.isSuspense = isSuspense;
1163
- reactIs_development.isSuspenseList = isSuspenseList;
1164
- reactIs_development.isValidElementType = isValidElementType;
1165
- reactIs_development.typeOf = typeOf;
1166
- })();
1167
- }
1168
- return reactIs_development;
1169
- }
1170
-
1171
- (function (module) {
1172
-
1173
- if (process.env.NODE_ENV === 'production') {
1174
- module.exports = requireReactIs_production_min();
1175
- } else {
1176
- module.exports = requireReactIs_development();
1177
- }
1178
- } (reactIs));
1179
-
1180
- function useMemo(getValue, condition, shouldUpdate) {
1181
- var cacheRef = React$4.useRef({});
1182
- if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
1183
- cacheRef.current.value = getValue();
1184
- cacheRef.current.condition = condition;
1185
- }
1186
- return cacheRef.current.value;
1187
- }
1188
-
1189
- var fillRef = function fillRef(ref, node) {
1190
- if (typeof ref === 'function') {
1191
- ref(node);
1192
- } else if (_typeof$1(ref) === 'object' && ref && 'current' in ref) {
1193
- ref.current = node;
1194
- }
1195
- };
1196
-
1197
- /**
1198
- * Merge refs into one ref function to support ref passing.
1199
- */
1200
- var composeRef = function composeRef() {
1201
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
1202
- refs[_key] = arguments[_key];
1203
- }
1204
- var refList = refs.filter(Boolean);
1205
- if (refList.length <= 1) {
1206
- return refList[0];
1207
- }
1208
- return function (node) {
1209
- refs.forEach(function (ref) {
1210
- fillRef(ref, node);
1211
- });
1212
- };
1213
- };
1214
- var useComposeRef = function useComposeRef() {
1215
- for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1216
- refs[_key2] = arguments[_key2];
1217
- }
1218
- return useMemo(function () {
1219
- return composeRef.apply(void 0, refs);
1220
- }, refs, function (prev, next) {
1221
- return prev.length !== next.length || prev.every(function (ref, i) {
1222
- return ref !== next[i];
1223
- });
1224
- });
1225
- };
1226
- var supportRef = function supportRef(nodeOrComponent) {
1227
- var _type$prototype, _nodeOrComponent$prot;
1228
- var type = reactIs.exports.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
1229
-
1230
- // Function component node
1231
- if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type.$$typeof !== reactIs.exports.ForwardRef) {
1232
- return false;
1233
- }
1234
-
1235
- // Class component
1236
- if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIs.exports.ForwardRef) {
29
+ var isMobile = (function () {
30
+ if (typeof navigator === 'undefined' || typeof window === 'undefined') {
1237
31
  return false;
1238
32
  }
1239
- return true;
1240
- };
33
+ var agent = navigator.userAgent || navigator.vendor || window.opera;
34
+ return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(agent) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(agent === null || agent === void 0 ? void 0 : agent.substr(0, 4));
35
+ });
1241
36
 
1242
37
  var TransBtn = function TransBtn(_ref) {
1243
38
  var className = _ref.className,
@@ -1268,7 +63,7 @@ var TransBtn = function TransBtn(_ref) {
1268
63
  onClick: onClick,
1269
64
  "aria-hidden": true
1270
65
  }, icon !== undefined ? icon : /*#__PURE__*/React$4.createElement("span", {
1271
- className: classNames(className.split(/\s+/).map(function (cls) {
66
+ className: clsx(className.split(/\s+/).map(function (cls) {
1272
67
  return "".concat(cls, "-icon");
1273
68
  }))
1274
69
  }, children));
@@ -2777,7 +1572,7 @@ function InternalItem(props, ref) {
2777
1572
  overflowProps['aria-hidden'] = true;
2778
1573
  }
2779
1574
  var itemNode = /*#__PURE__*/React$4.createElement(Component, _extends({
2780
- className: classNames(!invalidate && prefixCls, className),
1575
+ className: clsx(!invalidate && prefixCls, className),
2781
1576
  style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
2782
1577
  }, overflowProps, restProps, {
2783
1578
  ref: ref
@@ -2796,60 +1591,6 @@ function InternalItem(props, ref) {
2796
1591
  var Item$1 = /*#__PURE__*/React$4.forwardRef(InternalItem);
2797
1592
  Item$1.displayName = 'Item';
2798
1593
 
2799
- var raf = function raf(callback) {
2800
- return +setTimeout(callback, 16);
2801
- };
2802
- var caf = function caf(num) {
2803
- return clearTimeout(num);
2804
- };
2805
- if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
2806
- raf = function raf(callback) {
2807
- return window.requestAnimationFrame(callback);
2808
- };
2809
- caf = function caf(handle) {
2810
- return window.cancelAnimationFrame(handle);
2811
- };
2812
- }
2813
- var rafUUID = 0;
2814
- var rafIds = new Map();
2815
- function cleanup(id) {
2816
- rafIds.delete(id);
2817
- }
2818
- var wrapperRaf = function wrapperRaf(callback) {
2819
- var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
2820
- rafUUID += 1;
2821
- var id = rafUUID;
2822
- function callRef(leftTimes) {
2823
- if (leftTimes === 0) {
2824
- // Clean up
2825
- cleanup(id);
2826
-
2827
- // Trigger
2828
- callback();
2829
- } else {
2830
- // Next raf
2831
- var realId = raf(function () {
2832
- callRef(leftTimes - 1);
2833
- });
2834
-
2835
- // Bind real raf id
2836
- rafIds.set(id, realId);
2837
- }
2838
- }
2839
- callRef(times);
2840
- return id;
2841
- };
2842
- wrapperRaf.cancel = function (id) {
2843
- var realId = rafIds.get(id);
2844
- cleanup(id);
2845
- return caf(realId);
2846
- };
2847
- if (process.env.NODE_ENV !== 'production') {
2848
- wrapperRaf.ids = function () {
2849
- return rafIds;
2850
- };
2851
- }
2852
-
2853
1594
  function channelUpdate(callback) {
2854
1595
  if (typeof MessageChannel === 'undefined') {
2855
1596
  wrapperRaf(callback);
@@ -2928,7 +1669,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
2928
1669
  value: null
2929
1670
  }, /*#__PURE__*/React$4.createElement(Item$1, _extends({
2930
1671
  ref: ref,
2931
- className: classNames(contextClassName, className)
1672
+ className: clsx(contextClassName, className)
2932
1673
  }, restContext, restProps)));
2933
1674
  };
2934
1675
  var RawItem = /*#__PURE__*/React$4.forwardRef(InternalRawItem);
@@ -3014,7 +1755,7 @@ function Overflow(props, ref) {
3014
1755
  * When is `responsive`, we will always render rest node to get the real width of it for calculation
3015
1756
  */
3016
1757
  var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
3017
- var mergedData = useMemo$1(function () {
1758
+ var mergedData = useMemo(function () {
3018
1759
  var items = data;
3019
1760
  if (shouldResponsive) {
3020
1761
  if (containerWidth === null && fullySSR) {
@@ -3027,7 +1768,7 @@ function Overflow(props, ref) {
3027
1768
  }
3028
1769
  return items;
3029
1770
  }, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
3030
- var omittedItems = useMemo$1(function () {
1771
+ var omittedItems = useMemo(function () {
3031
1772
  if (shouldResponsive) {
3032
1773
  return data.slice(mergedDisplayCount + 1);
3033
1774
  }
@@ -3186,7 +1927,7 @@ function Overflow(props, ref) {
3186
1927
  }, renderRawRest(omittedItems));
3187
1928
  }
3188
1929
  var overflowNode = /*#__PURE__*/React$4.createElement(Component, _extends({
3189
- className: classNames(!invalidate && prefixCls, className),
1930
+ className: clsx(!invalidate && prefixCls, className),
3190
1931
  style: style,
3191
1932
  ref: ref
3192
1933
  }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/React$4.createElement(Item$1, _extends({}, itemSharedProps, {
@@ -3254,7 +1995,7 @@ var Input = function Input(_ref, ref) {
3254
1995
  tabIndex: tabIndex,
3255
1996
  autoComplete: autoComplete || 'off',
3256
1997
  autoFocus: autoFocus,
3257
- className: classNames("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
1998
+ className: clsx("".concat(prefixCls, "-selection-search-input"), (_inputNode2 = inputNode) === null || _inputNode2 === void 0 ? void 0 : (_inputNode2$props = _inputNode2.props) === null || _inputNode2$props === void 0 ? void 0 : _inputNode2$props.className),
3258
1999
  role: 'combobox',
3259
2000
  'aria-label': 'Search',
3260
2001
  'aria-expanded': open,
@@ -3421,7 +2162,7 @@ var SelectSelector = function SelectSelector(props) {
3421
2162
  // >>> Render Selector Node. Includes Item & Rest
3422
2163
  function defaultRenderSelector(item, content, itemDisabled, closable, onClose) {
3423
2164
  return /*#__PURE__*/React$4.createElement("span", {
3424
- className: classNames("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
2165
+ className: clsx("".concat(selectionPrefixCls, "-item"), _defineProperty({}, "".concat(selectionPrefixCls, "-item-disabled"), itemDisabled)),
3425
2166
  title: getTitle(item)
3426
2167
  }, /*#__PURE__*/React$4.createElement("span", {
3427
2168
  className: "".concat(selectionPrefixCls, "-item-content")
@@ -3778,436 +2519,6 @@ var Selector = function Selector(props, ref) {
3778
2519
  var ForwardSelector = /*#__PURE__*/React$4.forwardRef(Selector);
3779
2520
  ForwardSelector.displayName = 'Selector';
3780
2521
 
3781
- var OrderContext = /*#__PURE__*/React$4.createContext(null);
3782
-
3783
- var EMPTY_LIST = [];
3784
-
3785
- /**
3786
- * Will add `div` to document. Nest call will keep order
3787
- * @param render Render DOM in document
3788
- */
3789
- function useDom(render, debug) {
3790
- var _React$useState = React$4.useState(function () {
3791
- if (!canUseDom$1()) {
3792
- return null;
3793
- }
3794
- var defaultEle = document.createElement('div');
3795
- if (process.env.NODE_ENV !== 'production' && debug) {
3796
- defaultEle.setAttribute('data-debug', debug);
3797
- }
3798
- return defaultEle;
3799
- }),
3800
- _React$useState2 = _slicedToArray(_React$useState, 1),
3801
- ele = _React$useState2[0];
3802
-
3803
- // ========================== Order ==========================
3804
- var appendedRef = React$4.useRef(false);
3805
- var queueCreate = React$4.useContext(OrderContext);
3806
- var _React$useState3 = React$4.useState(EMPTY_LIST),
3807
- _React$useState4 = _slicedToArray(_React$useState3, 2),
3808
- queue = _React$useState4[0],
3809
- setQueue = _React$useState4[1];
3810
- var mergedQueueCreate = queueCreate || (appendedRef.current ? undefined : function (appendFn) {
3811
- setQueue(function (origin) {
3812
- var newQueue = [appendFn].concat(_toConsumableArray(origin));
3813
- return newQueue;
3814
- });
3815
- });
3816
-
3817
- // =========================== DOM ===========================
3818
- function append() {
3819
- if (!ele.parentElement) {
3820
- document.body.appendChild(ele);
3821
- }
3822
- appendedRef.current = true;
3823
- }
3824
- function cleanup() {
3825
- var _ele$parentElement;
3826
- (_ele$parentElement = ele.parentElement) === null || _ele$parentElement === void 0 ? void 0 : _ele$parentElement.removeChild(ele);
3827
- appendedRef.current = false;
3828
- }
3829
- useLayoutEffect$3(function () {
3830
- if (render) {
3831
- if (queueCreate) {
3832
- queueCreate(append);
3833
- } else {
3834
- append();
3835
- }
3836
- } else {
3837
- cleanup();
3838
- }
3839
- return cleanup;
3840
- }, [render]);
3841
- useLayoutEffect$3(function () {
3842
- if (queue.length) {
3843
- queue.forEach(function (appendFn) {
3844
- return appendFn();
3845
- });
3846
- setQueue(EMPTY_LIST);
3847
- }
3848
- }, [queue]);
3849
- return [ele, mergedQueueCreate];
3850
- }
3851
-
3852
- function contains(root, n) {
3853
- if (!root) {
3854
- return false;
3855
- }
3856
-
3857
- // Use native if support
3858
- if (root.contains) {
3859
- return root.contains(n);
3860
- }
3861
-
3862
- // `document.contains` not support with IE11
3863
- var node = n;
3864
- while (node) {
3865
- if (node === root) {
3866
- return true;
3867
- }
3868
- node = node.parentNode;
3869
- }
3870
- return false;
3871
- }
3872
-
3873
- var APPEND_ORDER = 'data-rc-order';
3874
- var APPEND_PRIORITY = 'data-rc-priority';
3875
- var MARK_KEY = "rc-util-key";
3876
- var containerCache = new Map();
3877
- function getMark() {
3878
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
3879
- mark = _ref.mark;
3880
- if (mark) {
3881
- return mark.startsWith('data-') ? mark : "data-".concat(mark);
3882
- }
3883
- return MARK_KEY;
3884
- }
3885
- function getContainer(option) {
3886
- if (option.attachTo) {
3887
- return option.attachTo;
3888
- }
3889
- var head = document.querySelector('head');
3890
- return head || document.body;
3891
- }
3892
- function getOrder(prepend) {
3893
- if (prepend === 'queue') {
3894
- return 'prependQueue';
3895
- }
3896
- return prepend ? 'prepend' : 'append';
3897
- }
3898
-
3899
- /**
3900
- * Find style which inject by rc-util
3901
- */
3902
- function findStyles(container) {
3903
- return Array.from((containerCache.get(container) || container).children).filter(function (node) {
3904
- return node.tagName === 'STYLE';
3905
- });
3906
- }
3907
- function injectCSS(css) {
3908
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3909
- if (!canUseDom$1()) {
3910
- return null;
3911
- }
3912
- var csp = option.csp,
3913
- prepend = option.prepend,
3914
- _option$priority = option.priority,
3915
- priority = _option$priority === void 0 ? 0 : _option$priority;
3916
- var mergedOrder = getOrder(prepend);
3917
- var isPrependQueue = mergedOrder === 'prependQueue';
3918
- var styleNode = document.createElement('style');
3919
- styleNode.setAttribute(APPEND_ORDER, mergedOrder);
3920
- if (isPrependQueue && priority) {
3921
- styleNode.setAttribute(APPEND_PRIORITY, "".concat(priority));
3922
- }
3923
- if (csp !== null && csp !== void 0 && csp.nonce) {
3924
- styleNode.nonce = csp === null || csp === void 0 ? void 0 : csp.nonce;
3925
- }
3926
- styleNode.innerHTML = css;
3927
- var container = getContainer(option);
3928
- var firstChild = container.firstChild;
3929
- if (prepend) {
3930
- // If is queue `prepend`, it will prepend first style and then append rest style
3931
- if (isPrependQueue) {
3932
- var existStyle = (option.styles || findStyles(container)).filter(function (node) {
3933
- // Ignore style which not injected by rc-util with prepend
3934
- if (!['prepend', 'prependQueue'].includes(node.getAttribute(APPEND_ORDER))) {
3935
- return false;
3936
- }
3937
-
3938
- // Ignore style which priority less then new style
3939
- var nodePriority = Number(node.getAttribute(APPEND_PRIORITY) || 0);
3940
- return priority >= nodePriority;
3941
- });
3942
- if (existStyle.length) {
3943
- container.insertBefore(styleNode, existStyle[existStyle.length - 1].nextSibling);
3944
- return styleNode;
3945
- }
3946
- }
3947
-
3948
- // Use `insertBefore` as `prepend`
3949
- container.insertBefore(styleNode, firstChild);
3950
- } else {
3951
- container.appendChild(styleNode);
3952
- }
3953
- return styleNode;
3954
- }
3955
- function findExistNode(key) {
3956
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3957
- var container = getContainer(option);
3958
- return (option.styles || findStyles(container)).find(function (node) {
3959
- return node.getAttribute(getMark(option)) === key;
3960
- });
3961
- }
3962
- function removeCSS(key) {
3963
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3964
- var existNode = findExistNode(key, option);
3965
- if (existNode) {
3966
- var container = getContainer(option);
3967
- container.removeChild(existNode);
3968
- }
3969
- }
3970
-
3971
- /**
3972
- * qiankun will inject `appendChild` to insert into other
3973
- */
3974
- function syncRealContainer(container, option) {
3975
- var cachedRealContainer = containerCache.get(container);
3976
-
3977
- // Find real container when not cached or cached container removed
3978
- if (!cachedRealContainer || !contains(document, cachedRealContainer)) {
3979
- var placeholderStyle = injectCSS('', option);
3980
- var parentNode = placeholderStyle.parentNode;
3981
- containerCache.set(container, parentNode);
3982
- container.removeChild(placeholderStyle);
3983
- }
3984
- }
3985
- function updateCSS(css, key) {
3986
- var originOption = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
3987
- var container = getContainer(originOption);
3988
- var styles = findStyles(container);
3989
- var option = _objectSpread2(_objectSpread2({}, originOption), {}, {
3990
- styles: styles
3991
- });
3992
-
3993
- // Sync real parent
3994
- syncRealContainer(container, option);
3995
- var existNode = findExistNode(key, option);
3996
- if (existNode) {
3997
- var _option$csp, _option$csp2;
3998
- if ((_option$csp = option.csp) !== null && _option$csp !== void 0 && _option$csp.nonce && existNode.nonce !== ((_option$csp2 = option.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce)) {
3999
- var _option$csp3;
4000
- existNode.nonce = (_option$csp3 = option.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce;
4001
- }
4002
- if (existNode.innerHTML !== css) {
4003
- existNode.innerHTML = css;
4004
- }
4005
- return existNode;
4006
- }
4007
- var newNode = injectCSS(css, option);
4008
- newNode.setAttribute(getMark(option), key);
4009
- return newNode;
4010
- }
4011
-
4012
- /* eslint-disable no-param-reassign */
4013
- function measureScrollbarSize(ele) {
4014
- var randomId = "rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7));
4015
- var measureEle = document.createElement('div');
4016
- measureEle.id = randomId;
4017
-
4018
- // Create Style
4019
- var measureStyle = measureEle.style;
4020
- measureStyle.position = 'absolute';
4021
- measureStyle.left = '0';
4022
- measureStyle.top = '0';
4023
- measureStyle.width = '100px';
4024
- measureStyle.height = '100px';
4025
- measureStyle.overflow = 'scroll';
4026
-
4027
- // Clone Style if needed
4028
- var fallbackWidth;
4029
- var fallbackHeight;
4030
- if (ele) {
4031
- var targetStyle = getComputedStyle(ele);
4032
- measureStyle.scrollbarColor = targetStyle.scrollbarColor;
4033
- measureStyle.scrollbarWidth = targetStyle.scrollbarWidth;
4034
-
4035
- // Set Webkit style
4036
- var webkitScrollbarStyle = getComputedStyle(ele, '::-webkit-scrollbar');
4037
- var width = parseInt(webkitScrollbarStyle.width, 10);
4038
- var height = parseInt(webkitScrollbarStyle.height, 10);
4039
-
4040
- // Try wrap to handle CSP case
4041
- try {
4042
- var widthStyle = width ? "width: ".concat(webkitScrollbarStyle.width, ";") : '';
4043
- var heightStyle = height ? "height: ".concat(webkitScrollbarStyle.height, ";") : '';
4044
- updateCSS("\n#".concat(randomId, "::-webkit-scrollbar {\n").concat(widthStyle, "\n").concat(heightStyle, "\n}"), randomId);
4045
- } catch (e) {
4046
- // Can't wrap, just log error
4047
- console.error(e);
4048
-
4049
- // Get from style directly
4050
- fallbackWidth = width;
4051
- fallbackHeight = height;
4052
- }
4053
- }
4054
- document.body.appendChild(measureEle);
4055
-
4056
- // Measure. Get fallback style if provided
4057
- var scrollWidth = ele && fallbackWidth && !isNaN(fallbackWidth) ? fallbackWidth : measureEle.offsetWidth - measureEle.clientWidth;
4058
- var scrollHeight = ele && fallbackHeight && !isNaN(fallbackHeight) ? fallbackHeight : measureEle.offsetHeight - measureEle.clientHeight;
4059
-
4060
- // Clean up
4061
- document.body.removeChild(measureEle);
4062
- removeCSS(randomId);
4063
- return {
4064
- width: scrollWidth,
4065
- height: scrollHeight
4066
- };
4067
- }
4068
- function getTargetScrollBarSize(target) {
4069
- if (typeof document === 'undefined' || !target || !(target instanceof Element)) {
4070
- return {
4071
- width: 0,
4072
- height: 0
4073
- };
4074
- }
4075
- return measureScrollbarSize(target);
4076
- }
4077
-
4078
- /**
4079
- * Test usage export. Do not use in your production
4080
- */
4081
- function isBodyOverflowing() {
4082
- return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
4083
- }
4084
-
4085
- var UNIQUE_ID = "rc-util-locker-".concat(Date.now());
4086
- var uuid$3 = 0;
4087
- function useScrollLocker(lock) {
4088
- var mergedLock = !!lock;
4089
- var _React$useState = React$4.useState(function () {
4090
- uuid$3 += 1;
4091
- return "".concat(UNIQUE_ID, "_").concat(uuid$3);
4092
- }),
4093
- _React$useState2 = _slicedToArray(_React$useState, 1),
4094
- id = _React$useState2[0];
4095
- useLayoutEffect$3(function () {
4096
- if (mergedLock) {
4097
- var scrollbarSize = getTargetScrollBarSize(document.body).width;
4098
- var isOverflow = isBodyOverflowing();
4099
- updateCSS("\nhtml body {\n overflow-y: hidden;\n ".concat(isOverflow ? "width: calc(100% - ".concat(scrollbarSize, "px);") : '', "\n}"), id);
4100
- } else {
4101
- removeCSS(id);
4102
- }
4103
- return function () {
4104
- removeCSS(id);
4105
- };
4106
- }, [mergedLock, id]);
4107
- }
4108
-
4109
- var inline = false;
4110
- function inlineMock(nextInline) {
4111
- if (typeof nextInline === 'boolean') {
4112
- inline = nextInline;
4113
- }
4114
- return inline;
4115
- }
4116
-
4117
- var getPortalContainer = function getPortalContainer(getContainer) {
4118
- if (getContainer === false) {
4119
- return false;
4120
- }
4121
- if (!canUseDom$1() || !getContainer) {
4122
- return null;
4123
- }
4124
- if (typeof getContainer === 'string') {
4125
- return document.querySelector(getContainer);
4126
- }
4127
- if (typeof getContainer === 'function') {
4128
- return getContainer();
4129
- }
4130
- return getContainer;
4131
- };
4132
- var Portal = /*#__PURE__*/React$4.forwardRef(function (props, ref) {
4133
- var open = props.open,
4134
- autoLock = props.autoLock,
4135
- getContainer = props.getContainer,
4136
- debug = props.debug,
4137
- _props$autoDestroy = props.autoDestroy,
4138
- autoDestroy = _props$autoDestroy === void 0 ? true : _props$autoDestroy,
4139
- children = props.children;
4140
- var _React$useState = React$4.useState(open),
4141
- _React$useState2 = _slicedToArray(_React$useState, 2),
4142
- shouldRender = _React$useState2[0],
4143
- setShouldRender = _React$useState2[1];
4144
- var mergedRender = shouldRender || open;
4145
-
4146
- // ========================= Warning =========================
4147
- if (process.env.NODE_ENV !== 'production') {
4148
- warningOnce(canUseDom$1() || !open, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR.");
4149
- }
4150
-
4151
- // ====================== Should Render ======================
4152
- React$4.useEffect(function () {
4153
- if (autoDestroy || open) {
4154
- setShouldRender(open);
4155
- }
4156
- }, [open, autoDestroy]);
4157
-
4158
- // ======================== Container ========================
4159
- var _React$useState3 = React$4.useState(function () {
4160
- return getPortalContainer(getContainer);
4161
- }),
4162
- _React$useState4 = _slicedToArray(_React$useState3, 2),
4163
- innerContainer = _React$useState4[0],
4164
- setInnerContainer = _React$useState4[1];
4165
- React$4.useEffect(function () {
4166
- var customizeContainer = getPortalContainer(getContainer);
4167
-
4168
- // Tell component that we check this in effect which is safe to be `null`
4169
- setInnerContainer(customizeContainer !== null && customizeContainer !== void 0 ? customizeContainer : null);
4170
- });
4171
- var _useDom = useDom(mergedRender && !innerContainer, debug),
4172
- _useDom2 = _slicedToArray(_useDom, 2),
4173
- defaultContainer = _useDom2[0],
4174
- queueCreate = _useDom2[1];
4175
- var mergedContainer = innerContainer !== null && innerContainer !== void 0 ? innerContainer : defaultContainer;
4176
-
4177
- // ========================= Locker ==========================
4178
- useScrollLocker(autoLock && open && canUseDom$1() && (mergedContainer === defaultContainer || mergedContainer === document.body));
4179
-
4180
- // =========================== Ref ===========================
4181
- var childRef = null;
4182
- if (children && supportRef(children) && ref) {
4183
- var _ref = children;
4184
- childRef = _ref.ref;
4185
- }
4186
- var mergedRef = useComposeRef(childRef, ref);
4187
-
4188
- // ========================= Render ==========================
4189
- // Do not render when nothing need render
4190
- // When innerContainer is `undefined`, it may not ready since user use ref in the same render
4191
- if (!mergedRender || !canUseDom$1() || innerContainer === undefined) {
4192
- return null;
4193
- }
4194
-
4195
- // Render inline
4196
- var renderInline = mergedContainer === false || inlineMock();
4197
- var reffedChildren = children;
4198
- if (ref) {
4199
- reffedChildren = /*#__PURE__*/React$4.cloneElement(children, {
4200
- ref: mergedRef
4201
- });
4202
- }
4203
- return /*#__PURE__*/React$4.createElement(OrderContext.Provider, {
4204
- value: queueCreate
4205
- }, renderInline ? reffedChildren : /*#__PURE__*/createPortal(reffedChildren, mergedContainer));
4206
- });
4207
- if (process.env.NODE_ENV !== 'production') {
4208
- Portal.displayName = 'Portal';
4209
- }
4210
-
4211
2522
  function getRoot(ele) {
4212
2523
  var _ele$getRootNode;
4213
2524
  return ele === null || ele === void 0 || (_ele$getRootNode = ele.getRootNode) === null || _ele$getRootNode === void 0 ? void 0 : _ele$getRootNode.call(ele);
@@ -4328,7 +2639,7 @@ function Arrow(props) {
4328
2639
  }
4329
2640
  return /*#__PURE__*/React$4.createElement("div", {
4330
2641
  ref: arrowRef,
4331
- className: classNames("".concat(prefixCls, "-arrow"), className),
2642
+ className: clsx("".concat(prefixCls, "-arrow"), className),
4332
2643
  style: alignStyle
4333
2644
  }, content);
4334
2645
  }
@@ -4352,7 +2663,7 @@ function Mask(props) {
4352
2663
  style: {
4353
2664
  zIndex: zIndex
4354
2665
  },
4355
- className: classNames("".concat(prefixCls, "-mask"), className)
2666
+ className: clsx("".concat(prefixCls, "-mask"), className)
4356
2667
  });
4357
2668
  });
4358
2669
  }
@@ -4510,7 +2821,7 @@ var Popup = /*#__PURE__*/React$4.forwardRef(function (props, ref) {
4510
2821
  }), function (_ref, motionRef) {
4511
2822
  var motionClassName = _ref.className,
4512
2823
  motionStyle = _ref.style;
4513
- var cls = classNames(prefixCls, motionClassName, className);
2824
+ var cls = clsx(prefixCls, motionClassName, className);
4514
2825
  return /*#__PURE__*/React$4.createElement("div", {
4515
2826
  ref: composeRef(resizeObserverRef, ref, motionRef),
4516
2827
  className: cls,
@@ -5637,7 +3948,7 @@ function generateTrigger() {
5637
3948
  }, [JSON.stringify(popupAlign)]);
5638
3949
  var alignedClassName = React$4.useMemo(function () {
5639
3950
  var baseClassName = getAlignPopupClassName(builtinPlacements, prefixCls, alignInfo, alignPoint);
5640
- return classNames(baseClassName, getPopupClassNameFromAlign === null || getPopupClassNameFromAlign === void 0 ? void 0 : getPopupClassNameFromAlign(alignInfo));
3951
+ return clsx(baseClassName, getPopupClassNameFromAlign === null || getPopupClassNameFromAlign === void 0 ? void 0 : getPopupClassNameFromAlign(alignInfo));
5641
3952
  }, [alignInfo, getPopupClassNameFromAlign, builtinPlacements, prefixCls, alignPoint]);
5642
3953
 
5643
3954
  // ============================ Refs ============================
@@ -5800,7 +4111,7 @@ function generateTrigger() {
5800
4111
 
5801
4112
  // ========================= ClassName ==========================
5802
4113
  if (className) {
5803
- cloneProps.className = classNames(originChildProps.className, className);
4114
+ cloneProps.className = clsx(originChildProps.className, className);
5804
4115
  }
5805
4116
 
5806
4117
  // =========================== Render ===========================
@@ -5844,7 +4155,7 @@ function generateTrigger() {
5844
4155
  ref: setPopupRef,
5845
4156
  prefixCls: prefixCls,
5846
4157
  popup: popup,
5847
- className: classNames(popupClassName, alignedClassName),
4158
+ className: clsx(popupClassName, alignedClassName),
5848
4159
  style: popupStyle,
5849
4160
  target: targetEle,
5850
4161
  onMouseEnter: onPopupMouseEnter,
@@ -6019,7 +4330,7 @@ var SelectTrigger = function SelectTrigger(props, ref) {
6019
4330
  popupAlign: dropdownAlign,
6020
4331
  popupVisible: visible,
6021
4332
  getPopupContainer: getPopupContainer,
6022
- popupClassName: classNames(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
4333
+ popupClassName: clsx(dropdownClassName, _defineProperty({}, "".concat(dropdownPrefixCls, "-empty"), empty)),
6023
4334
  popupStyle: popupStyle,
6024
4335
  getTriggerDOMNode: getTriggerDOMNode,
6025
4336
  onPopupVisibleChange: onPopupVisibleChange
@@ -6577,7 +4888,7 @@ var BaseSelect = /*#__PURE__*/React$4.forwardRef(function (props, ref) {
6577
4888
  var arrowNode;
6578
4889
  if (showSuffixIcon) {
6579
4890
  arrowNode = /*#__PURE__*/React$4.createElement(TransBtn, {
6580
- className: classNames("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
4891
+ className: clsx("".concat(prefixCls, "-arrow"), _defineProperty({}, "".concat(prefixCls, "-arrow-loading"), loading)),
6581
4892
  customizeIcon: suffixIcon,
6582
4893
  customizeIconProps: {
6583
4894
  loading: loading,
@@ -6610,7 +4921,7 @@ var BaseSelect = /*#__PURE__*/React$4.forwardRef(function (props, ref) {
6610
4921
  });
6611
4922
 
6612
4923
  // ============================= Select =============================
6613
- var mergedClassName = classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), multiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !multiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), showSuffixIcon), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
4924
+ var mergedClassName = clsx(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-focused"), mockFocused), _defineProperty(_classNames2, "".concat(prefixCls, "-multiple"), multiple), _defineProperty(_classNames2, "".concat(prefixCls, "-single"), !multiple), _defineProperty(_classNames2, "".concat(prefixCls, "-allow-clear"), allowClear), _defineProperty(_classNames2, "".concat(prefixCls, "-show-arrow"), showSuffixIcon), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-loading"), loading), _defineProperty(_classNames2, "".concat(prefixCls, "-open"), mergedOpen), _defineProperty(_classNames2, "".concat(prefixCls, "-customize-input"), customizeInputElement), _defineProperty(_classNames2, "".concat(prefixCls, "-show-search"), mergedShowSearch), _classNames2));
6614
4925
 
6615
4926
  // >>> Selector
6616
4927
  var selectorNode = /*#__PURE__*/React$4.createElement(RefSelectTrigger, {
@@ -6994,7 +5305,7 @@ var Filler = /*#__PURE__*/React$4.forwardRef(function (_ref, ref) {
6994
5305
  }
6995
5306
  }, /*#__PURE__*/React$4.createElement("div", _extends({
6996
5307
  style: innerStyle,
6997
- className: classNames(_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
5308
+ className: clsx(_defineProperty({}, "".concat(prefixCls, "-holder-inner"), prefixCls)),
6998
5309
  ref: ref
6999
5310
  }, innerProps), children, extra)));
7000
5311
  });
@@ -7779,13 +6090,13 @@ var ScrollBar = /*#__PURE__*/React$4.forwardRef(function (props, ref) {
7779
6090
  }
7780
6091
  return /*#__PURE__*/React$4.createElement("div", {
7781
6092
  ref: scrollbarRef,
7782
- className: classNames(scrollbarPrefixCls, _defineProperty(_defineProperty(_defineProperty({}, "".concat(scrollbarPrefixCls, "-horizontal"), horizontal), "".concat(scrollbarPrefixCls, "-vertical"), !horizontal), "".concat(scrollbarPrefixCls, "-visible"), visible)),
6093
+ className: clsx(scrollbarPrefixCls, _defineProperty(_defineProperty(_defineProperty({}, "".concat(scrollbarPrefixCls, "-horizontal"), horizontal), "".concat(scrollbarPrefixCls, "-vertical"), !horizontal), "".concat(scrollbarPrefixCls, "-visible"), visible)),
7783
6094
  style: _objectSpread2(_objectSpread2({}, containerStyle), style),
7784
6095
  onMouseDown: onContainerMouseDown,
7785
6096
  onMouseMove: delayHidden
7786
6097
  }, /*#__PURE__*/React$4.createElement("div", {
7787
6098
  ref: thumbRef,
7788
- className: classNames("".concat(scrollbarPrefixCls, "-thumb"), _defineProperty({}, "".concat(scrollbarPrefixCls, "-thumb-moving"), dragging)),
6099
+ className: clsx("".concat(scrollbarPrefixCls, "-thumb"), _defineProperty({}, "".concat(scrollbarPrefixCls, "-thumb-moving"), dragging)),
7789
6100
  style: _objectSpread2(_objectSpread2({}, thumbStyle), propsThumbStyle),
7790
6101
  onMouseDown: onThumbMouseDown
7791
6102
  }));
@@ -7862,7 +6173,7 @@ function RawList(props, ref) {
7862
6173
  }, [heights.id, heights.maps]);
7863
6174
  var inVirtual = useVirtual && data && (Math.max(itemHeight * data.length, containerHeight) > height || !!scrollWidth);
7864
6175
  var isRTL = direction === 'rtl';
7865
- var mergedClassName = classNames(prefixCls, _defineProperty({}, "".concat(prefixCls, "-rtl"), isRTL), className);
6176
+ var mergedClassName = clsx(prefixCls, _defineProperty({}, "".concat(prefixCls, "-rtl"), isRTL), className);
7866
6177
  var mergedData = data || EMPTY_DATA;
7867
6178
  var componentRef = useRef();
7868
6179
  var fillerInnerRef = useRef();
@@ -8316,7 +6627,7 @@ var OptionList = function OptionList(_, ref) {
8316
6627
  listHeight = _React$useContext.listHeight,
8317
6628
  listItemHeight = _React$useContext.listItemHeight;
8318
6629
  var itemPrefixCls = "".concat(prefixCls, "-item");
8319
- var memoFlattenOptions = useMemo(function () {
6630
+ var memoFlattenOptions = useMemo$1(function () {
8320
6631
  return flattenOptions;
8321
6632
  }, [open, flattenOptions], function (prev, next) {
8322
6633
  return next[0] && prev[1] !== next[1];
@@ -8567,7 +6878,7 @@ var OptionList = function OptionList(_, ref) {
8567
6878
  var _data$title;
8568
6879
  var groupTitle = (_data$title = data.title) !== null && _data$title !== void 0 ? _data$title : isTitleType(label) ? label.toString() : undefined;
8569
6880
  return /*#__PURE__*/React$4.createElement("div", {
8570
- className: classNames(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
6881
+ className: clsx(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
8571
6882
  title: groupTitle
8572
6883
  }, label !== undefined ? label : key);
8573
6884
  }
@@ -8582,7 +6893,7 @@ var OptionList = function OptionList(_, ref) {
8582
6893
  // Option
8583
6894
  var selected = isSelected(value);
8584
6895
  var optionPrefixCls = "".concat(itemPrefixCls, "-option");
8585
- var optionClassName = classNames(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
6896
+ var optionClassName = clsx(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, _defineProperty(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), _defineProperty(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
8586
6897
  var mergedLabel = getLabel(item);
8587
6898
  var iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
8588
6899
 
@@ -10077,7 +8388,7 @@ function Column(_ref) {
10077
8388
  };
10078
8389
  // >>>>> Render
10079
8390
  return jsxs("li", Object.assign({
10080
- className: classNames(menuItemPrefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(menuItemPrefixCls, "-expand"), !isMergedLeaf), "".concat(menuItemPrefixCls, "-active"), activeValue === value || activeValue === fullPathKey), "".concat(menuItemPrefixCls, "-disabled"), disabled), "".concat(menuItemPrefixCls, "-loading"), isLoading)),
8391
+ className: clsx(menuItemPrefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(menuItemPrefixCls, "-expand"), !isMergedLeaf), "".concat(menuItemPrefixCls, "-active"), activeValue === value || activeValue === fullPathKey), "".concat(menuItemPrefixCls, "-disabled"), disabled), "".concat(menuItemPrefixCls, "-loading"), isLoading)),
10081
8392
  style: dropdownMenuColumnStyle,
10082
8393
  role: "menuitemcheckbox",
10083
8394
  "aria-checked": checked,
@@ -10343,7 +8654,7 @@ var RefOptionList = /*#__PURE__*/React$4.forwardRef(function (props, ref) {
10343
8654
  open: open
10344
8655
  }, {
10345
8656
  children: jsx("div", Object.assign({
10346
- className: classNames("".concat(mergedPrefixCls, "-menus"), _defineProperty(_defineProperty({}, "".concat(mergedPrefixCls, "-menu-empty"), isEmpty), "".concat(mergedPrefixCls, "-rtl"), rtl)),
8657
+ className: clsx("".concat(mergedPrefixCls, "-menus"), _defineProperty(_defineProperty({}, "".concat(mergedPrefixCls, "-menu-empty"), isEmpty), "".concat(mergedPrefixCls, "-rtl"), rtl)),
10347
8658
  ref: containerRef
10348
8659
  }, {
10349
8660
  children: columnNodes
@@ -10632,11 +8943,11 @@ const Cascader = /*#__PURE__*/React$4.forwardRef((props, ref) => {
10632
8943
  }
10633
8944
  };
10634
8945
  const childrenMemo = React$4.useMemo(() => {
10635
- const contentClass = clsx("".concat($prefixCls, "-cascader-select-content"), {
8946
+ const contentClass = clsx$1("".concat($prefixCls, "-cascader-select-content"), {
10636
8947
  ["".concat($prefixCls, "-cascader-select-value")]: inputLabel,
10637
8948
  ["".concat($prefixCls, "-cascader-select-disabled")]: disabled
10638
8949
  });
10639
- const svgClass = clsx("select-svg", {
8950
+ const svgClass = clsx$1("select-svg", {
10640
8951
  ["select-svg-open"]: dropdownVisible
10641
8952
  });
10642
8953
  return children ? children : jsxs("div", Object.assign({