@vunk/form 2.18.2 → 2.19.0

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 (323) 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 +152 -172
  5. package/components/api-tables-select/src/index.vue.d.ts +394 -983
  6. package/components/button/index.cjs +1 -112
  7. package/components/button/index.mjs +57 -85
  8. package/components/button/src/ctx.d.ts +28 -113
  9. package/components/button/src/index.vue.d.ts +317 -625
  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 +54 -951
  13. package/components/card-input-collection/src/ctx.d.ts +19 -49
  14. package/components/card-input-collection/src/index.vue.d.ts +46 -110
  15. package/components/cascader/index.cjs +1 -150
  16. package/components/cascader/index.mjs +88 -116
  17. package/components/cascader/src/ctx.d.ts +140 -207
  18. package/components/cascader/src/index.vue.d.ts +315 -522
  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 +448 -1016
  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 +130 -107
  28. package/components/color-picker/src/index.vue.d.ts +285 -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 +123 -206
  32. package/components/date-picker/src/index.vue.d.ts +269 -1358
  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 +130 -206
  37. package/components/date-picker-range/src/index.vue.d.ts +861 -448
  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 -1072
  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 +21 -52
  46. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +29 -6371
  47. package/components/dialog-input-collection/src/index.vue.d.ts +65 -7630
  48. package/components/dialog-input-collection/src/layout.vue.d.ts +13 -73
  49. package/components/download-plus/index.cjs +1 -456
  50. package/components/download-plus/index.mjs +215 -358
  51. package/components/download-plus/src/api.d.ts +1 -1
  52. package/components/download-plus/src/ctx.d.ts +21 -52
  53. package/components/download-plus/src/index.vue.d.ts +437 -1177
  54. package/components/editable-text/index.cjs +1 -295
  55. package/components/editable-text/index.mjs +113 -239
  56. package/components/editable-text/src/ctx.d.ts +24 -50
  57. package/components/editable-text/src/index.vue.d.ts +59 -3258
  58. package/components/el-slider/index.cjs +1 -0
  59. package/components/el-slider/index.d.ts +5 -0
  60. package/components/el-slider/index.mjs +475 -0
  61. package/components/el-slider/src/button.d.ts +36 -0
  62. package/components/el-slider/src/button.vue.d.ts +41 -0
  63. package/components/el-slider/src/composables/index.cjs +1 -0
  64. package/components/el-slider/src/composables/index.d.ts +6 -0
  65. package/components/el-slider/src/composables/index.mjs +9 -0
  66. package/components/el-slider/src/composables/use-lifecycle.d.ts +4 -0
  67. package/components/el-slider/src/composables/use-marks.d.ts +7 -0
  68. package/components/el-slider/src/composables/use-slide.d.ts +23 -0
  69. package/components/el-slider/src/composables/use-slider-button.d.ts +18 -0
  70. package/components/el-slider/src/composables/use-stops.d.ts +8 -0
  71. package/components/el-slider/src/composables/use-watch.d.ts +4 -0
  72. package/components/el-slider/src/constants.d.ts +14 -0
  73. package/components/el-slider/src/marker.d.ts +37 -0
  74. package/components/el-slider/src/slider-core.vue.d.ts +218 -0
  75. package/components/el-slider/src/slider.d.ts +174 -0
  76. package/components/esri-input-geojson/index.cjs +2 -1604
  77. package/components/esri-input-geojson/index.mjs +682 -1290
  78. package/components/esri-input-geojson/src/append.vue.d.ts +239 -1099
  79. package/components/esri-input-geojson/src/const.d.ts +1 -1
  80. package/components/esri-input-geojson/src/ctx.d.ts +66 -161
  81. package/components/esri-input-geojson/src/default-view.vue.d.ts +8 -132
  82. package/components/esri-input-geojson/src/index.vue.d.ts +982 -708
  83. package/components/esri-input-geojson/src/types.d.ts +1 -0
  84. package/components/esri-input-geojson/src/viewer.vue.d.ts +53 -282
  85. package/components/fieldset/index.cjs +1 -110
  86. package/components/fieldset/index.mjs +63 -76
  87. package/components/fieldset/src/ctx.d.ts +4 -4
  88. package/components/fieldset/src/index.vue.d.ts +7 -7
  89. package/components/form/index.cjs +1 -248
  90. package/components/form/index.mjs +107 -161
  91. package/components/form/src/ctx.d.ts +15 -64
  92. package/components/form/src/index.vue.d.ts +374 -2431
  93. package/components/form-item/index.cjs +1 -294
  94. package/components/form-item/index.mjs +140 -229
  95. package/components/form-item/src/core.vue.d.ts +32 -1854
  96. package/components/form-item/src/ctx.d.ts +19 -51
  97. package/components/form-item/src/index.vue.d.ts +38 -101
  98. package/components/form-item-renderer/index.cjs +1 -193
  99. package/components/form-item-renderer/index.mjs +103 -162
  100. package/components/form-item-renderer/src/core.vue.d.ts +9 -9
  101. package/components/form-item-renderer/src/ctx.d.ts +3 -3
  102. package/components/form-item-renderer/src/index.vue.d.ts +24 -74
  103. package/components/form-item-renderer-template/index.cjs +1 -47
  104. package/components/form-item-renderer-template/index.mjs +20 -33
  105. package/components/form-item-renderer-template/src/index.vue.d.ts +1 -1
  106. package/components/forms-provider/index.cjs +1 -99
  107. package/components/forms-provider/index.mjs +44 -73
  108. package/components/forms-provider/src/core.d.ts +3 -2
  109. package/components/forms-provider/src/segment.vue.d.ts +8 -8
  110. package/components/forms-provider/src/view.vue.d.ts +14 -4
  111. package/components/index.cjs +1 -399
  112. package/components/index2.cjs +1 -17
  113. package/components/information/index.cjs +1 -65
  114. package/components/information/index.mjs +28 -38
  115. package/components/information/src/ctx.d.ts +2 -2
  116. package/components/information/src/index.vue.d.ts +4 -4
  117. package/components/information-collection/index.cjs +1 -81
  118. package/components/information-collection/index.mjs +44 -48
  119. package/components/information-collection/src/ctx.d.ts +29 -65
  120. package/components/information-collection/src/index.vue.d.ts +64 -136
  121. package/components/information-renderer/index.cjs +1 -16
  122. package/components/information-renderer/index.d.ts +9 -9
  123. package/components/information-renderer/index.mjs +9 -10
  124. package/components/information-tag/index.cjs +1 -101
  125. package/components/information-tag/index.mjs +44 -54
  126. package/components/information-tag/src/ctx.d.ts +6 -21
  127. package/components/information-tag/src/index.vue.d.ts +23 -51
  128. package/components/information-templates-default/index.cjs +1 -101
  129. package/components/information-templates-default/index.mjs +63 -73
  130. package/components/information-templates-default/src/index.vue.d.ts +1 -1
  131. package/components/input/index.cjs +1 -115
  132. package/components/input/index.mjs +60 -83
  133. package/components/input/src/ctx.d.ts +51 -152
  134. package/components/input/src/index.vue.d.ts +392 -951
  135. package/components/input-array/index.cjs +1 -310
  136. package/components/input-array/index.mjs +114 -244
  137. package/components/input-array/src/ctx.d.ts +19 -49
  138. package/components/input-array/src/form-template.vue.d.ts +1 -901
  139. package/components/input-array/src/index.vue.d.ts +43 -730
  140. package/components/input-collection/index.cjs +1 -452
  141. package/components/input-collection/index.mjs +195 -355
  142. package/components/input-collection/src/core.vue.d.ts +64 -1026
  143. package/components/input-collection/src/ctx.d.ts +21 -51
  144. package/components/input-collection/src/index.vue.d.ts +50 -114
  145. package/components/input-file/index.cjs +1 -142
  146. package/components/input-file/index.mjs +68 -100
  147. package/components/input-file/src/ctx.d.ts +8 -29
  148. package/components/input-file/src/index.vue.d.ts +444 -74
  149. package/components/input-file/src/template.vue.d.ts +1 -124
  150. package/components/input-link/index.cjs +1 -167
  151. package/components/input-link/index.mjs +60 -83
  152. package/components/input-link/src/ctx.d.ts +52 -137
  153. package/components/input-link/src/index.vue.d.ts +833 -311
  154. package/components/input-number/index.cjs +1 -119
  155. package/components/input-number/index.mjs +73 -87
  156. package/components/input-number/src/ctx.d.ts +38 -131
  157. package/components/input-number/src/index.vue.d.ts +321 -683
  158. package/components/input-tag/index.cjs +1 -100
  159. package/components/input-tag/index.mjs +51 -78
  160. package/components/input-tag/src/ctx.d.ts +43 -145
  161. package/components/input-tag/src/index.vue.d.ts +324 -778
  162. package/components/isObject.cjs +1 -165
  163. package/components/monaco-editor/index.cjs +1 -83
  164. package/components/monaco-editor/index.mjs +40 -59
  165. package/components/monaco-editor/src/ctx.d.ts +19 -44
  166. package/components/monaco-editor/src/index.vue.d.ts +209 -109
  167. package/components/radio/index.cjs +1 -267
  168. package/components/radio/index.mjs +110 -209
  169. package/components/radio/src/ctx.d.ts +27 -91
  170. package/components/radio/src/index.vue.d.ts +298 -1279
  171. package/components/radio/src/option.vue.d.ts +29 -881
  172. package/components/radio/src/wraper.vue.d.ts +64 -196
  173. package/components/renderer-data/index.cjs +1 -41
  174. package/components/renderer-data/index.mjs +19 -26
  175. package/components/renderer-data/src/ctx.d.ts +1 -1
  176. package/components/renderer-data/src/index.vue.d.ts +2 -2
  177. package/components/select/index.cjs +1 -311
  178. package/components/select/index.mjs +156 -214
  179. package/components/select/src/core.vue.d.ts +638 -1080
  180. package/components/select/src/ctx.d.ts +140 -223
  181. package/components/select/src/index.vue.d.ts +334 -610
  182. package/components/select/src/options.vue.d.ts +1 -1
  183. package/components/slider/index.cjs +1 -88
  184. package/components/slider/index.mjs +41 -70
  185. package/components/slider/src/ctx.d.ts +63 -174
  186. package/components/slider/src/index.vue.d.ts +151 -420
  187. package/components/style.css +1 -0
  188. package/components/switch/index.cjs +1 -88
  189. package/components/switch/index.mjs +37 -69
  190. package/components/switch/src/ctx.d.ts +34 -113
  191. package/components/switch/src/index.vue.d.ts +88 -699
  192. package/components/switch/src/types.d.ts +2 -2
  193. package/components/tables-select/index.cjs +1 -263
  194. package/components/tables-select/index.mjs +102 -172
  195. package/components/tables-select/src/ctx.d.ts +76 -91
  196. package/components/tables-select/src/index.vue.d.ts +228 -4969
  197. package/components/template-instances-provider/index.cjs +1 -31
  198. package/components/template-instances-provider/index.mjs +18 -22
  199. package/components/template-instances-provider/src/index.vue.d.ts +2 -2
  200. package/components/templates-default/index.cjs +1 -235
  201. package/components/templates-default/index.mjs +152 -211
  202. package/components/templates-default/src/ctx.d.ts +5 -3
  203. package/components/templates-default/src/index.vue.d.ts +7298 -157
  204. package/components/templates-element-plus/index.cjs +1 -112
  205. package/components/templates-element-plus/index.mjs +49 -91
  206. package/components/templates-element-plus/src/ctx.d.ts +1 -1
  207. package/components/templates-element-plus/src/index.vue.d.ts +65 -258
  208. package/components/templates-esri/index.cjs +1 -65
  209. package/components/templates-esri/index.mjs +29 -39
  210. package/components/templates-esri/src/ctx.d.ts +1 -1
  211. package/components/templates-esri/src/index.vue.d.ts +1776 -24
  212. package/components/templates-layout/index.cjs +1 -137
  213. package/components/templates-layout/index.mjs +78 -116
  214. package/components/templates-layout/src/ctx.d.ts +1 -1
  215. package/components/templates-layout/src/index.vue.d.ts +79 -411
  216. package/components/templates-variant/index.cjs +1 -70
  217. package/components/templates-variant/index.mjs +33 -43
  218. package/components/templates-variant/src/ctx.d.ts +1 -1
  219. package/components/templates-variant/src/index.vue.d.ts +1238 -24
  220. package/components/time-picker/index.cjs +1 -104
  221. package/components/time-picker/index.mjs +57 -87
  222. package/components/time-picker/src/ctx.d.ts +121 -211
  223. package/components/time-picker/src/index.vue.d.ts +263 -1368
  224. package/components/upload/index.cjs +1 -663
  225. package/components/upload/index.mjs +343 -537
  226. package/components/upload/src/ctx.d.ts +108 -195
  227. package/components/upload/src/file.vue.d.ts +197 -776
  228. package/components/upload/src/index.vue.d.ts +689 -1931
  229. package/components/upload/src/types.d.ts +1 -1
  230. package/components/upload/src/wraper.vue.d.ts +232 -407
  231. package/components/upload-plus/index.cjs +21 -18673
  232. package/components/upload-plus/index.mjs +4598 -18372
  233. package/components/upload-plus/src/api.d.ts +2 -2
  234. package/components/upload-plus/src/ctx.d.ts +24 -51
  235. package/components/upload-plus/src/index.vue.d.ts +51 -1656
  236. package/components/use-watch.cjs +1 -0
  237. package/components/van-cascader/index.cjs +1 -125
  238. package/components/van-cascader/index.mjs +51 -96
  239. package/components/van-cascader/src/ctx.d.ts +135 -203
  240. package/components/van-cascader/src/index.vue.d.ts +312 -985
  241. package/components/var-datetime-picker/index.cjs +1 -333
  242. package/components/var-datetime-picker/index.mjs +175 -254
  243. package/components/var-datetime-picker/src/ctx.d.ts +19 -50
  244. package/components/var-datetime-picker/src/index.vue.d.ts +688 -1115
  245. package/components/vditor/index.cjs +1 -86
  246. package/components/vditor/index.mjs +40 -66
  247. package/components/vditor/src/ctx.d.ts +16 -45
  248. package/components/vditor/src/index.vue.d.ts +195 -120
  249. package/composables/element-plus/index.cjs +1 -23
  250. package/composables/element-plus/index.mjs +14 -18
  251. package/composables/index.cjs +1 -161
  252. package/composables/index.d.ts +1 -0
  253. package/composables/index.mjs +102 -135
  254. package/composables/useForm.d.ts +2 -2
  255. package/composables/useRtl.d.ts +18 -0
  256. package/composables/useSourceManager.d.ts +2 -2
  257. package/composables/useTemplateInstances.d.ts +3 -3
  258. package/index.css +1 -562
  259. package/index.d.ts +0 -3
  260. package/index.esm.js +23 -48
  261. package/locale/index.cjs +1 -102
  262. package/locale/index.mjs +34 -34
  263. package/locale/lang/index.cjs +1 -2
  264. package/locale/lang/index.d.ts +1 -0
  265. package/package.json +14 -85
  266. package/shared/const/index.cjs +1 -59
  267. package/shared/const/index.d.ts +1 -1
  268. package/shared/const/index.mjs +18 -20
  269. package/shared/element-plus/ctx.d.ts +40 -37
  270. package/shared/element-plus/index.cjs +1 -211
  271. package/shared/element-plus/index.mjs +93 -161
  272. package/shared/element-plus/instances.d.ts +207 -321
  273. package/shared/form/index.cjs +1 -33
  274. package/shared/form/index.mjs +23 -25
  275. package/shared/helper/index.cjs +1 -11
  276. package/shared/helper/index.mjs +7 -8
  277. package/shared/index.cjs +1 -8
  278. package/shared/index.mjs +5 -1
  279. package/shared/infer-prop/index.cjs +1 -36
  280. package/shared/infer-prop/index.mjs +22 -28
  281. package/shared/progress-it/index.cjs +1 -42
  282. package/shared/progress-it/index.mjs +15 -31
  283. package/shared/rules/index.cjs +1 -56
  284. package/shared/rules/index.mjs +19 -18
  285. package/shared/types/form/index.cjs +1 -2
  286. package/shared/types/index.cjs +1 -2
  287. package/shared/types/source/index.cjs +1 -2
  288. package/shared/types/source-manager/index.cjs +1 -2
  289. package/shared/upload/index.cjs +1 -774
  290. package/shared/upload/index.mjs +180 -764
  291. package/component.d.ts +0 -3
  292. package/components/_plugin-vue_export-helper.mjs +0 -9
  293. package/components/card-input-collection/index.css +0 -21
  294. package/components/cascader/index.css +0 -9
  295. package/components/checkbox/index.css +0 -30
  296. package/components/cloneDeep.mjs +0 -2104
  297. package/components/date-picker-range/index.css +0 -18
  298. package/components/dialog-input-collection/index.css +0 -21
  299. package/components/download-plus/index.css +0 -68
  300. package/components/editable-text/index.css +0 -9
  301. package/components/esri-input-geojson/index.css +0 -32
  302. package/components/fieldset/index.css +0 -5
  303. package/components/form-item/index.css +0 -35
  304. package/components/index.mjs +0 -378
  305. package/components/index2.mjs +0 -14
  306. package/components/information-tag/index.css +0 -6
  307. package/components/information-templates-default/index.css +0 -16
  308. package/components/input-array/index.css +0 -14
  309. package/components/input-collection/index.css +0 -20
  310. package/components/input-link/index.css +0 -4
  311. package/components/input-number/index.css +0 -13
  312. package/components/isObject.mjs +0 -158
  313. package/components/monaco-editor/index.css +0 -4
  314. package/components/radio/index.css +0 -40
  315. package/components/select/index.css +0 -15
  316. package/components/switch/index.css +0 -10
  317. package/components/tables-select/index.css +0 -3
  318. package/components/templates-layout/index.css +0 -3
  319. package/components/upload/index.css +0 -34
  320. package/components/upload-plus/index.css +0 -84
  321. package/components/van-cascader/index.css +0 -6
  322. package/components/var-datetime-picker/index.css +0 -17
  323. 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 a=require("./isObject.cjs");var G=Array.isArray,Gt="[object AsyncFunction]",Bt="[object Function]",Ut="[object GeneratorFunction]",zt="[object Proxy]";function ht(t){if(!a.isObject(t))return!1;var e=a.baseGetTag(t);return e==Bt||e==Ut||e==Gt||e==zt}var E=a.root["__core-js_shared__"],Y=function(){var t=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Nt(t){return!!Y&&Y in t}var Rt=Function.prototype,Ht=Rt.toString;function _(t){if(t!=null){try{return Ht.call(t)}catch{}try{return t+""}catch{}}return""}var Kt=/[\\^$.*+?()[\]{}|]/g,Vt=/^\[object .+?Constructor\]$/,Wt=Function.prototype,qt=Object.prototype,Yt=Wt.toString,Xt=qt.hasOwnProperty,Jt=RegExp("^"+Yt.call(Xt).replace(Kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zt(t){if(!a.isObject(t)||Nt(t))return!1;var e=ht(t)?Jt:Vt;return e.test(_(t))}function Qt(t,e){return t==null?void 0:t[e]}function v(t,e){var r=Qt(t,e);return Zt(r)?r:void 0}var F=v(a.root,"WeakMap"),X=Object.create,kt=function(){function t(){}return function(e){if(!a.isObject(e))return{};if(X)return X(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function te(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var J=function(){try{var t=v(Object,"defineProperty");return t({},"",{}),t}catch{}}();function ee(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var re=9007199254740991,ne=/^(?:0|[1-9]\d*)$/;function ae(t,e){var r=typeof t;return e=e??re,!!e&&(r=="number"||r!="symbol"&&ne.test(t))&&t>-1&&t%1==0&&t<e}function yt(t,e,r){e=="__proto__"&&J?J(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function dt(t,e){return t===e||t!==t&&e!==e}var oe=Object.prototype,ie=oe.hasOwnProperty;function _t(t,e,r){var n=t[e];(!(ie.call(t,e)&&dt(n,r))||r===void 0&&!(e in t))&&yt(t,e,r)}function P(t,e,r,n){var u=!r;r||(r={});for(var c=-1,s=e.length;++c<s;){var f=e[c],p=void 0;p===void 0&&(p=t[f]),u?yt(r,f,p):_t(r,f,p)}return r}var se=9007199254740991;function vt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=se}function Tt(t){return t!=null&&vt(t.length)&&!ht(t)}var ce=Object.prototype;function B(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ce;return t===r}function ue(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var fe="[object Arguments]";function Z(t){return a.isObjectLike(t)&&a.baseGetTag(t)==fe}var jt=Object.prototype,pe=jt.hasOwnProperty,le=jt.propertyIsEnumerable,ge=Z(function(){return arguments}())?Z:function(t){return a.isObjectLike(t)&&pe.call(t,"callee")&&!le.call(t,"callee")};function be(){return!1}var $t=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Q=$t&&typeof module=="object"&&module&&!module.nodeType&&module,he=Q&&Q.exports===$t,k=he?a.root.Buffer:void 0,ye=k?k.isBuffer:void 0,At=ye||be,de="[object Arguments]",_e="[object Array]",ve="[object Boolean]",Te="[object Date]",je="[object Error]",$e="[object Function]",Ae="[object Map]",Oe="[object Number]",we="[object Object]",me="[object RegExp]",Se="[object Set]",Pe="[object String]",Ce="[object WeakMap]",Ie="[object ArrayBuffer]",Ee="[object DataView]",xe="[object Float32Array]",Fe="[object Float64Array]",Me="[object Int8Array]",Le="[object Int16Array]",De="[object Int32Array]",Ge="[object Uint8Array]",Be="[object Uint8ClampedArray]",Ue="[object Uint16Array]",ze="[object Uint32Array]",i={};i[xe]=i[Fe]=i[Me]=i[Le]=i[De]=i[Ge]=i[Be]=i[Ue]=i[ze]=!0;i[de]=i[_e]=i[Ie]=i[ve]=i[Ee]=i[Te]=i[je]=i[$e]=i[Ae]=i[Oe]=i[we]=i[me]=i[Se]=i[Pe]=i[Ce]=!1;function Ne(t){return a.isObjectLike(t)&&vt(t.length)&&!!i[a.baseGetTag(t)]}function U(t){return function(e){return t(e)}}var Ot=typeof exports=="object"&&exports&&!exports.nodeType&&exports,O=Ot&&typeof module=="object"&&module&&!module.nodeType&&module,Re=O&&O.exports===Ot,x=Re&&a.freeGlobal.process,j=function(){try{var t=O&&O.require&&O.require("util").types;return t||x&&x.binding&&x.binding("util")}catch{}}(),tt=j&&j.isTypedArray,He=tt?U(tt):Ne,Ke=Object.prototype,Ve=Ke.hasOwnProperty;function wt(t,e){var r=G(t),n=!r&&ge(t),u=!r&&!n&&At(t),c=!r&&!n&&!u&&He(t),s=r||n||u||c,f=s?ue(t.length,String):[],p=f.length;for(var l in t)(e||Ve.call(t,l))&&!(s&&(l=="length"||u&&(l=="offset"||l=="parent")||c&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ae(l,p)))&&f.push(l);return f}function mt(t,e){return function(r){return t(e(r))}}var We=mt(Object.keys,Object),qe=Object.prototype,Ye=qe.hasOwnProperty;function Xe(t){if(!B(t))return We(t);var e=[];for(var r in Object(t))Ye.call(t,r)&&r!="constructor"&&e.push(r);return e}function z(t){return Tt(t)?wt(t):Xe(t)}function Je(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var Ze=Object.prototype,Qe=Ze.hasOwnProperty;function ke(t){if(!a.isObject(t))return Je(t);var e=B(t),r=[];for(var n in t)n=="constructor"&&(e||!Qe.call(t,n))||r.push(n);return r}function N(t){return Tt(t)?wt(t,!0):ke(t)}var w=v(Object,"create");function tr(){this.__data__=w?w(null):{},this.size=0}function er(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var rr="__lodash_hash_undefined__",nr=Object.prototype,ar=nr.hasOwnProperty;function or(t){var e=this.__data__;if(w){var r=e[t];return r===rr?void 0:r}return ar.call(e,t)?e[t]:void 0}var ir=Object.prototype,sr=ir.hasOwnProperty;function cr(t){var e=this.__data__;return w?e[t]!==void 0:sr.call(e,t)}var ur="__lodash_hash_undefined__";function fr(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=w&&e===void 0?ur: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=tr;d.prototype.delete=er;d.prototype.get=or;d.prototype.has=cr;d.prototype.set=fr;function pr(){this.__data__=[],this.size=0}function C(t,e){for(var r=t.length;r--;)if(dt(t[r][0],e))return r;return-1}var lr=Array.prototype,gr=lr.splice;function br(t){var e=this.__data__,r=C(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():gr.call(e,r,1),--this.size,!0}function hr(t){var e=this.__data__,r=C(e,t);return r<0?void 0:e[r][1]}function yr(t){return C(this.__data__,t)>-1}function dr(t,e){var r=this.__data__,n=C(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=pr;b.prototype.delete=br;b.prototype.get=hr;b.prototype.has=yr;b.prototype.set=dr;var m=v(a.root,"Map");function _r(){this.size=0,this.__data__={hash:new d,map:new(m||b),string:new d}}function vr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function I(t,e){var r=t.__data__;return vr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Tr(t){var e=I(this,t).delete(t);return this.size-=e?1:0,e}function jr(t){return I(this,t).get(t)}function $r(t){return I(this,t).has(t)}function Ar(t,e){var r=I(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function $(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])}}$.prototype.clear=_r;$.prototype.delete=Tr;$.prototype.get=jr;$.prototype.has=$r;$.prototype.set=Ar;function St(t,e){for(var r=-1,n=e.length,u=t.length;++r<n;)t[u+r]=e[r];return t}var Pt=mt(Object.getPrototypeOf,Object);function Or(){this.__data__=new b,this.size=0}function wr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function mr(t){return this.__data__.get(t)}function Sr(t){return this.__data__.has(t)}var Pr=200;function Cr(t,e){var r=this.__data__;if(r instanceof b){var n=r.__data__;if(!m||n.length<Pr-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new $(n)}return r.set(t,e),this.size=r.size,this}function A(t){var e=this.__data__=new b(t);this.size=e.size}A.prototype.clear=Or;A.prototype.delete=wr;A.prototype.get=mr;A.prototype.has=Sr;A.prototype.set=Cr;function Ir(t,e){return t&&P(e,z(e),t)}function Er(t,e){return t&&P(e,N(e),t)}var Ct=typeof exports=="object"&&exports&&!exports.nodeType&&exports,et=Ct&&typeof module=="object"&&module&&!module.nodeType&&module,xr=et&&et.exports===Ct,rt=xr?a.root.Buffer:void 0,nt=rt?rt.allocUnsafe:void 0;function Fr(t,e){if(e)return t.slice();var r=t.length,n=nt?nt(r):new t.constructor(r);return t.copy(n),n}function Mr(t,e){for(var r=-1,n=t==null?0:t.length,u=0,c=[];++r<n;){var s=t[r];e(s,r,t)&&(c[u++]=s)}return c}function It(){return[]}var Lr=Object.prototype,Dr=Lr.propertyIsEnumerable,at=Object.getOwnPropertySymbols,R=at?function(t){return t==null?[]:(t=Object(t),Mr(at(t),function(e){return Dr.call(t,e)}))}:It;function Gr(t,e){return P(t,R(t),e)}var Br=Object.getOwnPropertySymbols,Et=Br?function(t){for(var e=[];t;)St(e,R(t)),t=Pt(t);return e}:It;function Ur(t,e){return P(t,Et(t),e)}function xt(t,e,r){var n=e(t);return G(t)?n:St(n,r(t))}function zr(t){return xt(t,z,R)}function Nr(t){return xt(t,N,Et)}var M=v(a.root,"DataView"),L=v(a.root,"Promise"),D=v(a.root,"Set"),ot="[object Map]",Rr="[object Object]",it="[object Promise]",st="[object Set]",ct="[object WeakMap]",ut="[object DataView]",Hr=_(M),Kr=_(m),Vr=_(L),Wr=_(D),qr=_(F),g=a.baseGetTag;(M&&g(new M(new ArrayBuffer(1)))!=ut||m&&g(new m)!=ot||L&&g(L.resolve())!=it||D&&g(new D)!=st||F&&g(new F)!=ct)&&(g=function(t){var e=a.baseGetTag(t),r=e==Rr?t.constructor:void 0,n=r?_(r):"";if(n)switch(n){case Hr:return ut;case Kr:return ot;case Vr:return it;case Wr:return st;case qr:return ct}return e});var Yr=Object.prototype,Xr=Yr.hasOwnProperty;function Jr(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Xr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var ft=a.root.Uint8Array;function H(t){var e=new t.constructor(t.byteLength);return new ft(e).set(new ft(t)),e}function Zr(t,e){var r=e?H(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Qr=/\w*$/;function kr(t){var e=new t.constructor(t.source,Qr.exec(t));return e.lastIndex=t.lastIndex,e}var pt=a.Symbol?a.Symbol.prototype:void 0,lt=pt?pt.valueOf:void 0;function tn(t){return lt?Object(lt.call(t)):{}}function en(t,e){var r=e?H(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var rn="[object Boolean]",nn="[object Date]",an="[object Map]",on="[object Number]",sn="[object RegExp]",cn="[object Set]",un="[object String]",fn="[object Symbol]",pn="[object ArrayBuffer]",ln="[object DataView]",gn="[object Float32Array]",bn="[object Float64Array]",hn="[object Int8Array]",yn="[object Int16Array]",dn="[object Int32Array]",_n="[object Uint8Array]",vn="[object Uint8ClampedArray]",Tn="[object Uint16Array]",jn="[object Uint32Array]";function $n(t,e,r){var n=t.constructor;switch(e){case pn:return H(t);case rn:case nn:return new n(+t);case ln:return Zr(t,r);case gn:case bn:case hn:case yn:case dn:case _n:case vn:case Tn:case jn:return en(t,r);case an:return new n;case on:case un:return new n(t);case sn:return kr(t);case cn:return new n;case fn:return tn(t)}}function An(t){return typeof t.constructor=="function"&&!B(t)?kt(Pt(t)):{}}var On="[object Map]";function wn(t){return a.isObjectLike(t)&&g(t)==On}var gt=j&&j.isMap,mn=gt?U(gt):wn,Sn="[object Set]";function Pn(t){return a.isObjectLike(t)&&g(t)==Sn}var bt=j&&j.isSet,Cn=bt?U(bt):Pn,In=1,En=2,xn=4,Ft="[object Arguments]",Fn="[object Array]",Mn="[object Boolean]",Ln="[object Date]",Dn="[object Error]",Mt="[object Function]",Gn="[object GeneratorFunction]",Bn="[object Map]",Un="[object Number]",Lt="[object Object]",zn="[object RegExp]",Nn="[object Set]",Rn="[object String]",Hn="[object Symbol]",Kn="[object WeakMap]",Vn="[object ArrayBuffer]",Wn="[object DataView]",qn="[object Float32Array]",Yn="[object Float64Array]",Xn="[object Int8Array]",Jn="[object Int16Array]",Zn="[object Int32Array]",Qn="[object Uint8Array]",kn="[object Uint8ClampedArray]",ta="[object Uint16Array]",ea="[object Uint32Array]",o={};o[Ft]=o[Fn]=o[Vn]=o[Wn]=o[Mn]=o[Ln]=o[qn]=o[Yn]=o[Xn]=o[Jn]=o[Zn]=o[Bn]=o[Un]=o[Lt]=o[zn]=o[Nn]=o[Rn]=o[Hn]=o[Qn]=o[kn]=o[ta]=o[ea]=!0;o[Dn]=o[Mt]=o[Kn]=!1;function S(t,e,r,n,u,c){var s,f=e&In,p=e&En,l=e&xn;if(s!==void 0)return s;if(!a.isObject(t))return t;var K=G(t);if(K){if(s=Jr(t),!f)return te(t,s)}else{var T=g(t),V=T==Mt||T==Gn;if(At(t))return Fr(t,f);if(T==Lt||T==Ft||V&&!u){if(s=p||V?{}:An(t),!f)return p?Ur(t,Er(s,t)):Gr(t,Ir(s,t))}else{if(!o[T])return u?t:{};s=$n(t,T,f)}}c||(c=new A);var W=c.get(t);if(W)return W;c.set(t,s),Cn(t)?t.forEach(function(h){s.add(S(h,e,r,h,t,c))}):mn(t)&&t.forEach(function(h,y){s.set(y,S(h,e,r,y,t,c))});var Dt=l?p?Nr:zr:p?N:z,q=K?void 0:Dt(t);return ee(q||t,function(h,y){q&&(y=h,h=t[y]),_t(s,y,S(h,e,r,y,t,c))}),s}var ra=1,na=4;function aa(t){return S(t,ra|na)}exports.cloneDeep=aa;