@revolist/revogrid 4.0.2-next → 4.0.2

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 (805) hide show
  1. package/LICENSE +1 -1
  2. package/dist/cjs/app-globals-53fde1aa.js +14 -0
  3. package/dist/cjs/app-globals-53fde1aa.js.map +1 -0
  4. package/dist/cjs/column.service-2066d651.js +545 -0
  5. package/dist/cjs/column.service-2066d651.js.map +1 -0
  6. package/dist/cjs/debounce-e2b7c6fb.js +226 -0
  7. package/dist/cjs/debounce-e2b7c6fb.js.map +1 -0
  8. package/dist/cjs/dimension.helpers-ee39d6c4.js +4218 -0
  9. package/dist/cjs/dimension.helpers-ee39d6c4.js.map +1 -0
  10. package/dist/cjs/dispatcher-a58fa91a.js +34 -0
  11. package/dist/cjs/dispatcher-a58fa91a.js.map +1 -0
  12. package/dist/cjs/events-7ccd6894.js +233 -0
  13. package/dist/cjs/events-7ccd6894.js.map +1 -0
  14. package/dist/cjs/filter.button-db6cbd2e.js +44 -0
  15. package/dist/cjs/filter.button-db6cbd2e.js.map +1 -0
  16. package/dist/cjs/header-cell-renderer-3df76829.js +304 -0
  17. package/dist/cjs/header-cell-renderer-3df76829.js.map +1 -0
  18. package/dist/cjs/index-73c149e3.js +106 -0
  19. package/dist/cjs/index-73c149e3.js.map +1 -0
  20. package/dist/cjs/index-84e32c2a.js +1868 -0
  21. package/dist/cjs/index-84e32c2a.js.map +1 -0
  22. package/dist/cjs/index.cjs.js +53 -0
  23. package/dist/cjs/index.cjs.js.map +1 -0
  24. package/dist/cjs/key.utils-dc4ac217.js +129 -0
  25. package/dist/cjs/key.utils-dc4ac217.js.map +1 -0
  26. package/dist/cjs/loader.cjs.js +12 -27
  27. package/dist/cjs/loader.cjs.js.map +1 -0
  28. package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-d009a220.js} +30 -13
  29. package/dist/cjs/resize-observer-d009a220.js.map +1 -0
  30. package/dist/cjs/revo-grid.cjs.entry.js +3992 -0
  31. package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
  32. package/dist/cjs/revo-grid.cjs.js +22 -65
  33. package/dist/cjs/revo-grid.cjs.js.map +1 -0
  34. package/dist/cjs/revogr-attribution_6.cjs.entry.js +1270 -0
  35. package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -0
  36. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +508 -0
  37. package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
  38. package/dist/cjs/revogr-data_4.cjs.entry.js +958 -0
  39. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
  40. package/dist/cjs/revogr-filter-panel.cjs.entry.js +268 -115
  41. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
  42. package/dist/cjs/selection.store-2e110a67.js +400 -0
  43. package/dist/cjs/selection.store-2e110a67.js.map +1 -0
  44. package/dist/cjs/storeTypes-b3f924b2.js +106 -0
  45. package/dist/cjs/storeTypes-b3f924b2.js.map +1 -0
  46. package/dist/cjs/throttle-f7aee21b.js +240 -0
  47. package/dist/cjs/throttle-f7aee21b.js.map +1 -0
  48. package/dist/cjs/toNumber-838e6ff5.js +340 -0
  49. package/dist/cjs/toNumber-838e6ff5.js.map +1 -0
  50. package/dist/cjs/viewport.helpers-6670177c.js +262 -0
  51. package/dist/cjs/viewport.helpers-6670177c.js.map +1 -0
  52. package/dist/collection/collection-manifest.json +18 -16
  53. package/dist/collection/components/attribution/revogr-attribution.js +20 -0
  54. package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
  55. package/dist/collection/components/clipboard/revogr-clipboard.js +410 -115
  56. package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
  57. package/dist/collection/components/data/cell-renderer.js +39 -0
  58. package/dist/collection/components/data/cell-renderer.js.map +1 -0
  59. package/dist/collection/components/data/column.service.js +302 -0
  60. package/dist/collection/components/data/column.service.js.map +1 -0
  61. package/dist/collection/components/data/revogr-data-style.css +18 -11
  62. package/dist/collection/components/data/revogr-data.js +626 -301
  63. package/dist/collection/components/data/revogr-data.js.map +1 -0
  64. package/dist/collection/components/data/row-highlight.plugin.js +51 -0
  65. package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
  66. package/dist/collection/components/data/row-renderer.js +16 -0
  67. package/dist/collection/components/data/row-renderer.js.map +1 -0
  68. package/dist/collection/components/editors/edit.utils.js +9 -0
  69. package/dist/collection/components/editors/edit.utils.js.map +1 -0
  70. package/dist/collection/components/{overlay → editors}/revogr-edit-style.css +15 -9
  71. package/dist/collection/components/editors/revogr-edit.js +316 -0
  72. package/dist/collection/components/editors/revogr-edit.js.map +1 -0
  73. package/dist/collection/components/editors/text-editor.js +73 -0
  74. package/dist/collection/components/editors/text-editor.js.map +1 -0
  75. package/dist/collection/components/header/header-cell-renderer.js +28 -0
  76. package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
  77. package/dist/collection/components/header/header-renderer.js +47 -0
  78. package/dist/collection/components/header/header-renderer.js.map +1 -0
  79. package/dist/collection/components/header/revogr-header-style.css +15 -9
  80. package/dist/collection/components/header/revogr-header.js +421 -297
  81. package/dist/collection/components/header/revogr-header.js.map +1 -0
  82. package/dist/collection/components/order/order-renderer.js +50 -0
  83. package/dist/collection/components/order/order-renderer.js.map +1 -0
  84. package/dist/collection/components/order/order-row.service.js +72 -0
  85. package/dist/collection/components/order/order-row.service.js.map +1 -0
  86. package/dist/collection/components/order/revogr-order-editor.js +381 -350
  87. package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
  88. package/dist/collection/components/overlay/autofill.service.js +206 -179
  89. package/dist/collection/components/overlay/autofill.service.js.map +1 -0
  90. package/dist/collection/components/overlay/keyboard.service.js +137 -124
  91. package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
  92. package/dist/collection/components/overlay/revogr-overlay-selection.js +1208 -703
  93. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
  94. package/dist/collection/components/overlay/revogr-overlay-style.css +86 -13
  95. package/dist/collection/components/overlay/selection.utils.js +86 -82
  96. package/dist/collection/components/overlay/selection.utils.js.map +1 -0
  97. package/dist/collection/components/revoGrid/grid.helpers.js +28 -13
  98. package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
  99. package/dist/collection/components/revoGrid/revo-grid-style.css +143 -51
  100. package/dist/collection/components/revoGrid/revo-grid.js +2834 -2181
  101. package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
  102. package/dist/collection/components/revoGrid/viewport.helpers.js +9 -4
  103. package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
  104. package/dist/collection/components/revoGrid/viewport.resize.service.js +23 -19
  105. package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
  106. package/dist/collection/components/revoGrid/viewport.scrolling.service.js +78 -50
  107. package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
  108. package/dist/collection/components/revoGrid/viewport.service.js +224 -204
  109. package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
  110. package/dist/collection/components/rowHeaders/revogr-row-headers.js +262 -204
  111. package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
  112. package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
  113. package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
  114. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +20 -13
  115. package/dist/collection/components/scroll/revogr-viewport-scroll.js +535 -369
  116. package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
  117. package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
  118. package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
  119. package/dist/collection/components/scrollable/revogr-scroll-style.css +24 -18
  120. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +286 -247
  121. package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
  122. package/dist/collection/components/selectionFocus/revogr-focus-style.css +16 -10
  123. package/dist/collection/components/selectionFocus/revogr-focus.js +366 -96
  124. package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
  125. package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +16 -10
  126. package/dist/collection/components/selectionTempRange/revogr-temp-range.js +149 -128
  127. package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
  128. package/dist/collection/components/vnode/vnode-converter.js +81 -0
  129. package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
  130. package/dist/collection/components/vnode/vnode.utils.js +18 -0
  131. package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
  132. package/dist/collection/global/global.js +15 -11
  133. package/dist/collection/global/global.js.map +1 -0
  134. package/dist/collection/index.js +18 -0
  135. package/dist/collection/index.js.map +1 -0
  136. package/dist/collection/plugins/base.plugin.js +88 -0
  137. package/dist/collection/plugins/base.plugin.js.map +1 -0
  138. package/dist/collection/plugins/column.auto-size.plugin.js +234 -0
  139. package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
  140. package/dist/collection/plugins/column.stretch.plugin.js +96 -0
  141. package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
  142. package/dist/collection/plugins/dispatcher.js +27 -0
  143. package/dist/collection/plugins/dispatcher.js.map +1 -0
  144. package/dist/collection/plugins/export/csv.js +57 -53
  145. package/dist/collection/plugins/export/csv.js.map +1 -0
  146. package/dist/collection/plugins/export/export.plugin.js +154 -150
  147. package/dist/collection/plugins/export/export.plugin.js.map +1 -0
  148. package/dist/collection/plugins/export/types.js +1 -0
  149. package/dist/collection/plugins/export/types.js.map +1 -0
  150. package/dist/collection/plugins/filter/conditions/equal.js +15 -7
  151. package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
  152. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +10 -6
  153. package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
  154. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +7 -3
  155. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
  156. package/dist/collection/plugins/filter/conditions/number/lessThan.js +12 -8
  157. package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
  158. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +7 -3
  159. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
  160. package/dist/collection/plugins/filter/conditions/set.js +4 -0
  161. package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
  162. package/dist/collection/plugins/filter/conditions/string/beginswith.js +17 -13
  163. package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
  164. package/dist/collection/plugins/filter/conditions/string/contains.js +17 -10
  165. package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
  166. package/dist/collection/plugins/filter/filter.button.js +21 -13
  167. package/dist/collection/plugins/filter/filter.button.js.map +1 -0
  168. package/dist/collection/plugins/filter/filter.plugin.js +280 -185
  169. package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
  170. package/dist/collection/plugins/filter/filter.pop.js +492 -246
  171. package/dist/collection/plugins/filter/filter.pop.js.map +1 -0
  172. package/dist/collection/plugins/filter/filter.service.js +42 -38
  173. package/dist/collection/plugins/filter/filter.service.js.map +1 -0
  174. package/dist/collection/plugins/filter/filter.style.css +68 -15
  175. package/dist/collection/plugins/filter/filter.types.js +1 -0
  176. package/dist/collection/plugins/filter/filter.types.js.map +1 -0
  177. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +30 -26
  178. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -0
  179. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +38 -30
  180. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js.map +1 -0
  181. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +22 -18
  182. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -0
  183. package/dist/collection/plugins/groupingRow/grouping.const.js +7 -2
  184. package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
  185. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +64 -61
  186. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
  187. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +239 -237
  188. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
  189. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +27 -24
  190. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
  191. package/dist/collection/plugins/groupingRow/grouping.row.types.js +1 -0
  192. package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
  193. package/dist/collection/plugins/groupingRow/grouping.service.js +101 -131
  194. package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
  195. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +47 -43
  196. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
  197. package/dist/collection/plugins/moveColumn/column.drag.plugin.js +167 -0
  198. package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
  199. package/dist/collection/plugins/moveColumn/order-column.handler.js +69 -0
  200. package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
  201. package/dist/collection/plugins/sorting/sorting.plugin.js +218 -163
  202. package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
  203. package/dist/collection/plugins/sorting/sorting.sign.js +6 -2
  204. package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
  205. package/dist/collection/serve/controller.js +233 -0
  206. package/dist/collection/{utilsExternal/generate-data.js → serve/data.js} +72 -32
  207. package/dist/collection/services/cell.helpers.js +9 -5
  208. package/dist/collection/services/cell.helpers.js.map +1 -0
  209. package/dist/collection/services/column.data.provider.js +201 -185
  210. package/dist/collection/services/column.data.provider.js.map +1 -0
  211. package/dist/collection/services/data.provider.js +70 -45
  212. package/dist/collection/services/data.provider.js.map +1 -0
  213. package/dist/collection/services/dimension.provider.js +143 -84
  214. package/dist/collection/services/dimension.provider.js.map +1 -0
  215. package/dist/collection/services/local.scroll.service.js +120 -0
  216. package/dist/collection/services/local.scroll.service.js.map +1 -0
  217. package/dist/collection/services/local.scroll.timer.js +42 -0
  218. package/dist/collection/services/local.scroll.timer.js.map +1 -0
  219. package/dist/collection/services/resizable.directive.js +211 -226
  220. package/dist/collection/services/resizable.directive.js.map +1 -0
  221. package/dist/collection/services/resizable.element.js +39 -0
  222. package/dist/collection/services/resizable.element.js.map +1 -0
  223. package/dist/collection/services/selection.store.connector.js +257 -208
  224. package/dist/collection/services/selection.store.connector.js.map +1 -0
  225. package/dist/collection/services/viewport.provider.js +16 -12
  226. package/dist/collection/services/viewport.provider.js.map +1 -0
  227. package/dist/collection/store/dataSource/data.proxy.js +29 -25
  228. package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
  229. package/dist/collection/store/dataSource/data.store.js +100 -93
  230. package/dist/collection/store/dataSource/data.store.js.map +1 -0
  231. package/dist/collection/store/dataSource/index.js +7 -0
  232. package/dist/collection/store/dataSource/index.js.map +1 -0
  233. package/dist/collection/store/dataSource/trimmed.plugin.js +36 -0
  234. package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
  235. package/dist/collection/store/dimension/dimension.helpers.js +97 -95
  236. package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
  237. package/dist/collection/store/dimension/dimension.store.js +106 -48
  238. package/dist/collection/store/dimension/dimension.store.js.map +1 -0
  239. package/dist/collection/store/dimension/index.js +6 -0
  240. package/dist/collection/store/dimension/index.js.map +1 -0
  241. package/dist/collection/store/selection/index.js +7 -0
  242. package/dist/collection/store/selection/index.js.map +1 -0
  243. package/dist/collection/store/selection/selection.helpers.js +43 -39
  244. package/dist/collection/store/selection/selection.helpers.js.map +1 -0
  245. package/dist/collection/store/selection/selection.store.js +75 -63
  246. package/dist/collection/store/selection/selection.store.js.map +1 -0
  247. package/dist/collection/store/selection/selection.store.service.js +35 -31
  248. package/dist/collection/store/selection/selection.store.service.js.map +1 -0
  249. package/dist/collection/store/storeTypes.js +10 -2
  250. package/dist/collection/store/storeTypes.js.map +1 -0
  251. package/dist/collection/store/viewport/index.js +6 -0
  252. package/dist/collection/store/viewport/index.js.map +1 -0
  253. package/dist/collection/store/viewport/viewport.helpers.js +247 -0
  254. package/dist/collection/store/viewport/viewport.helpers.js.map +1 -0
  255. package/dist/collection/store/viewport/viewport.store.js +193 -0
  256. package/dist/collection/store/viewport/viewport.store.js.map +1 -0
  257. package/dist/collection/themeManager/theme.compact.js +7 -3
  258. package/dist/collection/themeManager/theme.compact.js.map +1 -0
  259. package/dist/collection/themeManager/theme.default.js +7 -3
  260. package/dist/collection/themeManager/theme.default.js.map +1 -0
  261. package/dist/collection/themeManager/theme.material.js +7 -3
  262. package/dist/collection/themeManager/theme.material.js.map +1 -0
  263. package/dist/collection/themeManager/theme.service.js +53 -0
  264. package/dist/collection/themeManager/theme.service.js.map +1 -0
  265. package/dist/collection/types/dimension.js +2 -0
  266. package/dist/collection/types/dimension.js.map +1 -0
  267. package/dist/collection/types/interfaces.js +2 -0
  268. package/dist/collection/types/interfaces.js.map +1 -0
  269. package/dist/collection/types/plugin.js +2 -0
  270. package/dist/collection/types/plugin.js.map +1 -0
  271. package/dist/collection/types/plugin.types.js +2 -0
  272. package/dist/collection/types/plugin.types.js.map +1 -0
  273. package/dist/collection/types/selection.js +2 -0
  274. package/dist/collection/types/selection.js.map +1 -0
  275. package/dist/collection/types/theme.js +2 -0
  276. package/dist/collection/types/theme.js.map +1 -0
  277. package/dist/collection/types/viewport.interfaces.js +2 -0
  278. package/dist/collection/types/viewport.interfaces.js.map +1 -0
  279. package/dist/collection/utils/browser.js +7 -0
  280. package/dist/collection/utils/browser.js.map +1 -0
  281. package/dist/collection/utils/closest.polifill.js +22 -0
  282. package/dist/collection/utils/closest.polifill.js.map +1 -0
  283. package/dist/collection/utils/consts.js +8 -0
  284. package/dist/collection/utils/consts.js.map +1 -0
  285. package/dist/collection/utils/events.js +29 -0
  286. package/dist/collection/utils/events.js.map +1 -0
  287. package/dist/collection/utils/header.utils.js +24 -0
  288. package/dist/collection/utils/header.utils.js.map +1 -0
  289. package/dist/collection/utils/index.js +125 -0
  290. package/dist/collection/utils/index.js.map +1 -0
  291. package/dist/collection/utils/key.codes.js +76 -0
  292. package/dist/collection/utils/key.codes.js.map +1 -0
  293. package/dist/collection/utils/key.utils.js +84 -0
  294. package/dist/collection/utils/key.utils.js.map +1 -0
  295. package/dist/collection/utils/mobile.js +7 -0
  296. package/dist/collection/utils/mobile.js.map +1 -0
  297. package/dist/collection/utils/platform.js +5 -1
  298. package/dist/collection/utils/platform.js.map +1 -0
  299. package/dist/collection/utils/resize-observer.polifill.js +10 -0
  300. package/dist/collection/utils/resize-observer.polifill.js.map +1 -0
  301. package/dist/collection/utils/row-header-utils.js +9 -0
  302. package/dist/collection/utils/row-header-utils.js.map +1 -0
  303. package/dist/collection/utils/store.utils.js +7 -3
  304. package/dist/collection/utils/store.utils.js.map +1 -0
  305. package/dist/esm/app-globals-ef1fca59.js +12 -0
  306. package/dist/esm/app-globals-ef1fca59.js.map +1 -0
  307. package/dist/esm/column.service-21a3af74.js +520 -0
  308. package/dist/esm/column.service-21a3af74.js.map +1 -0
  309. package/dist/esm/debounce-7781346d.js +224 -0
  310. package/dist/esm/debounce-7781346d.js.map +1 -0
  311. package/dist/esm/dimension.helpers-a3065cb1.js +4185 -0
  312. package/dist/esm/dimension.helpers-a3065cb1.js.map +1 -0
  313. package/dist/esm/dispatcher-8ea9187d.js +30 -0
  314. package/dist/esm/dispatcher-8ea9187d.js.map +1 -0
  315. package/dist/esm/events-3dd8ee7c.js +228 -0
  316. package/dist/esm/events-3dd8ee7c.js.map +1 -0
  317. package/dist/esm/filter.button-46ce4f80.js +38 -0
  318. package/dist/esm/filter.button-46ce4f80.js.map +1 -0
  319. package/dist/esm/header-cell-renderer-1ca84d5f.js +301 -0
  320. package/dist/esm/header-cell-renderer-1ca84d5f.js.map +1 -0
  321. package/dist/esm/index-21436631.js +1837 -0
  322. package/dist/esm/index-21436631.js.map +1 -0
  323. package/dist/esm/index-98fd0168.js +79 -0
  324. package/dist/esm/index-98fd0168.js.map +1 -0
  325. package/dist/esm/index.js +11 -0
  326. package/dist/esm/index.js.map +1 -0
  327. package/dist/esm/key.utils-4586a3d6.js +120 -0
  328. package/dist/esm/key.utils-4586a3d6.js.map +1 -0
  329. package/dist/esm/loader.js +11 -26
  330. package/dist/esm/loader.js.map +1 -0
  331. package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-83c9e167.js} +30 -14
  332. package/dist/esm/resize-observer-83c9e167.js.map +1 -0
  333. package/dist/esm/revo-grid.entry.js +3988 -0
  334. package/dist/esm/revo-grid.entry.js.map +1 -0
  335. package/dist/esm/revo-grid.js +19 -65
  336. package/dist/esm/revo-grid.js.map +1 -0
  337. package/dist/esm/revogr-attribution_6.entry.js +1261 -0
  338. package/dist/esm/revogr-attribution_6.entry.js.map +1 -0
  339. package/dist/esm/revogr-clipboard_3.entry.js +502 -0
  340. package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
  341. package/dist/esm/revogr-data_4.entry.js +951 -0
  342. package/dist/esm/revogr-data_4.entry.js.map +1 -0
  343. package/dist/esm/revogr-filter-panel.entry.js +268 -115
  344. package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
  345. package/dist/esm/selection.store-2577ddf9.js +391 -0
  346. package/dist/esm/selection.store-2577ddf9.js.map +1 -0
  347. package/dist/esm/storeTypes-f2647985.js +101 -0
  348. package/dist/esm/storeTypes-f2647985.js.map +1 -0
  349. package/dist/esm/throttle-cfd527d6.js +235 -0
  350. package/dist/esm/throttle-cfd527d6.js.map +1 -0
  351. package/dist/esm/toNumber-8de324a7.js +331 -0
  352. package/dist/esm/toNumber-8de324a7.js.map +1 -0
  353. package/dist/esm/viewport.helpers-6591d423.js +251 -0
  354. package/dist/esm/viewport.helpers-6591d423.js.map +1 -0
  355. package/dist/index.js +1 -1
  356. package/dist/loader/cdn.js +4 -0
  357. package/dist/loader/index.cjs.js +4 -0
  358. package/{loader → dist/loader}/index.d.ts +11 -3
  359. package/dist/loader/index.es2017.js +4 -0
  360. package/dist/{esm/polyfills/es5-html-element.js → loader/index.js} +5 -1
  361. package/{loader → dist/loader}/package.json +1 -0
  362. package/dist/revo-grid/app-globals-ef1fca59.js +5 -0
  363. package/dist/revo-grid/app-globals-ef1fca59.js.map +1 -0
  364. package/dist/revo-grid/column.service-21a3af74.js +5 -0
  365. package/dist/revo-grid/column.service-21a3af74.js.map +1 -0
  366. package/dist/revo-grid/debounce-7781346d.js +5 -0
  367. package/dist/revo-grid/debounce-7781346d.js.map +1 -0
  368. package/dist/revo-grid/dimension.helpers-a3065cb1.js +5 -0
  369. package/dist/revo-grid/dimension.helpers-a3065cb1.js.map +1 -0
  370. package/dist/revo-grid/dispatcher-8ea9187d.js +5 -0
  371. package/dist/revo-grid/dispatcher-8ea9187d.js.map +1 -0
  372. package/dist/revo-grid/events-3dd8ee7c.js +5 -0
  373. package/dist/revo-grid/events-3dd8ee7c.js.map +1 -0
  374. package/dist/revo-grid/filter.button-46ce4f80.js +5 -0
  375. package/dist/revo-grid/filter.button-46ce4f80.js.map +1 -0
  376. package/dist/revo-grid/header-cell-renderer-1ca84d5f.js +5 -0
  377. package/dist/revo-grid/header-cell-renderer-1ca84d5f.js.map +1 -0
  378. package/dist/revo-grid/index-21436631.js +6 -0
  379. package/dist/revo-grid/index-21436631.js.map +1 -0
  380. package/dist/revo-grid/index-98fd0168.js +5 -0
  381. package/dist/revo-grid/index-98fd0168.js.map +1 -0
  382. package/dist/revo-grid/index.esm.js +5 -0
  383. package/dist/revo-grid/index.esm.js.map +1 -0
  384. package/dist/revo-grid/key.utils-4586a3d6.js +5 -0
  385. package/dist/revo-grid/key.utils-4586a3d6.js.map +1 -0
  386. package/dist/revo-grid/resize-observer-83c9e167.js +5 -0
  387. package/dist/revo-grid/resize-observer-83c9e167.js.map +1 -0
  388. package/dist/revo-grid/revo-grid.entry.js +5 -0
  389. package/dist/revo-grid/revo-grid.entry.js.map +1 -0
  390. package/dist/revo-grid/revo-grid.esm.js +5 -1
  391. package/dist/revo-grid/revo-grid.esm.js.map +1 -0
  392. package/dist/revo-grid/revogr-attribution_6.entry.js +5 -0
  393. package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -0
  394. package/dist/revo-grid/revogr-clipboard_3.entry.js +5 -0
  395. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
  396. package/dist/revo-grid/revogr-data_4.entry.js +5 -0
  397. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
  398. package/dist/revo-grid/revogr-filter-panel.entry.js +5 -1
  399. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
  400. package/dist/revo-grid/selection.store-2577ddf9.js +5 -0
  401. package/dist/revo-grid/selection.store-2577ddf9.js.map +1 -0
  402. package/dist/revo-grid/storeTypes-f2647985.js +5 -0
  403. package/dist/revo-grid/storeTypes-f2647985.js.map +1 -0
  404. package/dist/revo-grid/throttle-cfd527d6.js +5 -0
  405. package/dist/revo-grid/throttle-cfd527d6.js.map +1 -0
  406. package/dist/revo-grid/toNumber-8de324a7.js +5 -0
  407. package/dist/revo-grid/toNumber-8de324a7.js.map +1 -0
  408. package/dist/revo-grid/viewport.helpers-6591d423.js +5 -0
  409. package/dist/revo-grid/viewport.helpers-6591d423.js.map +1 -0
  410. package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
  411. package/dist/types/components/clipboard/revogr-clipboard.d.ts +78 -10
  412. package/dist/types/components/data/cell-renderer.d.ts +14 -0
  413. package/dist/types/components/data/column.service.d.ts +60 -0
  414. package/dist/types/components/data/revogr-data.d.ts +101 -27
  415. package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
  416. package/dist/types/components/data/{rowRenderer.d.ts → row-renderer.d.ts} +6 -5
  417. package/dist/types/components/editors/revogr-edit.d.ts +63 -0
  418. package/dist/types/components/editors/text-editor.d.ts +46 -0
  419. package/dist/types/components/header/header-cell-renderer.d.ts +11 -0
  420. package/dist/types/components/header/header-renderer.d.ts +17 -0
  421. package/dist/types/components/header/revogr-header.d.ts +70 -22
  422. package/dist/types/components/order/order-renderer.d.ts +29 -0
  423. package/dist/types/components/order/order-row.service.d.ts +28 -0
  424. package/dist/types/components/order/revogr-order-editor.d.ts +43 -41
  425. package/dist/types/components/overlay/autofill.service.d.ts +69 -54
  426. package/dist/types/components/overlay/keyboard.service.d.ts +24 -23
  427. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +216 -75
  428. package/dist/types/components/overlay/selection.utils.d.ts +24 -27
  429. package/dist/types/components/revoGrid/grid.helpers.d.ts +16 -11
  430. package/dist/types/components/revoGrid/revo-grid.d.ts +555 -403
  431. package/dist/types/components/revoGrid/viewport.helpers.d.ts +4 -3
  432. package/dist/types/components/revoGrid/viewport.resize.service.d.ts +7 -7
  433. package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -21
  434. package/dist/types/components/revoGrid/viewport.service.d.ts +54 -56
  435. package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +45 -12
  436. package/dist/types/components/rowHeaders/row-header-render.d.ts +5 -5
  437. package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +115 -76
  438. package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
  439. package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +39 -22
  440. package/dist/types/components/selectionFocus/revogr-focus.d.ts +61 -9
  441. package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +26 -11
  442. package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
  443. package/dist/types/components/vnode/vnode.utils.d.ts +8 -0
  444. package/dist/types/components.d.ts +1595 -274
  445. package/dist/types/index.d.ts +14 -0
  446. package/dist/types/plugins/base.plugin.d.ts +49 -0
  447. package/dist/types/plugins/column.auto-size.plugin.d.ts +47 -0
  448. package/dist/types/plugins/column.stretch.plugin.d.ts +22 -0
  449. package/dist/types/plugins/dispatcher.d.ts +16 -0
  450. package/dist/types/plugins/export/csv.d.ts +6 -6
  451. package/dist/types/plugins/export/export.plugin.d.ts +18 -18
  452. package/dist/types/plugins/export/types.d.ts +15 -15
  453. package/dist/types/plugins/filter/filter.button.d.ts +7 -3
  454. package/dist/types/plugins/filter/filter.plugin.d.ts +61 -43
  455. package/dist/types/plugins/filter/filter.pop.d.ts +60 -35
  456. package/dist/types/plugins/filter/filter.service.d.ts +15 -15
  457. package/dist/types/plugins/filter/filter.types.d.ts +7 -7
  458. package/dist/types/plugins/groupingColumn/columnGroupsRenderer.d.ts +16 -13
  459. package/dist/types/plugins/groupingColumn/grouping.col.plugin.d.ts +10 -6
  460. package/dist/types/plugins/groupingColumn/headerGroupRenderer.d.ts +12 -10
  461. package/dist/types/plugins/groupingRow/grouping.const.d.ts +8 -7
  462. package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +6 -6
  463. package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +32 -37
  464. package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +7 -5
  465. package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +23 -15
  466. package/dist/types/plugins/groupingRow/grouping.service.d.ts +18 -16
  467. package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +1 -1
  468. package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +56 -0
  469. package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
  470. package/dist/types/plugins/sorting/sorting.plugin.d.ts +40 -27
  471. package/dist/types/plugins/sorting/sorting.sign.d.ts +3 -3
  472. package/dist/types/services/cell.helpers.d.ts +2 -2
  473. package/dist/types/services/column.data.provider.d.ts +33 -35
  474. package/dist/types/services/data.provider.d.ts +27 -21
  475. package/dist/types/services/dimension.provider.d.ts +52 -32
  476. package/dist/types/services/local.scroll.service.d.ts +37 -0
  477. package/dist/types/services/local.scroll.timer.d.ts +26 -0
  478. package/dist/types/services/resizable.directive.d.ts +52 -51
  479. package/dist/types/services/resizable.element.d.ts +4 -0
  480. package/dist/types/services/selection.store.connector.d.ts +54 -36
  481. package/dist/types/services/viewport.provider.d.ts +6 -8
  482. package/dist/types/stencil-public-runtime.d.ts +331 -217
  483. package/dist/types/store/dataSource/data.proxy.d.ts +3 -3
  484. package/dist/types/store/dataSource/data.store.d.ts +45 -46
  485. package/dist/types/store/dataSource/index.d.ts +3 -0
  486. package/dist/types/store/dataSource/trimmed.plugin.d.ts +10 -0
  487. package/dist/types/store/dimension/dimension.helpers.d.ts +24 -9
  488. package/dist/types/store/dimension/dimension.store.d.ts +29 -11
  489. package/dist/types/store/dimension/index.d.ts +2 -0
  490. package/dist/types/store/selection/index.d.ts +3 -0
  491. package/dist/types/store/selection/selection.helpers.d.ts +1 -3
  492. package/dist/types/store/selection/selection.store.d.ts +19 -17
  493. package/dist/types/store/selection/selection.store.service.d.ts +12 -13
  494. package/dist/types/store/storeTypes.d.ts +4 -4
  495. package/dist/types/store/viewport/index.d.ts +2 -0
  496. package/dist/types/store/viewport/viewport.helpers.d.ts +54 -0
  497. package/dist/types/store/viewport/viewport.store.d.ts +36 -0
  498. package/dist/types/themeManager/theme.compact.d.ts +3 -3
  499. package/dist/types/themeManager/theme.default.d.ts +3 -3
  500. package/dist/types/themeManager/theme.material.d.ts +3 -3
  501. package/dist/types/themeManager/theme.service.d.ts +13 -0
  502. package/dist/types/types/dimension.d.ts +8 -0
  503. package/dist/types/types/interfaces.d.ts +243 -0
  504. package/dist/types/types/plugin.d.ts +9 -0
  505. package/dist/types/types/plugin.types.d.ts +12 -0
  506. package/dist/types/types/selection.d.ts +115 -0
  507. package/dist/types/types/theme.d.ts +7 -0
  508. package/dist/types/types/viewport.interfaces.d.ts +51 -0
  509. package/dist/types/utils/browser.d.ts +1 -0
  510. package/dist/types/utils/consts.d.ts +5 -1
  511. package/dist/types/utils/events.d.ts +2 -0
  512. package/dist/types/utils/{utils.d.ts → index.d.ts} +17 -1
  513. package/dist/types/utils/key.codes.d.ts +70 -0
  514. package/dist/types/utils/{keyCodes.utils.d.ts → key.utils.d.ts} +5 -1
  515. package/dist/types/utils/mobile.d.ts +1 -0
  516. package/dist/types/utils/platform.d.ts +1 -1
  517. package/dist/types/utils/row-header-utils.d.ts +2 -0
  518. package/dist/types/utils/store.utils.d.ts +2 -2
  519. package/hydrate/index.d.ts +218 -0
  520. package/hydrate/index.js +32381 -0
  521. package/hydrate/package.json +6 -0
  522. package/package.json +94 -52
  523. package/readme.md +135 -98
  524. package/standalone/_baseIteratee.js +1237 -0
  525. package/standalone/_baseIteratee.js.map +1 -0
  526. package/standalone/_stringToPath.js +1389 -0
  527. package/standalone/_stringToPath.js.map +1 -0
  528. package/standalone/column.service.js +889 -0
  529. package/standalone/column.service.js.map +1 -0
  530. package/standalone/consts.js +30 -0
  531. package/standalone/consts.js.map +1 -0
  532. package/standalone/data.store.js +705 -0
  533. package/standalone/data.store.js.map +1 -0
  534. package/standalone/debounce.js +225 -0
  535. package/standalone/debounce.js.map +1 -0
  536. package/standalone/dimension.helpers.js +355 -0
  537. package/standalone/dimension.helpers.js.map +1 -0
  538. package/standalone/each.js +200 -0
  539. package/standalone/each.js.map +1 -0
  540. package/standalone/filter.button.js +38 -0
  541. package/standalone/filter.button.js.map +1 -0
  542. package/standalone/identity.js +349 -0
  543. package/standalone/identity.js.map +1 -0
  544. package/standalone/index.d.ts +66 -0
  545. package/standalone/index.js +42 -0
  546. package/standalone/index.js.map +1 -0
  547. package/standalone/index2.js +55 -0
  548. package/standalone/index2.js.map +1 -0
  549. package/standalone/isObjectLike.js +195 -0
  550. package/standalone/isObjectLike.js.map +1 -0
  551. package/standalone/local.scroll.timer.js +163 -0
  552. package/standalone/local.scroll.timer.js.map +1 -0
  553. package/{custom-element → standalone}/resize-observer.js +30 -14
  554. package/standalone/resize-observer.js.map +1 -0
  555. package/standalone/revo-grid.d.ts +11 -0
  556. package/standalone/revo-grid.js +4252 -0
  557. package/standalone/revo-grid.js.map +1 -0
  558. package/standalone/revogr-attribution.d.ts +11 -0
  559. package/standalone/revogr-attribution.js +11 -0
  560. package/standalone/revogr-attribution.js.map +1 -0
  561. package/standalone/revogr-attribution2.js +31 -0
  562. package/standalone/revogr-attribution2.js.map +1 -0
  563. package/standalone/revogr-clipboard.d.ts +11 -0
  564. package/standalone/revogr-clipboard.js +11 -0
  565. package/standalone/revogr-clipboard.js.map +1 -0
  566. package/standalone/revogr-clipboard2.js +159 -0
  567. package/standalone/revogr-clipboard2.js.map +1 -0
  568. package/standalone/revogr-data.d.ts +11 -0
  569. package/standalone/revogr-data.js +11 -0
  570. package/standalone/revogr-data.js.map +1 -0
  571. package/standalone/revogr-data2.js +368 -0
  572. package/standalone/revogr-data2.js.map +1 -0
  573. package/standalone/revogr-edit.d.ts +11 -0
  574. package/standalone/revogr-edit.js +11 -0
  575. package/standalone/revogr-edit.js.map +1 -0
  576. package/standalone/revogr-edit2.js +335 -0
  577. package/standalone/revogr-edit2.js.map +1 -0
  578. package/standalone/revogr-filter-panel.d.ts +11 -0
  579. package/standalone/revogr-filter-panel.js +310 -0
  580. package/standalone/revogr-filter-panel.js.map +1 -0
  581. package/standalone/revogr-focus.d.ts +11 -0
  582. package/standalone/revogr-focus.js +11 -0
  583. package/standalone/revogr-focus.js.map +1 -0
  584. package/standalone/revogr-focus2.js +106 -0
  585. package/standalone/revogr-focus2.js.map +1 -0
  586. package/standalone/revogr-header.d.ts +11 -0
  587. package/standalone/revogr-header.js +11 -0
  588. package/standalone/revogr-header.js.map +1 -0
  589. package/standalone/revogr-header2.js +667 -0
  590. package/standalone/revogr-header2.js.map +1 -0
  591. package/standalone/revogr-order-editor.d.ts +11 -0
  592. package/standalone/revogr-order-editor.js +11 -0
  593. package/standalone/revogr-order-editor.js.map +1 -0
  594. package/standalone/revogr-order-editor2.js +199 -0
  595. package/standalone/revogr-order-editor2.js.map +1 -0
  596. package/standalone/revogr-overlay-selection.d.ts +11 -0
  597. package/standalone/revogr-overlay-selection.js +11 -0
  598. package/standalone/revogr-overlay-selection.js.map +1 -0
  599. package/standalone/revogr-overlay-selection2.js +876 -0
  600. package/standalone/revogr-overlay-selection2.js.map +1 -0
  601. package/standalone/revogr-row-headers.d.ts +11 -0
  602. package/standalone/revogr-row-headers.js +11 -0
  603. package/standalone/revogr-row-headers.js.map +1 -0
  604. package/standalone/revogr-row-headers2.js +555 -0
  605. package/standalone/revogr-row-headers2.js.map +1 -0
  606. package/standalone/revogr-scroll-virtual.d.ts +11 -0
  607. package/standalone/revogr-scroll-virtual.js +11 -0
  608. package/standalone/revogr-scroll-virtual.js.map +1 -0
  609. package/standalone/revogr-scroll-virtual2.js +187 -0
  610. package/standalone/revogr-scroll-virtual2.js.map +1 -0
  611. package/standalone/revogr-temp-range.d.ts +11 -0
  612. package/standalone/revogr-temp-range.js +11 -0
  613. package/standalone/revogr-temp-range.js.map +1 -0
  614. package/standalone/revogr-temp-range2.js +90 -0
  615. package/standalone/revogr-temp-range2.js.map +1 -0
  616. package/standalone/revogr-viewport-scroll.d.ts +11 -0
  617. package/standalone/revogr-viewport-scroll.js +11 -0
  618. package/standalone/revogr-viewport-scroll.js.map +1 -0
  619. package/standalone/revogr-viewport-scroll2.js +336 -0
  620. package/standalone/revogr-viewport-scroll2.js.map +1 -0
  621. package/standalone/selection.utils.js +108 -0
  622. package/standalone/selection.utils.js.map +1 -0
  623. package/standalone/throttle.js +79 -0
  624. package/standalone/throttle.js.map +1 -0
  625. package/standalone/toNumber.js +144 -0
  626. package/standalone/toNumber.js.map +1 -0
  627. package/standalone/vnode-converter.js +45 -0
  628. package/standalone/vnode-converter.js.map +1 -0
  629. package/standalone/vnode-html.d.ts +11 -0
  630. package/standalone/vnode-html.js +11 -0
  631. package/standalone/vnode-html.js.map +1 -0
  632. package/custom-element/index.d.ts +0 -117
  633. package/custom-element/index.js +0 -28857
  634. package/dist/cjs/css-shim-e33df79c.js +0 -6
  635. package/dist/cjs/dom-c8b6d1a7.js +0 -75
  636. package/dist/cjs/filter.button-2396a488.js +0 -27
  637. package/dist/cjs/index-d3f67f2e.js +0 -1729
  638. package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28621
  639. package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -53
  640. package/dist/collection/components/button/button.js +0 -4
  641. package/dist/collection/components/data/cellRenderer.js +0 -19
  642. package/dist/collection/components/data/columnService.js +0 -243
  643. package/dist/collection/components/data/rowRenderer.js +0 -6
  644. package/dist/collection/components/header/headerCellRenderer.js +0 -19
  645. package/dist/collection/components/header/headerRenderer.js +0 -45
  646. package/dist/collection/components/order/orderRenderer.js +0 -50
  647. package/dist/collection/components/order/rowOrderService.js +0 -68
  648. package/dist/collection/components/overlay/clipboard.service.js +0 -39
  649. package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
  650. package/dist/collection/components/overlay/editors/text.js +0 -35
  651. package/dist/collection/components/overlay/revogr-edit.js +0 -163
  652. package/dist/collection/components/revoGrid/viewport.interfaces.js +0 -1
  653. package/dist/collection/components/revoGrid/viewport.js +0 -18
  654. package/dist/collection/components/revoGrid/viewport.section.js +0 -28
  655. package/dist/collection/components/rowHeaders/row-header-utils.js +0 -4
  656. package/dist/collection/plugins/autoSizeColumn.d.ts +0 -54
  657. package/dist/collection/plugins/autoSizeColumn.js +0 -230
  658. package/dist/collection/plugins/basePlugin.d.ts +0 -37
  659. package/dist/collection/plugins/basePlugin.js +0 -53
  660. package/dist/collection/plugins/export/csv.d.ts +0 -9
  661. package/dist/collection/plugins/export/export.plugin.d.ts +0 -24
  662. package/dist/collection/plugins/export/types.d.ts +0 -23
  663. package/dist/collection/plugins/filter/conditions/equal.d.ts +0 -4
  664. package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
  665. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
  666. package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +0 -3
  667. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
  668. package/dist/collection/plugins/filter/conditions/set.d.ts +0 -4
  669. package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +0 -3
  670. package/dist/collection/plugins/filter/conditions/string/contains.d.ts +0 -4
  671. package/dist/collection/plugins/filter/filter.button.d.ts +0 -10
  672. package/dist/collection/plugins/filter/filter.plugin.d.ts +0 -59
  673. package/dist/collection/plugins/filter/filter.pop.d.ts +0 -42
  674. package/dist/collection/plugins/filter/filter.service.d.ts +0 -20
  675. package/dist/collection/plugins/filter/filter.types.d.ts +0 -8
  676. package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
  677. package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
  678. package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
  679. package/dist/collection/plugins/groupingRow/grouping.const.d.ts +0 -9
  680. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
  681. package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
  682. package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
  683. package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +0 -19
  684. package/dist/collection/plugins/groupingRow/grouping.service.d.ts +0 -25
  685. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
  686. package/dist/collection/plugins/sorting/sorting.plugin.d.ts +0 -32
  687. package/dist/collection/plugins/sorting/sorting.sign.d.ts +0 -8
  688. package/dist/collection/plugins/stretchPlugin.d.ts +0 -29
  689. package/dist/collection/plugins/stretchPlugin.js +0 -90
  690. package/dist/collection/plugins/trimmed/trimmed.plugin.d.ts +0 -10
  691. package/dist/collection/plugins/trimmed/trimmed.plugin.js +0 -32
  692. package/dist/collection/services/localScrollService.js +0 -80
  693. package/dist/collection/store/viewPort/viewport.helpers.js +0 -180
  694. package/dist/collection/store/viewPort/viewport.store.js +0 -121
  695. package/dist/collection/themeManager/themeService.js +0 -43
  696. package/dist/collection/utils/closestPolifill.js +0 -18
  697. package/dist/collection/utils/generateAlphabetHeader.js +0 -20
  698. package/dist/collection/utils/keyCodes.js +0 -70
  699. package/dist/collection/utils/keyCodes.utils.js +0 -64
  700. package/dist/collection/utils/resizeObserver.js +0 -6
  701. package/dist/collection/utils/utils.js +0 -104
  702. package/dist/esm/css-shim-8d75038b.js +0 -4
  703. package/dist/esm/dom-1b195079.js +0 -73
  704. package/dist/esm/filter.button-53ebca66.js +0 -23
  705. package/dist/esm/index-42c84e7c.js +0 -1694
  706. package/dist/esm/polyfills/core-js.js +0 -11
  707. package/dist/esm/polyfills/css-shim.js +0 -1
  708. package/dist/esm/polyfills/dom.js +0 -79
  709. package/dist/esm/polyfills/index.js +0 -34
  710. package/dist/esm/polyfills/system.js +0 -6
  711. package/dist/esm/revo-grid_11.entry.js +0 -28607
  712. package/dist/esm/revogr-clipboard.entry.js +0 -49
  713. package/dist/esm-es5/css-shim-8d75038b.js +0 -1
  714. package/dist/esm-es5/dom-1b195079.js +0 -21
  715. package/dist/esm-es5/filter.button-53ebca66.js +0 -1
  716. package/dist/esm-es5/index-42c84e7c.js +0 -1
  717. package/dist/esm-es5/loader.js +0 -1
  718. package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
  719. package/dist/esm-es5/revo-grid.js +0 -1
  720. package/dist/esm-es5/revo-grid_11.entry.js +0 -1
  721. package/dist/esm-es5/revogr-clipboard.entry.js +0 -1
  722. package/dist/esm-es5/revogr-filter-panel.entry.js +0 -1
  723. package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
  724. package/dist/revo-grid/css-shim-8d75038b.js +0 -1
  725. package/dist/revo-grid/dom-1b195079.js +0 -19
  726. package/dist/revo-grid/dom-ee2dd1b3.system.js +0 -21
  727. package/dist/revo-grid/filter.button-1509c206.js +0 -1
  728. package/dist/revo-grid/filter.button-4bd87101.system.js +0 -1
  729. package/dist/revo-grid/index-a15e7527.system.js +0 -1
  730. package/dist/revo-grid/index-a7f99799.js +0 -1
  731. package/dist/revo-grid/index.system.js +0 -1
  732. package/dist/revo-grid/plugins/autoSizeColumn.d.ts +0 -54
  733. package/dist/revo-grid/plugins/basePlugin.d.ts +0 -37
  734. package/dist/revo-grid/plugins/export/csv.d.ts +0 -9
  735. package/dist/revo-grid/plugins/export/export.plugin.d.ts +0 -24
  736. package/dist/revo-grid/plugins/export/types.d.ts +0 -23
  737. package/dist/revo-grid/plugins/filter/conditions/equal.d.ts +0 -4
  738. package/dist/revo-grid/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
  739. package/dist/revo-grid/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
  740. package/dist/revo-grid/plugins/filter/conditions/number/lessThan.d.ts +0 -3
  741. package/dist/revo-grid/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
  742. package/dist/revo-grid/plugins/filter/conditions/set.d.ts +0 -4
  743. package/dist/revo-grid/plugins/filter/conditions/string/beginswith.d.ts +0 -3
  744. package/dist/revo-grid/plugins/filter/conditions/string/contains.d.ts +0 -4
  745. package/dist/revo-grid/plugins/filter/filter.button.d.ts +0 -10
  746. package/dist/revo-grid/plugins/filter/filter.plugin.d.ts +0 -59
  747. package/dist/revo-grid/plugins/filter/filter.pop.d.ts +0 -42
  748. package/dist/revo-grid/plugins/filter/filter.service.d.ts +0 -20
  749. package/dist/revo-grid/plugins/filter/filter.types.d.ts +0 -8
  750. package/dist/revo-grid/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
  751. package/dist/revo-grid/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
  752. package/dist/revo-grid/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
  753. package/dist/revo-grid/plugins/groupingRow/grouping.const.d.ts +0 -9
  754. package/dist/revo-grid/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
  755. package/dist/revo-grid/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
  756. package/dist/revo-grid/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
  757. package/dist/revo-grid/plugins/groupingRow/grouping.row.types.d.ts +0 -19
  758. package/dist/revo-grid/plugins/groupingRow/grouping.service.d.ts +0 -25
  759. package/dist/revo-grid/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
  760. package/dist/revo-grid/plugins/sorting/sorting.plugin.d.ts +0 -32
  761. package/dist/revo-grid/plugins/sorting/sorting.sign.d.ts +0 -8
  762. package/dist/revo-grid/plugins/stretchPlugin.d.ts +0 -29
  763. package/dist/revo-grid/plugins/trimmed/trimmed.plugin.d.ts +0 -10
  764. package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
  765. package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
  766. package/dist/revo-grid/revo-grid.js +0 -132
  767. package/dist/revo-grid/revo-grid.system.js +0 -1
  768. package/dist/revo-grid/revo-grid_11.entry.js +0 -1
  769. package/dist/revo-grid/revo-grid_11.system.entry.js +0 -1
  770. package/dist/revo-grid/revogr-clipboard.entry.js +0 -1
  771. package/dist/revo-grid/revogr-clipboard.system.entry.js +0 -1
  772. package/dist/revo-grid/revogr-filter-panel.system.entry.js +0 -1
  773. package/dist/types/components/button/button.d.ts +0 -5
  774. package/dist/types/components/data/cellRenderer.d.ts +0 -8
  775. package/dist/types/components/data/columnService.d.ts +0 -42
  776. package/dist/types/components/header/headerCellRenderer.d.ts +0 -8
  777. package/dist/types/components/header/headerRenderer.d.ts +0 -15
  778. package/dist/types/components/order/orderRenderer.d.ts +0 -28
  779. package/dist/types/components/order/rowOrderService.d.ts +0 -27
  780. package/dist/types/components/overlay/clipboard.service.d.ts +0 -20
  781. package/dist/types/components/overlay/editors/text.d.ts +0 -13
  782. package/dist/types/components/overlay/revogr-edit.d.ts +0 -19
  783. package/dist/types/components/revoGrid/viewport.d.ts +0 -19
  784. package/dist/types/components/revoGrid/viewport.interfaces.d.ts +0 -66
  785. package/dist/types/components/revoGrid/viewport.section.d.ts +0 -24
  786. package/dist/types/components/rowHeaders/row-header-utils.d.ts +0 -2
  787. package/dist/types/interfaces.d.ts +0 -437
  788. package/dist/types/plugins/autoSizeColumn.d.ts +0 -54
  789. package/dist/types/plugins/basePlugin.d.ts +0 -37
  790. package/dist/types/plugins/stretchPlugin.d.ts +0 -29
  791. package/dist/types/plugins/trimmed/trimmed.plugin.d.ts +0 -10
  792. package/dist/types/services/localScrollService.d.ts +0 -28
  793. package/dist/types/store/viewPort/viewport.helpers.d.ts +0 -30
  794. package/dist/types/store/viewPort/viewport.store.d.ts +0 -18
  795. package/dist/types/themeManager/themeService.d.ts +0 -13
  796. package/dist/types/utils/closestPolifill.d.ts +0 -0
  797. package/dist/types/utils/keyCodes.d.ts +0 -68
  798. package/loader/cdn.js +0 -3
  799. package/loader/index.cjs.js +0 -3
  800. package/loader/index.es2017.js +0 -3
  801. package/loader/index.js +0 -4
  802. /package/dist/types/components/{overlay/editors → editors}/edit.utils.d.ts +0 -0
  803. /package/dist/{esm-es5/index.js → types/utils/closest.polifill.d.ts} +0 -0
  804. /package/dist/types/utils/{generateAlphabetHeader.d.ts → header.utils.d.ts} +0 -0
  805. /package/dist/types/utils/{resizeObserver.d.ts → resize-observer.polifill.d.ts} +0 -0
@@ -0,0 +1,4218 @@
1
+ /*!
2
+ * Built by Revolist OU ❤️
3
+ */
4
+ 'use strict';
5
+
6
+ const index = require('./index-84e32c2a.js');
7
+ const toNumber$1 = require('./toNumber-838e6ff5.js');
8
+
9
+ /**
10
+ * All items
11
+ * Used as proxy for sorting
12
+ * Keep order but do not modify final source
13
+ */
14
+ const proxyPlugin = (store) => ({
15
+ set(k, newVal) {
16
+ if (!isProxy(k)) {
17
+ return;
18
+ }
19
+ /**
20
+ * Getting existing collection of items
21
+ * Mark indexes as visible
22
+ */
23
+ const oldItems = store.get('items').reduce((r, v) => {
24
+ r[v] = true;
25
+ return r;
26
+ }, {});
27
+ /**
28
+ * Check if new values where present in items
29
+ * Filter item collection according presense
30
+ */
31
+ const newItems = newVal.reduce((r, i) => {
32
+ if (oldItems[i]) {
33
+ r.push(i);
34
+ }
35
+ return r;
36
+ }, []);
37
+ store.set('items', newItems);
38
+ },
39
+ });
40
+ function isProxy(k) {
41
+ return k === 'proxyItems';
42
+ }
43
+
44
+ const appendToMap = (map, propName, value) => {
45
+ const items = map.get(propName);
46
+ if (!items) {
47
+ map.set(propName, [value]);
48
+ }
49
+ else if (!items.includes(value)) {
50
+ items.push(value);
51
+ }
52
+ };
53
+ const debounce = (fn, ms) => {
54
+ let timeoutId;
55
+ return (...args) => {
56
+ if (timeoutId) {
57
+ clearTimeout(timeoutId);
58
+ }
59
+ timeoutId = setTimeout(() => {
60
+ timeoutId = 0;
61
+ fn(...args);
62
+ }, ms);
63
+ };
64
+ };
65
+
66
+ /**
67
+ * Check if a possible element isConnected.
68
+ * The property might not be there, so we check for it.
69
+ *
70
+ * We want it to return true if isConnected is not a property,
71
+ * otherwise we would remove these elements and would not update.
72
+ *
73
+ * Better leak in Edge than to be useless.
74
+ */
75
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
76
+ const cleanupElements = debounce((map) => {
77
+ for (let key of map.keys()) {
78
+ map.set(key, map.get(key).filter(isConnected));
79
+ }
80
+ }, 2000);
81
+ const stencilSubscription = () => {
82
+ if (typeof index.getRenderingRef !== 'function') {
83
+ // If we are not in a stencil project, we do nothing.
84
+ // This function is not really exported by @stencil/core.
85
+ return {};
86
+ }
87
+ const elmsToUpdate = new Map();
88
+ return {
89
+ dispose: () => elmsToUpdate.clear(),
90
+ get: (propName) => {
91
+ const elm = index.getRenderingRef();
92
+ if (elm) {
93
+ appendToMap(elmsToUpdate, propName, elm);
94
+ }
95
+ },
96
+ set: (propName) => {
97
+ const elements = elmsToUpdate.get(propName);
98
+ if (elements) {
99
+ elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
100
+ }
101
+ cleanupElements(elmsToUpdate);
102
+ },
103
+ reset: () => {
104
+ elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
105
+ cleanupElements(elmsToUpdate);
106
+ },
107
+ };
108
+ };
109
+
110
+ const unwrap = (val) => (typeof val === 'function' ? val() : val);
111
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
112
+ const unwrappedState = unwrap(defaultState);
113
+ let states = new Map(Object.entries(unwrappedState !== null && unwrappedState !== void 0 ? unwrappedState : {}));
114
+ const handlers = {
115
+ dispose: [],
116
+ get: [],
117
+ set: [],
118
+ reset: [],
119
+ };
120
+ const reset = () => {
121
+ var _a;
122
+ // When resetting the state, the default state may be a function - unwrap it to invoke it.
123
+ // otherwise, the state won't be properly reset
124
+ states = new Map(Object.entries((_a = unwrap(defaultState)) !== null && _a !== void 0 ? _a : {}));
125
+ handlers.reset.forEach((cb) => cb());
126
+ };
127
+ const dispose = () => {
128
+ // Call first dispose as resetting the state would
129
+ // cause less updates ;)
130
+ handlers.dispose.forEach((cb) => cb());
131
+ reset();
132
+ };
133
+ const get = (propName) => {
134
+ handlers.get.forEach((cb) => cb(propName));
135
+ return states.get(propName);
136
+ };
137
+ const set = (propName, value) => {
138
+ const oldValue = states.get(propName);
139
+ if (shouldUpdate(value, oldValue, propName)) {
140
+ states.set(propName, value);
141
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
142
+ }
143
+ };
144
+ const state = (typeof Proxy === 'undefined'
145
+ ? {}
146
+ : new Proxy(unwrappedState, {
147
+ get(_, propName) {
148
+ return get(propName);
149
+ },
150
+ ownKeys(_) {
151
+ return Array.from(states.keys());
152
+ },
153
+ getOwnPropertyDescriptor() {
154
+ return {
155
+ enumerable: true,
156
+ configurable: true,
157
+ };
158
+ },
159
+ has(_, propName) {
160
+ return states.has(propName);
161
+ },
162
+ set(_, propName, value) {
163
+ set(propName, value);
164
+ return true;
165
+ },
166
+ }));
167
+ const on = (eventName, callback) => {
168
+ handlers[eventName].push(callback);
169
+ return () => {
170
+ removeFromArray(handlers[eventName], callback);
171
+ };
172
+ };
173
+ const onChange = (propName, cb) => {
174
+ const unSet = on('set', (key, newValue) => {
175
+ if (key === propName) {
176
+ cb(newValue);
177
+ }
178
+ });
179
+ // We need to unwrap the defaultState because it might be a function.
180
+ // Otherwise we might not be sending the right reset value.
181
+ const unReset = on('reset', () => cb(unwrap(defaultState)[propName]));
182
+ return () => {
183
+ unSet();
184
+ unReset();
185
+ };
186
+ };
187
+ const use = (...subscriptions) => {
188
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
189
+ if (subscription.set) {
190
+ unsubs.push(on('set', subscription.set));
191
+ }
192
+ if (subscription.get) {
193
+ unsubs.push(on('get', subscription.get));
194
+ }
195
+ if (subscription.reset) {
196
+ unsubs.push(on('reset', subscription.reset));
197
+ }
198
+ if (subscription.dispose) {
199
+ unsubs.push(on('dispose', subscription.dispose));
200
+ }
201
+ return unsubs;
202
+ }, []);
203
+ return () => unsubs.forEach((unsub) => unsub());
204
+ };
205
+ const forceUpdate = (key) => {
206
+ const oldValue = states.get(key);
207
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
208
+ };
209
+ return {
210
+ state,
211
+ get,
212
+ set,
213
+ on,
214
+ onChange,
215
+ use,
216
+ dispose,
217
+ reset,
218
+ forceUpdate,
219
+ };
220
+ };
221
+ const removeFromArray = (array, item) => {
222
+ const index = array.indexOf(item);
223
+ if (index >= 0) {
224
+ array[index] = array[array.length - 1];
225
+ array.length--;
226
+ }
227
+ };
228
+
229
+ const createStore = (defaultState, shouldUpdate) => {
230
+ const map = createObservableMap(defaultState, shouldUpdate);
231
+ map.use(stencilSubscription());
232
+ return map;
233
+ };
234
+
235
+ /**
236
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
237
+ * support for iteratee shorthands.
238
+ *
239
+ * @private
240
+ * @param {Array} array The array to inspect.
241
+ * @param {Function} predicate The function invoked per iteration.
242
+ * @param {number} fromIndex The index to search from.
243
+ * @param {boolean} [fromRight] Specify iterating from right to left.
244
+ * @returns {number} Returns the index of the matched value, else `-1`.
245
+ */
246
+
247
+ function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
248
+ var length = array.length,
249
+ index = fromIndex + (fromRight ? 1 : -1);
250
+
251
+ while ((fromRight ? index-- : ++index < length)) {
252
+ if (predicate(array[index], index, array)) {
253
+ return index;
254
+ }
255
+ }
256
+ return -1;
257
+ }
258
+
259
+ var _baseFindIndex = baseFindIndex$1;
260
+
261
+ /**
262
+ * Removes all key-value entries from the list cache.
263
+ *
264
+ * @private
265
+ * @name clear
266
+ * @memberOf ListCache
267
+ */
268
+
269
+ function listCacheClear$1() {
270
+ this.__data__ = [];
271
+ this.size = 0;
272
+ }
273
+
274
+ var _listCacheClear = listCacheClear$1;
275
+
276
+ /**
277
+ * Performs a
278
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
279
+ * comparison between two values to determine if they are equivalent.
280
+ *
281
+ * @static
282
+ * @memberOf _
283
+ * @since 4.0.0
284
+ * @category Lang
285
+ * @param {*} value The value to compare.
286
+ * @param {*} other The other value to compare.
287
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
288
+ * @example
289
+ *
290
+ * var object = { 'a': 1 };
291
+ * var other = { 'a': 1 };
292
+ *
293
+ * _.eq(object, object);
294
+ * // => true
295
+ *
296
+ * _.eq(object, other);
297
+ * // => false
298
+ *
299
+ * _.eq('a', 'a');
300
+ * // => true
301
+ *
302
+ * _.eq('a', Object('a'));
303
+ * // => false
304
+ *
305
+ * _.eq(NaN, NaN);
306
+ * // => true
307
+ */
308
+
309
+ function eq$3(value, other) {
310
+ return value === other || (value !== value && other !== other);
311
+ }
312
+
313
+ var eq_1 = eq$3;
314
+
315
+ var eq$2 = eq_1;
316
+
317
+ /**
318
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
319
+ *
320
+ * @private
321
+ * @param {Array} array The array to inspect.
322
+ * @param {*} key The key to search for.
323
+ * @returns {number} Returns the index of the matched value, else `-1`.
324
+ */
325
+ function assocIndexOf$4(array, key) {
326
+ var length = array.length;
327
+ while (length--) {
328
+ if (eq$2(array[length][0], key)) {
329
+ return length;
330
+ }
331
+ }
332
+ return -1;
333
+ }
334
+
335
+ var _assocIndexOf = assocIndexOf$4;
336
+
337
+ var assocIndexOf$3 = _assocIndexOf;
338
+
339
+ /** Used for built-in method references. */
340
+ var arrayProto = Array.prototype;
341
+
342
+ /** Built-in value references. */
343
+ var splice = arrayProto.splice;
344
+
345
+ /**
346
+ * Removes `key` and its value from the list cache.
347
+ *
348
+ * @private
349
+ * @name delete
350
+ * @memberOf ListCache
351
+ * @param {string} key The key of the value to remove.
352
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
353
+ */
354
+ function listCacheDelete$1(key) {
355
+ var data = this.__data__,
356
+ index = assocIndexOf$3(data, key);
357
+
358
+ if (index < 0) {
359
+ return false;
360
+ }
361
+ var lastIndex = data.length - 1;
362
+ if (index == lastIndex) {
363
+ data.pop();
364
+ } else {
365
+ splice.call(data, index, 1);
366
+ }
367
+ --this.size;
368
+ return true;
369
+ }
370
+
371
+ var _listCacheDelete = listCacheDelete$1;
372
+
373
+ var assocIndexOf$2 = _assocIndexOf;
374
+
375
+ /**
376
+ * Gets the list cache value for `key`.
377
+ *
378
+ * @private
379
+ * @name get
380
+ * @memberOf ListCache
381
+ * @param {string} key The key of the value to get.
382
+ * @returns {*} Returns the entry value.
383
+ */
384
+ function listCacheGet$1(key) {
385
+ var data = this.__data__,
386
+ index = assocIndexOf$2(data, key);
387
+
388
+ return index < 0 ? undefined : data[index][1];
389
+ }
390
+
391
+ var _listCacheGet = listCacheGet$1;
392
+
393
+ var assocIndexOf$1 = _assocIndexOf;
394
+
395
+ /**
396
+ * Checks if a list cache value for `key` exists.
397
+ *
398
+ * @private
399
+ * @name has
400
+ * @memberOf ListCache
401
+ * @param {string} key The key of the entry to check.
402
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
403
+ */
404
+ function listCacheHas$1(key) {
405
+ return assocIndexOf$1(this.__data__, key) > -1;
406
+ }
407
+
408
+ var _listCacheHas = listCacheHas$1;
409
+
410
+ var assocIndexOf = _assocIndexOf;
411
+
412
+ /**
413
+ * Sets the list cache `key` to `value`.
414
+ *
415
+ * @private
416
+ * @name set
417
+ * @memberOf ListCache
418
+ * @param {string} key The key of the value to set.
419
+ * @param {*} value The value to set.
420
+ * @returns {Object} Returns the list cache instance.
421
+ */
422
+ function listCacheSet$1(key, value) {
423
+ var data = this.__data__,
424
+ index = assocIndexOf(data, key);
425
+
426
+ if (index < 0) {
427
+ ++this.size;
428
+ data.push([key, value]);
429
+ } else {
430
+ data[index][1] = value;
431
+ }
432
+ return this;
433
+ }
434
+
435
+ var _listCacheSet = listCacheSet$1;
436
+
437
+ var listCacheClear = _listCacheClear,
438
+ listCacheDelete = _listCacheDelete,
439
+ listCacheGet = _listCacheGet,
440
+ listCacheHas = _listCacheHas,
441
+ listCacheSet = _listCacheSet;
442
+
443
+ /**
444
+ * Creates an list cache object.
445
+ *
446
+ * @private
447
+ * @constructor
448
+ * @param {Array} [entries] The key-value pairs to cache.
449
+ */
450
+ function ListCache$4(entries) {
451
+ var index = -1,
452
+ length = entries == null ? 0 : entries.length;
453
+
454
+ this.clear();
455
+ while (++index < length) {
456
+ var entry = entries[index];
457
+ this.set(entry[0], entry[1]);
458
+ }
459
+ }
460
+
461
+ // Add methods to `ListCache`.
462
+ ListCache$4.prototype.clear = listCacheClear;
463
+ ListCache$4.prototype['delete'] = listCacheDelete;
464
+ ListCache$4.prototype.get = listCacheGet;
465
+ ListCache$4.prototype.has = listCacheHas;
466
+ ListCache$4.prototype.set = listCacheSet;
467
+
468
+ var _ListCache = ListCache$4;
469
+
470
+ var ListCache$3 = _ListCache;
471
+
472
+ /**
473
+ * Removes all key-value entries from the stack.
474
+ *
475
+ * @private
476
+ * @name clear
477
+ * @memberOf Stack
478
+ */
479
+ function stackClear$1() {
480
+ this.__data__ = new ListCache$3;
481
+ this.size = 0;
482
+ }
483
+
484
+ var _stackClear = stackClear$1;
485
+
486
+ /**
487
+ * Removes `key` and its value from the stack.
488
+ *
489
+ * @private
490
+ * @name delete
491
+ * @memberOf Stack
492
+ * @param {string} key The key of the value to remove.
493
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
494
+ */
495
+
496
+ function stackDelete$1(key) {
497
+ var data = this.__data__,
498
+ result = data['delete'](key);
499
+
500
+ this.size = data.size;
501
+ return result;
502
+ }
503
+
504
+ var _stackDelete = stackDelete$1;
505
+
506
+ /**
507
+ * Gets the stack value for `key`.
508
+ *
509
+ * @private
510
+ * @name get
511
+ * @memberOf Stack
512
+ * @param {string} key The key of the value to get.
513
+ * @returns {*} Returns the entry value.
514
+ */
515
+
516
+ function stackGet$1(key) {
517
+ return this.__data__.get(key);
518
+ }
519
+
520
+ var _stackGet = stackGet$1;
521
+
522
+ /**
523
+ * Checks if a stack value for `key` exists.
524
+ *
525
+ * @private
526
+ * @name has
527
+ * @memberOf Stack
528
+ * @param {string} key The key of the entry to check.
529
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
530
+ */
531
+
532
+ function stackHas$1(key) {
533
+ return this.__data__.has(key);
534
+ }
535
+
536
+ var _stackHas = stackHas$1;
537
+
538
+ var baseGetTag$3 = toNumber$1._baseGetTag,
539
+ isObject$3 = toNumber$1.isObject_1;
540
+
541
+ /** `Object#toString` result references. */
542
+ var asyncTag = '[object AsyncFunction]',
543
+ funcTag$1 = '[object Function]',
544
+ genTag = '[object GeneratorFunction]',
545
+ proxyTag = '[object Proxy]';
546
+
547
+ /**
548
+ * Checks if `value` is classified as a `Function` object.
549
+ *
550
+ * @static
551
+ * @memberOf _
552
+ * @since 0.1.0
553
+ * @category Lang
554
+ * @param {*} value The value to check.
555
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
556
+ * @example
557
+ *
558
+ * _.isFunction(_);
559
+ * // => true
560
+ *
561
+ * _.isFunction(/abc/);
562
+ * // => false
563
+ */
564
+ function isFunction$2(value) {
565
+ if (!isObject$3(value)) {
566
+ return false;
567
+ }
568
+ // The use of `Object#toString` avoids issues with the `typeof` operator
569
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
570
+ var tag = baseGetTag$3(value);
571
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
572
+ }
573
+
574
+ var isFunction_1 = isFunction$2;
575
+
576
+ var root$6 = toNumber$1._root;
577
+
578
+ /** Used to detect overreaching core-js shims. */
579
+ var coreJsData$1 = root$6['__core-js_shared__'];
580
+
581
+ var _coreJsData = coreJsData$1;
582
+
583
+ var coreJsData = _coreJsData;
584
+
585
+ /** Used to detect methods masquerading as native. */
586
+ var maskSrcKey = (function() {
587
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
588
+ return uid ? ('Symbol(src)_1.' + uid) : '';
589
+ }());
590
+
591
+ /**
592
+ * Checks if `func` has its source masked.
593
+ *
594
+ * @private
595
+ * @param {Function} func The function to check.
596
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
597
+ */
598
+ function isMasked$1(func) {
599
+ return !!maskSrcKey && (maskSrcKey in func);
600
+ }
601
+
602
+ var _isMasked = isMasked$1;
603
+
604
+ /** Used for built-in method references. */
605
+
606
+ var funcProto$1 = Function.prototype;
607
+
608
+ /** Used to resolve the decompiled source of functions. */
609
+ var funcToString$1 = funcProto$1.toString;
610
+
611
+ /**
612
+ * Converts `func` to its source code.
613
+ *
614
+ * @private
615
+ * @param {Function} func The function to convert.
616
+ * @returns {string} Returns the source code.
617
+ */
618
+ function toSource$2(func) {
619
+ if (func != null) {
620
+ try {
621
+ return funcToString$1.call(func);
622
+ } catch (e) {}
623
+ try {
624
+ return (func + '');
625
+ } catch (e) {}
626
+ }
627
+ return '';
628
+ }
629
+
630
+ var _toSource = toSource$2;
631
+
632
+ var isFunction$1 = isFunction_1,
633
+ isMasked = _isMasked,
634
+ isObject$2 = toNumber$1.isObject_1,
635
+ toSource$1 = _toSource;
636
+
637
+ /**
638
+ * Used to match `RegExp`
639
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
640
+ */
641
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
642
+
643
+ /** Used to detect host constructors (Safari). */
644
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
645
+
646
+ /** Used for built-in method references. */
647
+ var funcProto = Function.prototype,
648
+ objectProto$9 = Object.prototype;
649
+
650
+ /** Used to resolve the decompiled source of functions. */
651
+ var funcToString = funcProto.toString;
652
+
653
+ /** Used to check objects for own properties. */
654
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
655
+
656
+ /** Used to detect if a method is native. */
657
+ var reIsNative = RegExp('^' +
658
+ funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
659
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
660
+ );
661
+
662
+ /**
663
+ * The base implementation of `_.isNative` without bad shim checks.
664
+ *
665
+ * @private
666
+ * @param {*} value The value to check.
667
+ * @returns {boolean} Returns `true` if `value` is a native function,
668
+ * else `false`.
669
+ */
670
+ function baseIsNative$1(value) {
671
+ if (!isObject$2(value) || isMasked(value)) {
672
+ return false;
673
+ }
674
+ var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
675
+ return pattern.test(toSource$1(value));
676
+ }
677
+
678
+ var _baseIsNative = baseIsNative$1;
679
+
680
+ /**
681
+ * Gets the value at `key` of `object`.
682
+ *
683
+ * @private
684
+ * @param {Object} [object] The object to query.
685
+ * @param {string} key The key of the property to get.
686
+ * @returns {*} Returns the property value.
687
+ */
688
+
689
+ function getValue$1(object, key) {
690
+ return object == null ? undefined : object[key];
691
+ }
692
+
693
+ var _getValue = getValue$1;
694
+
695
+ var baseIsNative = _baseIsNative,
696
+ getValue = _getValue;
697
+
698
+ /**
699
+ * Gets the native function at `key` of `object`.
700
+ *
701
+ * @private
702
+ * @param {Object} object The object to query.
703
+ * @param {string} key The key of the method to get.
704
+ * @returns {*} Returns the function if it's native, else `undefined`.
705
+ */
706
+ function getNative$6(object, key) {
707
+ var value = getValue(object, key);
708
+ return baseIsNative(value) ? value : undefined;
709
+ }
710
+
711
+ var _getNative = getNative$6;
712
+
713
+ var getNative$5 = _getNative,
714
+ root$5 = toNumber$1._root;
715
+
716
+ /* Built-in method references that are verified to be native. */
717
+ var Map$4 = getNative$5(root$5, 'Map');
718
+
719
+ var _Map = Map$4;
720
+
721
+ var getNative$4 = _getNative;
722
+
723
+ /* Built-in method references that are verified to be native. */
724
+ var nativeCreate$4 = getNative$4(Object, 'create');
725
+
726
+ var _nativeCreate = nativeCreate$4;
727
+
728
+ var nativeCreate$3 = _nativeCreate;
729
+
730
+ /**
731
+ * Removes all key-value entries from the hash.
732
+ *
733
+ * @private
734
+ * @name clear
735
+ * @memberOf Hash
736
+ */
737
+ function hashClear$1() {
738
+ this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
739
+ this.size = 0;
740
+ }
741
+
742
+ var _hashClear = hashClear$1;
743
+
744
+ /**
745
+ * Removes `key` and its value from the hash.
746
+ *
747
+ * @private
748
+ * @name delete
749
+ * @memberOf Hash
750
+ * @param {Object} hash The hash to modify.
751
+ * @param {string} key The key of the value to remove.
752
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
753
+ */
754
+
755
+ function hashDelete$1(key) {
756
+ var result = this.has(key) && delete this.__data__[key];
757
+ this.size -= result ? 1 : 0;
758
+ return result;
759
+ }
760
+
761
+ var _hashDelete = hashDelete$1;
762
+
763
+ var nativeCreate$2 = _nativeCreate;
764
+
765
+ /** Used to stand-in for `undefined` hash values. */
766
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
767
+
768
+ /** Used for built-in method references. */
769
+ var objectProto$8 = Object.prototype;
770
+
771
+ /** Used to check objects for own properties. */
772
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
773
+
774
+ /**
775
+ * Gets the hash value for `key`.
776
+ *
777
+ * @private
778
+ * @name get
779
+ * @memberOf Hash
780
+ * @param {string} key The key of the value to get.
781
+ * @returns {*} Returns the entry value.
782
+ */
783
+ function hashGet$1(key) {
784
+ var data = this.__data__;
785
+ if (nativeCreate$2) {
786
+ var result = data[key];
787
+ return result === HASH_UNDEFINED$2 ? undefined : result;
788
+ }
789
+ return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
790
+ }
791
+
792
+ var _hashGet = hashGet$1;
793
+
794
+ var nativeCreate$1 = _nativeCreate;
795
+
796
+ /** Used for built-in method references. */
797
+ var objectProto$7 = Object.prototype;
798
+
799
+ /** Used to check objects for own properties. */
800
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
801
+
802
+ /**
803
+ * Checks if a hash value for `key` exists.
804
+ *
805
+ * @private
806
+ * @name has
807
+ * @memberOf Hash
808
+ * @param {string} key The key of the entry to check.
809
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
810
+ */
811
+ function hashHas$1(key) {
812
+ var data = this.__data__;
813
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
814
+ }
815
+
816
+ var _hashHas = hashHas$1;
817
+
818
+ var nativeCreate = _nativeCreate;
819
+
820
+ /** Used to stand-in for `undefined` hash values. */
821
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
822
+
823
+ /**
824
+ * Sets the hash `key` to `value`.
825
+ *
826
+ * @private
827
+ * @name set
828
+ * @memberOf Hash
829
+ * @param {string} key The key of the value to set.
830
+ * @param {*} value The value to set.
831
+ * @returns {Object} Returns the hash instance.
832
+ */
833
+ function hashSet$1(key, value) {
834
+ var data = this.__data__;
835
+ this.size += this.has(key) ? 0 : 1;
836
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
837
+ return this;
838
+ }
839
+
840
+ var _hashSet = hashSet$1;
841
+
842
+ var hashClear = _hashClear,
843
+ hashDelete = _hashDelete,
844
+ hashGet = _hashGet,
845
+ hashHas = _hashHas,
846
+ hashSet = _hashSet;
847
+
848
+ /**
849
+ * Creates a hash object.
850
+ *
851
+ * @private
852
+ * @constructor
853
+ * @param {Array} [entries] The key-value pairs to cache.
854
+ */
855
+ function Hash$1(entries) {
856
+ var index = -1,
857
+ length = entries == null ? 0 : entries.length;
858
+
859
+ this.clear();
860
+ while (++index < length) {
861
+ var entry = entries[index];
862
+ this.set(entry[0], entry[1]);
863
+ }
864
+ }
865
+
866
+ // Add methods to `Hash`.
867
+ Hash$1.prototype.clear = hashClear;
868
+ Hash$1.prototype['delete'] = hashDelete;
869
+ Hash$1.prototype.get = hashGet;
870
+ Hash$1.prototype.has = hashHas;
871
+ Hash$1.prototype.set = hashSet;
872
+
873
+ var _Hash = Hash$1;
874
+
875
+ var Hash = _Hash,
876
+ ListCache$2 = _ListCache,
877
+ Map$3 = _Map;
878
+
879
+ /**
880
+ * Removes all key-value entries from the map.
881
+ *
882
+ * @private
883
+ * @name clear
884
+ * @memberOf MapCache
885
+ */
886
+ function mapCacheClear$1() {
887
+ this.size = 0;
888
+ this.__data__ = {
889
+ 'hash': new Hash,
890
+ 'map': new (Map$3 || ListCache$2),
891
+ 'string': new Hash
892
+ };
893
+ }
894
+
895
+ var _mapCacheClear = mapCacheClear$1;
896
+
897
+ /**
898
+ * Checks if `value` is suitable for use as unique object key.
899
+ *
900
+ * @private
901
+ * @param {*} value The value to check.
902
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
903
+ */
904
+
905
+ function isKeyable$1(value) {
906
+ var type = typeof value;
907
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
908
+ ? (value !== '__proto__')
909
+ : (value === null);
910
+ }
911
+
912
+ var _isKeyable = isKeyable$1;
913
+
914
+ var isKeyable = _isKeyable;
915
+
916
+ /**
917
+ * Gets the data for `map`.
918
+ *
919
+ * @private
920
+ * @param {Object} map The map to query.
921
+ * @param {string} key The reference key.
922
+ * @returns {*} Returns the map data.
923
+ */
924
+ function getMapData$4(map, key) {
925
+ var data = map.__data__;
926
+ return isKeyable(key)
927
+ ? data[typeof key == 'string' ? 'string' : 'hash']
928
+ : data.map;
929
+ }
930
+
931
+ var _getMapData = getMapData$4;
932
+
933
+ var getMapData$3 = _getMapData;
934
+
935
+ /**
936
+ * Removes `key` and its value from the map.
937
+ *
938
+ * @private
939
+ * @name delete
940
+ * @memberOf MapCache
941
+ * @param {string} key The key of the value to remove.
942
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
943
+ */
944
+ function mapCacheDelete$1(key) {
945
+ var result = getMapData$3(this, key)['delete'](key);
946
+ this.size -= result ? 1 : 0;
947
+ return result;
948
+ }
949
+
950
+ var _mapCacheDelete = mapCacheDelete$1;
951
+
952
+ var getMapData$2 = _getMapData;
953
+
954
+ /**
955
+ * Gets the map value for `key`.
956
+ *
957
+ * @private
958
+ * @name get
959
+ * @memberOf MapCache
960
+ * @param {string} key The key of the value to get.
961
+ * @returns {*} Returns the entry value.
962
+ */
963
+ function mapCacheGet$1(key) {
964
+ return getMapData$2(this, key).get(key);
965
+ }
966
+
967
+ var _mapCacheGet = mapCacheGet$1;
968
+
969
+ var getMapData$1 = _getMapData;
970
+
971
+ /**
972
+ * Checks if a map value for `key` exists.
973
+ *
974
+ * @private
975
+ * @name has
976
+ * @memberOf MapCache
977
+ * @param {string} key The key of the entry to check.
978
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
979
+ */
980
+ function mapCacheHas$1(key) {
981
+ return getMapData$1(this, key).has(key);
982
+ }
983
+
984
+ var _mapCacheHas = mapCacheHas$1;
985
+
986
+ var getMapData = _getMapData;
987
+
988
+ /**
989
+ * Sets the map `key` to `value`.
990
+ *
991
+ * @private
992
+ * @name set
993
+ * @memberOf MapCache
994
+ * @param {string} key The key of the value to set.
995
+ * @param {*} value The value to set.
996
+ * @returns {Object} Returns the map cache instance.
997
+ */
998
+ function mapCacheSet$1(key, value) {
999
+ var data = getMapData(this, key),
1000
+ size = data.size;
1001
+
1002
+ data.set(key, value);
1003
+ this.size += data.size == size ? 0 : 1;
1004
+ return this;
1005
+ }
1006
+
1007
+ var _mapCacheSet = mapCacheSet$1;
1008
+
1009
+ var mapCacheClear = _mapCacheClear,
1010
+ mapCacheDelete = _mapCacheDelete,
1011
+ mapCacheGet = _mapCacheGet,
1012
+ mapCacheHas = _mapCacheHas,
1013
+ mapCacheSet = _mapCacheSet;
1014
+
1015
+ /**
1016
+ * Creates a map cache object to store key-value pairs.
1017
+ *
1018
+ * @private
1019
+ * @constructor
1020
+ * @param {Array} [entries] The key-value pairs to cache.
1021
+ */
1022
+ function MapCache$3(entries) {
1023
+ var index = -1,
1024
+ length = entries == null ? 0 : entries.length;
1025
+
1026
+ this.clear();
1027
+ while (++index < length) {
1028
+ var entry = entries[index];
1029
+ this.set(entry[0], entry[1]);
1030
+ }
1031
+ }
1032
+
1033
+ // Add methods to `MapCache`.
1034
+ MapCache$3.prototype.clear = mapCacheClear;
1035
+ MapCache$3.prototype['delete'] = mapCacheDelete;
1036
+ MapCache$3.prototype.get = mapCacheGet;
1037
+ MapCache$3.prototype.has = mapCacheHas;
1038
+ MapCache$3.prototype.set = mapCacheSet;
1039
+
1040
+ var _MapCache = MapCache$3;
1041
+
1042
+ var ListCache$1 = _ListCache,
1043
+ Map$2 = _Map,
1044
+ MapCache$2 = _MapCache;
1045
+
1046
+ /** Used as the size to enable large array optimizations. */
1047
+ var LARGE_ARRAY_SIZE = 200;
1048
+
1049
+ /**
1050
+ * Sets the stack `key` to `value`.
1051
+ *
1052
+ * @private
1053
+ * @name set
1054
+ * @memberOf Stack
1055
+ * @param {string} key The key of the value to set.
1056
+ * @param {*} value The value to set.
1057
+ * @returns {Object} Returns the stack cache instance.
1058
+ */
1059
+ function stackSet$1(key, value) {
1060
+ var data = this.__data__;
1061
+ if (data instanceof ListCache$1) {
1062
+ var pairs = data.__data__;
1063
+ if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
1064
+ pairs.push([key, value]);
1065
+ this.size = ++data.size;
1066
+ return this;
1067
+ }
1068
+ data = this.__data__ = new MapCache$2(pairs);
1069
+ }
1070
+ data.set(key, value);
1071
+ this.size = data.size;
1072
+ return this;
1073
+ }
1074
+
1075
+ var _stackSet = stackSet$1;
1076
+
1077
+ var ListCache = _ListCache,
1078
+ stackClear = _stackClear,
1079
+ stackDelete = _stackDelete,
1080
+ stackGet = _stackGet,
1081
+ stackHas = _stackHas,
1082
+ stackSet = _stackSet;
1083
+
1084
+ /**
1085
+ * Creates a stack cache object to store key-value pairs.
1086
+ *
1087
+ * @private
1088
+ * @constructor
1089
+ * @param {Array} [entries] The key-value pairs to cache.
1090
+ */
1091
+ function Stack$2(entries) {
1092
+ var data = this.__data__ = new ListCache(entries);
1093
+ this.size = data.size;
1094
+ }
1095
+
1096
+ // Add methods to `Stack`.
1097
+ Stack$2.prototype.clear = stackClear;
1098
+ Stack$2.prototype['delete'] = stackDelete;
1099
+ Stack$2.prototype.get = stackGet;
1100
+ Stack$2.prototype.has = stackHas;
1101
+ Stack$2.prototype.set = stackSet;
1102
+
1103
+ var _Stack = Stack$2;
1104
+
1105
+ /** Used to stand-in for `undefined` hash values. */
1106
+
1107
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1108
+
1109
+ /**
1110
+ * Adds `value` to the array cache.
1111
+ *
1112
+ * @private
1113
+ * @name add
1114
+ * @memberOf SetCache
1115
+ * @alias push
1116
+ * @param {*} value The value to cache.
1117
+ * @returns {Object} Returns the cache instance.
1118
+ */
1119
+ function setCacheAdd$1(value) {
1120
+ this.__data__.set(value, HASH_UNDEFINED);
1121
+ return this;
1122
+ }
1123
+
1124
+ var _setCacheAdd = setCacheAdd$1;
1125
+
1126
+ /**
1127
+ * Checks if `value` is in the array cache.
1128
+ *
1129
+ * @private
1130
+ * @name has
1131
+ * @memberOf SetCache
1132
+ * @param {*} value The value to search for.
1133
+ * @returns {number} Returns `true` if `value` is found, else `false`.
1134
+ */
1135
+
1136
+ function setCacheHas$1(value) {
1137
+ return this.__data__.has(value);
1138
+ }
1139
+
1140
+ var _setCacheHas = setCacheHas$1;
1141
+
1142
+ var MapCache$1 = _MapCache,
1143
+ setCacheAdd = _setCacheAdd,
1144
+ setCacheHas = _setCacheHas;
1145
+
1146
+ /**
1147
+ *
1148
+ * Creates an array cache object to store unique values.
1149
+ *
1150
+ * @private
1151
+ * @constructor
1152
+ * @param {Array} [values] The values to cache.
1153
+ */
1154
+ function SetCache$1(values) {
1155
+ var index = -1,
1156
+ length = values == null ? 0 : values.length;
1157
+
1158
+ this.__data__ = new MapCache$1;
1159
+ while (++index < length) {
1160
+ this.add(values[index]);
1161
+ }
1162
+ }
1163
+
1164
+ // Add methods to `SetCache`.
1165
+ SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
1166
+ SetCache$1.prototype.has = setCacheHas;
1167
+
1168
+ var _SetCache = SetCache$1;
1169
+
1170
+ /**
1171
+ * A specialized version of `_.some` for arrays without support for iteratee
1172
+ * shorthands.
1173
+ *
1174
+ * @private
1175
+ * @param {Array} [array] The array to iterate over.
1176
+ * @param {Function} predicate The function invoked per iteration.
1177
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
1178
+ * else `false`.
1179
+ */
1180
+
1181
+ function arraySome$1(array, predicate) {
1182
+ var index = -1,
1183
+ length = array == null ? 0 : array.length;
1184
+
1185
+ while (++index < length) {
1186
+ if (predicate(array[index], index, array)) {
1187
+ return true;
1188
+ }
1189
+ }
1190
+ return false;
1191
+ }
1192
+
1193
+ var _arraySome = arraySome$1;
1194
+
1195
+ /**
1196
+ * Checks if a `cache` value for `key` exists.
1197
+ *
1198
+ * @private
1199
+ * @param {Object} cache The cache to query.
1200
+ * @param {string} key The key of the entry to check.
1201
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1202
+ */
1203
+
1204
+ function cacheHas$1(cache, key) {
1205
+ return cache.has(key);
1206
+ }
1207
+
1208
+ var _cacheHas = cacheHas$1;
1209
+
1210
+ var SetCache = _SetCache,
1211
+ arraySome = _arraySome,
1212
+ cacheHas = _cacheHas;
1213
+
1214
+ /** Used to compose bitmasks for value comparisons. */
1215
+ var COMPARE_PARTIAL_FLAG$5 = 1,
1216
+ COMPARE_UNORDERED_FLAG$3 = 2;
1217
+
1218
+ /**
1219
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
1220
+ * partial deep comparisons.
1221
+ *
1222
+ * @private
1223
+ * @param {Array} array The array to compare.
1224
+ * @param {Array} other The other array to compare.
1225
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1226
+ * @param {Function} customizer The function to customize comparisons.
1227
+ * @param {Function} equalFunc The function to determine equivalents of values.
1228
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
1229
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1230
+ */
1231
+ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
1232
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
1233
+ arrLength = array.length,
1234
+ othLength = other.length;
1235
+
1236
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
1237
+ return false;
1238
+ }
1239
+ // Check that cyclic values are equal.
1240
+ var arrStacked = stack.get(array);
1241
+ var othStacked = stack.get(other);
1242
+ if (arrStacked && othStacked) {
1243
+ return arrStacked == other && othStacked == array;
1244
+ }
1245
+ var index = -1,
1246
+ result = true,
1247
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new SetCache : undefined;
1248
+
1249
+ stack.set(array, other);
1250
+ stack.set(other, array);
1251
+
1252
+ // Ignore non-index properties.
1253
+ while (++index < arrLength) {
1254
+ var arrValue = array[index],
1255
+ othValue = other[index];
1256
+
1257
+ if (customizer) {
1258
+ var compared = isPartial
1259
+ ? customizer(othValue, arrValue, index, other, array, stack)
1260
+ : customizer(arrValue, othValue, index, array, other, stack);
1261
+ }
1262
+ if (compared !== undefined) {
1263
+ if (compared) {
1264
+ continue;
1265
+ }
1266
+ result = false;
1267
+ break;
1268
+ }
1269
+ // Recursively compare arrays (susceptible to call stack limits).
1270
+ if (seen) {
1271
+ if (!arraySome(other, function(othValue, othIndex) {
1272
+ if (!cacheHas(seen, othIndex) &&
1273
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
1274
+ return seen.push(othIndex);
1275
+ }
1276
+ })) {
1277
+ result = false;
1278
+ break;
1279
+ }
1280
+ } else if (!(
1281
+ arrValue === othValue ||
1282
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
1283
+ )) {
1284
+ result = false;
1285
+ break;
1286
+ }
1287
+ }
1288
+ stack['delete'](array);
1289
+ stack['delete'](other);
1290
+ return result;
1291
+ }
1292
+
1293
+ var _equalArrays = equalArrays$2;
1294
+
1295
+ var root$4 = toNumber$1._root;
1296
+
1297
+ /** Built-in value references. */
1298
+ var Uint8Array$1 = root$4.Uint8Array;
1299
+
1300
+ var _Uint8Array = Uint8Array$1;
1301
+
1302
+ /**
1303
+ * Converts `map` to its key-value pairs.
1304
+ *
1305
+ * @private
1306
+ * @param {Object} map The map to convert.
1307
+ * @returns {Array} Returns the key-value pairs.
1308
+ */
1309
+
1310
+ function mapToArray$1(map) {
1311
+ var index = -1,
1312
+ result = Array(map.size);
1313
+
1314
+ map.forEach(function(value, key) {
1315
+ result[++index] = [key, value];
1316
+ });
1317
+ return result;
1318
+ }
1319
+
1320
+ var _mapToArray = mapToArray$1;
1321
+
1322
+ /**
1323
+ * Converts `set` to an array of its values.
1324
+ *
1325
+ * @private
1326
+ * @param {Object} set The set to convert.
1327
+ * @returns {Array} Returns the values.
1328
+ */
1329
+
1330
+ function setToArray$1(set) {
1331
+ var index = -1,
1332
+ result = Array(set.size);
1333
+
1334
+ set.forEach(function(value) {
1335
+ result[++index] = value;
1336
+ });
1337
+ return result;
1338
+ }
1339
+
1340
+ var _setToArray = setToArray$1;
1341
+
1342
+ var Symbol$1 = toNumber$1._Symbol,
1343
+ Uint8Array = _Uint8Array,
1344
+ eq$1 = eq_1,
1345
+ equalArrays$1 = _equalArrays,
1346
+ mapToArray = _mapToArray,
1347
+ setToArray = _setToArray;
1348
+
1349
+ /** Used to compose bitmasks for value comparisons. */
1350
+ var COMPARE_PARTIAL_FLAG$4 = 1,
1351
+ COMPARE_UNORDERED_FLAG$2 = 2;
1352
+
1353
+ /** `Object#toString` result references. */
1354
+ var boolTag$1 = '[object Boolean]',
1355
+ dateTag$1 = '[object Date]',
1356
+ errorTag$1 = '[object Error]',
1357
+ mapTag$2 = '[object Map]',
1358
+ numberTag$1 = '[object Number]',
1359
+ regexpTag$1 = '[object RegExp]',
1360
+ setTag$2 = '[object Set]',
1361
+ stringTag$1 = '[object String]',
1362
+ symbolTag = '[object Symbol]';
1363
+
1364
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
1365
+ dataViewTag$2 = '[object DataView]';
1366
+
1367
+ /** Used to convert symbols to primitives and strings. */
1368
+ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
1369
+ symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
1370
+
1371
+ /**
1372
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
1373
+ * the same `toStringTag`.
1374
+ *
1375
+ * **Note:** This function only supports comparing values with tags of
1376
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
1377
+ *
1378
+ * @private
1379
+ * @param {Object} object The object to compare.
1380
+ * @param {Object} other The other object to compare.
1381
+ * @param {string} tag The `toStringTag` of the objects to compare.
1382
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1383
+ * @param {Function} customizer The function to customize comparisons.
1384
+ * @param {Function} equalFunc The function to determine equivalents of values.
1385
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1386
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1387
+ */
1388
+ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
1389
+ switch (tag) {
1390
+ case dataViewTag$2:
1391
+ if ((object.byteLength != other.byteLength) ||
1392
+ (object.byteOffset != other.byteOffset)) {
1393
+ return false;
1394
+ }
1395
+ object = object.buffer;
1396
+ other = other.buffer;
1397
+
1398
+ case arrayBufferTag$1:
1399
+ if ((object.byteLength != other.byteLength) ||
1400
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1401
+ return false;
1402
+ }
1403
+ return true;
1404
+
1405
+ case boolTag$1:
1406
+ case dateTag$1:
1407
+ case numberTag$1:
1408
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
1409
+ // Invalid dates are coerced to `NaN`.
1410
+ return eq$1(+object, +other);
1411
+
1412
+ case errorTag$1:
1413
+ return object.name == other.name && object.message == other.message;
1414
+
1415
+ case regexpTag$1:
1416
+ case stringTag$1:
1417
+ // Coerce regexes to strings and treat strings, primitives and objects,
1418
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1419
+ // for more details.
1420
+ return object == (other + '');
1421
+
1422
+ case mapTag$2:
1423
+ var convert = mapToArray;
1424
+
1425
+ case setTag$2:
1426
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1427
+ convert || (convert = setToArray);
1428
+
1429
+ if (object.size != other.size && !isPartial) {
1430
+ return false;
1431
+ }
1432
+ // Assume cyclic values are equal.
1433
+ var stacked = stack.get(object);
1434
+ if (stacked) {
1435
+ return stacked == other;
1436
+ }
1437
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1438
+
1439
+ // Recursively compare objects (susceptible to call stack limits).
1440
+ stack.set(object, other);
1441
+ var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1442
+ stack['delete'](object);
1443
+ return result;
1444
+
1445
+ case symbolTag:
1446
+ if (symbolValueOf) {
1447
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
1448
+ }
1449
+ }
1450
+ return false;
1451
+ }
1452
+
1453
+ var _equalByTag = equalByTag$1;
1454
+
1455
+ /**
1456
+ * Appends the elements of `values` to `array`.
1457
+ *
1458
+ * @private
1459
+ * @param {Array} array The array to modify.
1460
+ * @param {Array} values The values to append.
1461
+ * @returns {Array} Returns `array`.
1462
+ */
1463
+
1464
+ function arrayPush$1(array, values) {
1465
+ var index = -1,
1466
+ length = values.length,
1467
+ offset = array.length;
1468
+
1469
+ while (++index < length) {
1470
+ array[offset + index] = values[index];
1471
+ }
1472
+ return array;
1473
+ }
1474
+
1475
+ var _arrayPush = arrayPush$1;
1476
+
1477
+ /**
1478
+ * Checks if `value` is classified as an `Array` object.
1479
+ *
1480
+ * @static
1481
+ * @memberOf _
1482
+ * @since 0.1.0
1483
+ * @category Lang
1484
+ * @param {*} value The value to check.
1485
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1486
+ * @example
1487
+ *
1488
+ * _.isArray([1, 2, 3]);
1489
+ * // => true
1490
+ *
1491
+ * _.isArray(document.body.children);
1492
+ * // => false
1493
+ *
1494
+ * _.isArray('abc');
1495
+ * // => false
1496
+ *
1497
+ * _.isArray(_.noop);
1498
+ * // => false
1499
+ */
1500
+
1501
+ var isArray$a = Array.isArray;
1502
+
1503
+ var isArray_1 = isArray$a;
1504
+
1505
+ var arrayPush = _arrayPush,
1506
+ isArray$9 = isArray_1;
1507
+
1508
+ /**
1509
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1510
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1511
+ * symbols of `object`.
1512
+ *
1513
+ * @private
1514
+ * @param {Object} object The object to query.
1515
+ * @param {Function} keysFunc The function to get the keys of `object`.
1516
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1517
+ * @returns {Array} Returns the array of property names and symbols.
1518
+ */
1519
+ function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
1520
+ var result = keysFunc(object);
1521
+ return isArray$9(object) ? result : arrayPush(result, symbolsFunc(object));
1522
+ }
1523
+
1524
+ var _baseGetAllKeys = baseGetAllKeys$1;
1525
+
1526
+ /**
1527
+ * A specialized version of `_.filter` for arrays without support for
1528
+ * iteratee shorthands.
1529
+ *
1530
+ * @private
1531
+ * @param {Array} [array] The array to iterate over.
1532
+ * @param {Function} predicate The function invoked per iteration.
1533
+ * @returns {Array} Returns the new filtered array.
1534
+ */
1535
+
1536
+ function arrayFilter$1(array, predicate) {
1537
+ var index = -1,
1538
+ length = array == null ? 0 : array.length,
1539
+ resIndex = 0,
1540
+ result = [];
1541
+
1542
+ while (++index < length) {
1543
+ var value = array[index];
1544
+ if (predicate(value, index, array)) {
1545
+ result[resIndex++] = value;
1546
+ }
1547
+ }
1548
+ return result;
1549
+ }
1550
+
1551
+ var _arrayFilter = arrayFilter$1;
1552
+
1553
+ /**
1554
+ * This method returns a new empty array.
1555
+ *
1556
+ * @static
1557
+ * @memberOf _
1558
+ * @since 4.13.0
1559
+ * @category Util
1560
+ * @returns {Array} Returns the new empty array.
1561
+ * @example
1562
+ *
1563
+ * var arrays = _.times(2, _.stubArray);
1564
+ *
1565
+ * console.log(arrays);
1566
+ * // => [[], []]
1567
+ *
1568
+ * console.log(arrays[0] === arrays[1]);
1569
+ * // => false
1570
+ */
1571
+
1572
+ function stubArray$1() {
1573
+ return [];
1574
+ }
1575
+
1576
+ var stubArray_1 = stubArray$1;
1577
+
1578
+ var arrayFilter = _arrayFilter,
1579
+ stubArray = stubArray_1;
1580
+
1581
+ /** Used for built-in method references. */
1582
+ var objectProto$6 = Object.prototype;
1583
+
1584
+ /** Built-in value references. */
1585
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
1586
+
1587
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1588
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1589
+
1590
+ /**
1591
+ * Creates an array of the own enumerable symbols of `object`.
1592
+ *
1593
+ * @private
1594
+ * @param {Object} object The object to query.
1595
+ * @returns {Array} Returns the array of symbols.
1596
+ */
1597
+ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
1598
+ if (object == null) {
1599
+ return [];
1600
+ }
1601
+ object = Object(object);
1602
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
1603
+ return propertyIsEnumerable$1.call(object, symbol);
1604
+ });
1605
+ };
1606
+
1607
+ var _getSymbols = getSymbols$1;
1608
+
1609
+ /**
1610
+ * The base implementation of `_.times` without support for iteratee shorthands
1611
+ * or max array length checks.
1612
+ *
1613
+ * @private
1614
+ * @param {number} n The number of times to invoke `iteratee`.
1615
+ * @param {Function} iteratee The function invoked per iteration.
1616
+ * @returns {Array} Returns the array of results.
1617
+ */
1618
+
1619
+ function baseTimes$1(n, iteratee) {
1620
+ var index = -1,
1621
+ result = Array(n);
1622
+
1623
+ while (++index < n) {
1624
+ result[index] = iteratee(index);
1625
+ }
1626
+ return result;
1627
+ }
1628
+
1629
+ var _baseTimes = baseTimes$1;
1630
+
1631
+ var baseGetTag$2 = toNumber$1._baseGetTag,
1632
+ isObjectLike$3 = toNumber$1.isObjectLike_1;
1633
+
1634
+ /** `Object#toString` result references. */
1635
+ var argsTag$2 = '[object Arguments]';
1636
+
1637
+ /**
1638
+ * The base implementation of `_.isArguments`.
1639
+ *
1640
+ * @private
1641
+ * @param {*} value The value to check.
1642
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1643
+ */
1644
+ function baseIsArguments$1(value) {
1645
+ return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
1646
+ }
1647
+
1648
+ var _baseIsArguments = baseIsArguments$1;
1649
+
1650
+ var baseIsArguments = _baseIsArguments,
1651
+ isObjectLike$2 = toNumber$1.isObjectLike_1;
1652
+
1653
+ /** Used for built-in method references. */
1654
+ var objectProto$5 = Object.prototype;
1655
+
1656
+ /** Used to check objects for own properties. */
1657
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
1658
+
1659
+ /** Built-in value references. */
1660
+ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
1661
+
1662
+ /**
1663
+ * Checks if `value` is likely an `arguments` object.
1664
+ *
1665
+ * @static
1666
+ * @memberOf _
1667
+ * @since 0.1.0
1668
+ * @category Lang
1669
+ * @param {*} value The value to check.
1670
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1671
+ * else `false`.
1672
+ * @example
1673
+ *
1674
+ * _.isArguments(function() { return arguments; }());
1675
+ * // => true
1676
+ *
1677
+ * _.isArguments([1, 2, 3]);
1678
+ * // => false
1679
+ */
1680
+ var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1681
+ return isObjectLike$2(value) && hasOwnProperty$4.call(value, 'callee') &&
1682
+ !propertyIsEnumerable.call(value, 'callee');
1683
+ };
1684
+
1685
+ var isArguments_1 = isArguments$2;
1686
+
1687
+ var isBuffer$2 = {exports: {}};
1688
+
1689
+ /**
1690
+ * This method returns `false`.
1691
+ *
1692
+ * @static
1693
+ * @memberOf _
1694
+ * @since 4.13.0
1695
+ * @category Util
1696
+ * @returns {boolean} Returns `false`.
1697
+ * @example
1698
+ *
1699
+ * _.times(2, _.stubFalse);
1700
+ * // => [false, false]
1701
+ */
1702
+
1703
+ function stubFalse() {
1704
+ return false;
1705
+ }
1706
+
1707
+ var stubFalse_1 = stubFalse;
1708
+
1709
+ (function (module, exports) {
1710
+ var root = toNumber$1._root,
1711
+ stubFalse = stubFalse_1;
1712
+
1713
+ /** Detect free variable `exports`. */
1714
+ var freeExports = exports && !exports.nodeType && exports;
1715
+
1716
+ /** Detect free variable `module`. */
1717
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1718
+
1719
+ /** Detect the popular CommonJS extension `module.exports`. */
1720
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1721
+
1722
+ /** Built-in value references. */
1723
+ var Buffer = moduleExports ? root.Buffer : undefined;
1724
+
1725
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1726
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1727
+
1728
+ /**
1729
+ * Checks if `value` is a buffer.
1730
+ *
1731
+ * @static
1732
+ * @memberOf _
1733
+ * @since 4.3.0
1734
+ * @category Lang
1735
+ * @param {*} value The value to check.
1736
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1737
+ * @example
1738
+ *
1739
+ * _.isBuffer(new Buffer(2));
1740
+ * // => true
1741
+ *
1742
+ * _.isBuffer(new Uint8Array(2));
1743
+ * // => false
1744
+ */
1745
+ var isBuffer = nativeIsBuffer || stubFalse;
1746
+
1747
+ module.exports = isBuffer;
1748
+ }(isBuffer$2, isBuffer$2.exports));
1749
+
1750
+ /** Used as references for various `Number` constants. */
1751
+
1752
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
1753
+
1754
+ /** Used to detect unsigned integer values. */
1755
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1756
+
1757
+ /**
1758
+ * Checks if `value` is a valid array-like index.
1759
+ *
1760
+ * @private
1761
+ * @param {*} value The value to check.
1762
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1763
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1764
+ */
1765
+ function isIndex$3(value, length) {
1766
+ var type = typeof value;
1767
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
1768
+
1769
+ return !!length &&
1770
+ (type == 'number' ||
1771
+ (type != 'symbol' && reIsUint.test(value))) &&
1772
+ (value > -1 && value % 1 == 0 && value < length);
1773
+ }
1774
+
1775
+ var _isIndex = isIndex$3;
1776
+
1777
+ /** Used as references for various `Number` constants. */
1778
+
1779
+ var MAX_SAFE_INTEGER = 9007199254740991;
1780
+
1781
+ /**
1782
+ * Checks if `value` is a valid array-like length.
1783
+ *
1784
+ * **Note:** This method is loosely based on
1785
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1786
+ *
1787
+ * @static
1788
+ * @memberOf _
1789
+ * @since 4.0.0
1790
+ * @category Lang
1791
+ * @param {*} value The value to check.
1792
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1793
+ * @example
1794
+ *
1795
+ * _.isLength(3);
1796
+ * // => true
1797
+ *
1798
+ * _.isLength(Number.MIN_VALUE);
1799
+ * // => false
1800
+ *
1801
+ * _.isLength(Infinity);
1802
+ * // => false
1803
+ *
1804
+ * _.isLength('3');
1805
+ * // => false
1806
+ */
1807
+ function isLength$3(value) {
1808
+ return typeof value == 'number' &&
1809
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1810
+ }
1811
+
1812
+ var isLength_1 = isLength$3;
1813
+
1814
+ var baseGetTag$1 = toNumber$1._baseGetTag,
1815
+ isLength$2 = isLength_1,
1816
+ isObjectLike$1 = toNumber$1.isObjectLike_1;
1817
+
1818
+ /** `Object#toString` result references. */
1819
+ var argsTag$1 = '[object Arguments]',
1820
+ arrayTag$1 = '[object Array]',
1821
+ boolTag = '[object Boolean]',
1822
+ dateTag = '[object Date]',
1823
+ errorTag = '[object Error]',
1824
+ funcTag = '[object Function]',
1825
+ mapTag$1 = '[object Map]',
1826
+ numberTag = '[object Number]',
1827
+ objectTag$2 = '[object Object]',
1828
+ regexpTag = '[object RegExp]',
1829
+ setTag$1 = '[object Set]',
1830
+ stringTag = '[object String]',
1831
+ weakMapTag$1 = '[object WeakMap]';
1832
+
1833
+ var arrayBufferTag = '[object ArrayBuffer]',
1834
+ dataViewTag$1 = '[object DataView]',
1835
+ float32Tag = '[object Float32Array]',
1836
+ float64Tag = '[object Float64Array]',
1837
+ int8Tag = '[object Int8Array]',
1838
+ int16Tag = '[object Int16Array]',
1839
+ int32Tag = '[object Int32Array]',
1840
+ uint8Tag = '[object Uint8Array]',
1841
+ uint8ClampedTag = '[object Uint8ClampedArray]',
1842
+ uint16Tag = '[object Uint16Array]',
1843
+ uint32Tag = '[object Uint32Array]';
1844
+
1845
+ /** Used to identify `toStringTag` values of typed arrays. */
1846
+ var typedArrayTags = {};
1847
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1848
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1849
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1850
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1851
+ typedArrayTags[uint32Tag] = true;
1852
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
1853
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1854
+ typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
1855
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1856
+ typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
1857
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
1858
+ typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
1859
+ typedArrayTags[weakMapTag$1] = false;
1860
+
1861
+ /**
1862
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
1863
+ *
1864
+ * @private
1865
+ * @param {*} value The value to check.
1866
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1867
+ */
1868
+ function baseIsTypedArray$1(value) {
1869
+ return isObjectLike$1(value) &&
1870
+ isLength$2(value.length) && !!typedArrayTags[baseGetTag$1(value)];
1871
+ }
1872
+
1873
+ var _baseIsTypedArray = baseIsTypedArray$1;
1874
+
1875
+ /**
1876
+ * The base implementation of `_.unary` without support for storing metadata.
1877
+ *
1878
+ * @private
1879
+ * @param {Function} func The function to cap arguments for.
1880
+ * @returns {Function} Returns the new capped function.
1881
+ */
1882
+
1883
+ function baseUnary$1(func) {
1884
+ return function(value) {
1885
+ return func(value);
1886
+ };
1887
+ }
1888
+
1889
+ var _baseUnary = baseUnary$1;
1890
+
1891
+ var _nodeUtil = {exports: {}};
1892
+
1893
+ (function (module, exports) {
1894
+ var freeGlobal = toNumber$1._freeGlobal;
1895
+
1896
+ /** Detect free variable `exports`. */
1897
+ var freeExports = exports && !exports.nodeType && exports;
1898
+
1899
+ /** Detect free variable `module`. */
1900
+ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
1901
+
1902
+ /** Detect the popular CommonJS extension `module.exports`. */
1903
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1904
+
1905
+ /** Detect free variable `process` from Node.js. */
1906
+ var freeProcess = moduleExports && freeGlobal.process;
1907
+
1908
+ /** Used to access faster Node.js helpers. */
1909
+ var nodeUtil = (function() {
1910
+ try {
1911
+ // Use `util.types` for Node.js 10+.
1912
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
1913
+
1914
+ if (types) {
1915
+ return types;
1916
+ }
1917
+
1918
+ // Legacy `process.binding('util')` for Node.js < 10.
1919
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
1920
+ } catch (e) {}
1921
+ }());
1922
+
1923
+ module.exports = nodeUtil;
1924
+ }(_nodeUtil, _nodeUtil.exports));
1925
+
1926
+ var baseIsTypedArray = _baseIsTypedArray,
1927
+ baseUnary = _baseUnary,
1928
+ nodeUtil = _nodeUtil.exports;
1929
+
1930
+ /* Node.js helper references. */
1931
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1932
+
1933
+ /**
1934
+ * Checks if `value` is classified as a typed array.
1935
+ *
1936
+ * @static
1937
+ * @memberOf _
1938
+ * @since 3.0.0
1939
+ * @category Lang
1940
+ * @param {*} value The value to check.
1941
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1942
+ * @example
1943
+ *
1944
+ * _.isTypedArray(new Uint8Array);
1945
+ * // => true
1946
+ *
1947
+ * _.isTypedArray([]);
1948
+ * // => false
1949
+ */
1950
+ var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1951
+
1952
+ var isTypedArray_1 = isTypedArray$2;
1953
+
1954
+ var baseTimes = _baseTimes,
1955
+ isArguments$1 = isArguments_1,
1956
+ isArray$8 = isArray_1,
1957
+ isBuffer$1 = isBuffer$2.exports,
1958
+ isIndex$2 = _isIndex,
1959
+ isTypedArray$1 = isTypedArray_1;
1960
+
1961
+ /** Used for built-in method references. */
1962
+ var objectProto$4 = Object.prototype;
1963
+
1964
+ /** Used to check objects for own properties. */
1965
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1966
+
1967
+ /**
1968
+ * Creates an array of the enumerable property names of the array-like `value`.
1969
+ *
1970
+ * @private
1971
+ * @param {*} value The value to query.
1972
+ * @param {boolean} inherited Specify returning inherited property names.
1973
+ * @returns {Array} Returns the array of property names.
1974
+ */
1975
+ function arrayLikeKeys$1(value, inherited) {
1976
+ var isArr = isArray$8(value),
1977
+ isArg = !isArr && isArguments$1(value),
1978
+ isBuff = !isArr && !isArg && isBuffer$1(value),
1979
+ isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
1980
+ skipIndexes = isArr || isArg || isBuff || isType,
1981
+ result = skipIndexes ? baseTimes(value.length, String) : [],
1982
+ length = result.length;
1983
+
1984
+ for (var key in value) {
1985
+ if ((inherited || hasOwnProperty$3.call(value, key)) &&
1986
+ !(skipIndexes && (
1987
+ // Safari 9 has enumerable `arguments.length` in strict mode.
1988
+ key == 'length' ||
1989
+ // Node.js 0.10 has enumerable non-index properties on buffers.
1990
+ (isBuff && (key == 'offset' || key == 'parent')) ||
1991
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
1992
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1993
+ // Skip index properties.
1994
+ isIndex$2(key, length)
1995
+ ))) {
1996
+ result.push(key);
1997
+ }
1998
+ }
1999
+ return result;
2000
+ }
2001
+
2002
+ var _arrayLikeKeys = arrayLikeKeys$1;
2003
+
2004
+ /** Used for built-in method references. */
2005
+
2006
+ var objectProto$3 = Object.prototype;
2007
+
2008
+ /**
2009
+ * Checks if `value` is likely a prototype object.
2010
+ *
2011
+ * @private
2012
+ * @param {*} value The value to check.
2013
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
2014
+ */
2015
+ function isPrototype$1(value) {
2016
+ var Ctor = value && value.constructor,
2017
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
2018
+
2019
+ return value === proto;
2020
+ }
2021
+
2022
+ var _isPrototype = isPrototype$1;
2023
+
2024
+ /**
2025
+ * Creates a unary function that invokes `func` with its argument transformed.
2026
+ *
2027
+ * @private
2028
+ * @param {Function} func The function to wrap.
2029
+ * @param {Function} transform The argument transform.
2030
+ * @returns {Function} Returns the new function.
2031
+ */
2032
+
2033
+ function overArg$1(func, transform) {
2034
+ return function(arg) {
2035
+ return func(transform(arg));
2036
+ };
2037
+ }
2038
+
2039
+ var _overArg = overArg$1;
2040
+
2041
+ var overArg = _overArg;
2042
+
2043
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2044
+ var nativeKeys$1 = overArg(Object.keys, Object);
2045
+
2046
+ var _nativeKeys = nativeKeys$1;
2047
+
2048
+ var isPrototype = _isPrototype,
2049
+ nativeKeys = _nativeKeys;
2050
+
2051
+ /** Used for built-in method references. */
2052
+ var objectProto$2 = Object.prototype;
2053
+
2054
+ /** Used to check objects for own properties. */
2055
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
2056
+
2057
+ /**
2058
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
2059
+ *
2060
+ * @private
2061
+ * @param {Object} object The object to query.
2062
+ * @returns {Array} Returns the array of property names.
2063
+ */
2064
+ function baseKeys$1(object) {
2065
+ if (!isPrototype(object)) {
2066
+ return nativeKeys(object);
2067
+ }
2068
+ var result = [];
2069
+ for (var key in Object(object)) {
2070
+ if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
2071
+ result.push(key);
2072
+ }
2073
+ }
2074
+ return result;
2075
+ }
2076
+
2077
+ var _baseKeys = baseKeys$1;
2078
+
2079
+ var isFunction = isFunction_1,
2080
+ isLength$1 = isLength_1;
2081
+
2082
+ /**
2083
+ * Checks if `value` is array-like. A value is considered array-like if it's
2084
+ * not a function and has a `value.length` that's an integer greater than or
2085
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
2086
+ *
2087
+ * @static
2088
+ * @memberOf _
2089
+ * @since 4.0.0
2090
+ * @category Lang
2091
+ * @param {*} value The value to check.
2092
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
2093
+ * @example
2094
+ *
2095
+ * _.isArrayLike([1, 2, 3]);
2096
+ * // => true
2097
+ *
2098
+ * _.isArrayLike(document.body.children);
2099
+ * // => true
2100
+ *
2101
+ * _.isArrayLike('abc');
2102
+ * // => true
2103
+ *
2104
+ * _.isArrayLike(_.noop);
2105
+ * // => false
2106
+ */
2107
+ function isArrayLike$3(value) {
2108
+ return value != null && isLength$1(value.length) && !isFunction(value);
2109
+ }
2110
+
2111
+ var isArrayLike_1 = isArrayLike$3;
2112
+
2113
+ var arrayLikeKeys = _arrayLikeKeys,
2114
+ baseKeys = _baseKeys,
2115
+ isArrayLike$2 = isArrayLike_1;
2116
+
2117
+ /**
2118
+ * Creates an array of the own enumerable property names of `object`.
2119
+ *
2120
+ * **Note:** Non-object values are coerced to objects. See the
2121
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2122
+ * for more details.
2123
+ *
2124
+ * @static
2125
+ * @since 0.1.0
2126
+ * @memberOf _
2127
+ * @category Object
2128
+ * @param {Object} object The object to query.
2129
+ * @returns {Array} Returns the array of property names.
2130
+ * @example
2131
+ *
2132
+ * function Foo() {
2133
+ * this.a = 1;
2134
+ * this.b = 2;
2135
+ * }
2136
+ *
2137
+ * Foo.prototype.c = 3;
2138
+ *
2139
+ * _.keys(new Foo);
2140
+ * // => ['a', 'b'] (iteration order is not guaranteed)
2141
+ *
2142
+ * _.keys('hi');
2143
+ * // => ['0', '1']
2144
+ */
2145
+ function keys$3(object) {
2146
+ return isArrayLike$2(object) ? arrayLikeKeys(object) : baseKeys(object);
2147
+ }
2148
+
2149
+ var keys_1 = keys$3;
2150
+
2151
+ var baseGetAllKeys = _baseGetAllKeys,
2152
+ getSymbols = _getSymbols,
2153
+ keys$2 = keys_1;
2154
+
2155
+ /**
2156
+ * Creates an array of own enumerable property names and symbols of `object`.
2157
+ *
2158
+ * @private
2159
+ * @param {Object} object The object to query.
2160
+ * @returns {Array} Returns the array of property names and symbols.
2161
+ */
2162
+ function getAllKeys$1(object) {
2163
+ return baseGetAllKeys(object, keys$2, getSymbols);
2164
+ }
2165
+
2166
+ var _getAllKeys = getAllKeys$1;
2167
+
2168
+ var getAllKeys = _getAllKeys;
2169
+
2170
+ /** Used to compose bitmasks for value comparisons. */
2171
+ var COMPARE_PARTIAL_FLAG$3 = 1;
2172
+
2173
+ /** Used for built-in method references. */
2174
+ var objectProto$1 = Object.prototype;
2175
+
2176
+ /** Used to check objects for own properties. */
2177
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
2178
+
2179
+ /**
2180
+ * A specialized version of `baseIsEqualDeep` for objects with support for
2181
+ * partial deep comparisons.
2182
+ *
2183
+ * @private
2184
+ * @param {Object} object The object to compare.
2185
+ * @param {Object} other The other object to compare.
2186
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2187
+ * @param {Function} customizer The function to customize comparisons.
2188
+ * @param {Function} equalFunc The function to determine equivalents of values.
2189
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
2190
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2191
+ */
2192
+ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
2193
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
2194
+ objProps = getAllKeys(object),
2195
+ objLength = objProps.length,
2196
+ othProps = getAllKeys(other),
2197
+ othLength = othProps.length;
2198
+
2199
+ if (objLength != othLength && !isPartial) {
2200
+ return false;
2201
+ }
2202
+ var index = objLength;
2203
+ while (index--) {
2204
+ var key = objProps[index];
2205
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
2206
+ return false;
2207
+ }
2208
+ }
2209
+ // Check that cyclic values are equal.
2210
+ var objStacked = stack.get(object);
2211
+ var othStacked = stack.get(other);
2212
+ if (objStacked && othStacked) {
2213
+ return objStacked == other && othStacked == object;
2214
+ }
2215
+ var result = true;
2216
+ stack.set(object, other);
2217
+ stack.set(other, object);
2218
+
2219
+ var skipCtor = isPartial;
2220
+ while (++index < objLength) {
2221
+ key = objProps[index];
2222
+ var objValue = object[key],
2223
+ othValue = other[key];
2224
+
2225
+ if (customizer) {
2226
+ var compared = isPartial
2227
+ ? customizer(othValue, objValue, key, other, object, stack)
2228
+ : customizer(objValue, othValue, key, object, other, stack);
2229
+ }
2230
+ // Recursively compare objects (susceptible to call stack limits).
2231
+ if (!(compared === undefined
2232
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
2233
+ : compared
2234
+ )) {
2235
+ result = false;
2236
+ break;
2237
+ }
2238
+ skipCtor || (skipCtor = key == 'constructor');
2239
+ }
2240
+ if (result && !skipCtor) {
2241
+ var objCtor = object.constructor,
2242
+ othCtor = other.constructor;
2243
+
2244
+ // Non `Object` object instances with different constructors are not equal.
2245
+ if (objCtor != othCtor &&
2246
+ ('constructor' in object && 'constructor' in other) &&
2247
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
2248
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
2249
+ result = false;
2250
+ }
2251
+ }
2252
+ stack['delete'](object);
2253
+ stack['delete'](other);
2254
+ return result;
2255
+ }
2256
+
2257
+ var _equalObjects = equalObjects$1;
2258
+
2259
+ var getNative$3 = _getNative,
2260
+ root$3 = toNumber$1._root;
2261
+
2262
+ /* Built-in method references that are verified to be native. */
2263
+ var DataView$1 = getNative$3(root$3, 'DataView');
2264
+
2265
+ var _DataView = DataView$1;
2266
+
2267
+ var getNative$2 = _getNative,
2268
+ root$2 = toNumber$1._root;
2269
+
2270
+ /* Built-in method references that are verified to be native. */
2271
+ var Promise$2 = getNative$2(root$2, 'Promise');
2272
+
2273
+ var _Promise = Promise$2;
2274
+
2275
+ var getNative$1 = _getNative,
2276
+ root$1 = toNumber$1._root;
2277
+
2278
+ /* Built-in method references that are verified to be native. */
2279
+ var Set$1 = getNative$1(root$1, 'Set');
2280
+
2281
+ var _Set = Set$1;
2282
+
2283
+ var getNative = _getNative,
2284
+ root = toNumber$1._root;
2285
+
2286
+ /* Built-in method references that are verified to be native. */
2287
+ var WeakMap$1 = getNative(root, 'WeakMap');
2288
+
2289
+ var _WeakMap = WeakMap$1;
2290
+
2291
+ var DataView = _DataView,
2292
+ Map$1 = _Map,
2293
+ Promise$1 = _Promise,
2294
+ Set = _Set,
2295
+ WeakMap = _WeakMap,
2296
+ baseGetTag = toNumber$1._baseGetTag,
2297
+ toSource = _toSource;
2298
+
2299
+ /** `Object#toString` result references. */
2300
+ var mapTag = '[object Map]',
2301
+ objectTag$1 = '[object Object]',
2302
+ promiseTag = '[object Promise]',
2303
+ setTag = '[object Set]',
2304
+ weakMapTag = '[object WeakMap]';
2305
+
2306
+ var dataViewTag = '[object DataView]';
2307
+
2308
+ /** Used to detect maps, sets, and weakmaps. */
2309
+ var dataViewCtorString = toSource(DataView),
2310
+ mapCtorString = toSource(Map$1),
2311
+ promiseCtorString = toSource(Promise$1),
2312
+ setCtorString = toSource(Set),
2313
+ weakMapCtorString = toSource(WeakMap);
2314
+
2315
+ /**
2316
+ * Gets the `toStringTag` of `value`.
2317
+ *
2318
+ * @private
2319
+ * @param {*} value The value to query.
2320
+ * @returns {string} Returns the `toStringTag`.
2321
+ */
2322
+ var getTag$1 = baseGetTag;
2323
+
2324
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
2325
+ if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
2326
+ (Map$1 && getTag$1(new Map$1) != mapTag) ||
2327
+ (Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
2328
+ (Set && getTag$1(new Set) != setTag) ||
2329
+ (WeakMap && getTag$1(new WeakMap) != weakMapTag)) {
2330
+ getTag$1 = function(value) {
2331
+ var result = baseGetTag(value),
2332
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
2333
+ ctorString = Ctor ? toSource(Ctor) : '';
2334
+
2335
+ if (ctorString) {
2336
+ switch (ctorString) {
2337
+ case dataViewCtorString: return dataViewTag;
2338
+ case mapCtorString: return mapTag;
2339
+ case promiseCtorString: return promiseTag;
2340
+ case setCtorString: return setTag;
2341
+ case weakMapCtorString: return weakMapTag;
2342
+ }
2343
+ }
2344
+ return result;
2345
+ };
2346
+ }
2347
+
2348
+ var _getTag = getTag$1;
2349
+
2350
+ var Stack$1 = _Stack,
2351
+ equalArrays = _equalArrays,
2352
+ equalByTag = _equalByTag,
2353
+ equalObjects = _equalObjects,
2354
+ getTag = _getTag,
2355
+ isArray$7 = isArray_1,
2356
+ isBuffer = isBuffer$2.exports,
2357
+ isTypedArray = isTypedArray_1;
2358
+
2359
+ /** Used to compose bitmasks for value comparisons. */
2360
+ var COMPARE_PARTIAL_FLAG$2 = 1;
2361
+
2362
+ /** `Object#toString` result references. */
2363
+ var argsTag = '[object Arguments]',
2364
+ arrayTag = '[object Array]',
2365
+ objectTag = '[object Object]';
2366
+
2367
+ /** Used for built-in method references. */
2368
+ var objectProto = Object.prototype;
2369
+
2370
+ /** Used to check objects for own properties. */
2371
+ var hasOwnProperty = objectProto.hasOwnProperty;
2372
+
2373
+ /**
2374
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
2375
+ * deep comparisons and tracks traversed objects enabling objects with circular
2376
+ * references to be compared.
2377
+ *
2378
+ * @private
2379
+ * @param {Object} object The object to compare.
2380
+ * @param {Object} other The other object to compare.
2381
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
2382
+ * @param {Function} customizer The function to customize comparisons.
2383
+ * @param {Function} equalFunc The function to determine equivalents of values.
2384
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
2385
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2386
+ */
2387
+ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
2388
+ var objIsArr = isArray$7(object),
2389
+ othIsArr = isArray$7(other),
2390
+ objTag = objIsArr ? arrayTag : getTag(object),
2391
+ othTag = othIsArr ? arrayTag : getTag(other);
2392
+
2393
+ objTag = objTag == argsTag ? objectTag : objTag;
2394
+ othTag = othTag == argsTag ? objectTag : othTag;
2395
+
2396
+ var objIsObj = objTag == objectTag,
2397
+ othIsObj = othTag == objectTag,
2398
+ isSameTag = objTag == othTag;
2399
+
2400
+ if (isSameTag && isBuffer(object)) {
2401
+ if (!isBuffer(other)) {
2402
+ return false;
2403
+ }
2404
+ objIsArr = true;
2405
+ objIsObj = false;
2406
+ }
2407
+ if (isSameTag && !objIsObj) {
2408
+ stack || (stack = new Stack$1);
2409
+ return (objIsArr || isTypedArray(object))
2410
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2411
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2412
+ }
2413
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2414
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
2415
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
2416
+
2417
+ if (objIsWrapped || othIsWrapped) {
2418
+ var objUnwrapped = objIsWrapped ? object.value() : object,
2419
+ othUnwrapped = othIsWrapped ? other.value() : other;
2420
+
2421
+ stack || (stack = new Stack$1);
2422
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2423
+ }
2424
+ }
2425
+ if (!isSameTag) {
2426
+ return false;
2427
+ }
2428
+ stack || (stack = new Stack$1);
2429
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
2430
+ }
2431
+
2432
+ var _baseIsEqualDeep = baseIsEqualDeep$1;
2433
+
2434
+ var baseIsEqualDeep = _baseIsEqualDeep,
2435
+ isObjectLike = toNumber$1.isObjectLike_1;
2436
+
2437
+ /**
2438
+ * The base implementation of `_.isEqual` which supports partial comparisons
2439
+ * and tracks traversed objects.
2440
+ *
2441
+ * @private
2442
+ * @param {*} value The value to compare.
2443
+ * @param {*} other The other value to compare.
2444
+ * @param {boolean} bitmask The bitmask flags.
2445
+ * 1 - Unordered comparison
2446
+ * 2 - Partial comparison
2447
+ * @param {Function} [customizer] The function to customize comparisons.
2448
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
2449
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
2450
+ */
2451
+ function baseIsEqual$2(value, other, bitmask, customizer, stack) {
2452
+ if (value === other) {
2453
+ return true;
2454
+ }
2455
+ if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
2456
+ return value !== value && other !== other;
2457
+ }
2458
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);
2459
+ }
2460
+
2461
+ var _baseIsEqual = baseIsEqual$2;
2462
+
2463
+ var Stack = _Stack,
2464
+ baseIsEqual$1 = _baseIsEqual;
2465
+
2466
+ /** Used to compose bitmasks for value comparisons. */
2467
+ var COMPARE_PARTIAL_FLAG$1 = 1,
2468
+ COMPARE_UNORDERED_FLAG$1 = 2;
2469
+
2470
+ /**
2471
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
2472
+ *
2473
+ * @private
2474
+ * @param {Object} object The object to inspect.
2475
+ * @param {Object} source The object of property values to match.
2476
+ * @param {Array} matchData The property names, values, and compare flags to match.
2477
+ * @param {Function} [customizer] The function to customize comparisons.
2478
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
2479
+ */
2480
+ function baseIsMatch$1(object, source, matchData, customizer) {
2481
+ var index = matchData.length,
2482
+ length = index,
2483
+ noCustomizer = !customizer;
2484
+
2485
+ if (object == null) {
2486
+ return !length;
2487
+ }
2488
+ object = Object(object);
2489
+ while (index--) {
2490
+ var data = matchData[index];
2491
+ if ((noCustomizer && data[2])
2492
+ ? data[1] !== object[data[0]]
2493
+ : !(data[0] in object)
2494
+ ) {
2495
+ return false;
2496
+ }
2497
+ }
2498
+ while (++index < length) {
2499
+ data = matchData[index];
2500
+ var key = data[0],
2501
+ objValue = object[key],
2502
+ srcValue = data[1];
2503
+
2504
+ if (noCustomizer && data[2]) {
2505
+ if (objValue === undefined && !(key in object)) {
2506
+ return false;
2507
+ }
2508
+ } else {
2509
+ var stack = new Stack;
2510
+ if (customizer) {
2511
+ var result = customizer(objValue, srcValue, key, object, source, stack);
2512
+ }
2513
+ if (!(result === undefined
2514
+ ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
2515
+ : result
2516
+ )) {
2517
+ return false;
2518
+ }
2519
+ }
2520
+ }
2521
+ return true;
2522
+ }
2523
+
2524
+ var _baseIsMatch = baseIsMatch$1;
2525
+
2526
+ var isObject$1 = toNumber$1.isObject_1;
2527
+
2528
+ /**
2529
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
2530
+ *
2531
+ * @private
2532
+ * @param {*} value The value to check.
2533
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
2534
+ * equality comparisons, else `false`.
2535
+ */
2536
+ function isStrictComparable$2(value) {
2537
+ return value === value && !isObject$1(value);
2538
+ }
2539
+
2540
+ var _isStrictComparable = isStrictComparable$2;
2541
+
2542
+ var isStrictComparable$1 = _isStrictComparable,
2543
+ keys$1 = keys_1;
2544
+
2545
+ /**
2546
+ * Gets the property names, values, and compare flags of `object`.
2547
+ *
2548
+ * @private
2549
+ * @param {Object} object The object to query.
2550
+ * @returns {Array} Returns the match data of `object`.
2551
+ */
2552
+ function getMatchData$1(object) {
2553
+ var result = keys$1(object),
2554
+ length = result.length;
2555
+
2556
+ while (length--) {
2557
+ var key = result[length],
2558
+ value = object[key];
2559
+
2560
+ result[length] = [key, value, isStrictComparable$1(value)];
2561
+ }
2562
+ return result;
2563
+ }
2564
+
2565
+ var _getMatchData = getMatchData$1;
2566
+
2567
+ /**
2568
+ * A specialized version of `matchesProperty` for source values suitable
2569
+ * for strict equality comparisons, i.e. `===`.
2570
+ *
2571
+ * @private
2572
+ * @param {string} key The key of the property to get.
2573
+ * @param {*} srcValue The value to match.
2574
+ * @returns {Function} Returns the new spec function.
2575
+ */
2576
+
2577
+ function matchesStrictComparable$2(key, srcValue) {
2578
+ return function(object) {
2579
+ if (object == null) {
2580
+ return false;
2581
+ }
2582
+ return object[key] === srcValue &&
2583
+ (srcValue !== undefined || (key in Object(object)));
2584
+ };
2585
+ }
2586
+
2587
+ var _matchesStrictComparable = matchesStrictComparable$2;
2588
+
2589
+ var baseIsMatch = _baseIsMatch,
2590
+ getMatchData = _getMatchData,
2591
+ matchesStrictComparable$1 = _matchesStrictComparable;
2592
+
2593
+ /**
2594
+ * The base implementation of `_.matches` which doesn't clone `source`.
2595
+ *
2596
+ * @private
2597
+ * @param {Object} source The object of property values to match.
2598
+ * @returns {Function} Returns the new spec function.
2599
+ */
2600
+ function baseMatches$1(source) {
2601
+ var matchData = getMatchData(source);
2602
+ if (matchData.length == 1 && matchData[0][2]) {
2603
+ return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
2604
+ }
2605
+ return function(object) {
2606
+ return object === source || baseIsMatch(object, source, matchData);
2607
+ };
2608
+ }
2609
+
2610
+ var _baseMatches = baseMatches$1;
2611
+
2612
+ var isArray$6 = isArray_1,
2613
+ isSymbol$4 = toNumber$1.isSymbol_1;
2614
+
2615
+ /** Used to match property names within property paths. */
2616
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
2617
+ reIsPlainProp = /^\w*$/;
2618
+
2619
+ /**
2620
+ * Checks if `value` is a property name and not a property path.
2621
+ *
2622
+ * @private
2623
+ * @param {*} value The value to check.
2624
+ * @param {Object} [object] The object to query keys on.
2625
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
2626
+ */
2627
+ function isKey$3(value, object) {
2628
+ if (isArray$6(value)) {
2629
+ return false;
2630
+ }
2631
+ var type = typeof value;
2632
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
2633
+ value == null || isSymbol$4(value)) {
2634
+ return true;
2635
+ }
2636
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
2637
+ (object != null && value in Object(object));
2638
+ }
2639
+
2640
+ var _isKey = isKey$3;
2641
+
2642
+ var MapCache = _MapCache;
2643
+
2644
+ /** Error message constants. */
2645
+ var FUNC_ERROR_TEXT = 'Expected a function';
2646
+
2647
+ /**
2648
+ * Creates a function that memoizes the result of `func`. If `resolver` is
2649
+ * provided, it determines the cache key for storing the result based on the
2650
+ * arguments provided to the memoized function. By default, the first argument
2651
+ * provided to the memoized function is used as the map cache key. The `func`
2652
+ * is invoked with the `this` binding of the memoized function.
2653
+ *
2654
+ * **Note:** The cache is exposed as the `cache` property on the memoized
2655
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
2656
+ * constructor with one whose instances implement the
2657
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2658
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2659
+ *
2660
+ * @static
2661
+ * @memberOf _
2662
+ * @since 0.1.0
2663
+ * @category Function
2664
+ * @param {Function} func The function to have its output memoized.
2665
+ * @param {Function} [resolver] The function to resolve the cache key.
2666
+ * @returns {Function} Returns the new memoized function.
2667
+ * @example
2668
+ *
2669
+ * var object = { 'a': 1, 'b': 2 };
2670
+ * var other = { 'c': 3, 'd': 4 };
2671
+ *
2672
+ * var values = _.memoize(_.values);
2673
+ * values(object);
2674
+ * // => [1, 2]
2675
+ *
2676
+ * values(other);
2677
+ * // => [3, 4]
2678
+ *
2679
+ * object.a = 2;
2680
+ * values(object);
2681
+ * // => [1, 2]
2682
+ *
2683
+ * // Modify the result cache.
2684
+ * values.cache.set(object, ['a', 'b']);
2685
+ * values(object);
2686
+ * // => ['a', 'b']
2687
+ *
2688
+ * // Replace `_.memoize.Cache`.
2689
+ * _.memoize.Cache = WeakMap;
2690
+ */
2691
+ function memoize$1(func, resolver) {
2692
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2693
+ throw new TypeError(FUNC_ERROR_TEXT);
2694
+ }
2695
+ var memoized = function() {
2696
+ var args = arguments,
2697
+ key = resolver ? resolver.apply(this, args) : args[0],
2698
+ cache = memoized.cache;
2699
+
2700
+ if (cache.has(key)) {
2701
+ return cache.get(key);
2702
+ }
2703
+ var result = func.apply(this, args);
2704
+ memoized.cache = cache.set(key, result) || cache;
2705
+ return result;
2706
+ };
2707
+ memoized.cache = new (memoize$1.Cache || MapCache);
2708
+ return memoized;
2709
+ }
2710
+
2711
+ // Expose `MapCache`.
2712
+ memoize$1.Cache = MapCache;
2713
+
2714
+ var memoize_1 = memoize$1;
2715
+
2716
+ var memoize = memoize_1;
2717
+
2718
+ /** Used as the maximum memoize cache size. */
2719
+ var MAX_MEMOIZE_SIZE = 500;
2720
+
2721
+ /**
2722
+ * A specialized version of `_.memoize` which clears the memoized function's
2723
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2724
+ *
2725
+ * @private
2726
+ * @param {Function} func The function to have its output memoized.
2727
+ * @returns {Function} Returns the new memoized function.
2728
+ */
2729
+ function memoizeCapped$1(func) {
2730
+ var result = memoize(func, function(key) {
2731
+ if (cache.size === MAX_MEMOIZE_SIZE) {
2732
+ cache.clear();
2733
+ }
2734
+ return key;
2735
+ });
2736
+
2737
+ var cache = result.cache;
2738
+ return result;
2739
+ }
2740
+
2741
+ var _memoizeCapped = memoizeCapped$1;
2742
+
2743
+ var memoizeCapped = _memoizeCapped;
2744
+
2745
+ /** Used to match property names within property paths. */
2746
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2747
+
2748
+ /** Used to match backslashes in property paths. */
2749
+ var reEscapeChar = /\\(\\)?/g;
2750
+
2751
+ /**
2752
+ * Converts `string` to a property path array.
2753
+ *
2754
+ * @private
2755
+ * @param {string} string The string to convert.
2756
+ * @returns {Array} Returns the property path array.
2757
+ */
2758
+ var stringToPath$1 = memoizeCapped(function(string) {
2759
+ var result = [];
2760
+ if (string.charCodeAt(0) === 46 /* . */) {
2761
+ result.push('');
2762
+ }
2763
+ string.replace(rePropName, function(match, number, quote, subString) {
2764
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2765
+ });
2766
+ return result;
2767
+ });
2768
+
2769
+ var _stringToPath = stringToPath$1;
2770
+
2771
+ /**
2772
+ * A specialized version of `_.map` for arrays without support for iteratee
2773
+ * shorthands.
2774
+ *
2775
+ * @private
2776
+ * @param {Array} [array] The array to iterate over.
2777
+ * @param {Function} iteratee The function invoked per iteration.
2778
+ * @returns {Array} Returns the new mapped array.
2779
+ */
2780
+
2781
+ function arrayMap$1(array, iteratee) {
2782
+ var index = -1,
2783
+ length = array == null ? 0 : array.length,
2784
+ result = Array(length);
2785
+
2786
+ while (++index < length) {
2787
+ result[index] = iteratee(array[index], index, array);
2788
+ }
2789
+ return result;
2790
+ }
2791
+
2792
+ var _arrayMap = arrayMap$1;
2793
+
2794
+ var Symbol = toNumber$1._Symbol,
2795
+ arrayMap = _arrayMap,
2796
+ isArray$5 = isArray_1,
2797
+ isSymbol$3 = toNumber$1.isSymbol_1;
2798
+
2799
+ /** Used as references for various `Number` constants. */
2800
+ var INFINITY$2 = 1 / 0;
2801
+
2802
+ /** Used to convert symbols to primitives and strings. */
2803
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
2804
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
2805
+
2806
+ /**
2807
+ * The base implementation of `_.toString` which doesn't convert nullish
2808
+ * values to empty strings.
2809
+ *
2810
+ * @private
2811
+ * @param {*} value The value to process.
2812
+ * @returns {string} Returns the string.
2813
+ */
2814
+ function baseToString$1(value) {
2815
+ // Exit early for strings to avoid a performance hit in some environments.
2816
+ if (typeof value == 'string') {
2817
+ return value;
2818
+ }
2819
+ if (isArray$5(value)) {
2820
+ // Recursively convert values (susceptible to call stack limits).
2821
+ return arrayMap(value, baseToString$1) + '';
2822
+ }
2823
+ if (isSymbol$3(value)) {
2824
+ return symbolToString ? symbolToString.call(value) : '';
2825
+ }
2826
+ var result = (value + '');
2827
+ return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
2828
+ }
2829
+
2830
+ var _baseToString = baseToString$1;
2831
+
2832
+ var baseToString = _baseToString;
2833
+
2834
+ /**
2835
+ * Converts `value` to a string. An empty string is returned for `null`
2836
+ * and `undefined` values. The sign of `-0` is preserved.
2837
+ *
2838
+ * @static
2839
+ * @memberOf _
2840
+ * @since 4.0.0
2841
+ * @category Lang
2842
+ * @param {*} value The value to convert.
2843
+ * @returns {string} Returns the converted string.
2844
+ * @example
2845
+ *
2846
+ * _.toString(null);
2847
+ * // => ''
2848
+ *
2849
+ * _.toString(-0);
2850
+ * // => '-0'
2851
+ *
2852
+ * _.toString([1, 2, 3]);
2853
+ * // => '1,2,3'
2854
+ */
2855
+ function toString$1(value) {
2856
+ return value == null ? '' : baseToString(value);
2857
+ }
2858
+
2859
+ var toString_1 = toString$1;
2860
+
2861
+ var isArray$4 = isArray_1,
2862
+ isKey$2 = _isKey,
2863
+ stringToPath = _stringToPath,
2864
+ toString = toString_1;
2865
+
2866
+ /**
2867
+ * Casts `value` to a path array if it's not one.
2868
+ *
2869
+ * @private
2870
+ * @param {*} value The value to inspect.
2871
+ * @param {Object} [object] The object to query keys on.
2872
+ * @returns {Array} Returns the cast property path array.
2873
+ */
2874
+ function castPath$2(value, object) {
2875
+ if (isArray$4(value)) {
2876
+ return value;
2877
+ }
2878
+ return isKey$2(value, object) ? [value] : stringToPath(toString(value));
2879
+ }
2880
+
2881
+ var _castPath = castPath$2;
2882
+
2883
+ var isSymbol$2 = toNumber$1.isSymbol_1;
2884
+
2885
+ /** Used as references for various `Number` constants. */
2886
+ var INFINITY$1 = 1 / 0;
2887
+
2888
+ /**
2889
+ * Converts `value` to a string key if it's not a string or symbol.
2890
+ *
2891
+ * @private
2892
+ * @param {*} value The value to inspect.
2893
+ * @returns {string|symbol} Returns the key.
2894
+ */
2895
+ function toKey$4(value) {
2896
+ if (typeof value == 'string' || isSymbol$2(value)) {
2897
+ return value;
2898
+ }
2899
+ var result = (value + '');
2900
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2901
+ }
2902
+
2903
+ var _toKey = toKey$4;
2904
+
2905
+ var castPath$1 = _castPath,
2906
+ toKey$3 = _toKey;
2907
+
2908
+ /**
2909
+ * The base implementation of `_.get` without support for default values.
2910
+ *
2911
+ * @private
2912
+ * @param {Object} object The object to query.
2913
+ * @param {Array|string} path The path of the property to get.
2914
+ * @returns {*} Returns the resolved value.
2915
+ */
2916
+ function baseGet$2(object, path) {
2917
+ path = castPath$1(path, object);
2918
+
2919
+ var index = 0,
2920
+ length = path.length;
2921
+
2922
+ while (object != null && index < length) {
2923
+ object = object[toKey$3(path[index++])];
2924
+ }
2925
+ return (index && index == length) ? object : undefined;
2926
+ }
2927
+
2928
+ var _baseGet = baseGet$2;
2929
+
2930
+ var baseGet$1 = _baseGet;
2931
+
2932
+ /**
2933
+ * Gets the value at `path` of `object`. If the resolved value is
2934
+ * `undefined`, the `defaultValue` is returned in its place.
2935
+ *
2936
+ * @static
2937
+ * @memberOf _
2938
+ * @since 3.7.0
2939
+ * @category Object
2940
+ * @param {Object} object The object to query.
2941
+ * @param {Array|string} path The path of the property to get.
2942
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2943
+ * @returns {*} Returns the resolved value.
2944
+ * @example
2945
+ *
2946
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2947
+ *
2948
+ * _.get(object, 'a[0].b.c');
2949
+ * // => 3
2950
+ *
2951
+ * _.get(object, ['a', '0', 'b', 'c']);
2952
+ * // => 3
2953
+ *
2954
+ * _.get(object, 'a.b.c', 'default');
2955
+ * // => 'default'
2956
+ */
2957
+ function get$1(object, path, defaultValue) {
2958
+ var result = object == null ? undefined : baseGet$1(object, path);
2959
+ return result === undefined ? defaultValue : result;
2960
+ }
2961
+
2962
+ var get_1 = get$1;
2963
+
2964
+ /**
2965
+ * The base implementation of `_.hasIn` without support for deep paths.
2966
+ *
2967
+ * @private
2968
+ * @param {Object} [object] The object to query.
2969
+ * @param {Array|string} key The key to check.
2970
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
2971
+ */
2972
+
2973
+ function baseHasIn$1(object, key) {
2974
+ return object != null && key in Object(object);
2975
+ }
2976
+
2977
+ var _baseHasIn = baseHasIn$1;
2978
+
2979
+ var castPath = _castPath,
2980
+ isArguments = isArguments_1,
2981
+ isArray$3 = isArray_1,
2982
+ isIndex$1 = _isIndex,
2983
+ isLength = isLength_1,
2984
+ toKey$2 = _toKey;
2985
+
2986
+ /**
2987
+ * Checks if `path` exists on `object`.
2988
+ *
2989
+ * @private
2990
+ * @param {Object} object The object to query.
2991
+ * @param {Array|string} path The path to check.
2992
+ * @param {Function} hasFunc The function to check properties.
2993
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2994
+ */
2995
+ function hasPath$1(object, path, hasFunc) {
2996
+ path = castPath(path, object);
2997
+
2998
+ var index = -1,
2999
+ length = path.length,
3000
+ result = false;
3001
+
3002
+ while (++index < length) {
3003
+ var key = toKey$2(path[index]);
3004
+ if (!(result = object != null && hasFunc(object, key))) {
3005
+ break;
3006
+ }
3007
+ object = object[key];
3008
+ }
3009
+ if (result || ++index != length) {
3010
+ return result;
3011
+ }
3012
+ length = object == null ? 0 : object.length;
3013
+ return !!length && isLength(length) && isIndex$1(key, length) &&
3014
+ (isArray$3(object) || isArguments(object));
3015
+ }
3016
+
3017
+ var _hasPath = hasPath$1;
3018
+
3019
+ var baseHasIn = _baseHasIn,
3020
+ hasPath = _hasPath;
3021
+
3022
+ /**
3023
+ * Checks if `path` is a direct or inherited property of `object`.
3024
+ *
3025
+ * @static
3026
+ * @memberOf _
3027
+ * @since 4.0.0
3028
+ * @category Object
3029
+ * @param {Object} object The object to query.
3030
+ * @param {Array|string} path The path to check.
3031
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
3032
+ * @example
3033
+ *
3034
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
3035
+ *
3036
+ * _.hasIn(object, 'a');
3037
+ * // => true
3038
+ *
3039
+ * _.hasIn(object, 'a.b');
3040
+ * // => true
3041
+ *
3042
+ * _.hasIn(object, ['a', 'b']);
3043
+ * // => true
3044
+ *
3045
+ * _.hasIn(object, 'b');
3046
+ * // => false
3047
+ */
3048
+ function hasIn$1(object, path) {
3049
+ return object != null && hasPath(object, path, baseHasIn);
3050
+ }
3051
+
3052
+ var hasIn_1 = hasIn$1;
3053
+
3054
+ var baseIsEqual = _baseIsEqual,
3055
+ get = get_1,
3056
+ hasIn = hasIn_1,
3057
+ isKey$1 = _isKey,
3058
+ isStrictComparable = _isStrictComparable,
3059
+ matchesStrictComparable = _matchesStrictComparable,
3060
+ toKey$1 = _toKey;
3061
+
3062
+ /** Used to compose bitmasks for value comparisons. */
3063
+ var COMPARE_PARTIAL_FLAG = 1,
3064
+ COMPARE_UNORDERED_FLAG = 2;
3065
+
3066
+ /**
3067
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
3068
+ *
3069
+ * @private
3070
+ * @param {string} path The path of the property to get.
3071
+ * @param {*} srcValue The value to match.
3072
+ * @returns {Function} Returns the new spec function.
3073
+ */
3074
+ function baseMatchesProperty$1(path, srcValue) {
3075
+ if (isKey$1(path) && isStrictComparable(srcValue)) {
3076
+ return matchesStrictComparable(toKey$1(path), srcValue);
3077
+ }
3078
+ return function(object) {
3079
+ var objValue = get(object, path);
3080
+ return (objValue === undefined && objValue === srcValue)
3081
+ ? hasIn(object, path)
3082
+ : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
3083
+ };
3084
+ }
3085
+
3086
+ var _baseMatchesProperty = baseMatchesProperty$1;
3087
+
3088
+ /**
3089
+ * This method returns the first argument it receives.
3090
+ *
3091
+ * @static
3092
+ * @since 0.1.0
3093
+ * @memberOf _
3094
+ * @category Util
3095
+ * @param {*} value Any value.
3096
+ * @returns {*} Returns `value`.
3097
+ * @example
3098
+ *
3099
+ * var object = { 'a': 1 };
3100
+ *
3101
+ * console.log(_.identity(object) === object);
3102
+ * // => true
3103
+ */
3104
+
3105
+ function identity$3(value) {
3106
+ return value;
3107
+ }
3108
+
3109
+ var identity_1 = identity$3;
3110
+
3111
+ /**
3112
+ * The base implementation of `_.property` without support for deep paths.
3113
+ *
3114
+ * @private
3115
+ * @param {string} key The key of the property to get.
3116
+ * @returns {Function} Returns the new accessor function.
3117
+ */
3118
+
3119
+ function baseProperty$1(key) {
3120
+ return function(object) {
3121
+ return object == null ? undefined : object[key];
3122
+ };
3123
+ }
3124
+
3125
+ var _baseProperty = baseProperty$1;
3126
+
3127
+ var baseGet = _baseGet;
3128
+
3129
+ /**
3130
+ * A specialized version of `baseProperty` which supports deep paths.
3131
+ *
3132
+ * @private
3133
+ * @param {Array|string} path The path of the property to get.
3134
+ * @returns {Function} Returns the new accessor function.
3135
+ */
3136
+ function basePropertyDeep$1(path) {
3137
+ return function(object) {
3138
+ return baseGet(object, path);
3139
+ };
3140
+ }
3141
+
3142
+ var _basePropertyDeep = basePropertyDeep$1;
3143
+
3144
+ var baseProperty = _baseProperty,
3145
+ basePropertyDeep = _basePropertyDeep,
3146
+ isKey = _isKey,
3147
+ toKey = _toKey;
3148
+
3149
+ /**
3150
+ * Creates a function that returns the value at `path` of a given object.
3151
+ *
3152
+ * @static
3153
+ * @memberOf _
3154
+ * @since 2.4.0
3155
+ * @category Util
3156
+ * @param {Array|string} path The path of the property to get.
3157
+ * @returns {Function} Returns the new accessor function.
3158
+ * @example
3159
+ *
3160
+ * var objects = [
3161
+ * { 'a': { 'b': 2 } },
3162
+ * { 'a': { 'b': 1 } }
3163
+ * ];
3164
+ *
3165
+ * _.map(objects, _.property('a.b'));
3166
+ * // => [2, 1]
3167
+ *
3168
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
3169
+ * // => [1, 2]
3170
+ */
3171
+ function property$1(path) {
3172
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
3173
+ }
3174
+
3175
+ var property_1 = property$1;
3176
+
3177
+ var baseMatches = _baseMatches,
3178
+ baseMatchesProperty = _baseMatchesProperty,
3179
+ identity$2 = identity_1,
3180
+ isArray$2 = isArray_1,
3181
+ property = property_1;
3182
+
3183
+ /**
3184
+ * The base implementation of `_.iteratee`.
3185
+ *
3186
+ * @private
3187
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
3188
+ * @returns {Function} Returns the iteratee.
3189
+ */
3190
+ function baseIteratee$2(value) {
3191
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
3192
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
3193
+ if (typeof value == 'function') {
3194
+ return value;
3195
+ }
3196
+ if (value == null) {
3197
+ return identity$2;
3198
+ }
3199
+ if (typeof value == 'object') {
3200
+ return isArray$2(value)
3201
+ ? baseMatchesProperty(value[0], value[1])
3202
+ : baseMatches(value);
3203
+ }
3204
+ return property(value);
3205
+ }
3206
+
3207
+ var _baseIteratee = baseIteratee$2;
3208
+
3209
+ var toNumber = toNumber$1.toNumber_1;
3210
+
3211
+ /** Used as references for various `Number` constants. */
3212
+ var INFINITY = 1 / 0,
3213
+ MAX_INTEGER = 1.7976931348623157e+308;
3214
+
3215
+ /**
3216
+ * Converts `value` to a finite number.
3217
+ *
3218
+ * @static
3219
+ * @memberOf _
3220
+ * @since 4.12.0
3221
+ * @category Lang
3222
+ * @param {*} value The value to convert.
3223
+ * @returns {number} Returns the converted number.
3224
+ * @example
3225
+ *
3226
+ * _.toFinite(3.2);
3227
+ * // => 3.2
3228
+ *
3229
+ * _.toFinite(Number.MIN_VALUE);
3230
+ * // => 5e-324
3231
+ *
3232
+ * _.toFinite(Infinity);
3233
+ * // => 1.7976931348623157e+308
3234
+ *
3235
+ * _.toFinite('3.2');
3236
+ * // => 3.2
3237
+ */
3238
+ function toFinite$2(value) {
3239
+ if (!value) {
3240
+ return value === 0 ? value : 0;
3241
+ }
3242
+ value = toNumber(value);
3243
+ if (value === INFINITY || value === -INFINITY) {
3244
+ var sign = (value < 0 ? -1 : 1);
3245
+ return sign * MAX_INTEGER;
3246
+ }
3247
+ return value === value ? value : 0;
3248
+ }
3249
+
3250
+ var toFinite_1 = toFinite$2;
3251
+
3252
+ var toFinite$1 = toFinite_1;
3253
+
3254
+ /**
3255
+ * Converts `value` to an integer.
3256
+ *
3257
+ * **Note:** This method is loosely based on
3258
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
3259
+ *
3260
+ * @static
3261
+ * @memberOf _
3262
+ * @since 4.0.0
3263
+ * @category Lang
3264
+ * @param {*} value The value to convert.
3265
+ * @returns {number} Returns the converted integer.
3266
+ * @example
3267
+ *
3268
+ * _.toInteger(3.2);
3269
+ * // => 3
3270
+ *
3271
+ * _.toInteger(Number.MIN_VALUE);
3272
+ * // => 0
3273
+ *
3274
+ * _.toInteger(Infinity);
3275
+ * // => 1.7976931348623157e+308
3276
+ *
3277
+ * _.toInteger('3.2');
3278
+ * // => 3
3279
+ */
3280
+ function toInteger$1(value) {
3281
+ var result = toFinite$1(value),
3282
+ remainder = result % 1;
3283
+
3284
+ return result === result ? (remainder ? result - remainder : result) : 0;
3285
+ }
3286
+
3287
+ var toInteger_1 = toInteger$1;
3288
+
3289
+ var baseFindIndex = _baseFindIndex,
3290
+ baseIteratee$1 = _baseIteratee,
3291
+ toInteger = toInteger_1;
3292
+
3293
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3294
+ var nativeMax$1 = Math.max;
3295
+
3296
+ /**
3297
+ * This method is like `_.find` except that it returns the index of the first
3298
+ * element `predicate` returns truthy for instead of the element itself.
3299
+ *
3300
+ * @static
3301
+ * @memberOf _
3302
+ * @since 1.1.0
3303
+ * @category Array
3304
+ * @param {Array} array The array to inspect.
3305
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
3306
+ * @param {number} [fromIndex=0] The index to search from.
3307
+ * @returns {number} Returns the index of the found element, else `-1`.
3308
+ * @example
3309
+ *
3310
+ * var users = [
3311
+ * { 'user': 'barney', 'active': false },
3312
+ * { 'user': 'fred', 'active': false },
3313
+ * { 'user': 'pebbles', 'active': true }
3314
+ * ];
3315
+ *
3316
+ * _.findIndex(users, function(o) { return o.user == 'barney'; });
3317
+ * // => 0
3318
+ *
3319
+ * // The `_.matches` iteratee shorthand.
3320
+ * _.findIndex(users, { 'user': 'fred', 'active': false });
3321
+ * // => 1
3322
+ *
3323
+ * // The `_.matchesProperty` iteratee shorthand.
3324
+ * _.findIndex(users, ['active', false]);
3325
+ * // => 0
3326
+ *
3327
+ * // The `_.property` iteratee shorthand.
3328
+ * _.findIndex(users, 'active');
3329
+ * // => 2
3330
+ */
3331
+ function findIndex(array, predicate, fromIndex) {
3332
+ var length = array == null ? 0 : array.length;
3333
+ if (!length) {
3334
+ return -1;
3335
+ }
3336
+ var index = fromIndex == null ? 0 : toInteger(fromIndex);
3337
+ if (index < 0) {
3338
+ index = nativeMax$1(length + index, 0);
3339
+ }
3340
+ return baseFindIndex(array, baseIteratee$1(predicate), index);
3341
+ }
3342
+
3343
+ var findIndex_1 = findIndex;
3344
+
3345
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3346
+
3347
+ var nativeCeil = Math.ceil,
3348
+ nativeMax = Math.max;
3349
+
3350
+ /**
3351
+ * The base implementation of `_.range` and `_.rangeRight` which doesn't
3352
+ * coerce arguments.
3353
+ *
3354
+ * @private
3355
+ * @param {number} start The start of the range.
3356
+ * @param {number} end The end of the range.
3357
+ * @param {number} step The value to increment or decrement by.
3358
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3359
+ * @returns {Array} Returns the range of numbers.
3360
+ */
3361
+ function baseRange$1(start, end, step, fromRight) {
3362
+ var index = -1,
3363
+ length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
3364
+ result = Array(length);
3365
+
3366
+ while (length--) {
3367
+ result[fromRight ? length : ++index] = start;
3368
+ start += step;
3369
+ }
3370
+ return result;
3371
+ }
3372
+
3373
+ var _baseRange = baseRange$1;
3374
+
3375
+ var eq = eq_1,
3376
+ isArrayLike$1 = isArrayLike_1,
3377
+ isIndex = _isIndex,
3378
+ isObject = toNumber$1.isObject_1;
3379
+
3380
+ /**
3381
+ * Checks if the given arguments are from an iteratee call.
3382
+ *
3383
+ * @private
3384
+ * @param {*} value The potential iteratee value argument.
3385
+ * @param {*} index The potential iteratee index or key argument.
3386
+ * @param {*} object The potential iteratee object argument.
3387
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
3388
+ * else `false`.
3389
+ */
3390
+ function isIterateeCall$1(value, index, object) {
3391
+ if (!isObject(object)) {
3392
+ return false;
3393
+ }
3394
+ var type = typeof index;
3395
+ if (type == 'number'
3396
+ ? (isArrayLike$1(object) && isIndex(index, object.length))
3397
+ : (type == 'string' && index in object)
3398
+ ) {
3399
+ return eq(object[index], value);
3400
+ }
3401
+ return false;
3402
+ }
3403
+
3404
+ var _isIterateeCall = isIterateeCall$1;
3405
+
3406
+ var baseRange = _baseRange,
3407
+ isIterateeCall = _isIterateeCall,
3408
+ toFinite = toFinite_1;
3409
+
3410
+ /**
3411
+ * Creates a `_.range` or `_.rangeRight` function.
3412
+ *
3413
+ * @private
3414
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3415
+ * @returns {Function} Returns the new range function.
3416
+ */
3417
+ function createRange$1(fromRight) {
3418
+ return function(start, end, step) {
3419
+ if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
3420
+ end = step = undefined;
3421
+ }
3422
+ // Ensure the sign of `-0` is preserved.
3423
+ start = toFinite(start);
3424
+ if (end === undefined) {
3425
+ end = start;
3426
+ start = 0;
3427
+ } else {
3428
+ end = toFinite(end);
3429
+ }
3430
+ step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
3431
+ return baseRange(start, end, step, fromRight);
3432
+ };
3433
+ }
3434
+
3435
+ var _createRange = createRange$1;
3436
+
3437
+ var createRange = _createRange;
3438
+
3439
+ /**
3440
+ * Creates an array of numbers (positive and/or negative) progressing from
3441
+ * `start` up to, but not including, `end`. A step of `-1` is used if a negative
3442
+ * `start` is specified without an `end` or `step`. If `end` is not specified,
3443
+ * it's set to `start` with `start` then set to `0`.
3444
+ *
3445
+ * **Note:** JavaScript follows the IEEE-754 standard for resolving
3446
+ * floating-point values which can produce unexpected results.
3447
+ *
3448
+ * @static
3449
+ * @since 0.1.0
3450
+ * @memberOf _
3451
+ * @category Util
3452
+ * @param {number} [start=0] The start of the range.
3453
+ * @param {number} end The end of the range.
3454
+ * @param {number} [step=1] The value to increment or decrement by.
3455
+ * @returns {Array} Returns the range of numbers.
3456
+ * @see _.inRange, _.rangeRight
3457
+ * @example
3458
+ *
3459
+ * _.range(4);
3460
+ * // => [0, 1, 2, 3]
3461
+ *
3462
+ * _.range(-4);
3463
+ * // => [0, -1, -2, -3]
3464
+ *
3465
+ * _.range(1, 5);
3466
+ * // => [1, 2, 3, 4]
3467
+ *
3468
+ * _.range(0, 20, 5);
3469
+ * // => [0, 5, 10, 15]
3470
+ *
3471
+ * _.range(0, -4, -1);
3472
+ * // => [0, -1, -2, -3]
3473
+ *
3474
+ * _.range(1, 4, 0);
3475
+ * // => [1, 1, 1]
3476
+ *
3477
+ * _.range(0);
3478
+ * // => []
3479
+ */
3480
+ var range = createRange();
3481
+
3482
+ var range_1 = range;
3483
+
3484
+ /**
3485
+ * Hide items from main collection
3486
+ * But keep them in store
3487
+ */
3488
+ const trimmedPlugin = (store) => ({
3489
+ set(k, newVal) {
3490
+ switch (k) {
3491
+ case 'trimmed':
3492
+ const proxy = store.get('proxyItems');
3493
+ const trimmed = gatherTrimmedItems(newVal);
3494
+ const newItems = proxy.reduce((result, v) => {
3495
+ // check if present in new trimmed remove from items (filter)
3496
+ if (!trimmed[v]) {
3497
+ result.push(v);
3498
+ }
3499
+ return result;
3500
+ }, []);
3501
+ store.set('items', newItems);
3502
+ break;
3503
+ }
3504
+ },
3505
+ });
3506
+ function gatherTrimmedItems(trimmedItems) {
3507
+ const trimmed = {};
3508
+ for (let trimmedKey in trimmedItems) {
3509
+ // trimmed overweight not trimmed
3510
+ for (let t in trimmedItems[trimmedKey]) {
3511
+ trimmed[t] = trimmed[t] || trimmedItems[trimmedKey][t];
3512
+ }
3513
+ }
3514
+ return trimmed;
3515
+ }
3516
+
3517
+ /** Set stores data */
3518
+ function setStore(store, data) {
3519
+ for (let key in data) {
3520
+ store.set(key, data[key]);
3521
+ }
3522
+ }
3523
+
3524
+ /**
3525
+ * Data store
3526
+ * Manage the state of a data source and provide methods for updating, adding, and refreshing the data.
3527
+ */
3528
+ class DataStore {
3529
+ get store() {
3530
+ return this.dataStore;
3531
+ }
3532
+ constructor(type, storeData) {
3533
+ const store = (this.dataStore = createStore(Object.assign({ items: [], proxyItems: [], source: [], groupingDepth: 0, groups: {}, type, trimmed: {}, groupingCustomRenderer: undefined }, storeData)));
3534
+ store.use(proxyPlugin(store));
3535
+ store.use(trimmedPlugin(store));
3536
+ }
3537
+ /**
3538
+ * full data source update
3539
+ * @param source - data column/rgRow source
3540
+ * @param grouping - grouping information if present
3541
+ */
3542
+ updateData(source, grouping, silent = false) {
3543
+ // during full update we do drop trim
3544
+ if (!silent) {
3545
+ this.store.set('trimmed', {});
3546
+ }
3547
+ // clear items
3548
+ this.store.set('items', []);
3549
+ const items = range_1(0, (source === null || source === void 0 ? void 0 : source.length) || 0);
3550
+ // set proxy first
3551
+ setStore(this.store, {
3552
+ source,
3553
+ proxyItems: [...items],
3554
+ });
3555
+ // update data items
3556
+ this.store.set('items', items);
3557
+ // apply grouping if present
3558
+ if (grouping) {
3559
+ setStore(this.store, {
3560
+ groupingDepth: grouping.depth,
3561
+ groups: grouping.groups,
3562
+ groupingCustomRenderer: grouping.customRenderer,
3563
+ });
3564
+ }
3565
+ }
3566
+ addTrimmed(some) {
3567
+ let trimmed = this.store.get('trimmed');
3568
+ trimmed = Object.assign(Object.assign({}, trimmed), some);
3569
+ setStore(this.store, { trimmed });
3570
+ }
3571
+ // local data update
3572
+ setData(input) {
3573
+ const data = Object.assign({}, input);
3574
+ setStore(this.store, data);
3575
+ }
3576
+ refresh() {
3577
+ const source = this.store.get('source');
3578
+ this.store.set('source', [...source]);
3579
+ }
3580
+ }
3581
+ /**
3582
+ * get physical index by virtual
3583
+ * @param store - store to process
3584
+ */
3585
+ function getPhysical(store, virtualIndex) {
3586
+ const items = store.get('items');
3587
+ return items[virtualIndex];
3588
+ }
3589
+ /**
3590
+ * get all visible items
3591
+ * @param store - store to process
3592
+ */
3593
+ function getVisibleSourceItem(store) {
3594
+ const source = store.get('source');
3595
+ return store.get('items').map(v => source[v]);
3596
+ }
3597
+ /**
3598
+ * get mapped item from source
3599
+ * @param store - store to process
3600
+ * @param virtualIndex - virtual index to process
3601
+ */
3602
+ const getSourceItem = (store, virtualIndex) => {
3603
+ const items = store.get('items');
3604
+ const source = store.get('source');
3605
+ return source[items[virtualIndex]];
3606
+ };
3607
+ /**
3608
+ * Apple item/model/row value to data source
3609
+ * @param store - data source with changes
3610
+ * @param modelByIndex - collection of rows/values with virtual indexes to setup/replace in store/data source
3611
+ * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
3612
+ */
3613
+ function setSourceByVirtualIndex(store, modelByIndex, mutate = true) {
3614
+ const items = store.get('items');
3615
+ const source = store.get('source');
3616
+ for (let virtualIndex in modelByIndex) {
3617
+ const realIndex = items[virtualIndex];
3618
+ source[realIndex] = modelByIndex[virtualIndex];
3619
+ }
3620
+ if (mutate) {
3621
+ store.set('source', [...source]);
3622
+ }
3623
+ }
3624
+ /**
3625
+ * set item to source
3626
+ * @param store - store to process
3627
+ * @param modelByIndex - collection of rows with physical indexes to setup
3628
+ * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
3629
+ */
3630
+ function setSourceByPhysicalIndex(store, modelByIndex, mutate = true) {
3631
+ const source = store.get('source');
3632
+ for (let index in modelByIndex) {
3633
+ source[index] = modelByIndex[index];
3634
+ }
3635
+ if (mutate) {
3636
+ store.set('source', [...source]);
3637
+ }
3638
+ }
3639
+ function setItems(store, items) {
3640
+ store.set('items', items);
3641
+ }
3642
+ function getSourceItemVirtualIndexByProp(store, prop) {
3643
+ const items = store.get('items');
3644
+ const source = store.get('source');
3645
+ const physicalIndex = findIndex_1(source, { prop });
3646
+ return items.indexOf(physicalIndex);
3647
+ }
3648
+
3649
+ /**
3650
+ * A specialized version of `_.reduce` for arrays without support for
3651
+ * iteratee shorthands.
3652
+ *
3653
+ * @private
3654
+ * @param {Array} [array] The array to iterate over.
3655
+ * @param {Function} iteratee The function invoked per iteration.
3656
+ * @param {*} [accumulator] The initial value.
3657
+ * @param {boolean} [initAccum] Specify using the first element of `array` as
3658
+ * the initial value.
3659
+ * @returns {*} Returns the accumulated value.
3660
+ */
3661
+
3662
+ function arrayReduce$1(array, iteratee, accumulator, initAccum) {
3663
+ var index = -1,
3664
+ length = array == null ? 0 : array.length;
3665
+
3666
+ if (initAccum && length) {
3667
+ accumulator = array[++index];
3668
+ }
3669
+ while (++index < length) {
3670
+ accumulator = iteratee(accumulator, array[index], index, array);
3671
+ }
3672
+ return accumulator;
3673
+ }
3674
+
3675
+ var _arrayReduce = arrayReduce$1;
3676
+
3677
+ /**
3678
+ * Creates a base function for methods like `_.forIn` and `_.forOwn`.
3679
+ *
3680
+ * @private
3681
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3682
+ * @returns {Function} Returns the new base function.
3683
+ */
3684
+
3685
+ function createBaseFor$1(fromRight) {
3686
+ return function(object, iteratee, keysFunc) {
3687
+ var index = -1,
3688
+ iterable = Object(object),
3689
+ props = keysFunc(object),
3690
+ length = props.length;
3691
+
3692
+ while (length--) {
3693
+ var key = props[fromRight ? length : ++index];
3694
+ if (iteratee(iterable[key], key, iterable) === false) {
3695
+ break;
3696
+ }
3697
+ }
3698
+ return object;
3699
+ };
3700
+ }
3701
+
3702
+ var _createBaseFor = createBaseFor$1;
3703
+
3704
+ var createBaseFor = _createBaseFor;
3705
+
3706
+ /**
3707
+ * The base implementation of `baseForOwn` which iterates over `object`
3708
+ * properties returned by `keysFunc` and invokes `iteratee` for each property.
3709
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
3710
+ *
3711
+ * @private
3712
+ * @param {Object} object The object to iterate over.
3713
+ * @param {Function} iteratee The function invoked per iteration.
3714
+ * @param {Function} keysFunc The function to get the keys of `object`.
3715
+ * @returns {Object} Returns `object`.
3716
+ */
3717
+ var baseFor$1 = createBaseFor();
3718
+
3719
+ var _baseFor = baseFor$1;
3720
+
3721
+ var baseFor = _baseFor,
3722
+ keys = keys_1;
3723
+
3724
+ /**
3725
+ * The base implementation of `_.forOwn` without support for iteratee shorthands.
3726
+ *
3727
+ * @private
3728
+ * @param {Object} object The object to iterate over.
3729
+ * @param {Function} iteratee The function invoked per iteration.
3730
+ * @returns {Object} Returns `object`.
3731
+ */
3732
+ function baseForOwn$1(object, iteratee) {
3733
+ return object && baseFor(object, iteratee, keys);
3734
+ }
3735
+
3736
+ var _baseForOwn = baseForOwn$1;
3737
+
3738
+ var isArrayLike = isArrayLike_1;
3739
+
3740
+ /**
3741
+ * Creates a `baseEach` or `baseEachRight` function.
3742
+ *
3743
+ * @private
3744
+ * @param {Function} eachFunc The function to iterate over a collection.
3745
+ * @param {boolean} [fromRight] Specify iterating from right to left.
3746
+ * @returns {Function} Returns the new base function.
3747
+ */
3748
+ function createBaseEach$1(eachFunc, fromRight) {
3749
+ return function(collection, iteratee) {
3750
+ if (collection == null) {
3751
+ return collection;
3752
+ }
3753
+ if (!isArrayLike(collection)) {
3754
+ return eachFunc(collection, iteratee);
3755
+ }
3756
+ var length = collection.length,
3757
+ index = fromRight ? length : -1,
3758
+ iterable = Object(collection);
3759
+
3760
+ while ((fromRight ? index-- : ++index < length)) {
3761
+ if (iteratee(iterable[index], index, iterable) === false) {
3762
+ break;
3763
+ }
3764
+ }
3765
+ return collection;
3766
+ };
3767
+ }
3768
+
3769
+ var _createBaseEach = createBaseEach$1;
3770
+
3771
+ var baseForOwn = _baseForOwn,
3772
+ createBaseEach = _createBaseEach;
3773
+
3774
+ /**
3775
+ * The base implementation of `_.forEach` without support for iteratee shorthands.
3776
+ *
3777
+ * @private
3778
+ * @param {Array|Object} collection The collection to iterate over.
3779
+ * @param {Function} iteratee The function invoked per iteration.
3780
+ * @returns {Array|Object} Returns `collection`.
3781
+ */
3782
+ var baseEach$2 = createBaseEach(baseForOwn);
3783
+
3784
+ var _baseEach = baseEach$2;
3785
+
3786
+ /**
3787
+ * The base implementation of `_.reduce` and `_.reduceRight`, without support
3788
+ * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
3789
+ *
3790
+ * @private
3791
+ * @param {Array|Object} collection The collection to iterate over.
3792
+ * @param {Function} iteratee The function invoked per iteration.
3793
+ * @param {*} accumulator The initial value.
3794
+ * @param {boolean} initAccum Specify using the first or last element of
3795
+ * `collection` as the initial value.
3796
+ * @param {Function} eachFunc The function to iterate over `collection`.
3797
+ * @returns {*} Returns the accumulated value.
3798
+ */
3799
+
3800
+ function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
3801
+ eachFunc(collection, function(value, index, collection) {
3802
+ accumulator = initAccum
3803
+ ? (initAccum = false, value)
3804
+ : iteratee(accumulator, value, index, collection);
3805
+ });
3806
+ return accumulator;
3807
+ }
3808
+
3809
+ var _baseReduce = baseReduce$1;
3810
+
3811
+ var arrayReduce = _arrayReduce,
3812
+ baseEach$1 = _baseEach,
3813
+ baseIteratee = _baseIteratee,
3814
+ baseReduce = _baseReduce,
3815
+ isArray$1 = isArray_1;
3816
+
3817
+ /**
3818
+ * Reduces `collection` to a value which is the accumulated result of running
3819
+ * each element in `collection` thru `iteratee`, where each successive
3820
+ * invocation is supplied the return value of the previous. If `accumulator`
3821
+ * is not given, the first element of `collection` is used as the initial
3822
+ * value. The iteratee is invoked with four arguments:
3823
+ * (accumulator, value, index|key, collection).
3824
+ *
3825
+ * Many lodash methods are guarded to work as iteratees for methods like
3826
+ * `_.reduce`, `_.reduceRight`, and `_.transform`.
3827
+ *
3828
+ * The guarded methods are:
3829
+ * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
3830
+ * and `sortBy`
3831
+ *
3832
+ * @static
3833
+ * @memberOf _
3834
+ * @since 0.1.0
3835
+ * @category Collection
3836
+ * @param {Array|Object} collection The collection to iterate over.
3837
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3838
+ * @param {*} [accumulator] The initial value.
3839
+ * @returns {*} Returns the accumulated value.
3840
+ * @see _.reduceRight
3841
+ * @example
3842
+ *
3843
+ * _.reduce([1, 2], function(sum, n) {
3844
+ * return sum + n;
3845
+ * }, 0);
3846
+ * // => 3
3847
+ *
3848
+ * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
3849
+ * (result[value] || (result[value] = [])).push(key);
3850
+ * return result;
3851
+ * }, {});
3852
+ * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
3853
+ */
3854
+ function reduce(collection, iteratee, accumulator) {
3855
+ var func = isArray$1(collection) ? arrayReduce : baseReduce,
3856
+ initAccum = arguments.length < 3;
3857
+
3858
+ return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
3859
+ }
3860
+
3861
+ var reduce_1 = reduce;
3862
+
3863
+ /**
3864
+ * A specialized version of `_.forEach` for arrays without support for
3865
+ * iteratee shorthands.
3866
+ *
3867
+ * @private
3868
+ * @param {Array} [array] The array to iterate over.
3869
+ * @param {Function} iteratee The function invoked per iteration.
3870
+ * @returns {Array} Returns `array`.
3871
+ */
3872
+
3873
+ function arrayEach$1(array, iteratee) {
3874
+ var index = -1,
3875
+ length = array == null ? 0 : array.length;
3876
+
3877
+ while (++index < length) {
3878
+ if (iteratee(array[index], index, array) === false) {
3879
+ break;
3880
+ }
3881
+ }
3882
+ return array;
3883
+ }
3884
+
3885
+ var _arrayEach = arrayEach$1;
3886
+
3887
+ var identity$1 = identity_1;
3888
+
3889
+ /**
3890
+ * Casts `value` to `identity` if it's not a function.
3891
+ *
3892
+ * @private
3893
+ * @param {*} value The value to inspect.
3894
+ * @returns {Function} Returns cast function.
3895
+ */
3896
+ function castFunction$1(value) {
3897
+ return typeof value == 'function' ? value : identity$1;
3898
+ }
3899
+
3900
+ var _castFunction = castFunction$1;
3901
+
3902
+ var arrayEach = _arrayEach,
3903
+ baseEach = _baseEach,
3904
+ castFunction = _castFunction,
3905
+ isArray = isArray_1;
3906
+
3907
+ /**
3908
+ * Iterates over elements of `collection` and invokes `iteratee` for each element.
3909
+ * The iteratee is invoked with three arguments: (value, index|key, collection).
3910
+ * Iteratee functions may exit iteration early by explicitly returning `false`.
3911
+ *
3912
+ * **Note:** As with other "Collections" methods, objects with a "length"
3913
+ * property are iterated like arrays. To avoid this behavior use `_.forIn`
3914
+ * or `_.forOwn` for object iteration.
3915
+ *
3916
+ * @static
3917
+ * @memberOf _
3918
+ * @since 0.1.0
3919
+ * @alias each
3920
+ * @category Collection
3921
+ * @param {Array|Object} collection The collection to iterate over.
3922
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
3923
+ * @returns {Array|Object} Returns `collection`.
3924
+ * @see _.forEachRight
3925
+ * @example
3926
+ *
3927
+ * _.forEach([1, 2], function(value) {
3928
+ * console.log(value);
3929
+ * });
3930
+ * // => Logs `1` then `2`.
3931
+ *
3932
+ * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
3933
+ * console.log(key);
3934
+ * });
3935
+ * // => Logs 'a' then 'b' (iteration order is not guaranteed).
3936
+ */
3937
+ function forEach(collection, iteratee) {
3938
+ var func = isArray(collection) ? arrayEach : baseEach;
3939
+ return func(collection, castFunction(iteratee));
3940
+ }
3941
+
3942
+ var forEach_1 = forEach;
3943
+
3944
+ var each = forEach_1;
3945
+
3946
+ var isSymbol$1 = toNumber$1.isSymbol_1;
3947
+
3948
+ /** Used as references for the maximum length and index of an array. */
3949
+ var MAX_ARRAY_LENGTH$1 = 4294967295,
3950
+ MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$1 - 1;
3951
+
3952
+ /* Built-in method references for those with the same name as other `lodash` methods. */
3953
+ var nativeFloor = Math.floor,
3954
+ nativeMin = Math.min;
3955
+
3956
+ /**
3957
+ * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
3958
+ * which invokes `iteratee` for `value` and each element of `array` to compute
3959
+ * their sort ranking. The iteratee is invoked with one argument; (value).
3960
+ *
3961
+ * @private
3962
+ * @param {Array} array The sorted array to inspect.
3963
+ * @param {*} value The value to evaluate.
3964
+ * @param {Function} iteratee The iteratee invoked per element.
3965
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
3966
+ * @returns {number} Returns the index at which `value` should be inserted
3967
+ * into `array`.
3968
+ */
3969
+ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
3970
+ var low = 0,
3971
+ high = array == null ? 0 : array.length;
3972
+ if (high === 0) {
3973
+ return 0;
3974
+ }
3975
+
3976
+ value = iteratee(value);
3977
+ var valIsNaN = value !== value,
3978
+ valIsNull = value === null,
3979
+ valIsSymbol = isSymbol$1(value),
3980
+ valIsUndefined = value === undefined;
3981
+
3982
+ while (low < high) {
3983
+ var mid = nativeFloor((low + high) / 2),
3984
+ computed = iteratee(array[mid]),
3985
+ othIsDefined = computed !== undefined,
3986
+ othIsNull = computed === null,
3987
+ othIsReflexive = computed === computed,
3988
+ othIsSymbol = isSymbol$1(computed);
3989
+
3990
+ if (valIsNaN) {
3991
+ var setLow = retHighest || othIsReflexive;
3992
+ } else if (valIsUndefined) {
3993
+ setLow = othIsReflexive && (retHighest || othIsDefined);
3994
+ } else if (valIsNull) {
3995
+ setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
3996
+ } else if (valIsSymbol) {
3997
+ setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
3998
+ } else if (othIsNull || othIsSymbol) {
3999
+ setLow = false;
4000
+ } else {
4001
+ setLow = retHighest ? (computed <= value) : (computed < value);
4002
+ }
4003
+ if (setLow) {
4004
+ low = mid + 1;
4005
+ } else {
4006
+ high = mid;
4007
+ }
4008
+ }
4009
+ return nativeMin(high, MAX_ARRAY_INDEX);
4010
+ }
4011
+
4012
+ var _baseSortedIndexBy = baseSortedIndexBy$1;
4013
+
4014
+ var baseSortedIndexBy = _baseSortedIndexBy,
4015
+ identity = identity_1,
4016
+ isSymbol = toNumber$1.isSymbol_1;
4017
+
4018
+ /** Used as references for the maximum length and index of an array. */
4019
+ var MAX_ARRAY_LENGTH = 4294967295,
4020
+ HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
4021
+
4022
+ /**
4023
+ * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
4024
+ * performs a binary search of `array` to determine the index at which `value`
4025
+ * should be inserted into `array` in order to maintain its sort order.
4026
+ *
4027
+ * @private
4028
+ * @param {Array} array The sorted array to inspect.
4029
+ * @param {*} value The value to evaluate.
4030
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
4031
+ * @returns {number} Returns the index at which `value` should be inserted
4032
+ * into `array`.
4033
+ */
4034
+ function baseSortedIndex$1(array, value, retHighest) {
4035
+ var low = 0,
4036
+ high = array == null ? low : array.length;
4037
+
4038
+ if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
4039
+ while (low < high) {
4040
+ var mid = (low + high) >>> 1,
4041
+ computed = array[mid];
4042
+
4043
+ if (computed !== null && !isSymbol(computed) &&
4044
+ (retHighest ? (computed <= value) : (computed < value))) {
4045
+ low = mid + 1;
4046
+ } else {
4047
+ high = mid;
4048
+ }
4049
+ }
4050
+ return high;
4051
+ }
4052
+ return baseSortedIndexBy(array, value, identity, retHighest);
4053
+ }
4054
+
4055
+ var _baseSortedIndex = baseSortedIndex$1;
4056
+
4057
+ var baseSortedIndex = _baseSortedIndex;
4058
+
4059
+ /**
4060
+ * Uses a binary search to determine the lowest index at which `value`
4061
+ * should be inserted into `array` in order to maintain its sort order.
4062
+ *
4063
+ * @static
4064
+ * @memberOf _
4065
+ * @since 0.1.0
4066
+ * @category Array
4067
+ * @param {Array} array The sorted array to inspect.
4068
+ * @param {*} value The value to evaluate.
4069
+ * @returns {number} Returns the index at which `value` should be inserted
4070
+ * into `array`.
4071
+ * @example
4072
+ *
4073
+ * _.sortedIndex([30, 50], 40);
4074
+ * // => 1
4075
+ */
4076
+ function sortedIndex(array, value) {
4077
+ return baseSortedIndex(array, value);
4078
+ }
4079
+
4080
+ var sortedIndex_1 = sortedIndex;
4081
+
4082
+ /**
4083
+ * Pre-calculation
4084
+ * Dimension custom sizes for each cell
4085
+ * Keeps only changed sizes, skips origin size
4086
+ */
4087
+ function calculateDimensionData(originItemSize, newSizes = {}) {
4088
+ const positionIndexes = [];
4089
+ const positionIndexToItem = {};
4090
+ const indexToItem = {};
4091
+ // combine all new sizes
4092
+ const sizes = Object.assign({}, newSizes);
4093
+ // prepare order sorted new sizes and calculate changed real size
4094
+ let newIndexes = [];
4095
+ each(newSizes, (_, i) => {
4096
+ const index = parseInt(i, 10);
4097
+ newIndexes[sortedIndex_1(newIndexes, index)] = index;
4098
+ });
4099
+ // fill new coordinates based on what is changed
4100
+ reduce_1(newIndexes, (previous, itemIndex, i) => {
4101
+ const newItem = {
4102
+ itemIndex,
4103
+ start: 0,
4104
+ end: 0,
4105
+ };
4106
+ // if previous item was changed too
4107
+ if (previous) {
4108
+ const itemsBetween = (itemIndex - previous.itemIndex - 1) * originItemSize;
4109
+ newItem.start = itemsBetween + previous.end;
4110
+ }
4111
+ else {
4112
+ newItem.start = itemIndex * originItemSize;
4113
+ }
4114
+ newItem.end = newItem.start + sizes[itemIndex];
4115
+ positionIndexes.push(newItem.start);
4116
+ indexToItem[itemIndex] = positionIndexToItem[i] = newItem;
4117
+ return newItem;
4118
+ }, undefined);
4119
+ return {
4120
+ indexes: newIndexes,
4121
+ positionIndexes: [...positionIndexes],
4122
+ positionIndexToItem: Object.assign({}, positionIndexToItem),
4123
+ indexToItem,
4124
+ sizes,
4125
+ };
4126
+ }
4127
+ /**
4128
+ * Calculate item by position
4129
+ */
4130
+ const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionIndexToItem, }, pos) => {
4131
+ const item = {
4132
+ itemIndex: 0,
4133
+ start: 0,
4134
+ end: 0,
4135
+ };
4136
+ const currentPlace = indexes.length ? sortedIndex_1(positionIndexes, pos) : 0;
4137
+ // not found or first index
4138
+ if (!currentPlace) {
4139
+ item.itemIndex = Math.floor(pos / originItemSize);
4140
+ item.start = item.itemIndex * originItemSize;
4141
+ item.end = item.start + originItemSize;
4142
+ return item;
4143
+ }
4144
+ const positionItem = positionIndexToItem[currentPlace - 1];
4145
+ // if item has specified size
4146
+ if (positionItem.end > pos) {
4147
+ return positionItem;
4148
+ }
4149
+ // special size item was present before
4150
+ const relativePos = pos - positionItem.end;
4151
+ const relativeIndex = Math.floor(relativePos / originItemSize);
4152
+ item.itemIndex = positionItem.itemIndex + 1 + relativeIndex;
4153
+ item.start = positionItem.end + relativeIndex * originItemSize;
4154
+ item.end = item.start + originItemSize;
4155
+ return item;
4156
+ };
4157
+ function getItemByIndex(dimension, index) {
4158
+ let item = {
4159
+ itemIndex: index,
4160
+ start: 0,
4161
+ end: 0,
4162
+ };
4163
+ // if item has specified size
4164
+ if (dimension.indexToItem[index]) {
4165
+ return dimension.indexToItem[index];
4166
+ }
4167
+ const currentPlace = dimension.indexes.length
4168
+ ? sortedIndex_1(dimension.indexes, index)
4169
+ : 0;
4170
+ // not found or first index
4171
+ if (!currentPlace) {
4172
+ item.start = item.itemIndex * dimension.originItemSize;
4173
+ item.end = item.start + dimension.originItemSize;
4174
+ return item;
4175
+ }
4176
+ // special size item was present before
4177
+ const positionItem = dimension.indexToItem[dimension.indexes[currentPlace - 1]];
4178
+ item.start =
4179
+ positionItem.end +
4180
+ (index - positionItem.itemIndex - 1) * dimension.originItemSize;
4181
+ item.end = item.start + dimension.originItemSize;
4182
+ return item;
4183
+ }
4184
+
4185
+ exports.DataStore = DataStore;
4186
+ exports._arrayMap = _arrayMap;
4187
+ exports._baseEach = _baseEach;
4188
+ exports._baseIteratee = _baseIteratee;
4189
+ exports._baseKeys = _baseKeys;
4190
+ exports._baseProperty = _baseProperty;
4191
+ exports._getNative = _getNative;
4192
+ exports._getTag = _getTag;
4193
+ exports._isIterateeCall = _isIterateeCall;
4194
+ exports.calculateDimensionData = calculateDimensionData;
4195
+ exports.createStore = createStore;
4196
+ exports.each = each;
4197
+ exports.findIndex_1 = findIndex_1;
4198
+ exports.gatherTrimmedItems = gatherTrimmedItems;
4199
+ exports.getItemByIndex = getItemByIndex;
4200
+ exports.getItemByPosition = getItemByPosition;
4201
+ exports.getPhysical = getPhysical;
4202
+ exports.getSourceItem = getSourceItem;
4203
+ exports.getSourceItemVirtualIndexByProp = getSourceItemVirtualIndexByProp;
4204
+ exports.getVisibleSourceItem = getVisibleSourceItem;
4205
+ exports.isArrayLike_1 = isArrayLike_1;
4206
+ exports.isArray_1 = isArray_1;
4207
+ exports.keys_1 = keys_1;
4208
+ exports.proxyPlugin = proxyPlugin;
4209
+ exports.range_1 = range_1;
4210
+ exports.reduce_1 = reduce_1;
4211
+ exports.setItems = setItems;
4212
+ exports.setSourceByPhysicalIndex = setSourceByPhysicalIndex;
4213
+ exports.setSourceByVirtualIndex = setSourceByVirtualIndex;
4214
+ exports.setStore = setStore;
4215
+ exports.toInteger_1 = toInteger_1;
4216
+ exports.trimmedPlugin = trimmedPlugin;
4217
+
4218
+ //# sourceMappingURL=dimension.helpers-ee39d6c4.js.map