lsp-grid 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/README.md +34 -0
  2. package/dist/cjs/app-globals-Bfsg1bDt.js +16 -0
  3. package/dist/cjs/app-globals-Bfsg1bDt.js.map +1 -0
  4. package/dist/cjs/cell-renderer-DtuYp7tj.js +106 -0
  5. package/dist/cjs/cell-renderer-DtuYp7tj.js.map +1 -0
  6. package/dist/cjs/column.drag.plugin-BIptTmfz.js +2554 -0
  7. package/dist/cjs/column.drag.plugin-BIptTmfz.js.map +1 -0
  8. package/dist/cjs/column.service-BnVSAfcu.js +1391 -0
  9. package/dist/cjs/column.service-BnVSAfcu.js.map +1 -0
  10. package/dist/cjs/data.store-CrF4Nf9q.js +3615 -0
  11. package/dist/cjs/data.store-CrF4Nf9q.js.map +1 -0
  12. package/dist/cjs/debounce-DgeyTQM0.js +498 -0
  13. package/dist/cjs/debounce-DgeyTQM0.js.map +1 -0
  14. package/dist/cjs/edit.utils-Bw-E3Fj6.js +118 -0
  15. package/dist/cjs/edit.utils-Bw-E3Fj6.js.map +1 -0
  16. package/dist/cjs/events-D0Syn6ut.js +46 -0
  17. package/dist/cjs/events-D0Syn6ut.js.map +1 -0
  18. package/dist/cjs/filter.button-CaAAXq-6.js +49 -0
  19. package/dist/cjs/filter.button-CaAAXq-6.js.map +1 -0
  20. package/dist/cjs/header-cell-renderer-DhRJqZ-w.js +356 -0
  21. package/dist/cjs/header-cell-renderer-DhRJqZ-w.js.map +1 -0
  22. package/dist/cjs/index-VM40U6Gh.js +2549 -0
  23. package/dist/cjs/index-VM40U6Gh.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +346 -0
  25. package/dist/cjs/index.cjs.js.map +1 -0
  26. package/dist/cjs/loader.cjs.js +19 -0
  27. package/dist/cjs/loader.cjs.js.map +1 -0
  28. package/dist/cjs/revo-grid.cjs.entry.js +2187 -0
  29. package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
  30. package/dist/cjs/revo-grid.cjs.js +31 -0
  31. package/dist/cjs/revo-grid.cjs.js.map +1 -0
  32. package/dist/cjs/revo-grid.entry.cjs.js.map +1 -0
  33. package/dist/cjs/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.cjs.js.map +1 -0
  34. package/dist/cjs/revogr-attribution_7.cjs.entry.js +1463 -0
  35. package/dist/cjs/revogr-attribution_7.cjs.entry.js.map +1 -0
  36. package/dist/cjs/revogr-clipboard.revogr-edit.revogr-order-editor.entry.cjs.js.map +1 -0
  37. package/dist/cjs/revogr-clipboard_3.cjs.entry.js +456 -0
  38. package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
  39. package/dist/cjs/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.cjs.js.map +1 -0
  40. package/dist/cjs/revogr-data_4.cjs.entry.js +948 -0
  41. package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
  42. package/dist/cjs/revogr-filter-panel.cjs.entry.js +382 -0
  43. package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
  44. package/dist/cjs/revogr-filter-panel.entry.cjs.js.map +1 -0
  45. package/dist/cjs/row-header-utils-DL640c7x.js +420 -0
  46. package/dist/cjs/row-header-utils-DL640c7x.js.map +1 -0
  47. package/dist/cjs/text-editor-DWChyeVV.js +81 -0
  48. package/dist/cjs/text-editor-DWChyeVV.js.map +1 -0
  49. package/dist/cjs/throttle-Bb1Bbfd1.js +278 -0
  50. package/dist/cjs/throttle-Bb1Bbfd1.js.map +1 -0
  51. package/dist/cjs/viewport.helpers-CI6uB8tu.js +59 -0
  52. package/dist/cjs/viewport.helpers-CI6uB8tu.js.map +1 -0
  53. package/dist/collection/collection-manifest.json +28 -0
  54. package/dist/collection/components/attribution/revogr-attribution.js +20 -0
  55. package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
  56. package/dist/collection/components/clipboard/revogr-clipboard.js +396 -0
  57. package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
  58. package/dist/collection/components/data/cell-renderer.js +44 -0
  59. package/dist/collection/components/data/cell-renderer.js.map +1 -0
  60. package/dist/collection/components/data/column.service.js +293 -0
  61. package/dist/collection/components/data/column.service.js.map +1 -0
  62. package/dist/collection/components/data/revogr-data-style.css +75 -0
  63. package/dist/collection/components/data/revogr-data.js +697 -0
  64. package/dist/collection/components/data/revogr-data.js.map +1 -0
  65. package/dist/collection/components/data/row-highlight.plugin.js +51 -0
  66. package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
  67. package/dist/collection/components/data/row-renderer.js +16 -0
  68. package/dist/collection/components/data/row-renderer.js.map +1 -0
  69. package/dist/collection/components/editors/edit.utils.js +13 -0
  70. package/dist/collection/components/editors/edit.utils.js.map +1 -0
  71. package/dist/collection/components/editors/revogr-edit-style.css +16 -0
  72. package/dist/collection/components/editors/revogr-edit.js +346 -0
  73. package/dist/collection/components/editors/revogr-edit.js.map +1 -0
  74. package/dist/collection/components/editors/text-editor.js +74 -0
  75. package/dist/collection/components/editors/text-editor.js.map +1 -0
  76. package/dist/collection/components/extra/revogr-extra.js +125 -0
  77. package/dist/collection/components/extra/revogr-extra.js.map +1 -0
  78. package/dist/collection/components/header/header-cell-renderer.js +34 -0
  79. package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
  80. package/dist/collection/components/header/header-group-renderer.js +25 -0
  81. package/dist/collection/components/header/header-group-renderer.js.map +1 -0
  82. package/dist/collection/components/header/header-renderer.js +61 -0
  83. package/dist/collection/components/header/header-renderer.js.map +1 -0
  84. package/dist/collection/components/header/resizable.directive.js +237 -0
  85. package/dist/collection/components/header/resizable.directive.js.map +1 -0
  86. package/dist/collection/components/header/resizable.element.js +38 -0
  87. package/dist/collection/components/header/resizable.element.js.map +1 -0
  88. package/dist/collection/components/header/revogr-header-style.css +144 -0
  89. package/dist/collection/components/header/revogr-header.js +573 -0
  90. package/dist/collection/components/header/revogr-header.js.map +1 -0
  91. package/dist/collection/components/order/order-renderer.js +50 -0
  92. package/dist/collection/components/order/order-renderer.js.map +1 -0
  93. package/dist/collection/components/order/order-row.service.js +72 -0
  94. package/dist/collection/components/order/order-row.service.js.map +1 -0
  95. package/dist/collection/components/order/revogr-order-editor.js +461 -0
  96. package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
  97. package/dist/collection/components/overlay/autofill.service.js +224 -0
  98. package/dist/collection/components/overlay/autofill.service.js.map +1 -0
  99. package/dist/collection/components/overlay/keyboard.service.js +158 -0
  100. package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
  101. package/dist/collection/components/overlay/revogr-overlay-selection.js +1515 -0
  102. package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
  103. package/dist/collection/components/overlay/revogr-overlay-style.css +95 -0
  104. package/dist/collection/components/overlay/selection.utils.js +136 -0
  105. package/dist/collection/components/overlay/selection.utils.js.map +1 -0
  106. package/dist/collection/components/revoGrid/grid.helpers.js +33 -0
  107. package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
  108. package/dist/collection/components/revoGrid/plugin.service.js +81 -0
  109. package/dist/collection/components/revoGrid/plugin.service.js.map +1 -0
  110. package/dist/collection/components/revoGrid/revo-grid-style.css +567 -0
  111. package/dist/collection/components/revoGrid/revo-grid.js +3671 -0
  112. package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
  113. package/dist/collection/components/revoGrid/viewport.helpers.js +49 -0
  114. package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
  115. package/dist/collection/components/revoGrid/viewport.resize.service.js +55 -0
  116. package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
  117. package/dist/collection/components/revoGrid/viewport.scrolling.service.js +90 -0
  118. package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
  119. package/dist/collection/components/revoGrid/viewport.service.js +237 -0
  120. package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
  121. package/dist/collection/components/rowHeaders/revogr-row-headers.js +291 -0
  122. package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
  123. package/dist/collection/components/rowHeaders/row-header-render.js +5 -0
  124. package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
  125. package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +69 -0
  126. package/dist/collection/components/scroll/revogr-viewport-scroll.js +601 -0
  127. package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
  128. package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
  129. package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
  130. package/dist/collection/components/scrollable/revogr-scroll-style.css +34 -0
  131. package/dist/collection/components/scrollable/revogr-scroll-virtual.js +295 -0
  132. package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
  133. package/dist/collection/components/selectionFocus/revogr-focus-style.css +7 -0
  134. package/dist/collection/components/selectionFocus/revogr-focus.js +400 -0
  135. package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
  136. package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +28 -0
  137. package/dist/collection/components/selectionTempRange/revogr-temp-range.js +171 -0
  138. package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
  139. package/dist/collection/components/vnode/vnode-converter.js +84 -0
  140. package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
  141. package/dist/collection/components/vnode/vnode.utils.js +18 -0
  142. package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
  143. package/dist/collection/global/global.js +19 -0
  144. package/dist/collection/global/global.js.map +1 -0
  145. package/dist/collection/index.js +13 -0
  146. package/dist/collection/index.js.map +1 -0
  147. package/dist/collection/plugins/add-rows-on-paste.plugin.js +40 -0
  148. package/dist/collection/plugins/add-rows-on-paste.plugin.js.map +1 -0
  149. package/dist/collection/plugins/base.plugin.js +90 -0
  150. package/dist/collection/plugins/base.plugin.js.map +1 -0
  151. package/dist/collection/plugins/column.auto-size.plugin.js +225 -0
  152. package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
  153. package/dist/collection/plugins/column.stretch.plugin.js +96 -0
  154. package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
  155. package/dist/collection/plugins/dispatcher.js +40 -0
  156. package/dist/collection/plugins/dispatcher.js.map +1 -0
  157. package/dist/collection/plugins/export/csv.js +72 -0
  158. package/dist/collection/plugins/export/csv.js.map +1 -0
  159. package/dist/collection/plugins/export/export.plugin.js +157 -0
  160. package/dist/collection/plugins/export/export.plugin.js.map +1 -0
  161. package/dist/collection/plugins/export/types.js +2 -0
  162. package/dist/collection/plugins/export/types.js.map +1 -0
  163. package/dist/collection/plugins/filter/conditions/equal.js +21 -0
  164. package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
  165. package/dist/collection/plugins/filter/conditions/number/greaterThan.js +14 -0
  166. package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
  167. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +11 -0
  168. package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
  169. package/dist/collection/plugins/filter/conditions/number/lessThan.js +16 -0
  170. package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
  171. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +11 -0
  172. package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
  173. package/dist/collection/plugins/filter/conditions/set.js +7 -0
  174. package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
  175. package/dist/collection/plugins/filter/conditions/string/beginswith.js +21 -0
  176. package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
  177. package/dist/collection/plugins/filter/conditions/string/contains.js +25 -0
  178. package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
  179. package/dist/collection/plugins/filter/filter.button.js +28 -0
  180. package/dist/collection/plugins/filter/filter.button.js.map +1 -0
  181. package/dist/collection/plugins/filter/filter.indexed.js +49 -0
  182. package/dist/collection/plugins/filter/filter.indexed.js.map +1 -0
  183. package/dist/collection/plugins/filter/filter.panel.js +610 -0
  184. package/dist/collection/plugins/filter/filter.panel.js.map +1 -0
  185. package/dist/collection/plugins/filter/filter.plugin.js +388 -0
  186. package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
  187. package/dist/collection/plugins/filter/filter.style.css +165 -0
  188. package/dist/collection/plugins/filter/filter.types.js +9 -0
  189. package/dist/collection/plugins/filter/filter.types.js.map +1 -0
  190. package/dist/collection/plugins/groupingRow/grouping.const.js +16 -0
  191. package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
  192. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
  193. package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
  194. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +245 -0
  195. package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
  196. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +38 -0
  197. package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
  198. package/dist/collection/plugins/groupingRow/grouping.row.types.js +2 -0
  199. package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
  200. package/dist/collection/plugins/groupingRow/grouping.service.js +178 -0
  201. package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
  202. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +61 -0
  203. package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
  204. package/dist/collection/plugins/index.js +15 -0
  205. package/dist/collection/plugins/index.js.map +1 -0
  206. package/dist/collection/plugins/moveColumn/column.drag.plugin.js +175 -0
  207. package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
  208. package/dist/collection/plugins/moveColumn/order-column.handler.js +71 -0
  209. package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
  210. package/dist/collection/plugins/rtl/rtl.plugin.js +110 -0
  211. package/dist/collection/plugins/rtl/rtl.plugin.js.map +1 -0
  212. package/dist/collection/plugins/sorting/sorting.func.js +82 -0
  213. package/dist/collection/plugins/sorting/sorting.func.js.map +1 -0
  214. package/dist/collection/plugins/sorting/sorting.plugin.js +224 -0
  215. package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
  216. package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
  217. package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
  218. package/dist/collection/plugins/sorting/sorting.types.js +2 -0
  219. package/dist/collection/plugins/sorting/sorting.types.js.map +1 -0
  220. package/dist/collection/plugins/wcag/index.js +84 -0
  221. package/dist/collection/plugins/wcag/index.js.map +1 -0
  222. package/dist/collection/serve/controller.js +344 -0
  223. package/dist/collection/serve/data.js +201 -0
  224. package/dist/collection/services/cell.helpers.js +12 -0
  225. package/dist/collection/services/cell.helpers.js.map +1 -0
  226. package/dist/collection/services/column.data.provider.js +119 -0
  227. package/dist/collection/services/column.data.provider.js.map +1 -0
  228. package/dist/collection/services/data.provider.js +89 -0
  229. package/dist/collection/services/data.provider.js.map +1 -0
  230. package/dist/collection/services/dimension.provider.js +176 -0
  231. package/dist/collection/services/dimension.provider.js.map +1 -0
  232. package/dist/collection/services/local.scroll.service.js +124 -0
  233. package/dist/collection/services/local.scroll.service.js.map +1 -0
  234. package/dist/collection/services/local.scroll.timer.js +81 -0
  235. package/dist/collection/services/local.scroll.timer.js.map +1 -0
  236. package/dist/collection/services/selection.store.connector.js +307 -0
  237. package/dist/collection/services/selection.store.connector.js.map +1 -0
  238. package/dist/collection/services/viewport.provider.js +17 -0
  239. package/dist/collection/services/viewport.provider.js.map +1 -0
  240. package/dist/collection/store/dataSource/data.proxy.js +45 -0
  241. package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
  242. package/dist/collection/store/dataSource/data.store.js +144 -0
  243. package/dist/collection/store/dataSource/data.store.js.map +1 -0
  244. package/dist/collection/store/dataSource/index.js +7 -0
  245. package/dist/collection/store/dataSource/index.js.map +1 -0
  246. package/dist/collection/store/dataSource/trimmed.plugin.js +34 -0
  247. package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
  248. package/dist/collection/store/dimension/dimension.helpers.js +101 -0
  249. package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
  250. package/dist/collection/store/dimension/dimension.recalculate.plugin.js +35 -0
  251. package/dist/collection/store/dimension/dimension.recalculate.plugin.js.map +1 -0
  252. package/dist/collection/store/dimension/dimension.store.js +109 -0
  253. package/dist/collection/store/dimension/dimension.store.js.map +1 -0
  254. package/dist/collection/store/dimension/dimension.trim.plugin.js +61 -0
  255. package/dist/collection/store/dimension/dimension.trim.plugin.js.map +1 -0
  256. package/dist/collection/store/dimension/index.js +6 -0
  257. package/dist/collection/store/dimension/index.js.map +1 -0
  258. package/dist/collection/store/index.js +17 -0
  259. package/dist/collection/store/index.js.map +1 -0
  260. package/dist/collection/store/selection/index.js +6 -0
  261. package/dist/collection/store/selection/index.js.map +1 -0
  262. package/dist/collection/store/selection/selection.helpers.js +53 -0
  263. package/dist/collection/store/selection/selection.helpers.js.map +1 -0
  264. package/dist/collection/store/selection/selection.store.js +85 -0
  265. package/dist/collection/store/selection/selection.store.js.map +1 -0
  266. package/dist/collection/store/vp/index.js +6 -0
  267. package/dist/collection/store/vp/index.js.map +1 -0
  268. package/dist/collection/store/vp/viewport.helpers.js +251 -0
  269. package/dist/collection/store/vp/viewport.helpers.js.map +1 -0
  270. package/dist/collection/store/vp/viewport.store.js +151 -0
  271. package/dist/collection/store/vp/viewport.store.js.map +1 -0
  272. package/dist/collection/themeManager/theme.compact.js +9 -0
  273. package/dist/collection/themeManager/theme.compact.js.map +1 -0
  274. package/dist/collection/themeManager/theme.default.js +9 -0
  275. package/dist/collection/themeManager/theme.default.js.map +1 -0
  276. package/dist/collection/themeManager/theme.material.js +9 -0
  277. package/dist/collection/themeManager/theme.material.js.map +1 -0
  278. package/dist/collection/themeManager/theme.service.js +53 -0
  279. package/dist/collection/themeManager/theme.service.js.map +1 -0
  280. package/dist/collection/types/dimension.js +2 -0
  281. package/dist/collection/types/dimension.js.map +1 -0
  282. package/dist/collection/types/events.js +118 -0
  283. package/dist/collection/types/events.js.map +1 -0
  284. package/dist/collection/types/index.js +12 -0
  285. package/dist/collection/types/index.js.map +1 -0
  286. package/dist/collection/types/interfaces.js +2 -0
  287. package/dist/collection/types/interfaces.js.map +1 -0
  288. package/dist/collection/types/plugin.js +2 -0
  289. package/dist/collection/types/plugin.js.map +1 -0
  290. package/dist/collection/types/plugin.types.js +2 -0
  291. package/dist/collection/types/plugin.types.js.map +1 -0
  292. package/dist/collection/types/selection.js +2 -0
  293. package/dist/collection/types/selection.js.map +1 -0
  294. package/dist/collection/types/theme.js +2 -0
  295. package/dist/collection/types/theme.js.map +1 -0
  296. package/dist/collection/types/viewport.interfaces.js +2 -0
  297. package/dist/collection/types/viewport.interfaces.js.map +1 -0
  298. package/dist/collection/utils/browser.js +7 -0
  299. package/dist/collection/utils/browser.js.map +1 -0
  300. package/dist/collection/utils/closest.polifill.js +22 -0
  301. package/dist/collection/utils/closest.polifill.js.map +1 -0
  302. package/dist/collection/utils/column.utils.js +153 -0
  303. package/dist/collection/utils/column.utils.js.map +1 -0
  304. package/dist/collection/utils/consts.js +26 -0
  305. package/dist/collection/utils/consts.js.map +1 -0
  306. package/dist/collection/utils/events.js +39 -0
  307. package/dist/collection/utils/events.js.map +1 -0
  308. package/dist/collection/utils/header.utils.js +24 -0
  309. package/dist/collection/utils/header.utils.js.map +1 -0
  310. package/dist/collection/utils/index.js +140 -0
  311. package/dist/collection/utils/index.js.map +1 -0
  312. package/dist/collection/utils/key.codes.js +80 -0
  313. package/dist/collection/utils/key.codes.js.map +1 -0
  314. package/dist/collection/utils/key.utils.js +90 -0
  315. package/dist/collection/utils/key.utils.js.map +1 -0
  316. package/dist/collection/utils/mobile.js +7 -0
  317. package/dist/collection/utils/mobile.js.map +1 -0
  318. package/dist/collection/utils/platform.js +9 -0
  319. package/dist/collection/utils/platform.js.map +1 -0
  320. package/dist/collection/utils/row-header-utils.js +9 -0
  321. package/dist/collection/utils/row-header-utils.js.map +1 -0
  322. package/dist/collection/utils/store.types.js +2 -0
  323. package/dist/collection/utils/store.types.js.map +1 -0
  324. package/dist/collection/utils/store.utils.js +15 -0
  325. package/dist/collection/utils/store.utils.js.map +1 -0
  326. package/dist/esm/app-globals-FBz64o-g.js +14 -0
  327. package/dist/esm/app-globals-FBz64o-g.js.map +1 -0
  328. package/dist/esm/cell-renderer-Ca_PCGjJ.js +98 -0
  329. package/dist/esm/cell-renderer-Ca_PCGjJ.js.map +1 -0
  330. package/dist/esm/column.drag.plugin-BtuUyB-2.js +2528 -0
  331. package/dist/esm/column.drag.plugin-BtuUyB-2.js.map +1 -0
  332. package/dist/esm/column.service-CTqFIQUy.js +1343 -0
  333. package/dist/esm/column.service-CTqFIQUy.js.map +1 -0
  334. package/dist/esm/data.store-B-lvmoFH.js +3553 -0
  335. package/dist/esm/data.store-B-lvmoFH.js.map +1 -0
  336. package/dist/esm/debounce-DTUQ1fY7.js +488 -0
  337. package/dist/esm/debounce-DTUQ1fY7.js.map +1 -0
  338. package/dist/esm/edit.utils-CyCANCLB.js +103 -0
  339. package/dist/esm/edit.utils-CyCANCLB.js.map +1 -0
  340. package/dist/esm/events-CKtYJJSv.js +43 -0
  341. package/dist/esm/events-CKtYJJSv.js.map +1 -0
  342. package/dist/esm/filter.button-CjABZQgg.js +39 -0
  343. package/dist/esm/filter.button-CjABZQgg.js.map +1 -0
  344. package/dist/esm/header-cell-renderer-DnjpJuXq.js +351 -0
  345. package/dist/esm/header-cell-renderer-DnjpJuXq.js.map +1 -0
  346. package/dist/esm/index-BAoInZ4V.js +2519 -0
  347. package/dist/esm/index-BAoInZ4V.js.map +1 -0
  348. package/dist/esm/index.js +181 -0
  349. package/dist/esm/index.js.map +1 -0
  350. package/dist/esm/loader.js +17 -0
  351. package/dist/esm/loader.js.map +1 -0
  352. package/dist/esm/revo-grid.entry.js +2185 -0
  353. package/dist/esm/revo-grid.entry.js.map +1 -0
  354. package/dist/esm/revo-grid.js +27 -0
  355. package/dist/esm/revo-grid.js.map +1 -0
  356. package/dist/esm/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.js.map +1 -0
  357. package/dist/esm/revogr-attribution_7.entry.js +1455 -0
  358. package/dist/esm/revogr-attribution_7.entry.js.map +1 -0
  359. package/dist/esm/revogr-clipboard.revogr-edit.revogr-order-editor.entry.js.map +1 -0
  360. package/dist/esm/revogr-clipboard_3.entry.js +452 -0
  361. package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
  362. package/dist/esm/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.js.map +1 -0
  363. package/dist/esm/revogr-data_4.entry.js +943 -0
  364. package/dist/esm/revogr-data_4.entry.js.map +1 -0
  365. package/dist/esm/revogr-filter-panel.entry.js +380 -0
  366. package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
  367. package/dist/esm/row-header-utils-vnoLGj5A.js +407 -0
  368. package/dist/esm/row-header-utils-vnoLGj5A.js.map +1 -0
  369. package/dist/esm/text-editor-Cp7lwBZi.js +79 -0
  370. package/dist/esm/text-editor-Cp7lwBZi.js.map +1 -0
  371. package/dist/esm/throttle-DiUrHjcY.js +273 -0
  372. package/dist/esm/throttle-DiUrHjcY.js.map +1 -0
  373. package/dist/esm/viewport.helpers-Ch4AQMMg.js +53 -0
  374. package/dist/esm/viewport.helpers-Ch4AQMMg.js.map +1 -0
  375. package/dist/index.cjs.js +1 -0
  376. package/dist/index.d.ts +1 -0
  377. package/dist/index.js +1 -0
  378. package/dist/revo-grid/app-globals-FBz64o-g.js +14 -0
  379. package/dist/revo-grid/app-globals-FBz64o-g.js.map +1 -0
  380. package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js +98 -0
  381. package/dist/revo-grid/cell-renderer-Ca_PCGjJ.js.map +1 -0
  382. package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js +2528 -0
  383. package/dist/revo-grid/column.drag.plugin-BtuUyB-2.js.map +1 -0
  384. package/dist/revo-grid/column.service-CTqFIQUy.js +1343 -0
  385. package/dist/revo-grid/column.service-CTqFIQUy.js.map +1 -0
  386. package/dist/revo-grid/data.store-B-lvmoFH.js +3553 -0
  387. package/dist/revo-grid/data.store-B-lvmoFH.js.map +1 -0
  388. package/dist/revo-grid/debounce-DTUQ1fY7.js +488 -0
  389. package/dist/revo-grid/debounce-DTUQ1fY7.js.map +1 -0
  390. package/dist/revo-grid/edit.utils-CyCANCLB.js +103 -0
  391. package/dist/revo-grid/edit.utils-CyCANCLB.js.map +1 -0
  392. package/dist/revo-grid/events-CKtYJJSv.js +43 -0
  393. package/dist/revo-grid/events-CKtYJJSv.js.map +1 -0
  394. package/dist/revo-grid/filter.button-CjABZQgg.js +39 -0
  395. package/dist/revo-grid/filter.button-CjABZQgg.js.map +1 -0
  396. package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js +351 -0
  397. package/dist/revo-grid/header-cell-renderer-DnjpJuXq.js.map +1 -0
  398. package/dist/revo-grid/index-BAoInZ4V.js +2490 -0
  399. package/dist/revo-grid/index-BAoInZ4V.js.map +1 -0
  400. package/dist/revo-grid/index.esm.js +181 -0
  401. package/dist/revo-grid/index.esm.js.map +1 -0
  402. package/dist/revo-grid/loader.esm.js.map +1 -0
  403. package/dist/revo-grid/revo-grid.entry.esm.js.map +1 -0
  404. package/dist/revo-grid/revo-grid.entry.js +2185 -0
  405. package/dist/revo-grid/revo-grid.entry.js.map +1 -0
  406. package/dist/revo-grid/revo-grid.esm.js +27 -0
  407. package/dist/revo-grid/revo-grid.esm.js.map +1 -0
  408. package/dist/revo-grid/revogr-attribution.revogr-extra.revogr-focus.revogr-overlay-selection.revogr-row-headers.revogr-scroll-virtual.revogr-temp-range.entry.esm.js.map +1 -0
  409. package/dist/revo-grid/revogr-attribution_7.entry.js +1455 -0
  410. package/dist/revo-grid/revogr-attribution_7.entry.js.map +1 -0
  411. package/dist/revo-grid/revogr-clipboard.revogr-edit.revogr-order-editor.entry.esm.js.map +1 -0
  412. package/dist/revo-grid/revogr-clipboard_3.entry.js +452 -0
  413. package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
  414. package/dist/revo-grid/revogr-data.revogr-header.revogr-viewport-scroll.vnode-html.entry.esm.js.map +1 -0
  415. package/dist/revo-grid/revogr-data_4.entry.js +943 -0
  416. package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
  417. package/dist/revo-grid/revogr-filter-panel.entry.esm.js.map +1 -0
  418. package/dist/revo-grid/revogr-filter-panel.entry.js +380 -0
  419. package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
  420. package/dist/revo-grid/row-header-utils-vnoLGj5A.js +407 -0
  421. package/dist/revo-grid/row-header-utils-vnoLGj5A.js.map +1 -0
  422. package/dist/revo-grid/text-editor-Cp7lwBZi.js +79 -0
  423. package/dist/revo-grid/text-editor-Cp7lwBZi.js.map +1 -0
  424. package/dist/revo-grid/throttle-DiUrHjcY.js +273 -0
  425. package/dist/revo-grid/throttle-DiUrHjcY.js.map +1 -0
  426. package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js +53 -0
  427. package/dist/revo-grid/viewport.helpers-Ch4AQMMg.js.map +1 -0
  428. package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
  429. package/dist/types/components/clipboard/revogr-clipboard.d.ts +89 -0
  430. package/dist/types/components/data/cell-renderer.d.ts +12 -0
  431. package/dist/types/components/data/column.service.d.ts +61 -0
  432. package/dist/types/components/data/revogr-data.d.ts +107 -0
  433. package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
  434. package/dist/types/components/data/row-renderer.d.ts +12 -0
  435. package/dist/types/components/editors/edit.utils.d.ts +3 -0
  436. package/dist/types/components/editors/revogr-edit.d.ts +63 -0
  437. package/dist/types/components/editors/text-editor.d.ts +43 -0
  438. package/dist/types/components/extra/revogr-extra.d.ts +38 -0
  439. package/dist/types/components/header/header-cell-renderer.d.ts +9 -0
  440. package/dist/types/components/header/header-group-renderer.d.ts +15 -0
  441. package/dist/types/components/header/header-renderer.d.ts +16 -0
  442. package/dist/types/components/header/resizable.directive.d.ts +55 -0
  443. package/dist/types/components/header/resizable.element.d.ts +5 -0
  444. package/dist/types/components/header/revogr-header.d.ts +90 -0
  445. package/dist/types/components/order/order-renderer.d.ts +29 -0
  446. package/dist/types/components/order/order-row.service.d.ts +27 -0
  447. package/dist/types/components/order/revogr-order-editor.d.ts +56 -0
  448. package/dist/types/components/overlay/autofill.service.d.ts +80 -0
  449. package/dist/types/components/overlay/keyboard.service.d.ts +28 -0
  450. package/dist/types/components/overlay/revogr-overlay-selection.d.ts +278 -0
  451. package/dist/types/components/overlay/selection.utils.d.ts +47 -0
  452. package/dist/types/components/revoGrid/grid.helpers.d.ts +17 -0
  453. package/dist/types/components/revoGrid/plugin.service.d.ts +37 -0
  454. package/dist/types/components/revoGrid/revo-grid.d.ts +686 -0
  455. package/dist/types/components/revoGrid/viewport.helpers.d.ts +39 -0
  456. package/dist/types/components/revoGrid/viewport.resize.service.d.ts +17 -0
  457. package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -0
  458. package/dist/types/components/revoGrid/viewport.service.d.ts +59 -0
  459. package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +51 -0
  460. package/dist/types/components/rowHeaders/row-header-render.d.ts +9 -0
  461. package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +117 -0
  462. package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
  463. package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +43 -0
  464. package/dist/types/components/selectionFocus/revogr-focus.d.ts +58 -0
  465. package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +28 -0
  466. package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
  467. package/dist/types/components/vnode/vnode.utils.d.ts +9 -0
  468. package/dist/types/components.d.ts +2583 -0
  469. package/dist/types/global/global.d.ts +1 -0
  470. package/dist/types/index.d.ts +9 -0
  471. package/dist/types/plugins/add-rows-on-paste.plugin.d.ts +14 -0
  472. package/dist/types/plugins/base.plugin.d.ts +51 -0
  473. package/dist/types/plugins/column.auto-size.plugin.d.ts +55 -0
  474. package/dist/types/plugins/column.stretch.plugin.d.ts +20 -0
  475. package/dist/types/plugins/dispatcher.d.ts +20 -0
  476. package/dist/types/plugins/export/csv.d.ts +9 -0
  477. package/dist/types/plugins/export/export.plugin.d.ts +24 -0
  478. package/dist/types/plugins/export/types.d.ts +23 -0
  479. package/dist/types/plugins/filter/conditions/equal.d.ts +4 -0
  480. package/dist/types/plugins/filter/conditions/number/greaterThan.d.ts +3 -0
  481. package/dist/types/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +3 -0
  482. package/dist/types/plugins/filter/conditions/number/lessThan.d.ts +3 -0
  483. package/dist/types/plugins/filter/conditions/number/lessThanOrEqual.d.ts +3 -0
  484. package/dist/types/plugins/filter/conditions/set.d.ts +4 -0
  485. package/dist/types/plugins/filter/conditions/string/beginswith.d.ts +3 -0
  486. package/dist/types/plugins/filter/conditions/string/contains.d.ts +4 -0
  487. package/dist/types/plugins/filter/filter.button.d.ts +14 -0
  488. package/dist/types/plugins/filter/filter.indexed.d.ts +20 -0
  489. package/dist/types/plugins/filter/filter.panel.d.ts +53 -0
  490. package/dist/types/plugins/filter/filter.plugin.d.ts +73 -0
  491. package/dist/types/plugins/filter/filter.types.d.ts +129 -0
  492. package/dist/types/plugins/groupingRow/grouping.const.d.ts +12 -0
  493. package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +15 -0
  494. package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +39 -0
  495. package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +6 -0
  496. package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +103 -0
  497. package/dist/types/plugins/groupingRow/grouping.service.d.ts +36 -0
  498. package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +10 -0
  499. package/dist/types/plugins/index.d.ts +11 -0
  500. package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +42 -0
  501. package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
  502. package/dist/types/plugins/rtl/rtl.plugin.d.ts +37 -0
  503. package/dist/types/plugins/sorting/sorting.func.d.ts +9 -0
  504. package/dist/types/plugins/sorting/sorting.plugin.d.ts +48 -0
  505. package/dist/types/plugins/sorting/sorting.sign.d.ts +6 -0
  506. package/dist/types/plugins/sorting/sorting.types.d.ts +14 -0
  507. package/dist/types/plugins/wcag/index.d.ts +26 -0
  508. package/dist/types/services/cell.helpers.d.ts +2 -0
  509. package/dist/types/services/column.data.provider.d.ts +27 -0
  510. package/dist/types/services/data.provider.d.ts +36 -0
  511. package/dist/types/services/dimension.provider.d.ts +66 -0
  512. package/dist/types/services/local.scroll.service.d.ts +36 -0
  513. package/dist/types/services/local.scroll.timer.d.ts +32 -0
  514. package/dist/types/services/selection.store.connector.d.ts +79 -0
  515. package/dist/types/services/viewport.provider.d.ts +7 -0
  516. package/dist/types/stencil-public-runtime.d.ts +1709 -0
  517. package/dist/types/store/dataSource/data.proxy.d.ts +14 -0
  518. package/dist/types/store/dataSource/data.store.d.ts +74 -0
  519. package/dist/types/store/dataSource/index.d.ts +3 -0
  520. package/dist/types/store/dataSource/trimmed.plugin.d.ts +12 -0
  521. package/dist/types/store/dimension/dimension.helpers.d.ts +24 -0
  522. package/dist/types/store/dimension/dimension.recalculate.plugin.d.ts +9 -0
  523. package/dist/types/store/dimension/dimension.store.d.ts +21 -0
  524. package/dist/types/store/dimension/dimension.trim.plugin.d.ts +13 -0
  525. package/dist/types/store/dimension/index.d.ts +2 -0
  526. package/dist/types/store/index.d.ts +8 -0
  527. package/dist/types/store/selection/index.d.ts +2 -0
  528. package/dist/types/store/selection/selection.helpers.d.ts +6 -0
  529. package/dist/types/store/selection/selection.store.d.ts +22 -0
  530. package/dist/types/store/vp/index.d.ts +7 -0
  531. package/dist/types/store/vp/viewport.helpers.d.ts +54 -0
  532. package/dist/types/store/vp/viewport.store.d.ts +26 -0
  533. package/dist/types/themeManager/theme.compact.d.ts +4 -0
  534. package/dist/types/themeManager/theme.default.d.ts +4 -0
  535. package/dist/types/themeManager/theme.material.d.ts +4 -0
  536. package/dist/types/themeManager/theme.service.d.ts +13 -0
  537. package/dist/types/types/dimension.d.ts +8 -0
  538. package/dist/types/types/events.d.ts +2 -0
  539. package/dist/types/types/index.d.ts +8 -0
  540. package/dist/types/types/interfaces.d.ts +768 -0
  541. package/dist/types/types/plugin.d.ts +9 -0
  542. package/dist/types/types/plugin.types.d.ts +48 -0
  543. package/dist/types/types/selection.d.ts +178 -0
  544. package/dist/types/types/theme.d.ts +7 -0
  545. package/dist/types/types/viewport.interfaces.d.ts +45 -0
  546. package/dist/types/utils/browser.d.ts +1 -0
  547. package/dist/types/utils/closest.polifill.d.ts +0 -0
  548. package/dist/types/utils/column.utils.d.ts +52 -0
  549. package/dist/types/utils/consts.d.ts +22 -0
  550. package/dist/types/utils/events.d.ts +5 -0
  551. package/dist/types/utils/header.utils.d.ts +2 -0
  552. package/dist/types/utils/index.d.ts +32 -0
  553. package/dist/types/utils/key.codes.d.ts +73 -0
  554. package/dist/types/utils/key.utils.d.ts +13 -0
  555. package/dist/types/utils/mobile.d.ts +1 -0
  556. package/dist/types/utils/platform.d.ts +4 -0
  557. package/dist/types/utils/row-header-utils.d.ts +2 -0
  558. package/dist/types/utils/store.types.d.ts +97 -0
  559. package/dist/types/utils/store.utils.d.ts +10 -0
  560. package/hydrate/index.d.ts +273 -0
  561. package/hydrate/index.js +33890 -0
  562. package/hydrate/index.mjs +33882 -0
  563. package/hydrate/package.json +12 -0
  564. package/loader/cdn.js +4 -0
  565. package/loader/index.cjs.js +4 -0
  566. package/loader/index.d.ts +24 -0
  567. package/loader/index.es2017.js +4 -0
  568. package/loader/index.js +5 -0
  569. package/package.json +101 -0
  570. package/react/dist/index.d.ts +6191 -0
  571. package/react/dist/react-datagrid.js +260 -0
  572. package/react/dist/react-datagrid.umd.cjs +272 -0
  573. package/standalone/column.service.js +1345 -0
  574. package/standalone/column.service.js.map +1 -0
  575. package/standalone/consts.js +30 -0
  576. package/standalone/consts.js.map +1 -0
  577. package/standalone/data.store.js +3099 -0
  578. package/standalone/data.store.js.map +1 -0
  579. package/standalone/debounce.js +215 -0
  580. package/standalone/debounce.js.map +1 -0
  581. package/standalone/dimension.helpers.js +229 -0
  582. package/standalone/dimension.helpers.js.map +1 -0
  583. package/standalone/filter.button.js +39 -0
  584. package/standalone/filter.button.js.map +1 -0
  585. package/standalone/index.d.ts +68 -0
  586. package/standalone/index.js +217 -0
  587. package/standalone/index.js.map +1 -0
  588. package/standalone/index2.js +140 -0
  589. package/standalone/index2.js.map +1 -0
  590. package/standalone/local.scroll.timer.js +207 -0
  591. package/standalone/local.scroll.timer.js.map +1 -0
  592. package/standalone/platform.js +90 -0
  593. package/standalone/platform.js.map +1 -0
  594. package/standalone/revo-grid.d.ts +11 -0
  595. package/standalone/revo-grid.js +4884 -0
  596. package/standalone/revo-grid.js.map +1 -0
  597. package/standalone/revogr-attribution.d.ts +11 -0
  598. package/standalone/revogr-attribution.js +12 -0
  599. package/standalone/revogr-attribution.js.map +1 -0
  600. package/standalone/revogr-attribution2.js +32 -0
  601. package/standalone/revogr-attribution2.js.map +1 -0
  602. package/standalone/revogr-clipboard.d.ts +11 -0
  603. package/standalone/revogr-clipboard.js +12 -0
  604. package/standalone/revogr-clipboard.js.map +1 -0
  605. package/standalone/revogr-clipboard2.js +164 -0
  606. package/standalone/revogr-clipboard2.js.map +1 -0
  607. package/standalone/revogr-data.d.ts +11 -0
  608. package/standalone/revogr-data.js +12 -0
  609. package/standalone/revogr-data.js.map +1 -0
  610. package/standalone/revogr-data2.js +378 -0
  611. package/standalone/revogr-data2.js.map +1 -0
  612. package/standalone/revogr-edit.d.ts +11 -0
  613. package/standalone/revogr-edit.js +12 -0
  614. package/standalone/revogr-edit.js.map +1 -0
  615. package/standalone/revogr-edit2.js +334 -0
  616. package/standalone/revogr-edit2.js.map +1 -0
  617. package/standalone/revogr-extra.d.ts +11 -0
  618. package/standalone/revogr-extra.js +12 -0
  619. package/standalone/revogr-extra.js.map +1 -0
  620. package/standalone/revogr-extra2.js +73 -0
  621. package/standalone/revogr-extra2.js.map +1 -0
  622. package/standalone/revogr-filter-panel.d.ts +11 -0
  623. package/standalone/revogr-filter-panel.js +411 -0
  624. package/standalone/revogr-filter-panel.js.map +1 -0
  625. package/standalone/revogr-focus.d.ts +11 -0
  626. package/standalone/revogr-focus.js +12 -0
  627. package/standalone/revogr-focus.js.map +1 -0
  628. package/standalone/revogr-focus2.js +112 -0
  629. package/standalone/revogr-focus2.js.map +1 -0
  630. package/standalone/revogr-header.d.ts +11 -0
  631. package/standalone/revogr-header.js +12 -0
  632. package/standalone/revogr-header.js.map +1 -0
  633. package/standalone/revogr-header2.js +707 -0
  634. package/standalone/revogr-header2.js.map +1 -0
  635. package/standalone/revogr-order-editor.d.ts +11 -0
  636. package/standalone/revogr-order-editor.js +12 -0
  637. package/standalone/revogr-order-editor.js.map +1 -0
  638. package/standalone/revogr-order-editor2.js +201 -0
  639. package/standalone/revogr-order-editor2.js.map +1 -0
  640. package/standalone/revogr-overlay-selection.d.ts +11 -0
  641. package/standalone/revogr-overlay-selection.js +12 -0
  642. package/standalone/revogr-overlay-selection.js.map +1 -0
  643. package/standalone/revogr-overlay-selection2.js +972 -0
  644. package/standalone/revogr-overlay-selection2.js.map +1 -0
  645. package/standalone/revogr-row-headers.d.ts +11 -0
  646. package/standalone/revogr-row-headers.js +12 -0
  647. package/standalone/revogr-row-headers.js.map +1 -0
  648. package/standalone/revogr-row-headers2.js +520 -0
  649. package/standalone/revogr-row-headers2.js.map +1 -0
  650. package/standalone/revogr-scroll-virtual.d.ts +11 -0
  651. package/standalone/revogr-scroll-virtual.js +12 -0
  652. package/standalone/revogr-scroll-virtual.js.map +1 -0
  653. package/standalone/revogr-scroll-virtual2.js +184 -0
  654. package/standalone/revogr-scroll-virtual2.js.map +1 -0
  655. package/standalone/revogr-temp-range.d.ts +11 -0
  656. package/standalone/revogr-temp-range.js +12 -0
  657. package/standalone/revogr-temp-range.js.map +1 -0
  658. package/standalone/revogr-temp-range2.js +93 -0
  659. package/standalone/revogr-temp-range2.js.map +1 -0
  660. package/standalone/revogr-viewport-scroll.d.ts +11 -0
  661. package/standalone/revogr-viewport-scroll.js +12 -0
  662. package/standalone/revogr-viewport-scroll.js.map +1 -0
  663. package/standalone/revogr-viewport-scroll2.js +421 -0
  664. package/standalone/revogr-viewport-scroll2.js.map +1 -0
  665. package/standalone/selection.utils.js +179 -0
  666. package/standalone/selection.utils.js.map +1 -0
  667. package/standalone/throttle.js +75 -0
  668. package/standalone/throttle.js.map +1 -0
  669. package/standalone/toNumber.js +282 -0
  670. package/standalone/toNumber.js.map +1 -0
  671. package/standalone/vnode-converter.js +46 -0
  672. package/standalone/vnode-converter.js.map +1 -0
  673. package/standalone/vnode-html.d.ts +11 -0
  674. package/standalone/vnode-html.js +12 -0
  675. package/standalone/vnode-html.js.map +1 -0
@@ -0,0 +1,3615 @@
1
+ /*!
2
+ * Built by LevelSkill.Pro
3
+ */
4
+ 'use strict';
5
+
6
+ var debounce$1 = require('./debounce-DgeyTQM0.js');
7
+ var index = require('./index-VM40U6Gh.js');
8
+
9
+ /**
10
+ * Todo:
11
+ * Refactor proxy plugin: when items changed outside proxy get recalculated
12
+ */
13
+ /**
14
+ * Proxy plugin for data source.
15
+ *
16
+ * This plugin is used keep sortint in the data source, even when trimming is applied sorting has to be preserved.
17
+ */
18
+ const proxyPlugin = (store) => ({
19
+ /**
20
+ * Set the value of a property in the store.
21
+ * If the key is 'proxyItems' it will filter the items in the data source according to the new value.
22
+ * The new value should be an array of numbers representing the indexes of the items that should be visible.
23
+ * The method will return a new array of numbers with the indexes of the items that should be visible.
24
+ * The method will also update the 'items' property of the store with the new array.
25
+ */
26
+ set(k, newVal) {
27
+ if (k !== 'proxyItems') {
28
+ return;
29
+ }
30
+ /**
31
+ * Getting existing collection of items (trimmed and filtered)
32
+ * Mark indexes as visible
33
+ */
34
+ const oldItems = store.get('items').reduce((r, v) => {
35
+ r.add(v);
36
+ return r;
37
+ }, new Set());
38
+ /**
39
+ * Check if new values where present in items, keep filtering and trimming
40
+ */
41
+ const newItems = newVal.reduce((r, i) => {
42
+ if (oldItems.has(i)) {
43
+ r.push(i);
44
+ }
45
+ return r;
46
+ }, []);
47
+ store.set('items', newItems);
48
+ },
49
+ });
50
+
51
+ /**
52
+ * The base implementation of `_.findIndex` and `_.findLastIndex` without
53
+ * support for iteratee shorthands.
54
+ *
55
+ * @private
56
+ * @param {Array} array The array to inspect.
57
+ * @param {Function} predicate The function invoked per iteration.
58
+ * @param {number} fromIndex The index to search from.
59
+ * @param {boolean} [fromRight] Specify iterating from right to left.
60
+ * @returns {number} Returns the index of the matched value, else `-1`.
61
+ */
62
+ function baseFindIndex(array, predicate, fromIndex, fromRight) {
63
+ var length = array.length,
64
+ index = fromIndex + (-1);
65
+
66
+ while ((++index < length)) {
67
+ if (predicate(array[index], index, array)) {
68
+ return index;
69
+ }
70
+ }
71
+ return -1;
72
+ }
73
+
74
+ /**
75
+ * Removes all key-value entries from the list cache.
76
+ *
77
+ * @private
78
+ * @name clear
79
+ * @memberOf ListCache
80
+ */
81
+ function listCacheClear() {
82
+ this.__data__ = [];
83
+ this.size = 0;
84
+ }
85
+
86
+ /**
87
+ * Performs a
88
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
89
+ * comparison between two values to determine if they are equivalent.
90
+ *
91
+ * @static
92
+ * @memberOf _
93
+ * @since 4.0.0
94
+ * @category Lang
95
+ * @param {*} value The value to compare.
96
+ * @param {*} other The other value to compare.
97
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
98
+ * @example
99
+ *
100
+ * var object = { 'a': 1 };
101
+ * var other = { 'a': 1 };
102
+ *
103
+ * _.eq(object, object);
104
+ * // => true
105
+ *
106
+ * _.eq(object, other);
107
+ * // => false
108
+ *
109
+ * _.eq('a', 'a');
110
+ * // => true
111
+ *
112
+ * _.eq('a', Object('a'));
113
+ * // => false
114
+ *
115
+ * _.eq(NaN, NaN);
116
+ * // => true
117
+ */
118
+ function eq(value, other) {
119
+ return value === other || (value !== value && other !== other);
120
+ }
121
+
122
+ /**
123
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
124
+ *
125
+ * @private
126
+ * @param {Array} array The array to inspect.
127
+ * @param {*} key The key to search for.
128
+ * @returns {number} Returns the index of the matched value, else `-1`.
129
+ */
130
+ function assocIndexOf(array, key) {
131
+ var length = array.length;
132
+ while (length--) {
133
+ if (eq(array[length][0], key)) {
134
+ return length;
135
+ }
136
+ }
137
+ return -1;
138
+ }
139
+
140
+ /** Used for built-in method references. */
141
+ var arrayProto = Array.prototype;
142
+
143
+ /** Built-in value references. */
144
+ var splice = arrayProto.splice;
145
+
146
+ /**
147
+ * Removes `key` and its value from the list cache.
148
+ *
149
+ * @private
150
+ * @name delete
151
+ * @memberOf ListCache
152
+ * @param {string} key The key of the value to remove.
153
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
154
+ */
155
+ function listCacheDelete(key) {
156
+ var data = this.__data__,
157
+ index = assocIndexOf(data, key);
158
+
159
+ if (index < 0) {
160
+ return false;
161
+ }
162
+ var lastIndex = data.length - 1;
163
+ if (index == lastIndex) {
164
+ data.pop();
165
+ } else {
166
+ splice.call(data, index, 1);
167
+ }
168
+ --this.size;
169
+ return true;
170
+ }
171
+
172
+ /**
173
+ * Gets the list cache value for `key`.
174
+ *
175
+ * @private
176
+ * @name get
177
+ * @memberOf ListCache
178
+ * @param {string} key The key of the value to get.
179
+ * @returns {*} Returns the entry value.
180
+ */
181
+ function listCacheGet(key) {
182
+ var data = this.__data__,
183
+ index = assocIndexOf(data, key);
184
+
185
+ return index < 0 ? undefined : data[index][1];
186
+ }
187
+
188
+ /**
189
+ * Checks if a list cache value for `key` exists.
190
+ *
191
+ * @private
192
+ * @name has
193
+ * @memberOf ListCache
194
+ * @param {string} key The key of the entry to check.
195
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
196
+ */
197
+ function listCacheHas(key) {
198
+ return assocIndexOf(this.__data__, key) > -1;
199
+ }
200
+
201
+ /**
202
+ * Sets the list cache `key` to `value`.
203
+ *
204
+ * @private
205
+ * @name set
206
+ * @memberOf ListCache
207
+ * @param {string} key The key of the value to set.
208
+ * @param {*} value The value to set.
209
+ * @returns {Object} Returns the list cache instance.
210
+ */
211
+ function listCacheSet(key, value) {
212
+ var data = this.__data__,
213
+ index = assocIndexOf(data, key);
214
+
215
+ if (index < 0) {
216
+ ++this.size;
217
+ data.push([key, value]);
218
+ } else {
219
+ data[index][1] = value;
220
+ }
221
+ return this;
222
+ }
223
+
224
+ /**
225
+ * Creates an list cache object.
226
+ *
227
+ * @private
228
+ * @constructor
229
+ * @param {Array} [entries] The key-value pairs to cache.
230
+ */
231
+ function ListCache(entries) {
232
+ var index = -1,
233
+ length = entries == null ? 0 : entries.length;
234
+
235
+ this.clear();
236
+ while (++index < length) {
237
+ var entry = entries[index];
238
+ this.set(entry[0], entry[1]);
239
+ }
240
+ }
241
+
242
+ // Add methods to `ListCache`.
243
+ ListCache.prototype.clear = listCacheClear;
244
+ ListCache.prototype['delete'] = listCacheDelete;
245
+ ListCache.prototype.get = listCacheGet;
246
+ ListCache.prototype.has = listCacheHas;
247
+ ListCache.prototype.set = listCacheSet;
248
+
249
+ /**
250
+ * Removes all key-value entries from the stack.
251
+ *
252
+ * @private
253
+ * @name clear
254
+ * @memberOf Stack
255
+ */
256
+ function stackClear() {
257
+ this.__data__ = new ListCache;
258
+ this.size = 0;
259
+ }
260
+
261
+ /**
262
+ * Removes `key` and its value from the stack.
263
+ *
264
+ * @private
265
+ * @name delete
266
+ * @memberOf Stack
267
+ * @param {string} key The key of the value to remove.
268
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
269
+ */
270
+ function stackDelete(key) {
271
+ var data = this.__data__,
272
+ result = data['delete'](key);
273
+
274
+ this.size = data.size;
275
+ return result;
276
+ }
277
+
278
+ /**
279
+ * Gets the stack value for `key`.
280
+ *
281
+ * @private
282
+ * @name get
283
+ * @memberOf Stack
284
+ * @param {string} key The key of the value to get.
285
+ * @returns {*} Returns the entry value.
286
+ */
287
+ function stackGet(key) {
288
+ return this.__data__.get(key);
289
+ }
290
+
291
+ /**
292
+ * Checks if a stack value for `key` exists.
293
+ *
294
+ * @private
295
+ * @name has
296
+ * @memberOf Stack
297
+ * @param {string} key The key of the entry to check.
298
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
299
+ */
300
+ function stackHas(key) {
301
+ return this.__data__.has(key);
302
+ }
303
+
304
+ /** `Object#toString` result references. */
305
+ var asyncTag = '[object AsyncFunction]',
306
+ funcTag$1 = '[object Function]',
307
+ genTag = '[object GeneratorFunction]',
308
+ proxyTag = '[object Proxy]';
309
+
310
+ /**
311
+ * Checks if `value` is classified as a `Function` object.
312
+ *
313
+ * @static
314
+ * @memberOf _
315
+ * @since 0.1.0
316
+ * @category Lang
317
+ * @param {*} value The value to check.
318
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
319
+ * @example
320
+ *
321
+ * _.isFunction(_);
322
+ * // => true
323
+ *
324
+ * _.isFunction(/abc/);
325
+ * // => false
326
+ */
327
+ function isFunction(value) {
328
+ if (!debounce$1.isObject(value)) {
329
+ return false;
330
+ }
331
+ // The use of `Object#toString` avoids issues with the `typeof` operator
332
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
333
+ var tag = debounce$1.baseGetTag(value);
334
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
335
+ }
336
+
337
+ /** Used to detect overreaching core-js shims. */
338
+ var coreJsData = debounce$1.root['__core-js_shared__'];
339
+
340
+ /** Used to detect methods masquerading as native. */
341
+ var maskSrcKey = (function() {
342
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
343
+ return uid ? ('Symbol(src)_1.' + uid) : '';
344
+ }());
345
+
346
+ /**
347
+ * Checks if `func` has its source masked.
348
+ *
349
+ * @private
350
+ * @param {Function} func The function to check.
351
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
352
+ */
353
+ function isMasked(func) {
354
+ return !!maskSrcKey && (maskSrcKey in func);
355
+ }
356
+
357
+ /** Used for built-in method references. */
358
+ var funcProto$1 = Function.prototype;
359
+
360
+ /** Used to resolve the decompiled source of functions. */
361
+ var funcToString$1 = funcProto$1.toString;
362
+
363
+ /**
364
+ * Converts `func` to its source code.
365
+ *
366
+ * @private
367
+ * @param {Function} func The function to convert.
368
+ * @returns {string} Returns the source code.
369
+ */
370
+ function toSource(func) {
371
+ if (func != null) {
372
+ try {
373
+ return funcToString$1.call(func);
374
+ } catch (e) {}
375
+ try {
376
+ return (func + '');
377
+ } catch (e) {}
378
+ }
379
+ return '';
380
+ }
381
+
382
+ /**
383
+ * Used to match `RegExp`
384
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
385
+ */
386
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
387
+
388
+ /** Used to detect host constructors (Safari). */
389
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
390
+
391
+ /** Used for built-in method references. */
392
+ var funcProto = Function.prototype,
393
+ objectProto$9 = Object.prototype;
394
+
395
+ /** Used to resolve the decompiled source of functions. */
396
+ var funcToString = funcProto.toString;
397
+
398
+ /** Used to check objects for own properties. */
399
+ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
400
+
401
+ /** Used to detect if a method is native. */
402
+ var reIsNative = RegExp('^' +
403
+ funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
404
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
405
+ );
406
+
407
+ /**
408
+ * The base implementation of `_.isNative` without bad shim checks.
409
+ *
410
+ * @private
411
+ * @param {*} value The value to check.
412
+ * @returns {boolean} Returns `true` if `value` is a native function,
413
+ * else `false`.
414
+ */
415
+ function baseIsNative(value) {
416
+ if (!debounce$1.isObject(value) || isMasked(value)) {
417
+ return false;
418
+ }
419
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
420
+ return pattern.test(toSource(value));
421
+ }
422
+
423
+ /**
424
+ * Gets the value at `key` of `object`.
425
+ *
426
+ * @private
427
+ * @param {Object} [object] The object to query.
428
+ * @param {string} key The key of the property to get.
429
+ * @returns {*} Returns the property value.
430
+ */
431
+ function getValue(object, key) {
432
+ return object == null ? undefined : object[key];
433
+ }
434
+
435
+ /**
436
+ * Gets the native function at `key` of `object`.
437
+ *
438
+ * @private
439
+ * @param {Object} object The object to query.
440
+ * @param {string} key The key of the method to get.
441
+ * @returns {*} Returns the function if it's native, else `undefined`.
442
+ */
443
+ function getNative(object, key) {
444
+ var value = getValue(object, key);
445
+ return baseIsNative(value) ? value : undefined;
446
+ }
447
+
448
+ /* Built-in method references that are verified to be native. */
449
+ var Map$1 = getNative(debounce$1.root, 'Map');
450
+
451
+ /* Built-in method references that are verified to be native. */
452
+ var nativeCreate = getNative(Object, 'create');
453
+
454
+ /**
455
+ * Removes all key-value entries from the hash.
456
+ *
457
+ * @private
458
+ * @name clear
459
+ * @memberOf Hash
460
+ */
461
+ function hashClear() {
462
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
463
+ this.size = 0;
464
+ }
465
+
466
+ /**
467
+ * Removes `key` and its value from the hash.
468
+ *
469
+ * @private
470
+ * @name delete
471
+ * @memberOf Hash
472
+ * @param {Object} hash The hash to modify.
473
+ * @param {string} key The key of the value to remove.
474
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
475
+ */
476
+ function hashDelete(key) {
477
+ var result = this.has(key) && delete this.__data__[key];
478
+ this.size -= result ? 1 : 0;
479
+ return result;
480
+ }
481
+
482
+ /** Used to stand-in for `undefined` hash values. */
483
+ var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
484
+
485
+ /** Used for built-in method references. */
486
+ var objectProto$8 = Object.prototype;
487
+
488
+ /** Used to check objects for own properties. */
489
+ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
490
+
491
+ /**
492
+ * Gets the hash value for `key`.
493
+ *
494
+ * @private
495
+ * @name get
496
+ * @memberOf Hash
497
+ * @param {string} key The key of the value to get.
498
+ * @returns {*} Returns the entry value.
499
+ */
500
+ function hashGet(key) {
501
+ var data = this.__data__;
502
+ if (nativeCreate) {
503
+ var result = data[key];
504
+ return result === HASH_UNDEFINED$2 ? undefined : result;
505
+ }
506
+ return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
507
+ }
508
+
509
+ /** Used for built-in method references. */
510
+ var objectProto$7 = Object.prototype;
511
+
512
+ /** Used to check objects for own properties. */
513
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
514
+
515
+ /**
516
+ * Checks if a hash value for `key` exists.
517
+ *
518
+ * @private
519
+ * @name has
520
+ * @memberOf Hash
521
+ * @param {string} key The key of the entry to check.
522
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
523
+ */
524
+ function hashHas(key) {
525
+ var data = this.__data__;
526
+ return nativeCreate ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
527
+ }
528
+
529
+ /** Used to stand-in for `undefined` hash values. */
530
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
531
+
532
+ /**
533
+ * Sets the hash `key` to `value`.
534
+ *
535
+ * @private
536
+ * @name set
537
+ * @memberOf Hash
538
+ * @param {string} key The key of the value to set.
539
+ * @param {*} value The value to set.
540
+ * @returns {Object} Returns the hash instance.
541
+ */
542
+ function hashSet(key, value) {
543
+ var data = this.__data__;
544
+ this.size += this.has(key) ? 0 : 1;
545
+ data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
546
+ return this;
547
+ }
548
+
549
+ /**
550
+ * Creates a hash object.
551
+ *
552
+ * @private
553
+ * @constructor
554
+ * @param {Array} [entries] The key-value pairs to cache.
555
+ */
556
+ function Hash(entries) {
557
+ var index = -1,
558
+ length = entries == null ? 0 : entries.length;
559
+
560
+ this.clear();
561
+ while (++index < length) {
562
+ var entry = entries[index];
563
+ this.set(entry[0], entry[1]);
564
+ }
565
+ }
566
+
567
+ // Add methods to `Hash`.
568
+ Hash.prototype.clear = hashClear;
569
+ Hash.prototype['delete'] = hashDelete;
570
+ Hash.prototype.get = hashGet;
571
+ Hash.prototype.has = hashHas;
572
+ Hash.prototype.set = hashSet;
573
+
574
+ /**
575
+ * Removes all key-value entries from the map.
576
+ *
577
+ * @private
578
+ * @name clear
579
+ * @memberOf MapCache
580
+ */
581
+ function mapCacheClear() {
582
+ this.size = 0;
583
+ this.__data__ = {
584
+ 'hash': new Hash,
585
+ 'map': new (Map$1 || ListCache),
586
+ 'string': new Hash
587
+ };
588
+ }
589
+
590
+ /**
591
+ * Checks if `value` is suitable for use as unique object key.
592
+ *
593
+ * @private
594
+ * @param {*} value The value to check.
595
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
596
+ */
597
+ function isKeyable(value) {
598
+ var type = typeof value;
599
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
600
+ ? (value !== '__proto__')
601
+ : (value === null);
602
+ }
603
+
604
+ /**
605
+ * Gets the data for `map`.
606
+ *
607
+ * @private
608
+ * @param {Object} map The map to query.
609
+ * @param {string} key The reference key.
610
+ * @returns {*} Returns the map data.
611
+ */
612
+ function getMapData(map, key) {
613
+ var data = map.__data__;
614
+ return isKeyable(key)
615
+ ? data[typeof key == 'string' ? 'string' : 'hash']
616
+ : data.map;
617
+ }
618
+
619
+ /**
620
+ * Removes `key` and its value from the map.
621
+ *
622
+ * @private
623
+ * @name delete
624
+ * @memberOf MapCache
625
+ * @param {string} key The key of the value to remove.
626
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
627
+ */
628
+ function mapCacheDelete(key) {
629
+ var result = getMapData(this, key)['delete'](key);
630
+ this.size -= result ? 1 : 0;
631
+ return result;
632
+ }
633
+
634
+ /**
635
+ * Gets the map value for `key`.
636
+ *
637
+ * @private
638
+ * @name get
639
+ * @memberOf MapCache
640
+ * @param {string} key The key of the value to get.
641
+ * @returns {*} Returns the entry value.
642
+ */
643
+ function mapCacheGet(key) {
644
+ return getMapData(this, key).get(key);
645
+ }
646
+
647
+ /**
648
+ * Checks if a map value for `key` exists.
649
+ *
650
+ * @private
651
+ * @name has
652
+ * @memberOf MapCache
653
+ * @param {string} key The key of the entry to check.
654
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
655
+ */
656
+ function mapCacheHas(key) {
657
+ return getMapData(this, key).has(key);
658
+ }
659
+
660
+ /**
661
+ * Sets the map `key` to `value`.
662
+ *
663
+ * @private
664
+ * @name set
665
+ * @memberOf MapCache
666
+ * @param {string} key The key of the value to set.
667
+ * @param {*} value The value to set.
668
+ * @returns {Object} Returns the map cache instance.
669
+ */
670
+ function mapCacheSet(key, value) {
671
+ var data = getMapData(this, key),
672
+ size = data.size;
673
+
674
+ data.set(key, value);
675
+ this.size += data.size == size ? 0 : 1;
676
+ return this;
677
+ }
678
+
679
+ /**
680
+ * Creates a map cache object to store key-value pairs.
681
+ *
682
+ * @private
683
+ * @constructor
684
+ * @param {Array} [entries] The key-value pairs to cache.
685
+ */
686
+ function MapCache(entries) {
687
+ var index = -1,
688
+ length = entries == null ? 0 : entries.length;
689
+
690
+ this.clear();
691
+ while (++index < length) {
692
+ var entry = entries[index];
693
+ this.set(entry[0], entry[1]);
694
+ }
695
+ }
696
+
697
+ // Add methods to `MapCache`.
698
+ MapCache.prototype.clear = mapCacheClear;
699
+ MapCache.prototype['delete'] = mapCacheDelete;
700
+ MapCache.prototype.get = mapCacheGet;
701
+ MapCache.prototype.has = mapCacheHas;
702
+ MapCache.prototype.set = mapCacheSet;
703
+
704
+ /** Used as the size to enable large array optimizations. */
705
+ var LARGE_ARRAY_SIZE = 200;
706
+
707
+ /**
708
+ * Sets the stack `key` to `value`.
709
+ *
710
+ * @private
711
+ * @name set
712
+ * @memberOf Stack
713
+ * @param {string} key The key of the value to set.
714
+ * @param {*} value The value to set.
715
+ * @returns {Object} Returns the stack cache instance.
716
+ */
717
+ function stackSet(key, value) {
718
+ var data = this.__data__;
719
+ if (data instanceof ListCache) {
720
+ var pairs = data.__data__;
721
+ if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
722
+ pairs.push([key, value]);
723
+ this.size = ++data.size;
724
+ return this;
725
+ }
726
+ data = this.__data__ = new MapCache(pairs);
727
+ }
728
+ data.set(key, value);
729
+ this.size = data.size;
730
+ return this;
731
+ }
732
+
733
+ /**
734
+ * Creates a stack cache object to store key-value pairs.
735
+ *
736
+ * @private
737
+ * @constructor
738
+ * @param {Array} [entries] The key-value pairs to cache.
739
+ */
740
+ function Stack(entries) {
741
+ var data = this.__data__ = new ListCache(entries);
742
+ this.size = data.size;
743
+ }
744
+
745
+ // Add methods to `Stack`.
746
+ Stack.prototype.clear = stackClear;
747
+ Stack.prototype['delete'] = stackDelete;
748
+ Stack.prototype.get = stackGet;
749
+ Stack.prototype.has = stackHas;
750
+ Stack.prototype.set = stackSet;
751
+
752
+ /** Used to stand-in for `undefined` hash values. */
753
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
754
+
755
+ /**
756
+ * Adds `value` to the array cache.
757
+ *
758
+ * @private
759
+ * @name add
760
+ * @memberOf SetCache
761
+ * @alias push
762
+ * @param {*} value The value to cache.
763
+ * @returns {Object} Returns the cache instance.
764
+ */
765
+ function setCacheAdd(value) {
766
+ this.__data__.set(value, HASH_UNDEFINED);
767
+ return this;
768
+ }
769
+
770
+ /**
771
+ * Checks if `value` is in the array cache.
772
+ *
773
+ * @private
774
+ * @name has
775
+ * @memberOf SetCache
776
+ * @param {*} value The value to search for.
777
+ * @returns {number} Returns `true` if `value` is found, else `false`.
778
+ */
779
+ function setCacheHas(value) {
780
+ return this.__data__.has(value);
781
+ }
782
+
783
+ /**
784
+ *
785
+ * Creates an array cache object to store unique values.
786
+ *
787
+ * @private
788
+ * @constructor
789
+ * @param {Array} [values] The values to cache.
790
+ */
791
+ function SetCache(values) {
792
+ var index = -1,
793
+ length = values == null ? 0 : values.length;
794
+
795
+ this.__data__ = new MapCache;
796
+ while (++index < length) {
797
+ this.add(values[index]);
798
+ }
799
+ }
800
+
801
+ // Add methods to `SetCache`.
802
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
803
+ SetCache.prototype.has = setCacheHas;
804
+
805
+ /**
806
+ * A specialized version of `_.some` for arrays without support for iteratee
807
+ * shorthands.
808
+ *
809
+ * @private
810
+ * @param {Array} [array] The array to iterate over.
811
+ * @param {Function} predicate The function invoked per iteration.
812
+ * @returns {boolean} Returns `true` if any element passes the predicate check,
813
+ * else `false`.
814
+ */
815
+ function arraySome(array, predicate) {
816
+ var index = -1,
817
+ length = array == null ? 0 : array.length;
818
+
819
+ while (++index < length) {
820
+ if (predicate(array[index], index, array)) {
821
+ return true;
822
+ }
823
+ }
824
+ return false;
825
+ }
826
+
827
+ /**
828
+ * Checks if a `cache` value for `key` exists.
829
+ *
830
+ * @private
831
+ * @param {Object} cache The cache to query.
832
+ * @param {string} key The key of the entry to check.
833
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
834
+ */
835
+ function cacheHas(cache, key) {
836
+ return cache.has(key);
837
+ }
838
+
839
+ /** Used to compose bitmasks for value comparisons. */
840
+ var COMPARE_PARTIAL_FLAG$5 = 1,
841
+ COMPARE_UNORDERED_FLAG$3 = 2;
842
+
843
+ /**
844
+ * A specialized version of `baseIsEqualDeep` for arrays with support for
845
+ * partial deep comparisons.
846
+ *
847
+ * @private
848
+ * @param {Array} array The array to compare.
849
+ * @param {Array} other The other array to compare.
850
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
851
+ * @param {Function} customizer The function to customize comparisons.
852
+ * @param {Function} equalFunc The function to determine equivalents of values.
853
+ * @param {Object} stack Tracks traversed `array` and `other` objects.
854
+ * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
855
+ */
856
+ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
857
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
858
+ arrLength = array.length,
859
+ othLength = other.length;
860
+
861
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
862
+ return false;
863
+ }
864
+ // Check that cyclic values are equal.
865
+ var arrStacked = stack.get(array);
866
+ var othStacked = stack.get(other);
867
+ if (arrStacked && othStacked) {
868
+ return arrStacked == other && othStacked == array;
869
+ }
870
+ var index = -1,
871
+ result = true,
872
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new SetCache : undefined;
873
+
874
+ stack.set(array, other);
875
+ stack.set(other, array);
876
+
877
+ // Ignore non-index properties.
878
+ while (++index < arrLength) {
879
+ var arrValue = array[index],
880
+ othValue = other[index];
881
+
882
+ if (customizer) {
883
+ var compared = isPartial
884
+ ? customizer(othValue, arrValue, index, other, array, stack)
885
+ : customizer(arrValue, othValue, index, array, other, stack);
886
+ }
887
+ if (compared !== undefined) {
888
+ if (compared) {
889
+ continue;
890
+ }
891
+ result = false;
892
+ break;
893
+ }
894
+ // Recursively compare arrays (susceptible to call stack limits).
895
+ if (seen) {
896
+ if (!arraySome(other, function(othValue, othIndex) {
897
+ if (!cacheHas(seen, othIndex) &&
898
+ (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
899
+ return seen.push(othIndex);
900
+ }
901
+ })) {
902
+ result = false;
903
+ break;
904
+ }
905
+ } else if (!(
906
+ arrValue === othValue ||
907
+ equalFunc(arrValue, othValue, bitmask, customizer, stack)
908
+ )) {
909
+ result = false;
910
+ break;
911
+ }
912
+ }
913
+ stack['delete'](array);
914
+ stack['delete'](other);
915
+ return result;
916
+ }
917
+
918
+ /** Built-in value references. */
919
+ var Uint8Array = debounce$1.root.Uint8Array;
920
+
921
+ /**
922
+ * Converts `map` to its key-value pairs.
923
+ *
924
+ * @private
925
+ * @param {Object} map The map to convert.
926
+ * @returns {Array} Returns the key-value pairs.
927
+ */
928
+ function mapToArray(map) {
929
+ var index = -1,
930
+ result = Array(map.size);
931
+
932
+ map.forEach(function(value, key) {
933
+ result[++index] = [key, value];
934
+ });
935
+ return result;
936
+ }
937
+
938
+ /**
939
+ * Converts `set` to an array of its values.
940
+ *
941
+ * @private
942
+ * @param {Object} set The set to convert.
943
+ * @returns {Array} Returns the values.
944
+ */
945
+ function setToArray(set) {
946
+ var index = -1,
947
+ result = Array(set.size);
948
+
949
+ set.forEach(function(value) {
950
+ result[++index] = value;
951
+ });
952
+ return result;
953
+ }
954
+
955
+ /** Used to compose bitmasks for value comparisons. */
956
+ var COMPARE_PARTIAL_FLAG$4 = 1,
957
+ COMPARE_UNORDERED_FLAG$2 = 2;
958
+
959
+ /** `Object#toString` result references. */
960
+ var boolTag$1 = '[object Boolean]',
961
+ dateTag$1 = '[object Date]',
962
+ errorTag$1 = '[object Error]',
963
+ mapTag$2 = '[object Map]',
964
+ numberTag$1 = '[object Number]',
965
+ regexpTag$1 = '[object RegExp]',
966
+ setTag$2 = '[object Set]',
967
+ stringTag$1 = '[object String]',
968
+ symbolTag = '[object Symbol]';
969
+
970
+ var arrayBufferTag$1 = '[object ArrayBuffer]',
971
+ dataViewTag$2 = '[object DataView]';
972
+
973
+ /** Used to convert symbols to primitives and strings. */
974
+ var symbolProto$1 = debounce$1.Symbol ? debounce$1.Symbol.prototype : undefined,
975
+ symbolValueOf = symbolProto$1 ? symbolProto$1.valueOf : undefined;
976
+
977
+ /**
978
+ * A specialized version of `baseIsEqualDeep` for comparing objects of
979
+ * the same `toStringTag`.
980
+ *
981
+ * **Note:** This function only supports comparing values with tags of
982
+ * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
983
+ *
984
+ * @private
985
+ * @param {Object} object The object to compare.
986
+ * @param {Object} other The other object to compare.
987
+ * @param {string} tag The `toStringTag` of the objects to compare.
988
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
989
+ * @param {Function} customizer The function to customize comparisons.
990
+ * @param {Function} equalFunc The function to determine equivalents of values.
991
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
992
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
993
+ */
994
+ function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
995
+ switch (tag) {
996
+ case dataViewTag$2:
997
+ if ((object.byteLength != other.byteLength) ||
998
+ (object.byteOffset != other.byteOffset)) {
999
+ return false;
1000
+ }
1001
+ object = object.buffer;
1002
+ other = other.buffer;
1003
+
1004
+ case arrayBufferTag$1:
1005
+ if ((object.byteLength != other.byteLength) ||
1006
+ !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
1007
+ return false;
1008
+ }
1009
+ return true;
1010
+
1011
+ case boolTag$1:
1012
+ case dateTag$1:
1013
+ case numberTag$1:
1014
+ // Coerce booleans to `1` or `0` and dates to milliseconds.
1015
+ // Invalid dates are coerced to `NaN`.
1016
+ return eq(+object, +other);
1017
+
1018
+ case errorTag$1:
1019
+ return object.name == other.name && object.message == other.message;
1020
+
1021
+ case regexpTag$1:
1022
+ case stringTag$1:
1023
+ // Coerce regexes to strings and treat strings, primitives and objects,
1024
+ // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
1025
+ // for more details.
1026
+ return object == (other + '');
1027
+
1028
+ case mapTag$2:
1029
+ var convert = mapToArray;
1030
+
1031
+ case setTag$2:
1032
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1033
+ convert || (convert = setToArray);
1034
+
1035
+ if (object.size != other.size && !isPartial) {
1036
+ return false;
1037
+ }
1038
+ // Assume cyclic values are equal.
1039
+ var stacked = stack.get(object);
1040
+ if (stacked) {
1041
+ return stacked == other;
1042
+ }
1043
+ bitmask |= COMPARE_UNORDERED_FLAG$2;
1044
+
1045
+ // Recursively compare objects (susceptible to call stack limits).
1046
+ stack.set(object, other);
1047
+ var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
1048
+ stack['delete'](object);
1049
+ return result;
1050
+
1051
+ case symbolTag:
1052
+ if (symbolValueOf) {
1053
+ return symbolValueOf.call(object) == symbolValueOf.call(other);
1054
+ }
1055
+ }
1056
+ return false;
1057
+ }
1058
+
1059
+ /**
1060
+ * Appends the elements of `values` to `array`.
1061
+ *
1062
+ * @private
1063
+ * @param {Array} array The array to modify.
1064
+ * @param {Array} values The values to append.
1065
+ * @returns {Array} Returns `array`.
1066
+ */
1067
+ function arrayPush(array, values) {
1068
+ var index = -1,
1069
+ length = values.length,
1070
+ offset = array.length;
1071
+
1072
+ while (++index < length) {
1073
+ array[offset + index] = values[index];
1074
+ }
1075
+ return array;
1076
+ }
1077
+
1078
+ /**
1079
+ * Checks if `value` is classified as an `Array` object.
1080
+ *
1081
+ * @static
1082
+ * @memberOf _
1083
+ * @since 0.1.0
1084
+ * @category Lang
1085
+ * @param {*} value The value to check.
1086
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1087
+ * @example
1088
+ *
1089
+ * _.isArray([1, 2, 3]);
1090
+ * // => true
1091
+ *
1092
+ * _.isArray(document.body.children);
1093
+ * // => false
1094
+ *
1095
+ * _.isArray('abc');
1096
+ * // => false
1097
+ *
1098
+ * _.isArray(_.noop);
1099
+ * // => false
1100
+ */
1101
+ var isArray = Array.isArray;
1102
+
1103
+ /**
1104
+ * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
1105
+ * `keysFunc` and `symbolsFunc` to get the enumerable property names and
1106
+ * symbols of `object`.
1107
+ *
1108
+ * @private
1109
+ * @param {Object} object The object to query.
1110
+ * @param {Function} keysFunc The function to get the keys of `object`.
1111
+ * @param {Function} symbolsFunc The function to get the symbols of `object`.
1112
+ * @returns {Array} Returns the array of property names and symbols.
1113
+ */
1114
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1115
+ var result = keysFunc(object);
1116
+ return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
1117
+ }
1118
+
1119
+ /**
1120
+ * A specialized version of `_.filter` for arrays without support for
1121
+ * iteratee shorthands.
1122
+ *
1123
+ * @private
1124
+ * @param {Array} [array] The array to iterate over.
1125
+ * @param {Function} predicate The function invoked per iteration.
1126
+ * @returns {Array} Returns the new filtered array.
1127
+ */
1128
+ function arrayFilter(array, predicate) {
1129
+ var index = -1,
1130
+ length = array == null ? 0 : array.length,
1131
+ resIndex = 0,
1132
+ result = [];
1133
+
1134
+ while (++index < length) {
1135
+ var value = array[index];
1136
+ if (predicate(value, index, array)) {
1137
+ result[resIndex++] = value;
1138
+ }
1139
+ }
1140
+ return result;
1141
+ }
1142
+
1143
+ /**
1144
+ * This method returns a new empty array.
1145
+ *
1146
+ * @static
1147
+ * @memberOf _
1148
+ * @since 4.13.0
1149
+ * @category Util
1150
+ * @returns {Array} Returns the new empty array.
1151
+ * @example
1152
+ *
1153
+ * var arrays = _.times(2, _.stubArray);
1154
+ *
1155
+ * console.log(arrays);
1156
+ * // => [[], []]
1157
+ *
1158
+ * console.log(arrays[0] === arrays[1]);
1159
+ * // => false
1160
+ */
1161
+ function stubArray() {
1162
+ return [];
1163
+ }
1164
+
1165
+ /** Used for built-in method references. */
1166
+ var objectProto$6 = Object.prototype;
1167
+
1168
+ /** Built-in value references. */
1169
+ var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
1170
+
1171
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1172
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1173
+
1174
+ /**
1175
+ * Creates an array of the own enumerable symbols of `object`.
1176
+ *
1177
+ * @private
1178
+ * @param {Object} object The object to query.
1179
+ * @returns {Array} Returns the array of symbols.
1180
+ */
1181
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
1182
+ if (object == null) {
1183
+ return [];
1184
+ }
1185
+ object = Object(object);
1186
+ return arrayFilter(nativeGetSymbols(object), function(symbol) {
1187
+ return propertyIsEnumerable$1.call(object, symbol);
1188
+ });
1189
+ };
1190
+
1191
+ /**
1192
+ * The base implementation of `_.times` without support for iteratee shorthands
1193
+ * or max array length checks.
1194
+ *
1195
+ * @private
1196
+ * @param {number} n The number of times to invoke `iteratee`.
1197
+ * @param {Function} iteratee The function invoked per iteration.
1198
+ * @returns {Array} Returns the array of results.
1199
+ */
1200
+ function baseTimes(n, iteratee) {
1201
+ var index = -1,
1202
+ result = Array(n);
1203
+
1204
+ while (++index < n) {
1205
+ result[index] = iteratee(index);
1206
+ }
1207
+ return result;
1208
+ }
1209
+
1210
+ /** `Object#toString` result references. */
1211
+ var argsTag$2 = '[object Arguments]';
1212
+
1213
+ /**
1214
+ * The base implementation of `_.isArguments`.
1215
+ *
1216
+ * @private
1217
+ * @param {*} value The value to check.
1218
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1219
+ */
1220
+ function baseIsArguments(value) {
1221
+ return debounce$1.isObjectLike(value) && debounce$1.baseGetTag(value) == argsTag$2;
1222
+ }
1223
+
1224
+ /** Used for built-in method references. */
1225
+ var objectProto$5 = Object.prototype;
1226
+
1227
+ /** Used to check objects for own properties. */
1228
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
1229
+
1230
+ /** Built-in value references. */
1231
+ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
1232
+
1233
+ /**
1234
+ * Checks if `value` is likely an `arguments` object.
1235
+ *
1236
+ * @static
1237
+ * @memberOf _
1238
+ * @since 0.1.0
1239
+ * @category Lang
1240
+ * @param {*} value The value to check.
1241
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1242
+ * else `false`.
1243
+ * @example
1244
+ *
1245
+ * _.isArguments(function() { return arguments; }());
1246
+ * // => true
1247
+ *
1248
+ * _.isArguments([1, 2, 3]);
1249
+ * // => false
1250
+ */
1251
+ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
1252
+ return debounce$1.isObjectLike(value) && hasOwnProperty$4.call(value, 'callee') &&
1253
+ !propertyIsEnumerable.call(value, 'callee');
1254
+ };
1255
+
1256
+ /**
1257
+ * This method returns `false`.
1258
+ *
1259
+ * @static
1260
+ * @memberOf _
1261
+ * @since 4.13.0
1262
+ * @category Util
1263
+ * @returns {boolean} Returns `false`.
1264
+ * @example
1265
+ *
1266
+ * _.times(2, _.stubFalse);
1267
+ * // => [false, false]
1268
+ */
1269
+ function stubFalse() {
1270
+ return false;
1271
+ }
1272
+
1273
+ /** Detect free variable `exports`. */
1274
+ var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
1275
+
1276
+ /** Detect free variable `module`. */
1277
+ var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
1278
+
1279
+ /** Detect the popular CommonJS extension `module.exports`. */
1280
+ var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
1281
+
1282
+ /** Built-in value references. */
1283
+ var Buffer = moduleExports$1 ? debounce$1.root.Buffer : undefined;
1284
+
1285
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1286
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
1287
+
1288
+ /**
1289
+ * Checks if `value` is a buffer.
1290
+ *
1291
+ * @static
1292
+ * @memberOf _
1293
+ * @since 4.3.0
1294
+ * @category Lang
1295
+ * @param {*} value The value to check.
1296
+ * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
1297
+ * @example
1298
+ *
1299
+ * _.isBuffer(new Buffer(2));
1300
+ * // => true
1301
+ *
1302
+ * _.isBuffer(new Uint8Array(2));
1303
+ * // => false
1304
+ */
1305
+ var isBuffer = nativeIsBuffer || stubFalse;
1306
+
1307
+ /** Used as references for various `Number` constants. */
1308
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
1309
+
1310
+ /** Used to detect unsigned integer values. */
1311
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1312
+
1313
+ /**
1314
+ * Checks if `value` is a valid array-like index.
1315
+ *
1316
+ * @private
1317
+ * @param {*} value The value to check.
1318
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
1319
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
1320
+ */
1321
+ function isIndex(value, length) {
1322
+ var type = typeof value;
1323
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
1324
+
1325
+ return !!length &&
1326
+ (type == 'number' ||
1327
+ (type != 'symbol' && reIsUint.test(value))) &&
1328
+ (value > -1 && value % 1 == 0 && value < length);
1329
+ }
1330
+
1331
+ /** Used as references for various `Number` constants. */
1332
+ var MAX_SAFE_INTEGER = 9007199254740991;
1333
+
1334
+ /**
1335
+ * Checks if `value` is a valid array-like length.
1336
+ *
1337
+ * **Note:** This method is loosely based on
1338
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1339
+ *
1340
+ * @static
1341
+ * @memberOf _
1342
+ * @since 4.0.0
1343
+ * @category Lang
1344
+ * @param {*} value The value to check.
1345
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1346
+ * @example
1347
+ *
1348
+ * _.isLength(3);
1349
+ * // => true
1350
+ *
1351
+ * _.isLength(Number.MIN_VALUE);
1352
+ * // => false
1353
+ *
1354
+ * _.isLength(Infinity);
1355
+ * // => false
1356
+ *
1357
+ * _.isLength('3');
1358
+ * // => false
1359
+ */
1360
+ function isLength(value) {
1361
+ return typeof value == 'number' &&
1362
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1363
+ }
1364
+
1365
+ /** `Object#toString` result references. */
1366
+ var argsTag$1 = '[object Arguments]',
1367
+ arrayTag$1 = '[object Array]',
1368
+ boolTag = '[object Boolean]',
1369
+ dateTag = '[object Date]',
1370
+ errorTag = '[object Error]',
1371
+ funcTag = '[object Function]',
1372
+ mapTag$1 = '[object Map]',
1373
+ numberTag = '[object Number]',
1374
+ objectTag$2 = '[object Object]',
1375
+ regexpTag = '[object RegExp]',
1376
+ setTag$1 = '[object Set]',
1377
+ stringTag = '[object String]',
1378
+ weakMapTag$1 = '[object WeakMap]';
1379
+
1380
+ var arrayBufferTag = '[object ArrayBuffer]',
1381
+ dataViewTag$1 = '[object DataView]',
1382
+ float32Tag = '[object Float32Array]',
1383
+ float64Tag = '[object Float64Array]',
1384
+ int8Tag = '[object Int8Array]',
1385
+ int16Tag = '[object Int16Array]',
1386
+ int32Tag = '[object Int32Array]',
1387
+ uint8Tag = '[object Uint8Array]',
1388
+ uint8ClampedTag = '[object Uint8ClampedArray]',
1389
+ uint16Tag = '[object Uint16Array]',
1390
+ uint32Tag = '[object Uint32Array]';
1391
+
1392
+ /** Used to identify `toStringTag` values of typed arrays. */
1393
+ var typedArrayTags = {};
1394
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
1395
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
1396
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
1397
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
1398
+ typedArrayTags[uint32Tag] = true;
1399
+ typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
1400
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
1401
+ typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
1402
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
1403
+ typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
1404
+ typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
1405
+ typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
1406
+ typedArrayTags[weakMapTag$1] = false;
1407
+
1408
+ /**
1409
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
1410
+ *
1411
+ * @private
1412
+ * @param {*} value The value to check.
1413
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1414
+ */
1415
+ function baseIsTypedArray(value) {
1416
+ return debounce$1.isObjectLike(value) &&
1417
+ isLength(value.length) && !!typedArrayTags[debounce$1.baseGetTag(value)];
1418
+ }
1419
+
1420
+ /**
1421
+ * The base implementation of `_.unary` without support for storing metadata.
1422
+ *
1423
+ * @private
1424
+ * @param {Function} func The function to cap arguments for.
1425
+ * @returns {Function} Returns the new capped function.
1426
+ */
1427
+ function baseUnary(func) {
1428
+ return function(value) {
1429
+ return func(value);
1430
+ };
1431
+ }
1432
+
1433
+ /** Detect free variable `exports`. */
1434
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
1435
+
1436
+ /** Detect free variable `module`. */
1437
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
1438
+
1439
+ /** Detect the popular CommonJS extension `module.exports`. */
1440
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1441
+
1442
+ /** Detect free variable `process` from Node.js. */
1443
+ var freeProcess = moduleExports && debounce$1.freeGlobal.process;
1444
+
1445
+ /** Used to access faster Node.js helpers. */
1446
+ var nodeUtil = (function() {
1447
+ try {
1448
+ // Use `util.types` for Node.js 10+.
1449
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
1450
+
1451
+ if (types) {
1452
+ return types;
1453
+ }
1454
+
1455
+ // Legacy `process.binding('util')` for Node.js < 10.
1456
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
1457
+ } catch (e) {}
1458
+ }());
1459
+
1460
+ /* Node.js helper references. */
1461
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
1462
+
1463
+ /**
1464
+ * Checks if `value` is classified as a typed array.
1465
+ *
1466
+ * @static
1467
+ * @memberOf _
1468
+ * @since 3.0.0
1469
+ * @category Lang
1470
+ * @param {*} value The value to check.
1471
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
1472
+ * @example
1473
+ *
1474
+ * _.isTypedArray(new Uint8Array);
1475
+ * // => true
1476
+ *
1477
+ * _.isTypedArray([]);
1478
+ * // => false
1479
+ */
1480
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
1481
+
1482
+ /** Used for built-in method references. */
1483
+ var objectProto$4 = Object.prototype;
1484
+
1485
+ /** Used to check objects for own properties. */
1486
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1487
+
1488
+ /**
1489
+ * Creates an array of the enumerable property names of the array-like `value`.
1490
+ *
1491
+ * @private
1492
+ * @param {*} value The value to query.
1493
+ * @param {boolean} inherited Specify returning inherited property names.
1494
+ * @returns {Array} Returns the array of property names.
1495
+ */
1496
+ function arrayLikeKeys(value, inherited) {
1497
+ var isArr = isArray(value),
1498
+ isArg = !isArr && isArguments(value),
1499
+ isBuff = !isArr && !isArg && isBuffer(value),
1500
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
1501
+ skipIndexes = isArr || isArg || isBuff || isType,
1502
+ result = skipIndexes ? baseTimes(value.length, String) : [],
1503
+ length = result.length;
1504
+
1505
+ for (var key in value) {
1506
+ if ((hasOwnProperty$3.call(value, key)) &&
1507
+ !(skipIndexes && (
1508
+ // Safari 9 has enumerable `arguments.length` in strict mode.
1509
+ key == 'length' ||
1510
+ // Node.js 0.10 has enumerable non-index properties on buffers.
1511
+ (isBuff && (key == 'offset' || key == 'parent')) ||
1512
+ // PhantomJS 2 has enumerable non-index properties on typed arrays.
1513
+ (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
1514
+ // Skip index properties.
1515
+ isIndex(key, length)
1516
+ ))) {
1517
+ result.push(key);
1518
+ }
1519
+ }
1520
+ return result;
1521
+ }
1522
+
1523
+ /** Used for built-in method references. */
1524
+ var objectProto$3 = Object.prototype;
1525
+
1526
+ /**
1527
+ * Checks if `value` is likely a prototype object.
1528
+ *
1529
+ * @private
1530
+ * @param {*} value The value to check.
1531
+ * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
1532
+ */
1533
+ function isPrototype(value) {
1534
+ var Ctor = value && value.constructor,
1535
+ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
1536
+
1537
+ return value === proto;
1538
+ }
1539
+
1540
+ /**
1541
+ * Creates a unary function that invokes `func` with its argument transformed.
1542
+ *
1543
+ * @private
1544
+ * @param {Function} func The function to wrap.
1545
+ * @param {Function} transform The argument transform.
1546
+ * @returns {Function} Returns the new function.
1547
+ */
1548
+ function overArg(func, transform) {
1549
+ return function(arg) {
1550
+ return func(transform(arg));
1551
+ };
1552
+ }
1553
+
1554
+ /* Built-in method references for those with the same name as other `lodash` methods. */
1555
+ var nativeKeys = overArg(Object.keys, Object);
1556
+
1557
+ /** Used for built-in method references. */
1558
+ var objectProto$2 = Object.prototype;
1559
+
1560
+ /** Used to check objects for own properties. */
1561
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1562
+
1563
+ /**
1564
+ * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
1565
+ *
1566
+ * @private
1567
+ * @param {Object} object The object to query.
1568
+ * @returns {Array} Returns the array of property names.
1569
+ */
1570
+ function baseKeys(object) {
1571
+ if (!isPrototype(object)) {
1572
+ return nativeKeys(object);
1573
+ }
1574
+ var result = [];
1575
+ for (var key in Object(object)) {
1576
+ if (hasOwnProperty$2.call(object, key) && key != 'constructor') {
1577
+ result.push(key);
1578
+ }
1579
+ }
1580
+ return result;
1581
+ }
1582
+
1583
+ /**
1584
+ * Checks if `value` is array-like. A value is considered array-like if it's
1585
+ * not a function and has a `value.length` that's an integer greater than or
1586
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1587
+ *
1588
+ * @static
1589
+ * @memberOf _
1590
+ * @since 4.0.0
1591
+ * @category Lang
1592
+ * @param {*} value The value to check.
1593
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1594
+ * @example
1595
+ *
1596
+ * _.isArrayLike([1, 2, 3]);
1597
+ * // => true
1598
+ *
1599
+ * _.isArrayLike(document.body.children);
1600
+ * // => true
1601
+ *
1602
+ * _.isArrayLike('abc');
1603
+ * // => true
1604
+ *
1605
+ * _.isArrayLike(_.noop);
1606
+ * // => false
1607
+ */
1608
+ function isArrayLike(value) {
1609
+ return value != null && isLength(value.length) && !isFunction(value);
1610
+ }
1611
+
1612
+ /**
1613
+ * Creates an array of the own enumerable property names of `object`.
1614
+ *
1615
+ * **Note:** Non-object values are coerced to objects. See the
1616
+ * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
1617
+ * for more details.
1618
+ *
1619
+ * @static
1620
+ * @since 0.1.0
1621
+ * @memberOf _
1622
+ * @category Object
1623
+ * @param {Object} object The object to query.
1624
+ * @returns {Array} Returns the array of property names.
1625
+ * @example
1626
+ *
1627
+ * function Foo() {
1628
+ * this.a = 1;
1629
+ * this.b = 2;
1630
+ * }
1631
+ *
1632
+ * Foo.prototype.c = 3;
1633
+ *
1634
+ * _.keys(new Foo);
1635
+ * // => ['a', 'b'] (iteration order is not guaranteed)
1636
+ *
1637
+ * _.keys('hi');
1638
+ * // => ['0', '1']
1639
+ */
1640
+ function keys(object) {
1641
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
1642
+ }
1643
+
1644
+ /**
1645
+ * Creates an array of own enumerable property names and symbols of `object`.
1646
+ *
1647
+ * @private
1648
+ * @param {Object} object The object to query.
1649
+ * @returns {Array} Returns the array of property names and symbols.
1650
+ */
1651
+ function getAllKeys(object) {
1652
+ return baseGetAllKeys(object, keys, getSymbols);
1653
+ }
1654
+
1655
+ /** Used to compose bitmasks for value comparisons. */
1656
+ var COMPARE_PARTIAL_FLAG$3 = 1;
1657
+
1658
+ /** Used for built-in method references. */
1659
+ var objectProto$1 = Object.prototype;
1660
+
1661
+ /** Used to check objects for own properties. */
1662
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1663
+
1664
+ /**
1665
+ * A specialized version of `baseIsEqualDeep` for objects with support for
1666
+ * partial deep comparisons.
1667
+ *
1668
+ * @private
1669
+ * @param {Object} object The object to compare.
1670
+ * @param {Object} other The other object to compare.
1671
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1672
+ * @param {Function} customizer The function to customize comparisons.
1673
+ * @param {Function} equalFunc The function to determine equivalents of values.
1674
+ * @param {Object} stack Tracks traversed `object` and `other` objects.
1675
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1676
+ */
1677
+ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
1678
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
1679
+ objProps = getAllKeys(object),
1680
+ objLength = objProps.length,
1681
+ othProps = getAllKeys(other),
1682
+ othLength = othProps.length;
1683
+
1684
+ if (objLength != othLength && !isPartial) {
1685
+ return false;
1686
+ }
1687
+ var index = objLength;
1688
+ while (index--) {
1689
+ var key = objProps[index];
1690
+ if (!(isPartial ? key in other : hasOwnProperty$1.call(other, key))) {
1691
+ return false;
1692
+ }
1693
+ }
1694
+ // Check that cyclic values are equal.
1695
+ var objStacked = stack.get(object);
1696
+ var othStacked = stack.get(other);
1697
+ if (objStacked && othStacked) {
1698
+ return objStacked == other && othStacked == object;
1699
+ }
1700
+ var result = true;
1701
+ stack.set(object, other);
1702
+ stack.set(other, object);
1703
+
1704
+ var skipCtor = isPartial;
1705
+ while (++index < objLength) {
1706
+ key = objProps[index];
1707
+ var objValue = object[key],
1708
+ othValue = other[key];
1709
+
1710
+ if (customizer) {
1711
+ var compared = isPartial
1712
+ ? customizer(othValue, objValue, key, other, object, stack)
1713
+ : customizer(objValue, othValue, key, object, other, stack);
1714
+ }
1715
+ // Recursively compare objects (susceptible to call stack limits).
1716
+ if (!(compared === undefined
1717
+ ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
1718
+ : compared
1719
+ )) {
1720
+ result = false;
1721
+ break;
1722
+ }
1723
+ skipCtor || (skipCtor = key == 'constructor');
1724
+ }
1725
+ if (result && !skipCtor) {
1726
+ var objCtor = object.constructor,
1727
+ othCtor = other.constructor;
1728
+
1729
+ // Non `Object` object instances with different constructors are not equal.
1730
+ if (objCtor != othCtor &&
1731
+ ('constructor' in object && 'constructor' in other) &&
1732
+ !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
1733
+ typeof othCtor == 'function' && othCtor instanceof othCtor)) {
1734
+ result = false;
1735
+ }
1736
+ }
1737
+ stack['delete'](object);
1738
+ stack['delete'](other);
1739
+ return result;
1740
+ }
1741
+
1742
+ /* Built-in method references that are verified to be native. */
1743
+ var DataView = getNative(debounce$1.root, 'DataView');
1744
+
1745
+ /* Built-in method references that are verified to be native. */
1746
+ var Promise$1 = getNative(debounce$1.root, 'Promise');
1747
+
1748
+ /* Built-in method references that are verified to be native. */
1749
+ var Set$1 = getNative(debounce$1.root, 'Set');
1750
+
1751
+ /* Built-in method references that are verified to be native. */
1752
+ var WeakMap = getNative(debounce$1.root, 'WeakMap');
1753
+
1754
+ /** `Object#toString` result references. */
1755
+ var mapTag = '[object Map]',
1756
+ objectTag$1 = '[object Object]',
1757
+ promiseTag = '[object Promise]',
1758
+ setTag = '[object Set]',
1759
+ weakMapTag = '[object WeakMap]';
1760
+
1761
+ var dataViewTag = '[object DataView]';
1762
+
1763
+ /** Used to detect maps, sets, and weakmaps. */
1764
+ var dataViewCtorString = toSource(DataView),
1765
+ mapCtorString = toSource(Map$1),
1766
+ promiseCtorString = toSource(Promise$1),
1767
+ setCtorString = toSource(Set$1),
1768
+ weakMapCtorString = toSource(WeakMap);
1769
+
1770
+ /**
1771
+ * Gets the `toStringTag` of `value`.
1772
+ *
1773
+ * @private
1774
+ * @param {*} value The value to query.
1775
+ * @returns {string} Returns the `toStringTag`.
1776
+ */
1777
+ exports.getTag = debounce$1.baseGetTag;
1778
+
1779
+ // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
1780
+ if ((DataView && exports.getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
1781
+ (Map$1 && exports.getTag(new Map$1) != mapTag) ||
1782
+ (Promise$1 && exports.getTag(Promise$1.resolve()) != promiseTag) ||
1783
+ (Set$1 && exports.getTag(new Set$1) != setTag) ||
1784
+ (WeakMap && exports.getTag(new WeakMap) != weakMapTag)) {
1785
+ exports.getTag = function(value) {
1786
+ var result = debounce$1.baseGetTag(value),
1787
+ Ctor = result == objectTag$1 ? value.constructor : undefined,
1788
+ ctorString = Ctor ? toSource(Ctor) : '';
1789
+
1790
+ if (ctorString) {
1791
+ switch (ctorString) {
1792
+ case dataViewCtorString: return dataViewTag;
1793
+ case mapCtorString: return mapTag;
1794
+ case promiseCtorString: return promiseTag;
1795
+ case setCtorString: return setTag;
1796
+ case weakMapCtorString: return weakMapTag;
1797
+ }
1798
+ }
1799
+ return result;
1800
+ };
1801
+ }
1802
+
1803
+ /** Used to compose bitmasks for value comparisons. */
1804
+ var COMPARE_PARTIAL_FLAG$2 = 1;
1805
+
1806
+ /** `Object#toString` result references. */
1807
+ var argsTag = '[object Arguments]',
1808
+ arrayTag = '[object Array]',
1809
+ objectTag = '[object Object]';
1810
+
1811
+ /** Used for built-in method references. */
1812
+ var objectProto = Object.prototype;
1813
+
1814
+ /** Used to check objects for own properties. */
1815
+ var hasOwnProperty = objectProto.hasOwnProperty;
1816
+
1817
+ /**
1818
+ * A specialized version of `baseIsEqual` for arrays and objects which performs
1819
+ * deep comparisons and tracks traversed objects enabling objects with circular
1820
+ * references to be compared.
1821
+ *
1822
+ * @private
1823
+ * @param {Object} object The object to compare.
1824
+ * @param {Object} other The other object to compare.
1825
+ * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
1826
+ * @param {Function} customizer The function to customize comparisons.
1827
+ * @param {Function} equalFunc The function to determine equivalents of values.
1828
+ * @param {Object} [stack] Tracks traversed `object` and `other` objects.
1829
+ * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
1830
+ */
1831
+ function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
1832
+ var objIsArr = isArray(object),
1833
+ othIsArr = isArray(other),
1834
+ objTag = objIsArr ? arrayTag : exports.getTag(object),
1835
+ othTag = othIsArr ? arrayTag : exports.getTag(other);
1836
+
1837
+ objTag = objTag == argsTag ? objectTag : objTag;
1838
+ othTag = othTag == argsTag ? objectTag : othTag;
1839
+
1840
+ var objIsObj = objTag == objectTag,
1841
+ othIsObj = othTag == objectTag,
1842
+ isSameTag = objTag == othTag;
1843
+
1844
+ if (isSameTag && isBuffer(object)) {
1845
+ if (!isBuffer(other)) {
1846
+ return false;
1847
+ }
1848
+ objIsArr = true;
1849
+ objIsObj = false;
1850
+ }
1851
+ if (isSameTag && !objIsObj) {
1852
+ stack || (stack = new Stack);
1853
+ return (objIsArr || isTypedArray(object))
1854
+ ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
1855
+ : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
1856
+ }
1857
+ if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
1858
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
1859
+ othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
1860
+
1861
+ if (objIsWrapped || othIsWrapped) {
1862
+ var objUnwrapped = objIsWrapped ? object.value() : object,
1863
+ othUnwrapped = othIsWrapped ? other.value() : other;
1864
+
1865
+ stack || (stack = new Stack);
1866
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
1867
+ }
1868
+ }
1869
+ if (!isSameTag) {
1870
+ return false;
1871
+ }
1872
+ stack || (stack = new Stack);
1873
+ return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
1874
+ }
1875
+
1876
+ /**
1877
+ * The base implementation of `_.isEqual` which supports partial comparisons
1878
+ * and tracks traversed objects.
1879
+ *
1880
+ * @private
1881
+ * @param {*} value The value to compare.
1882
+ * @param {*} other The other value to compare.
1883
+ * @param {boolean} bitmask The bitmask flags.
1884
+ * 1 - Unordered comparison
1885
+ * 2 - Partial comparison
1886
+ * @param {Function} [customizer] The function to customize comparisons.
1887
+ * @param {Object} [stack] Tracks traversed `value` and `other` objects.
1888
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1889
+ */
1890
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
1891
+ if (value === other) {
1892
+ return true;
1893
+ }
1894
+ if (value == null || other == null || (!debounce$1.isObjectLike(value) && !debounce$1.isObjectLike(other))) {
1895
+ return value !== value && other !== other;
1896
+ }
1897
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
1898
+ }
1899
+
1900
+ /** Used to compose bitmasks for value comparisons. */
1901
+ var COMPARE_PARTIAL_FLAG$1 = 1,
1902
+ COMPARE_UNORDERED_FLAG$1 = 2;
1903
+
1904
+ /**
1905
+ * The base implementation of `_.isMatch` without support for iteratee shorthands.
1906
+ *
1907
+ * @private
1908
+ * @param {Object} object The object to inspect.
1909
+ * @param {Object} source The object of property values to match.
1910
+ * @param {Array} matchData The property names, values, and compare flags to match.
1911
+ * @param {Function} [customizer] The function to customize comparisons.
1912
+ * @returns {boolean} Returns `true` if `object` is a match, else `false`.
1913
+ */
1914
+ function baseIsMatch(object, source, matchData, customizer) {
1915
+ var index = matchData.length,
1916
+ length = index;
1917
+
1918
+ if (object == null) {
1919
+ return !length;
1920
+ }
1921
+ object = Object(object);
1922
+ while (index--) {
1923
+ var data = matchData[index];
1924
+ if ((data[2])
1925
+ ? data[1] !== object[data[0]]
1926
+ : !(data[0] in object)
1927
+ ) {
1928
+ return false;
1929
+ }
1930
+ }
1931
+ while (++index < length) {
1932
+ data = matchData[index];
1933
+ var key = data[0],
1934
+ objValue = object[key],
1935
+ srcValue = data[1];
1936
+
1937
+ if (data[2]) {
1938
+ if (objValue === undefined && !(key in object)) {
1939
+ return false;
1940
+ }
1941
+ } else {
1942
+ var stack = new Stack;
1943
+ var result;
1944
+ if (!(result === undefined
1945
+ ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
1946
+ : result
1947
+ )) {
1948
+ return false;
1949
+ }
1950
+ }
1951
+ }
1952
+ return true;
1953
+ }
1954
+
1955
+ /**
1956
+ * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
1957
+ *
1958
+ * @private
1959
+ * @param {*} value The value to check.
1960
+ * @returns {boolean} Returns `true` if `value` if suitable for strict
1961
+ * equality comparisons, else `false`.
1962
+ */
1963
+ function isStrictComparable(value) {
1964
+ return value === value && !debounce$1.isObject(value);
1965
+ }
1966
+
1967
+ /**
1968
+ * Gets the property names, values, and compare flags of `object`.
1969
+ *
1970
+ * @private
1971
+ * @param {Object} object The object to query.
1972
+ * @returns {Array} Returns the match data of `object`.
1973
+ */
1974
+ function getMatchData(object) {
1975
+ var result = keys(object),
1976
+ length = result.length;
1977
+
1978
+ while (length--) {
1979
+ var key = result[length],
1980
+ value = object[key];
1981
+
1982
+ result[length] = [key, value, isStrictComparable(value)];
1983
+ }
1984
+ return result;
1985
+ }
1986
+
1987
+ /**
1988
+ * A specialized version of `matchesProperty` for source values suitable
1989
+ * for strict equality comparisons, i.e. `===`.
1990
+ *
1991
+ * @private
1992
+ * @param {string} key The key of the property to get.
1993
+ * @param {*} srcValue The value to match.
1994
+ * @returns {Function} Returns the new spec function.
1995
+ */
1996
+ function matchesStrictComparable(key, srcValue) {
1997
+ return function(object) {
1998
+ if (object == null) {
1999
+ return false;
2000
+ }
2001
+ return object[key] === srcValue &&
2002
+ (srcValue !== undefined || (key in Object(object)));
2003
+ };
2004
+ }
2005
+
2006
+ /**
2007
+ * The base implementation of `_.matches` which doesn't clone `source`.
2008
+ *
2009
+ * @private
2010
+ * @param {Object} source The object of property values to match.
2011
+ * @returns {Function} Returns the new spec function.
2012
+ */
2013
+ function baseMatches(source) {
2014
+ var matchData = getMatchData(source);
2015
+ if (matchData.length == 1 && matchData[0][2]) {
2016
+ return matchesStrictComparable(matchData[0][0], matchData[0][1]);
2017
+ }
2018
+ return function(object) {
2019
+ return object === source || baseIsMatch(object, source, matchData);
2020
+ };
2021
+ }
2022
+
2023
+ /** Used to match property names within property paths. */
2024
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
2025
+ reIsPlainProp = /^\w*$/;
2026
+
2027
+ /**
2028
+ * Checks if `value` is a property name and not a property path.
2029
+ *
2030
+ * @private
2031
+ * @param {*} value The value to check.
2032
+ * @param {Object} [object] The object to query keys on.
2033
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
2034
+ */
2035
+ function isKey(value, object) {
2036
+ if (isArray(value)) {
2037
+ return false;
2038
+ }
2039
+ var type = typeof value;
2040
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
2041
+ value == null || debounce$1.isSymbol(value)) {
2042
+ return true;
2043
+ }
2044
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
2045
+ (object != null && value in Object(object));
2046
+ }
2047
+
2048
+ /** Error message constants. */
2049
+ var FUNC_ERROR_TEXT = 'Expected a function';
2050
+
2051
+ /**
2052
+ * Creates a function that memoizes the result of `func`. If `resolver` is
2053
+ * provided, it determines the cache key for storing the result based on the
2054
+ * arguments provided to the memoized function. By default, the first argument
2055
+ * provided to the memoized function is used as the map cache key. The `func`
2056
+ * is invoked with the `this` binding of the memoized function.
2057
+ *
2058
+ * **Note:** The cache is exposed as the `cache` property on the memoized
2059
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
2060
+ * constructor with one whose instances implement the
2061
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
2062
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
2063
+ *
2064
+ * @static
2065
+ * @memberOf _
2066
+ * @since 0.1.0
2067
+ * @category Function
2068
+ * @param {Function} func The function to have its output memoized.
2069
+ * @param {Function} [resolver] The function to resolve the cache key.
2070
+ * @returns {Function} Returns the new memoized function.
2071
+ * @example
2072
+ *
2073
+ * var object = { 'a': 1, 'b': 2 };
2074
+ * var other = { 'c': 3, 'd': 4 };
2075
+ *
2076
+ * var values = _.memoize(_.values);
2077
+ * values(object);
2078
+ * // => [1, 2]
2079
+ *
2080
+ * values(other);
2081
+ * // => [3, 4]
2082
+ *
2083
+ * object.a = 2;
2084
+ * values(object);
2085
+ * // => [1, 2]
2086
+ *
2087
+ * // Modify the result cache.
2088
+ * values.cache.set(object, ['a', 'b']);
2089
+ * values(object);
2090
+ * // => ['a', 'b']
2091
+ *
2092
+ * // Replace `_.memoize.Cache`.
2093
+ * _.memoize.Cache = WeakMap;
2094
+ */
2095
+ function memoize(func, resolver) {
2096
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
2097
+ throw new TypeError(FUNC_ERROR_TEXT);
2098
+ }
2099
+ var memoized = function() {
2100
+ var args = arguments,
2101
+ key = resolver ? resolver.apply(this, args) : args[0],
2102
+ cache = memoized.cache;
2103
+
2104
+ if (cache.has(key)) {
2105
+ return cache.get(key);
2106
+ }
2107
+ var result = func.apply(this, args);
2108
+ memoized.cache = cache.set(key, result) || cache;
2109
+ return result;
2110
+ };
2111
+ memoized.cache = new (memoize.Cache || MapCache);
2112
+ return memoized;
2113
+ }
2114
+
2115
+ // Expose `MapCache`.
2116
+ memoize.Cache = MapCache;
2117
+
2118
+ /** Used as the maximum memoize cache size. */
2119
+ var MAX_MEMOIZE_SIZE = 500;
2120
+
2121
+ /**
2122
+ * A specialized version of `_.memoize` which clears the memoized function's
2123
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
2124
+ *
2125
+ * @private
2126
+ * @param {Function} func The function to have its output memoized.
2127
+ * @returns {Function} Returns the new memoized function.
2128
+ */
2129
+ function memoizeCapped(func) {
2130
+ var result = memoize(func, function(key) {
2131
+ if (cache.size === MAX_MEMOIZE_SIZE) {
2132
+ cache.clear();
2133
+ }
2134
+ return key;
2135
+ });
2136
+
2137
+ var cache = result.cache;
2138
+ return result;
2139
+ }
2140
+
2141
+ /** Used to match property names within property paths. */
2142
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
2143
+
2144
+ /** Used to match backslashes in property paths. */
2145
+ var reEscapeChar = /\\(\\)?/g;
2146
+
2147
+ /**
2148
+ * Converts `string` to a property path array.
2149
+ *
2150
+ * @private
2151
+ * @param {string} string The string to convert.
2152
+ * @returns {Array} Returns the property path array.
2153
+ */
2154
+ var stringToPath = memoizeCapped(function(string) {
2155
+ var result = [];
2156
+ if (string.charCodeAt(0) === 46 /* . */) {
2157
+ result.push('');
2158
+ }
2159
+ string.replace(rePropName, function(match, number, quote, subString) {
2160
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
2161
+ });
2162
+ return result;
2163
+ });
2164
+
2165
+ /**
2166
+ * A specialized version of `_.map` for arrays without support for iteratee
2167
+ * shorthands.
2168
+ *
2169
+ * @private
2170
+ * @param {Array} [array] The array to iterate over.
2171
+ * @param {Function} iteratee The function invoked per iteration.
2172
+ * @returns {Array} Returns the new mapped array.
2173
+ */
2174
+ function arrayMap(array, iteratee) {
2175
+ var index = -1,
2176
+ length = array == null ? 0 : array.length,
2177
+ result = Array(length);
2178
+
2179
+ while (++index < length) {
2180
+ result[index] = iteratee(array[index], index, array);
2181
+ }
2182
+ return result;
2183
+ }
2184
+
2185
+ /** Used to convert symbols to primitives and strings. */
2186
+ var symbolProto = debounce$1.Symbol ? debounce$1.Symbol.prototype : undefined,
2187
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
2188
+
2189
+ /**
2190
+ * The base implementation of `_.toString` which doesn't convert nullish
2191
+ * values to empty strings.
2192
+ *
2193
+ * @private
2194
+ * @param {*} value The value to process.
2195
+ * @returns {string} Returns the string.
2196
+ */
2197
+ function baseToString(value) {
2198
+ // Exit early for strings to avoid a performance hit in some environments.
2199
+ if (typeof value == 'string') {
2200
+ return value;
2201
+ }
2202
+ if (isArray(value)) {
2203
+ // Recursively convert values (susceptible to call stack limits).
2204
+ return arrayMap(value, baseToString) + '';
2205
+ }
2206
+ if (debounce$1.isSymbol(value)) {
2207
+ return symbolToString ? symbolToString.call(value) : '';
2208
+ }
2209
+ var result = (value + '');
2210
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
2211
+ }
2212
+
2213
+ /**
2214
+ * Converts `value` to a string. An empty string is returned for `null`
2215
+ * and `undefined` values. The sign of `-0` is preserved.
2216
+ *
2217
+ * @static
2218
+ * @memberOf _
2219
+ * @since 4.0.0
2220
+ * @category Lang
2221
+ * @param {*} value The value to convert.
2222
+ * @returns {string} Returns the converted string.
2223
+ * @example
2224
+ *
2225
+ * _.toString(null);
2226
+ * // => ''
2227
+ *
2228
+ * _.toString(-0);
2229
+ * // => '-0'
2230
+ *
2231
+ * _.toString([1, 2, 3]);
2232
+ * // => '1,2,3'
2233
+ */
2234
+ function toString(value) {
2235
+ return value == null ? '' : baseToString(value);
2236
+ }
2237
+
2238
+ /**
2239
+ * Casts `value` to a path array if it's not one.
2240
+ *
2241
+ * @private
2242
+ * @param {*} value The value to inspect.
2243
+ * @param {Object} [object] The object to query keys on.
2244
+ * @returns {Array} Returns the cast property path array.
2245
+ */
2246
+ function castPath(value, object) {
2247
+ if (isArray(value)) {
2248
+ return value;
2249
+ }
2250
+ return isKey(value, object) ? [value] : stringToPath(toString(value));
2251
+ }
2252
+
2253
+ /**
2254
+ * Converts `value` to a string key if it's not a string or symbol.
2255
+ *
2256
+ * @private
2257
+ * @param {*} value The value to inspect.
2258
+ * @returns {string|symbol} Returns the key.
2259
+ */
2260
+ function toKey(value) {
2261
+ if (typeof value == 'string' || debounce$1.isSymbol(value)) {
2262
+ return value;
2263
+ }
2264
+ var result = (value + '');
2265
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
2266
+ }
2267
+
2268
+ /**
2269
+ * The base implementation of `_.get` without support for default values.
2270
+ *
2271
+ * @private
2272
+ * @param {Object} object The object to query.
2273
+ * @param {Array|string} path The path of the property to get.
2274
+ * @returns {*} Returns the resolved value.
2275
+ */
2276
+ function baseGet(object, path) {
2277
+ path = castPath(path, object);
2278
+
2279
+ var index = 0,
2280
+ length = path.length;
2281
+
2282
+ while (object != null && index < length) {
2283
+ object = object[toKey(path[index++])];
2284
+ }
2285
+ return (index && index == length) ? object : undefined;
2286
+ }
2287
+
2288
+ /**
2289
+ * Gets the value at `path` of `object`. If the resolved value is
2290
+ * `undefined`, the `defaultValue` is returned in its place.
2291
+ *
2292
+ * @static
2293
+ * @memberOf _
2294
+ * @since 3.7.0
2295
+ * @category Object
2296
+ * @param {Object} object The object to query.
2297
+ * @param {Array|string} path The path of the property to get.
2298
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2299
+ * @returns {*} Returns the resolved value.
2300
+ * @example
2301
+ *
2302
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2303
+ *
2304
+ * _.get(object, 'a[0].b.c');
2305
+ * // => 3
2306
+ *
2307
+ * _.get(object, ['a', '0', 'b', 'c']);
2308
+ * // => 3
2309
+ *
2310
+ * _.get(object, 'a.b.c', 'default');
2311
+ * // => 'default'
2312
+ */
2313
+ function get(object, path, defaultValue) {
2314
+ var result = object == null ? undefined : baseGet(object, path);
2315
+ return result === undefined ? defaultValue : result;
2316
+ }
2317
+
2318
+ /**
2319
+ * The base implementation of `_.hasIn` without support for deep paths.
2320
+ *
2321
+ * @private
2322
+ * @param {Object} [object] The object to query.
2323
+ * @param {Array|string} key The key to check.
2324
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
2325
+ */
2326
+ function baseHasIn(object, key) {
2327
+ return object != null && key in Object(object);
2328
+ }
2329
+
2330
+ /**
2331
+ * Checks if `path` exists on `object`.
2332
+ *
2333
+ * @private
2334
+ * @param {Object} object The object to query.
2335
+ * @param {Array|string} path The path to check.
2336
+ * @param {Function} hasFunc The function to check properties.
2337
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2338
+ */
2339
+ function hasPath(object, path, hasFunc) {
2340
+ path = castPath(path, object);
2341
+
2342
+ var index = -1,
2343
+ length = path.length,
2344
+ result = false;
2345
+
2346
+ while (++index < length) {
2347
+ var key = toKey(path[index]);
2348
+ if (!(result = object != null && hasFunc(object, key))) {
2349
+ break;
2350
+ }
2351
+ object = object[key];
2352
+ }
2353
+ if (result || ++index != length) {
2354
+ return result;
2355
+ }
2356
+ length = object == null ? 0 : object.length;
2357
+ return !!length && isLength(length) && isIndex(key, length) &&
2358
+ (isArray(object) || isArguments(object));
2359
+ }
2360
+
2361
+ /**
2362
+ * Checks if `path` is a direct or inherited property of `object`.
2363
+ *
2364
+ * @static
2365
+ * @memberOf _
2366
+ * @since 4.0.0
2367
+ * @category Object
2368
+ * @param {Object} object The object to query.
2369
+ * @param {Array|string} path The path to check.
2370
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
2371
+ * @example
2372
+ *
2373
+ * var object = _.create({ 'a': _.create({ 'b': 2 }) });
2374
+ *
2375
+ * _.hasIn(object, 'a');
2376
+ * // => true
2377
+ *
2378
+ * _.hasIn(object, 'a.b');
2379
+ * // => true
2380
+ *
2381
+ * _.hasIn(object, ['a', 'b']);
2382
+ * // => true
2383
+ *
2384
+ * _.hasIn(object, 'b');
2385
+ * // => false
2386
+ */
2387
+ function hasIn(object, path) {
2388
+ return object != null && hasPath(object, path, baseHasIn);
2389
+ }
2390
+
2391
+ /** Used to compose bitmasks for value comparisons. */
2392
+ var COMPARE_PARTIAL_FLAG = 1,
2393
+ COMPARE_UNORDERED_FLAG = 2;
2394
+
2395
+ /**
2396
+ * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
2397
+ *
2398
+ * @private
2399
+ * @param {string} path The path of the property to get.
2400
+ * @param {*} srcValue The value to match.
2401
+ * @returns {Function} Returns the new spec function.
2402
+ */
2403
+ function baseMatchesProperty(path, srcValue) {
2404
+ if (isKey(path) && isStrictComparable(srcValue)) {
2405
+ return matchesStrictComparable(toKey(path), srcValue);
2406
+ }
2407
+ return function(object) {
2408
+ var objValue = get(object, path);
2409
+ return (objValue === undefined && objValue === srcValue)
2410
+ ? hasIn(object, path)
2411
+ : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
2412
+ };
2413
+ }
2414
+
2415
+ /**
2416
+ * This method returns the first argument it receives.
2417
+ *
2418
+ * @static
2419
+ * @since 0.1.0
2420
+ * @memberOf _
2421
+ * @category Util
2422
+ * @param {*} value Any value.
2423
+ * @returns {*} Returns `value`.
2424
+ * @example
2425
+ *
2426
+ * var object = { 'a': 1 };
2427
+ *
2428
+ * console.log(_.identity(object) === object);
2429
+ * // => true
2430
+ */
2431
+ function identity(value) {
2432
+ return value;
2433
+ }
2434
+
2435
+ /**
2436
+ * The base implementation of `_.property` without support for deep paths.
2437
+ *
2438
+ * @private
2439
+ * @param {string} key The key of the property to get.
2440
+ * @returns {Function} Returns the new accessor function.
2441
+ */
2442
+ function baseProperty(key) {
2443
+ return function(object) {
2444
+ return object == null ? undefined : object[key];
2445
+ };
2446
+ }
2447
+
2448
+ /**
2449
+ * A specialized version of `baseProperty` which supports deep paths.
2450
+ *
2451
+ * @private
2452
+ * @param {Array|string} path The path of the property to get.
2453
+ * @returns {Function} Returns the new accessor function.
2454
+ */
2455
+ function basePropertyDeep(path) {
2456
+ return function(object) {
2457
+ return baseGet(object, path);
2458
+ };
2459
+ }
2460
+
2461
+ /**
2462
+ * Creates a function that returns the value at `path` of a given object.
2463
+ *
2464
+ * @static
2465
+ * @memberOf _
2466
+ * @since 2.4.0
2467
+ * @category Util
2468
+ * @param {Array|string} path The path of the property to get.
2469
+ * @returns {Function} Returns the new accessor function.
2470
+ * @example
2471
+ *
2472
+ * var objects = [
2473
+ * { 'a': { 'b': 2 } },
2474
+ * { 'a': { 'b': 1 } }
2475
+ * ];
2476
+ *
2477
+ * _.map(objects, _.property('a.b'));
2478
+ * // => [2, 1]
2479
+ *
2480
+ * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
2481
+ * // => [1, 2]
2482
+ */
2483
+ function property(path) {
2484
+ return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
2485
+ }
2486
+
2487
+ /**
2488
+ * The base implementation of `_.iteratee`.
2489
+ *
2490
+ * @private
2491
+ * @param {*} [value=_.identity] The value to convert to an iteratee.
2492
+ * @returns {Function} Returns the iteratee.
2493
+ */
2494
+ function baseIteratee(value) {
2495
+ // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
2496
+ // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
2497
+ if (typeof value == 'function') {
2498
+ return value;
2499
+ }
2500
+ if (value == null) {
2501
+ return identity;
2502
+ }
2503
+ if (typeof value == 'object') {
2504
+ return isArray(value)
2505
+ ? baseMatchesProperty(value[0], value[1])
2506
+ : baseMatches(value);
2507
+ }
2508
+ return property(value);
2509
+ }
2510
+
2511
+ /** Used as references for various `Number` constants. */
2512
+ var INFINITY = 1 / 0,
2513
+ MAX_INTEGER = 1.7976931348623157e+308;
2514
+
2515
+ /**
2516
+ * Converts `value` to a finite number.
2517
+ *
2518
+ * @static
2519
+ * @memberOf _
2520
+ * @since 4.12.0
2521
+ * @category Lang
2522
+ * @param {*} value The value to convert.
2523
+ * @returns {number} Returns the converted number.
2524
+ * @example
2525
+ *
2526
+ * _.toFinite(3.2);
2527
+ * // => 3.2
2528
+ *
2529
+ * _.toFinite(Number.MIN_VALUE);
2530
+ * // => 5e-324
2531
+ *
2532
+ * _.toFinite(Infinity);
2533
+ * // => 1.7976931348623157e+308
2534
+ *
2535
+ * _.toFinite('3.2');
2536
+ * // => 3.2
2537
+ */
2538
+ function toFinite(value) {
2539
+ if (!value) {
2540
+ return value === 0 ? value : 0;
2541
+ }
2542
+ value = debounce$1.toNumber(value);
2543
+ if (value === INFINITY || value === -Infinity) {
2544
+ var sign = (value < 0 ? -1 : 1);
2545
+ return sign * MAX_INTEGER;
2546
+ }
2547
+ return value === value ? value : 0;
2548
+ }
2549
+
2550
+ /**
2551
+ * This method is like `_.find` except that it returns the index of the first
2552
+ * element `predicate` returns truthy for instead of the element itself.
2553
+ *
2554
+ * @static
2555
+ * @memberOf _
2556
+ * @since 1.1.0
2557
+ * @category Array
2558
+ * @param {Array} array The array to inspect.
2559
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
2560
+ * @param {number} [fromIndex=0] The index to search from.
2561
+ * @returns {number} Returns the index of the found element, else `-1`.
2562
+ * @example
2563
+ *
2564
+ * var users = [
2565
+ * { 'user': 'barney', 'active': false },
2566
+ * { 'user': 'fred', 'active': false },
2567
+ * { 'user': 'pebbles', 'active': true }
2568
+ * ];
2569
+ *
2570
+ * _.findIndex(users, function(o) { return o.user == 'barney'; });
2571
+ * // => 0
2572
+ *
2573
+ * // The `_.matches` iteratee shorthand.
2574
+ * _.findIndex(users, { 'user': 'fred', 'active': false });
2575
+ * // => 1
2576
+ *
2577
+ * // The `_.matchesProperty` iteratee shorthand.
2578
+ * _.findIndex(users, ['active', false]);
2579
+ * // => 0
2580
+ *
2581
+ * // The `_.property` iteratee shorthand.
2582
+ * _.findIndex(users, 'active');
2583
+ * // => 2
2584
+ */
2585
+ function findIndex(array, predicate, fromIndex) {
2586
+ var length = array == null ? 0 : array.length;
2587
+ if (!length) {
2588
+ return -1;
2589
+ }
2590
+ var index = 0 ;
2591
+ return baseFindIndex(array, baseIteratee(predicate), index);
2592
+ }
2593
+
2594
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2595
+ var nativeCeil = Math.ceil,
2596
+ nativeMax = Math.max;
2597
+
2598
+ /**
2599
+ * The base implementation of `_.range` and `_.rangeRight` which doesn't
2600
+ * coerce arguments.
2601
+ *
2602
+ * @private
2603
+ * @param {number} start The start of the range.
2604
+ * @param {number} end The end of the range.
2605
+ * @param {number} step The value to increment or decrement by.
2606
+ * @param {boolean} [fromRight] Specify iterating from right to left.
2607
+ * @returns {Array} Returns the range of numbers.
2608
+ */
2609
+ function baseRange(start, end, step, fromRight) {
2610
+ var index = -1,
2611
+ length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
2612
+ result = Array(length);
2613
+
2614
+ while (length--) {
2615
+ result[++index] = start;
2616
+ start += step;
2617
+ }
2618
+ return result;
2619
+ }
2620
+
2621
+ /**
2622
+ * Checks if the given arguments are from an iteratee call.
2623
+ *
2624
+ * @private
2625
+ * @param {*} value The potential iteratee value argument.
2626
+ * @param {*} index The potential iteratee index or key argument.
2627
+ * @param {*} object The potential iteratee object argument.
2628
+ * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
2629
+ * else `false`.
2630
+ */
2631
+ function isIterateeCall(value, index, object) {
2632
+ if (!debounce$1.isObject(object)) {
2633
+ return false;
2634
+ }
2635
+ var type = typeof index;
2636
+ if (type == 'number'
2637
+ ? (isArrayLike(object) && isIndex(index, object.length))
2638
+ : (type == 'string' && index in object)
2639
+ ) {
2640
+ return eq(object[index], value);
2641
+ }
2642
+ return false;
2643
+ }
2644
+
2645
+ /**
2646
+ * Creates a `_.range` or `_.rangeRight` function.
2647
+ *
2648
+ * @private
2649
+ * @param {boolean} [fromRight] Specify iterating from right to left.
2650
+ * @returns {Function} Returns the new range function.
2651
+ */
2652
+ function createRange(fromRight) {
2653
+ return function(start, end, step) {
2654
+ if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
2655
+ end = step = undefined;
2656
+ }
2657
+ // Ensure the sign of `-0` is preserved.
2658
+ start = toFinite(start);
2659
+ if (end === undefined) {
2660
+ end = start;
2661
+ start = 0;
2662
+ } else {
2663
+ end = toFinite(end);
2664
+ }
2665
+ step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
2666
+ return baseRange(start, end, step);
2667
+ };
2668
+ }
2669
+
2670
+ /**
2671
+ * Creates an array of numbers (positive and/or negative) progressing from
2672
+ * `start` up to, but not including, `end`. A step of `-1` is used if a negative
2673
+ * `start` is specified without an `end` or `step`. If `end` is not specified,
2674
+ * it's set to `start` with `start` then set to `0`.
2675
+ *
2676
+ * **Note:** JavaScript follows the IEEE-754 standard for resolving
2677
+ * floating-point values which can produce unexpected results.
2678
+ *
2679
+ * @static
2680
+ * @since 0.1.0
2681
+ * @memberOf _
2682
+ * @category Util
2683
+ * @param {number} [start=0] The start of the range.
2684
+ * @param {number} end The end of the range.
2685
+ * @param {number} [step=1] The value to increment or decrement by.
2686
+ * @returns {Array} Returns the range of numbers.
2687
+ * @see _.inRange, _.rangeRight
2688
+ * @example
2689
+ *
2690
+ * _.range(4);
2691
+ * // => [0, 1, 2, 3]
2692
+ *
2693
+ * _.range(-4);
2694
+ * // => [0, -1, -2, -3]
2695
+ *
2696
+ * _.range(1, 5);
2697
+ * // => [1, 2, 3, 4]
2698
+ *
2699
+ * _.range(0, 20, 5);
2700
+ * // => [0, 5, 10, 15]
2701
+ *
2702
+ * _.range(0, -4, -1);
2703
+ * // => [0, -1, -2, -3]
2704
+ *
2705
+ * _.range(1, 4, 0);
2706
+ * // => [1, 1, 1]
2707
+ *
2708
+ * _.range(0);
2709
+ * // => []
2710
+ */
2711
+ var range$1 = createRange();
2712
+
2713
+ const appendToMap = (map, propName, value) => {
2714
+ const items = map.get(propName);
2715
+ if (!items) {
2716
+ map.set(propName, [value]);
2717
+ }
2718
+ else if (!items.includes(value)) {
2719
+ items.push(value);
2720
+ }
2721
+ };
2722
+ const debounce = (fn, ms) => {
2723
+ let timeoutId;
2724
+ return (...args) => {
2725
+ if (timeoutId) {
2726
+ clearTimeout(timeoutId);
2727
+ }
2728
+ timeoutId = setTimeout(() => {
2729
+ timeoutId = 0;
2730
+ fn(...args);
2731
+ }, ms);
2732
+ };
2733
+ };
2734
+
2735
+ /**
2736
+ * Check if a possible element isConnected.
2737
+ * The property might not be there, so we check for it.
2738
+ *
2739
+ * We want it to return true if isConnected is not a property,
2740
+ * otherwise we would remove these elements and would not update.
2741
+ *
2742
+ * Better leak in Edge than to be useless.
2743
+ */
2744
+ const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
2745
+ const cleanupElements = debounce((map) => {
2746
+ for (let key of map.keys()) {
2747
+ map.set(key, map.get(key).filter(isConnected));
2748
+ }
2749
+ }, 2_000);
2750
+ const stencilSubscription = () => {
2751
+ if (typeof index.getRenderingRef !== 'function') {
2752
+ // If we are not in a stencil project, we do nothing.
2753
+ // This function is not really exported by @stencil/core.
2754
+ return {};
2755
+ }
2756
+ const elmsToUpdate = new Map();
2757
+ return {
2758
+ dispose: () => elmsToUpdate.clear(),
2759
+ get: (propName) => {
2760
+ const elm = index.getRenderingRef();
2761
+ if (elm) {
2762
+ appendToMap(elmsToUpdate, propName, elm);
2763
+ }
2764
+ },
2765
+ set: (propName) => {
2766
+ const elements = elmsToUpdate.get(propName);
2767
+ if (elements) {
2768
+ elmsToUpdate.set(propName, elements.filter(index.forceUpdate));
2769
+ }
2770
+ cleanupElements(elmsToUpdate);
2771
+ },
2772
+ reset: () => {
2773
+ elmsToUpdate.forEach((elms) => elms.forEach(index.forceUpdate));
2774
+ cleanupElements(elmsToUpdate);
2775
+ },
2776
+ };
2777
+ };
2778
+
2779
+ const unwrap = (val) => (typeof val === 'function' ? val() : val);
2780
+ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
2781
+ const unwrappedState = unwrap(defaultState);
2782
+ let states = new Map(Object.entries(unwrappedState ?? {}));
2783
+ const handlers = {
2784
+ dispose: [],
2785
+ get: [],
2786
+ set: [],
2787
+ reset: [],
2788
+ };
2789
+ // Track onChange listeners to enable removeListener functionality
2790
+ const changeListeners = new Map();
2791
+ const reset = () => {
2792
+ // When resetting the state, the default state may be a function - unwrap it to invoke it.
2793
+ // otherwise, the state won't be properly reset
2794
+ states = new Map(Object.entries(unwrap(defaultState) ?? {}));
2795
+ handlers.reset.forEach((cb) => cb());
2796
+ };
2797
+ const dispose = () => {
2798
+ // Call first dispose as resetting the state would
2799
+ // cause less updates ;)
2800
+ handlers.dispose.forEach((cb) => cb());
2801
+ reset();
2802
+ };
2803
+ const get = (propName) => {
2804
+ handlers.get.forEach((cb) => cb(propName));
2805
+ return states.get(propName);
2806
+ };
2807
+ const set = (propName, value) => {
2808
+ const oldValue = states.get(propName);
2809
+ if (shouldUpdate(value, oldValue, propName)) {
2810
+ states.set(propName, value);
2811
+ handlers.set.forEach((cb) => cb(propName, value, oldValue));
2812
+ }
2813
+ };
2814
+ const state = (typeof Proxy === 'undefined'
2815
+ ? {}
2816
+ : new Proxy(unwrappedState, {
2817
+ get(_, propName) {
2818
+ return get(propName);
2819
+ },
2820
+ ownKeys(_) {
2821
+ return Array.from(states.keys());
2822
+ },
2823
+ getOwnPropertyDescriptor() {
2824
+ return {
2825
+ enumerable: true,
2826
+ configurable: true,
2827
+ };
2828
+ },
2829
+ has(_, propName) {
2830
+ return states.has(propName);
2831
+ },
2832
+ set(_, propName, value) {
2833
+ set(propName, value);
2834
+ return true;
2835
+ },
2836
+ }));
2837
+ const on = (eventName, callback) => {
2838
+ handlers[eventName].push(callback);
2839
+ return () => {
2840
+ removeFromArray(handlers[eventName], callback);
2841
+ };
2842
+ };
2843
+ const onChange = (propName, cb) => {
2844
+ const setHandler = (key, newValue) => {
2845
+ if (key === propName) {
2846
+ cb(newValue);
2847
+ }
2848
+ };
2849
+ const resetHandler = () => cb(unwrap(defaultState)[propName]);
2850
+ // Register the handlers
2851
+ const unSet = on('set', setHandler);
2852
+ const unReset = on('reset', resetHandler);
2853
+ // Track the relationship between the user callback and internal handlers
2854
+ changeListeners.set(cb, { setHandler, resetHandler, propName });
2855
+ return () => {
2856
+ unSet();
2857
+ unReset();
2858
+ changeListeners.delete(cb);
2859
+ };
2860
+ };
2861
+ const use = (...subscriptions) => {
2862
+ const unsubs = subscriptions.reduce((unsubs, subscription) => {
2863
+ if (subscription.set) {
2864
+ unsubs.push(on('set', subscription.set));
2865
+ }
2866
+ if (subscription.get) {
2867
+ unsubs.push(on('get', subscription.get));
2868
+ }
2869
+ if (subscription.reset) {
2870
+ unsubs.push(on('reset', subscription.reset));
2871
+ }
2872
+ if (subscription.dispose) {
2873
+ unsubs.push(on('dispose', subscription.dispose));
2874
+ }
2875
+ return unsubs;
2876
+ }, []);
2877
+ return () => unsubs.forEach((unsub) => unsub());
2878
+ };
2879
+ const forceUpdate = (key) => {
2880
+ const oldValue = states.get(key);
2881
+ handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
2882
+ };
2883
+ const removeListener = (propName, listener) => {
2884
+ const listenerInfo = changeListeners.get(listener);
2885
+ if (listenerInfo && listenerInfo.propName === propName) {
2886
+ // Remove the specific handlers that were created for this listener
2887
+ removeFromArray(handlers.set, listenerInfo.setHandler);
2888
+ removeFromArray(handlers.reset, listenerInfo.resetHandler);
2889
+ changeListeners.delete(listener);
2890
+ }
2891
+ };
2892
+ return {
2893
+ state,
2894
+ get,
2895
+ set,
2896
+ on,
2897
+ onChange,
2898
+ use,
2899
+ dispose,
2900
+ reset,
2901
+ forceUpdate,
2902
+ removeListener,
2903
+ };
2904
+ };
2905
+ const removeFromArray = (array, item) => {
2906
+ const index = array.indexOf(item);
2907
+ if (index >= 0) {
2908
+ array[index] = array[array.length - 1];
2909
+ array.length--;
2910
+ }
2911
+ };
2912
+
2913
+ const createStore = (defaultState, shouldUpdate) => {
2914
+ const map = createObservableMap(defaultState, shouldUpdate);
2915
+ map.use(stencilSubscription());
2916
+ return map;
2917
+ };
2918
+
2919
+ /**
2920
+ * Hide items from main collection
2921
+ * But keep them in store
2922
+ */
2923
+ const trimmedPlugin = (store) => ({
2924
+ set(k, newVal) {
2925
+ switch (k) {
2926
+ case 'trimmed': {
2927
+ // full sorted items list
2928
+ const proxy = store.get('proxyItems');
2929
+ const trimmed = gatherTrimmedItems(newVal);
2930
+ // filter our physical indexes which are not trimmed
2931
+ const newItems = proxy.filter(v => !trimmed[v]);
2932
+ // set trimmed items in store
2933
+ store.set('items', newItems);
2934
+ break;
2935
+ }
2936
+ }
2937
+ },
2938
+ });
2939
+ function gatherTrimmedItems(trimmedItems) {
2940
+ const trimmed = {};
2941
+ for (let trimmedKey in trimmedItems) {
2942
+ // trimmed overweight not trimmed
2943
+ for (let t in trimmedItems[trimmedKey]) {
2944
+ trimmed[t] = trimmed[t] || trimmedItems[trimmedKey][t];
2945
+ }
2946
+ }
2947
+ return trimmed;
2948
+ }
2949
+
2950
+ /**
2951
+ * Sets the given data on the specified store.
2952
+ *
2953
+ * @param store - The store to set data on.
2954
+ * @param data - The data to set on the store.
2955
+ */
2956
+ function setStore(store, data) {
2957
+ Object.entries(data).forEach(([key, value]) => {
2958
+ store.set(key, value);
2959
+ });
2960
+ }
2961
+
2962
+ /** Used as references for the maximum length and index of an array. */
2963
+ var MAX_ARRAY_LENGTH$1 = 4294967295,
2964
+ MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$1 - 1;
2965
+
2966
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2967
+ var nativeFloor = Math.floor,
2968
+ nativeMin = Math.min;
2969
+
2970
+ /**
2971
+ * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
2972
+ * which invokes `iteratee` for `value` and each element of `array` to compute
2973
+ * their sort ranking. The iteratee is invoked with one argument; (value).
2974
+ *
2975
+ * @private
2976
+ * @param {Array} array The sorted array to inspect.
2977
+ * @param {*} value The value to evaluate.
2978
+ * @param {Function} iteratee The iteratee invoked per element.
2979
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
2980
+ * @returns {number} Returns the index at which `value` should be inserted
2981
+ * into `array`.
2982
+ */
2983
+ function baseSortedIndexBy(array, value, iteratee, retHighest) {
2984
+ var low = 0,
2985
+ high = array == null ? 0 : array.length;
2986
+ if (high === 0) {
2987
+ return 0;
2988
+ }
2989
+
2990
+ value = iteratee(value);
2991
+ var valIsNaN = value !== value,
2992
+ valIsNull = value === null,
2993
+ valIsSymbol = debounce$1.isSymbol(value),
2994
+ valIsUndefined = value === undefined;
2995
+
2996
+ while (low < high) {
2997
+ var mid = nativeFloor((low + high) / 2),
2998
+ computed = iteratee(array[mid]),
2999
+ othIsDefined = computed !== undefined,
3000
+ othIsNull = computed === null,
3001
+ othIsReflexive = computed === computed,
3002
+ othIsSymbol = debounce$1.isSymbol(computed);
3003
+
3004
+ if (valIsNaN) {
3005
+ var setLow = othIsReflexive;
3006
+ } else if (valIsUndefined) {
3007
+ setLow = othIsReflexive && (othIsDefined);
3008
+ } else if (valIsNull) {
3009
+ setLow = othIsReflexive && othIsDefined && (!othIsNull);
3010
+ } else if (valIsSymbol) {
3011
+ setLow = othIsReflexive && othIsDefined && !othIsNull && (!othIsSymbol);
3012
+ } else if (othIsNull || othIsSymbol) {
3013
+ setLow = false;
3014
+ } else {
3015
+ setLow = (computed < value);
3016
+ }
3017
+ if (setLow) {
3018
+ low = mid + 1;
3019
+ } else {
3020
+ high = mid;
3021
+ }
3022
+ }
3023
+ return nativeMin(high, MAX_ARRAY_INDEX);
3024
+ }
3025
+
3026
+ /** Used as references for the maximum length and index of an array. */
3027
+ var MAX_ARRAY_LENGTH = 4294967295,
3028
+ HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
3029
+
3030
+ /**
3031
+ * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
3032
+ * performs a binary search of `array` to determine the index at which `value`
3033
+ * should be inserted into `array` in order to maintain its sort order.
3034
+ *
3035
+ * @private
3036
+ * @param {Array} array The sorted array to inspect.
3037
+ * @param {*} value The value to evaluate.
3038
+ * @param {boolean} [retHighest] Specify returning the highest qualified index.
3039
+ * @returns {number} Returns the index at which `value` should be inserted
3040
+ * into `array`.
3041
+ */
3042
+ function baseSortedIndex(array, value, retHighest) {
3043
+ var low = 0,
3044
+ high = array == null ? low : array.length;
3045
+
3046
+ if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
3047
+ while (low < high) {
3048
+ var mid = (low + high) >>> 1,
3049
+ computed = array[mid];
3050
+
3051
+ if (computed !== null && !debounce$1.isSymbol(computed) &&
3052
+ ((computed < value))) {
3053
+ low = mid + 1;
3054
+ } else {
3055
+ high = mid;
3056
+ }
3057
+ }
3058
+ return high;
3059
+ }
3060
+ return baseSortedIndexBy(array, value, identity);
3061
+ }
3062
+
3063
+ /**
3064
+ * Uses a binary search to determine the lowest index at which `value`
3065
+ * should be inserted into `array` in order to maintain its sort order.
3066
+ *
3067
+ * @static
3068
+ * @memberOf _
3069
+ * @since 0.1.0
3070
+ * @category Array
3071
+ * @param {Array} array The sorted array to inspect.
3072
+ * @param {*} value The value to evaluate.
3073
+ * @returns {number} Returns the index at which `value` should be inserted
3074
+ * into `array`.
3075
+ * @example
3076
+ *
3077
+ * _.sortedIndex([30, 50], 40);
3078
+ * // => 1
3079
+ */
3080
+ function sortedIndex(array, value) {
3081
+ return baseSortedIndex(array, value);
3082
+ }
3083
+
3084
+ /**
3085
+ * Pre-calculation
3086
+ * Dimension custom sizes for each cell
3087
+ * Keeps only changed sizes, skips origin size
3088
+ */
3089
+ function calculateDimensionData(originItemSize, newSizes = {}) {
3090
+ const positionIndexes = [];
3091
+ const positionIndexToItem = {};
3092
+ const indexToItem = {};
3093
+ // prepare order sorted new sizes and calculate changed real size
3094
+ const newIndexes = Object.keys(newSizes).map(Number).sort((a, b) => a - b);
3095
+ let previous;
3096
+ for (let i = 0; i < newIndexes.length; i++) {
3097
+ const itemIndex = newIndexes[i];
3098
+ const newItem = {
3099
+ itemIndex,
3100
+ start: 0,
3101
+ end: 0,
3102
+ };
3103
+ // if previous item was changed too
3104
+ if (previous) {
3105
+ const itemsBetween = (itemIndex - previous.itemIndex - 1) * originItemSize;
3106
+ newItem.start = itemsBetween + previous.end;
3107
+ }
3108
+ else {
3109
+ newItem.start = itemIndex * originItemSize;
3110
+ }
3111
+ newItem.end = newItem.start + newSizes[itemIndex];
3112
+ positionIndexes.push(newItem.start);
3113
+ indexToItem[itemIndex] = positionIndexToItem[i] = newItem;
3114
+ previous = newItem;
3115
+ }
3116
+ return {
3117
+ indexes: newIndexes,
3118
+ positionIndexes: [...positionIndexes],
3119
+ positionIndexToItem: Object.assign({}, positionIndexToItem),
3120
+ indexToItem,
3121
+ };
3122
+ }
3123
+ /**
3124
+ * Calculate item by position
3125
+ */
3126
+ const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionIndexToItem, }, pos) => {
3127
+ const item = {
3128
+ itemIndex: 0,
3129
+ start: 0,
3130
+ end: 0,
3131
+ };
3132
+ const currentPlace = indexes.length ? sortedIndex(positionIndexes, pos) : 0;
3133
+ // not found or first index
3134
+ if (!currentPlace) {
3135
+ item.itemIndex = Math.floor(pos / originItemSize);
3136
+ item.start = item.itemIndex * originItemSize;
3137
+ item.end = item.start + originItemSize;
3138
+ return item;
3139
+ }
3140
+ const positionItem = positionIndexToItem[currentPlace - 1];
3141
+ // if item has specified size
3142
+ if (positionItem.end > pos) {
3143
+ return positionItem;
3144
+ }
3145
+ // special size item was present before
3146
+ const relativePos = pos - positionItem.end;
3147
+ const relativeIndex = Math.floor(relativePos / originItemSize);
3148
+ item.itemIndex = positionItem.itemIndex + 1 + relativeIndex;
3149
+ item.start = positionItem.end + relativeIndex * originItemSize;
3150
+ item.end = item.start + originItemSize;
3151
+ return item;
3152
+ };
3153
+ function getItemByIndex(dimension, index) {
3154
+ let item = {
3155
+ itemIndex: index,
3156
+ start: 0,
3157
+ end: 0,
3158
+ };
3159
+ // if item has specified size
3160
+ if (dimension.indexToItem[index]) {
3161
+ return dimension.indexToItem[index];
3162
+ }
3163
+ const currentPlace = dimension.indexes.length
3164
+ ? sortedIndex(dimension.indexes, index)
3165
+ : 0;
3166
+ // not found or first index
3167
+ if (!currentPlace) {
3168
+ item.start = item.itemIndex * dimension.originItemSize;
3169
+ item.end = item.start + dimension.originItemSize;
3170
+ return item;
3171
+ }
3172
+ // special size item was present before
3173
+ const positionItem = dimension.indexToItem[dimension.indexes[currentPlace - 1]];
3174
+ item.start =
3175
+ positionItem.end +
3176
+ (index - positionItem.itemIndex - 1) * dimension.originItemSize;
3177
+ item.end = item.start + dimension.originItemSize;
3178
+ return item;
3179
+ }
3180
+
3181
+ const MIN_COL_SIZE = 30;
3182
+ const RESIZE_INTERVAL = 40;
3183
+ const DATA_COL = 'data-rgCol';
3184
+ const DATA_ROW = 'data-rgRow';
3185
+ const DISABLED_CLASS = 'disabled';
3186
+ const CELL_CLASS = 'rgCell';
3187
+ const ROW_HEADER_TYPE = 'rowHeaders';
3188
+ const HEADER_CLASS = 'rgHeaderCell';
3189
+ const HEADER_SORTABLE_CLASS = 'sortable';
3190
+ const HEADER_ROW_CLASS = 'header-rgRow';
3191
+ const HEADER_ACTUAL_ROW_CLASS = 'actual-rgRow';
3192
+ const DRAG_ICON_CLASS = 'revo-drag-icon';
3193
+ const DRAGGABLE_CLASS = 'revo-draggable';
3194
+ const FOCUS_CLASS = 'focused-cell';
3195
+ const SELECTION_BORDER_CLASS = 'selection-border-range';
3196
+ const MOBILE_CLASS = 'mobile-handler';
3197
+ const TMP_SELECTION_BG_CLASS = 'temp-bg-range';
3198
+ const CELL_HANDLER_CLASS = 'autofill-handle';
3199
+ const EDIT_INPUT_WR = 'edit-input-wrapper';
3200
+ const DRAGG_TEXT = 'Draggable item';
3201
+ const GRID_INTERNALS = '__rvgr';
3202
+ const ROW_FOCUSED_CLASS = 'focused-rgRow';
3203
+
3204
+ var codes;
3205
+ (function (codes) {
3206
+ codes[codes["MOUSE_LEFT"] = 1] = "MOUSE_LEFT";
3207
+ codes[codes["MOUSE_RIGHT"] = 3] = "MOUSE_RIGHT";
3208
+ codes[codes["MOUSE_MIDDLE"] = 2] = "MOUSE_MIDDLE";
3209
+ codes[codes["BACKSPACE"] = 8] = "BACKSPACE";
3210
+ codes[codes["COMMA"] = 188] = "COMMA";
3211
+ codes[codes["INSERT"] = 45] = "INSERT";
3212
+ codes[codes["DELETE"] = 46] = "DELETE";
3213
+ codes[codes["END"] = 35] = "END";
3214
+ codes[codes["ENTER"] = 13] = "ENTER";
3215
+ codes[codes["ESCAPE"] = 27] = "ESCAPE";
3216
+ codes[codes["CONTROL"] = 17] = "CONTROL";
3217
+ codes[codes["COMMAND_LEFT"] = 91] = "COMMAND_LEFT";
3218
+ codes[codes["COMMAND_RIGHT"] = 93] = "COMMAND_RIGHT";
3219
+ codes[codes["COMMAND_FIREFOX"] = 224] = "COMMAND_FIREFOX";
3220
+ codes[codes["ALT"] = 18] = "ALT";
3221
+ codes[codes["HOME"] = 36] = "HOME";
3222
+ codes[codes["PAGE_DOWN"] = 34] = "PAGE_DOWN";
3223
+ codes[codes["PAGE_UP"] = 33] = "PAGE_UP";
3224
+ codes[codes["PERIOD"] = 190] = "PERIOD";
3225
+ codes[codes["SPACE"] = 32] = "SPACE";
3226
+ codes[codes["SHIFT"] = 16] = "SHIFT";
3227
+ codes[codes["CAPS_LOCK"] = 20] = "CAPS_LOCK";
3228
+ codes[codes["TAB"] = 9] = "TAB";
3229
+ codes[codes["ARROW_RIGHT"] = 39] = "ARROW_RIGHT";
3230
+ codes[codes["ARROW_LEFT"] = 37] = "ARROW_LEFT";
3231
+ codes[codes["ARROW_UP"] = 38] = "ARROW_UP";
3232
+ codes[codes["ARROW_DOWN"] = 40] = "ARROW_DOWN";
3233
+ codes[codes["F1"] = 112] = "F1";
3234
+ codes[codes["F2"] = 113] = "F2";
3235
+ codes[codes["F3"] = 114] = "F3";
3236
+ codes[codes["F4"] = 115] = "F4";
3237
+ codes[codes["F5"] = 116] = "F5";
3238
+ codes[codes["F6"] = 117] = "F6";
3239
+ codes[codes["F7"] = 118] = "F7";
3240
+ codes[codes["F8"] = 119] = "F8";
3241
+ codes[codes["F9"] = 120] = "F9";
3242
+ codes[codes["F10"] = 121] = "F10";
3243
+ codes[codes["F11"] = 122] = "F11";
3244
+ codes[codes["F12"] = 123] = "F12";
3245
+ codes[codes["A"] = 65] = "A";
3246
+ codes[codes["C"] = 67] = "C";
3247
+ codes[codes["D"] = 68] = "D";
3248
+ codes[codes["F"] = 70] = "F";
3249
+ codes[codes["L"] = 76] = "L";
3250
+ codes[codes["O"] = 79] = "O";
3251
+ codes[codes["P"] = 80] = "P";
3252
+ codes[codes["S"] = 83] = "S";
3253
+ codes[codes["V"] = 86] = "V";
3254
+ codes[codes["X"] = 88] = "X";
3255
+ })(codes || (codes = {}));
3256
+ exports.codesLetter = void 0;
3257
+ (function (codesLetter) {
3258
+ codesLetter["ENTER"] = "Enter";
3259
+ codesLetter["ENTER_NUM"] = "NumpadEnter";
3260
+ codesLetter["A"] = "KeyA";
3261
+ codesLetter["C"] = "KeyC";
3262
+ codesLetter["X"] = "KeyX";
3263
+ codesLetter["V"] = "KeyV";
3264
+ codesLetter["ESCAPE"] = "Escape";
3265
+ codesLetter["TAB"] = "Tab";
3266
+ codesLetter["BACKSPACE"] = "Backspace";
3267
+ codesLetter["DELETE"] = "Delete";
3268
+ codesLetter["ARROW_RIGHT"] = "ArrowRight";
3269
+ codesLetter["ARROW_LEFT"] = "ArrowLeft";
3270
+ codesLetter["ARROW_UP"] = "ArrowUp";
3271
+ codesLetter["ARROW_DOWN"] = "ArrowDown";
3272
+ codesLetter["SHIFT"] = "Shift";
3273
+ })(exports.codesLetter || (exports.codesLetter = {}));
3274
+ exports.keyValues = void 0;
3275
+ (function (keyValues) {
3276
+ keyValues["ENTER"] = "Enter";
3277
+ keyValues["TAB"] = "Tab";
3278
+ })(exports.keyValues || (exports.keyValues = {}));
3279
+ var KeyCodesEnum = codes;
3280
+
3281
+ var osPlatform;
3282
+ (function (osPlatform) {
3283
+ osPlatform["mac"] = "Mac";
3284
+ })(osPlatform || (osPlatform = {}));
3285
+ var OsPlatform = osPlatform;
3286
+
3287
+ /* Generate range on size */
3288
+ function range(size, startAt = 0) {
3289
+ const res = [];
3290
+ const end = startAt + size;
3291
+ for (let i = startAt; i < end; i++) {
3292
+ res.push(i);
3293
+ }
3294
+ return res;
3295
+ }
3296
+ /* Check is right click on mouse event */
3297
+ function checkIsRightClick(e) {
3298
+ return ('button' in e && e.button === 2) || ('which' in e && e.which === 3);
3299
+ }
3300
+ /* Check is focus on specific element */
3301
+ function isFocusOnSpecificElement(elements) {
3302
+ return elements.some(cls => { var _a; return (_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest(cls); });
3303
+ }
3304
+ /* Find index position in array */
3305
+ function findPositionInArray(el, compareFn) {
3306
+ return (function (arr) {
3307
+ let m = 0;
3308
+ let n = arr.length - 1;
3309
+ while (m <= n) {
3310
+ const k = (n + m) >> 1;
3311
+ const cmp = compareFn(el, arr[k]);
3312
+ if (cmp > 0) {
3313
+ m = k + 1;
3314
+ }
3315
+ else if (cmp < 0) {
3316
+ n = k - 1;
3317
+ }
3318
+ else {
3319
+ return k;
3320
+ }
3321
+ }
3322
+ return -m - 1;
3323
+ })(this);
3324
+ }
3325
+ /**
3326
+ * Sorted push
3327
+ */
3328
+ function pushSorted(arr, el, fn) {
3329
+ arr.splice(findPositionInArray.bind(arr)(el, fn), 0, el);
3330
+ return arr;
3331
+ }
3332
+ // (arr1[index1] < arr2[index2])
3333
+ function simpleCompare(el1, el2) {
3334
+ return el1 < el2;
3335
+ }
3336
+ /**
3337
+ * Merge sorted array helper function
3338
+ */
3339
+ function mergeSortedArray(arr1, arr2, compareFn = simpleCompare) {
3340
+ const merged = [];
3341
+ let index1 = 0;
3342
+ let index2 = 0;
3343
+ let current = 0;
3344
+ while (current < arr1.length + arr2.length) {
3345
+ let isArr1Depleted = index1 >= arr1.length;
3346
+ let isArr2Depleted = index2 >= arr2.length;
3347
+ if (!isArr1Depleted &&
3348
+ (isArr2Depleted || compareFn(arr1[index1], arr2[index2]))) {
3349
+ merged[current] = arr1[index1];
3350
+ index1++;
3351
+ }
3352
+ else {
3353
+ merged[current] = arr2[index2];
3354
+ index2++;
3355
+ }
3356
+ current++;
3357
+ }
3358
+ return merged;
3359
+ }
3360
+ /**
3361
+ * Calculate system scrollbar size
3362
+ */
3363
+ function getScrollbarSize(document) {
3364
+ // Create a temporary div container and append it to the body
3365
+ const container = document.createElement('div');
3366
+ // Apply styling to ensure the div is scrollable
3367
+ container.style.overflow = 'scroll';
3368
+ container.style.visibility = 'hidden'; // make sure the container isn't visible
3369
+ container.style.position = 'absolute';
3370
+ container.style.top = '-9999px'; // move it out of the screen
3371
+ container.style.width = '50px'; // arbitrary width
3372
+ container.style.height = '50px'; // arbitrary height
3373
+ // Append the div to the body
3374
+ document.body.appendChild(container);
3375
+ // Calculate the width of the scrollbar
3376
+ const scrollbarWidth = container.offsetWidth - container.clientWidth;
3377
+ // Remove the div from the body after calculation
3378
+ document.body.removeChild(container);
3379
+ // Return the calculated width of the scrollbar
3380
+ return scrollbarWidth;
3381
+ }
3382
+ /* Scale a value between 2 ranges
3383
+ *
3384
+ * Sample:
3385
+ * // 55 from a 0-100 range to a 0-1000 range (Ranges don't have to be positive)
3386
+ * const n = scaleValue(55, [0,100], [0,1000]);
3387
+ *
3388
+ * Ranges of two values
3389
+ * @from
3390
+ * @to
3391
+ *
3392
+ * ~~ return value does the equivalent of Math.floor but faster.
3393
+ */
3394
+ function scaleValue(value, from, to) {
3395
+ return ((to[1] - to[0]) * (value - from[0])) / (from[1] - from[0]) + to[0];
3396
+ }
3397
+ /**
3398
+ * Async timeout
3399
+ */
3400
+ async function timeout(delay = 0) {
3401
+ await new Promise((r) => {
3402
+ setTimeout(() => r(), delay);
3403
+ });
3404
+ }
3405
+ /**
3406
+ * Type script mixins
3407
+ */
3408
+ function applyMixins(derivedCtor, constructors) {
3409
+ constructors.forEach(baseCtor => {
3410
+ Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
3411
+ Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name) ||
3412
+ Object.create(null));
3413
+ });
3414
+ });
3415
+ }
3416
+
3417
+ /**
3418
+ * Data store
3419
+ * Manage the state of a data source and provide methods for updating, adding, and refreshing the data.
3420
+ */
3421
+ class DataStore {
3422
+ get store() {
3423
+ return this.dataStore;
3424
+ }
3425
+ constructor(type, storeData) {
3426
+ const store = (this.dataStore = createStore(Object.assign({ items: [], proxyItems: [], source: [], groupingDepth: 0, groups: {}, type, trimmed: {}, groupingCustomRenderer: undefined }, storeData)));
3427
+ store.use(proxyPlugin(store));
3428
+ store.use(trimmedPlugin(store));
3429
+ }
3430
+ /**
3431
+ * full data source update
3432
+ * @param source - data column/rgRow source
3433
+ * @param grouping - grouping information if present
3434
+ */
3435
+ updateData(source, grouping, silent = false) {
3436
+ // during full update we do drop trim
3437
+ if (!silent) {
3438
+ this.store.set('trimmed', {});
3439
+ }
3440
+ // clear items
3441
+ this.store.set('items', []);
3442
+ const items = range$1(0, (source === null || source === void 0 ? void 0 : source.length) || 0);
3443
+ // set proxy first
3444
+ setStore(this.store, {
3445
+ source,
3446
+ proxyItems: [...items],
3447
+ });
3448
+ // update data items
3449
+ this.store.set('items', items);
3450
+ // apply grouping if present
3451
+ if (grouping) {
3452
+ setStore(this.store, {
3453
+ groupingDepth: grouping.depth,
3454
+ groups: grouping.groups,
3455
+ groupingCustomRenderer: grouping.customRenderer,
3456
+ });
3457
+ }
3458
+ }
3459
+ addTrimmed(some) {
3460
+ let trimmed = this.store.get('trimmed');
3461
+ trimmed = Object.assign(Object.assign({}, trimmed), some);
3462
+ setStore(this.store, { trimmed });
3463
+ }
3464
+ setSourceData(items, mutate = true) {
3465
+ setSourceByVirtualIndex(this.store, items, mutate);
3466
+ }
3467
+ // local data update
3468
+ setData(input) {
3469
+ const data = Object.assign({}, input);
3470
+ setStore(this.store, data);
3471
+ }
3472
+ refresh() {
3473
+ const source = this.store.get('source');
3474
+ this.store.set('source', [...source]);
3475
+ }
3476
+ }
3477
+ /**
3478
+ * get physical index by virtual
3479
+ * @param store - store to process
3480
+ */
3481
+ function getPhysical(store, virtualIndex) {
3482
+ const items = store.get('items');
3483
+ return items[virtualIndex];
3484
+ }
3485
+ /**
3486
+ * get all visible items
3487
+ * @param store - store to process
3488
+ */
3489
+ function getVisibleSourceItem(store) {
3490
+ const source = store.get('source');
3491
+ return store.get('items').map(v => source[v]);
3492
+ }
3493
+ /**
3494
+ * get mapped item from source
3495
+ * @param store - store to process
3496
+ * @param virtualIndex - virtual index to process
3497
+ */
3498
+ const getSourceItem = (store, virtualIndex) => {
3499
+ const source = store.get('source');
3500
+ return source[getSourcePhysicalIndex(store, virtualIndex)];
3501
+ };
3502
+ /**
3503
+ * Get physical index from virtual index
3504
+ */
3505
+ const getSourcePhysicalIndex = (store, virtualIndex) => {
3506
+ const items = store.get('items');
3507
+ return items[virtualIndex];
3508
+ };
3509
+ /**
3510
+ * Apply silently item/model/row value to data source
3511
+ * @param store - data source with changes
3512
+ * @param modelByIndex - collection of rows/values with virtual indexes to setup/replace in store/data source
3513
+ * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
3514
+ */
3515
+ function setSourceByVirtualIndex(store, modelByIndex, mutate = true) {
3516
+ const items = store.get('items');
3517
+ const source = store.get('source');
3518
+ for (let virtualIndex in modelByIndex) {
3519
+ const realIndex = items[virtualIndex];
3520
+ const item = modelByIndex[virtualIndex];
3521
+ source[realIndex] = item;
3522
+ }
3523
+ if (mutate) {
3524
+ store.set('source', [...source]);
3525
+ }
3526
+ }
3527
+ /**
3528
+ * set item to source
3529
+ * @param store - store to process
3530
+ * @param modelByIndex - collection of rows with physical indexes to setup
3531
+ * @param mutate - if true, store will be mutated and whole viewport will be re-rendered
3532
+ */
3533
+ function setSourceByPhysicalIndex(store, modelByIndex, mutate = true) {
3534
+ const source = store.get('source');
3535
+ for (let index in modelByIndex) {
3536
+ source[index] = modelByIndex[index];
3537
+ }
3538
+ if (mutate) {
3539
+ store.set('source', [...source]);
3540
+ }
3541
+ }
3542
+ function setItems(store, items) {
3543
+ store.set('items', items);
3544
+ }
3545
+ function getSourceItemVirtualIndexByProp(store, prop) {
3546
+ const items = store.get('items');
3547
+ const source = store.get('source');
3548
+ const physicalIndex = findIndex(source, { prop });
3549
+ return items.indexOf(physicalIndex);
3550
+ }
3551
+
3552
+ exports.CELL_CLASS = CELL_CLASS;
3553
+ exports.CELL_HANDLER_CLASS = CELL_HANDLER_CLASS;
3554
+ exports.DATA_COL = DATA_COL;
3555
+ exports.DATA_ROW = DATA_ROW;
3556
+ exports.DISABLED_CLASS = DISABLED_CLASS;
3557
+ exports.DRAGGABLE_CLASS = DRAGGABLE_CLASS;
3558
+ exports.DRAGG_TEXT = DRAGG_TEXT;
3559
+ exports.DRAG_ICON_CLASS = DRAG_ICON_CLASS;
3560
+ exports.DataStore = DataStore;
3561
+ exports.EDIT_INPUT_WR = EDIT_INPUT_WR;
3562
+ exports.FOCUS_CLASS = FOCUS_CLASS;
3563
+ exports.GRID_INTERNALS = GRID_INTERNALS;
3564
+ exports.HEADER_ACTUAL_ROW_CLASS = HEADER_ACTUAL_ROW_CLASS;
3565
+ exports.HEADER_CLASS = HEADER_CLASS;
3566
+ exports.HEADER_ROW_CLASS = HEADER_ROW_CLASS;
3567
+ exports.HEADER_SORTABLE_CLASS = HEADER_SORTABLE_CLASS;
3568
+ exports.KeyCodesEnum = KeyCodesEnum;
3569
+ exports.MIN_COL_SIZE = MIN_COL_SIZE;
3570
+ exports.MOBILE_CLASS = MOBILE_CLASS;
3571
+ exports.OsPlatform = OsPlatform;
3572
+ exports.RESIZE_INTERVAL = RESIZE_INTERVAL;
3573
+ exports.ROW_FOCUSED_CLASS = ROW_FOCUSED_CLASS;
3574
+ exports.ROW_HEADER_TYPE = ROW_HEADER_TYPE;
3575
+ exports.SELECTION_BORDER_CLASS = SELECTION_BORDER_CLASS;
3576
+ exports.TMP_SELECTION_BG_CLASS = TMP_SELECTION_BG_CLASS;
3577
+ exports.applyMixins = applyMixins;
3578
+ exports.baseIteratee = baseIteratee;
3579
+ exports.baseKeys = baseKeys;
3580
+ exports.baseProperty = baseProperty;
3581
+ exports.calculateDimensionData = calculateDimensionData;
3582
+ exports.checkIsRightClick = checkIsRightClick;
3583
+ exports.createStore = createStore;
3584
+ exports.findPositionInArray = findPositionInArray;
3585
+ exports.gatherTrimmedItems = gatherTrimmedItems;
3586
+ exports.getItemByIndex = getItemByIndex;
3587
+ exports.getItemByPosition = getItemByPosition;
3588
+ exports.getNative = getNative;
3589
+ exports.getPhysical = getPhysical;
3590
+ exports.getScrollbarSize = getScrollbarSize;
3591
+ exports.getSourceItem = getSourceItem;
3592
+ exports.getSourceItemVirtualIndexByProp = getSourceItemVirtualIndexByProp;
3593
+ exports.getSourcePhysicalIndex = getSourcePhysicalIndex;
3594
+ exports.getVisibleSourceItem = getVisibleSourceItem;
3595
+ exports.identity = identity;
3596
+ exports.isArray = isArray;
3597
+ exports.isArrayLike = isArrayLike;
3598
+ exports.isFocusOnSpecificElement = isFocusOnSpecificElement;
3599
+ exports.isIterateeCall = isIterateeCall;
3600
+ exports.keys = keys;
3601
+ exports.mergeSortedArray = mergeSortedArray;
3602
+ exports.proxyPlugin = proxyPlugin;
3603
+ exports.pushSorted = pushSorted;
3604
+ exports.range = range;
3605
+ exports.scaleValue = scaleValue;
3606
+ exports.setItems = setItems;
3607
+ exports.setSourceByPhysicalIndex = setSourceByPhysicalIndex;
3608
+ exports.setSourceByVirtualIndex = setSourceByVirtualIndex;
3609
+ exports.setStore = setStore;
3610
+ exports.timeout = timeout;
3611
+ exports.toFinite = toFinite;
3612
+ exports.trimmedPlugin = trimmedPlugin;
3613
+ //# sourceMappingURL=data.store-CrF4Nf9q.js.map
3614
+
3615
+ //# sourceMappingURL=data.store-CrF4Nf9q.js.map