@revolist/revogrid 4.0.2-next → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/cjs/app-globals-53fde1aa.js +14 -0
- package/dist/cjs/app-globals-53fde1aa.js.map +1 -0
- package/dist/cjs/column.service-2066d651.js +545 -0
- package/dist/cjs/column.service-2066d651.js.map +1 -0
- package/dist/cjs/debounce-e2b7c6fb.js +226 -0
- package/dist/cjs/debounce-e2b7c6fb.js.map +1 -0
- package/dist/cjs/dimension.helpers-ee39d6c4.js +4218 -0
- package/dist/cjs/dimension.helpers-ee39d6c4.js.map +1 -0
- package/dist/cjs/dispatcher-a58fa91a.js +34 -0
- package/dist/cjs/dispatcher-a58fa91a.js.map +1 -0
- package/dist/cjs/events-7ccd6894.js +233 -0
- package/dist/cjs/events-7ccd6894.js.map +1 -0
- package/dist/cjs/filter.button-db6cbd2e.js +44 -0
- package/dist/cjs/filter.button-db6cbd2e.js.map +1 -0
- package/dist/cjs/header-cell-renderer-3df76829.js +304 -0
- package/dist/cjs/header-cell-renderer-3df76829.js.map +1 -0
- package/dist/cjs/index-73c149e3.js +106 -0
- package/dist/cjs/index-73c149e3.js.map +1 -0
- package/dist/cjs/index-84e32c2a.js +1868 -0
- package/dist/cjs/index-84e32c2a.js.map +1 -0
- package/dist/cjs/index.cjs.js +53 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/key.utils-dc4ac217.js +129 -0
- package/dist/cjs/key.utils-dc4ac217.js.map +1 -0
- package/dist/cjs/loader.cjs.js +12 -27
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{resize-observer-8dc80084.js → resize-observer-d009a220.js} +30 -13
- package/dist/cjs/resize-observer-d009a220.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +3992 -0
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.js +22 -65
- package/dist/cjs/revo-grid.cjs.js.map +1 -0
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +1270 -0
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +508 -0
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js +958 -0
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +268 -115
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/selection.store-2e110a67.js +400 -0
- package/dist/cjs/selection.store-2e110a67.js.map +1 -0
- package/dist/cjs/storeTypes-b3f924b2.js +106 -0
- package/dist/cjs/storeTypes-b3f924b2.js.map +1 -0
- package/dist/cjs/throttle-f7aee21b.js +240 -0
- package/dist/cjs/throttle-f7aee21b.js.map +1 -0
- package/dist/cjs/toNumber-838e6ff5.js +340 -0
- package/dist/cjs/toNumber-838e6ff5.js.map +1 -0
- package/dist/cjs/viewport.helpers-6670177c.js +262 -0
- package/dist/cjs/viewport.helpers-6670177c.js.map +1 -0
- package/dist/collection/collection-manifest.json +18 -16
- package/dist/collection/components/attribution/revogr-attribution.js +20 -0
- package/dist/collection/components/attribution/revogr-attribution.js.map +1 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +410 -115
- package/dist/collection/components/clipboard/revogr-clipboard.js.map +1 -0
- package/dist/collection/components/data/cell-renderer.js +39 -0
- package/dist/collection/components/data/cell-renderer.js.map +1 -0
- package/dist/collection/components/data/column.service.js +302 -0
- package/dist/collection/components/data/column.service.js.map +1 -0
- package/dist/collection/components/data/revogr-data-style.css +18 -11
- package/dist/collection/components/data/revogr-data.js +626 -301
- package/dist/collection/components/data/revogr-data.js.map +1 -0
- package/dist/collection/components/data/row-highlight.plugin.js +51 -0
- package/dist/collection/components/data/row-highlight.plugin.js.map +1 -0
- package/dist/collection/components/data/row-renderer.js +16 -0
- package/dist/collection/components/data/row-renderer.js.map +1 -0
- package/dist/collection/components/editors/edit.utils.js +9 -0
- package/dist/collection/components/editors/edit.utils.js.map +1 -0
- package/dist/collection/components/{overlay → editors}/revogr-edit-style.css +15 -9
- package/dist/collection/components/editors/revogr-edit.js +316 -0
- package/dist/collection/components/editors/revogr-edit.js.map +1 -0
- package/dist/collection/components/editors/text-editor.js +73 -0
- package/dist/collection/components/editors/text-editor.js.map +1 -0
- package/dist/collection/components/header/header-cell-renderer.js +28 -0
- package/dist/collection/components/header/header-cell-renderer.js.map +1 -0
- package/dist/collection/components/header/header-renderer.js +47 -0
- package/dist/collection/components/header/header-renderer.js.map +1 -0
- package/dist/collection/components/header/revogr-header-style.css +15 -9
- package/dist/collection/components/header/revogr-header.js +421 -297
- package/dist/collection/components/header/revogr-header.js.map +1 -0
- package/dist/collection/components/order/order-renderer.js +50 -0
- package/dist/collection/components/order/order-renderer.js.map +1 -0
- package/dist/collection/components/order/order-row.service.js +72 -0
- package/dist/collection/components/order/order-row.service.js.map +1 -0
- package/dist/collection/components/order/revogr-order-editor.js +381 -350
- package/dist/collection/components/order/revogr-order-editor.js.map +1 -0
- package/dist/collection/components/overlay/autofill.service.js +206 -179
- package/dist/collection/components/overlay/autofill.service.js.map +1 -0
- package/dist/collection/components/overlay/keyboard.service.js +137 -124
- package/dist/collection/components/overlay/keyboard.service.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +1208 -703
- package/dist/collection/components/overlay/revogr-overlay-selection.js.map +1 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +86 -13
- package/dist/collection/components/overlay/selection.utils.js +86 -82
- package/dist/collection/components/overlay/selection.utils.js.map +1 -0
- package/dist/collection/components/revoGrid/grid.helpers.js +28 -13
- package/dist/collection/components/revoGrid/grid.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/revo-grid-style.css +143 -51
- package/dist/collection/components/revoGrid/revo-grid.js +2834 -2181
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.helpers.js +9 -4
- package/dist/collection/components/revoGrid/viewport.helpers.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.resize.service.js +23 -19
- package/dist/collection/components/revoGrid/viewport.resize.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js +78 -50
- package/dist/collection/components/revoGrid/viewport.scrolling.service.js.map +1 -0
- package/dist/collection/components/revoGrid/viewport.service.js +224 -204
- package/dist/collection/components/revoGrid/viewport.service.js.map +1 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +262 -204
- package/dist/collection/components/rowHeaders/revogr-row-headers.js.map +1 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
- package/dist/collection/components/rowHeaders/row-header-render.js.map +1 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +20 -13
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +535 -369
- package/dist/collection/components/scroll/revogr-viewport-scroll.js.map +1 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js +44 -0
- package/dist/collection/components/scrollable/autohide-scroll.plugin.js.map +1 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +24 -18
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +286 -247
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js.map +1 -0
- package/dist/collection/components/selectionFocus/revogr-focus-style.css +16 -10
- package/dist/collection/components/selectionFocus/revogr-focus.js +366 -96
- package/dist/collection/components/selectionFocus/revogr-focus.js.map +1 -0
- package/dist/collection/components/selectionTempRange/revogr-temp-range-style.css +16 -10
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js +149 -128
- package/dist/collection/components/selectionTempRange/revogr-temp-range.js.map +1 -0
- package/dist/collection/components/vnode/vnode-converter.js +81 -0
- package/dist/collection/components/vnode/vnode-converter.js.map +1 -0
- package/dist/collection/components/vnode/vnode.utils.js +18 -0
- package/dist/collection/components/vnode/vnode.utils.js.map +1 -0
- package/dist/collection/global/global.js +15 -11
- package/dist/collection/global/global.js.map +1 -0
- package/dist/collection/index.js +18 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/plugins/base.plugin.js +88 -0
- package/dist/collection/plugins/base.plugin.js.map +1 -0
- package/dist/collection/plugins/column.auto-size.plugin.js +234 -0
- package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -0
- package/dist/collection/plugins/column.stretch.plugin.js +96 -0
- package/dist/collection/plugins/column.stretch.plugin.js.map +1 -0
- package/dist/collection/plugins/dispatcher.js +27 -0
- package/dist/collection/plugins/dispatcher.js.map +1 -0
- package/dist/collection/plugins/export/csv.js +57 -53
- package/dist/collection/plugins/export/csv.js.map +1 -0
- package/dist/collection/plugins/export/export.plugin.js +154 -150
- package/dist/collection/plugins/export/export.plugin.js.map +1 -0
- package/dist/collection/plugins/export/types.js +1 -0
- package/dist/collection/plugins/export/types.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/equal.js +15 -7
- package/dist/collection/plugins/filter/conditions/equal.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +10 -6
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +7 -3
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +12 -8
- package/dist/collection/plugins/filter/conditions/number/lessThan.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +7 -3
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/set.js +4 -0
- package/dist/collection/plugins/filter/conditions/set.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +17 -13
- package/dist/collection/plugins/filter/conditions/string/beginswith.js.map +1 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +17 -10
- package/dist/collection/plugins/filter/conditions/string/contains.js.map +1 -0
- package/dist/collection/plugins/filter/filter.button.js +21 -13
- package/dist/collection/plugins/filter/filter.button.js.map +1 -0
- package/dist/collection/plugins/filter/filter.plugin.js +280 -185
- package/dist/collection/plugins/filter/filter.plugin.js.map +1 -0
- package/dist/collection/plugins/filter/filter.pop.js +492 -246
- package/dist/collection/plugins/filter/filter.pop.js.map +1 -0
- package/dist/collection/plugins/filter/filter.service.js +42 -38
- package/dist/collection/plugins/filter/filter.service.js.map +1 -0
- package/dist/collection/plugins/filter/filter.style.css +68 -15
- package/dist/collection/plugins/filter/filter.types.js +1 -0
- package/dist/collection/plugins/filter/filter.types.js.map +1 -0
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +30 -26
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js.map +1 -0
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +38 -30
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +22 -18
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +7 -2
- package/dist/collection/plugins/groupingRow/grouping.const.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +64 -61
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +239 -237
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +27 -24
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +1 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +101 -131
- package/dist/collection/plugins/groupingRow/grouping.service.js.map +1 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +47 -43
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js.map +1 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js +167 -0
- package/dist/collection/plugins/moveColumn/column.drag.plugin.js.map +1 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js +69 -0
- package/dist/collection/plugins/moveColumn/order-column.handler.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +218 -163
- package/dist/collection/plugins/sorting/sorting.plugin.js.map +1 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +6 -2
- package/dist/collection/plugins/sorting/sorting.sign.js.map +1 -0
- package/dist/collection/serve/controller.js +233 -0
- package/dist/collection/{utilsExternal/generate-data.js → serve/data.js} +72 -32
- package/dist/collection/services/cell.helpers.js +9 -5
- package/dist/collection/services/cell.helpers.js.map +1 -0
- package/dist/collection/services/column.data.provider.js +201 -185
- package/dist/collection/services/column.data.provider.js.map +1 -0
- package/dist/collection/services/data.provider.js +70 -45
- package/dist/collection/services/data.provider.js.map +1 -0
- package/dist/collection/services/dimension.provider.js +143 -84
- package/dist/collection/services/dimension.provider.js.map +1 -0
- package/dist/collection/services/local.scroll.service.js +120 -0
- package/dist/collection/services/local.scroll.service.js.map +1 -0
- package/dist/collection/services/local.scroll.timer.js +42 -0
- package/dist/collection/services/local.scroll.timer.js.map +1 -0
- package/dist/collection/services/resizable.directive.js +211 -226
- package/dist/collection/services/resizable.directive.js.map +1 -0
- package/dist/collection/services/resizable.element.js +39 -0
- package/dist/collection/services/resizable.element.js.map +1 -0
- package/dist/collection/services/selection.store.connector.js +257 -208
- package/dist/collection/services/selection.store.connector.js.map +1 -0
- package/dist/collection/services/viewport.provider.js +16 -12
- package/dist/collection/services/viewport.provider.js.map +1 -0
- package/dist/collection/store/dataSource/data.proxy.js +29 -25
- package/dist/collection/store/dataSource/data.proxy.js.map +1 -0
- package/dist/collection/store/dataSource/data.store.js +100 -93
- package/dist/collection/store/dataSource/data.store.js.map +1 -0
- package/dist/collection/store/dataSource/index.js +7 -0
- package/dist/collection/store/dataSource/index.js.map +1 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js +36 -0
- package/dist/collection/store/dataSource/trimmed.plugin.js.map +1 -0
- package/dist/collection/store/dimension/dimension.helpers.js +97 -95
- package/dist/collection/store/dimension/dimension.helpers.js.map +1 -0
- package/dist/collection/store/dimension/dimension.store.js +106 -48
- package/dist/collection/store/dimension/dimension.store.js.map +1 -0
- package/dist/collection/store/dimension/index.js +6 -0
- package/dist/collection/store/dimension/index.js.map +1 -0
- package/dist/collection/store/selection/index.js +7 -0
- package/dist/collection/store/selection/index.js.map +1 -0
- package/dist/collection/store/selection/selection.helpers.js +43 -39
- package/dist/collection/store/selection/selection.helpers.js.map +1 -0
- package/dist/collection/store/selection/selection.store.js +75 -63
- package/dist/collection/store/selection/selection.store.js.map +1 -0
- package/dist/collection/store/selection/selection.store.service.js +35 -31
- package/dist/collection/store/selection/selection.store.service.js.map +1 -0
- package/dist/collection/store/storeTypes.js +10 -2
- package/dist/collection/store/storeTypes.js.map +1 -0
- package/dist/collection/store/viewport/index.js +6 -0
- package/dist/collection/store/viewport/index.js.map +1 -0
- package/dist/collection/store/viewport/viewport.helpers.js +247 -0
- package/dist/collection/store/viewport/viewport.helpers.js.map +1 -0
- package/dist/collection/store/viewport/viewport.store.js +193 -0
- package/dist/collection/store/viewport/viewport.store.js.map +1 -0
- package/dist/collection/themeManager/theme.compact.js +7 -3
- package/dist/collection/themeManager/theme.compact.js.map +1 -0
- package/dist/collection/themeManager/theme.default.js +7 -3
- package/dist/collection/themeManager/theme.default.js.map +1 -0
- package/dist/collection/themeManager/theme.material.js +7 -3
- package/dist/collection/themeManager/theme.material.js.map +1 -0
- package/dist/collection/themeManager/theme.service.js +53 -0
- package/dist/collection/themeManager/theme.service.js.map +1 -0
- package/dist/collection/types/dimension.js +2 -0
- package/dist/collection/types/dimension.js.map +1 -0
- package/dist/collection/types/interfaces.js +2 -0
- package/dist/collection/types/interfaces.js.map +1 -0
- package/dist/collection/types/plugin.js +2 -0
- package/dist/collection/types/plugin.js.map +1 -0
- package/dist/collection/types/plugin.types.js +2 -0
- package/dist/collection/types/plugin.types.js.map +1 -0
- package/dist/collection/types/selection.js +2 -0
- package/dist/collection/types/selection.js.map +1 -0
- package/dist/collection/types/theme.js +2 -0
- package/dist/collection/types/theme.js.map +1 -0
- package/dist/collection/types/viewport.interfaces.js +2 -0
- package/dist/collection/types/viewport.interfaces.js.map +1 -0
- package/dist/collection/utils/browser.js +7 -0
- package/dist/collection/utils/browser.js.map +1 -0
- package/dist/collection/utils/closest.polifill.js +22 -0
- package/dist/collection/utils/closest.polifill.js.map +1 -0
- package/dist/collection/utils/consts.js +8 -0
- package/dist/collection/utils/consts.js.map +1 -0
- package/dist/collection/utils/events.js +29 -0
- package/dist/collection/utils/events.js.map +1 -0
- package/dist/collection/utils/header.utils.js +24 -0
- package/dist/collection/utils/header.utils.js.map +1 -0
- package/dist/collection/utils/index.js +125 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/key.codes.js +76 -0
- package/dist/collection/utils/key.codes.js.map +1 -0
- package/dist/collection/utils/key.utils.js +84 -0
- package/dist/collection/utils/key.utils.js.map +1 -0
- package/dist/collection/utils/mobile.js +7 -0
- package/dist/collection/utils/mobile.js.map +1 -0
- package/dist/collection/utils/platform.js +5 -1
- package/dist/collection/utils/platform.js.map +1 -0
- package/dist/collection/utils/resize-observer.polifill.js +10 -0
- package/dist/collection/utils/resize-observer.polifill.js.map +1 -0
- package/dist/collection/utils/row-header-utils.js +9 -0
- package/dist/collection/utils/row-header-utils.js.map +1 -0
- package/dist/collection/utils/store.utils.js +7 -3
- package/dist/collection/utils/store.utils.js.map +1 -0
- package/dist/esm/app-globals-ef1fca59.js +12 -0
- package/dist/esm/app-globals-ef1fca59.js.map +1 -0
- package/dist/esm/column.service-21a3af74.js +520 -0
- package/dist/esm/column.service-21a3af74.js.map +1 -0
- package/dist/esm/debounce-7781346d.js +224 -0
- package/dist/esm/debounce-7781346d.js.map +1 -0
- package/dist/esm/dimension.helpers-a3065cb1.js +4185 -0
- package/dist/esm/dimension.helpers-a3065cb1.js.map +1 -0
- package/dist/esm/dispatcher-8ea9187d.js +30 -0
- package/dist/esm/dispatcher-8ea9187d.js.map +1 -0
- package/dist/esm/events-3dd8ee7c.js +228 -0
- package/dist/esm/events-3dd8ee7c.js.map +1 -0
- package/dist/esm/filter.button-46ce4f80.js +38 -0
- package/dist/esm/filter.button-46ce4f80.js.map +1 -0
- package/dist/esm/header-cell-renderer-1ca84d5f.js +301 -0
- package/dist/esm/header-cell-renderer-1ca84d5f.js.map +1 -0
- package/dist/esm/index-21436631.js +1837 -0
- package/dist/esm/index-21436631.js.map +1 -0
- package/dist/esm/index-98fd0168.js +79 -0
- package/dist/esm/index-98fd0168.js.map +1 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/key.utils-4586a3d6.js +120 -0
- package/dist/esm/key.utils-4586a3d6.js.map +1 -0
- package/dist/esm/loader.js +11 -26
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/{resize-observer-56b7b34f.js → resize-observer-83c9e167.js} +30 -14
- package/dist/esm/resize-observer-83c9e167.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +3988 -0
- package/dist/esm/revo-grid.entry.js.map +1 -0
- package/dist/esm/revo-grid.js +19 -65
- package/dist/esm/revo-grid.js.map +1 -0
- package/dist/esm/revogr-attribution_6.entry.js +1261 -0
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -0
- package/dist/esm/revogr-clipboard_3.entry.js +502 -0
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/esm/revogr-data_4.entry.js +951 -0
- package/dist/esm/revogr-data_4.entry.js.map +1 -0
- package/dist/esm/revogr-filter-panel.entry.js +268 -115
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -0
- package/dist/esm/selection.store-2577ddf9.js +391 -0
- package/dist/esm/selection.store-2577ddf9.js.map +1 -0
- package/dist/esm/storeTypes-f2647985.js +101 -0
- package/dist/esm/storeTypes-f2647985.js.map +1 -0
- package/dist/esm/throttle-cfd527d6.js +235 -0
- package/dist/esm/throttle-cfd527d6.js.map +1 -0
- package/dist/esm/toNumber-8de324a7.js +331 -0
- package/dist/esm/toNumber-8de324a7.js.map +1 -0
- package/dist/esm/viewport.helpers-6591d423.js +251 -0
- package/dist/esm/viewport.helpers-6591d423.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/loader/cdn.js +4 -0
- package/dist/loader/index.cjs.js +4 -0
- package/{loader → dist/loader}/index.d.ts +11 -3
- package/dist/loader/index.es2017.js +4 -0
- package/dist/{esm/polyfills/es5-html-element.js → loader/index.js} +5 -1
- package/{loader → dist/loader}/package.json +1 -0
- package/dist/revo-grid/app-globals-ef1fca59.js +5 -0
- package/dist/revo-grid/app-globals-ef1fca59.js.map +1 -0
- package/dist/revo-grid/column.service-21a3af74.js +5 -0
- package/dist/revo-grid/column.service-21a3af74.js.map +1 -0
- package/dist/revo-grid/debounce-7781346d.js +5 -0
- package/dist/revo-grid/debounce-7781346d.js.map +1 -0
- package/dist/revo-grid/dimension.helpers-a3065cb1.js +5 -0
- package/dist/revo-grid/dimension.helpers-a3065cb1.js.map +1 -0
- package/dist/revo-grid/dispatcher-8ea9187d.js +5 -0
- package/dist/revo-grid/dispatcher-8ea9187d.js.map +1 -0
- package/dist/revo-grid/events-3dd8ee7c.js +5 -0
- package/dist/revo-grid/events-3dd8ee7c.js.map +1 -0
- package/dist/revo-grid/filter.button-46ce4f80.js +5 -0
- package/dist/revo-grid/filter.button-46ce4f80.js.map +1 -0
- package/dist/revo-grid/header-cell-renderer-1ca84d5f.js +5 -0
- package/dist/revo-grid/header-cell-renderer-1ca84d5f.js.map +1 -0
- package/dist/revo-grid/index-21436631.js +6 -0
- package/dist/revo-grid/index-21436631.js.map +1 -0
- package/dist/revo-grid/index-98fd0168.js +5 -0
- package/dist/revo-grid/index-98fd0168.js.map +1 -0
- package/dist/revo-grid/index.esm.js +5 -0
- package/dist/revo-grid/index.esm.js.map +1 -0
- package/dist/revo-grid/key.utils-4586a3d6.js +5 -0
- package/dist/revo-grid/key.utils-4586a3d6.js.map +1 -0
- package/dist/revo-grid/resize-observer-83c9e167.js +5 -0
- package/dist/revo-grid/resize-observer-83c9e167.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +5 -0
- package/dist/revo-grid/revo-grid.entry.js.map +1 -0
- package/dist/revo-grid/revo-grid.esm.js +5 -1
- package/dist/revo-grid/revo-grid.esm.js.map +1 -0
- package/dist/revo-grid/revogr-attribution_6.entry.js +5 -0
- package/dist/revo-grid/revogr-attribution_6.entry.js.map +1 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js +5 -0
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -0
- package/dist/revo-grid/revogr-data_4.entry.js +5 -0
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +5 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js.map +1 -0
- package/dist/revo-grid/selection.store-2577ddf9.js +5 -0
- package/dist/revo-grid/selection.store-2577ddf9.js.map +1 -0
- package/dist/revo-grid/storeTypes-f2647985.js +5 -0
- package/dist/revo-grid/storeTypes-f2647985.js.map +1 -0
- package/dist/revo-grid/throttle-cfd527d6.js +5 -0
- package/dist/revo-grid/throttle-cfd527d6.js.map +1 -0
- package/dist/revo-grid/toNumber-8de324a7.js +5 -0
- package/dist/revo-grid/toNumber-8de324a7.js.map +1 -0
- package/dist/revo-grid/viewport.helpers-6591d423.js +5 -0
- package/dist/revo-grid/viewport.helpers-6591d423.js.map +1 -0
- package/dist/types/components/attribution/revogr-attribution.d.ts +12 -0
- package/dist/types/components/clipboard/revogr-clipboard.d.ts +78 -10
- package/dist/types/components/data/cell-renderer.d.ts +14 -0
- package/dist/types/components/data/column.service.d.ts +60 -0
- package/dist/types/components/data/revogr-data.d.ts +101 -27
- package/dist/types/components/data/row-highlight.plugin.d.ts +10 -0
- package/dist/types/components/data/{rowRenderer.d.ts → row-renderer.d.ts} +6 -5
- package/dist/types/components/editors/revogr-edit.d.ts +63 -0
- package/dist/types/components/editors/text-editor.d.ts +46 -0
- package/dist/types/components/header/header-cell-renderer.d.ts +11 -0
- package/dist/types/components/header/header-renderer.d.ts +17 -0
- package/dist/types/components/header/revogr-header.d.ts +70 -22
- package/dist/types/components/order/order-renderer.d.ts +29 -0
- package/dist/types/components/order/order-row.service.d.ts +28 -0
- package/dist/types/components/order/revogr-order-editor.d.ts +43 -41
- package/dist/types/components/overlay/autofill.service.d.ts +69 -54
- package/dist/types/components/overlay/keyboard.service.d.ts +24 -23
- package/dist/types/components/overlay/revogr-overlay-selection.d.ts +216 -75
- package/dist/types/components/overlay/selection.utils.d.ts +24 -27
- package/dist/types/components/revoGrid/grid.helpers.d.ts +16 -11
- package/dist/types/components/revoGrid/revo-grid.d.ts +555 -403
- package/dist/types/components/revoGrid/viewport.helpers.d.ts +4 -3
- package/dist/types/components/revoGrid/viewport.resize.service.d.ts +7 -7
- package/dist/types/components/revoGrid/viewport.scrolling.service.d.ts +20 -21
- package/dist/types/components/revoGrid/viewport.service.d.ts +54 -56
- package/dist/types/components/rowHeaders/revogr-row-headers.d.ts +45 -12
- package/dist/types/components/rowHeaders/row-header-render.d.ts +5 -5
- package/dist/types/components/scroll/revogr-viewport-scroll.d.ts +115 -76
- package/dist/types/components/scrollable/autohide-scroll.plugin.d.ts +22 -0
- package/dist/types/components/scrollable/revogr-scroll-virtual.d.ts +39 -22
- package/dist/types/components/selectionFocus/revogr-focus.d.ts +61 -9
- package/dist/types/components/selectionTempRange/revogr-temp-range.d.ts +26 -11
- package/dist/types/components/vnode/vnode-converter.d.ts +19 -0
- package/dist/types/components/vnode/vnode.utils.d.ts +8 -0
- package/dist/types/components.d.ts +1595 -274
- package/dist/types/index.d.ts +14 -0
- package/dist/types/plugins/base.plugin.d.ts +49 -0
- package/dist/types/plugins/column.auto-size.plugin.d.ts +47 -0
- package/dist/types/plugins/column.stretch.plugin.d.ts +22 -0
- package/dist/types/plugins/dispatcher.d.ts +16 -0
- package/dist/types/plugins/export/csv.d.ts +6 -6
- package/dist/types/plugins/export/export.plugin.d.ts +18 -18
- package/dist/types/plugins/export/types.d.ts +15 -15
- package/dist/types/plugins/filter/filter.button.d.ts +7 -3
- package/dist/types/plugins/filter/filter.plugin.d.ts +61 -43
- package/dist/types/plugins/filter/filter.pop.d.ts +60 -35
- package/dist/types/plugins/filter/filter.service.d.ts +15 -15
- package/dist/types/plugins/filter/filter.types.d.ts +7 -7
- package/dist/types/plugins/groupingColumn/columnGroupsRenderer.d.ts +16 -13
- package/dist/types/plugins/groupingColumn/grouping.col.plugin.d.ts +10 -6
- package/dist/types/plugins/groupingColumn/headerGroupRenderer.d.ts +12 -10
- package/dist/types/plugins/groupingRow/grouping.const.d.ts +8 -7
- package/dist/types/plugins/groupingRow/grouping.row.expand.service.d.ts +6 -6
- package/dist/types/plugins/groupingRow/grouping.row.plugin.d.ts +32 -37
- package/dist/types/plugins/groupingRow/grouping.row.renderer.d.ts +7 -5
- package/dist/types/plugins/groupingRow/grouping.row.types.d.ts +23 -15
- package/dist/types/plugins/groupingRow/grouping.service.d.ts +18 -16
- package/dist/types/plugins/groupingRow/grouping.trimmed.service.d.ts +1 -1
- package/dist/types/plugins/moveColumn/column.drag.plugin.d.ts +56 -0
- package/dist/types/plugins/moveColumn/order-column.handler.d.ts +16 -0
- package/dist/types/plugins/sorting/sorting.plugin.d.ts +40 -27
- package/dist/types/plugins/sorting/sorting.sign.d.ts +3 -3
- package/dist/types/services/cell.helpers.d.ts +2 -2
- package/dist/types/services/column.data.provider.d.ts +33 -35
- package/dist/types/services/data.provider.d.ts +27 -21
- package/dist/types/services/dimension.provider.d.ts +52 -32
- package/dist/types/services/local.scroll.service.d.ts +37 -0
- package/dist/types/services/local.scroll.timer.d.ts +26 -0
- package/dist/types/services/resizable.directive.d.ts +52 -51
- package/dist/types/services/resizable.element.d.ts +4 -0
- package/dist/types/services/selection.store.connector.d.ts +54 -36
- package/dist/types/services/viewport.provider.d.ts +6 -8
- package/dist/types/stencil-public-runtime.d.ts +331 -217
- package/dist/types/store/dataSource/data.proxy.d.ts +3 -3
- package/dist/types/store/dataSource/data.store.d.ts +45 -46
- package/dist/types/store/dataSource/index.d.ts +3 -0
- package/dist/types/store/dataSource/trimmed.plugin.d.ts +10 -0
- package/dist/types/store/dimension/dimension.helpers.d.ts +24 -9
- package/dist/types/store/dimension/dimension.store.d.ts +29 -11
- package/dist/types/store/dimension/index.d.ts +2 -0
- package/dist/types/store/selection/index.d.ts +3 -0
- package/dist/types/store/selection/selection.helpers.d.ts +1 -3
- package/dist/types/store/selection/selection.store.d.ts +19 -17
- package/dist/types/store/selection/selection.store.service.d.ts +12 -13
- package/dist/types/store/storeTypes.d.ts +4 -4
- package/dist/types/store/viewport/index.d.ts +2 -0
- package/dist/types/store/viewport/viewport.helpers.d.ts +54 -0
- package/dist/types/store/viewport/viewport.store.d.ts +36 -0
- package/dist/types/themeManager/theme.compact.d.ts +3 -3
- package/dist/types/themeManager/theme.default.d.ts +3 -3
- package/dist/types/themeManager/theme.material.d.ts +3 -3
- package/dist/types/themeManager/theme.service.d.ts +13 -0
- package/dist/types/types/dimension.d.ts +8 -0
- package/dist/types/types/interfaces.d.ts +243 -0
- package/dist/types/types/plugin.d.ts +9 -0
- package/dist/types/types/plugin.types.d.ts +12 -0
- package/dist/types/types/selection.d.ts +115 -0
- package/dist/types/types/theme.d.ts +7 -0
- package/dist/types/types/viewport.interfaces.d.ts +51 -0
- package/dist/types/utils/browser.d.ts +1 -0
- package/dist/types/utils/consts.d.ts +5 -1
- package/dist/types/utils/events.d.ts +2 -0
- package/dist/types/utils/{utils.d.ts → index.d.ts} +17 -1
- package/dist/types/utils/key.codes.d.ts +70 -0
- package/dist/types/utils/{keyCodes.utils.d.ts → key.utils.d.ts} +5 -1
- package/dist/types/utils/mobile.d.ts +1 -0
- package/dist/types/utils/platform.d.ts +1 -1
- package/dist/types/utils/row-header-utils.d.ts +2 -0
- package/dist/types/utils/store.utils.d.ts +2 -2
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +32381 -0
- package/hydrate/package.json +6 -0
- package/package.json +94 -52
- package/readme.md +135 -98
- package/standalone/_baseIteratee.js +1237 -0
- package/standalone/_baseIteratee.js.map +1 -0
- package/standalone/_stringToPath.js +1389 -0
- package/standalone/_stringToPath.js.map +1 -0
- package/standalone/column.service.js +889 -0
- package/standalone/column.service.js.map +1 -0
- package/standalone/consts.js +30 -0
- package/standalone/consts.js.map +1 -0
- package/standalone/data.store.js +705 -0
- package/standalone/data.store.js.map +1 -0
- package/standalone/debounce.js +225 -0
- package/standalone/debounce.js.map +1 -0
- package/standalone/dimension.helpers.js +355 -0
- package/standalone/dimension.helpers.js.map +1 -0
- package/standalone/each.js +200 -0
- package/standalone/each.js.map +1 -0
- package/standalone/filter.button.js +38 -0
- package/standalone/filter.button.js.map +1 -0
- package/standalone/identity.js +349 -0
- package/standalone/identity.js.map +1 -0
- package/standalone/index.d.ts +66 -0
- package/standalone/index.js +42 -0
- package/standalone/index.js.map +1 -0
- package/standalone/index2.js +55 -0
- package/standalone/index2.js.map +1 -0
- package/standalone/isObjectLike.js +195 -0
- package/standalone/isObjectLike.js.map +1 -0
- package/standalone/local.scroll.timer.js +163 -0
- package/standalone/local.scroll.timer.js.map +1 -0
- package/{custom-element → standalone}/resize-observer.js +30 -14
- package/standalone/resize-observer.js.map +1 -0
- package/standalone/revo-grid.d.ts +11 -0
- package/standalone/revo-grid.js +4252 -0
- package/standalone/revo-grid.js.map +1 -0
- package/standalone/revogr-attribution.d.ts +11 -0
- package/standalone/revogr-attribution.js +11 -0
- package/standalone/revogr-attribution.js.map +1 -0
- package/standalone/revogr-attribution2.js +31 -0
- package/standalone/revogr-attribution2.js.map +1 -0
- package/standalone/revogr-clipboard.d.ts +11 -0
- package/standalone/revogr-clipboard.js +11 -0
- package/standalone/revogr-clipboard.js.map +1 -0
- package/standalone/revogr-clipboard2.js +159 -0
- package/standalone/revogr-clipboard2.js.map +1 -0
- package/standalone/revogr-data.d.ts +11 -0
- package/standalone/revogr-data.js +11 -0
- package/standalone/revogr-data.js.map +1 -0
- package/standalone/revogr-data2.js +368 -0
- package/standalone/revogr-data2.js.map +1 -0
- package/standalone/revogr-edit.d.ts +11 -0
- package/standalone/revogr-edit.js +11 -0
- package/standalone/revogr-edit.js.map +1 -0
- package/standalone/revogr-edit2.js +335 -0
- package/standalone/revogr-edit2.js.map +1 -0
- package/standalone/revogr-filter-panel.d.ts +11 -0
- package/standalone/revogr-filter-panel.js +310 -0
- package/standalone/revogr-filter-panel.js.map +1 -0
- package/standalone/revogr-focus.d.ts +11 -0
- package/standalone/revogr-focus.js +11 -0
- package/standalone/revogr-focus.js.map +1 -0
- package/standalone/revogr-focus2.js +106 -0
- package/standalone/revogr-focus2.js.map +1 -0
- package/standalone/revogr-header.d.ts +11 -0
- package/standalone/revogr-header.js +11 -0
- package/standalone/revogr-header.js.map +1 -0
- package/standalone/revogr-header2.js +667 -0
- package/standalone/revogr-header2.js.map +1 -0
- package/standalone/revogr-order-editor.d.ts +11 -0
- package/standalone/revogr-order-editor.js +11 -0
- package/standalone/revogr-order-editor.js.map +1 -0
- package/standalone/revogr-order-editor2.js +199 -0
- package/standalone/revogr-order-editor2.js.map +1 -0
- package/standalone/revogr-overlay-selection.d.ts +11 -0
- package/standalone/revogr-overlay-selection.js +11 -0
- package/standalone/revogr-overlay-selection.js.map +1 -0
- package/standalone/revogr-overlay-selection2.js +876 -0
- package/standalone/revogr-overlay-selection2.js.map +1 -0
- package/standalone/revogr-row-headers.d.ts +11 -0
- package/standalone/revogr-row-headers.js +11 -0
- package/standalone/revogr-row-headers.js.map +1 -0
- package/standalone/revogr-row-headers2.js +555 -0
- package/standalone/revogr-row-headers2.js.map +1 -0
- package/standalone/revogr-scroll-virtual.d.ts +11 -0
- package/standalone/revogr-scroll-virtual.js +11 -0
- package/standalone/revogr-scroll-virtual.js.map +1 -0
- package/standalone/revogr-scroll-virtual2.js +187 -0
- package/standalone/revogr-scroll-virtual2.js.map +1 -0
- package/standalone/revogr-temp-range.d.ts +11 -0
- package/standalone/revogr-temp-range.js +11 -0
- package/standalone/revogr-temp-range.js.map +1 -0
- package/standalone/revogr-temp-range2.js +90 -0
- package/standalone/revogr-temp-range2.js.map +1 -0
- package/standalone/revogr-viewport-scroll.d.ts +11 -0
- package/standalone/revogr-viewport-scroll.js +11 -0
- package/standalone/revogr-viewport-scroll.js.map +1 -0
- package/standalone/revogr-viewport-scroll2.js +336 -0
- package/standalone/revogr-viewport-scroll2.js.map +1 -0
- package/standalone/selection.utils.js +108 -0
- package/standalone/selection.utils.js.map +1 -0
- package/standalone/throttle.js +79 -0
- package/standalone/throttle.js.map +1 -0
- package/standalone/toNumber.js +144 -0
- package/standalone/toNumber.js.map +1 -0
- package/standalone/vnode-converter.js +45 -0
- package/standalone/vnode-converter.js.map +1 -0
- package/standalone/vnode-html.d.ts +11 -0
- package/standalone/vnode-html.js +11 -0
- package/standalone/vnode-html.js.map +1 -0
- package/custom-element/index.d.ts +0 -117
- package/custom-element/index.js +0 -28857
- package/dist/cjs/css-shim-e33df79c.js +0 -6
- package/dist/cjs/dom-c8b6d1a7.js +0 -75
- package/dist/cjs/filter.button-2396a488.js +0 -27
- package/dist/cjs/index-d3f67f2e.js +0 -1729
- package/dist/cjs/revo-grid_11.cjs.entry.js +0 -28621
- package/dist/cjs/revogr-clipboard.cjs.entry.js +0 -53
- package/dist/collection/components/button/button.js +0 -4
- package/dist/collection/components/data/cellRenderer.js +0 -19
- package/dist/collection/components/data/columnService.js +0 -243
- package/dist/collection/components/data/rowRenderer.js +0 -6
- package/dist/collection/components/header/headerCellRenderer.js +0 -19
- package/dist/collection/components/header/headerRenderer.js +0 -45
- package/dist/collection/components/order/orderRenderer.js +0 -50
- package/dist/collection/components/order/rowOrderService.js +0 -68
- package/dist/collection/components/overlay/clipboard.service.js +0 -39
- package/dist/collection/components/overlay/editors/edit.utils.js +0 -5
- package/dist/collection/components/overlay/editors/text.js +0 -35
- package/dist/collection/components/overlay/revogr-edit.js +0 -163
- package/dist/collection/components/revoGrid/viewport.interfaces.js +0 -1
- package/dist/collection/components/revoGrid/viewport.js +0 -18
- package/dist/collection/components/revoGrid/viewport.section.js +0 -28
- package/dist/collection/components/rowHeaders/row-header-utils.js +0 -4
- package/dist/collection/plugins/autoSizeColumn.d.ts +0 -54
- package/dist/collection/plugins/autoSizeColumn.js +0 -230
- package/dist/collection/plugins/basePlugin.d.ts +0 -37
- package/dist/collection/plugins/basePlugin.js +0 -53
- package/dist/collection/plugins/export/csv.d.ts +0 -9
- package/dist/collection/plugins/export/export.plugin.d.ts +0 -24
- package/dist/collection/plugins/export/types.d.ts +0 -23
- package/dist/collection/plugins/filter/conditions/equal.d.ts +0 -4
- package/dist/collection/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/number/lessThan.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/set.d.ts +0 -4
- package/dist/collection/plugins/filter/conditions/string/beginswith.d.ts +0 -3
- package/dist/collection/plugins/filter/conditions/string/contains.d.ts +0 -4
- package/dist/collection/plugins/filter/filter.button.d.ts +0 -10
- package/dist/collection/plugins/filter/filter.plugin.d.ts +0 -59
- package/dist/collection/plugins/filter/filter.pop.d.ts +0 -42
- package/dist/collection/plugins/filter/filter.service.d.ts +0 -20
- package/dist/collection/plugins/filter/filter.types.d.ts +0 -8
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
- package/dist/collection/plugins/groupingRow/grouping.const.d.ts +0 -9
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
- package/dist/collection/plugins/groupingRow/grouping.row.types.d.ts +0 -19
- package/dist/collection/plugins/groupingRow/grouping.service.d.ts +0 -25
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
- package/dist/collection/plugins/sorting/sorting.plugin.d.ts +0 -32
- package/dist/collection/plugins/sorting/sorting.sign.d.ts +0 -8
- package/dist/collection/plugins/stretchPlugin.d.ts +0 -29
- package/dist/collection/plugins/stretchPlugin.js +0 -90
- package/dist/collection/plugins/trimmed/trimmed.plugin.d.ts +0 -10
- package/dist/collection/plugins/trimmed/trimmed.plugin.js +0 -32
- package/dist/collection/services/localScrollService.js +0 -80
- package/dist/collection/store/viewPort/viewport.helpers.js +0 -180
- package/dist/collection/store/viewPort/viewport.store.js +0 -121
- package/dist/collection/themeManager/themeService.js +0 -43
- package/dist/collection/utils/closestPolifill.js +0 -18
- package/dist/collection/utils/generateAlphabetHeader.js +0 -20
- package/dist/collection/utils/keyCodes.js +0 -70
- package/dist/collection/utils/keyCodes.utils.js +0 -64
- package/dist/collection/utils/resizeObserver.js +0 -6
- package/dist/collection/utils/utils.js +0 -104
- package/dist/esm/css-shim-8d75038b.js +0 -4
- package/dist/esm/dom-1b195079.js +0 -73
- package/dist/esm/filter.button-53ebca66.js +0 -23
- package/dist/esm/index-42c84e7c.js +0 -1694
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/revo-grid_11.entry.js +0 -28607
- package/dist/esm/revogr-clipboard.entry.js +0 -49
- package/dist/esm-es5/css-shim-8d75038b.js +0 -1
- package/dist/esm-es5/dom-1b195079.js +0 -21
- package/dist/esm-es5/filter.button-53ebca66.js +0 -1
- package/dist/esm-es5/index-42c84e7c.js +0 -1
- package/dist/esm-es5/loader.js +0 -1
- package/dist/esm-es5/resize-observer-56b7b34f.js +0 -1
- package/dist/esm-es5/revo-grid.js +0 -1
- package/dist/esm-es5/revo-grid_11.entry.js +0 -1
- package/dist/esm-es5/revogr-clipboard.entry.js +0 -1
- package/dist/esm-es5/revogr-filter-panel.entry.js +0 -1
- package/dist/revo-grid/css-shim-88bfb262.system.js +0 -1
- package/dist/revo-grid/css-shim-8d75038b.js +0 -1
- package/dist/revo-grid/dom-1b195079.js +0 -19
- package/dist/revo-grid/dom-ee2dd1b3.system.js +0 -21
- package/dist/revo-grid/filter.button-1509c206.js +0 -1
- package/dist/revo-grid/filter.button-4bd87101.system.js +0 -1
- package/dist/revo-grid/index-a15e7527.system.js +0 -1
- package/dist/revo-grid/index-a7f99799.js +0 -1
- package/dist/revo-grid/index.system.js +0 -1
- package/dist/revo-grid/plugins/autoSizeColumn.d.ts +0 -54
- package/dist/revo-grid/plugins/basePlugin.d.ts +0 -37
- package/dist/revo-grid/plugins/export/csv.d.ts +0 -9
- package/dist/revo-grid/plugins/export/export.plugin.d.ts +0 -24
- package/dist/revo-grid/plugins/export/types.d.ts +0 -23
- package/dist/revo-grid/plugins/filter/conditions/equal.d.ts +0 -4
- package/dist/revo-grid/plugins/filter/conditions/number/greaterThan.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/number/greaterThanOrEqual.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/number/lessThan.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/number/lessThanOrEqual.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/set.d.ts +0 -4
- package/dist/revo-grid/plugins/filter/conditions/string/beginswith.d.ts +0 -3
- package/dist/revo-grid/plugins/filter/conditions/string/contains.d.ts +0 -4
- package/dist/revo-grid/plugins/filter/filter.button.d.ts +0 -10
- package/dist/revo-grid/plugins/filter/filter.plugin.d.ts +0 -59
- package/dist/revo-grid/plugins/filter/filter.pop.d.ts +0 -42
- package/dist/revo-grid/plugins/filter/filter.service.d.ts +0 -20
- package/dist/revo-grid/plugins/filter/filter.types.d.ts +0 -8
- package/dist/revo-grid/plugins/groupingColumn/columnGroupsRenderer.d.ts +0 -16
- package/dist/revo-grid/plugins/groupingColumn/grouping.col.plugin.d.ts +0 -13
- package/dist/revo-grid/plugins/groupingColumn/headerGroupRenderer.d.ts +0 -14
- package/dist/revo-grid/plugins/groupingRow/grouping.const.d.ts +0 -9
- package/dist/revo-grid/plugins/groupingRow/grouping.row.expand.service.d.ts +0 -15
- package/dist/revo-grid/plugins/groupingRow/grouping.row.plugin.d.ts +0 -40
- package/dist/revo-grid/plugins/groupingRow/grouping.row.renderer.d.ts +0 -9
- package/dist/revo-grid/plugins/groupingRow/grouping.row.types.d.ts +0 -19
- package/dist/revo-grid/plugins/groupingRow/grouping.service.d.ts +0 -25
- package/dist/revo-grid/plugins/groupingRow/grouping.trimmed.service.d.ts +0 -10
- package/dist/revo-grid/plugins/sorting/sorting.plugin.d.ts +0 -32
- package/dist/revo-grid/plugins/sorting/sorting.sign.d.ts +0 -8
- package/dist/revo-grid/plugins/stretchPlugin.d.ts +0 -29
- package/dist/revo-grid/plugins/trimmed/trimmed.plugin.d.ts +0 -10
- package/dist/revo-grid/resize-observer-56b7b34f.js +0 -1
- package/dist/revo-grid/resize-observer-7a7b9757.system.js +0 -1
- package/dist/revo-grid/revo-grid.js +0 -132
- package/dist/revo-grid/revo-grid.system.js +0 -1
- package/dist/revo-grid/revo-grid_11.entry.js +0 -1
- package/dist/revo-grid/revo-grid_11.system.entry.js +0 -1
- package/dist/revo-grid/revogr-clipboard.entry.js +0 -1
- package/dist/revo-grid/revogr-clipboard.system.entry.js +0 -1
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +0 -1
- package/dist/types/components/button/button.d.ts +0 -5
- package/dist/types/components/data/cellRenderer.d.ts +0 -8
- package/dist/types/components/data/columnService.d.ts +0 -42
- package/dist/types/components/header/headerCellRenderer.d.ts +0 -8
- package/dist/types/components/header/headerRenderer.d.ts +0 -15
- package/dist/types/components/order/orderRenderer.d.ts +0 -28
- package/dist/types/components/order/rowOrderService.d.ts +0 -27
- package/dist/types/components/overlay/clipboard.service.d.ts +0 -20
- package/dist/types/components/overlay/editors/text.d.ts +0 -13
- package/dist/types/components/overlay/revogr-edit.d.ts +0 -19
- package/dist/types/components/revoGrid/viewport.d.ts +0 -19
- package/dist/types/components/revoGrid/viewport.interfaces.d.ts +0 -66
- package/dist/types/components/revoGrid/viewport.section.d.ts +0 -24
- package/dist/types/components/rowHeaders/row-header-utils.d.ts +0 -2
- package/dist/types/interfaces.d.ts +0 -437
- package/dist/types/plugins/autoSizeColumn.d.ts +0 -54
- package/dist/types/plugins/basePlugin.d.ts +0 -37
- package/dist/types/plugins/stretchPlugin.d.ts +0 -29
- package/dist/types/plugins/trimmed/trimmed.plugin.d.ts +0 -10
- package/dist/types/services/localScrollService.d.ts +0 -28
- package/dist/types/store/viewPort/viewport.helpers.d.ts +0 -30
- package/dist/types/store/viewPort/viewport.store.d.ts +0 -18
- package/dist/types/themeManager/themeService.d.ts +0 -13
- package/dist/types/utils/closestPolifill.d.ts +0 -0
- package/dist/types/utils/keyCodes.d.ts +0 -68
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- /package/dist/types/components/{overlay/editors → editors}/edit.utils.d.ts +0 -0
- /package/dist/{esm-es5/index.js → types/utils/closest.polifill.d.ts} +0 -0
- /package/dist/types/utils/{generateAlphabetHeader.d.ts → header.utils.d.ts} +0 -0
- /package/dist/types/utils/{resizeObserver.d.ts → resize-observer.polifill.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t,f as r,h as e,r as n,c as i,H as o,e as s}from"./index-a7f99799.js";import{i as u,F as a,a as c}from"./filter.button-1509c206.js";class l{constructor(){this.defaultRowSize=32}}class h{constructor(){this.defaultRowSize=27}}class f{constructor(){this.defaultRowSize=42}}const d=["default","material","compact","darkMaterial","darkCompact"];class v{constructor(t){this.customRowSize=0,this.customRowSize=t.rowSize,this.register("default")}get theme(){return this.currentTheme}get rowSize(){return this.customRowSize||this.currentTheme.defaultRowSize}set rowSize(t){this.customRowSize=t}register(t){switch(v.getTheme(t)){case"material":case"darkMaterial":this.currentTheme=new f;break;case"compact":case"darkCompact":this.currentTheme=new l;break;default:this.currentTheme=new h}}static getTheme(t){return d.indexOf(t)>-1?t:"default"}}var g=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t},p=function(t,r,e){for(var n=-1,i=Object(t),o=e(t),s=o.length;s--;){var u=o[++n];if(!1===r(i[u],u,i))break}return t},C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(t,r,e){return t(e={path:r,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},e.exports),e.exports}var L="object"==typeof C&&C&&C.Object===Object&&C,m="object"==typeof self&&self&&self.Object===Object&&self,b=L||m||Function("return this")(),x=b.Symbol,y=Object.prototype,k=y.hasOwnProperty,E=y.toString,S=x?x.toStringTag:void 0,j=Object.prototype.toString,R=x?x.toStringTag:void 0,z=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var r=k.call(t,S),e=t[S];try{t[S]=void 0;var n=!0}catch(t){}var i=E.call(t);return n&&(r?t[S]=e:delete t[S]),i}(t):function(t){return j.call(t)}(t)},O=function(t){return null!=t&&"object"==typeof t},M=function(t){return O(t)&&"[object Arguments]"==z(t)},F=Object.prototype,_=F.hasOwnProperty,T=F.propertyIsEnumerable,A=M(function(){return arguments}())?M:function(t){return O(t)&&_.call(t,"callee")&&!T.call(t,"callee")},D=Array.isArray,P=function(){return!1},I=w((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e?b.Buffer:void 0;t.exports=(i?i.isBuffer:void 0)||P})),$=/^(?:0|[1-9]\d*)$/,U=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&$.test(t))&&t>-1&&t%1==0&&t<r},H=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Z={};Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Arguments]"]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object Boolean]"]=Z["[object DataView]"]=Z["[object Date]"]=Z["[object Error]"]=Z["[object Function]"]=Z["[object Map]"]=Z["[object Number]"]=Z["[object Object]"]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object WeakMap]"]=!1;var B,N=w((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,i=n&&n.exports===e&&L.process,o=function(){try{return n&&n.require&&n.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=o})),W=N&&N.isTypedArray,V=W?(B=W,function(t){return B(t)}):function(t){return O(t)&&H(t.length)&&!!Z[z(t)]},G=Object.prototype.hasOwnProperty,q=function(t,r){var e=D(t),n=!e&&A(t),i=!e&&!n&&I(t),o=!e&&!n&&!i&&V(t),s=e||n||i||o,u=s?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],a=u.length;for(var c in t)!r&&!G.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||U(c,a))||u.push(c);return u},K=Object.prototype,X=function(t,r){return function(e){return t(r(e))}}(Object.keys,Object),J=Object.prototype.hasOwnProperty,Y=function(t){if((r=t)!==("function"==typeof(e=r&&r.constructor)&&e.prototype||K))return X(t);var r,e,n=[];for(var i in Object(t))J.call(t,i)&&"constructor"!=i&&n.push(i);return n},Q=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)},tt=function(t){if(!Q(t))return!1;var r=z(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},rt=function(t){return null!=t&&H(t.length)&&!tt(t)},et=function(t){return rt(t)?q(t):Y(t)},nt=function(t,r){if(null==t)return t;if(!rt(t))return function(t,r){return t&&p(t,r,et)}(t,r);for(var e=t.length,n=-1,i=Object(t);++n<e&&!1!==r(i[n],n,i););return t},it=function(t){return t},ot=function(t,r){return(D(t)?g:nt)(t,"function"==typeof(e=r)?e:it);var e},st=function(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e},ut=function(t,r){return t===r||t!=t&&r!=r},at=function(t,r){for(var e=t.length;e--;)if(ut(t[e][0],r))return e;return-1},ct=Array.prototype.splice;function lt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}lt.prototype.clear=function(){this.__data__=[],this.size=0},lt.prototype.delete=function(t){var r=this.__data__,e=at(r,t);return!(e<0||(e==r.length-1?r.pop():ct.call(r,e,1),--this.size,0))},lt.prototype.get=function(t){var r=this.__data__,e=at(r,t);return e<0?void 0:r[e][1]},lt.prototype.has=function(t){return at(this.__data__,t)>-1},lt.prototype.set=function(t,r){var e=this.__data__,n=at(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var ht,ft=lt,dt=b["__core-js_shared__"],vt=(ht=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+ht:"",gt=Function.prototype.toString,pt=function(t){if(null!=t){try{return gt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ct=/^\[object .+?Constructor\]$/,wt=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lt=function(t){return!(!Q(t)||function(t){return!!vt&&vt in t}(t))&&(tt(t)?wt:Ct).test(pt(t))},mt=function(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return Lt(e)?e:void 0},bt=mt(b,"Map"),xt=mt(Object,"create"),yt=Object.prototype.hasOwnProperty,kt=Object.prototype.hasOwnProperty;function Et(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Et.prototype.clear=function(){this.__data__=xt?xt(null):{},this.size=0},Et.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Et.prototype.get=function(t){var r=this.__data__;if(xt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return yt.call(r,t)?r[t]:void 0},Et.prototype.has=function(t){var r=this.__data__;return xt?void 0!==r[t]:kt.call(r,t)},Et.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=xt&&void 0===r?"__lodash_hash_undefined__":r,this};var St=Et,jt=function(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map};function Rt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Rt.prototype.clear=function(){this.size=0,this.__data__={hash:new St,map:new(bt||ft),string:new St}},Rt.prototype.delete=function(t){var r=jt(this,t).delete(t);return this.size-=r?1:0,r},Rt.prototype.get=function(t){return jt(this,t).get(t)},Rt.prototype.has=function(t){return jt(this,t).has(t)},Rt.prototype.set=function(t,r){var e=jt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};var zt=Rt;function Ot(t){var r=this.__data__=new ft(t);this.size=r.size}Ot.prototype.clear=function(){this.__data__=new ft,this.size=0},Ot.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},Ot.prototype.get=function(t){return this.__data__.get(t)},Ot.prototype.has=function(t){return this.__data__.has(t)},Ot.prototype.set=function(t,r){var e=this.__data__;if(e instanceof ft){var n=e.__data__;if(!bt||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new zt(n)}return e.set(t,r),this.size=e.size,this};var Mt=Ot;function Ft(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new zt;++r<e;)this.add(t[r])}Ft.prototype.add=Ft.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ft.prototype.has=function(t){return this.__data__.has(t)};var _t=Ft,Tt=function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1},At=function(t,r,e,n,i,o){var s=1&e,u=t.length,a=r.length;if(u!=a&&!(s&&a>u))return!1;var c=o.get(t),l=o.get(r);if(c&&l)return c==r&&l==t;var h=-1,f=!0,d=2&e?new _t:void 0;for(o.set(t,r),o.set(r,t);++h<u;){var v=t[h],g=r[h];if(n)var p=s?n(g,v,h,r,t,o):n(v,g,h,t,r,o);if(void 0!==p){if(p)continue;f=!1;break}if(d){if(!Tt(r,(function(t,r){if(!d.has(r)&&(v===t||i(v,t,e,n,o)))return d.push(r)}))){f=!1;break}}else if(v!==g&&!i(v,g,e,n,o)){f=!1;break}}return o.delete(t),o.delete(r),f},Dt=b.Uint8Array,Pt=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e},It=function(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e},$t=x?x.prototype:void 0,Ut=$t?$t.valueOf:void 0,Ht=Object.prototype.propertyIsEnumerable,Zt=Object.getOwnPropertySymbols,Bt=Zt?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}(Zt(t),(function(r){return Ht.call(t,r)})))}:function(){return[]},Nt=function(t){return function(t,r,e){var n=r(t);return D(t)?n:function(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}(n,e(t))}(t,et,Bt)},Wt=Object.prototype.hasOwnProperty,Vt=mt(b,"DataView"),Gt=mt(b,"Promise"),qt=mt(b,"Set"),Kt=mt(b,"WeakMap"),Xt=pt(Vt),Jt=pt(bt),Yt=pt(Gt),Qt=pt(qt),tr=pt(Kt),rr=z;(Vt&&"[object DataView]"!=rr(new Vt(new ArrayBuffer(1)))||bt&&"[object Map]"!=rr(new bt)||Gt&&"[object Promise]"!=rr(Gt.resolve())||qt&&"[object Set]"!=rr(new qt)||Kt&&"[object WeakMap]"!=rr(new Kt))&&(rr=function(t){var r=z(t),e="[object Object]"==r?t.constructor:void 0,n=e?pt(e):"";if(n)switch(n){case Xt:return"[object DataView]";case Jt:return"[object Map]";case Yt:return"[object Promise]";case Qt:return"[object Set]";case tr:return"[object WeakMap]"}return r});var er=rr,nr="[object Object]",ir=Object.prototype.hasOwnProperty,or=function(t,r,e,n,i,o){var s=D(t),u=D(r),a=s?"[object Array]":er(t),c=u?"[object Array]":er(r),l=(a="[object Arguments]"==a?nr:a)==nr,h=(c="[object Arguments]"==c?nr:c)==nr,f=a==c;if(f&&I(t)){if(!I(r))return!1;s=!0,l=!1}if(f&&!l)return o||(o=new Mt),s||V(t)?At(t,r,e,n,i,o):function(t,r,e,n,i,o,s){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!o(new Dt(t),new Dt(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ut(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var u=Pt;case"[object Set]":if(u||(u=It),t.size!=r.size&&!(1&n))return!1;var a=s.get(t);if(a)return a==r;n|=2,s.set(t,r);var c=At(u(t),u(r),n,i,o,s);return s.delete(t),c;case"[object Symbol]":if(Ut)return Ut.call(t)==Ut.call(r)}return!1}(t,r,a,e,n,i,o);if(!(1&e)){var d=l&&ir.call(t,"__wrapped__"),v=h&&ir.call(r,"__wrapped__");if(d||v){var g=d?t.value():t,p=v?r.value():r;return o||(o=new Mt),i(g,p,e,n,o)}}return!!f&&(o||(o=new Mt),function(t,r,e,n,i,o){var s=1&e,u=Nt(t),a=u.length;if(a!=Nt(r).length&&!s)return!1;for(var c=a;c--;){var l=u[c];if(!(s?l in r:Wt.call(r,l)))return!1}var h=o.get(t),f=o.get(r);if(h&&f)return h==r&&f==t;var d=!0;o.set(t,r),o.set(r,t);for(var v=s;++c<a;){var g=t[l=u[c]],p=r[l];if(n)var C=s?n(p,g,l,r,t,o):n(g,p,l,t,r,o);if(!(void 0===C?g===p||i(g,p,e,n,o):C)){d=!1;break}v||(v="constructor"==l)}if(d&&!v){var w=t.constructor,L=r.constructor;w==L||!("constructor"in t)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof L&&L instanceof L||(d=!1)}return o.delete(t),o.delete(r),d}(t,r,e,n,i,o))},sr=function t(r,e,n,i,o){return r===e||(null==r||null==e||!O(r)&&!O(e)?r!=r&&e!=e:or(r,e,n,i,t,o))},ur=function(t){return t==t&&!Q(t)},ar=function(t,r){return function(e){return null!=e&&e[t]===r&&(void 0!==r||t in Object(e))}},cr=function(t){var r=function(t){for(var r=et(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,ur(i)]}return r}(t);return 1==r.length&&r[0][2]?ar(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var i=e.length,o=i,s=!n;if(null==t)return!o;for(t=Object(t);i--;){var u=e[i];if(s&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var a=(u=e[i])[0],c=t[a],l=u[1];if(s&&u[2]){if(void 0===c&&!(a in t))return!1}else{var h=new Mt;if(n)var f=n(c,l,a,t,r,h);if(!(void 0===f?sr(l,c,3,n,h):f))return!1}}return!0}(e,t,r)}},lr=function(t){return"symbol"==typeof t||O(t)&&"[object Symbol]"==z(t)},hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fr=/^\w*$/,dr=function(t,r){if(D(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!lr(t))||fr.test(t)||!hr.test(t)||null!=r&&t in Object(r)};function vr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(vr.Cache||zt),e}vr.Cache=zt;var gr,pr,Cr,wr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lr=/\\(\\)?/g,mr=(gr=vr((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(wr,(function(t,e,n,i){r.push(n?i.replace(Lr,"$1"):e||t)})),r}),(function(t){return 500===pr.size&&pr.clear(),t})),pr=gr.cache,gr),br=function(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i},xr=x?x.prototype:void 0,yr=xr?xr.toString:void 0,kr=function t(r){if("string"==typeof r)return r;if(D(r))return br(r,t)+"";if(lr(r))return yr?yr.call(r):"";var e=r+"";return"0"==e&&1/r==-1/0?"-0":e},Er=function(t){return null==t?"":kr(t)},Sr=function(t,r){return D(t)?t:dr(t,r)?[t]:mr(Er(t))},jr=function(t){if("string"==typeof t||lr(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},Rr=function(t,r){for(var e=0,n=(r=Sr(r,t)).length;null!=t&&e<n;)t=t[jr(r[e++])];return e&&e==n?t:void 0},zr=function(t,r){return null!=t&&r in Object(t)},Or=function(t,r){return null!=t&&function(t,r,e){for(var n=-1,i=(r=Sr(r,t)).length,o=!1;++n<i;){var s=jr(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&H(i)&&U(s,i)&&(D(t)||A(t))}(t,r,zr)},Mr=function(t,r){return dr(t)&&ur(r)?ar(jr(t),r):function(e){var n=function(t,r,e){var n=null==t?void 0:Rr(t,r);return void 0===n?e:n}(e,t);return void 0===n&&n===r?Or(e,t):sr(r,n,3)}},Fr=function(t){return function(r){return null==r?void 0:r[t]}},_r=function(t){return dr(t)?Fr(jr(t)):function(t){return function(r){return Rr(r,t)}}(t)},Tr=function(t){return"function"==typeof t?t:null==t?it:"object"==typeof t?D(t)?Mr(t[0],t[1]):cr(t):_r(t)},Ar=function(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e},Dr=function(t,r,e){var n=D(t)?st:Ar,i=arguments.length<3;return n(t,Tr(r),e,i,nt)},Pr=function(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1},Ir=/\s/,$r=/^\s+/,Ur=function(t){return t?t.slice(0,function(t){for(var r=t.length;r--&&Ir.test(t.charAt(r)););return r}(t)+1).replace($r,""):t},Hr=/^[-+]0x[0-9a-f]+$/i,Zr=/^0b[01]+$/i,Br=/^0o[0-7]+$/i,Nr=parseInt,Wr=function(t){if("number"==typeof t)return t;if(lr(t))return NaN;if(Q(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Q(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Ur(t);var e=Zr.test(t);return e||Br.test(t)?Nr(t.slice(2),e?2:8):Hr.test(t)?NaN:+t},Vr=function(t){return t?1/0===(t=Wr(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Gr=function(t){var r=Vr(t),e=r%1;return r==r?e?r-e:r:0},qr=Math.max,Kr=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:Gr(e);return i<0&&(i=qr(n+i,0)),Pr(t,Tr(r),i)},Xr=(Cr=Kr,function(t,r,e){var n=Object(t);if(!rt(t)){var i=Tr(r);t=et(t),r=function(t){return i(n[t],t,n)}}var o=Cr(t,r,e);return o>-1?n[i?t[o]:o]:void 0});const Jr=t=>!("isConnected"in t)||t.isConnected,Yr=(()=>{let t;return(...r)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let r of t.keys())t.set(r,t.get(r).filter(Jr))})(...r)}),2e3)}})(),Qr=(e,n)=>{const i=((t,r=((t,r)=>t!==r))=>{let e=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},i=()=>{e=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((r=>r(t))),e.get(t)),s=(t,i)=>{const o=e.get(t);r(i,o,t)&&(e.set(t,i),n.set.forEach((r=>r(t,i,o))))},u="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,r)=>o(r),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,r)=>e.has(r),set:(t,r,e)=>(s(r,e),!0)}),a=(t,r)=>(n[t].push(r),()=>{((t,r)=>{const e=t.indexOf(r);e>=0&&(t[e]=t[t.length-1],t.length--)})(n[t],r)});return{state:u,get:o,set:s,on:a,onChange:(r,e)=>{const n=a("set",((t,n)=>{t===r&&e(n)})),i=a("reset",(()=>e(t[r])));return()=>{n(),i()}},use:(...t)=>t.forEach((t=>{t.set&&a("set",t.set),t.get&&a("get",t.get),t.reset&&a("reset",t.reset)})),dispose:()=>{n.dispose.forEach((t=>t())),i()},reset:i}})(e,n);return(({on:e})=>{const n=new Map;"function"==typeof t&&(e("dispose",(()=>{n.clear()})),e("get",(r=>{const e=t();e&&((t,r,e)=>{const n=t.get(r);n?n.includes(e)||n.push(e):t.set(r,[e])})(n,r,e)})),e("set",(t=>{const e=n.get(t);e&&n.set(t,e.filter(r)),Yr(n)})),e("reset",(()=>{n.forEach((t=>t.forEach(r))),Yr(n)})))})(i),i};var te=Math.ceil,re=Math.max,ee=function(t,r,e){if(!Q(e))return!1;var n=typeof r;return!!("number"==n?rt(e)&&U(r,e.length):"string"==n&&r in e)&&ut(e[r],t)},ne=function(t,r,e){return e&&"number"!=typeof e&&ee(t,r,e)&&(r=e=void 0),t=Vr(t),void 0===r?(r=t,t=0):r=Vr(r),function(t,r,e,n){for(var i=-1,o=re(te((r-t)/(e||1)),0),s=Array(o);o--;)s[n?o:++i]=t,t+=e;return s}(t,r,e=void 0===e?t<r?1:-1:Vr(e),void 0)};function ie(t,r){for(let e in r)t.set(e,r[e])}class oe{constructor(t){const r=this.dataStore=Qr({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:t,trimmed:{}});r.use((t=>({set(r,e){if(!function(t){return"proxyItems"===t}(r))return;const n=t.get("items").reduce(((t,r)=>(t[r]=!0,t)),{}),i=e.reduce(((t,r)=>(n[r]&&t.push(r),t)),[]);t.set("items",i)}}))(r)),r.use((t=>({set(r,e){switch(r){case"trimmed":const r=t.get("proxyItems"),n=function(t){const r={};for(let e in t)for(let n in t[e])r[n]=r[n]||t[e][n];return r}(e),i=r.reduce(((t,r)=>(n[r]||t.push(r),t)),[]);t.set("items",i)}}}))(r))}get store(){return this.dataStore}updateData(t,r,e=!1){e||this.store.set("trimmed",{}),this.store.set("items",[]);const n=ne(0,(null==t?void 0:t.length)||0);ie(this.store,{source:t,proxyItems:[...n]}),this.store.set("items",n),r&&ie(this.store,{groupingDepth:r.depth,groups:r.groups})}addTrimmed(t){let r=this.store.get("trimmed");r=Object.assign(Object.assign({},r),t),ie(this.store,{trimmed:r})}setData(t){const r=Object.assign({},t);ie(this.store,r)}refresh(){const t=this.store.get("source");this.store.set("source",[...t])}}function se(t){const r=t.get("source");return t.get("items").map((t=>r[t]))}function ue(t,r){const e=t.get("items");return t.get("source")[e[r]]}function ae(t,r){const e=t.get("items"),n=t.get("source");for(let t in r)n[e[t]]=r[t];t.set("source",[...n])}function ce(t,r){t.set("items",r)}const le=["rowPinStart","rgRow","rowPinEnd"],he=["colPinStart","rgCol","colPinEnd"];var fe=function(t,r){var e=-1,n=rt(t)?Array(t.length):[];return nt(t,(function(t,i,o){n[++e]=r(t,i,o)})),n},de=function(t,r){return(D(t)?br:fe)(t,Tr(r))};class ve{constructor(t){this.revogrid=t,this.subscriptions={}}addEventListener(t,r){this.revogrid.addEventListener(t,r),this.subscriptions[t]=r}removeEventListener(t){this.revogrid.removeEventListener(t,this.subscriptions[t]),delete this.subscriptions[t]}emit(t,r){const e=new CustomEvent(t,{detail:r,cancelable:!0});return this.revogrid.dispatchEvent(e),e}clearSubscriptions(){for(let t in this.subscriptions)this.removeEventListener(t)}destroy(){this.clearSubscriptions()}}class ge extends ve{static gatherGroup(t,r,e,n=0){const i=Object.assign(Object.assign({},r),{level:n,ids:[]});for(let r in e.columns){const n=r,o=t.columns[n],s=e.columns[n];D(o)&&D(s)&&(o.push(...s),s.length&&t.columnGrouping[n].push(Object.assign(Object.assign({},i),{ids:de(s,"prop")})))}for(let r in e.columnGrouping)t.columnGrouping[r].push(...e.columnGrouping[r]);return t.maxLevel=Math.max(t.maxLevel,e.maxLevel),t}static isColGrouping(t){return!!t.children}}class pe{constructor(){this.sorting=null,this.dataSources=Dr(he,((t,r)=>(t[r]=new oe(r),t)),{})}get order(){return Dr(this.sorting,((t,r,e)=>(t[e]=r.order,t)),{})}get stores(){return this.dataSources}column(t,r){return this.getColumn(t,r||"rgCol")}getColumn(t,r){return ue(this.dataSources[r].store,t)}getRawColumns(){return Dr(this.dataSources,((t,r,e)=>(t[e]=r.store.get("source"),t)),{rgCol:[],colPinStart:[],colPinEnd:[]})}getColumns(t="all"){return"all"!==t?this.dataSources[t].store.get("source"):he.reduce(((t,r)=>(t.push(...this.dataSources[r].store.get("source")),t)),[])}getColumnIndexByProp(t,r){return function(t,r){const e=t.get("items"),n=t.get("source"),i=Kr(n,{prop:r});return e.indexOf(i)}(this.dataSources[r].store,t)}getColumnByProp(t,r){const e=this.dataSources[r].store.get("source");return Xr(e,{prop:t})}refreshByType(t){this.dataSources[t].refresh()}setColumns(t){return ot(he,(r=>{this.dataSources[r].updateData(t.columns[r],{depth:t.maxLevel,groups:Dr(t.columnGrouping[r],((t,r)=>(t[r.level]||(t[r.level]=[]),t[r.level].push(r),t)),{})})})),this.sorting=t.sort,t}updateColumns(t){const r=t.reduce(((t,r)=>{const e=pe.getColumnType(r);return t[e]||(t[e]={}),t[e][r.prop]=r,t}),{}),e={};ot(r,((t,r)=>{const n=this.dataSources[r].store.get("source");e[r]=n.reduce(((r,e,n)=>{const i=t[e.prop];return i&&(r[n]=i),r}),{})})),ot(e,((t,r)=>ae(this.dataSources[r].store,t)))}updateColumn(t,r){const e=pe.getColumnType(t);ae(this.dataSources[e].store,{[r]:t})}updateColumnSorting(t,r,e,n){return n||this.clearSorting(),t.order=e,this.sorting[t.prop]=t,this.updateColumn(t,r),t}clearSorting(){const t=Dr(this.sorting,((t,r)=>(t[pe.getColumnType(r)]=!0,t)),{});ot(t,((t,r)=>{const e=this.dataSources[r].store.get("source");ot(e,(t=>t.order=void 0)),this.dataSources[r].setData({source:[...e]})})),this.sorting={}}static getSizes(t){return Dr(t,((t,r,e)=>(r.size&&(t[e]=r.size),t)),{})}static getColumnByProp(t,r){return Xr(t,(t=>ge.isColGrouping(t)?pe.getColumnByProp(t.children,r):t.prop===r))}static getColumns(t,r=0,e){return Dr(t,((t,n)=>{if(ge.isColGrouping(n))return ge.gatherGroup(t,n,pe.getColumns(n.children,r+1,e),r);const i=Object.assign(Object.assign({},n.columnType&&e&&e[n.columnType]),n);return i.pin?t.columns[i.pin].push(i):t.columns.rgCol.push(i),i.order&&(t.sort[i.prop]=i),i.beforeSetup&&i.beforeSetup(i),t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})}static getColumnType(t){return t.pin?t.pin:"rgCol"}}class Ce{constructor(t){this.dimensionProvider=t,this.stores=Dr(le,((t,r)=>(t[r]=new oe(r),t)),{})}setData(t,r="rgRow",e,n=!1){return this.stores[r].updateData([...t],e,n),this.dimensionProvider.setData(t,r,"rgRow"!==r),t}getModel(t,r="rgRow"){return ue(this.stores[r].store,t)}setCellData({type:t,rowIndex:r,prop:e,val:n}){const i=this.getModel(r,t);i[e]=n,ae(this.stores[t].store,{[r]:i})}refresh(t="all"){(function(t){return le.indexOf(t)>-1})(t)&&this.refreshItems(t),le.forEach((t=>this.refreshItems(t)))}refreshItems(t="rgRow"){const r=this.stores[t].store.get("items");this.stores[t].setData({items:[...r]})}setGrouping({depth:t},r="rgRow"){this.stores[r].setData({groupingDepth:t})}setTrimmed(t,r="rgRow"){const e=this.stores[r];e.addTrimmed(t),"rgRow"===r&&this.dimensionProvider.setData(se(e.store),r)}}var we=Math.floor,Le=Math.min,me=function(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!lr(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return function(t,r,e,n){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(r=e(r))!=r,u=null===r,a=lr(r),c=void 0===r;i<o;){var l=we((i+o)/2),h=e(t[l]),f=void 0!==h,d=null===h,v=h==h,g=lr(h);if(s)var p=n||v;else p=c?v&&(n||f):u?v&&f&&(n||!d):a?v&&f&&!d&&(n||!g):!d&&!g&&(n?h<=r:h<r);p?i=l+1:o=l}return Le(o,4294967294)}(t,r,it,e)},be=function(t,r){return me(t,r)};function xe(t,r){return t<r}function ye(t){const r=t.createElement("div"),e=r.style;e.visibility="hidden",e.overflow="scroll",e.msOverflowStyle="scrollbar",t.body.appendChild(r);const n=t.createElement("div");r.appendChild(n);const i=r.offsetWidth-n.offsetWidth;return r.parentNode.removeChild(r),i}function ke(t,r,e){return(e[1]-e[0])*(t-r[0])/(r[1]-r[0])+e[0]}async function Ee(t=0){await new Promise((r=>{setTimeout((()=>r()),t)}))}function Se({indexes:t,positionIndexes:r,originItemSize:e,positionIndexToItem:n},i){const o={itemIndex:0,start:0,end:0},s=t.length?be(r,i):0;if(!s)return o.itemIndex=Math.floor(i/e),o.start=o.itemIndex*e,o.end=o.start+e,o;const u=n[s-1];if(u.end>i)return u;const a=Math.floor((i-u.end)/e);return o.itemIndex=u.itemIndex+1+a,o.start=u.end+a*e,o.end=o.start+e,o}function je(t,r){let e={itemIndex:r,start:0,end:0};if(t.indexToItem[r])return t.indexToItem[r];const n=t.indexes.length?be(t.indexes,r):0;if(!n)return e.start=e.itemIndex*t.originItemSize,e.end=e.start+t.originItemSize,e;const i=t.indexToItem[t.indexes[n-1]];return e.start=i.end+(r-i.itemIndex-1)*t.originItemSize,e.end=e.start+t.originItemSize,e}function Re(){return Object.assign(Object.assign({},{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}),{realSize:0,originItemSize:0,frameOffset:0})}class ze{constructor(){this.store=Qr(Re())}getCurrentState(){const t=Re(),r=Object.keys(t);return Dr(r,((t,r)=>{const e=this.store.get(r);return t[r]=e,t}),t)}setRealSize(t){let r=0;for(let e=0;e<t;e++)r+=this.store.get("sizes")[e]||this.store.get("originItemSize");ie(this.store,{realSize:r})}setStore(t){ie(this.store,t)}drop(){ie(this.store,{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]})}setDimensionSize(t){const r=function(t,r){let e=[];const n={},i={};let o=0;const s=Object.assign(Object.assign({},t.sizes),r);let u=[];ot(r,((r,e)=>{t.sizes[e]?o+=r-t.sizes[e]:(o+=r-(t.realSize?t.originItemSize:0),u.splice(be(u,parseInt(e,10)),0,parseInt(e,10)))}));const a=function(t,r,e=xe){const n=[];let i=0,o=0,s=0;for(;s<t.length+r.length;){let u=o>=r.length;i>=t.length||!u&&!e(t[i],r[o])?(n[s]=r[o],o++):(n[s]=t[i],i++),s++}return n}(t.indexes,u);return Dr(a,((r,o,u)=>{const a={itemIndex:o,start:0,end:0};return a.start=r?(o-r.itemIndex-1)*t.originItemSize+r.end:o*t.originItemSize,a.end=a.start+s[o],e.push(a.start),i[o]=n[u]=a,a}),void 0),{indexes:a,positionIndexes:[...e],positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:t.realSize+o,sizes:s}}(this.getCurrentState(),t);return ie(this.store,r),r}}var Oe,Me=w((function(t,r){(function(){var e,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",s=32,u=128,a=1/0,c=9007199254740991,l=NaN,h=4294967295,f=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],d="[object Arguments]",v="[object Array]",g="[object Boolean]",p="[object Date]",w="[object Error]",L="[object Function]",m="[object GeneratorFunction]",b="[object Map]",x="[object Number]",y="[object Object]",k="[object Promise]",E="[object RegExp]",S="[object Set]",j="[object String]",R="[object Symbol]",z="[object WeakMap]",O="[object ArrayBuffer]",M="[object DataView]",F="[object Float32Array]",_="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",D="[object Int32Array]",P="[object Uint8Array]",I="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",H=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(N.source),G=RegExp(W.source),q=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,rt=RegExp(tt.source),et=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,at=/[()=,{}\[\]\/\s]/,ct=/\\(\\)?/g,lt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ht=/\w*$/,ft=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,pt=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,Lt=/['\n\r\u2028\u2029\\]/g,mt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",bt="a-z\\xdf-\\xf6\\xf8-\\xff",xt="A-Z\\xc0-\\xd6\\xd8-\\xde",yt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kt="["+yt+"]",Et="["+mt+"]",St="\\d+",jt="["+bt+"]",Rt="[^\\ud800-\\udfff"+yt+St+"\\u2700-\\u27bf"+bt+xt+"]",zt="\\ud83c[\\udffb-\\udfff]",Ot="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ft="[\\ud800-\\udbff][\\udc00-\\udfff]",_t="["+xt+"]",Tt="(?:"+jt+"|"+Rt+")",At="(?:"+_t+"|"+Rt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",Pt="(?:['’](?:D|LL|M|RE|S|T|VE))?",It="(?:"+Et+"|"+zt+")?",$t="[\\ufe0e\\ufe0f]?",Ut=$t+It+"(?:\\u200d(?:"+[Ot,Mt,Ft].join("|")+")"+$t+It+")*",Ht="(?:"+["[\\u2700-\\u27bf]",Mt,Ft].join("|")+")"+Ut,Zt="(?:"+[Ot+Et+"?",Et,Mt,Ft,"[\\ud800-\\udfff]"].join("|")+")",Bt=RegExp("['’]","g"),Nt=RegExp(Et,"g"),Wt=RegExp(zt+"(?="+zt+")|"+Zt+Ut,"g"),Vt=RegExp([_t+"?"+jt+"+"+Dt+"(?="+[kt,_t,"$"].join("|")+")",At+"+"+Pt+"(?="+[kt,_t+Tt,"$"].join("|")+")",_t+"?"+Tt+"+"+Dt,_t+"+"+Pt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",St,Ht].join("|"),"g"),Gt=RegExp("[\\u200d\\ud800-\\udfff"+mt+"\\ufe0e\\ufe0f]"),qt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Jt={};Jt[F]=Jt[_]=Jt[T]=Jt[A]=Jt[D]=Jt[P]=Jt[I]=Jt[$]=Jt[U]=!0,Jt[d]=Jt[v]=Jt[O]=Jt[g]=Jt[M]=Jt[p]=Jt[w]=Jt[L]=Jt[b]=Jt[x]=Jt[y]=Jt[E]=Jt[S]=Jt[j]=Jt[z]=!1;var Yt={};Yt[d]=Yt[v]=Yt[O]=Yt[M]=Yt[g]=Yt[p]=Yt[F]=Yt[_]=Yt[T]=Yt[A]=Yt[D]=Yt[b]=Yt[x]=Yt[y]=Yt[E]=Yt[S]=Yt[j]=Yt[R]=Yt[P]=Yt[I]=Yt[$]=Yt[U]=!0,Yt[w]=Yt[L]=Yt[z]=!1;var Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tr=parseFloat,rr=parseInt,er="object"==typeof C&&C&&C.Object===Object&&C,nr="object"==typeof self&&self&&self.Object===Object&&self,ir=er||nr||Function("return this")(),or=r&&!r.nodeType&&r,sr=or&&t&&!t.nodeType&&t,ur=sr&&sr.exports===or,ar=ur&&er.process,cr=function(){try{return sr&&sr.require&&sr.require("util").types||ar&&ar.binding&&ar.binding("util")}catch(t){}}(),lr=cr&&cr.isArrayBuffer,hr=cr&&cr.isDate,fr=cr&&cr.isMap,dr=cr&&cr.isRegExp,vr=cr&&cr.isSet,gr=cr&&cr.isTypedArray;function pr(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function Cr(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n}function wr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););return t}function Lr(t,r){for(var e=null==t?0:t.length;e--&&!1!==r(t[e],e,t););return t}function mr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(!r(t[e],e,t))return!1;return!0}function br(t,r){for(var e=-1,n=null==t?0:t.length,i=0,o=[];++e<n;){var s=t[e];r(s,e,t)&&(o[i++]=s)}return o}function xr(t,r){return!(null==t||!t.length)&&Fr(t,r,0)>-1}function yr(t,r,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(r,t[n]))return!0;return!1}function kr(t,r){for(var e=-1,n=null==t?0:t.length,i=Array(n);++e<n;)i[e]=r(t[e],e,t);return i}function Er(t,r){for(var e=-1,n=r.length,i=t.length;++e<n;)t[i+e]=r[e];return t}function Sr(t,r,e,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(e=t[++i]);++i<o;)e=r(e,t[i],i,t);return e}function jr(t,r,e,n){var i=null==t?0:t.length;for(n&&i&&(e=t[--i]);i--;)e=r(e,t[i],i,t);return e}function Rr(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}var zr=Dr("length");function Or(t,r,e){var n;return e(t,(function(t,e,i){if(r(t,e,i))return n=e,!1})),n}function Mr(t,r,e,n){for(var i=t.length,o=e+(n?1:-1);n?o--:++o<i;)if(r(t[o],o,t))return o;return-1}function Fr(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Mr(t,Tr,e)}function _r(t,r,e,n){for(var i=e-1,o=t.length;++i<o;)if(n(t[i],r))return i;return-1}function Tr(t){return t!=t}function Ar(t,r){var e=null==t?0:t.length;return e?$r(t,r)/e:l}function Dr(t){return function(r){return null==r?e:r[t]}}function Pr(t){return function(r){return null==t?e:t[r]}}function Ir(t,r,e,n,i){return i(t,(function(t,i,o){e=n?(n=!1,t):r(e,t,i,o)})),e}function $r(t,r){for(var n,i=-1,o=t.length;++i<o;){var s=r(t[i]);s!==e&&(n=n===e?s:n+s)}return n}function Ur(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}function Hr(t){return t?t.slice(0,oe(t)+1).replace(et,""):t}function Zr(t){return function(r){return t(r)}}function Br(t,r){return kr(r,(function(r){return t[r]}))}function Nr(t,r){return t.has(r)}function Wr(t,r){for(var e=-1,n=t.length;++e<n&&Fr(r,t[e],0)>-1;);return e}function Vr(t,r){for(var e=t.length;e--&&Fr(r,t[e],0)>-1;);return e}function Gr(t,r){for(var e=t.length,n=0;e--;)t[e]===r&&++n;return n}var qr=Pr({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Kr=Pr({"&":"&","<":"<",">":">",'"':""","'":"'"});function Xr(t){return"\\"+Qt[t]}function Jr(t){return Gt.test(t)}function Yr(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function Qr(t,r){return function(e){return t(r(e))}}function te(t,r){for(var e=-1,n=t.length,i=0,s=[];++e<n;){var u=t[e];u!==r&&u!==o||(t[e]=o,s[i++]=e)}return s}function re(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}function ee(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=[t,t]})),e}function ne(t){return Jr(t)?function(t){for(var r=Wt.lastIndex=0;Wt.test(t);)++r;return r}(t):zr(t)}function ie(t){return Jr(t)?function(t){return t.match(Wt)||[]}(t):function(t){return t.split("")}(t)}function oe(t){for(var r=t.length;r--&&nt.test(t.charAt(r)););return r}var se=Pr({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ue=function t(r){var C=(r=null==r?ir:ue.defaults(ir.Object(),r,ue.pick(ir,Kt))).Array,nt=r.Date,mt=r.Error,bt=r.Function,xt=r.Math,yt=r.Object,kt=r.RegExp,Et=r.String,St=r.TypeError,jt=C.prototype,Rt=yt.prototype,zt=r["__core-js_shared__"],Ot=bt.prototype.toString,Mt=Rt.hasOwnProperty,Ft=0,_t=function(){var t=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Tt=Rt.toString,At=Ot.call(yt),Dt=ir._,Pt=kt("^"+Ot.call(Mt).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),It=ur?r.Buffer:e,$t=r.Symbol,Ut=r.Uint8Array,Ht=It?It.allocUnsafe:e,Zt=Qr(yt.getPrototypeOf,yt),Wt=yt.create,Gt=Rt.propertyIsEnumerable,Qt=jt.splice,er=$t?$t.isConcatSpreadable:e,nr=$t?$t.iterator:e,or=$t?$t.toStringTag:e,sr=function(){try{var t=uo(yt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ar=r.clearTimeout!==ir.clearTimeout&&r.clearTimeout,cr=nt&&nt.now!==ir.Date.now&&nt.now,zr=r.setTimeout!==ir.setTimeout&&r.setTimeout,Pr=xt.ceil,ae=xt.floor,ce=yt.getOwnPropertySymbols,le=It?It.isBuffer:e,he=r.isFinite,fe=jt.join,de=Qr(yt.keys,yt),ve=xt.max,ge=xt.min,pe=nt.now,Ce=r.parseInt,we=xt.random,Le=jt.reverse,me=uo(r,"DataView"),be=uo(r,"Map"),xe=uo(r,"Promise"),ye=uo(r,"Set"),ke=uo(r,"WeakMap"),Ee=uo(yt,"create"),Se=ke&&new ke,je={},Re=Ao(me),ze=Ao(be),Oe=Ao(xe),Me=Ao(ye),Fe=Ao(ke),_e=$t?$t.prototype:e,Te=_e?_e.valueOf:e,Ae=_e?_e.toString:e;function De(t){if(Ys(t)&&!Hs(t)&&!(t instanceof Ue)){if(t instanceof $e)return t;if(Mt.call(t,"__wrapped__"))return Do(t)}return new $e(t)}var Pe=function(){function t(){}return function(r){if(!Js(r))return{};if(Wt)return Wt(r);t.prototype=r;var n=new t;return t.prototype=e,n}}();function Ie(){}function $e(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=e}function Ue(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function He(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ze(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Be(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ne(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new Be;++r<e;)this.add(t[r])}function We(t){var r=this.__data__=new Ze(t);this.size=r.size}function Ve(t,r){var e=Hs(t),n=!e&&Us(t),i=!e&&!n&&Ws(t),o=!e&&!n&&!i&&su(t),s=e||n||i||o,u=s?Ur(t.length,Et):[],a=u.length;for(var c in t)!r&&!Mt.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||go(c,a))||u.push(c);return u}function Ge(t){var r=t.length;return r?t[Nn(0,r-1)]:e}function qe(t,r){return Fo(Ei(t),nn(r,0,t.length))}function Ke(t){return Fo(Ei(t))}function Xe(t,r,n){(n!==e&&!Ps(t[r],n)||n===e&&!(r in t))&&rn(t,r,n)}function Je(t,r,n){var i=t[r];Mt.call(t,r)&&Ps(i,n)&&(n!==e||r in t)||rn(t,r,n)}function Ye(t,r){for(var e=t.length;e--;)if(Ps(t[e][0],r))return e;return-1}function Qe(t,r,e,n){return cn(t,(function(t,i,o){r(n,t,e(t),o)})),n}function tn(t,r){return t&&Si(r,Ru(r),t)}function rn(t,r,e){"__proto__"==r&&sr?sr(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function en(t,r){for(var n=-1,i=r.length,o=C(i),s=null==t;++n<i;)o[n]=s?e:yu(t,r[n]);return o}function nn(t,r,n){return t==t&&(n!==e&&(t=t<=n?t:n),r!==e&&(t=t>=r?t:r)),t}function on(t,r,n,i,o,s){var u,a=1&r,c=2&r,l=4&r;if(n&&(u=o?n(t,i,o,s):n(t)),u!==e)return u;if(!Js(t))return t;var h=Hs(t);if(h){if(u=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Mt.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!a)return Ei(t,u)}else{var f=lo(t),v=f==L||f==m;if(Ws(t))return Li(t,a);if(f==y||f==d||v&&!o){if(u=c||v?{}:fo(t),!a)return c?function(t,r){return Si(t,co(t),r)}(t,function(t,r){return t&&Si(r,zu(r),t)}(u,t)):function(t,r){return Si(t,ao(t),r)}(t,tn(u,t))}else{if(!Yt[f])return o?t:{};u=function(t,r,e){var n=t.constructor;switch(r){case O:return mi(t);case g:case p:return new n(+t);case M:return function(t,r){var e=r?mi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case F:case _:case T:case A:case D:case P:case I:case $:case U:return bi(t,e);case b:return new n;case x:case j:return new n(t);case E:return function(t){var r=new t.constructor(t.source,ht.exec(t));return r.lastIndex=t.lastIndex,r}(t);case S:return new n;case R:return Te?yt(Te.call(t)):{}}}(t,f,a)}}s||(s=new We);var C=s.get(t);if(C)return C;s.set(t,u),nu(t)?t.forEach((function(e){u.add(on(e,r,n,e,t,s))})):Qs(t)&&t.forEach((function(e,i){u.set(i,on(e,r,n,i,t,s))}));var w=h?e:(l?c?to:Qi:c?zu:Ru)(t);return wr(w||t,(function(e,i){w&&(e=t[i=e]),Je(u,i,on(e,r,n,i,t,s))})),u}function sn(t,r,n){var i=n.length;if(null==t)return!i;for(t=yt(t);i--;){var o=n[i],s=t[o];if(s===e&&!(o in t)||!(0,r[o])(s))return!1}return!0}function un(t,r,i){if("function"!=typeof t)throw new St(n);return Ro((function(){t.apply(e,i)}),r)}function an(t,r,e,n){var i=-1,o=xr,s=!0,u=t.length,a=[],c=r.length;if(!u)return a;e&&(r=kr(r,Zr(e))),n?(o=yr,s=!1):r.length>=200&&(o=Nr,s=!1,r=new Ne(r));t:for(;++i<u;){var l=t[i],h=null==e?l:e(l);if(l=n||0!==l?l:0,s&&h==h){for(var f=c;f--;)if(r[f]===h)continue t;a.push(l)}else o(r,h,n)||a.push(l)}return a}De.templateSettings={escape:q,evaluate:K,interpolate:X,variable:"",imports:{_:De}},(De.prototype=Ie.prototype).constructor=De,($e.prototype=Pe(Ie.prototype)).constructor=$e,(Ue.prototype=Pe(Ie.prototype)).constructor=Ue,He.prototype.clear=function(){this.__data__=Ee?Ee(null):{},this.size=0},He.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},He.prototype.get=function(t){var r=this.__data__;if(Ee){var n=r[t];return n===i?e:n}return Mt.call(r,t)?r[t]:e},He.prototype.has=function(t){var r=this.__data__;return Ee?r[t]!==e:Mt.call(r,t)},He.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ee&&r===e?i:r,this},Ze.prototype.clear=function(){this.__data__=[],this.size=0},Ze.prototype.delete=function(t){var r=this.__data__,e=Ye(r,t);return!(e<0||(e==r.length-1?r.pop():Qt.call(r,e,1),--this.size,0))},Ze.prototype.get=function(t){var r=this.__data__,n=Ye(r,t);return n<0?e:r[n][1]},Ze.prototype.has=function(t){return Ye(this.__data__,t)>-1},Ze.prototype.set=function(t,r){var e=this.__data__,n=Ye(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Be.prototype.clear=function(){this.size=0,this.__data__={hash:new He,map:new(be||Ze),string:new He}},Be.prototype.delete=function(t){var r=oo(this,t).delete(t);return this.size-=r?1:0,r},Be.prototype.get=function(t){return oo(this,t).get(t)},Be.prototype.has=function(t){return oo(this,t).has(t)},Be.prototype.set=function(t,r){var e=oo(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Ne.prototype.add=Ne.prototype.push=function(t){return this.__data__.set(t,i),this},Ne.prototype.has=function(t){return this.__data__.has(t)},We.prototype.clear=function(){this.__data__=new Ze,this.size=0},We.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},We.prototype.get=function(t){return this.__data__.get(t)},We.prototype.has=function(t){return this.__data__.has(t)},We.prototype.set=function(t,r){var e=this.__data__;if(e instanceof Ze){var n=e.__data__;if(!be||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Be(n)}return e.set(t,r),this.size=e.size,this};var cn=zi(Cn),ln=zi(wn,!0);function hn(t,r){var e=!0;return cn(t,(function(t,n,i){return e=!!r(t,n,i)})),e}function fn(t,r,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],u=r(s);if(null!=u&&(a===e?u==u&&!ou(u):n(u,a)))var a=u,c=s}return c}function dn(t,r){var e=[];return cn(t,(function(t,n,i){r(t,n,i)&&e.push(t)})),e}function vn(t,r,e,n,i){var o=-1,s=t.length;for(e||(e=vo),i||(i=[]);++o<s;){var u=t[o];r>0&&e(u)?r>1?vn(u,r-1,e,n,i):Er(i,u):n||(i[i.length]=u)}return i}var gn=Oi(),pn=Oi(!0);function Cn(t,r){return t&&gn(t,r,Ru)}function wn(t,r){return t&&pn(t,r,Ru)}function Ln(t,r){return br(r,(function(r){return qs(t[r])}))}function mn(t,r){for(var n=0,i=(r=gi(r,t)).length;null!=t&&n<i;)t=t[To(r[n++])];return n&&n==i?t:e}function bn(t,r,e){var n=r(t);return Hs(t)?n:Er(n,e(t))}function xn(t){return null==t?t===e?"[object Undefined]":"[object Null]":or&&or in yt(t)?function(t){var r=Mt.call(t,or),n=t[or];try{t[or]=e;var i=!0}catch(t){}var o=Tt.call(t);return i&&(r?t[or]=n:delete t[or]),o}(t):function(t){return Tt.call(t)}(t)}function yn(t,r){return t>r}function kn(t,r){return null!=t&&Mt.call(t,r)}function En(t,r){return null!=t&&r in yt(t)}function Sn(t,r,n){for(var i=n?yr:xr,o=t[0].length,s=t.length,u=s,a=C(s),c=1/0,l=[];u--;){var h=t[u];u&&r&&(h=kr(h,Zr(r))),c=ge(h.length,c),a[u]=!n&&(r||o>=120&&h.length>=120)?new Ne(u&&h):e}h=t[0];var f=-1,d=a[0];t:for(;++f<o&&l.length<c;){var v=h[f],g=r?r(v):v;if(v=n||0!==v?v:0,!(d?Nr(d,g):i(l,g,n))){for(u=s;--u;){var p=a[u];if(!(p?Nr(p,g):i(t[u],g,n)))continue t}d&&d.push(g),l.push(v)}}return l}function jn(t,r,n){var i=null==(t=ko(t,r=gi(r,t)))?t:t[To(Go(r))];return null==i?e:pr(i,t,n)}function Rn(t){return Ys(t)&&xn(t)==d}function zn(t,r,n,i,o){return t===r||(null==t||null==r||!Ys(t)&&!Ys(r)?t!=t&&r!=r:function(t,r,n,i,o,s){var u=Hs(t),a=Hs(r),c=u?v:lo(t),l=a?v:lo(r),h=(c=c==d?y:c)==y,f=(l=l==d?y:l)==y,C=c==l;if(C&&Ws(t)){if(!Ws(r))return!1;u=!0,h=!1}if(C&&!h)return s||(s=new We),u||su(t)?Ji(t,r,n,i,o,s):function(t,r,e,n,i,o,s){switch(e){case M:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case O:return!(t.byteLength!=r.byteLength||!o(new Ut(t),new Ut(r)));case g:case p:case x:return Ps(+t,+r);case w:return t.name==r.name&&t.message==r.message;case E:case j:return t==r+"";case b:var u=Yr;case S:if(u||(u=re),t.size!=r.size&&!(1&n))return!1;var a=s.get(t);if(a)return a==r;n|=2,s.set(t,r);var c=Ji(u(t),u(r),n,i,o,s);return s.delete(t),c;case R:if(Te)return Te.call(t)==Te.call(r)}return!1}(t,r,c,n,i,o,s);if(!(1&n)){var L=h&&Mt.call(t,"__wrapped__"),m=f&&Mt.call(r,"__wrapped__");if(L||m){var k=L?t.value():t,z=m?r.value():r;return s||(s=new We),o(k,z,n,i,s)}}return!!C&&(s||(s=new We),function(t,r,n,i,o,s){var u=1&n,a=Qi(t),c=a.length;if(c!=Qi(r).length&&!u)return!1;for(var l=c;l--;){var h=a[l];if(!(u?h in r:Mt.call(r,h)))return!1}var f=s.get(t),d=s.get(r);if(f&&d)return f==r&&d==t;var v=!0;s.set(t,r),s.set(r,t);for(var g=u;++l<c;){var p=t[h=a[l]],C=r[h];if(i)var w=u?i(C,p,h,r,t,s):i(p,C,h,t,r,s);if(!(w===e?p===C||o(p,C,n,i,s):w)){v=!1;break}g||(g="constructor"==h)}if(v&&!g){var L=t.constructor,m=r.constructor;L==m||!("constructor"in t)||!("constructor"in r)||"function"==typeof L&&L instanceof L&&"function"==typeof m&&m instanceof m||(v=!1)}return s.delete(t),s.delete(r),v}(t,r,n,i,o,s))}(t,r,n,i,zn,o))}function On(t,r,n,i){var o=n.length,s=o,u=!i;if(null==t)return!s;for(t=yt(t);o--;){var a=n[o];if(u&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++o<s;){var c=(a=n[o])[0],l=t[c],h=a[1];if(u&&a[2]){if(l===e&&!(c in t))return!1}else{var f=new We;if(i)var d=i(l,h,c,t,r,f);if(!(d===e?zn(h,l,3,i,f):d))return!1}}return!0}function Mn(t){return!(!Js(t)||(r=t,_t&&_t in r))&&(qs(t)?Pt:vt).test(Ao(t));var r}function Fn(t){return"function"==typeof t?t:null==t?ta:"object"==typeof t?Hs(t)?Pn(t[0],t[1]):Dn(t):ca(t)}function _n(t){if(!mo(t))return de(t);var r=[];for(var e in yt(t))Mt.call(t,e)&&"constructor"!=e&&r.push(e);return r}function Tn(t,r){return t<r}function An(t,r){var e=-1,n=Bs(t)?C(t.length):[];return cn(t,(function(t,i,o){n[++e]=r(t,i,o)})),n}function Dn(t){var r=so(t);return 1==r.length&&r[0][2]?xo(r[0][0],r[0][1]):function(e){return e===t||On(e,t,r)}}function Pn(t,r){return Co(t)&&bo(r)?xo(To(t),r):function(n){var i=yu(n,t);return i===e&&i===r?ku(n,t):zn(r,i,3)}}function In(t,r,n,i,o){t!==r&&gn(r,(function(s,u){if(o||(o=new We),Js(s))!function(t,r,n,i,o,s,u){var a=So(t,n),c=So(r,n),l=u.get(c);if(l)Xe(t,n,l);else{var h=s?s(a,c,n+"",t,r,u):e,f=h===e;if(f){var d=Hs(c),v=!d&&Ws(c),g=!d&&!v&&su(c);h=c,d||v||g?Hs(a)?h=a:Ns(a)?h=Ei(a):v?(f=!1,h=Li(c,!0)):g?(f=!1,h=bi(c,!0)):h=[]:ru(c)||Us(c)?(h=a,Us(a)?h=vu(a):Js(a)&&!qs(a)||(h=fo(c))):f=!1}f&&(u.set(c,h),o(h,c,i,s,u),u.delete(c)),Xe(t,n,h)}}(t,r,u,n,In,i,o);else{var a=i?i(So(t,u),s,u+"",t,r,o):e;a===e&&(a=s),Xe(t,u,a)}}),zu)}function $n(t,r){var n=t.length;if(n)return go(r+=r<0?n:0,n)?t[r]:e}function Un(t,r,e){r=r.length?kr(r,(function(t){return Hs(t)?function(r){return mn(r,1===t.length?t[0]:t)}:t})):[ta];var n=-1;return r=kr(r,Zr(io())),function(t){var r=t.length;for(t.sort((function(t,r){return function(t,r,e){for(var n=-1,i=t.criteria,o=r.criteria,s=i.length,u=e.length;++n<s;){var a=xi(i[n],o[n]);if(a)return n>=u?a:a*("desc"==e[n]?-1:1)}return t.index-r.index}(t,r,e)}));r--;)t[r]=t[r].value;return t}(An(t,(function(t){return{criteria:kr(r,(function(r){return r(t)})),index:++n,value:t}})))}function Hn(t,r,e){for(var n=-1,i=r.length,o={};++n<i;){var s=r[n],u=mn(t,s);e(u,s)&&Kn(o,gi(s,t),u)}return o}function Zn(t,r,e,n){var i=n?_r:Fr,o=-1,s=r.length,u=t;for(t===r&&(r=Ei(r)),e&&(u=kr(t,Zr(e)));++o<s;)for(var a=0,c=r[o],l=e?e(c):c;(a=i(u,l,a,n))>-1;)u!==t&&Qt.call(u,a,1),Qt.call(t,a,1);return t}function Bn(t,r){for(var e=t?r.length:0,n=e-1;e--;){var i=r[e];if(e==n||i!==o){var o=i;go(i)?Qt.call(t,i,1):ui(t,i)}}return t}function Nn(t,r){return t+ae(we()*(r-t+1))}function Wn(t,r){var e="";if(!t||r<1||r>c)return e;do{r%2&&(e+=t),(r=ae(r/2))&&(t+=t)}while(r);return e}function Vn(t,r){return zo(yo(t,r,ta),t+"")}function Gn(t){return Ge(Pu(t))}function qn(t,r){var e=Pu(t);return Fo(e,nn(r,0,e.length))}function Kn(t,r,n,i){if(!Js(t))return t;for(var o=-1,s=(r=gi(r,t)).length,u=s-1,a=t;null!=a&&++o<s;){var c=To(r[o]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(o!=u){var h=a[c];(l=i?i(h,c,a):e)===e&&(l=Js(h)?h:go(r[o+1])?[]:{})}Je(a,c,l),a=a[c]}return t}var Xn=Se?function(t,r){return Se.set(t,r),t}:ta,Jn=sr?function(t,r){return sr(t,"toString",{configurable:!0,enumerable:!1,value:Ju(r),writable:!0})}:ta;function Yn(t){return Fo(Pu(t))}function Qn(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=C(i);++n<i;)o[n]=t[n+r];return o}function ti(t,r){var e;return cn(t,(function(t,n,i){return!(e=r(t,n,i))})),!!e}function ri(t,r,e){var n=0,i=null==t?n:t.length;if("number"==typeof r&&r==r&&i<=2147483647){for(;n<i;){var o=n+i>>>1,s=t[o];null!==s&&!ou(s)&&(e?s<=r:s<r)?n=o+1:i=o}return i}return ei(t,r,ta,e)}function ei(t,r,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var u=(r=n(r))!=r,a=null===r,c=ou(r),l=r===e;o<s;){var h=ae((o+s)/2),f=n(t[h]),d=f!==e,v=null===f,g=f==f,p=ou(f);if(u)var C=i||g;else C=l?g&&(i||d):a?g&&d&&(i||!v):c?g&&d&&!v&&(i||!p):!v&&!p&&(i?f<=r:f<r);C?o=h+1:s=h}return ge(s,4294967294)}function ni(t,r){for(var e=-1,n=t.length,i=0,o=[];++e<n;){var s=t[e],u=r?r(s):s;if(!e||!Ps(u,a)){var a=u;o[i++]=0===s?0:s}}return o}function ii(t){return"number"==typeof t?t:ou(t)?l:+t}function oi(t){if("string"==typeof t)return t;if(Hs(t))return kr(t,oi)+"";if(ou(t))return Ae?Ae.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function si(t,r,e){var n=-1,i=xr,o=t.length,s=!0,u=[],a=u;if(e)s=!1,i=yr;else if(o>=200){var c=r?null:Wi(t);if(c)return re(c);s=!1,i=Nr,a=new Ne}else a=r?[]:u;t:for(;++n<o;){var l=t[n],h=r?r(l):l;if(l=e||0!==l?l:0,s&&h==h){for(var f=a.length;f--;)if(a[f]===h)continue t;r&&a.push(h),u.push(l)}else i(a,h,e)||(a!==u&&a.push(h),u.push(l))}return u}function ui(t,r){return null==(t=ko(t,r=gi(r,t)))||delete t[To(Go(r))]}function ai(t,r,e,n){return Kn(t,r,e(mn(t,r)),n)}function ci(t,r,e,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&r(t[o],o,t););return e?Qn(t,n?0:o,n?o+1:i):Qn(t,n?o+1:0,n?i:o)}function li(t,r){var e=t;return e instanceof Ue&&(e=e.value()),Sr(r,(function(t,r){return r.func.apply(r.thisArg,Er([t],r.args))}),e)}function hi(t,r,e){var n=t.length;if(n<2)return n?si(t[0]):[];for(var i=-1,o=C(n);++i<n;)for(var s=t[i],u=-1;++u<n;)u!=i&&(o[i]=an(o[i]||s,t[u],r,e));return si(vn(o,1),r,e)}function fi(t,r,n){for(var i=-1,o=t.length,s=r.length,u={};++i<o;)n(u,t[i],i<s?r[i]:e);return u}function di(t){return Ns(t)?t:[]}function vi(t){return"function"==typeof t?t:ta}function gi(t,r){return Hs(t)?t:Co(t,r)?[t]:_o(gu(t))}var pi=Vn;function Ci(t,r,n){var i=t.length;return n=n===e?i:n,!r&&n>=i?t:Qn(t,r,n)}var wi=ar||function(t){return ir.clearTimeout(t)};function Li(t,r){if(r)return t.slice();var e=t.length,n=Ht?Ht(e):new t.constructor(e);return t.copy(n),n}function mi(t){var r=new t.constructor(t.byteLength);return new Ut(r).set(new Ut(t)),r}function bi(t,r){var e=r?mi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function xi(t,r){if(t!==r){var n=t!==e,i=null===t,o=t==t,s=ou(t),u=r!==e,a=null===r,c=r==r,l=ou(r);if(!a&&!l&&!s&&t>r||s&&u&&c&&!a&&!l||i&&u&&c||!n&&c||!o)return 1;if(!i&&!s&&!l&&t<r||l&&n&&o&&!i&&!s||a&&n&&o||!u&&o||!c)return-1}return 0}function yi(t,r,e,n){for(var i=-1,o=t.length,s=e.length,u=-1,a=r.length,c=ve(o-s,0),l=C(a+c),h=!n;++u<a;)l[u]=r[u];for(;++i<s;)(h||i<o)&&(l[e[i]]=t[i]);for(;c--;)l[u++]=t[i++];return l}function ki(t,r,e,n){for(var i=-1,o=t.length,s=-1,u=e.length,a=-1,c=r.length,l=ve(o-u,0),h=C(l+c),f=!n;++i<l;)h[i]=t[i];for(var d=i;++a<c;)h[d+a]=r[a];for(;++s<u;)(f||i<o)&&(h[d+e[s]]=t[i++]);return h}function Ei(t,r){var e=-1,n=t.length;for(r||(r=C(n));++e<n;)r[e]=t[e];return r}function Si(t,r,n,i){var o=!n;n||(n={});for(var s=-1,u=r.length;++s<u;){var a=r[s],c=i?i(n[a],t[a],a,n,t):e;c===e&&(c=t[a]),o?rn(n,a,c):Je(n,a,c)}return n}function ji(t,r){return function(e,n){var i=Hs(e)?Cr:Qe,o=r?r():{};return i(e,t,io(n,2),o)}}function Ri(t){return Vn((function(r,n){var i=-1,o=n.length,s=o>1?n[o-1]:e,u=o>2?n[2]:e;for(s=t.length>3&&"function"==typeof s?(o--,s):e,u&&po(n[0],n[1],u)&&(s=o<3?e:s,o=1),r=yt(r);++i<o;){var a=n[i];a&&t(r,a,i,s)}return r}))}function zi(t,r){return function(e,n){if(null==e)return e;if(!Bs(e))return t(e,n);for(var i=e.length,o=r?i:-1,s=yt(e);(r?o--:++o<i)&&!1!==n(s[o],o,s););return e}}function Oi(t){return function(r,e,n){for(var i=-1,o=yt(r),s=n(r),u=s.length;u--;){var a=s[t?u:++i];if(!1===e(o[a],a,o))break}return r}}function Mi(t){return function(r){var n=Jr(r=gu(r))?ie(r):e,i=n?n[0]:r.charAt(0),o=n?Ci(n,1).join(""):r.slice(1);return i[t]()+o}}function Fi(t){return function(r){return Sr(qu(Uu(r).replace(Bt,"")),t,"")}}function _i(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var e=Pe(t.prototype),n=t.apply(e,r);return Js(n)?n:e}}function Ti(t){return function(r,n,i){var o=yt(r);if(!Bs(r)){var s=io(n,3);r=Ru(r),n=function(t){return s(o[t],t,o)}}var u=t(r,n,i);return u>-1?o[s?r[u]:u]:e}}function Ai(t){return Yi((function(r){var i=r.length,o=i,s=$e.prototype.thru;for(t&&r.reverse();o--;){var u=r[o];if("function"!=typeof u)throw new St(n);if(s&&!a&&"wrapper"==eo(u))var a=new $e([],!0)}for(o=a?o:i;++o<i;){var c=eo(u=r[o]),l="wrapper"==c?ro(u):e;a=l&&wo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[eo(l[0])].apply(a,l[3]):1==u.length&&wo(u)?a[c]():a.thru(u)}return function(){var t=arguments,e=t[0];if(a&&1==t.length&&Hs(e))return a.plant(e).value();for(var n=0,o=i?r[n].apply(this,t):e;++n<i;)o=r[n].call(this,o);return o}}))}function Di(t,r,n,i,o,s,a,c,l,h){var f=r&u,d=1&r,v=2&r,g=24&r,p=512&r,w=v?e:_i(t);return function e(){for(var u=arguments.length,L=C(u),m=u;m--;)L[m]=arguments[m];if(g)var b=no(e),x=Gr(L,b);if(i&&(L=yi(L,i,o,g)),s&&(L=ki(L,s,a,g)),u-=x,g&&u<h){var y=te(L,b);return Bi(t,r,Di,e.placeholder,n,L,y,c,l,h-u)}var k=d?n:this,E=v?k[t]:t;return u=L.length,c?L=Eo(L,c):p&&u>1&&L.reverse(),f&&l<u&&(L.length=l),this&&this!==ir&&this instanceof e&&(E=w||_i(E)),E.apply(k,L)}}function Pi(t,r){return function(e,n){return function(t,r,e,n){return Cn(t,(function(t,i,o){r(n,e(t),i,o)})),n}(e,t,r(n),{})}}function Ii(t,r){return function(n,i){var o;if(n===e&&i===e)return r;if(n!==e&&(o=n),i!==e){if(o===e)return i;"string"==typeof n||"string"==typeof i?(n=oi(n),i=oi(i)):(n=ii(n),i=ii(i)),o=t(n,i)}return o}}function $i(t){return Yi((function(r){return r=kr(r,Zr(io())),Vn((function(e){var n=this;return t(r,(function(t){return pr(t,n,e)}))}))}))}function Ui(t,r){var n=(r=r===e?" ":oi(r)).length;if(n<2)return n?Wn(r,t):r;var i=Wn(r,Pr(t/ne(r)));return Jr(r)?Ci(ie(i),0,t).join(""):i.slice(0,t)}function Hi(t){return function(r,n,i){return i&&"number"!=typeof i&&po(r,n,i)&&(n=i=e),r=lu(r),n===e?(n=r,r=0):n=lu(n),function(t,r,e,n){for(var i=-1,o=ve(Pr((r-t)/(e||1)),0),s=C(o);o--;)s[n?o:++i]=t,t+=e;return s}(r,n,i=i===e?r<n?1:-1:lu(i),t)}}function Zi(t){return function(r,e){return"string"==typeof r&&"string"==typeof e||(r=du(r),e=du(e)),t(r,e)}}function Bi(t,r,n,i,o,u,a,c,l,h){var f=8&r;r|=f?s:64,4&(r&=~(f?64:s))||(r&=-4);var d=[t,r,o,f?u:e,f?a:e,f?e:u,f?e:a,c,l,h],v=n.apply(e,d);return wo(t)&&jo(v,d),v.placeholder=i,Oo(v,t,r)}function Ni(t){var r=xt[t];return function(t,e){if(t=du(t),(e=null==e?0:ge(hu(e),292))&&he(t)){var n=(gu(t)+"e").split("e");return+((n=(gu(r(n[0]+"e"+(+n[1]+e)))+"e").split("e"))[0]+"e"+(+n[1]-e))}return r(t)}}var Wi=ye&&1/re(new ye([,-0]))[1]==a?function(t){return new ye(t)}:oa;function Vi(t){return function(r){var e=lo(r);return e==b?Yr(r):e==S?ee(r):function(t,r){return kr(r,(function(r){return[r,t[r]]}))}(r,t(r))}}function Gi(t,r,i,a,c,l,h,f){var d=2&r;if(!d&&"function"!=typeof t)throw new St(n);var v=a?a.length:0;if(v||(r&=-97,a=c=e),h=h===e?h:ve(hu(h),0),f=f===e?f:hu(f),v-=c?c.length:0,64&r){var g=a,p=c;a=c=e}var w=d?e:ro(t),L=[t,r,i,a,c,g,p,l,h,f];if(w&&function(t,r){var e=t[1],n=r[1],i=e|n;if(!(i<131||(n==u&&8==e||n==u&&256==e&&t[7].length<=r[8]||384==n&&r[7].length<=r[8]&&8==e)))return t;1&n&&(t[2]=r[2],i|=1&e?0:4);var s=r[3];if(s){var a=t[3];t[3]=a?yi(a,s,r[4]):s,t[4]=a?te(t[3],o):r[4]}(s=r[5])&&(t[5]=(a=t[5])?ki(a,s,r[6]):s,t[6]=a?te(t[5],o):r[6]),(s=r[7])&&(t[7]=s),n&u&&(t[8]=null==t[8]?r[8]:ge(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=i}(L,w),t=L[0],r=L[1],i=L[2],a=L[3],c=L[4],!(f=L[9]=L[9]===e?d?0:t.length:ve(L[9]-v,0))&&24&r&&(r&=-25),r&&1!=r)m=8==r||16==r?function(t,r,n){var i=_i(t);return function o(){for(var s=arguments.length,u=C(s),a=s,c=no(o);a--;)u[a]=arguments[a];var l=s<3&&u[0]!==c&&u[s-1]!==c?[]:te(u,c);return(s-=l.length)<n?Bi(t,r,Di,o.placeholder,e,u,l,e,e,n-s):pr(this&&this!==ir&&this instanceof o?i:t,this,u)}}(t,r,f):r!=s&&33!=r||c.length?Di.apply(e,L):function(t,r,e,n){var i=1&r,o=_i(t);return function r(){for(var s=-1,u=arguments.length,a=-1,c=n.length,l=C(c+u),h=this&&this!==ir&&this instanceof r?o:t;++a<c;)l[a]=n[a];for(;u--;)l[a++]=arguments[++s];return pr(h,i?e:this,l)}}(t,r,i,a);else var m=function(t,r,e){var n=1&r,i=_i(t);return function r(){return(this&&this!==ir&&this instanceof r?i:t).apply(n?e:this,arguments)}}(t,r,i);return Oo((w?Xn:jo)(m,L),t,r)}function qi(t,r,n,i){return t===e||Ps(t,Rt[n])&&!Mt.call(i,n)?r:t}function Ki(t,r,n,i,o,s){return Js(t)&&Js(r)&&(s.set(r,t),In(t,r,e,Ki,s),s.delete(r)),t}function Xi(t){return ru(t)?e:t}function Ji(t,r,n,i,o,s){var u=1&n,a=t.length,c=r.length;if(a!=c&&!(u&&c>a))return!1;var l=s.get(t),h=s.get(r);if(l&&h)return l==r&&h==t;var f=-1,d=!0,v=2&n?new Ne:e;for(s.set(t,r),s.set(r,t);++f<a;){var g=t[f],p=r[f];if(i)var C=u?i(p,g,f,r,t,s):i(g,p,f,t,r,s);if(C!==e){if(C)continue;d=!1;break}if(v){if(!Rr(r,(function(t,r){if(!Nr(v,r)&&(g===t||o(g,t,n,i,s)))return v.push(r)}))){d=!1;break}}else if(g!==p&&!o(g,p,n,i,s)){d=!1;break}}return s.delete(t),s.delete(r),d}function Yi(t){return zo(yo(t,e,Zo),t+"")}function Qi(t){return bn(t,Ru,ao)}function to(t){return bn(t,zu,co)}var ro=Se?function(t){return Se.get(t)}:oa;function eo(t){for(var r=t.name+"",e=je[r],n=Mt.call(je,r)?e.length:0;n--;){var i=e[n],o=i.func;if(null==o||o==t)return i.name}return r}function no(t){return(Mt.call(De,"placeholder")?De:t).placeholder}function io(){var t=De.iteratee||ra;return t=t===ra?Fn:t,arguments.length?t(arguments[0],arguments[1]):t}function oo(t,r){var e,n,i=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?i["string"==typeof r?"string":"hash"]:i.map}function so(t){for(var r=Ru(t),e=r.length;e--;){var n=r[e],i=t[n];r[e]=[n,i,bo(i)]}return r}function uo(t,r){var n=function(t,r){return null==t?e:t[r]}(t,r);return Mn(n)?n:e}var ao=ce?function(t){return null==t?[]:(t=yt(t),br(ce(t),(function(r){return Gt.call(t,r)})))}:fa,co=ce?function(t){for(var r=[];t;)Er(r,ao(t)),t=Zt(t);return r}:fa,lo=xn;function ho(t,r,e){for(var n=-1,i=(r=gi(r,t)).length,o=!1;++n<i;){var s=To(r[n]);if(!(o=null!=t&&e(t,s)))break;t=t[s]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Xs(i)&&go(s,i)&&(Hs(t)||Us(t))}function fo(t){return"function"!=typeof t.constructor||mo(t)?{}:Pe(Zt(t))}function vo(t){return Hs(t)||Us(t)||!!(er&&t&&t[er])}function go(t,r){var e=typeof t;return!!(r=null==r?c:r)&&("number"==e||"symbol"!=e&&pt.test(t))&&t>-1&&t%1==0&&t<r}function po(t,r,e){if(!Js(e))return!1;var n=typeof r;return!!("number"==n?Bs(e)&&go(r,e.length):"string"==n&&r in e)&&Ps(e[r],t)}function Co(t,r){if(Hs(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!ou(t))||Y.test(t)||!J.test(t)||null!=r&&t in yt(r)}function wo(t){var r=eo(t),e=De[r];if("function"!=typeof e||!(r in Ue.prototype))return!1;if(t===e)return!0;var n=ro(e);return!!n&&t===n[0]}(me&&lo(new me(new ArrayBuffer(1)))!=M||be&&lo(new be)!=b||xe&&lo(xe.resolve())!=k||ye&&lo(new ye)!=S||ke&&lo(new ke)!=z)&&(lo=function(t){var r=xn(t),n=r==y?t.constructor:e,i=n?Ao(n):"";if(i)switch(i){case Re:return M;case ze:return b;case Oe:return k;case Me:return S;case Fe:return z}return r});var Lo=zt?qs:da;function mo(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Rt)}function bo(t){return t==t&&!Js(t)}function xo(t,r){return function(n){return null!=n&&n[t]===r&&(r!==e||t in yt(n))}}function yo(t,r,n){return r=ve(r===e?t.length-1:r,0),function(){for(var e=arguments,i=-1,o=ve(e.length-r,0),s=C(o);++i<o;)s[i]=e[r+i];i=-1;for(var u=C(r+1);++i<r;)u[i]=e[i];return u[r]=n(s),pr(t,this,u)}}function ko(t,r){return r.length<2?t:mn(t,Qn(r,0,-1))}function Eo(t,r){for(var n=t.length,i=ge(r.length,n),o=Ei(t);i--;){var s=r[i];t[i]=go(s,n)?o[s]:e}return t}function So(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}var jo=Mo(Xn),Ro=zr||function(t,r){return ir.setTimeout(t,r)},zo=Mo(Jn);function Oo(t,r,e){var n=r+"";return zo(t,function(t,r){var e=r.length;if(!e)return t;var n=e-1;return r[n]=(e>1?"& ":"")+r[n],r=r.join(e>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+r+"] */\n")}(n,function(t,r){return wr(f,(function(e){var n="_."+e[0];r&e[1]&&!xr(t,n)&&t.push(n)})),t.sort()}(function(t){var r=t.match(ot);return r?r[1].split(st):[]}(n),e)))}function Mo(t){var r=0,n=0;return function(){var i=pe(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(e,arguments)}}function Fo(t,r){var n=-1,i=t.length,o=i-1;for(r=r===e?i:r;++n<r;){var s=Nn(n,o),u=t[s];t[s]=t[n],t[n]=u}return t.length=r,t}var _o=function(){var t=Ms((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(Q,(function(t,e,n,i){r.push(n?i.replace(ct,"$1"):e||t)})),r}),(function(t){return 500===r.size&&r.clear(),t})),r=t.cache;return t}();function To(t){if("string"==typeof t||ou(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function Ao(t){if(null!=t){try{return Ot.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Do(t){if(t instanceof Ue)return t.clone();var r=new $e(t.__wrapped__,t.__chain__);return r.__actions__=Ei(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r}var Po=Vn((function(t,r){return Ns(t)?an(t,vn(r,1,Ns,!0)):[]})),Io=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?an(t,vn(r,1,Ns,!0),io(n,2)):[]})),$o=Vn((function(t,r){var n=Go(r);return Ns(n)&&(n=e),Ns(t)?an(t,vn(r,1,Ns,!0),e,n):[]}));function Uo(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:hu(e);return i<0&&(i=ve(n+i,0)),Mr(t,io(r,3),i)}function Ho(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==e&&(o=hu(n),o=n<0?ve(i+o,0):ge(o,i-1)),Mr(t,io(r,3),o,!0)}function Zo(t){return null!=t&&t.length?vn(t,1):[]}function Bo(t){return t&&t.length?t[0]:e}var No=Vn((function(t){var r=kr(t,di);return r.length&&r[0]===t[0]?Sn(r):[]})),Wo=Vn((function(t){var r=Go(t),n=kr(t,di);return r===Go(n)?r=e:n.pop(),n.length&&n[0]===t[0]?Sn(n,io(r,2)):[]})),Vo=Vn((function(t){var r=Go(t),n=kr(t,di);return(r="function"==typeof r?r:e)&&n.pop(),n.length&&n[0]===t[0]?Sn(n,e,r):[]}));function Go(t){var r=null==t?0:t.length;return r?t[r-1]:e}var qo=Vn(Ko);function Ko(t,r){return t&&t.length&&r&&r.length?Zn(t,r):t}var Xo=Yi((function(t,r){var e=null==t?0:t.length,n=en(t,r);return Bn(t,kr(r,(function(t){return go(t,e)?+t:t})).sort(xi)),n}));function Jo(t){return null==t?t:Le.call(t)}var Yo=Vn((function(t){return si(vn(t,1,Ns,!0))})),Qo=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),si(vn(t,1,Ns,!0),io(r,2))})),ts=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,si(vn(t,1,Ns,!0),e,r)}));function rs(t){if(!t||!t.length)return[];var r=0;return t=br(t,(function(t){if(Ns(t))return r=ve(t.length,r),!0})),Ur(r,(function(r){return kr(t,Dr(r))}))}function es(t,r){if(!t||!t.length)return[];var n=rs(t);return null==r?n:kr(n,(function(t){return pr(r,e,t)}))}var ns=Vn((function(t,r){return Ns(t)?an(t,r):[]})),is=Vn((function(t){return hi(br(t,Ns))})),os=Vn((function(t){var r=Go(t);return Ns(r)&&(r=e),hi(br(t,Ns),io(r,2))})),ss=Vn((function(t){var r=Go(t);return r="function"==typeof r?r:e,hi(br(t,Ns),e,r)})),us=Vn(rs),as=Vn((function(t){var r=t.length,n=r>1?t[r-1]:e;return n="function"==typeof n?(t.pop(),n):e,es(t,n)}));function cs(t){var r=De(t);return r.__chain__=!0,r}function ls(t,r){return r(t)}var hs=Yi((function(t){var r=t.length,n=r?t[0]:0,i=this.__wrapped__,o=function(r){return en(r,t)};return!(r>1||this.__actions__.length)&&i instanceof Ue&&go(n)?((i=i.slice(n,+n+(r?1:0))).__actions__.push({func:ls,args:[o],thisArg:e}),new $e(i,this.__chain__).thru((function(t){return r&&!t.length&&t.push(e),t}))):this.thru(o)})),fs=ji((function(t,r,e){Mt.call(t,e)?++t[e]:rn(t,e,1)})),ds=Ti(Uo),vs=Ti(Ho);function gs(t,r){return(Hs(t)?wr:cn)(t,io(r,3))}function ps(t,r){return(Hs(t)?Lr:ln)(t,io(r,3))}var Cs=ji((function(t,r,e){Mt.call(t,e)?t[e].push(r):rn(t,e,[r])})),ws=Vn((function(t,r,e){var n=-1,i="function"==typeof r,o=Bs(t)?C(t.length):[];return cn(t,(function(t){o[++n]=i?pr(r,t,e):jn(t,r,e)})),o})),Ls=ji((function(t,r,e){rn(t,e,r)}));function ms(t,r){return(Hs(t)?kr:An)(t,io(r,3))}var bs=ji((function(t,r,e){t[e?0:1].push(r)}),(function(){return[[],[]]})),xs=Vn((function(t,r){if(null==t)return[];var e=r.length;return e>1&&po(t,r[0],r[1])?r=[]:e>2&&po(r[0],r[1],r[2])&&(r=[r[0]]),Un(t,vn(r,1),[])})),ys=cr||function(){return ir.Date.now()};function ks(t,r,n){return r=n?e:r,Gi(t,u,e,e,e,e,r=t&&null==r?t.length:r)}function Es(t,r){var i;if("function"!=typeof r)throw new St(n);return t=hu(t),function(){return--t>0&&(i=r.apply(this,arguments)),t<=1&&(r=e),i}}var Ss=Vn((function(t,r,e){var n=1;if(e.length){var i=te(e,no(Ss));n|=s}return Gi(t,n,r,e,i)})),js=Vn((function(t,r,e){var n=3;if(e.length){var i=te(e,no(js));n|=s}return Gi(r,n,t,e,i)}));function Rs(t,r,i){var o,s,u,a,c,l,h=0,f=!1,d=!1,v=!0;if("function"!=typeof t)throw new St(n);function g(r){var n=o,i=s;return o=s=e,h=r,a=t.apply(i,n)}function p(t){return h=t,c=Ro(w,r),f?g(t):a}function C(t){var n=t-l;return l===e||n>=r||n<0||d&&t-h>=u}function w(){var t=ys();if(C(t))return L(t);c=Ro(w,function(t){var e=r-(t-l);return d?ge(e,u-(t-h)):e}(t))}function L(t){return c=e,v&&o?g(t):(o=s=e,a)}function m(){var t=ys(),n=C(t);if(o=arguments,s=this,l=t,n){if(c===e)return p(l);if(d)return wi(c),c=Ro(w,r),g(l)}return c===e&&(c=Ro(w,r)),a}return r=du(r)||0,Js(i)&&(f=!!i.leading,u=(d="maxWait"in i)?ve(du(i.maxWait)||0,r):u,v="trailing"in i?!!i.trailing:v),m.cancel=function(){c!==e&&wi(c),h=0,o=l=s=c=e},m.flush=function(){return c===e?a:L(ys())},m}var zs=Vn((function(t,r){return un(t,1,r)})),Os=Vn((function(t,r,e){return un(t,du(r)||0,e)}));function Ms(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new St(n);var e=function(){var n=arguments,i=r?r.apply(this,n):n[0],o=e.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return e.cache=o.set(i,s)||o,s};return e.cache=new(Ms.Cache||Be),e}function Fs(t){if("function"!=typeof t)throw new St(n);return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}Ms.Cache=Be;var _s=pi((function(t,r){var e=(r=1==r.length&&Hs(r[0])?kr(r[0],Zr(io())):kr(vn(r,1),Zr(io()))).length;return Vn((function(n){for(var i=-1,o=ge(n.length,e);++i<o;)n[i]=r[i].call(this,n[i]);return pr(t,this,n)}))})),Ts=Vn((function(t,r){var n=te(r,no(Ts));return Gi(t,s,e,r,n)})),As=Vn((function(t,r){var n=te(r,no(As));return Gi(t,64,e,r,n)})),Ds=Yi((function(t,r){return Gi(t,256,e,e,e,r)}));function Ps(t,r){return t===r||t!=t&&r!=r}var Is=Zi(yn),$s=Zi((function(t,r){return t>=r})),Us=Rn(function(){return arguments}())?Rn:function(t){return Ys(t)&&Mt.call(t,"callee")&&!Gt.call(t,"callee")},Hs=C.isArray,Zs=lr?Zr(lr):function(t){return Ys(t)&&xn(t)==O};function Bs(t){return null!=t&&Xs(t.length)&&!qs(t)}function Ns(t){return Ys(t)&&Bs(t)}var Ws=le||da,Vs=hr?Zr(hr):function(t){return Ys(t)&&xn(t)==p};function Gs(t){if(!Ys(t))return!1;var r=xn(t);return r==w||"[object DOMException]"==r||"string"==typeof t.message&&"string"==typeof t.name&&!ru(t)}function qs(t){if(!Js(t))return!1;var r=xn(t);return r==L||r==m||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Ks(t){return"number"==typeof t&&t==hu(t)}function Xs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Js(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ys(t){return null!=t&&"object"==typeof t}var Qs=fr?Zr(fr):function(t){return Ys(t)&&lo(t)==b};function tu(t){return"number"==typeof t||Ys(t)&&xn(t)==x}function ru(t){if(!Ys(t)||xn(t)!=y)return!1;var r=Zt(t);if(null===r)return!0;var e=Mt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Ot.call(e)==At}var eu=dr?Zr(dr):function(t){return Ys(t)&&xn(t)==E},nu=vr?Zr(vr):function(t){return Ys(t)&&lo(t)==S};function iu(t){return"string"==typeof t||!Hs(t)&&Ys(t)&&xn(t)==j}function ou(t){return"symbol"==typeof t||Ys(t)&&xn(t)==R}var su=gr?Zr(gr):function(t){return Ys(t)&&Xs(t.length)&&!!Jt[xn(t)]},uu=Zi(Tn),au=Zi((function(t,r){return t<=r}));function cu(t){if(!t)return[];if(Bs(t))return iu(t)?ie(t):Ei(t);if(nr&&t[nr])return function(t){for(var r,e=[];!(r=t.next()).done;)e.push(r.value);return e}(t[nr]());var r=lo(t);return(r==b?Yr:r==S?re:Pu)(t)}function lu(t){return t?(t=du(t))===a||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function hu(t){var r=lu(t),e=r%1;return r==r?e?r-e:r:0}function fu(t){return t?nn(hu(t),0,h):0}function du(t){if("number"==typeof t)return t;if(ou(t))return l;if(Js(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Js(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=Hr(t);var e=dt.test(t);return e||gt.test(t)?rr(t.slice(2),e?2:8):ft.test(t)?l:+t}function vu(t){return Si(t,zu(t))}function gu(t){return null==t?"":oi(t)}var pu=Ri((function(t,r){if(mo(r)||Bs(r))Si(r,Ru(r),t);else for(var e in r)Mt.call(r,e)&&Je(t,e,r[e])})),Cu=Ri((function(t,r){Si(r,zu(r),t)})),wu=Ri((function(t,r,e,n){Si(r,zu(r),t,n)})),Lu=Ri((function(t,r,e,n){Si(r,Ru(r),t,n)})),mu=Yi(en),bu=Vn((function(t,r){t=yt(t);var n=-1,i=r.length,o=i>2?r[2]:e;for(o&&po(r[0],r[1],o)&&(i=1);++n<i;)for(var s=r[n],u=zu(s),a=-1,c=u.length;++a<c;){var l=u[a],h=t[l];(h===e||Ps(h,Rt[l])&&!Mt.call(t,l))&&(t[l]=s[l])}return t})),xu=Vn((function(t){return t.push(e,Ki),pr(Mu,e,t)}));function yu(t,r,n){var i=null==t?e:mn(t,r);return i===e?n:i}function ku(t,r){return null!=t&&ho(t,r,En)}var Eu=Pi((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=Tt.call(r)),t[r]=e}),Ju(ta)),Su=Pi((function(t,r,e){null!=r&&"function"!=typeof r.toString&&(r=Tt.call(r)),Mt.call(t,r)?t[r].push(e):t[r]=[e]}),io),ju=Vn(jn);function Ru(t){return Bs(t)?Ve(t):_n(t)}function zu(t){return Bs(t)?Ve(t,!0):function(t){if(!Js(t))return function(t){var r=[];if(null!=t)for(var e in yt(t))r.push(e);return r}(t);var r=mo(t),e=[];for(var n in t)("constructor"!=n||!r&&Mt.call(t,n))&&e.push(n);return e}(t)}var Ou=Ri((function(t,r,e){In(t,r,e)})),Mu=Ri((function(t,r,e,n){In(t,r,e,n)})),Fu=Yi((function(t,r){var e={};if(null==t)return e;var n=!1;r=kr(r,(function(r){return r=gi(r,t),n||(n=r.length>1),r})),Si(t,to(t),e),n&&(e=on(e,7,Xi));for(var i=r.length;i--;)ui(e,r[i]);return e})),_u=Yi((function(t,r){return null==t?{}:function(t,r){return Hn(t,r,(function(r,e){return ku(t,e)}))}(t,r)}));function Tu(t,r){if(null==t)return{};var e=kr(to(t),(function(t){return[t]}));return r=io(r),Hn(t,e,(function(t,e){return r(t,e[0])}))}var Au=Vi(Ru),Du=Vi(zu);function Pu(t){return null==t?[]:Br(t,Ru(t))}var Iu=Fi((function(t,r,e){return r=r.toLowerCase(),t+(e?$u(r):r)}));function $u(t){return Gu(gu(t).toLowerCase())}function Uu(t){return(t=gu(t))&&t.replace(Ct,qr).replace(Nt,"")}var Hu=Fi((function(t,r,e){return t+(e?"-":"")+r.toLowerCase()})),Zu=Fi((function(t,r,e){return t+(e?" ":"")+r.toLowerCase()})),Bu=Mi("toLowerCase"),Nu=Fi((function(t,r,e){return t+(e?"_":"")+r.toLowerCase()})),Wu=Fi((function(t,r,e){return t+(e?" ":"")+Gu(r)})),Vu=Fi((function(t,r,e){return t+(e?" ":"")+r.toUpperCase()})),Gu=Mi("toUpperCase");function qu(t,r,n){return t=gu(t),(r=n?e:r)===e?function(t){return qt.test(t)}(t)?function(t){return t.match(Vt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(r)||[]}var Ku=Vn((function(t,r){try{return pr(t,e,r)}catch(t){return Gs(t)?t:new mt(t)}})),Xu=Yi((function(t,r){return wr(r,(function(r){r=To(r),rn(t,r,Ss(t[r],t))})),t}));function Ju(t){return function(){return t}}var Yu=Ai(),Qu=Ai(!0);function ta(t){return t}function ra(t){return Fn("function"==typeof t?t:on(t,1))}var ea=Vn((function(t,r){return function(e){return jn(e,t,r)}})),na=Vn((function(t,r){return function(e){return jn(t,e,r)}}));function ia(t,r,e){var n=Ru(r),i=Ln(r,n);null!=e||Js(r)&&(i.length||!n.length)||(e=r,r=t,t=this,i=Ln(r,Ru(r)));var o=!(Js(e)&&"chain"in e&&!e.chain),s=qs(t);return wr(i,(function(e){var n=r[e];t[e]=n,s&&(t.prototype[e]=function(){var r=this.__chain__;if(o||r){var e=t(this.__wrapped__),i=e.__actions__=Ei(this.__actions__);return i.push({func:n,args:arguments,thisArg:t}),e.__chain__=r,e}return n.apply(t,Er([this.value()],arguments))})})),t}function oa(){}var sa=$i(kr),ua=$i(mr),aa=$i(Rr);function ca(t){return Co(t)?Dr(To(t)):function(t){return function(r){return mn(r,t)}}(t)}var la=Hi(),ha=Hi(!0);function fa(){return[]}function da(){return!1}var va,ga=Ii((function(t,r){return t+r}),0),pa=Ni("ceil"),Ca=Ii((function(t,r){return t/r}),1),wa=Ni("floor"),La=Ii((function(t,r){return t*r}),1),ma=Ni("round"),ba=Ii((function(t,r){return t-r}),0);return De.after=function(t,r){if("function"!=typeof r)throw new St(n);return t=hu(t),function(){if(--t<1)return r.apply(this,arguments)}},De.ary=ks,De.assign=pu,De.assignIn=Cu,De.assignInWith=wu,De.assignWith=Lu,De.at=mu,De.before=Es,De.bind=Ss,De.bindAll=Xu,De.bindKey=js,De.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Hs(t)?t:[t]},De.chain=cs,De.chunk=function(t,r,n){r=(n?po(t,r,n):r===e)?1:ve(hu(r),0);var i=null==t?0:t.length;if(!i||r<1)return[];for(var o=0,s=0,u=C(Pr(i/r));o<i;)u[s++]=Qn(t,o,o+=r);return u},De.compact=function(t){for(var r=-1,e=null==t?0:t.length,n=0,i=[];++r<e;){var o=t[r];o&&(i[n++]=o)}return i},De.concat=function(){var t=arguments.length;if(!t)return[];for(var r=C(t-1),e=arguments[0],n=t;n--;)r[n-1]=arguments[n];return Er(Hs(e)?Ei(e):[e],vn(r,1))},De.cond=function(t){var r=null==t?0:t.length,e=io();return t=r?kr(t,(function(t){if("function"!=typeof t[1])throw new St(n);return[e(t[0]),t[1]]})):[],Vn((function(e){for(var n=-1;++n<r;){var i=t[n];if(pr(i[0],this,e))return pr(i[1],this,e)}}))},De.conforms=function(t){return function(t){var r=Ru(t);return function(e){return sn(e,t,r)}}(on(t,1))},De.constant=Ju,De.countBy=fs,De.create=function(t,r){var e=Pe(t);return null==r?e:tn(e,r)},De.curry=function t(r,n,i){var o=Gi(r,8,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},De.curryRight=function t(r,n,i){var o=Gi(r,16,e,e,e,e,e,n=i?e:n);return o.placeholder=t.placeholder,o},De.debounce=Rs,De.defaults=bu,De.defaultsDeep=xu,De.defer=zs,De.delay=Os,De.difference=Po,De.differenceBy=Io,De.differenceWith=$o,De.drop=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=n||r===e?1:hu(r))<0?0:r,i):[]},De.dropRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,0,(r=i-(r=n||r===e?1:hu(r)))<0?0:r):[]},De.dropRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0,!0):[]},De.dropWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!0):[]},De.fill=function(t,r,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&po(t,r,n)&&(n=0,i=o),function(t,r,n,i){var o=t.length;for((n=hu(n))<0&&(n=-n>o?0:o+n),(i=i===e||i>o?o:hu(i))<0&&(i+=o),i=n>i?0:fu(i);n<i;)t[n++]=r;return t}(t,r,n,i)):[]},De.filter=function(t,r){return(Hs(t)?br:dn)(t,io(r,3))},De.flatMap=function(t,r){return vn(ms(t,r),1)},De.flatMapDeep=function(t,r){return vn(ms(t,r),a)},De.flatMapDepth=function(t,r,n){return n=n===e?1:hu(n),vn(ms(t,r),n)},De.flatten=Zo,De.flattenDeep=function(t){return null!=t&&t.length?vn(t,a):[]},De.flattenDepth=function(t,r){return null!=t&&t.length?vn(t,r=r===e?1:hu(r)):[]},De.flip=function(t){return Gi(t,512)},De.flow=Yu,De.flowRight=Qu,De.fromPairs=function(t){for(var r=-1,e=null==t?0:t.length,n={};++r<e;){var i=t[r];n[i[0]]=i[1]}return n},De.functions=function(t){return null==t?[]:Ln(t,Ru(t))},De.functionsIn=function(t){return null==t?[]:Ln(t,zu(t))},De.groupBy=Cs,De.initial=function(t){return null!=t&&t.length?Qn(t,0,-1):[]},De.intersection=No,De.intersectionBy=Wo,De.intersectionWith=Vo,De.invert=Eu,De.invertBy=Su,De.invokeMap=ws,De.iteratee=ra,De.keyBy=Ls,De.keys=Ru,De.keysIn=zu,De.map=ms,De.mapKeys=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,r(t,n,i),t)})),e},De.mapValues=function(t,r){var e={};return r=io(r,3),Cn(t,(function(t,n,i){rn(e,n,r(t,n,i))})),e},De.matches=function(t){return Dn(on(t,1))},De.matchesProperty=function(t,r){return Pn(t,on(r,1))},De.memoize=Ms,De.merge=Ou,De.mergeWith=Mu,De.method=ea,De.methodOf=na,De.mixin=ia,De.negate=Fs,De.nthArg=function(t){return t=hu(t),Vn((function(r){return $n(r,t)}))},De.omit=Fu,De.omitBy=function(t,r){return Tu(t,Fs(io(r)))},De.once=function(t){return Es(2,t)},De.orderBy=function(t,r,n,i){return null==t?[]:(Hs(r)||(r=null==r?[]:[r]),Hs(n=i?e:n)||(n=null==n?[]:[n]),Un(t,r,n))},De.over=sa,De.overArgs=_s,De.overEvery=ua,De.overSome=aa,De.partial=Ts,De.partialRight=As,De.partition=bs,De.pick=_u,De.pickBy=Tu,De.property=ca,De.propertyOf=function(t){return function(r){return null==t?e:mn(t,r)}},De.pull=qo,De.pullAll=Ko,De.pullAllBy=function(t,r,e){return t&&t.length&&r&&r.length?Zn(t,r,io(e,2)):t},De.pullAllWith=function(t,r,n){return t&&t.length&&r&&r.length?Zn(t,r,e,n):t},De.pullAt=Xo,De.range=la,De.rangeRight=ha,De.rearg=Ds,De.reject=function(t,r){return(Hs(t)?br:dn)(t,Fs(io(r,3)))},De.remove=function(t,r){var e=[];if(!t||!t.length)return e;var n=-1,i=[],o=t.length;for(r=io(r,3);++n<o;){var s=t[n];r(s,n,t)&&(e.push(s),i.push(n))}return Bn(t,i),e},De.rest=function(t,r){if("function"!=typeof t)throw new St(n);return Vn(t,r=r===e?r:hu(r))},De.reverse=Jo,De.sampleSize=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:hu(r),(Hs(t)?qe:qn)(t,r)},De.set=function(t,r,e){return null==t?t:Kn(t,r,e)},De.setWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:Kn(t,r,n,i)},De.shuffle=function(t){return(Hs(t)?Ke:Yn)(t)},De.slice=function(t,r,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&po(t,r,n)?(r=0,n=i):(r=null==r?0:hu(r),n=n===e?i:hu(n)),Qn(t,r,n)):[]},De.sortBy=xs,De.sortedUniq=function(t){return t&&t.length?ni(t):[]},De.sortedUniqBy=function(t,r){return t&&t.length?ni(t,io(r,2)):[]},De.split=function(t,r,n){return n&&"number"!=typeof n&&po(t,r,n)&&(r=n=e),(n=n===e?h:n>>>0)?(t=gu(t))&&("string"==typeof r||null!=r&&!eu(r))&&!(r=oi(r))&&Jr(t)?Ci(ie(t),0,n):t.split(r,n):[]},De.spread=function(t,r){if("function"!=typeof t)throw new St(n);return r=null==r?0:ve(hu(r),0),Vn((function(e){var n=e[r],i=Ci(e,0,r);return n&&Er(i,n),pr(t,this,i)}))},De.tail=function(t){var r=null==t?0:t.length;return r?Qn(t,1,r):[]},De.take=function(t,r,n){return t&&t.length?Qn(t,0,(r=n||r===e?1:hu(r))<0?0:r):[]},De.takeRight=function(t,r,n){var i=null==t?0:t.length;return i?Qn(t,(r=i-(r=n||r===e?1:hu(r)))<0?0:r,i):[]},De.takeRightWhile=function(t,r){return t&&t.length?ci(t,io(r,3),!1,!0):[]},De.takeWhile=function(t,r){return t&&t.length?ci(t,io(r,3)):[]},De.tap=function(t,r){return r(t),t},De.throttle=function(t,r,e){var i=!0,o=!0;if("function"!=typeof t)throw new St(n);return Js(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),Rs(t,r,{leading:i,maxWait:r,trailing:o})},De.thru=ls,De.toArray=cu,De.toPairs=Au,De.toPairsIn=Du,De.toPath=function(t){return Hs(t)?kr(t,To):ou(t)?[t]:Ei(_o(gu(t)))},De.toPlainObject=vu,De.transform=function(t,r,e){var n=Hs(t),i=n||Ws(t)||su(t);if(r=io(r,4),null==e){var o=t&&t.constructor;e=i?n?new o:[]:Js(t)&&qs(o)?Pe(Zt(t)):{}}return(i?wr:Cn)(t,(function(t,n,i){return r(e,t,n,i)})),e},De.unary=function(t){return ks(t,1)},De.union=Yo,De.unionBy=Qo,De.unionWith=ts,De.uniq=function(t){return t&&t.length?si(t):[]},De.uniqBy=function(t,r){return t&&t.length?si(t,io(r,2)):[]},De.uniqWith=function(t,r){return r="function"==typeof r?r:e,t&&t.length?si(t,e,r):[]},De.unset=function(t,r){return null==t||ui(t,r)},De.unzip=rs,De.unzipWith=es,De.update=function(t,r,e){return null==t?t:ai(t,r,vi(e))},De.updateWith=function(t,r,n,i){return i="function"==typeof i?i:e,null==t?t:ai(t,r,vi(n),i)},De.values=Pu,De.valuesIn=function(t){return null==t?[]:Br(t,zu(t))},De.without=ns,De.words=qu,De.wrap=function(t,r){return Ts(vi(r),t)},De.xor=is,De.xorBy=os,De.xorWith=ss,De.zip=us,De.zipObject=function(t,r){return fi(t||[],r||[],Je)},De.zipObjectDeep=function(t,r){return fi(t||[],r||[],Kn)},De.zipWith=as,De.entries=Au,De.entriesIn=Du,De.extend=Cu,De.extendWith=wu,ia(De,De),De.add=ga,De.attempt=Ku,De.camelCase=Iu,De.capitalize=$u,De.ceil=pa,De.clamp=function(t,r,n){return n===e&&(n=r,r=e),n!==e&&(n=(n=du(n))==n?n:0),r!==e&&(r=(r=du(r))==r?r:0),nn(du(t),r,n)},De.clone=function(t){return on(t,4)},De.cloneDeep=function(t){return on(t,5)},De.cloneDeepWith=function(t,r){return on(t,5,r="function"==typeof r?r:e)},De.cloneWith=function(t,r){return on(t,4,r="function"==typeof r?r:e)},De.conformsTo=function(t,r){return null==r||sn(t,r,Ru(r))},De.deburr=Uu,De.defaultTo=function(t,r){return null==t||t!=t?r:t},De.divide=Ca,De.endsWith=function(t,r,n){t=gu(t),r=oi(r);var i=t.length,o=n=n===e?i:nn(hu(n),0,i);return(n-=r.length)>=0&&t.slice(n,o)==r},De.eq=Ps,De.escape=function(t){return(t=gu(t))&&G.test(t)?t.replace(W,Kr):t},De.escapeRegExp=function(t){return(t=gu(t))&&rt.test(t)?t.replace(tt,"\\$&"):t},De.every=function(t,r,n){var i=Hs(t)?mr:hn;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},De.find=ds,De.findIndex=Uo,De.findKey=function(t,r){return Or(t,io(r,3),Cn)},De.findLast=vs,De.findLastIndex=Ho,De.findLastKey=function(t,r){return Or(t,io(r,3),wn)},De.floor=wa,De.forEach=gs,De.forEachRight=ps,De.forIn=function(t,r){return null==t?t:gn(t,io(r,3),zu)},De.forInRight=function(t,r){return null==t?t:pn(t,io(r,3),zu)},De.forOwn=function(t,r){return t&&Cn(t,io(r,3))},De.forOwnRight=function(t,r){return t&&wn(t,io(r,3))},De.get=yu,De.gt=Is,De.gte=$s,De.has=function(t,r){return null!=t&&ho(t,r,kn)},De.hasIn=ku,De.head=Bo,De.identity=ta,De.includes=function(t,r,e,n){t=Bs(t)?t:Pu(t),e=e&&!n?hu(e):0;var i=t.length;return e<0&&(e=ve(i+e,0)),iu(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&Fr(t,r,e)>-1},De.indexOf=function(t,r,e){var n=null==t?0:t.length;if(!n)return-1;var i=null==e?0:hu(e);return i<0&&(i=ve(n+i,0)),Fr(t,r,i)},De.inRange=function(t,r,n){return r=lu(r),n===e?(n=r,r=0):n=lu(n),function(t,r,e){return t>=ge(r,e)&&t<ve(r,e)}(t=du(t),r,n)},De.invoke=ju,De.isArguments=Us,De.isArray=Hs,De.isArrayBuffer=Zs,De.isArrayLike=Bs,De.isArrayLikeObject=Ns,De.isBoolean=function(t){return!0===t||!1===t||Ys(t)&&xn(t)==g},De.isBuffer=Ws,De.isDate=Vs,De.isElement=function(t){return Ys(t)&&1===t.nodeType&&!ru(t)},De.isEmpty=function(t){if(null==t)return!0;if(Bs(t)&&(Hs(t)||"string"==typeof t||"function"==typeof t.splice||Ws(t)||su(t)||Us(t)))return!t.length;var r=lo(t);if(r==b||r==S)return!t.size;if(mo(t))return!_n(t).length;for(var e in t)if(Mt.call(t,e))return!1;return!0},De.isEqual=function(t,r){return zn(t,r)},De.isEqualWith=function(t,r,n){var i=(n="function"==typeof n?n:e)?n(t,r):e;return i===e?zn(t,r,e,n):!!i},De.isError=Gs,De.isFinite=function(t){return"number"==typeof t&&he(t)},De.isFunction=qs,De.isInteger=Ks,De.isLength=Xs,De.isMap=Qs,De.isMatch=function(t,r){return t===r||On(t,r,so(r))},De.isMatchWith=function(t,r,n){return n="function"==typeof n?n:e,On(t,r,so(r),n)},De.isNaN=function(t){return tu(t)&&t!=+t},De.isNative=function(t){if(Lo(t))throw new mt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Mn(t)},De.isNil=function(t){return null==t},De.isNull=function(t){return null===t},De.isNumber=tu,De.isObject=Js,De.isObjectLike=Ys,De.isPlainObject=ru,De.isRegExp=eu,De.isSafeInteger=function(t){return Ks(t)&&t>=-9007199254740991&&t<=c},De.isSet=nu,De.isString=iu,De.isSymbol=ou,De.isTypedArray=su,De.isUndefined=function(t){return t===e},De.isWeakMap=function(t){return Ys(t)&&lo(t)==z},De.isWeakSet=function(t){return Ys(t)&&"[object WeakSet]"==xn(t)},De.join=function(t,r){return null==t?"":fe.call(t,r)},De.kebabCase=Hu,De.last=Go,De.lastIndexOf=function(t,r,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==e&&(o=(o=hu(n))<0?ve(i+o,0):ge(o,i-1)),r==r?function(t,r,e){for(var n=e+1;n--;)if(t[n]===r)return n;return n}(t,r,o):Mr(t,Tr,o,!0)},De.lowerCase=Zu,De.lowerFirst=Bu,De.lt=uu,De.lte=au,De.max=function(t){return t&&t.length?fn(t,ta,yn):e},De.maxBy=function(t,r){return t&&t.length?fn(t,io(r,2),yn):e},De.mean=function(t){return Ar(t,ta)},De.meanBy=function(t,r){return Ar(t,io(r,2))},De.min=function(t){return t&&t.length?fn(t,ta,Tn):e},De.minBy=function(t,r){return t&&t.length?fn(t,io(r,2),Tn):e},De.stubArray=fa,De.stubFalse=da,De.stubObject=function(){return{}},De.stubString=function(){return""},De.stubTrue=function(){return!0},De.multiply=La,De.nth=function(t,r){return t&&t.length?$n(t,hu(r)):e},De.noConflict=function(){return ir._===this&&(ir._=Dt),this},De.noop=oa,De.now=ys,De.pad=function(t,r,e){t=gu(t);var n=(r=hu(r))?ne(t):0;if(!r||n>=r)return t;var i=(r-n)/2;return Ui(ae(i),e)+t+Ui(Pr(i),e)},De.padEnd=function(t,r,e){t=gu(t);var n=(r=hu(r))?ne(t):0;return r&&n<r?t+Ui(r-n,e):t},De.padStart=function(t,r,e){t=gu(t);var n=(r=hu(r))?ne(t):0;return r&&n<r?Ui(r-n,e)+t:t},De.parseInt=function(t,r,e){return e||null==r?r=0:r&&(r=+r),Ce(gu(t).replace(et,""),r||0)},De.random=function(t,r,n){if(n&&"boolean"!=typeof n&&po(t,r,n)&&(r=n=e),n===e&&("boolean"==typeof r?(n=r,r=e):"boolean"==typeof t&&(n=t,t=e)),t===e&&r===e?(t=0,r=1):(t=lu(t),r===e?(r=t,t=0):r=lu(r)),t>r){var i=t;t=r,r=i}if(n||t%1||r%1){var o=we();return ge(t+o*(r-t+tr("1e-"+((o+"").length-1))),r)}return Nn(t,r)},De.reduce=function(t,r,e){var n=Hs(t)?Sr:Ir,i=arguments.length<3;return n(t,io(r,4),e,i,cn)},De.reduceRight=function(t,r,e){var n=Hs(t)?jr:Ir,i=arguments.length<3;return n(t,io(r,4),e,i,ln)},De.repeat=function(t,r,n){return r=(n?po(t,r,n):r===e)?1:hu(r),Wn(gu(t),r)},De.replace=function(){var t=arguments,r=gu(t[0]);return t.length<3?r:r.replace(t[1],t[2])},De.result=function(t,r,n){var i=-1,o=(r=gi(r,t)).length;for(o||(o=1,t=e);++i<o;){var s=null==t?e:t[To(r[i])];s===e&&(i=o,s=n),t=qs(s)?s.call(t):s}return t},De.round=ma,De.runInContext=t,De.sample=function(t){return(Hs(t)?Ge:Gn)(t)},De.size=function(t){if(null==t)return 0;if(Bs(t))return iu(t)?ne(t):t.length;var r=lo(t);return r==b||r==S?t.size:_n(t).length},De.snakeCase=Nu,De.some=function(t,r,n){var i=Hs(t)?Rr:ti;return n&&po(t,r,n)&&(r=e),i(t,io(r,3))},De.sortedIndex=function(t,r){return ri(t,r)},De.sortedIndexBy=function(t,r,e){return ei(t,r,io(e,2))},De.sortedIndexOf=function(t,r){var e=null==t?0:t.length;if(e){var n=ri(t,r);if(n<e&&Ps(t[n],r))return n}return-1},De.sortedLastIndex=function(t,r){return ri(t,r,!0)},De.sortedLastIndexBy=function(t,r,e){return ei(t,r,io(e,2),!0)},De.sortedLastIndexOf=function(t,r){if(null!=t&&t.length){var e=ri(t,r,!0)-1;if(Ps(t[e],r))return e}return-1},De.startCase=Wu,De.startsWith=function(t,r,e){return t=gu(t),e=null==e?0:nn(hu(e),0,t.length),r=oi(r),t.slice(e,e+r.length)==r},De.subtract=ba,De.sum=function(t){return t&&t.length?$r(t,ta):0},De.sumBy=function(t,r){return t&&t.length?$r(t,io(r,2)):0},De.template=function(t,r,n){var i=De.templateSettings;n&&po(t,r,n)&&(r=e),t=gu(t),r=wu({},r,i,qi);var o,s,u=wu({},r.imports,i.imports,qi),a=Ru(u),c=Br(u,a),l=0,h=r.interpolate||wt,f="__p += '",d=kt((r.escape||wt).source+"|"+h.source+"|"+(h===X?lt:wt).source+"|"+(r.evaluate||wt).source+"|$","g"),v="//# sourceURL="+(Mt.call(r,"sourceURL")?(r.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";t.replace(d,(function(r,e,n,i,u,a){return n||(n=i),f+=t.slice(l,a).replace(Lt,Xr),e&&(o=!0,f+="' +\n__e("+e+") +\n'"),u&&(s=!0,f+="';\n"+u+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=a+r.length,r})),f+="';\n";var g=Mt.call(r,"variable")&&r.variable;if(g){if(at.test(g))throw new mt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(H,""):f).replace(Z,"$1").replace(B,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var p=Ku((function(){return bt(a,v+"return "+f).apply(e,c)}));if(p.source=f,Gs(p))throw p;return p},De.times=function(t,r){if((t=hu(t))<1||t>c)return[];var e=h,n=ge(t,h);r=io(r),t-=h;for(var i=Ur(n,r);++e<t;)r(e);return i},De.toFinite=lu,De.toInteger=hu,De.toLength=fu,De.toLower=function(t){return gu(t).toLowerCase()},De.toNumber=du,De.toSafeInteger=function(t){return t?nn(hu(t),-9007199254740991,c):0===t?t:0},De.toString=gu,De.toUpper=function(t){return gu(t).toUpperCase()},De.trim=function(t,r,n){if((t=gu(t))&&(n||r===e))return Hr(t);if(!t||!(r=oi(r)))return t;var i=ie(t),o=ie(r);return Ci(i,Wr(i,o),Vr(i,o)+1).join("")},De.trimEnd=function(t,r,n){if((t=gu(t))&&(n||r===e))return t.slice(0,oe(t)+1);if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,0,Vr(i,ie(r))+1).join("")},De.trimStart=function(t,r,n){if((t=gu(t))&&(n||r===e))return t.replace(et,"");if(!t||!(r=oi(r)))return t;var i=ie(t);return Ci(i,Wr(i,ie(r))).join("")},De.truncate=function(t,r){var n=30,i="...";if(Js(r)){var o="separator"in r?r.separator:o;n="length"in r?hu(r.length):n,i="omission"in r?oi(r.omission):i}var s=(t=gu(t)).length;if(Jr(t)){var u=ie(t);s=u.length}if(n>=s)return t;var a=n-ne(i);if(a<1)return i;var c=u?Ci(u,0,a).join(""):t.slice(0,a);if(o===e)return c+i;if(u&&(a+=c.length-a),eu(o)){if(t.slice(a).search(o)){var l,h=c;for(o.global||(o=kt(o.source,gu(ht.exec(o))+"g")),o.lastIndex=0;l=o.exec(h);)var f=l.index;c=c.slice(0,f===e?a:f)}}else if(t.indexOf(oi(o),a)!=a){var d=c.lastIndexOf(o);d>-1&&(c=c.slice(0,d))}return c+i},De.unescape=function(t){return(t=gu(t))&&V.test(t)?t.replace(N,se):t},De.uniqueId=function(t){var r=++Ft;return gu(t)+r},De.upperCase=Vu,De.upperFirst=Gu,De.each=gs,De.eachRight=ps,De.first=Bo,ia(De,(va={},Cn(De,(function(t,r){Mt.call(De.prototype,r)||(va[r]=t)})),va),{chain:!1}),De.VERSION="4.17.21",wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){De[t].placeholder=De})),wr(["drop","take"],(function(t,r){Ue.prototype[t]=function(n){n=n===e?1:ve(hu(n),0);var i=this.__filtered__&&!r?new Ue(this):this.clone();return i.__filtered__?i.__takeCount__=ge(n,i.__takeCount__):i.__views__.push({size:ge(n,h),type:t+(i.__dir__<0?"Right":"")}),i},Ue.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}})),wr(["filter","map","takeWhile"],(function(t,r){var e=r+1,n=1==e||3==e;Ue.prototype[t]=function(t){var r=this.clone();return r.__iteratees__.push({iteratee:io(t,3),type:e}),r.__filtered__=r.__filtered__||n,r}})),wr(["head","last"],(function(t,r){var e="take"+(r?"Right":"");Ue.prototype[t]=function(){return this[e](1).value()[0]}})),wr(["initial","tail"],(function(t,r){var e="drop"+(r?"":"Right");Ue.prototype[t]=function(){return this.__filtered__?new Ue(this):this[e](1)}})),Ue.prototype.compact=function(){return this.filter(ta)},Ue.prototype.find=function(t){return this.filter(t).head()},Ue.prototype.findLast=function(t){return this.reverse().find(t)},Ue.prototype.invokeMap=Vn((function(t,r){return"function"==typeof t?new Ue(this):this.map((function(e){return jn(e,t,r)}))})),Ue.prototype.reject=function(t){return this.filter(Fs(io(t)))},Ue.prototype.slice=function(t,r){t=hu(t);var n=this;return n.__filtered__&&(t>0||r<0)?new Ue(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),r!==e&&(n=(r=hu(r))<0?n.dropRight(-r):n.take(r-t)),n)},Ue.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ue.prototype.toArray=function(){return this.take(h)},Cn(Ue.prototype,(function(t,r){var n=/^(?:filter|find|map|reject)|While$/.test(r),i=/^(?:head|last)$/.test(r),o=De[i?"take"+("last"==r?"Right":""):r],s=i||/^find/.test(r);o&&(De.prototype[r]=function(){var r=this.__wrapped__,u=i?[1]:arguments,a=r instanceof Ue,c=u[0],l=a||Hs(r),h=function(t){var r=o.apply(De,Er([t],u));return i&&f?r[0]:r};l&&n&&"function"==typeof c&&1!=c.length&&(a=l=!1);var f=this.__chain__,d=!!this.__actions__.length,v=s&&!f,g=a&&!d;if(!s&&l){r=g?r:new Ue(this);var p=t.apply(r,u);return p.__actions__.push({func:ls,args:[h],thisArg:e}),new $e(p,f)}return v&&g?t.apply(this,u):(p=this.thru(h),v?i?p.value()[0]:p.value():p)})})),wr(["pop","push","shift","sort","splice","unshift"],(function(t){var r=jt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);De.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return r.apply(Hs(i)?i:[],t)}return this[e]((function(e){return r.apply(Hs(e)?e:[],t)}))}})),Cn(Ue.prototype,(function(t,r){var e=De[r];if(e){var n=e.name+"";Mt.call(je,n)||(je[n]=[]),je[n].push({name:r,func:e})}})),je[Di(e,2).name]=[{name:"wrapper",func:e}],Ue.prototype.clone=function(){var t=new Ue(this.__wrapped__);return t.__actions__=Ei(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ei(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ei(this.__views__),t},Ue.prototype.reverse=function(){if(this.__filtered__){var t=new Ue(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ue.prototype.value=function(){var t=this.__wrapped__.value(),r=this.__dir__,e=Hs(t),n=r<0,i=e?t.length:0,o=function(t,r,e){for(var n=-1,i=e.length;++n<i;){var o=e[n],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":r-=s;break;case"take":r=ge(r,t+s);break;case"takeRight":t=ve(t,r-s)}}return{start:t,end:r}}(0,i,this.__views__),s=o.start,u=o.end,a=u-s,c=n?u:s-1,l=this.__iteratees__,h=l.length,f=0,d=ge(a,this.__takeCount__);if(!e||!n&&i==a&&d==a)return li(t,this.__actions__);var v=[];t:for(;a--&&f<d;){for(var g=-1,p=t[c+=r];++g<h;){var C=l[g],w=C.type,L=(0,C.iteratee)(p);if(2==w)p=L;else if(!L){if(1==w)continue t;break t}}v[f++]=p}return v},De.prototype.at=hs,De.prototype.chain=function(){return cs(this)},De.prototype.commit=function(){return new $e(this.value(),this.__chain__)},De.prototype.next=function(){this.__values__===e&&(this.__values__=cu(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},De.prototype.plant=function(t){for(var r,n=this;n instanceof Ie;){var i=Do(n);i.__index__=0,i.__values__=e,r?o.__wrapped__=i:r=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,r},De.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ue){var r=t;return this.__actions__.length&&(r=new Ue(this)),(r=r.reverse()).__actions__.push({func:ls,args:[Jo],thisArg:e}),new $e(r,this.__chain__)}return this.thru(Jo)},De.prototype.toJSON=De.prototype.valueOf=De.prototype.value=function(){return li(this.__wrapped__,this.__actions__)},De.prototype.first=De.prototype.head,nr&&(De.prototype[nr]=function(){return this}),De}();sr?((sr.exports=ue)._=ue,or._=ue):ir._=ue}).call(C)}));class Fe{constructor(t,r){this.viewports=t;const e=Me.debounce((()=>r.realSizeChanged()),100);this.stores=Dr([...le,...he],((t,r)=>(t[r]=new ze,t[r].store.onChange("realSize",(()=>e())),t)),{})}setDimensionSize(t,r){this.stores[t].setDimensionSize(r),this.viewports.stores[t].setViewPortDimension(r)}setRealSize(t,r){this.viewports.stores[r].setViewport({realCount:t}),this.stores[r].setRealSize(t)}setData(t,r,e=!1){this.setRealSize(t.length,r),e&&this.setNoVirtual(r),this.setViewPortCoordinate({coordinate:this.viewports.stores[r].store.get("lastCoordinate"),type:r})}setNoVirtual(t){const r=this.stores[t].getCurrentState();this.viewports.stores[t].setViewport({virtualSize:r.realSize})}drop(){for(let t of he)this.stores[t].drop()}getFullSize(){var t,r;let e=0,n=0;for(let r of he)e+=(null===(t=this.stores[r])||void 0===t?void 0:t.store.get("realSize"))||0;for(let t of le)n+=(null===(r=this.stores[t])||void 0===r?void 0:r.store.get("realSize"))||0;return{y:n,x:e}}setColumns(t,r,e=!1){this.stores[t].setDimensionSize(r),e&&this.setNoVirtual(t),this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})}setViewPortCoordinate({coordinate:t,type:r}){const e=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,e)}getViewPortPos(t){return je(this.stores[t.dimension].getCurrentState(),t.coordinate).start}setSettings(t,r){let e=[];switch(r){case"rgCol":e=he;break;case"rgRow":e=le}for(let r of e)this.stores[r].setStore(t)}}function _e(t,r,e){t.splice(e.end+1,0,...r),e.start>=e.end&&(e.start!==e.end||0!==e.start)&&(e.start+=r.length),e.end+=r.length}function Te(t,r,e,n,i){const o=Ie(n);return Ae({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:e-(o.end-t.start),maxCount:r})}function Ae(t,r=0){const e=[];let n=t.startIndex,i=r;for(;i<=t.maxSize&&n<t.maxCount;){const r=De(n,t.sizes,t.origSize);e.push({start:t.start+i,end:t.start+i+r,itemIndex:n,size:r}),i+=r,n++}return e}function De(t,r,e=0){return r&&r[t]?r[t]:e}function Pe(t){return t.items[t.start]}function Ie(t){return t.items[t.end]}class $e{constructor(){this.store=Qr({items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}),this.store.onChange("realCount",(()=>this.clear()))}setViewPortCoordinate(t,r){let e=this.store.get("virtualSize");if(!e)return;const n=r.frameOffset;e+=2*n*r.originItemSize;let i=e;r.realSize>e&&(i=r.realSize-e);let o={lastCoordinate:t},s=t;s-=n*r.originItemSize,s=s<0?0:s<i?s:i;const u=Pe(this.getItems()),a=Ie(this.getItems());if(function(t,r){return r&&t>=r.start&&t<=r.end}(s,u)){if(u&&this.store.get("virtualSize")+s>(null==a?void 0:a.end)){const t=Te(u,this.store.get("realCount"),e+s-u.start,this.getItems(),r);if(t.length){const r=[...this.store.get("items")],e={start:this.store.get("start"),end:this.store.get("end")};_e(r,t,e),o=Object.assign(Object.assign(Object.assign({},o),{items:[...r]}),e),ie(this.store,Object.assign({},o))}}}else o=Object.assign(Object.assign({},o),function(t,r,e,n,i){const o=Se(i,t),s=Pe(r);let u;if(s){let t=o.itemIndex-(s.itemIndex||0);if(t){const s=function(t,r){const e=[...r.items],n=e.length;let i={start:r.start,end:r.end};if(t>n)return null;if(r.positiveDirection){let o=Ie(r),s=i.start;const u=s+t;for(;s<u;s++){const t=o.itemIndex+1,u=De(t,r.sizes,r.originItemSize);if(o.end+u>r.realSize)break;let a=s%n;if(!e[a])throw new Error("incorrect index");e[a]=o={start:o.end,end:o.end+u,itemIndex:t,size:u},i.start++,i.end=a}}else{let o=Pe(r);const s=i.end;for(let u=0;u<t;u++){const t=o.itemIndex-1,a=De(t,r.sizes,r.originItemSize);let c=s-u;if(c=(c<0?n+c:c)%n,!e[c])throw new Error("incorrect index");e[c]=o={start:o.start-a,end:o.start,itemIndex:t,size:a},i.start=c,i.end--}}return Object.assign({items:e},{start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n})}(Math.abs(t),Object.assign(Object.assign({positiveDirection:t>-1},i),r));if(s&&(u=s),u){const t=Te(o,e,n,u,i);t.length&&_e(u.items,t,u)}}}if(!u){const t=Ae({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:e,sizes:i.sizes});u={items:t,start:0,end:t.length-1}}return u}(s,this.getItems(),this.store.get("realCount"),e,r)),ie(this.store,Object.assign({},o))}setViewPortDimension(t){const r=this.store.get("items"),e=r.length;if(!e)return;let n=0,i=0,o=this.store.get("start");for(;i<e;){const s=r[o];n&&(s.start+=n,s.end+=n);const u=t[s.itemIndex];u&&(n+=u-s.size,s.size=u,s.end=s.start+u),o++,i++,o===e&&(o=0)}ie(this.store,{items:[...r]})}getItems(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}}setViewport(t){ie(this.store,t)}clear(){this.store.set("items",[])}}class Ue{constructor(){this.stores=Dr([...le,...he],((t,r)=>(t[r]=new $e,t)),{})}setViewport(t,r){this.stores[t].setViewport(r)}}!function(t){t.headerClickAutosize="headerClickAutoSize",t.autoSizeOnTextOverlap="autoSizeOnTextOverlap",t.autoSizeAll="autoSizeAll"}(Oe||(Oe={}));class He extends ve{constructor(t,r,e){super(t),this.providers=r,this.config=e,this.autoSizeColumns=null,this.dataResolve=null,this.dataReject=null,this.letterBlockSize=(null==e?void 0:e.letterBlockSize)||7,(null==e?void 0:e.preciseSize)&&(this.precsizeCalculationArea=this.initiatePresizeElement(),t.appendChild(this.precsizeCalculationArea));const n=({detail:{source:t}})=>{this.setSource(t)},i=({detail:t})=>{this.afteredit(t)},o=({detail:t})=>{this.afterEditAll(t)},s=({detail:t})=>{const r=pe.getColumnType(t),e=this.getColumnSize(t.index,r);e&&this.providers.dimensionProvider.setDimensionSize(r,{[t.index]:e})};switch(this.addEventListener("beforecolumnsset",(({detail:{columns:t}})=>{this.columnSet(t)})),null==e?void 0:e.mode){case Oe.autoSizeOnTextOverlap:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",i);break;case Oe.autoSizeAll:this.addEventListener("aftersourceset",n),this.addEventListener("afteredit",o);break;default:this.addEventListener("headerdblClick",s)}}async setSource(t){let r=this.autoSizeColumns;if(this.dataReject&&(this.dataReject(),this.clearPromise()),!r){const t=new Promise(((t,r)=>{this.dataResolve=t,this.dataReject=r}));try{r=await t}catch(t){return}}ot(r,((e,n)=>{const i={};ot(r[n],(r=>{r.size=i[r.index]=t.reduce(((t,e)=>Math.max(t,this.getLength(e[r.prop]))),0)})),this.providers.dimensionProvider.setDimensionSize(n,i)}))}getLength(t){var r;if(!t)return 0;try{const e=t.toString();return(null===(r=this.config)||void 0===r?void 0:r.preciseSize)?(this.precsizeCalculationArea.innerText=e,this.precsizeCalculationArea.scrollWidth+30):e.length*this.letterBlockSize+30}catch(t){return 0}}afteredit(t){let r;r=this.isRangeEdit(t)?t.data:{0:{[t.prop]:t.val}},ot(this.autoSizeColumns,((t,e)=>{const n={};ot(t,(t=>{const e=Dr(r,((r,e)=>void 0===e[t.prop]?r:Math.max(r||0,this.getLength(e[t.prop]))),void 0);e&&t.size<e&&(t.size=n[t.index]=e)})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}afterEditAll(t){const r={};this.isRangeEdit(t)?ot(t.data,(t=>ot(t,((t,e)=>r[e]=!0)))):r[t.prop]=!0,ot(this.autoSizeColumns,((t,e)=>{const n={};ot(t,(t=>{if(r[t.prop]){const r=this.getColumnSize(t.index,e);r&&(n[t.index]=r)}})),this.providers.dimensionProvider.setDimensionSize(e,n)}))}getColumnSize(t,r){const e=this.autoSizeColumns[r][t];return e?Dr(this.providers.dataProvider.stores,((t,r)=>{const n=Dr(r.store.get("items"),((t,n,i)=>{const o=ue(r.store,i);return Math.max(t||0,this.getLength(o[e.prop]))}),0);return Math.max(t,n)}),e.size||0):0}columnSet(t){var r;for(let e of he){const n=e,i=t[n];for(let t in i)(i[t].autoSize||(null===(r=this.config)||void 0===r?void 0:r.allColumns))&&(this.autoSizeColumns||(this.autoSizeColumns={}),this.autoSizeColumns[n]||(this.autoSizeColumns[n]={}),this.autoSizeColumns[n][t]=Object.assign(Object.assign({},i[t]),{index:parseInt(t,10)}))}this.dataResolve&&(this.dataResolve(this.autoSizeColumns),this.clearPromise())}clearPromise(){this.dataResolve=null,this.dataReject=null}isRangeEdit(t){return!!t.data}initiatePresizeElement(){const t={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"},r=document.createElement("div");for(let e in t)r.style[e]=t[e];return r.classList.add("revo-test-container"),r}destroy(){var t;super.destroy(),null===(t=this.precsizeCalculationArea)||void 0===t||t.remove()}}const Ze=(t,r)=>void 0===t||null===t&&!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase()===r),Be=(t,r)=>!Ze(t,r);Be.extra="input",Ze.extra="input";const Ne=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t>e)};Ne.extra="input";const We=function(t,r){return Ze(t,r)||Ne(t,r)};We.extra="input";const Ve=function(t,r){let e;return"number"==typeof t&&(e=parseFloat(null==r?void 0:r.toString()),t<e)};Ve.extra="input";const Ge=function(t,r){return Ze(t,r)||Ve(t,r)};Ge.extra="input";const qe=t=>!(""===t||null==t),Ke=(t,r)=>!(!t||r&&("string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof r&&(r=JSON.stringify(r)),0!==t.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())));Ke.extra="input";const Xe=(t,r)=>!!t&&(!r||("string"!=typeof t&&(t=JSON.stringify(t)),t.toLocaleLowerCase().indexOf(r.toString().toLowerCase())>-1)),Je=(t,r)=>!Xe(t,r);Je.extra="input",Xe.extra="input";const Ye={none:"None",empty:"Not set",notEmpty:"Set",eq:"Equal",notEq:"Not equal",begins:"Begins with",contains:"Contains",notContains:"Does not contain",eqN:"=",neqN:"!=",gt:">",gte:">=",lt:"<",lte:"<="},Qe={none:()=>!0,empty:t=>!qe(t),notEmpty:qe,eq:Ze,notEq:Be,begins:Ke,contains:Xe,notContains:Je,eqN:Ze,neqN:Be,gt:Ne,gte:We,lt:Ve,lte:Ge},tn={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};class rn extends ve{constructor(t,r,n){super(t),this.revogrid=t,this.filterCollection={},this.possibleFilters=Object.assign({},tn),this.possibleFilterNames=Object.assign({},Ye),this.possibleFilterEntities=Object.assign({},Qe),n&&this.initConfig(n),this.addEventListener("headerclick",(t=>this.headerclick(t))),this.addEventListener("aftersourceset",(()=>{Object.keys(this.filterCollection).length&&this.filterByProps(this.filterCollection)})),this.revogrid.registerVNode([e("revogr-filter-panel",{uuid:`filter-${r}`,filterNames:this.possibleFilterNames,filterEntities:this.possibleFilterEntities,onFilterChange:t=>this.onFilterChange(t.detail),ref:t=>this.pop=t})])}initConfig(t){if(t.collection&&(this.filterCollection=Object.assign({},t.collection)),t.customFilters)for(let r in t.customFilters){const e=t.customFilters[r];this.possibleFilters[e.columnFilterType]||(this.possibleFilters[e.columnFilterType]=[]),this.possibleFilters[e.columnFilterType].push(r),this.possibleFilterEntities[r]=e.func,this.possibleFilterNames[r]=e.name}if(t.include){const r={};for(let e in this.possibleFilters){const n=this.possibleFilters[e].filter((r=>t.include.indexOf(r)>-1));n.length&&(r[e]=n)}Object.keys(r).length>0&&(this.possibleFilters=r)}}async headerclick(t){var r;const e=null===(r=t.detail.originalEvent)||void 0===r?void 0:r.target;if(!u(e))return;t.preventDefault();const n=await this.pop.getChanges();if(n&&(null==n?void 0:n.prop)===t.detail.prop)return void this.pop.show();const i=this.revogrid.getBoundingClientRect(),o=e.getBoundingClientRect(),s=t.detail.prop;this.pop.filterTypes=this.getColumnFilter(t.detail.filter),this.pop.show(Object.assign(Object.assign({},this.filterCollection[s]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:s}))}getColumnFilter(t){let r="string";if(!t)return{[r]:this.possibleFilters[r]};if(this.isValidType(t))r=t;else if("object"==typeof t&&t.length)return t.reduce(((t,r)=>(this.isValidType(r)&&(t[r]=this.possibleFilters[r]),t)),{});return{[r]:this.possibleFilters[r]}}isValidType(t){return!("string"!=typeof t||!this.possibleFilters[t])}async onFilterChange(t){this.filterByProps({[t.prop]:t})}async filterByProps(t,r=!1){r&&(this.filterCollection={});for(const r in t){const{type:e,value:n}=t[r];"none"===e?delete this.filterCollection[r]:this.filterCollection[r]={filter:this.possibleFilterEntities[e],value:n,type:e}}await this.runFiltering()}async doFiltering(t,r,e){const n=[];e.forEach((r=>{const e=Object.assign({},r),i=t[e.prop];e[a]&&!i&&(delete e[a],n.push(e)),!e[a]&&i&&(n.push(e),e[a]=!0)}));const i=this.getRowFilter(r,t),{defaultPrevented:o,detail:s}=this.emit("beforefiltertrimmed",{collection:t,itemsToFilter:i,source:r});o||(await this.revogrid.addTrimmed(s.itemsToFilter,"filter")).defaultPrevented||(await this.revogrid.updateColumns(n),this.emit("afterFilterApply"))}async clearFiltering(){this.filterCollection={},await this.runFiltering()}async runFiltering(){const{source:t,columns:r}=await this.getData(),{defaultPrevented:e,detail:n}=this.emit("beforefilterapply",{collection:this.filterCollection,source:t,columns:r});e||this.doFiltering(n.collection,n.source,n.columns)}async getData(){return{source:await this.revogrid.getSource(),columns:await this.revogrid.getColumns()}}getRowFilter(t,r){const e={};return t.forEach(((t,n)=>{for(const i in r){const o=r[i];(0,o.filter)(t[i],o.value)||(e[n]=!0)}})),e}}var en=function(t){return"string"==typeof t||!D(t)&&O(t)&&"[object String]"==z(t)},nn=Fr("length"),on=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),sn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",un="\\ud83c[\\udffb-\\udfff]",an="[^\\ud800-\\udfff]",cn="(?:\\ud83c[\\udde6-\\uddff]){2}",ln="[\\ud800-\\udbff][\\udc00-\\udfff]",hn="(?:"+sn+"|"+un+")?",fn="[\\ufe0e\\ufe0f]?"+hn+"(?:\\u200d(?:"+[an,cn,ln].join("|")+")[\\ufe0e\\ufe0f]?"+hn+")*",dn="(?:"+[an+sn+"?",sn,cn,ln,"[\\ud800-\\udfff]"].join("|")+")",vn=RegExp(un+"(?="+un+")|"+dn+fn,"g"),gn=function(t){return function(t){return on.test(t)}(t)?function(t){for(var r=vn.lastIndex=0;vn.test(t);)++r;return r}(t):nn(t)},pn=function(t){if(null==t)return 0;if(rt(t))return en(t)?gn(t):t.length;var r=er(t);return"[object Map]"==r||"[object Set]"==r?t.size:Y(t).length};class Cn extends ve{constructor(t){super(t),this.revogrid=t,this.sorting=null,this.sortingFunc=null,this.addEventListener("beforesourceset",(({detail:t})=>{if(this.hasSorting&&this.emit("beforesourcesortingapply").defaultPrevented)return;const r=this.setData(t.source,t.type);r&&(t.source=r)})),this.addEventListener("aftercolumnsset",(async({detail:{order:t}})=>{const r=await this.revogrid.getColumns(),e={};for(let n in t){const i=pe.getColumnByProp(r,n),o=(null==i?void 0:i.cellCompare)||this.defaultCellCompare;e[n]="desc"==t[n]?this.descCellCompare(o):o}this.sort(t,e)})),this.addEventListener("initialHeaderClick",(async t=>{var r,e;t.defaultPrevented||t.detail.column.sortable&&this.headerclick(t.detail.column,t.detail.index,null===(e=null===(r=t.detail)||void 0===r?void 0:r.originalEvent)||void 0===e?void 0:e.shiftKey)}))}get hasSorting(){return!!this.sorting}async headerclick(t,r,e){let n=this.getNextOrder(t.order);const i=this.emit("beforesorting",{column:t,order:n,additive:e});if(i.defaultPrevented)return;n=i.detail.order;const o=await this.revogrid.updateColumnSorting(i.detail.column,r,n,e),s=this.emit("beforesortingapply",{column:o,order:n,additive:e});if(s.defaultPrevented)return;n=s.detail.order;const u=(null==t?void 0:t.cellCompare)||this.defaultCellCompare,a="asc"==n?u:"desc"==n?this.descCellCompare(u):void 0;if(e&&this.sorting){const r={},e={};Object.assign(r,this.sorting),Object.assign(e,this.sortingFunc),t.prop in r&&pn(r)>1&&void 0===n?(delete r[t.prop],delete e[t.prop]):(r[t.prop]=n,e[t.prop]=a),this.sort(r,e)}else this.sort({[t.prop]:n},{[t.prop]:a})}setData(t,r){if("rgRow"===r&&this.sortingFunc)return this.sortItems(t,this.sortingFunc)}async sort(t,r){if(!pn(t))return this.sorting=null,void(this.sortingFunc=null);this.sorting=t,this.sortingFunc=r;const e=await this.revogrid.getSourceStore(),n=e.get("source"),i=this.sortIndexByItems([...e.get("proxyItems")],n,this.sortingFunc);ie(e,{proxyItems:i,source:[...n]}),this.emit("afterSortingApply")}defaultCellCompare(t,r,e){var n,i;const o=null===(n=r[t])||void 0===n?void 0:n.toString().toLowerCase(),s=null===(i=e[t])||void 0===i?void 0:i.toString().toLowerCase();return o==s?0:o>s?1:-1}descCellCompare(t){return(r,e,n)=>-1*t(r,e,n)}sortIndexByItems(t,r,e){for(let r in e)if(void 0===e[r])return[...Array(t.length).keys()];return t.sort(((t,n)=>{let i=0;for(let o in e)if(i=(0,e[o])(o,r[t],r[n]),i)break;return i}))}sortItems(t,r){return t.sort(((t,e)=>{let n=0;for(let i in r)if(n=(0,r[i])(i,t,e),n)break;return n}))}getNextOrder(t){switch(t){case void 0:return"asc";case"asc":return"desc";case"desc":return}}}var wn=function(t,r,e,n){var i=t.length;for((e=Gr(e))<0&&(e=-e>i?0:i+e),(n=void 0===n||n>i?i:Gr(n))<0&&(n+=i),n=e>n?0:function(t){return t?(r=Gr(t),e=0,n=4294967295,r==r&&(void 0!==n&&(r=r<=n?r:n),void 0!==e&&(r=r>=e?r:e)),r):0;var r,e,n}(n);e<n;)t[e++]=r;return t};const Ln="grid-uuid";function mn(t,r,{prevExpanded:e,expandedAll:n}){const i=function(t,r){const e=[],n={};return t.forEach(((t,i)=>{const o=JSON.stringify(r(t));n[o]||(n[o]=new Map,e.push({children:n[o],id:o})),n[o].set(i,t)})),e}(t,r),o=[],s={};let u=0,a=0;const c={},l={};return i.forEach((t=>{const r=yn(t.id);if(!r)return;let i=0,h=!!n,f=h;const d=[];r.reduce(((r,l)=>{r.push(l);const v=r.join(",");if(!s[v]){if(f=n||e&&e[v],o.push(function(t,r,e,n,i=!1){return{"__rvgr-name":t,"__rvgr-depth":e,"__rvgr-id":n,"__rvgr-value":r,"__rvgr-expanded":i}}(l,v,i,t.id,f)),i&&!f&&!h){const t=r.slice(0,r.length-1);e&&t.length&&e[t.join(",")]||(c[u]=!0)}u++,s[v]=d}return i++,a=i,r}),[]),t.children.forEach(((t,r)=>{f||h||(c[u]=!0),o.push(t),l[r]=u,d.push(u),u++}))})),{sourceWithGroups:o,depth:a,trimmed:c,oldNewIndexMap:l,childrenByGroup:s}}function bn(t){return t&&void 0!==t["__rvgr-name"]}function xn(t){return t&&void 0!==t["__rvgr-column"]}function yn(t){const r=JSON.parse(t);return void 0===r.push?null:r}function kn(t,r,e){const n=yn(e["__rvgr-id"]);if(!n)return!1;const i=function(t,r){const e=t.length;let n=0;for(;n<e;n++)if(t[n]!==r[n])return n;return n}(t,n);return r["__rvgr-depth"]<i}const En={mime:"text/csv",fileKind:"csv",bom:!0,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""},Sn=String.fromCharCode(13),jn=String.fromCharCode(10),Rn=String.fromCharCode(34),zn=String.fromCharCode(65279),On=new RegExp('"',"g");class Mn{constructor(t={}){this.options=Object.assign(Object.assign({},En),t)}doExport({data:t,headers:r,props:e}){let n=this.options.bom?zn:"";return(null==r?void 0:r.length)>0&&r.forEach((t=>{t.length&&(n+=this.prepareHeader(t,this.options.columnDelimiter),n+=this.options.rowDelimiter)})),t.forEach(((t,r)=>{r>0&&(n+=this.options.rowDelimiter),bn(t)?n+=this.parseCell(function(t){return t&&t["__rvgr-name"]}(t),this.options.columnDelimiter):n+=e.map((r=>this.parseCell(t[r],this.options.columnDelimiter))).join(this.options.columnDelimiter)})),n}prepareHeader(t,r){let e="";return e+=t.map((t=>this.parseCell(t,r,!0))).join(r),e}parseCell(t,r,e=!1){let n=t;return"string"!=typeof t&&(n=JSON.stringify(t)),void 0===n?"":""!==n&&(e||[Sn,Rn,jn,r].some((t=>n.indexOf(t)>=0)))?`"${n.replace(On,'""')}"`:n}}var Fn;!function(t){t.csv="csv"}(Fn||(Fn={}));class _n extends ve{async exportString(t={},r=Fn.csv){const e=await this.beforeexport();return e?this.formatter(r,t).doExport(e):null}async exportBlob(t={},r=Fn.csv){return await this.getBlob(this.formatter(r,t))}async exportFile(t={},r=Fn.csv){const e=this.formatter(r,t),n=await this.getBlob(e),i=window.URL||window.webkitURL,o=document.createElement("a"),{filename:s,fileKind:u}=e.options,a=`${s}.${u}`,c=i.createObjectURL(n);o.style.display="none",o.setAttribute("href",c),o.setAttribute("download",a),this.revogrid.appendChild(o),o.dispatchEvent(new MouseEvent("click")),this.revogrid.removeChild(o),await Ee(120),i.revokeObjectURL(c)}async getBlob(t){const r=`${t.options.mime};charset=${t.options.encoding}`;if("undefined"!=typeof Blob){const e=await this.beforeexport();return e?new Blob([t.doExport(e)],{type:r}):null}return null}async beforeexport(){let t=await this.getData();const r=this.emit("beforeexport",{data:t});return r.defaultPrevented?null:r.detail.data}async getData(){const t=await this.getSource(),r=[],e=[];he.forEach(((t,n)=>{e.push(this.getColPerSource(t).then((t=>r[n]=t)))})),await Promise.all(e);const n={headers:[],props:[]};for(let t of r)t.headers.forEach(((t,r)=>{n.headers[r]||(n.headers[r]=[]),n.headers[r].push(...t)})),n.props.push(...t.props);return Object.assign({data:t},n)}async getColPerSource(t){const r=await this.revogrid.getColumnStore(t),e=r.get("source"),n=r.get("items"),i=r.get("groupingDepth"),o=r.get("groups"),s=[],u=[],a=n.reduce(((t,r,n)=>{const i=e[r].prop;return s.push(e[r].name||""),u.push(i),t[i]=n,t}),{}),c=this.getGroupHeaders(i,o,n,a);return c.push(s),{headers:c,props:u}}getGroupHeaders(t,r,e,n){const i=[],o=(s=new Array(e.length),u="",(l=null==s?0:s.length)?(a&&"number"!=typeof a&&ee(s,u,a)&&(a=0,c=l),wn(s,u,a,c)):[]);var s,u,a,c,l;for(let e=0;e<t;e++){const t=[...o];(i.push(t),r[e])&&r[e].forEach((r=>{const e=this.findGroupStartIndex(r.ids,n);"number"==typeof e&&(t[e]=r.name)}))}return i}findGroupStartIndex(t,r){let e;return t.forEach((t=>{const n=r[t];"number"==typeof n&&("number"!=typeof e||e>n)&&(e=n)})),e}async getSource(){const t=[],r=[];return le.forEach((e=>{const n=[];t.push(n);const i=this.revogrid.getVisibleSource(e).then((t=>n.push(...t)));r.push(i)})),await Promise.all(r),t.reduce(((t,r)=>(t.push(...r),t)),[])}formatter(t,r={}){switch(t){case Fn.csv:return new Mn(r);default:throw new Error("Unknown format")}}}class Tn extends ve{constructor(t,r){super(t),this.revogrid=t,this.providers=r}get hasProps(){var t,r,e;return(null===(t=this.options)||void 0===t?void 0:t.props)&&(null===(e=null===(r=this.options)||void 0===r?void 0:r.props)||void 0===e?void 0:e.length)}get store(){return this.providers.dataProvider.stores.rgRow.store}get rowItems(){return this.store.get("items")}get trimmed(){return this.store.get("trimmed")}onFocus(t){bn(t.detail.model)&&t.preventDefault()}onExpand({virtualIndex:t}){const{source:r}=this.getSource();let e=this.trimmed.grouping,n=function(t,r){return t.get("items")[r]}(this.store,t);if(r[n]["__rvgr-expanded"]){const{trimmed:t}=function(t,r){const e=r[t],n=e["__rvgr-id"],i={};let o=t+1;const s=r.length;for(;o<s;){const t=r[o];if(bn(t)){if(n!==t["__rvgr-id"])break;t["__rvgr-expanded"]=!1}i[o++]=!0}return e["__rvgr-expanded"]=!1,{trimmed:i}}(n,r);e=Object.assign(Object.assign({},e),t),this.revogrid.clearFocus()}else{const{trimmed:n,items:i}=function(t,r,e){const n=e[t],i=r[n],o=yn(i["__rvgr-id"]),s={};if(!o)return{trimmed:s};const u=[];i["__rvgr-expanded"]=!0;let a=n+1;const c=r.length;let l=0;for(;a<c;){const t=r[a],e=bn(t);if(e){if(!kn(o,i,t))break;l||(l=t["__rvgr-depth"])}(!l||e&&l===t["__rvgr-depth"])&&(s[a]=!1,u.push(a)),a++}const h={trimmed:s};if(u.length){const r=[...e];r.splice(t+1,0,...u),h.items=r}return h}(t,r,this.rowItems);e=Object.assign(Object.assign({},e),n),i&&ce(this.store,i)}this.store.set("source",r),this.revogrid.addTrimmed(e,"grouping")}getSource(t=!1){const r=this.store.get("source"),e=this.store.get("proxyItems");let n=0;return e.reduce(((e,i)=>{const o=r[i];return t?(bn(o)?o["__rvgr-expanded"]&&(e.prevExpanded[o["__rvgr-value"]]=!0):(e.source.push(o),e.oldNewIndexes[i]=n,n++),e):(e.source.push(o),e)}),{source:[],prevExpanded:{},oldNewIndexes:{}})}setColumnGrouping(t){return!!(null==t?void 0:t.length)&&(t[0]["__rvgr-column"]=!0,!0)}setColumns({columns:t}){for(let r of he)if(this.setColumnGrouping(t[r]))break}onDrag(t){const{from:r,to:e}=t.detail,n=e-r>=0,{source:i}=this.getSource(),o=this.rowItems;let s=n?r:e;const u=n?e:r;for(;s<u;s++)if(bn(i[o[s]]))return void t.preventDefault()}beforeTrimmedApply(t,r){if("filter"===r){const r=this.store.get("source");for(let e in t)t[e]&&bn(r[e])&&(t[e]=!1)}}subscribe(){this.addEventListener("beforesourceset",(({detail:t})=>this.onDataSet(t))),this.addEventListener("beforecolumnsset",(({detail:t})=>this.setColumns(t))),this.addEventListener("beforetrimmed",(({detail:{trimmed:t,trimmedType:r}})=>this.beforeTrimmedApply(t,r))),this.addEventListener("afterSortingApply",(()=>this.doSourceUpdate())),this.addEventListener("beforecellfocus",(t=>this.onFocus(t))),this.addEventListener("roworderchanged",(t=>this.onDrag(t))),this.addEventListener("groupExpandClick",(({detail:t})=>this.onExpand(t)))}doSourceUpdate(t){if(!this.hasProps)return;const{source:r,prevExpanded:e,oldNewIndexes:n}=this.getSource(!0),{sourceWithGroups:i,depth:o,trimmed:s,oldNewIndexMap:u,childrenByGroup:a}=mn(r,(t=>{var r;return null===(r=this.options)||void 0===r?void 0:r.props.map((r=>t[r]))}),Object.assign({prevExpanded:e},t));this.providers.dataProvider.setData(i,"rgRow",{depth:o},!0),this.updateTrimmed(s,a,n,u)}onDataSet(t){if(!this.hasProps||!(null==t?void 0:t.source)||!t.source.length)return;const r=t.source.filter((t=>!bn(t))),e=this.revogrid.grouping||{},{sourceWithGroups:n,depth:i,trimmed:o,oldNewIndexMap:s,childrenByGroup:u}=mn(r,(t=>{var r;return null===(r=this.options)||void 0===r?void 0:r.props.map((r=>t[r]))}),Object.assign({},e||{}));t.source=n,this.providers.dataProvider.setGrouping({depth:i}),this.updateTrimmed(o,u,s)}setGrouping(t){if(this.clearSubscriptions(),this.options=t,!t.props||!Object.keys(t.props).length)return void this.clearGrouping();const{source:r}=this.getSource();r.length&&this.doSourceUpdate(Object.assign({},t));for(let t of he)if(this.setColumnGrouping(this.providers.columnProvider.getColumns(t))){this.providers.columnProvider.refreshByType(t);break}this.subscribe()}clearGrouping(){he.forEach((t=>{const r=this.providers.columnProvider.getColumns(t);let e=!1;r.forEach((t=>{xn(t)&&(delete t["__rvgr-column"],e=!0)})),e&&this.providers.columnProvider.refreshByType(t)}));const{source:t,oldNewIndexes:r}=this.getSource(!0);this.providers.dataProvider.setData(t,"rgRow",void 0,!0),this.updateTrimmed(void 0,void 0,r)}updateTrimmed(t={},r={},e,n){const i=function(t,r,e){const n={};for(let i in t){if("grouping"===i)continue;const o=t[i],s={};for(let t in o){let u=r[t];e&&(u=e[u]),o[t]&&(s[u]=!0,u!==parseInt(t,10)&&(n[i]=s))}}return n}(this.trimmed,e,n);for(let t in i)this.revogrid.addTrimmed(i[t],t);this.revogrid.addTrimmed(Object.assign({},t),"grouping")}}class An{constructor(){this.parentY=0}start(t,{pos:r,text:e,event:n}){var i;const{top:o}=t.getBoundingClientRect();this.parentY=o,this.text&&(this.text.innerText=e),this.move(r),this.moveTip({x:n.x,y:n.y}),null===(i=this.el)||void 0===i||i.classList.remove("hidden")}end(){var t;null===(t=this.el)||void 0===t||t.classList.add("hidden")}move(t){this.moveElement(t.end-this.parentY)}moveTip({x:t,y:r}){this.draggable&&(this.draggable.style.left=`${t}px`,this.draggable.style.top=`${r}px`)}moveElement(t){this.rgRow&&(this.rgRow.style.transform=`translateY(${t}px)`)}}const Dn=({ref:t})=>{const r=new An;return t(r),e("div",{class:"draggable-wrapper hidden",ref:t=>r.el=t},e("div",{class:"draggable",ref:t=>r.draggable=t},e("span",{class:"revo-alt-icon"}),e("span",{ref:t=>r.text=t})),e("div",{class:"drag-position",ref:t=>r.rgRow=t}))},Pn=({viewports:t,dimensions:r,orderRef:n,nakedClick:i,registerElement:o,onScroll:s},u)=>{let a;return[e("div",{class:"main-viewport",ref:t=>a=t,onClick:t=>((t,r)=>{r===t.target&&i(t)})(t,a)},e("div",{class:"viewports"},u,e("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:t.rgRow.store,dimensionStore:r.rgRow.store,ref:t=>o(t,"rowScroll"),onScrollVirtual:t=>s(t.detail)}),e(Dn,{ref:n}))),e("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:t.rgCol.store,dimensionStore:r.rgCol.store,ref:t=>o(t,"colScroll"),onScrollVirtual:t=>s(t.detail)})]};function In(t){return t===Zn}function $n(t,r){const e=Object.assign({},t);let n=["x","y"];for(let r of n)t[r]<0&&(e[r]=0);for(let i of n)t[i]>=r[i]&&(e[i]=r[i]-1);return e}function Un(t,r){return t&&r?{x:Math.min(t.x,r.x),y:Math.min(t.y,r.y),x1:Math.max(t.x,r.x),y1:Math.max(t.y,r.y)}:null}class Hn{constructor(){this.unsubscribe=[],this.store=Qr({range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}),this.store.on("set",((t,r)=>{"tempRange"!==t||r||this.store.set("tempRangeType",null)}))}onChange(t,r){this.unsubscribe.push(this.store.onChange(t,r))}clearFocus(){ie(this.store,{focus:null,range:null,edit:null,tempRange:null})}setFocus(t,r){ie(this.store,{focus:t,range:Un(t,r),edit:null,tempRange:null})}setTempArea(t){ie(this.store,{tempRange:null==t?void 0:t.area,tempRangeType:null==t?void 0:t.type,edit:null})}clearTemp(){ie(this.store,{tempRange:null})}setRangeArea(t){ie(this.store,{range:t,edit:null,tempRange:null})}setRange(t,r){this.setRangeArea(Un(t,r))}setLastCell(t){ie(this.store,{lastCell:t})}setEdit(t){const r=this.store.get("focus");ie(this.store,r&&"string"==typeof t?{edit:{x:r.x,y:r.y,val:t}}:{edit:null})}dispose(){this.unsubscribe.forEach((t=>t())),this.store.dispose()}}const Zn=-1;class Bn{constructor(){this.dirty=!1,this.stores={},this.columnStores={},this.rowStores={},this.sections=[]}get focusedStore(){var t;for(let r in this.stores)for(let e in this.stores[r]){const n=null===(t=this.stores[r][e])||void 0===t?void 0:t.store.get("focus");if(n)return{entity:this.stores[r][e],cell:n,position:{x:parseInt(e,10),y:parseInt(r,10)}}}return null}get edit(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("edit")}get focused(){var t;return null===(t=this.focusedStore)||void 0===t?void 0:t.entity.store.get("focus")}registerSection(t){if(!t)return this.sections.length=0,void(this.dirty=!0);-1===this.sections.indexOf(t)&&this.sections.push(t)}beforeUpdate(){if(this.dirty){for(let t in this.stores)for(let r in this.stores[t])this.stores[t][r].dispose();this.dirty=!1}}registerColumn(t){return In(t)?new Hn:(this.columnStores[t]||(this.columnStores[t]=new Hn),this.columnStores[t])}registerRow(t){return In(t)?new Hn:(this.rowStores[t]||(this.rowStores[t]=new Hn),this.rowStores[t])}register({x:t,y:r}){var e,n;return In(t)||In(r)?new Hn:(this.stores[r]||(this.stores[r]={}),this.stores[r][t]||(this.stores[r][t]=new Hn,null===(e=this.stores[r][t])||void 0===e||e.onChange("range",(e=>{this.columnStores[t].setRangeArea(e),this.rowStores[r].setRangeArea(e)})),null===(n=this.stores[r][t])||void 0===n||n.store.on("dispose",(()=>{var e,n;null===(e=this.columnStores[t])||void 0===e||e.dispose(),null===(n=this.rowStores[r])||void 0===n||n.dispose(),delete this.rowStores[r],delete this.columnStores[t],this.stores[r]&&delete this.stores[r][t],Object.keys(this.stores[r]||{}).length||delete this.stores[r]}))),this.stores[r][t])}setEditByCell(t,r){this.focusByCell(t,r,r),this.setEdit("")}focusByCell(t,r,e){this.focus(this.stores[t.y][t.x],{focus:r,end:e})}focus(t,{focus:r,end:e}){let n;for(let r in this.stores)for(let e in this.stores[r]){const i=this.stores[r][e];i!==t?i.clearFocus():n={x:parseInt(e,10),y:parseInt(r,10)}}if(!n)return;const i=t.store.get("lastCell"),o=function(t,r){const e={};let n=["x","y"];for(let r of n)if(t[r]<0)return e[r]=t[r],e;for(let i of n)if(t[i]>=r[i])return e[i]=t[i]-r[i],e;return null}(r,i);let s;if(o)for(let t in o){let r,e=t;switch(e){case"x":r=this.getXStores(n.y);break;case"y":r=this.getYStores(n.x)}if(o[e]>=0)s=r[++n[e]];else{s=r[--n[e]];const t=null==s?void 0:s.store.get("lastCell");t&&(o[e]=t[e]+o[e])}}if(s){let t=Object.assign(Object.assign({},r),o);this.focus(s,{focus:t,end:t})}else r=$n(r,i),e=$n(e,i),t.setFocus(r,e)}clearAll(){var t;for(let r in this.stores)for(let e in this.stores[r])null===(t=this.stores[r][e])||void 0===t||t.clearFocus()}setEdit(t){this.focusedStore&&this.focusedStore.entity.setEdit(t)}getXStores(t){return this.stores[t]}getYStores(t){const r={};for(let e in this.stores)r[e]=this.stores[e][t];return r}}function Nn(t,r){return{x:t.viewports[t.colType].store.get("realCount"),y:t.viewports[r].store.get("realCount")}}class Wn{constructor(t,r){var e,n;this.sv=t,this.storesByType={},this.storesXToType={},this.storesYToType={},null===(e=this.sv.selectionStoreConnector)||void 0===e||e.beforeUpdate(),this.columns=this.getViewportColumnData(r),null===(n=this.sv.scrollingService)||void 0===n||n.unregister()}onColumnResize(t,r,e){var n;null===(n=this.sv.dimensionProvider)||void 0===n||n.setDimensionSize(t,r.detail);const i=Me.reduce(r.detail||{},((t,r,n)=>{const i=ue(e,parseInt(n,10));return i&&(t[i.prop]=Object.assign(Object.assign({},i),{size:r})),t}),{});this.sv.resize(i)}getViewportColumnData(t){const r=[];let e=0;return he.forEach((n=>{const i=this.sv.columnProvider.stores[n].store;if(!i.get("items").length)return;const o={colType:n,position:{x:e,y:1},contentHeight:t,fixWidth:"rgCol"!==n,uuid:`${this.sv.uuid}-${e}`,viewports:this.sv.viewportProvider.stores,dimensions:this.sv.dimensionProvider.stores,rowStores:this.sv.dataProvider.stores,colStore:i,onHeaderresize:t=>this.onColumnResize(n,t,i)};"rgCol"===n&&(o.onResizeViewport=t=>{var r;return null===(r=this.sv.viewportProvider)||void 0===r?void 0:r.setViewport(t.detail.dimension,{virtualSize:t.detail.size})});const s=this.gatherColumnData(o),u=this.registerCol(s.position.x,n),a=this.dataViewPort(o).reduce(((t,r)=>{const e=this.registerSegment(r.position);e.setLastCell(r.lastCell);const n=this.registerRow(r.position.y,r.type),i=Object.assign(Object.assign({},r),{rowSelectionStore:n,segmentSelectionStore:e.store,ref:t=>this.sv.selectionStoreConnector.registerSection(t),onSetRange:t=>e.setRangeArea(t.detail),onSetTempRange:t=>e.setTempArea(t.detail),onFocusCell:t=>{e.clearFocus(),this.sv.selectionStoreConnector.focus(e,t.detail)}});return t.push(i),t}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:a})),e++})),r}registerSegment(t){return this.sv.selectionStoreConnector.register(t)}registerRow(t,r){return this.storesByType[r]=t,this.storesYToType[t]=r,this.sv.selectionStoreConnector.registerRow(t).store}registerCol(t,r){return this.storesByType[r]=t,this.storesXToType[t]=r,this.sv.selectionStoreConnector.registerColumn(t).store}gatherColumnData(t){const r=t.uuid,e=t.dimensions[t.colType].store.get("realSize"),n={contentWidth:e,class:t.colType,[`${Ln}`]:t.uuid,contentHeight:t.contentHeight,key:t.colType,onResizeViewport:t.onResizeViewport};t.fixWidth&&(n.style={minWidth:`${e}px`});const i={parent:r,colData:se(t.colStore),dimensionCol:t.dimensions[t.colType].store,groups:t.colStore.get("groups"),groupingDepth:t.colStore.get("groupingDepth"),onHeaderresize:t.onHeaderresize};return{prop:n,position:t.position,headerProp:i,parent:r,viewportCol:t.viewports[t.colType].store}}dataViewPort(t){const r={rowPinStart:"header",rgRow:"content",rowPinEnd:"footer"};let e=0;return le.reduce(((n,i)=>{const o=t.viewports[i].store.get("realCount")||"rgRow"===i,s=Object.assign(Object.assign({},t),{position:Object.assign(Object.assign({},t.position),{y:o?e:Zn})});return n.push(this.dataPartition(s,i,r[i],"rgRow"!==i)),o&&e++,n}),[])}dataPartition(t,r,e,n){return{colData:t.colStore,viewportCol:t.viewports[t.colType].store,viewportRow:t.viewports[r].store,lastCell:Nn(t,r),slot:e,type:r,canDrag:!n,position:t.position,uuid:`${t.uuid}-${t.position.x}-${t.position.y}`,dataStore:t.rowStores[r].store,dimensionCol:t.dimensions[t.colType].store,dimensionRow:t.dimensions[r].store,style:n?{height:`${t.dimensions[r].store.get("realSize")}px`}:void 0}}scrollToCell(t){for(let r in t)this.sv.scrollingService.onScroll({dimension:"x"===r?"rgCol":"rgRow",coordinate:t[r]})}clearFocused(){this.sv.selectionStoreConnector.clearAll()}clearEdit(){this.sv.selectionStoreConnector.setEdit(!1)}getFocused(){const t=this.sv.selectionStoreConnector.focusedStore;if(!t)return null;const r=this.storesXToType[t.position.x],e=this.sv.columnProvider.getColumn(t.cell.x,r),n=this.storesYToType[t.position.x];return{column:e,model:this.sv.dataProvider.getModel(t.cell.x,n),cell:t.cell,colType:r,rowType:n}}getStoreCoordinateByType(t,r){const e=this.storesByType;return{x:e[t],y:e[r]}}setFocus(t,r,e,n){var i;null===(i=this.sv.selectionStoreConnector)||void 0===i||i.focusByCell(this.getStoreCoordinateByType(t,r),e,n)}setEdit(t,r,e,n){var i;null===(i=this.sv.selectionStoreConnector)||void 0===i||i.setEditByCell(this.getStoreCoordinateByType(e,n),{x:r,y:t})}}const Vn=({resize:t,editors:r,rowClass:n,readonly:i,range:o,columns:s,useClipboard:u,columnFilter:a,registerElement:c,onEdit:l,onScroll:h})=>{const f=[];for(let d of s){const s=[e("revogr-header",Object.assign({viewportCol:d.viewportCol},d.headerProp,{selectionStore:d.columnSelectionStore,slot:"header",columnFilter:a,canResize:t}))];d.dataPorts.forEach(((t,a)=>{const c=d.prop.key+(a+1),h=e("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:i,range:o,useClipboard:u,onSetEdit:({detail:t})=>l(t)}),e("revogr-data",Object.assign({},t,{[Ln]:t.uuid},{key:c,readonly:i,range:o,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:"data"})),e("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),e("revogr-focus",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(h)})),f.push(e("revogr-viewport-scroll",Object.assign({},d.prop,{ref:t=>c(t,d.prop.key),onScrollViewport:t=>h(t.detail,d.prop.key)}),s))}return f};class Gn{constructor(t){this.setViewport=t,this.elements={}}async onScroll(t,r){let e;for(let n in this.elements)if(this.isPinnedColumn(r)&&"rgCol"===t.dimension){if(n===r||!t.delta)continue;for(let r of this.elements[n])r.changeScroll&&(e=r.changeScroll(t))}else{if("rgCol"===t.dimension&&"headerRow"===n)continue;for(let r of this.elements[n])r.setScroll(t)}let n=t;e&&(n=await e),this.setViewport(n)}isPinnedColumn(t){return["colPinStart","colPinEnd"].indexOf(t)>-1}registerElements(t){this.elements=t}registerElement(t,r){this.elements[r]||(this.elements[r]=[]),t?this.elements[r].push(t):this.elements[r]&&delete this.elements[r]}unregister(){delete this.elements,this.elements={}}}const qn=(t,r)=>(null==r?void 0:r.size)||10*(t.toString().length+1);class Kn extends ve{constructor(t,r){super(t),this.providers=r,this.stretchedColumn=null,this.scrollSize=ye(document),this.addEventListener("beforecolumnapplied",(({detail:{columns:t}})=>this.applyStretch(t)))}setScroll({type:t,hasScroll:r}){var e;"rgRow"===t&&this.stretchedColumn&&(null===(e=this.stretchedColumn)||void 0===e?void 0:e.initialSize)===this.stretchedColumn.size&&r&&(this.stretchedColumn.size-=this.scrollSize,this.apply(),this.dropChanges())}activateChanges(){this.addEventListener("scrollchange",(({detail:t})=>this.setScroll(t)))}dropChanges(){this.stretchedColumn=null,this.removeEventListener("scrollchange")}apply(){this.stretchedColumn&&this.providers.dimensionProvider.setDimensionSize("rgCol",{[this.stretchedColumn.index]:this.stretchedColumn.size})}applyStretch(t){this.dropChanges();let r=this.revogrid.clientWidth-1;if(Me.each(t,((t,e)=>{const n=this.providers.dimensionProvider.stores[e].store.get("realSize");r-=n})),this.revogrid.rowHeaders){const t=this.providers.dataProvider.stores.rgRow.store.get("source").length,e=this.revogrid.rowHeaders,n=qn(t,"object"==typeof e?e:void 0);n&&(r-=n)}if(r>0){const e=t.rgCol.length-1,n=t.rgCol[e],i=(null==n?void 0:n.size)||this.revogrid.colSize||0,o=r+i-1;n&&!n.autoSize&&i<o&&(this.stretchedColumn={initialSize:o,index:e,size:o},this.apply(),this.activateChanges())}}}function Xn(t){return!!t.applyStretch}const Jn=class{constructor(t){n(this,t),this.contentsizechanged=i(this,"contentsizechanged",7),this.beforeedit=i(this,"beforeedit",7),this.beforerangeedit=i(this,"beforerangeedit",7),this.afteredit=i(this,"afteredit",7),this.beforeautofill=i(this,"beforeautofill",7),this.beforeaange=i(this,"beforeaange",7),this.roworderchanged=i(this,"roworderchanged",7),this.beforesourcesortingapply=i(this,"beforesourcesortingapply",7),this.beforesortingapply=i(this,"beforesortingapply",7),this.beforesorting=i(this,"beforesorting",7),this.rowdragstart=i(this,"rowdragstart",7),this.headerclick=i(this,"headerclick",7),this.beforecellfocus=i(this,"beforecellfocus",7),this.beforefocuslost=i(this,"beforefocuslost",7),this.beforesourceset=i(this,"beforesourceset",7),this.aftersourceset=i(this,"aftersourceset",7),this.beforecolumnsset=i(this,"beforecolumnsset",7),this.beforecolumnapplied=i(this,"beforecolumnapplied",7),this.aftercolumnsset=i(this,"aftercolumnsset",7),this.beforefilterapply=i(this,"beforefilterapply",7),this.beforefiltertrimmed=i(this,"beforefiltertrimmed",7),this.beforetrimmed=i(this,"beforetrimmed",7),this.aftertrimmed=i(this,"aftertrimmed",7),this.viewportscroll=i(this,"viewportscroll",7),this.beforeexport=i(this,"beforeexport",7),this.beforeeditstart=i(this,"beforeeditstart",7),this.aftercolumnresize=i(this,"aftercolumnresize",7),this.frameSize=1,this.rowSize=0,this.colSize=100,this.range=!1,this.readonly=!1,this.resize=!1,this.canFocus=!0,this.useClipboard=!0,this.columns=[],this.source=[],this.pinnedTopSource=[],this.pinnedBottomSource=[],this.rowDefinitions=[],this.editors={},this.columnTypes={},this.theme="default",this.rowClass="",this.autoSizeColumn=!1,this.filter=!1,this.trimmedRows={},this.exporting=!1,this.stretch=!1,this.extraElements=[],this.uuid=null,this.viewport=null,this.internalPlugins=[],this.subscribers={}}async refresh(t="all"){this.dataProvider.refresh(t)}async scrollToRow(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgRow"});await this.scrollToCoordinate({y:r})}async scrollToColumnIndex(t=0){const r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});await this.scrollToCoordinate({x:r})}async scrollToColumnProp(t){const r=this.columnProvider.getColumnIndexByProp(t,"rgCol");if(r<0)return;const e=this.dimensionProvider.getViewPortPos({coordinate:r,dimension:"rgCol"});await this.scrollToCoordinate({x:e})}async updateColumns(t){this.columnProvider.updateColumns(t)}async addTrimmed(t,r="external",e="rgRow"){const n=this.beforetrimmed.emit({trimmed:t,trimmedType:r,type:e});return n.defaultPrevented||(this.dataProvider.setTrimmed({[r]:n.detail.trimmed},e),this.aftertrimmed.emit()),n}async scrollToCoordinate(t){var r;null===(r=this.viewport)||void 0===r||r.scrollToCell(t)}async setCellEdit(t,r,e="rgRow"){var n;const i=pe.getColumnByProp(this.columns,r);i&&(await Ee(),null===(n=this.viewport)||void 0===n||n.setEdit(t,this.columnProvider.getColumnIndexByProp(r,"rgCol"),i.pin||"rgCol",e))}async setCellsFocus(t={x:0,y:0},r={x:0,y:0},e="rgCol",n="rgRow"){var i;null===(i=this.viewport)||void 0===i||i.setFocus(e,n,t,r)}async registerVNode(t){this.extraElements.push(...t),this.extraElements=[...this.extraElements]}async getSource(t="rgRow"){return this.dataProvider.stores[t].store.get("source")}async getVisibleSource(t="rgRow"){return se(this.dataProvider.stores[t].store)}async getSourceStore(t="rgRow"){return this.dataProvider.stores[t].store}async getColumnStore(t="rgCol"){return this.columnProvider.stores[t].store}async updateColumnSorting(t,r,e,n){return this.columnProvider.updateColumnSorting(t,r,e,n)}async clearSorting(){this.columnProvider.clearSorting()}async getColumns(){return this.columnProvider.getColumns()}async clearFocus(){var t;const r=await this.getFocused();this.beforefocuslost.emit(r).defaultPrevented||(this.selectionStoreConnector.clearAll(),null===(t=this.viewport)||void 0===t||t.clearFocused())}async getPlugins(){return[...this.internalPlugins]}async getFocused(){var t;return null===(t=this.viewport)||void 0===t?void 0:t.getFocused()}async getContentSize(){var t;return null===(t=this.dimensionProvider)||void 0===t?void 0:t.getFullSize()}handleOutsideClick(t){const r=t.target;t.defaultPrevented||(null==r?void 0:r.closest(`[${Ln}="${this.uuid}"]`))||this.clearFocus()}onRowDragStarted(t){var r;t.cancelBubble=!0;const e=this.rowdragstart.emit(t.detail);e.defaultPrevented?t.preventDefault():null===(r=this.orderService)||void 0===r||r.start(this.element,Object.assign(Object.assign({},t.detail),e.detail))}onRowDragEnd(){var t;null===(t=this.orderService)||void 0===t||t.end()}onRowDrag({detail:t}){var r;null===(r=this.orderService)||void 0===r||r.move(t)}onRowMouseMove(t){var r;t.cancelBubble=!0,null===(r=this.orderService)||void 0===r||r.moveTip(t.detail)}async onBeforeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r,detail:e}=this.beforeedit.emit(t.detail);await Ee(),r||(this.dataProvider.setCellData(e),this.afteredit.emit(e))}onBeforeRangeEdit(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforerangeedit.emit(t.detail);r?t.preventDefault():this.afteredit.emit(t.detail)}onRangeChanged(t){t.cancelBubble=!0,this.beforeaange.emit(t.detail).defaultPrevented&&t.preventDefault(),this.beforeautofill.emit(t.detail)}onRowDropped(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.roworderchanged.emit(t.detail);r&&t.preventDefault()}onHeaderClick(t){const{defaultPrevented:r}=this.headerclick.emit(Object.assign(Object.assign({},t.detail.column),{originalEvent:t.detail.originalEvent}));r&&t.preventDefault()}onCellFocus(t){t.cancelBubble=!0;const{defaultPrevented:r}=this.beforecellfocus.emit(t.detail);this.canFocus&&!r||t.preventDefault()}columnChanged(t=[]){this.dimensionProvider.drop();const r=pe.getColumns(t,0,this.columnTypes);this.beforecolumnsset.emit(r);for(let t of he){const e=r.columns[t];this.dimensionProvider.setRealSize(e.length,t),this.dimensionProvider.setColumns(t,pe.getSizes(e),"rgCol"!==t)}this.beforecolumnapplied.emit(r);const e=this.columnProvider.setColumns(r);this.aftercolumnsset.emit({columns:e,order:this.columnProvider.order})}themeChanged(t){this.themeService.register(t),this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow"),this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")}dataChanged(t=[]){let r=[...t];r=this.beforesourceset.emit({type:"rgRow",source:r}).detail.source,r=this.dataProvider.setData(r,"rgRow"),this.aftersourceset.emit({type:"rgRow",source:r})}dataBottomChanged(t=[]){this.dataProvider.setData(t,"rowPinEnd")}dataTopChanged(t=[]){this.dataProvider.setData(t,"rowPinStart")}rowDefChanged(t=[]){if(ot(le,(t=>this.dimensionProvider.setDimensionSize(t,{}))),!t.length)return;const r=((t=[])=>Dr(t,((t,r)=>(t[r.type]||(t[r.type]={}),r.size&&(t[r.type].sizes||(t[r.type].sizes={}),t[r.type].sizes[r.index]=r.size),t)),{}))(t);ot(r,((t,r)=>this.dimensionProvider.setDimensionSize(r,t.sizes||{})))}trimmedRowsChanged(t={}){this.addTrimmed(t)}groupingChanged(t={}){let r;for(let t of this.internalPlugins){const e=t;if(e.setGrouping){r=e;break}}r&&r.setGrouping(t||{})}applyStretch(t){let r=this.internalPlugins.filter((t=>Xn(t)))[0];if("boolean"==typeof t&&t||"true"===t)r?Xn(r)&&r.applyStretch(this.columnProvider.getRawColumns()):this.internalPlugins.push(new Kn(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider}));else if(r){const t=this.internalPlugins.indexOf(r);this.internalPlugins.splice(t,1)}}connectedCallback(){this.viewportProvider=new Ue,this.themeService=new v({rowSize:this.rowSize}),this.dimensionProvider=new Fe(this.viewportProvider,{realSizeChanged:()=>this.contentsizechanged.emit()}),this.columnProvider=new pe,this.selectionStoreConnector=new Bn,this.dataProvider=new Ce(this.dimensionProvider),this.uuid=`${(new Date).getTime()}-rvgrid`,this.autoSizeColumn&&this.internalPlugins.push(new He(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},"object"==typeof this.autoSizeColumn?this.autoSizeColumn:void 0)),this.filter&&this.internalPlugins.push(new rn(this.element,this.uuid,"object"==typeof this.filter?this.filter:void 0)),this.exporting&&this.internalPlugins.push(new _n(this.element)),this.internalPlugins.push(new Cn(this.element)),this.internalPlugins.push(new Tn(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider})),this.plugins&&this.plugins.forEach((t=>{this.internalPlugins.push(new t(this.element,{data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector}))})),this.applyStretch(this.stretch),this.themeChanged(this.theme),this.columnChanged(this.columns),this.dataChanged(this.source),this.dataTopChanged(this.pinnedTopSource),this.dataBottomChanged(this.pinnedBottomSource),this.trimmedRowsChanged(this.trimmedRows),this.rowDefChanged(this.rowDefinitions),this.groupingChanged(this.grouping),this.scrollingService=new Gn((t=>{this.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension}),this.viewportscroll.emit(t)})),this.subscribers={click:this.handleOutsideClick.bind(this)};for(let t in this.subscribers)document.addEventListener(t,this.subscribers[t])}disconnectedCallback(){ot(this.internalPlugins,(t=>t.destroy())),this.internalPlugins=[];for(let t in this.subscribers)document.removeEventListener(t,this.subscribers[t]),delete this.subscribers[t]}render(){const t=this.dimensionProvider.stores.rgRow.store.get("realSize");this.viewport=new Wn({columnProvider:this.columnProvider,dataProvider:this.dataProvider,dimensionProvider:this.dimensionProvider,viewportProvider:this.viewportProvider,uuid:this.uuid,scrollingService:this.scrollingService,orderService:this.orderService,selectionStoreConnector:this.selectionStoreConnector,resize:t=>this.aftercolumnresize.emit(t)},t);const r=[];if(this.rowHeaders&&this.viewport.columns.length){const n=this.viewport.columns[0];r.push(e("revogr-row-headers",{height:t,resize:this.resize,dataPorts:n.dataPorts,headerProp:n.headerProp,uiid:n.prop[Ln],rowHeaderColumn:"object"==typeof this.rowHeaders?this.rowHeaders:void 0,onScrollViewport:({detail:t})=>this.scrollingService.onScroll(t,"headerRow"),onElementToScroll:({detail:t})=>this.scrollingService.registerElement(t,"headerRow")}))}return r.push(e(Vn,{columnFilter:!!this.filter,resize:this.resize,readonly:this.readonly,range:this.range,rowClass:this.rowClass,editors:this.editors,useClipboard:this.useClipboard,columns:this.viewport.columns,onEdit:t=>{this.beforeeditstart.emit(t).defaultPrevented||this.selectionStoreConnector.setEdit(!t.isCancel&&t.val)},registerElement:(t,r)=>this.scrollingService.registerElement(t,r),onScroll:t=>this.scrollingService.onScroll(t)})),e(o,Object.assign({},{[`${Ln}`]:this.uuid}),e(Pn,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:t=>this.orderService=t,registerElement:(t,r)=>this.scrollingService.registerElement(t,r),nakedClick:()=>this.viewport.clearEdit(),onScroll:t=>this.scrollingService.onScroll(t)},r),this.extraElements)}get element(){return s(this)}static get watchers(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}}};Jn.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revo-grid[theme=default]{font-size:12px}revo-grid[theme=default] revogr-header{text-align:center;line-height:30px;background-color:#f8f9fa}revo-grid[theme=default] revogr-header .group-rgRow{box-shadow:none}revo-grid[theme=default] revogr-header .header-rgRow,revo-grid[theme=default] revogr-header .group-rgRow{text-transform:uppercase;font-size:12px;color:#61656a}revo-grid[theme=default] revogr-header .header-rgRow{height:30px;box-shadow:0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell{box-shadow:-1px 0 0 0 #c0c0c0, -1px 0 0 0 #c0c0c0 inset, 0 -1px 0 0 #c0c0c0, 0 -1px 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] .rowHeaders{background-color:#f8f9fa}revo-grid[theme=default] .rowHeaders revogr-data .rgCell{color:#61656a;box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] .rowHeaders revogr-header{box-shadow:0 -1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart revogr-data .rgRow .rgCell:last-child{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinStart .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #c0c0c0 inset, -1px 0 0 0 #c0c0c0 inset}revo-grid[theme=default] revogr-viewport-scroll.colPinEnd,revo-grid[theme=default] revogr-viewport-scroll.colPinEnd revogr-header{box-shadow:1px 0 0 #c0c0c0 inset}revo-grid[theme=default] .footer-wrapper revogr-data .rgRow:first-child .rgCell{box-shadow:0 1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset, 0 -1px 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data{text-align:center}revo-grid[theme=default] revogr-data .rgRow{line-height:27px;box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=default] revogr-data .rgCell{box-shadow:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=default] revogr-data .rgCell.disabled{background-color:0 -1px 0 0 #e2e3e3 inset, -1px 0 0 0 #e2e3e3 inset}revo-grid[theme=material]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=material] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=material] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=material] revogr-header .header-rgRow{height:50px}revo-grid[theme=material] revogr-data{text-align:left}revo-grid[theme=material] revogr-data .rgRow{line-height:42px}revo-grid[theme=material] revogr-data .rgCell{padding:0 15px}revo-grid[theme=material] .viewports{width:100%}revo-grid[theme=material] .rowHeaders{background-color:#f7faff}revo-grid[theme=material] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=material] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=material] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=material] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=material] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=material] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=material] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=material] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=material] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=material] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=darkMaterial]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkMaterial] revogr-header{line-height:50px;font-weight:600;text-align:left}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkMaterial] revogr-header .header-rgRow{height:50px}revo-grid[theme=darkMaterial] revogr-data{text-align:left}revo-grid[theme=darkMaterial] revogr-data .rgRow{line-height:42px}revo-grid[theme=darkMaterial] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkMaterial] .viewports{width:100%}revo-grid[theme=darkMaterial] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkMaterial] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkMaterial] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkMaterial] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkMaterial] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkMaterial] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkMaterial] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkMaterial] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=darkCompact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#d8d8d8}revo-grid[theme=darkCompact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=darkCompact] revogr-header .header-rgRow{height:45px}revo-grid[theme=darkCompact] revogr-data{text-align:left}revo-grid[theme=darkCompact] revogr-data .rgRow{line-height:32px}revo-grid[theme=darkCompact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=darkCompact] .viewports{width:100%}revo-grid[theme=darkCompact] .rowHeaders{background-color:rgba(40, 39, 43, 0.8)}revo-grid[theme=darkCompact] .rowHeaders revogr-data .rgCell{color:rgba(216, 216, 216, 0.8)}revo-grid[theme=darkCompact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #404040, 0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.sortable:hover{background-color:rgba(64, 64, 64, 0.5)}revo-grid[theme=darkCompact] revogr-header .rgHeaderCell.focused-cell{background:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #404040}revo-grid[theme=darkCompact] revogr-data .rgCell{color:rgba(216, 216, 216, 0.9)}revo-grid[theme=darkCompact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-data .rgRow.focused-rgRow{background-color:rgba(115, 148, 160, 0.15)}revo-grid[theme=darkCompact] revogr-data .revo-draggable>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.5)}revo-grid[theme=darkCompact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:rgba(216, 216, 216, 0.7)}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #404040 inset}revo-grid[theme=darkCompact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #404040}revo-grid[theme=compact]{font-family:Nunito, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}revo-grid[theme=compact] revogr-header{line-height:45px;font-weight:600;text-align:left}revo-grid[theme=compact] revogr-header .rgHeaderCell{padding:0 15px;text-overflow:ellipsis}revo-grid[theme=compact] revogr-header .header-rgRow{height:45px}revo-grid[theme=compact] revogr-data{text-align:left}revo-grid[theme=compact] revogr-data .rgRow{line-height:32px}revo-grid[theme=compact] revogr-data .rgCell{padding:0 15px}revo-grid[theme=compact] .viewports{width:100%}revo-grid[theme=compact] .rowHeaders{background-color:#f7faff}revo-grid[theme=compact] .rowHeaders revogr-data .rgCell{color:#757a82}revo-grid[theme=compact] revogr-header .header-rgRow.group{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .header-rgRow:not(.group){box-shadow:0 -1px 0 0 #f1f1f1, 0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-header .rgHeaderCell.sortable:hover{background-color:#f1f1f1}revo-grid[theme=compact] revogr-header .rgHeaderCell.focused-cell{background:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] .footer-wrapper revogr-data{box-shadow:0 -1px 0 #f1f1f1}revo-grid[theme=compact] revogr-viewport-scroll.colPinStart{box-shadow:-1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-viewport-scroll.colPinEnd{box-shadow:-1px 0 0 #f1f1f1}revo-grid[theme=compact] revogr-data .rgRow{box-shadow:0 -1px 0 0 #f1f1f1 inset}revo-grid[theme=compact] revogr-data .rgRow.focused-rgRow{background-color:rgba(233, 234, 237, 0.5)}revo-grid[theme=compact] revogr-data .rgCell{color:rgba(0, 0, 0, 0.87)}revo-grid[theme=compact] revogr-data .rgCell.disabled{background-color:#f7f7f7}revo-grid[theme=compact] revogr-data .revo-draggable>.revo-drag-icon{background-color:#d4d4d4}revo-grid[theme=compact] revogr-data .revo-draggable:hover>.revo-drag-icon{background-color:black}revo-grid[theme=compact] revo-dropdown .rv-dr-root{padding:0px 9px}revo-grid{display:block;height:100%;font-family:Helvetica, Arial, Sans-Serif, serif;font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column;width:100%;height:100%}revo-grid .footer-wrapper,revo-grid .header-wrapper{width:100%}revo-grid .footer-wrapper revogr-data,revo-grid .header-wrapper revogr-data{z-index:3}revo-grid revo-dropdown{width:100%}revo-grid revo-dropdown .rv-dr-root{max-height:100%}revo-grid revo-dropdown.shrink label{opacity:0}revo-grid .viewports{max-height:100%;display:flex;flex-direction:row;align-items:flex-start;max-width:100%}revo-grid .main-viewport{flex-grow:1;height:0;display:flex;flex-direction:row}revo-grid .draggable{position:fixed;height:30px;line-height:30px;background:#fff;border-radius:3px;display:block;z-index:100;margin-top:5px;margin-right:-20px;box-shadow:0 4px 20px 0 rgba(0, 0, 0, 0.15);padding-left:20px;padding-right:5px}revo-grid .draggable.hidden{display:none}revo-grid .draggable .revo-alt-icon{background-color:black;position:absolute;left:5px;top:10px}revo-grid .draggable-wrapper.hidden{display:none}revo-grid .drag-position{position:absolute;left:0;right:0;height:1px;z-index:2;background:red}revo-grid .clipboard{position:absolute;left:0;top:0}revo-grid revogr-scroll-virtual{position:relative}revo-grid revogr-scroll-virtual.vertical,revo-grid revogr-scroll-virtual.horizontal{z-index:3}";class Yn{constructor(t,r){this.dataStore=t,this.source=r,this.unsubscribe=[],this.hasGrouping=!1,this.unsubscribe.push(r.onChange("source",(t=>this.checkGrouping(t)))),this.checkGrouping(r.get("source"))}get columns(){return se(this.source)}checkGrouping(t){for(let r of t){if(xn(r))return void(this.hasGrouping=!0);this.hasGrouping=!1}}isReadOnly(t,r){var e;const n=null===(e=this.columns[r])||void 0===e?void 0:e.readonly;return"function"==typeof n?n(this.rowDataModel(t,r)):n}static doMerge(t,r){let e=Object.assign(Object.assign({},r),t);return r.class&&("object"==typeof r.class&&"object"==typeof e.class?e.class=Object.assign(Object.assign({},r.class),e.class):"string"==typeof r.class&&"object"==typeof e.class?e.class[r.class]=!0:"string"==typeof e.class&&(e.class+=" "+r.class)),r.style&&(e.style=Object.assign(Object.assign({},r.style),e.style)),e}mergeProperties(t,r,e){var n;const i={rgCell:!0,disabled:this.isReadOnly(t,r)};let o=Object.assign(Object.assign({},e),{class:i});const s=null===(n=this.columns[r])||void 0===n?void 0:n.cellProperties;if(s){const e=s(this.rowDataModel(t,r));return e?Yn.doMerge(o,e):o}return o}customRenderer(t,r,n,i){var o;const s=null===(o=this.columns[r])||void 0===o?void 0:o.cellTemplate;if(s)return s(e,Object.assign(Object.assign({},n),{providers:i}))}getRowClass(t,r){return(ue(this.dataStore,t)||{})[r]||""}getCellData(t,r){const e=this.rowDataModel(t,r);return Yn.getData(e.model[e.prop])}getSaveData(t,r,e){void 0===e&&(e=this.getCellData(t,r));const n=this.rowDataModel(t,r);return{prop:n.prop,rowIndex:t,val:e,model:n.model,type:this.dataStore.get("type")}}getCellEditor(t,r,e){var n;const i=null===(n=this.columns[r])||void 0===n?void 0:n.editor;if(i)return"string"==typeof i?e[i]:i}rowDataModel(t,r){const e=this.columns[r];return{prop:null==e?void 0:e.prop,model:ue(this.dataStore,t)||{},data:this.dataStore.get("source"),column:e,rowIndex:t}}getRangeData(t){const r={},e=t.oldProps.length,n=this.copyRangeArray(t.oldRange,t.oldProps,this.dataStore),i=n.length;for(let o=t.newRange.y,s=0;o<t.newRange.y1+1;o++,s++){const u=n[s%i];for(let n=t.newRange.x,i=0;n<t.newRange.x1+1;n++,i++){if(o>=t.oldRange.y&&o<=t.oldRange.y1&&n>=t.oldRange.x&&n<=t.oldRange.x1)continue;const s=this.columns[n].prop,a=i%e;this.isReadOnly(o,n)||(r[o]||(r[o]={}),r[o][s]=u[a])}}return r}getTransformedDataToApply(t,r){const e={},n=r.length,i=this.columns.length,o=this.dataStore.get("items").length;let s=t.y,u=0;for(let a=0;s<o&&a<n;s++,a++){const o=r[a%n],c=(null==o?void 0:o.length)||0;let l=t.x;for(let t=0;l<i&&t<c;l++,t++){const r=this.columns[l].prop,n=t%i;this.isReadOnly(s,l)||(e[s]||(e[s]={}),e[s][r]=o[n])}u=Math.max(u,l-1)}return{changed:e,range:Un(t,{y:s-1,x:u})}}applyRangeData(t){const r={};for(let e in t){const n=r[e]=ue(this.dataStore,parseInt(e,10));for(let r in t[e])n[r]=t[e][r]}ae(this.dataStore,r)}getRangeStaticData(t,r){const e={};for(let n=t.y,i=0;n<t.y1+1;n++,i++)for(let i=t.x,o=0;i<t.x1+1;i++,o++){const t=this.columns[i].prop;this.isReadOnly(n,i)||(e[n]||(e[n]={}),e[n][t]=r)}return e}copyRangeArray(t,r,e){const n=[];for(let i=t.y;i<t.y1+1;i++){const t=[];for(let n of r){const r=ue(e,i);t.push(r[n])}n.push(t)}return n}static getData(t){return null==t?"":t.toString()}destroy(){this.unsubscribe.forEach((t=>t()))}}const Qn=({model:t,onDragStart:r})=>{const n=[];return t.column.rowDrag&&function(t,r){return"function"==typeof t?t(r):!!t}(t.column.rowDrag,t)&&n.push(e("span",{class:"revo-draggable",onMouseDown:t=>r(t)},e("span",{class:"revo-drag-icon"}))),n.push(`${Yn.getData(t.model[t.prop])}`),n},ti=({rowClass:t,size:r,start:n,style:i,depth:o},s)=>e("div",{class:`rgRow ${t||""}`,style:Object.assign(Object.assign({},i),{height:`${r}px`,transform:`translateY(${n}px)`,paddingLeft:o?10*o+"px":void 0})},s),ri=t=>{const{model:r,itemIndex:n,hasExpand:i}=t,o=r["__rvgr-name"],s=r["__rvgr-expanded"],u=parseInt(r["__rvgr-depth"],10)||0;return i?e(ti,Object.assign({},t,{rowClass:"groupingRow",depth:u}),e("button",{class:{"group-expand":!0},onClick:t=>function(t,r,e){const n=new CustomEvent("groupExpandClick",{detail:{model:r,virtualIndex:e},cancelable:!0,bubbles:!0});t.target.dispatchEvent(n)}(t,r,n)},e("svg",{"aria-hidden":"true",style:{transform:`rotate(${s?0:-90}deg)`},focusable:"false",viewBox:"0 0 448 512"},e("path",{fill:"currentColor",d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}))),o):e(ti,Object.assign({},t,{rowClass:"groupingRow",depth:u}))},ei=class{constructor(t){n(this,t),this.dragStartCell=i(this,"dragStartCell",7)}onStoreChange(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Yn(this.dataStore,this.colData)}connectedCallback(){this.onStoreChange()}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}render(){var t;const r=this.viewportRow.get("items"),n=this.viewportCol.get("items");if(!this.columnService.columns.length||!r.length||!n.length)return"";const i=null===(t=this.rowSelectionStore)||void 0===t?void 0:t.get("range"),o=[],s=this.dataStore.get("groupingDepth");for(let t of r){const r=ue(this.dataStore,t.itemIndex);if(bn(r)){o.push(e(ri,Object.assign({},t,{model:r,hasExpand:this.columnService.hasGrouping})));continue}const u=[];let a=this.rowClass?this.columnService.getRowClass(t.itemIndex,this.rowClass):"";i&&t.itemIndex>=i.y&&t.itemIndex<=i.y1&&(a+=" focused-rgRow");for(let r of n)u.push(this.getCellRenderer(t,r,this.columnService.hasGrouping?s:0));o.push(e(ti,{rowClass:a,size:t.size,start:t.start},u))}return o}getCellRenderer(t,r,n=0){const i=this.columnService.rowDataModel(t.itemIndex,r.itemIndex),o={"data-rgCol":r.itemIndex,"data-rgRow":t.itemIndex,style:{width:`${r.size}px`,transform:`translateX(${r.start}px)`}};n&&!r.itemIndex&&(o.style.paddingLeft=10*n+"px");const s=this.columnService.mergeProperties(t.itemIndex,r.itemIndex,o),u=this.columnService.customRenderer(t.itemIndex,r.itemIndex,i,this.providers);return void 0!==u?e("div",Object.assign({},s),u):i.column?e("div",Object.assign({},s),e(Qn,{model:i,onDragStart:t=>this.dragStartCell.emit(t)})):void console.error("Investigate column problem")}get providers(){return{viewport:this.viewportCol,dimension:this.dimensionRow,selection:this.rowSelectionStore}}get element(){return s(this)}static get watchers(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}}};var ni,ii;ei.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-data{display:block;width:100%;position:relative}revogr-data .rgRow{position:absolute;width:100%;left:0}revogr-data .rgRow.groupingRow{font-weight:600}revogr-data .rgRow.groupingRow .group-expand{width:25px;height:100%;max-height:25px;margin-right:2px;background-color:transparent;border-color:transparent}revogr-data .rgRow.groupingRow .group-expand svg{width:7px}revogr-data .revo-draggable{border:none;height:32px;display:inline-flex;outline:0;padding:0;font-size:0.8125rem;box-sizing:border-box;align-items:center;white-space:nowrap;vertical-align:middle;justify-content:center;text-decoration:none;width:24px;height:100%;cursor:pointer}revogr-data .revo-draggable>.revo-drag-icon{vertical-align:middle;display:inline-block;pointer-events:none;transition:background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms}revogr-data .rgCell{top:0;position:absolute;box-sizing:border-box;height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}revogr-data .rgCell.align-center{text-align:center}revogr-data .rgCell.align-left{text-align:left}revogr-data .rgCell.align-right{text-align:right}",function(t){t[t.MOUSE_LEFT=1]="MOUSE_LEFT",t[t.MOUSE_RIGHT=3]="MOUSE_RIGHT",t[t.MOUSE_MIDDLE=2]="MOUSE_MIDDLE",t[t.BACKSPACE=8]="BACKSPACE",t[t.COMMA=188]="COMMA",t[t.INSERT=45]="INSERT",t[t.DELETE=46]="DELETE",t[t.END=35]="END",t[t.ENTER=13]="ENTER",t[t.ESCAPE=27]="ESCAPE",t[t.CONTROL=17]="CONTROL",t[t.COMMAND_LEFT=91]="COMMAND_LEFT",t[t.COMMAND_RIGHT=93]="COMMAND_RIGHT",t[t.COMMAND_FIREFOX=224]="COMMAND_FIREFOX",t[t.ALT=18]="ALT",t[t.HOME=36]="HOME",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.PAGE_UP=33]="PAGE_UP",t[t.PERIOD=190]="PERIOD",t[t.SPACE=32]="SPACE",t[t.SHIFT=16]="SHIFT",t[t.CAPS_LOCK=20]="CAPS_LOCK",t[t.TAB=9]="TAB",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.A=65]="A",t[t.C=67]="C",t[t.D=68]="D",t[t.F=70]="F",t[t.L=76]="L",t[t.O=79]="O",t[t.P=80]="P",t[t.S=83]="S",t[t.V=86]="V",t[t.X=88]="X"}(ni||(ni={})),function(t){t.ENTER="Enter",t.ENTER_NUM="NumpadEnter",t.V="KeyV",t.C="KeyC",t.ESCAPE="Escape",t.TAB="Tab",t.BACKSPACE="Backspace",t.DELETE="Delete",t.ARROW_RIGHT="ArrowRight",t.ARROW_LEFT="ArrowLeft",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.SHIFT="Shift"}(ii||(ii={}));const oi=ni;var si;!function(t){t.mac="Mac"}(si||(si={}));const ui=si;var ai=function(t){return t!=t},ci=function(t){return null==t?[]:function(t,r){return br(r,(function(r){return t[r]}))}(t,et(t))},li=Math.max,hi=function(t,r,e,n){t=rt(t)?t:ci(t),e=e&&!n?Gr(e):0;var i=t.length;return e<0&&(e=li(i+e,0)),en(t)?e<=i&&t.indexOf(r,e)>-1:!!i&&function(t,r,e){return r==r?function(t,r,e){for(var n=e-1,i=t.length;++n<i;)if(t[n]===r)return n;return-1}(t,r,e):Pr(t,ai,e)}(t,r,e)>-1};function fi(t,r){return r.includes(ui.mac)?hi([oi.COMMAND_LEFT,oi.COMMAND_RIGHT,oi.COMMAND_FIREFOX],t):oi.CONTROL===t}function di(t){return t===ii.ENTER||t===ii.ENTER_NUM}class vi{constructor(t,r){this.column=t,this.saveCallback=r,this.element=null,this.editCell=null}async componentDidRender(){var t;this.editInput&&(await Ee(),null===(t=this.editInput)||void 0===t||t.focus())}onKeyDown(t){const r=di(t.code),e=ii.TAB===t.code;(e||r)&&t.target&&this.saveCallback&&(this.editInput.blur(),this.saveCallback(t.target.value,e))}render(){var t;return e("input",{type:"text",value:(null===(t=this.editCell)||void 0===t?void 0:t.val)||"",ref:t=>{this.editInput=t},onKeyDown:t=>this.onKeyDown(t)})}}const gi=class{constructor(t){n(this,t),this.cellEdit=i(this,"cellEdit",3),this.closeEdit=i(this,"closeEdit",3),this.currentEditor=null}onSave(t,r){this.editCell&&this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:t,preventFocus:r})}componentWillRender(){this.currentEditor||(this.currentEditor=this.editor?new this.editor(this.column,((t,r)=>this.onSave(t,r)),(t=>this.closeEdit.emit(t))):new vi(this.column,((t,r)=>this.onSave(t,r))))}componentDidRender(){this.currentEditor&&(this.currentEditor.element=this.element.firstElementChild,this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender())}disconnectedCallback(){this.currentEditor&&(this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback(),this.currentEditor.element&&(this.currentEditor.element=null),this.currentEditor=null)}render(){return this.currentEditor?(this.currentEditor.editCell=this.editCell,e(o,{class:"edit-input-wrapper"},this.currentEditor.render(e))):""}get element(){return s(this)}};function pi({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s,height:u,width:a}=e.getBoundingClientRect();let c=r-o;c>=u&&(c=u-1);let l=t-s;l>=a&&(l=a-1);const h=Se(n,c),f=Se(i,l);return f.itemIndex<0&&(f.itemIndex=0),h.itemIndex<0&&(h.itemIndex=0),{x:f.itemIndex,y:h.itemIndex}}function Ci({x:t,y:r},{lastCell:e}){return t>=e.x||r>=e.y}function wi({x:t,y:r,x1:e,y1:n},i,o){const s=je(i,r).start,u=je(o,t).start,a=je(i,n).end,c=je(o,e).end;return{left:u,right:c,top:s,bottom:a,width:c-u,height:a-s}}function Li(t,r,e){return{left:`${(n=wi(t,r,e)).left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`};var n}gi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-edit{display:block;position:absolute;background-color:#fff}revogr-edit input{height:100%;width:100%;box-sizing:border-box}revogr-edit revo-dropdown{height:100%}revogr-edit revo-dropdown.shrink fieldset legend>span{display:none}";const mi=class{constructor(t){n(this,t)}changed(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.changed(this.el)}render(){const t=this.selectionStore.get("focus");if(t){const r=Li(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:"focused-cell",style:r,hidden:!1})}}get el(){return s(this)}};mi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-focus.focused-cell{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset;position:absolute;pointer-events:none;z-index:9;display:block}";var bi,xi=function(){try{var t=mt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),yi=function(t,r,e,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var s=t[i];r(n,s,e(s),t)}return n},ki=function(t,r,e,n){return nt(t,(function(t,i,o){r(n,t,e(t),o)})),n},Ei=(bi=function(t,r,e){!function(t,r,e){"__proto__"==r&&xi?xi(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}(t,e,r)},function(t,r){var e={};return(D(t)?yi:ki)(t,bi,Tr(r),e)});const Si=({column:t})=>e("i",{class:t.order});var ji;!function(t){t.start="resize:start",t.move="resize:move",t.end="resize:end"}(ji||(ji={}));const Ri={"resizable-r":{bit:1,cursor:"ew-resize"},"resizable-rb":{bit:3,cursor:"se-resize"},"resizable-b":{bit:2,cursor:"s-resize"},"resizable-lb":{bit:6,cursor:"sw-resize"},"resizable-l":{bit:4,cursor:"w-resize"},"resizable-lt":{bit:12,cursor:"nw-resize"},"resizable-t":{bit:8,cursor:"n-resize"},"resizable-rt":{bit:9,cursor:"ne-resize"}};class zi{constructor(t,r){var e;this.initialProps=t,this.$event=r,this.mouseX=0,this.mouseY=0,this.width=0,this.height=0,this.changeX=0,this.changeY=0,this.disableCalcMap=15,this.props=(e=t,Object.assign(Object.assign({},e),{fitParent:e.fitParent||!1,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})),this.mouseMoveFunc=this.handleMove.bind(this),this.mouseUpFunc=this.handleUp.bind(this),this.minW=this.props.minWidth,this.minH=this.props.minHeight,this.maxW=this.props.maxWidth,this.maxH=this.props.maxHeight,this.parent={width:0,height:0},this.resizeState=0}set(t){this.$el=t,this.props.disableAttributes.forEach((t=>{switch(t){case"l":this.disableCalcMap&=-2;break;case"t":this.disableCalcMap&=-3;break;case"w":this.disableCalcMap&=-5;break;case"h":this.disableCalcMap&=-9}}))}emitEvent(t,r){this.$event&&this.$event(Object.assign({eventName:t,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},r))}static isTouchEvent(t){var r;return(null===(r=t.touches)||void 0===r?void 0:r.length)>=0}handleMove(t){if(!this.resizeState)return;let r,e;zi.isTouchEvent(t)?(r=t.touches[0].clientY,e=t.touches[0].clientX):(r=t.clientY,e=t.clientX);let n=this.resizeState&Ri["resizable-r"].bit||this.resizeState&Ri["resizable-l"].bit;if((this.resizeState&Ri["resizable-t"].bit||this.resizeState&Ri["resizable-b"].bit)&&8&this.disableCalcMap){let t=this.changeY+(r-this.mouseY);const e=this.height+t;e<this.minH&&(t=-(this.height-this.minH)),this.maxH&&e>this.maxH&&(t=this.maxH-this.height),this.changeY=t,this.mouseY=r,this.activeResizer&&(this.activeResizer.style.bottom=-this.changeY+"px")}if(n&&4&this.disableCalcMap){let t=this.changeX+(e-this.mouseX);const r=this.width+t;r<this.minW&&(t=-(this.width-this.minW)),this.maxW&&r>this.maxW&&(t=this.maxW-this.width),this.changeX=t,this.mouseX=e,this.activeResizer&&(this.activeResizer.style.right=-this.changeX+"px")}this.emitEvent(ji.move)}handleDown(t){if(!t.defaultPrevented){this.dropInitial();for(let r in Ri){const e=t.target;if(this.$el.contains(e)&&(null==e?void 0:e.classList.contains(r))){document.body.style.cursor=Ri[r].cursor,zi.isTouchEvent(t)?this.setInitials(t.touches[0],e):(t.preventDefault&&t.preventDefault(),this.setInitials(t,e)),this.resizeState=Ri[r].bit,this.emitEvent(ji.start);break}}this.bindMove()}}handleUp(t){t.preventDefault(),0!==this.resizeState&&(this.resizeState=0,document.body.style.cursor="",this.emitEvent(ji.end)),this.dropInitial(),this.unbindMove()}setInitials({clientX:t,clientY:r},e){const n=getComputedStyle(this.$el);if(this.$el.classList.add("active"),this.activeResizer=e,4&this.disableCalcMap){this.mouseX=t,this.width=this.$el.clientWidth,this.parent.width=this.$el.parentElement.clientWidth;const r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);this.minW=Math.max(r,this.initialProps.minWidth||0),this.initialProps.maxWidth&&(this.maxW=Math.max(this.width,this.initialProps.maxWidth))}if(8&this.disableCalcMap){this.mouseY=r,this.height=this.$el.clientHeight,this.parent.height=this.$el.parentElement.clientHeight;const t=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);this.minH=Math.max(t,this.initialProps.minHeight||0),this.initialProps.maxHeight&&(this.maxH=Math.max(this.height,this.initialProps.maxHeight))}}dropInitial(){this.changeX=this.changeY=this.minW=this.minH,this.width=this.height=0,this.activeResizer&&this.activeResizer.removeAttribute("style"),this.$el.classList.remove("active"),this.activeResizer=null}bindMove(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.addEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)}unbindMove(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,!0),document.documentElement.removeEventListener("touchend",this.mouseUpFunc,!0),document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,!0),document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)}}const Oi=(t,r)=>{const n=[],i=t.canResize&&new zi(t,(r=>{r.eventName===ji.end&&t.onResize&&t.onResize(r)}))||null;if(t.canResize){if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},onMouseDown:t=>null==i?void 0:i.handleDown(t),onTouchStart:t=>null==i?void 0:i.handleDown(t),class:`resizable resizable-${t.active[r]}`}))}else if(t.active)for(let r in t.active)n.push(e("div",{onClick:t=>t.preventDefault(),onDblClick:r=>{r.preventDefault(),t.onDoubleClick&&t.onDoubleClick()},class:`no-resize resizable resizable-${t.active[r]}`}));return e("div",Object.assign({},t,{ref:t=>null==i?void 0:i.set(t)}),r,n)},Mi=({data:t,props:r},n)=>{let i=(null==t?void 0:t.name)||"",o=r;if((null==t?void 0:t.columnTemplate)&&(i=t.columnTemplate(e,t)),null==t?void 0:t.columnProperties){const e=t.columnProperties(t);e&&"object"==typeof e&&(o=Yn.doMerge(r,e))}return e(Oi,Object.assign({},o),e("div",{class:"header-content"},i),n)},Fi=t=>{var r,n,i,o,s,u;const a={rgHeaderCell:!0,sortable:!!(null===(r=t.data)||void 0===r?void 0:r.sortable)};(null===(n=t.data)||void 0===n?void 0:n.order)&&(a[t.data.order]=!0);const l={"data-rgCol":t.column.itemIndex,canResize:t.canResize,minWidth:(null===(i=t.data)||void 0===i?void 0:i.minSize)||30,maxWidth:null===(o=t.data)||void 0===o?void 0:o.maxSize,active:["r"],class:a,style:{width:`${t.column.size}px`,transform:`translateX(${t.column.start}px)`},onResize:t.onResize,onDoubleClick(r){t.onDoubleClick({column:t.data,index:t.column.itemIndex,originalEvent:r})},onClick(r){!r.defaultPrevented&&t.onClick&&t.onClick({column:t.data,index:t.column.itemIndex,originalEvent:r})}};return t.range&&t.column.itemIndex>=t.range.x&&t.column.itemIndex<=t.range.x1&&"object"==typeof l.class&&(l.class["focused-cell"]=!0),e(Mi,{data:t.data,props:l},(null===(s=t.data)||void 0===s?void 0:s.order)?e(Si,{column:t.data}):"",t.canFilter&&!1!==(null===(u=t.data)||void 0===u?void 0:u.filter)?e(c,{column:t.data}):"")},_i=t=>{const r={canResize:t.canResize,minWidth:30*t.group.ids.length,maxWidth:0,active:["r"],class:{rgHeaderCell:!0},style:{transform:`translateX(${t.start}px)`,width:t.end-t.start+"px"},onResize:t.onResize};return e(Mi,{data:Object.assign(Object.assign({},t.group),{providers:t.providers,index:t.start}),props:r})},Ti=({providers:t,depth:r,groups:n,visibleProps:i,dimensionCol:o,canResize:s,onResize:u})=>{const a=[];for(let c=0;c<r;c++){if(n[c])for(let r of n[c]){const n=Kr(r.ids,(t=>"number"==typeof i[t]));if(n>-1){const c=i[r.ids[n]]-n,l=c+r.ids.length-1,h=je(o,c).start,f=je(o,l).end;a.push(e(_i,{providers:t,start:h,end:f,group:r,canResize:s,onResize:t=>u(t.changedX,c,l)}))}}a.push(e("div",{class:"header-rgRow group"}))}return a},Ai=class{constructor(t){n(this,t),this.initialHeaderClick=i(this,"initialHeaderClick",7),this.headerresize=i(this,"headerresize",7),this.headerdblClick=i(this,"headerdblClick",7),this.parent="",this.groupingDepth=0}onResize({width:t},r){this.headerresize.emit({[r]:t||0})}onResizeGroup(t,r,e){const n={},i=Ei(this.viewportCol.get("items"),"itemIndex"),o=t/(e-r+1);for(let t=r;t<=e;t++){const r=i[t];r&&(n[t]=r.size+o)}this.headerresize.emit(n)}render(){var t;const r=this.viewportCol.get("items"),n=null===(t=this.selectionStore)||void 0===t?void 0:t.get("range"),i=[],o={};for(let t of r){const r=this.colData[t.itemIndex];i.push(e(Fi,{range:n,column:t,data:Object.assign(Object.assign({},r),{index:t.itemIndex,providers:this.providers}),canFilter:!!this.columnFilter,canResize:this.canResize,onResize:r=>this.onResize(r,t.itemIndex),onDoubleClick:t=>this.headerdblClick.emit(t),onClick:t=>this.initialHeaderClick.emit(t)})),o[null==r?void 0:r.prop]=t.itemIndex}return[e("div",{class:"group-rgRow"},e(Ti,{canResize:this.canResize,visibleProps:o,providers:this.providers,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:(t,r,e)=>this.onResizeGroup(t,r,e)})),e("div",{class:"header-rgRow actual-rgRow"},i)]}get providers(){return{viewport:this.viewportCol,dimension:this.dimensionCol,selection:this.selectionStore}}get element(){return s(this)}};Ai.style="@charset \"UTF-8\";.revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-header{position:relative;z-index:5;display:block}revogr-header .rgHeaderCell{display:flex}revogr-header .rgHeaderCell.align-center{text-align:center}revogr-header .rgHeaderCell.align-left{text-align:left}revogr-header .rgHeaderCell.align-right{text-align:right}revogr-header .rgHeaderCell.sortable{cursor:pointer}revogr-header .rgHeaderCell i.asc:after,revogr-header .rgHeaderCell i.desc:after{font-size:13px}revogr-header .rgHeaderCell i.asc:after{content:\"↑\"}revogr-header .rgHeaderCell i.desc:after{content:\"↓\"}revogr-header .rgHeaderCell,revogr-header .grouped-cell{position:absolute;box-sizing:border-box;height:100%;z-index:1}revogr-header .header-rgRow{display:block;position:relative}revogr-header .header-rgRow.group{z-index:0}revogr-header .group-rgRow{position:relative}revogr-header .rgHeaderCell.active{z-index:10}revogr-header .rgHeaderCell.active .resizable{background-color:deepskyblue}revogr-header .rgHeaderCell .header-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1}revogr-header .rgHeaderCell .resizable{display:block;position:absolute;z-index:90;touch-action:none;user-select:none}revogr-header .rgHeaderCell .resizable:hover{background-color:deepskyblue}revogr-header .rgHeaderCell>.resizable-r{cursor:ew-resize;width:6px;right:0;top:0;height:100%}revogr-header .rgHeaderCell>.resizable-rb{cursor:se-resize;width:6px;height:6px;right:0;bottom:0}revogr-header .rgHeaderCell>.resizable-b{cursor:s-resize;height:6px;bottom:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-lb{cursor:sw-resize;width:6px;height:6px;left:0;bottom:0}revogr-header .rgHeaderCell>.resizable-l{cursor:w-resize;width:6px;left:0;height:100%;top:0}revogr-header .rgHeaderCell>.resizable-lt{cursor:nw-resize;width:6px;height:6px;left:0;top:0}revogr-header .rgHeaderCell>.resizable-t{cursor:n-resize;height:6px;top:0;width:100%;left:0}revogr-header .rgHeaderCell>.resizable-rt{cursor:ne-resize;width:6px;height:6px;right:0;top:0}revogr-header .rv-filter{visibility:hidden}";var Di=function(){return b.Date.now()},Pi=Math.max,Ii=Math.min,$i=function(t,r,e){var n,i,o,s,u,a,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function d(r){var e=n,o=i;return n=i=void 0,c=r,s=t.apply(o,e)}function v(t){return c=t,u=setTimeout(p,r),l?d(t):s}function g(t){var e=t-a;return void 0===a||e>=r||e<0||h&&t-c>=o}function p(){var t=Di();if(g(t))return C(t);u=setTimeout(p,function(t){var e=r-(t-a);return h?Ii(e,o-(t-c)):e}(t))}function C(t){return u=void 0,f&&n?d(t):(n=i=void 0,s)}function w(){var t=Di(),e=g(t);if(n=arguments,i=this,a=t,e){if(void 0===u)return v(a);if(h)return clearTimeout(u),u=setTimeout(p,r),d(a)}return void 0===u&&(u=setTimeout(p,r)),s}return r=Wr(r)||0,Q(e)&&(l=!!e.leading,o=(h="maxWait"in e)?Pi(Wr(e.maxWait)||0,r):o,f="trailing"in e?!!e.trailing:f),w.cancel=function(){void 0!==u&&clearTimeout(u),c=0,n=a=i=u=void 0},w.flush=function(){return void 0===u?s:C(Di())},w};class Ui{constructor(t){this.config=t,this.currentCell=null,this.previousRow=null}endOrder(t,r){if(null===this.currentCell)return;const e=this.getCell(t,r);e.y!==this.currentCell.y&&(e.y<0?e.y=0:e.y<this.currentCell.y&&e.y++,this.config.positionChanged(this.currentCell.y,e.y)),this.clear()}startOrder(t,r){return this.currentCell=this.getCell(t,r),this.currentCell}move(t,r){const e=this.getRow(t,r);return this.previousRow===e.itemIndex||e.itemIndex<-1?null:(this.previousRow=e.itemIndex,e)}clear(){this.currentCell=null,this.previousRow=null}getRow(t,{el:r,rows:e}){const{top:n}=r.getBoundingClientRect(),i=Se(e,t-n);return{itemIndex:i.itemIndex,start:i.start+n,end:i.end+n}}getCell({x:t,y:r},{el:e,rows:n,cols:i}){const{top:o,left:s}=e.getBoundingClientRect(),u=t-s,a=Se(n,r-o);return{x:Se(i,u).itemIndex,y:a.itemIndex}}}const Hi=class{constructor(t){n(this,t),this.internalRowDragStart=i(this,"internalRowDragStart",7),this.internalRowDragEnd=i(this,"internalRowDragEnd",7),this.internalRowDrag=i(this,"internalRowDrag",7),this.internalRowMouseMove=i(this,"internalRowMouseMove",7),this.initialRowDropped=i(this,"initialRowDropped",7),this.rowMoveFunc=$i((t=>{const r=this.rowOrderService.move(t,this.getData());null!==r&&this.internalRowDrag.emit(r)}),5)}onMouseOut(){this.clearOrder()}onMouseUp(t){this.endOrder(t)}async dragStart(t){t.preventDefault(),this.moveFunc&&this.clearOrder();const r=this.getData(),e=this.rowOrderService.startOrder(t,r),n=this.rowOrderService.getRow(t.y,r);this.internalRowDragStart.emit({cell:e,text:"Draggable item",pos:n,event:t}).defaultPrevented||(this.moveFunc=t=>this.move(t),document.addEventListener("mousemove",this.moveFunc))}async endOrder(t){this.rowOrderService.endOrder(t,this.getData()),this.clearOrder()}async clearOrder(){this.rowOrderService.clear(),document.removeEventListener("mousemove",this.moveFunc),this.moveFunc=null,this.internalRowDragEnd.emit()}move({x:t,y:r}){this.internalRowMouseMove.emit({x:t,y:r}),this.rowMoveFunc(r)}connectedCallback(){this.rowOrderService=new Ui({positionChanged:(t,r)=>this.onPositionChanged(t,r)})}onPositionChanged(t,r){if(this.initialRowDropped.emit({from:t,to:r}).defaultPrevented)return;const e=[...this.dataStore.get("items")],n=e.splice(t,1);e.splice(r,0,...n),ce(this.dataStore,e)}getData(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}}};class Zi{constructor(t,r){this.store=t,this.config=r,this.store=t}get edited(){return this.store.get("edit")}get focused(){return this.store.get("focus")}get ranged(){return this.store.get("range")}changeRange(t){return this.config.changeRange(t)}focus(t,r=!1){if(!t)return!1;let e=t;if(r){let t=this.store.get("focus");if(t)return this.config.changeRange(Un(t,e))}return this.config.focus(t,e)}}class Bi{constructor(t){this.sv=t,this.ctrlDown=!1}async keyDown(t,r){var e;if(this.sv.selectionStoreService.focused)if(fi(t.keyCode,navigator.platform)&&(this.ctrlDown=!0),ii.TAB!==t.code)if(this.sv.selectionStoreService.edited)switch(t.code){case ii.ESCAPE:this.sv.doEdit(void 0,!0)}else ii.BACKSPACE!==(e=t.code)&&ii.DELETE!==e?di(t.code)?this.sv.doEdit():this.isCopy(t)||(this.isPaste(t)?this.sv.internalPaste():function(t){return 32===t||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}(t.keyCode)?this.sv.doEdit(t.key):await this.keyChangeSelection(t,r)):this.sv.clearCell();else this.keyChangeSelection(t,r)}async keyChangeSelection(t,r){const e=this.changeDirectionKey(t,r);if(!e)return!1;await Ee();const n=this.sv.selectionStore.get("range"),i=this.sv.selectionStore.get("focus");return this.keyPositionChange(e.changes,this.sv.getData(),n,i,e.isMulti)}keyPositionChange(t,r,e,n,i=!1){if(!e||!n)return!1;const o=function(t,r,e,n=!1){const i=i=>{const o={x:t.x,y:t.y},s=n?{x:t.x1,y:t.y1}:o;return(s[i]>r[i]?s:o)[i]+=e[i],{start:o,end:s}};return e.x?i("x"):e.y?i("y"):null}(e,n,t,i);if(!o)return!1;if(i){if(Ci(o.end,r)||function({x:t,y:r}){return t<0||r<0}(o.start))return!1;const t=Un(o.start,o.end);return this.sv.selectionStoreService.changeRange(t)}return this.sv.selectionStoreService.focus(o.start)}keyUp(t){fi(t.keyCode,navigator.platform)&&(this.ctrlDown=!1)}isCopy(t){return this.ctrlDown&&t.code==ii.C}isPaste(t){return this.ctrlDown&&t.code==ii.V}changeDirectionKey(t,r){const e=r&&t.shiftKey;switch(t.code){case ii.TAB:case ii.ARROW_UP:case ii.ARROW_DOWN:case ii.ARROW_LEFT:case ii.ARROW_RIGHT:t.preventDefault()}switch(t.code){case ii.ARROW_UP:return{changes:{y:-1},isMulti:e};case ii.ARROW_DOWN:return{changes:{y:1},isMulti:e};case ii.ARROW_LEFT:return{changes:{x:-1},isMulti:e};case ii.TAB:case ii.ARROW_RIGHT:return{changes:{x:1},isMulti:e}}}}var Ni,Wi=function(t,r,e){var n=null==t?0:t.length;return n?(e&&"number"!=typeof e&&ee(t,r,e)?(r=0,e=n):(r=null==r?0:Gr(r),e=void 0===e?n:Gr(e)),function(t,r,e){var n=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(e=e>i?i:e)<0&&(e+=i),i=r>e?0:e-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+r];return o}(t,r,e)):[]};!function(t){t.selection="Selection",t.autoFill="AutoFill"}(Ni||(Ni={}));class Vi{constructor(t){this.sv=t,this.autoFillType=null,this.autoFillInitial=null,this.autoFillStart=null,this.autoFillLast=null}renderAutofill(t,r){let n;return n=wi(t||Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state),e("div",{class:"autofill-handle",style:{left:`${n.right}px`,top:`${n.bottom}px`},onMouseDown:t=>this.selectionStart(t,this.sv.getData(),Ni.autoFill)})}get isAutoFill(){return!!this.autoFillType}selectionMouseMove(t){this.onMouseMoveAutofill||(this.onMouseMoveAutofill=$i(((t,r)=>this.doAutofillMouseMove(t,r)),5)),this.isAutoFill&&this.onMouseMoveAutofill(t,this.sv.getData())}getFocus(){let t=this.sv.selectionStoreService.focused;const r=this.sv.selectionStoreService.ranged;return r&&(t={x:r.x,y:r.y}),t||r?t:null}doAutofillMouseMove({x:t,y:r},e){if(!this.autoFillInitial)return;let n,i=pi({x:t,y:r},e);this.autoFillLast&&(n=function(t,r){const e=["x","y"];for(let n of e)if(t[n]!==r[n])return{[n]:1};return null}(this.autoFillStart,this.autoFillLast)),this.autoFillLast&&n||(n=function(t,r){const e={},n=["x","y"];for(let i of n)e[i]=Math.abs(t[i]-r[i]);return e.x>e.y?{x:1}:e.y>e.x?{y:1}:null}(this.autoFillStart,i),this.autoFillLast||(this.autoFillLast=this.autoFillStart)),n&&(ot(n,((t,r)=>{t&&(i=Object.assign(Object.assign({},this.autoFillLast),{[r]:i[r]}))})),Ci(i,e)||(this.autoFillLast=i,this.sv.setTempRange({area:Un(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})))}selectionStart(t,r,e=Ni.selection){const{top:n,left:i}=t.target.getBoundingClientRect();this.autoFillInitial=this.getFocus(),this.autoFillType=e,this.autoFillStart=pi({x:i,y:n},r),t.preventDefault()}clearAutoFillSelection(){this.autoFillInitial&&(this.autoFillInitial=this.getFocus(),this.autoFillType===Ni.autoFill?this.applyRangeWithData(this.autoFillInitial,this.autoFillLast):this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)),this.autoFillType=null,this.autoFillInitial=null,this.autoFillLast=null,this.autoFillStart=null}onRangeApply(t,r){const e={};for(let r in t)e[r]=ue(this.sv.dataStore,parseInt(r,10));this.sv.internalRangeDataApply({data:t,models:e,type:this.sv.dataStore.get("type")}).defaultPrevented||this.sv.columnService.applyRangeData(t),this.sv.setRange(r)}applyRangeWithData(t,r){if(!t||!r)return;const e=this.sv.selectionStoreService.ranged,n=Un(t,r),i=[...this.sv.columnService.columns],o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:e,newProps:Wi(i,n.x,n.x1+1).map((t=>t.prop)),oldProps:Wi(i,e.x,e.x1+1).map((t=>t.prop))};o.newData=this.sv.columnService.getRangeData(o),this.sv.internalSelectionChanged(o).defaultPrevented?this.sv.setTempRange(null):this.onRangeApply(o.newData,n)}applyRangeOnly(t,r){if(!t||!r)return;const e=Un(t,r);this.sv.setRange(e)}}class Gi{constructor(t){this.sv=t}onCopy(t){if(this.sv.internalCopy().defaultPrevented)return!1;let r,e=this.sv.selectionStoreService.focused,n=this.sv.selectionStoreService.ranged;if(n||(n=Un(e,e)),n){const t=[...this.sv.columnService.columns],e=Wi(t,n.x,n.x1+1).map((t=>t.prop));r=this.sv.columnService.copyRangeArray(n,e,this.sv.dataStore)}return this.clipboard.doCopy(t,r),!0}renderClipboard(){return e("revogr-clipboard",{onCopyRegion:t=>this.onCopy(t.detail),ref:t=>this.clipboard=t,onPasteRegion:t=>this.onPaste(t.detail)})}onPaste(t){const r=this.sv.selectionStoreService.focused;if(!r||null!==this.sv.selectionStoreService.edited)return;const{changed:e,range:n}=this.sv.columnService.getTransformedDataToApply(r,t);this.sv.onRangeApply(e,n)}}const qi=class{constructor(t){n(this,t),this.internalCopy=i(this,"internalCopy",7),this.internalPaste=i(this,"internalPaste",7),this.internalCellEdit=i(this,"internalCellEdit",7),this.internalFocusCell=i(this,"internalFocusCell",7),this.setEdit=i(this,"setEdit",3),this.setRange=i(this,"setRange",7),this.setTempRange=i(this,"setTempRange",7),this.focusCell=i(this,"focusCell",3),this.internalSelectionChanged=i(this,"internalSelectionChanged",7),this.internalRangeDataApply=i(this,"internalRangeDataApply",7),this.keyboardService=null,this.autoFillService=null,this.clipboardService=null}onMouseMove(t){this.selectionStoreService.focused&&this.autoFillService.selectionMouseMove(t)}onMouseOut(){this.autoFillService.clearAutoFillSelection()}onMouseUp(){this.autoFillService.clearAutoFillSelection()}onCellDrag(t){var r;null===(r=this.orderEditor)||void 0===r||r.dragStart(t.detail)}onKeyUp(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyUp(t)}onKeyDown(t){var r;null===(r=this.keyboardService)||void 0===r||r.keyDown(t,this.range)}selectionServiceSet(t){this.selectionStoreService=new Zi(t,{changeRange:t=>{var r;return!(null===(r=this.setRange.emit(t))||void 0===r?void 0:r.defaultPrevented)},focus:(t,r)=>{var e;const n={focus:t,end:r},{defaultPrevented:i}=this.internalFocusCell.emit(this.columnService.getSaveData(t.y,t.x));return!i&&!(null===(e=this.focusCell.emit(n))||void 0===e?void 0:e.defaultPrevented)}}),this.keyboardService=new Bi({selectionStoreService:this.selectionStoreService,selectionStore:t,doEdit:(t,r)=>this.doEdit(t,r),clearCell:()=>this.clearCell(),getData:()=>this.getData(),internalPaste:()=>this.internalPaste.emit()}),this.createAutoFillService(),this.createClipboardService()}createAutoFillService(){this.autoFillService=new Vi({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:t=>this.setTempRange.emit(t),internalSelectionChanged:t=>this.internalSelectionChanged.emit(t),internalRangeDataApply:t=>this.internalRangeDataApply.emit(t),setRange:t=>this.setRange.emit(t),getData:()=>this.getData()})}columnServiceSet(){var t;null===(t=this.columnService)||void 0===t||t.destroy(),this.columnService=new Yn(this.dataStore,this.colData),this.createAutoFillService(),this.createClipboardService()}createClipboardService(){this.clipboardService=new Gi({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:(t,r)=>this.autoFillService.onRangeApply(t,r),internalCopy:()=>this.internalCopy.emit()})}connectedCallback(){this.columnServiceSet(),this.selectionServiceSet(this.selectionStore)}disconnectedCallback(){var t;null===(t=this.columnService)||void 0===t||t.destroy()}renderRange(t){const r=Li(t,this.dimensionRow.state,this.dimensionCol.state);return[e("div",{class:"selection-border-range",style:r})]}renderEditCell(){const t=this.selectionStore.get("edit");if(this.readonly||!t)return;const r=t.val||this.columnService.getCellData(t.y,t.x),n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r)),i=Li(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return e("revogr-edit",{onCellEdit:t=>this.onCellEdit(t.detail),onCloseEdit:t=>this.closeEdit(t),editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:i})}render(){const t=this.selectionStoreService.ranged,r=this.selectionStoreService.focused,n=[];(t||r)&&this.useClipboard&&n.push(this.clipboardService.renderClipboard()),t&&n.push(...this.renderRange(t));const i=this.renderEditCell();return i&&n.push(i),r&&!this.readonly&&!i&&this.range&&n.push(this.autoFillService.renderAutofill(t,r)),this.canDrag&&n.push(e("revogr-order-editor",{ref:t=>this.orderEditor=t,dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:t=>this.onRowDragStart(t)})),e(o,{onDblClick:()=>this.doEdit(),onMouseDown:t=>this.onElementMouseDown(t)},n,e("slot",{name:"data"}))}onElementMouseDown(t){if(null==(r=t.target)?void 0:r.closest(".edit-input-wrapper"))return;var r;const e=this.getData();if(t.defaultPrevented)return;const n=pi({x:t.x,y:t.y},e);this.selectionStoreService.focus(n,this.range&&t.shiftKey),this.range&&this.autoFillService.selectionStart(t,e)}doEdit(t="",r=!1){var e;if(this.canEdit()){const n=this.selectionStore.get("focus"),i=this.columnService.getSaveData(n.y,n.x);null===(e=this.setEdit)||void 0===e||e.emit(Object.assign(Object.assign({},i),{isCancel:r,val:t}))}}closeEdit(t){this.doEdit(void 0,!0),(null==t?void 0:t.detail)&&this.focusNext()}async focusNext(){await this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:ii.ARROW_DOWN}),this.range)||this.closeEdit()}clearCell(){if(!this.selectionStoreService.ranged||(t=this.selectionStoreService.ranged).x===t.x1&&t.y===t.y1){if(this.canEdit()){const t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},!0)}}else{const t=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(t,this.selectionStoreService.ranged)}var t}onCellEdit(t,r=!1){const e=this.columnService.getSaveData(t.rgRow,t.rgCol,t.val);this.internalCellEdit.emit(e),r||t.preventFocus||this.focusNext()}onRowDragStart({detail:t}){t.text=this.columnService.getCellData(t.cell.y,t.cell.x)}canEdit(){var t;if(this.readonly)return!1;const r=this.selectionStoreService.focused;return r&&!(null===(t=this.columnService)||void 0===t?void 0:t.isReadOnly(r.y,r.x))}getData(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}}get element(){return s(this)}static get watchers(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}}};qi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-overlay-selection{display:block;position:relative;width:100%}revogr-overlay-selection .autofill-handle{position:absolute;width:10px;height:10px;background:#0d63e8;margin-left:-9px;margin-top:-9px;border:1px solid white;box-sizing:border-box;z-index:10;cursor:crosshair}revogr-overlay-selection .selection-border-range{position:absolute;pointer-events:none;z-index:9}revogr-overlay-selection .selection-border-range{box-shadow:-1px 0 0 #0d63e8 inset, 1px 0 0 #0d63e8 inset, 0 -1px 0 #0d63e8 inset, 0 1px 0 #0d63e8 inset}revogr-overlay-selection revogr-edit{z-index:10}";const Ki=t=>(r,{rowIndex:e})=>t+e,Xi=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.elementToScroll=i(this,"elementToScroll",3)}render(){const t=[],r=new $e;let n=1;for(let i of this.dataPorts){const o=i.dataStore.get("items").length,s=new oe(i.type);s.updateData(i.dataStore.get("source"));const u=new oe("colPinStart"),a=Object.assign({cellTemplate:Ki(n)},this.rowHeaderColumn);u.updateData([a]);const c=Object.assign(Object.assign({},i),{dataStore:s.store,colData:u.store,viewportCol:r.store,readonly:!0,range:!1});t.push(e("revogr-data",Object.assign({},c))),n+=o}const i=qn(n,this.rowHeaderColumn);r.setViewport({realCount:1,virtualSize:0,items:[{size:i,start:0,end:i,itemIndex:0}]});const s=`${this.uiid}-rowHeaders`,u={[Ln]:s,contentHeight:this.height,contentWidth:0,style:{minWidth:`${i}px`},ref:t=>this.elementToScroll.emit(t),onScrollViewport:t=>this.scrollViewport.emit(t.detail)},a=Object.assign(Object.assign({},this.headerProp),{colData:"object"==typeof this.rowHeaderColumn?[this.rowHeaderColumn]:[],viewportCol:r.store,canResize:!1,parent:s,slot:"header"});return e(o,{class:"rowHeaders",key:"rowHeaders"},e("revogr-viewport-scroll",Object.assign({},u),e("revogr-header",Object.assign({},a)),t))}},Ji={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};class Yi{constructor(t){this.cfg=t,this.preventArtificialScroll={rgRow:null,rgCol:null},this.previousScroll={rgRow:0,rgCol:0},this.params={rgRow:Object.assign({},Ji),rgCol:Object.assign({},Ji)}}static getVirtualContentSize(t,r,e=0){return t+(e?r-e:0)}setParams(t,r){const e=Yi.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:e-t.clientSize,virtualContentSize:e})}setScroll(t){this.cancelScroll(t.dimension),this.preventArtificialScroll[t.dimension]=window.requestAnimationFrame((()=>{const r=this.getParams(t.dimension);t.coordinate=Math.ceil(t.coordinate),this.previousScroll[t.dimension]=this.wrapCoordinate(t.coordinate,r),this.preventArtificialScroll[t.dimension]=null,this.cfg.afterScroll(Object.assign(Object.assign({},t),{coordinate:r.virtualSize?this.convert(t.coordinate,r,!1):t.coordinate}))}))}scroll(t,r,e=!1,n){if(this.cancelScroll(r),!e&&this.previousScroll[r]===t)return void(this.previousScroll[r]=0);const i=this.getParams(r);this.cfg.beforeScroll({dimension:r,coordinate:i.virtualSize?this.convert(t,i):t,delta:n})}getParams(t){return this.params[t]}wrapCoordinate(t,r){return t<0?0:t>r.maxSize?r.maxSize:t}cancelScroll(t){return"number"==typeof this.preventArtificialScroll[t]&&(window.cancelAnimationFrame(this.preventArtificialScroll[t]),this.preventArtificialScroll[t]=null,!0)}convert(t,r,e=!0){const n=[0,r.virtualContentSize-r.clientSize],i=[0,r.contentSize-r.virtualSize];return e?ke(t,n,i):ke(t,i,n)}}const Qi=class{constructor(t){n(this,t),this.scrollVirtual=i(this,"scrollVirtual",7),this.scrollSize=0,this.isAutoHide=!1,this.autoHideTimeout=0,this.dimension="rgRow"}async setScroll(t){var r;this.dimension===t.dimension&&(null===(r=this.scrollService)||void 0===r||r.setScroll(t))}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.element.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.element.scrollTop+t.delta}this.setScroll(t)}return t}set size(t){"rgRow"!==this.dimension?this.element.style.minHeight=`${t}px`:this.element.style.minWidth=`${t}px`}get size(){return"rgRow"===this.dimension?this.element.clientHeight:this.element.clientWidth}connectedCallback(){this.scrollService=new Yi({beforeScroll:t=>this.scrollVirtual.emit(t),afterScroll:t=>{this.element["rgRow"===t.dimension?"scrollTop":"scrollLeft"]=t.coordinate}})}disconnectedCallback(){clearTimeout(this.autoHideTimeout)}componentWillLoad(){this.scrollSize=ye(document),this.isAutoHide=!this.scrollSize}componentDidRender(){this.size=this.element["rgRow"===this.dimension?"scrollHeight":"scrollWidth"]>this.size?this.scrollSize:0,this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)}onScroll(t){var r;let e="scrollLeft";"rgRow"===this.dimension&&(e="scrollTop"),this.isAutoHide&&(this.size=20,this.autoHideTimeout=this.autoHide(this.autoHideTimeout)),null===(r=this.scrollService)||void 0===r||r.scroll(t.target[e]||0,this.dimension)}autoHide(t){return clearTimeout(t),setTimeout((()=>{this.size=0}),6e3)}render(){const t="rgRow"===this.dimension?"height":"width";return e(o,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:t=>this.onScroll(t)}),e("div",{style:{[t]:`${this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize"))}px`}}))}extContentSize(t,r){return Yi.getVirtualContentSize(r,this.size,t)}get element(){return s(this)}};Qi.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}revogr-scroll-virtual[auto-hide]{position:absolute;z-index:100}revogr-scroll-virtual[auto-hide].vertical{right:0;top:0}revogr-scroll-virtual[auto-hide].vertical:hover{min-width:20px}revogr-scroll-virtual[auto-hide].horizontal{bottom:0;left:0}revogr-scroll-virtual[auto-hide].horizontal:hover{min-height:20px}revogr-scroll-virtual.vertical{overflow-y:auto;overflow-x:hidden;height:100%}revogr-scroll-virtual.vertical>div{width:1px}revogr-scroll-virtual.horizontal{overflow-x:auto;overflow-y:hidden;width:100%}revogr-scroll-virtual.horizontal>div{height:1px}";const to=class{constructor(t){n(this,t),this.onChange=Me.throttle((t=>this.doChange(t)),300)}doChange(t){null==t||t.scrollIntoView({block:"nearest",inline:"nearest"})}componentDidRender(){this.el&&this.onChange(this.el)}render(){const t=this.selectionStore.get("tempRange"),r=this.selectionStore.get("tempRangeType");if(!t)return;let n="bottom",i="right";const s=this.getRange();if(!s)return;t.y<s.y&&(n="top"),t.x<s.x&&(i="left");const u=`${i} ${n}`,a=Li(t,this.dimensionRow.state,this.dimensionCol.state);return e(o,{class:{"temp-bg-range":!0,[r||""]:!0},style:a,hidden:!1},e("div",{class:u,ref:t=>this.el=t}))}getRange(){const t=this.selectionStore.get("range");if(t)return t;const r=this.selectionStore.get("focus");return r?Object.assign(Object.assign({},r),{x1:r.x,y1:r.y}):null}};to.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block !important;position:absolute;pointer-events:none;z-index:9;border:1px solid #ff5e00;box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";class ro{constructor(t,r){this.events=r,this.resizeObserver=null,this.resize=function(t,r,e){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Q(e)&&(n="leading"in e?!!e.leading:n,i="trailing"in e?!!e.trailing:i),$i(t,r,{leading:n,maxWait:r,trailing:i})}(((t,r)=>{var e;return null===(e=this.events)||void 0===e?void 0:e.resize(t,r)}),10),this.init(t)}async init(t){var r;await async function(){if(!("ResizeObserver"in window)){const t=await __sc_import_revo_grid("./resize-observer-56b7b34f.js");window.ResizeObserver=t.ResizeObserver}}(),this.resizeObserver=new ResizeObserver(this.resize),null===(r=this.resizeObserver)||void 0===r||r.observe(t)}destroy(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=null}}const eo=class{constructor(t){n(this,t),this.scrollViewport=i(this,"scrollViewport",3),this.resizeViewport=i(this,"resizeViewport",7),this.scrollchange=i(this,"scrollchange",7),this.scrollThrottling=30,this.contentWidth=0,this.contentHeight=0,this.oldValY=this.contentHeight,this.oldValX=this.contentWidth,this.mouseWheelScroll={rgCol:0,rgRow:0}}async setScroll(t){var r;this.latestScrollUpdate(t.dimension),null===(r=this.scrollService)||void 0===r||r.setScroll(t)}async changeScroll(t){if(t.delta){switch(t.dimension){case"rgCol":t.coordinate=this.horizontalScroll.scrollLeft+t.delta;break;case"rgRow":t.coordinate=this.verticalScroll.scrollTop+t.delta}this.setScroll(t)}return t}connectedCallback(){"ontouchstart"in document.documentElement?this.scrollThrottling=0:(this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY"),this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")),this.scrollService=new Yi({beforeScroll:t=>this.scrollViewport.emit(t),afterScroll:t=>{switch(t.dimension){case"rgCol":this.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":this.verticalScroll.scrollTop=t.coordinate}}})}componentDidLoad(){this.horisontalResize=new ro(this.horizontalScroll,{resize:t=>{var r,e;let n=(null===(r=t[0])||void 0===r?void 0:r.contentRect.height)||0;n&&(n-=this.header.clientHeight+this.footer.clientHeight);const i={rgRow:{size:n,contentSize:this.contentHeight,scroll:this.verticalScroll.scrollTop},rgCol:{size:(null===(e=t[0])||void 0===e?void 0:e.contentRect.width)||0,contentSize:this.contentWidth,scroll:this.horizontalScroll.scrollLeft}};ot(i,((t,r)=>{var e;this.resizeViewport.emit({dimension:r,size:t.size}),null===(e=this.scrollService)||void 0===e||e.scroll(t.scroll,r,!0),this.setScrollVisibility(r,t.size,t.contentSize)}))}})}setScrollVisibility(t,r,e){const n=r<e;let i,o;switch(t){case"rgCol":i=this.horizontalScroll,o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll,o=this.verticalMouseWheel}n?(i.classList.add(`scroll-${t}`),i.addEventListener("mousewheel",o)):(i.classList.remove(`scroll-${t}`),i.removeEventListener("mousewheel",o)),this.scrollchange.emit({type:t,hasScroll:n})}disconnectedCallback(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel),this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel),this.horisontalResize.destroy()}async componentDidRender(){this.contentHeight<this.oldValY&&this.verticalScroll&&(this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY),this.oldValY=this.contentHeight,this.contentWidth<this.oldValX&&(this.horizontalScroll.scrollLeft+=this.contentWidth-this.oldValX),this.oldValX=this.contentWidth,this.scrollService.setParams({contentSize:this.contentHeight,clientSize:this.verticalScroll.clientHeight,virtualSize:0},"rgRow"),this.scrollService.setParams({contentSize:this.contentWidth,clientSize:this.horizontalScroll.clientWidth,virtualSize:0},"rgCol"),this.setScrollVisibility("rgRow",this.verticalScroll.clientHeight,this.contentHeight),this.setScrollVisibility("rgCol",this.horizontalScroll.clientWidth,this.contentWidth)}render(){return e(o,{onScroll:t=>this.onScroll("rgCol",t)},e("div",{class:"inner-content-table",style:{width:`${this.contentWidth}px`}},e("div",{class:"header-wrapper",ref:t=>this.header=t},e("slot",{name:"header"})),e("div",{class:"vertical-inner",ref:t=>this.verticalScroll=t,onScroll:t=>this.onScroll("rgRow",t)},e("div",{class:"content-wrapper",style:{height:`${this.contentHeight}px`}},e("slot",{name:"content"}))),e("div",{class:"footer-wrapper",ref:t=>this.footer=t},e("slot",{name:"footer"}))))}onScroll(t,r){var e;const n=r.target;let i=0;switch(t){case"rgCol":i=null==n?void 0:n.scrollLeft;break;case"rgRow":i=null==n?void 0:n.scrollTop}(new Date).getTime()-this.mouseWheelScroll[t]>this.scrollThrottling&&(null===(e=this.scrollService)||void 0===e||e.scroll(i,t))}latestScrollUpdate(t){this.mouseWheelScroll[t]=(new Date).getTime()}onVerticalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.verticalScroll.scrollTop+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}onHorizontalMouseWheel(t,r,e){var n;e.preventDefault(),null===(n=this.scrollService)||void 0===n||n.scroll(this.horizontalScroll.scrollLeft+e[r],t,void 0,e[r]),this.latestScrollUpdate(t)}get horizontalScroll(){return s(this)}};eo.style=".revo-drag-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 438 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M421.875,70.40625 C426.432292,70.40625 430.175781,68.9414062 433.105469,66.0117188 C436.035156,63.0820312 437.5,59.3385417 437.5,54.78125 L437.5,54.78125 L437.5,15.71875 C437.5,11.1614583 436.035156,7.41796875 433.105469,4.48828125 C430.175781,1.55859375 426.432292,0.09375 421.875,0.09375 L421.875,0.09375 L15.625,0.09375 C11.0677083,0.09375 7.32421875,1.55859375 4.39453125,4.48828125 C1.46484375,7.41796875 0,11.1614583 0,15.71875 L0,15.71875 L0,54.78125 C0,59.3385417 1.46484375,63.0820312 4.39453125,66.0117188 C7.32421875,68.9414062 11.0677083,70.40625 15.625,70.40625 L15.625,70.40625 L421.875,70.40625 Z M421.875,226.65625 C426.432292,226.65625 430.175781,225.191406 433.105469,222.261719 C436.035156,219.332031 437.5,215.588542 437.5,211.03125 L437.5,211.03125 L437.5,171.96875 C437.5,167.411458 436.035156,163.667969 433.105469,160.738281 C430.175781,157.808594 426.432292,156.34375 421.875,156.34375 L421.875,156.34375 L15.625,156.34375 C11.0677083,156.34375 7.32421875,157.808594 4.39453125,160.738281 C1.46484375,163.667969 0,167.411458 0,171.96875 L0,171.96875 L0,211.03125 C0,215.588542 1.46484375,219.332031 4.39453125,222.261719 C7.32421875,225.191406 11.0677083,226.65625 15.625,226.65625 L15.625,226.65625 L421.875,226.65625 Z M421.875,382.90625 C426.432292,382.90625 430.175781,381.441406 433.105469,378.511719 C436.035156,375.582031 437.5,371.838542 437.5,367.28125 L437.5,367.28125 L437.5,328.21875 C437.5,323.661458 436.035156,319.917969 433.105469,316.988281 C430.175781,314.058594 426.432292,312.59375 421.875,312.59375 L421.875,312.59375 L15.625,312.59375 C11.0677083,312.59375 7.32421875,314.058594 4.39453125,316.988281 C1.46484375,319.917969 0,323.661458 0,328.21875 L0,328.21875 L0,367.28125 C0,371.838542 1.46484375,375.582031 4.39453125,378.511719 C7.32421875,381.441406 11.0677083,382.90625 15.625,382.90625 L15.625,382.90625 L421.875,382.90625 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:7px;background-size:cover;background-repeat:no-repeat}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#2ee072;border:1px solid #20d565}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.rowHeaders{z-index:2;font-size:10px;display:flex;height:100%}.rowHeaders revogr-data .rgCell{text-align:center}.rowHeaders .rgCell{padding:0 1em !important;min-width:100%}revogr-viewport-scroll{-ms-overflow-style:none;scrollbar-width:none;overflow-x:auto;overflow-y:hidden;position:relative;z-index:1;height:100%}revogr-viewport-scroll::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll.colPinStart,revogr-viewport-scroll.colPinEnd{z-index:2}revogr-viewport-scroll.rgCol{flex-grow:1}revogr-viewport-scroll .content-wrapper{overflow:hidden}revogr-viewport-scroll .inner-content-table{display:flex;flex-direction:column;max-height:100%;width:100%;min-width:100%;position:relative;z-index:0}revogr-viewport-scroll .vertical-inner{overflow-y:auto;position:relative;width:100%;flex-grow:1;-ms-overflow-style:none;scrollbar-width:none;}revogr-viewport-scroll .vertical-inner::-webkit-scrollbar{display:none;-webkit-appearance:none}revogr-viewport-scroll .vertical-inner revogr-data,revogr-viewport-scroll .vertical-inner revogr-overlay-selection{height:100%}";export{Jn as revo_grid,ei as revogr_data,gi as revogr_edit,mi as revogr_focus,Ai as revogr_header,Hi as revogr_order_editor,qi as revogr_overlay_selection,Xi as revogr_row_headers,Qi as revogr_scroll_virtual,to as revogr_temp_range,eo as revogr_viewport_scroll}
|