rx-compo 1.0.52 → 1.0.54

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 (77) hide show
  1. package/entry/types/index.d.ts +0 -1
  2. package/es/components/RxButton/index.js +16 -25
  3. package/es/components/RxCheckbox/index.js +3712 -0
  4. package/es/components/RxCheckboxGroup/index.js +6430 -0
  5. package/es/components/RxDatePicker/index.js +13042 -0
  6. package/es/components/RxInput/index.js +1560 -0
  7. package/es/components/RxOption/index.js +8859 -0
  8. package/es/components/RxRadio/index.js +646 -0
  9. package/es/components/RxRadioButton/index.js +646 -0
  10. package/es/components/RxRadioGroup/index.js +1117 -0
  11. package/es/components/RxScrollbar/index.js +867 -0
  12. package/es/components/RxSelect/index.js +9022 -0
  13. package/es/components/RxSelectPlus/index.js +17471 -0
  14. package/es/components/RxSuperCondition/index.js +8690 -0
  15. package/es/components/RxTooltip/index.js +2470 -0
  16. package/es/components/index.js +13 -0
  17. package/es/index.d.ts +0 -1
  18. package/es/index.js +0 -1
  19. package/es/utils/useContext.d.ts +10 -0
  20. package/es/utils/useContext.js +13 -0
  21. package/es/utils/useTextOverflow.d.ts +4 -0
  22. package/es/utils/useTextOverflow.js +13 -0
  23. package/es/utils/with-install.d.ts +3 -0
  24. package/es/utils/with-install.js +7 -0
  25. package/index.esm.js +43171 -1577
  26. package/index.js +43192 -1585
  27. package/lib/components/RxButton/index.js +15 -24
  28. package/lib/components/RxCheckbox/index.js +3717 -0
  29. package/lib/components/RxCheckboxGroup/index.js +6435 -0
  30. package/lib/components/RxDatePicker/index.js +13047 -0
  31. package/lib/components/RxInput/index.js +1565 -0
  32. package/lib/components/RxOption/index.js +8864 -0
  33. package/lib/components/RxRadio/index.js +651 -0
  34. package/lib/components/RxRadioButton/index.js +651 -0
  35. package/lib/components/RxRadioGroup/index.js +1122 -0
  36. package/lib/components/RxScrollbar/index.js +872 -0
  37. package/lib/components/RxSelect/index.js +9027 -0
  38. package/lib/components/RxSelectPlus/index.js +17476 -0
  39. package/lib/components/RxSuperCondition/index.js +8695 -0
  40. package/lib/components/RxTooltip/index.js +2475 -0
  41. package/lib/components/index.js +91 -0
  42. package/lib/index.d.ts +0 -1
  43. package/lib/index.js +0 -1
  44. package/lib/utils/useContext.d.ts +10 -0
  45. package/lib/utils/useContext.js +18 -0
  46. package/lib/utils/useTextOverflow.d.ts +4 -0
  47. package/lib/utils/useTextOverflow.js +17 -0
  48. package/lib/utils/with-install.d.ts +3 -0
  49. package/lib/utils/with-install.js +11 -0
  50. package/package.json +4 -2
  51. package/theme-chalk/css/index.css +1 -1
  52. package/theme-chalk/css/rx-button.css +1 -0
  53. package/theme-chalk/css/rx-checkbox-group.css +1 -0
  54. package/theme-chalk/css/rx-checkbox.css +1 -0
  55. package/theme-chalk/css/rx-date-picker.css +0 -0
  56. package/theme-chalk/css/rx-input.css +1 -0
  57. package/theme-chalk/css/rx-option.css +1 -0
  58. package/theme-chalk/css/rx-radio-button.css +0 -0
  59. package/theme-chalk/css/rx-radio-group.css +1 -0
  60. package/theme-chalk/css/rx-radio.css +1 -0
  61. package/theme-chalk/css/rx-scrollbar.css +0 -0
  62. package/theme-chalk/css/rx-select.css +1 -0
  63. package/theme-chalk/css/rx-super-condition.css +0 -0
  64. package/theme-chalk/css/rx-tooltip.css +0 -0
  65. package/es/components/RxButton/index.d.ts +0 -3
  66. package/es/components/RxButton/src/index.d.ts +0 -3
  67. package/es/components/RxButton/src/index.vue.d.ts +0 -10
  68. package/es/components/index.d.ts +0 -2
  69. package/lib/components/RxButton/index.d.ts +0 -3
  70. package/lib/components/RxButton/src/index.d.ts +0 -3
  71. package/lib/components/RxButton/src/index.vue.d.ts +0 -10
  72. package/lib/components/index.d.ts +0 -2
  73. package/types/components/RxButton/index.d.ts +0 -3
  74. package/types/components/RxButton/src/index.d.ts +0 -3
  75. package/types/components/RxButton/src/index.vue.d.ts +0 -10
  76. package/types/components/index.d.ts +0 -2
  77. package/types/utils/with-install.d.ts +0 -3
@@ -0,0 +1,3717 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var withInstall$1 = require('rx-compo/lib/utils/with-install');
6
+ var vue = require('vue');
7
+ require('vue-demi');
8
+
9
+ const RxCheckboxProps = {};
10
+
11
+ var _a;
12
+ const isClient = typeof window !== "undefined";
13
+ isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
14
+
15
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
16
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
17
+ const NOOP = () => {
18
+ };
19
+ const hasOwnProperty$a = Object.prototype.hasOwnProperty;
20
+ const hasOwn = (val, key) => hasOwnProperty$a.call(val, key);
21
+ const isArray$2 = Array.isArray;
22
+ const isString = (val) => typeof val === "string";
23
+ const isObject$1 = (val) => val !== null && typeof val === "object";
24
+
25
+ /** Detect free variable `global` from Node.js. */
26
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
27
+
28
+ var freeGlobal$1 = freeGlobal;
29
+
30
+ /** Detect free variable `self`. */
31
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
32
+
33
+ /** Used as a reference to the global object. */
34
+ var root = freeGlobal$1 || freeSelf || Function('return this')();
35
+
36
+ var root$1 = root;
37
+
38
+ /** Built-in value references. */
39
+ var Symbol$1 = root$1.Symbol;
40
+
41
+ var Symbol$2 = Symbol$1;
42
+
43
+ /** Used for built-in method references. */
44
+ var objectProto$c = Object.prototype;
45
+
46
+ /** Used to check objects for own properties. */
47
+ var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
48
+
49
+ /**
50
+ * Used to resolve the
51
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
52
+ * of values.
53
+ */
54
+ var nativeObjectToString$1 = objectProto$c.toString;
55
+
56
+ /** Built-in value references. */
57
+ var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : undefined;
58
+
59
+ /**
60
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
61
+ *
62
+ * @private
63
+ * @param {*} value The value to query.
64
+ * @returns {string} Returns the raw `toStringTag`.
65
+ */
66
+ function getRawTag(value) {
67
+ var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
68
+ tag = value[symToStringTag$1];
69
+
70
+ try {
71
+ value[symToStringTag$1] = undefined;
72
+ var unmasked = true;
73
+ } catch (e) {}
74
+
75
+ var result = nativeObjectToString$1.call(value);
76
+ if (unmasked) {
77
+ if (isOwn) {
78
+ value[symToStringTag$1] = tag;
79
+ } else {
80
+ delete value[symToStringTag$1];
81
+ }
82
+ }
83
+ return result;
84
+ }
85
+
86
+ /** Used for built-in method references. */
87
+ var objectProto$b = Object.prototype;
88
+
89
+ /**
90
+ * Used to resolve the
91
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
92
+ * of values.
93
+ */
94
+ var nativeObjectToString = objectProto$b.toString;
95
+
96
+ /**
97
+ * Converts `value` to a string using `Object.prototype.toString`.
98
+ *
99
+ * @private
100
+ * @param {*} value The value to convert.
101
+ * @returns {string} Returns the converted string.
102
+ */
103
+ function objectToString(value) {
104
+ return nativeObjectToString.call(value);
105
+ }
106
+
107
+ /** `Object#toString` result references. */
108
+ var nullTag = '[object Null]',
109
+ undefinedTag = '[object Undefined]';
110
+
111
+ /** Built-in value references. */
112
+ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
113
+
114
+ /**
115
+ * The base implementation of `getTag` without fallbacks for buggy environments.
116
+ *
117
+ * @private
118
+ * @param {*} value The value to query.
119
+ * @returns {string} Returns the `toStringTag`.
120
+ */
121
+ function baseGetTag(value) {
122
+ if (value == null) {
123
+ return value === undefined ? undefinedTag : nullTag;
124
+ }
125
+ return (symToStringTag && symToStringTag in Object(value))
126
+ ? getRawTag(value)
127
+ : objectToString(value);
128
+ }
129
+
130
+ /**
131
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
132
+ * and has a `typeof` result of "object".
133
+ *
134
+ * @static
135
+ * @memberOf _
136
+ * @since 4.0.0
137
+ * @category Lang
138
+ * @param {*} value The value to check.
139
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
140
+ * @example
141
+ *
142
+ * _.isObjectLike({});
143
+ * // => true
144
+ *
145
+ * _.isObjectLike([1, 2, 3]);
146
+ * // => true
147
+ *
148
+ * _.isObjectLike(_.noop);
149
+ * // => false
150
+ *
151
+ * _.isObjectLike(null);
152
+ * // => false
153
+ */
154
+ function isObjectLike(value) {
155
+ return value != null && typeof value == 'object';
156
+ }
157
+
158
+ /** `Object#toString` result references. */
159
+ var symbolTag$1 = '[object Symbol]';
160
+
161
+ /**
162
+ * Checks if `value` is classified as a `Symbol` primitive or object.
163
+ *
164
+ * @static
165
+ * @memberOf _
166
+ * @since 4.0.0
167
+ * @category Lang
168
+ * @param {*} value The value to check.
169
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
170
+ * @example
171
+ *
172
+ * _.isSymbol(Symbol.iterator);
173
+ * // => true
174
+ *
175
+ * _.isSymbol('abc');
176
+ * // => false
177
+ */
178
+ function isSymbol(value) {
179
+ return typeof value == 'symbol' ||
180
+ (isObjectLike(value) && baseGetTag(value) == symbolTag$1);
181
+ }
182
+
183
+ /**
184
+ * A specialized version of `_.map` for arrays without support for iteratee
185
+ * shorthands.
186
+ *
187
+ * @private
188
+ * @param {Array} [array] The array to iterate over.
189
+ * @param {Function} iteratee The function invoked per iteration.
190
+ * @returns {Array} Returns the new mapped array.
191
+ */
192
+ function arrayMap(array, iteratee) {
193
+ var index = -1,
194
+ length = array == null ? 0 : array.length,
195
+ result = Array(length);
196
+
197
+ while (++index < length) {
198
+ result[index] = iteratee(array[index], index, array);
199
+ }
200
+ return result;
201
+ }
202
+
203
+ /**
204
+ * Checks if `value` is classified as an `Array` object.
205
+ *
206
+ * @static
207
+ * @memberOf _
208
+ * @since 0.1.0
209
+ * @category Lang
210
+ * @param {*} value The value to check.
211
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
212
+ * @example
213
+ *
214
+ * _.isArray([1, 2, 3]);
215
+ * // => true
216
+ *
217
+ * _.isArray(document.body.children);
218
+ * // => false
219
+ *
220
+ * _.isArray('abc');
221
+ * // => false
222
+ *
223
+ * _.isArray(_.noop);
224
+ * // => false
225
+ */
226
+ var isArray = Array.isArray;
227
+
228
+ var isArray$1 = isArray;
229
+
230
+ /** Used as references for various `Number` constants. */
231
+ var INFINITY$1 = 1 / 0;
232
+
233
+ /** Used to convert symbols to primitives and strings. */
234
+ var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : undefined,
235
+ symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
236
+
237
+ /**
238
+ * The base implementation of `_.toString` which doesn't convert nullish
239
+ * values to empty strings.
240
+ *
241
+ * @private
242
+ * @param {*} value The value to process.
243
+ * @returns {string} Returns the string.
244
+ */
245
+ function baseToString(value) {
246
+ // Exit early for strings to avoid a performance hit in some environments.
247
+ if (typeof value == 'string') {
248
+ return value;
249
+ }
250
+ if (isArray$1(value)) {
251
+ // Recursively convert values (susceptible to call stack limits).
252
+ return arrayMap(value, baseToString) + '';
253
+ }
254
+ if (isSymbol(value)) {
255
+ return symbolToString ? symbolToString.call(value) : '';
256
+ }
257
+ var result = (value + '');
258
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
259
+ }
260
+
261
+ /**
262
+ * Checks if `value` is the
263
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
264
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
265
+ *
266
+ * @static
267
+ * @memberOf _
268
+ * @since 0.1.0
269
+ * @category Lang
270
+ * @param {*} value The value to check.
271
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
272
+ * @example
273
+ *
274
+ * _.isObject({});
275
+ * // => true
276
+ *
277
+ * _.isObject([1, 2, 3]);
278
+ * // => true
279
+ *
280
+ * _.isObject(_.noop);
281
+ * // => true
282
+ *
283
+ * _.isObject(null);
284
+ * // => false
285
+ */
286
+ function isObject(value) {
287
+ var type = typeof value;
288
+ return value != null && (type == 'object' || type == 'function');
289
+ }
290
+
291
+ /**
292
+ * This method returns the first argument it receives.
293
+ *
294
+ * @static
295
+ * @since 0.1.0
296
+ * @memberOf _
297
+ * @category Util
298
+ * @param {*} value Any value.
299
+ * @returns {*} Returns `value`.
300
+ * @example
301
+ *
302
+ * var object = { 'a': 1 };
303
+ *
304
+ * console.log(_.identity(object) === object);
305
+ * // => true
306
+ */
307
+ function identity(value) {
308
+ return value;
309
+ }
310
+
311
+ /** `Object#toString` result references. */
312
+ var asyncTag = '[object AsyncFunction]',
313
+ funcTag$1 = '[object Function]',
314
+ genTag = '[object GeneratorFunction]',
315
+ proxyTag = '[object Proxy]';
316
+
317
+ /**
318
+ * Checks if `value` is classified as a `Function` object.
319
+ *
320
+ * @static
321
+ * @memberOf _
322
+ * @since 0.1.0
323
+ * @category Lang
324
+ * @param {*} value The value to check.
325
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
326
+ * @example
327
+ *
328
+ * _.isFunction(_);
329
+ * // => true
330
+ *
331
+ * _.isFunction(/abc/);
332
+ * // => false
333
+ */
334
+ function isFunction(value) {
335
+ if (!isObject(value)) {
336
+ return false;
337
+ }
338
+ // The use of `Object#toString` avoids issues with the `typeof` operator
339
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
340
+ var tag = baseGetTag(value);
341
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
342
+ }
343
+
344
+ /** Used to detect overreaching core-js shims. */
345
+ var coreJsData = root$1['__core-js_shared__'];
346
+
347
+ var coreJsData$1 = coreJsData;
348
+
349
+ /** Used to detect methods masquerading as native. */
350
+ var maskSrcKey = (function() {
351
+ var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
352
+ return uid ? ('Symbol(src)_1.' + uid) : '';
353
+ }());
354
+
355
+ /**
356
+ * Checks if `func` has its source masked.
357
+ *
358
+ * @private
359
+ * @param {Function} func The function to check.
360
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
361
+ */
362
+ function isMasked(func) {
363
+ return !!maskSrcKey && (maskSrcKey in func);
364
+ }
365
+
366
+ /** Used for built-in method references. */
367
+ var funcProto$1 = Function.prototype;
368
+
369
+ /** Used to resolve the decompiled source of functions. */
370
+ var funcToString$1 = funcProto$1.toString;
371
+
372
+ /**
373
+ * Converts `func` to its source code.
374
+ *
375
+ * @private
376
+ * @param {Function} func The function to convert.
377
+ * @returns {string} Returns the source code.
378
+ */
379
+ function toSource(func) {
380
+ if (func != null) {
381
+ try {
382
+ return funcToString$1.call(func);
383
+ } catch (e) {}
384
+ try {
385
+ return (func + '');
386
+ } catch (e) {}
387
+ }
388
+ return '';
389
+ }
390
+
391
+ /**
392
+ * Used to match `RegExp`
393
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
394
+ */
395
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
396
+
397
+ /** Used to detect host constructors (Safari). */
398
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
399
+
400
+ /** Used for built-in method references. */
401
+ var funcProto = Function.prototype,
402
+ objectProto$a = Object.prototype;
403
+
404
+ /** Used to resolve the decompiled source of functions. */
405
+ var funcToString = funcProto.toString;
406
+
407
+ /** Used to check objects for own properties. */
408
+ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
409
+
410
+ /** Used to detect if a method is native. */
411
+ var reIsNative = RegExp('^' +
412
+ funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
413
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
414
+ );
415
+
416
+ /**
417
+ * The base implementation of `_.isNative` without bad shim checks.
418
+ *
419
+ * @private
420
+ * @param {*} value The value to check.
421
+ * @returns {boolean} Returns `true` if `value` is a native function,
422
+ * else `false`.
423
+ */
424
+ function baseIsNative(value) {
425
+ if (!isObject(value) || isMasked(value)) {
426
+ return false;
427
+ }
428
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
429
+ return pattern.test(toSource(value));
430
+ }
431
+
432
+ /**
433
+ * Gets the value at `key` of `object`.
434
+ *
435
+ * @private
436
+ * @param {Object} [object] The object to query.
437
+ * @param {string} key The key of the property to get.
438
+ * @returns {*} Returns the property value.
439
+ */
440
+ function getValue(object, key) {
441
+ return object == null ? undefined : object[key];
442
+ }
443
+
444
+ /**
445
+ * Gets the native function at `key` of `object`.
446
+ *
447
+ * @private
448
+ * @param {Object} object The object to query.
449
+ * @param {string} key The key of the method to get.
450
+ * @returns {*} Returns the function if it's native, else `undefined`.
451
+ */
452
+ function getNative(object, key) {
453
+ var value = getValue(object, key);
454
+ return baseIsNative(value) ? value : undefined;
455
+ }
456
+
457
+ /* Built-in method references that are verified to be native. */
458
+ var WeakMap = getNative(root$1, 'WeakMap');
459
+
460
+ var WeakMap$1 = WeakMap;
461
+
462
+ /**
463
+ * A faster alternative to `Function#apply`, this function invokes `func`
464
+ * with the `this` binding of `thisArg` and the arguments of `args`.
465
+ *
466
+ * @private
467
+ * @param {Function} func The function to invoke.
468
+ * @param {*} thisArg The `this` binding of `func`.
469
+ * @param {Array} args The arguments to invoke `func` with.
470
+ * @returns {*} Returns the result of `func`.
471
+ */
472
+ function apply(func, thisArg, args) {
473
+ switch (args.length) {
474
+ case 0: return func.call(thisArg);
475
+ case 1: return func.call(thisArg, args[0]);
476
+ case 2: return func.call(thisArg, args[0], args[1]);
477
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
478
+ }
479
+ return func.apply(thisArg, args);
480
+ }
481
+
482
+ /** Used to detect hot functions by number of calls within a span of milliseconds. */
483
+ var HOT_COUNT = 800,
484
+ HOT_SPAN = 16;
485
+
486
+ /* Built-in method references for those with the same name as other `lodash` methods. */
487
+ var nativeNow = Date.now;
488
+
489
+ /**
490
+ * Creates a function that'll short out and invoke `identity` instead
491
+ * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
492
+ * milliseconds.
493
+ *
494
+ * @private
495
+ * @param {Function} func The function to restrict.
496
+ * @returns {Function} Returns the new shortable function.
497
+ */
498
+ function shortOut(func) {
499
+ var count = 0,
500
+ lastCalled = 0;
501
+
502
+ return function() {
503
+ var stamp = nativeNow(),
504
+ remaining = HOT_SPAN - (stamp - lastCalled);
505
+
506
+ lastCalled = stamp;
507
+ if (remaining > 0) {
508
+ if (++count >= HOT_COUNT) {
509
+ return arguments[0];
510
+ }
511
+ } else {
512
+ count = 0;
513
+ }
514
+ return func.apply(undefined, arguments);
515
+ };
516
+ }
517
+
518
+ /**
519
+ * Creates a function that returns `value`.
520
+ *
521
+ * @static
522
+ * @memberOf _
523
+ * @since 2.4.0
524
+ * @category Util
525
+ * @param {*} value The value to return from the new function.
526
+ * @returns {Function} Returns the new constant function.
527
+ * @example
528
+ *
529
+ * var objects = _.times(2, _.constant({ 'a': 1 }));
530
+ *
531
+ * console.log(objects);
532
+ * // => [{ 'a': 1 }, { 'a': 1 }]
533
+ *
534
+ * console.log(objects[0] === objects[1]);
535
+ * // => true
536
+ */
537
+ function constant(value) {
538
+ return function() {
539
+ return value;
540
+ };
541
+ }
542
+
543
+ var defineProperty = (function() {
544
+ try {
545
+ var func = getNative(Object, 'defineProperty');
546
+ func({}, '', {});
547
+ return func;
548
+ } catch (e) {}
549
+ }());
550
+
551
+ var defineProperty$1 = defineProperty;
552
+
553
+ /**
554
+ * The base implementation of `setToString` without support for hot loop shorting.
555
+ *
556
+ * @private
557
+ * @param {Function} func The function to modify.
558
+ * @param {Function} string The `toString` result.
559
+ * @returns {Function} Returns `func`.
560
+ */
561
+ var baseSetToString = !defineProperty$1 ? identity : function(func, string) {
562
+ return defineProperty$1(func, 'toString', {
563
+ 'configurable': true,
564
+ 'enumerable': false,
565
+ 'value': constant(string),
566
+ 'writable': true
567
+ });
568
+ };
569
+
570
+ var baseSetToString$1 = baseSetToString;
571
+
572
+ /**
573
+ * Sets the `toString` method of `func` to return `string`.
574
+ *
575
+ * @private
576
+ * @param {Function} func The function to modify.
577
+ * @param {Function} string The `toString` result.
578
+ * @returns {Function} Returns `func`.
579
+ */
580
+ var setToString = shortOut(baseSetToString$1);
581
+
582
+ var setToString$1 = setToString;
583
+
584
+ /** Used as references for various `Number` constants. */
585
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
586
+
587
+ /** Used to detect unsigned integer values. */
588
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
589
+
590
+ /**
591
+ * Checks if `value` is a valid array-like index.
592
+ *
593
+ * @private
594
+ * @param {*} value The value to check.
595
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
596
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
597
+ */
598
+ function isIndex(value, length) {
599
+ var type = typeof value;
600
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
601
+
602
+ return !!length &&
603
+ (type == 'number' ||
604
+ (type != 'symbol' && reIsUint.test(value))) &&
605
+ (value > -1 && value % 1 == 0 && value < length);
606
+ }
607
+
608
+ /**
609
+ * The base implementation of `assignValue` and `assignMergeValue` without
610
+ * value checks.
611
+ *
612
+ * @private
613
+ * @param {Object} object The object to modify.
614
+ * @param {string} key The key of the property to assign.
615
+ * @param {*} value The value to assign.
616
+ */
617
+ function baseAssignValue(object, key, value) {
618
+ if (key == '__proto__' && defineProperty$1) {
619
+ defineProperty$1(object, key, {
620
+ 'configurable': true,
621
+ 'enumerable': true,
622
+ 'value': value,
623
+ 'writable': true
624
+ });
625
+ } else {
626
+ object[key] = value;
627
+ }
628
+ }
629
+
630
+ /**
631
+ * Performs a
632
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
633
+ * comparison between two values to determine if they are equivalent.
634
+ *
635
+ * @static
636
+ * @memberOf _
637
+ * @since 4.0.0
638
+ * @category Lang
639
+ * @param {*} value The value to compare.
640
+ * @param {*} other The other value to compare.
641
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
642
+ * @example
643
+ *
644
+ * var object = { 'a': 1 };
645
+ * var other = { 'a': 1 };
646
+ *
647
+ * _.eq(object, object);
648
+ * // => true
649
+ *
650
+ * _.eq(object, other);
651
+ * // => false
652
+ *
653
+ * _.eq('a', 'a');
654
+ * // => true
655
+ *
656
+ * _.eq('a', Object('a'));
657
+ * // => false
658
+ *
659
+ * _.eq(NaN, NaN);
660
+ * // => true
661
+ */
662
+ function eq(value, other) {
663
+ return value === other || (value !== value && other !== other);
664
+ }
665
+
666
+ /** Used for built-in method references. */
667
+ var objectProto$9 = Object.prototype;
668
+
669
+ /** Used to check objects for own properties. */
670
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
671
+
672
+ /**
673
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
674
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
675
+ * for equality comparisons.
676
+ *
677
+ * @private
678
+ * @param {Object} object The object to modify.
679
+ * @param {string} key The key of the property to assign.
680
+ * @param {*} value The value to assign.
681
+ */
682
+ function assignValue(object, key, value) {
683
+ var objValue = object[key];
684
+ if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) ||
685
+ (value === undefined && !(key in object))) {
686
+ baseAssignValue(object, key, value);
687
+ }
688
+ }
689
+
690
+ /* Built-in method references for those with the same name as other `lodash` methods. */
691
+ var nativeMax = Math.max;
692
+
693
+ /**
694
+ * A specialized version of `baseRest` which transforms the rest array.
695
+ *
696
+ * @private
697
+ * @param {Function} func The function to apply a rest parameter to.
698
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
699
+ * @param {Function} transform The rest array transform.
700
+ * @returns {Function} Returns the new function.
701
+ */
702
+ function overRest(func, start, transform) {
703
+ start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
704
+ return function() {
705
+ var args = arguments,
706
+ index = -1,
707
+ length = nativeMax(args.length - start, 0),
708
+ array = Array(length);
709
+
710
+ while (++index < length) {
711
+ array[index] = args[start + index];
712
+ }
713
+ index = -1;
714
+ var otherArgs = Array(start + 1);
715
+ while (++index < start) {
716
+ otherArgs[index] = args[index];
717
+ }
718
+ otherArgs[start] = transform(array);
719
+ return apply(func, this, otherArgs);
720
+ };
721
+ }
722
+
723
+ /** Used as references for various `Number` constants. */
724
+ var MAX_SAFE_INTEGER = 9007199254740991;
725
+
726
+ /**
727
+ * Checks if `value` is a valid array-like length.
728
+ *
729
+ * **Note:** This method is loosely based on
730
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
731
+ *
732
+ * @static
733
+ * @memberOf _
734
+ * @since 4.0.0
735
+ * @category Lang
736
+ * @param {*} value The value to check.
737
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
738
+ * @example
739
+ *
740
+ * _.isLength(3);
741
+ * // => true
742
+ *
743
+ * _.isLength(Number.MIN_VALUE);
744
+ * // => false
745
+ *
746
+ * _.isLength(Infinity);
747
+ * // => false
748
+ *
749
+ * _.isLength('3');
750
+ * // => false
751
+ */
752
+ function isLength(value) {
753
+ return typeof value == 'number' &&
754
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
755
+ }
756
+
757
+ /**
758
+ * Checks if `value` is array-like. A value is considered array-like if it's
759
+ * not a function and has a `value.length` that's an integer greater than or
760
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
761
+ *
762
+ * @static
763
+ * @memberOf _
764
+ * @since 4.0.0
765
+ * @category Lang
766
+ * @param {*} value The value to check.
767
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
768
+ * @example
769
+ *
770
+ * _.isArrayLike([1, 2, 3]);
771
+ * // => true
772
+ *
773
+ * _.isArrayLike(document.body.children);
774
+ * // => true
775
+ *
776
+ * _.isArrayLike('abc');
777
+ * // => true
778
+ *
779
+ * _.isArrayLike(_.noop);
780
+ * // => false
781
+ */
782
+ function isArrayLike(value) {
783
+ return value != null && isLength(value.length) && !isFunction(value);
784
+ }
785
+
786
+ /** Used for built-in method references. */
787
+ var objectProto$8 = Object.prototype;
788
+
789
+ /**
790
+ * Checks if `value` is likely a prototype object.
791
+ *
792
+ * @private
793
+ * @param {*} value The value to check.
794
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
795
+ */
796
+ function isPrototype(value) {
797
+ var Ctor = value && value.constructor,
798
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
799
+
800
+ return value === proto;
801
+ }
802
+
803
+ /**
804
+ * The base implementation of `_.times` without support for iteratee shorthands
805
+ * or max array length checks.
806
+ *
807
+ * @private
808
+ * @param {number} n The number of times to invoke `iteratee`.
809
+ * @param {Function} iteratee The function invoked per iteration.
810
+ * @returns {Array} Returns the array of results.
811
+ */
812
+ function baseTimes(n, iteratee) {
813
+ var index = -1,
814
+ result = Array(n);
815
+
816
+ while (++index < n) {
817
+ result[index] = iteratee(index);
818
+ }
819
+ return result;
820
+ }
821
+
822
+ /** `Object#toString` result references. */
823
+ var argsTag$2 = '[object Arguments]';
824
+
825
+ /**
826
+ * The base implementation of `_.isArguments`.
827
+ *
828
+ * @private
829
+ * @param {*} value The value to check.
830
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
831
+ */
832
+ function baseIsArguments(value) {
833
+ return isObjectLike(value) && baseGetTag(value) == argsTag$2;
834
+ }
835
+
836
+ /** Used for built-in method references. */
837
+ var objectProto$7 = Object.prototype;
838
+
839
+ /** Used to check objects for own properties. */
840
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
841
+
842
+ /** Built-in value references. */
843
+ var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
844
+
845
+ /**
846
+ * Checks if `value` is likely an `arguments` object.
847
+ *
848
+ * @static
849
+ * @memberOf _
850
+ * @since 0.1.0
851
+ * @category Lang
852
+ * @param {*} value The value to check.
853
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
854
+ * else `false`.
855
+ * @example
856
+ *
857
+ * _.isArguments(function() { return arguments; }());
858
+ * // => true
859
+ *
860
+ * _.isArguments([1, 2, 3]);
861
+ * // => false
862
+ */
863
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
864
+ return isObjectLike(value) && hasOwnProperty$6.call(value, 'callee') &&
865
+ !propertyIsEnumerable$1.call(value, 'callee');
866
+ };
867
+
868
+ var isArguments$1 = isArguments;
869
+
870
+ /**
871
+ * This method returns `false`.
872
+ *
873
+ * @static
874
+ * @memberOf _
875
+ * @since 4.13.0
876
+ * @category Util
877
+ * @returns {boolean} Returns `false`.
878
+ * @example
879
+ *
880
+ * _.times(2, _.stubFalse);
881
+ * // => [false, false]
882
+ */
883
+ function stubFalse() {
884
+ return false;
885
+ }
886
+
887
+ /** Detect free variable `exports`. */
888
+ var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
889
+
890
+ /** Detect free variable `module`. */
891
+ var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
892
+
893
+ /** Detect the popular CommonJS extension `module.exports`. */
894
+ var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
895
+
896
+ /** Built-in value references. */
897
+ var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
898
+
899
+ /* Built-in method references for those with the same name as other `lodash` methods. */
900
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
901
+
902
+ /**
903
+ * Checks if `value` is a buffer.
904
+ *
905
+ * @static
906
+ * @memberOf _
907
+ * @since 4.3.0
908
+ * @category Lang
909
+ * @param {*} value The value to check.
910
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
911
+ * @example
912
+ *
913
+ * _.isBuffer(new Buffer(2));
914
+ * // => true
915
+ *
916
+ * _.isBuffer(new Uint8Array(2));
917
+ * // => false
918
+ */
919
+ var isBuffer = nativeIsBuffer || stubFalse;
920
+
921
+ var isBuffer$1 = isBuffer;
922
+
923
+ /** `Object#toString` result references. */
924
+ var argsTag$1 = '[object Arguments]',
925
+ arrayTag$1 = '[object Array]',
926
+ boolTag$1 = '[object Boolean]',
927
+ dateTag$1 = '[object Date]',
928
+ errorTag$1 = '[object Error]',
929
+ funcTag = '[object Function]',
930
+ mapTag$2 = '[object Map]',
931
+ numberTag$1 = '[object Number]',
932
+ objectTag$2 = '[object Object]',
933
+ regexpTag$1 = '[object RegExp]',
934
+ setTag$2 = '[object Set]',
935
+ stringTag$1 = '[object String]',
936
+ weakMapTag$1 = '[object WeakMap]';
937
+
938
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
939
+ dataViewTag$2 = '[object DataView]',
940
+ float32Tag = '[object Float32Array]',
941
+ float64Tag = '[object Float64Array]',
942
+ int8Tag = '[object Int8Array]',
943
+ int16Tag = '[object Int16Array]',
944
+ int32Tag = '[object Int32Array]',
945
+ uint8Tag = '[object Uint8Array]',
946
+ uint8ClampedTag = '[object Uint8ClampedArray]',
947
+ uint16Tag = '[object Uint16Array]',
948
+ uint32Tag = '[object Uint32Array]';
949
+
950
+ /** Used to identify `toStringTag` values of typed arrays. */
951
+ var typedArrayTags = {};
952
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
953
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
954
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
955
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
956
+ typedArrayTags[uint32Tag] = true;
957
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
958
+ typedArrayTags[arrayBufferTag$1] = typedArrayTags[boolTag$1] =
959
+ typedArrayTags[dataViewTag$2] = typedArrayTags[dateTag$1] =
960
+ typedArrayTags[errorTag$1] = typedArrayTags[funcTag] =
961
+ typedArrayTags[mapTag$2] = typedArrayTags[numberTag$1] =
962
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$1] =
963
+ typedArrayTags[setTag$2] = typedArrayTags[stringTag$1] =
964
+ typedArrayTags[weakMapTag$1] = false;
965
+
966
+ /**
967
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
968
+ *
969
+ * @private
970
+ * @param {*} value The value to check.
971
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
972
+ */
973
+ function baseIsTypedArray(value) {
974
+ return isObjectLike(value) &&
975
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
976
+ }
977
+
978
+ /**
979
+ * The base implementation of `_.unary` without support for storing metadata.
980
+ *
981
+ * @private
982
+ * @param {Function} func The function to cap arguments for.
983
+ * @returns {Function} Returns the new capped function.
984
+ */
985
+ function baseUnary(func) {
986
+ return function(value) {
987
+ return func(value);
988
+ };
989
+ }
990
+
991
+ /** Detect free variable `exports`. */
992
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
993
+
994
+ /** Detect free variable `module`. */
995
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
996
+
997
+ /** Detect the popular CommonJS extension `module.exports`. */
998
+ var moduleExports = freeModule && freeModule.exports === freeExports;
999
+
1000
+ /** Detect free variable `process` from Node.js. */
1001
+ var freeProcess = moduleExports && freeGlobal$1.process;
1002
+
1003
+ /** Used to access faster Node.js helpers. */
1004
+ var nodeUtil = (function() {
1005
+ try {
1006
+ // Use `util.types` for Node.js 10+.
1007
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
1008
+
1009
+ if (types) {
1010
+ return types;
1011
+ }
1012
+
1013
+ // Legacy `process.binding('util')` for Node.js < 10.
1014
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
1015
+ } catch (e) {}
1016
+ }());
1017
+
1018
+ var nodeUtil$1 = nodeUtil;
1019
+
1020
+ /* Node.js helper references. */
1021
+ var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
1022
+
1023
+ /**
1024
+ * Checks if `value` is classified as a typed array.
1025
+ *
1026
+ * @static
1027
+ * @memberOf _
1028
+ * @since 3.0.0
1029
+ * @category Lang
1030
+ * @param {*} value The value to check.
1031
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1032
+ * @example
1033
+ *
1034
+ * _.isTypedArray(new Uint8Array);
1035
+ * // => true
1036
+ *
1037
+ * _.isTypedArray([]);
1038
+ * // => false
1039
+ */
1040
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1041
+
1042
+ var isTypedArray$1 = isTypedArray;
1043
+
1044
+ /** Used for built-in method references. */
1045
+ var objectProto$6 = Object.prototype;
1046
+
1047
+ /** Used to check objects for own properties. */
1048
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
1049
+
1050
+ /**
1051
+ * Creates an array of the enumerable property names of the array-like `value`.
1052
+ *
1053
+ * @private
1054
+ * @param {*} value The value to query.
1055
+ * @param {boolean} inherited Specify returning inherited property names.
1056
+ * @returns {Array} Returns the array of property names.
1057
+ */
1058
+ function arrayLikeKeys(value, inherited) {
1059
+ var isArr = isArray$1(value),
1060
+ isArg = !isArr && isArguments$1(value),
1061
+ isBuff = !isArr && !isArg && isBuffer$1(value),
1062
+ isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
1063
+ skipIndexes = isArr || isArg || isBuff || isType,
1064
+ result = skipIndexes ? baseTimes(value.length, String) : [],
1065
+ length = result.length;
1066
+
1067
+ for (var key in value) {
1068
+ if ((inherited || hasOwnProperty$5.call(value, key)) &&
1069
+ !(skipIndexes && (
1070
+ // Safari 9 has enumerable `arguments.length` in strict mode.
1071
+ key == 'length' ||
1072
+ // Node.js 0.10 has enumerable non-index properties on buffers.
1073
+ (isBuff && (key == 'offset' || key == 'parent')) ||
1074
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
1075
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1076
+ // Skip index properties.
1077
+ isIndex(key, length)
1078
+ ))) {
1079
+ result.push(key);
1080
+ }
1081
+ }
1082
+ return result;
1083
+ }
1084
+
1085
+ /**
1086
+ * Creates a unary function that invokes `func` with its argument transformed.
1087
+ *
1088
+ * @private
1089
+ * @param {Function} func The function to wrap.
1090
+ * @param {Function} transform The argument transform.
1091
+ * @returns {Function} Returns the new function.
1092
+ */
1093
+ function overArg(func, transform) {
1094
+ return function(arg) {
1095
+ return func(transform(arg));
1096
+ };
1097
+ }
1098
+
1099
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1100
+ var nativeKeys = overArg(Object.keys, Object);
1101
+
1102
+ var nativeKeys$1 = nativeKeys;
1103
+
1104
+ /** Used for built-in method references. */
1105
+ var objectProto$5 = Object.prototype;
1106
+
1107
+ /** Used to check objects for own properties. */
1108
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
1109
+
1110
+ /**
1111
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1112
+ *
1113
+ * @private
1114
+ * @param {Object} object The object to query.
1115
+ * @returns {Array} Returns the array of property names.
1116
+ */
1117
+ function baseKeys(object) {
1118
+ if (!isPrototype(object)) {
1119
+ return nativeKeys$1(object);
1120
+ }
1121
+ var result = [];
1122
+ for (var key in Object(object)) {
1123
+ if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
1124
+ result.push(key);
1125
+ }
1126
+ }
1127
+ return result;
1128
+ }
1129
+
1130
+ /**
1131
+ * Creates an array of the own enumerable property names of `object`.
1132
+ *
1133
+ * **Note:** Non-object values are coerced to objects. See the
1134
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1135
+ * for more details.
1136
+ *
1137
+ * @static
1138
+ * @since 0.1.0
1139
+ * @memberOf _
1140
+ * @category Object
1141
+ * @param {Object} object The object to query.
1142
+ * @returns {Array} Returns the array of property names.
1143
+ * @example
1144
+ *
1145
+ * function Foo() {
1146
+ * this.a = 1;
1147
+ * this.b = 2;
1148
+ * }
1149
+ *
1150
+ * Foo.prototype.c = 3;
1151
+ *
1152
+ * _.keys(new Foo);
1153
+ * // => ['a', 'b'] (iteration order is not guaranteed)
1154
+ *
1155
+ * _.keys('hi');
1156
+ * // => ['0', '1']
1157
+ */
1158
+ function keys(object) {
1159
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1160
+ }
1161
+
1162
+ /** Used to match property names within property paths. */
1163
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1164
+ reIsPlainProp = /^\w*$/;
1165
+
1166
+ /**
1167
+ * Checks if `value` is a property name and not a property path.
1168
+ *
1169
+ * @private
1170
+ * @param {*} value The value to check.
1171
+ * @param {Object} [object] The object to query keys on.
1172
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1173
+ */
1174
+ function isKey(value, object) {
1175
+ if (isArray$1(value)) {
1176
+ return false;
1177
+ }
1178
+ var type = typeof value;
1179
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1180
+ value == null || isSymbol(value)) {
1181
+ return true;
1182
+ }
1183
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1184
+ (object != null && value in Object(object));
1185
+ }
1186
+
1187
+ /* Built-in method references that are verified to be native. */
1188
+ var nativeCreate = getNative(Object, 'create');
1189
+
1190
+ var nativeCreate$1 = nativeCreate;
1191
+
1192
+ /**
1193
+ * Removes all key-value entries from the hash.
1194
+ *
1195
+ * @private
1196
+ * @name clear
1197
+ * @memberOf Hash
1198
+ */
1199
+ function hashClear() {
1200
+ this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
1201
+ this.size = 0;
1202
+ }
1203
+
1204
+ /**
1205
+ * Removes `key` and its value from the hash.
1206
+ *
1207
+ * @private
1208
+ * @name delete
1209
+ * @memberOf Hash
1210
+ * @param {Object} hash The hash to modify.
1211
+ * @param {string} key The key of the value to remove.
1212
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1213
+ */
1214
+ function hashDelete(key) {
1215
+ var result = this.has(key) && delete this.__data__[key];
1216
+ this.size -= result ? 1 : 0;
1217
+ return result;
1218
+ }
1219
+
1220
+ /** Used to stand-in for `undefined` hash values. */
1221
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
1222
+
1223
+ /** Used for built-in method references. */
1224
+ var objectProto$4 = Object.prototype;
1225
+
1226
+ /** Used to check objects for own properties. */
1227
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1228
+
1229
+ /**
1230
+ * Gets the hash value for `key`.
1231
+ *
1232
+ * @private
1233
+ * @name get
1234
+ * @memberOf Hash
1235
+ * @param {string} key The key of the value to get.
1236
+ * @returns {*} Returns the entry value.
1237
+ */
1238
+ function hashGet(key) {
1239
+ var data = this.__data__;
1240
+ if (nativeCreate$1) {
1241
+ var result = data[key];
1242
+ return result === HASH_UNDEFINED$2 ? undefined : result;
1243
+ }
1244
+ return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
1245
+ }
1246
+
1247
+ /** Used for built-in method references. */
1248
+ var objectProto$3 = Object.prototype;
1249
+
1250
+ /** Used to check objects for own properties. */
1251
+ var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
1252
+
1253
+ /**
1254
+ * Checks if a hash value for `key` exists.
1255
+ *
1256
+ * @private
1257
+ * @name has
1258
+ * @memberOf Hash
1259
+ * @param {string} key The key of the entry to check.
1260
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1261
+ */
1262
+ function hashHas(key) {
1263
+ var data = this.__data__;
1264
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
1265
+ }
1266
+
1267
+ /** Used to stand-in for `undefined` hash values. */
1268
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1269
+
1270
+ /**
1271
+ * Sets the hash `key` to `value`.
1272
+ *
1273
+ * @private
1274
+ * @name set
1275
+ * @memberOf Hash
1276
+ * @param {string} key The key of the value to set.
1277
+ * @param {*} value The value to set.
1278
+ * @returns {Object} Returns the hash instance.
1279
+ */
1280
+ function hashSet(key, value) {
1281
+ var data = this.__data__;
1282
+ this.size += this.has(key) ? 0 : 1;
1283
+ data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
1284
+ return this;
1285
+ }
1286
+
1287
+ /**
1288
+ * Creates a hash object.
1289
+ *
1290
+ * @private
1291
+ * @constructor
1292
+ * @param {Array} [entries] The key-value pairs to cache.
1293
+ */
1294
+ function Hash(entries) {
1295
+ var index = -1,
1296
+ length = entries == null ? 0 : entries.length;
1297
+
1298
+ this.clear();
1299
+ while (++index < length) {
1300
+ var entry = entries[index];
1301
+ this.set(entry[0], entry[1]);
1302
+ }
1303
+ }
1304
+
1305
+ // Add methods to `Hash`.
1306
+ Hash.prototype.clear = hashClear;
1307
+ Hash.prototype['delete'] = hashDelete;
1308
+ Hash.prototype.get = hashGet;
1309
+ Hash.prototype.has = hashHas;
1310
+ Hash.prototype.set = hashSet;
1311
+
1312
+ /**
1313
+ * Removes all key-value entries from the list cache.
1314
+ *
1315
+ * @private
1316
+ * @name clear
1317
+ * @memberOf ListCache
1318
+ */
1319
+ function listCacheClear() {
1320
+ this.__data__ = [];
1321
+ this.size = 0;
1322
+ }
1323
+
1324
+ /**
1325
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1326
+ *
1327
+ * @private
1328
+ * @param {Array} array The array to inspect.
1329
+ * @param {*} key The key to search for.
1330
+ * @returns {number} Returns the index of the matched value, else `-1`.
1331
+ */
1332
+ function assocIndexOf(array, key) {
1333
+ var length = array.length;
1334
+ while (length--) {
1335
+ if (eq(array[length][0], key)) {
1336
+ return length;
1337
+ }
1338
+ }
1339
+ return -1;
1340
+ }
1341
+
1342
+ /** Used for built-in method references. */
1343
+ var arrayProto = Array.prototype;
1344
+
1345
+ /** Built-in value references. */
1346
+ var splice = arrayProto.splice;
1347
+
1348
+ /**
1349
+ * Removes `key` and its value from the list cache.
1350
+ *
1351
+ * @private
1352
+ * @name delete
1353
+ * @memberOf ListCache
1354
+ * @param {string} key The key of the value to remove.
1355
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1356
+ */
1357
+ function listCacheDelete(key) {
1358
+ var data = this.__data__,
1359
+ index = assocIndexOf(data, key);
1360
+
1361
+ if (index < 0) {
1362
+ return false;
1363
+ }
1364
+ var lastIndex = data.length - 1;
1365
+ if (index == lastIndex) {
1366
+ data.pop();
1367
+ } else {
1368
+ splice.call(data, index, 1);
1369
+ }
1370
+ --this.size;
1371
+ return true;
1372
+ }
1373
+
1374
+ /**
1375
+ * Gets the list cache value for `key`.
1376
+ *
1377
+ * @private
1378
+ * @name get
1379
+ * @memberOf ListCache
1380
+ * @param {string} key The key of the value to get.
1381
+ * @returns {*} Returns the entry value.
1382
+ */
1383
+ function listCacheGet(key) {
1384
+ var data = this.__data__,
1385
+ index = assocIndexOf(data, key);
1386
+
1387
+ return index < 0 ? undefined : data[index][1];
1388
+ }
1389
+
1390
+ /**
1391
+ * Checks if a list cache value for `key` exists.
1392
+ *
1393
+ * @private
1394
+ * @name has
1395
+ * @memberOf ListCache
1396
+ * @param {string} key The key of the entry to check.
1397
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1398
+ */
1399
+ function listCacheHas(key) {
1400
+ return assocIndexOf(this.__data__, key) > -1;
1401
+ }
1402
+
1403
+ /**
1404
+ * Sets the list cache `key` to `value`.
1405
+ *
1406
+ * @private
1407
+ * @name set
1408
+ * @memberOf ListCache
1409
+ * @param {string} key The key of the value to set.
1410
+ * @param {*} value The value to set.
1411
+ * @returns {Object} Returns the list cache instance.
1412
+ */
1413
+ function listCacheSet(key, value) {
1414
+ var data = this.__data__,
1415
+ index = assocIndexOf(data, key);
1416
+
1417
+ if (index < 0) {
1418
+ ++this.size;
1419
+ data.push([key, value]);
1420
+ } else {
1421
+ data[index][1] = value;
1422
+ }
1423
+ return this;
1424
+ }
1425
+
1426
+ /**
1427
+ * Creates an list cache object.
1428
+ *
1429
+ * @private
1430
+ * @constructor
1431
+ * @param {Array} [entries] The key-value pairs to cache.
1432
+ */
1433
+ function ListCache(entries) {
1434
+ var index = -1,
1435
+ length = entries == null ? 0 : entries.length;
1436
+
1437
+ this.clear();
1438
+ while (++index < length) {
1439
+ var entry = entries[index];
1440
+ this.set(entry[0], entry[1]);
1441
+ }
1442
+ }
1443
+
1444
+ // Add methods to `ListCache`.
1445
+ ListCache.prototype.clear = listCacheClear;
1446
+ ListCache.prototype['delete'] = listCacheDelete;
1447
+ ListCache.prototype.get = listCacheGet;
1448
+ ListCache.prototype.has = listCacheHas;
1449
+ ListCache.prototype.set = listCacheSet;
1450
+
1451
+ /* Built-in method references that are verified to be native. */
1452
+ var Map = getNative(root$1, 'Map');
1453
+
1454
+ var Map$1 = Map;
1455
+
1456
+ /**
1457
+ * Removes all key-value entries from the map.
1458
+ *
1459
+ * @private
1460
+ * @name clear
1461
+ * @memberOf MapCache
1462
+ */
1463
+ function mapCacheClear() {
1464
+ this.size = 0;
1465
+ this.__data__ = {
1466
+ 'hash': new Hash,
1467
+ 'map': new (Map$1 || ListCache),
1468
+ 'string': new Hash
1469
+ };
1470
+ }
1471
+
1472
+ /**
1473
+ * Checks if `value` is suitable for use as unique object key.
1474
+ *
1475
+ * @private
1476
+ * @param {*} value The value to check.
1477
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1478
+ */
1479
+ function isKeyable(value) {
1480
+ var type = typeof value;
1481
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1482
+ ? (value !== '__proto__')
1483
+ : (value === null);
1484
+ }
1485
+
1486
+ /**
1487
+ * Gets the data for `map`.
1488
+ *
1489
+ * @private
1490
+ * @param {Object} map The map to query.
1491
+ * @param {string} key The reference key.
1492
+ * @returns {*} Returns the map data.
1493
+ */
1494
+ function getMapData(map, key) {
1495
+ var data = map.__data__;
1496
+ return isKeyable(key)
1497
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1498
+ : data.map;
1499
+ }
1500
+
1501
+ /**
1502
+ * Removes `key` and its value from the map.
1503
+ *
1504
+ * @private
1505
+ * @name delete
1506
+ * @memberOf MapCache
1507
+ * @param {string} key The key of the value to remove.
1508
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1509
+ */
1510
+ function mapCacheDelete(key) {
1511
+ var result = getMapData(this, key)['delete'](key);
1512
+ this.size -= result ? 1 : 0;
1513
+ return result;
1514
+ }
1515
+
1516
+ /**
1517
+ * Gets the map value for `key`.
1518
+ *
1519
+ * @private
1520
+ * @name get
1521
+ * @memberOf MapCache
1522
+ * @param {string} key The key of the value to get.
1523
+ * @returns {*} Returns the entry value.
1524
+ */
1525
+ function mapCacheGet(key) {
1526
+ return getMapData(this, key).get(key);
1527
+ }
1528
+
1529
+ /**
1530
+ * Checks if a map value for `key` exists.
1531
+ *
1532
+ * @private
1533
+ * @name has
1534
+ * @memberOf MapCache
1535
+ * @param {string} key The key of the entry to check.
1536
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1537
+ */
1538
+ function mapCacheHas(key) {
1539
+ return getMapData(this, key).has(key);
1540
+ }
1541
+
1542
+ /**
1543
+ * Sets the map `key` to `value`.
1544
+ *
1545
+ * @private
1546
+ * @name set
1547
+ * @memberOf MapCache
1548
+ * @param {string} key The key of the value to set.
1549
+ * @param {*} value The value to set.
1550
+ * @returns {Object} Returns the map cache instance.
1551
+ */
1552
+ function mapCacheSet(key, value) {
1553
+ var data = getMapData(this, key),
1554
+ size = data.size;
1555
+
1556
+ data.set(key, value);
1557
+ this.size += data.size == size ? 0 : 1;
1558
+ return this;
1559
+ }
1560
+
1561
+ /**
1562
+ * Creates a map cache object to store key-value pairs.
1563
+ *
1564
+ * @private
1565
+ * @constructor
1566
+ * @param {Array} [entries] The key-value pairs to cache.
1567
+ */
1568
+ function MapCache(entries) {
1569
+ var index = -1,
1570
+ length = entries == null ? 0 : entries.length;
1571
+
1572
+ this.clear();
1573
+ while (++index < length) {
1574
+ var entry = entries[index];
1575
+ this.set(entry[0], entry[1]);
1576
+ }
1577
+ }
1578
+
1579
+ // Add methods to `MapCache`.
1580
+ MapCache.prototype.clear = mapCacheClear;
1581
+ MapCache.prototype['delete'] = mapCacheDelete;
1582
+ MapCache.prototype.get = mapCacheGet;
1583
+ MapCache.prototype.has = mapCacheHas;
1584
+ MapCache.prototype.set = mapCacheSet;
1585
+
1586
+ /** Error message constants. */
1587
+ var FUNC_ERROR_TEXT = 'Expected a function';
1588
+
1589
+ /**
1590
+ * Creates a function that memoizes the result of `func`. If `resolver` is
1591
+ * provided, it determines the cache key for storing the result based on the
1592
+ * arguments provided to the memoized function. By default, the first argument
1593
+ * provided to the memoized function is used as the map cache key. The `func`
1594
+ * is invoked with the `this` binding of the memoized function.
1595
+ *
1596
+ * **Note:** The cache is exposed as the `cache` property on the memoized
1597
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
1598
+ * constructor with one whose instances implement the
1599
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1600
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1601
+ *
1602
+ * @static
1603
+ * @memberOf _
1604
+ * @since 0.1.0
1605
+ * @category Function
1606
+ * @param {Function} func The function to have its output memoized.
1607
+ * @param {Function} [resolver] The function to resolve the cache key.
1608
+ * @returns {Function} Returns the new memoized function.
1609
+ * @example
1610
+ *
1611
+ * var object = { 'a': 1, 'b': 2 };
1612
+ * var other = { 'c': 3, 'd': 4 };
1613
+ *
1614
+ * var values = _.memoize(_.values);
1615
+ * values(object);
1616
+ * // => [1, 2]
1617
+ *
1618
+ * values(other);
1619
+ * // => [3, 4]
1620
+ *
1621
+ * object.a = 2;
1622
+ * values(object);
1623
+ * // => [1, 2]
1624
+ *
1625
+ * // Modify the result cache.
1626
+ * values.cache.set(object, ['a', 'b']);
1627
+ * values(object);
1628
+ * // => ['a', 'b']
1629
+ *
1630
+ * // Replace `_.memoize.Cache`.
1631
+ * _.memoize.Cache = WeakMap;
1632
+ */
1633
+ function memoize(func, resolver) {
1634
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1635
+ throw new TypeError(FUNC_ERROR_TEXT);
1636
+ }
1637
+ var memoized = function() {
1638
+ var args = arguments,
1639
+ key = resolver ? resolver.apply(this, args) : args[0],
1640
+ cache = memoized.cache;
1641
+
1642
+ if (cache.has(key)) {
1643
+ return cache.get(key);
1644
+ }
1645
+ var result = func.apply(this, args);
1646
+ memoized.cache = cache.set(key, result) || cache;
1647
+ return result;
1648
+ };
1649
+ memoized.cache = new (memoize.Cache || MapCache);
1650
+ return memoized;
1651
+ }
1652
+
1653
+ // Expose `MapCache`.
1654
+ memoize.Cache = MapCache;
1655
+
1656
+ /** Used as the maximum memoize cache size. */
1657
+ var MAX_MEMOIZE_SIZE = 500;
1658
+
1659
+ /**
1660
+ * A specialized version of `_.memoize` which clears the memoized function's
1661
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1662
+ *
1663
+ * @private
1664
+ * @param {Function} func The function to have its output memoized.
1665
+ * @returns {Function} Returns the new memoized function.
1666
+ */
1667
+ function memoizeCapped(func) {
1668
+ var result = memoize(func, function(key) {
1669
+ if (cache.size === MAX_MEMOIZE_SIZE) {
1670
+ cache.clear();
1671
+ }
1672
+ return key;
1673
+ });
1674
+
1675
+ var cache = result.cache;
1676
+ return result;
1677
+ }
1678
+
1679
+ /** Used to match property names within property paths. */
1680
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1681
+
1682
+ /** Used to match backslashes in property paths. */
1683
+ var reEscapeChar = /\\(\\)?/g;
1684
+
1685
+ /**
1686
+ * Converts `string` to a property path array.
1687
+ *
1688
+ * @private
1689
+ * @param {string} string The string to convert.
1690
+ * @returns {Array} Returns the property path array.
1691
+ */
1692
+ var stringToPath = memoizeCapped(function(string) {
1693
+ var result = [];
1694
+ if (string.charCodeAt(0) === 46 /* . */) {
1695
+ result.push('');
1696
+ }
1697
+ string.replace(rePropName, function(match, number, quote, subString) {
1698
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1699
+ });
1700
+ return result;
1701
+ });
1702
+
1703
+ var stringToPath$1 = stringToPath;
1704
+
1705
+ /**
1706
+ * Converts `value` to a string. An empty string is returned for `null`
1707
+ * and `undefined` values. The sign of `-0` is preserved.
1708
+ *
1709
+ * @static
1710
+ * @memberOf _
1711
+ * @since 4.0.0
1712
+ * @category Lang
1713
+ * @param {*} value The value to convert.
1714
+ * @returns {string} Returns the converted string.
1715
+ * @example
1716
+ *
1717
+ * _.toString(null);
1718
+ * // => ''
1719
+ *
1720
+ * _.toString(-0);
1721
+ * // => '-0'
1722
+ *
1723
+ * _.toString([1, 2, 3]);
1724
+ * // => '1,2,3'
1725
+ */
1726
+ function toString(value) {
1727
+ return value == null ? '' : baseToString(value);
1728
+ }
1729
+
1730
+ /**
1731
+ * Casts `value` to a path array if it's not one.
1732
+ *
1733
+ * @private
1734
+ * @param {*} value The value to inspect.
1735
+ * @param {Object} [object] The object to query keys on.
1736
+ * @returns {Array} Returns the cast property path array.
1737
+ */
1738
+ function castPath(value, object) {
1739
+ if (isArray$1(value)) {
1740
+ return value;
1741
+ }
1742
+ return isKey(value, object) ? [value] : stringToPath$1(toString(value));
1743
+ }
1744
+
1745
+ /** Used as references for various `Number` constants. */
1746
+ var INFINITY = 1 / 0;
1747
+
1748
+ /**
1749
+ * Converts `value` to a string key if it's not a string or symbol.
1750
+ *
1751
+ * @private
1752
+ * @param {*} value The value to inspect.
1753
+ * @returns {string|symbol} Returns the key.
1754
+ */
1755
+ function toKey(value) {
1756
+ if (typeof value == 'string' || isSymbol(value)) {
1757
+ return value;
1758
+ }
1759
+ var result = (value + '');
1760
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1761
+ }
1762
+
1763
+ /**
1764
+ * The base implementation of `_.get` without support for default values.
1765
+ *
1766
+ * @private
1767
+ * @param {Object} object The object to query.
1768
+ * @param {Array|string} path The path of the property to get.
1769
+ * @returns {*} Returns the resolved value.
1770
+ */
1771
+ function baseGet(object, path) {
1772
+ path = castPath(path, object);
1773
+
1774
+ var index = 0,
1775
+ length = path.length;
1776
+
1777
+ while (object != null && index < length) {
1778
+ object = object[toKey(path[index++])];
1779
+ }
1780
+ return (index && index == length) ? object : undefined;
1781
+ }
1782
+
1783
+ /**
1784
+ * Appends the elements of `values` to `array`.
1785
+ *
1786
+ * @private
1787
+ * @param {Array} array The array to modify.
1788
+ * @param {Array} values The values to append.
1789
+ * @returns {Array} Returns `array`.
1790
+ */
1791
+ function arrayPush(array, values) {
1792
+ var index = -1,
1793
+ length = values.length,
1794
+ offset = array.length;
1795
+
1796
+ while (++index < length) {
1797
+ array[offset + index] = values[index];
1798
+ }
1799
+ return array;
1800
+ }
1801
+
1802
+ /** Built-in value references. */
1803
+ var spreadableSymbol = Symbol$2 ? Symbol$2.isConcatSpreadable : undefined;
1804
+
1805
+ /**
1806
+ * Checks if `value` is a flattenable `arguments` object or array.
1807
+ *
1808
+ * @private
1809
+ * @param {*} value The value to check.
1810
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
1811
+ */
1812
+ function isFlattenable(value) {
1813
+ return isArray$1(value) || isArguments$1(value) ||
1814
+ !!(spreadableSymbol && value && value[spreadableSymbol]);
1815
+ }
1816
+
1817
+ /**
1818
+ * The base implementation of `_.flatten` with support for restricting flattening.
1819
+ *
1820
+ * @private
1821
+ * @param {Array} array The array to flatten.
1822
+ * @param {number} depth The maximum recursion depth.
1823
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
1824
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
1825
+ * @param {Array} [result=[]] The initial result value.
1826
+ * @returns {Array} Returns the new flattened array.
1827
+ */
1828
+ function baseFlatten(array, depth, predicate, isStrict, result) {
1829
+ var index = -1,
1830
+ length = array.length;
1831
+
1832
+ predicate || (predicate = isFlattenable);
1833
+ result || (result = []);
1834
+
1835
+ while (++index < length) {
1836
+ var value = array[index];
1837
+ if (depth > 0 && predicate(value)) {
1838
+ if (depth > 1) {
1839
+ // Recursively flatten arrays (susceptible to call stack limits).
1840
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
1841
+ } else {
1842
+ arrayPush(result, value);
1843
+ }
1844
+ } else if (!isStrict) {
1845
+ result[result.length] = value;
1846
+ }
1847
+ }
1848
+ return result;
1849
+ }
1850
+
1851
+ /**
1852
+ * Flattens `array` a single level deep.
1853
+ *
1854
+ * @static
1855
+ * @memberOf _
1856
+ * @since 0.1.0
1857
+ * @category Array
1858
+ * @param {Array} array The array to flatten.
1859
+ * @returns {Array} Returns the new flattened array.
1860
+ * @example
1861
+ *
1862
+ * _.flatten([1, [2, [3, [4]], 5]]);
1863
+ * // => [1, 2, [3, [4]], 5]
1864
+ */
1865
+ function flatten(array) {
1866
+ var length = array == null ? 0 : array.length;
1867
+ return length ? baseFlatten(array, 1) : [];
1868
+ }
1869
+
1870
+ /**
1871
+ * A specialized version of `baseRest` which flattens the rest array.
1872
+ *
1873
+ * @private
1874
+ * @param {Function} func The function to apply a rest parameter to.
1875
+ * @returns {Function} Returns the new function.
1876
+ */
1877
+ function flatRest(func) {
1878
+ return setToString$1(overRest(func, undefined, flatten), func + '');
1879
+ }
1880
+
1881
+ /**
1882
+ * Removes all key-value entries from the stack.
1883
+ *
1884
+ * @private
1885
+ * @name clear
1886
+ * @memberOf Stack
1887
+ */
1888
+ function stackClear() {
1889
+ this.__data__ = new ListCache;
1890
+ this.size = 0;
1891
+ }
1892
+
1893
+ /**
1894
+ * Removes `key` and its value from the stack.
1895
+ *
1896
+ * @private
1897
+ * @name delete
1898
+ * @memberOf Stack
1899
+ * @param {string} key The key of the value to remove.
1900
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1901
+ */
1902
+ function stackDelete(key) {
1903
+ var data = this.__data__,
1904
+ result = data['delete'](key);
1905
+
1906
+ this.size = data.size;
1907
+ return result;
1908
+ }
1909
+
1910
+ /**
1911
+ * Gets the stack value for `key`.
1912
+ *
1913
+ * @private
1914
+ * @name get
1915
+ * @memberOf Stack
1916
+ * @param {string} key The key of the value to get.
1917
+ * @returns {*} Returns the entry value.
1918
+ */
1919
+ function stackGet(key) {
1920
+ return this.__data__.get(key);
1921
+ }
1922
+
1923
+ /**
1924
+ * Checks if a stack value for `key` exists.
1925
+ *
1926
+ * @private
1927
+ * @name has
1928
+ * @memberOf Stack
1929
+ * @param {string} key The key of the entry to check.
1930
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1931
+ */
1932
+ function stackHas(key) {
1933
+ return this.__data__.has(key);
1934
+ }
1935
+
1936
+ /** Used as the size to enable large array optimizations. */
1937
+ var LARGE_ARRAY_SIZE = 200;
1938
+
1939
+ /**
1940
+ * Sets the stack `key` to `value`.
1941
+ *
1942
+ * @private
1943
+ * @name set
1944
+ * @memberOf Stack
1945
+ * @param {string} key The key of the value to set.
1946
+ * @param {*} value The value to set.
1947
+ * @returns {Object} Returns the stack cache instance.
1948
+ */
1949
+ function stackSet(key, value) {
1950
+ var data = this.__data__;
1951
+ if (data instanceof ListCache) {
1952
+ var pairs = data.__data__;
1953
+ if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1954
+ pairs.push([key, value]);
1955
+ this.size = ++data.size;
1956
+ return this;
1957
+ }
1958
+ data = this.__data__ = new MapCache(pairs);
1959
+ }
1960
+ data.set(key, value);
1961
+ this.size = data.size;
1962
+ return this;
1963
+ }
1964
+
1965
+ /**
1966
+ * Creates a stack cache object to store key-value pairs.
1967
+ *
1968
+ * @private
1969
+ * @constructor
1970
+ * @param {Array} [entries] The key-value pairs to cache.
1971
+ */
1972
+ function Stack(entries) {
1973
+ var data = this.__data__ = new ListCache(entries);
1974
+ this.size = data.size;
1975
+ }
1976
+
1977
+ // Add methods to `Stack`.
1978
+ Stack.prototype.clear = stackClear;
1979
+ Stack.prototype['delete'] = stackDelete;
1980
+ Stack.prototype.get = stackGet;
1981
+ Stack.prototype.has = stackHas;
1982
+ Stack.prototype.set = stackSet;
1983
+
1984
+ /**
1985
+ * A specialized version of `_.filter` for arrays without support for
1986
+ * iteratee shorthands.
1987
+ *
1988
+ * @private
1989
+ * @param {Array} [array] The array to iterate over.
1990
+ * @param {Function} predicate The function invoked per iteration.
1991
+ * @returns {Array} Returns the new filtered array.
1992
+ */
1993
+ function arrayFilter(array, predicate) {
1994
+ var index = -1,
1995
+ length = array == null ? 0 : array.length,
1996
+ resIndex = 0,
1997
+ result = [];
1998
+
1999
+ while (++index < length) {
2000
+ var value = array[index];
2001
+ if (predicate(value, index, array)) {
2002
+ result[resIndex++] = value;
2003
+ }
2004
+ }
2005
+ return result;
2006
+ }
2007
+
2008
+ /**
2009
+ * This method returns a new empty array.
2010
+ *
2011
+ * @static
2012
+ * @memberOf _
2013
+ * @since 4.13.0
2014
+ * @category Util
2015
+ * @returns {Array} Returns the new empty array.
2016
+ * @example
2017
+ *
2018
+ * var arrays = _.times(2, _.stubArray);
2019
+ *
2020
+ * console.log(arrays);
2021
+ * // => [[], []]
2022
+ *
2023
+ * console.log(arrays[0] === arrays[1]);
2024
+ * // => false
2025
+ */
2026
+ function stubArray() {
2027
+ return [];
2028
+ }
2029
+
2030
+ /** Used for built-in method references. */
2031
+ var objectProto$2 = Object.prototype;
2032
+
2033
+ /** Built-in value references. */
2034
+ var propertyIsEnumerable = objectProto$2.propertyIsEnumerable;
2035
+
2036
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2037
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
2038
+
2039
+ /**
2040
+ * Creates an array of the own enumerable symbols of `object`.
2041
+ *
2042
+ * @private
2043
+ * @param {Object} object The object to query.
2044
+ * @returns {Array} Returns the array of symbols.
2045
+ */
2046
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
2047
+ if (object == null) {
2048
+ return [];
2049
+ }
2050
+ object = Object(object);
2051
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
2052
+ return propertyIsEnumerable.call(object, symbol);
2053
+ });
2054
+ };
2055
+
2056
+ var getSymbols$1 = getSymbols;
2057
+
2058
+ /**
2059
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
2060
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
2061
+ * symbols of `object`.
2062
+ *
2063
+ * @private
2064
+ * @param {Object} object The object to query.
2065
+ * @param {Function} keysFunc The function to get the keys of `object`.
2066
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
2067
+ * @returns {Array} Returns the array of property names and symbols.
2068
+ */
2069
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
2070
+ var result = keysFunc(object);
2071
+ return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
2072
+ }
2073
+
2074
+ /**
2075
+ * Creates an array of own enumerable property names and symbols of `object`.
2076
+ *
2077
+ * @private
2078
+ * @param {Object} object The object to query.
2079
+ * @returns {Array} Returns the array of property names and symbols.
2080
+ */
2081
+ function getAllKeys(object) {
2082
+ return baseGetAllKeys(object, keys, getSymbols$1);
2083
+ }
2084
+
2085
+ /* Built-in method references that are verified to be native. */
2086
+ var DataView = getNative(root$1, 'DataView');
2087
+
2088
+ var DataView$1 = DataView;
2089
+
2090
+ /* Built-in method references that are verified to be native. */
2091
+ var Promise$1 = getNative(root$1, 'Promise');
2092
+
2093
+ var Promise$2 = Promise$1;
2094
+
2095
+ /* Built-in method references that are verified to be native. */
2096
+ var Set$1 = getNative(root$1, 'Set');
2097
+
2098
+ var Set$2 = Set$1;
2099
+
2100
+ /** `Object#toString` result references. */
2101
+ var mapTag$1 = '[object Map]',
2102
+ objectTag$1 = '[object Object]',
2103
+ promiseTag = '[object Promise]',
2104
+ setTag$1 = '[object Set]',
2105
+ weakMapTag = '[object WeakMap]';
2106
+
2107
+ var dataViewTag$1 = '[object DataView]';
2108
+
2109
+ /** Used to detect maps, sets, and weakmaps. */
2110
+ var dataViewCtorString = toSource(DataView$1),
2111
+ mapCtorString = toSource(Map$1),
2112
+ promiseCtorString = toSource(Promise$2),
2113
+ setCtorString = toSource(Set$2),
2114
+ weakMapCtorString = toSource(WeakMap$1);
2115
+
2116
+ /**
2117
+ * Gets the `toStringTag` of `value`.
2118
+ *
2119
+ * @private
2120
+ * @param {*} value The value to query.
2121
+ * @returns {string} Returns the `toStringTag`.
2122
+ */
2123
+ var getTag = baseGetTag;
2124
+
2125
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2126
+ if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$1) ||
2127
+ (Map$1 && getTag(new Map$1) != mapTag$1) ||
2128
+ (Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
2129
+ (Set$2 && getTag(new Set$2) != setTag$1) ||
2130
+ (WeakMap$1 && getTag(new WeakMap$1) != weakMapTag)) {
2131
+ getTag = function(value) {
2132
+ var result = baseGetTag(value),
2133
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
2134
+ ctorString = Ctor ? toSource(Ctor) : '';
2135
+
2136
+ if (ctorString) {
2137
+ switch (ctorString) {
2138
+ case dataViewCtorString: return dataViewTag$1;
2139
+ case mapCtorString: return mapTag$1;
2140
+ case promiseCtorString: return promiseTag;
2141
+ case setCtorString: return setTag$1;
2142
+ case weakMapCtorString: return weakMapTag;
2143
+ }
2144
+ }
2145
+ return result;
2146
+ };
2147
+ }
2148
+
2149
+ var getTag$1 = getTag;
2150
+
2151
+ /** Built-in value references. */
2152
+ var Uint8Array = root$1.Uint8Array;
2153
+
2154
+ var Uint8Array$1 = Uint8Array;
2155
+
2156
+ /** Used to stand-in for `undefined` hash values. */
2157
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
2158
+
2159
+ /**
2160
+ * Adds `value` to the array cache.
2161
+ *
2162
+ * @private
2163
+ * @name add
2164
+ * @memberOf SetCache
2165
+ * @alias push
2166
+ * @param {*} value The value to cache.
2167
+ * @returns {Object} Returns the cache instance.
2168
+ */
2169
+ function setCacheAdd(value) {
2170
+ this.__data__.set(value, HASH_UNDEFINED);
2171
+ return this;
2172
+ }
2173
+
2174
+ /**
2175
+ * Checks if `value` is in the array cache.
2176
+ *
2177
+ * @private
2178
+ * @name has
2179
+ * @memberOf SetCache
2180
+ * @param {*} value The value to search for.
2181
+ * @returns {number} Returns `true` if `value` is found, else `false`.
2182
+ */
2183
+ function setCacheHas(value) {
2184
+ return this.__data__.has(value);
2185
+ }
2186
+
2187
+ /**
2188
+ *
2189
+ * Creates an array cache object to store unique values.
2190
+ *
2191
+ * @private
2192
+ * @constructor
2193
+ * @param {Array} [values] The values to cache.
2194
+ */
2195
+ function SetCache(values) {
2196
+ var index = -1,
2197
+ length = values == null ? 0 : values.length;
2198
+
2199
+ this.__data__ = new MapCache;
2200
+ while (++index < length) {
2201
+ this.add(values[index]);
2202
+ }
2203
+ }
2204
+
2205
+ // Add methods to `SetCache`.
2206
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
2207
+ SetCache.prototype.has = setCacheHas;
2208
+
2209
+ /**
2210
+ * A specialized version of `_.some` for arrays without support for iteratee
2211
+ * shorthands.
2212
+ *
2213
+ * @private
2214
+ * @param {Array} [array] The array to iterate over.
2215
+ * @param {Function} predicate The function invoked per iteration.
2216
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
2217
+ * else `false`.
2218
+ */
2219
+ function arraySome(array, predicate) {
2220
+ var index = -1,
2221
+ length = array == null ? 0 : array.length;
2222
+
2223
+ while (++index < length) {
2224
+ if (predicate(array[index], index, array)) {
2225
+ return true;
2226
+ }
2227
+ }
2228
+ return false;
2229
+ }
2230
+
2231
+ /**
2232
+ * Checks if a `cache` value for `key` exists.
2233
+ *
2234
+ * @private
2235
+ * @param {Object} cache The cache to query.
2236
+ * @param {string} key The key of the entry to check.
2237
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
2238
+ */
2239
+ function cacheHas(cache, key) {
2240
+ return cache.has(key);
2241
+ }
2242
+
2243
+ /** Used to compose bitmasks for value comparisons. */
2244
+ var COMPARE_PARTIAL_FLAG$3 = 1,
2245
+ COMPARE_UNORDERED_FLAG$1 = 2;
2246
+
2247
+ /**
2248
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
2249
+ * partial deep comparisons.
2250
+ *
2251
+ * @private
2252
+ * @param {Array} array The array to compare.
2253
+ * @param {Array} other The other array to compare.
2254
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2255
+ * @param {Function} customizer The function to customize comparisons.
2256
+ * @param {Function} equalFunc The function to determine equivalents of values.
2257
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
2258
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
2259
+ */
2260
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2261
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
2262
+ arrLength = array.length,
2263
+ othLength = other.length;
2264
+
2265
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
2266
+ return false;
2267
+ }
2268
+ // Check that cyclic values are equal.
2269
+ var arrStacked = stack.get(array);
2270
+ var othStacked = stack.get(other);
2271
+ if (arrStacked && othStacked) {
2272
+ return arrStacked == other && othStacked == array;
2273
+ }
2274
+ var index = -1,
2275
+ result = true,
2276
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new SetCache : undefined;
2277
+
2278
+ stack.set(array, other);
2279
+ stack.set(other, array);
2280
+
2281
+ // Ignore non-index properties.
2282
+ while (++index < arrLength) {
2283
+ var arrValue = array[index],
2284
+ othValue = other[index];
2285
+
2286
+ if (customizer) {
2287
+ var compared = isPartial
2288
+ ? customizer(othValue, arrValue, index, other, array, stack)
2289
+ : customizer(arrValue, othValue, index, array, other, stack);
2290
+ }
2291
+ if (compared !== undefined) {
2292
+ if (compared) {
2293
+ continue;
2294
+ }
2295
+ result = false;
2296
+ break;
2297
+ }
2298
+ // Recursively compare arrays (susceptible to call stack limits).
2299
+ if (seen) {
2300
+ if (!arraySome(other, function(othValue, othIndex) {
2301
+ if (!cacheHas(seen, othIndex) &&
2302
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2303
+ return seen.push(othIndex);
2304
+ }
2305
+ })) {
2306
+ result = false;
2307
+ break;
2308
+ }
2309
+ } else if (!(
2310
+ arrValue === othValue ||
2311
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
2312
+ )) {
2313
+ result = false;
2314
+ break;
2315
+ }
2316
+ }
2317
+ stack['delete'](array);
2318
+ stack['delete'](other);
2319
+ return result;
2320
+ }
2321
+
2322
+ /**
2323
+ * Converts `map` to its key-value pairs.
2324
+ *
2325
+ * @private
2326
+ * @param {Object} map The map to convert.
2327
+ * @returns {Array} Returns the key-value pairs.
2328
+ */
2329
+ function mapToArray(map) {
2330
+ var index = -1,
2331
+ result = Array(map.size);
2332
+
2333
+ map.forEach(function(value, key) {
2334
+ result[++index] = [key, value];
2335
+ });
2336
+ return result;
2337
+ }
2338
+
2339
+ /**
2340
+ * Converts `set` to an array of its values.
2341
+ *
2342
+ * @private
2343
+ * @param {Object} set The set to convert.
2344
+ * @returns {Array} Returns the values.
2345
+ */
2346
+ function setToArray(set) {
2347
+ var index = -1,
2348
+ result = Array(set.size);
2349
+
2350
+ set.forEach(function(value) {
2351
+ result[++index] = value;
2352
+ });
2353
+ return result;
2354
+ }
2355
+
2356
+ /** Used to compose bitmasks for value comparisons. */
2357
+ var COMPARE_PARTIAL_FLAG$2 = 1,
2358
+ COMPARE_UNORDERED_FLAG = 2;
2359
+
2360
+ /** `Object#toString` result references. */
2361
+ var boolTag = '[object Boolean]',
2362
+ dateTag = '[object Date]',
2363
+ errorTag = '[object Error]',
2364
+ mapTag = '[object Map]',
2365
+ numberTag = '[object Number]',
2366
+ regexpTag = '[object RegExp]',
2367
+ setTag = '[object Set]',
2368
+ stringTag = '[object String]',
2369
+ symbolTag = '[object Symbol]';
2370
+
2371
+ var arrayBufferTag = '[object ArrayBuffer]',
2372
+ dataViewTag = '[object DataView]';
2373
+
2374
+ /** Used to convert symbols to primitives and strings. */
2375
+ var symbolProto = Symbol$2 ? Symbol$2.prototype : undefined,
2376
+ symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
2377
+
2378
+ /**
2379
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
2380
+ * the same `toStringTag`.
2381
+ *
2382
+ * **Note:** This function only supports comparing values with tags of
2383
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
2384
+ *
2385
+ * @private
2386
+ * @param {Object} object The object to compare.
2387
+ * @param {Object} other The other object to compare.
2388
+ * @param {string} tag The `toStringTag` of the objects to compare.
2389
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2390
+ * @param {Function} customizer The function to customize comparisons.
2391
+ * @param {Function} equalFunc The function to determine equivalents of values.
2392
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2393
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2394
+ */
2395
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
2396
+ switch (tag) {
2397
+ case dataViewTag:
2398
+ if ((object.byteLength != other.byteLength) ||
2399
+ (object.byteOffset != other.byteOffset)) {
2400
+ return false;
2401
+ }
2402
+ object = object.buffer;
2403
+ other = other.buffer;
2404
+
2405
+ case arrayBufferTag:
2406
+ if ((object.byteLength != other.byteLength) ||
2407
+ !equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
2408
+ return false;
2409
+ }
2410
+ return true;
2411
+
2412
+ case boolTag:
2413
+ case dateTag:
2414
+ case numberTag:
2415
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
2416
+ // Invalid dates are coerced to `NaN`.
2417
+ return eq(+object, +other);
2418
+
2419
+ case errorTag:
2420
+ return object.name == other.name && object.message == other.message;
2421
+
2422
+ case regexpTag:
2423
+ case stringTag:
2424
+ // Coerce regexes to strings and treat strings, primitives and objects,
2425
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
2426
+ // for more details.
2427
+ return object == (other + '');
2428
+
2429
+ case mapTag:
2430
+ var convert = mapToArray;
2431
+
2432
+ case setTag:
2433
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
2434
+ convert || (convert = setToArray);
2435
+
2436
+ if (object.size != other.size && !isPartial) {
2437
+ return false;
2438
+ }
2439
+ // Assume cyclic values are equal.
2440
+ var stacked = stack.get(object);
2441
+ if (stacked) {
2442
+ return stacked == other;
2443
+ }
2444
+ bitmask |= COMPARE_UNORDERED_FLAG;
2445
+
2446
+ // Recursively compare objects (susceptible to call stack limits).
2447
+ stack.set(object, other);
2448
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
2449
+ stack['delete'](object);
2450
+ return result;
2451
+
2452
+ case symbolTag:
2453
+ if (symbolValueOf) {
2454
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
2455
+ }
2456
+ }
2457
+ return false;
2458
+ }
2459
+
2460
+ /** Used to compose bitmasks for value comparisons. */
2461
+ var COMPARE_PARTIAL_FLAG$1 = 1;
2462
+
2463
+ /** Used for built-in method references. */
2464
+ var objectProto$1 = Object.prototype;
2465
+
2466
+ /** Used to check objects for own properties. */
2467
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2468
+
2469
+ /**
2470
+ * A specialized version of `baseIsEqualDeep` for objects with support for
2471
+ * partial deep comparisons.
2472
+ *
2473
+ * @private
2474
+ * @param {Object} object The object to compare.
2475
+ * @param {Object} other The other object to compare.
2476
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2477
+ * @param {Function} customizer The function to customize comparisons.
2478
+ * @param {Function} equalFunc The function to determine equivalents of values.
2479
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2480
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2481
+ */
2482
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2483
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
2484
+ objProps = getAllKeys(object),
2485
+ objLength = objProps.length,
2486
+ othProps = getAllKeys(other),
2487
+ othLength = othProps.length;
2488
+
2489
+ if (objLength != othLength && !isPartial) {
2490
+ return false;
2491
+ }
2492
+ var index = objLength;
2493
+ while (index--) {
2494
+ var key = objProps[index];
2495
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
2496
+ return false;
2497
+ }
2498
+ }
2499
+ // Check that cyclic values are equal.
2500
+ var objStacked = stack.get(object);
2501
+ var othStacked = stack.get(other);
2502
+ if (objStacked && othStacked) {
2503
+ return objStacked == other && othStacked == object;
2504
+ }
2505
+ var result = true;
2506
+ stack.set(object, other);
2507
+ stack.set(other, object);
2508
+
2509
+ var skipCtor = isPartial;
2510
+ while (++index < objLength) {
2511
+ key = objProps[index];
2512
+ var objValue = object[key],
2513
+ othValue = other[key];
2514
+
2515
+ if (customizer) {
2516
+ var compared = isPartial
2517
+ ? customizer(othValue, objValue, key, other, object, stack)
2518
+ : customizer(objValue, othValue, key, object, other, stack);
2519
+ }
2520
+ // Recursively compare objects (susceptible to call stack limits).
2521
+ if (!(compared === undefined
2522
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
2523
+ : compared
2524
+ )) {
2525
+ result = false;
2526
+ break;
2527
+ }
2528
+ skipCtor || (skipCtor = key == 'constructor');
2529
+ }
2530
+ if (result && !skipCtor) {
2531
+ var objCtor = object.constructor,
2532
+ othCtor = other.constructor;
2533
+
2534
+ // Non `Object` object instances with different constructors are not equal.
2535
+ if (objCtor != othCtor &&
2536
+ ('constructor' in object && 'constructor' in other) &&
2537
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
2538
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
2539
+ result = false;
2540
+ }
2541
+ }
2542
+ stack['delete'](object);
2543
+ stack['delete'](other);
2544
+ return result;
2545
+ }
2546
+
2547
+ /** Used to compose bitmasks for value comparisons. */
2548
+ var COMPARE_PARTIAL_FLAG = 1;
2549
+
2550
+ /** `Object#toString` result references. */
2551
+ var argsTag = '[object Arguments]',
2552
+ arrayTag = '[object Array]',
2553
+ objectTag = '[object Object]';
2554
+
2555
+ /** Used for built-in method references. */
2556
+ var objectProto = Object.prototype;
2557
+
2558
+ /** Used to check objects for own properties. */
2559
+ var hasOwnProperty = objectProto.hasOwnProperty;
2560
+
2561
+ /**
2562
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
2563
+ * deep comparisons and tracks traversed objects enabling objects with circular
2564
+ * references to be compared.
2565
+ *
2566
+ * @private
2567
+ * @param {Object} object The object to compare.
2568
+ * @param {Object} other The other object to compare.
2569
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2570
+ * @param {Function} customizer The function to customize comparisons.
2571
+ * @param {Function} equalFunc The function to determine equivalents of values.
2572
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2573
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2574
+ */
2575
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
2576
+ var objIsArr = isArray$1(object),
2577
+ othIsArr = isArray$1(other),
2578
+ objTag = objIsArr ? arrayTag : getTag$1(object),
2579
+ othTag = othIsArr ? arrayTag : getTag$1(other);
2580
+
2581
+ objTag = objTag == argsTag ? objectTag : objTag;
2582
+ othTag = othTag == argsTag ? objectTag : othTag;
2583
+
2584
+ var objIsObj = objTag == objectTag,
2585
+ othIsObj = othTag == objectTag,
2586
+ isSameTag = objTag == othTag;
2587
+
2588
+ if (isSameTag && isBuffer$1(object)) {
2589
+ if (!isBuffer$1(other)) {
2590
+ return false;
2591
+ }
2592
+ objIsArr = true;
2593
+ objIsObj = false;
2594
+ }
2595
+ if (isSameTag && !objIsObj) {
2596
+ stack || (stack = new Stack);
2597
+ return (objIsArr || isTypedArray$1(object))
2598
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2599
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2600
+ }
2601
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
2602
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2603
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2604
+
2605
+ if (objIsWrapped || othIsWrapped) {
2606
+ var objUnwrapped = objIsWrapped ? object.value() : object,
2607
+ othUnwrapped = othIsWrapped ? other.value() : other;
2608
+
2609
+ stack || (stack = new Stack);
2610
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2611
+ }
2612
+ }
2613
+ if (!isSameTag) {
2614
+ return false;
2615
+ }
2616
+ stack || (stack = new Stack);
2617
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2618
+ }
2619
+
2620
+ /**
2621
+ * The base implementation of `_.isEqual` which supports partial comparisons
2622
+ * and tracks traversed objects.
2623
+ *
2624
+ * @private
2625
+ * @param {*} value The value to compare.
2626
+ * @param {*} other The other value to compare.
2627
+ * @param {boolean} bitmask The bitmask flags.
2628
+ * 1 - Unordered comparison
2629
+ * 2 - Partial comparison
2630
+ * @param {Function} [customizer] The function to customize comparisons.
2631
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2632
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2633
+ */
2634
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
2635
+ if (value === other) {
2636
+ return true;
2637
+ }
2638
+ if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
2639
+ return value !== value && other !== other;
2640
+ }
2641
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2642
+ }
2643
+
2644
+ /**
2645
+ * The base implementation of `_.hasIn` without support for deep paths.
2646
+ *
2647
+ * @private
2648
+ * @param {Object} [object] The object to query.
2649
+ * @param {Array|string} key The key to check.
2650
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
2651
+ */
2652
+ function baseHasIn(object, key) {
2653
+ return object != null && key in Object(object);
2654
+ }
2655
+
2656
+ /**
2657
+ * Checks if `path` exists on `object`.
2658
+ *
2659
+ * @private
2660
+ * @param {Object} object The object to query.
2661
+ * @param {Array|string} path The path to check.
2662
+ * @param {Function} hasFunc The function to check properties.
2663
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2664
+ */
2665
+ function hasPath(object, path, hasFunc) {
2666
+ path = castPath(path, object);
2667
+
2668
+ var index = -1,
2669
+ length = path.length,
2670
+ result = false;
2671
+
2672
+ while (++index < length) {
2673
+ var key = toKey(path[index]);
2674
+ if (!(result = object != null && hasFunc(object, key))) {
2675
+ break;
2676
+ }
2677
+ object = object[key];
2678
+ }
2679
+ if (result || ++index != length) {
2680
+ return result;
2681
+ }
2682
+ length = object == null ? 0 : object.length;
2683
+ return !!length && isLength(length) && isIndex(key, length) &&
2684
+ (isArray$1(object) || isArguments$1(object));
2685
+ }
2686
+
2687
+ /**
2688
+ * Checks if `path` is a direct or inherited property of `object`.
2689
+ *
2690
+ * @static
2691
+ * @memberOf _
2692
+ * @since 4.0.0
2693
+ * @category Object
2694
+ * @param {Object} object The object to query.
2695
+ * @param {Array|string} path The path to check.
2696
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2697
+ * @example
2698
+ *
2699
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2700
+ *
2701
+ * _.hasIn(object, 'a');
2702
+ * // => true
2703
+ *
2704
+ * _.hasIn(object, 'a.b');
2705
+ * // => true
2706
+ *
2707
+ * _.hasIn(object, ['a', 'b']);
2708
+ * // => true
2709
+ *
2710
+ * _.hasIn(object, 'b');
2711
+ * // => false
2712
+ */
2713
+ function hasIn(object, path) {
2714
+ return object != null && hasPath(object, path, baseHasIn);
2715
+ }
2716
+
2717
+ /**
2718
+ * The inverse of `_.toPairs`; this method returns an object composed
2719
+ * from key-value `pairs`.
2720
+ *
2721
+ * @static
2722
+ * @memberOf _
2723
+ * @since 4.0.0
2724
+ * @category Array
2725
+ * @param {Array} pairs The key-value pairs.
2726
+ * @returns {Object} Returns the new object.
2727
+ * @example
2728
+ *
2729
+ * _.fromPairs([['a', 1], ['b', 2]]);
2730
+ * // => { 'a': 1, 'b': 2 }
2731
+ */
2732
+ function fromPairs(pairs) {
2733
+ var index = -1,
2734
+ length = pairs == null ? 0 : pairs.length,
2735
+ result = {};
2736
+
2737
+ while (++index < length) {
2738
+ var pair = pairs[index];
2739
+ result[pair[0]] = pair[1];
2740
+ }
2741
+ return result;
2742
+ }
2743
+
2744
+ /**
2745
+ * Performs a deep comparison between two values to determine if they are
2746
+ * equivalent.
2747
+ *
2748
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
2749
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
2750
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
2751
+ * by their own, not inherited, enumerable properties. Functions and DOM
2752
+ * nodes are compared by strict equality, i.e. `===`.
2753
+ *
2754
+ * @static
2755
+ * @memberOf _
2756
+ * @since 0.1.0
2757
+ * @category Lang
2758
+ * @param {*} value The value to compare.
2759
+ * @param {*} other The other value to compare.
2760
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2761
+ * @example
2762
+ *
2763
+ * var object = { 'a': 1 };
2764
+ * var other = { 'a': 1 };
2765
+ *
2766
+ * _.isEqual(object, other);
2767
+ * // => true
2768
+ *
2769
+ * object === other;
2770
+ * // => false
2771
+ */
2772
+ function isEqual(value, other) {
2773
+ return baseIsEqual(value, other);
2774
+ }
2775
+
2776
+ /**
2777
+ * The base implementation of `_.set`.
2778
+ *
2779
+ * @private
2780
+ * @param {Object} object The object to modify.
2781
+ * @param {Array|string} path The path of the property to set.
2782
+ * @param {*} value The value to set.
2783
+ * @param {Function} [customizer] The function to customize path creation.
2784
+ * @returns {Object} Returns `object`.
2785
+ */
2786
+ function baseSet(object, path, value, customizer) {
2787
+ if (!isObject(object)) {
2788
+ return object;
2789
+ }
2790
+ path = castPath(path, object);
2791
+
2792
+ var index = -1,
2793
+ length = path.length,
2794
+ lastIndex = length - 1,
2795
+ nested = object;
2796
+
2797
+ while (nested != null && ++index < length) {
2798
+ var key = toKey(path[index]),
2799
+ newValue = value;
2800
+
2801
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
2802
+ return object;
2803
+ }
2804
+
2805
+ if (index != lastIndex) {
2806
+ var objValue = nested[key];
2807
+ newValue = customizer ? customizer(objValue, key, nested) : undefined;
2808
+ if (newValue === undefined) {
2809
+ newValue = isObject(objValue)
2810
+ ? objValue
2811
+ : (isIndex(path[index + 1]) ? [] : {});
2812
+ }
2813
+ }
2814
+ assignValue(nested, key, newValue);
2815
+ nested = nested[key];
2816
+ }
2817
+ return object;
2818
+ }
2819
+
2820
+ /**
2821
+ * The base implementation of `_.pickBy` without support for iteratee shorthands.
2822
+ *
2823
+ * @private
2824
+ * @param {Object} object The source object.
2825
+ * @param {string[]} paths The property paths to pick.
2826
+ * @param {Function} predicate The function invoked per property.
2827
+ * @returns {Object} Returns the new object.
2828
+ */
2829
+ function basePickBy(object, paths, predicate) {
2830
+ var index = -1,
2831
+ length = paths.length,
2832
+ result = {};
2833
+
2834
+ while (++index < length) {
2835
+ var path = paths[index],
2836
+ value = baseGet(object, path);
2837
+
2838
+ if (predicate(value, path)) {
2839
+ baseSet(result, castPath(path, object), value);
2840
+ }
2841
+ }
2842
+ return result;
2843
+ }
2844
+
2845
+ /**
2846
+ * The base implementation of `_.pick` without support for individual
2847
+ * property identifiers.
2848
+ *
2849
+ * @private
2850
+ * @param {Object} object The source object.
2851
+ * @param {string[]} paths The property paths to pick.
2852
+ * @returns {Object} Returns the new object.
2853
+ */
2854
+ function basePick(object, paths) {
2855
+ return basePickBy(object, paths, function(value, path) {
2856
+ return hasIn(object, path);
2857
+ });
2858
+ }
2859
+
2860
+ /**
2861
+ * Creates an object composed of the picked `object` properties.
2862
+ *
2863
+ * @static
2864
+ * @since 0.1.0
2865
+ * @memberOf _
2866
+ * @category Object
2867
+ * @param {Object} object The source object.
2868
+ * @param {...(string|string[])} [paths] The property paths to pick.
2869
+ * @returns {Object} Returns the new object.
2870
+ * @example
2871
+ *
2872
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
2873
+ *
2874
+ * _.pick(object, ['a', 'c']);
2875
+ * // => { 'a': 1, 'c': 3 }
2876
+ */
2877
+ var pick = flatRest(function(object, paths) {
2878
+ return object == null ? {} : basePick(object, paths);
2879
+ });
2880
+
2881
+ var pick$1 = pick;
2882
+
2883
+ const isUndefined = (val) => val === void 0;
2884
+ const isBoolean = (val) => typeof val === "boolean";
2885
+ const isNumber = (val) => typeof val === "number";
2886
+
2887
+ class ElementPlusError extends Error {
2888
+ constructor(m) {
2889
+ super(m);
2890
+ this.name = "ElementPlusError";
2891
+ }
2892
+ }
2893
+ function debugWarn(scope, message) {
2894
+ if (process.env.NODE_ENV !== "production") {
2895
+ const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
2896
+ console.warn(error);
2897
+ }
2898
+ }
2899
+
2900
+ const epPropKey = "__epPropKey";
2901
+ const definePropType = (val) => val;
2902
+ const isEpProp = (val) => isObject$1(val) && !!val[epPropKey];
2903
+ const buildProp = (prop, key) => {
2904
+ if (!isObject$1(prop) || isEpProp(prop))
2905
+ return prop;
2906
+ const { values, required, default: defaultValue, type, validator } = prop;
2907
+ const _validator = values || validator ? (val) => {
2908
+ let valid = false;
2909
+ let allowedValues = [];
2910
+ if (values) {
2911
+ allowedValues = Array.from(values);
2912
+ if (hasOwn(prop, "default")) {
2913
+ allowedValues.push(defaultValue);
2914
+ }
2915
+ valid || (valid = allowedValues.includes(val));
2916
+ }
2917
+ if (validator)
2918
+ valid || (valid = validator(val));
2919
+ if (!valid && allowedValues.length > 0) {
2920
+ const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
2921
+ vue.warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
2922
+ }
2923
+ return valid;
2924
+ } : void 0;
2925
+ const epProp = {
2926
+ type,
2927
+ required: !!required,
2928
+ validator: _validator,
2929
+ [epPropKey]: true
2930
+ };
2931
+ if (hasOwn(prop, "default"))
2932
+ epProp.default = defaultValue;
2933
+ return epProp;
2934
+ };
2935
+ const buildProps = (props) => fromPairs(Object.entries(props).map(([key, option]) => [
2936
+ key,
2937
+ buildProp(option, key)
2938
+ ]));
2939
+
2940
+ const withInstall = (main, extra) => {
2941
+ main.install = (app) => {
2942
+ for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
2943
+ app.component(comp.name, comp);
2944
+ }
2945
+ };
2946
+ if (extra) {
2947
+ for (const [key, comp] of Object.entries(extra)) {
2948
+ main[key] = comp;
2949
+ }
2950
+ }
2951
+ return main;
2952
+ };
2953
+ const withNoopInstall = (component) => {
2954
+ component.install = NOOP;
2955
+ return component;
2956
+ };
2957
+
2958
+ const UPDATE_MODEL_EVENT = "update:modelValue";
2959
+
2960
+ const componentSizes = ["", "default", "small", "large"];
2961
+
2962
+ const defaultNamespace = "el";
2963
+ const statePrefix = "is-";
2964
+ const _bem = (namespace, block, blockSuffix, element, modifier) => {
2965
+ let cls = `${namespace}-${block}`;
2966
+ if (blockSuffix) {
2967
+ cls += `-${blockSuffix}`;
2968
+ }
2969
+ if (element) {
2970
+ cls += `__${element}`;
2971
+ }
2972
+ if (modifier) {
2973
+ cls += `--${modifier}`;
2974
+ }
2975
+ return cls;
2976
+ };
2977
+ const namespaceContextKey = Symbol("namespaceContextKey");
2978
+ const useGetDerivedNamespace = (namespaceOverrides) => {
2979
+ const derivedNamespace = namespaceOverrides || vue.inject(namespaceContextKey, vue.ref(defaultNamespace));
2980
+ const namespace = vue.computed(() => {
2981
+ return vue.unref(derivedNamespace) || defaultNamespace;
2982
+ });
2983
+ return namespace;
2984
+ };
2985
+ const useNamespace = (block, namespaceOverrides) => {
2986
+ const namespace = useGetDerivedNamespace(namespaceOverrides);
2987
+ const b = (blockSuffix = "") => _bem(namespace.value, block, blockSuffix, "", "");
2988
+ const e = (element) => element ? _bem(namespace.value, block, "", element, "") : "";
2989
+ const m = (modifier) => modifier ? _bem(namespace.value, block, "", "", modifier) : "";
2990
+ const be = (blockSuffix, element) => blockSuffix && element ? _bem(namespace.value, block, blockSuffix, element, "") : "";
2991
+ const em = (element, modifier) => element && modifier ? _bem(namespace.value, block, "", element, modifier) : "";
2992
+ const bm = (blockSuffix, modifier) => blockSuffix && modifier ? _bem(namespace.value, block, blockSuffix, "", modifier) : "";
2993
+ const bem = (blockSuffix, element, modifier) => blockSuffix && element && modifier ? _bem(namespace.value, block, blockSuffix, element, modifier) : "";
2994
+ const is = (name, ...args) => {
2995
+ const state = args.length >= 1 ? args[0] : true;
2996
+ return name && state ? `${statePrefix}${name}` : "";
2997
+ };
2998
+ const cssVar = (object) => {
2999
+ const styles = {};
3000
+ for (const key in object) {
3001
+ if (object[key]) {
3002
+ styles[`--${namespace.value}-${key}`] = object[key];
3003
+ }
3004
+ }
3005
+ return styles;
3006
+ };
3007
+ const cssVarBlock = (object) => {
3008
+ const styles = {};
3009
+ for (const key in object) {
3010
+ if (object[key]) {
3011
+ styles[`--${namespace.value}-${block}-${key}`] = object[key];
3012
+ }
3013
+ }
3014
+ return styles;
3015
+ };
3016
+ const cssVarName = (name) => `--${namespace.value}-${name}`;
3017
+ const cssVarBlockName = (name) => `--${namespace.value}-${block}-${name}`;
3018
+ return {
3019
+ namespace,
3020
+ b,
3021
+ e,
3022
+ m,
3023
+ be,
3024
+ em,
3025
+ bm,
3026
+ bem,
3027
+ is,
3028
+ cssVar,
3029
+ cssVarName,
3030
+ cssVarBlock,
3031
+ cssVarBlockName
3032
+ };
3033
+ };
3034
+
3035
+ const useProp = (name) => {
3036
+ const vm = vue.getCurrentInstance();
3037
+ return vue.computed(() => {
3038
+ var _a, _b;
3039
+ return (_b = (_a = vm == null ? void 0 : vm.proxy) == null ? void 0 : _a.$props) == null ? void 0 : _b[name];
3040
+ });
3041
+ };
3042
+
3043
+ const defaultIdInjection = {
3044
+ prefix: Math.floor(Math.random() * 1e4),
3045
+ current: 0
3046
+ };
3047
+ const ID_INJECTION_KEY = Symbol("elIdInjection");
3048
+ const useIdInjection = () => {
3049
+ return vue.getCurrentInstance() ? vue.inject(ID_INJECTION_KEY, defaultIdInjection) : defaultIdInjection;
3050
+ };
3051
+ const useId = (deterministicId) => {
3052
+ const idInjection = useIdInjection();
3053
+ if (!isClient && idInjection === defaultIdInjection) {
3054
+ debugWarn("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
3055
+ usage: app.provide(ID_INJECTION_KEY, {
3056
+ prefix: number,
3057
+ current: number,
3058
+ })`);
3059
+ }
3060
+ const namespace = useGetDerivedNamespace();
3061
+ const idRef = vue.computed(() => vue.unref(deterministicId) || `${namespace.value}-id-${idInjection.prefix}-${idInjection.current++}`);
3062
+ return idRef;
3063
+ };
3064
+
3065
+ const useSizeProp = buildProp({
3066
+ type: String,
3067
+ values: componentSizes,
3068
+ required: false
3069
+ });
3070
+ const SIZE_INJECTION_KEY = Symbol("size");
3071
+ const useGlobalSize = () => {
3072
+ const injectedSize = vue.inject(SIZE_INJECTION_KEY, {});
3073
+ return vue.computed(() => {
3074
+ return vue.unref(injectedSize.size) || "";
3075
+ });
3076
+ };
3077
+
3078
+ var _export_sfc = (sfc, props) => {
3079
+ const target = sfc.__vccOpts || sfc;
3080
+ for (const [key, val] of props) {
3081
+ target[key] = val;
3082
+ }
3083
+ return target;
3084
+ };
3085
+
3086
+ const formContextKey = Symbol("formContextKey");
3087
+ const formItemContextKey = Symbol("formItemContextKey");
3088
+
3089
+ const useFormSize = (fallback, ignore = {}) => {
3090
+ const emptyRef = vue.ref(void 0);
3091
+ const size = ignore.prop ? emptyRef : useProp("size");
3092
+ const globalConfig = ignore.global ? emptyRef : useGlobalSize();
3093
+ const form = ignore.form ? { size: void 0 } : vue.inject(formContextKey, void 0);
3094
+ const formItem = ignore.formItem ? { size: void 0 } : vue.inject(formItemContextKey, void 0);
3095
+ return vue.computed(() => size.value || vue.unref(fallback) || (formItem == null ? void 0 : formItem.size) || (form == null ? void 0 : form.size) || globalConfig.value || "");
3096
+ };
3097
+ const useFormDisabled = (fallback) => {
3098
+ const disabled = useProp("disabled");
3099
+ const form = vue.inject(formContextKey, void 0);
3100
+ return vue.computed(() => disabled.value || vue.unref(fallback) || (form == null ? void 0 : form.disabled) || false);
3101
+ };
3102
+
3103
+ const useFormItem = () => {
3104
+ const form = vue.inject(formContextKey, void 0);
3105
+ const formItem = vue.inject(formItemContextKey, void 0);
3106
+ return {
3107
+ form,
3108
+ formItem
3109
+ };
3110
+ };
3111
+ const useFormItemInputId = (props, {
3112
+ formItemContext,
3113
+ disableIdGeneration,
3114
+ disableIdManagement
3115
+ }) => {
3116
+ if (!disableIdGeneration) {
3117
+ disableIdGeneration = vue.ref(false);
3118
+ }
3119
+ if (!disableIdManagement) {
3120
+ disableIdManagement = vue.ref(false);
3121
+ }
3122
+ const inputId = vue.ref();
3123
+ let idUnwatch = void 0;
3124
+ const isLabeledByFormItem = vue.computed(() => {
3125
+ var _a;
3126
+ return !!(!props.label && formItemContext && formItemContext.inputIds && ((_a = formItemContext.inputIds) == null ? void 0 : _a.length) <= 1);
3127
+ });
3128
+ vue.onMounted(() => {
3129
+ idUnwatch = vue.watch([vue.toRef(props, "id"), disableIdGeneration], ([id, disableIdGeneration2]) => {
3130
+ const newId = id != null ? id : !disableIdGeneration2 ? useId().value : void 0;
3131
+ if (newId !== inputId.value) {
3132
+ if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
3133
+ inputId.value && formItemContext.removeInputId(inputId.value);
3134
+ if (!(disableIdManagement == null ? void 0 : disableIdManagement.value) && !disableIdGeneration2 && newId) {
3135
+ formItemContext.addInputId(newId);
3136
+ }
3137
+ }
3138
+ inputId.value = newId;
3139
+ }
3140
+ }, { immediate: true });
3141
+ });
3142
+ vue.onUnmounted(() => {
3143
+ idUnwatch && idUnwatch();
3144
+ if (formItemContext == null ? void 0 : formItemContext.removeInputId) {
3145
+ inputId.value && formItemContext.removeInputId(inputId.value);
3146
+ }
3147
+ });
3148
+ return {
3149
+ isLabeledByFormItem,
3150
+ inputId
3151
+ };
3152
+ };
3153
+
3154
+ const checkboxProps = {
3155
+ modelValue: {
3156
+ type: [Number, String, Boolean],
3157
+ default: void 0
3158
+ },
3159
+ label: {
3160
+ type: [String, Boolean, Number, Object]
3161
+ },
3162
+ indeterminate: Boolean,
3163
+ disabled: Boolean,
3164
+ checked: Boolean,
3165
+ name: {
3166
+ type: String,
3167
+ default: void 0
3168
+ },
3169
+ trueLabel: {
3170
+ type: [String, Number],
3171
+ default: void 0
3172
+ },
3173
+ falseLabel: {
3174
+ type: [String, Number],
3175
+ default: void 0
3176
+ },
3177
+ id: {
3178
+ type: String,
3179
+ default: void 0
3180
+ },
3181
+ controls: {
3182
+ type: String,
3183
+ default: void 0
3184
+ },
3185
+ border: Boolean,
3186
+ size: useSizeProp,
3187
+ tabindex: [String, Number],
3188
+ validateEvent: {
3189
+ type: Boolean,
3190
+ default: true
3191
+ }
3192
+ };
3193
+ const checkboxEmits = {
3194
+ [UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber(val) || isBoolean(val),
3195
+ change: (val) => isString(val) || isNumber(val) || isBoolean(val)
3196
+ };
3197
+
3198
+ const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
3199
+
3200
+ const useCheckboxDisabled = ({
3201
+ model,
3202
+ isChecked
3203
+ }) => {
3204
+ const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
3205
+ const isLimitDisabled = vue.computed(() => {
3206
+ var _a, _b;
3207
+ const max = (_a = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a.value;
3208
+ const min = (_b = checkboxGroup == null ? void 0 : checkboxGroup.min) == null ? void 0 : _b.value;
3209
+ return !isUndefined(max) && model.value.length >= max && !isChecked.value || !isUndefined(min) && model.value.length <= min && isChecked.value;
3210
+ });
3211
+ const isDisabled = useFormDisabled(vue.computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.disabled.value) || isLimitDisabled.value));
3212
+ return {
3213
+ isDisabled,
3214
+ isLimitDisabled
3215
+ };
3216
+ };
3217
+
3218
+ const useCheckboxEvent = (props, {
3219
+ model,
3220
+ isLimitExceeded,
3221
+ hasOwnLabel,
3222
+ isDisabled,
3223
+ isLabeledByFormItem
3224
+ }) => {
3225
+ const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
3226
+ const { formItem } = useFormItem();
3227
+ const { emit } = vue.getCurrentInstance();
3228
+ function getLabeledValue(value) {
3229
+ var _a, _b;
3230
+ return value === props.trueLabel || value === true ? (_a = props.trueLabel) != null ? _a : true : (_b = props.falseLabel) != null ? _b : false;
3231
+ }
3232
+ function emitChangeEvent(checked, e) {
3233
+ emit("change", getLabeledValue(checked), e);
3234
+ }
3235
+ function handleChange(e) {
3236
+ if (isLimitExceeded.value)
3237
+ return;
3238
+ const target = e.target;
3239
+ emit("change", getLabeledValue(target.checked), e);
3240
+ }
3241
+ async function onClickRoot(e) {
3242
+ if (isLimitExceeded.value)
3243
+ return;
3244
+ if (!hasOwnLabel.value && !isDisabled.value && isLabeledByFormItem.value) {
3245
+ const eventTargets = e.composedPath();
3246
+ const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
3247
+ if (!hasLabel) {
3248
+ model.value = getLabeledValue([false, props.falseLabel].includes(model.value));
3249
+ await vue.nextTick();
3250
+ emitChangeEvent(model.value, e);
3251
+ }
3252
+ }
3253
+ }
3254
+ const validateEvent = vue.computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props.validateEvent);
3255
+ vue.watch(() => props.modelValue, () => {
3256
+ if (validateEvent.value) {
3257
+ formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
3258
+ }
3259
+ });
3260
+ return {
3261
+ handleChange,
3262
+ onClickRoot
3263
+ };
3264
+ };
3265
+
3266
+ const useCheckboxModel = (props) => {
3267
+ const selfModel = vue.ref(false);
3268
+ const { emit } = vue.getCurrentInstance();
3269
+ const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
3270
+ const isGroup = vue.computed(() => isUndefined(checkboxGroup) === false);
3271
+ const isLimitExceeded = vue.ref(false);
3272
+ const model = vue.computed({
3273
+ get() {
3274
+ var _a, _b;
3275
+ return isGroup.value ? (_a = checkboxGroup == null ? void 0 : checkboxGroup.modelValue) == null ? void 0 : _a.value : (_b = props.modelValue) != null ? _b : selfModel.value;
3276
+ },
3277
+ set(val) {
3278
+ var _a, _b;
3279
+ if (isGroup.value && isArray$2(val)) {
3280
+ isLimitExceeded.value = ((_a = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a.value) !== void 0 && val.length > (checkboxGroup == null ? void 0 : checkboxGroup.max.value);
3281
+ isLimitExceeded.value === false && ((_b = checkboxGroup == null ? void 0 : checkboxGroup.changeEvent) == null ? void 0 : _b.call(checkboxGroup, val));
3282
+ } else {
3283
+ emit(UPDATE_MODEL_EVENT, val);
3284
+ selfModel.value = val;
3285
+ }
3286
+ }
3287
+ });
3288
+ return {
3289
+ model,
3290
+ isGroup,
3291
+ isLimitExceeded
3292
+ };
3293
+ };
3294
+
3295
+ const useCheckboxStatus = (props, slots, { model }) => {
3296
+ const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
3297
+ const isFocused = vue.ref(false);
3298
+ const isChecked = vue.computed(() => {
3299
+ const value = model.value;
3300
+ if (isBoolean(value)) {
3301
+ return value;
3302
+ } else if (isArray$2(value)) {
3303
+ if (isObject$1(props.label)) {
3304
+ return value.map(vue.toRaw).some((o) => isEqual(o, props.label));
3305
+ } else {
3306
+ return value.map(vue.toRaw).includes(props.label);
3307
+ }
3308
+ } else if (value !== null && value !== void 0) {
3309
+ return value === props.trueLabel;
3310
+ } else {
3311
+ return !!value;
3312
+ }
3313
+ });
3314
+ const checkboxButtonSize = useFormSize(vue.computed(() => {
3315
+ var _a;
3316
+ return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
3317
+ }), {
3318
+ prop: true
3319
+ });
3320
+ const checkboxSize = useFormSize(vue.computed(() => {
3321
+ var _a;
3322
+ return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
3323
+ }));
3324
+ const hasOwnLabel = vue.computed(() => {
3325
+ return !!(slots.default || props.label);
3326
+ });
3327
+ return {
3328
+ checkboxButtonSize,
3329
+ isChecked,
3330
+ isFocused,
3331
+ checkboxSize,
3332
+ hasOwnLabel
3333
+ };
3334
+ };
3335
+
3336
+ const setStoreValue = (props, { model }) => {
3337
+ function addToStore() {
3338
+ if (isArray$2(model.value) && !model.value.includes(props.label)) {
3339
+ model.value.push(props.label);
3340
+ } else {
3341
+ model.value = props.trueLabel || true;
3342
+ }
3343
+ }
3344
+ props.checked && addToStore();
3345
+ };
3346
+ const useCheckbox = (props, slots) => {
3347
+ const { formItem: elFormItem } = useFormItem();
3348
+ const { model, isGroup, isLimitExceeded } = useCheckboxModel(props);
3349
+ const {
3350
+ isFocused,
3351
+ isChecked,
3352
+ checkboxButtonSize,
3353
+ checkboxSize,
3354
+ hasOwnLabel
3355
+ } = useCheckboxStatus(props, slots, { model });
3356
+ const { isDisabled } = useCheckboxDisabled({ model, isChecked });
3357
+ const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {
3358
+ formItemContext: elFormItem,
3359
+ disableIdGeneration: hasOwnLabel,
3360
+ disableIdManagement: isGroup
3361
+ });
3362
+ const { handleChange, onClickRoot } = useCheckboxEvent(props, {
3363
+ model,
3364
+ isLimitExceeded,
3365
+ hasOwnLabel,
3366
+ isDisabled,
3367
+ isLabeledByFormItem
3368
+ });
3369
+ setStoreValue(props, { model });
3370
+ return {
3371
+ inputId,
3372
+ isLabeledByFormItem,
3373
+ isChecked,
3374
+ isDisabled,
3375
+ isFocused,
3376
+ checkboxButtonSize,
3377
+ checkboxSize,
3378
+ hasOwnLabel,
3379
+ model,
3380
+ handleChange,
3381
+ onClickRoot
3382
+ };
3383
+ };
3384
+
3385
+ const _hoisted_1$1 = ["tabindex", "role", "aria-checked"];
3386
+ const _hoisted_2$1 = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"];
3387
+ const _hoisted_3 = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"];
3388
+ const __default__$2 = vue.defineComponent({
3389
+ name: "ElCheckbox"
3390
+ });
3391
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
3392
+ ...__default__$2,
3393
+ props: checkboxProps,
3394
+ emits: checkboxEmits,
3395
+ setup(__props) {
3396
+ const props = __props;
3397
+ const slots = vue.useSlots();
3398
+ const {
3399
+ inputId,
3400
+ isLabeledByFormItem,
3401
+ isChecked,
3402
+ isDisabled,
3403
+ isFocused,
3404
+ checkboxSize,
3405
+ hasOwnLabel,
3406
+ model,
3407
+ handleChange,
3408
+ onClickRoot
3409
+ } = useCheckbox(props, slots);
3410
+ const ns = useNamespace("checkbox");
3411
+ const compKls = vue.computed(() => {
3412
+ return [
3413
+ ns.b(),
3414
+ ns.m(checkboxSize.value),
3415
+ ns.is("disabled", isDisabled.value),
3416
+ ns.is("bordered", props.border),
3417
+ ns.is("checked", isChecked.value)
3418
+ ];
3419
+ });
3420
+ const spanKls = vue.computed(() => {
3421
+ return [
3422
+ ns.e("input"),
3423
+ ns.is("disabled", isDisabled.value),
3424
+ ns.is("checked", isChecked.value),
3425
+ ns.is("indeterminate", props.indeterminate),
3426
+ ns.is("focus", isFocused.value)
3427
+ ];
3428
+ });
3429
+ return (_ctx, _cache) => {
3430
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(!vue.unref(hasOwnLabel) && vue.unref(isLabeledByFormItem) ? "span" : "label"), {
3431
+ class: vue.normalizeClass(vue.unref(compKls)),
3432
+ "aria-controls": _ctx.indeterminate ? _ctx.controls : null,
3433
+ onClick: vue.unref(onClickRoot)
3434
+ }, {
3435
+ default: vue.withCtx(() => [
3436
+ vue.createElementVNode("span", {
3437
+ class: vue.normalizeClass(vue.unref(spanKls)),
3438
+ tabindex: _ctx.indeterminate ? 0 : void 0,
3439
+ role: _ctx.indeterminate ? "checkbox" : void 0,
3440
+ "aria-checked": _ctx.indeterminate ? "mixed" : void 0
3441
+ }, [
3442
+ _ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
3443
+ key: 0,
3444
+ id: vue.unref(inputId),
3445
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(model) ? model.value = $event : null),
3446
+ class: vue.normalizeClass(vue.unref(ns).e("original")),
3447
+ type: "checkbox",
3448
+ "aria-hidden": _ctx.indeterminate ? "true" : "false",
3449
+ name: _ctx.name,
3450
+ tabindex: _ctx.tabindex,
3451
+ disabled: vue.unref(isDisabled),
3452
+ "true-value": _ctx.trueLabel,
3453
+ "false-value": _ctx.falseLabel,
3454
+ onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
3455
+ onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
3456
+ onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false)
3457
+ }, null, 42, _hoisted_2$1)), [
3458
+ [vue.vModelCheckbox, vue.unref(model)]
3459
+ ]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
3460
+ key: 1,
3461
+ id: vue.unref(inputId),
3462
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(model) ? model.value = $event : null),
3463
+ class: vue.normalizeClass(vue.unref(ns).e("original")),
3464
+ type: "checkbox",
3465
+ "aria-hidden": _ctx.indeterminate ? "true" : "false",
3466
+ disabled: vue.unref(isDisabled),
3467
+ value: _ctx.label,
3468
+ name: _ctx.name,
3469
+ tabindex: _ctx.tabindex,
3470
+ onChange: _cache[5] || (_cache[5] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
3471
+ onFocus: _cache[6] || (_cache[6] = ($event) => isFocused.value = true),
3472
+ onBlur: _cache[7] || (_cache[7] = ($event) => isFocused.value = false)
3473
+ }, null, 42, _hoisted_3)), [
3474
+ [vue.vModelCheckbox, vue.unref(model)]
3475
+ ]),
3476
+ vue.createElementVNode("span", {
3477
+ class: vue.normalizeClass(vue.unref(ns).e("inner"))
3478
+ }, null, 2)
3479
+ ], 10, _hoisted_1$1),
3480
+ vue.unref(hasOwnLabel) ? (vue.openBlock(), vue.createElementBlock("span", {
3481
+ key: 0,
3482
+ class: vue.normalizeClass(vue.unref(ns).e("label"))
3483
+ }, [
3484
+ vue.renderSlot(_ctx.$slots, "default"),
3485
+ !_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
3486
+ vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
3487
+ ], 64)) : vue.createCommentVNode("v-if", true)
3488
+ ], 2)) : vue.createCommentVNode("v-if", true)
3489
+ ]),
3490
+ _: 3
3491
+ }, 8, ["class", "aria-controls", "onClick"]);
3492
+ };
3493
+ }
3494
+ });
3495
+ var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);
3496
+
3497
+ const _hoisted_1 = ["name", "tabindex", "disabled", "true-value", "false-value"];
3498
+ const _hoisted_2 = ["name", "tabindex", "disabled", "value"];
3499
+ const __default__$1 = vue.defineComponent({
3500
+ name: "ElCheckboxButton"
3501
+ });
3502
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
3503
+ ...__default__$1,
3504
+ props: checkboxProps,
3505
+ emits: checkboxEmits,
3506
+ setup(__props) {
3507
+ const props = __props;
3508
+ const slots = vue.useSlots();
3509
+ const {
3510
+ isFocused,
3511
+ isChecked,
3512
+ isDisabled,
3513
+ checkboxButtonSize,
3514
+ model,
3515
+ handleChange
3516
+ } = useCheckbox(props, slots);
3517
+ const checkboxGroup = vue.inject(checkboxGroupContextKey, void 0);
3518
+ const ns = useNamespace("checkbox");
3519
+ const activeStyle = vue.computed(() => {
3520
+ var _a, _b, _c, _d;
3521
+ const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
3522
+ return {
3523
+ backgroundColor: fillValue,
3524
+ borderColor: fillValue,
3525
+ color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
3526
+ boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : void 0
3527
+ };
3528
+ });
3529
+ const labelKls = vue.computed(() => {
3530
+ return [
3531
+ ns.b("button"),
3532
+ ns.bm("button", checkboxButtonSize.value),
3533
+ ns.is("disabled", isDisabled.value),
3534
+ ns.is("checked", isChecked.value),
3535
+ ns.is("focus", isFocused.value)
3536
+ ];
3537
+ });
3538
+ return (_ctx, _cache) => {
3539
+ return vue.openBlock(), vue.createElementBlock("label", {
3540
+ class: vue.normalizeClass(vue.unref(labelKls))
3541
+ }, [
3542
+ _ctx.trueLabel || _ctx.falseLabel ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
3543
+ key: 0,
3544
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(model) ? model.value = $event : null),
3545
+ class: vue.normalizeClass(vue.unref(ns).be("button", "original")),
3546
+ type: "checkbox",
3547
+ name: _ctx.name,
3548
+ tabindex: _ctx.tabindex,
3549
+ disabled: vue.unref(isDisabled),
3550
+ "true-value": _ctx.trueLabel,
3551
+ "false-value": _ctx.falseLabel,
3552
+ onChange: _cache[1] || (_cache[1] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
3553
+ onFocus: _cache[2] || (_cache[2] = ($event) => isFocused.value = true),
3554
+ onBlur: _cache[3] || (_cache[3] = ($event) => isFocused.value = false)
3555
+ }, null, 42, _hoisted_1)), [
3556
+ [vue.vModelCheckbox, vue.unref(model)]
3557
+ ]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
3558
+ key: 1,
3559
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(model) ? model.value = $event : null),
3560
+ class: vue.normalizeClass(vue.unref(ns).be("button", "original")),
3561
+ type: "checkbox",
3562
+ name: _ctx.name,
3563
+ tabindex: _ctx.tabindex,
3564
+ disabled: vue.unref(isDisabled),
3565
+ value: _ctx.label,
3566
+ onChange: _cache[5] || (_cache[5] = (...args) => vue.unref(handleChange) && vue.unref(handleChange)(...args)),
3567
+ onFocus: _cache[6] || (_cache[6] = ($event) => isFocused.value = true),
3568
+ onBlur: _cache[7] || (_cache[7] = ($event) => isFocused.value = false)
3569
+ }, null, 42, _hoisted_2)), [
3570
+ [vue.vModelCheckbox, vue.unref(model)]
3571
+ ]),
3572
+ _ctx.$slots.default || _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", {
3573
+ key: 2,
3574
+ class: vue.normalizeClass(vue.unref(ns).be("button", "inner")),
3575
+ style: vue.normalizeStyle(vue.unref(isChecked) ? vue.unref(activeStyle) : void 0)
3576
+ }, [
3577
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
3578
+ vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
3579
+ ])
3580
+ ], 6)) : vue.createCommentVNode("v-if", true)
3581
+ ], 2);
3582
+ };
3583
+ }
3584
+ });
3585
+ var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);
3586
+
3587
+ const checkboxGroupProps = buildProps({
3588
+ modelValue: {
3589
+ type: definePropType(Array),
3590
+ default: () => []
3591
+ },
3592
+ disabled: Boolean,
3593
+ min: Number,
3594
+ max: Number,
3595
+ size: useSizeProp,
3596
+ label: String,
3597
+ fill: String,
3598
+ textColor: String,
3599
+ tag: {
3600
+ type: String,
3601
+ default: "div"
3602
+ },
3603
+ validateEvent: {
3604
+ type: Boolean,
3605
+ default: true
3606
+ }
3607
+ });
3608
+ const checkboxGroupEmits = {
3609
+ [UPDATE_MODEL_EVENT]: (val) => isArray$2(val),
3610
+ change: (val) => isArray$2(val)
3611
+ };
3612
+
3613
+ const __default__ = vue.defineComponent({
3614
+ name: "ElCheckboxGroup"
3615
+ });
3616
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3617
+ ...__default__,
3618
+ props: checkboxGroupProps,
3619
+ emits: checkboxGroupEmits,
3620
+ setup(__props, { emit }) {
3621
+ const props = __props;
3622
+ const ns = useNamespace("checkbox");
3623
+ const { formItem } = useFormItem();
3624
+ const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {
3625
+ formItemContext: formItem
3626
+ });
3627
+ const changeEvent = async (value) => {
3628
+ emit(UPDATE_MODEL_EVENT, value);
3629
+ await vue.nextTick();
3630
+ emit("change", value);
3631
+ };
3632
+ const modelValue = vue.computed({
3633
+ get() {
3634
+ return props.modelValue;
3635
+ },
3636
+ set(val) {
3637
+ changeEvent(val);
3638
+ }
3639
+ });
3640
+ vue.provide(checkboxGroupContextKey, {
3641
+ ...pick$1(vue.toRefs(props), [
3642
+ "size",
3643
+ "min",
3644
+ "max",
3645
+ "disabled",
3646
+ "validateEvent",
3647
+ "fill",
3648
+ "textColor"
3649
+ ]),
3650
+ modelValue,
3651
+ changeEvent
3652
+ });
3653
+ vue.watch(() => props.modelValue, () => {
3654
+ if (props.validateEvent) {
3655
+ formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn(err));
3656
+ }
3657
+ });
3658
+ return (_ctx, _cache) => {
3659
+ var _a;
3660
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
3661
+ id: vue.unref(groupId),
3662
+ class: vue.normalizeClass(vue.unref(ns).b("group")),
3663
+ role: "group",
3664
+ "aria-label": !vue.unref(isLabeledByFormItem) ? _ctx.label || "checkbox-group" : void 0,
3665
+ "aria-labelledby": vue.unref(isLabeledByFormItem) ? (_a = vue.unref(formItem)) == null ? void 0 : _a.labelId : void 0
3666
+ }, {
3667
+ default: vue.withCtx(() => [
3668
+ vue.renderSlot(_ctx.$slots, "default")
3669
+ ]),
3670
+ _: 3
3671
+ }, 8, ["id", "class", "aria-label", "aria-labelledby"]);
3672
+ };
3673
+ }
3674
+ });
3675
+ var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);
3676
+
3677
+ const ElCheckbox = withInstall(Checkbox, {
3678
+ CheckboxButton,
3679
+ CheckboxGroup
3680
+ });
3681
+ withNoopInstall(CheckboxButton);
3682
+ withNoopInstall(CheckboxGroup);
3683
+
3684
+ var script = vue.defineComponent({
3685
+ name: 'RxCheckbox',
3686
+ components: {
3687
+ ElCheckbox
3688
+ },
3689
+ props: RxCheckboxProps,
3690
+ setup() {
3691
+ return {};
3692
+ }
3693
+ });
3694
+
3695
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
3696
+ const _component_el_checkbox = vue.resolveComponent("el-checkbox");
3697
+
3698
+ return (vue.openBlock(), vue.createBlock(_component_el_checkbox, vue.mergeProps(_ctx.$props, { class: "rx-checkbox" }), vue.createSlots({ _: 2 /* DYNAMIC */ }, [
3699
+ (_ctx.$slots.default)
3700
+ ? {
3701
+ name: "default",
3702
+ fn: vue.withCtx(() => [
3703
+ vue.renderSlot(_ctx.$slots, "default")
3704
+ ]),
3705
+ key: "0"
3706
+ }
3707
+ : undefined
3708
+ ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
3709
+ }
3710
+
3711
+ script.render = render;
3712
+ script.__file = "packages/components/RxCheckbox/src/index.vue";
3713
+
3714
+ const RxCheckbox = withInstall$1.withInstall(script);
3715
+
3716
+ exports.RxCheckbox = RxCheckbox;
3717
+ exports["default"] = RxCheckbox;