@revolist/revogrid 3.2.4 → 3.2.7
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/custom-element/index.js +29217 -0
- package/custom-element/resize-observer.js +503 -0
- package/dist/cjs/css-shim-9f5bc84d.js +9 -0
- package/dist/cjs/debounce-6cea2774.js +578 -0
- package/dist/cjs/dom-fcb646f0.js +78 -0
- package/dist/{revo-grid/index-8a604c17.js → cjs/index-cb904e00.js} +230 -1445
- package/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/loader.cjs.js +38 -0
- package/dist/cjs/resize-observer-bf327d6a.js +507 -0
- package/dist/cjs/revo-grid.cjs.js +79 -0
- package/dist/cjs/revo-grid_11.cjs.entry.js +28301 -0
- package/dist/cjs/revogr-clipboard.cjs.entry.js +56 -0
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +278 -0
- package/dist/collection/collection-manifest.json +25 -0
- package/dist/collection/components/button/button.js +7 -0
- package/dist/collection/components/clipboard/revogr-clipboard.js +124 -0
- package/dist/collection/components/data/cellRenderer.js +27 -0
- package/dist/{revo-grid/columnService-91e552ba.js → collection/components/data/columnService.js} +6 -8
- package/dist/collection/components/data/revogr-data-style.css +135 -0
- package/dist/collection/components/data/revogr-data.js +325 -0
- package/dist/collection/components/data/rowRenderer.js +9 -0
- package/dist/collection/components/header/headerCellRenderer.js +29 -0
- package/dist/collection/components/header/headerRenderer.js +48 -0
- package/dist/collection/components/header/revogr-header-style.css +198 -0
- package/dist/collection/components/header/revogr-header.js +300 -0
- package/dist/collection/components/order/orderRenderer.js +53 -0
- package/dist/collection/components/order/revogr-order-editor.js +361 -0
- package/dist/collection/components/order/rowOrderService.js +71 -0
- package/dist/collection/components/overlay/autofill.service.js +185 -0
- package/dist/collection/components/overlay/clipboard.service.js +42 -0
- package/dist/collection/components/overlay/editors/edit.utils.js +8 -0
- package/dist/collection/components/overlay/editors/text.js +38 -0
- package/dist/collection/components/overlay/keyboard.service.js +131 -0
- package/dist/collection/components/overlay/revogr-edit-style.css +86 -0
- package/dist/collection/components/overlay/revogr-edit.js +162 -0
- package/dist/collection/components/overlay/revogr-overlay-selection.js +729 -0
- package/dist/collection/components/overlay/revogr-overlay-style.css +98 -0
- package/dist/{revo-grid/selection.utils-a9932db6.js → collection/components/overlay/selection.utils.js} +9 -12
- package/dist/collection/components/revo-grid/revo-grid-style.css +544 -0
- package/dist/collection/components/revo-grid/revo-grid.js +2226 -0
- package/dist/collection/components/revo-grid/viewport.helpers.js +14 -0
- package/dist/collection/components/revo-grid/viewport.interfaces.js +4 -0
- package/dist/collection/components/revo-grid/viewport.js +21 -0
- package/dist/collection/components/revo-grid/viewport.resize.service.js +24 -0
- package/dist/collection/components/revo-grid/viewport.scrolling.service.js +63 -0
- package/dist/collection/components/revo-grid/viewport.section.js +31 -0
- package/dist/collection/components/revo-grid/viewport.service.js +212 -0
- package/dist/collection/components/rowHeaders/revogr-row-headers.js +213 -0
- package/dist/collection/components/rowHeaders/row-header-render.js +4 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll-style.css +137 -0
- package/dist/collection/components/scroll/revogr-viewport-scroll.js +402 -0
- package/dist/collection/components/scrollable/revogr-scroll-style.css +104 -0
- package/dist/collection/components/scrollable/revogr-scroll-virtual.js +256 -0
- package/dist/collection/components/selection-focus/revogr-focus-style.css +77 -0
- package/dist/collection/components/selection-focus/revogr-focus.js +106 -0
- package/dist/collection/components/selection-temp-range/revogr-temp-range-style.css +98 -0
- package/dist/collection/components/selection-temp-range/revogr-temp-range.js +141 -0
- package/dist/{revo-grid/app-globals-7e6866ba.js → collection/global/global.js} +2 -8
- package/dist/collection/index.js +4 -0
- package/dist/collection/plugins/autoSizeColumn.js +233 -0
- package/dist/collection/plugins/basePlugin.js +30 -0
- package/dist/{revo-grid/dispatcher-891af82e.js → collection/plugins/dispatcher.js} +2 -4
- package/dist/collection/plugins/export/csv.js +71 -0
- package/dist/collection/plugins/export/export.plugin.js +168 -0
- package/dist/collection/plugins/export/types.js +4 -0
- package/dist/collection/plugins/filter/conditions/equal.js +20 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThan.js +13 -0
- package/dist/collection/plugins/filter/conditions/number/greaterThanOrEqual.js +10 -0
- package/dist/collection/plugins/filter/conditions/number/lessThan.js +15 -0
- package/dist/collection/plugins/filter/conditions/number/lessThanOrEqual.js +10 -0
- package/dist/collection/plugins/filter/conditions/set.js +6 -0
- package/dist/collection/plugins/filter/conditions/string/beginswith.js +20 -0
- package/dist/collection/plugins/filter/conditions/string/contains.js +21 -0
- package/dist/{revo-grid/filter.button-74c1cd9c.js → collection/plugins/filter/filter.button.js} +10 -13
- package/dist/collection/plugins/filter/filter.plugin.js +259 -0
- package/dist/collection/plugins/filter/filter.pop.js +488 -0
- package/dist/collection/plugins/filter/filter.service.js +47 -0
- package/dist/collection/plugins/filter/filter.style.css +239 -0
- package/dist/collection/plugins/filter/filter.types.js +4 -0
- package/dist/collection/plugins/groupingColumn/columnGroupsRenderer.js +33 -0
- package/dist/collection/plugins/groupingColumn/grouping.col.plugin.js +39 -0
- package/dist/collection/plugins/groupingColumn/headerGroupRenderer.js +24 -0
- package/dist/collection/plugins/groupingRow/grouping.const.js +13 -0
- package/dist/collection/plugins/groupingRow/grouping.row.expand.service.js +79 -0
- package/dist/collection/plugins/groupingRow/grouping.row.plugin.js +261 -0
- package/dist/collection/plugins/groupingRow/grouping.row.renderer.js +32 -0
- package/dist/collection/plugins/groupingRow/grouping.row.types.js +4 -0
- package/dist/collection/plugins/groupingRow/grouping.service.js +158 -0
- package/dist/collection/plugins/groupingRow/grouping.trimmed.service.js +60 -0
- package/dist/collection/plugins/moveColumn/columnDragPlugin.js +151 -0
- package/dist/collection/plugins/moveColumn/columnOrderHandler.js +63 -0
- package/dist/collection/plugins/sorting/sorting.plugin.js +184 -0
- package/dist/collection/plugins/sorting/sorting.sign.js +9 -0
- package/dist/collection/plugins/stretchPlugin.js +71 -0
- package/dist/collection/plugins/trimmed/trimmed.plugin.js +35 -0
- package/dist/collection/services/cell.helpers.js +10 -0
- package/dist/collection/services/column.data.provider.js +191 -0
- package/dist/collection/services/data.provider.js +50 -0
- package/dist/collection/services/dimension.provider.js +81 -0
- package/dist/{revo-grid/localScrollService-e9b73323.js → collection/services/localScrollService.js} +2 -5
- package/dist/collection/services/resizable.directive.js +255 -0
- package/dist/collection/services/selection.store.connector.js +216 -0
- package/dist/collection/services/viewport.provider.js +17 -0
- package/dist/collection/store/dataSource/data.proxy.js +37 -0
- package/dist/collection/store/dataSource/data.store.js +130 -0
- package/dist/collection/store/dimension/dimension.helpers.js +110 -0
- package/dist/collection/store/dimension/dimension.store.js +62 -0
- package/dist/collection/store/selection/selection.helpers.js +56 -0
- package/dist/collection/store/selection/selection.store.js +71 -0
- package/dist/collection/store/selection/selection.store.service.js +38 -0
- package/dist/collection/store/storeTypes.js +8 -0
- package/dist/{revo-grid/viewport.store-ffaaab6d.js → collection/store/viewPort/viewport.helpers.js} +9 -132
- package/dist/collection/store/viewPort/viewport.store.js +124 -0
- package/dist/collection/themeManager/theme.compact.js +8 -0
- package/dist/collection/themeManager/theme.default.js +8 -0
- package/dist/collection/themeManager/theme.material.js +8 -0
- package/dist/{revo-grid/themeService-ddaaa364.js → collection/themeManager/themeService.js} +6 -23
- package/dist/collection/utils/closestPolifill.js +21 -0
- package/dist/collection/utils/consts.js +22 -0
- package/dist/collection/utils/generateAlphabetHeader.js +23 -0
- package/dist/collection/utils/keyCodes.js +73 -0
- package/dist/collection/utils/keyCodes.utils.js +67 -0
- package/dist/collection/utils/platform.js +8 -0
- package/dist/collection/utils/resizeObserver.js +9 -0
- package/dist/collection/utils/store.utils.js +10 -0
- package/dist/{revo-grid/utils-2c3b3857.js → collection/utils/utils.js} +8 -10
- package/dist/collection/utilsExternal/generate-data.js +132 -0
- package/dist/esm/css-shim-e1e1ea5e.js +7 -0
- package/dist/esm/debounce-e4e6dd45.js +561 -0
- package/dist/esm/dom-21bd1807.js +76 -0
- package/dist/esm/index-6f753b3c.js +1817 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/loader.js +34 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/resize-observer-00c48d78.js +503 -0
- package/dist/esm/revo-grid.js +77 -0
- package/dist/{revo-grid/lodash-a0ab4cdd.js → esm/revo-grid_11.entry.js} +25351 -14282
- package/dist/esm/revogr-clipboard.entry.js +52 -0
- package/dist/esm/revogr-filter-panel.entry.js +274 -0
- package/dist/esm-es5/css-shim-e1e1ea5e.js +4 -0
- package/dist/esm-es5/debounce-e4e6dd45.js +4 -0
- package/dist/esm-es5/dom-21bd1807.js +24 -0
- package/dist/esm-es5/index-6f753b3c.js +4 -0
- package/dist/esm-es5/index.js +3 -0
- package/dist/esm-es5/loader.js +4 -0
- package/dist/esm-es5/resize-observer-00c48d78.js +4 -0
- package/dist/esm-es5/revo-grid.js +4 -0
- package/dist/esm-es5/revo-grid_11.entry.js +4 -0
- package/dist/esm-es5/revogr-clipboard.entry.js +4 -0
- package/dist/esm-es5/revogr-filter-panel.entry.js +4 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/revo-grid/css-shim-bcf89cc0.system.js +4 -0
- package/dist/revo-grid/css-shim-e1e1ea5e.js +4 -0
- package/dist/revo-grid/debounce-5a33c710.system.js +4 -0
- package/dist/revo-grid/debounce-726bdadb.js +4 -0
- package/dist/revo-grid/dom-21bd1807.js +5 -59
- package/dist/revo-grid/dom-726246e2.system.js +24 -0
- package/dist/revo-grid/index-f14b41a0.system.js +5 -0
- package/dist/revo-grid/index-f30d1de1.js +5 -0
- package/dist/revo-grid/index.system.js +4 -0
- package/dist/revo-grid/resize-observer-00c48d78.js +1 -500
- package/dist/revo-grid/resize-observer-8af0bc0e.system.js +4 -0
- package/dist/revo-grid/revo-grid.esm.js +1 -130
- package/dist/revo-grid/revo-grid.js +133 -0
- package/dist/revo-grid/revo-grid.system.js +4 -0
- package/dist/revo-grid/revo-grid_11.entry.js +4 -0
- package/dist/revo-grid/revo-grid_11.system.entry.js +4 -0
- package/dist/revo-grid/revogr-clipboard.entry.js +1 -49
- package/dist/revo-grid/revogr-clipboard.system.entry.js +4 -0
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -274
- package/dist/revo-grid/revogr-filter-panel.system.entry.js +4 -0
- package/dist/types/components/revo-grid/revo-grid.d.ts +0 -1
- package/dist/types/components.d.ts +2 -2
- package/loader/cdn.js +3 -1
- package/loader/index.cjs.js +3 -1
- package/loader/index.d.ts +0 -1
- package/loader/index.es2017.js +3 -1
- package/loader/index.js +3 -1
- package/package.json +1 -1
- package/dist/revo-grid/_baseIteratee-af30b221.js +0 -2070
- package/dist/revo-grid/consts-ef824e6f.js +0 -46
- package/dist/revo-grid/css-shim-5387c708.js +0 -7
- package/dist/revo-grid/data.store-3263fff9.js +0 -557
- package/dist/revo-grid/debounce-aaa4b4da.js +0 -217
- package/dist/revo-grid/dimension.helpers-a7944fc4.js +0 -340
- package/dist/revo-grid/each-0378e5a3.js +0 -180
- package/dist/revo-grid/identity-c8c7d3d8.js +0 -26
- package/dist/revo-grid/isString-a51066b5.js +0 -34
- package/dist/revo-grid/isSymbol-e4b5dafe.js +0 -247
- package/dist/revo-grid/keyCodes.utils-bd06e3ba.js +0 -299
- package/dist/revo-grid/keys-70b7c240.js +0 -561
- package/dist/revo-grid/revo-grid.entry.js +0 -3484
- package/dist/revo-grid/revogr-data.entry.js +0 -152
- package/dist/revo-grid/revogr-edit.entry.js +0 -105
- package/dist/revo-grid/revogr-focus.entry.js +0 -41
- package/dist/revo-grid/revogr-header.entry.js +0 -560
- package/dist/revo-grid/revogr-order-editor.entry.js +0 -175
- package/dist/revo-grid/revogr-overlay-selection.entry.js +0 -711
- package/dist/revo-grid/revogr-row-headers.entry.js +0 -73
- package/dist/revo-grid/revogr-scroll-virtual.entry.js +0 -114
- package/dist/revo-grid/revogr-temp-range.entry.js +0 -73
- package/dist/revo-grid/revogr-viewport-scroll.entry.js +0 -340
- package/dist/revo-grid/selection.store.connector-2b613fd0.js +0 -503
- package/dist/revo-grid/shadow-css-602a09db.js +0 -390
- package/dist/revo-grid/toInteger-9e6cbfd2.js +0 -107
- package/dist/revo-grid/toNumber-913b0b72.js +0 -105
- package/dist/revo-grid/viewport.helpers-49d3f031.js +0 -16
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};
|
|
2
|
+
/*!
|
|
3
|
+
* Built by Revolist
|
|
4
|
+
*/System.register(["./index-f14b41a0.system.js","./debounce-5a33c710.system.js"],(function(e,t){"use strict";var r,n,i,o,a,s,u,l,c,f,v,d,h,p,g,m,C,w,y,b,L;return{setters:[function(e){r=e.g;n=e.f;i=e.h;o=e.r;a=e.c;s=e.H;u=e.e},function(e){l=e.i;c=e._;f=e.c;v=e.a;d=e.b;h=e.d;p=e.e;g=e.f;m=e.t;C=e.g;w=e.F;y=e.h;b=e.j;L=e.k}],execute:function(){var x=function(){function e(){this.defaultRowSize=32}return e}();var _=function(){function e(){this.defaultRowSize=27}return e}();var S=function(){function e(){this.defaultRowSize=42}return e}();var E="default";var k=[E,"material","compact","darkMaterial","darkCompact"];var z=function(){function e(e){this.customRowSize=0;this.customRowSize=e.rowSize;this.register("default")}Object.defineProperty(e.prototype,"theme",{get:function(){return this.currentTheme},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"rowSize",{get:function(){return this.customRowSize||this.currentTheme.defaultRowSize},set:function(e){this.customRowSize=e},enumerable:false,configurable:true});e.prototype.register=function(t){var r=e.getTheme(t);switch(r){case"material":case"darkMaterial":this.currentTheme=new S;break;case"compact":case"darkCompact":this.currentTheme=new x;break;default:this.currentTheme=new _;break}};e.getTheme=function(e){if(k.indexOf(e)>-1){return e}return E};return e}();function R(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}var O=R;function j(e){return function(t,r,n){var i=-1,o=Object(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}var F=j;var P=F();var D=P;function A(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}var M=A;var T="[object Arguments]";function I(e){return l(e)&&c(e)==T}var H=I;var B=Object.prototype;var U=B.hasOwnProperty;var W=B.propertyIsEnumerable;var N=H(function(){return arguments}())?H:function(e){return l(e)&&U.call(e,"callee")&&!W.call(e,"callee")};var V=N;var Z=Array.isArray;var G=Z;function $(){return false}var X=$;var Y=f((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i?v.Buffer:undefined;var a=o?o.isBuffer:undefined;var s=a||X;e.exports=s}));var q=9007199254740991;var K=/^(?:0|[1-9]\d*)$/;function J(e,t){var r=typeof e;t=t==null?q:t;return!!t&&(r=="number"||r!="symbol"&&K.test(e))&&(e>-1&&e%1==0&&e<t)}var Q=J;var ee=9007199254740991;function te(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ee}var re=te;var ne="[object Arguments]",ie="[object Array]",oe="[object Boolean]",ae="[object Date]",se="[object Error]",ue="[object Function]",le="[object Map]",ce="[object Number]",fe="[object Object]",ve="[object RegExp]",de="[object Set]",he="[object String]",pe="[object WeakMap]";var ge="[object ArrayBuffer]",me="[object DataView]",Ce="[object Float32Array]",we="[object Float64Array]",ye="[object Int8Array]",be="[object Int16Array]",Le="[object Int32Array]",xe="[object Uint8Array]",_e="[object Uint8ClampedArray]",Se="[object Uint16Array]",Ee="[object Uint32Array]";var ke={};ke[Ce]=ke[we]=ke[ye]=ke[be]=ke[Le]=ke[xe]=ke[_e]=ke[Se]=ke[Ee]=true;ke[ne]=ke[ie]=ke[ge]=ke[oe]=ke[me]=ke[ae]=ke[se]=ke[ue]=ke[le]=ke[ce]=ke[fe]=ke[ve]=ke[de]=ke[he]=ke[pe]=false;function ze(e){return l(e)&&re(e.length)&&!!ke[c(e)]}var Re=ze;function Oe(e){return function(t){return e(t)}}var je=Oe;var Fe=f((function(e,t){var r=t&&!t.nodeType&&t;var n=r&&"object"=="object"&&e&&!e.nodeType&&e;var i=n&&n.exports===r;var o=i&&d.process;var a=function(){try{var e=n&&n.require&&n.require("util").types;if(e){return e}return o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}));var Pe=Fe&&Fe.isTypedArray;var De=Pe?je(Pe):Re;var Ae=De;var Me=Object.prototype;var Te=Me.hasOwnProperty;function Ie(e,t){var r=G(e),n=!r&&V(e),i=!r&&!n&&Y(e),o=!r&&!n&&!i&&Ae(e),a=r||n||i||o,s=a?M(e.length,String):[],u=s.length;for(var l in e){if((t||Te.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Q(l,u)))){s.push(l)}}return s}var He=Ie;var Be=Object.prototype;function Ue(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Be;return e===r}var We=Ue;function Ne(e,t){return function(r){return e(t(r))}}var Ve=Ne;var Ze=Ve(Object.keys,Object);var Ge=Ze;var $e=Object.prototype;var Xe=$e.hasOwnProperty;function Ye(e){if(!We(e)){return Ge(e)}var t=[];for(var r in Object(e)){if(Xe.call(e,r)&&r!="constructor"){t.push(r)}}return t}var qe=Ye;var Ke="[object AsyncFunction]",Je="[object Function]",Qe="[object GeneratorFunction]",et="[object Proxy]";function tt(e){if(!h(e)){return false}var t=c(e);return t==Je||t==Qe||t==Ke||t==et}var rt=tt;function nt(e){return e!=null&&re(e.length)&&!rt(e)}var it=nt;function ot(e){return it(e)?He(e):qe(e)}var at=ot;function st(e,t){return e&&D(e,t,at)}var ut=st;function lt(e,t){return function(r,n){if(r==null){return r}if(!it(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=Object(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}var ct=lt;var ft=ct(ut);var vt=ft;function dt(){this.__data__=[];this.size=0}var ht=dt;function pt(e,t){return e===t||e!==e&&t!==t}var gt=pt;function mt(e,t){var r=e.length;while(r--){if(gt(e[r][0],t)){return r}}return-1}var Ct=mt;var wt=Array.prototype;var yt=wt.splice;function bt(e){var t=this.__data__,r=Ct(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{yt.call(t,r,1)}--this.size;return true}var Lt=bt;function xt(e){var t=this.__data__,r=Ct(t,e);return r<0?undefined:t[r][1]}var _t=xt;function St(e){return Ct(this.__data__,e)>-1}var Et=St;function kt(e,t){var r=this.__data__,n=Ct(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}var zt=kt;function Rt(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Rt.prototype.clear=ht;Rt.prototype["delete"]=Lt;Rt.prototype.get=_t;Rt.prototype.has=Et;Rt.prototype.set=zt;var Ot=Rt;function jt(){this.__data__=new Ot;this.size=0}var Ft=jt;function Pt(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}var Dt=Pt;function At(e){return this.__data__.get(e)}var Mt=At;function Tt(e){return this.__data__.has(e)}var It=Tt;var Ht=v["__core-js_shared__"];var Bt=Ht;var Ut=function(){var e=/[^.]+$/.exec(Bt&&Bt.keys&&Bt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wt(e){return!!Ut&&Ut in e}var Nt=Wt;var Vt=Function.prototype;var Zt=Vt.toString;function Gt(e){if(e!=null){try{return Zt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $t=Gt;var Xt=/[\\^$.*+?()[\]{}|]/g;var Yt=/^\[object .+?Constructor\]$/;var qt=Function.prototype,Kt=Object.prototype;var Jt=qt.toString;var Qt=Kt.hasOwnProperty;var er=RegExp("^"+Jt.call(Qt).replace(Xt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tr(e){if(!h(e)||Nt(e)){return false}var t=rt(e)?er:Yt;return t.test($t(e))}var rr=tr;function nr(e,t){return e==null?undefined:e[t]}var ir=nr;function or(e,t){var r=ir(e,t);return rr(r)?r:undefined}var ar=or;var sr=ar(v,"Map");var ur=sr;var lr=ar(Object,"create");var cr=lr;function fr(){this.__data__=cr?cr(null):{};this.size=0}var vr=fr;function dr(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}var hr=dr;var pr="__lodash_hash_undefined__";var gr=Object.prototype;var mr=gr.hasOwnProperty;function Cr(e){var t=this.__data__;if(cr){var r=t[e];return r===pr?undefined:r}return mr.call(t,e)?t[e]:undefined}var wr=Cr;var yr=Object.prototype;var br=yr.hasOwnProperty;function Lr(e){var t=this.__data__;return cr?t[e]!==undefined:br.call(t,e)}var xr=Lr;var _r="__lodash_hash_undefined__";function Sr(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=cr&&t===undefined?_r:t;return this}var Er=Sr;function kr(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}kr.prototype.clear=vr;kr.prototype["delete"]=hr;kr.prototype.get=wr;kr.prototype.has=xr;kr.prototype.set=Er;var zr=kr;function Rr(){this.size=0;this.__data__={hash:new zr,map:new(ur||Ot),string:new zr}}var Or=Rr;function jr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Fr=jr;function Pr(e,t){var r=e.__data__;return Fr(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Dr=Pr;function Ar(e){var t=Dr(this,e)["delete"](e);this.size-=t?1:0;return t}var Mr=Ar;function Tr(e){return Dr(this,e).get(e)}var Ir=Tr;function Hr(e){return Dr(this,e).has(e)}var Br=Hr;function Ur(e,t){var r=Dr(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}var Wr=Ur;function Nr(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}Nr.prototype.clear=Or;Nr.prototype["delete"]=Mr;Nr.prototype.get=Ir;Nr.prototype.has=Br;Nr.prototype.set=Wr;var Vr=Nr;var Zr=200;function Gr(e,t){var r=this.__data__;if(r instanceof Ot){var n=r.__data__;if(!ur||n.length<Zr-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Vr(n)}r.set(e,t);this.size=r.size;return this}var $r=Gr;function Xr(e){var t=this.__data__=new Ot(e);this.size=t.size}Xr.prototype.clear=Ft;Xr.prototype["delete"]=Dt;Xr.prototype.get=Mt;Xr.prototype.has=It;Xr.prototype.set=$r;var Yr=Xr;var qr="__lodash_hash_undefined__";function Kr(e){this.__data__.set(e,qr);return this}var Jr=Kr;function Qr(e){return this.__data__.has(e)}var en=Qr;function tn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Vr;while(++t<r){this.add(e[t])}}tn.prototype.add=tn.prototype.push=Jr;tn.prototype.has=en;var rn=tn;function nn(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var on=nn;function an(e,t){return e.has(t)}var sn=an;var un=1,ln=2;function cn(e,t,r,n,i,o){var a=r&un,s=e.length,u=t.length;if(s!=u&&!(a&&u>s)){return false}var l=o.get(e);var c=o.get(t);if(l&&c){return l==t&&c==e}var f=-1,v=true,d=r&ln?new rn:undefined;o.set(e,t);o.set(t,e);while(++f<s){var h=e[f],p=t[f];if(n){var g=a?n(p,h,f,t,e,o):n(h,p,f,e,t,o)}if(g!==undefined){if(g){continue}v=false;break}if(d){if(!on(t,(function(e,t){if(!sn(d,t)&&(h===e||i(h,e,r,n,o))){return d.push(t)}}))){v=false;break}}else if(!(h===p||i(h,p,r,n,o))){v=false;break}}o["delete"](e);o["delete"](t);return v}var fn=cn;var vn=v.Uint8Array;var dn=vn;function hn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}var pn=hn;function gn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}var mn=gn;var Cn=1,wn=2;var yn="[object Boolean]",bn="[object Date]",Ln="[object Error]",xn="[object Map]",_n="[object Number]",Sn="[object RegExp]",En="[object Set]",kn="[object String]",zn="[object Symbol]";var Rn="[object ArrayBuffer]",On="[object DataView]";var jn=p?p.prototype:undefined,Fn=jn?jn.valueOf:undefined;function Pn(e,t,r,n,i,o,a){switch(r){case On:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case Rn:if(e.byteLength!=t.byteLength||!o(new dn(e),new dn(t))){return false}return true;case yn:case bn:case _n:return gt(+e,+t);case Ln:return e.name==t.name&&e.message==t.message;case Sn:case kn:return e==t+"";case xn:var s=pn;case En:var u=n&Cn;s||(s=mn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=wn;a.set(e,t);var c=fn(s(e),s(t),n,i,o,a);a["delete"](e);return c;case zn:if(Fn){return Fn.call(e)==Fn.call(t)}}return false}var Dn=Pn;function An(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}var Mn=An;function Tn(e,t,r){var n=t(e);return G(e)?n:Mn(n,r(e))}var In=Tn;function Hn(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}var Bn=Hn;function Un(){return[]}var Wn=Un;var Nn=Object.prototype;var Vn=Nn.propertyIsEnumerable;var Zn=Object.getOwnPropertySymbols;var Gn=!Zn?Wn:function(e){if(e==null){return[]}e=Object(e);return Bn(Zn(e),(function(t){return Vn.call(e,t)}))};var $n=Gn;function Xn(e){return In(e,at,$n)}var Yn=Xn;var qn=1;var Kn=Object.prototype;var Jn=Kn.hasOwnProperty;function Qn(e,t,r,n,i,o){var a=r&qn,s=Yn(e),u=s.length,l=Yn(t),c=l.length;if(u!=c&&!a){return false}var f=u;while(f--){var v=s[f];if(!(a?v in t:Jn.call(t,v))){return false}}var d=o.get(e);var h=o.get(t);if(d&&h){return d==t&&h==e}var p=true;o.set(e,t);o.set(t,e);var g=a;while(++f<u){v=s[f];var m=e[v],C=t[v];if(n){var w=a?n(C,m,v,t,e,o):n(m,C,v,e,t,o)}if(!(w===undefined?m===C||i(m,C,r,n,o):w)){p=false;break}g||(g=v=="constructor")}if(p&&!g){var y=e.constructor,b=t.constructor;if(y!=b&&("constructor"in e&&"constructor"in t)&&!(typeof y=="function"&&y instanceof y&&typeof b=="function"&&b instanceof b)){p=false}}o["delete"](e);o["delete"](t);return p}var ei=Qn;var ti=ar(v,"DataView");var ri=ti;var ni=ar(v,"Promise");var ii=ni;var oi=ar(v,"Set");var ai=oi;var si=ar(v,"WeakMap");var ui=si;var li="[object Map]",ci="[object Object]",fi="[object Promise]",vi="[object Set]",di="[object WeakMap]";var hi="[object DataView]";var pi=$t(ri),gi=$t(ur),mi=$t(ii),Ci=$t(ai),wi=$t(ui);var yi=c;if(ri&&yi(new ri(new ArrayBuffer(1)))!=hi||ur&&yi(new ur)!=li||ii&&yi(ii.resolve())!=fi||ai&&yi(new ai)!=vi||ui&&yi(new ui)!=di){yi=function(e){var t=c(e),r=t==ci?e.constructor:undefined,n=r?$t(r):"";if(n){switch(n){case pi:return hi;case gi:return li;case mi:return fi;case Ci:return vi;case wi:return di}}return t}}var bi=yi;var Li=1;var xi="[object Arguments]",_i="[object Array]",Si="[object Object]";var Ei=Object.prototype;var ki=Ei.hasOwnProperty;function zi(e,t,r,n,i,o){var a=G(e),s=G(t),u=a?_i:bi(e),l=s?_i:bi(t);u=u==xi?Si:u;l=l==xi?Si:l;var c=u==Si,f=l==Si,v=u==l;if(v&&Y(e)){if(!Y(t)){return false}a=true;c=false}if(v&&!c){o||(o=new Yr);return a||Ae(e)?fn(e,t,r,n,i,o):Dn(e,t,u,r,n,i,o)}if(!(r&Li)){var d=c&&ki.call(e,"__wrapped__"),h=f&&ki.call(t,"__wrapped__");if(d||h){var p=d?e.value():e,g=h?t.value():t;o||(o=new Yr);return i(p,g,r,n,o)}}if(!v){return false}o||(o=new Yr);return ei(e,t,r,n,i,o)}var Ri=zi;function Oi(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!l(e)&&!l(t)){return e!==e&&t!==t}return Ri(e,t,r,n,Oi,i)}var ji=Oi;var Fi=1,Pi=2;function Di(e,t,r,n){var i=r.length,o=i,a=!n;if(e==null){return!o}e=Object(e);while(i--){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e)){return false}}while(++i<o){s=r[i];var u=s[0],l=e[u],c=s[1];if(a&&s[2]){if(l===undefined&&!(u in e)){return false}}else{var f=new Yr;if(n){var v=n(l,c,u,e,t,f)}if(!(v===undefined?ji(c,l,Fi|Pi,n,f):v)){return false}}}return true}var Ai=Di;function Mi(e){return e===e&&!h(e)}var Ti=Mi;function Ii(e){var t=at(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,Ti(i)]}return t}var Hi=Ii;function Bi(e,t){return function(r){if(r==null){return false}return r[e]===t&&(t!==undefined||e in Object(r))}}var Ui=Bi;function Wi(e){var t=Hi(e);if(t.length==1&&t[0][2]){return Ui(t[0][0],t[0][1])}return function(r){return r===e||Ai(r,e,t)}}var Ni=Wi;var Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zi=/^\w*$/;function Gi(e,t){if(G(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||g(e)){return true}return Zi.test(e)||!Vi.test(e)||t!=null&&e in Object(t)}var $i=Gi;var Xi="Expected a function";function Yi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(Xi)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Yi.Cache||Vr);return r}Yi.Cache=Vr;var qi=Yi;var Ki=500;function Ji(e){var t=qi(e,(function(e){if(r.size===Ki){r.clear()}return e}));var r=t.cache;return t}var Qi=Ji;var eo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var to=/\\(\\)?/g;var ro=Qi((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(eo,(function(e,r,n,i){t.push(n?i.replace(to,"$1"):r||e)}));return t}));var no=ro;function io(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}var oo=io;var ao=1/0;var so=p?p.prototype:undefined,uo=so?so.toString:undefined;function lo(e){if(typeof e=="string"){return e}if(G(e)){return oo(e,lo)+""}if(g(e)){return uo?uo.call(e):""}var t=e+"";return t=="0"&&1/e==-ao?"-0":t}var co=lo;function fo(e){return e==null?"":co(e)}var vo=fo;function ho(e,t){if(G(e)){return e}return $i(e,t)?[e]:no(vo(e))}var po=ho;var go=1/0;function mo(e){if(typeof e=="string"||g(e)){return e}var t=e+"";return t=="0"&&1/e==-go?"-0":t}var Co=mo;function wo(e,t){t=po(t,e);var r=0,n=t.length;while(e!=null&&r<n){e=e[Co(t[r++])]}return r&&r==n?e:undefined}var yo=wo;function bo(e,t,r){var n=e==null?undefined:yo(e,t);return n===undefined?r:n}var Lo=bo;function xo(e,t){return e!=null&&t in Object(e)}var _o=xo;function So(e,t,r){t=po(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=Co(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&re(i)&&Q(a,i)&&(G(e)||V(e))}var Eo=So;function ko(e,t){return e!=null&&Eo(e,t,_o)}var zo=ko;var Ro=1,Oo=2;function jo(e,t){if($i(e)&&Ti(t)){return Ui(Co(e),t)}return function(r){var n=Lo(r,e);return n===undefined&&n===t?zo(r,e):ji(t,n,Ro|Oo)}}var Fo=jo;function Po(e){return e}var Do=Po;function Ao(e){return function(t){return t==null?undefined:t[e]}}var Mo=Ao;function To(e){return function(t){return yo(t,e)}}var Io=To;function Ho(e){return $i(e)?Mo(Co(e)):Io(e)}var Bo=Ho;function Uo(e){if(typeof e=="function"){return e}if(e==null){return Do}if(typeof e=="object"){return G(e)?Fo(e[0],e[1]):Ni(e)}return Bo(e)}var Wo=Uo;function No(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}var Vo=No;function Zo(e,t,r){var n=G(e)?O:Vo,i=arguments.length<3;return n(e,Wo(t),r,i,vt)}var Go=Zo;function $o(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}var Xo=$o;function Yo(e){return typeof e=="function"?e:Do}var qo=Yo;function Ko(e,t){var r=G(e)?Xo:vt;return r(e,qo(t))}var Jo=Ko;var Qo=Jo;function ea(e){return function(t,r,n){var i=Object(t);if(!it(t)){var o=Wo(r);t=at(t);r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:undefined}}var ta=ea;function ra(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}var na=ra;var ia=1/0,oa=17976931348623157e292;function aa(e){if(!e){return e===0?e:0}e=m(e);if(e===ia||e===-ia){var t=e<0?-1:1;return t*oa}return e===e?e:0}var sa=aa;function ua(e){var t=sa(e),r=t%1;return t===t?r?t-r:t:0}var la=ua;var ca=Math.max;function fa(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:la(r);if(i<0){i=ca(n+i,0)}return na(e,Wo(t),i)}var va=fa;var da=ta(va);var ha=da;var pa=function(e,t,r){var n=e.get(t);if(!n){e.set(t,[r])}else if(!n.includes(r)){n.push(r)}};var ga=function(e,t){var r;return function(){var n=[];for(var i=0;i<arguments.length;i++){n[i]=arguments[i]}if(r){clearTimeout(r)}r=setTimeout((function(){r=0;e.apply(void 0,n)}),t)}};var ma=function(e){return!("isConnected"in e)||e.isConnected};var Ca=ga((function(e){for(var t=0,r=e.keys();t<r.length;t++){var n=r[t];e.set(n,e.get(n).filter(ma))}}),2e3);var wa=function(e){var t=e.on;var i=new Map;if(typeof r==="function"){t("dispose",(function(){i.clear()}));t("get",(function(e){var t=r();if(t){pa(i,e,t)}}));t("set",(function(e){var t=i.get(e);if(t){i.set(e,t.filter(n))}Ca(i)}));t("reset",(function(){i.forEach((function(e){return e.forEach(n)}));Ca(i)}))}};var ya=function(e,t){if(t===void 0){t=function(e,t){return e!==t}}var r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));var n={dispose:[],get:[],set:[],reset:[]};var i=function(){r=new Map(Object.entries(e!==null&&e!==void 0?e:{}));n.reset.forEach((function(e){return e()}))};var o=function(){n.dispose.forEach((function(e){return e()}));i()};var a=function(e){n.get.forEach((function(t){return t(e)}));return r.get(e)};var s=function(e,i){var o=r.get(e);if(t(i,o,e)){r.set(e,i);n.set.forEach((function(t){return t(e,i,o)}))}};var u=typeof Proxy==="undefined"?{}:new Proxy(e,{get:function(e,t){return a(t)},ownKeys:function(e){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(e,t){return r.has(t)},set:function(e,t,r){s(t,r);return true}});var l=function(e,t){n[e].push(t);return function(){ba(n[e],t)}};var c=function(t,r){var n=l("set",(function(e,n){if(e===t){r(n)}}));var i=l("reset",(function(){return r(e[t])}));return function(){n();i()}};var f=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return e.forEach((function(e){if(e.set){l("set",e.set)}if(e.get){l("get",e.get)}if(e.reset){l("reset",e.reset)}}))};return{state:u,get:a,set:s,on:l,onChange:c,use:f,dispose:o,reset:i}};var ba=function(e,t){var r=e.indexOf(t);if(r>=0){e[r]=e[e.length-1];e.length--}};var La=function(e,t){var r=ya(e,t);wa(r);return r};var xa=Math.ceil,_a=Math.max;function Sa(e,t,r,n){var i=-1,o=_a(xa((t-e)/(r||1)),0),a=Array(o);while(o--){a[n?o:++i]=e;e+=r}return a}var Ea=Sa;function ka(e,t,r){if(!h(r)){return false}var n=typeof t;if(n=="number"?it(r)&&Q(t,r.length):n=="string"&&t in r){return gt(r[t],e)}return false}var za=ka;function Ra(e){return function(t,r,n){if(n&&typeof n!="number"&&za(t,r,n)){r=n=undefined}t=sa(t);if(r===undefined){r=t;t=0}else{r=sa(r)}n=n===undefined?t<r?1:-1:sa(n);return Ea(t,r,n,e)}}var Oa=Ra;var ja=Oa();var Fa=ja;var Pa=function(e){return{set:function(t,r){switch(t){case"trimmed":var n=e.get("proxyItems");var i=Da(r);var o=n.reduce((function(e,t){if(!i[t]){e.push(t)}return e}),[]);e.set("items",o);break}}}};function Da(e){var t={};for(var r in e){for(var n in e[r]){t[n]=t[n]||e[r][n]}}return t}function Aa(e,t){for(var r in t){e.set(r,t[r])}}var Ma=function(e){return{set:function(t,r){if(!Ta(t)){return}var n=e.get("items").reduce((function(e,t){e[t]=true;return e}),{});var i=r.reduce((function(e,t){if(n[t]){e.push(t)}return e}),[]);e.set("items",i)}}};function Ta(e){return e==="proxyItems"}var Ia=function(){function e(e){var t=this.dataStore=La({items:[],proxyItems:[],source:[],groupingDepth:0,groups:{},type:e,trimmed:{}});t.use(Ma(t));t.use(Pa(t))}Object.defineProperty(e.prototype,"store",{get:function(){return this.dataStore},enumerable:false,configurable:true});e.prototype.updateData=function(e,t,r){if(r===void 0){r=false}if(!r){this.store.set("trimmed",{})}this.store.set("items",[]);var n=Fa(0,(e===null||e===void 0?void 0:e.length)||0);Aa(this.store,{source:e,proxyItems:__spreadArray([],n,true)});this.store.set("items",n);if(t){Aa(this.store,{groupingDepth:t.depth,groups:t.groups})}};e.prototype.addTrimmed=function(e){var t=this.store.get("trimmed");t=Object.assign(Object.assign({},t),e);Aa(this.store,{trimmed:t})};e.prototype.setData=function(e){var t=Object.assign({},e);Aa(this.store,t)};e.prototype.refresh=function(){var e=this.store.get("source");this.store.set("source",__spreadArray([],e,true))};return e}();function Ha(e,t){var r=e.get("items");return r[t]}function Ba(e){var t=e.get("source");return e.get("items").map((function(e){return t[e]}))}function Ua(e,t){var r=e.get("items");var n=e.get("source");return n[r[t]]}function Wa(e,t){var r=e.get("items");var n=e.get("source");for(var i in t){var o=r[i];n[o]=t[i]}e.set("source",__spreadArray([],n,true))}function Na(e,t){e.set("items",t)}function Va(e,t){var r=e.get("items");var n=e.get("source");var i=va(n,{prop:t});return r.indexOf(i)}var Za=["rowPinStart","rgRow","rowPinEnd"];var Ga=["colPinStart","rgCol","colPinEnd"];function $a(e){return Za.indexOf(e)>-1}function Xa(e,t){var r=-1,n=it(e)?Array(e.length):[];vt(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}var Ya=Xa;function qa(e,t){var r=G(e)?oo:Ya;return r(e,Wo(t))}var Ka=qa;var Ja=function(){function e(e){this.revogrid=e;this.subscriptions={}}e.prototype.addEventListener=function(e,t){this.revogrid.addEventListener(e,t);this.subscriptions[e]=t};e.prototype.removeEventListener=function(e){this.revogrid.removeEventListener(e,this.subscriptions[e]);delete this.subscriptions[e]};e.prototype.emit=function(e,t){var r=new CustomEvent(e,{detail:t,cancelable:true});this.revogrid.dispatchEvent(r);return r};e.prototype.clearSubscriptions=function(){for(var e in this.subscriptions){this.removeEventListener(e)}};e.prototype.destroy=function(){this.clearSubscriptions()};return e}();var Qa=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.gatherGroup=function(e,t,r,n){var i;if(n===void 0){n=0}var o=Object.assign(Object.assign({},t),{level:n,ids:[]});for(var a in r.columns){var s=a;var u=e.columns[s];var l=r.columns[s];if(G(u)&&G(l)){u.push.apply(u,l);if(l.length){e.columnGrouping[s].push(Object.assign(Object.assign({},o),{ids:Ka(l,"prop")}))}}}for(var a in r.columnGrouping){var s=a;var l=r.columnGrouping[s];(i=e.columnGrouping[s]).push.apply(i,l)}e.maxLevel=Math.max(e.maxLevel,r.maxLevel);e.sort=Object.assign(Object.assign({},e.sort),r.sort);return e};t.isColGrouping=function(e){return!!e.children};return t}(Ja);var es=function(){function e(){this.sorting=null;this.dataSources=Go(Ga,(function(e,t){e[t]=new Ia(t);return e}),{})}Object.defineProperty(e.prototype,"order",{get:function(){return Go(this.sorting,(function(e,t,r){e[r]=t.order;return e}),{})},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"stores",{get:function(){return this.dataSources},enumerable:false,configurable:true});e.prototype.column=function(e,t){return this.getColumn(e,t||"rgCol")};e.prototype.getColumn=function(e,t){return Ua(this.dataSources[t].store,e)};e.prototype.getRawColumns=function(){return Go(this.dataSources,(function(e,t,r){e[r]=t.store.get("source");return e}),{rgCol:[],colPinStart:[],colPinEnd:[]})};e.prototype.getColumns=function(e){var t=this;if(e===void 0){e="all"}if(e!=="all"){return this.dataSources[e].store.get("source")}return Ga.reduce((function(e,r){e.push.apply(e,t.dataSources[r].store.get("source"));return e}),[])};e.prototype.getColumnIndexByProp=function(e,t){return Va(this.dataSources[t].store,e)};e.prototype.getColumnByProp=function(e,t){var r=this.dataSources[t].store.get("source");return ha(r,{prop:e})};e.prototype.refreshByType=function(e){this.dataSources[e].refresh()};e.prototype.setColumns=function(e){var t=this;Qo(Ga,(function(r){t.dataSources[r].updateData(e.columns[r],{depth:e.maxLevel,groups:Go(e.columnGrouping[r],(function(e,t){if(!e[t.level]){e[t.level]=[]}e[t.level].push(t);return e}),{})})}));this.sorting=e.sort;return e};e.prototype.updateColumns=function(t){var r=this;var n=t.reduce((function(t,r){var n=e.getColumnType(r);if(!t[n]){t[n]={}}t[n][r.prop]=r;return t}),{});var i={};Qo(n,(function(e,t){var n=r.dataSources[t].store.get("source");i[t]=n.reduce((function(t,r,n){var i=e[r.prop];if(i){t[n]=i}return t}),{})}));Qo(i,(function(e,t){return Wa(r.dataSources[t].store,e)}))};e.prototype.updateColumn=function(t,r){var n;var i=e.getColumnType(t);Wa(this.dataSources[i].store,(n={},n[r]=t,n))};e.prototype.updateColumnSorting=function(e,t,r,n){if(!n){this.clearSorting()}e.order=r;this.sorting[e.prop]=e;this.updateColumn(e,t);return e};e.prototype.clearSorting=function(){var t=this;var r=Go(this.sorting,(function(t,r){var n=e.getColumnType(r);t[n]=true;return t}),{});Qo(r,(function(e,r){var n=t.dataSources[r].store.get("source");Qo(n,(function(e){return e.order=undefined}));t.dataSources[r].setData({source:__spreadArray([],n,true)})}));this.sorting={}};e.getSizes=function(e){return Go(e,(function(e,t,r){if(t.size){e[r]=t.size}return e}),{})};e.getColumnByProp=function(t,r){return ha(t,(function(t){if(Qa.isColGrouping(t)){return e.getColumnByProp(t.children,r)}return t.prop===r}))};e.getColumns=function(t,r,n){if(r===void 0){r=0}return Go(t,(function(t,i){if(Qa.isColGrouping(i)){return Qa.gatherGroup(t,i,e.getColumns(i.children,r+1,n),r)}var o=Object.assign(Object.assign({},i.columnType&&n&&n[i.columnType]),i);if(!o.pin){t.columns.rgCol.push(o)}else{t.columns[o.pin].push(o)}if(o.order){t.sort[o.prop]=o}o.beforeSetup&&o.beforeSetup(o);return t}),{columns:{rgCol:[],colPinStart:[],colPinEnd:[]},columnGrouping:{rgCol:[],colPinStart:[],colPinEnd:[]},maxLevel:r,sort:{}})};e.getColumnType=function(e){if(e.pin){return e.pin}return"rgCol"};return e}();var ts=function(){function e(e){this.dimensionProvider=e;this.stores=Go(Za,(function(e,t){e[t]=new Ia(t);return e}),{})}e.prototype.setData=function(e,t,r,n){if(t===void 0){t="rgRow"}if(n===void 0){n=false}this.stores[t].updateData(__spreadArray([],e,true),r,n);this.dimensionProvider.setData(e,t,t!=="rgRow");return e};e.prototype.getModel=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t].store;return Ua(r,e)};e.prototype.setCellData=function(e){var t;var r=e.type,n=e.rowIndex,i=e.prop,o=e.val;var a=this.getModel(n,r);a[i]=o;Wa(this.stores[r].store,(t={},t[n]=a,t))};e.prototype.refresh=function(e){var t=this;if(e===void 0){e="all"}if($a(e)){this.refreshItems(e)}Za.forEach((function(e){return t.refreshItems(e)}))};e.prototype.refreshItems=function(e){if(e===void 0){e="rgRow"}var t=this.stores[e].store.get("items");this.stores[e].setData({items:__spreadArray([],t,true)})};e.prototype.setGrouping=function(e,t){var r=e.depth;if(t===void 0){t="rgRow"}this.stores[t].setData({groupingDepth:r})};e.prototype.setTrimmed=function(e,t){if(t===void 0){t="rgRow"}var r=this.stores[t];r.addTrimmed(e);if(t==="rgRow"){this.dimensionProvider.setData(Ba(r.store),t)}};return e}();var rs=4294967295,ns=rs-1;var is=Math.floor,os=Math.min;function as(e,t,r,n){var i=0,o=e==null?0:e.length;if(o===0){return 0}t=r(t);var a=t!==t,s=t===null,u=g(t),l=t===undefined;while(i<o){var c=is((i+o)/2),f=r(e[c]),v=f!==undefined,d=f===null,h=f===f,p=g(f);if(a){var m=n||h}else if(l){m=h&&(n||v)}else if(s){m=h&&v&&(n||!d)}else if(u){m=h&&v&&!d&&(n||!p)}else if(d||p){m=false}else{m=n?f<=t:f<t}if(m){i=c+1}else{o=c}}return os(o,ns)}var ss=as;var us=4294967295,ls=us>>>1;function cs(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=ls){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!g(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return ss(e,t,Do,r)}var fs=cs;function vs(e,t){return fs(e,t)}var ds=vs;function hs(e,t){return e<t}function ps(e,t,r){if(r===void 0){r=hs}var n=[];var i=0;var o=0;var a=0;while(a<e.length+t.length){var s=i>=e.length;var u=o>=t.length;if(!s&&(u||r(e[i],t[o]))){n[a]=e[i];i++}else{n[a]=t[o];o++}a++}return n}function gs(e){var t=e.createElement("div");var r=t.style;r.visibility="hidden";r.overflow="scroll";r.msOverflowStyle="scrollbar";e.body.appendChild(t);var n=e.createElement("div");t.appendChild(n);var i=t.offsetWidth-n.offsetWidth;t.parentNode.removeChild(t);return i}function ms(e,t,r){return(r[1]-r[0])*(e-t[0])/(t[1]-t[0])+r[0]}function Cs(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,new Promise((function(t){setTimeout((function(){return t()}),e)}))];case 1:t.sent();return[2]}}))}))}function ws(e,t){var r=[];var n={};var i={};var o=0;var a=Object.assign(Object.assign({},e.sizes),t);var s=[];Qo(t,(function(t,r){if(!e.sizes[r]){o+=t-(e.realSize?e.originItemSize:0);s.splice(ds(s,parseInt(r,10)),0,parseInt(r,10))}else{o+=t-e.sizes[r]}}));var u=ps(e.indexes,s);Go(u,(function(t,o,s){var u={itemIndex:o,start:0,end:0};if(t){u.start=(o-t.itemIndex-1)*e.originItemSize+t.end}else{u.start=o*e.originItemSize}u.end=u.start+a[o];r.push(u.start);i[o]=n[s]=u;return u}),undefined);return{indexes:u,positionIndexes:__spreadArray([],r,true),positionIndexToItem:Object.assign({},n),indexToItem:i,realSize:e.realSize+o,sizes:a}}function ys(e,t){var r=e.indexes,n=e.positionIndexes,i=e.originItemSize,o=e.positionIndexToItem;var a={itemIndex:0,start:0,end:0};var s=r.length?ds(n,t):0;if(!s){a.itemIndex=Math.floor(t/i);a.start=a.itemIndex*i;a.end=a.start+i;return a}var u=o[s-1];if(u.end>t){return u}var l=t-u.end;var c=Math.floor(l/i);a.itemIndex=u.itemIndex+1+c;a.start=u.end+c*i;a.end=a.start+i;return a}function bs(e,t){var r={itemIndex:t,start:0,end:0};if(e.indexToItem[t]){return e.indexToItem[t]}var n=e.indexes.length?ds(e.indexes,t):0;if(!n){r.start=r.itemIndex*e.originItemSize;r.end=r.start+e.originItemSize;return r}var i=e.indexToItem[e.indexes[n-1]];r.start=i.end+(t-i.itemIndex-1)*e.originItemSize;r.end=r.start+e.originItemSize;return r}function Ls(){return{indexes:[],sizes:{},positionIndexToItem:{},indexToItem:{},positionIndexes:[]}}function xs(){return Object.assign(Object.assign({},Ls()),{realSize:0,originItemSize:0,frameOffset:0})}var _s=function(){function e(){this.store=La(xs())}e.prototype.getCurrentState=function(){var e=this;var t=xs();var r=Object.keys(t);return Go(r,(function(t,r){var n=e.store.get(r);t[r]=n;return t}),t)};e.prototype.setRealSize=function(e){var t=0;for(var r=0;r<e;r++){t+=this.store.get("sizes")[r]||this.store.get("originItemSize")}Aa(this.store,{realSize:t})};e.prototype.setStore=function(e){Aa(this.store,e)};e.prototype.drop=function(){Aa(this.store,Ls())};e.prototype.setDimensionSize=function(e){var t=ws(this.getCurrentState(),e);Aa(this.store,t);return t};return e}();var Ss=function(){function e(e){this.viewports=e;this.stores=Go(__spreadArray(__spreadArray([],Za,true),Ga,true),(function(e,t){e[t]=new _s;return e}),{})}e.prototype.setDimensionSize=function(e,t){this.stores[e].setDimensionSize(t);this.viewports.stores[e].setViewPortDimension(t)};e.prototype.setRealSize=function(e,t){this.viewports.stores[t].setViewport({realCount:e});this.stores[t].setRealSize(e)};e.prototype.setData=function(e,t,r){if(r===void 0){r=false}this.setRealSize(e.length,t);if(r){this.setNoVirtual(t)}this.setViewPortCoordinate({coordinate:this.viewports.stores[t].store.get("lastCoordinate"),type:t})};e.prototype.setNoVirtual=function(e){var t=this.stores[e].getCurrentState();this.viewports.stores[e].setViewport({virtualSize:t.realSize})};e.prototype.drop=function(){for(var e=0,t=Ga;e<t.length;e++){var r=t[e];this.stores[r].drop()}};e.prototype.setColumns=function(e,t,r){if(r===void 0){r=false}this.stores[e].setDimensionSize(t);if(r){this.setNoVirtual(e)}this.setViewPortCoordinate({coordinate:this.viewports.stores[e].store.get("lastCoordinate"),type:e})};e.prototype.setViewPortCoordinate=function(e){var t=e.coordinate,r=e.type;var n=this.stores[r].getCurrentState();this.viewports.stores[r].setViewPortCoordinate(t,n)};e.prototype.getViewPortPos=function(e){var t=this.stores[e.dimension].getCurrentState();var r=bs(t,e.coordinate);return r.start};e.prototype.setSettings=function(e,t){var r=[];switch(t){case"rgCol":r=Ga;break;case"rgRow":r=Za;break}for(var n=0,i=r;n<i.length;n++){var o=i[n];this.stores[o].setStore(e)}};return e}();function Es(e,t,r,n,i){var o=ys(i,e);var a=Ps(t);var s;if(a){var u=o.itemIndex-(a.itemIndex||0);if(u){var l=Os(Math.abs(u),Object.assign(Object.assign({positiveDirection:u>-1},i),t));if(l){s=l}if(s){var c=zs(o,r,n,s,i);if(c.length){ks(s.items,c,s)}}}}if(!s){var f=Rs({start:o.start,startIndex:o.itemIndex,origSize:i.originItemSize,maxSize:n,maxCount:r,sizes:i.sizes});s={items:f,start:0,end:f.length-1}}return s}function ks(e,t,r){e.splice.apply(e,__spreadArray([r.end+1,0],t,false));if(r.start>=r.end&&!(r.start===r.end&&r.start===0)){r.start+=t.length}r.end+=t.length}function zs(e,t,r,n,i){var o=Ds(n);var a=Rs({sizes:i.sizes,start:o.end,startIndex:o.itemIndex+1,origSize:i.originItemSize,maxSize:r-(o.end-e.start),maxCount:t});return a}function Rs(e,t){if(t===void 0){t=0}var r=[];var n=e.startIndex;var i=t;while(i<=e.maxSize&&n<e.maxCount){var o=js(n,e.sizes,e.origSize);r.push({start:e.start+i,end:e.start+i+o,itemIndex:n,size:o});i+=o;n++}return r}function Os(e,t){var r=__spreadArray([],t.items,true);var n=r.length;var i={start:t.start,end:t.end};if(e>n){return null}if(t.positiveDirection){var o=Ds(t);var a=i.start;var s=a+e;for(;a<s;a++){var u=o.itemIndex+1;var l=js(u,t.sizes,t.originItemSize);if(o.end+l>t.realSize){break}var c=a%n;if(!r[c]){throw new Error("incorrect index")}r[c]=o={start:o.end,end:o.end+l,itemIndex:u,size:l};i.start++;i.end=c}}else{var f=Ps(t);var v=i.end;for(var a=0;a<e;a++){var u=f.itemIndex-1;var d=js(u,t.sizes,t.originItemSize);var h=v-a;h=(h<0?n+h:h)%n;if(!r[h]){throw new Error("incorrect index")}r[h]=f={start:f.start-d,end:f.start,itemIndex:u,size:d};i.start=h;i.end--}}var p={start:(i.start<0?n+i.start:i.start)%n,end:(i.end<0?n+i.end:i.end)%n};return Object.assign({items:r},p)}function js(e,t,r){if(r===void 0){r=0}if(t&&t[e]){return t[e]}return r}function Fs(e,t){return t&&e>=t.start&&e<=t.end}function Ps(e){return e.items[e.start]}function Ds(e){return e.items[e.end]}function As(){return{items:[],start:0,end:0,virtualSize:0,realCount:0,lastCoordinate:0}}var Ms=function(){function e(){var e=this;this.store=La(As());this.store.onChange("realCount",(function(){return e.clear()}))}e.prototype.setViewPortCoordinate=function(e,t){var r=this.store.get("virtualSize");if(!r){return}var n=t.frameOffset;var i=n*2*t.originItemSize;r+=i;var o=r;if(t.realSize>r){o=t.realSize-r}var a={lastCoordinate:e};var s=e;s-=n*t.originItemSize;s=s<0?0:s<o?s:o;var u=Ps(this.getItems());var l=Ds(this.getItems());if(!Fs(s,u)){a=Object.assign(Object.assign({},a),Es(s,this.getItems(),this.store.get("realCount"),r,t));Aa(this.store,Object.assign({},a))}else if(u&&this.store.get("virtualSize")+s>(l===null||l===void 0?void 0:l.end)){var c=zs(u,this.store.get("realCount"),r+s-u.start,this.getItems(),t);if(c.length){var f=__spreadArray([],this.store.get("items"),true);var v={start:this.store.get("start"),end:this.store.get("end")};ks(f,c,v);a=Object.assign(Object.assign(Object.assign({},a),{items:__spreadArray([],f,true)}),v);Aa(this.store,Object.assign({},a))}}};e.prototype.setViewPortDimension=function(e){var t=this.store.get("items");var r=t.length;if(!r){return}var n=0;var i=0;var o=this.store.get("start");while(i<r){var a=t[o];if(n){a.start+=n;a.end+=n}var s=e[a.itemIndex];if(s){var u=s-a.size;n+=u;a.size=s;a.end=a.start+s}o++;i++;if(o===r){o=0}}Aa(this.store,{items:__spreadArray([],t,true)})};e.prototype.getItems=function(){return{items:this.store.get("items"),start:this.store.get("start"),end:this.store.get("end")}};e.prototype.setViewport=function(e){Aa(this.store,e)};e.prototype.clear=function(){this.store.set("items",[])};return e}();var Ts=function(){function e(){this.stores=Go(__spreadArray(__spreadArray([],Za,true),Ga,true),(function(e,t){e[t]=new Ms;return e}),{})}e.prototype.setViewport=function(e,t){this.stores[e].setViewport(t)};return e}();var Is=7;var Hs;(function(e){e["headerClickAutosize"]="headerClickAutoSize";e["autoSizeOnTextOverlap"]="autoSizeOnTextOverlap";e["autoSizeAll"]="autoSizeAll"})(Hs||(Hs={}));var Bs=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t)||this;i.providers=r;i.config=n;i.autoSizeColumns=null;i.dataResolve=null;i.dataReject=null;i.letterBlockSize=(n===null||n===void 0?void 0:n.letterBlockSize)||Is;if(n===null||n===void 0?void 0:n.preciseSize){i.precsizeCalculationArea=i.initiatePresizeElement();t.appendChild(i.precsizeCalculationArea)}var o=function(e){var t=e.detail.source;i.setSource(t)};var a=function(e){var t=e.detail;i.afteredit(t)};var s=function(e){var t=e.detail;i.afterEditAll(t)};var u=function(e){var t=e.detail.columns;i.columnSet(t)};var l=function(e){var t;var r=e.detail;var n=es.getColumnType(r);var o=i.getColumnSize(r.index,n);if(o){i.providers.dimensionProvider.setDimensionSize(n,(t={},t[r.index]=o,t))}};i.addEventListener("beforecolumnsset",u);switch(n===null||n===void 0?void 0:n.mode){case Hs.autoSizeOnTextOverlap:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",a);break;case Hs.autoSizeAll:i.addEventListener("aftersourceset",o);i.addEventListener("afteredit",s);break;default:i.addEventListener("headerdblClick",l);break}return i}t.prototype.setSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;var i=this;return __generator(this,(function(o){switch(o.label){case 0:t=this.autoSizeColumns;if(this.dataReject){this.dataReject();this.clearPromise()}if(!!t)return[3,4];r=new Promise((function(e,t){i.dataResolve=e;i.dataReject=t}));o.label=1;case 1:o.trys.push([1,3,,4]);return[4,r];case 2:t=o.sent();return[3,4];case 3:n=o.sent();return[2];case 4:Qo(t,(function(r,n){var o={};Qo(t[n],(function(t){t.size=o[t.index]=e.reduce((function(e,r){return Math.max(e,i.getLength(r[t.prop]))}),i.getLength(t.name||""))}));i.providers.dimensionProvider.setDimensionSize(n,o)}));return[2]}}))}))};t.prototype.getLength=function(e){var t;var r=15;if(!e){return 0}try{var n=e.toString();if((t=this.config)===null||t===void 0?void 0:t.preciseSize){this.precsizeCalculationArea.innerText=n;return this.precsizeCalculationArea.scrollWidth+r*2}return n.length*this.letterBlockSize+r*2}catch(e){return 0}};t.prototype.afteredit=function(e){var t;var r=this;var n;if(this.isRangeEdit(e)){n=e.data}else{n={0:(t={},t[e.prop]=e.val,t)}}Qo(this.autoSizeColumns,(function(e,t){var i={};Qo(e,(function(e){var t=Go(n,(function(t,n){if(typeof n[e.prop]==="undefined"){return t}return Math.max(t||0,r.getLength(n[e.prop]))}),undefined);if(t&&e.size<t){e.size=i[e.index]=t}}));r.providers.dimensionProvider.setDimensionSize(t,i)}))};t.prototype.afterEditAll=function(e){var t=this;var r={};if(this.isRangeEdit(e)){Qo(e.data,(function(e){return Qo(e,(function(e,t){return r[t]=true}))}))}else{r[e.prop]=true}Qo(this.autoSizeColumns,(function(e,n){var i={};Qo(e,(function(e){if(r[e.prop]){var o=t.getColumnSize(e.index,n);if(o){i[e.index]=o}}}));t.providers.dimensionProvider.setDimensionSize(n,i)}))};t.prototype.getColumnSize=function(e,t){var r=this;var n=this.autoSizeColumns[t][e];if(!n){return 0}return Go(this.providers.dataProvider.stores,(function(e,t){var i=Go(t.store.get("items"),(function(e,i,o){var a=Ua(t.store,o);return Math.max(e||0,r.getLength(a[n.prop]))}),0);return Math.max(e,i)}),n.size||0)};t.prototype.columnSet=function(e){var t;for(var r=0,n=Ga;r<n.length;r++){var i=n[r];var o=i;var a=e[o];for(var s in a){if(a[s].autoSize||((t=this.config)===null||t===void 0?void 0:t.allColumns)){if(!this.autoSizeColumns){this.autoSizeColumns={}}if(!this.autoSizeColumns[o]){this.autoSizeColumns[o]={}}this.autoSizeColumns[o][s]=Object.assign(Object.assign({},a[s]),{index:parseInt(s,10)})}}}if(this.dataResolve){this.dataResolve(this.autoSizeColumns);this.clearPromise()}};t.prototype.clearPromise=function(){this.dataResolve=null;this.dataReject=null};t.prototype.isRangeEdit=function(e){return!!e.data};t.prototype.initiatePresizeElement=function(){var e={position:"absolute",fontSize:"14px",height:"0",width:"0",whiteSpace:"nowrap",top:"0",overflowX:"scroll"};var t=document.createElement("div");for(var r in e){t.style[r]=e[r]}t.classList.add("revo-test-container");return t};t.prototype.destroy=function(){var t;e.prototype.destroy.call(this);(t=this.precsizeCalculationArea)===null||t===void 0?void 0:t.remove()};return t}(Ja);var Us=function(e,t){if(typeof e==="undefined"||e===null&&!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}var r=t.toString().toLocaleLowerCase();if(r.length===0){return true}return e.toLocaleLowerCase()===r};var Ws=function(e,t){return!Us(e,t)};Ws.extra="input";Us.extra="input";var Ns=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e>r}return false};Ns.extra="input";var Vs=function(e,t){return Us(e,t)||Ns(e,t)};Vs.extra="input";var Zs=function(e,t){var r;if(typeof e==="number"){r=parseFloat(t===null||t===void 0?void 0:t.toString());return e<r}else{return false}};Zs.extra="input";var Gs=function(e,t){return Us(e,t)||Zs(e,t)};Gs.extra="input";var $s=function(e){return!(e===""||e===null||e===void 0)};var Xs=function(e){return!$s(e)};var Ys=function(e,t){if(!e){return false}if(!t){return true}if(typeof e!=="string"){e=JSON.stringify(e)}if(typeof t!=="string"){t=JSON.stringify(t)}return e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())===0};Ys.extra="input";var qs=function(e,t){if(!e){return false}if(t){if(typeof e!=="string"){e=JSON.stringify(e)}return e.toLocaleLowerCase().indexOf(t.toString().toLowerCase())>-1}return true};var Ks=function(e,t){return!qs(e,t)};Ks.extra="input";qs.extra="input";var Js={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:"<="};var Qs={none:function(){return true},empty:Xs,notEmpty:$s,eq:Us,notEq:Ws,begins:Ys,contains:qs,notContains:Ks,eqN:Us,neqN:Ws,gt:Ns,gte:Vs,lt:Zs,lte:Gs};var eu={string:["notEmpty","empty","eq","notEq","begins","contains","notContains"],number:["notEmpty","empty","eqN","neqN","gt","gte","lt","lte"]};var tu="filter";var ru=function(e){__extends(t,e);function t(t,r,n){var o=this;var a;o=e.call(this,t)||this;o.revogrid=t;o.filterCollection={};o.multiFilterItems={};o.possibleFilters=Object.assign({},eu);o.possibleFilterNames=Object.assign({},Js);o.possibleFilterEntities=Object.assign({},Qs);if(n){o.initConfig(n)}var s=function(e){return o.headerclick(e)};var u=function(){return __awaiter(o,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(r){switch(r.label){case 0:e=Object.keys(this.filterCollection);if(e.length>0){e.forEach((function(e,r){if(!t.multiFilterItems[e]){t.multiFilterItems[e]=[{id:r,type:t.filterCollection[e].type,value:t.filterCollection[e].value,relation:"and"}]}}))}return[4,this.runFiltering()];case 1:r.sent();return[2]}}))}))};o.addEventListener("headerclick",s);o.addEventListener("aftersourceset",u);o.revogrid.registerVNode([i("revogr-filter-panel",{uuid:"filter-".concat(r),filterItems:o.multiFilterItems,filterNames:o.possibleFilterNames,filterEntities:o.possibleFilterEntities,filterCaptions:(a=n===null||n===void 0?void 0:n.localization)===null||a===void 0?void 0:a.captions,onFilterChange:function(e){return o.onFilterChange(e.detail)},disableDynamicFiltering:n===null||n===void 0?void 0:n.disableDynamicFiltering,ref:function(e){return o.pop=e}})]);return o}t.prototype.initConfig=function(e){var t=this;if(e.collection){this.filterCollection=Object.assign({},e.collection)}if(e.multiFilterItems){this.multiFilterItems=Object.assign({},e.multiFilterItems)}if(e.customFilters){for(var r in e.customFilters){var n=e.customFilters[r];if(!this.possibleFilters[n.columnFilterType]){this.possibleFilters[n.columnFilterType]=[]}this.possibleFilters[n.columnFilterType].push(r);this.possibleFilterEntities[r]=n.func;this.possibleFilterNames[r]=n.name}}if(e.include){var i={};for(var o in this.possibleFilters){var a=this.possibleFilters[o].filter((function(t){return e.include.indexOf(t)>-1}));if(a.length){i[o]=a}}if(Object.keys(i).length>0){this.possibleFilters=i}}if(e.localization){if(e.localization.filterNames){Object.entries(e.localization.filterNames).forEach((function(e){var r=e[0],n=e[1];if(t.possibleFilterNames[r]!=void 0){t.possibleFilterNames[r]=n}}))}}};t.prototype.headerclick=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a;return __generator(this,(function(s){switch(s.label){case 0:r=(t=e.detail.originalEvent)===null||t===void 0?void 0:t.target;if(!C(r)){return[2]}e.preventDefault();return[4,this.pop.getChanges()];case 1:n=s.sent();if(n&&(n===null||n===void 0?void 0:n.prop)===e.detail.prop){this.pop.show();return[2]}i=this.revogrid.getBoundingClientRect();o=r.getBoundingClientRect();a=e.detail.prop;this.pop.filterTypes=this.getColumnFilter(e.detail.filter);this.pop.show(Object.assign(Object.assign({},this.filterCollection[a]),{x:o.x-i.x,y:o.y-i.y+o.height,prop:a}));return[2]}}))}))};t.prototype.getColumnFilter=function(e){var t,r;var n=this;var i="string";if(!e){return t={},t[i]=this.possibleFilters[i],t}if(this.isValidType(e)){i=e}else if(typeof e==="object"&&e.length){return e.reduce((function(e,t){if(n.isValidType(t)){e[t]=n.possibleFilters[t]}return e}),{})}return r={},r[i]=this.possibleFilters[i],r};t.prototype.isValidType=function(e){return!!(typeof e==="string"&&this.possibleFilters[e])};t.prototype.onFilterChange=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.multiFilterItems=e;this.runFiltering();return[2]}))}))};t.prototype.doFiltering=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:i=[];r.forEach((function(e){var t=Object.assign({},e);var r=n[t.prop];if(t[w]&&!r){delete t[w];i.push(t)}if(!t[w]&&r){i.push(t);t[w]=true}}));o=this.getRowFilter(t,n);a=this.emit("beforefiltertrimmed",{collection:e,itemsToFilter:o,source:t,filterItems:n}),s=a.defaultPrevented,u=a.detail;if(s){return[2]}return[4,this.revogrid.addTrimmed(u.itemsToFilter,tu)];case 1:l=c.sent();if(l.defaultPrevented){return[2]}return[4,this.revogrid.updateColumns(i)];case 2:c.sent();this.emit("afterFilterApply");return[2]}}))}))};t.prototype.clearFiltering=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.multiFilterItems={};return[4,this.runFiltering()];case 1:e.sent();return[2]}}))}))};t.prototype.runFiltering=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s,u,l,c,f;return __generator(this,(function(v){switch(v.label){case 0:e={};t=Object.keys(this.multiFilterItems);for(r=0,n=t;r<n.length;r++){i=n[r];if(this.multiFilterItems[i].length>0){o=this.multiFilterItems[i][0];e[i]={filter:Qs[o.type],type:o.type,value:o.value}}}this.filterCollection=e;return[4,this.getData()];case 1:a=v.sent(),s=a.source,u=a.columns;l=this.emit("beforefilterapply",{collection:this.filterCollection,source:s,columns:u,filterItems:this.multiFilterItems}),c=l.defaultPrevented,f=l.detail;if(c){return[2]}this.doFiltering(f.collection,f.source,f.columns,f.filterItems);return[2]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.revogrid.getSource()];case 1:e=r.sent();return[4,this.revogrid.getColumns()];case 2:t=r.sent();return[2,{source:e,columns:t}]}}))}))};t.prototype.getRowFilter=function(e,t){var r=Object.keys(t);var n={};var i=0;var o=[];e.forEach((function(e,a){for(var s=0,u=r;s<u.length;s++){var l=u[s];var c=t[l];i=0;o=[];for(var f=0,v=c.entries();f<v.length;f++){var d=v[f],h=d[0],p=d[1];var g=Qs[p.type];if(p.relation==="or"){o=[];if(g(e[l],p.value)){continue}i++}else{o.push(!g(e[l],p.value));var m=c[h+1];if(!m||m.relation!=="and"){if(o.indexOf(true)===-1){o=[];continue}i+=o.length;o=[]}}}if(i===c.length)n[a]=true}}));return n};return t}(Ja);var nu="[object String]";function iu(e){return typeof e=="string"||!G(e)&&l(e)&&c(e)==nu}var ou=iu;var au=Mo("length");var su=au;var uu="\\ud800-\\udfff",lu="\\u0300-\\u036f",cu="\\ufe20-\\ufe2f",fu="\\u20d0-\\u20ff",vu=lu+cu+fu,du="\\ufe0e\\ufe0f";var hu="\\u200d";var pu=RegExp("["+hu+uu+vu+du+"]");function gu(e){return pu.test(e)}var mu=gu;var Cu="\\ud800-\\udfff",wu="\\u0300-\\u036f",yu="\\ufe20-\\ufe2f",bu="\\u20d0-\\u20ff",Lu=wu+yu+bu,xu="\\ufe0e\\ufe0f";var _u="["+Cu+"]",Su="["+Lu+"]",Eu="\\ud83c[\\udffb-\\udfff]",ku="(?:"+Su+"|"+Eu+")",zu="[^"+Cu+"]",Ru="(?:\\ud83c[\\udde6-\\uddff]){2}",Ou="[\\ud800-\\udbff][\\udc00-\\udfff]",ju="\\u200d";var Fu=ku+"?",Pu="["+xu+"]?",Du="(?:"+ju+"(?:"+[zu,Ru,Ou].join("|")+")"+Pu+Fu+")*",Au=Pu+Fu+Du,Mu="(?:"+[zu+Su+"?",Su,Ru,Ou,_u].join("|")+")";var Tu=RegExp(Eu+"(?="+Eu+")|"+Mu+Au,"g");function Iu(e){var t=Tu.lastIndex=0;while(Tu.test(e)){++t}return t}var Hu=Iu;function Bu(e){return mu(e)?Hu(e):su(e)}var Uu=Bu;var Wu="[object Map]",Nu="[object Set]";function Vu(e){if(e==null){return 0}if(it(e)){return ou(e)?Uu(e):e.length}var t=bi(e);if(t==Wu||t==Nu){return e.size}return qe(e).length}var Zu=Vu;var Gu=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.revogrid=t;r.sorting=null;r.sortingFunc=null;var n=function(e){var t=e.detail;if(r.hasSorting){var n=r.emit("beforesourcesortingapply");if(n.defaultPrevented){return}}var i=r.setData(t.source,t.type);if(i){t.source=i}};var i=function(e){var t=e.detail.order;return __awaiter(r,void 0,void 0,(function(){var e,r,n,i,o;return __generator(this,(function(a){switch(a.label){case 0:return[4,this.revogrid.getColumns()];case 1:e=a.sent();r={};for(n in t){i=es.getColumnByProp(e,n);o=(i===null||i===void 0?void 0:i.cellCompare)||this.defaultCellCompare;r[n]=t[n]=="desc"?this.descCellCompare(o):o}this.sort(t,r);return[2]}}))}))};var o=function(e){return __awaiter(r,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){if(e.defaultPrevented){return[2]}if(!e.detail.column.sortable){return[2]}this.headerclick(e.detail.column,e.detail.index,(r=(t=e.detail)===null||t===void 0?void 0:t.originalEvent)===null||r===void 0?void 0:r.shiftKey);return[2]}))}))};r.addEventListener("beforesourceset",n);r.addEventListener("aftercolumnsset",i);r.addEventListener("initialHeaderClick",o);return r}Object.defineProperty(t.prototype,"hasSorting",{get:function(){return!!this.sorting},enumerable:false,configurable:true});t.prototype.headerclick=function(e,t,r){return __awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,l,c;var f,v;return __generator(this,(function(d){switch(d.label){case 0:n=this.getNextOrder(e.order);i=this.emit("beforesorting",{column:e,order:n,additive:r});if(i.defaultPrevented){return[2]}n=i.detail.order;return[4,this.revogrid.updateColumnSorting(i.detail.column,t,n,r)];case 1:o=d.sent();a=this.emit("beforesortingapply",{column:o,order:n,additive:r});if(a.defaultPrevented){return[2]}n=a.detail.order;s=(e===null||e===void 0?void 0:e.cellCompare)||this.defaultCellCompare;u=n=="asc"?s:n=="desc"?this.descCellCompare(s):undefined;if(r&&this.sorting){l={};c={};Object.assign(l,this.sorting);Object.assign(c,this.sortingFunc);if(e.prop in l&&Zu(l)>1&&n===undefined){delete l[e.prop];delete c[e.prop]}else{l[e.prop]=n;c[e.prop]=u}this.sort(l,c)}else{this.sort((f={},f[e.prop]=n,f),(v={},v[e.prop]=u,v))}return[2]}}))}))};t.prototype.setData=function(e,t){if(t==="rgRow"&&this.sortingFunc){return this.sortItems(e,this.sortingFunc)}};t.prototype.sort=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!Zu(e)){this.sorting=null;this.sortingFunc=null;return[2]}this.sorting=e;this.sortingFunc=t;return[4,this.revogrid.getSourceStore()];case 1:r=o.sent();n=r.get("source");i=this.sortIndexByItems(__spreadArray([],r.get("proxyItems"),true),n,this.sortingFunc);Aa(r,{proxyItems:i,source:__spreadArray([],n,true)});this.emit("afterSortingApply");return[2]}}))}))};t.prototype.defaultCellCompare=function(e,t,r){var n,i;var o=(n=t[e])===null||n===void 0?void 0:n.toString().toLowerCase();var a=(i=r[e])===null||i===void 0?void 0:i.toString().toLowerCase();return o==a?0:o>a?1:-1};t.prototype.descCellCompare=function(e){return function(t,r,n){return-1*e(t,r,n)}};t.prototype.sortIndexByItems=function(e,t,r){for(var n in r){if(typeof r[n]==="undefined"){return __spreadArray([],Array(e.length).keys(),true)}}return e.sort((function(e,n){var i=0;for(var o in r){var a=r[o];var s=t[e];var u=t[n];i=a(o,s,u);if(i){break}}return i}))};t.prototype.sortItems=function(e,t){return e.sort((function(e,r){var n=0;for(var i in t){var o=t[i];if(!o){continue}n=o(i,e,r);if(n){break}}return n}))};t.prototype.getNextOrder=function(e){switch(e){case undefined:return"asc";case"asc":return"desc";case"desc":return undefined}};return t}(Ja);function $u(e,t,r){if(e===e){if(r!==undefined){e=e<=r?e:r}if(t!==undefined){e=e>=t?e:t}}return e}var Xu=$u;var Yu=4294967295;function qu(e){return e?Xu(la(e),0,Yu):0}var Ku=qu;function Ju(e,t,r,n){var i=e.length;r=la(r);if(r<0){r=-r>i?0:i+r}n=n===undefined||n>i?i:la(n);if(n<0){n+=i}n=r>n?0:Ku(n);while(r<n){e[r++]=t}return e}var Qu=Ju;function el(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&za(e,t,r)){r=0;n=i}return Qu(e,t,r,n)}var tl=el;var rl=30;var nl="data-rgCol";var il="data-rgRow";var ol="grid-uuid";var al="disabled";var sl="rgCell";var ul="rgHeaderCell";var ll="sortable";var cl="header-rgRow";var fl="actual-rgRow";var vl="revo-drag-icon";var dl="revo-draggable";var hl="focused-cell";var pl="selection-border-range";var gl="temp-bg-range";var ml="autofill-handle";var Cl="edit-input-wrapper";var wl="Draggable item";var yl="__rvgr";var bl="".concat(yl,"-depth");var Ll="".concat(yl,"-name");var xl="".concat(yl,"-id");var _l="".concat(yl,"-value");var Sl="".concat(yl,"-column");var El="".concat(yl,"-expanded");var kl="group-expand";var zl="groupExpandClick";var Rl="rgRow";function Ol(e,t){var r=[];var n={};e.forEach((function(e,i){var o=JSON.stringify(t(e));if(!n[o]){n[o]=new Map;r.push({children:n[o],id:o})}n[o].set(i,e)}));return r}function jl(e,t,r){var n=r.prevExpanded,i=r.expandedAll;var o=Ol(e,t);var a=[];var s={};var u=0;var l=0;var c={};var f={};o.forEach((function(e){var t=Il(e.id);if(!t){return}var r=0;var o=!!i;var v=o;var d=[];t.reduce((function(t,f){t.push(f);var h=t.join(",");if(!s[h]){v=i||n&&n[h];a.push(Fl(f,h,r,e.id,v));if(r&&!v&&!o){var p=t.slice(0,t.length-1);if(!(n&&p.length&&n[p.join(",")])){c[u]=true}}u++;s[h]=d}r++;l=r;return t}),[]);e.children.forEach((function(e,t){if(!v&&!o){c[u]=true}a.push(e);f[t]=u;d.push(u);u++}))}));return{sourceWithGroups:a,depth:l,trimmed:c,oldNewIndexMap:f,childrenByGroup:s}}function Fl(e,t,r,n,i){var o;if(i===void 0){i=false}return o={},o[Ll]=e,o[bl]=r,o[xl]=n,o[_l]=t,o[El]=i,o}function Pl(e){return e&&e[Ll]}function Dl(e){return e&&typeof e[Ll]!=="undefined"}function Al(e){return e&&typeof e[Sl]!=="undefined"}function Ml(e){return typeof e.push!=="undefined"}function Tl(e,t){var r=e.length;var n=0;for(;n<r;n++){if(e[n]!==t[n]){return n}}return n}function Il(e){var t=JSON.parse(e);if(!Ml(t)){return null}return t}function Hl(e,t,r){var n=Il(r[xl]);if(!n){return false}var i=Tl(e,n);return t[bl]<i}var Bl={mime:"text/csv",fileKind:"csv",bom:true,columnDelimiter:",",rowDelimiter:"\r\n",encoding:""};var Ul=String.fromCharCode(13);var Wl=String.fromCharCode(10);var Nl=String.fromCharCode(34);var Vl=String.fromCharCode(65279);var Zl=new RegExp('"',"g");var Gl=function(){function e(e){if(e===void 0){e={}}this.options=Object.assign(Object.assign({},Bl),e)}e.prototype.doExport=function(e){var t=this;var r=e.data,n=e.headers,i=e.props;var o=this.options.bom?Vl:"";if((n===null||n===void 0?void 0:n.length)>0){n.forEach((function(e){if(!e.length){return}o+=t.prepareHeader(e,t.options.columnDelimiter);o+=t.options.rowDelimiter}))}r.forEach((function(e,r){if(r>0){o+=t.options.rowDelimiter}if(Dl(e)){o+=t.parseCell(Pl(e),t.options.columnDelimiter);return}o+=i.map((function(r){return t.parseCell(e[r],t.options.columnDelimiter)})).join(t.options.columnDelimiter)}));return o};e.prototype.prepareHeader=function(e,t){var r=this;var n="";var i=e.map((function(e){return r.parseCell(e,t,true)}));n+=i.join(t);return n};e.prototype.parseCell=function(e,t,r){if(r===void 0){r=false}var n=e;if(typeof e!=="string"){n=JSON.stringify(e)}var i=[Ul,Nl,Wl,t];if(typeof n==="undefined"){return""}if(n!==""&&(r||i.some((function(e){return n.indexOf(e)>=0})))){return'"'.concat(n.replace(Zl,'""'),'"')}return n};return e}();var $l;(function(e){e["csv"]="csv"})($l||($l={}));var Xl=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.exportString=function(e,t){if(e===void 0){e={}}if(t===void 0){t=$l.csv}return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,this.formatter(t,e).doExport(r)]}}))}))};t.prototype.exportBlob=function(e,t){if(e===void 0){e={}}if(t===void 0){t=$l.csv}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getBlob(this.formatter(t,e))];case 1:return[2,r.sent()]}}))}))};t.prototype.exportFile=function(e,t){if(e===void 0){e={}}if(t===void 0){t=$l.csv}return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,l,c;return __generator(this,(function(f){switch(f.label){case 0:r=this.formatter(t,e);return[4,this.getBlob(r)];case 1:n=f.sent();i=window.URL||window.webkitURL;o=document.createElement("a");a=r.options,s=a.filename,u=a.fileKind;l="".concat(s,".").concat(u);c=i.createObjectURL(n);o.style.display="none";o.setAttribute("href",c);o.setAttribute("download",l);this.revogrid.appendChild(o);o.dispatchEvent(new MouseEvent("click"));this.revogrid.removeChild(o);return[4,Cs(120)];case 2:f.sent();i.revokeObjectURL(c);return[2]}}))}))};t.prototype.getBlob=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t="".concat(e.options.mime,";charset=").concat(e.options.encoding);if(!(typeof Blob!=="undefined"))return[3,2];return[4,this.beforeexport()];case 1:r=n.sent();if(!r){return[2,null]}return[2,new Blob([e.doExport(r)],{type:t})];case 2:return[2,null]}}))}))};t.prototype.beforeexport=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.getData()];case 1:e=r.sent();t=this.emit("beforeexport",{data:e});if(t.defaultPrevented){return[2,null]}return[2,t.detail.data]}}))}))};t.prototype.getData=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,i,o,a;var s;var u=this;return __generator(this,(function(l){switch(l.label){case 0:return[4,this.getSource()];case 1:e=l.sent();t=[];r=[];Ga.forEach((function(e,n){r.push(u.getColPerSource(e).then((function(e){return t[n]=e})))}));return[4,Promise.all(r)];case 2:l.sent();n={headers:[],props:[]};for(i=0,o=t;i<o.length;i++){a=o[i];a.headers.forEach((function(e,t){var r;if(!n.headers[t]){n.headers[t]=[]}(r=n.headers[t]).push.apply(r,e)}));(s=n.props).push.apply(s,a.props)}return[2,Object.assign({data:e},n)]}}))}))};t.prototype.getColPerSource=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,l;return __generator(this,(function(c){switch(c.label){case 0:return[4,this.revogrid.getColumnStore(e)];case 1:t=c.sent();r=t.get("source");n=t.get("items");i=t.get("groupingDepth");o=t.get("groups");a=[];s=[];u=n.reduce((function(e,t,n){var i=r[t].prop;a.push(r[t].name||"");s.push(i);e[i]=n;return e}),{});l=this.getGroupHeaders(i,o,n,u);l.push(a);return[2,{headers:l,props:s}]}}))}))};t.prototype.getGroupHeaders=function(e,t,r,n){var i=this;var o=[];var a=tl(new Array(r.length),"");var s=function(e){var r=__spreadArray([],a,true);o.push(r);if(!t[e]){return"continue"}var s=t[e];s.forEach((function(e){var t=i.findGroupStartIndex(e.ids,n);if(typeof t==="number"){r[t]=e.name}}))};for(var u=0;u<e;u++){s(u)}return o};t.prototype.findGroupStartIndex=function(e,t){var r;e.forEach((function(e){var n=t[e];if(typeof n==="number"){if(typeof r!=="number"||r>n){r=n}}}));return r};t.prototype.getSource=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var r=this;return __generator(this,(function(n){switch(n.label){case 0:e=[];t=[];Za.forEach((function(n){var i=[];e.push(i);var o=r.revogrid.getVisibleSource(n).then((function(e){return i.push.apply(i,e)}));t.push(o)}));return[4,Promise.all(t)];case 1:n.sent();return[2,e.reduce((function(e,t){e.push.apply(e,t);return e}),[])]}}))}))};t.prototype.formatter=function(e,t){if(t===void 0){t={}}switch(e){case $l.csv:return new Gl(t);default:throw new Error("Unknown format")}};return t}(Ja);function Yl(e,t){var r=t[e];var n=r[xl];var i={};var o=e+1;var a=t.length;while(o<a){var s=t[o];if(Dl(s)){if(n!==s[xl]){break}else{s[El]=false}}i[o++]=true}r[El]=false;return{trimmed:i}}function ql(e,t,r){var n=r[e];var i=t[n];var o=Il(i[xl]);var a={};if(!o){return{trimmed:a}}var s=[];i[El]=true;var u=n+1;var l=t.length;var c=0;while(u<l){var f=t[u];var v=Dl(f);if(v){if(!Hl(o,i,f)){break}else if(!c){c=f[bl]}}if(!c||v&&c===f[bl]){a[u]=false;s.push(u)}u++}var d={trimmed:a};if(s.length){var h=__spreadArray([],r,true);h.splice.apply(h,__spreadArray([e+1,0],s,false));d.items=h}return d}var Kl="grouping";function Jl(e,t,r){var n={};for(var i in e){if(i===Kl){continue}var o=e[i];var a={};for(var s in o){var u=t[s];if(r){u=r[u]}if(o[s]){a[u]=true;if(u!==parseInt(s,10)){n[i]=a}}}}return n}var Ql=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;return n}Object.defineProperty(t.prototype,"hasProps",{get:function(){var e,t,r;return((e=this.options)===null||e===void 0?void 0:e.props)&&((r=(t=this.options)===null||t===void 0?void 0:t.props)===null||r===void 0?void 0:r.length)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"store",{get:function(){return this.providers.dataProvider.stores[Rl].store},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rowItems",{get:function(){return this.store.get("items")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"trimmed",{get:function(){return this.store.get("trimmed")},enumerable:false,configurable:true});t.prototype.onFocus=function(e){if(Dl(e.detail.model)){e.preventDefault()}};t.prototype.onExpand=function(e){var t=e.virtualIndex;var r=this.getSource().source;var n=this.trimmed[Kl];var i=Ha(this.store,t);var o=r[i];var a=o[El];if(!a){var s=ql(t,r,this.rowItems),u=s.trimmed,l=s.items;n=Object.assign(Object.assign({},n),u);if(l){Na(this.store,l)}}else{var u=Yl(i,r).trimmed;n=Object.assign(Object.assign({},n),u);this.revogrid.clearFocus()}this.store.set("source",r);this.revogrid.addTrimmed(n,Kl)};t.prototype.getSource=function(e){if(e===void 0){e=false}var t=this.store.get("source");var r=this.store.get("proxyItems");var n=0;return r.reduce((function(r,i){var o=t[i];if(!e){r.source.push(o);return r}if(!Dl(o)){r.source.push(o);r.oldNewIndexes[i]=n;n++}else{if(o[El]){r.prevExpanded[o[_l]]=true}}return r}),{source:[],prevExpanded:{},oldNewIndexes:{}})};t.prototype.setColumnGrouping=function(e){if(e===null||e===void 0?void 0:e.length){e[0][Sl]=true;return true}return false};t.prototype.setColumns=function(e){var t=e.columns;for(var r=0,n=Ga;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(t[i])){break}}};t.prototype.onDrag=function(e){var t=e.detail,r=t.from,n=t.to;var i=n-r>=0;var o=this.getSource().source;var a=this.rowItems;var s=i?r:n;var u=i?n:r;for(;s<u;s++){var l=o[a[s]];var c=Dl(l);if(c){e.preventDefault();return}}};t.prototype.beforeTrimmedApply=function(e,t){if(t===tu){var r=this.store.get("source");for(var n in e){if(e[n]&&Dl(r[n])){e[n]=false}}}};t.prototype.subscribe=function(){var e=this;this.addEventListener("beforesourceset",(function(t){var r=t.detail;return e.onDataSet(r)}));this.addEventListener("beforecolumnsset",(function(t){var r=t.detail;return e.setColumns(r)}));this.addEventListener("beforetrimmed",(function(t){var r=t.detail,n=r.trimmed,i=r.trimmedType;return e.beforeTrimmedApply(n,i)}));this.addEventListener("afterSortingApply",(function(){return e.doSourceUpdate()}));this.addEventListener("beforecellfocus",(function(t){return e.onFocus(t)}));this.addEventListener("roworderchanged",(function(t){return e.onDrag(t)}));this.addEventListener(zl,(function(t){var r=t.detail;return e.onExpand(r)}))};t.prototype.doSourceUpdate=function(e){var t=this;if(!this.hasProps){return}var r=this.getSource(true),n=r.source,i=r.prevExpanded,o=r.oldNewIndexes;var a=jl(n,(function(e){var r;return(r=t.options)===null||r===void 0?void 0:r.props.map((function(t){return e[t]}))}),Object.assign({prevExpanded:i},e)),s=a.sourceWithGroups,u=a.depth,l=a.trimmed,c=a.oldNewIndexMap,f=a.childrenByGroup;this.providers.dataProvider.setData(s,Rl,{depth:u},true);this.updateTrimmed(l,f,o,c)};t.prototype.onDataSet=function(e){var t=this;if(!this.hasProps||!(e===null||e===void 0?void 0:e.source)||!e.source.length){return}var r=e.source.filter((function(e){return!Dl(e)}));var n=this.revogrid.grouping||{};var i=jl(r,(function(e){var r;return(r=t.options)===null||r===void 0?void 0:r.props.map((function(t){return e[t]}))}),Object.assign({},n||{})),o=i.sourceWithGroups,a=i.depth,s=i.trimmed,u=i.oldNewIndexMap,l=i.childrenByGroup;e.source=o;this.providers.dataProvider.setGrouping({depth:a});this.updateTrimmed(s,l,u)};t.prototype.setGrouping=function(e){this.clearSubscriptions();this.options=e;if(!e.props||!Object.keys(e.props).length){this.clearGrouping();return}var t=this.getSource().source;if(t.length){this.doSourceUpdate(Object.assign({},e))}for(var r=0,n=Ga;r<n.length;r++){var i=n[r];if(this.setColumnGrouping(this.providers.columnProvider.getColumns(i))){this.providers.columnProvider.refreshByType(i);break}}this.subscribe()};t.prototype.clearGrouping=function(){var e=this;Ga.forEach((function(t){var r=e.providers.columnProvider.getColumns(t);var n=false;r.forEach((function(e){if(Al(e)){delete e[Sl];n=true}}));if(n){e.providers.columnProvider.refreshByType(t)}}));var t=this.getSource(true),r=t.source,n=t.oldNewIndexes;this.providers.dataProvider.setData(r,Rl,undefined,true);this.updateTrimmed(undefined,undefined,n)};t.prototype.updateTrimmed=function(e,t,r,n){if(e===void 0){e={}}if(t===void 0){t={}}var i=Jl(this.trimmed,r,n);for(var o in i){this.revogrid.addTrimmed(i[o],o)}this.revogrid.addTrimmed(Object.assign({},e),Kl)};return t}(Ja);var ec=function(){function e(){this.parentY=0}e.prototype.start=function(e,t){var r=t.pos,n=t.text,i=t.event;var o;var a=e.getBoundingClientRect().top;this.parentY=a;if(this.text){this.text.innerText=n}this.move(r);this.moveTip({x:i.x,y:i.y});(o=this.el)===null||o===void 0?void 0:o.classList.remove("hidden")};e.prototype.end=function(){var e;(e=this.el)===null||e===void 0?void 0:e.classList.add("hidden")};e.prototype.move=function(e){this.moveElement(e.end-this.parentY)};e.prototype.moveTip=function(e){var t=e.x,r=e.y;if(!this.draggable){return}this.draggable.style.left="".concat(t,"px");this.draggable.style.top="".concat(r,"px")};e.prototype.moveElement=function(e){if(!this.rgRow){return}this.rgRow.style.transform="translateY(".concat(e,"px)")};return e}();var tc=function(e){var t=e.ref;var r=new ec;t(r);return i("div",{class:"draggable-wrapper hidden",ref:function(e){return r.el=e}},i("div",{class:"draggable",ref:function(e){return r.draggable=e}},i("span",{class:"revo-alt-icon"}),i("span",{ref:function(e){return r.text=e}})),i("div",{class:"drag-position",ref:function(e){return r.rgRow=e}}))};var rc=function(e,t){var r=e.viewports,n=e.dimensions,o=e.orderRef,a=e.nakedClick,s=e.registerElement,u=e.onScroll;var l=function(e,t){if(t===e.target){a(e)}};var c;return[i("div",{class:"main-viewport",ref:function(e){return c=e},onClick:function(e){return l(e,c)}},i("div",{class:"viewports"},t,i("revogr-scroll-virtual",{class:"vertical",dimension:"rgRow",viewportStore:r["rgRow"].store,dimensionStore:n["rgRow"].store,ref:function(e){return s(e,"rowScroll")},onScrollVirtual:function(e){return u(e.detail)}}),i(tc,{ref:o}))),i("revogr-scroll-virtual",{class:"horizontal",dimension:"rgCol",viewportStore:r["rgCol"].store,dimensionStore:n["rgCol"].store,ref:function(e){return s(e,"colScroll")},onScrollVirtual:function(e){return u(e.detail)}})]};function nc(e){return e===cc}function ic(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=e[a];return r}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=e[a]-t[a];return r}}return null}function oc(e,t){var r=Object.assign({},e);var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]<0){r[a]=0}}for(var s=0,u=n;s<u.length;s++){var a=u[s];if(e[a]>=t[a]){r[a]=t[a]-1}}return r}function ac(e,t){return e&&t?{x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x1:Math.max(e.x,t.x),y1:Math.max(e.y,t.y)}:null}function sc(e){return e.x===e.x1&&e.y===e.y1}function uc(){return{range:null,tempRange:null,tempRangeType:null,focus:null,edit:null,lastCell:null}}var lc=function(){function e(){var e=this;this.unsubscribe=[];this.store=La(uc());this.store.on("set",(function(t,r){if(t==="tempRange"&&!r){e.store.set("tempRangeType",null)}}))}e.prototype.onChange=function(e,t){this.unsubscribe.push(this.store.onChange(e,t))};e.prototype.clearFocus=function(){Aa(this.store,{focus:null,range:null,edit:null,tempRange:null})};e.prototype.setFocus=function(e,t){Aa(this.store,{focus:e,range:ac(e,t),edit:null,tempRange:null})};e.prototype.setTempArea=function(e){Aa(this.store,{tempRange:e===null||e===void 0?void 0:e.area,tempRangeType:e===null||e===void 0?void 0:e.type,edit:null})};e.prototype.clearTemp=function(){Aa(this.store,{tempRange:null})};e.prototype.setRangeArea=function(e){Aa(this.store,{range:e,edit:null,tempRange:null})};e.prototype.setRange=function(e,t){this.setRangeArea(ac(e,t))};e.prototype.setLastCell=function(e){Aa(this.store,{lastCell:e})};e.prototype.setEdit=function(e){var t=this.store.get("focus");if(t&&typeof e==="string"){Aa(this.store,{edit:{x:t.x,y:t.y,val:e}});return}Aa(this.store,{edit:null})};e.prototype.dispose=function(){this.unsubscribe.forEach((function(e){return e()}));this.store.dispose()};return e}();var cc=-1;var fc=function(){function e(){this.dirty=false;this.stores={};this.columnStores={};this.rowStores={};this.sections=[]}Object.defineProperty(e.prototype,"focusedStore",{get:function(){var e;for(var t in this.stores){for(var r in this.stores[t]){var n=(e=this.stores[t][r])===null||e===void 0?void 0:e.store.get("focus");if(n){return{entity:this.stores[t][r],cell:n,position:{x:parseInt(r,10),y:parseInt(t,10)}}}}}return null},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"edit",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"selectedRange",{get:function(){var e;return(e=this.focusedStore)===null||e===void 0?void 0:e.entity.store.get("range")},enumerable:false,configurable:true});e.prototype.registerSection=function(e){if(!e){this.sections.length=0;this.dirty=true;return}if(this.sections.indexOf(e)===-1){this.sections.push(e)}};e.prototype.beforeUpdate=function(){if(this.dirty){for(var e in this.stores){for(var t in this.stores[e]){this.stores[e][t].dispose()}}this.dirty=false}};e.prototype.registerColumn=function(e){if(nc(e)){return new lc}if(this.columnStores[e]){return this.columnStores[e]}this.columnStores[e]=new lc;return this.columnStores[e]};e.prototype.registerRow=function(e){if(nc(e)){return new lc}if(this.rowStores[e]){return this.rowStores[e]}this.rowStores[e]=new lc;return this.rowStores[e]};e.prototype.register=function(e){var t=this;var r=e.x,n=e.y;var i,o;if(nc(r)||nc(n)){return new lc}if(!this.stores[n]){this.stores[n]={}}if(this.stores[n][r]){return this.stores[n][r]}this.stores[n][r]=new lc;(i=this.stores[n][r])===null||i===void 0?void 0:i.onChange("range",(function(e){t.columnStores[r].setRangeArea(e);t.rowStores[n].setRangeArea(e)}));(o=this.stores[n][r])===null||o===void 0?void 0:o.store.on("dispose",(function(){var e,i;(e=t.columnStores[r])===null||e===void 0?void 0:e.dispose();(i=t.rowStores[n])===null||i===void 0?void 0:i.dispose();delete t.rowStores[n];delete t.columnStores[r];if(t.stores[n]){delete t.stores[n][r]}if(!Object.keys(t.stores[n]||{}).length){delete t.stores[n]}}));return this.stores[n][r]};e.prototype.setEditByCell=function(e,t){var r=e.x,n=e.y;var i=this.stores[n][r];this.focus(i,{focus:t,end:t});this.setEdit("")};e.prototype.focus=function(e,t){var r=t.focus,n=t.end;var i;for(var o in this.stores){for(var a in this.stores[o]){var s=this.stores[o][a];if(s!==e){s.clearFocus()}else{i={x:parseInt(a,10),y:parseInt(o,10)}}}}if(!i){return}var u=e.store.get("lastCell");var l=ic(r,u);var c;if(l){for(var f in l){var v=f;var d=void 0;switch(v){case"x":d=this.getXStores(i.y);break;case"y":d=this.getYStores(i.x);break}if(l[v]>=0){c=d[++i[v]]}else{c=d[--i[v]];var h=c===null||c===void 0?void 0:c.store.get("lastCell");if(h){l[v]=h[v]+l[v]}}}}if(c){var p=Object.assign(Object.assign({},r),l);this.focus(c,{focus:p,end:p});return}r=oc(r,u);n=oc(r,u);e.setFocus(r,n)};e.prototype.clearAll=function(){var e;for(var t in this.stores){for(var r in this.stores[t]){(e=this.stores[t][r])===null||e===void 0?void 0:e.clearFocus()}}};e.prototype.setEdit=function(e){if(!this.focusedStore){return}this.focusedStore.entity.setEdit(e)};e.prototype.getXStores=function(e){return this.stores[e]};e.prototype.getYStores=function(e){var t={};for(var r in this.stores){t[r]=this.stores[r][e]}return t};return e}();var vc="header";var dc="footer";var hc="content";var pc="data";function gc(e,t){return{x:e.viewports[e.colType].store.get("realCount"),y:e.viewports[t].store.get("realCount")}}var mc=f((function(e,t){(function(){var r;var n="4.17.21";var i=200;var o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`";var u="__lodash_hash_undefined__";var l=500;var c="__lodash_placeholder__";var f=1,v=2,d=4;var h=1,p=2;var g=1,m=2,C=4,w=8,b=16,L=32,x=64,_=128,S=256,E=512;var k=30,z="...";var R=800,O=16;var j=1,F=2,P=3;var D=1/0,A=9007199254740991,M=17976931348623157e292,T=0/0;var I=4294967295,H=I-1,B=I>>>1;var U=[["ary",_],["bind",g],["bindKey",m],["curry",w],["curryRight",b],["flip",E],["partial",L],["partialRight",x],["rearg",S]];var W="[object Arguments]",N="[object Array]",V="[object AsyncFunction]",Z="[object Boolean]",G="[object Date]",$="[object DOMException]",X="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",K="[object Map]",J="[object Number]",Q="[object Null]",ee="[object Object]",te="[object Promise]",re="[object Proxy]",ne="[object RegExp]",ie="[object Set]",oe="[object String]",ae="[object Symbol]",se="[object Undefined]",ue="[object WeakMap]",le="[object WeakSet]";var ce="[object ArrayBuffer]",fe="[object DataView]",ve="[object Float32Array]",de="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",ge="[object Int32Array]",me="[object Uint8Array]",Ce="[object Uint8ClampedArray]",we="[object Uint16Array]",ye="[object Uint32Array]";var be=/\b__p \+= '';/g,Le=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g;var _e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Ee=RegExp(_e.source),ke=RegExp(Se.source);var ze=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Oe=/<%=([\s\S]+?)%>/g;var je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var De=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(De.source);var Me=/^\s+/;var Te=/\s/;var Ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /;var Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var We=/[()=,{}\[\]\/\s]/;var Ne=/\\(\\)?/g;var Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;var Ze=/\w*$/;var Ge=/^[-+]0x[0-9a-f]+$/i;var $e=/^0b[01]+$/i;var Xe=/^\[object .+?Constructor\]$/;var Ye=/^0o[0-7]+$/i;var qe=/^(?:0|[1-9]\d*)$/;var Ke=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;var Je=/($^)/;var Qe=/['\n\r\u2028\u2029\\]/g;var et="\\ud800-\\udfff",tt="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",nt="\\u20d0-\\u20ff",it=tt+rt+nt,ot="\\u2700-\\u27bf",at="a-z\\xdf-\\xf6\\xf8-\\xff",st="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lt="\\u2000-\\u206f",ct=" \\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",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",vt="\\ufe0e\\ufe0f",dt=st+ut+lt+ct;var ht="['’]",pt="["+et+"]",gt="["+dt+"]",mt="["+it+"]",Ct="\\d+",wt="["+ot+"]",yt="["+at+"]",bt="[^"+et+dt+Ct+ot+at+ft+"]",Lt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+mt+"|"+Lt+")",_t="[^"+et+"]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="["+ft+"]",zt="\\u200d";var Rt="(?:"+yt+"|"+bt+")",Ot="(?:"+kt+"|"+bt+")",jt="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",Ft="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Pt=xt+"?",Dt="["+vt+"]?",At="(?:"+zt+"(?:"+[_t,St,Et].join("|")+")"+Dt+Pt+")*",Mt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",It=Dt+Pt+At,Ht="(?:"+[wt,St,Et].join("|")+")"+It,Bt="(?:"+[_t+mt+"?",mt,St,Et,pt].join("|")+")";var Ut=RegExp(ht,"g");var Wt=RegExp(mt,"g");var Nt=RegExp(Lt+"(?="+Lt+")|"+Bt+It,"g");var Vt=RegExp([kt+"?"+yt+"+"+jt+"(?="+[gt,kt,"$"].join("|")+")",Ot+"+"+Ft+"(?="+[gt,kt+Rt,"$"].join("|")+")",kt+"?"+Rt+"+"+jt,kt+"+"+Ft,Tt,Mt,Ct,Ht].join("|"),"g");var Zt=RegExp("["+zt+et+it+vt+"]");var Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var $t=["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"];var Xt=-1;var Yt={};Yt[ve]=Yt[de]=Yt[he]=Yt[pe]=Yt[ge]=Yt[me]=Yt[Ce]=Yt[we]=Yt[ye]=true;Yt[W]=Yt[N]=Yt[ce]=Yt[Z]=Yt[fe]=Yt[G]=Yt[X]=Yt[Y]=Yt[K]=Yt[J]=Yt[ee]=Yt[ne]=Yt[ie]=Yt[oe]=Yt[ue]=false;var qt={};qt[W]=qt[N]=qt[ce]=qt[fe]=qt[Z]=qt[G]=qt[ve]=qt[de]=qt[he]=qt[pe]=qt[ge]=qt[K]=qt[J]=qt[ee]=qt[ne]=qt[ie]=qt[oe]=qt[ae]=qt[me]=qt[Ce]=qt[we]=qt[ye]=true;qt[X]=qt[Y]=qt[ue]=false;var Kt={"À":"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"};var Jt={"&":"&","<":"<",">":">",'"':""","'":"'"};var Qt={"&":"&","<":"<",">":">",""":'"',"'":"'"};var er={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var tr=parseFloat,rr=parseInt;var nr=typeof y=="object"&&y&&y.Object===Object&&y;var ir=typeof self=="object"&&self&&self.Object===Object&&self;var or=nr||ir||Function("return this")();var ar=t&&!t.nodeType&&t;var sr=ar&&"object"=="object"&&e&&!e.nodeType&&e;var ur=sr&&sr.exports===ar;var lr=ur&&nr.process;var cr=function(){try{var e=sr&&sr.require&&sr.require("util").types;if(e){return e}return lr&&lr.binding&&lr.binding("util")}catch(e){}}();var fr=cr&&cr.isArrayBuffer,vr=cr&&cr.isDate,dr=cr&&cr.isMap,hr=cr&&cr.isRegExp,pr=cr&&cr.isSet,gr=cr&&cr.isTypedArray;function mr(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Cr(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}function wr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)===false){break}}return e}function yr(e,t){var r=e==null?0:e.length;while(r--){if(t(e[r],r,e)===false){break}}return e}function br(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(!t(e[r],r,e)){return false}}return true}function Lr(e,t){var r=-1,n=e==null?0:e.length,i=0,o=[];while(++r<n){var a=e[r];if(t(a,r,e)){o[i++]=a}}return o}function xr(e,t){var r=e==null?0:e.length;return!!r&&Ar(e,t,0)>-1}function _r(e,t,r){var n=-1,i=e==null?0:e.length;while(++n<i){if(r(t,e[n])){return true}}return false}function Sr(e,t){var r=-1,n=e==null?0:e.length,i=Array(n);while(++r<n){i[r]=t(e[r],r,e)}return i}function Er(e,t){var r=-1,n=t.length,i=e.length;while(++r<n){e[i+r]=t[r]}return e}function kr(e,t,r,n){var i=-1,o=e==null?0:e.length;if(n&&o){r=e[++i]}while(++i<o){r=t(r,e[i],i,e)}return r}function zr(e,t,r,n){var i=e==null?0:e.length;if(n&&i){r=e[--i]}while(i--){r=t(r,e[i],i,e)}return r}function Rr(e,t){var r=-1,n=e==null?0:e.length;while(++r<n){if(t(e[r],r,e)){return true}}return false}var Or=Hr("length");function jr(e){return e.split("")}function Fr(e){return e.match(Ue)||[]}function Pr(e,t,r){var n;r(e,(function(e,r,i){if(t(e,r,i)){n=r;return false}}));return n}function Dr(e,t,r,n){var i=e.length,o=r+(n?1:-1);while(n?o--:++o<i){if(t(e[o],o,e)){return o}}return-1}function Ar(e,t,r){return t===t?vn(e,t,r):Dr(e,Tr,r)}function Mr(e,t,r,n){var i=r-1,o=e.length;while(++i<o){if(n(e[i],t)){return i}}return-1}function Tr(e){return e!==e}function Ir(e,t){var r=e==null?0:e.length;return r?Nr(e,t)/r:T}function Hr(e){return function(t){return t==null?r:t[e]}}function Br(e){return function(t){return e==null?r:e[t]}}function Ur(e,t,r,n,i){i(e,(function(e,i,o){r=n?(n=false,e):t(r,e,i,o)}));return r}function Wr(e,t){var r=e.length;e.sort(t);while(r--){e[r]=e[r].value}return e}function Nr(e,t){var n,i=-1,o=e.length;while(++i<o){var a=t(e[i]);if(a!==r){n=n===r?a:n+a}}return n}function Vr(e,t){var r=-1,n=Array(e);while(++r<e){n[r]=t(r)}return n}function Zr(e,t){return Sr(t,(function(t){return[t,e[t]]}))}function Gr(e){return e?e.slice(0,gn(e)+1).replace(Me,""):e}function $r(e){return function(t){return e(t)}}function Xr(e,t){return Sr(t,(function(t){return e[t]}))}function Yr(e,t){return e.has(t)}function qr(e,t){var r=-1,n=e.length;while(++r<n&&Ar(t,e[r],0)>-1){}return r}function Kr(e,t){var r=e.length;while(r--&&Ar(t,e[r],0)>-1){}return r}function Jr(e,t){var r=e.length,n=0;while(r--){if(e[r]===t){++n}}return n}var Qr=Br(Kt);var en=Br(Jt);function tn(e){return"\\"+er[e]}function rn(e,t){return e==null?r:e[t]}function nn(e){return Zt.test(e)}function on(e){return Gt.test(e)}function an(e){var t,r=[];while(!(t=e.next()).done){r.push(t.value)}return r}function sn(e){var t=-1,r=Array(e.size);e.forEach((function(e,n){r[++t]=[n,e]}));return r}function un(e,t){return function(r){return e(t(r))}}function ln(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r];if(a===t||a===c){e[r]=c;o[i++]=r}}return o}function cn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}function fn(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=[e,e]}));return r}function vn(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}function dn(e,t,r){var n=r+1;while(n--){if(e[n]===t){return n}}return n}function hn(e){return nn(e)?Cn(e):Or(e)}function pn(e){return nn(e)?wn(e):jr(e)}function gn(e){var t=e.length;while(t--&&Te.test(e.charAt(t))){}return t}var mn=Br(Qt);function Cn(e){var t=Nt.lastIndex=0;while(Nt.test(e)){++t}return t}function wn(e){return e.match(Nt)||[]}function yn(e){return e.match(Vt)||[]}var bn=function e(t){t=t==null?or:Ln.defaults(or.Object(),t,Ln.pick(or,$t));var y=t.Array,Te=t.Date,Ue=t.Error,et=t.Function,tt=t.Math,rt=t.Object,nt=t.RegExp,it=t.String,ot=t.TypeError;var at=y.prototype,st=et.prototype,ut=rt.prototype;var lt=t["__core-js_shared__"];var ct=st.toString;var ft=ut.hasOwnProperty;var vt=0;var dt=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ht=ut.toString;var pt=ct.call(rt);var gt=or._;var mt=nt("^"+ct.call(ft).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ct=ur?t.Buffer:r,wt=t.Symbol,yt=t.Uint8Array,bt=Ct?Ct.allocUnsafe:r,Lt=un(rt.getPrototypeOf,rt),xt=rt.create,_t=ut.propertyIsEnumerable,St=at.splice,Et=wt?wt.isConcatSpreadable:r,kt=wt?wt.iterator:r,zt=wt?wt.toStringTag:r;var Rt=function(){try{var e=$a(rt,"defineProperty");e({},"",{});return e}catch(e){}}();var Ot=t.clearTimeout!==or.clearTimeout&&t.clearTimeout,jt=Te&&Te.now!==or.Date.now&&Te.now,Ft=t.setTimeout!==or.setTimeout&&t.setTimeout;var Pt=tt.ceil,Dt=tt.floor,At=rt.getOwnPropertySymbols,Mt=Ct?Ct.isBuffer:r,Tt=t.isFinite,It=at.join,Ht=un(rt.keys,rt),Bt=tt.max,Nt=tt.min,Vt=Te.now,Zt=t.parseInt,Gt=tt.random,Kt=at.reverse;var Jt=$a(t,"DataView"),Qt=$a(t,"Map"),er=$a(t,"Promise"),nr=$a(t,"Set"),ir=$a(t,"WeakMap"),ar=$a(rt,"create");var sr=ir&&new ir;var lr={};var cr=Fs(Jt),Or=Fs(Qt),jr=Fs(er),Br=Fs(nr),vn=Fs(ir);var Cn=wt?wt.prototype:r,wn=Cn?Cn.valueOf:r,bn=Cn?Cn.toString:r;function xn(e){if(Sc(e)&&!uc(e)&&!(e instanceof kn)){if(e instanceof En){return e}if(ft.call(e,"__wrapped__")){return Ds(e)}}return new En(e)}var _n=function(){function e(){}return function(t){if(!_c(t)){return{}}if(xt){return xt(t)}e.prototype=t;var n=new e;e.prototype=r;return n}}();function Sn(){}function En(e,t){this.__wrapped__=e;this.__actions__=[];this.__chain__=!!t;this.__index__=0;this.__values__=r}xn.templateSettings={escape:ze,evaluate:Re,interpolate:Oe,variable:"",imports:{_:xn}};xn.prototype=Sn.prototype;xn.prototype.constructor=xn;En.prototype=_n(Sn.prototype);En.prototype.constructor=En;function kn(e){this.__wrapped__=e;this.__actions__=[];this.__dir__=1;this.__filtered__=false;this.__iteratees__=[];this.__takeCount__=I;this.__views__=[]}function zn(){var e=new kn(this.__wrapped__);e.__actions__=ia(this.__actions__);e.__dir__=this.__dir__;e.__filtered__=this.__filtered__;e.__iteratees__=ia(this.__iteratees__);e.__takeCount__=this.__takeCount__;e.__views__=ia(this.__views__);return e}function Rn(){if(this.__filtered__){var e=new kn(this);e.__dir__=-1;e.__filtered__=true}else{e=this.clone();e.__dir__*=-1}return e}function On(){var e=this.__wrapped__.value(),t=this.__dir__,r=uc(e),n=t<0,i=r?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=n?s:a-1,c=this.__iteratees__,f=c.length,v=0,d=Nt(u,this.__takeCount__);if(!r||!n&&i==u&&d==u){return Ho(e,this.__actions__)}var h=[];e:while(u--&&v<d){l+=t;var p=-1,g=e[l];while(++p<f){var m=c[p],C=m.iteratee,w=m.type,y=C(g);if(w==F){g=y}else if(!y){if(w==j){continue e}else{break e}}}h[v++]=g}return h}kn.prototype=_n(Sn.prototype);kn.prototype.constructor=kn;function jn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Fn(){this.__data__=ar?ar(null):{};this.size=0}function Pn(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}function Dn(e){var t=this.__data__;if(ar){var n=t[e];return n===u?r:n}return ft.call(t,e)?t[e]:r}function An(e){var t=this.__data__;return ar?t[e]!==r:ft.call(t,e)}function Mn(e,t){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=ar&&t===r?u:t;return this}jn.prototype.clear=Fn;jn.prototype["delete"]=Pn;jn.prototype.get=Dn;jn.prototype.has=An;jn.prototype.set=Mn;function Tn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function In(){this.__data__=[];this.size=0}function Hn(e){var t=this.__data__,r=ci(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{St.call(t,r,1)}--this.size;return true}function Bn(e){var t=this.__data__,n=ci(t,e);return n<0?r:t[n][1]}function Un(e){return ci(this.__data__,e)>-1}function Wn(e,t){var r=this.__data__,n=ci(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}Tn.prototype.clear=In;Tn.prototype["delete"]=Hn;Tn.prototype.get=Bn;Tn.prototype.has=Un;Tn.prototype.set=Wn;function Nn(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var n=e[t];this.set(n[0],n[1])}}function Vn(){this.size=0;this.__data__={hash:new jn,map:new(Qt||Tn),string:new jn}}function Zn(e){var t=Za(this,e)["delete"](e);this.size-=t?1:0;return t}function Gn(e){return Za(this,e).get(e)}function $n(e){return Za(this,e).has(e)}function Xn(e,t){var r=Za(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}Nn.prototype.clear=Vn;Nn.prototype["delete"]=Zn;Nn.prototype.get=Gn;Nn.prototype.has=$n;Nn.prototype.set=Xn;function Yn(e){var t=-1,r=e==null?0:e.length;this.__data__=new Nn;while(++t<r){this.add(e[t])}}function qn(e){this.__data__.set(e,u);return this}function Kn(e){return this.__data__.has(e)}Yn.prototype.add=Yn.prototype.push=qn;Yn.prototype.has=Kn;function Jn(e){var t=this.__data__=new Tn(e);this.size=t.size}function Qn(){this.__data__=new Tn;this.size=0}function ei(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}function ti(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ni(e,t){var r=this.__data__;if(r instanceof Tn){var n=r.__data__;if(!Qt||n.length<i-1){n.push([e,t]);this.size=++r.size;return this}r=this.__data__=new Nn(n)}r.set(e,t);this.size=r.size;return this}Jn.prototype.clear=Qn;Jn.prototype["delete"]=ei;Jn.prototype.get=ti;Jn.prototype.has=ri;Jn.prototype.set=ni;function ii(e,t){var r=uc(e),n=!r&&sc(e),i=!r&&!n&&dc(e),o=!r&&!n&&!i&&Bc(e),a=r||n||i||o,s=a?Vr(e.length,it):[],u=s.length;for(var l in e){if((t||ft.call(e,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||as(l,u)))){s.push(l)}}return s}function oi(e){var t=e.length;return t?e[Co(0,t-1)]:r}function ai(e,t){return Rs(ia(e),gi(t,0,e.length))}function si(e){return Rs(ia(e))}function ui(e,t,n){if(n!==r&&!ic(e[t],n)||n===r&&!(t in e)){hi(e,t,n)}}function li(e,t,n){var i=e[t];if(!(ft.call(e,t)&&ic(i,n))||n===r&&!(t in e)){hi(e,t,n)}}function ci(e,t){var r=e.length;while(r--){if(ic(e[r][0],t)){return r}}return-1}function fi(e,t,r,n){Li(e,(function(e,i,o){t(n,e,r(e),o)}));return n}function vi(e,t){return e&&oa(t,xf(t),e)}function di(e,t){return e&&oa(t,_f(t),e)}function hi(e,t,r){if(t=="__proto__"&&Rt){Rt(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}function pi(e,t){var n=-1,i=t.length,o=y(i),a=e==null;while(++n<i){o[n]=a?r:mf(e,t[n])}return o}function gi(e,t,n){if(e===e){if(n!==r){e=e<=n?e:n}if(t!==r){e=e>=t?e:t}}return e}function mi(e,t,n,i,o,a){var s,u=t&f,l=t&v,c=t&d;if(n){s=o?n(e,i,o,a):n(e)}if(s!==r){return s}if(!_c(e)){return e}var h=uc(e);if(h){s=ts(e);if(!u){return ia(e,s)}}else{var p=Ka(e),g=p==Y||p==q;if(dc(e)){return Xo(e,u)}if(p==ee||p==W||g&&!o){s=l||g?{}:rs(e);if(!u){return l?sa(e,di(s,e)):aa(e,vi(s,e))}}else{if(!qt[p]){return o?e:{}}s=ns(e,p,u)}}a||(a=new Jn);var m=a.get(e);if(m){return m}a.set(e,s);if(Tc(e)){e.forEach((function(r){s.add(mi(r,t,n,r,e,a))}))}else if(Ec(e)){e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}))}var C=c?l?Ba:Ha:l?_f:xf;var w=h?r:C(e);wr(w||e,(function(r,i){if(w){i=r;r=e[i]}li(s,i,mi(r,t,n,i,e,a))}));return s}function Ci(e){var t=xf(e);return function(r){return wi(r,e,t)}}function wi(e,t,n){var i=n.length;if(e==null){return!i}e=rt(e);while(i--){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s)){return false}}return true}function yi(e,t,n){if(typeof e!="function"){throw new ot(a)}return Ss((function(){e.apply(r,n)}),t)}function bi(e,t,r,n){var o=-1,a=xr,s=true,u=e.length,l=[],c=t.length;if(!u){return l}if(r){t=Sr(t,$r(r))}if(n){a=_r;s=false}else if(t.length>=i){a=Yr;s=false;t=new Yn(t)}e:while(++o<u){var f=e[o],v=r==null?f:r(f);f=n||f!==0?f:0;if(s&&v===v){var d=c;while(d--){if(t[d]===v){continue e}}l.push(f)}else if(!a(t,v,n)){l.push(f)}}return l}var Li=ca(ji);var xi=ca(Fi,true);function _i(e,t){var r=true;Li(e,(function(e,n,i){r=!!t(e,n,i);return r}));return r}function Si(e,t,n){var i=-1,o=e.length;while(++i<o){var a=e[i],s=t(a);if(s!=null&&(u===r?s===s&&!Hc(s):n(s,u))){var u=s,l=a}}return l}function Ei(e,t,n,i){var o=e.length;n=Xc(n);if(n<0){n=-n>o?0:o+n}i=i===r||i>o?o:Xc(i);if(i<0){i+=o}i=n>i?0:Yc(i);while(n<i){e[n++]=t}return e}function ki(e,t){var r=[];Li(e,(function(e,n,i){if(t(e,n,i)){r.push(e)}}));return r}function zi(e,t,r,n,i){var o=-1,a=e.length;r||(r=os);i||(i=[]);while(++o<a){var s=e[o];if(t>0&&r(s)){if(t>1){zi(s,t-1,r,n,i)}else{Er(i,s)}}else if(!n){i[i.length]=s}}return i}var Ri=fa();var Oi=fa(true);function ji(e,t){return e&&Ri(e,t,xf)}function Fi(e,t){return e&&Oi(e,t,xf)}function Pi(e,t){return Lr(t,(function(t){return bc(e[t])}))}function Di(e,t){t=Vo(t,e);var n=0,i=t.length;while(e!=null&&n<i){e=e[js(t[n++])]}return n&&n==i?e:r}function Ai(e,t,r){var n=t(e);return uc(e)?n:Er(n,r(e))}function Mi(e){if(e==null){return e===r?se:Q}return zt&&zt in rt(e)?Xa(e):ws(e)}function Ti(e,t){return e>t}function Ii(e,t){return e!=null&&ft.call(e,t)}function Hi(e,t){return e!=null&&t in rt(e)}function Bi(e,t,r){return e>=Nt(t,r)&&e<Bt(t,r)}function Ui(e,t,n){var i=n?_r:xr,o=e[0].length,a=e.length,s=a,u=y(a),l=Infinity,c=[];while(s--){var f=e[s];if(s&&t){f=Sr(f,$r(t))}l=Nt(f.length,l);u[s]=!n&&(t||o>=120&&f.length>=120)?new Yn(s&&f):r}f=e[0];var v=-1,d=u[0];e:while(++v<o&&c.length<l){var h=f[v],p=t?t(h):h;h=n||h!==0?h:0;if(!(d?Yr(d,p):i(c,p,n))){s=a;while(--s){var g=u[s];if(!(g?Yr(g,p):i(e[s],p,n))){continue e}}if(d){d.push(p)}c.push(h)}}return c}function Wi(e,t,r,n){ji(e,(function(e,i,o){t(n,r(e),i,o)}));return n}function Ni(e,t,n){t=Vo(t,e);e=bs(e,t);var i=e==null?e:e[js(ou(t))];return i==null?r:mr(i,e,n)}function Vi(e){return Sc(e)&&Mi(e)==W}function Zi(e){return Sc(e)&&Mi(e)==ce}function Gi(e){return Sc(e)&&Mi(e)==G}function $i(e,t,r,n,i){if(e===t){return true}if(e==null||t==null||!Sc(e)&&!Sc(t)){return e!==e&&t!==t}return Xi(e,t,r,n,$i,i)}function Xi(e,t,r,n,i,o){var a=uc(e),s=uc(t),u=a?N:Ka(e),l=s?N:Ka(t);u=u==W?ee:u;l=l==W?ee:l;var c=u==ee,f=l==ee,v=u==l;if(v&&dc(e)){if(!dc(t)){return false}a=true;c=false}if(v&&!c){o||(o=new Jn);return a||Bc(e)?Aa(e,t,r,n,i,o):Ma(e,t,u,r,n,i,o)}if(!(r&h)){var d=c&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(d||p){var g=d?e.value():e,m=p?t.value():t;o||(o=new Jn);return i(g,m,r,n,o)}}if(!v){return false}o||(o=new Jn);return Ta(e,t,r,n,i,o)}function Yi(e){return Sc(e)&&Ka(e)==K}function qi(e,t,n,i){var o=n.length,a=o,s=!i;if(e==null){return!a}e=rt(e);while(o--){var u=n[o];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++o<a){u=n[o];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===r&&!(l in e)){return false}}else{var v=new Jn;if(i){var d=i(c,f,l,e,t,v)}if(!(d===r?$i(f,c,h|p,i,v):d)){return false}}}return true}function Ki(e){if(!_c(e)||fs(e)){return false}var t=bc(e)?mt:Xe;return t.test(Fs(e))}function Ji(e){return Sc(e)&&Mi(e)==ne}function Qi(e){return Sc(e)&&Ka(e)==ie}function eo(e){return Sc(e)&&xc(e.length)&&!!Yt[Mi(e)]}function to(e){if(typeof e=="function"){return e}if(e==null){return jv}if(typeof e=="object"){return uc(e)?so(e[0],e[1]):ao(e)}return Vv(e)}function ro(e){if(!ds(e)){return Ht(e)}var t=[];for(var r in rt(e)){if(ft.call(e,r)&&r!="constructor"){t.push(r)}}return t}function no(e){if(!_c(e)){return Cs(e)}var t=ds(e),r=[];for(var n in e){if(!(n=="constructor"&&(t||!ft.call(e,n)))){r.push(n)}}return r}function io(e,t){return e<t}function oo(e,t){var r=-1,n=cc(e)?y(e.length):[];Li(e,(function(e,i,o){n[++r]=t(e,i,o)}));return n}function ao(e){var t=Ga(e);if(t.length==1&&t[0][2]){return ps(t[0][0],t[0][1])}return function(r){return r===e||qi(r,e,t)}}function so(e,t){if(us(e)&&hs(t)){return ps(js(e),t)}return function(n){var i=mf(n,e);return i===r&&i===t?wf(n,e):$i(t,i,h|p)}}function uo(e,t,n,i,o){if(e===t){return}Ri(t,(function(a,s){o||(o=new Jn);if(_c(a)){lo(e,t,s,n,uo,i,o)}else{var u=i?i(xs(e,s),a,s+"",e,t,o):r;if(u===r){u=a}ui(e,s,u)}}),_f)}function lo(e,t,n,i,o,a,s){var u=xs(e,n),l=xs(t,n),c=s.get(l);if(c){ui(e,n,c);return}var f=a?a(u,l,n+"",e,t,s):r;var v=f===r;if(v){var d=uc(l),h=!d&&dc(l),p=!d&&!h&&Bc(l);f=l;if(d||h||p){if(uc(u)){f=u}else if(fc(u)){f=ia(u)}else if(h){v=false;f=Xo(l,true)}else if(p){v=false;f=Qo(l,true)}else{f=[]}}else if(Dc(l)||sc(l)){f=u;if(sc(u)){f=Kc(u)}else if(!_c(u)||bc(u)){f=rs(l)}}else{v=false}}if(v){s.set(l,f);o(f,l,i,a,s);s["delete"](l)}ui(e,n,f)}function co(e,t){var n=e.length;if(!n){return}t+=t<0?n:0;return as(t,n)?e[t]:r}function fo(e,t,r){if(t.length){t=Sr(t,(function(e){if(uc(e)){return function(t){return Di(t,e.length===1?e[0]:e)}}return e}))}else{t=[jv]}var n=-1;t=Sr(t,$r(Va()));var i=oo(e,(function(e,r,i){var o=Sr(t,(function(t){return t(e)}));return{criteria:o,index:++n,value:e}}));return Wr(i,(function(e,t){return ta(e,t,r)}))}function vo(e,t){return ho(e,t,(function(t,r){return wf(e,r)}))}function ho(e,t,r){var n=-1,i=t.length,o={};while(++n<i){var a=t[n],s=Di(e,a);if(r(s,a)){_o(o,Vo(a,e),s)}}return o}function po(e){return function(t){return Di(t,e)}}function go(e,t,r,n){var i=n?Mr:Ar,o=-1,a=t.length,s=e;if(e===t){t=ia(t)}if(r){s=Sr(e,$r(r))}while(++o<a){var u=0,l=t[o],c=r?r(l):l;while((u=i(s,c,u,n))>-1){if(s!==e){St.call(s,u,1)}St.call(e,u,1)}}return e}function mo(e,t){var r=e?t.length:0,n=r-1;while(r--){var i=t[r];if(r==n||i!==o){var o=i;if(as(i)){St.call(e,i,1)}else{Mo(e,i)}}}return e}function Co(e,t){return e+Dt(Gt()*(t-e+1))}function wo(e,t,r,n){var i=-1,o=Bt(Pt((t-e)/(r||1)),0),a=y(o);while(o--){a[n?o:++i]=e;e+=r}return a}function yo(e,t){var r="";if(!e||t<1||t>A){return r}do{if(t%2){r+=e}t=Dt(t/2);if(t){e+=e}}while(t);return r}function bo(e,t){return Es(ys(e,t,jv),e+"")}function Lo(e){return oi(Wf(e))}function xo(e,t){var r=Wf(e);return Rs(r,gi(t,0,r.length))}function _o(e,t,n,i){if(!_c(e)){return e}t=Vo(t,e);var o=-1,a=t.length,s=a-1,u=e;while(u!=null&&++o<a){var l=js(t[o]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype"){return e}if(o!=s){var f=u[l];c=i?i(f,l,u):r;if(c===r){c=_c(f)?f:as(t[o+1])?[]:{}}}li(u,l,c);u=u[l]}return e}var So=!sr?jv:function(e,t){sr.set(e,t);return e};var Eo=!Rt?jv:function(e,t){return Rt(e,"toString",{configurable:true,enumerable:false,value:kv(t),writable:true})};function ko(e){return Rs(Wf(e))}function zo(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=y(i);while(++n<i){o[n]=e[n+t]}return o}function Ro(e,t){var r;Li(e,(function(e,n,i){r=t(e,n,i);return!r}));return!!r}function Oo(e,t,r){var n=0,i=e==null?n:e.length;if(typeof t=="number"&&t===t&&i<=B){while(n<i){var o=n+i>>>1,a=e[o];if(a!==null&&!Hc(a)&&(r?a<=t:a<t)){n=o+1}else{i=o}}return i}return jo(e,t,jv,r)}function jo(e,t,n,i){var o=0,a=e==null?0:e.length;if(a===0){return 0}t=n(t);var s=t!==t,u=t===null,l=Hc(t),c=t===r;while(o<a){var f=Dt((o+a)/2),v=n(e[f]),d=v!==r,h=v===null,p=v===v,g=Hc(v);if(s){var m=i||p}else if(c){m=p&&(i||d)}else if(u){m=p&&d&&(i||!h)}else if(l){m=p&&d&&!h&&(i||!g)}else if(h||g){m=false}else{m=i?v<=t:v<t}if(m){o=f+1}else{a=f}}return Nt(a,H)}function Fo(e,t){var r=-1,n=e.length,i=0,o=[];while(++r<n){var a=e[r],s=t?t(a):a;if(!r||!ic(s,u)){var u=s;o[i++]=a===0?0:a}}return o}function Po(e){if(typeof e=="number"){return e}if(Hc(e)){return T}return+e}function Do(e){if(typeof e=="string"){return e}if(uc(e)){return Sr(e,Do)+""}if(Hc(e)){return bn?bn.call(e):""}var t=e+"";return t=="0"&&1/e==-D?"-0":t}function Ao(e,t,r){var n=-1,o=xr,a=e.length,s=true,u=[],l=u;if(r){s=false;o=_r}else if(a>=i){var c=t?null:Ra(e);if(c){return cn(c)}s=false;o=Yr;l=new Yn}else{l=t?[]:u}e:while(++n<a){var f=e[n],v=t?t(f):f;f=r||f!==0?f:0;if(s&&v===v){var d=l.length;while(d--){if(l[d]===v){continue e}}if(t){l.push(v)}u.push(f)}else if(!o(l,v,r)){if(l!==u){l.push(v)}u.push(f)}}return u}function Mo(e,t){t=Vo(t,e);e=bs(e,t);return e==null||delete e[js(ou(t))]}function To(e,t,r,n){return _o(e,t,r(Di(e,t)),n)}function Io(e,t,r,n){var i=e.length,o=n?i:-1;while((n?o--:++o<i)&&t(e[o],o,e)){}return r?zo(e,n?0:o,n?o+1:i):zo(e,n?o+1:0,n?i:o)}function Ho(e,t){var r=e;if(r instanceof kn){r=r.value()}return kr(t,(function(e,t){return t.func.apply(t.thisArg,Er([e],t.args))}),r)}function Bo(e,t,r){var n=e.length;if(n<2){return n?Ao(e[0]):[]}var i=-1,o=y(n);while(++i<n){var a=e[i],s=-1;while(++s<n){if(s!=i){o[i]=bi(o[i]||a,e[s],t,r)}}}return Ao(zi(o,1),t,r)}function Uo(e,t,n){var i=-1,o=e.length,a=t.length,s={};while(++i<o){var u=i<a?t[i]:r;n(s,e[i],u)}return s}function Wo(e){return fc(e)?e:[]}function No(e){return typeof e=="function"?e:jv}function Vo(e,t){if(uc(e)){return e}return us(e,t)?[e]:Os(Qc(e))}var Zo=bo;function Go(e,t,n){var i=e.length;n=n===r?i:n;return!t&&n>=i?e:zo(e,t,n)}var $o=Ot||function(e){return or.clearTimeout(e)};function Xo(e,t){if(t){return e.slice()}var r=e.length,n=bt?bt(r):new e.constructor(r);e.copy(n);return n}function Yo(e){var t=new e.constructor(e.byteLength);new yt(t).set(new yt(e));return t}function qo(e,t){var r=t?Yo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function Ko(e){var t=new e.constructor(e.source,Ze.exec(e));t.lastIndex=e.lastIndex;return t}function Jo(e){return wn?rt(wn.call(e)):{}}function Qo(e,t){var r=t?Yo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==r,i=e===null,o=e===e,a=Hc(e);var s=t!==r,u=t===null,l=t===t,c=Hc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||i&&s&&l||!n&&l||!o){return 1}if(!i&&!a&&!c&&e<t||c&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!l){return-1}}return 0}function ta(e,t,r){var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;while(++n<a){var u=ea(i[n],o[n]);if(u){if(n>=s){return u}var l=r[n];return u*(l=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,r,n){var i=-1,o=e.length,a=r.length,s=-1,u=t.length,l=Bt(o-a,0),c=y(u+l),f=!n;while(++s<u){c[s]=t[s]}while(++i<a){if(f||i<o){c[r[i]]=e[i]}}while(l--){c[s++]=e[i++]}return c}function na(e,t,r,n){var i=-1,o=e.length,a=-1,s=r.length,u=-1,l=t.length,c=Bt(o-s,0),f=y(c+l),v=!n;while(++i<c){f[i]=e[i]}var d=i;while(++u<l){f[d+u]=t[u]}while(++a<s){if(v||i<o){f[d+r[a]]=e[i++]}}return f}function ia(e,t){var r=-1,n=e.length;t||(t=y(n));while(++r<n){t[r]=e[r]}return t}function oa(e,t,n,i){var o=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a];var l=i?i(n[u],e[u],u,n,e):r;if(l===r){l=e[u]}if(o){hi(n,u,l)}else{li(n,u,l)}}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,qa(e),t)}function ua(e,t){return function(r,n){var i=uc(r)?Cr:fi,o=t?t():{};return i(r,e,Va(n,2),o)}}function la(e){return bo((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;a=e.length>3&&typeof a=="function"?(o--,a):r;if(s&&ss(n[0],n[1],s)){a=o<3?r:a;o=1}t=rt(t);while(++i<o){var u=n[i];if(u){e(t,u,i,a)}}return t}))}function ca(e,t){return function(r,n){if(r==null){return r}if(!cc(r)){return e(r,n)}var i=r.length,o=t?i:-1,a=rt(r);while(t?o--:++o<i){if(n(a[o],o,a)===false){break}}return r}}function fa(e){return function(t,r,n){var i=-1,o=rt(t),a=n(t),s=a.length;while(s--){var u=a[e?s:++i];if(r(o[u],u,o)===false){break}}return t}}function va(e,t,r){var n=t&g,i=pa(e);function o(){var t=this&&this!==or&&this instanceof o?i:e;return t.apply(n?r:this,arguments)}return o}function da(e){return function(t){t=Qc(t);var n=nn(t)?pn(t):r;var i=n?n[0]:t.charAt(0);var o=n?Go(n,1).join(""):t.slice(1);return i[e]()+o}}function ha(e){return function(t){return kr(Lv(Yf(t).replace(Ut,"")),e,"")}}function pa(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=_n(e.prototype),n=e.apply(r,t);return _c(n)?n:r}}function ga(e,t,n){var i=pa(e);function o(){var a=arguments.length,s=y(a),u=a,l=Na(o);while(u--){s[u]=arguments[u]}var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:ln(s,l);a-=c.length;if(a<n){return ka(e,t,wa,o.placeholder,r,s,c,r,r,n-a)}var f=this&&this!==or&&this instanceof o?i:e;return mr(f,this,s)}return o}function ma(e){return function(t,n,i){var o=rt(t);if(!cc(t)){var a=Va(n,3);t=xf(t);n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Ca(e){return Ia((function(t){var n=t.length,i=n,o=En.prototype.thru;if(e){t.reverse()}while(i--){var s=t[i];if(typeof s!="function"){throw new ot(a)}if(o&&!u&&Wa(s)=="wrapper"){var u=new En([],true)}}i=u?i:n;while(++i<n){s=t[i];var l=Wa(s),c=l=="wrapper"?Ua(s):r;if(c&&cs(c[0])&&c[1]==(_|w|L|S)&&!c[4].length&&c[9]==1){u=u[Wa(c[0])].apply(u,c[3])}else{u=s.length==1&&cs(s)?u[l]():u.thru(s)}}return function(){var e=arguments,r=e[0];if(u&&e.length==1&&uc(r)){return u.plant(r).value()}var i=0,o=n?t[i].apply(this,e):r;while(++i<n){o=t[i].call(this,o)}return o}}))}function wa(e,t,n,i,o,a,s,u,l,c){var f=t&_,v=t&g,d=t&m,h=t&(w|b),p=t&E,C=d?r:pa(e);function L(){var r=arguments.length,g=y(r),m=r;while(m--){g[m]=arguments[m]}if(h){var w=Na(L),b=Jr(g,w)}if(i){g=ra(g,i,o,h)}if(a){g=na(g,a,s,h)}r-=b;if(h&&r<c){var x=ln(g,w);return ka(e,t,wa,L.placeholder,n,g,x,u,l,c-r)}var _=v?n:this,S=d?_[e]:e;r=g.length;if(u){g=Ls(g,u)}else if(p&&r>1){g.reverse()}if(f&&l<r){g.length=l}if(this&&this!==or&&this instanceof L){S=C||pa(S)}return S.apply(_,g)}return L}function ya(e,t){return function(r,n){return Wi(r,e,t(n),{})}}function ba(e,t){return function(n,i){var o;if(n===r&&i===r){return t}if(n!==r){o=n}if(i!==r){if(o===r){return i}if(typeof n=="string"||typeof i=="string"){n=Do(n);i=Do(i)}else{n=Po(n);i=Po(i)}o=e(n,i)}return o}}function La(e){return Ia((function(t){t=Sr(t,$r(Va()));return bo((function(r){var n=this;return e(t,(function(e){return mr(e,n,r)}))}))}))}function xa(e,t){t=t===r?" ":Do(t);var n=t.length;if(n<2){return n?yo(t,e):t}var i=yo(t,Pt(e/hn(t)));return nn(t)?Go(pn(i),0,e).join(""):i.slice(0,e)}function _a(e,t,r,n){var i=t&g,o=pa(e);function a(){var t=-1,s=arguments.length,u=-1,l=n.length,c=y(l+s),f=this&&this!==or&&this instanceof a?o:e;while(++u<l){c[u]=n[u]}while(s--){c[u++]=arguments[++t]}return mr(f,i?r:this,c)}return a}function Sa(e){return function(t,n,i){if(i&&typeof i!="number"&&ss(t,n,i)){n=i=r}t=$c(t);if(n===r){n=t;t=0}else{n=$c(n)}i=i===r?t<n?1:-1:$c(i);return wo(t,n,i,e)}}function Ea(e){return function(t,r){if(!(typeof t=="string"&&typeof r=="string")){t=qc(t);r=qc(r)}return e(t,r)}}function ka(e,t,n,i,o,a,s,u,l,c){var f=t&w,v=f?s:r,d=f?r:s,h=f?a:r,p=f?r:a;t|=f?L:x;t&=~(f?x:L);if(!(t&C)){t&=~(g|m)}var y=[e,t,o,h,v,p,d,u,l,c];var b=n.apply(r,y);if(cs(e)){_s(b,y)}b.placeholder=i;return ks(b,e,t)}function za(e){var t=tt[e];return function(e,r){e=qc(e);r=r==null?0:Nt(Xc(r),292);if(r&&Tt(e)){var n=(Qc(e)+"e").split("e"),i=t(n[0]+"e"+(+n[1]+r));n=(Qc(i)+"e").split("e");return+(n[0]+"e"+(+n[1]-r))}return t(e)}}var Ra=!(nr&&1/cn(new nr([,-0]))[1]==D)?Hv:function(e){return new nr(e)};function Oa(e){return function(t){var r=Ka(t);if(r==K){return sn(t)}if(r==ie){return fn(t)}return Zr(t,e(t))}}function ja(e,t,n,i,o,s,u,l){var c=t&m;if(!c&&typeof e!="function"){throw new ot(a)}var f=i?i.length:0;if(!f){t&=~(L|x);i=o=r}u=u===r?u:Bt(Xc(u),0);l=l===r?l:Xc(l);f-=o?o.length:0;if(t&x){var v=i,d=o;i=o=r}var h=c?r:Ua(e);var p=[e,t,n,i,o,v,d,s,u,l];if(h){ms(p,h)}e=p[0];t=p[1];n=p[2];i=p[3];o=p[4];l=p[9]=p[9]===r?c?0:e.length:Bt(p[9]-f,0);if(!l&&t&(w|b)){t&=~(w|b)}if(!t||t==g){var C=va(e,t,n)}else if(t==w||t==b){C=ga(e,t,l)}else if((t==L||t==(g|L))&&!o.length){C=_a(e,t,n,i)}else{C=wa.apply(r,p)}var y=h?So:_s;return ks(y(C,p),e,t)}function Fa(e,t,n,i){if(e===r||ic(e,ut[n])&&!ft.call(i,n)){return t}return e}function Pa(e,t,n,i,o,a){if(_c(e)&&_c(t)){a.set(t,e);uo(e,t,r,Pa,a);a["delete"](t)}return e}function Da(e){return Dc(e)?r:e}function Aa(e,t,n,i,o,a){var s=n&h,u=e.length,l=t.length;if(u!=l&&!(s&&l>u)){return false}var c=a.get(e);var f=a.get(t);if(c&&f){return c==t&&f==e}var v=-1,d=true,g=n&p?new Yn:r;a.set(e,t);a.set(t,e);while(++v<u){var m=e[v],C=t[v];if(i){var w=s?i(C,m,v,t,e,a):i(m,C,v,e,t,a)}if(w!==r){if(w){continue}d=false;break}if(g){if(!Rr(t,(function(e,t){if(!Yr(g,t)&&(m===e||o(m,e,n,i,a))){return g.push(t)}}))){d=false;break}}else if(!(m===C||o(m,C,n,i,a))){d=false;break}}a["delete"](e);a["delete"](t);return d}function Ma(e,t,r,n,i,o,a){switch(r){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case ce:if(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t))){return false}return true;case Z:case G:case J:return ic(+e,+t);case X:return e.name==t.name&&e.message==t.message;case ne:case oe:return e==t+"";case K:var s=sn;case ie:var u=n&h;s||(s=cn);if(e.size!=t.size&&!u){return false}var l=a.get(e);if(l){return l==t}n|=p;a.set(e,t);var c=Aa(s(e),s(t),n,i,o,a);a["delete"](e);return c;case ae:if(wn){return wn.call(e)==wn.call(t)}}return false}function Ta(e,t,n,i,o,a){var s=n&h,u=Ha(e),l=u.length,c=Ha(t),f=c.length;if(l!=f&&!s){return false}var v=l;while(v--){var d=u[v];if(!(s?d in t:ft.call(t,d))){return false}}var p=a.get(e);var g=a.get(t);if(p&&g){return p==t&&g==e}var m=true;a.set(e,t);a.set(t,e);var C=s;while(++v<l){d=u[v];var w=e[d],y=t[d];if(i){var b=s?i(y,w,d,t,e,a):i(w,y,d,e,t,a)}if(!(b===r?w===y||o(w,y,n,i,a):b)){m=false;break}C||(C=d=="constructor")}if(m&&!C){var L=e.constructor,x=t.constructor;if(L!=x&&("constructor"in e&&"constructor"in t)&&!(typeof L=="function"&&L instanceof L&&typeof x=="function"&&x instanceof x)){m=false}}a["delete"](e);a["delete"](t);return m}function Ia(e){return Es(ys(e,r,Xs),e+"")}function Ha(e){return Ai(e,xf,Ya)}function Ba(e){return Ai(e,_f,qa)}var Ua=!sr?Hv:function(e){return sr.get(e)};function Wa(e){var t=e.name+"",r=lr[t],n=ft.call(lr,t)?r.length:0;while(n--){var i=r[n],o=i.func;if(o==null||o==e){return i.name}}return t}function Na(e){var t=ft.call(xn,"placeholder")?xn:e;return t.placeholder}function Va(){var e=xn.iteratee||Fv;e=e===Fv?to:e;return arguments.length?e(arguments[0],arguments[1]):e}function Za(e,t){var r=e.__data__;return ls(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ga(e){var t=xf(e),r=t.length;while(r--){var n=t[r],i=e[n];t[r]=[n,i,hs(i)]}return t}function $a(e,t){var n=rn(e,t);return Ki(n)?n:r}function Xa(e){var t=ft.call(e,zt),n=e[zt];try{e[zt]=r;var i=true}catch(e){}var o=ht.call(e);if(i){if(t){e[zt]=n}else{delete e[zt]}}return o}var Ya=!At?Xv:function(e){if(e==null){return[]}e=rt(e);return Lr(At(e),(function(t){return _t.call(e,t)}))};var qa=!At?Xv:function(e){var t=[];while(e){Er(t,Ya(e));e=Lt(e)}return t};var Ka=Mi;if(Jt&&Ka(new Jt(new ArrayBuffer(1)))!=fe||Qt&&Ka(new Qt)!=K||er&&Ka(er.resolve())!=te||nr&&Ka(new nr)!=ie||ir&&Ka(new ir)!=ue){Ka=function(e){var t=Mi(e),n=t==ee?e.constructor:r,i=n?Fs(n):"";if(i){switch(i){case cr:return fe;case Or:return K;case jr:return te;case Br:return ie;case vn:return ue}}return t}}function Ja(e,t,r){var n=-1,i=r.length;while(++n<i){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Nt(t,e+a);break;case"takeRight":e=Bt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(He);return t?t[1].split(Be):[]}function es(e,t,r){t=Vo(t,e);var n=-1,i=t.length,o=false;while(++n<i){var a=js(t[n]);if(!(o=e!=null&&r(e,a))){break}e=e[a]}if(o||++n!=i){return o}i=e==null?0:e.length;return!!i&&xc(i)&&as(a,i)&&(uc(e)||sc(e))}function ts(e){var t=e.length,r=new e.constructor(t);if(t&&typeof e[0]=="string"&&ft.call(e,"index")){r.index=e.index;r.input=e.input}return r}function rs(e){return typeof e.constructor=="function"&&!ds(e)?_n(Lt(e)):{}}function ns(e,t,r){var n=e.constructor;switch(t){case ce:return Yo(e);case Z:case G:return new n(+e);case fe:return qo(e,r);case ve:case de:case he:case pe:case ge:case me:case Ce:case we:case ye:return Qo(e,r);case K:return new n;case J:case oe:return new n(e);case ne:return Ko(e);case ie:return new n;case ae:return Jo(e)}}function is(e,t){var r=t.length;if(!r){return e}var n=r-1;t[n]=(r>1?"& ":"")+t[n];t=t.join(r>2?", ":" ");return e.replace(Ie,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Et&&e&&e[Et])}function as(e,t){var r=typeof e;t=t==null?A:t;return!!t&&(r=="number"||r!="symbol"&&qe.test(e))&&(e>-1&&e%1==0&&e<t)}function ss(e,t,r){if(!_c(r)){return false}var n=typeof t;if(n=="number"?cc(r)&&as(t,r.length):n=="string"&&t in r){return ic(r[t],e)}return false}function us(e,t){if(uc(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||Hc(e)){return true}return Fe.test(e)||!je.test(e)||t!=null&&e in rt(t)}function ls(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cs(e){var t=Wa(e),r=xn[t];if(typeof r!="function"||!(t in kn.prototype)){return false}if(e===r){return true}var n=Ua(r);return!!n&&e===n[0]}function fs(e){return!!dt&&dt in e}var vs=lt?bc:Yv;function ds(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||ut;return e===r}function hs(e){return e===e&&!_c(e)}function ps(e,t){return function(n){if(n==null){return false}return n[e]===t&&(t!==r||e in rt(n))}}function gs(e){var t=Bl(e,(function(e){if(r.size===l){r.clear()}return e}));var r=t.cache;return t}function ms(e,t){var r=e[1],n=t[1],i=r|n,o=i<(g|m|_);var a=n==_&&r==w||n==_&&r==S&&e[7].length<=t[8]||n==(_|S)&&t[7].length<=t[8]&&r==w;if(!(o||a)){return e}if(n&g){e[2]=t[2];i|=r&g?0:C}var s=t[3];if(s){var u=e[3];e[3]=u?ra(u,s,t[4]):s;e[4]=u?ln(e[3],c):t[4]}s=t[5];if(s){u=e[5];e[5]=u?na(u,s,t[6]):s;e[6]=u?ln(e[5],c):t[6]}s=t[7];if(s){e[7]=s}if(n&_){e[8]=e[8]==null?t[8]:Nt(e[8],t[8])}if(e[9]==null){e[9]=t[9]}e[0]=t[0];e[1]=i;return e}function Cs(e){var t=[];if(e!=null){for(var r in rt(e)){t.push(r)}}return t}function ws(e){return ht.call(e)}function ys(e,t,n){t=Bt(t===r?e.length-1:t,0);return function(){var r=arguments,i=-1,o=Bt(r.length-t,0),a=y(o);while(++i<o){a[i]=r[t+i]}i=-1;var s=y(t+1);while(++i<t){s[i]=r[i]}s[t]=n(a);return mr(e,this,s)}}function bs(e,t){return t.length<2?e:Di(e,zo(t,0,-1))}function Ls(e,t){var n=e.length,i=Nt(t.length,n),o=ia(e);while(i--){var a=t[i];e[i]=as(a,n)?o[a]:r}return e}function xs(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}var _s=zs(So);var Ss=Ft||function(e,t){return or.setTimeout(e,t)};var Es=zs(Eo);function ks(e,t,r){var n=t+"";return Es(e,is(n,Ps(Qa(n),r)))}function zs(e){var t=0,n=0;return function(){var i=Vt(),o=O-(i-n);n=i;if(o>0){if(++t>=R){return arguments[0]}}else{t=0}return e.apply(r,arguments)}}function Rs(e,t){var n=-1,i=e.length,o=i-1;t=t===r?i:t;while(++n<t){var a=Co(n,o),s=e[a];e[a]=e[n];e[n]=s}e.length=t;return e}var Os=gs((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(Pe,(function(e,r,n,i){t.push(n?i.replace(Ne,"$1"):r||e)}));return t}));function js(e){if(typeof e=="string"||Hc(e)){return e}var t=e+"";return t=="0"&&1/e==-D?"-0":t}function Fs(e){if(e!=null){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ps(e,t){wr(U,(function(r){var n="_."+r[0];if(t&r[1]&&!xr(e,n)){e.push(n)}}));return e.sort()}function Ds(e){if(e instanceof kn){return e.clone()}var t=new En(e.__wrapped__,e.__chain__);t.__actions__=ia(e.__actions__);t.__index__=e.__index__;t.__values__=e.__values__;return t}function As(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Bt(Xc(t),0)}var i=e==null?0:e.length;if(!i||t<1){return[]}var o=0,a=0,s=y(Pt(i/t));while(o<i){s[a++]=zo(e,o,o+=t)}return s}function Ms(e){var t=-1,r=e==null?0:e.length,n=0,i=[];while(++t<r){var o=e[t];if(o){i[n++]=o}}return i}function Ts(){var e=arguments.length;if(!e){return[]}var t=y(e-1),r=arguments[0],n=e;while(n--){t[n-1]=arguments[n]}return Er(uc(r)?ia(r):[r],zi(t,1))}var Is=bo((function(e,t){return fc(e)?bi(e,zi(t,1,fc,true)):[]}));var Hs=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,zi(t,1,fc,true),Va(n,2)):[]}));var Bs=bo((function(e,t){var n=ou(t);if(fc(n)){n=r}return fc(e)?bi(e,zi(t,1,fc,true),r,n):[]}));function Us(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);return zo(e,t<0?0:t,i)}function Ws(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);t=i-t;return zo(e,0,t<0?0:t)}function Ns(e,t){return e&&e.length?Io(e,Va(t,3),true,true):[]}function Vs(e,t){return e&&e.length?Io(e,Va(t,3),true):[]}function Zs(e,t,r,n){var i=e==null?0:e.length;if(!i){return[]}if(r&&typeof r!="number"&&ss(e,t,r)){r=0;n=i}return Ei(e,t,r,n)}function Gs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Xc(r);if(i<0){i=Bt(n+i,0)}return Dr(e,Va(t,3),i)}function $s(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i-1;if(n!==r){o=Xc(n);o=n<0?Bt(i+o,0):Nt(o,i-1)}return Dr(e,Va(t,3),o,true)}function Xs(e){var t=e==null?0:e.length;return t?zi(e,1):[]}function Ys(e){var t=e==null?0:e.length;return t?zi(e,D):[]}function qs(e,t){var n=e==null?0:e.length;if(!n){return[]}t=t===r?1:Xc(t);return zi(e,t)}function Ks(e){var t=-1,r=e==null?0:e.length,n={};while(++t<r){var i=e[t];n[i[0]]=i[1]}return n}function Js(e){return e&&e.length?e[0]:r}function Qs(e,t,r){var n=e==null?0:e.length;if(!n){return-1}var i=r==null?0:Xc(r);if(i<0){i=Bt(n+i,0)}return Ar(e,t,i)}function eu(e){var t=e==null?0:e.length;return t?zo(e,0,-1):[]}var tu=bo((function(e){var t=Sr(e,Wo);return t.length&&t[0]===e[0]?Ui(t):[]}));var ru=bo((function(e){var t=ou(e),n=Sr(e,Wo);if(t===ou(n)){t=r}else{n.pop()}return n.length&&n[0]===e[0]?Ui(n,Va(t,2)):[]}));var nu=bo((function(e){var t=ou(e),n=Sr(e,Wo);t=typeof t=="function"?t:r;if(t){n.pop()}return n.length&&n[0]===e[0]?Ui(n,r,t):[]}));function iu(e,t){return e==null?"":It.call(e,t)}function ou(e){var t=e==null?0:e.length;return t?e[t-1]:r}function au(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var o=i;if(n!==r){o=Xc(n);o=o<0?Bt(i+o,0):Nt(o,i-1)}return t===t?dn(e,t,o):Dr(e,Tr,o,true)}function su(e,t){return e&&e.length?co(e,Xc(t)):r}var uu=bo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,r){return e&&e.length&&t&&t.length?go(e,t,Va(r,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,r,n):e}var vu=Ia((function(e,t){var r=e==null?0:e.length,n=pi(e,t);mo(e,Sr(t,(function(e){return as(e,r)?+e:e})).sort(ea));return n}));function du(e,t){var r=[];if(!(e&&e.length)){return r}var n=-1,i=[],o=e.length;t=Va(t,3);while(++n<o){var a=e[n];if(t(a,n,e)){r.push(a);i.push(n)}}mo(e,i);return r}function hu(e){return e==null?e:Kt.call(e)}function pu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}if(n&&typeof n!="number"&&ss(e,t,n)){t=0;n=i}else{t=t==null?0:Xc(t);n=n===r?i:Xc(n)}return zo(e,t,n)}function gu(e,t){return Oo(e,t)}function mu(e,t,r){return jo(e,t,Va(r,2))}function Cu(e,t){var r=e==null?0:e.length;if(r){var n=Oo(e,t);if(n<r&&ic(e[n],t)){return n}}return-1}function wu(e,t){return Oo(e,t,true)}function yu(e,t,r){return jo(e,t,Va(r,2),true)}function bu(e,t){var r=e==null?0:e.length;if(r){var n=Oo(e,t,true)-1;if(ic(e[n],t)){return n}}return-1}function Lu(e){return e&&e.length?Fo(e):[]}function xu(e,t){return e&&e.length?Fo(e,Va(t,2)):[]}function _u(e){var t=e==null?0:e.length;return t?zo(e,1,t):[]}function Su(e,t,n){if(!(e&&e.length)){return[]}t=n||t===r?1:Xc(t);return zo(e,0,t<0?0:t)}function Eu(e,t,n){var i=e==null?0:e.length;if(!i){return[]}t=n||t===r?1:Xc(t);t=i-t;return zo(e,t<0?0:t,i)}function ku(e,t){return e&&e.length?Io(e,Va(t,3),false,true):[]}function zu(e,t){return e&&e.length?Io(e,Va(t,3)):[]}var Ru=bo((function(e){return Ao(zi(e,1,fc,true))}));var Ou=bo((function(e){var t=ou(e);if(fc(t)){t=r}return Ao(zi(e,1,fc,true),Va(t,2))}));var ju=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Ao(zi(e,1,fc,true),r,t)}));function Fu(e){return e&&e.length?Ao(e):[]}function Pu(e,t){return e&&e.length?Ao(e,Va(t,2)):[]}function Du(e,t){t=typeof t=="function"?t:r;return e&&e.length?Ao(e,r,t):[]}function Au(e){if(!(e&&e.length)){return[]}var t=0;e=Lr(e,(function(e){if(fc(e)){t=Bt(e.length,t);return true}}));return Vr(t,(function(t){return Sr(e,Hr(t))}))}function Mu(e,t){if(!(e&&e.length)){return[]}var n=Au(e);if(t==null){return n}return Sr(n,(function(e){return mr(t,r,e)}))}var Tu=bo((function(e,t){return fc(e)?bi(e,t):[]}));var Iu=bo((function(e){return Bo(Lr(e,fc))}));var Hu=bo((function(e){var t=ou(e);if(fc(t)){t=r}return Bo(Lr(e,fc),Va(t,2))}));var Bu=bo((function(e){var t=ou(e);t=typeof t=="function"?t:r;return Bo(Lr(e,fc),r,t)}));var Uu=bo(Au);function Wu(e,t){return Uo(e||[],t||[],li)}function Nu(e,t){return Uo(e||[],t||[],_o)}var Vu=bo((function(e){var t=e.length,n=t>1?e[t-1]:r;n=typeof n=="function"?(e.pop(),n):r;return Mu(e,n)}));function Zu(e){var t=xn(e);t.__chain__=true;return t}function Gu(e,t){t(e);return e}function $u(e,t){return t(e)}var Xu=Ia((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return pi(t,e)};if(t>1||this.__actions__.length||!(i instanceof kn)||!as(n)){return this.thru(o)}i=i.slice(n,+n+(t?1:0));i.__actions__.push({func:$u,args:[o],thisArg:r});return new En(i,this.__chain__).thru((function(e){if(t&&!e.length){e.push(r)}return e}))}));function Yu(){return Zu(this)}function qu(){return new En(this.value(),this.__chain__)}function Ku(){if(this.__values__===r){this.__values__=Gc(this.value())}var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Ju(){return this}function Qu(e){var t,n=this;while(n instanceof Sn){var i=Ds(n);i.__index__=0;i.__values__=r;if(t){o.__wrapped__=i}else{t=i}var o=i;n=n.__wrapped__}o.__wrapped__=e;return t}function el(){var e=this.__wrapped__;if(e instanceof kn){var t=e;if(this.__actions__.length){t=new kn(this)}t=t.reverse();t.__actions__.push({func:$u,args:[hu],thisArg:r});return new En(t,this.__chain__)}return this.thru(hu)}function tl(){return Ho(this.__wrapped__,this.__actions__)}var rl=ua((function(e,t,r){if(ft.call(e,r)){++e[r]}else{hi(e,r,1)}}));function nl(e,t,n){var i=uc(e)?br:_i;if(n&&ss(e,t,n)){t=r}return i(e,Va(t,3))}function il(e,t){var r=uc(e)?Lr:ki;return r(e,Va(t,3))}var ol=ma(Gs);var al=ma($s);function sl(e,t){return zi(gl(e,t),1)}function ul(e,t){return zi(gl(e,t),D)}function ll(e,t,n){n=n===r?1:Xc(n);return zi(gl(e,t),n)}function cl(e,t){var r=uc(e)?wr:Li;return r(e,Va(t,3))}function fl(e,t){var r=uc(e)?yr:xi;return r(e,Va(t,3))}var vl=ua((function(e,t,r){if(ft.call(e,r)){e[r].push(t)}else{hi(e,r,[t])}}));function dl(e,t,r,n){e=cc(e)?e:Wf(e);r=r&&!n?Xc(r):0;var i=e.length;if(r<0){r=Bt(i+r,0)}return Ic(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Ar(e,t,r)>-1}var hl=bo((function(e,t,r){var n=-1,i=typeof t=="function",o=cc(e)?y(e.length):[];Li(e,(function(e){o[++n]=i?mr(t,e,r):Ni(e,t,r)}));return o}));var pl=ua((function(e,t,r){hi(e,r,t)}));function gl(e,t){var r=uc(e)?Sr:oo;return r(e,Va(t,3))}function ml(e,t,n,i){if(e==null){return[]}if(!uc(t)){t=t==null?[]:[t]}n=i?r:n;if(!uc(n)){n=n==null?[]:[n]}return fo(e,t,n)}var Cl=ua((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));function wl(e,t,r){var n=uc(e)?kr:Ur,i=arguments.length<3;return n(e,Va(t,4),r,i,Li)}function yl(e,t,r){var n=uc(e)?zr:Ur,i=arguments.length<3;return n(e,Va(t,4),r,i,xi)}function bl(e,t){var r=uc(e)?Lr:ki;return r(e,Ul(Va(t,3)))}function Ll(e){var t=uc(e)?oi:Lo;return t(e)}function xl(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Xc(t)}var i=uc(e)?ai:xo;return i(e,t)}function _l(e){var t=uc(e)?si:ko;return t(e)}function Sl(e){if(e==null){return 0}if(cc(e)){return Ic(e)?hn(e):e.length}var t=Ka(e);if(t==K||t==ie){return e.size}return ro(e).length}function El(e,t,n){var i=uc(e)?Rr:Ro;if(n&&ss(e,t,n)){t=r}return i(e,Va(t,3))}var kl=bo((function(e,t){if(e==null){return[]}var r=t.length;if(r>1&&ss(e,t[0],t[1])){t=[]}else if(r>2&&ss(t[0],t[1],t[2])){t=[t[0]]}return fo(e,zi(t,1),[])}));var zl=jt||function(){return or.Date.now()};function Rl(e,t){if(typeof t!="function"){throw new ot(a)}e=Xc(e);return function(){if(--e<1){return t.apply(this,arguments)}}}function Ol(e,t,n){t=n?r:t;t=e&&t==null?e.length:t;return ja(e,_,r,r,r,r,t)}function jl(e,t){var n;if(typeof t!="function"){throw new ot(a)}e=Xc(e);return function(){if(--e>0){n=t.apply(this,arguments)}if(e<=1){t=r}return n}}var Fl=bo((function(e,t,r){var n=g;if(r.length){var i=ln(r,Na(Fl));n|=L}return ja(e,n,t,r,i)}));var Pl=bo((function(e,t,r){var n=g|m;if(r.length){var i=ln(r,Na(Pl));n|=L}return ja(t,n,e,r,i)}));function Dl(e,t,n){t=n?r:t;var i=ja(e,w,r,r,r,r,r,t);i.placeholder=Dl.placeholder;return i}function Al(e,t,n){t=n?r:t;var i=ja(e,b,r,r,r,r,r,t);i.placeholder=Al.placeholder;return i}function Ml(e,t,n){var i,o,s,u,l,c,f=0,v=false,d=false,h=true;if(typeof e!="function"){throw new ot(a)}t=qc(t)||0;if(_c(n)){v=!!n.leading;d="maxWait"in n;s=d?Bt(qc(n.maxWait)||0,t):s;h="trailing"in n?!!n.trailing:h}function p(t){var n=i,a=o;i=o=r;f=t;u=e.apply(a,n);return u}function g(e){f=e;l=Ss(w,t);return v?p(e):u}function m(e){var r=e-c,n=e-f,i=t-r;return d?Nt(i,s-n):i}function C(e){var n=e-c,i=e-f;return c===r||n>=t||n<0||d&&i>=s}function w(){var e=zl();if(C(e)){return y(e)}l=Ss(w,m(e))}function y(e){l=r;if(h&&i){return p(e)}i=o=r;return u}function b(){if(l!==r){$o(l)}f=0;i=c=o=l=r}function L(){return l===r?u:y(zl())}function x(){var e=zl(),n=C(e);i=arguments;o=this;c=e;if(n){if(l===r){return g(c)}if(d){$o(l);l=Ss(w,t);return p(c)}}if(l===r){l=Ss(w,t)}return u}x.cancel=b;x.flush=L;return x}var Tl=bo((function(e,t){return yi(e,1,t)}));var Il=bo((function(e,t,r){return yi(e,qc(t)||0,r)}));function Hl(e){return ja(e,E)}function Bl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new ot(a)}var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i)){return o.get(i)}var a=e.apply(this,n);r.cache=o.set(i,a)||o;return a};r.cache=new(Bl.Cache||Nn);return r}Bl.Cache=Nn;function Ul(e){if(typeof e!="function"){throw new ot(a)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Wl(e){return jl(2,e)}var Nl=Zo((function(e,t){t=t.length==1&&uc(t[0])?Sr(t[0],$r(Va())):Sr(zi(t,1),$r(Va()));var r=t.length;return bo((function(n){var i=-1,o=Nt(n.length,r);while(++i<o){n[i]=t[i].call(this,n[i])}return mr(e,this,n)}))}));var Vl=bo((function(e,t){var n=ln(t,Na(Vl));return ja(e,L,r,t,n)}));var Zl=bo((function(e,t){var n=ln(t,Na(Zl));return ja(e,x,r,t,n)}));var Gl=Ia((function(e,t){return ja(e,S,r,r,r,t)}));function $l(e,t){if(typeof e!="function"){throw new ot(a)}t=t===r?t:Xc(t);return bo(e,t)}function Xl(e,t){if(typeof e!="function"){throw new ot(a)}t=t==null?0:Bt(Xc(t),0);return bo((function(r){var n=r[t],i=Go(r,0,t);if(n){Er(i,n)}return mr(e,this,i)}))}function Yl(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new ot(a)}if(_c(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return Ml(e,t,{leading:n,maxWait:t,trailing:i})}function ql(e){return Ol(e,1)}function Kl(e,t){return Vl(No(t),e)}function Jl(){if(!arguments.length){return[]}var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return mi(e,d)}function ec(e,t){t=typeof t=="function"?t:r;return mi(e,d,t)}function tc(e){return mi(e,f|d)}function rc(e,t){t=typeof t=="function"?t:r;return mi(e,f|d,t)}function nc(e,t){return t==null||wi(e,t,xf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Ea(Ti);var ac=Ea((function(e,t){return e>=t}));var sc=Vi(function(){return arguments}())?Vi:function(e){return Sc(e)&&ft.call(e,"callee")&&!_t.call(e,"callee")};var uc=y.isArray;var lc=fr?$r(fr):Zi;function cc(e){return e!=null&&xc(e.length)&&!bc(e)}function fc(e){return Sc(e)&&cc(e)}function vc(e){return e===true||e===false||Sc(e)&&Mi(e)==Z}var dc=Mt||Yv;var hc=vr?$r(vr):Gi;function pc(e){return Sc(e)&&e.nodeType===1&&!Dc(e)}function gc(e){if(e==null){return true}if(cc(e)&&(uc(e)||typeof e=="string"||typeof e.splice=="function"||dc(e)||Bc(e)||sc(e))){return!e.length}var t=Ka(e);if(t==K||t==ie){return!e.size}if(ds(e)){return!ro(e).length}for(var r in e){if(ft.call(e,r)){return false}}return true}function mc(e,t){return $i(e,t)}function Cc(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?$i(e,t,r,n):!!i}function wc(e){if(!Sc(e)){return false}var t=Mi(e);return t==X||t==$||typeof e.message=="string"&&typeof e.name=="string"&&!Dc(e)}function yc(e){return typeof e=="number"&&Tt(e)}function bc(e){if(!_c(e)){return false}var t=Mi(e);return t==Y||t==q||t==V||t==re}function Lc(e){return typeof e=="number"&&e==Xc(e)}function xc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=A}function _c(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Sc(e){return e!=null&&typeof e=="object"}var Ec=dr?$r(dr):Yi;function kc(e,t){return e===t||qi(e,t,Ga(t))}function zc(e,t,n){n=typeof n=="function"?n:r;return qi(e,t,Ga(t),n)}function Rc(e){return Pc(e)&&e!=+e}function Oc(e){if(vs(e)){throw new Ue(o)}return Ki(e)}function jc(e){return e===null}function Fc(e){return e==null}function Pc(e){return typeof e=="number"||Sc(e)&&Mi(e)==J}function Dc(e){if(!Sc(e)||Mi(e)!=ee){return false}var t=Lt(e);if(t===null){return true}var r=ft.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ct.call(r)==pt}var Ac=hr?$r(hr):Ji;function Mc(e){return Lc(e)&&e>=-A&&e<=A}var Tc=pr?$r(pr):Qi;function Ic(e){return typeof e=="string"||!uc(e)&&Sc(e)&&Mi(e)==oe}function Hc(e){return typeof e=="symbol"||Sc(e)&&Mi(e)==ae}var Bc=gr?$r(gr):eo;function Uc(e){return e===r}function Wc(e){return Sc(e)&&Ka(e)==ue}function Nc(e){return Sc(e)&&Mi(e)==le}var Vc=Ea(io);var Zc=Ea((function(e,t){return e<=t}));function Gc(e){if(!e){return[]}if(cc(e)){return Ic(e)?pn(e):ia(e)}if(kt&&e[kt]){return an(e[kt]())}var t=Ka(e),r=t==K?sn:t==ie?cn:Wf;return r(e)}function $c(e){if(!e){return e===0?e:0}e=qc(e);if(e===D||e===-D){var t=e<0?-1:1;return t*M}return e===e?e:0}function Xc(e){var t=$c(e),r=t%1;return t===t?r?t-r:t:0}function Yc(e){return e?gi(Xc(e),0,I):0}function qc(e){if(typeof e=="number"){return e}if(Hc(e)){return T}if(_c(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=_c(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=Gr(e);var r=$e.test(e);return r||Ye.test(e)?rr(e.slice(2),r?2:8):Ge.test(e)?T:+e}function Kc(e){return oa(e,_f(e))}function Jc(e){return e?gi(Xc(e),-A,A):e===0?e:0}function Qc(e){return e==null?"":Do(e)}var ef=la((function(e,t){if(ds(t)||cc(t)){oa(t,xf(t),e);return}for(var r in t){if(ft.call(t,r)){li(e,r,t[r])}}}));var tf=la((function(e,t){oa(t,_f(t),e)}));var rf=la((function(e,t,r,n){oa(t,_f(t),e,n)}));var nf=la((function(e,t,r,n){oa(t,xf(t),e,n)}));var of=Ia(pi);function af(e,t){var r=_n(e);return t==null?r:vi(r,t)}var sf=bo((function(e,t){e=rt(e);var n=-1;var i=t.length;var o=i>2?t[2]:r;if(o&&ss(t[0],t[1],o)){i=1}while(++n<i){var a=t[n];var s=_f(a);var u=-1;var l=s.length;while(++u<l){var c=s[u];var f=e[c];if(f===r||ic(f,ut[c])&&!ft.call(e,c)){e[c]=a[c]}}}return e}));var uf=bo((function(e){e.push(r,Pa);return mr(zf,r,e)}));function lf(e,t){return Pr(e,Va(t,3),ji)}function cf(e,t){return Pr(e,Va(t,3),Fi)}function ff(e,t){return e==null?e:Ri(e,Va(t,3),_f)}function vf(e,t){return e==null?e:Oi(e,Va(t,3),_f)}function df(e,t){return e&&ji(e,Va(t,3))}function hf(e,t){return e&&Fi(e,Va(t,3))}function pf(e){return e==null?[]:Pi(e,xf(e))}function gf(e){return e==null?[]:Pi(e,_f(e))}function mf(e,t,n){var i=e==null?r:Di(e,t);return i===r?n:i}function Cf(e,t){return e!=null&&es(e,t,Ii)}function wf(e,t){return e!=null&&es(e,t,Hi)}var yf=ya((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}e[t]=r}),kv(jv));var bf=ya((function(e,t,r){if(t!=null&&typeof t.toString!="function"){t=ht.call(t)}if(ft.call(e,t)){e[t].push(r)}else{e[t]=[r]}}),Va);var Lf=bo(Ni);function xf(e){return cc(e)?ii(e):ro(e)}function _f(e){return cc(e)?ii(e,true):no(e)}function Sf(e,t){var r={};t=Va(t,3);ji(e,(function(e,n,i){hi(r,t(e,n,i),e)}));return r}function Ef(e,t){var r={};t=Va(t,3);ji(e,(function(e,n,i){hi(r,n,t(e,n,i))}));return r}var kf=la((function(e,t,r){uo(e,t,r)}));var zf=la((function(e,t,r,n){uo(e,t,r,n)}));var Rf=Ia((function(e,t){var r={};if(e==null){return r}var n=false;t=Sr(t,(function(t){t=Vo(t,e);n||(n=t.length>1);return t}));oa(e,Ba(e),r);if(n){r=mi(r,f|v|d,Da)}var i=t.length;while(i--){Mo(r,t[i])}return r}));function Of(e,t){return Ff(e,Ul(Va(t)))}var jf=Ia((function(e,t){return e==null?{}:vo(e,t)}));function Ff(e,t){if(e==null){return{}}var r=Sr(Ba(e),(function(e){return[e]}));t=Va(t);return ho(e,r,(function(e,r){return t(e,r[0])}))}function Pf(e,t,n){t=Vo(t,e);var i=-1,o=t.length;if(!o){o=1;e=r}while(++i<o){var a=e==null?r:e[js(t[i])];if(a===r){i=o;a=n}e=bc(a)?a.call(e):a}return e}function Df(e,t,r){return e==null?e:_o(e,t,r)}function Af(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:_o(e,t,n,i)}var Mf=Oa(xf);var Tf=Oa(_f);function If(e,t,r){var n=uc(e),i=n||dc(e)||Bc(e);t=Va(t,4);if(r==null){var o=e&&e.constructor;if(i){r=n?new o:[]}else if(_c(e)){r=bc(o)?_n(Lt(e)):{}}else{r={}}}(i?wr:ji)(e,(function(e,n,i){return t(r,e,n,i)}));return r}function Hf(e,t){return e==null?true:Mo(e,t)}function Bf(e,t,r){return e==null?e:To(e,t,No(r))}function Uf(e,t,n,i){i=typeof i=="function"?i:r;return e==null?e:To(e,t,No(n),i)}function Wf(e){return e==null?[]:Xr(e,xf(e))}function Nf(e){return e==null?[]:Xr(e,_f(e))}function Vf(e,t,n){if(n===r){n=t;t=r}if(n!==r){n=qc(n);n=n===n?n:0}if(t!==r){t=qc(t);t=t===t?t:0}return gi(qc(e),t,n)}function Zf(e,t,n){t=$c(t);if(n===r){n=t;t=0}else{n=$c(n)}e=qc(e);return Bi(e,t,n)}function Gf(e,t,n){if(n&&typeof n!="boolean"&&ss(e,t,n)){t=n=r}if(n===r){if(typeof t=="boolean"){n=t;t=r}else if(typeof e=="boolean"){n=e;e=r}}if(e===r&&t===r){e=0;t=1}else{e=$c(e);if(t===r){t=e;e=0}else{t=$c(t)}}if(e>t){var i=e;e=t;t=i}if(n||e%1||t%1){var o=Gt();return Nt(e+o*(t-e+tr("1e-"+((o+"").length-1))),t)}return Co(e,t)}var $f=ha((function(e,t,r){t=t.toLowerCase();return e+(r?Xf(t):t)}));function Xf(e){return bv(Qc(e).toLowerCase())}function Yf(e){e=Qc(e);return e&&e.replace(Ke,Qr).replace(Wt,"")}function qf(e,t,n){e=Qc(e);t=Do(t);var i=e.length;n=n===r?i:gi(Xc(n),0,i);var o=n;n-=t.length;return n>=0&&e.slice(n,o)==t}function Kf(e){e=Qc(e);return e&&ke.test(e)?e.replace(Se,en):e}function Jf(e){e=Qc(e);return e&&Ae.test(e)?e.replace(De,"\\$&"):e}var Qf=ha((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}));var ev=ha((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}));var tv=da("toLowerCase");function rv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;if(!t||n>=t){return e}var i=(t-n)/2;return xa(Dt(i),r)+e+xa(Pt(i),r)}function nv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;return t&&n<t?e+xa(t-n,r):e}function iv(e,t,r){e=Qc(e);t=Xc(t);var n=t?hn(e):0;return t&&n<t?xa(t-n,r)+e:e}function ov(e,t,r){if(r||t==null){t=0}else if(t){t=+t}return Zt(Qc(e).replace(Me,""),t||0)}function av(e,t,n){if(n?ss(e,t,n):t===r){t=1}else{t=Xc(t)}return yo(Qc(e),t)}function sv(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var uv=ha((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));function lv(e,t,n){if(n&&typeof n!="number"&&ss(e,t,n)){t=n=r}n=n===r?I:n>>>0;if(!n){return[]}e=Qc(e);if(e&&(typeof t=="string"||t!=null&&!Ac(t))){t=Do(t);if(!t&&nn(e)){return Go(pn(e),0,n)}}return e.split(t,n)}var cv=ha((function(e,t,r){return e+(r?" ":"")+bv(t)}));function fv(e,t,r){e=Qc(e);r=r==null?0:gi(Xc(r),0,e.length);t=Do(t);return e.slice(r,r+t.length)==t}function vv(e,t,n){var i=xn.templateSettings;if(n&&ss(e,t,n)){t=r}e=Qc(e);t=rf({},t,i,Fa);var o=rf({},t.imports,i.imports,Fa),a=xf(o),u=Xr(o,a);var l,c,f=0,v=t.interpolate||Je,d="__p += '";var h=nt((t.escape||Je).source+"|"+v.source+"|"+(v===Oe?Ve:Je).source+"|"+(t.evaluate||Je).source+"|$","g");var p="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(h,(function(t,r,n,i,o,a){n||(n=i);d+=e.slice(f,a).replace(Qe,tn);if(r){l=true;d+="' +\n__e("+r+") +\n'"}if(o){c=true;d+="';\n"+o+";\n__p += '"}if(n){d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"}f=a+t.length;return t}));d+="';\n";var g=ft.call(t,"variable")&&t.variable;if(!g){d="with (obj) {\n"+d+"\n}\n"}else if(We.test(g)){throw new Ue(s)}d=(c?d.replace(be,""):d).replace(Le,"$1").replace(xe,"$1;");d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=xv((function(){return et(a,p+"return "+d).apply(r,u)}));m.source=d;if(wc(m)){throw m}return m}function dv(e){return Qc(e).toLowerCase()}function hv(e){return Qc(e).toUpperCase()}function pv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return Gr(e)}if(!e||!(t=Do(t))){return e}var i=pn(e),o=pn(t),a=qr(i,o),s=Kr(i,o)+1;return Go(i,a,s).join("")}function gv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.slice(0,gn(e)+1)}if(!e||!(t=Do(t))){return e}var i=pn(e),o=Kr(i,pn(t))+1;return Go(i,0,o).join("")}function mv(e,t,n){e=Qc(e);if(e&&(n||t===r)){return e.replace(Me,"")}if(!e||!(t=Do(t))){return e}var i=pn(e),o=qr(i,pn(t));return Go(i,o).join("")}function Cv(e,t){var n=k,i=z;if(_c(t)){var o="separator"in t?t.separator:o;n="length"in t?Xc(t.length):n;i="omission"in t?Do(t.omission):i}e=Qc(e);var a=e.length;if(nn(e)){var s=pn(e);a=s.length}if(n>=a){return e}var u=n-hn(i);if(u<1){return i}var l=s?Go(s,0,u).join(""):e.slice(0,u);if(o===r){return l+i}if(s){u+=l.length-u}if(Ac(o)){if(e.slice(u).search(o)){var c,f=l;if(!o.global){o=nt(o.source,Qc(Ze.exec(o))+"g")}o.lastIndex=0;while(c=o.exec(f)){var v=c.index}l=l.slice(0,v===r?u:v)}}else if(e.indexOf(Do(o),u)!=u){var d=l.lastIndexOf(o);if(d>-1){l=l.slice(0,d)}}return l+i}function wv(e){e=Qc(e);return e&&Ee.test(e)?e.replace(_e,mn):e}var yv=ha((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}));var bv=da("toUpperCase");function Lv(e,t,n){e=Qc(e);t=n?r:t;if(t===r){return on(e)?yn(e):Fr(e)}return e.match(t)||[]}var xv=bo((function(e,t){try{return mr(e,r,t)}catch(e){return wc(e)?e:new Ue(e)}}));var _v=Ia((function(e,t){wr(t,(function(t){t=js(t);hi(e,t,Fl(e[t],e))}));return e}));function Sv(e){var t=e==null?0:e.length,r=Va();e=!t?[]:Sr(e,(function(e){if(typeof e[1]!="function"){throw new ot(a)}return[r(e[0]),e[1]]}));return bo((function(r){var n=-1;while(++n<t){var i=e[n];if(mr(i[0],this,r)){return mr(i[1],this,r)}}}))}function Ev(e){return Ci(mi(e,f))}function kv(e){return function(){return e}}function zv(e,t){return e==null||e!==e?t:e}var Rv=Ca();var Ov=Ca(true);function jv(e){return e}function Fv(e){return to(typeof e=="function"?e:mi(e,f))}function Pv(e){return ao(mi(e,f))}function Dv(e,t){return so(e,mi(t,f))}var Av=bo((function(e,t){return function(r){return Ni(r,e,t)}}));var Mv=bo((function(e,t){return function(r){return Ni(e,r,t)}}));function Tv(e,t,r){var n=xf(t),i=Pi(t,n);if(r==null&&!(_c(t)&&(i.length||!n.length))){r=t;t=e;e=this;i=Pi(t,xf(t))}var o=!(_c(r)&&"chain"in r)||!!r.chain,a=bc(e);wr(i,(function(r){var n=t[r];e[r]=n;if(a){e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=ia(this.__actions__);i.push({func:n,args:arguments,thisArg:e});r.__chain__=t;return r}return n.apply(e,Er([this.value()],arguments))}}}));return e}function Iv(){if(or._===this){or._=gt}return this}function Hv(){}function Bv(e){e=Xc(e);return bo((function(t){return co(t,e)}))}var Uv=La(Sr);var Wv=La(br);var Nv=La(Rr);function Vv(e){return us(e)?Hr(js(e)):po(e)}function Zv(e){return function(t){return e==null?r:Di(e,t)}}var Gv=Sa();var $v=Sa(true);function Xv(){return[]}function Yv(){return false}function qv(){return{}}function Kv(){return""}function Jv(){return true}function Qv(e,t){e=Xc(e);if(e<1||e>A){return[]}var r=I,n=Nt(e,I);t=Va(t);e-=I;var i=Vr(n,t);while(++r<e){t(r)}return i}function ed(e){if(uc(e)){return Sr(e,js)}return Hc(e)?[e]:ia(Os(Qc(e)))}function td(e){var t=++vt;return Qc(e)+t}var rd=ba((function(e,t){return e+t}),0);var nd=za("ceil");var id=ba((function(e,t){return e/t}),1);var od=za("floor");function ad(e){return e&&e.length?Si(e,jv,Ti):r}function sd(e,t){return e&&e.length?Si(e,Va(t,2),Ti):r}function ud(e){return Ir(e,jv)}function ld(e,t){return Ir(e,Va(t,2))}function cd(e){return e&&e.length?Si(e,jv,io):r}function fd(e,t){return e&&e.length?Si(e,Va(t,2),io):r}var vd=ba((function(e,t){return e*t}),1);var dd=za("round");var hd=ba((function(e,t){return e-t}),0);function pd(e){return e&&e.length?Nr(e,jv):0}function gd(e,t){return e&&e.length?Nr(e,Va(t,2)):0}xn.after=Rl;xn.ary=Ol;xn.assign=ef;xn.assignIn=tf;xn.assignInWith=rf;xn.assignWith=nf;xn.at=of;xn.before=jl;xn.bind=Fl;xn.bindAll=_v;xn.bindKey=Pl;xn.castArray=Jl;xn.chain=Zu;xn.chunk=As;xn.compact=Ms;xn.concat=Ts;xn.cond=Sv;xn.conforms=Ev;xn.constant=kv;xn.countBy=rl;xn.create=af;xn.curry=Dl;xn.curryRight=Al;xn.debounce=Ml;xn.defaults=sf;xn.defaultsDeep=uf;xn.defer=Tl;xn.delay=Il;xn.difference=Is;xn.differenceBy=Hs;xn.differenceWith=Bs;xn.drop=Us;xn.dropRight=Ws;xn.dropRightWhile=Ns;xn.dropWhile=Vs;xn.fill=Zs;xn.filter=il;xn.flatMap=sl;xn.flatMapDeep=ul;xn.flatMapDepth=ll;xn.flatten=Xs;xn.flattenDeep=Ys;xn.flattenDepth=qs;xn.flip=Hl;xn.flow=Rv;xn.flowRight=Ov;xn.fromPairs=Ks;xn.functions=pf;xn.functionsIn=gf;xn.groupBy=vl;xn.initial=eu;xn.intersection=tu;xn.intersectionBy=ru;xn.intersectionWith=nu;xn.invert=yf;xn.invertBy=bf;xn.invokeMap=hl;xn.iteratee=Fv;xn.keyBy=pl;xn.keys=xf;xn.keysIn=_f;xn.map=gl;xn.mapKeys=Sf;xn.mapValues=Ef;xn.matches=Pv;xn.matchesProperty=Dv;xn.memoize=Bl;xn.merge=kf;xn.mergeWith=zf;xn.method=Av;xn.methodOf=Mv;xn.mixin=Tv;xn.negate=Ul;xn.nthArg=Bv;xn.omit=Rf;xn.omitBy=Of;xn.once=Wl;xn.orderBy=ml;xn.over=Uv;xn.overArgs=Nl;xn.overEvery=Wv;xn.overSome=Nv;xn.partial=Vl;xn.partialRight=Zl;xn.partition=Cl;xn.pick=jf;xn.pickBy=Ff;xn.property=Vv;xn.propertyOf=Zv;xn.pull=uu;xn.pullAll=lu;xn.pullAllBy=cu;xn.pullAllWith=fu;xn.pullAt=vu;xn.range=Gv;xn.rangeRight=$v;xn.rearg=Gl;xn.reject=bl;xn.remove=du;xn.rest=$l;xn.reverse=hu;xn.sampleSize=xl;xn.set=Df;xn.setWith=Af;xn.shuffle=_l;xn.slice=pu;xn.sortBy=kl;xn.sortedUniq=Lu;xn.sortedUniqBy=xu;xn.split=lv;xn.spread=Xl;xn.tail=_u;xn.take=Su;xn.takeRight=Eu;xn.takeRightWhile=ku;xn.takeWhile=zu;xn.tap=Gu;xn.throttle=Yl;xn.thru=$u;xn.toArray=Gc;xn.toPairs=Mf;xn.toPairsIn=Tf;xn.toPath=ed;xn.toPlainObject=Kc;xn.transform=If;xn.unary=ql;xn.union=Ru;xn.unionBy=Ou;xn.unionWith=ju;xn.uniq=Fu;xn.uniqBy=Pu;xn.uniqWith=Du;xn.unset=Hf;xn.unzip=Au;xn.unzipWith=Mu;xn.update=Bf;xn.updateWith=Uf;xn.values=Wf;xn.valuesIn=Nf;xn.without=Tu;xn.words=Lv;xn.wrap=Kl;xn.xor=Iu;xn.xorBy=Hu;xn.xorWith=Bu;xn.zip=Uu;xn.zipObject=Wu;xn.zipObjectDeep=Nu;xn.zipWith=Vu;xn.entries=Mf;xn.entriesIn=Tf;xn.extend=tf;xn.extendWith=rf;Tv(xn,xn);xn.add=rd;xn.attempt=xv;xn.camelCase=$f;xn.capitalize=Xf;xn.ceil=nd;xn.clamp=Vf;xn.clone=Ql;xn.cloneDeep=tc;xn.cloneDeepWith=rc;xn.cloneWith=ec;xn.conformsTo=nc;xn.deburr=Yf;xn.defaultTo=zv;xn.divide=id;xn.endsWith=qf;xn.eq=ic;xn.escape=Kf;xn.escapeRegExp=Jf;xn.every=nl;xn.find=ol;xn.findIndex=Gs;xn.findKey=lf;xn.findLast=al;xn.findLastIndex=$s;xn.findLastKey=cf;xn.floor=od;xn.forEach=cl;xn.forEachRight=fl;xn.forIn=ff;xn.forInRight=vf;xn.forOwn=df;xn.forOwnRight=hf;xn.get=mf;xn.gt=oc;xn.gte=ac;xn.has=Cf;xn.hasIn=wf;xn.head=Js;xn.identity=jv;xn.includes=dl;xn.indexOf=Qs;xn.inRange=Zf;xn.invoke=Lf;xn.isArguments=sc;xn.isArray=uc;xn.isArrayBuffer=lc;xn.isArrayLike=cc;xn.isArrayLikeObject=fc;xn.isBoolean=vc;xn.isBuffer=dc;xn.isDate=hc;xn.isElement=pc;xn.isEmpty=gc;xn.isEqual=mc;xn.isEqualWith=Cc;xn.isError=wc;xn.isFinite=yc;xn.isFunction=bc;xn.isInteger=Lc;xn.isLength=xc;xn.isMap=Ec;xn.isMatch=kc;xn.isMatchWith=zc;xn.isNaN=Rc;xn.isNative=Oc;xn.isNil=Fc;xn.isNull=jc;xn.isNumber=Pc;xn.isObject=_c;xn.isObjectLike=Sc;xn.isPlainObject=Dc;xn.isRegExp=Ac;xn.isSafeInteger=Mc;xn.isSet=Tc;xn.isString=Ic;xn.isSymbol=Hc;xn.isTypedArray=Bc;xn.isUndefined=Uc;xn.isWeakMap=Wc;xn.isWeakSet=Nc;xn.join=iu;xn.kebabCase=Qf;xn.last=ou;xn.lastIndexOf=au;xn.lowerCase=ev;xn.lowerFirst=tv;xn.lt=Vc;xn.lte=Zc;xn.max=ad;xn.maxBy=sd;xn.mean=ud;xn.meanBy=ld;xn.min=cd;xn.minBy=fd;xn.stubArray=Xv;xn.stubFalse=Yv;xn.stubObject=qv;xn.stubString=Kv;xn.stubTrue=Jv;xn.multiply=vd;xn.nth=su;xn.noConflict=Iv;xn.noop=Hv;xn.now=zl;xn.pad=rv;xn.padEnd=nv;xn.padStart=iv;xn.parseInt=ov;xn.random=Gf;xn.reduce=wl;xn.reduceRight=yl;xn.repeat=av;xn.replace=sv;xn.result=Pf;xn.round=dd;xn.runInContext=e;xn.sample=Ll;xn.size=Sl;xn.snakeCase=uv;xn.some=El;xn.sortedIndex=gu;xn.sortedIndexBy=mu;xn.sortedIndexOf=Cu;xn.sortedLastIndex=wu;xn.sortedLastIndexBy=yu;xn.sortedLastIndexOf=bu;xn.startCase=cv;xn.startsWith=fv;xn.subtract=hd;xn.sum=pd;xn.sumBy=gd;xn.template=vv;xn.times=Qv;xn.toFinite=$c;xn.toInteger=Xc;xn.toLength=Yc;xn.toLower=dv;xn.toNumber=qc;xn.toSafeInteger=Jc;xn.toString=Qc;xn.toUpper=hv;xn.trim=pv;xn.trimEnd=gv;xn.trimStart=mv;xn.truncate=Cv;xn.unescape=wv;xn.uniqueId=td;xn.upperCase=yv;xn.upperFirst=bv;xn.each=cl;xn.eachRight=fl;xn.first=Js;Tv(xn,function(){var e={};ji(xn,(function(t,r){if(!ft.call(xn.prototype,r)){e[r]=t}}));return e}(),{chain:false});xn.VERSION=n;wr(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xn[e].placeholder=xn}));wr(["drop","take"],(function(e,t){kn.prototype[e]=function(n){n=n===r?1:Bt(Xc(n),0);var i=this.__filtered__&&!t?new kn(this):this.clone();if(i.__filtered__){i.__takeCount__=Nt(n,i.__takeCount__)}else{i.__views__.push({size:Nt(n,I),type:e+(i.__dir__<0?"Right":"")})}return i};kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}));wr(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=r==j||r==P;kn.prototype[e]=function(e){var t=this.clone();t.__iteratees__.push({iteratee:Va(e,3),type:r});t.__filtered__=t.__filtered__||n;return t}}));wr(["head","last"],(function(e,t){var r="take"+(t?"Right":"");kn.prototype[e]=function(){return this[r](1).value()[0]}}));wr(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");kn.prototype[e]=function(){return this.__filtered__?new kn(this):this[r](1)}}));kn.prototype.compact=function(){return this.filter(jv)};kn.prototype.find=function(e){return this.filter(e).head()};kn.prototype.findLast=function(e){return this.reverse().find(e)};kn.prototype.invokeMap=bo((function(e,t){if(typeof e=="function"){return new kn(this)}return this.map((function(r){return Ni(r,e,t)}))}));kn.prototype.reject=function(e){return this.filter(Ul(Va(e)))};kn.prototype.slice=function(e,t){e=Xc(e);var n=this;if(n.__filtered__&&(e>0||t<0)){return new kn(n)}if(e<0){n=n.takeRight(-e)}else if(e){n=n.drop(e)}if(t!==r){t=Xc(t);n=t<0?n.dropRight(-t):n.take(t-e)}return n};kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()};kn.prototype.toArray=function(){return this.take(I)};ji(kn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=xn[i?"take"+(t=="last"?"Right":""):t],a=i||/^find/.test(t);if(!o){return}xn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,u=t instanceof kn,l=s[0],c=u||uc(t);var f=function(e){var t=o.apply(xn,Er([e],s));return i&&v?t[0]:t};if(c&&n&&typeof l=="function"&&l.length!=1){u=c=false}var v=this.__chain__,d=!!this.__actions__.length,h=a&&!v,p=u&&!d;if(!a&&c){t=p?t:new kn(this);var g=e.apply(t,s);g.__actions__.push({func:$u,args:[f],thisArg:r});return new En(g,v)}if(h&&p){return e.apply(this,s)}g=this.thru(f);return h?i?g.value()[0]:g.value():g}}));wr(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);xn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[r]((function(r){return t.apply(uc(r)?r:[],e)}))}}));ji(kn.prototype,(function(e,t){var r=xn[t];if(r){var n=r.name+"";if(!ft.call(lr,n)){lr[n]=[]}lr[n].push({name:t,func:r})}}));lr[wa(r,m).name]=[{name:"wrapper",func:r}];kn.prototype.clone=zn;kn.prototype.reverse=Rn;kn.prototype.value=On;xn.prototype.at=Xu;xn.prototype.chain=Yu;xn.prototype.commit=qu;xn.prototype.next=Ku;xn.prototype.plant=Qu;xn.prototype.reverse=el;xn.prototype.toJSON=xn.prototype.valueOf=xn.prototype.value=tl;xn.prototype.first=xn.prototype.head;if(kt){xn.prototype[kt]=Ju}return xn};var Ln=bn();if(sr){(sr.exports=Ln)._=Ln;ar._=Ln}else{or._=Ln}}).call(y)}));var Cc=function(){function e(e,t){var r,n;this.sv=e;this.storesByType={};this.storesXToType={};this.storesYToType={};(r=this.sv.selectionStoreConnector)===null||r===void 0?void 0:r.beforeUpdate();this.columns=this.getViewportColumnData(t);(n=this.sv.scrollingService)===null||n===void 0?void 0:n.unregister()}e.prototype.onColumnResize=function(e,t,r){var n;(n=this.sv.dimensionProvider)===null||n===void 0?void 0:n.setDimensionSize(e,t.detail);var i=mc.reduce(t.detail||{},(function(e,t,n){var i=Ua(r,parseInt(n,10));if(i){e[i.prop]=Object.assign(Object.assign({},i),{size:t})}return e}),{});this.sv.resize(i)};e.prototype.getViewportColumnData=function(e){var t=this;var r=[];var n=0;Ga.forEach((function(i){var o=t.sv.columnProvider.stores[i].store;if(!o.get("items").length){return}var a={colType:i,position:{x:n,y:1},contentHeight:e,fixWidth:i!=="rgCol",uuid:"".concat(t.sv.uuid,"-").concat(n),viewports:t.sv.viewportProvider.stores,dimensions:t.sv.dimensionProvider.stores,rowStores:t.sv.dataProvider.stores,colStore:o,onHeaderresize:function(e){return t.onColumnResize(i,e,o)}};if(i==="rgCol"){a.onResizeViewport=function(e){var r;return(r=t.sv.viewportProvider)===null||r===void 0?void 0:r.setViewport(e.detail.dimension,{virtualSize:e.detail.size})}}var s=t.gatherColumnData(a);var u=t.registerCol(s.position.x,i);var l=t.dataViewPort(a).reduce((function(e,r){var n=t.registerSegment(r.position);n.setLastCell(r.lastCell);var i=t.registerRow(r.position.y,r.type);var o=Object.assign(Object.assign({},r),{rowSelectionStore:i,segmentSelectionStore:n.store,ref:function(e){return t.sv.selectionStoreConnector.registerSection(e)},onSetRange:function(e){return n.setRangeArea(e.detail)},onSetTempRange:function(e){return n.setTempArea(e.detail)},onFocusCell:function(e){n.clearFocus();t.sv.selectionStoreConnector.focus(n,e.detail)}});e.push(o);return e}),[]);r.push(Object.assign(Object.assign({},s),{columnSelectionStore:u,dataPorts:l}));n++}));return r};e.prototype.registerSegment=function(e){return this.sv.selectionStoreConnector.register(e)};e.prototype.registerRow=function(e,t){this.storesByType[t]=e;this.storesYToType[e]=t;return this.sv.selectionStoreConnector.registerRow(e).store};e.prototype.registerCol=function(e,t){this.storesByType[t]=e;this.storesXToType[e]=t;return this.sv.selectionStoreConnector.registerColumn(e).store};e.prototype.gatherColumnData=function(e){var t;var r=e.uuid;var n=e.dimensions[e.colType].store.get("realSize");var i=(t={contentWidth:n,class:e.colType},t["".concat(ol)]=e.uuid,t.contentHeight=e.contentHeight,t.key=e.colType,t.onResizeViewport=e.onResizeViewport,t);if(e.fixWidth){i.style={minWidth:"".concat(n,"px")}}var o={parent:r,colData:Ba(e.colStore),dimensionCol:e.dimensions[e.colType].store,groups:e.colStore.get("groups"),groupingDepth:e.colStore.get("groupingDepth"),onHeaderresize:e.onHeaderresize};return{prop:i,position:e.position,headerProp:o,parent:r,viewportCol:e.viewports[e.colType].store}};e.prototype.dataViewPort=function(e){var t=this;var r={rowPinStart:vc,rgRow:hc,rowPinEnd:dc};var n=0;return Za.reduce((function(i,o){var a=e.viewports[o].store.get("realCount")||o==="rgRow";var s=Object.assign(Object.assign({},e),{position:Object.assign(Object.assign({},e.position),{y:a?n:cc})});i.push(t.dataPartition(s,o,r[o],o!=="rgRow"));if(a){n++}return i}),[])};e.prototype.dataPartition=function(e,t,r,n){return{colData:e.colStore,viewportCol:e.viewports[e.colType].store,viewportRow:e.viewports[t].store,lastCell:gc(e,t),slot:r,type:t,canDrag:!n,position:e.position,uuid:"".concat(e.uuid,"-").concat(e.position.x,"-").concat(e.position.y),dataStore:e.rowStores[t].store,dimensionCol:e.dimensions[e.colType].store,dimensionRow:e.dimensions[t].store,style:n?{height:"".concat(e.dimensions[t].store.get("realSize"),"px")}:undefined}};e.prototype.scrollToCell=function(e){for(var t in e){var r=e[t];this.sv.scrollingService.onScroll({dimension:t==="x"?"rgCol":"rgRow",coordinate:r})}};e.prototype.clearFocused=function(){this.sv.selectionStoreConnector.clearAll()};e.prototype.clearEdit=function(){this.sv.selectionStoreConnector.setEdit(false)};e.prototype.getFocused=function(){var e=this.sv.selectionStoreConnector.focusedStore;if(!e){return null}var t=this.storesXToType[e.position.x];var r=this.sv.columnProvider.getColumn(e.cell.x,t);var n=this.storesYToType[e.position.x];var i=this.sv.dataProvider.getModel(e.cell.x,n);return{column:r,model:i,cell:e.cell,colType:t,rowType:n}};e.prototype.getSelectedRange=function(){return this.sv.selectionStoreConnector.selectedRange};e.prototype.setEdit=function(e,t,r,n){var i;var o=this.storesByType;var a={x:o[r],y:o[n]};(i=this.sv.selectionStoreConnector)===null||i===void 0?void 0:i.setEditByCell(a,{x:t,y:e})};return e}();var wc=function(e){var t=e.resize,r=e.editors,n=e.rowClass,o=e.readonly,a=e.range,s=e.columns,u=e.useClipboard,l=e.columnFilter,c=e.registerElement,f=e.onEdit,v=e.onScroll;var d=[];var h=function(e){var s=[i("revogr-header",Object.assign({viewportCol:e.viewportCol},e.headerProp,{selectionStore:e.columnSelectionStore,slot:vc,columnFilter:l,canResize:t}))];e.dataPorts.forEach((function(t,l){var c;var v=e.prop.key+(l+1);var d=i("revogr-overlay-selection",Object.assign({},t,{slot:t.slot,selectionStore:t.segmentSelectionStore,editors:r,readonly:o,range:a,useClipboard:u,onSetEdit:function(e){var t=e.detail;return f(t)}}),i("revogr-data",Object.assign({},t,(c={},c[ol]=t.uuid,c),{key:v,readonly:o,range:a,rowClass:n,rowSelectionStore:t.rowSelectionStore,slot:pc})),i("revogr-temp-range",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}),i("revogr-focus",{selectionStore:t.segmentSelectionStore,dimensionRow:t.dimensionRow,dimensionCol:t.dimensionCol}));s.push(d)}));d.push(i("revogr-viewport-scroll",Object.assign({},e.prop,{ref:function(t){return c(t,e.prop.key)},onScrollViewport:function(t){return v(t.detail,e.prop.key)}}),s))};for(var p=0,g=s;p<g.length;p++){var m=g[p];h(m)}return d};var yc=function(){function e(e){this.setViewport=e;this.elements={}}e.prototype.onScroll=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i,o,a,s,u,a,l;return __generator(this,(function(c){switch(c.label){case 0:for(n in this.elements){if(this.isPinnedColumn(t)&&e.dimension==="rgCol"){if(n===t||!e.delta){continue}for(i=0,o=this.elements[n];i<o.length;i++){a=o[i];a.changeScroll&&(r=a.changeScroll(e))}}else if(e.dimension==="rgCol"&&n==="headerRow"){continue}else{for(s=0,u=this.elements[n];s<u.length;s++){a=u[s];a.setScroll(e)}}}l=e;if(!r)return[3,2];return[4,r];case 1:l=c.sent();c.label=2;case 2:this.setViewport(l);return[2]}}))}))};e.prototype.isPinnedColumn=function(e){return["colPinStart","colPinEnd"].indexOf(e)>-1};e.prototype.registerElements=function(e){this.elements=e};e.prototype.registerElement=function(e,t){if(!this.elements[t]){this.elements[t]=[]}if(e){this.elements[t].push(e)}else if(this.elements[t]){delete this.elements[t]}};e.prototype.unregister=function(){delete this.elements;this.elements={}};return e}();var bc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.dimensionProvider=r;n.stretchedColumn=null;n.scrollSize=gs(document);var i=function(e){var t=e.detail.columns;return n.applyStretch(t)};n.addEventListener("beforecolumnapplied",i);return n}t.prototype.setScroll=function(e){var t=e.type,r=e.hasScroll;var n;if(t==="rgRow"&&this.stretchedColumn&&((n=this.stretchedColumn)===null||n===void 0?void 0:n.initialSize)===this.stretchedColumn.size){if(r){this.stretchedColumn.size-=this.scrollSize;this.apply();this.dropChanges()}}};t.prototype.activateChanges=function(){var e=this;var t=function(t){var r=t.detail;return e.setScroll(r)};this.addEventListener("scrollchange",t)};t.prototype.dropChanges=function(){this.stretchedColumn=null;this.removeEventListener("scrollchange")};t.prototype.apply=function(){var e;if(!this.stretchedColumn){return}var t="rgCol";this.dimensionProvider.setDimensionSize(t,(e={},e[this.stretchedColumn.index]=this.stretchedColumn.size,e))};t.prototype.applyStretch=function(e){var t=this;this.dropChanges();var r=this.revogrid.clientWidth-1;mc.each(e,(function(e,n){var i=t.dimensionProvider.stores[n].store.get("realSize");r-=i}));if(r>0){var n=e.rgCol.length-1;var i=e.rgCol[n];var o=(i===null||i===void 0?void 0:i.size)||this.revogrid.colSize||0;var a=r+o-1;if(i&&!i.autoSize&&o<a){this.stretchedColumn={initialSize:a,index:n,size:a};this.apply();this.activateChanges()}}};return t}(Ja);function Lc(e){return!!e.applyStretch}var xc=function(){function e(){this.offset=0}e.prototype.renderAutoscroll=function(e,t){if(!t){return}this.autoscrollEl=document.createElement("div");this.autoscrollEl.classList.add("drag-auto-scroll-y");t.appendChild(this.autoscrollEl)};e.prototype.autoscroll=function(e,t,r){if(r===void 0){r="translateX"}if(!this.autoscrollEl){return}var n=10;var i=Math.min(e+n,t-3);this.autoscrollEl.style.transform="".concat(r,"(").concat(i,"px)");this.autoscrollEl.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.start=function(e,t,r){var n=t.el,i=t.gridRect,o=t.elScroll;if(r===void 0){r="left"}var a=o.getBoundingClientRect();if(a){this.offset=a[r]-i[r]}this.renderAutoscroll(e,n)};e.prototype.stop=function(){var e;if(this.element){this.element.setAttribute("hidden","")}this.offset=0;(e=this.autoscrollEl)===null||e===void 0?void 0:e.remove();this.autoscrollEl=undefined};e.prototype.showHandler=function(e,t,r){if(r===void 0){r="translateX"}if(!this.element){return}if(this.offset){e=Math.max(e,this.offset)}e=Math.min(e,t);this.element.style.transform="".concat(r,"(").concat(e,"px)");this.element.hidden=false};e.prototype.render=function(){var e=this;return i("div",{class:"drag-position-y",hidden:true,ref:function(t){return e.element=t}})};return e}();function _c(e,t,r){var n=new CustomEvent(t,{detail:r,cancelable:true,bubbles:true});e===null||e===void 0?void 0:e.dispatchEvent(n);return n}var Sc="column-click";var Ec="column-mouse-move";var kc="column-drag-end";var zc="before-column-drag-end";var Rc="column-drag-start";var Oc=function(e){__extends(t,e);function t(t,r){var n=e.call(this,t)||this;n.revogrid=t;n.providers=r;n.moveFunc=b((function(e){return n.doMove(e)}),5);n.staticDragData=null;n.dragData=null;n.localSubscriptions={};n.orderUi=new xc;t.registerVNode([n.orderUi.render()]);n.localSubscriptions["mouseleave"]={target:document,callback:function(e){return n.onMouseOut(e)}};n.localSubscriptions["mouseup"]={target:document,callback:function(e){return n.onMouseUp(e)}};n.localSubscriptions["mousemove"]={target:document,callback:function(e){return n.move(e)}};n.addEventListener(Sc,(function(e){var t=e.detail;return n.dragStart(t)}));return n}t.prototype.dragStart=function(e){var t=e.event,r=e.data;if(t.defaultPrevented){return}var n=_c(this.revogrid,Rc,r).defaultPrevented;if(n){return}this.clearOrder();var i=this.localSubscriptions,o=i.mouseleave,a=i.mouseup,s=i.mousemove;o.target.addEventListener("mouseleave",o.callback);a.target.addEventListener("mouseup",a.callback);var u=t.target.closest("revogr-header");var l=t.target.closest("revogr-viewport-scroll");if(!u||!l){return}this.staticDragData={startPos:t.x,data:r,dataEl:u,scrollEl:l,gridEl:this.revogrid};this.dragData=this.getData(this.staticDragData);s.target.addEventListener("mousemove",s.callback);this.orderUi.start(t,this.dragData)};t.prototype.doMove=function(e){if(!this.staticDragData){return}var t=this.dragData=this.getData(this.staticDragData);if(!t){return}var r=this.staticDragData.startPos;if(Math.abs(r-e.x)>10){var n=jc(e.x,t);var i=ys(t.cols,n);this.orderUi.autoscroll(n,t.elRect.width);this.orderUi.showHandler(i.end+t.xOffset,t.gridRect.width)}};t.prototype.move=function(e){_c(this.revogrid,Ec,Object.assign({},e));this.moveFunc(e)};t.prototype.onMouseOut=function(e){this.clearOrder()};t.prototype.onMouseUp=function(e){if(this.dragData){var t=ys(this.dragData.cols,jc(e.x,this.dragData));var r=ys(this.dragData.cols,jc(this.staticDragData.startPos,this.dragData));var n=_c(this.revogrid,zc,Object.assign(Object.assign({},this.staticDragData),{startPosition:r,newPosition:t})).defaultPrevented;if(!n){var i=this.providers.column.stores[this.dragData.type].store;var o=__spreadArray([],i.get("items"),true);var a=o.splice(r.itemIndex,1);o.splice.apply(o,__spreadArray([t.itemIndex,0],a,false));i.set("items",o)}_c(this.revogrid,kc,this.dragData)}this.clearOrder()};t.prototype.clearLocalSubscriptions=function(){Qo(this.localSubscriptions,(function(e,t){var r=e.target,n=e.callback;return r.removeEventListener(t,n)}))};t.prototype.clearOrder=function(){this.clearLocalSubscriptions();this.orderUi.stop()};t.prototype.clearSubscriptions=function(){e.prototype.clearSubscriptions.call(this);this.clearLocalSubscriptions()};t.prototype.getData=function(e){var t=e.gridEl,r=e.dataEl,n=e.scrollEl,i=e.data;var o=t.getBoundingClientRect();var a=r.getBoundingClientRect();return{el:r,elScroll:n,elRect:a,gridRect:o,data:i,type:i.pin||"rgCol",xOffset:a.left-o.left,rows:this.getDimension("rgRow"),cols:this.getDimension("rgCol")}};t.prototype.getDimension=function(e){return this.providers.dimension.stores[e].getCurrentState()};return t}(Ja);function jc(e,t){var r=t.xOffset,n=t.gridRect;return e-n.left-r}var Fc=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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:gray}revo-grid .drag-position-y{position:absolute;top:0;left:0;bottom:0;width:1px;z-index:2;background:gray}revo-grid .drag-auto-scroll-y{pointer-events:none;position:absolute;left:0;top:0;height:50px;width:1px}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}";var Pc=e("revo_grid",function(){function e(e){o(this,e);this.beforeedit=a(this,"beforeedit",7);this.beforerangeedit=a(this,"beforerangeedit",7);this.afteredit=a(this,"afteredit",7);this.beforeautofill=a(this,"beforeautofill",7);this.beforeaange=a(this,"beforeaange",7);this.roworderchanged=a(this,"roworderchanged",7);this.beforesourcesortingapply=a(this,"beforesourcesortingapply",7);this.beforesortingapply=a(this,"beforesortingapply",7);this.beforesorting=a(this,"beforesorting",7);this.rowdragstart=a(this,"rowdragstart",7);this.headerclick=a(this,"headerclick",7);this.beforecellfocus=a(this,"beforecellfocus",7);this.beforefocuslost=a(this,"beforefocuslost",7);this.beforesourceset=a(this,"beforesourceset",7);this.aftersourceset=a(this,"aftersourceset",7);this.beforecolumnsset=a(this,"beforecolumnsset",7);this.beforecolumnapplied=a(this,"beforecolumnapplied",7);this.aftercolumnsset=a(this,"aftercolumnsset",7);this.beforefilterapply=a(this,"beforefilterapply",7);this.beforefiltertrimmed=a(this,"beforefiltertrimmed",7);this.beforetrimmed=a(this,"beforetrimmed",7);this.aftertrimmed=a(this,"aftertrimmed",7);this.viewportscroll=a(this,"viewportscroll",7);this.beforeexport=a(this,"beforeexport",7);this.beforeeditstart=a(this,"beforeeditstart",7);this.aftercolumnresize=a(this,"aftercolumnresize",7);this.frameSize=1;this.rowSize=0;this.colSize=100;this.range=false;this.readonly=false;this.resize=false;this.canFocus=true;this.useClipboard=true;this.columns=[];this.source=[];this.pinnedTopSource=[];this.pinnedBottomSource=[];this.rowDefinitions=[];this.editors={};this.columnTypes={};this.theme="default";this.rowClass="";this.autoSizeColumn=false;this.filter=false;this.canMoveColumns=false;this.trimmedRows={};this.exporting=false;this.stretch=true;this.extraElements=[];this.uuid=null;this.viewport=null;this.internalPlugins=[];this.subscribers={}}e.prototype.refresh=function(e){if(e===void 0){e="all"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.dataProvider.refresh(e);return[2]}))}))};e.prototype.scrollToRow=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgRow"});return[4,this.scrollToCoordinate({y:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnIndex=function(e){if(e===void 0){e=0}return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=this.dimensionProvider.getViewPortPos({coordinate:e,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:t})];case 1:r.sent();return[2]}}))}))};e.prototype.scrollToColumnProp=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(n){switch(n.label){case 0:t=this.columnProvider.getColumnIndexByProp(e,"rgCol");if(t<0){return[2]}r=this.dimensionProvider.getViewPortPos({coordinate:t,dimension:"rgCol"});return[4,this.scrollToCoordinate({x:r})];case 1:n.sent();return[2]}}))}))};e.prototype.updateColumns=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.columnProvider.updateColumns(e);return[2]}))}))};e.prototype.addTrimmed=function(e,t,r){if(t===void 0){t="external"}if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n;var i;return __generator(this,(function(o){n=this.beforetrimmed.emit({trimmed:e,trimmedType:t,type:r});if(n.defaultPrevented){return[2,n]}this.dataProvider.setTrimmed((i={},i[t]=n.detail.trimmed,i),r);this.aftertrimmed.emit();return[2,n]}))}))};e.prototype.scrollToCoordinate=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.viewport)===null||t===void 0?void 0:t.scrollToCell(e);return[2]}))}))};e.prototype.setCellEdit=function(e,t,r){if(r===void 0){r="rgRow"}return __awaiter(this,void 0,void 0,(function(){var n,i;return __generator(this,(function(o){switch(o.label){case 0:i=es.getColumnByProp(this.columns,t);if(!i){return[2]}return[4,Cs()];case 1:o.sent();(n=this.viewport)===null||n===void 0?void 0:n.setEdit(e,this.columnProvider.getColumnIndexByProp(t,"rgCol"),i.pin||"rgCol",r);return[2]}}))}))};e.prototype.registerVNode=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){(t=this.extraElements).push.apply(t,e);this.extraElements=__spreadArray([],this.extraElements,true);return[2]}))}))};e.prototype.getSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store.get("source")]}))}))};e.prototype.getVisibleSource=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Ba(this.dataProvider.stores[e].store)]}))}))};e.prototype.getSourceStore=function(e){if(e===void 0){e="rgRow"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.dataProvider.stores[e].store]}))}))};e.prototype.getColumnStore=function(e){if(e===void 0){e="rgCol"}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.columnProvider.stores[e].store]}))}))};e.prototype.updateColumnSorting=function(e,t,r,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.columnProvider.updateColumnSorting(e,t,r,n)]}))}))};e.prototype.clearSorting=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.columnProvider.clearSorting();return[2]}))}))};e.prototype.getColumns=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnProvider.getColumns()]}))}))};e.prototype.clearFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.getFocused()];case 1:t=n.sent();r=this.beforefocuslost.emit(t);if(r.defaultPrevented){return[2]}this.selectionStoreConnector.clearAll();(e=this.viewport)===null||e===void 0?void 0:e.clearFocused();return[2]}}))}))};e.prototype.getPlugins=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,__spreadArray([],this.internalPlugins,true)]}))}))};e.prototype.getFocused=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getFocused()]}))}))};e.prototype.getSelectedRange=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){return[2,(e=this.viewport)===null||e===void 0?void 0:e.getSelectedRange()]}))}))};e.prototype.handleOutsideClick=function(e){var t=e.target;if(!(t===null||t===void 0?void 0:t.closest("[".concat(ol,'="').concat(this.uuid,'"]')))){this.clearFocus()}};e.prototype.onRowDragStarted=function(e){var t;e.cancelBubble=true;var r=this.rowdragstart.emit(e.detail);if(r.defaultPrevented){e.preventDefault();return}(t=this.orderService)===null||t===void 0?void 0:t.start(this.element,Object.assign(Object.assign({},e.detail),r.detail))};e.prototype.onRowDragEnd=function(){var e;(e=this.orderService)===null||e===void 0?void 0:e.end()};e.prototype.onRowDrag=function(e){var t=e.detail;var r;(r=this.orderService)===null||r===void 0?void 0:r.move(t)};e.prototype.onRowMouseMove=function(e){var t;e.cancelBubble=true;(t=this.orderService)===null||t===void 0?void 0:t.moveTip(e.detail)};e.prototype.onBeforeEdit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(i){switch(i.label){case 0:e.cancelBubble=true;t=this.beforeedit.emit(e.detail),r=t.defaultPrevented,n=t.detail;return[4,Cs()];case 1:i.sent();if(!r){this.dataProvider.setCellData(n);this.afteredit.emit(n)}return[2]}}))}))};e.prototype.onBeforeRangeEdit=function(e){e.cancelBubble=true;var t=this.beforerangeedit.emit(e.detail).defaultPrevented;if(t){e.preventDefault();return}this.afteredit.emit(e.detail)};e.prototype.onRangeChanged=function(e){e.cancelBubble=true;var t=this.beforeaange.emit(e.detail);if(t.defaultPrevented){e.preventDefault()}var r=this.beforeautofill.emit(e.detail);if(r.defaultPrevented){return}};e.prototype.onRowDropped=function(e){e.cancelBubble=true;var t=this.roworderchanged.emit(e.detail).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onHeaderClick=function(e){var t=this.headerclick.emit(Object.assign(Object.assign({},e.detail.column),{originalEvent:e.detail.originalEvent})).defaultPrevented;if(t){e.preventDefault()}};e.prototype.onCellFocus=function(e){e.cancelBubble=true;var t=this.beforecellfocus.emit(e.detail).defaultPrevented;if(!this.canFocus||t){e.preventDefault()}};e.prototype.columnChanged=function(e){if(e===void 0){e=[]}this.dimensionProvider.drop();var t=es.getColumns(e,0,this.columnTypes);this.beforecolumnsset.emit(t);for(var r=0,n=Ga;r<n.length;r++){var i=n[r];var o=t.columns[i];this.dimensionProvider.setRealSize(o.length,i);this.dimensionProvider.setColumns(i,es.getSizes(o),i!=="rgCol")}this.beforecolumnapplied.emit(t);var a=this.columnProvider.setColumns(t);this.aftercolumnsset.emit({columns:a,order:this.columnProvider.order})};e.prototype.themeChanged=function(e){this.themeService.register(e);this.dimensionProvider.setSettings({originItemSize:this.themeService.rowSize,frameOffset:this.frameSize||0},"rgRow");this.dimensionProvider.setSettings({originItemSize:this.colSize,frameOffset:this.frameSize||0},"rgCol")};e.prototype.dataChanged=function(e){if(e===void 0){e=[]}var t=__spreadArray([],e,true);var r=this.beforesourceset.emit({type:"rgRow",source:t});t=r.detail.source;t=this.dataProvider.setData(t,"rgRow");this.aftersourceset.emit({type:"rgRow",source:t})};e.prototype.dataBottomChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinEnd")};e.prototype.dataTopChanged=function(e){if(e===void 0){e=[]}this.dataProvider.setData(e,"rowPinStart")};e.prototype.rowDefChanged=function(e){var t=this;if(e===void 0){e=[]}if(!e.length){return}var r=Go(e,(function(e,t){if(!e[t.type]){e[t.type]={}}if(t.size){if(!e[t.type].sizes){e[t.type].sizes={}}e[t.type].sizes[t.index]=t.size}return e}),{});Qo(r,(function(e,r){if(e.sizes){t.dimensionProvider.setDimensionSize(r,e.sizes)}}))};e.prototype.trimmedRowsChanged=function(e){if(e===void 0){e={}}this.addTrimmed(e)};e.prototype.groupingChanged=function(e){if(e===void 0){e={}}var t;for(var r=0,n=this.internalPlugins;r<n.length;r++){var i=n[r];var o=i;if(o.setGrouping){t=o;break}}if(!t){return}t.setGrouping(e||{})};e.prototype.applyStretch=function(e){if(e==="false"){e=false}var t=this.internalPlugins.filter((function(e){return Lc(e)}))[0];if(e){if(!t){this.internalPlugins.push(new bc(this.element,this.dimensionProvider))}else{t.applyStretch(this.columnProvider.getRawColumns())}}else if(t){var r=this.internalPlugins.indexOf(t);this.internalPlugins.splice(r,1)}};e.prototype.connectedCallback=function(){var e=this;this.viewportProvider=new Ts;this.themeService=new z({rowSize:this.rowSize});this.dimensionProvider=new Ss(this.viewportProvider);this.columnProvider=new es;this.dataProvider=new ts(this.dimensionProvider);this.uuid="".concat((new Date).getTime(),"-rvgrid");var t={data:this.dataProvider,column:this.columnProvider,dimension:this.dimensionProvider,viewport:this.viewportProvider,selection:this.selectionStoreConnector};if(this.autoSizeColumn){this.internalPlugins.push(new Bs(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider,dimensionProvider:this.dimensionProvider},typeof this.autoSizeColumn==="object"?this.autoSizeColumn:undefined))}if(this.filter){this.internalPlugins.push(new ru(this.element,this.uuid,typeof this.filter==="object"?this.filter:undefined))}if(this.exporting){this.internalPlugins.push(new Xl(this.element))}this.internalPlugins.push(new Gu(this.element));if(this.plugins){this.plugins.forEach((function(r){e.internalPlugins.push(new r(e.element,t))}))}if(this.canMoveColumns){this.internalPlugins.push(new Oc(this.element,t))}this.internalPlugins.push(new Ql(this.element,{dataProvider:this.dataProvider,columnProvider:this.columnProvider}));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.selectionStoreConnector=new fc;this.scrollingService=new yc((function(t){e.dimensionProvider.setViewPortCoordinate({coordinate:t.coordinate,type:t.dimension});e.viewportscroll.emit(t)}));this.subscribers={click:this.handleOutsideClick.bind(this)};for(var r in this.subscribers){document.addEventListener(r,this.subscribers[r])}};e.prototype.disconnectedCallback=function(){Qo(this.internalPlugins,(function(e){return e.destroy()}));this.internalPlugins=[];for(var e in this.subscribers){document.removeEventListener(e,this.subscribers[e]);delete this.subscribers[e]}};e.prototype.render=function(){var e;var t=this;var r=this.dimensionProvider.stores["rgRow"].store.get("realSize");this.viewport=new Cc({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:function(e){return t.aftercolumnresize.emit(e)}},r);var n=[];if(this.rowHeaders){var o=this.viewport.columns[0];n.push(i("revogr-row-headers",{height:r,resize:this.resize,dataPorts:o.dataPorts,headerProp:o.headerProp,uiid:o.prop[ol],rowHeaderColumn:typeof this.rowHeaders==="object"?this.rowHeaders:undefined,onScrollViewport:function(e){var r=e.detail;return t.scrollingService.onScroll(r,"headerRow")},onElementToScroll:function(e){var r=e.detail;return t.scrollingService.registerElement(r,"headerRow")}}))}n.push(i(wc,{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:function(e){var r=t.beforeeditstart.emit(e);if(!r.defaultPrevented){t.selectionStoreConnector.setEdit(e.isCancel?false:e.val)}},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},onScroll:function(e){return t.scrollingService.onScroll(e)}}));return i(s,Object.assign({},(e={},e["".concat(ol)]=this.uuid,e)),i(rc,{viewports:this.viewportProvider.stores,dimensions:this.dimensionProvider.stores,orderRef:function(e){return t.orderService=e},registerElement:function(e,r){return t.scrollingService.registerElement(e,r)},nakedClick:function(){return t.viewport.clearEdit()},onScroll:function(e){return t.scrollingService.onScroll(e)}},n),this.extraElements)};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{columns:["columnChanged"],theme:["themeChanged"],source:["dataChanged"],pinnedBottomSource:["dataBottomChanged"],pinnedTopSource:["dataTopChanged"],rowDefinitions:["rowDefChanged"],trimmedRows:["trimmedRowsChanged"],grouping:["groupingChanged"],stretch:["applyStretch"]}},enumerable:false,configurable:true});return e}());Pc.style=Fc;var Dc=function(){function e(e,t){var r=this;this.dataStore=e;this.source=t;this.unsubscribe=[];this.hasGrouping=false;this.unsubscribe.push(t.onChange("source",(function(e){return r.checkGrouping(e)})));this.checkGrouping(t.get("source"))}Object.defineProperty(e.prototype,"columns",{get:function(){return Ba(this.source)},enumerable:false,configurable:true});e.prototype.checkGrouping=function(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];if(Al(n)){this.hasGrouping=true;return}this.hasGrouping=false}};e.prototype.isReadOnly=function(e,t){var r;var n=(r=this.columns[t])===null||r===void 0?void 0:r.readonly;if(typeof n==="function"){var i=this.rowDataModel(e,t);return n(i)}return n};e.doMerge=function(e,t){var r=Object.assign(Object.assign({},t),e);if(t.class){if(typeof t.class==="object"&&typeof r.class==="object"){r.class=Object.assign(Object.assign({},t.class),r.class)}else if(typeof t.class==="string"&&typeof r.class==="object"){r.class[t.class]=true}else if(typeof r.class==="string"){r.class+=" "+t.class}}if(t.style){r.style=Object.assign(Object.assign({},t.style),r.style)}return r};e.prototype.mergeProperties=function(t,r,n){var i;var o;var a=(i={},i[sl]=true,i[al]=this.isReadOnly(t,r),i);var s=Object.assign(Object.assign({},n),{class:a});var u=(o=this.columns[r])===null||o===void 0?void 0:o.cellProperties;if(u){var l=this.rowDataModel(t,r);var c=u(l);if(!c){return s}return e.doMerge(s,c)}return s};e.prototype.customRenderer=function(e,t,r){var n;var o=(n=this.columns[t])===null||n===void 0?void 0:n.cellTemplate;if(o){return o(i,r)}return};e.prototype.getRowClass=function(e,t){var r=Ua(this.dataStore,e)||{};return r[t]||""};e.prototype.getCellData=function(t,r){var n=this.rowDataModel(t,r);return e.getData(n.model[n.prop])};e.prototype.getSaveData=function(e,t,r){if(typeof r==="undefined"){r=this.getCellData(e,t)}var n=this.rowDataModel(e,t);return{prop:n.prop,rowIndex:e,val:r,model:n.model,type:this.dataStore.get("type")}};e.prototype.getCellEditor=function(e,t,r){var n;var i=(n=this.columns[t])===null||n===void 0?void 0:n.editor;if(!i){return undefined}if(typeof i==="string"){return r[i]}return i};e.prototype.rowDataModel=function(e,t){var r=this.columns[t];var n=r===null||r===void 0?void 0:r.prop;var i=Ua(this.dataStore,e)||{};return{prop:n,model:i,data:this.dataStore.get("source"),column:r,rowIndex:e}};e.prototype.getRangeData=function(e){var t={};var r=e.oldProps.length;var n=this.copyRangeArray(e.oldRange,e.oldProps,this.dataStore);var i=n.length;for(var o=e.newRange.y,a=0;o<e.newRange.y1+1;o++,a++){var s=n[a%i];for(var u=e.newRange.x,l=0;u<e.newRange.x1+1;u++,l++){if(o>=e.oldRange.y&&o<=e.oldRange.y1&&u>=e.oldRange.x&&u<=e.oldRange.x1){continue}var c=this.columns[u].prop;var f=l%r;if(!this.isReadOnly(o,u)){if(!t[o]){t[o]={}}t[o][c]=s[f]}}}return t};e.prototype.getTransformedDataToApply=function(e,t){var r={};var n=t.length;var i=this.columns.length;var o=this.dataStore.get("items").length;var a=e.y;var s=0;for(var u=0;a<o&&u<n;a++,u++){var l=t[u%n];var c=(l===null||l===void 0?void 0:l.length)||0;var f=e.x;for(var v=0;f<i&&v<c;f++,v++){var d=this.columns[f].prop;var h=v%i;if(!this.isReadOnly(a,f)){if(!r[a]){r[a]={}}r[a][d]=l[h]}}s=Math.max(s,f-1)}var p=ac(e,{y:a-1,x:s});return{changed:r,range:p}};e.prototype.applyRangeData=function(e){var t={};for(var r in e){var n=t[r]=Ua(this.dataStore,parseInt(r,10));for(var i in e[r]){n[i]=e[r][i]}}Wa(this.dataStore,t)};e.prototype.getRangeStaticData=function(e,t){var r={};for(var n=e.y,i=0;n<e.y1+1;n++,i++){for(var o=e.x,a=0;o<e.x1+1;o++,a++){var s=this.columns[o].prop;if(!this.isReadOnly(n,o)){if(!r[n]){r[n]={}}r[n][s]=t}}}return r};e.prototype.copyRangeArray=function(e,t,r){var n=[];for(var i=e.y;i<e.y1+1;i++){var o=[];for(var a=0,s=t;a<s.length;a++){var u=s[a];var l=Ua(r,i);o.push(l[u])}n.push(o)}return n};e.getData=function(e){if(typeof e==="undefined"||e===null){return""}return e.toString()};e.prototype.destroy=function(){this.unsubscribe.forEach((function(e){return e()}))};return e}();var Ac=function(e){var t=e.model,r=e.canDrag,n=e.onDragStart;var o=[];if(t.column.rowDrag&&Mc(t.column.rowDrag,t)){if(r){o.push(i("span",{class:dl,onMouseDown:function(e){return n(e)}},i("span",{class:vl})))}else{o.push(i("span",{class:dl}))}}o.push("".concat(Dc.getData(t.model[t.prop])));return o};function Mc(e,t){if(typeof e==="function"){return e(t)}return!!e}var Tc=10;var Ic=function(e,t){var r=e.rowClass,n=e.size,o=e.start,a=e.style,s=e.depth;return i("div",{class:"rgRow ".concat(r||""),style:Object.assign(Object.assign({},a),{height:"".concat(n,"px"),transform:"translateY(".concat(o,"px)"),paddingLeft:s?"".concat(Tc*s,"px"):undefined})},t)};function Hc(e,t,r){var n=new CustomEvent(zl,{detail:{model:t,virtualIndex:r},cancelable:true,bubbles:true});e.target.dispatchEvent(n)}var Bc=function(e){var t;var r=e.model,n=e.itemIndex,o=e.hasExpand;var a=r[Ll];var s=r[El];var u=parseInt(r[bl],10)||0;if(!o){return i(Ic,Object.assign({},e,{rowClass:"groupingRow",depth:u}))}return i(Ic,Object.assign({},e,{rowClass:"groupingRow",depth:u}),i("button",{class:(t={},t[kl]=true,t),onClick:function(e){return Hc(e,r,n)}},i("svg",{"aria-hidden":"true",style:{transform:"rotate(".concat(!s?-90:0,"deg)")},focusable:"false",viewBox:"0 0 448 512"},i("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"}))),a)};var Uc=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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}";var Wc=e("revogr_data",function(){function e(e){o(this,e);this.dragStartCell=a(this,"dragStartCell",7)}e.prototype.onStoreChange=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new Dc(this.dataStore,this.colData)};e.prototype.connectedCallback=function(){this.onStoreChange()};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.render=function(){var e;var t=this.viewportRow.get("items");var r=this.viewportCol.get("items");if(!this.columnService.columns.length||!t.length||!r.length){return""}var n=(e=this.rowSelectionStore)===null||e===void 0?void 0:e.get("range");var o=[];var a=this.dataStore.get("groupingDepth");for(var s=0,u=t;s<u.length;s++){var l=u[s];var c=Ua(this.dataStore,l.itemIndex);if(Dl(c)){o.push(i(Bc,Object.assign({},l,{model:c,hasExpand:this.columnService.hasGrouping})));continue}var f=[];var v=this.rowClass?this.columnService.getRowClass(l.itemIndex,this.rowClass):"";if(n&&l.itemIndex>=n.y&&l.itemIndex<=n.y1){v+=" focused-rgRow"}for(var d=0,h=r;d<h.length;d++){var p=h[d];f.push(this.getCellRenderer(l,p,this.canDrag,this.columnService.hasGrouping?a:0))}o.push(i(Ic,{rowClass:v,size:l.size,start:l.start},f))}return o};e.prototype.getCellRenderer=function(e,t,r,n){var o;var a=this;if(r===void 0){r=false}if(n===void 0){n=0}var s=this.columnService.rowDataModel(e.itemIndex,t.itemIndex);var u=(o={},o[nl]=t.itemIndex,o[il]=e.itemIndex,o.style={width:"".concat(t.size,"px"),transform:"translateX(".concat(t.start,"px)")},o);if(n&&!t.itemIndex){u.style.paddingLeft="".concat(Tc*n,"px")}var l=this.columnService.mergeProperties(e.itemIndex,t.itemIndex,u);var c=this.columnService.customRenderer(e.itemIndex,t.itemIndex,s);if(typeof c!=="undefined"){return i("div",Object.assign({},l),c)}if(!s.column){console.error("Investigate column problem");return}return i("div",Object.assign({},l),i(Ac,{model:s,canDrag:r,onDragStart:function(e){return a.dragStartCell.emit(e)}}))};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{dataStore:["onStoreChange"],colData:["onStoreChange"]}},enumerable:false,configurable:true});return e}());Wc.style=Uc;var Nc;(function(e){e[e["MOUSE_LEFT"]=1]="MOUSE_LEFT";e[e["MOUSE_RIGHT"]=3]="MOUSE_RIGHT";e[e["MOUSE_MIDDLE"]=2]="MOUSE_MIDDLE";e[e["BACKSPACE"]=8]="BACKSPACE";e[e["COMMA"]=188]="COMMA";e[e["INSERT"]=45]="INSERT";e[e["DELETE"]=46]="DELETE";e[e["END"]=35]="END";e[e["ENTER"]=13]="ENTER";e[e["ESCAPE"]=27]="ESCAPE";e[e["CONTROL"]=17]="CONTROL";e[e["COMMAND_LEFT"]=91]="COMMAND_LEFT";e[e["COMMAND_RIGHT"]=93]="COMMAND_RIGHT";e[e["COMMAND_FIREFOX"]=224]="COMMAND_FIREFOX";e[e["ALT"]=18]="ALT";e[e["HOME"]=36]="HOME";e[e["PAGE_DOWN"]=34]="PAGE_DOWN";e[e["PAGE_UP"]=33]="PAGE_UP";e[e["PERIOD"]=190]="PERIOD";e[e["SPACE"]=32]="SPACE";e[e["SHIFT"]=16]="SHIFT";e[e["CAPS_LOCK"]=20]="CAPS_LOCK";e[e["TAB"]=9]="TAB";e[e["ARROW_RIGHT"]=39]="ARROW_RIGHT";e[e["ARROW_LEFT"]=37]="ARROW_LEFT";e[e["ARROW_UP"]=38]="ARROW_UP";e[e["ARROW_DOWN"]=40]="ARROW_DOWN";e[e["F1"]=112]="F1";e[e["F2"]=113]="F2";e[e["F3"]=114]="F3";e[e["F4"]=115]="F4";e[e["F5"]=116]="F5";e[e["F6"]=117]="F6";e[e["F7"]=118]="F7";e[e["F8"]=119]="F8";e[e["F9"]=120]="F9";e[e["F10"]=121]="F10";e[e["F11"]=122]="F11";e[e["F12"]=123]="F12";e[e["A"]=65]="A";e[e["C"]=67]="C";e[e["D"]=68]="D";e[e["F"]=70]="F";e[e["L"]=76]="L";e[e["O"]=79]="O";e[e["P"]=80]="P";e[e["S"]=83]="S";e[e["V"]=86]="V";e[e["X"]=88]="X"})(Nc||(Nc={}));var Vc;(function(e){e["ENTER"]="Enter";e["ENTER_NUM"]="NumpadEnter";e["V"]="KeyV";e["C"]="KeyC";e["ESCAPE"]="Escape";e["TAB"]="Tab";e["BACKSPACE"]="Backspace";e["DELETE"]="Delete";e["ARROW_RIGHT"]="ArrowRight";e["ARROW_LEFT"]="ArrowLeft";e["ARROW_UP"]="ArrowUp";e["ARROW_DOWN"]="ArrowDown";e["SHIFT"]="Shift"})(Vc||(Vc={}));var Zc=Nc;var Gc;(function(e){e["mac"]="Mac"})(Gc||(Gc={}));var $c=Gc;function Xc(e){return e!==e}var Yc=Xc;function qc(e,t,r){var n=r-1,i=e.length;while(++n<i){if(e[n]===t){return n}}return-1}var Kc=qc;function Jc(e,t,r){return t===t?Kc(e,t,r):na(e,Yc,r)}var Qc=Jc;function ef(e,t){return oo(t,(function(t){return e[t]}))}var tf=ef;function rf(e){return e==null?[]:tf(e,at(e))}var nf=rf;var of=Math.max;function af(e,t,r,n){e=it(e)?e:nf(e);r=r&&!n?la(r):0;var i=e.length;if(r<0){r=of(i+r,0)}return ou(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Qc(e,t,r)>-1}var sf=af;function uf(e){return e===32||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function lf(e,t){if(t.includes($c.mac)){return sf([Zc.COMMAND_LEFT,Zc.COMMAND_RIGHT,Zc.COMMAND_FIREFOX],e)}return Zc.CONTROL===e}function cf(e){return Vc.BACKSPACE===e||Vc.DELETE===e}function ff(e){return Vc.TAB===e}function vf(e){return e===Vc.ENTER||e===Vc.ENTER_NUM}var df=function(){function e(e,t){this.column=e;this.saveCallback=t;this.element=null;this.editCell=null}e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.editInput)return[3,2];return[4,Cs()];case 1:t.sent();(e=this.editInput)===null||e===void 0?void 0:e.focus();t.label=2;case 2:return[2]}}))}))};e.prototype.onKeyDown=function(e){var t=vf(e.code);var r=ff(e.code);if((r||t)&&e.target&&this.saveCallback&&!e.isComposing){this.editInput.blur();this.saveCallback(e.target.value,r)}};e.prototype.render=function(){var e=this;var t;return i("input",{type:"text",value:((t=this.editCell)===null||t===void 0?void 0:t.val)||"",ref:function(t){e.editInput=t},onKeyDown:function(t){return e.onKeyDown(t)}})};return e}();var hf=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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}";var pf=e("revogr_edit",function(){function e(e){o(this,e);this.cellEdit=a(this,"cellEdit",3);this.closeEdit=a(this,"closeEdit",3);this.currentEditor=null}e.prototype.onSave=function(e,t){if(this.editCell){this.cellEdit.emit({rgCol:this.editCell.x,rgRow:this.editCell.y,val:e,preventFocus:t})}};e.prototype.componentWillRender=function(){var e=this;if(!this.currentEditor){if(this.editor){this.currentEditor=new this.editor(this.column,(function(t,r){return e.onSave(t,r)}),(function(t){return e.closeEdit.emit(t)}))}else{this.currentEditor=new df(this.column,(function(t,r){return e.onSave(t,r)}))}}};e.prototype.componentDidRender=function(){if(!this.currentEditor){return}this.currentEditor.element=this.element.firstElementChild;this.currentEditor.componentDidRender&&this.currentEditor.componentDidRender()};e.prototype.disconnectedCallback=function(){if(!this.currentEditor){return}this.currentEditor.disconnectedCallback&&this.currentEditor.disconnectedCallback();if(this.currentEditor.element){this.currentEditor.element=null}this.currentEditor=null};e.prototype.render=function(){if(this.currentEditor){this.currentEditor.editCell=this.editCell;return i(s,{class:Cl},this.currentEditor.render(i))}return""};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());pf.style=hf;function gf(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left,c=s.height,f=s.width;var v=n-u;if(v>=c){v=c-1}var d=r-l;if(d>=f){d=f-1}var h=ys(o,v);var p=ys(a,d);if(p.itemIndex<0){p.itemIndex=0}if(h.itemIndex<0){h.itemIndex=0}return{x:p.itemIndex,y:h.itemIndex}}function mf(e,t,r,n){if(n===void 0){n=false}var i=function(i){var o={x:e.x,y:e.y};var a=n?{x:e.x1,y:e.y1}:o;var s=a[i]>t[i]?a:o;s[i]+=r[i];return{start:o,end:a}};if(r.x){return i("x")}if(r.y){return i("y")}return null}function Cf(e,t){var r=e.x,n=e.y;var i=t.lastCell;return r>=i.x||n>=i.y}function wf(e){var t=e.x,r=e.y;return t<0||r<0}function yf(e,t){var r;var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(e[a]!==t[a]){return r={},r[a]=1,r}}return null}function bf(e,t){var r={};var n=["x","y"];for(var i=0,o=n;i<o.length;i++){var a=o[i];r[a]=Math.abs(e[a]-t[a])}if(r.x>r.y){return{x:1}}if(r.y>r.x){return{y:1}}return null}function Lf(e){return{left:"".concat(e.left,"px"),top:"".concat(e.top,"px"),width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}}function xf(e,t,r){var n=e.x,i=e.y,o=e.x1,a=e.y1;var s=bs(t,i).start;var u=bs(r,n).start;var l=bs(t,a).end;var c=bs(r,o).end;return{left:u,right:c,top:s,bottom:l,width:c-u,height:l-s}}function _f(e,t,r){var n=xf(e,t,r);return Lf(n)}var Sf=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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 Ef=e("revogr_focus",function(){function e(e){o(this,e)}e.prototype.changed=function(e){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.componentDidRender=function(){this.el&&this.changed(this.el)};e.prototype.render=function(){var e=this.selectionStore.get("focus");if(e){var t=_f(Object.assign(Object.assign({},e),{x1:e.x,y1:e.y}),this.dimensionRow.state,this.dimensionCol.state);return i(s,{class:hl,style:t})}};Object.defineProperty(e.prototype,"el",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());Ef.style=Sf;var kf=function(){try{var e=ar(Object,"defineProperty");e({},"",{});return e}catch(e){}}();var zf=kf;function Rf(e,t,r){if(t=="__proto__"&&zf){zf(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}var Of=Rf;function jf(e,t,r,n){var i=-1,o=e==null?0:e.length;while(++i<o){var a=e[i];t(n,a,r(a),e)}return n}var Ff=jf;function Pf(e,t,r,n){vt(e,(function(e,i,o){t(n,e,r(e),o)}));return n}var Df=Pf;function Af(e,t){return function(r,n){var i=G(r)?Ff:Df,o=t?t():{};return i(r,e,Wo(n),o)}}var Mf=Af;var Tf=Mf((function(e,t,r){Of(e,r,t)}));var If=Tf;var Hf=function(e){var t=e.column;return i("i",{class:t.order})};var Bf;(function(e){e["start"]="resize:start";e["move"]="resize:move";e["end"]="resize:end"})(Bf||(Bf={}));var Uf={"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"}};var Wf={l:1,t:2,w:4,h:8};var Nf=function(e){return Object.assign(Object.assign({},e),{fitParent:e.fitParent||false,active:e.active||[],disableAttributes:e.disableAttributes||[],minWidth:e.minWidth||0,minHeight:e.minHeight||0})};var Vf=function(){function e(e,t){this.initialProps=e;this.$event=t;this.mouseX=0;this.mouseY=0;this.width=0;this.height=0;this.changeX=0;this.changeY=0;this.disableCalcMap=15;this.props=Nf(e);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}e.prototype.set=function(e){var t=this;this.$el=e;this.props.disableAttributes.forEach((function(e){switch(e){case"l":t.disableCalcMap&=~Wf.l;break;case"t":t.disableCalcMap&=~Wf.t;break;case"w":t.disableCalcMap&=~Wf.w;break;case"h":t.disableCalcMap&=~Wf.h}}))};e.prototype.emitEvent=function(e,t){if(!this.$event){return}this.$event(Object.assign({eventName:e,width:this.width+this.changeX,height:this.height+this.changeY,changedX:this.changeX,changedY:this.changeY},t))};e.isTouchEvent=function(e){var t;var r=e;return((t=r.touches)===null||t===void 0?void 0:t.length)>=0};e.prototype.handleMove=function(t){if(!this.resizeState){return}var r,n;if(e.isTouchEvent(t)){r=t.touches[0].clientY;n=t.touches[0].clientX}else{r=t.clientY;n=t.clientX}var i=this.resizeState&Uf["resizable-r"].bit||this.resizeState&Uf["resizable-l"].bit;var o=this.resizeState&Uf["resizable-t"].bit||this.resizeState&Uf["resizable-b"].bit;if(o&&this.disableCalcMap&Wf.h){var a=r-this.mouseY;var s=this.changeY+a;var u=this.height+s;if(u<this.minH){s=-(this.height-this.minH)}if(this.maxH&&u>this.maxH){s=this.maxH-this.height}this.changeY=s;this.mouseY=r;if(this.activeResizer){this.activeResizer.style.bottom="".concat(-this.changeY,"px")}}if(i&&this.disableCalcMap&Wf.w){var l=n-this.mouseX;var c=this.changeX+l;var f=this.width+c;if(f<this.minW){c=-(this.width-this.minW)}if(this.maxW&&f>this.maxW){c=this.maxW-this.width}this.changeX=c;this.mouseX=n;if(this.activeResizer){this.activeResizer.style.right="".concat(-this.changeX,"px")}}this.emitEvent(Bf.move)};e.prototype.handleDown=function(t){if(t.defaultPrevented){return}t.preventDefault();this.dropInitial();for(var r in Uf){var n=t.target;if(this.$el.contains(n)&&(n===null||n===void 0?void 0:n.classList.contains(r))){document.body.style.cursor=Uf[r].cursor;if(e.isTouchEvent(t)){this.setInitials(t.touches[0],n)}else{t.preventDefault&&t.preventDefault();this.setInitials(t,n)}this.resizeState=Uf[r].bit;var i=Bf.start;this.emitEvent(i);break}}this.bindMove()};e.prototype.handleUp=function(e){e.preventDefault();if(this.resizeState!==0){this.resizeState=0;document.body.style.cursor="";var t=Bf.end;this.emitEvent(t)}this.dropInitial();this.unbindMove()};e.prototype.setInitials=function(e,t){var r=e.clientX,n=e.clientY;var i=getComputedStyle(this.$el);this.$el.classList.add("active");this.activeResizer=t;if(this.disableCalcMap&Wf.w){this.mouseX=r;this.width=this.$el.clientWidth;this.parent.width=this.$el.parentElement.clientWidth;var o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight);this.minW=Math.max(o,this.initialProps.minWidth||0);if(this.initialProps.maxWidth){this.maxW=Math.max(this.width,this.initialProps.maxWidth)}}if(this.disableCalcMap&Wf.h){this.mouseY=n;this.height=this.$el.clientHeight;this.parent.height=this.$el.parentElement.clientHeight;var a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom);this.minH=Math.max(a,this.initialProps.minHeight||0);if(this.initialProps.maxHeight){this.maxH=Math.max(this.height,this.initialProps.maxHeight)}}};e.prototype.dropInitial=function(){this.changeX=this.changeY=this.minW=this.minH;this.width=this.height=0;if(this.activeResizer){this.activeResizer.removeAttribute("style")}this.$el.classList.remove("active");this.activeResizer=null};e.prototype.bindMove=function(){document.documentElement.addEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.addEventListener("touchend",this.mouseUpFunc,true);document.documentElement.addEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.addEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.addEventListener("mouseleave",this.mouseUpFunc)};e.prototype.unbindMove=function(){document.documentElement.removeEventListener("mouseup",this.mouseUpFunc,true);document.documentElement.removeEventListener("touchend",this.mouseUpFunc,true);document.documentElement.removeEventListener("mousemove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("touchmove",this.mouseMoveFunc,true);document.documentElement.removeEventListener("mouseleave",this.mouseUpFunc)};return e}();var Zf=function(e,t){var r=[];var n=e.canResize&&new Vf(e,(function(t){if(t.eventName===Bf.end){e.onResize&&e.onResize(t)}}))||null;if(e.canResize){if(e.active){for(var o in e.active){r.push(i("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},onMouseDown:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},onTouchStart:function(e){return n===null||n===void 0?void 0:n.handleDown(e)},class:"resizable resizable-".concat(e.active[o])}))}}}else{if(e.active){for(var o in e.active){r.push(i("div",{onClick:function(e){return e.preventDefault()},onDblClick:function(t){t.preventDefault();e.onDoubleClick&&e.onDoubleClick()},class:"no-resize resizable resizable-".concat(e.active[o])}))}}}return i("div",Object.assign({},e,{ref:function(e){return n===null||n===void 0?void 0:n.set(e)}}),t,r)};var Gf="column-click";var $f=function(e,t){var r=e.data,n=e.props;var o=(r===null||r===void 0?void 0:r.name)||"";var a=n;if(r===null||r===void 0?void 0:r.columnTemplate){o=r.columnTemplate(i,r)}if(r===null||r===void 0?void 0:r.columnProperties){var s=r.columnProperties(r);if(s&&typeof s==="object"){a=Dc.doMerge(n,s)}}return i(Zf,Object.assign({},a,{onMouseDown:function(e){_c(e.currentTarget,Gf,{data:r,event:e})}}),i("div",{class:"header-content"},o),t)};var Xf=function(e){var t,r;var n,o,a,s,u,l;var c=(t={},t[ul]=true,t[ll]=!!((n=e.data)===null||n===void 0?void 0:n.sortable),t);if((o=e.data)===null||o===void 0?void 0:o.order){c[e.data.order]=true}var f=(r={},r[nl]=e.column.itemIndex,r.canResize=e.canResize,r.minWidth=((a=e.data)===null||a===void 0?void 0:a.minSize)||rl,r.maxWidth=(s=e.data)===null||s===void 0?void 0:s.maxSize,r.active=["r"],r.class=c,r.style={width:"".concat(e.column.size,"px"),transform:"translateX(".concat(e.column.start,"px)")},r.onResize=e.onResize,r.onDoubleClick=function(t){e.onDoubleClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r.onClick=function(t){if(t.defaultPrevented||!e.onClick){return}e.onClick({column:e.data,index:e.column.itemIndex,originalEvent:t})},r);if(e.range){if(e.column.itemIndex>=e.range.x&&e.column.itemIndex<=e.range.x1){if(typeof f.class==="object"){f.class[hl]=true}}}return i($f,{data:e.data,props:f},((u=e.data)===null||u===void 0?void 0:u.order)?i(Hf,{column:e.data}):"",e.canFilter&&((l=e.data)===null||l===void 0?void 0:l.filter)!==false?i(L,{column:e.data}):"")};var Yf=function(e){var t;var r={canResize:e.canResize,minWidth:e.group.ids.length*rl,maxWidth:0,active:["r"],class:(t={},t[ul]=true,t),style:{transform:"translateX(".concat(e.start,"px)"),width:"".concat(e.end-e.start,"px")},onResize:e.onResize};return i($f,{data:e.group,props:r})};var qf=function(e){var t=e.depth,r=e.groups,n=e.visibleProps,o=e.dimensionCol,a=e.canResize,s=e.onResize;var u=[];for(var l=0;l<t;l++){if(r[l]){var c=function(e){var t=va(e.ids,(function(e){return typeof n[e]==="number"}));if(t>-1){var r=n[e.ids[t]];var l=r-t;var c=l+e.ids.length-1;var f=bs(o,l).start;var v=bs(o,c).end;u.push(i(Yf,{start:f,end:v,group:e,canResize:a,onResize:function(e){return s(e.changedX,l,c)}}))}};for(var f=0,v=r[l];f<v.length;f++){var d=v[f];c(d)}}u.push(i("div",{class:"".concat(cl," group")}))}return u};var Kf="@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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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 Jf=e("revogr_header",function(){function e(e){o(this,e);this.initialHeaderClick=a(this,"initialHeaderClick",7);this.headerresize=a(this,"headerresize",7);this.headerdblClick=a(this,"headerdblClick",7);this.parent="";this.groupingDepth=0}e.prototype.onResize=function(e,t){var r;var n=e.width;this.headerresize.emit((r={},r[t]=n||0,r))};e.prototype.onResizeGroup=function(e,t,r){var n={};var i=If(this.viewportCol.get("items"),"itemIndex");var o=e/(r-t+1);for(var a=t;a<=r;a++){var s=i[a];if(s){n[a]=s.size+o}}this.headerresize.emit(n)};e.prototype.render=function(){var e=this;var t;var r=this.viewportCol.get("items");var n=(t=this.selectionStore)===null||t===void 0?void 0:t.get("range");var o=[];var a={};var s=function(t){var r=u.colData[t.itemIndex];o.push(i(Xf,{range:n,column:t,data:r,canFilter:!!u.columnFilter,canResize:u.canResize,onResize:function(r){return e.onResize(r,t.itemIndex)},onDoubleClick:function(t){return e.headerdblClick.emit(t)},onClick:function(t){return e.initialHeaderClick.emit(t)}}));a[r===null||r===void 0?void 0:r.prop]=t.itemIndex};var u=this;for(var l=0,c=r;l<c.length;l++){var f=c[l];s(f)}return[i("div",{class:"group-rgRow"},i(qf,{canResize:this.canResize,visibleProps:a,groups:this.groups,dimensionCol:this.dimensionCol.state,depth:this.groupingDepth,onResize:function(t,r,n){return e.onResizeGroup(t,r,n)}})),i("div",{class:"".concat(cl," ").concat(fl)},o)]};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());Jf.style=Kf;var Qf=function(){function e(e){this.config=e;this.currentCell=null;this.previousRow=null}e.prototype.endOrder=function(e,t){if(this.currentCell===null){return}var r=this.getCell(e,t);if(r.y!==this.currentCell.y){if(r.y<0){r.y=0}else if(r.y<this.currentCell.y){r.y++}this.config.positionChanged(this.currentCell.y,r.y)}this.clear()};e.prototype.startOrder=function(e,t){this.currentCell=this.getCell(e,t);return this.currentCell};e.prototype.move=function(e,t){var r=this.getRow(e,t);if(this.previousRow===r.itemIndex||r.itemIndex<-1){return null}this.previousRow=r.itemIndex;return r};e.prototype.clear=function(){this.currentCell=null;this.previousRow=null};e.prototype.getRow=function(e,t){var r=t.el,n=t.rows;var i=r.getBoundingClientRect().top;var o=e-i;var a=ys(n,o);var s={itemIndex:a.itemIndex,start:a.start+i,end:a.end+i};return s};e.prototype.getCell=function(e,t){var r=e.x,n=e.y;var i=t.el,o=t.rows,a=t.cols;var s=i.getBoundingClientRect(),u=s.top,l=s.left;var c=n-u;var f=r-l;var v=ys(o,c);var d=ys(a,f);return{x:d.itemIndex,y:v.itemIndex}};return e}();var ev=e("revogr_order_editor",function(){function e(e){var t=this;o(this,e);this.internalRowDragStart=a(this,"internalRowDragStart",7);this.internalRowDragEnd=a(this,"internalRowDragEnd",7);this.internalRowDrag=a(this,"internalRowDrag",7);this.internalRowMouseMove=a(this,"internalRowMouseMove",7);this.initialRowDropped=a(this,"initialRowDropped",7);this.rowMoveFunc=b((function(e){var r=t.rowOrderService.move(e,t.getData());if(r!==null){t.internalRowDrag.emit(r)}}),5)}e.prototype.onMouseOut=function(){this.clearOrder()};e.prototype.onMouseUp=function(e){this.endOrder(e)};e.prototype.dragStart=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,i;var o=this;return __generator(this,(function(a){e.preventDefault();if(this.moveFunc){this.clearOrder()}t=this.getData();r=this.rowOrderService.startOrder(e,t);n=this.rowOrderService.getRow(e.y,t);i=this.internalRowDragStart.emit({cell:r,text:wl,pos:n,event:e});if(i.defaultPrevented){return[2]}this.moveFunc=function(e){return o.move(e)};document.addEventListener("mousemove",this.moveFunc);return[2]}))}))};e.prototype.endOrder=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.rowOrderService.endOrder(e,this.getData());this.clearOrder();return[2]}))}))};e.prototype.clearOrder=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rowOrderService.clear();document.removeEventListener("mousemove",this.moveFunc);this.moveFunc=null;this.internalRowDragEnd.emit();return[2]}))}))};e.prototype.move=function(e){var t=e.x,r=e.y;this.internalRowMouseMove.emit({x:t,y:r});this.rowMoveFunc(r)};e.prototype.connectedCallback=function(){var e=this;this.rowOrderService=new Qf({positionChanged:function(t,r){return e.onPositionChanged(t,r)}})};e.prototype.onPositionChanged=function(e,t){var r=this.initialRowDropped.emit({from:e,to:t});if(r.defaultPrevented){return}var n=__spreadArray([],this.dataStore.get("items"),true);var i=n.splice(e,1);n.splice.apply(n,__spreadArray([t,0],i,false));Na(this.dataStore,n)};e.prototype.getData=function(){return{el:this.parent,rows:this.dimensionRow.state,cols:this.dimensionCol.state}};return e}());var tv=function(){function e(e,t){this.store=e;this.config=t;this.store=e}Object.defineProperty(e.prototype,"edited",{get:function(){return this.store.get("edit")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"focused",{get:function(){return this.store.get("focus")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"ranged",{get:function(){return this.store.get("range")},enumerable:false,configurable:true});e.prototype.changeRange=function(e){return this.config.changeRange(e)};e.prototype.focus=function(e,t){if(t===void 0){t=false}if(!e){return false}var r=e;if(t){var n=this.store.get("focus");if(n){return this.config.changeRange(ac(n,r))}}return this.config.focus(e,r)};return e}();function rv(e){return!!(e===null||e===void 0?void 0:e.closest(".".concat(Cl)))}var nv=function(){function e(e){this.sv=e;this.ctrlDown=false}e.prototype.keyDown=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:if(!this.sv.selectionStoreService.focused){return[2]}if(lf(e.keyCode,navigator.platform)){this.ctrlDown=true}if(Vc.TAB===e.code){this.keyChangeSelection(e,t);return[2]}if(this.sv.selectionStoreService.edited){switch(e.code){case Vc.ESCAPE:this.sv.doEdit(undefined,true);break}return[2]}if(cf(e.code)){this.sv.clearCell();return[2]}if(vf(e.code)){this.sv.doEdit();return[2]}if(this.isCopy(e)){return[2]}if(this.isPaste(e)){this.sv.internalPaste();return[2]}if(uf(e.keyCode)){this.sv.doEdit(e.key);return[2]}return[4,this.keyChangeSelection(e,t)];case 1:if(r.sent()){return[2]}return[2]}}))}))};e.prototype.keyChangeSelection=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=this.changeDirectionKey(e,t);if(!r){return[2,false]}return[4,Cs()];case 1:o.sent();n=this.sv.selectionStore.get("range");i=this.sv.selectionStore.get("focus");return[2,this.keyPositionChange(r.changes,this.sv.getData(),n,i,r.isMulti)]}}))}))};e.prototype.keyPositionChange=function(e,t,r,n,i){if(i===void 0){i=false}if(!r||!n){return false}var o=mf(r,n,e,i);if(!o){return false}if(i){if(Cf(o.end,t)||wf(o.start)){return false}var a=ac(o.start,o.end);return this.sv.selectionStoreService.changeRange(a)}return this.sv.selectionStoreService.focus(o.start)};e.prototype.keyUp=function(e){if(lf(e.keyCode,navigator.platform)){this.ctrlDown=false}};e.prototype.isCopy=function(e){return this.ctrlDown&&e.code==Vc.C};e.prototype.isPaste=function(e){return this.ctrlDown&&e.code==Vc.V};e.prototype.changeDirectionKey=function(e,t){var r=t&&e.shiftKey;switch(e.code){case Vc.TAB:case Vc.ARROW_UP:case Vc.ARROW_DOWN:case Vc.ARROW_LEFT:case Vc.ARROW_RIGHT:e.preventDefault();break}switch(e.code){case Vc.ARROW_UP:return{changes:{y:-1},isMulti:r};case Vc.ARROW_DOWN:return{changes:{y:1},isMulti:r};case Vc.ARROW_LEFT:return{changes:{x:-1},isMulti:r};case Vc.TAB:case Vc.ARROW_RIGHT:return{changes:{x:1},isMulti:r}}};return e}();function iv(e,t,r){var n=-1,i=e.length;if(t<0){t=-t>i?0:i+t}r=r>i?i:r;if(r<0){r+=i}i=t>r?0:r-t>>>0;t>>>=0;var o=Array(i);while(++n<i){o[n]=e[n+t]}return o}var ov=iv;function av(e,t,r){var n=e==null?0:e.length;if(!n){return[]}if(r&&typeof r!="number"&&za(e,t,r)){t=0;r=n}else{t=t==null?0:la(t);r=r===undefined?n:la(r)}return ov(e,t,r)}var sv=av;var uv;(function(e){e["selection"]="Selection";e["autoFill"]="AutoFill"})(uv||(uv={}));var lv=function(){function e(e){this.sv=e;this.autoFillType=null;this.autoFillInitial=null;this.autoFillStart=null;this.autoFillLast=null}e.prototype.renderAutofill=function(e,t){var r=this;var n;if(e){n=xf(e,this.sv.dimensionRow.state,this.sv.dimensionCol.state)}else{n=xf(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.sv.dimensionRow.state,this.sv.dimensionCol.state)}return i("div",{class:ml,style:{left:"".concat(n.right,"px"),top:"".concat(n.bottom,"px")},onMouseDown:function(e){return r.selectionStart(e,r.sv.getData(),uv.autoFill)}})};Object.defineProperty(e.prototype,"isAutoFill",{get:function(){return!!this.autoFillType},enumerable:false,configurable:true});e.prototype.selectionMouseMove=function(e){var t=this;if(!this.onMouseMoveAutofill){this.onMouseMoveAutofill=b((function(e,r){return t.doAutofillMouseMove(e,r)}),5)}if(this.isAutoFill){this.onMouseMoveAutofill(e,this.sv.getData())}};e.prototype.getFocus=function(){var e=this.sv.selectionStoreService.focused;var t=this.sv.selectionStoreService.ranged;if(t){e={x:t.x,y:t.y}}if(!e&&!t){return null}return e};e.prototype.doAutofillMouseMove=function(e,t){var r=this;var n=e.x,i=e.y;if(!this.autoFillInitial){return}var o=gf({x:n,y:i},t);var a;if(this.autoFillLast){a=yf(this.autoFillStart,this.autoFillLast)}if(!this.autoFillLast||!a){a=bf(this.autoFillStart,o);if(!this.autoFillLast){this.autoFillLast=this.autoFillStart}}if(!a){return}Qo(a,(function(e,t){var n;if(e){o=Object.assign(Object.assign({},r.autoFillLast),(n={},n[t]=o[t],n))}}));if(Cf(o,t)){return}this.autoFillLast=o;this.sv.setTempRange({area:ac(this.autoFillInitial,this.autoFillLast),type:this.autoFillType})};e.prototype.selectionStart=function(e,t,r){if(r===void 0){r=uv.selection}var n=e.target.getBoundingClientRect(),i=n.top,o=n.left;this.autoFillInitial=this.getFocus();this.autoFillType=r;this.autoFillStart=gf({x:o,y:i},t);e.preventDefault()};e.prototype.clearAutoFillSelection=function(){if(this.autoFillInitial){this.autoFillInitial=this.getFocus();if(this.autoFillType===uv.autoFill){this.applyRangeWithData(this.autoFillInitial,this.autoFillLast)}else{this.applyRangeOnly(this.autoFillInitial,this.autoFillLast)}}this.autoFillType=null;this.autoFillInitial=null;this.autoFillLast=null;this.autoFillStart=null};e.prototype.onRangeApply=function(e,t){var r={};for(var n in e){r[n]=Ua(this.sv.dataStore,parseInt(n,10))}var i=this.sv.internalRangeDataApply({data:e,models:r,type:this.sv.dataStore.get("type")});if(!i.defaultPrevented){this.sv.columnService.applyRangeData(e)}this.sv.setRange(t)};e.prototype.applyRangeWithData=function(e,t){if(!e||!t){return}var r=this.sv.selectionStoreService.ranged;var n=ac(e,t);var i=__spreadArray([],this.sv.columnService.columns,true);var o={type:this.sv.dataStore.get("type"),newData:{},newRange:n,oldRange:r,newProps:sv(i,n.x,n.x1+1).map((function(e){return e.prop})),oldProps:sv(i,r.x,r.x1+1).map((function(e){return e.prop}))};o.newData=this.sv.columnService.getRangeData(o);var a=this.sv.internalSelectionChanged(o);if(a.defaultPrevented){this.sv.setTempRange(null);return}this.onRangeApply(o.newData,n)};e.prototype.applyRangeOnly=function(e,t){if(!e||!t){return}var r=ac(e,t);this.sv.setRange(r)};return e}();var cv=function(){function e(e){this.sv=e}e.prototype.onCopy=function(e){var t=this.sv.internalCopy();if(t.defaultPrevented){return false}var r=this.sv.selectionStoreService.focused;var n=this.sv.selectionStoreService.ranged;var i;if(!n){n=ac(r,r)}if(n){var o=__spreadArray([],this.sv.columnService.columns,true);var a=sv(o,n.x,n.x1+1).map((function(e){return e.prop}));i=this.sv.columnService.copyRangeArray(n,a,this.sv.dataStore)}this.clipboard.doCopy(e,i);return true};e.prototype.renderClipboard=function(){var e=this;return i("revogr-clipboard",{onCopyRegion:function(t){return e.onCopy(t.detail)},ref:function(t){return e.clipboard=t},onPasteRegion:function(t){return e.onPaste(t.detail)}})};e.prototype.onPaste=function(e){var t=this.sv.selectionStoreService.focused;var r=this.sv.selectionStoreService.edited!==null;if(!t||r){return}var n=this.sv.columnService.getTransformedDataToApply(t,e),i=n.changed,o=n.range;this.sv.onRangeApply(i,o)};return e}();var fv=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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}";var vv=e("revogr_overlay_selection",function(){function e(e){o(this,e);this.internalCopy=a(this,"internalCopy",7);this.internalPaste=a(this,"internalPaste",7);this.internalCellEdit=a(this,"internalCellEdit",7);this.internalFocusCell=a(this,"internalFocusCell",7);this.setEdit=a(this,"setEdit",3);this.setRange=a(this,"setRange",7);this.setTempRange=a(this,"setTempRange",7);this.focusCell=a(this,"focusCell",3);this.internalSelectionChanged=a(this,"internalSelectionChanged",7);this.internalRangeDataApply=a(this,"internalRangeDataApply",7);this.keyboardService=null;this.autoFillService=null;this.clipboardService=null}e.prototype.onMouseMove=function(e){if(this.selectionStoreService.focused){this.autoFillService.selectionMouseMove(e)}};e.prototype.onMouseOut=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onMouseUp=function(){this.autoFillService.clearAutoFillSelection()};e.prototype.onCellDrag=function(e){var t;(t=this.orderEditor)===null||t===void 0?void 0:t.dragStart(e.detail)};e.prototype.onKeyUp=function(e){var t;(t=this.keyboardService)===null||t===void 0?void 0:t.keyUp(e)};e.prototype.onKeyDown=function(e){var t;if(e.defaultPrevented){return}(t=this.keyboardService)===null||t===void 0?void 0:t.keyDown(e,this.range)};e.prototype.selectionServiceSet=function(e){var t=this;this.selectionStoreService=new tv(e,{changeRange:function(e){var r;return!((r=t.setRange.emit(e))===null||r===void 0?void 0:r.defaultPrevented)},focus:function(e,r){var n;var i={focus:e,end:r};var o=t.internalFocusCell.emit(t.columnService.getSaveData(e.y,e.x)).defaultPrevented;if(o){return false}return!((n=t.focusCell.emit(i))===null||n===void 0?void 0:n.defaultPrevented)}});this.keyboardService=new nv({selectionStoreService:this.selectionStoreService,selectionStore:e,doEdit:function(e,r){return t.doEdit(e,r)},clearCell:function(){return t.clearCell()},getData:function(){return t.getData()},internalPaste:function(){return t.internalPaste.emit()}});this.createAutoFillService();this.createClipboardService()};e.prototype.createAutoFillService=function(){var e=this;this.autoFillService=new lv({selectionStoreService:this.selectionStoreService,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,columnService:this.columnService,dataStore:this.dataStore,setTempRange:function(t){return e.setTempRange.emit(t)},internalSelectionChanged:function(t){return e.internalSelectionChanged.emit(t)},internalRangeDataApply:function(t){return e.internalRangeDataApply.emit(t)},setRange:function(t){return e.setRange.emit(t)},getData:function(){return e.getData()}})};e.prototype.columnServiceSet=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy();this.columnService=new Dc(this.dataStore,this.colData);this.createAutoFillService();this.createClipboardService()};e.prototype.createClipboardService=function(){var e=this;this.clipboardService=new cv({selectionStoreService:this.selectionStoreService,columnService:this.columnService,dataStore:this.dataStore,onRangeApply:function(t,r){return e.autoFillService.onRangeApply(t,r)},internalCopy:function(){return e.internalCopy.emit()}})};e.prototype.connectedCallback=function(){this.columnServiceSet();this.selectionServiceSet(this.selectionStore)};e.prototype.disconnectedCallback=function(){var e;(e=this.columnService)===null||e===void 0?void 0:e.destroy()};e.prototype.renderRange=function(e){var t=_f(e,this.dimensionRow.state,this.dimensionCol.state);return[i("div",{class:pl,style:t})]};e.prototype.renderEditCell=function(){var e=this;var t=this.selectionStore.get("edit");if(this.readonly||!t){return}var r=t.val||this.columnService.getCellData(t.y,t.x);var n=Object.assign(Object.assign({},t),this.columnService.getSaveData(t.y,t.x,r));var o=_f(Object.assign(Object.assign({},t),{x1:t.x,y1:t.y}),this.dimensionRow.state,this.dimensionCol.state);return i("revogr-edit",{onCellEdit:function(t){return e.onCellEdit(t.detail)},onCloseEdit:function(t){return e.closeEdit(t)},editCell:n,column:this.columnService.columns[t.x],editor:this.columnService.getCellEditor(t.y,t.x,this.editors),style:o})};e.prototype.render=function(){var e=this;var t=this.selectionStoreService.ranged;var r=this.selectionStoreService.focused;var n=[];if((t||r)&&this.useClipboard){n.push(this.clipboardService.renderClipboard())}if(t){n.push.apply(n,this.renderRange(t))}var o=this.renderEditCell();if(o){n.push(o)}if(r&&!this.readonly&&!o&&this.range){n.push(this.autoFillService.renderAutofill(t,r))}if(this.canDrag){n.push(i("revogr-order-editor",{ref:function(t){return e.orderEditor=t},dataStore:this.dataStore,dimensionRow:this.dimensionRow,dimensionCol:this.dimensionCol,parent:this.element,onInternalRowDragStart:function(t){return e.onRowDragStart(t)}}))}return i(s,{onDblClick:function(){return e.doEdit()},onMouseDown:function(t){return e.onElementMouseDown(t)}},n,i("slot",{name:"data"}))};e.prototype.onElementMouseDown=function(e){if(rv(e.target)){return}var t=this.getData();if(e.defaultPrevented){return}var r=gf({x:e.x,y:e.y},t);this.selectionStoreService.focus(r,this.range&&e.shiftKey);if(this.range){this.autoFillService.selectionStart(e,t)}};e.prototype.doEdit=function(e,t){if(e===void 0){e=""}if(t===void 0){t=false}var r;if(this.canEdit()){var n=this.selectionStore.get("focus");var i=this.columnService.getSaveData(n.y,n.x);(r=this.setEdit)===null||r===void 0?void 0:r.emit(Object.assign(Object.assign({},i),{isCancel:t,val:e}))}};e.prototype.closeEdit=function(e){this.doEdit(undefined,true);if(e===null||e===void 0?void 0:e.detail){this.focusNext()}};e.prototype.focusNext=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.keyboardService.keyChangeSelection(new KeyboardEvent("keydown",{code:Vc.ARROW_DOWN}),this.range)];case 1:e=t.sent();if(!e){this.closeEdit()}return[2]}}))}))};e.prototype.clearCell=function(){if(this.selectionStoreService.ranged&&!sc(this.selectionStoreService.ranged)){var e=this.columnService.getRangeStaticData(this.selectionStoreService.ranged,"");this.autoFillService.onRangeApply(e,this.selectionStoreService.ranged)}else if(this.canEdit()){var t=this.selectionStoreService.focused;this.onCellEdit({rgRow:t.y,rgCol:t.x,val:""},true)}};e.prototype.onCellEdit=function(e,t){if(t===void 0){t=false}var r=this.columnService.getSaveData(e.rgRow,e.rgCol,e.val);this.internalCellEdit.emit(r);if(!t&&!e.preventFocus){this.focusNext()}};e.prototype.onRowDragStart=function(e){var t=e.detail;t.text=this.columnService.getCellData(t.cell.y,t.cell.x)};e.prototype.canEdit=function(){var e;if(this.readonly){return false}var t=this.selectionStoreService.focused;return t&&!((e=this.columnService)===null||e===void 0?void 0:e.isReadOnly(t.y,t.x))};e.prototype.getData=function(){return{el:this.element,rows:this.dimensionRow.state,cols:this.dimensionCol.state,lastCell:this.lastCell}};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selectionStore:["selectionServiceSet"],dimensionRow:["createAutoFillService"],dimensionCol:["createAutoFillService"],dataStore:["columnServiceSet"],colData:["columnServiceSet"]}},enumerable:false,configurable:true});return e}());vv.style=fv;var dv=function(e){return function(t,r){var n=r.rowIndex;return e+n}};var hv=10;var pv=e("revogr_row_headers",function(){function e(e){o(this,e);this.scrollViewport=a(this,"scrollViewport",3);this.elementToScroll=a(this,"elementToScroll",3)}e.prototype.render=function(){var e;var t=this;var r;var n=[];var o=new Ms;var a=1;for(var u=0,l=this.dataPorts;u<l.length;u++){var c=l[u];var f=c.dataStore.get("items").length;var v=new Ia(c.type);v.updateData(c.dataStore.get("source"));var d=new Ia("colPinStart");var h=Object.assign({cellTemplate:dv(a)},this.rowHeaderColumn);d.updateData([h]);var p=Object.assign(Object.assign({},c),{dataStore:v.store,colData:d.store,viewportCol:o.store,readonly:true,range:false});n.push(i("revogr-data",Object.assign({},p)));a+=f}var g=((r=this.rowHeaderColumn)===null||r===void 0?void 0:r.size)||(a.toString().length+1)*hv;o.setViewport({realCount:1,virtualSize:0,items:[{size:g,start:0,end:g,itemIndex:0}]});var m="".concat(this.uiid,"-rowHeaders");var C=(e={},e[ol]=m,e.contentHeight=this.height,e.contentWidth=0,e.style={minWidth:"".concat(g,"px")},e.ref=function(e){return t.elementToScroll.emit(e)},e.onScrollViewport=function(e){return t.scrollViewport.emit(e.detail)},e);var w=Object.assign(Object.assign({},this.headerProp),{colData:typeof this.rowHeaderColumn==="object"?[this.rowHeaderColumn]:[],viewportCol:o.store,canResize:false,parent:m,slot:"header"});return i(s,{class:"rowHeaders",key:"rowHeaders"},i("revogr-viewport-scroll",Object.assign({},C),i("revogr-header",Object.assign({},w)),n))};return e}());var gv={contentSize:0,clientSize:0,virtualSize:0,maxSize:0};var mv=function(){function e(e){this.cfg=e;this.preventArtificialScroll={rgRow:null,rgCol:null};this.previousScroll={rgRow:0,rgCol:0};this.params={rgRow:Object.assign({},gv),rgCol:Object.assign({},gv)}}e.getVirtualContentSize=function(e,t,r){if(r===void 0){r=0}return e+(r?t-r:0)};e.prototype.setParams=function(t,r){var n=e.getVirtualContentSize(t.contentSize,t.clientSize,t.virtualSize);this.params[r]=Object.assign(Object.assign({},t),{maxSize:n-t.clientSize,virtualContentSize:n})};e.prototype.setScroll=function(e){var t=this;this.cancelScroll(e.dimension);this.preventArtificialScroll[e.dimension]=window.requestAnimationFrame((function(){var r=t.getParams(e.dimension);e.coordinate=Math.ceil(e.coordinate);t.previousScroll[e.dimension]=t.wrapCoordinate(e.coordinate,r);t.preventArtificialScroll[e.dimension]=null;t.cfg.afterScroll(Object.assign(Object.assign({},e),{coordinate:r.virtualSize?t.convert(e.coordinate,r,false):e.coordinate}))}))};e.prototype.scroll=function(e,t,r,n){if(r===void 0){r=false}this.cancelScroll(t);if(!r&&this.previousScroll[t]===e){this.previousScroll[t]=0;return}var i=this.getParams(t);this.cfg.beforeScroll({dimension:t,coordinate:i.virtualSize?this.convert(e,i):e,delta:n})};e.prototype.getParams=function(e){return this.params[e]};e.prototype.wrapCoordinate=function(e,t){if(e<0){return 0}if(e>t.maxSize){return t.maxSize}return e};e.prototype.cancelScroll=function(e){if(typeof this.preventArtificialScroll[e]==="number"){window.cancelAnimationFrame(this.preventArtificialScroll[e]);this.preventArtificialScroll[e]=null;return true}return false};e.prototype.convert=function(e,t,r){if(r===void 0){r=true}var n=t.clientSize;var i=[0,t.virtualContentSize-n];var o=[0,t.contentSize-t.virtualSize];if(r){return ms(e,i,o)}return ms(e,o,i)};return e}();var Cv=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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}";var wv=e("revogr_scroll_virtual",function(){function e(e){o(this,e);this.scrollVirtual=a(this,"scrollVirtual",7);this.scrollSize=0;this.isAutoHide=false;this.autoHideTimeout=0;this.dimension="rgRow"}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){if(this.dimension!==e.dimension){return[2]}(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.element.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.element.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};Object.defineProperty(e.prototype,"size",{get:function(){if(this.dimension==="rgRow"){return this.element.clientHeight}return this.element.clientWidth},set:function(e){if(this.dimension==="rgRow"){this.element.style.minWidth="".concat(e,"px");return}this.element.style.minHeight="".concat(e,"px")},enumerable:false,configurable:true});e.prototype.connectedCallback=function(){var e=this;this.scrollService=new mv({beforeScroll:function(t){return e.scrollVirtual.emit(t)},afterScroll:function(t){var r=t.dimension==="rgRow"?"scrollTop":"scrollLeft";e.element[r]=t.coordinate}})};e.prototype.disconnectedCallback=function(){clearTimeout(this.autoHideTimeout)};e.prototype.componentWillLoad=function(){this.scrollSize=gs(document);this.isAutoHide=!this.scrollSize};e.prototype.componentDidRender=function(){var e=this.dimension==="rgRow"?"scrollHeight":"scrollWidth";if(this.element[e]>this.size){this.size=this.scrollSize}else{this.size=0}this.scrollService.setParams({contentSize:this.dimensionStore.get("realSize"),clientSize:this.size,virtualSize:this.viewportStore.get("virtualSize")},this.dimension)};e.prototype.onScroll=function(e){var t;var r="scrollLeft";if(this.dimension==="rgRow"){r="scrollTop"}if(this.isAutoHide){this.size=20;this.autoHideTimeout=this.autoHide(this.autoHideTimeout)}var n=e.target;(t=this.scrollService)===null||t===void 0?void 0:t.scroll(n[r]||0,this.dimension)};e.prototype.autoHide=function(e){var t=this;clearTimeout(e);return setTimeout((function(){t.size=0}),6e3)};e.prototype.render=function(){var e;var t=this;var r=this.dimension==="rgRow"?"height":"width";return i(s,Object.assign({},{"auto-hide":this.isAutoHide},{onScroll:function(e){return t.onScroll(e)}}),i("div",{style:(e={},e[r]="".concat(this.extContentSize(this.viewportStore.get("virtualSize"),this.dimensionStore.get("realSize")),"px"),e)}))};e.prototype.extContentSize=function(e,t){return mv.getVirtualContentSize(t,this.size,e)};Object.defineProperty(e.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());wv.style=Cv;var yv=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:2px solid #cedefa;line-height:32px;background:none;color:#4876ca;box-shadow:none}.temp-bg-range{display:block;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}";var bv=e("revogr_temp_range",function(){function e(e){var t=this;o(this,e);this.onChange=mc.throttle((function(e){return t.doChange(e)}),300)}e.prototype.doChange=function(e){e===null||e===void 0?void 0:e.scrollIntoView({block:"nearest",inline:"nearest"})};e.prototype.componentDidRender=function(){if(this.el){this.onChange(this.el)}};e.prototype.render=function(){var e;var t=this;var r=this.selectionStore.get("tempRange");var n=this.selectionStore.get("tempRangeType");if(!r){return}var o="bottom";var a="right";var u=this.getRange();if(!u){return}if(r.y<u.y){o="top"}if(r.x<u.x){a="left"}var l="".concat(a," ").concat(o);var c=_f(r,this.dimensionRow.state,this.dimensionCol.state);return i(s,{class:(e={},e[gl]=true,e[n||""]=true,e),style:c},i("div",{class:l,ref:function(e){return t.el=e}}))};e.prototype.getRange=function(){var e=this.selectionStore.get("range");if(e){return e}var t=this.selectionStore.get("focus");if(!t){return null}return Object.assign(Object.assign({},t),{x1:t.x,y1:t.y})};return e}());bv.style=yv;var Lv="Expected a function";function xv(e,t,r){var n=true,i=true;if(typeof e!="function"){throw new TypeError(Lv)}if(h(r)){n="leading"in r?!!r.leading:n;i="trailing"in r?!!r.trailing:i}return b(e,t,{leading:n,maxWait:t,trailing:i})}var _v=xv;function Sv(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(!!("ResizeObserver"in window))return[3,2];return[4,t.import("./resize-observer-8af0bc0e.system.js")];case 1:e=r.sent();window.ResizeObserver=e.ResizeObserver;r.label=2;case 2:return[2]}}))}))}var Ev=function(){function e(e,t){var r=this;this.events=t;this.resizeObserver=null;this.resize=_v((function(e,t){var n;return(n=r.events)===null||n===void 0?void 0:n.resize(e,t)}),10);this.init(e)}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:return[4,Sv()];case 1:r.sent();this.resizeObserver=new ResizeObserver(this.resize);(t=this.resizeObserver)===null||t===void 0?void 0:t.observe(e);return[2]}}))}))};e.prototype.destroy=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.resizeObserver=null};return e}();var kv=".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.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.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%}";var zv=e("revogr_viewport_scroll",function(){function e(e){o(this,e);this.scrollViewport=a(this,"scrollViewport",3);this.resizeViewport=a(this,"resizeViewport",7);this.scrollchange=a(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}}e.prototype.setScroll=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){this.latestScrollUpdate(e.dimension);(t=this.scrollService)===null||t===void 0?void 0:t.setScroll(e);return[2]}))}))};e.prototype.changeScroll=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.delta){switch(e.dimension){case"rgCol":e.coordinate=this.horizontalScroll.scrollLeft+e.delta;break;case"rgRow":e.coordinate=this.verticalScroll.scrollTop+e.delta;break}this.setScroll(e)}return[2,e]}))}))};e.prototype.connectedCallback=function(){var e=this;if("ontouchstart"in document.documentElement){this.scrollThrottling=0}else{this.verticalMouseWheel=this.onVerticalMouseWheel.bind(this,"rgRow","deltaY");this.horizontalMouseWheel=this.onHorizontalMouseWheel.bind(this,"rgCol","deltaX")}this.scrollService=new mv({beforeScroll:function(t){return e.scrollViewport.emit(t)},afterScroll:function(t){switch(t.dimension){case"rgCol":e.horizontalScroll.scrollLeft=t.coordinate;break;case"rgRow":e.verticalScroll.scrollTop=t.coordinate;break}}})};e.prototype.componentDidLoad=function(){var e=this;this.horisontalResize=new Ev(this.horizontalScroll,{resize:function(t){var r,n;var i=((r=t[0])===null||r===void 0?void 0:r.contentRect.height)||0;if(i){i-=e.header.clientHeight+e.footer.clientHeight}var o={rgRow:{size:i,contentSize:e.contentHeight,scroll:e.verticalScroll.scrollTop},rgCol:{size:((n=t[0])===null||n===void 0?void 0:n.contentRect.width)||0,contentSize:e.contentWidth,scroll:e.horizontalScroll.scrollLeft}};Qo(o,(function(t,r){var n;e.resizeViewport.emit({dimension:r,size:t.size});(n=e.scrollService)===null||n===void 0?void 0:n.scroll(t.scroll,r,true);e.setScrollVisibility(r,t.size,t.contentSize)}))}})};e.prototype.setScrollVisibility=function(e,t,r){var n=t<r;var i;var o;switch(e){case"rgCol":i=this.horizontalScroll;o=this.horizontalMouseWheel;break;case"rgRow":i=this.verticalScroll;o=this.verticalMouseWheel;break}if(n){i.classList.add("scroll-".concat(e));i.addEventListener("mousewheel",o)}else{i.classList.remove("scroll-".concat(e));i.removeEventListener("mousewheel",o)}this.scrollchange.emit({type:e,hasScroll:n})};e.prototype.disconnectedCallback=function(){this.verticalScroll.removeEventListener("mousewheel",this.verticalMouseWheel);this.horizontalScroll.removeEventListener("mousewheel",this.horizontalMouseWheel);this.horisontalResize.destroy()};e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.contentHeight<this.oldValY&&this.verticalScroll){this.verticalScroll.scrollTop+=this.contentHeight-this.oldValY}this.oldValY=this.contentHeight;if(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);return[2]}))}))};e.prototype.render=function(){var e=this;return i(s,{onScroll:function(t){return e.onScroll("rgCol",t)}},i("div",{class:"inner-content-table",style:{width:"".concat(this.contentWidth,"px")}},i("div",{class:"header-wrapper",ref:function(t){return e.header=t}},i("slot",{name:vc})),i("div",{class:"vertical-inner",ref:function(t){return e.verticalScroll=t},onScroll:function(t){return e.onScroll("rgRow",t)}},i("div",{class:"content-wrapper",style:{height:"".concat(this.contentHeight,"px")}},i("slot",{name:hc}))),i("div",{class:"footer-wrapper",ref:function(t){return e.footer=t}},i("slot",{name:dc}))))};e.prototype.onScroll=function(e,t){var r;var n=t.target;var i=0;switch(e){case"rgCol":i=n===null||n===void 0?void 0:n.scrollLeft;break;case"rgRow":i=n===null||n===void 0?void 0:n.scrollTop;break}var o=(new Date).getTime()-this.mouseWheelScroll[e];if(o>this.scrollThrottling){(r=this.scrollService)===null||r===void 0?void 0:r.scroll(i,e)}};e.prototype.latestScrollUpdate=function(e){this.mouseWheelScroll[e]=(new Date).getTime()};e.prototype.onVerticalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.verticalScroll.scrollTop+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};e.prototype.onHorizontalMouseWheel=function(e,t,r){var n;r.preventDefault();var i=this.horizontalScroll.scrollLeft+r[t];(n=this.scrollService)===null||n===void 0?void 0:n.scroll(i,e,undefined,r[t]);this.latestScrollUpdate(e)};Object.defineProperty(e.prototype,"horizontalScroll",{get:function(){return u(this)},enumerable:false,configurable:true});return e}());zv.style=kv}}}));
|