@vunk/form 2.18.2 → 2.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/components/_plugin-vue_export-helper.cjs +1 -11
  2. package/components/api-tables-select/index.cjs +1 -467
  3. package/components/api-tables-select/index.mjs +56 -413
  4. package/components/api-tables-select/src/ctx.d.ts +147 -173
  5. package/components/api-tables-select/src/index.vue.d.ts +390 -983
  6. package/components/button/index.cjs +1 -112
  7. package/components/button/index.mjs +56 -85
  8. package/components/button/src/ctx.d.ts +28 -113
  9. package/components/button/src/index.vue.d.ts +314 -621
  10. package/components/card-input-collection/index.cjs +1 -370
  11. package/components/card-input-collection/index.mjs +175 -277
  12. package/components/card-input-collection/src/core.vue.d.ts +57 -950
  13. package/components/card-input-collection/src/ctx.d.ts +19 -49
  14. package/components/card-input-collection/src/index.vue.d.ts +49 -112
  15. package/components/cascader/index.cjs +1 -150
  16. package/components/cascader/index.mjs +88 -116
  17. package/components/cascader/src/ctx.d.ts +148 -207
  18. package/components/cascader/src/index.vue.d.ts +335 -525
  19. package/components/cascader/src/use.d.ts +1 -1
  20. package/components/checkbox/index.cjs +1 -152
  21. package/components/checkbox/index.mjs +75 -119
  22. package/components/checkbox/src/ctx.d.ts +46 -69
  23. package/components/checkbox/src/index.vue.d.ts +445 -1012
  24. package/components/cloneDeep.cjs +1 -2106
  25. package/components/color-picker/index.cjs +1 -80
  26. package/components/color-picker/index.mjs +46 -69
  27. package/components/color-picker/src/ctx.d.ts +138 -107
  28. package/components/color-picker/src/index.vue.d.ts +305 -255
  29. package/components/date-picker/index.cjs +1 -119
  30. package/components/date-picker/index.mjs +63 -97
  31. package/components/date-picker/src/ctx.d.ts +131 -206
  32. package/components/date-picker/src/index.vue.d.ts +287 -1359
  33. package/components/date-picker/src/types.d.ts +7 -7
  34. package/components/date-picker-range/index.cjs +1 -177
  35. package/components/date-picker-range/index.mjs +62 -113
  36. package/components/date-picker-range/src/ctx.d.ts +139 -207
  37. package/components/date-picker-range/src/index.vue.d.ts +896 -450
  38. package/components/debounce.cjs +1 -0
  39. package/components/dialog/index.cjs +1 -126
  40. package/components/dialog/index.mjs +65 -99
  41. package/components/dialog/src/ctx.d.ts +17 -108
  42. package/components/dialog/src/index.vue.d.ts +77 -1070
  43. package/components/dialog-input-collection/index.cjs +1 -624
  44. package/components/dialog-input-collection/index.mjs +276 -498
  45. package/components/dialog-input-collection/src/ctx.d.ts +20 -50
  46. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +28 -6366
  47. package/components/dialog-input-collection/src/index.vue.d.ts +66 -7629
  48. package/components/dialog-input-collection/src/layout.vue.d.ts +16 -72
  49. package/components/download-plus/index.cjs +1 -456
  50. package/components/download-plus/index.mjs +214 -358
  51. package/components/download-plus/src/ctx.d.ts +20 -50
  52. package/components/download-plus/src/index.vue.d.ts +434 -1171
  53. package/components/editable-text/index.cjs +1 -295
  54. package/components/editable-text/index.mjs +113 -239
  55. package/components/editable-text/src/ctx.d.ts +20 -50
  56. package/components/editable-text/src/index.vue.d.ts +62 -3257
  57. package/components/el-slider/index.cjs +1 -0
  58. package/components/el-slider/index.d.ts +5 -0
  59. package/components/el-slider/index.mjs +475 -0
  60. package/components/el-slider/src/button.d.ts +36 -0
  61. package/components/el-slider/src/button.vue.d.ts +42 -0
  62. package/components/el-slider/src/composables/index.cjs +1 -0
  63. package/components/el-slider/src/composables/index.d.ts +6 -0
  64. package/components/el-slider/src/composables/index.mjs +9 -0
  65. package/components/el-slider/src/composables/use-lifecycle.d.ts +4 -0
  66. package/components/el-slider/src/composables/use-marks.d.ts +7 -0
  67. package/components/el-slider/src/composables/use-slide.d.ts +23 -0
  68. package/components/el-slider/src/composables/use-slider-button.d.ts +18 -0
  69. package/components/el-slider/src/composables/use-stops.d.ts +8 -0
  70. package/components/el-slider/src/composables/use-watch.d.ts +4 -0
  71. package/components/el-slider/src/constants.d.ts +14 -0
  72. package/components/el-slider/src/marker.d.ts +37 -0
  73. package/components/el-slider/src/slider-core.vue.d.ts +219 -0
  74. package/components/el-slider/src/slider.d.ts +175 -0
  75. package/components/esri-input-geojson/index.cjs +2 -1604
  76. package/components/esri-input-geojson/index.mjs +666 -1289
  77. package/components/esri-input-geojson/src/append.vue.d.ts +225 -1084
  78. package/components/esri-input-geojson/src/const.d.ts +1 -1
  79. package/components/esri-input-geojson/src/ctx.d.ts +62 -158
  80. package/components/esri-input-geojson/src/default-view.vue.d.ts +12 -132
  81. package/components/esri-input-geojson/src/index.vue.d.ts +1470 -789
  82. package/components/esri-input-geojson/src/viewer.vue.d.ts +424 -287
  83. package/components/fieldset/index.cjs +1 -110
  84. package/components/fieldset/index.mjs +62 -77
  85. package/components/fieldset/src/ctx.d.ts +4 -4
  86. package/components/fieldset/src/index.vue.d.ts +10 -9
  87. package/components/form/index.cjs +1 -248
  88. package/components/form/index.mjs +107 -161
  89. package/components/form/src/ctx.d.ts +15 -64
  90. package/components/form/src/index.vue.d.ts +360 -2416
  91. package/components/form-item/index.cjs +1 -294
  92. package/components/form-item/index.mjs +139 -229
  93. package/components/form-item/src/core.vue.d.ts +33 -1853
  94. package/components/form-item/src/ctx.d.ts +17 -47
  95. package/components/form-item/src/index.vue.d.ts +41 -103
  96. package/components/form-item-renderer/index.cjs +1 -193
  97. package/components/form-item-renderer/index.mjs +102 -162
  98. package/components/form-item-renderer/src/core.vue.d.ts +12 -11
  99. package/components/form-item-renderer/src/ctx.d.ts +3 -3
  100. package/components/form-item-renderer/src/index.vue.d.ts +25 -73
  101. package/components/form-item-renderer-template/index.cjs +1 -47
  102. package/components/form-item-renderer-template/index.mjs +19 -33
  103. package/components/form-item-renderer-template/src/index.vue.d.ts +4 -3
  104. package/components/forms-provider/index.cjs +1 -99
  105. package/components/forms-provider/index.mjs +44 -73
  106. package/components/forms-provider/src/core.d.ts +3 -2
  107. package/components/forms-provider/src/index.vue.d.ts +5 -2
  108. package/components/forms-provider/src/segment.vue.d.ts +12 -8
  109. package/components/forms-provider/src/view.vue.d.ts +17 -3
  110. package/components/index.cjs +1 -399
  111. package/components/index2.cjs +1 -17
  112. package/components/information/index.cjs +1 -65
  113. package/components/information/index.mjs +28 -38
  114. package/components/information/src/ctx.d.ts +2 -2
  115. package/components/information/src/index.vue.d.ts +7 -6
  116. package/components/information-collection/index.cjs +1 -81
  117. package/components/information-collection/index.mjs +44 -48
  118. package/components/information-collection/src/ctx.d.ts +20 -50
  119. package/components/information-collection/src/index.vue.d.ts +49 -112
  120. package/components/information-renderer/index.cjs +1 -16
  121. package/components/information-renderer/index.mjs +9 -10
  122. package/components/information-tag/index.cjs +1 -101
  123. package/components/information-tag/index.mjs +44 -54
  124. package/components/information-tag/src/ctx.d.ts +5 -19
  125. package/components/information-tag/src/index.vue.d.ts +24 -51
  126. package/components/information-templates-default/index.cjs +1 -101
  127. package/components/information-templates-default/index.mjs +63 -73
  128. package/components/information-templates-default/src/index.vue.d.ts +2 -1
  129. package/components/input/index.cjs +1 -115
  130. package/components/input/index.mjs +60 -83
  131. package/components/input/src/ctx.d.ts +50 -151
  132. package/components/input/src/index.vue.d.ts +389 -947
  133. package/components/input-array/index.cjs +1 -310
  134. package/components/input-array/index.mjs +114 -244
  135. package/components/input-array/src/ctx.d.ts +19 -49
  136. package/components/input-array/src/form-template.vue.d.ts +2 -901
  137. package/components/input-array/src/index.vue.d.ts +45 -731
  138. package/components/input-collection/index.cjs +1 -452
  139. package/components/input-collection/index.mjs +195 -355
  140. package/components/input-collection/src/core.vue.d.ts +59 -1019
  141. package/components/input-collection/src/ctx.d.ts +19 -49
  142. package/components/input-collection/src/index.vue.d.ts +47 -110
  143. package/components/input-file/index.cjs +1 -142
  144. package/components/input-file/index.mjs +68 -100
  145. package/components/input-file/src/ctx.d.ts +8 -29
  146. package/components/input-file/src/index.vue.d.ts +447 -76
  147. package/components/input-file/src/template.vue.d.ts +2 -124
  148. package/components/input-link/index.cjs +1 -167
  149. package/components/input-link/index.mjs +60 -83
  150. package/components/input-link/src/ctx.d.ts +48 -135
  151. package/components/input-link/src/index.vue.d.ts +835 -312
  152. package/components/input-number/index.cjs +1 -119
  153. package/components/input-number/index.mjs +73 -87
  154. package/components/input-number/src/ctx.d.ts +38 -131
  155. package/components/input-number/src/index.vue.d.ts +321 -682
  156. package/components/input-tag/index.cjs +1 -100
  157. package/components/input-tag/index.mjs +51 -78
  158. package/components/input-tag/src/ctx.d.ts +41 -143
  159. package/components/input-tag/src/index.vue.d.ts +322 -775
  160. package/components/isObject.cjs +1 -165
  161. package/components/monaco-editor/index.cjs +1 -83
  162. package/components/monaco-editor/index.mjs +40 -59
  163. package/components/monaco-editor/src/ctx.d.ts +19 -44
  164. package/components/monaco-editor/src/index.vue.d.ts +212 -111
  165. package/components/radio/index.cjs +1 -267
  166. package/components/radio/index.mjs +110 -209
  167. package/components/radio/src/ctx.d.ts +27 -91
  168. package/components/radio/src/index.vue.d.ts +299 -1279
  169. package/components/radio/src/option.vue.d.ts +28 -878
  170. package/components/radio/src/wraper.vue.d.ts +67 -198
  171. package/components/renderer-data/index.cjs +1 -41
  172. package/components/renderer-data/index.mjs +19 -26
  173. package/components/renderer-data/src/ctx.d.ts +1 -1
  174. package/components/renderer-data/src/index.vue.d.ts +5 -4
  175. package/components/select/index.cjs +1 -311
  176. package/components/select/index.mjs +156 -214
  177. package/components/select/src/core.vue.d.ts +446 -1028
  178. package/components/select/src/ctx.d.ts +60 -215
  179. package/components/select/src/index.vue.d.ts +318 -593
  180. package/components/select/src/options.vue.d.ts +4 -3
  181. package/components/slider/index.cjs +1 -88
  182. package/components/slider/index.mjs +41 -70
  183. package/components/slider/src/ctx.d.ts +63 -174
  184. package/components/slider/src/index.vue.d.ts +154 -419
  185. package/components/style.css +1 -0
  186. package/components/switch/index.cjs +1 -88
  187. package/components/switch/index.mjs +37 -69
  188. package/components/switch/src/ctx.d.ts +30 -109
  189. package/components/switch/src/index.vue.d.ts +90 -697
  190. package/components/switch/src/types.d.ts +2 -2
  191. package/components/tables-select/index.cjs +1 -263
  192. package/components/tables-select/index.mjs +101 -172
  193. package/components/tables-select/src/ctx.d.ts +68 -99
  194. package/components/tables-select/src/index.vue.d.ts +233 -4988
  195. package/components/template-instances-provider/index.cjs +1 -31
  196. package/components/template-instances-provider/index.mjs +18 -22
  197. package/components/template-instances-provider/src/index.vue.d.ts +5 -4
  198. package/components/templates-default/index.cjs +1 -235
  199. package/components/templates-default/index.mjs +152 -211
  200. package/components/templates-default/src/ctx.d.ts +2 -2
  201. package/components/templates-default/src/index.vue.d.ts +7337 -145
  202. package/components/templates-element-plus/index.cjs +1 -112
  203. package/components/templates-element-plus/index.mjs +49 -91
  204. package/components/templates-element-plus/src/ctx.d.ts +1 -1
  205. package/components/templates-element-plus/src/index.vue.d.ts +59 -251
  206. package/components/templates-esri/index.cjs +1 -65
  207. package/components/templates-esri/index.mjs +29 -39
  208. package/components/templates-esri/src/ctx.d.ts +1 -1
  209. package/components/templates-esri/src/index.vue.d.ts +2184 -25
  210. package/components/templates-layout/index.cjs +1 -137
  211. package/components/templates-layout/index.mjs +78 -116
  212. package/components/templates-layout/src/ctx.d.ts +1 -1
  213. package/components/templates-layout/src/index.vue.d.ts +73 -404
  214. package/components/templates-variant/index.cjs +1 -70
  215. package/components/templates-variant/index.mjs +33 -43
  216. package/components/templates-variant/src/ctx.d.ts +1 -1
  217. package/components/templates-variant/src/index.vue.d.ts +1272 -25
  218. package/components/time-picker/index.cjs +1 -104
  219. package/components/time-picker/index.mjs +57 -87
  220. package/components/time-picker/src/ctx.d.ts +130 -212
  221. package/components/time-picker/src/index.vue.d.ts +283 -1371
  222. package/components/upload/index.cjs +1 -663
  223. package/components/upload/index.mjs +343 -537
  224. package/components/upload/src/ctx.d.ts +106 -191
  225. package/components/upload/src/file.vue.d.ts +168 -745
  226. package/components/upload/src/index.vue.d.ts +647 -1888
  227. package/components/upload/src/types.d.ts +1 -1
  228. package/components/upload/src/wraper.vue.d.ts +233 -407
  229. package/components/upload-plus/index.cjs +21 -18673
  230. package/components/upload-plus/index.mjs +4566 -18366
  231. package/components/upload-plus/src/api.d.ts +1 -1
  232. package/components/upload-plus/src/ctx.d.ts +21 -51
  233. package/components/upload-plus/src/index.vue.d.ts +53 -1657
  234. package/components/use-watch.cjs +1 -0
  235. package/components/van-cascader/index.cjs +1 -125
  236. package/components/van-cascader/index.mjs +51 -96
  237. package/components/van-cascader/src/ctx.d.ts +143 -203
  238. package/components/van-cascader/src/index.vue.d.ts +332 -988
  239. package/components/var-datetime-picker/index.cjs +1 -333
  240. package/components/var-datetime-picker/index.mjs +173 -254
  241. package/components/var-datetime-picker/src/ctx.d.ts +18 -48
  242. package/components/var-datetime-picker/src/index.vue.d.ts +628 -1090
  243. package/components/vditor/index.cjs +1 -86
  244. package/components/vditor/index.mjs +40 -66
  245. package/components/vditor/src/ctx.d.ts +15 -45
  246. package/components/vditor/src/index.vue.d.ts +195 -120
  247. package/composables/element-plus/index.cjs +1 -23
  248. package/composables/element-plus/index.mjs +14 -18
  249. package/composables/index.cjs +1 -161
  250. package/composables/index.d.ts +1 -0
  251. package/composables/index.mjs +100 -135
  252. package/composables/useForm.d.ts +2 -2
  253. package/composables/useRtl.d.ts +18 -0
  254. package/composables/useTemplateInstances.d.ts +3 -3
  255. package/index.css +1 -562
  256. package/index.d.ts +0 -3
  257. package/index.esm.js +23 -48
  258. package/locale/index.cjs +1 -102
  259. package/locale/index.mjs +34 -34
  260. package/locale/lang/index.cjs +1 -2
  261. package/locale/lang/index.d.ts +1 -0
  262. package/package.json +14 -85
  263. package/shared/const/index.cjs +1 -59
  264. package/shared/const/index.d.ts +1 -1
  265. package/shared/const/index.mjs +18 -20
  266. package/shared/element-plus/ctx.d.ts +40 -37
  267. package/shared/element-plus/index.cjs +1 -211
  268. package/shared/element-plus/index.mjs +93 -161
  269. package/shared/element-plus/instances.d.ts +224 -321
  270. package/shared/form/index.cjs +1 -33
  271. package/shared/form/index.mjs +23 -25
  272. package/shared/helper/index.cjs +1 -11
  273. package/shared/helper/index.mjs +7 -8
  274. package/shared/index.cjs +1 -8
  275. package/shared/index.mjs +5 -1
  276. package/shared/infer-prop/index.cjs +1 -36
  277. package/shared/infer-prop/index.mjs +22 -28
  278. package/shared/progress-it/index.cjs +1 -42
  279. package/shared/progress-it/index.mjs +15 -31
  280. package/shared/rules/index.cjs +1 -56
  281. package/shared/rules/index.mjs +19 -18
  282. package/shared/types/form/index.cjs +1 -2
  283. package/shared/types/index.cjs +1 -2
  284. package/shared/types/source/index.cjs +1 -2
  285. package/shared/types/source-manager/index.cjs +1 -2
  286. package/shared/upload/index.cjs +1 -774
  287. package/shared/upload/index.mjs +180 -764
  288. package/component.d.ts +0 -3
  289. package/components/_plugin-vue_export-helper.mjs +0 -9
  290. package/components/card-input-collection/index.css +0 -21
  291. package/components/cascader/index.css +0 -9
  292. package/components/checkbox/index.css +0 -30
  293. package/components/cloneDeep.mjs +0 -2104
  294. package/components/date-picker-range/index.css +0 -18
  295. package/components/dialog-input-collection/index.css +0 -21
  296. package/components/download-plus/index.css +0 -68
  297. package/components/editable-text/index.css +0 -9
  298. package/components/esri-input-geojson/index.css +0 -32
  299. package/components/fieldset/index.css +0 -5
  300. package/components/form-item/index.css +0 -35
  301. package/components/index.mjs +0 -378
  302. package/components/index2.mjs +0 -14
  303. package/components/information-tag/index.css +0 -6
  304. package/components/information-templates-default/index.css +0 -16
  305. package/components/input-array/index.css +0 -14
  306. package/components/input-collection/index.css +0 -20
  307. package/components/input-link/index.css +0 -4
  308. package/components/input-number/index.css +0 -13
  309. package/components/isObject.mjs +0 -158
  310. package/components/monaco-editor/index.css +0 -4
  311. package/components/radio/index.css +0 -40
  312. package/components/select/index.css +0 -15
  313. package/components/switch/index.css +0 -10
  314. package/components/tables-select/index.css +0 -3
  315. package/components/templates-layout/index.css +0 -3
  316. package/components/upload/index.css +0 -34
  317. package/components/upload-plus/index.css +0 -84
  318. package/components/van-cascader/index.css +0 -6
  319. package/components/var-datetime-picker/index.css +0 -17
  320. package/defaults.d.ts +0 -5
@@ -1,2106 +1 @@
1
- 'use strict';
2
-
3
- var isObject = require('./isObject.cjs');
4
-
5
- /**
6
- * Checks if `value` is classified as an `Array` object.
7
- *
8
- * @static
9
- * @memberOf _
10
- * @since 0.1.0
11
- * @category Lang
12
- * @param {*} value The value to check.
13
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
14
- * @example
15
- *
16
- * _.isArray([1, 2, 3]);
17
- * // => true
18
- *
19
- * _.isArray(document.body.children);
20
- * // => false
21
- *
22
- * _.isArray('abc');
23
- * // => false
24
- *
25
- * _.isArray(_.noop);
26
- * // => false
27
- */
28
- var isArray = Array.isArray;
29
-
30
- var isArray$1 = isArray;
31
-
32
- /** `Object#toString` result references. */
33
- var asyncTag = '[object AsyncFunction]',
34
- funcTag$2 = '[object Function]',
35
- genTag$1 = '[object GeneratorFunction]',
36
- proxyTag = '[object Proxy]';
37
-
38
- /**
39
- * Checks if `value` is classified as a `Function` object.
40
- *
41
- * @static
42
- * @memberOf _
43
- * @since 0.1.0
44
- * @category Lang
45
- * @param {*} value The value to check.
46
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
47
- * @example
48
- *
49
- * _.isFunction(_);
50
- * // => true
51
- *
52
- * _.isFunction(/abc/);
53
- * // => false
54
- */
55
- function isFunction(value) {
56
- if (!isObject.isObject(value)) {
57
- return false;
58
- }
59
- // The use of `Object#toString` avoids issues with the `typeof` operator
60
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
61
- var tag = isObject.baseGetTag(value);
62
- return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
63
- }
64
-
65
- /** Used to detect overreaching core-js shims. */
66
- var coreJsData = isObject.root['__core-js_shared__'];
67
-
68
- /** Used to detect methods masquerading as native. */
69
- var maskSrcKey = (function() {
70
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
71
- return uid ? ('Symbol(src)_1.' + uid) : '';
72
- }());
73
-
74
- /**
75
- * Checks if `func` has its source masked.
76
- *
77
- * @private
78
- * @param {Function} func The function to check.
79
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
80
- */
81
- function isMasked(func) {
82
- return !!maskSrcKey && (maskSrcKey in func);
83
- }
84
-
85
- /** Used for built-in method references. */
86
- var funcProto$1 = Function.prototype;
87
-
88
- /** Used to resolve the decompiled source of functions. */
89
- var funcToString$1 = funcProto$1.toString;
90
-
91
- /**
92
- * Converts `func` to its source code.
93
- *
94
- * @private
95
- * @param {Function} func The function to convert.
96
- * @returns {string} Returns the source code.
97
- */
98
- function toSource(func) {
99
- if (func != null) {
100
- try {
101
- return funcToString$1.call(func);
102
- } catch (e) {}
103
- try {
104
- return (func + '');
105
- } catch (e) {}
106
- }
107
- return '';
108
- }
109
-
110
- /**
111
- * Used to match `RegExp`
112
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
113
- */
114
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
115
-
116
- /** Used to detect host constructors (Safari). */
117
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
118
-
119
- /** Used for built-in method references. */
120
- var funcProto = Function.prototype,
121
- objectProto$a = Object.prototype;
122
-
123
- /** Used to resolve the decompiled source of functions. */
124
- var funcToString = funcProto.toString;
125
-
126
- /** Used to check objects for own properties. */
127
- var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
128
-
129
- /** Used to detect if a method is native. */
130
- var reIsNative = RegExp('^' +
131
- funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
132
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
133
- );
134
-
135
- /**
136
- * The base implementation of `_.isNative` without bad shim checks.
137
- *
138
- * @private
139
- * @param {*} value The value to check.
140
- * @returns {boolean} Returns `true` if `value` is a native function,
141
- * else `false`.
142
- */
143
- function baseIsNative(value) {
144
- if (!isObject.isObject(value) || isMasked(value)) {
145
- return false;
146
- }
147
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
148
- return pattern.test(toSource(value));
149
- }
150
-
151
- /**
152
- * Gets the value at `key` of `object`.
153
- *
154
- * @private
155
- * @param {Object} [object] The object to query.
156
- * @param {string} key The key of the property to get.
157
- * @returns {*} Returns the property value.
158
- */
159
- function getValue(object, key) {
160
- return object == null ? undefined : object[key];
161
- }
162
-
163
- /**
164
- * Gets the native function at `key` of `object`.
165
- *
166
- * @private
167
- * @param {Object} object The object to query.
168
- * @param {string} key The key of the method to get.
169
- * @returns {*} Returns the function if it's native, else `undefined`.
170
- */
171
- function getNative(object, key) {
172
- var value = getValue(object, key);
173
- return baseIsNative(value) ? value : undefined;
174
- }
175
-
176
- /* Built-in method references that are verified to be native. */
177
- var WeakMap = getNative(isObject.root, 'WeakMap');
178
-
179
- /** Built-in value references. */
180
- var objectCreate = Object.create;
181
-
182
- /**
183
- * The base implementation of `_.create` without support for assigning
184
- * properties to the created object.
185
- *
186
- * @private
187
- * @param {Object} proto The object to inherit from.
188
- * @returns {Object} Returns the new object.
189
- */
190
- var baseCreate = (function() {
191
- function object() {}
192
- return function(proto) {
193
- if (!isObject.isObject(proto)) {
194
- return {};
195
- }
196
- if (objectCreate) {
197
- return objectCreate(proto);
198
- }
199
- object.prototype = proto;
200
- var result = new object;
201
- object.prototype = undefined;
202
- return result;
203
- };
204
- }());
205
-
206
- /**
207
- * Copies the values of `source` to `array`.
208
- *
209
- * @private
210
- * @param {Array} source The array to copy values from.
211
- * @param {Array} [array=[]] The array to copy values to.
212
- * @returns {Array} Returns `array`.
213
- */
214
- function copyArray(source, array) {
215
- var index = -1,
216
- length = source.length;
217
-
218
- array || (array = Array(length));
219
- while (++index < length) {
220
- array[index] = source[index];
221
- }
222
- return array;
223
- }
224
-
225
- var defineProperty = (function() {
226
- try {
227
- var func = getNative(Object, 'defineProperty');
228
- func({}, '', {});
229
- return func;
230
- } catch (e) {}
231
- }());
232
-
233
- /**
234
- * A specialized version of `_.forEach` for arrays without support for
235
- * iteratee shorthands.
236
- *
237
- * @private
238
- * @param {Array} [array] The array to iterate over.
239
- * @param {Function} iteratee The function invoked per iteration.
240
- * @returns {Array} Returns `array`.
241
- */
242
- function arrayEach(array, iteratee) {
243
- var index = -1,
244
- length = array == null ? 0 : array.length;
245
-
246
- while (++index < length) {
247
- if (iteratee(array[index], index, array) === false) {
248
- break;
249
- }
250
- }
251
- return array;
252
- }
253
-
254
- /** Used as references for various `Number` constants. */
255
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
256
-
257
- /** Used to detect unsigned integer values. */
258
- var reIsUint = /^(?:0|[1-9]\d*)$/;
259
-
260
- /**
261
- * Checks if `value` is a valid array-like index.
262
- *
263
- * @private
264
- * @param {*} value The value to check.
265
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
266
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
267
- */
268
- function isIndex(value, length) {
269
- var type = typeof value;
270
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
271
-
272
- return !!length &&
273
- (type == 'number' ||
274
- (type != 'symbol' && reIsUint.test(value))) &&
275
- (value > -1 && value % 1 == 0 && value < length);
276
- }
277
-
278
- /**
279
- * The base implementation of `assignValue` and `assignMergeValue` without
280
- * value checks.
281
- *
282
- * @private
283
- * @param {Object} object The object to modify.
284
- * @param {string} key The key of the property to assign.
285
- * @param {*} value The value to assign.
286
- */
287
- function baseAssignValue(object, key, value) {
288
- if (key == '__proto__' && defineProperty) {
289
- defineProperty(object, key, {
290
- 'configurable': true,
291
- 'enumerable': true,
292
- 'value': value,
293
- 'writable': true
294
- });
295
- } else {
296
- object[key] = value;
297
- }
298
- }
299
-
300
- /**
301
- * Performs a
302
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
303
- * comparison between two values to determine if they are equivalent.
304
- *
305
- * @static
306
- * @memberOf _
307
- * @since 4.0.0
308
- * @category Lang
309
- * @param {*} value The value to compare.
310
- * @param {*} other The other value to compare.
311
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
312
- * @example
313
- *
314
- * var object = { 'a': 1 };
315
- * var other = { 'a': 1 };
316
- *
317
- * _.eq(object, object);
318
- * // => true
319
- *
320
- * _.eq(object, other);
321
- * // => false
322
- *
323
- * _.eq('a', 'a');
324
- * // => true
325
- *
326
- * _.eq('a', Object('a'));
327
- * // => false
328
- *
329
- * _.eq(NaN, NaN);
330
- * // => true
331
- */
332
- function eq(value, other) {
333
- return value === other || (value !== value && other !== other);
334
- }
335
-
336
- /** Used for built-in method references. */
337
- var objectProto$9 = Object.prototype;
338
-
339
- /** Used to check objects for own properties. */
340
- var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
341
-
342
- /**
343
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
344
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
345
- * for equality comparisons.
346
- *
347
- * @private
348
- * @param {Object} object The object to modify.
349
- * @param {string} key The key of the property to assign.
350
- * @param {*} value The value to assign.
351
- */
352
- function assignValue(object, key, value) {
353
- var objValue = object[key];
354
- if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) ||
355
- (value === undefined && !(key in object))) {
356
- baseAssignValue(object, key, value);
357
- }
358
- }
359
-
360
- /**
361
- * Copies properties of `source` to `object`.
362
- *
363
- * @private
364
- * @param {Object} source The object to copy properties from.
365
- * @param {Array} props The property identifiers to copy.
366
- * @param {Object} [object={}] The object to copy properties to.
367
- * @param {Function} [customizer] The function to customize copied values.
368
- * @returns {Object} Returns `object`.
369
- */
370
- function copyObject(source, props, object, customizer) {
371
- var isNew = !object;
372
- object || (object = {});
373
-
374
- var index = -1,
375
- length = props.length;
376
-
377
- while (++index < length) {
378
- var key = props[index];
379
-
380
- var newValue = undefined;
381
-
382
- if (newValue === undefined) {
383
- newValue = source[key];
384
- }
385
- if (isNew) {
386
- baseAssignValue(object, key, newValue);
387
- } else {
388
- assignValue(object, key, newValue);
389
- }
390
- }
391
- return object;
392
- }
393
-
394
- /** Used as references for various `Number` constants. */
395
- var MAX_SAFE_INTEGER = 9007199254740991;
396
-
397
- /**
398
- * Checks if `value` is a valid array-like length.
399
- *
400
- * **Note:** This method is loosely based on
401
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
402
- *
403
- * @static
404
- * @memberOf _
405
- * @since 4.0.0
406
- * @category Lang
407
- * @param {*} value The value to check.
408
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
409
- * @example
410
- *
411
- * _.isLength(3);
412
- * // => true
413
- *
414
- * _.isLength(Number.MIN_VALUE);
415
- * // => false
416
- *
417
- * _.isLength(Infinity);
418
- * // => false
419
- *
420
- * _.isLength('3');
421
- * // => false
422
- */
423
- function isLength(value) {
424
- return typeof value == 'number' &&
425
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
426
- }
427
-
428
- /**
429
- * Checks if `value` is array-like. A value is considered array-like if it's
430
- * not a function and has a `value.length` that's an integer greater than or
431
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
432
- *
433
- * @static
434
- * @memberOf _
435
- * @since 4.0.0
436
- * @category Lang
437
- * @param {*} value The value to check.
438
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
439
- * @example
440
- *
441
- * _.isArrayLike([1, 2, 3]);
442
- * // => true
443
- *
444
- * _.isArrayLike(document.body.children);
445
- * // => true
446
- *
447
- * _.isArrayLike('abc');
448
- * // => true
449
- *
450
- * _.isArrayLike(_.noop);
451
- * // => false
452
- */
453
- function isArrayLike(value) {
454
- return value != null && isLength(value.length) && !isFunction(value);
455
- }
456
-
457
- /** Used for built-in method references. */
458
- var objectProto$8 = Object.prototype;
459
-
460
- /**
461
- * Checks if `value` is likely a prototype object.
462
- *
463
- * @private
464
- * @param {*} value The value to check.
465
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
466
- */
467
- function isPrototype(value) {
468
- var Ctor = value && value.constructor,
469
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$8;
470
-
471
- return value === proto;
472
- }
473
-
474
- /**
475
- * The base implementation of `_.times` without support for iteratee shorthands
476
- * or max array length checks.
477
- *
478
- * @private
479
- * @param {number} n The number of times to invoke `iteratee`.
480
- * @param {Function} iteratee The function invoked per iteration.
481
- * @returns {Array} Returns the array of results.
482
- */
483
- function baseTimes(n, iteratee) {
484
- var index = -1,
485
- result = Array(n);
486
-
487
- while (++index < n) {
488
- result[index] = iteratee(index);
489
- }
490
- return result;
491
- }
492
-
493
- /** `Object#toString` result references. */
494
- var argsTag$2 = '[object Arguments]';
495
-
496
- /**
497
- * The base implementation of `_.isArguments`.
498
- *
499
- * @private
500
- * @param {*} value The value to check.
501
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
502
- */
503
- function baseIsArguments(value) {
504
- return isObject.isObjectLike(value) && isObject.baseGetTag(value) == argsTag$2;
505
- }
506
-
507
- /** Used for built-in method references. */
508
- var objectProto$7 = Object.prototype;
509
-
510
- /** Used to check objects for own properties. */
511
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
512
-
513
- /** Built-in value references. */
514
- var propertyIsEnumerable$1 = objectProto$7.propertyIsEnumerable;
515
-
516
- /**
517
- * Checks if `value` is likely an `arguments` object.
518
- *
519
- * @static
520
- * @memberOf _
521
- * @since 0.1.0
522
- * @category Lang
523
- * @param {*} value The value to check.
524
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
525
- * else `false`.
526
- * @example
527
- *
528
- * _.isArguments(function() { return arguments; }());
529
- * // => true
530
- *
531
- * _.isArguments([1, 2, 3]);
532
- * // => false
533
- */
534
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
535
- return isObject.isObjectLike(value) && hasOwnProperty$6.call(value, 'callee') &&
536
- !propertyIsEnumerable$1.call(value, 'callee');
537
- };
538
-
539
- /**
540
- * This method returns `false`.
541
- *
542
- * @static
543
- * @memberOf _
544
- * @since 4.13.0
545
- * @category Util
546
- * @returns {boolean} Returns `false`.
547
- * @example
548
- *
549
- * _.times(2, _.stubFalse);
550
- * // => [false, false]
551
- */
552
- function stubFalse() {
553
- return false;
554
- }
555
-
556
- /** Detect free variable `exports`. */
557
- var freeExports$2 = typeof exports == 'object' && exports && !exports.nodeType && exports;
558
-
559
- /** Detect free variable `module`. */
560
- var freeModule$2 = freeExports$2 && typeof module == 'object' && module && !module.nodeType && module;
561
-
562
- /** Detect the popular CommonJS extension `module.exports`. */
563
- var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
564
-
565
- /** Built-in value references. */
566
- var Buffer$1 = moduleExports$2 ? isObject.root.Buffer : undefined;
567
-
568
- /* Built-in method references for those with the same name as other `lodash` methods. */
569
- var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : undefined;
570
-
571
- /**
572
- * Checks if `value` is a buffer.
573
- *
574
- * @static
575
- * @memberOf _
576
- * @since 4.3.0
577
- * @category Lang
578
- * @param {*} value The value to check.
579
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
580
- * @example
581
- *
582
- * _.isBuffer(new Buffer(2));
583
- * // => true
584
- *
585
- * _.isBuffer(new Uint8Array(2));
586
- * // => false
587
- */
588
- var isBuffer = nativeIsBuffer || stubFalse;
589
-
590
- /** `Object#toString` result references. */
591
- var argsTag$1 = '[object Arguments]',
592
- arrayTag$1 = '[object Array]',
593
- boolTag$2 = '[object Boolean]',
594
- dateTag$2 = '[object Date]',
595
- errorTag$1 = '[object Error]',
596
- funcTag$1 = '[object Function]',
597
- mapTag$4 = '[object Map]',
598
- numberTag$2 = '[object Number]',
599
- objectTag$2 = '[object Object]',
600
- regexpTag$2 = '[object RegExp]',
601
- setTag$4 = '[object Set]',
602
- stringTag$2 = '[object String]',
603
- weakMapTag$2 = '[object WeakMap]';
604
-
605
- var arrayBufferTag$2 = '[object ArrayBuffer]',
606
- dataViewTag$3 = '[object DataView]',
607
- float32Tag$2 = '[object Float32Array]',
608
- float64Tag$2 = '[object Float64Array]',
609
- int8Tag$2 = '[object Int8Array]',
610
- int16Tag$2 = '[object Int16Array]',
611
- int32Tag$2 = '[object Int32Array]',
612
- uint8Tag$2 = '[object Uint8Array]',
613
- uint8ClampedTag$2 = '[object Uint8ClampedArray]',
614
- uint16Tag$2 = '[object Uint16Array]',
615
- uint32Tag$2 = '[object Uint32Array]';
616
-
617
- /** Used to identify `toStringTag` values of typed arrays. */
618
- var typedArrayTags = {};
619
- typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
620
- typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
621
- typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
622
- typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
623
- typedArrayTags[uint32Tag$2] = true;
624
- typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
625
- typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] =
626
- typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] =
627
- typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] =
628
- typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] =
629
- typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] =
630
- typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] =
631
- typedArrayTags[weakMapTag$2] = false;
632
-
633
- /**
634
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
635
- *
636
- * @private
637
- * @param {*} value The value to check.
638
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
639
- */
640
- function baseIsTypedArray(value) {
641
- return isObject.isObjectLike(value) &&
642
- isLength(value.length) && !!typedArrayTags[isObject.baseGetTag(value)];
643
- }
644
-
645
- /**
646
- * The base implementation of `_.unary` without support for storing metadata.
647
- *
648
- * @private
649
- * @param {Function} func The function to cap arguments for.
650
- * @returns {Function} Returns the new capped function.
651
- */
652
- function baseUnary(func) {
653
- return function(value) {
654
- return func(value);
655
- };
656
- }
657
-
658
- /** Detect free variable `exports`. */
659
- var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
660
-
661
- /** Detect free variable `module`. */
662
- var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
663
-
664
- /** Detect the popular CommonJS extension `module.exports`. */
665
- var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
666
-
667
- /** Detect free variable `process` from Node.js. */
668
- var freeProcess = moduleExports$1 && isObject.freeGlobal.process;
669
-
670
- /** Used to access faster Node.js helpers. */
671
- var nodeUtil = (function() {
672
- try {
673
- // Use `util.types` for Node.js 10+.
674
- var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types;
675
-
676
- if (types) {
677
- return types;
678
- }
679
-
680
- // Legacy `process.binding('util')` for Node.js < 10.
681
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
682
- } catch (e) {}
683
- }());
684
-
685
- /* Node.js helper references. */
686
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
687
-
688
- /**
689
- * Checks if `value` is classified as a typed array.
690
- *
691
- * @static
692
- * @memberOf _
693
- * @since 3.0.0
694
- * @category Lang
695
- * @param {*} value The value to check.
696
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
697
- * @example
698
- *
699
- * _.isTypedArray(new Uint8Array);
700
- * // => true
701
- *
702
- * _.isTypedArray([]);
703
- * // => false
704
- */
705
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
706
-
707
- /** Used for built-in method references. */
708
- var objectProto$6 = Object.prototype;
709
-
710
- /** Used to check objects for own properties. */
711
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
712
-
713
- /**
714
- * Creates an array of the enumerable property names of the array-like `value`.
715
- *
716
- * @private
717
- * @param {*} value The value to query.
718
- * @param {boolean} inherited Specify returning inherited property names.
719
- * @returns {Array} Returns the array of property names.
720
- */
721
- function arrayLikeKeys(value, inherited) {
722
- var isArr = isArray$1(value),
723
- isArg = !isArr && isArguments(value),
724
- isBuff = !isArr && !isArg && isBuffer(value),
725
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
726
- skipIndexes = isArr || isArg || isBuff || isType,
727
- result = skipIndexes ? baseTimes(value.length, String) : [],
728
- length = result.length;
729
-
730
- for (var key in value) {
731
- if ((inherited || hasOwnProperty$5.call(value, key)) &&
732
- !(skipIndexes && (
733
- // Safari 9 has enumerable `arguments.length` in strict mode.
734
- key == 'length' ||
735
- // Node.js 0.10 has enumerable non-index properties on buffers.
736
- (isBuff && (key == 'offset' || key == 'parent')) ||
737
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
738
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
739
- // Skip index properties.
740
- isIndex(key, length)
741
- ))) {
742
- result.push(key);
743
- }
744
- }
745
- return result;
746
- }
747
-
748
- /**
749
- * Creates a unary function that invokes `func` with its argument transformed.
750
- *
751
- * @private
752
- * @param {Function} func The function to wrap.
753
- * @param {Function} transform The argument transform.
754
- * @returns {Function} Returns the new function.
755
- */
756
- function overArg(func, transform) {
757
- return function(arg) {
758
- return func(transform(arg));
759
- };
760
- }
761
-
762
- /* Built-in method references for those with the same name as other `lodash` methods. */
763
- var nativeKeys = overArg(Object.keys, Object);
764
-
765
- /** Used for built-in method references. */
766
- var objectProto$5 = Object.prototype;
767
-
768
- /** Used to check objects for own properties. */
769
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
770
-
771
- /**
772
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
773
- *
774
- * @private
775
- * @param {Object} object The object to query.
776
- * @returns {Array} Returns the array of property names.
777
- */
778
- function baseKeys(object) {
779
- if (!isPrototype(object)) {
780
- return nativeKeys(object);
781
- }
782
- var result = [];
783
- for (var key in Object(object)) {
784
- if (hasOwnProperty$4.call(object, key) && key != 'constructor') {
785
- result.push(key);
786
- }
787
- }
788
- return result;
789
- }
790
-
791
- /**
792
- * Creates an array of the own enumerable property names of `object`.
793
- *
794
- * **Note:** Non-object values are coerced to objects. See the
795
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
796
- * for more details.
797
- *
798
- * @static
799
- * @since 0.1.0
800
- * @memberOf _
801
- * @category Object
802
- * @param {Object} object The object to query.
803
- * @returns {Array} Returns the array of property names.
804
- * @example
805
- *
806
- * function Foo() {
807
- * this.a = 1;
808
- * this.b = 2;
809
- * }
810
- *
811
- * Foo.prototype.c = 3;
812
- *
813
- * _.keys(new Foo);
814
- * // => ['a', 'b'] (iteration order is not guaranteed)
815
- *
816
- * _.keys('hi');
817
- * // => ['0', '1']
818
- */
819
- function keys(object) {
820
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
821
- }
822
-
823
- /**
824
- * This function is like
825
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
826
- * except that it includes inherited enumerable properties.
827
- *
828
- * @private
829
- * @param {Object} object The object to query.
830
- * @returns {Array} Returns the array of property names.
831
- */
832
- function nativeKeysIn(object) {
833
- var result = [];
834
- if (object != null) {
835
- for (var key in Object(object)) {
836
- result.push(key);
837
- }
838
- }
839
- return result;
840
- }
841
-
842
- /** Used for built-in method references. */
843
- var objectProto$4 = Object.prototype;
844
-
845
- /** Used to check objects for own properties. */
846
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
847
-
848
- /**
849
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
850
- *
851
- * @private
852
- * @param {Object} object The object to query.
853
- * @returns {Array} Returns the array of property names.
854
- */
855
- function baseKeysIn(object) {
856
- if (!isObject.isObject(object)) {
857
- return nativeKeysIn(object);
858
- }
859
- var isProto = isPrototype(object),
860
- result = [];
861
-
862
- for (var key in object) {
863
- if (!(key == 'constructor' && (isProto || !hasOwnProperty$3.call(object, key)))) {
864
- result.push(key);
865
- }
866
- }
867
- return result;
868
- }
869
-
870
- /**
871
- * Creates an array of the own and inherited enumerable property names of `object`.
872
- *
873
- * **Note:** Non-object values are coerced to objects.
874
- *
875
- * @static
876
- * @memberOf _
877
- * @since 3.0.0
878
- * @category Object
879
- * @param {Object} object The object to query.
880
- * @returns {Array} Returns the array of property names.
881
- * @example
882
- *
883
- * function Foo() {
884
- * this.a = 1;
885
- * this.b = 2;
886
- * }
887
- *
888
- * Foo.prototype.c = 3;
889
- *
890
- * _.keysIn(new Foo);
891
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
892
- */
893
- function keysIn(object) {
894
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
895
- }
896
-
897
- /* Built-in method references that are verified to be native. */
898
- var nativeCreate = getNative(Object, 'create');
899
-
900
- /**
901
- * Removes all key-value entries from the hash.
902
- *
903
- * @private
904
- * @name clear
905
- * @memberOf Hash
906
- */
907
- function hashClear() {
908
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
909
- this.size = 0;
910
- }
911
-
912
- /**
913
- * Removes `key` and its value from the hash.
914
- *
915
- * @private
916
- * @name delete
917
- * @memberOf Hash
918
- * @param {Object} hash The hash to modify.
919
- * @param {string} key The key of the value to remove.
920
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
921
- */
922
- function hashDelete(key) {
923
- var result = this.has(key) && delete this.__data__[key];
924
- this.size -= result ? 1 : 0;
925
- return result;
926
- }
927
-
928
- /** Used to stand-in for `undefined` hash values. */
929
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
930
-
931
- /** Used for built-in method references. */
932
- var objectProto$3 = Object.prototype;
933
-
934
- /** Used to check objects for own properties. */
935
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
936
-
937
- /**
938
- * Gets the hash value for `key`.
939
- *
940
- * @private
941
- * @name get
942
- * @memberOf Hash
943
- * @param {string} key The key of the value to get.
944
- * @returns {*} Returns the entry value.
945
- */
946
- function hashGet(key) {
947
- var data = this.__data__;
948
- if (nativeCreate) {
949
- var result = data[key];
950
- return result === HASH_UNDEFINED$1 ? undefined : result;
951
- }
952
- return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
953
- }
954
-
955
- /** Used for built-in method references. */
956
- var objectProto$2 = Object.prototype;
957
-
958
- /** Used to check objects for own properties. */
959
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
960
-
961
- /**
962
- * Checks if a hash value for `key` exists.
963
- *
964
- * @private
965
- * @name has
966
- * @memberOf Hash
967
- * @param {string} key The key of the entry to check.
968
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
969
- */
970
- function hashHas(key) {
971
- var data = this.__data__;
972
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$1.call(data, key);
973
- }
974
-
975
- /** Used to stand-in for `undefined` hash values. */
976
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
977
-
978
- /**
979
- * Sets the hash `key` to `value`.
980
- *
981
- * @private
982
- * @name set
983
- * @memberOf Hash
984
- * @param {string} key The key of the value to set.
985
- * @param {*} value The value to set.
986
- * @returns {Object} Returns the hash instance.
987
- */
988
- function hashSet(key, value) {
989
- var data = this.__data__;
990
- this.size += this.has(key) ? 0 : 1;
991
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
992
- return this;
993
- }
994
-
995
- /**
996
- * Creates a hash object.
997
- *
998
- * @private
999
- * @constructor
1000
- * @param {Array} [entries] The key-value pairs to cache.
1001
- */
1002
- function Hash(entries) {
1003
- var index = -1,
1004
- length = entries == null ? 0 : entries.length;
1005
-
1006
- this.clear();
1007
- while (++index < length) {
1008
- var entry = entries[index];
1009
- this.set(entry[0], entry[1]);
1010
- }
1011
- }
1012
-
1013
- // Add methods to `Hash`.
1014
- Hash.prototype.clear = hashClear;
1015
- Hash.prototype['delete'] = hashDelete;
1016
- Hash.prototype.get = hashGet;
1017
- Hash.prototype.has = hashHas;
1018
- Hash.prototype.set = hashSet;
1019
-
1020
- /**
1021
- * Removes all key-value entries from the list cache.
1022
- *
1023
- * @private
1024
- * @name clear
1025
- * @memberOf ListCache
1026
- */
1027
- function listCacheClear() {
1028
- this.__data__ = [];
1029
- this.size = 0;
1030
- }
1031
-
1032
- /**
1033
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1034
- *
1035
- * @private
1036
- * @param {Array} array The array to inspect.
1037
- * @param {*} key The key to search for.
1038
- * @returns {number} Returns the index of the matched value, else `-1`.
1039
- */
1040
- function assocIndexOf(array, key) {
1041
- var length = array.length;
1042
- while (length--) {
1043
- if (eq(array[length][0], key)) {
1044
- return length;
1045
- }
1046
- }
1047
- return -1;
1048
- }
1049
-
1050
- /** Used for built-in method references. */
1051
- var arrayProto = Array.prototype;
1052
-
1053
- /** Built-in value references. */
1054
- var splice = arrayProto.splice;
1055
-
1056
- /**
1057
- * Removes `key` and its value from the list cache.
1058
- *
1059
- * @private
1060
- * @name delete
1061
- * @memberOf ListCache
1062
- * @param {string} key The key of the value to remove.
1063
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1064
- */
1065
- function listCacheDelete(key) {
1066
- var data = this.__data__,
1067
- index = assocIndexOf(data, key);
1068
-
1069
- if (index < 0) {
1070
- return false;
1071
- }
1072
- var lastIndex = data.length - 1;
1073
- if (index == lastIndex) {
1074
- data.pop();
1075
- } else {
1076
- splice.call(data, index, 1);
1077
- }
1078
- --this.size;
1079
- return true;
1080
- }
1081
-
1082
- /**
1083
- * Gets the list cache value for `key`.
1084
- *
1085
- * @private
1086
- * @name get
1087
- * @memberOf ListCache
1088
- * @param {string} key The key of the value to get.
1089
- * @returns {*} Returns the entry value.
1090
- */
1091
- function listCacheGet(key) {
1092
- var data = this.__data__,
1093
- index = assocIndexOf(data, key);
1094
-
1095
- return index < 0 ? undefined : data[index][1];
1096
- }
1097
-
1098
- /**
1099
- * Checks if a list cache value for `key` exists.
1100
- *
1101
- * @private
1102
- * @name has
1103
- * @memberOf ListCache
1104
- * @param {string} key The key of the entry to check.
1105
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1106
- */
1107
- function listCacheHas(key) {
1108
- return assocIndexOf(this.__data__, key) > -1;
1109
- }
1110
-
1111
- /**
1112
- * Sets the list cache `key` to `value`.
1113
- *
1114
- * @private
1115
- * @name set
1116
- * @memberOf ListCache
1117
- * @param {string} key The key of the value to set.
1118
- * @param {*} value The value to set.
1119
- * @returns {Object} Returns the list cache instance.
1120
- */
1121
- function listCacheSet(key, value) {
1122
- var data = this.__data__,
1123
- index = assocIndexOf(data, key);
1124
-
1125
- if (index < 0) {
1126
- ++this.size;
1127
- data.push([key, value]);
1128
- } else {
1129
- data[index][1] = value;
1130
- }
1131
- return this;
1132
- }
1133
-
1134
- /**
1135
- * Creates an list cache object.
1136
- *
1137
- * @private
1138
- * @constructor
1139
- * @param {Array} [entries] The key-value pairs to cache.
1140
- */
1141
- function ListCache(entries) {
1142
- var index = -1,
1143
- length = entries == null ? 0 : entries.length;
1144
-
1145
- this.clear();
1146
- while (++index < length) {
1147
- var entry = entries[index];
1148
- this.set(entry[0], entry[1]);
1149
- }
1150
- }
1151
-
1152
- // Add methods to `ListCache`.
1153
- ListCache.prototype.clear = listCacheClear;
1154
- ListCache.prototype['delete'] = listCacheDelete;
1155
- ListCache.prototype.get = listCacheGet;
1156
- ListCache.prototype.has = listCacheHas;
1157
- ListCache.prototype.set = listCacheSet;
1158
-
1159
- /* Built-in method references that are verified to be native. */
1160
- var Map = getNative(isObject.root, 'Map');
1161
-
1162
- /**
1163
- * Removes all key-value entries from the map.
1164
- *
1165
- * @private
1166
- * @name clear
1167
- * @memberOf MapCache
1168
- */
1169
- function mapCacheClear() {
1170
- this.size = 0;
1171
- this.__data__ = {
1172
- 'hash': new Hash,
1173
- 'map': new (Map || ListCache),
1174
- 'string': new Hash
1175
- };
1176
- }
1177
-
1178
- /**
1179
- * Checks if `value` is suitable for use as unique object key.
1180
- *
1181
- * @private
1182
- * @param {*} value The value to check.
1183
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1184
- */
1185
- function isKeyable(value) {
1186
- var type = typeof value;
1187
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1188
- ? (value !== '__proto__')
1189
- : (value === null);
1190
- }
1191
-
1192
- /**
1193
- * Gets the data for `map`.
1194
- *
1195
- * @private
1196
- * @param {Object} map The map to query.
1197
- * @param {string} key The reference key.
1198
- * @returns {*} Returns the map data.
1199
- */
1200
- function getMapData(map, key) {
1201
- var data = map.__data__;
1202
- return isKeyable(key)
1203
- ? data[typeof key == 'string' ? 'string' : 'hash']
1204
- : data.map;
1205
- }
1206
-
1207
- /**
1208
- * Removes `key` and its value from the map.
1209
- *
1210
- * @private
1211
- * @name delete
1212
- * @memberOf MapCache
1213
- * @param {string} key The key of the value to remove.
1214
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1215
- */
1216
- function mapCacheDelete(key) {
1217
- var result = getMapData(this, key)['delete'](key);
1218
- this.size -= result ? 1 : 0;
1219
- return result;
1220
- }
1221
-
1222
- /**
1223
- * Gets the map value for `key`.
1224
- *
1225
- * @private
1226
- * @name get
1227
- * @memberOf MapCache
1228
- * @param {string} key The key of the value to get.
1229
- * @returns {*} Returns the entry value.
1230
- */
1231
- function mapCacheGet(key) {
1232
- return getMapData(this, key).get(key);
1233
- }
1234
-
1235
- /**
1236
- * Checks if a map value for `key` exists.
1237
- *
1238
- * @private
1239
- * @name has
1240
- * @memberOf MapCache
1241
- * @param {string} key The key of the entry to check.
1242
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1243
- */
1244
- function mapCacheHas(key) {
1245
- return getMapData(this, key).has(key);
1246
- }
1247
-
1248
- /**
1249
- * Sets the map `key` to `value`.
1250
- *
1251
- * @private
1252
- * @name set
1253
- * @memberOf MapCache
1254
- * @param {string} key The key of the value to set.
1255
- * @param {*} value The value to set.
1256
- * @returns {Object} Returns the map cache instance.
1257
- */
1258
- function mapCacheSet(key, value) {
1259
- var data = getMapData(this, key),
1260
- size = data.size;
1261
-
1262
- data.set(key, value);
1263
- this.size += data.size == size ? 0 : 1;
1264
- return this;
1265
- }
1266
-
1267
- /**
1268
- * Creates a map cache object to store key-value pairs.
1269
- *
1270
- * @private
1271
- * @constructor
1272
- * @param {Array} [entries] The key-value pairs to cache.
1273
- */
1274
- function MapCache(entries) {
1275
- var index = -1,
1276
- length = entries == null ? 0 : entries.length;
1277
-
1278
- this.clear();
1279
- while (++index < length) {
1280
- var entry = entries[index];
1281
- this.set(entry[0], entry[1]);
1282
- }
1283
- }
1284
-
1285
- // Add methods to `MapCache`.
1286
- MapCache.prototype.clear = mapCacheClear;
1287
- MapCache.prototype['delete'] = mapCacheDelete;
1288
- MapCache.prototype.get = mapCacheGet;
1289
- MapCache.prototype.has = mapCacheHas;
1290
- MapCache.prototype.set = mapCacheSet;
1291
-
1292
- /**
1293
- * Appends the elements of `values` to `array`.
1294
- *
1295
- * @private
1296
- * @param {Array} array The array to modify.
1297
- * @param {Array} values The values to append.
1298
- * @returns {Array} Returns `array`.
1299
- */
1300
- function arrayPush(array, values) {
1301
- var index = -1,
1302
- length = values.length,
1303
- offset = array.length;
1304
-
1305
- while (++index < length) {
1306
- array[offset + index] = values[index];
1307
- }
1308
- return array;
1309
- }
1310
-
1311
- /** Built-in value references. */
1312
- var getPrototype = overArg(Object.getPrototypeOf, Object);
1313
-
1314
- /**
1315
- * Removes all key-value entries from the stack.
1316
- *
1317
- * @private
1318
- * @name clear
1319
- * @memberOf Stack
1320
- */
1321
- function stackClear() {
1322
- this.__data__ = new ListCache;
1323
- this.size = 0;
1324
- }
1325
-
1326
- /**
1327
- * Removes `key` and its value from the stack.
1328
- *
1329
- * @private
1330
- * @name delete
1331
- * @memberOf Stack
1332
- * @param {string} key The key of the value to remove.
1333
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1334
- */
1335
- function stackDelete(key) {
1336
- var data = this.__data__,
1337
- result = data['delete'](key);
1338
-
1339
- this.size = data.size;
1340
- return result;
1341
- }
1342
-
1343
- /**
1344
- * Gets the stack value for `key`.
1345
- *
1346
- * @private
1347
- * @name get
1348
- * @memberOf Stack
1349
- * @param {string} key The key of the value to get.
1350
- * @returns {*} Returns the entry value.
1351
- */
1352
- function stackGet(key) {
1353
- return this.__data__.get(key);
1354
- }
1355
-
1356
- /**
1357
- * Checks if a stack value for `key` exists.
1358
- *
1359
- * @private
1360
- * @name has
1361
- * @memberOf Stack
1362
- * @param {string} key The key of the entry to check.
1363
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1364
- */
1365
- function stackHas(key) {
1366
- return this.__data__.has(key);
1367
- }
1368
-
1369
- /** Used as the size to enable large array optimizations. */
1370
- var LARGE_ARRAY_SIZE = 200;
1371
-
1372
- /**
1373
- * Sets the stack `key` to `value`.
1374
- *
1375
- * @private
1376
- * @name set
1377
- * @memberOf Stack
1378
- * @param {string} key The key of the value to set.
1379
- * @param {*} value The value to set.
1380
- * @returns {Object} Returns the stack cache instance.
1381
- */
1382
- function stackSet(key, value) {
1383
- var data = this.__data__;
1384
- if (data instanceof ListCache) {
1385
- var pairs = data.__data__;
1386
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1387
- pairs.push([key, value]);
1388
- this.size = ++data.size;
1389
- return this;
1390
- }
1391
- data = this.__data__ = new MapCache(pairs);
1392
- }
1393
- data.set(key, value);
1394
- this.size = data.size;
1395
- return this;
1396
- }
1397
-
1398
- /**
1399
- * Creates a stack cache object to store key-value pairs.
1400
- *
1401
- * @private
1402
- * @constructor
1403
- * @param {Array} [entries] The key-value pairs to cache.
1404
- */
1405
- function Stack(entries) {
1406
- var data = this.__data__ = new ListCache(entries);
1407
- this.size = data.size;
1408
- }
1409
-
1410
- // Add methods to `Stack`.
1411
- Stack.prototype.clear = stackClear;
1412
- Stack.prototype['delete'] = stackDelete;
1413
- Stack.prototype.get = stackGet;
1414
- Stack.prototype.has = stackHas;
1415
- Stack.prototype.set = stackSet;
1416
-
1417
- /**
1418
- * The base implementation of `_.assign` without support for multiple sources
1419
- * or `customizer` functions.
1420
- *
1421
- * @private
1422
- * @param {Object} object The destination object.
1423
- * @param {Object} source The source object.
1424
- * @returns {Object} Returns `object`.
1425
- */
1426
- function baseAssign(object, source) {
1427
- return object && copyObject(source, keys(source), object);
1428
- }
1429
-
1430
- /**
1431
- * The base implementation of `_.assignIn` without support for multiple sources
1432
- * or `customizer` functions.
1433
- *
1434
- * @private
1435
- * @param {Object} object The destination object.
1436
- * @param {Object} source The source object.
1437
- * @returns {Object} Returns `object`.
1438
- */
1439
- function baseAssignIn(object, source) {
1440
- return object && copyObject(source, keysIn(source), object);
1441
- }
1442
-
1443
- /** Detect free variable `exports`. */
1444
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
1445
-
1446
- /** Detect free variable `module`. */
1447
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
1448
-
1449
- /** Detect the popular CommonJS extension `module.exports`. */
1450
- var moduleExports = freeModule && freeModule.exports === freeExports;
1451
-
1452
- /** Built-in value references. */
1453
- var Buffer = moduleExports ? isObject.root.Buffer : undefined,
1454
- allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
1455
-
1456
- /**
1457
- * Creates a clone of `buffer`.
1458
- *
1459
- * @private
1460
- * @param {Buffer} buffer The buffer to clone.
1461
- * @param {boolean} [isDeep] Specify a deep clone.
1462
- * @returns {Buffer} Returns the cloned buffer.
1463
- */
1464
- function cloneBuffer(buffer, isDeep) {
1465
- if (isDeep) {
1466
- return buffer.slice();
1467
- }
1468
- var length = buffer.length,
1469
- result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1470
-
1471
- buffer.copy(result);
1472
- return result;
1473
- }
1474
-
1475
- /**
1476
- * A specialized version of `_.filter` for arrays without support for
1477
- * iteratee shorthands.
1478
- *
1479
- * @private
1480
- * @param {Array} [array] The array to iterate over.
1481
- * @param {Function} predicate The function invoked per iteration.
1482
- * @returns {Array} Returns the new filtered array.
1483
- */
1484
- function arrayFilter(array, predicate) {
1485
- var index = -1,
1486
- length = array == null ? 0 : array.length,
1487
- resIndex = 0,
1488
- result = [];
1489
-
1490
- while (++index < length) {
1491
- var value = array[index];
1492
- if (predicate(value, index, array)) {
1493
- result[resIndex++] = value;
1494
- }
1495
- }
1496
- return result;
1497
- }
1498
-
1499
- /**
1500
- * This method returns a new empty array.
1501
- *
1502
- * @static
1503
- * @memberOf _
1504
- * @since 4.13.0
1505
- * @category Util
1506
- * @returns {Array} Returns the new empty array.
1507
- * @example
1508
- *
1509
- * var arrays = _.times(2, _.stubArray);
1510
- *
1511
- * console.log(arrays);
1512
- * // => [[], []]
1513
- *
1514
- * console.log(arrays[0] === arrays[1]);
1515
- * // => false
1516
- */
1517
- function stubArray() {
1518
- return [];
1519
- }
1520
-
1521
- /** Used for built-in method references. */
1522
- var objectProto$1 = Object.prototype;
1523
-
1524
- /** Built-in value references. */
1525
- var propertyIsEnumerable = objectProto$1.propertyIsEnumerable;
1526
-
1527
- /* Built-in method references for those with the same name as other `lodash` methods. */
1528
- var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
1529
-
1530
- /**
1531
- * Creates an array of the own enumerable symbols of `object`.
1532
- *
1533
- * @private
1534
- * @param {Object} object The object to query.
1535
- * @returns {Array} Returns the array of symbols.
1536
- */
1537
- var getSymbols = !nativeGetSymbols$1 ? stubArray : function(object) {
1538
- if (object == null) {
1539
- return [];
1540
- }
1541
- object = Object(object);
1542
- return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
1543
- return propertyIsEnumerable.call(object, symbol);
1544
- });
1545
- };
1546
-
1547
- /**
1548
- * Copies own symbols of `source` to `object`.
1549
- *
1550
- * @private
1551
- * @param {Object} source The object to copy symbols from.
1552
- * @param {Object} [object={}] The object to copy symbols to.
1553
- * @returns {Object} Returns `object`.
1554
- */
1555
- function copySymbols(source, object) {
1556
- return copyObject(source, getSymbols(source), object);
1557
- }
1558
-
1559
- /* Built-in method references for those with the same name as other `lodash` methods. */
1560
- var nativeGetSymbols = Object.getOwnPropertySymbols;
1561
-
1562
- /**
1563
- * Creates an array of the own and inherited enumerable symbols of `object`.
1564
- *
1565
- * @private
1566
- * @param {Object} object The object to query.
1567
- * @returns {Array} Returns the array of symbols.
1568
- */
1569
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
1570
- var result = [];
1571
- while (object) {
1572
- arrayPush(result, getSymbols(object));
1573
- object = getPrototype(object);
1574
- }
1575
- return result;
1576
- };
1577
-
1578
- /**
1579
- * Copies own and inherited symbols of `source` to `object`.
1580
- *
1581
- * @private
1582
- * @param {Object} source The object to copy symbols from.
1583
- * @param {Object} [object={}] The object to copy symbols to.
1584
- * @returns {Object} Returns `object`.
1585
- */
1586
- function copySymbolsIn(source, object) {
1587
- return copyObject(source, getSymbolsIn(source), object);
1588
- }
1589
-
1590
- /**
1591
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1592
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1593
- * symbols of `object`.
1594
- *
1595
- * @private
1596
- * @param {Object} object The object to query.
1597
- * @param {Function} keysFunc The function to get the keys of `object`.
1598
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
1599
- * @returns {Array} Returns the array of property names and symbols.
1600
- */
1601
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1602
- var result = keysFunc(object);
1603
- return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
1604
- }
1605
-
1606
- /**
1607
- * Creates an array of own enumerable property names and symbols of `object`.
1608
- *
1609
- * @private
1610
- * @param {Object} object The object to query.
1611
- * @returns {Array} Returns the array of property names and symbols.
1612
- */
1613
- function getAllKeys(object) {
1614
- return baseGetAllKeys(object, keys, getSymbols);
1615
- }
1616
-
1617
- /**
1618
- * Creates an array of own and inherited enumerable property names and
1619
- * symbols of `object`.
1620
- *
1621
- * @private
1622
- * @param {Object} object The object to query.
1623
- * @returns {Array} Returns the array of property names and symbols.
1624
- */
1625
- function getAllKeysIn(object) {
1626
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
1627
- }
1628
-
1629
- /* Built-in method references that are verified to be native. */
1630
- var DataView = getNative(isObject.root, 'DataView');
1631
-
1632
- /* Built-in method references that are verified to be native. */
1633
- var Promise$1 = getNative(isObject.root, 'Promise');
1634
-
1635
- /* Built-in method references that are verified to be native. */
1636
- var Set = getNative(isObject.root, 'Set');
1637
-
1638
- /** `Object#toString` result references. */
1639
- var mapTag$3 = '[object Map]',
1640
- objectTag$1 = '[object Object]',
1641
- promiseTag = '[object Promise]',
1642
- setTag$3 = '[object Set]',
1643
- weakMapTag$1 = '[object WeakMap]';
1644
-
1645
- var dataViewTag$2 = '[object DataView]';
1646
-
1647
- /** Used to detect maps, sets, and weakmaps. */
1648
- var dataViewCtorString = toSource(DataView),
1649
- mapCtorString = toSource(Map),
1650
- promiseCtorString = toSource(Promise$1),
1651
- setCtorString = toSource(Set),
1652
- weakMapCtorString = toSource(WeakMap);
1653
-
1654
- /**
1655
- * Gets the `toStringTag` of `value`.
1656
- *
1657
- * @private
1658
- * @param {*} value The value to query.
1659
- * @returns {string} Returns the `toStringTag`.
1660
- */
1661
- var getTag = isObject.baseGetTag;
1662
-
1663
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1664
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag$2) ||
1665
- (Map && getTag(new Map) != mapTag$3) ||
1666
- (Promise$1 && getTag(Promise$1.resolve()) != promiseTag) ||
1667
- (Set && getTag(new Set) != setTag$3) ||
1668
- (WeakMap && getTag(new WeakMap) != weakMapTag$1)) {
1669
- getTag = function(value) {
1670
- var result = isObject.baseGetTag(value),
1671
- Ctor = result == objectTag$1 ? value.constructor : undefined,
1672
- ctorString = Ctor ? toSource(Ctor) : '';
1673
-
1674
- if (ctorString) {
1675
- switch (ctorString) {
1676
- case dataViewCtorString: return dataViewTag$2;
1677
- case mapCtorString: return mapTag$3;
1678
- case promiseCtorString: return promiseTag;
1679
- case setCtorString: return setTag$3;
1680
- case weakMapCtorString: return weakMapTag$1;
1681
- }
1682
- }
1683
- return result;
1684
- };
1685
- }
1686
-
1687
- var getTag$1 = getTag;
1688
-
1689
- /** Used for built-in method references. */
1690
- var objectProto = Object.prototype;
1691
-
1692
- /** Used to check objects for own properties. */
1693
- var hasOwnProperty = objectProto.hasOwnProperty;
1694
-
1695
- /**
1696
- * Initializes an array clone.
1697
- *
1698
- * @private
1699
- * @param {Array} array The array to clone.
1700
- * @returns {Array} Returns the initialized clone.
1701
- */
1702
- function initCloneArray(array) {
1703
- var length = array.length,
1704
- result = new array.constructor(length);
1705
-
1706
- // Add properties assigned by `RegExp#exec`.
1707
- if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
1708
- result.index = array.index;
1709
- result.input = array.input;
1710
- }
1711
- return result;
1712
- }
1713
-
1714
- /** Built-in value references. */
1715
- var Uint8Array = isObject.root.Uint8Array;
1716
-
1717
- /**
1718
- * Creates a clone of `arrayBuffer`.
1719
- *
1720
- * @private
1721
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
1722
- * @returns {ArrayBuffer} Returns the cloned array buffer.
1723
- */
1724
- function cloneArrayBuffer(arrayBuffer) {
1725
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1726
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
1727
- return result;
1728
- }
1729
-
1730
- /**
1731
- * Creates a clone of `dataView`.
1732
- *
1733
- * @private
1734
- * @param {Object} dataView The data view to clone.
1735
- * @param {boolean} [isDeep] Specify a deep clone.
1736
- * @returns {Object} Returns the cloned data view.
1737
- */
1738
- function cloneDataView(dataView, isDeep) {
1739
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
1740
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1741
- }
1742
-
1743
- /** Used to match `RegExp` flags from their coerced string values. */
1744
- var reFlags = /\w*$/;
1745
-
1746
- /**
1747
- * Creates a clone of `regexp`.
1748
- *
1749
- * @private
1750
- * @param {Object} regexp The regexp to clone.
1751
- * @returns {Object} Returns the cloned regexp.
1752
- */
1753
- function cloneRegExp(regexp) {
1754
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
1755
- result.lastIndex = regexp.lastIndex;
1756
- return result;
1757
- }
1758
-
1759
- /** Used to convert symbols to primitives and strings. */
1760
- var symbolProto = isObject.Symbol ? isObject.Symbol.prototype : undefined,
1761
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
1762
-
1763
- /**
1764
- * Creates a clone of the `symbol` object.
1765
- *
1766
- * @private
1767
- * @param {Object} symbol The symbol object to clone.
1768
- * @returns {Object} Returns the cloned symbol object.
1769
- */
1770
- function cloneSymbol(symbol) {
1771
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1772
- }
1773
-
1774
- /**
1775
- * Creates a clone of `typedArray`.
1776
- *
1777
- * @private
1778
- * @param {Object} typedArray The typed array to clone.
1779
- * @param {boolean} [isDeep] Specify a deep clone.
1780
- * @returns {Object} Returns the cloned typed array.
1781
- */
1782
- function cloneTypedArray(typedArray, isDeep) {
1783
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
1784
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1785
- }
1786
-
1787
- /** `Object#toString` result references. */
1788
- var boolTag$1 = '[object Boolean]',
1789
- dateTag$1 = '[object Date]',
1790
- mapTag$2 = '[object Map]',
1791
- numberTag$1 = '[object Number]',
1792
- regexpTag$1 = '[object RegExp]',
1793
- setTag$2 = '[object Set]',
1794
- stringTag$1 = '[object String]',
1795
- symbolTag$1 = '[object Symbol]';
1796
-
1797
- var arrayBufferTag$1 = '[object ArrayBuffer]',
1798
- dataViewTag$1 = '[object DataView]',
1799
- float32Tag$1 = '[object Float32Array]',
1800
- float64Tag$1 = '[object Float64Array]',
1801
- int8Tag$1 = '[object Int8Array]',
1802
- int16Tag$1 = '[object Int16Array]',
1803
- int32Tag$1 = '[object Int32Array]',
1804
- uint8Tag$1 = '[object Uint8Array]',
1805
- uint8ClampedTag$1 = '[object Uint8ClampedArray]',
1806
- uint16Tag$1 = '[object Uint16Array]',
1807
- uint32Tag$1 = '[object Uint32Array]';
1808
-
1809
- /**
1810
- * Initializes an object clone based on its `toStringTag`.
1811
- *
1812
- * **Note:** This function only supports cloning values with tags of
1813
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
1814
- *
1815
- * @private
1816
- * @param {Object} object The object to clone.
1817
- * @param {string} tag The `toStringTag` of the object to clone.
1818
- * @param {boolean} [isDeep] Specify a deep clone.
1819
- * @returns {Object} Returns the initialized clone.
1820
- */
1821
- function initCloneByTag(object, tag, isDeep) {
1822
- var Ctor = object.constructor;
1823
- switch (tag) {
1824
- case arrayBufferTag$1:
1825
- return cloneArrayBuffer(object);
1826
-
1827
- case boolTag$1:
1828
- case dateTag$1:
1829
- return new Ctor(+object);
1830
-
1831
- case dataViewTag$1:
1832
- return cloneDataView(object, isDeep);
1833
-
1834
- case float32Tag$1: case float64Tag$1:
1835
- case int8Tag$1: case int16Tag$1: case int32Tag$1:
1836
- case uint8Tag$1: case uint8ClampedTag$1: case uint16Tag$1: case uint32Tag$1:
1837
- return cloneTypedArray(object, isDeep);
1838
-
1839
- case mapTag$2:
1840
- return new Ctor;
1841
-
1842
- case numberTag$1:
1843
- case stringTag$1:
1844
- return new Ctor(object);
1845
-
1846
- case regexpTag$1:
1847
- return cloneRegExp(object);
1848
-
1849
- case setTag$2:
1850
- return new Ctor;
1851
-
1852
- case symbolTag$1:
1853
- return cloneSymbol(object);
1854
- }
1855
- }
1856
-
1857
- /**
1858
- * Initializes an object clone.
1859
- *
1860
- * @private
1861
- * @param {Object} object The object to clone.
1862
- * @returns {Object} Returns the initialized clone.
1863
- */
1864
- function initCloneObject(object) {
1865
- return (typeof object.constructor == 'function' && !isPrototype(object))
1866
- ? baseCreate(getPrototype(object))
1867
- : {};
1868
- }
1869
-
1870
- /** `Object#toString` result references. */
1871
- var mapTag$1 = '[object Map]';
1872
-
1873
- /**
1874
- * The base implementation of `_.isMap` without Node.js optimizations.
1875
- *
1876
- * @private
1877
- * @param {*} value The value to check.
1878
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
1879
- */
1880
- function baseIsMap(value) {
1881
- return isObject.isObjectLike(value) && getTag$1(value) == mapTag$1;
1882
- }
1883
-
1884
- /* Node.js helper references. */
1885
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
1886
-
1887
- /**
1888
- * Checks if `value` is classified as a `Map` object.
1889
- *
1890
- * @static
1891
- * @memberOf _
1892
- * @since 4.3.0
1893
- * @category Lang
1894
- * @param {*} value The value to check.
1895
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
1896
- * @example
1897
- *
1898
- * _.isMap(new Map);
1899
- * // => true
1900
- *
1901
- * _.isMap(new WeakMap);
1902
- * // => false
1903
- */
1904
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
1905
-
1906
- /** `Object#toString` result references. */
1907
- var setTag$1 = '[object Set]';
1908
-
1909
- /**
1910
- * The base implementation of `_.isSet` without Node.js optimizations.
1911
- *
1912
- * @private
1913
- * @param {*} value The value to check.
1914
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
1915
- */
1916
- function baseIsSet(value) {
1917
- return isObject.isObjectLike(value) && getTag$1(value) == setTag$1;
1918
- }
1919
-
1920
- /* Node.js helper references. */
1921
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
1922
-
1923
- /**
1924
- * Checks if `value` is classified as a `Set` object.
1925
- *
1926
- * @static
1927
- * @memberOf _
1928
- * @since 4.3.0
1929
- * @category Lang
1930
- * @param {*} value The value to check.
1931
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
1932
- * @example
1933
- *
1934
- * _.isSet(new Set);
1935
- * // => true
1936
- *
1937
- * _.isSet(new WeakSet);
1938
- * // => false
1939
- */
1940
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
1941
-
1942
- /** Used to compose bitmasks for cloning. */
1943
- var CLONE_DEEP_FLAG$1 = 1,
1944
- CLONE_FLAT_FLAG = 2,
1945
- CLONE_SYMBOLS_FLAG$1 = 4;
1946
-
1947
- /** `Object#toString` result references. */
1948
- var argsTag = '[object Arguments]',
1949
- arrayTag = '[object Array]',
1950
- boolTag = '[object Boolean]',
1951
- dateTag = '[object Date]',
1952
- errorTag = '[object Error]',
1953
- funcTag = '[object Function]',
1954
- genTag = '[object GeneratorFunction]',
1955
- mapTag = '[object Map]',
1956
- numberTag = '[object Number]',
1957
- objectTag = '[object Object]',
1958
- regexpTag = '[object RegExp]',
1959
- setTag = '[object Set]',
1960
- stringTag = '[object String]',
1961
- symbolTag = '[object Symbol]',
1962
- weakMapTag = '[object WeakMap]';
1963
-
1964
- var arrayBufferTag = '[object ArrayBuffer]',
1965
- dataViewTag = '[object DataView]',
1966
- float32Tag = '[object Float32Array]',
1967
- float64Tag = '[object Float64Array]',
1968
- int8Tag = '[object Int8Array]',
1969
- int16Tag = '[object Int16Array]',
1970
- int32Tag = '[object Int32Array]',
1971
- uint8Tag = '[object Uint8Array]',
1972
- uint8ClampedTag = '[object Uint8ClampedArray]',
1973
- uint16Tag = '[object Uint16Array]',
1974
- uint32Tag = '[object Uint32Array]';
1975
-
1976
- /** Used to identify `toStringTag` values supported by `_.clone`. */
1977
- var cloneableTags = {};
1978
- cloneableTags[argsTag] = cloneableTags[arrayTag] =
1979
- cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
1980
- cloneableTags[boolTag] = cloneableTags[dateTag] =
1981
- cloneableTags[float32Tag] = cloneableTags[float64Tag] =
1982
- cloneableTags[int8Tag] = cloneableTags[int16Tag] =
1983
- cloneableTags[int32Tag] = cloneableTags[mapTag] =
1984
- cloneableTags[numberTag] = cloneableTags[objectTag] =
1985
- cloneableTags[regexpTag] = cloneableTags[setTag] =
1986
- cloneableTags[stringTag] = cloneableTags[symbolTag] =
1987
- cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
1988
- cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
1989
- cloneableTags[errorTag] = cloneableTags[funcTag] =
1990
- cloneableTags[weakMapTag] = false;
1991
-
1992
- /**
1993
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
1994
- * traversed objects.
1995
- *
1996
- * @private
1997
- * @param {*} value The value to clone.
1998
- * @param {boolean} bitmask The bitmask flags.
1999
- * 1 - Deep clone
2000
- * 2 - Flatten inherited properties
2001
- * 4 - Clone symbols
2002
- * @param {Function} [customizer] The function to customize cloning.
2003
- * @param {string} [key] The key of `value`.
2004
- * @param {Object} [object] The parent object of `value`.
2005
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
2006
- * @returns {*} Returns the cloned value.
2007
- */
2008
- function baseClone(value, bitmask, customizer, key, object, stack) {
2009
- var result,
2010
- isDeep = bitmask & CLONE_DEEP_FLAG$1,
2011
- isFlat = bitmask & CLONE_FLAT_FLAG,
2012
- isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
2013
- if (result !== undefined) {
2014
- return result;
2015
- }
2016
- if (!isObject.isObject(value)) {
2017
- return value;
2018
- }
2019
- var isArr = isArray$1(value);
2020
- if (isArr) {
2021
- result = initCloneArray(value);
2022
- if (!isDeep) {
2023
- return copyArray(value, result);
2024
- }
2025
- } else {
2026
- var tag = getTag$1(value),
2027
- isFunc = tag == funcTag || tag == genTag;
2028
-
2029
- if (isBuffer(value)) {
2030
- return cloneBuffer(value, isDeep);
2031
- }
2032
- if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
2033
- result = (isFlat || isFunc) ? {} : initCloneObject(value);
2034
- if (!isDeep) {
2035
- return isFlat
2036
- ? copySymbolsIn(value, baseAssignIn(result, value))
2037
- : copySymbols(value, baseAssign(result, value));
2038
- }
2039
- } else {
2040
- if (!cloneableTags[tag]) {
2041
- return object ? value : {};
2042
- }
2043
- result = initCloneByTag(value, tag, isDeep);
2044
- }
2045
- }
2046
- // Check for circular references and return its corresponding clone.
2047
- stack || (stack = new Stack);
2048
- var stacked = stack.get(value);
2049
- if (stacked) {
2050
- return stacked;
2051
- }
2052
- stack.set(value, result);
2053
-
2054
- if (isSet(value)) {
2055
- value.forEach(function(subValue) {
2056
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
2057
- });
2058
- } else if (isMap(value)) {
2059
- value.forEach(function(subValue, key) {
2060
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
2061
- });
2062
- }
2063
-
2064
- var keysFunc = isFull
2065
- ? (isFlat ? getAllKeysIn : getAllKeys)
2066
- : (isFlat ? keysIn : keys);
2067
-
2068
- var props = isArr ? undefined : keysFunc(value);
2069
- arrayEach(props || value, function(subValue, key) {
2070
- if (props) {
2071
- key = subValue;
2072
- subValue = value[key];
2073
- }
2074
- // Recursively populate clone (susceptible to call stack limits).
2075
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
2076
- });
2077
- return result;
2078
- }
2079
-
2080
- /** Used to compose bitmasks for cloning. */
2081
- var CLONE_DEEP_FLAG = 1,
2082
- CLONE_SYMBOLS_FLAG = 4;
2083
-
2084
- /**
2085
- * This method is like `_.clone` except that it recursively clones `value`.
2086
- *
2087
- * @static
2088
- * @memberOf _
2089
- * @since 1.0.0
2090
- * @category Lang
2091
- * @param {*} value The value to recursively clone.
2092
- * @returns {*} Returns the deep cloned value.
2093
- * @see _.clone
2094
- * @example
2095
- *
2096
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
2097
- *
2098
- * var deep = _.cloneDeep(objects);
2099
- * console.log(deep[0] === objects[0]);
2100
- * // => false
2101
- */
2102
- function cloneDeep(value) {
2103
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
2104
- }
2105
-
2106
- exports.cloneDeep = cloneDeep;
1
+ "use strict";const o=require("./isObject.cjs");var F=Array.isArray,Tt="[object AsyncFunction]",vt="[object Function]",$t="[object GeneratorFunction]",At="[object Proxy]";function it(t){if(!o.isObject(t))return!1;var e=o.baseGetTag(t);return e==vt||e==$t||e==Tt||e==At}var C=o.root["__core-js_shared__"],L=function(){var t=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function wt(t){return!!L&&L in t}var Ot=Function.prototype,mt=Ot.toString;function y(t){if(t!=null){try{return mt.call(t)}catch{}try{return t+""}catch{}}return""}var St=/[\\^$.*+?()[\]{}|]/g,Pt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,xt=Object.prototype,Et=Ct.toString,It=xt.hasOwnProperty,Mt=RegExp("^"+Et.call(It).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dt(t){if(!o.isObject(t)||wt(t))return!1;var e=it(t)?Mt:Pt;return e.test(y(t))}function Ft(t,e){return t==null?void 0:t[e]}function _(t,e){var r=Ft(t,e);return Dt(r)?r:void 0}var E=_(o.root,"WeakMap"),N=Object.create,Bt=function(){function t(){}return function(e){if(!o.isObject(e))return{};if(N)return N(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),R=function(){try{var t=_(Object,"defineProperty");return t({},"",{}),t}catch{}}();function Ut(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var zt=9007199254740991,Gt=/^(?:0|[1-9]\d*)$/;function Lt(t,e){var r=typeof t;return e=e??zt,!!e&&(r=="number"||r!="symbol"&&Gt.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t,e,r){e=="__proto__"&&R?R(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function st(t,e){return t===e||t!==t&&e!==e}var Rt=Object.prototype,Vt=Rt.hasOwnProperty;function Ht(t,e,r){var n=t[e];(!(Vt.call(t,e)&&st(n,r))||r===void 0&&!(e in t))&&Nt(t,e,r)}var Kt=9007199254740991;function ct(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Kt}function Wt(t){return t!=null&&ct(t.length)&&!it(t)}var qt=Object.prototype;function ut(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||qt;return t===r}function Xt(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Yt="[object Arguments]";function V(t){return o.isObjectLike(t)&&o.baseGetTag(t)==Yt}var ft=Object.prototype,Jt=ft.hasOwnProperty,Zt=ft.propertyIsEnumerable,Qt=V(function(){return arguments}())?V:function(t){return o.isObjectLike(t)&&Jt.call(t,"callee")&&!Zt.call(t,"callee")};function kt(){return!1}var pt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H=pt&&typeof module=="object"&&module&&!module.nodeType&&module,te=H&&H.exports===pt,K=te?o.root.Buffer:void 0,ee=K?K.isBuffer:void 0,bt=ee||kt,re="[object Arguments]",ne="[object Array]",ae="[object Boolean]",oe="[object Date]",ie="[object Error]",se="[object Function]",ce="[object Map]",ue="[object Number]",fe="[object Object]",pe="[object RegExp]",be="[object Set]",ge="[object String]",le="[object WeakMap]",he="[object ArrayBuffer]",de="[object DataView]",ye="[object Float32Array]",_e="[object Float64Array]",je="[object Int8Array]",Te="[object Int16Array]",ve="[object Int32Array]",$e="[object Uint8Array]",Ae="[object Uint8ClampedArray]",we="[object Uint16Array]",Oe="[object Uint32Array]",i={};i[ye]=i[_e]=i[je]=i[Te]=i[ve]=i[$e]=i[Ae]=i[we]=i[Oe]=!0;i[re]=i[ne]=i[he]=i[ae]=i[de]=i[oe]=i[ie]=i[se]=i[ce]=i[ue]=i[fe]=i[pe]=i[be]=i[ge]=i[le]=!1;function me(t){return o.isObjectLike(t)&&ct(t.length)&&!!i[o.baseGetTag(t)]}function B(t){return function(e){return t(e)}}var gt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A=gt&&typeof module=="object"&&module&&!module.nodeType&&module,Se=A&&A.exports===gt,x=Se&&o.freeGlobal.process,T=function(){try{var t=A&&A.require&&A.require("util").types;return t||x&&x.binding&&x.binding("util")}catch{}}(),W=T&&T.isTypedArray,Pe=W?B(W):me,Ce=Object.prototype,xe=Ce.hasOwnProperty;function Ee(t,e){var r=F(t),n=!r&&Qt(t),f=!r&&!n&&bt(t),c=!r&&!n&&!f&&Pe(t),s=r||n||f||c,j=s?Xt(t.length,String):[],g=j.length;for(var u in t)xe.call(t,u)&&!(s&&(u=="length"||f&&(u=="offset"||u=="parent")||c&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Lt(u,g)))&&j.push(u);return j}function lt(t,e){return function(r){return t(e(r))}}var Ie=lt(Object.keys,Object),Me=Object.prototype,De=Me.hasOwnProperty;function Fe(t){if(!ut(t))return Ie(t);var e=[];for(var r in Object(t))De.call(t,r)&&r!="constructor"&&e.push(r);return e}function Be(t){return Wt(t)?Ee(t):Fe(t)}var w=_(Object,"create");function Ue(){this.__data__=w?w(null):{},this.size=0}function ze(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ge="__lodash_hash_undefined__",Le=Object.prototype,Ne=Le.hasOwnProperty;function Re(t){var e=this.__data__;if(w){var r=e[t];return r===Ge?void 0:r}return Ne.call(e,t)?e[t]:void 0}var Ve=Object.prototype,He=Ve.hasOwnProperty;function Ke(t){var e=this.__data__;return w?e[t]!==void 0:He.call(e,t)}var We="__lodash_hash_undefined__";function qe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=w&&e===void 0?We:e,this}function d(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}d.prototype.clear=Ue;d.prototype.delete=ze;d.prototype.get=Re;d.prototype.has=Ke;d.prototype.set=qe;function Xe(){this.__data__=[],this.size=0}function S(t,e){for(var r=t.length;r--;)if(st(t[r][0],e))return r;return-1}var Ye=Array.prototype,Je=Ye.splice;function Ze(t){var e=this.__data__,r=S(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Je.call(e,r,1),--this.size,!0}function Qe(t){var e=this.__data__,r=S(e,t);return r<0?void 0:e[r][1]}function ke(t){return S(this.__data__,t)>-1}function tr(t,e){var r=this.__data__,n=S(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function b(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}b.prototype.clear=Xe;b.prototype.delete=Ze;b.prototype.get=Qe;b.prototype.has=ke;b.prototype.set=tr;var O=_(o.root,"Map");function er(){this.size=0,this.__data__={hash:new d,map:new(O||b),string:new d}}function rr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function P(t,e){var r=t.__data__;return rr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function nr(t){var e=P(this,t).delete(t);return this.size-=e?1:0,e}function ar(t){return P(this,t).get(t)}function or(t){return P(this,t).has(t)}function ir(t,e){var r=P(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function v(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}v.prototype.clear=er;v.prototype.delete=nr;v.prototype.get=ar;v.prototype.has=or;v.prototype.set=ir;function sr(t,e){for(var r=-1,n=e.length,f=t.length;++r<n;)t[f+r]=e[r];return t}var cr=lt(Object.getPrototypeOf,Object);function ur(){this.__data__=new b,this.size=0}function fr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function pr(t){return this.__data__.get(t)}function br(t){return this.__data__.has(t)}var gr=200;function lr(t,e){var r=this.__data__;if(r instanceof b){var n=r.__data__;if(!O||n.length<gr-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new v(n)}return r.set(t,e),this.size=r.size,this}function $(t){var e=this.__data__=new b(t);this.size=e.size}$.prototype.clear=ur;$.prototype.delete=fr;$.prototype.get=pr;$.prototype.has=br;$.prototype.set=lr;var ht=typeof exports=="object"&&exports&&!exports.nodeType&&exports,q=ht&&typeof module=="object"&&module&&!module.nodeType&&module,hr=q&&q.exports===ht,X=hr?o.root.Buffer:void 0;X&&X.allocUnsafe;function dr(t,e){return t.slice()}function yr(t,e){for(var r=-1,n=t==null?0:t.length,f=0,c=[];++r<n;){var s=t[r];e(s,r,t)&&(c[f++]=s)}return c}function _r(){return[]}var jr=Object.prototype,Tr=jr.propertyIsEnumerable,Y=Object.getOwnPropertySymbols,vr=Y?function(t){return t==null?[]:(t=Object(t),yr(Y(t),function(e){return Tr.call(t,e)}))}:_r;function $r(t,e,r){var n=e(t);return F(t)?n:sr(n,r(t))}function Ar(t){return $r(t,Be,vr)}var I=_(o.root,"DataView"),M=_(o.root,"Promise"),D=_(o.root,"Set"),J="[object Map]",wr="[object Object]",Z="[object Promise]",Q="[object Set]",k="[object WeakMap]",tt="[object DataView]",Or=y(I),mr=y(O),Sr=y(M),Pr=y(D),Cr=y(E),p=o.baseGetTag;(I&&p(new I(new ArrayBuffer(1)))!=tt||O&&p(new O)!=J||M&&p(M.resolve())!=Z||D&&p(new D)!=Q||E&&p(new E)!=k)&&(p=function(t){var e=o.baseGetTag(t),r=e==wr?t.constructor:void 0,n=r?y(r):"";if(n)switch(n){case Or:return tt;case mr:return J;case Sr:return Z;case Pr:return Q;case Cr:return k}return e});var xr=Object.prototype,Er=xr.hasOwnProperty;function Ir(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Er.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var et=o.root.Uint8Array;function U(t){var e=new t.constructor(t.byteLength);return new et(e).set(new et(t)),e}function Mr(t,e){var r=U(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var Dr=/\w*$/;function Fr(t){var e=new t.constructor(t.source,Dr.exec(t));return e.lastIndex=t.lastIndex,e}var rt=o.Symbol?o.Symbol.prototype:void 0,nt=rt?rt.valueOf:void 0;function Br(t){return nt?Object(nt.call(t)):{}}function Ur(t,e){var r=U(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}var zr="[object Boolean]",Gr="[object Date]",Lr="[object Map]",Nr="[object Number]",Rr="[object RegExp]",Vr="[object Set]",Hr="[object String]",Kr="[object Symbol]",Wr="[object ArrayBuffer]",qr="[object DataView]",Xr="[object Float32Array]",Yr="[object Float64Array]",Jr="[object Int8Array]",Zr="[object Int16Array]",Qr="[object Int32Array]",kr="[object Uint8Array]",tn="[object Uint8ClampedArray]",en="[object Uint16Array]",rn="[object Uint32Array]";function nn(t,e,r){var n=t.constructor;switch(e){case Wr:return U(t);case zr:case Gr:return new n(+t);case qr:return Mr(t);case Xr:case Yr:case Jr:case Zr:case Qr:case kr:case tn:case en:case rn:return Ur(t);case Lr:return new n;case Nr:case Hr:return new n(t);case Rr:return Fr(t);case Vr:return new n;case Kr:return Br(t)}}function an(t){return typeof t.constructor=="function"&&!ut(t)?Bt(cr(t)):{}}var on="[object Map]";function sn(t){return o.isObjectLike(t)&&p(t)==on}var at=T&&T.isMap,cn=at?B(at):sn,un="[object Set]";function fn(t){return o.isObjectLike(t)&&p(t)==un}var ot=T&&T.isSet,pn=ot?B(ot):fn,dt="[object Arguments]",bn="[object Array]",gn="[object Boolean]",ln="[object Date]",hn="[object Error]",yt="[object Function]",dn="[object GeneratorFunction]",yn="[object Map]",_n="[object Number]",_t="[object Object]",jn="[object RegExp]",Tn="[object Set]",vn="[object String]",$n="[object Symbol]",An="[object WeakMap]",wn="[object ArrayBuffer]",On="[object DataView]",mn="[object Float32Array]",Sn="[object Float64Array]",Pn="[object Int8Array]",Cn="[object Int16Array]",xn="[object Int32Array]",En="[object Uint8Array]",In="[object Uint8ClampedArray]",Mn="[object Uint16Array]",Dn="[object Uint32Array]",a={};a[dt]=a[bn]=a[wn]=a[On]=a[gn]=a[ln]=a[mn]=a[Sn]=a[Pn]=a[Cn]=a[xn]=a[yn]=a[_n]=a[_t]=a[jn]=a[Tn]=a[vn]=a[$n]=a[En]=a[In]=a[Mn]=a[Dn]=!0;a[hn]=a[yt]=a[An]=!1;function m(t,e,r,n,f,c){var s;if(s!==void 0)return s;if(!o.isObject(t))return t;var j=F(t);if(j)s=Ir(t);else{var g=p(t),u=g==yt||g==dn;if(bt(t))return dr(t);if(g==_t||g==dt||u&&!f)s=u?{}:an(t);else{if(!a[g])return f?t:{};s=nn(t,g)}}c||(c=new $);var z=c.get(t);if(z)return z;c.set(t,s),pn(t)?t.forEach(function(l){s.add(m(l,e,r,l,t,c))}):cn(t)&&t.forEach(function(l,h){s.set(h,m(l,e,r,h,t,c))});var jt=Ar,G=j?void 0:jt(t);return Ut(G||t,function(l,h){G&&(h=l,l=t[h]),Ht(s,h,m(l,e,r,h,t,c))}),s}var Fn=1,Bn=4;function Un(t){return m(t,Fn|Bn)}exports.cloneDeep=Un;