handsontable 13.0.0-next-03941c3-20230621 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,10 +25,10 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 13.0.0-next-03941c3-20230621
29
- * Release date: 22/06/2023 (built at 21/06/2023 11:42:43)
28
+ * Version: 13.0.0
29
+ * Release date: 22/06/2023 (built at 22/06/2023 12:52:47)
30
30
  */
31
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("dompurify"),require("pikaday"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["moment","dompurify","pikaday","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("moment"),require("dompurify"),require("pikaday"),require("numbro")):e.Handsontable=t(e.moment,e.DOMPurify,e.Pikaday,e.numbro)}("undefined"!=typeof self?self:this,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=359)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(193),o=n(83),i=n(366);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(283);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(76),o=n(132),i=n(138),a=n(89),s=n(73).f,l=n(191),u=n(192),c=n(94),d=n(48),h=a.set,f=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){h(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(194).charAt,o=n(49),i=n(89),a=n(191),s=n(192),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},function(e,t,n){var r=n(38),o=n(260),i=n(261),a=n(4),s=n(104),l=n(41),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)h(r[f]&&r[f].prototype,f);h(i,"DOMTokenList")},function(e,t,n){n(367)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(21),o=n(88),i=n(106),a=n(420),s=n(284),l=n(54),u=n(55),c=n(100),d=n(26),h=o("Reflect","construct"),f=Object.prototype,v=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),p=!d((function(){h((function(){}))})),y=g||p;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(p&&!g)return h(e,t,n);if(e==n){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])}var r=[null];return i(v,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:f),y=i(e,d,t);return u(y)?y:d}})},function(e,t,n){var r=n(291);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14).default,o=n(31);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.clone=function(e){var t={};return u(e,(function(e,n){t[n]=e})),t},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){var n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=l,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.objectEach=u,t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))};var o=r(n(25)),i=r(n(14));n(121),n(28),n(35),n(1),n(80),n(37),n(20);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(40),n(5),n(19),n(23),n(33),n(30),n(1),n(28),n(35),n(4),n(45),n(6),n(43),n(403)},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()},t.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.empty=p,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];m.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:C(e,t)},t.fastInnerText=C,t.getCaretPosition=function(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getComputedStyle=R,t.getCssTransform=function(e){var t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];if(e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"]))return["-webkit-transform",t];return-1},t.getFrameElement=d,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getParentWindow=function(e){return d(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return w(t);return e.scrollTop},t.getScrollableElement=function(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===y&&(y=S(e));return y},t.getSelectionEndPosition=function(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0},t.getSelectionText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.getStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getWindowScrollLeft=E,t.getWindowScrollTop=w,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=b,t.isOutsideInput=T,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r])},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.selectElementIfAllowed=function(e){T(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.setOverlayPosition=function(e,t,n){(0,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(29));n(281),n(28),n(35),n(33),n(23),n(30),n(1),n(122),n(43),n(80),n(74),n(123),n(67),n(19),n(20);var i,a,s,l=n(90),u=n(78),c=n(68);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var v=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};i=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(v(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(v(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}else{var g=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&g(t).test(e.className)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!g(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o[n];)r=r.replace(g(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function p(e){for(var t;t=e.lastChild;)e.removeChild(t)}var y,m=/(<(.*)>|&(.*);)/;function C(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(p(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function b(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function T(e){return b(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=m},function(e,t,n){var r=n(21),o=n(26),i=n(76),a=n(97).f,s=n(48);r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=t.FILTERS_LABELS_DISJUNCTION=t.FILTERS_LABELS_CONJUNCTION=t.FILTERS_DIVS_FILTER_BY_VALUE=t.FILTERS_DIVS_FILTER_BY_CONDITION=t.FILTERS_CONDITIONS_YESTERDAY=t.FILTERS_CONDITIONS_TOMORROW=t.FILTERS_CONDITIONS_TODAY=t.FILTERS_CONDITIONS_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_LESS_THAN=t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_GREATER_THAN=t.FILTERS_CONDITIONS_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="ContextMenu:items",o="".concat(r,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=o;var i="".concat(r,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=i;var a="".concat(r,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(r,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(r,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var d="".concat(r,".undo");t.CONTEXTMENU_ITEMS_UNDO=d;var h="".concat(r,".redo");t.CONTEXTMENU_ITEMS_REDO=h;var f="".concat(r,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var v="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=v;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var p="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=p;var y="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=y;var m="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=m;var C="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=C;var w="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=w;var E="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=E;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var S="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=S;var b="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=b;var T="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=T;var O="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=O;var _="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=_;var I="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=I;var k="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=k;var M="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=M;var N="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=N;var P="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=P;var A="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=A;var x="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=x;var D="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=D;var L="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=L;var H="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=H;var B="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=B;var F="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=F;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var U="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=U;var W="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=W;var j="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=j;var Y="".concat(r,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=Y;var G="".concat(r,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=G;var z="".concat(r,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=z;var K="".concat(r,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=K;t.FILTERS_NAMESPACE="Filters:";var X="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=X;var q="".concat(X,".none");t.FILTERS_CONDITIONS_NONE=q;var Q="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=Q;var $="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=$;var J="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=J;var Z="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=Z;var ee="".concat(X,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=ee;var te="".concat(X,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=te;var ne="".concat(X,".contains");t.FILTERS_CONDITIONS_CONTAINS=ne;var re="".concat(X,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=re;var oe="".concat(X,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=oe;var ie="".concat(X,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ie;var ae="".concat(X,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ae;var se="".concat(X,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=se;var le="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=le;var ue="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ue;var ce="".concat(X,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ce;var de="".concat(X,".after");t.FILTERS_CONDITIONS_AFTER=de;var he="".concat(X,".before");t.FILTERS_CONDITIONS_BEFORE=he;var fe="".concat(X,".today");t.FILTERS_CONDITIONS_TODAY=fe;var ve="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=ve;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var pe="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=pe;var ye="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ye;var me="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=me;var Ce="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ce;var we="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=we;var Ee="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ee;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var Se="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=Se;var be="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=be;var Te="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Te;var Oe="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=Oe;var _e="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=_e},function(e,t,n){var r=n(467);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(21),o=n(26),i=n(119),a=n(55),s=n(72),l=n(79),u=n(270),c=n(118),d=n(203),h=n(145),f=n(41),v=n(133),g=f("isConcatSpreadable"),p=v>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!p||!h("concat")},{concat:function(e){var t,n,r,o,i,a=s(this),h=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),u(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else u(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(38),o=n(260),i=n(261),a=n(391),s=n(104),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},function(e,t,n){var r=n(38),o=n(97).f,i=n(104),a=n(83),s=n(188),l=n(250),u=n(166);e.exports=function(e,t){var n,c,d,h,f,v=e.target,g=e.global,p=e.stat;if(n=g?r:p?r[v]||s(v,{}):(r[v]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(g?c:v+(p?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(263),o=n(377),i=n(204),a=n(265);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(21),o=n(143),i=n(189).indexOf,a=n(120),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!g(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="13.0.0-next-03941c3-20230621",a="invalid",s="invalid",l=function(e){var t=[][p],n=t;if(e[p]!==w("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=w(o.shift());i;i=w(o.shift()||"A"))--i<""[p]?n|=(m("".concat(m(y(r)+(y(C(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=C(e,i,i?1===o[p]?9:8:6);return n===t}(e=E(e||""));if(r||o||l)if(l){var u=(0,h.default)("22/06/2023","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),d=y(C(E(f=e),y("12"),w("F")))/(y(C(E(f),w("B"),~~![][p]))||9);n=(0,h.default)(864e5*(d+1),"x").format("MMMM DD, YYYY"),c>d?(a="expired",s="expired"):(a="valid",s="valid")}else o?(a="non_commercial",s="valid"):(a="invalid",s="invalid");else a="missing",s="missing";var f;"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(a="valid",s="valid");if(!R&&"valid"!==a){S[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](S[a]({keyValidityDate:n,hotVersion:i})),R=!0}if("valid"!==s&&t.parentNode){if(b[s]({keyValidityDate:n,hotVersion:i})){var v=document.createElement("div");v.className="hot-display-license-info",v.innerHTML=b[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(v,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=v,t.stringify=function(e){var t;switch((0,d.default)(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var o=r(n(58));n(1),n(80),n(406),n(43),n(67),n(285);var i,a,s,l,u,c,d=r(n(14)),h=r(n(84)),f=n(59);function v(e){return void 0===e}function g(e){return null===e||""===e||v(e)}var p="length",y=function(e){return parseInt(e,16)},m=function(e){return parseInt(e,10)},C=function(e,t,n){return e.substr(t,n)},w=function(e){return e.codePointAt(0)-65},E=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,S={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."])))},non_commercial:function(){return""}},b={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.default)(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(283);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(131),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},function(e,t,n){"use strict";var r=n(21),o=n(189).includes,i=n(26),a=n(132);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){var r=n(378),o=n(266),i=n(204),a=n(379);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(21),o=n(105).filter;r({target:"Array",proto:!0,forced:!n(145)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.isNumeric=a,t.isNumericLike=function(e){return a(e,[","])},t.rangeEach=function(e,t,n){var r=-1;"function"==typeof t?(n=t,t=e):r=e-1;for(;++r<=t&&!1!==n(r););},t.rangeEachReverse=function(e,t,n){var r=e+1;"function"==typeof t&&(n=t,t=0);for(;--r>=t&&!1!==n(r););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},n(43),n(74),n(50),n(40),n(5),n(4),n(1),n(45),n(6),n(19),n(122),n(80),n(123),n(67);var o=r(n(29)),i=r(n(14));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,i.default)(e);if("number"===n)return!isNaN(e)&&isFinite(e);if("string"===n){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);var r=Array.from(new Set(["."].concat((0,o.default)(t)))).map((function(e){return"\\".concat(e)})).join("|");return new RegExp("^[+-]?\\s*(((".concat(r,")?\\d+((").concat(r,")\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$"),"i").test(e.trim())}return"object"===n&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}},function(e,t,n){"use strict";var r=n(21),o=n(119),i=n(171),a=n(55),s=n(136),l=n(79),u=n(76),c=n(118),d=n(41),h=n(145),f=n(146),v=h("slice"),g=d("species"),p=Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,d,h=u(this),v=l(h),m=s(e,v),C=s(void 0===t?v:t,v);if(o(h)&&(n=h.constructor,(i(n)&&(n===p||o(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===p||void 0===n))return f(h,m,C);for(r=new(void 0===n?p:n)(y(C-m,0)),d=0;m<C;m++,d++)m in h&&c(r,d,h[m]);return r.length=d,r}})},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_KEY=t.BasePlugin=void 0;var r=n(564);t.PLUGIN_KEY=r.PLUGIN_KEY,t.BasePlugin=r.BasePlugin},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(208),a=n(71),s=n(49),l=n(210),u=o("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(399)},function(e,t,n){var r=n(21),o=n(72),i=n(135);r({target:"Object",stat:!0,forced:n(26)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},function(e,t,n){"use strict";t.__esModule=!0,t.conditions=void 0,t.getCondition=function(e,t){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=r[e],o=n.condition,i=n.descriptor,a=t;i.inputValuesDecorator&&(a=i.inputValuesDecorator(a));return function(e){return o.apply(e.meta.instance,[].concat([e],[a]))}},t.getConditionDescriptor=function(e){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return r[e].descriptor},t.registerCondition=function(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}},n(19);var r={};t.conditions=r},function(e,t,n){var r=n(21),o=n(389);r({target:"Array",stat:!0,forced:!n(258)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){var r=n(38),o=n(114),i=n(47),a=n(160),s=n(115),l=n(239),u=r.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(240),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(21),o=n(172);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,t.getListenersCounter=function(){return l},n(46);var o=r(n(2)),i=r(n(3)),a=n(90),s=n(62),l=0;function u(e){var t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,s.stopImmediatePropagation)(this)},e}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return(0,i.default)(e,[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){n.call(this,u(e))}return"boolean"==typeof o||(0,a.isPassiveEventSupported)()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i,options:o,eventManager:this}),e.addEventListener(t,i,o),l+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;i;)if(i-=1,(r=this.context.eventListeners[i]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),l-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),l-=1)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents")).initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}]),e}();t.default=c},function(e,t,n){n(380)},function(e,t,n){"use strict";var r=n(21),o=n(72),i=n(136),a=n(96),s=n(79),l=n(385),u=n(270),c=n(203),d=n(118),h=n(269),f=n(145)("splice"),v=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,f,p,y,m,C=o(this),w=s(C),E=i(e,w),R=arguments.length;for(0===R?n=r=0:1===R?(n=0,r=w-E):(n=R-2,r=g(v(a(t),0),w-E)),u(w+n-r),f=c(C,r),p=0;p<r;p++)(y=E+p)in C&&d(f,p,C[y]);if(f.length=r,n<r){for(p=E;p<w-r;p++)m=p+n,(y=p+r)in C?C[m]=C[y]:h(C,m);for(p=w;p>w-r+n;p--)h(C,p-1)}else if(n>r)for(p=w-r;p>E;p--)m=p+n-1,(y=p+r-1)in C?C[m]=C[y]:h(C,m);for(p=0;p<n;p++)C[p+E]=arguments[p+2];return l(C,w-r+n),f}})},function(e,t,n){var r=n(27),o=n(72),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){var r=n(26);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(169),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(21),o=n(105).map;r({target:"Array",proto:!0,forced:!n(145)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";t.__esModule=!0,t.curry=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])},t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;function o(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((function(){t=e.apply(o,a)}),n),t}return o},t.fastCall=function(e,t,n,r,i,a,s,l){if((0,o.isDefined)(l))return e.call(t,n,r,i,a,s,l);if((0,o.isDefined)(s))return e.call(t,n,r,i,a,s);if((0,o.isDefined)(a))return e.call(t,n,r,i,a);if((0,o.isDefined)(i))return e.call(t,n,r,i);if((0,o.isDefined)(r))return e.call(t,n,r);if((0,o.isDefined)(n))return e.call(t,n);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.arrayReduce)(i,(function(e,t){return t(e)}),o.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(e,t),o=n;function a(){o=n}function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o?(o-=1,e.apply(this,n)):r.apply(this,n)}return s.clearHits=a,s},n(57),n(33),n(19),n(147);var r=n(13),o=n(24);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;function i(){for(var i=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=Date.now(),c=!1;r.lastCallThrottled=!0,n||(n=u,c=!0);var d=t-(u-n);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout((function(){r.lastCallThrottled=!1,e.apply(i,s),n=0,o=void 0}),d)),r}return i}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6),n(23),n(46);var o,i=r(n(2)),a=r(n(3)),s=r(n(58)),l=n(13),u=n(12),c=n(68),d=n(69),h=n(59),f=n(51),v=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeSetCellMeta","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyRowHeader","modifyRowHeight","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],g=(0,h.toSingleLine)(o||(o=(0,s.default)(['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion]. \n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to \n learn about the migration path.'],['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\\x20\n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\\x20\n learn about the migration path.']))),p=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),y=new Map([]),m=function(){function e(){(0,i.default)(this,e),this.globalBucket=this.createEmptyBucket()}return(0,a.default)(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,l.arrayEach)(v,(function(t){return e[t]=[]})),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,l.arrayEach)(t,(function(t){return n.add(e,t,r)}));else{p.has(e)&&(0,d.warn)((0,c.substitute)(g,{hookName:e,removedInVersion:p.get(e)})),y.has(e)&&(0,d.warn)(y.get(e));var o=this.getBucket(r);if(void 0===o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&(0,l.arrayEach)(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,l.arrayEach)(t,(function(t){return n.once(e,t,r)})):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,o,i,a,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c<u;)if(l[c]&&!l[c].skip){var d=(0,f.fastCall)(l[c],e,n,r,o,i,a,s);void 0!==d&&(n=d),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var h=this.getBucket(e)[t],v=h?h.length:0,g=0;if(v)for(;g<v;)if(h[g]&&!h[g].skip){var p=(0,f.fastCall)(h[g],e,n,r,o,i,a,s);void 0!==p&&(n=p),h[g]&&h[g].runOnce&&this.remove(t,h[g],e),g+=1}else g+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,u.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||v.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&v.splice(v.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return y.has(e)||p.has(e)}},{key:"isRegistered",value:function(e){return v.indexOf(e)>=0}},{key:"getRegistered",value:function(){return v}}],[{key:"getSingleton",value:function(){return C}}]),e}(),C=new m;var w=m;t.default=w},function(e,t,n){n(457),n(459),n(460),n(461),n(463)},function(e,t,n){var r=n(55),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,t,n){var r=n(42),o=n(240),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(131),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){n(392),n(394)},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=(0,r.arrayReduce)(e,(function(e,t,r){return e+t.replace(/\r?\n\s*/g,"")+(n[r]?n[r]:"")}),"");return i.trim()},n(43),n(67),n(123);var r=n(13)},function(e,t,n){n(21)({target:"Number",stat:!0},{isInteger:n(386)})},function(e,t,n){"use strict";var r=n(21),o=n(94),i=n(48),a=n(38),s=n(271),l=n(27),u=n(166),c=n(47),d=n(202),h=n(95),f=n(134),v=n(244),g=n(26),p=n(117).f,y=n(97).f,m=n(73).f,C=n(272),w=n(273).trim,E=a.Number,R=s.Number,S=E.prototype,b=a.TypeError,T=l("".slice),O=l("".charCodeAt),_=function(e){var t=v(e,"number");return"bigint"==typeof t?t:I(t)},I=function(e){var t,n,r,o,i,a,s,l,u=v(e,"number");if(f(u))throw b("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=O(u,0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=T(u,2)).length,s=0;s<a;s++)if((l=O(i,s))<48||l>o)return NaN;return parseInt(i,r)}return+u},k=u("Number",!E(" 0o1")||!E("0b1")||E("+0x1")),M=function(e){return h(S,e)&&g((function(){C(e)}))},N=function(e){var t=arguments.length<1?0:E(_(e));return M(this)?d(Object(t),this,N):t};N.prototype=S,k&&!o&&(S.constructor=N),r({global:!0,constructor:!0,wrap:!0,forced:k},{Number:N});var P=function(e,t){for(var n,r=i?p(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&m(e,n,y(t,n))};o&&R&&P(s.Number,R),(k||o)&&P(s.Number,E)},function(e,t,n){"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}},function(e,t,n){var r=n(416),o=n(287);e.exports=function(e,t){var n=o(e,t,"get");return r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(417),o=n(287);e.exports=function(e,t,n){var i=o(e,t,"set");return r(e,i,n),n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(20),n(37),t.__esModule=!0;var r={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0};t.getRegisteredMapsCounter=t.getIncreasedIndexes=t.getDecreasedIndexes=t.alterUtilsFactory=t.IndexMapper=void 0;var o=n(465);t.IndexMapper=o.IndexMapper;var i=n(221);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var a=n(306);t.getIncreasedIndexes=a.getIncreasedIndexes,t.getDecreasedIndexes=a.getDecreasedIndexes,t.alterUtilsFactory=a.alterUtilsFactory;var s=n(304);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){var r=n(21),o=n(48),i=n(251),a=n(76),s=n(97),l=n(118);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&l(c,t,n);return c}})},function(e,t,n){"use strict";var r=n(106),o=n(56),i=n(27),a=n(173),s=n(26),l=n(54),u=n(42),c=n(82),d=n(96),h=n(103),f=n(49),v=n(71),g=n(206),p=n(101),y=n(388),m=n(174),C=n(41)("replace"),w=Math.max,E=Math.min,R=i([].concat),S=i([].push),b=i("".indexOf),T=i("".slice),O="$0"==="a".replace(/./,"$0"),_=!!/./[C]&&""===/./[C]("a","$0");a("replace",(function(e,t,n){var i=_?"$":"$0";return[function(e,n){var r=v(this),i=c(e)?void 0:p(e,C);return i?o(i,e,r,n):o(t,f(r),e,n)},function(e,o){var a=l(this),s=f(e);if("string"==typeof o&&-1===b(o,i)&&-1===b(o,"$<")){var c=n(t,a,s,o);if(c.done)return c.value}var v=u(o);v||(o=f(o));var p=a.global;if(p){var C=a.unicode;a.lastIndex=0}for(var O=[];;){var _=m(a,s);if(null===_)break;if(S(O,_),!p)break;""===f(_[0])&&(a.lastIndex=g(s,h(a.lastIndex),C))}for(var I,k="",M=0,N=0;N<O.length;N++){for(var P=f((_=O[N])[0]),A=w(E(d(_.index),s.length),0),x=[],D=1;D<_.length;D++)S(x,void 0===(I=_[D])?I:String(I));var L=_.groups;if(v){var H=R([P],x,A,s);void 0!==L&&S(H,L);var B=f(r(o,void 0,H))}else B=y(P,s,A,x,L,o);A>=M&&(k+=T(s,M,A)+B,M=A+P.length)}return k+T(s,M)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||_)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.equalsIgnoreCase=function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.length;for(;o;){o-=1;var a=(0,i.stringify)(n[o]).toLowerCase();-1===e.indexOf(a)&&e.push(a)}return 1===e.length},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=a,t.stripTags=function(e){return a("".concat(e),{ALLOWED_TAGS:[]})},t.substitute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,(function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]}))},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},n(23),n(1),n(80),n(43),n(67);var o=r(n(405)),i=n(24);function a(e,t){return o.default.sanitize(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.error=function(){var e;(0,r.isDefined)(console)&&(e=console).error.apply(e,arguments)},t.info=function(){var e;(0,r.isDefined)(console)&&(e=console).info.apply(e,arguments)},t.log=function(){var e;(0,r.isDefined)(console)&&(e=console).log.apply(e,arguments)},t.warn=function(){var e;(0,r.isDefined)(console)&&(e=console).warn.apply(e,arguments)};var r=n(24)},function(e,t,n){var r=n(48),o=n(140).EXISTS,i=n(27),a=n(144),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},function(e,t,n){var r=n(82),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},function(e,t,n){var r=n(71),o=Object;e.exports=function(e){return o(r(e))}},function(e,t,n){var r=n(48),o=n(243),i=n(242),a=n(54),s=n(162),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(130),a=n(76),s=n(120),l=o([].join);r({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(12),o=n(51),i={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e,t,n,r,i,a,s){if(this._localHooks[e])for(var l=this._localHooks[e].length,u=0;u<l;u++)(0,o.fastCall)(this._localHooks[e][u],this,t,n,r,i,a,s)},clearLocalHooks:function(){return this._localHooks={},this}};(0,r.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){var r=n(130),o=n(71);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(102),a=n(72),s=n(79),l=n(269),u=n(49),c=n(26),d=n(381),h=n(120),f=n(382),v=n(383),g=n(133),p=n(384),y=[],m=o(y.sort),C=o(y.push),w=c((function(){y.sort(void 0)})),E=c((function(){y.sort(null)})),R=h("sort"),S=!c((function(){if(g)return g<70;if(!(f&&f>3)){if(v)return!0;if(p)return p<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;r<y.length;r++)t=y[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:w||!E||!R||!S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(S)return void 0===e?m(t):m(t,e);var n,r,o=[],c=s(t);for(r=0;r<c;r++)r in t&&C(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)l(t,r++);return t}})},function(e,t,n){"use strict";t.__esModule=!0,t.isChrome=function(){return i.chrome.value},t.isChromeWebKit=function(){return i.chromeWebKit.value},t.isEdge=function(){return i.edge.value},t.isEdgeWebKit=function(){return i.edgeWebKit.value},t.isFirefox=function(){return i.firefox.value},t.isFirefoxWebKit=function(){return i.firefoxWebKit.value},t.isIE=function(){return i.ie.value},t.isIE9=function(){return i.ie9.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator,t=e.maxTouchPoints;return t>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMSBrowser=function(){return i.ie.value||i.edge.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return i.mobile.value},t.isSafari=function(){return i.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=s,t.setPlatformMeta=l,n(43);var r=n(12),o=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},i={chrome:o((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),chromeWebKit:o((function(e){return/CriOS/.test(e)})),edge:o((function(e){return/Edge/.test(e)})),edgeWebKit:o((function(e){return/EdgiOS/.test(e)})),firefox:o((function(e){return/Firefox/.test(e)})),firefoxWebKit:o((function(e){return/FxiOS/.test(e)})),ie:o((function(e){return/Trident/.test(e)})),ie9:o((function(){return!!document.documentMode})),mobile:o((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:o((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))},a={mac:o((function(e){return/^Mac/.test(e)})),win:o((function(e){return/^Win/.test(e)})),linux:o((function(e){return/^Linux/.test(e)})),ios:o((function(e){return/iPhone|iPad|iPod/i.test(e)}))};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,o=e.vendor,a=void 0===o?navigator.vendor:o;(0,r.objectEach)(i,(function(e){(0,e.test)(n,a)}))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.platform,n=void 0===t?navigator.platform:t;(0,r.objectEach)(a,(function(e){(0,e.test)(n)}))}s(),l()},function(e,t,n){var r=n(103);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(140).PROPER,o=n(83),i=n(54),a=n(49),s=n(26),l=n(282),u=RegExp.prototype.toString,c=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=r&&"toString"!=u.name;(c||d)&&o(RegExp.prototype,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},function(e,t,n){"use strict";t.__esModule=!0,t.align=function(e,t,n,o,i){(0,r.arrayEach)(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&function(e,t,n,r,o,i){var l=o(e,t),u=r;l.className&&(u="vertical"===n?a(l.className,r):s(l.className,r));i(e,t,"className",u)}(e,r,t,n,o,i)}))}))},t.checkSelectionConsistency=function(e,t){var n=!1;Array.isArray(e)&&(0,r.arrayEach)(e,(function(e){return e.forAll((function(e,r){if(e>=0&&r>=0&&t(e,r))return n=!0,!1})),n}));return n},t.filterSeparators=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KEY,n=e.slice(0);return n=c(n=u(n=l(n,t),t))},t.getAlignmentClasses=function(e,t){var n={};return(0,r.arrayEach)(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&(n[e]||(n[e]=[]),n[e][r]=t(e,r))}))})),n},t.getValidSelection=function(e){var t=e.getSelected();if(!t)return null;if(t[0]<0)return null;return t},t.hasSubMenu=function(e){return(0,o.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,o.hasClass)(e,"htDisabled")},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isSelectionDisabled=function(e){return(0,o.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,o.hasClass)(e,"htSeparator")},t.markLabelAsSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeSelection=function(e){return(0,r.arrayMap)(e,(function(e){return{start:e.getTopStartCorner(),end:e.getBottomEndCorner()}}))},t.prepareHorizontalAlignClass=s,t.prepareVerticalAlignClass=a,n(23),n(43),n(67),n(19),n(33),n(70),n(147);var r=n(13),o=n(15),i=n(231);function a(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function s(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function l(e,t){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}function u(e,t){var n=e.slice(0);return n.reverse(),(n=l(n,t)).reverse(),n}function c(e){var t=[];return(0,r.arrayEach)(e,(function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(42),o=n(73),i=n(248),a=n(188);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&i(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(t,n){t.exports=e},function(e,t,n){var r=n(27),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.collection=void 0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";i.has(e)||i.set(e,new Map);var t=i.get(e);function n(e,n){t.set(e,n)}function r(e){return t.get(e)}function a(e){return t.has(e)}function s(){return(0,o.default)(t.keys())}function l(){return(0,o.default)(t.values())}return{register:n,getItem:r,hasItem:a,getNames:s,getValues:l}};var o=r(n(29));n(4),n(36),n(1),n(5),n(6);var i=new Map;t.collection=i},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_TYPE=t.FILL_TYPE=t.CUSTOM_SELECTION_TYPE=t.CELL_TYPE=t.AREA_TYPE=t.ACTIVE_HEADER_TYPE=void 0;t.ACTIVE_HEADER_TYPE="active-header";t.AREA_TYPE="area";t.CELL_TYPE="cell";t.FILL_TYPE="fill";t.HEADER_TYPE="header";t.CUSTOM_SELECTION_TYPE="custom-selection"},function(e,t,n){var r=n(38),o=n(42),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){var r,o,i,a=n(247),s=n(38),l=n(55),u=n(104),c=n(47),d=n(187),h=n(163),f=n(137),v=s.TypeError,g=s.WeakMap;if(a||d.state){var p=d.state||(d.state=new g);p.get=p.get,p.has=p.has,p.set=p.set,r=function(e,t){if(p.has(e))throw v("Object already initialized");return t.facade=e,p.set(e,t),t},o=function(e){return p.get(e)||{}},i=function(e){return p.has(e)}}else{var y=h("state");f[y]=!0,r=function(e,t){if(c(e,y))throw v("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i)return i;i="object"===("undefined"==typeof Intl?"undefined":(0,s.default)(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1};return i},t.hasCaptionProblem=function(){void 0===o&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),o=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return o},t.isClassListSupported=function(){return!!document.documentElement.classList},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},t.isPassiveEventSupported=function(){if(void 0!==a)return a;try{var e={get passive(){a=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){a=!1}return a},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)};var o,i,a,s=r(n(14))},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isCtrlKey=function(e){var t=[];(0,o.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return a.includes(e)},t.isKey=function(e,t){var n=t.split("|"),o=!1;return(0,r.arrayEach)(n,(function(t){if(e===i[t])return o=!0,!1})),o},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},n(28),n(35);var r=n(13),o=n(78),i={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,o.isFirefox)()?182:174,AUDIO_MUTE:(0,o.isFirefox)()?181:173,AUDIO_UP:(0,o.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90};t.KEY_CODES=i;var a=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},function(e,t,n){var r=n(481);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.NO_ITEMS=t.ITEMS=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0,t.addItem=function(e,t){-1===S.indexOf(e)&&(b[e]=t)},t.predefinedItems=function(){var e={};return(0,a.objectEach)(b,(function(t,n){e[n]=t()})),e},n(23);var i=r(n(25)),a=n(12),s=R(n(597));t.ALIGNMENT=s.KEY;var l=R(n(598));t.CLEAR_COLUMN=l.KEY;var u=R(n(599));t.COLUMN_LEFT=u.KEY;var c=R(n(600));t.COLUMN_RIGHT=c.KEY;var d=R(n(601));t.READ_ONLY=d.KEY;var h=R(n(602));t.REDO=h.KEY;var f=R(n(603));t.REMOVE_COLUMN=f.KEY;var v=R(n(604));t.REMOVE_ROW=v.KEY;var g=R(n(605));t.ROW_ABOVE=g.KEY;var p=R(n(606));t.ROW_BELOW=p.KEY;var y=R(n(231));t.SEPARATOR=y.KEY;var m=R(n(607));t.NO_ITEMS=m.KEY;var C,w=R(n(608));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function R(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.UNDO=w.KEY;var S=[g.KEY,p.KEY,u.KEY,c.KEY,l.KEY,v.KEY,f.KEY,w.KEY,h.KEY,d.KEY,s.KEY,y.KEY,m.KEY];t.ITEMS=S;var b=(C={},(0,i.default)(C,y.KEY,y.default),(0,i.default)(C,m.KEY,m.default),(0,i.default)(C,g.KEY,g.default),(0,i.default)(C,p.KEY,p.default),(0,i.default)(C,u.KEY,u.default),(0,i.default)(C,c.KEY,c.default),(0,i.default)(C,l.KEY,l.default),(0,i.default)(C,v.KEY,v.default),(0,i.default)(C,f.KEY,f.default),(0,i.default)(C,w.KEY,w.default),(0,i.default)(C,h.KEY,h.default),(0,i.default)(C,d.KEY,d.default),(0,i.default)(C,s.KEY,s.default),C)},function(e,t){e.exports=!1},function(e,t,n){var r=n(27);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(362);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){var r=n(48),o=n(56),i=n(164),a=n(139),s=n(76),l=n(162),u=n(47),c=n(243),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){"use strict";n(77),t.__esModule=!0;var r=n(336);t.registerRootComparator=r.registerRootComparator,t.getRootComparator=r.getRootComparator,t.getCompareFunctionFactory=r.getCompareFunctionFactory;var o=n(584);t.FIRST_AFTER_SECOND=o.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=o.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=o.DO_NOT_SWAP,t.sort=o.sort},function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){var r,o=n(54),i=n(241),a=n(190),s=n(137),l=n(246),u=n(161),c=n(163),d=c("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},v=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;g="undefined"!=typeof document?document.domain&&r?v(r):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):v(r);for(var n=a.length;n--;)delete g.prototype[a[n]];return g()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=o(e),n=new h,h.prototype=null,n[d]=e):n=g(),void 0===t?n:i.f(n,t)}},function(e,t,n){var r=n(102),o=n(82);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},function(e,t,n){var r=n(42),o=n(116),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},function(e,t,n){var r=n(96),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(48),o=n(73),i=n(139);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(142),o=n(27),i=n(130),a=n(72),s=n(79),l=n(203),u=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,d=6==e,h=7==e,f=5==e||d;return function(v,g,p,y){for(var m,C,w=a(v),E=i(w),R=r(g,p),S=s(E),b=0,T=y||l,O=t?T(v,S):n||h?T(v,0):void 0;S>b;b++)if((f||b in E)&&(C=R(m=E[b],b,w),e))if(t)O[b]=C;else if(C)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:u(O,m)}else switch(e){case 4:return!1;case 7:u(O,m)}return d?-1:o||c?c:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){var r=n(131),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RegisteredEditor=f,t.getEditorInstance=t._getEditorInstance=function(e,t){var n;if("function"==typeof e)a.get(e)||v(null,e),n=a.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=u(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!c(e))throw Error('No registered editor found under "'.concat(e,'" name'));return u(e).getConstructor()},t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=void 0,t.registerEditor=v,n(4),n(1),n(5),n(7),n(6);var o=r(n(52)),i=r(n(86)),a=new WeakMap,s=(0,i.default)("editors"),l=s.register,u=s.getItem,c=s.hasItem,d=s.getNames,h=s.getValues;function f(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},o.default.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function v(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);var n=new f(t);"string"==typeof e&&l(e,n),a.set(t,n)}t.getRegisteredEditors=h,t.getRegisteredEditorNames=d,t.hasEditor=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.Renderer=void 0;var i=r(n(288));t.ViewportColumnsCalculator=i.default;var a=r(n(289));t.ViewportRowsCalculator=a.default;var s=r(n(214));t.CellCoords=s.default;var l=r(n(290));t.CellRange=l.default;var u=r(n(418));t.default=u.default,t.Core=u.default;var c=r(n(453));t.Selection=c.default;var d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(293));t.Renderer=d;var h=n(180);t.OrderView=h.OrderView,t.SharedOrderView=h.SharedOrderView;var f=n(44);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}t.getListenersCounter=f.getListenersCounter},function(e,t,n){"use strict";n(1),n(20),n(37),t.__esModule=!0;var r={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0};t.TopOverlay=t.TopInlineStartCornerOverlay=t.Overlay=t.InlineStartOverlay=t.BottomOverlay=t.BottomInlineStartCornerOverlay=void 0;var o=n(423);t.BottomInlineStartCornerOverlay=o.BottomInlineStartCornerOverlay;var i=n(441);t.BottomOverlay=i.BottomOverlay;var a=n(443);t.InlineStartOverlay=a.InlineStartOverlay;var s=n(126);t.Overlay=s.Overlay;var l=n(445);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var u=n(447);t.TopOverlay=u.TopOverlay;var c=n(110);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}))},function(e,t,n){"use strict";t.__esModule=!0,t.CLONE_TYPES=t.CLONE_TOP_INLINE_START_CORNER=t.CLONE_TOP=t.CLONE_INLINE_START=t.CLONE_CLASS_NAMES=t.CLONE_BOTTOM_INLINE_START_CORNER=t.CLONE_BOTTOM=void 0,n(4),n(36),n(1),n(5),n(6);t.CLONE_TOP="top";t.CLONE_BOTTOM="bottom";t.CLONE_INLINE_START="inline_start";t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner";t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";var r=["top","bottom","inline_start","top_inline_start_corner","bottom_inline_start_corner"];t.CLONE_TYPES=r;var o=new Map([["top","ht_clone_".concat("top")],["bottom","ht_clone_".concat("bottom")],["inline_start","ht_clone_".concat("inline_start"," ht_clone_left")],["top_inline_start_corner","ht_clone_".concat("top_inline_start_corner"," ht_clone_top_left_corner")],["bottom_inline_start_corner","ht_clone_".concat("bottom_inline_start_corner"," ht_clone_bottom_left_corner")]]);t.CLONE_CLASS_NAMES=o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.countFirstRowKeys=function(e){var t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,i.isObject)(e[0])&&(t=(0,i.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){for(var n,r=[],o=0;o<e;o++){n=[];for(var i=0;i<t;i++)n.push("");r.push(n)}return r},t.createSpreadsheetData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i=[];for(t=0;t<r;t++)i.push(s(t)+(e+1));o.push(i)}return o},t.createSpreadsheetObjectData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i={};for(t=0;t<r;t++)i["prop".concat(t)]=s(t)+(e+1);o.push(i)}return o},t.dataRowToChangesArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e,r=[];Array.isArray(e)&&Array.isArray(e[0])||(n=[e]);return n.forEach((function(e,n){Array.isArray(e)?e.forEach((function(e,o){r.push([n+t,o,e])})):Object.keys(e).forEach((function(o){r.push([n+t,o,e[o]])}))})),r},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every((function(e){return Array.isArray(e)})))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every((function(e){return"object"===(0,o.default)(e)&&!Array.isArray(e)&&null!==e})))},t.spreadsheetColumnIndex=function(e){var t=0;if(e)for(var n=0,r=e.length-1;n<e.length;n+=1,r-=1)t+=Math.pow(a,r)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e[n])+1);return t-=1},t.spreadsheetColumnLabel=s;var o=r(n(14));n(1),n(20),n(37);var i=n(12),a="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function s(e){for(var t,n=e+1,r="";n>0;)t=(n-1)%a,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/a,10);return r}},function(e,t,n){"use strict";t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0;var r=n(507);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TextEditor=r.TextEditor},function(e,t,n){"use strict";t.__esModule=!0,t.textRenderer=t.RENDERER_TYPE=void 0;var r=n(512);t.RENDERER_TYPE=r.RENDERER_TYPE,t.textRenderer=r.textRenderer},function(e,t,n){var r=n(94),o=n(187);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(133),o=n(26),i=n(38).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(245),o=n(190).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(162),o=n(73),i=n(139);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(85);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){var r=n(21),o=n(387),i=n(132);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){var r=n(48),o=n(38),i=n(27),a=n(166),s=n(202),l=n(104),u=n(117).f,c=n(95),d=n(209),h=n(49),f=n(282),v=n(205),g=n(400),p=n(83),y=n(26),m=n(47),C=n(89).enforce,w=n(268),E=n(41),R=n(276),S=n(277),b=E("match"),T=o.RegExp,O=T.prototype,_=o.SyntaxError,I=i(O.exec),k=i("".charAt),M=i("".replace),N=i("".indexOf),P=i("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,D=/a/g,L=new T(x)!==x,H=v.MISSED_STICKY,B=v.UNSUPPORTED_Y,F=r&&(!L||H||R||S||y((function(){return D[b]=!1,T(x)!=x||T(D)==D||"/a/i"!=T(x,"i")})));if(a("RegExp",F)){for(var V=function(e,t){var n,r,o,i,a,u,v=c(O,this),g=d(e),p=void 0===t,y=[],w=e;if(!v&&g&&p&&e.constructor===V)return e;if((g||c(O,e))&&(e=e.source,p&&(t=f(w))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),w=e,R&&"dotAll"in x&&(r=!!t&&N(t,"s")>-1)&&(t=M(t,/s/g,"")),n=t,H&&"sticky"in x&&(o=!!t&&N(t,"y")>-1)&&B&&(t=M(t,/y/g,"")),S&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=k(e,r)))t+=k(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:I(A,P(e,r+1))&&(r+=2,l=!0),o+=t,u++;continue;case">"===t&&l:if(""===c||m(a,c))throw new _("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],l=!1,c="";continue}l?c+=t:o+=t}return[o,i]}(e))[0],y=i[1]),a=s(T(e,t),v?this:O,V),(r||o||y.length)&&(u=C(a),r&&(u.dotAll=!0,u.raw=V(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=k(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+k(e,++r);return o}(e),n)),o&&(u.sticky=!0),y.length&&(u.groups=y)),e!==w)try{l(a,"source",""===w?"(?:)":w)}catch(e){}return a},U=u(T),W=0;U.length>W;)g(V,T,U[W++]);O.constructor=V,V.prototype=O,p(o,"RegExp",V,{constructor:!0})}w("RegExp")},function(e,t,n){"use strict";var r=n(21),o=n(273).trim;r({target:"String",proto:!0,forced:n(401)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(291),o=n(422);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(40),n(5),n(28),n(1),n(20);var o=r(n(29)),i=r(n(22)),a=r(n(2)),s=r(n(3)),l=r(n(25)),u=n(15),c=n(51),d=r(n(425)),h=r(n(426)),f=n(293),v=r(n(437)),g=r(n(438)),p=n(109),y=function(){function e(t,n,r,o,i){var s=this;(0,a.default)(this,e),(0,l.default)(this,"wtSettings",null),(0,l.default)(this,"domBindings",void 0),(0,l.default)(this,"TBODY",null),(0,l.default)(this,"THEAD",null),(0,l.default)(this,"COLGROUP",null),(0,l.default)(this,"hasTableHeight",!0),(0,l.default)(this,"hasTableWidth",!0),(0,l.default)(this,"isTableVisible",!1),(0,l.default)(this,"tableOffset",0),(0,l.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=t,this.facadeGetter=n,this.wtSettings=o,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,u.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var c=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(function(){return s._modifyRowHeaderWidth(c)})),this.rowUtils=new g.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new v.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new f.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer")})}return(0,s.default)(e,[{key:"is",value:function(e){return this.name===e}},{key:"fixTableDomTree",value:function(){var e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,u.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,u.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,u.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable",t.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr")),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wtSettings,n=this.dataAccessObject,r=n.wtOverlays,o=n.wtViewport,i=t.getSetting("totalRows"),a=t.getSetting("totalColumns"),s=t.getSetting("rowHeaders"),l=s.length,c=t.getSetting("columnHeaders"),f=c.length,v=!1,g=e;if(this.isMaster&&(this.holderOffset=(0,u.offset)(this.holder),g=o.createRenderCalculators(g),l&&!t.getSetting("fixedColumnsStart"))){var y=r.inlineStartOverlay.getScrollPosition(),m=this.correctHeaderWidth;this.correctHeaderWidth=0!==y,m!==this.correctHeaderWidth&&(g=!1)}if(this.isMaster&&(v=r.updateStateOfRendering()),g)this.isMaster&&o.createVisibleCalculators(),r&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,u.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;var C=i>0?this.getFirstRenderedRow():0,w=a>0?this.getFirstRenderedColumn():0;this.rowFilter=new h.default(C,i,f),this.columnFilter=new d.default(w,a,l);var E,R=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var S={};this.wtSettings.getSetting("beforeDraw",!0,S),R=!0!==S.skipRender}if(R)if(this.tableRenderer.setHeaderContentRenderers(s,c),(this.is(p.CLONE_BOTTOM)||this.is(p.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(s,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(E=this.dataAccessObject.workspaceWidth,this.dataAccessObject.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(p.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.dataAccessObject.wtViewport.createVisibleCalculators(),this.dataAccessObject.wtOverlays.refresh(!1),this.dataAccessObject.wtOverlays.applyToDOM();var b=(0,u.outerWidth)(this.hider),T=(0,u.outerWidth)(this.TABLE);0!==b&&T!==b&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),E!==this.dataAccessObject.wtViewport.getWorkspaceWidth()&&(this.dataAccessObject.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wtSettings.getSetting("onDraw",!0)}else this.is(p.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize()}var O=!1;return this.isMaster&&(O=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(O=r.bottomOverlay.resetFixedPosition()||O),O=r.inlineStartOverlay.resetFixedPosition()||O,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),O?(r.refreshAll(),r.adjustElementsSize()):this.refreshSelections(g),v&&r.syncScrollWithMaster(),this.dataAccessObject.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.columnFilter.renderedToSource(e),i=this.wtSettings.getSetting("columnHeaders").length,a=this.wtSettings.getSetting("defaultRowHeight"),s=this.wtSettings.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.getColumnHeaderHeight(i),(n=this.getColumnHeader(o,i))&&(r=(0,u.innerHeight)(n),(!t&&a<r||t<r)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s),this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wtSettings,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders,r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height="".concat(n[r],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport;if((this.isMaster||this.is(p.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var n=this.getRenderedRowsCount(),r=0;r<n;r++){var o=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[o]&&(t.oversizedRows[o]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)(0,u.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wtSettings,n=this.dataAccessObject.selections;if(n){var r=Array.from(n),o=r.length;if(e){for(var i=[],a=0;a<o;a++){for(var s=r[a].settings,l=s.highlightHeaderClassName,u=s.highlightRowClassName,c=s.highlightColumnClassName,d=r[a].classNames,h=d.length,f=0;f<h;f++)i.includes(d[f])||i.push(d[f]);l&&!i.includes(l)&&i.push(l),u&&!i.includes(u)&&i.push(u),c&&!i.includes(c)&&i.push(c)}var v=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(v))for(var g=0;g<v.length;g++)i.push(v[g]);for(var p=i.length,y=0;y<p;y++)this.removeClassFromCells(i[y])}for(var m=0;m<o;m++)r[m].draw(this.facadeGetter(),e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n);if(r&&Array.isArray(r)){var o=(0,i.default)(r,2);t=o[0],n=o[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;var a=this.getRow(t);if(!a&&t>=0)throw new Error("TR was expected to be rendered but is not");var s=a.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!s&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getRow",value:function(e){var t,n,r=null,o=null;e<0?(r=null===(t=this.rowFilter)||void 0===t?void 0:t.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(r=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceToRendered(e),o=this.TBODY);return void 0!==r&&void 0!==o&&(!(o.childNodes.length<r+1)&&o.childNodes[r])}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getColumnHeaders",value:function(e){var t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((function(e){var r=e.childNodes[n];r&&t.push(r)})),t}},{key:"getRowHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0!==this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0)){var n=this.wtSettings.getSetting("rowHeaders").length;if(!(t>=n)){var r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return null==r?void 0:r.childNodes[t]}}}},{key:"getRowHeaders",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return[];for(var t=[],n=this.wtSettings.getSetting("rowHeaders").length,r=0;r<n;r++){var o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[r];i&&t.push(i)}return t}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,u.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=(0,u.index)(n),i=t.cellIndex;if((0,u.overlayContainsElement)(p.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(o-=r.childNodes.length);else if((0,u.overlayContainsElement)(p.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.getSetting("totalRows")-r.childNodes.length+o}else o=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o);return i=(0,u.overlayContainsElement)(p.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_INLINE_START,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),this.wot.createCellCoords(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wtSettings.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wtSettings.getSetting("defaultRowHeight")!==(0,u.innerHeight)(this.TBODY)-1||this.wtSettings.getSetting("fixedRowsBottom"))for(;i;)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),t=(o=(r=this.getTrForRow(n)).querySelector("th"))?(0,u.innerHeight)(o):(0,u.innerHeight)(r)-1,(!e&&this.wtSettings.getSetting("defaultRowHeight")<t||e<t)&&(t+=1,this.dataAccessObject.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"isColumnHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}},{key:"isRowAfterRenderedRows",value:function(e){return e>this.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}},{key:"isColumnAfterRenderedColumns",value:function(e){return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"getWidth",value:function(){return(0,u.outerWidth)(this.TABLE)}},{key:"getHeight",value:function(){return(0,u.outerHeight)(this.TABLE)}},{key:"getTotalWidth",value:function(){var e=(0,u.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}},{key:"getTotalHeight",value:function(){var e=(0,u.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}},{key:"isVisible",value:function(){return(0,u.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,c.isFunction)(e)?e():null;return Array.isArray(t)?(t=(0,o.default)(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}();t.default=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Overlay=void 0,n(23);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=n(12),u=n(13),c=n(69),d=n(110),h=r(n(439)),f=function(){function e(t,n,r,i,u){(0,o.default)(this,e),(0,a.default)(this,"wtSettings",null),(0,l.defineGetter)(this,"wot",t,{writable:!1}),this.domBindings=u,this.facadeGetter=n,this.wtSettings=i;var c=this.wot.wtTable,d=c.TABLE,h=c.hider,f=c.spreader,v=c.holder,g=c.wtRootElement;this.instance=this.wot,this.type=r,this.mainTableScrollableElement=null,this.TABLE=d,this.hider=h,this.spreader=f,this.holder=v,this.wtRootElement=g,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.updateStateOfRendering(),this.clone=this.makeClone()}return(0,i.default)(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.domBindings.rootWindow,o=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),a=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),s=this.clone.wtTable.spreader,l={start:this.getRelativeStartPosition(s),top:s.offsetTop},u={start:this.getRelativeStartPosition(e),top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,u,l):this.getRelativeCellPositionWithinHolder(i,a,o,u,l)}(0,c.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeStartPosition",value:function(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;if(t){var l=o.left;this.isRtl()&&(l=this.domBindings.rootWindow.innerWidth-(o.left+o.width+(0,s.getScrollbarWidth)())),i=l<=0?-1*l:0}else i=r.start;e?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:a=r.top;return{start:n.start+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),a=this.wot.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=i-o.start),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=a-o.top);return{start:r.start-s,top:r.top-l}}},{key:"makeClone",value:function(){if(-1===d.CLONE_TYPES.indexOf(this.type))throw new Error('Clone type "'.concat(this.type,'" is not supported.'));var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=n.createElement("DIV"),i=n.createElement("TABLE"),a=e.wtRootElement.parentNode;o.className="".concat(d.CLONE_CLASS_NAMES.get(this.type)," handsontable"),o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,i.className=e.TABLE.className,o.appendChild(i),a.appendChild(o);var l=this.wtSettings.getSetting("preventOverflow");return!0===l||"horizontal"===l&&this.type===d.CLONE_TOP||"vertical"===l&&this.type===d.CLONE_INLINE_START?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE),new h.default(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selections:this.wot.selections})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,r=t.style,o=e.parentNode.style;(0,u.arrayEach)([n,r,o],(function(e){e.width="",e.height=""}))}}},{key:"isRtl",value:function(){return this.wtSettings.getSetting("rtlMode")}},{key:"destroy",value:function(){this.clone.eventManager.destroy()}}]),e}();t.Overlay=f},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(31)),s=r(n(18)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f=function(e){(0,l.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,null),(0,d.default)((0,a.default)(i),"visualCellRange",null),i.visualCellRange=r||null,i.commit(),i}return(0,i.default)(n,[{key:"add",value:function(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}},{key:"clear",value:function(){return this.visualCellRange=null,(0,s.default)((0,c.default)(n.prototype),"clear",this).call(this)}},{key:"trimToVisibleCellsRangeOnly",value:function(e){var t=e.from,n=e.to,r=this.getNearestNotHiddenCoords(t,1),o=this.getNearestNotHiddenCoords(n,-1);if(null===r||null===o)return null;if(r.row>o.row||r.col>o.col){if(!("header"===this.settings.type||"active-header"===this.settings.type))return null;r=t,o=n}return this.settings.createCellRange(r,r,o)}},{key:"getNearestNotHiddenCoords",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper(),e.row,t);if(null===r)return null;var o=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper(),e.col,n);return null===o?null:this.settings.createCellCoords(r,o)}},{key:"getNearestNotHiddenIndex",value:function(e,t,n){if(t<0)return t;var r=e.getNearestNotHiddenIndex(t,n);return("header"===this.settings.type||"active-header"===this.settings.type)&&null===r?-1:r}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}},{key:"syncWith",value:function(e){var t="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,r=this.getNearestNotHiddenCoords(e.from.clone().normalize(),t,n);if(null!==r&&e.overlaps(r)){if(null===this.cellRange){var o=this.settings.visualToRenderableCoords(r);this.cellRange=this.settings.createCellRange(o)}return e.setHighlight(r),this}return e.setHighlight(e.from),this}},{key:"getCorners",value:function(){var e=this.cellRange,t=e.from,n=e.to,r=null===t.row||null===n.row,o=null===t.col||null===n.col,i=this.settings.createCellCoords(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=this.settings.createCellCoords(r?null:Math.max(t.row,n.row),o?null:Math.max(t.col,n.col));return[i.row,i.col,a.row,a.col]}},{key:"getVisualCorners",value:function(){var e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}},{key:"createRenderableCellRange",value:function(e,t){var n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return this.settings.createCellRange(n,n,r)}}]),n}(n(108).Selection);t.default=f},function(e,t,n){"use strict";var r,o=n(21),i=n(143),a=n(97).f,s=n(103),l=n(49),u=n(208),c=n(71),d=n(210),h=n(94),f=i("".startsWith),v=i("".slice),g=Math.min,p=d("startsWith");o({target:"String",proto:!0,forced:!!(h||p||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=l(c(this));u(e);var n=s(g(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return f?f(t,r,n):v(t,n,n+r.length)===r}})},function(e,t,n){"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){var n=!1;return(0,i.arrayEach)(e.getSelectedRange(),(function(o){o.forAll((function(o,i){if(!(o<0||i<0)){var a=e.getCellMeta(o,i).borders;if(a){if(!t)return n=!0,!1;if(!(0,r.hasOwnProperty)(a[t],"hide")||!1===a[t].hide)return n=!0,!1}}}))})),n},t.createDefaultCustomBorder=s,t.createDefaultHtBorder=u,t.createEmptyBorders=function(e,t){return{id:a(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=a,t.createSingleEmptyBorder=l,t.denormalizeBorder=function(e){(0,o.isDefined)(e.start)&&(e.left=e.start);(0,o.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,r.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,r.hasOwnProperty)(t,"top")&&(0,o.isDefined)(t.top)&&(t.top?((0,r.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,r.hasOwnProperty)(t,"bottom")&&(0,o.isDefined)(t.bottom)&&(t.bottom?((0,r.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,r.hasOwnProperty)(t,"start")&&(0,o.isDefined)(t.start)&&(t.start?((0,r.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,r.hasOwnProperty)(t,"end")&&(0,o.isDefined)(t.end)&&(t.end?((0,r.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.left)||(0,o.isDefined)(e.right)}))},t.hasStartEndTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.start)||(0,o.isDefined)(e.end)}))},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeBorder=function(e){var t,n;((0,o.isDefined)(e.start)||(0,o.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,o.isDefined)(e.end)||(0,o.isDefined)(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},n(19),n(1),n(4),n(36),n(5),n(6);var r=n(12),o=n(24),i=n(13);function a(e,t){return"border_row".concat(e,"col").concat(t)}function s(){return{width:1,color:"#000"}}function l(){return{hide:!0}}function u(){return{width:1,color:"#000",cornerVisible:!1}}var c=new Map([["left","start"],["right","end"]])},function(e,t,n){var r=n(27),o=n(26),i=n(85),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},function(e,t,n){var r=n(26);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){var r=n(41),o=n(100),i=n(73).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r,o,i=n(38),a=n(99),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){var r=n(88),o=n(42),i=n(95),a=n(239),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},function(e,t,n){var r=n(245),o=n(190);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(96),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){e.exports={}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(48),o=n(47),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},function(e,t,n){var r=n(21),o=n(27),i=n(137),a=n(55),s=n(47),l=n(73).f,u=n(117),c=n(197),d=n(368),h=n(160),f=n(195),v=!1,g=h("meta"),p=0,y=function(e){l(e,g,{value:{objectID:"O"+p++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},v=!0;var e=u.f,t=o([].splice),n={};n[g]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===g){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[g].weakData},onFreeze:function(e){return f&&v&&d(e)&&!s(e,g)&&y(e),e}};i[g]=!0},function(e,t,n){var r=n(143),o=n(102),i=n(131),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(85),o=n(27);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,t,n){var r=n(248),o=n(73);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},function(e,t,n){var r=n(26),o=n(41),i=n(133),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(27);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(119),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.SHORTCUTS_GROUP_NAVIGATION=t.SHORTCUTS_GROUP_EDITOR=void 0,n(28),n(35),n(4),n(1),n(5),n(7),n(6);var o=r(n(22)),i=r(n(2)),a=r(n(3)),s=n(91),l=n(62),u=n(15),c=n(107),d=r(n(44)),h=n(24);t.SHORTCUTS_GROUP_NAVIGATION="editorManager.navigation";t.SHORTCUTS_GROUP_EDITOR="editorManager.handlingEditor";var f=function(){function e(t,n,r){var o=this;(0,i.default)(this,e),this.instance=t,this.tableMeta=n,this.selection=r,this.eventManager=new d.default(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.instance.getShortcutManager().addContext("editor"),this.registerShortcuts(),this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",(function(e){!o.destroyed&&o.instance.isListening()&&o.openEditor("",e)})),this.instance.view._wt.update("onCellDblClick",(function(e,t,n){return o.onCellDblClick(e,t,n)}))}return(0,a.default)(e,[{key:"registerShortcuts",value:function(){var e=this,t=this.instance.getShortcutManager(),n=t.getContext("grid"),r={group:"editorManager.handlingEditor"};t.getContext("editor").addShortcuts([{keys:[["Enter"],["Enter","Shift"],["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],callback:function(n,r){e.closeEditorAndSaveChanges(t.isCtrlPressed()),e.moveSelectionAfterEnter(r.includes("shift"))}},{keys:[["Escape"],["Escape","Control/Meta"]],callback:function(){e.closeEditorAndRestoreOriginalValue(t.isCtrlPressed()),e.activeEditor.focus()}}],r),n.addShortcuts([{keys:[["F2"]],callback:function(t){e.openEditor(null,t,!0)}},{keys:[["Backspace"],["Delete"]],callback:function(){e.instance.emptySelectedCells(),e.prepareEditor()}},{keys:[["Enter"],["Enter","Shift"]],callback:function(t,n){e.instance.getSettings().enterBeginsEditing?e.cellProperties.readOnly?e.moveSelectionAfterEnter():e.openEditor(null,t,!0):e.moveSelectionAfterEnter(n.includes("shift")),(0,l.stopImmediatePropagation)(t)}}],r)}},{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var e=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,(function(t){t&&e.prepareEditor()}));else{var t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,i=this.instance.runHooks("modifyGetCellCoords",n,r),a=n,s=r;if(Array.isArray(i)){var l=(0,o.default)(i,2);a=l[0],s=l[1]}this.cellProperties=this.instance.getCellMeta(a,s);var d=this.instance.rootDocument.activeElement;if(d&&(0,u.isOutsideInput)(d)&&d.blur(),this.isCellEditable()){var h=this.instance.getCell(n,r,!0);if(h){var f=this.instance.getCellEditor(this.cellProperties),v=this.instance.colToProp(s),g=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(a),s);this.activeEditor=(0,c.getEditorInstance)(f,this.instance),this.activeEditor.prepare(n,r,v,h,g,this.cellProperties)}}else this.clearActiveEditor()}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isCellEditable()){if(!this.activeEditor){var r=this.instance.getSelectedRangeLast().highlight,o=r.row,i=r.col,a=this.instance.rowIndexMapper.getRenderableFromVisualIndex(o),s=this.instance.columnIndexMapper.getRenderableFromVisualIndex(i);this.instance.view.scrollViewport(this.instance._createCellCoords(a,s)),this.instance.view.render(),this.prepareEditor()}this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))}else this.clearActiveEditor()}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){this.closeEditor(!0,e)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"isCellEditable",value:function(){var e=this.instance.getCellEditor(this.cellProperties),t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,o=this.instance,i=o.rowIndexMapper,a=o.columnIndexMapper,s=i.isHidden(this.instance.toPhysicalRow(n))||a.isHidden(this.instance.toPhysicalColumn(r));return!(this.cellProperties.readOnly||!e||s)}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(event):this.tableMeta.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"onAfterDocumentKeyDown",value:function(e){var t=this;if(this.instance.isListening()){var n=e.keyCode;if(this.selection.isSelected()){var r=(e.ctrlKey||e.metaKey)&&!e.altKey;if((!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&!((0,s.isFunctionKey)(n)||(0,s.isCtrlMetaKey)(n)||r||this.isEditorOpened())){var o={runOnlyIf:function(){return(0,h.isDefined)(t.instance.getSelected())},group:"editorManager.navigation"};this.instance.getShortcutManager().getContext("editor").addShortcuts([{keys:[["ArrowUp"]],callback:function(){t.instance.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){t.instance.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){t.instance.selection.transformStart(0,-1*t.instance.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){t.instance.selection.transformStart(0,t.instance.getDirectionFactor())}}],o),this.openEditor("",e)}}}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&this.openEditor(null,e,!0)}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}]),e}(),v=new WeakMap;f.getInstance=function(e,t,n){var r=v.get(e);return r||(r=new f(e,t,n),v.set(e,r)),r};var g=f;t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return a(e)},t.hasRenderer=void 0,t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)};var o=(0,r(n(86)).default)("renderers"),i=o.register,a=o.getItem,s=o.hasItem,l=o.getNames,u=o.getValues;t.getRegisteredRenderers=u,t.getRegisteredRendererNames=l,t.hasRenderer=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.getValidator=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered validator found under "'.concat(e,'" name'));return a(e)},t.hasValidator=void 0,t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var o=(0,r(n(86)).default)("validators"),i=o.register,a=o.getItem,s=o.hasItem,l=o.getNames,u=o.getValues;t.getRegisteredValidators=u,t.getRegisteredValidatorNames=l,t.hasValidator=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(431)),s=function(){function e(t,n){(0,o.default)(this,e),this.nodesPool="string"==typeof t?new a.default(t):null,this.nodeType=t,this.rootNode=n,this.table=null,this.renderedNodes=0}return(0,i.default)(e,[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(21),o=n(48),i=n(38),a=n(27),s=n(47),l=n(42),u=n(95),c=n(49),d=n(144),h=n(250),f=i.Symbol,v=f&&f.prototype;if(o&&l(f)&&(!("description"in v)||void 0!==f().description)){var g={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(v,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(p,f),p.prototype=v,v.constructor=p;var y="Symbol(test)"==String(f("test")),m=a(v.valueOf),C=a(v.toString),w=/^Symbol\((.*)\)[^)]+$/,E=a("".replace),R=a("".slice);d(v,"description",{configurable:!0,get:function(){var e=m(this);if(s(g,e))return"";var t=C(e),n=y?R(t,7,-1):E(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:p})}},function(e,t,n){"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))},t.columnFactory=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,r.inherit)(n,e);for(var o=0;o<t.length;o++)n.prototype[t[o]]=void 0;return n},t.extendByMetaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a="string"==typeof t.type?(0,o.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,r.objectEach)(t,(function(t,n){e._automaticallyAssignedMetaProps.delete(n)}));if(!(0,r.isObject)(a))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);var s={};(0,r.objectEach)(a,(function(t,r){var o;i(r,n)&&(s[r]=t,null===(o=e._automaticallyAssignedMetaProps)||void 0===o||o.add(r))})),(0,r.extend)(e,s)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},n(4),n(1),n(45),n(5),n(6),n(60),n(61);var r=n(12),o=n(154);function i(e,t){var n;return"CELL_TYPE"!==e&&((null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!(0,r.hasOwnProperty)(t,e))}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCellType=function(e){if(!d(e))throw Error('You declared cell type "'.concat(e,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method'));return c(e)},t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=void 0,t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);var n=t,r=n.editor,o=n.renderer,l=n.validator;r&&(0,i.registerEditor)(e,r);o&&(0,a.registerRenderer)(e,o);l&&(0,s.registerValidator)(e,l);u(e,t)};var o=r(n(86)),i=n(107),a=n(149),s=n(150),l=(0,o.default)("cellTypes"),u=l.register,c=l.getItem,d=l.hasItem,h=l.getNames,f=l.getValues;t.getRegisteredCellTypes=f,t.getRegisteredCellTypeNames=h,t.hasCellType=d},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var r=n(317);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteRenderer=t.RENDERER_TYPE=void 0;var r=n(529);t.RENDERER_TYPE=r.RENDERER_TYPE,t.autocompleteRenderer=r.autocompleteRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.createArrayAssertion=u,t.intersectValues=function(e,t,n,r){var i,s=[],l=e===t;l||(i=u(t));return(0,o.arrayEach)(e,(function(e){var t=!1;(l||i(e))&&(t=!0);var o={checked:t,value:e,visualValue:a(e,n)};r&&r(o),s.push(o)})),s},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toEmptyString=function(e){return null==e?"":e},t.toVisualValue=a,t.unifyColumnValues=function(e){var t=e;t=l?Array.from(new Set(t)):(0,o.arrayUnique)(t);return t=t.sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))},n(4),n(1),n(45),n(5),n(6),n(40),n(23),n(77);var r=n(90),o=n(13),i=(0,r.getComparisonFunction)();function a(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var s=new Set([1]).has(1),l=s&&"function"==typeof Array.from;function u(e){var t=e;return s&&(t=new Set(t)),function(e){return s?t.has(e):!!~t.indexOf(e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!r[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=r[e].func;return function(e,n){return t(e,n)}},t.getOperationName=function(e){return r[e].name},t.operations=void 0,t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},n(70);var r={};t.operations=r},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(128);var i=r(n(2)),a=r(n(3)),s=n(12),l=r(n(75)),u=r(n(44)),c=n(15),d=n(13),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var v=["click","input","keydown","keypress","keyup","focus","blur","change"],g=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.eventManager=new u.default(this),this.options=(0,s.extend)(e.DEFAULTS,n),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=null}return(0,a.default)(e,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"element",get:function(){return"building"===this.buildState?this._element:"built"===this.buildState?(this.update(),this._element):(this.buildState="building",this.build(),this.buildState="built",this._element)}},{key:"isBuilt",value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(h.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){var e=this,t=function(t,n){e.eventManager.addEventListener(t,n,(function(t){return e.runLocalHooks(n,t,e)}))};if(this.buildState||(this.buildState="building"),this.options.className&&(0,c.addClass)(this._element,this.options.className),this.options.children.length)(0,d.arrayEach)(this.options.children,(function(t){return e._element.appendChild(t.element)}));else if(this.options.wrapIt){var n=this.hot.rootDocument.createElement(this.options.tagName);(0,s.objectEach)(this.options,(function(t,r){void 0!==n[r]&&"className"!==r&&"tagName"!==r&&"children"!==r&&(n[r]=e.translateIfPossible(t))})),this._element.appendChild(n),(0,d.arrayEach)(v,(function(e){return t(n,e)}))}else(0,d.arrayEach)(v,(function(n){return t(e._element,n)}))}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}],[{key:"DEFAULTS",get:function(){return(0,s.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),e}();(0,s.mixin)(g,l.default);var p=g;t.default=p},function(e,t,n){var r=n(27),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,t,n){var r=n(38),o=n(55),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(244),o=n(134);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){var r=n(114),o=n(160),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(26),o=n(42),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(47),o=n(42),i=n(72),a=n(163),s=n(253),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},function(e,t,n){var r=n(73).f,o=n(47),i=n(41)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(193),o=n(42),i=n(85),a=n(41)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(21),o=n(38),i=n(27),a=n(166),s=n(83),l=n(141),u=n(199),c=n(201),d=n(42),h=n(82),f=n(55),v=n(26),g=n(258),p=n(168),y=n(202);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),C=-1!==e.indexOf("Weak"),w=m?"set":"add",E=o[e],R=E&&E.prototype,S=E,b={},T=function(e){var t=i(R[e]);s(R,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(C&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return C&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(C&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(E)||!(C||R.forEach&&!v((function(){(new E).entries().next()})))))S=n.getConstructor(t,e,m,w),l.enable();else if(a(e,!0)){var O=new S,_=O[w](C?{}:-0,1)!=O,I=v((function(){O.has(1)})),k=g((function(e){new E(e)})),M=!C&&v((function(){for(var e=new E,t=5;t--;)e[w](t,t);return!e.has(-0)}));k||((S=t((function(e,t){c(e,R);var n=y(new E,e,S);return h(t)||u(t,n[w],{that:n,AS_ENTRIES:m}),n}))).prototype=R,R.constructor=S),(I||M)&&(T("delete"),T("has"),m&&T("get")),(M||_)&&T(w),C&&R.clear&&delete R.clear}return b[e]=S,r({global:!0,constructor:!0,forced:S!=E},b),p(S,e),C||n.setStrong(S,e,m),S}},function(e,t,n){var r=n(27),o=n(26),i=n(42),a=n(169),s=n(88),l=n(249),u=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),v=!h.exec(u),g=function(e){if(!i(e))return!1;try{return d(u,c,e),!0}catch(e){return!1}},p=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!f(h,l(e))}catch(e){return!0}};p.sham=!0,e.exports=!d||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?p:g},function(e,t,n){"use strict";var r,o,i=n(56),a=n(27),s=n(49),l=n(275),u=n(205),c=n(114),d=n(100),h=n(89).get,f=n(276),v=n(277),g=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,y=p,m=a("".charAt),C=a("".indexOf),w=a("".replace),E=a("".slice),R=(o=/b*/g,i(p,r=/a/,"a"),i(p,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=u.BROKEN_CARET,b=void 0!==/()??/.exec("")[1];(R||b||S||f||v)&&(y=function(e){var t,n,r,o,a,u,c,f=this,v=h(f),T=s(e),O=v.raw;if(O)return O.lastIndex=f.lastIndex,t=i(y,O,T),f.lastIndex=O.lastIndex,t;var _=v.groups,I=S&&f.sticky,k=i(l,f),M=f.source,N=0,P=T;if(I&&(k=w(k,"y",""),-1===C(k,"g")&&(k+="g"),P=E(T,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==m(T,f.lastIndex-1))&&(M="(?: "+M+")",P=" "+P,N++),n=new RegExp("^(?:"+M+")",k)),b&&(n=new RegExp("^"+M+"$(?!\\s)",k)),R&&(r=f.lastIndex),o=i(p,I?n:f,P),I?o?(o.input=E(o.input,N),o[0]=E(o[0],N),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:R&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),b&&o&&o.length>1&&i(g,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&_)for(o.groups=u=d(null),a=0;a<_.length;a++)u[(c=_[a])[0]]=o[c[1]];return o}),e.exports=y},function(e,t,n){"use strict";n(43);var r=n(143),o=n(83),i=n(172),a=n(26),s=n(41),l=n(104),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!v||n){var g=r(/./[h]),p=t(h,""[e],(function(e,t,n,o,a){var s=r(e),l=t.exec;return l===i||l===c.exec?f&&!a?{done:!0,value:g(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,p[0]),o(c,h,p[1])}d&&l(c[h],"sham",!0)}},function(e,t,n){var r=n(56),o=n(54),i=n(42),a=n(85),s=n(172),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return r(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(21),o=n(412).left,i=n(120),a=n(133);r({target:"Array",proto:!0,forced:!n(280)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(21),o=n(105).findIndex,i=n(132),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPlugin=v,t.getPluginsNames=function(){return[].concat((0,i.default)(d.getItems()),(0,i.default)(h.getItems()))},t.hasPlugin=function(e){return!!v(e)},t.registerPlugin=function(e,t,n){var r=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),i=(0,o.default)(r,3);e=i[0],t=i[1],n=i[2],void 0===v(e)&&function(e,t,n){var r=(0,a.toUpperCaseFirst)(e);if(f.hasItem(r))throw new Error(c(r));void 0===n?h.addItem(r):d.addItem(n,r);f.addItem(r,t)}(e,t,n)},n(19);var o=r(n(22)),i=r(n(29)),a=n(68),s=n(413),l=n(178),u=n(414),c=function(e){return'There is already registered "'.concat(e,'" plugin.')},d=(0,s.createPriorityMap)({errorPriorityExists:function(e){return'There is already registered plugin on priority "'.concat(e,'".')},errorPriorityNaN:function(e){return'The priority "'.concat(e,'" is not a number.')}}),h=(0,u.createUniqueSet)({errorItemExists:c}),f=(0,l.createUniqueMap)({errorIdExists:c});function v(e){var t=(0,a.toUpperCaseFirst)(e);return f.getItem(t)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorIdExists,n=new Map;function r(e,r){if(f(e))throw new Error(t(e));n.set(e,r)}function l(e){return n.delete(e)}function u(){n.clear()}function c(e){var t=h().find((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];return e===o&&r}))||[null];return(0,i.default)(t,1)[0]}function d(e){return n.get(e)}function h(){return(0,o.default)(n)}function f(e){return n.has(e)}return t=(0,a.isFunction)(t)?t:s,{addItem:r,clear:u,getId:c,getItem:d,getItems:h,hasItem:f,removeItem:l}};var o=r(n(29)),i=r(n(22));n(4),n(36),n(1),n(5),n(6),n(179);var a=n(51),s=function(e){return"The id '".concat(e,"' is already declared in a map.")}},function(e,t,n){"use strict";var r=n(21),o=n(105).find,i=n(132),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(294));t.OrderView=o.default;var i=r(n(430));t.SharedOrderView=i.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMap=void 0,n(33);var o=r(n(2)),i=r(n(3)),a=n(32),s=n(12),l=n(51),u=r(n(75)),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.indexedValues=[],this.initValueOrFn=t}return(0,i.default)(e,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(e){var t=this.indexedValues;if(e<t.length)return t[e]}},{key:"setValues",value:function(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}},{key:"setValueAtIndex",value:function(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}},{key:"clear",value:function(){this.setDefaultValues()}},{key:"getLength",value:function(){return this.getValues().length}},{key:"setDefaultValues",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,l.isFunction)(this.initValueOrFn)?(0,a.rangeEach)(t-1,(function(t){return e.indexedValues.push(e.initValueOrFn(t))})):(0,a.rangeEach)(t-1,(function(){return e.indexedValues.push(e.initValueOrFn)})),this.runLocalHooks("change")}},{key:"init",value:function(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}]),e}();t.IndexMap=c,(0,s.mixin)(c,u.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n){return[].concat((0,o.default)(e.slice(0,t)),(0,o.default)(n),(0,o.default)(e.slice(t)))},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(function(e){return!1===t.includes(e)}))},n(19),n(33),n(28),n(35);var o=r(n(29)),i=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.SELECTION_TYPE_UNRECOGNIZED=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPES=void 0,t.detectSelectionType=f,t.isValidCoord=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e<t},t.normalizeSelectionFactory=v,t.transformSelectionToColumnDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=v(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,4),a=i[1],l=i[3],u=Math.max(a,0),c=l-u+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return u+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])},t.transformSelectionToRowDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=v(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,3),a=i[0],l=i[2],u=Math.max(a,0),c=l-u+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return u+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])};var o=r(n(22)),i=r(n(14));n(53),n(152),n(1),n(28),n(35),n(4),n(45),n(5),n(6),n(40),n(77);var a=n(108),s=n(13),l=n(24);t.SELECTION_TYPE_UNRECOGNIZED=0;t.SELECTION_TYPE_EMPTY=1;t.SELECTION_TYPE_ARRAY=2;t.SELECTION_TYPE_OBJECT=3;var u=[3,2];t.SELECTION_TYPES=u;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),h=Symbol("child");function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==h)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===d,o=0;if(n){var s=e[0];if(0===e.length)o=1;else if(r&&s instanceof a.CellRange)o=3;else if(r&&Array.isArray(s))o=f(s,h);else if(e.length>=2&&e.length<=4){var l=!e.some((function(e,t){return!c[t].includes((0,i.default)(e))}));l&&(o=2)}}return o}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!u.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=3===e,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof u&&(u=o(u))),(0,l.isUndefined)(s)&&(s=i),(0,l.isUndefined)(u)&&(u=a),!r){var c=i,d=a,h=s,f=u;i=Math.min(c,h),a=Math.min(d,f),s=Math.max(c,h),u=Math.max(d,f)}return[i,a,s,u]}}},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=t.RENDERER_TYPE=void 0;var r=n(513);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},function(e,t,n){n(565)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12),l=r(n(75)),u=n(65),c=function(){function e(t,n){var r=n.id,i=n.stateless,a=void 0===i||i;(0,o.default)(this,e),this.hot=t,this.id=r,this.elements=[],this.hidden=!1,this.stateId="Filters.component.".concat(this.id),this.state=a?null:this.hot.columnIndexMapper.registerMap(this.stateId,new u.LinkedPhysicalIndexToValueMap)}return(0,i.default)(e,[{key:"reset",value:function(){(0,a.arrayEach)(this.elements,(function(e){return e.reset()}))}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return null===this.hot||this.hidden}},{key:"restoreState",value:function(e){this.state&&this.setState(this.state.getValueAtIndex(e))}},{key:"setState",value:function(){throw new Error("The state setting logic is not implemented")}},{key:"saveState",value:function(e){this.state&&this.state.setValueAtIndex(e,this.getState())}},{key:"getState",value:function(){throw new Error("The state gathering logic is not implemented")}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,a.arrayEach)(this.elements,(function(e){return e.destroy()})),this.state=null,this.elements=null,this.hot=null}}]),e}();(0,s.mixin)(c,l.default);var d=c;t.default=d},function(e,t,n){var r=n(38),o=n(188),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(38),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(76),o=n(136),i=n(79),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r=n(21),o=n(56),i=n(94),a=n(140),s=n(42),l=n(363),u=n(167),c=n(254),d=n(168),h=n(104),f=n(83),v=n(41),g=n(138),p=n(252),y=a.PROPER,m=a.CONFIGURABLE,C=p.IteratorPrototype,w=p.BUGGY_SAFARI_ITERATORS,E=v("iterator"),R=function(){return this};e.exports=function(e,t,n,a,v,p,S){l(n,t,a);var b,T,O,_=function(e){if(e===v&&P)return P;if(!w&&e in M)return M[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",k=!1,M=e.prototype,N=M[E]||M["@@iterator"]||v&&M[v],P=!w&&N||_(v),A="Array"==t&&M.entries||N;if(A&&(b=u(A.call(new e)))!==Object.prototype&&b.next&&(i||u(b)===C||(c?c(b,C):s(b[E])||f(b,E,R)),d(b,I,!0,!0),i&&(g[I]=R)),y&&"values"==v&&N&&"values"!==N.name&&(!i&&m?h(M,"name","values"):(k=!0,P=function(){return o(N,this)})),v)if(T={values:_("values"),keys:p?P:_("keys"),entries:_("entries")},S)for(O in T)(w||k||!(O in M))&&f(M,O,T[O]);else r({target:t,proto:!0,forced:w||k},T);return i&&!S||M[E]===P||f(M,E,P,{name:v}),g[t]=P,T}},function(e,t){e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){var r={};r[n(41)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(27),o=n(96),i=n(49),a=n(71),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),h=o(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=l(d,h))<55296||r>56319||h+1===f||(c=l(d,h+1))<56320||c>57343?e?s(d,h):r:e?u(d,h,h+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){var r=n(26);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(83);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(85),o=n(76),i=n(117).f,a=n(198),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},function(e,t,n){var r=n(136),o=n(79),i=n(118),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=o(e),u=r(t,l),c=r(void 0===n?l:n,l),d=a(s(c-u,0)),h=0;u<c;u++,h++)i(d,h,e[u]);return d.length=h,d}},function(e,t,n){var r=n(142),o=n(56),i=n(54),a=n(116),s=n(255),l=n(79),u=n(95),c=n(256),d=n(200),h=n(257),f=TypeError,v=function(e,t){this.stopped=e,this.result=t},g=v.prototype;e.exports=function(e,t,n){var p,y,m,C,w,E,R,S=n&&n.that,b=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),I=r(t,S),k=function(e){return p&&h(p,"normal",e),new v(!0,e)},M=function(e){return b?(i(e),_?I(e[0],e[1],k):I(e[0],e[1])):_?I(e,k):I(e)};if(T)p=e.iterator;else if(O)p=e;else{if(!(y=d(e)))throw f(a(e)+" is not iterable");if(s(y)){for(m=0,C=l(e);C>m;m++)if((w=M(e[m]))&&u(g,w))return w;return new v(!1)}p=c(e,y)}for(E=T?e.next:p.next;!(R=o(E,p)).done;){try{w=M(R.value)}catch(e){h(p,"throw",e)}if("object"==typeof w&&w&&u(g,w))return w}return new v(!1)}},function(e,t,n){var r=n(169),o=n(101),i=n(82),a=n(138),s=n(41)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},function(e,t,n){var r=n(95),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},function(e,t,n){var r=n(42),o=n(55),i=n(254);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},function(e,t,n){var r=n(370);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(264);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(26),o=n(38).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){"use strict";var r=n(194).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r,o=n(38),i=n(106),a=n(42),s=n(393),l=n(99),u=n(146),c=n(278),d=o.Function,h=/MSIE .\./.test(l)||s&&((r=o.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return h?function(r,o){var s=c(arguments.length,1)>n,l=a(r)?r:d(r),h=s?u(arguments,n):[],f=s?function(){i(l,this,h)}:l;return t?e(f,o):e(f)}:e}},function(e,t,n){var r=n(209),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(55),o=n(85),i=n(41)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(41)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(96),o=n(49),i=n(71),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",s=r(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._dataToHTML=function(e){for(var t=e.length,n=["<table>"],r=0;r<t;r+=1){var o=e[r],a=o.length,s=[];0===r&&n.push("<tbody>");for(var l=0;l<a;l+=1){var u=o[l],c=(0,i.isEmpty)(u)?"":u.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(function(e){return'<span style="mso-spacerun: yes">'.concat("&nbsp;".repeat(e.length-1)," </span>")})).replace(/\t/gi,"&#9;");s.push("<td>".concat(c,"</td>"))}n.push.apply(n,["<tr>"].concat(s,["</tr>"])),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),i=t.createElement("div");r.appendChild(i);var u=e;if("string"==typeof u){var c=u.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/<td\b[^>]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("</td>")}));i.insertAdjacentHTML("afterbegin","".concat(c)),u=i.querySelector("table")}if(!u||!l(u))return;var d=i.querySelector('meta[name$="enerator"]'),h=null!==u.querySelector("tbody th"),f=u.querySelector("tr"),v=f?Array.from(f.cells).reduce((function(e,t){return e+t.colSpan}),0)-(h?1:0):0,g=u.tFoot&&Array.from(u.tFoot.rows)||[],p=[],y=!1,m=0,C=0;if(u.tHead){var w=Array.from(u.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&p.push(e),!t}));m=w.length,y=m>0,m>1?n.nestedHeaders=Array.from(w).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(h&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):y&&(n.colHeaders=Array.from(w[0].children).reduce((function(e,t,n){return h&&0===n||e.push(t.innerHTML),e}),[]))}p.length&&(n.fixedRowsTop=p.length);g.length&&(n.fixedRowsBottom=g.length);var E=[].concat(p,(0,o.default)(Array.from(u.tBodies).reduce((function(e,t){return e.push.apply(e,(0,o.default)(Array.from(t.rows))),e}),[])),(0,o.default)(g));C=E.length;for(var R=new Array(C),S=0;S<C;S++)R[S]=new Array(v);for(var b=[],T=[],O=0;O<C;O++)for(var _=E[O],I=Array.from(_.cells),k=I.length,M=0;M<k;M++){var N=I[M],P=N.nodeName,A=N.innerHTML,x=N.rowSpan,D=N.colSpan,L=R[O].findIndex((function(e){return void 0===e}));if("TD"===P){if(x>1||D>1){for(var H=O;H<O+x;H++)if(H<C)for(var B=L;B<L+D;B++)R[H][B]=null;var F=N.getAttribute("style"),V=F&&F.includes("mso-ignore:colspan");V||b.push({col:L,row:O,rowspan:x,colspan:D})}var U="";U=d&&/excel/gi.test(d.content)?A.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):A.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),R[O][L]=U.replace(s,(function(e){return a[e]}))}else T.push(A)}b.length&&(n.mergeCells=b);T.length&&(n.rowHeaders=T);R.length&&(n.data=R);return n},t.instanceToHTML=function(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),a=o.length,s=a>0?o[0].length:0,l=["<table>","</table>"],u=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],d=n?1:0,h=t?1:0,f=0;f<a;f+=1){for(var v=t&&0===f,g=[],p=0;p<s;p+=1){var y=!v&&n&&0===p,m="";if(v)m="<th>".concat(e.getColHeader(p-d),"</th>");else if(y)m="<th>".concat(e.getRowHeader(f-h),"</th>");else{var C=o[f][p],w=e.getCellMeta(f-h,p-d),E=w.hidden,R=w.rowspan,S=w.colspan;if(!E){var b=[];if(R&&b.push('rowspan="'.concat(R,'"')),S&&b.push('colspan="'.concat(S,'"')),(0,i.isEmpty)(C))m="<td ".concat(b.join(" "),"></td>");else{var T=C.toString().replace("<","&lt;").replace(">","&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");m="<td ".concat(b.join(" "),">").concat(T,"</td>")}}}g.push(m)}var O=["<tr>"].concat(g,["</tr>"]).join("");v?u.splice(1,0,O):c.splice(-1,0,O)}return l.splice(1,0,u.join(""),c.join("")),l.join("")};var o=r(n(29));n(122),n(43),n(80),n(74),n(50),n(37),n(67),n(1),n(19),n(46),n(409),n(286),n(410),n(175),n(40),n(5),n(30),n(176),n(28),n(35);var i=n(24),a={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},s=new RegExp(Object.keys(a).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function l(e){return"TABLE"===(e&&e.nodeName||"")}},function(e,t,n){"use strict";t.__esModule=!0,t.RENDER_TYPE=t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=r(n(63)),l=r(n(64));function u(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var c=new WeakMap,d=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,e),(0,a.default)(this,"row",null),(0,a.default)(this,"col",null),u(this,c,{writable:!0,value:!1}),(0,l.default)(this,c,r),void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return(0,i.default)(e,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"normalize",value:function(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}},{key:"clone",value:function(){return new e(this.row,this.col,(0,s.default)(this,c))}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=n(68),u=r(n(44)),c=r(n(440)),d=r(n(214)),h=r(n(290)),f=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"wtTable",void 0),(0,a.default)(this,"wtScroll",void 0),(0,a.default)(this,"wtViewport",void 0),(0,a.default)(this,"wtOverlays",void 0),(0,a.default)(this,"selections",void 0),(0,a.default)(this,"wtEvent",void 0),(0,a.default)(this,"guid","wt_".concat((0,l.randomString)())),(0,a.default)(this,"drawInterrupted",!1),(0,a.default)(this,"drawn",!1),(0,a.default)(this,"domBindings",void 0),(0,a.default)(this,"wtSettings",void 0),this.domBindings={rootTable:t,rootDocument:t.ownerDocument,rootWindow:t.ownerDocument.defaultView},this.wtSettings=n,this.wtScroll=new c.default(this.createScrollDao())}return(0,i.default)(e,[{key:"eventManager",get:function(){return new u.default(this)}},{key:"findOriginalHeaders",value:function(){var e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,s.fastInnerText)(n,e[t])}])}}},{key:"createCellCoords",value:function(e,t){return new d.default(e,t,this.wtSettings.getSetting("rtlMode"))}},{key:"createCellRange",value:function(e,t,n){return new h.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<i)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=n-o){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>=n-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"scrollViewport",value:function(e,t,n,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{key:"createScrollDao",value:function(){var e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}},{key:"getTableDao",value:function(){var e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selections(){return e.selections},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count}}}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){var e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getRenderedColumnsCount:function(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount:function(){return this.dataAccessObject.countColumnsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===o},t.holder=void 0,t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)},t.rootInstanceSymbol=void 0,n(4),n(1),n(5),n(7),n(6),n(53),n(152);var r=new WeakMap;t.holder=r;var o=Symbol("rootInstance");t.rootInstanceSymbol=o},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PhysicalIndexToValueMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(18)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(181),d=n(220);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"insert",value:function(e,t){this.indexedValues=(0,d.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,d.getListWithRemovedItems)(this.indexedValues,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.PhysicalIndexToValueMap=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n,r){var a=n.length?n[0]:void 0;return[].concat((0,o.default)(e.slice(0,a)),(0,o.default)(n.map((function(e,t){return(0,i.isFunction)(r)?r(e,t):r}))),(0,o.default)(void 0===a?[]:e.slice(a)))},t.getListWithRemovedItems=function(e,t){return(0,a.arrayFilter)(e,(function(e,n){return!1===t.includes(n)}))},n(19),n(33),n(50),n(28),n(35);var o=r(n(29)),i=n(51),a=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.MapCollection=void 0,t.getRegisteredMapsCounter=function(){return u},n(4),n(36),n(1),n(5),n(6),n(20),n(40);var o=r(n(2)),i=r(n(3)),a=n(24),s=n(12),l=r(n(75)),u=0,c=function(){function e(){(0,o.default)(this,e),this.collection=new Map}return(0,i.default)(e,[{key:"register",value:function(e,t){var n=this;!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(function(){return n.runLocalHooks("change",t)})),u+=1)}},{key:"unregister",value:function(e){var t=this.collection.get(e);(0,a.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),u-=1)}},{key:"unregisterAll",value:function(){var e=this;this.collection.forEach((function(t,n){return e.unregister(n)})),this.collection.clear()}},{key:"get",value:function(e){return(0,a.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}},{key:"getLength",value:function(){return this.collection.size}},{key:"removeFromEvery",value:function(e){this.collection.forEach((function(t){t.remove(e)}))}},{key:"insertToEvery",value:function(e,t){this.collection.forEach((function(n){n.insert(e,t)}))}},{key:"initEvery",value:function(e){this.collection.forEach((function(t){t.init(e)}))}}]),e}();t.MapCollection=c,(0,s.mixin)(c,l.default)},function(e,t,n){"use strict";n(1),n(20),n(37);var r=n(0);t.__esModule=!0;var o={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},i=r(n(309));t.Highlight=i.default;var a=r(n(489));t.Selection=a.default;var s=n(300);t.handleMouseEvent=s.handleMouseEvent;var l=n(183);t.detectSelectionType=l.detectSelectionType,t.normalizeSelectionFactory=l.normalizeSelectionFactory;var u=n(87);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}))},function(e,t,n){n(302)("iterator")},function(e,t,n){var r=n(21),o=n(486);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var r=n(516);t.EDITOR_TYPE=r.EDITOR_TYPE,t.AutocompleteEditor=r.AutocompleteEditor},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var r=n(517);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var r=n(519);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DateEditor=r.DateEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteValidator=t.VALIDATOR_TYPE=void 0;var r=n(539);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(20),n(123);var o=r(n(22)),i=r(n(2)),a=r(n(3)),s=n(15),l=n(13),u=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return(0,a.default)(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){var t=this.hot.getColHeader(0);if(null!=t){var n={row:-1};this.rows.push(n),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,l.arrayEach)(this.rows,(function(t){e(t.row,(0,s.outerHeight)(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,l.arrayEach)(this.columns,(function(t){var n=t.table.getBoundingClientRect().width;e(t.col,Math.ceil(n))}))}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach((function(n){(0,l.arrayEach)(n.strings,(function(n){t.appendChild(e.createColElement(n.col))}))})),t}},{key:"createRow",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),r.appendChild(o)),this.samples.forEach((function(o){(0,l.arrayEach)(o.strings,(function(o){var i=o.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");l.setAttribute("ghost-table",1),s(t.hot,l,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(l)}))})),r}},{key:"appendColumnHeadersRow",value:function(){var e=this,t=this.hot.rootDocument,n=t.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){var i=t.createElement("th");r.push([-1,i]),n.appendChild(i)}this.samples.forEach((function(e){(0,l.arrayEach)(e.strings,(function(e){var o=e.col,i=t.createElement("th");r.push([o,i]),n.appendChild(i)}))})),this.table.tHead.appendChild(n),(0,l.arrayEach)(r,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];e.hot.view.appendColHeader(r,i)}))}},{key:"createCol",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment();return this.samples.forEach((function(o){(0,l.arrayEach)(o.strings,(function(o){var i=o.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),l=n.createElement("td"),u=n.createElement("tr");l.setAttribute("ghost-table",1),s(t.hot,l,i,e,t.hot.colToProp(e),o.value,a),u.appendChild(l),r.appendChild(u)}))})),r}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view._wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(l.appendChild(u),o.appendChild(l),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(l),r.appendChild(i),(0,s.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div"),o="htGhostTable htAutoSize ".concat(e.trim());return(0,s.addClass)(r,o),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0,t.areValidSortStates=function(e){if(e.some((function(e){return!1===function(e){if(!1===(0,r.isObject)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[i,a].includes(n)}(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat("colHeader"))},t.getNextSortOrder=function(e){if(e===a)return;if(e===i)return a;return i},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;if(Array.from(n).indexOf(t.parentNode)-n.length!=-1)return!1;return!0},t.wasHeaderClickedProperly=function(e,t,n){return-1===e&&t>=0&&!1===(0,o.isRightClick)(n)},n(60),n(61),n(28),n(1),n(50),n(4),n(45),n(5),n(6),n(23),n(40);var r=n(12),o=n(62),i="asc";t.ASC_SORT_STATE=i;var a="desc";t.DESC_SORT_STATE=a;t.HEADER_SPAN_CLASS="colHeader"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{name:"---------"}};t.KEY="---------"},function(e,t,n){"use strict";n(53),n(30),n(16),n(20),n(66);var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(57),n(37),n(43),n(122),n(80),n(1),n(67),n(19);var o=r(n(25)),i=r(n(2)),a=r(n(3)),s=r(n(609)),l=n(93),u=n(81),c=r(n(262)),d=r(n(44)),h=n(13),f=n(78),v=n(15),g=n(62),p=n(51),y=n(24),m=n(12),C=r(n(75));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.eventManager=new d.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return(0,a.default)(e,[{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"mousedown",(function(t){return e.onDocumentMouseDown(t)})),this.eventManager.addEventListener(t.document,"contextmenu",(function(t){return e.onDocumentContextMenu(t)})),t=(0,v.getParentWindow)(t)}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"getSelectedItem",value:function(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.hotMenu.getSelectedLast())}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,p.debounce)((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||215,r=!1,o=(0,h.arrayFilter)(this.menuItems,(function(t){return t.key===l.NO_ITEMS&&(r=!0),(0,u.isItemHidden)(t,e.hot)}));if(o.length<1&&!r)o.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===o.length)return;o=(0,u.filterSeparators)(o,l.SEPARATOR);var i=!1,a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(e){return(0,y.isDefined)(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,maxCols:1,columns:[{data:"name",renderer:function(t,n,r,o,i,a){return e.menuItemRenderer(t,n,r,o,i,a)}}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===l.SEPARATOR?1:23},afterOnCellContextMenu:function(t){t.preventDefault(),(0,f.isWindowsOS)()&&i&&e.hasSelectedItem()&&e.close(!0)},beforeOnCellMouseUp:function(t){e.hasSelectedItem()&&(i=!e.isCommandPassive(e.getSelectedItem()),e.executeCommand(t))},afterOnCellMouseUp:function(t){(0,f.isWindowsOS)()&&(0,g.isRightClick)(t)||!i||!e.hasSelectedItem()||((0,f.isMobileBrowser)()||(0,f.isIpadOS)()?setTimeout((function(){return e.close(!0)}),325):e.close(!0))},afterUnlisten:function(){!e.hasSelectedItem()&&e.isOpened()&&e.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new c.default(this.container,a),this.hotMenu.addHook("afterInit",(function(){return e.onAfterInit()})),this.hotMenu.addHook("afterSelection",(function(){return e.onAfterSelection.apply(e,arguments)})),this.hotMenu.init(),this.hotMenu.listen();var s=this.hotMenu.getShortcutManager(),d=s.addContext("menu"),m=E(E({},{group:"menu"}),{},{runOnlyIf:function(t){return!1===(0,v.isInput)(t.target)||!1===e.container.contains(t.target)}});s.setActiveContextName("menu"),d.addShortcuts([{keys:[["Escape"]],callback:function(){e.keyEvent=!0,e.close(),e.keyEvent=!1}},{keys:[["ArrowDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectNextCell(t[0],t[1]):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["ArrowUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectPrevCell(t[0],t[1]):e.selectLastCell(),e.keyEvent=!1}},{keys:[["ArrowRight"]],callback:function(){var t=e.hotMenu.getSelectedLast();if(e.keyEvent=!0,t){var n=e.openSubMenu(t[0]);n&&n.selectFirstCell()}e.keyEvent=!1}},{keys:[["ArrowLeft"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t&&e.isSubMenu()&&(e.close(),e.parentMenu&&e.parentMenu.hotMenu.listen()),e.keyEvent=!1}},{keys:[["Enter"]],callback:function(t){var n=e.hotMenu.getSelectedLast();e.keyEvent=!0,e.hotMenu.getSourceDataAtRow(n[0]).submenu||(e.executeCommand(t),e.close(!0)),e.keyEvent=!1}},{keys:[["PageUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(-e.hotMenu.countVisibleRows(),0):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["PageDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(e.hotMenu.countVisibleRows(),0):e.selectLastCell(),e.keyEvent=!1}}],m),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,u.hasSubMenu)(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,h.arrayEach)(this.hotMenu.getData(),(function(t,n){return e.closeSubMenu(n)}))}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hasSelectedItem()){var t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),!this.isCommandPassive(t)){var n=this.hot.getSelectedRange(),r=n?(0,u.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}}}},{key:"isCommandPassive",value:function(e){var t=e.isCommand,n=e.name,r=e.disabled,o=e.submenu,i=!0===r||"function"==typeof r&&!0===r.call(this.hot);return!1===t||n===l.SEPARATOR||!0===i||o}},{key:"setPosition",value:function(e){var t=new s.default(e,this.container.ownerDocument.defaultView);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),this.hot.isLtr()?this.setHorizontalPositionForLtr(t):this.setHorizontalPositionForRtl(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setHorizontalPositionForRtl",value:function(e){e.fitsOnLeft(this.container)?this.setPositionOnLeftOfCursor(e):this.setPositionOnRightOfCursor(e)}},{key:"setHorizontalPositionForLtr",value:function(e){e.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(e):this.setPositionOnLeftOfCursor(e)}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top+1;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t=e.left;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().right;t+=e.cellWidth+n-(e.left+e.cellWidth)}else t+=this.offset.right;this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().left;t-=e.left-n}this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,u.isSeparator)(e)||(0,u.isDisabled)(e)||(0,u.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,u.isSeparator)(t)||(0,u.isDisabled)(t)||(0,u.isSelectionDisabled)(t)?this.selectPrevCell(e,0):(this.hotMenu.selectCell(e,0,void 0,void 0,!1),this.hotMenu.scrollViewportTo(e,0,!0,!1))}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;r&&((0,u.isSeparator)(r)||(0,u.isDisabled)(r)||(0,u.isSelectionDisabled)(r)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,r=n>=0?this.hotMenu.getCell(n,t):null;r&&((0,u.isSeparator)(r)||(0,u.isDisabled)(r)||(0,u.isSelectionDisabled)(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a,s=this,u=e.getSourceDataAtRow(n),c=this.hot.rootDocument.createElement("div"),d=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),(0,v.empty)(t),(0,v.addClass)(c,"htItemWrapper"),t.appendChild(c),a=u,new RegExp(l.SEPARATOR,"i").test(a.name)?(0,v.addClass)(t,"htSeparator"):"function"==typeof u.renderer?((0,v.addClass)(t,"htCustomMenuRenderer"),t.appendChild(u.renderer(e,c,n,r,o,h))):(0,v.fastInnerHTML)(c,h),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(u)?d(u)?((0,v.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):!function(e){return(0,m.hasOwnProperty)(e,"submenu")}(u)?((0,v.removeClass)(t,["htSubmenu","htDisabled"]),d(u)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,v.addClass)(t,"htSubmenu"),d(u)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,v.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.options.container.ownerDocument,r=t;return r&&((0,p.isFunction)(r)&&(r=null===(r=r.call(this.hot))||(0,y.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(e=n.createElement("div"),(0,v.addClass)(e,"htMenu ".concat(this.options.className)),r&&(0,v.addClass)(e,r),this.options.container.appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view._wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=(0,h.arrayReduce)(t,(function(e,t){return e+(t.name===l.SEPARATOR?1:26)}),0);r.width="".concat(o+3,"px"),r.height="".concat(i+3,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,v.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,v.isChildOf)(e.target,".htMenu")||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&(0,v.hasClass)(e.target,"htCore")&&(0,v.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();(0,m.mixin)(R,C.default);var S=R;t.default=S},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.TYPE_TEXT=t.TYPE_NUMERIC=t.TYPE_DATE=t.TYPES=void 0,t.default=function(e){var t=[],n=e;L[n]||(n="text");return(0,a.arrayEach)(L[n],(function(e){var n;n=e===s.SEPARATOR?{name:s.SEPARATOR}:(0,i.clone)((0,l.getConditionDescriptor)(e)),t.push(n)})),t};var o=r(n(25)),i=n(12),a=n(13),s=n(93),l=n(39),u=n(645);t.CONDITION_NONE=u.CONDITION_NAME;var c=n(340);t.CONDITION_EMPTY=c.CONDITION_NAME;var d=n(646);t.CONDITION_NOT_EMPTY=d.CONDITION_NAME;var h=n(341);t.CONDITION_EQUAL=h.CONDITION_NAME;var f=n(647);t.CONDITION_NOT_EQUAL=f.CONDITION_NAME;var v=n(648);t.CONDITION_GREATER_THAN=v.CONDITION_NAME;var g=n(649);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var p=n(650);t.CONDITION_LESS_THAN=p.CONDITION_NAME;var y=n(651);t.CONDITION_LESS_THAN_OR_EQUAL=y.CONDITION_NAME;var m=n(342);t.CONDITION_BETWEEN=m.CONDITION_NAME;var C=n(652);t.CONDITION_NOT_BETWEEN=C.CONDITION_NAME;var w=n(653);t.CONDITION_BEGINS_WITH=w.CONDITION_NAME;var E=n(654);t.CONDITION_ENDS_WITH=E.CONDITION_NAME;var R=n(345);t.CONDITION_CONTAINS=R.CONDITION_NAME;var S=n(656);t.CONDITION_NOT_CONTAINS=S.CONDITION_NAME;var b=n(344);t.CONDITION_DATE_BEFORE=b.CONDITION_NAME;var T=n(343);t.CONDITION_DATE_AFTER=T.CONDITION_NAME;var O=n(657);t.CONDITION_TOMORROW=O.CONDITION_NAME;var _=n(658);t.CONDITION_TODAY=_.CONDITION_NAME;var I=n(659);t.CONDITION_YESTERDAY=I.CONDITION_NAME;var k=n(660);t.CONDITION_BY_VALUE=k.CONDITION_NAME;var M=n(661);t.CONDITION_TRUE=M.CONDITION_NAME;var N=n(662);t.CONDITION_FALSE=N.CONDITION_NAME;var P=n(234);t.OPERATION_AND=P.OPERATION_ID;var A=n(346);t.OPERATION_OR=A.OPERATION_ID;var x,D=n(347);t.OPERATION_OR_THEN_VARIABLE=D.OPERATION_ID;t.TYPE_NUMERIC="numeric";t.TYPE_TEXT="text";t.TYPE_DATE="date";var L=(x={},(0,o.default)(x,"numeric",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,v.CONDITION_NAME,g.CONDITION_NAME,p.CONDITION_NAME,y.CONDITION_NAME,m.CONDITION_NAME,C.CONDITION_NAME]),(0,o.default)(x,"text",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,w.CONDITION_NAME,E.CONDITION_NAME,s.SEPARATOR,R.CONDITION_NAME,S.CONDITION_NAME]),(0,o.default)(x,"date",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,b.CONDITION_NAME,T.CONDITION_NAME,m.CONDITION_NAME,s.SEPARATOR,O.CONDITION_NAME,_.CONDITION_NAME,I.CONDITION_NAME]),x);t.TYPES=L},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(158);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="conjunction";var s=o.FILTERS_LABELS_CONJUNCTION;function l(e,t){return e.every((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("conjunction",s,l)},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(31)),s=r(n(18)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(15),h=n(12),f=r(n(159));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var g=new WeakMap,p=function(e){(0,l.default)(n,e);var t=v(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,h.extend)(n.DEFAULTS,r)),g.set((0,a.default)(i),{}),i.registerHooks(),i}return(0,i.default)(n,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()})),this.addLocalHook("keyup",(function(t){return e.onKeyup(t)}))}},{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=g.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,d.addClass)(this._element,"htUIInput"),(0,d.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=g.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&g.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}],[{key:"DEFAULTS",get:function(){return(0,h.clone)({placeholder:"",type:"text",tagName:"input"})}}]),n}(f.default);t.default=p},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.SETTING_KEYS=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0,n(19),n(1),n(20),n(4),n(45),n(5),n(6),n(50),n(128),n(33),n(28),n(35),n(147),n(77),n(7);var o=r(n(29)),i=r(n(14)),a=r(n(22)),s=r(n(2)),l=r(n(3)),u=r(n(31)),c=r(n(18)),d=r(n(10)),h=r(n(11)),f=r(n(8)),v=r(n(25)),g=r(n(64)),p=r(n(63)),y=n(34),m=r(n(86)),C=n(69),w=n(32),E=n(24),R=n(676),S=n(677),b=n(350),T=n(111),O=n(68),_=r(n(52)),I=r(n(678));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function M(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var N="formulas";t.PLUGIN_KEY=N;var P=["maxRows","maxColumns","language"];t.SETTING_KEYS=P;t.PLUGIN_PRIORITY=260,_.default.getSingleton().register("afterNamedExpressionAdded"),_.default.getSingleton().register("afterNamedExpressionRemoved"),_.default.getSingleton().register("afterSheetAdded"),_.default.getSingleton().register("afterSheetRemoved"),_.default.getSingleton().register("afterSheetRenamed"),_.default.getSingleton().register("afterFormulasValuesUpdate");var A=function(e){return"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e},x=new WeakMap,D=new WeakMap,L=new WeakMap,H=function(e){(0,d.default)(n,e);var t=k(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),M((0,u.default)(e),x,{writable:!0,value:!1}),M((0,u.default)(e),D,{writable:!0,value:!1}),M((0,u.default)(e),L,{writable:!0,value:[["valuesUpdated",function(){var t;return(t=e).onEngineValuesUpdated.apply(t,arguments)}],["namedExpressionAdded",function(){var t;return(t=e).onEngineNamedExpressionsAdded.apply(t,arguments)}],["namedExpressionRemoved",function(){var t;return(t=e).onEngineNamedExpressionsRemoved.apply(t,arguments)}],["sheetAdded",function(){var t;return(t=e).onEngineSheetAdded.apply(t,arguments)}],["sheetRenamed",function(){var t;return(t=e).onEngineSheetRenamed.apply(t,arguments)}],["sheetRemoved",function(){var t;return(t=e).onEngineSheetRemoved.apply(t,arguments)}]]}),(0,v.default)((0,u.default)(e),"staticRegister",(0,m.default)("formulas")),(0,v.default)((0,u.default)(e),"engine",null),(0,v.default)((0,u.default)(e),"sheetName",null),(0,v.default)((0,u.default)(e),"indexSyncer",null),(0,v.default)((0,u.default)(e),"rowAxisSyncer",null),(0,v.default)((0,u.default)(e),"columnAxisSyncer",null),e}return(0,l.default)(n,[{key:"sheetId",get:function(){return null===this.sheetName?null:this.engine.getSheetId(this.sheetName)}},{key:"isEnabled",value:function(){return!!this.hot.getSettings()[N]}},{key:"enablePlugin",value:function(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,R.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){var r=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==r&&(this.sheetName=r)}this.addHook("beforeLoadData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterLoadData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("beforeUpdateData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterUpdateData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("modifyData",(function(){return t.onModifyData.apply(t,arguments)})),this.addHook("modifySourceData",(function(){return t.onModifySourceData.apply(t,arguments)})),this.addHook("beforeValidate",(function(){return t.onBeforeValidate.apply(t,arguments)})),this.addHook("afterSetSourceDataAtCell",(function(){return t.onAfterSetSourceDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtCell",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtRowProp",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("beforeCreateRow",(function(){return t.onBeforeCreateRow.apply(t,arguments)})),this.addHook("beforeCreateCol",(function(){return t.onBeforeCreateCol.apply(t,arguments)})),this.addHook("afterCreateRow",(function(){return t.onAfterCreateRow.apply(t,arguments)})),this.addHook("afterCreateCol",(function(){return t.onAfterCreateCol.apply(t,arguments)})),this.addHook("beforeRemoveRow",(function(){return t.onBeforeRemoveRow.apply(t,arguments)})),this.addHook("beforeRemoveCol",(function(){return t.onBeforeRemoveCol.apply(t,arguments)})),this.addHook("afterRemoveRow",(function(){return t.onAfterRemoveRow.apply(t,arguments)})),this.addHook("afterRemoveCol",(function(){return t.onAfterRemoveCol.apply(t,arguments)})),this.indexSyncer=new I.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,(function(e){t.hot.addHookOnce("init",(function(){e()}))})),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(function(e,n,r,o){t.rowAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("beforeColumnMove",(function(e,n,r,o){t.columnAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("afterRowMove",(function(e,n,r,o,i){t.rowAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("afterColumnMove",(function(e,n,r,o,i){t.columnAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("beforeColumnFreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart,n)})),this.hot.addHook("afterColumnFreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.hot.addHook("beforeColumnUnfreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart-1,n)})),this.hot.addHook("afterColumnUnfreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.addHook("afterCellMetaReset",(function(){return t.onAfterCellMetaReset.apply(t,arguments)})),this.addHook("beforeUndo",(function(){t.indexSyncer.setPerformUndo(!0),t.engine.undo()})),this.addHook("beforeRedo",(function(){t.indexSyncer.setPerformRedo(!0),t.engine.redo()})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformUndo(!1)})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformRedo(!1)})),this.addHook("afterDetachChild",(function(){return t.onAfterDetachChild.apply(t,arguments)})),this.addHook("beforeAutofill",(function(){return t.onBeforeAutofill.apply(t,arguments)})),(0,p.default)(this,L).forEach((function(e){var n=(0,a.default)(e,2),r=n[0],o=n[1];return t.engine.on(r,o)})),(0,c.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this)}else(0,C.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}},{key:"disablePlugin",value:function(){var e=this;(0,p.default)(this,L).forEach((function(t){var n=(0,a.default)(t,2),r=n[0],o=n[1];return e.engine.off(r,o)})),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(e){var t=(0,b.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,b.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);var r=this.hot.getSettings()[N];if((0,E.isDefined)(r)&&(0,E.isDefined)(r.sheetName)&&r.sheetName!==this.sheetName&&this.switchSheet(r.sheetName),!e.data&&null===this.sheetName){var o=this.hot.getSettings()[N].sheetName;o&&this.engine.doesSheetExist(o)?this.switchSheet(this.sheetName):this.sheetName=this.addSheet(null!=o?o:void 0,this.hot.getSourceDataArray())}(0,c.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this,e)}},{key:"destroy",value:function(){var e=this;(0,p.default)(this,L).forEach((function(t){var n,r=(0,a.default)(t,2),o=r[0],i=r[1];return null===(n=e.engine)||void 0===n?void 0:n.off(o,i)})),(0,g.default)(this,L,null),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"addSheet",value:function(e,t){if((0,E.isDefined)(t)&&!(0,T.isArrayOfArrays)(t))return(0,C.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,C.warn)("Sheet with the provided name already exists."),!1;try{var n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,C.warn)(e.message),!1}}},{key:"switchSheet",value:function(e){if(this.engine.doesSheetExist(e)){this.sheetName=e;var t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,"".concat((0,O.toUpperCaseFirst)(N),".switchSheet"))}else(0,C.error)("The sheet named `".concat(e,"` does not exist, switch aborted."))}},{key:"getCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId,r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}},{key:"isFormulaCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}},{key:"renderDependentSheets",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Set;e.forEach((function(e){var t,n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))})),(0,R.getRegisteredHotInstances)(this.engine).forEach((function(e,o){var i;(n||o!==t.sheetId)&&r.has(o)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())}))}},{key:"validateDependentCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(e){var t,n=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{},r=n.row,o=n.col,i=n.sheet;return(0,E.isDefined)(i)?"".concat(i,":").concat(r,"x").concat(o):""},o=new Set(n.map((function(e){return r(e)})));e.forEach((function(e){var n,i,a=null!==(n=e.address)&&void 0!==n?n:{},s=a.row,l=a.col;if(!(!1===(0,E.isDefined)(s)||!1===(0,E.isDefined)(l)||s>=t.hot.countRows()||l>=t.hot.countCols())){var u=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,c=r(e);if(void 0!==u&&!o.has(c)){var d=(0,R.getRegisteredHotInstances)(t.engine).get(u);if(!d)return;d.validateCell(d.getDataAtCell(s,l),d.getCellMeta(s,l),(function(){}))}}}))}},{key:"syncChangeWithEngine",value:function(e,t,n){var r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(this.engine.isItPossibleToSetCellContents(r)){var o=this.hot.getCellMeta(e,t);return(0,S.isDate)(n,o.type)&&((0,S.isDateValid)(n,o.dateFormat)?n=(0,S.getDateInHfFormat)(n,o.dateFormat):!1===(0,S.isFormula)(n)&&(n="'".concat(n))),this.engine.setCellContents(r,n)}(0,C.warn)("Not possible to set cell data at ".concat(JSON.stringify(r)))}},{key:"onBeforeValidate",value:function(e,t,n){var r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){var o={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},a=this.hot.getCellMeta(t,r),s=this.engine.getCellValue(o);return"date"===a.type&&(0,w.isNumeric)(s)&&(s=(0,S.getDateFromExcelDate)(s,a.dateFormat)),"object"===(0,i.default)(s)&&null!==s?s.value:s}return e}},{key:"onBeforeAutofill",value:function(e,t,n){var r=t.getTopStartCorner(),o=r.row,i=r.col,a=t.getBottomEndCorner(),s=a.row,l=a.col,u=n.getTopStartCorner(),c=u.row,d=u.col,h=n.getBottomEndCorner(),f=h.row,v=h.col,g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId}},p={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(c),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(d),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(f),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(v),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(p))return!1;for(var y=this.engine.getFillRangeData(g,p),m=g.start,C=m.row,w=m.col,E=g.end,R=E.row-C+1,b=E.col-w+1,T=0;T<y.length;T+=1)for(var O=0;O<y[T].length;O+=1){var _=y[T][O],I=T%R,k=O%b,M=this.hot.getCellMeta(I,k);(0,S.isDate)(_,M.type)&&(_.startsWith("'")?y[T][O]=_.slice(1):!1===this.isFormulaCellType(I,k,this.sheetId)&&(y[T][O]=(0,S.getDateInHotFormat)(_,M.dateFormat)))}return y}},{key:"onBeforeLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";n.includes((0,O.toUpperCaseFirst)(N))||(0,g.default)(this,D,(0,E.isUndefined)(this.hot.getSettings().data))}},{key:"onAfterCellMetaReset",value:function(){var e=this,t=this.hot.getSourceDataArray(),n=!1;t.forEach((function(r,o){r.forEach((function(r,i){var a=e.hot.getCellMeta(o,i),s=a.dateFormat;(0,S.isDate)(r,a.type)&&(n=!0,(0,S.isDateValid)(r,s)?t[o][i]=(0,S.getDateInHfFormat)(r,s):!1===e.isFormulaCellType(o,i)&&(t[o][i]="'".concat(r)))}))})),!0===n&&((0,g.default)(this,x,!0),this.engine.setSheetContent(this.sheetId,t),(0,g.default)(this,x,!1))}},{key:"onAfterLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n.includes((0,O.toUpperCaseFirst)(N)))if(this.sheetName=(0,R.setupSheet)(this.engine,this.hot.getSettings()[N].sheetName),(0,p.default)(this,D))this.switchSheet(this.sheetName);else{var r=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,r)){(0,g.default)(this,x,!0);var o=this.engine.setSheetContent(this.sheetId,r);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(o),(0,g.default)(this,x,!1)}}}},{key:"onModifyData",value:function(e,t,n,r){if("get"===r&&!(0,p.default)(this,x)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e);if(null!==o&&null!==t){if(!this.isFormulaCellType(o,t))if("ARRAY"!==this.getCellType(o,t))return void((0,S.isEscapedFormulaExpression)(n.value)&&(n.value=(0,S.unescapeFormulaExpression)(n.value)));var a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId},s=this.engine.getCellValue(a),l=this.hot.getCellMeta(o,t);"date"===l.type&&(0,w.isNumeric)(s)&&(s=(0,S.getDateFromExcelDate)(s,l.dateFormat));var u="object"===(0,i.default)(s)&&null!==s?s.value:s;n.value=u}}}},{key:"onModifySourceData",value:function(e,t,n,r){if("get"===r&&!(0,p.default)(this,x)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null!==o&&null!==i){if(!this.isFormulaCellType(o,i))if("ARRAY"!==this.getCellType(o,i))return;var a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0!==a.width||0!==a.height){var s={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(s)}}}}},{key:"onAfterSetDataAtCell",value:function(e,t){var n=this;if(!A(t)){var r=[],o=[],i=this.engine.batch((function(){e.forEach((function(e){var t=(0,a.default)(e,4),i=t[0],s=t[1],l=t[3],u=n.hot.propToCol(s),c=n.hot.toPhysicalRow(i),d=n.hot.toPhysicalColumn(u),h={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:n.sheetId};null!==c&&null!==d?n.syncChangeWithEngine(i,u,l):r.push([i,u,l]),o.push({address:h})}))}));r.length&&this.hot.addHookOnce("afterChange",(function(){var e=n.engine.batch((function(){r.forEach((function(e){var t=(0,a.default)(e,3),r=t[0],o=t[1],i=t[2];n.syncChangeWithEngine(r,o,i)}))}));n.renderDependentSheets(e,!0)})),this.renderDependentSheets(i),this.validateDependentCells(i,o)}}},{key:"onAfterSetSourceDataAtCell",value:function(e,t){var n=this;if(!A(t)){var r=[],i=[];e.forEach((function(e){var t=(0,a.default)(e,4),s=t[0],l=t[1],u=t[3],c=n.hot.propToCol(l);if((0,w.isNumeric)(c)){var d={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:n.sheetId};n.engine.isItPossibleToSetCellContents(d)?(i.push({address:d}),r.push.apply(r,(0,o.default)(n.engine.setCellContents(d,u)))):(0,C.warn)("Not possible to set source cell data at ".concat(JSON.stringify(d)))}})),this.renderDependentSheets(r),this.validateDependentCells(r,i)}}},{key:"onBeforeCreateRow",value:function(e,t){var n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}},{key:"onBeforeCreateCol",value:function(e,t){var n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this;return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveRows(r.sheetId,[e,1])}))&&void 0}},{key:"onBeforeRemoveCol",value:function(e,t,n){var r=this;return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveColumns(r.sheetId,[e,1])}))&&void 0}},{key:"onAfterCreateRow",value:function(e,t,n){if(!A(n)){var r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterCreateCol",value:function(e,t,n){if(!A(n)){var r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(!A(r)){var i=this.rowAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeRows(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterRemoveCol",value:function(e,t,n,r){var o=this;if(!A(r)){var i=this.columnAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeColumns(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterDetachChild",value:function(e,t,n){var r,o=this;(0,g.default)(this,x,!0);var i=this.hot.getSourceDataArray(n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());(0,g.default)(this,x,!1),i.forEach((function(e,t){e.forEach((function(e,r){o.engine.setCellContents({col:r,row:n+t,sheet:o.sheetId},[[e]])}))}))}},{key:"onEngineValuesUpdated",value:function(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}},{key:"onEngineNamedExpressionsAdded",value:function(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}},{key:"onEngineNamedExpressionsRemoved",value:function(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}},{key:"onEngineSheetAdded",value:function(e){this.hot.runHooks("afterSheetAdded",e)}},{key:"onEngineSheetRenamed",value:function(e,t){this.hot.runHooks("afterSheetRenamed",e,t)}},{key:"onEngineSheetRemoved",value:function(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}}],[{key:"PLUGIN_KEY",get:function(){return N}},{key:"PLUGIN_PRIORITY",get:function(){return 260}},{key:"SETTING_KEYS",get:function(){return[N].concat(P)}}]),n}(y.BasePlugin);t.Formulas=H},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,i,a,s,l=r(n(58)),u=r(n(2)),c=r(n(3)),d=n(59),h=function(){function e(t,n,r,o,i,a){(0,u.default)(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1,this.cellCoordsFactory=i,this.cellRangeFactory=a}return(0,c.default)(e,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),l=this[i],u=this[i]+this[o]-1;if(l>=t&&(this[i]+=n),n>0)t<=u&&t>l&&(this[o]+=n);else if(n<0){if(a<=l&&s>=u)return this.removed=!0,!1;if(l>=a&&l<=s){var c=s-l+1,d=Math.abs(n)-c;this[i]-=d+n,this[o]-=c}else if(l<=a&&u>=s)this[o]+=n;else if(l<=a&&u>=a&&u<s){var h=u-a+1;this[o]-=h}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,d.toSingleLine)(o||(o=(0,l.default)(["The merged cell declared with {row: ",", col: ",", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."])),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,d.toSingleLine)(i||(i=(0,l.default)(["The merged cell declared at [",", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."])),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,d.toSingleLine)(a||(a=(0,l.default)(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'])),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,d.toSingleLine)(s||(s=(0,l.default)(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'])),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=(0,o.default)((function e(t,n){(0,i.default)(this,e),this.hot=n,this.plugin=t}));t.default=a},function(e,t,n){var r=n(115);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},function(e,t,n){var r=n(48),o=n(242),i=n(73),a=n(54),s=n(76),l=n(135);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(48),o=n(26);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(48),o=n(26),i=n(161);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(56),o=n(55),i=n(134),a=n(101),s=n(361),l=n(41),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){var r=n(27),o=n(47),i=n(76),a=n(189).indexOf,s=n(137),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},function(e,t,n){var r=n(88);e.exports=r("document","documentElement")},function(e,t,n){var r=n(38),o=n(42),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){var r=n(27),o=n(26),i=n(42),a=n(47),s=n(48),l=n(140).CONFIGURABLE,u=n(249),c=n(89),d=c.enforce,h=c.get,f=String,v=Object.defineProperty,g=r("".slice),p=r("".replace),y=r([].join),m=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),C=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+p(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?v(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&a(n,"arity")&&e.length!==n.arity&&v(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=y(C,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||u(this)}),"toString")},function(e,t,n){var r=n(27),o=n(42),i=n(187),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var r=n(47),o=n(251),i=n(97),a=n(73);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},function(e,t,n){var r=n(88),o=n(27),i=n(117),a=n(165),s=n(54),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var r,o,i,a=n(26),s=n(42),l=n(55),u=n(100),c=n(167),d=n(83),h=n(41),f=n(94),v=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):g=!0),!l(r)||a((function(){var e={};return r[v].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[v])||d(r,v,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){var r=n(26);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(364),o=n(54),i=n(365);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var r=n(41),o=n(138),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(56),o=n(102),i=n(54),a=n(116),s=n(200),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw l(a(e)+" is not iterable")}},function(e,t,n){var r=n(56),o=n(54),i=n(101);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},function(e,t,n){var r=n(41)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(27),o=n(196),i=n(141).getWeakData,a=n(201),s=n(54),l=n(82),u=n(55),c=n(199),d=n(105),h=n(47),f=n(89),v=f.set,g=f.getterFor,p=d.find,y=d.findIndex,m=r([].splice),C=0,w=function(e){return e.frozen||(e.frozen=new E)},E=function(){this.entries=[]},R=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};E.prototype={get:function(e){var t=R(this,e);if(t)return t[1]},has:function(e){return!!R(this,e)},set:function(e,t){var n=R(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=y(this.entries,(function(t){return t[0]===e}));return~t&&m(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){a(e,f),v(e,{type:t,id:C++,frozen:void 0}),l(o)||c(o,e[r],{that:e,AS_ENTRIES:n})})),f=d.prototype,p=g(t),y=function(e,t,n){var r=p(e),o=i(s(t),!0);return!0===o?w(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=p(this);if(!u(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!u(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&h(n,t.id)}}),o(f,n?{get:function(e){var t=p(this);if(u(e)){var n=i(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return y(this,e,t)}}:{add:function(e){return y(this,e,!0)}}),d}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(161)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,L,H,B,F=this,V=arguments.length>2&&void 0!==arguments[2]&&arguments[2],U=!1,W=this,j=new h.default(W),Y=!0;(0,O.hasValidParameter)(V)&&(0,O.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;var G=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",z=["rtl","ltr"].includes(G)?G:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",z),this.isRtl=function(){return"rtl"===z},this.isLtr=function(){return!W.isRtl()},this.getDirectionFactor=function(){return W.isLtr()?1:-1},t.language=(0,k.getValidLanguageCode)(t.language);var K=new P.MetaManager(W,t,[P.DynamicCellMetaMod,P.ExtendMetaPropertiesMod]),X=K.getTableMeta(),q=K.getGlobalMeta(),Q=(0,A.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,O.isRootInstance)(this)&&(0,u._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,w.randomString)()),this.columnIndexMapper=new T.IndexMapper,this.rowIndexMapper=new T.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(function(e){W.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(function(e){W.runHooks("afterRowSequenceChange",e)})),L=new S.default(W),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var $=function(e){var t=e.row,n=e.col;return W._createCellCoords(t>=0?W.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?W.columnIndexMapper.getRenderableFromVisualIndex(n):n)},J=function(e){var t=e.row,n=e.col;return W._createCellCoords(t>=0?W.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?W.columnIndexMapper.getVisualFromRenderableIndex(n):n)},Z=new N.Selection(X,{rowIndexMapper:function(){return W.rowIndexMapper},columnIndexMapper:function(){return W.columnIndexMapper},countCols:function(){return W.countCols()},countRows:function(){return W.countRows()},propToCol:function(e){return r.propToCol(e)},isEditorOpened:function(){return!!W.getActiveEditor()&&W.getActiveEditor().isOpened()},countColsTranslated:function(){return F.view.countRenderableColumns()},countRowsTranslated:function(){return F.view.countRenderableRows()},getShortcutManager:function(){return W.getShortcutManager()},createCellCoords:function(e,t){return W._createCellCoords(e,t)},createCellRange:function(e,t,n){return W._createCellRange(e,t,n)},visualToRenderableCoords:$,renderableToVisualCoords:J,isDisabledCellSelection:function(e,t){return W.getCellMeta(e,t).disableVisualSelection}});this.selection=Z;var ee=function(e){e.hiddenIndexesChanged&&F.selection.refresh()};function te(e){var t=(0,M.normalizeLanguageCode)(e);(0,k.hasLanguageDictionary)(t)?(W.runHooks("beforeLanguageChange",t),q.language=t,W.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}function ne(e,t){var n="className"===e?W.rootElement:W.table;if(Y)(0,s.addClass)(n,t);else{var r=[],o=[];q[e]&&(r=Array.isArray(q[e])?q[e]:(0,v.stringToArray)(q[e])),t&&(o=Array.isArray(t)?t:(0,v.stringToArray)(t));var i=(0,v.getDifferenceOfArrays)(r,o),a=(0,v.getDifferenceOfArrays)(o,r);i.length&&(0,s.removeClass)(n,i),a.length&&(0,s.addClass)(n,a)}q[e]=t}function re(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function oe(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ie(e,t,n){if(e.length){var o=W.getActiveEditor(),a=new re,l=!0;a.onQueueEmpty=function(e){o&&l&&o.cancelChanges(),n(e)};for(var u=e.length-1;u>=0;u--){var c=(0,i.default)(e[u],4),d=c[0],h=c[1],f=c[3],v=r.propToCol(h),g=W.getCellMeta(d,v);"numeric"===g.type&&"string"==typeof f&&(0,E.isNumericLike)(f)&&(e[u][3]=oe(f)),W.getCellValidator(g)&&(a.addValidatorToQueue(),W.validateCell(e[u][3],g,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){l=!1,e.splice(t,1),n.valid=!0;var o=W.getCell(n.visualRow,n.visualCol);null!==o&&(0,s.removeClass)(o,X.invalidCellClassName)}a.removeValidatorFormQueue()}}(u,g),t))}a.checkIfQueueIsEmpty()}}function ae(e,t){var n=e.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(X.allowInsertRow)for(;e[n][0]>W.countRows()-1;){if(0===r.createRow(void 0,void 0,{source:t}).delta){o=!0;break}}if("array"===W.dataType&&(!X.columns||0===X.columns.length)&&X.allowInsertColumn)for(;r.propToCol(e[n][1])>W.countCols()-1;){if(0===r.createCol(void 0,void 0,{source:t}).delta){o=!0;break}}o||r.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}W.forceFullRender=!0,H.adjustRowsAndCols(),W.runHooks("beforeChangeRender",e,t),B.lockEditor(),W._refreshBorders(null),B.unlockEditor(),W.view.adjustElementsSize(),W.runHooks("afterChange",e,t||"edit");var i=W.getActiveEditor();i&&(0,u.isDefined)(i.refreshValue)&&i.refreshValue()}}function se(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}function le(e,t){var n=W.getActiveEditor(),r=W.runHooks("beforeChange",e,t||"edit"),o=e.filter((function(e){return null!==e}));return!1===r||0===o.length?(n&&n.cancelChanges(),[]):o}this.columnIndexMapper.addLocalHook("cacheUpdated",ee),this.rowIndexMapper.addLocalHook("cacheUpdated",ee),this.selection.addLocalHook("beforeSetRangeStart",(function(e){F.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){F.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){F.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=F.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=F.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=(0,f.createObjectPropListener)(!1),n=F.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;F.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),F.runHooks("afterSelectionByProp",o.row,W.colToProp(o.col),i.row,W.colToProp(i.col),t,a);var l=F.selection.isSelectedByAnyHeader(),u=F.selection.selectedRange.current(),c=!0;U&&(c=!1),t.isTouched()&&(c=!t.value);var d=F.selection.isSelectedByRowHeader(),h=F.selection.isSelectedByColumnHeader();!1!==c&&(l?d?F.view.scrollViewportVertically(W.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&F.view.scrollViewportHorizontally(W.columnIndexMapper.getRenderableFromVisualIndex(e.col)):u&&!F.selection.isMultiple()?F.view.scrollViewport($(u.from)):F.view.scrollViewport($(e))),d&&h?(0,s.addClass)(F.rootElement,["ht__selection--rows","ht__selection--columns"]):d?((0,s.removeClass)(F.rootElement,"ht__selection--columns"),(0,s.addClass)(F.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(F.rootElement,"ht__selection--rows"),(0,s.addClass)(F.rootElement,"ht__selection--columns")):(0,s.removeClass)(F.rootElement,["ht__selection--rows","ht__selection--columns"]),F._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;F.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),F.runHooks("afterSelectionEndByProp",r.row,W.colToProp(r.col),o.row,W.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=F.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){F.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){F.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){F.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){F.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){B.destroyEditor(),F._refreshBorders(),(0,s.removeClass)(F.rootElement,["ht__selection--rows","ht__selection--columns"]),F.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){F.alter("insert_row_above",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){F.alter("insert_col_start",e,1,"auto")})),H={alter:function(e,t){var n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,d=function(e){if(0===e.length)return[];var t=(0,a.default)(e);return t.sort((function(e,t){var n=(0,i.default)(e,1)[0],r=(0,i.default)(t,1)[0];return n===r?0:n>r?1:-1})),(0,v.arrayReduce)(t,(function(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=e[e.length-1],s=(0,i.default)(a,2),l=s[0]+s[1];if(r<=l){var u=Math.max(o-(l-r),0);a[1]+=u}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":var h=W.countSourceRows();if(X.maxRows===h)return;var f="insert_row_below"===e?"below":"above";t=null!==(n=t)&&void 0!==n?n:"below"===f?h:0;var g=r.createRow(t,s,{source:l,mode:f}),p=g.delta,y=g.startPhysicalIndex;if(p){var m=Z.selectedRange.current(),C=null==m?void 0:m.from,w=null==C?void 0:C.row,E=W.toVisualRow(y);if(Z.isSelectedByCorner())W.selectAll();else if((0,u.isDefined)(w)&&w>=E){var R=m.to,S=R.row,b=R.col,T=C.col;Z.isSelectedByRowHeader()&&(T=-1),Z.getSelectedRange().pop(),Z.setRangeStartOnly(W._createCellCoords(w+p,T),!0),Z.setRangeEnd(W._createCellCoords(S+p,b))}else W._refreshBorders()}break;case"insert_col_start":case"insert_col_end":var O="insert_col_end"===e?"end":"start";t=null!==(o=t)&&void 0!==o?o:"end"===O?W.countSourceCols():0;var _=r.createCol(t,s,{source:l,mode:O}),I=_.delta,k=_.startPhysicalIndex;if(I){if(Array.isArray(X.colHeaders)){var M=[W.toVisualColumn(k),0];M.length+=I,Array.prototype.splice.apply(X.colHeaders,M)}var N=Z.selectedRange.current(),P=null==N?void 0:N.from,A=null==P?void 0:P.col,x=W.toVisualColumn(k);if(Z.isSelectedByCorner())W.selectAll();else if((0,u.isDefined)(A)&&A>=x){var D=N.to,L=D.row,B=D.col,F=P.row;Z.isSelectedByColumnHeader()&&(F=-1),Z.getSelectedRange().pop(),Z.setRangeStartOnly(W._createCellCoords(F,A+I),!0),Z.setRangeEnd(W._createCellCoords(L,B+I))}else W._refreshBorders()}break;case"remove_row":var V=function(e){var t=0;(0,v.arrayEach)(e,(function(e){var n=(0,i.default)(e,2),o=n[0],a=n[1],s=(0,u.isEmpty)(o)?W.countRows()-1:Math.max(o-t,0);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeRow(o,a,l)){var c=W.countRows(),d=X.fixedRowsTop;d>=s+1&&(X.fixedRowsTop-=Math.min(a,d-s));var h=X.fixedRowsBottom;h&&s>=c-h&&(X.fixedRowsBottom-=Math.min(a,h)),t+=a}}))};Array.isArray(t)?V(d(t)):V([[t,s]]),H.adjustRowsAndCols(),W._refreshBorders();break;case"remove_col":var U=function(e){var t=0;(0,v.arrayEach)(e,(function(e){var n=(0,i.default)(e,2),o=n[0],a=n[1],s=(0,u.isEmpty)(o)?W.countCols()-1:Math.max(o-t,0),c=W.toPhysicalColumn(s);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,a,l)){var d=X.fixedColumnsStart;d>=s+1&&(X.fixedColumnsStart-=Math.min(a,d-s)),Array.isArray(X.colHeaders)&&(void 0===c&&(c=-1),X.colHeaders.splice(c,a)),t+=a}}))};Array.isArray(t)?U(d(t)):U([[t,s]]),H.adjustRowsAndCols(),W._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}c||H.adjustRowsAndCols()},adjustRowsAndCols:function(){var e,t=X.minRows,n=X.minSpareRows,o=X.minCols,i=X.minSpareCols;if(0===W.countRows()&&0===W.countCols()&&Z.deselect(),t){var a=W.countRows();a<t&&r.createRow(a,t-a,{source:"auto"})}if(n){var s=W.countEmptyRows(!0);if(s<n){var l=n-s,u=Math.min(l,X.maxRows-W.countSourceRows());r.createRow(W.countRows(),u,{source:"auto"})}}(o||i)&&(e=W.countEmptyCols(!0));var c=W.countCols();if(o&&!X.columns&&c<o){var d=o-c;e+=d,r.createCol(c,d,{source:"auto"})}if(i&&!X.columns&&"array"===W.dataType&&e<i){c=W.countCols();var h=i-e,f=Math.min(h,X.maxCols-c);r.createCol(c,f,{source:"auto"})}if(Z.isSelected()){var g=W.countRows(),p=W.countCols();(0,v.arrayEach)(Z.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>g-1?(t=!0,o>(n=g-1)&&(o=n)):o>g-1&&(t=!0,n>(o=g-1)&&(n=o)),r>p-1?(t=!0,i>(r=p-1)&&(i=r)):i>p-1&&(t=!0,r>(i=p-1)&&(r=i)),t&&W.selectCell(n,r,o,i)}))}W.view&&W.view.adjustElementsSize()},populateFromArray:function(e,t,n,r,i){var s,l,u,c,d=[],h={},g=[],p=e.row,y=e.col;if(0===(l=t.length))return!1;var m=0,C=0;switch((0,f.isObject)(n)&&(m=n.col-y+1,C=n.row-p+1),i){case"shift_down":var w=(0,v.pivot)(t),E=w.length,R=Math.max(E,m),S=W.getData().slice(p),b=(0,v.pivot)(S).slice(y,y+R);for(u=0;u<R;u+=1)if(u<E){for(s=0,l=w[u].length;s<C-l;s+=1)w[u].push(w[u][s%l]);u<b.length?g.push(w[u].concat(b[u])):g.push(w[u].concat(new Array(S.length).fill(null)))}else g.push(w[u%E].concat(b[u]));W.populateFromArray(p,y,(0,v.pivot)(g));break;case"shift_right":var T=t.length,O=Math.max(T,C),_=W.getData().slice(p).map((function(e){return e.slice(y)}));for(s=0;s<O;s+=1)if(s<T){for(u=0,c=t[s].length;u<m-c;u+=1)t[s].push(t[s][u%c]);var I;if(s<_.length)for(var k=0;k<_[s].length;k+=1)t[s].push(_[s][k]);else(I=t[s]).push.apply(I,(0,a.default)(new Array(_[0].length).fill(null)))}else t.push(t[s%l].slice(0,O).concat(_[s]));W.populateFromArray(p,y,t);break;case"overwrite":default:h.row=e.row,h.col=e.col;var M,N=0,P=0,A=!0,x=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},D=t.length,L=n?n.row-e.row+1:0;for(l=n?L:Math.max(D,L),s=0;s<l&&!(n&&h.row>n.row&&L>D||!X.allowInsertRow&&h.row>W.countRows()-1||h.row>=X.maxRows);s++){var H=s-N,B=x(H).length,F=n?n.col-e.col+1:0;if(c=n?F:Math.max(B,F),h.col=e.col,M=W.getCellMeta(h.row,h.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!M.skipRowOnPaste){for(P=0,u=0;u<c&&!(n&&h.col>n.col&&F>B||!X.allowInsertColumn&&h.col>W.countCols()-1||h.col>=X.maxCols);u++)if(M=W.getCellMeta(h.row,h.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!M.skipColumnOnPaste)if(M.readOnly&&"UndoRedo.undo"!==r)h.col+=1;else{var V=x(H,u-P),U=W.getDataAtCell(h.row,h.col);if(null!==V&&"object"===(0,o.default)(V))if(Array.isArray(V)&&null===U&&(U=[]),null===U||"object"!==(0,o.default)(U))A=!1;else{var j=(0,f.duckSchema)(Array.isArray(U)?U:U[0]||U),Y=(0,f.duckSchema)(Array.isArray(V)?V:V[0]||V);(0,f.isObjectEqual)(j,Y)||Array.isArray(j)&&Array.isArray(Y)?V=(0,f.deepClone)(V):A=!1}else null!==U&&"object"===(0,o.default)(U)&&(A=!1);A&&d.push([h.row,h.col,V]),A=!0,h.col+=1}else P+=1,h.col+=1,c+=1;h.row+=1}else N+=1,h.row+=1,l+=1}W.setDataAtCell(d,null,null,r||"populateFromArray")}}},this.init=function(){L.setData(X.data),W.runHooks("beforeInit"),((0,c.isMobileBrowser)()||(0,c.isIpadOS)())&&(0,s.addClass)(W.rootElement,"mobile"),this.updateSettings(X,!0),this.view=new R.default(this),B=d.default.getInstance(W,X,Z),W.runHooks("init"),this.forceFullRender=!0,this.view.render(),Y&&null===W.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(W.rootElement,(function(){W.view._wt.wtOverlays.updateLastSpreaderSize(),W.render(),W.view.adjustElementsSize()})),"object"===(0,o.default)(Y)&&(W.runHooks("afterChange",Y[0],Y[1]),Y=!1),W.runHooks("afterInit")},this._createCellCoords=function(e,t){return W.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return W.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,r){var o,i=W.getCellValidator(t);function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var o=t.visualCol,i=t.visualRow,a=W.getCell(i,o,!0);if(a&&"TH"!==a.nodeName){var s=W.rowIndexMapper.getRenderableFromVisualIndex(i),l=W.columnIndexMapper.getRenderableFromVisualIndex(o);W.view._wt.getSetting("cellRenderer",s,l,a)}n(e)}else n(e)}(0,u.isRegExp)(i)&&(o=i,i=function(e,t){t(o.test(e))}),(0,l.isFunction)(i)?(e=W.runHooks("beforeValidate",e,t.visualRow,t.prop,r),W._registerImmediate((function(){i.call(t,e,(function(n){W&&(n=W.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),W.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):W._registerImmediate((function(){t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,i){var a,s,l,u=se(e,t,n),c=[],d=i;for(a=0,s=u.length;a<s;a++){if("object"!==(0,o.default)(u[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof u[a][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=u[a][1]>=this.countCols()?u[a][1]:r.colToProp(u[a][1]),c.push([u[a][0],l,L.getAtCell(this.toPhysicalRow(u[a][0]),u[a][1]),u[a][2]])}d||"object"!==(0,o.default)(e)||(d=t);var h=le(c,i);W.runHooks("afterSetDataAtCell",h,d),ie(h,d,(function(){ae(h,d)}))},this.setDataAtRowProp=function(e,t,n,r){var i,a,s=se(e,t,n),l=[],u=r;for(i=0,a=s.length;i<a;i++)l.push([s[i][0],s[i][1],L.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);u||"object"!==(0,o.default)(e)||(u=t);var c=le(l,r);W.runHooks("afterSetDataAtRowProp",c,u),ie(c,u,(function(){ae(c,u)}))},this.listen=function(){W&&!W.isListening()&&(D=W.guid,W.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(D=null,W.runHooks("afterUnlisten"))},this.isListening=function(){return D===W.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,s){if("object"!==(0,o.default)(n)||"object"!==(0,o.default)(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var l="number"==typeof r?W._createCellCoords(r,i):null;return H.populateFromArray(W._createCellCoords(e,t),n,l,a,s)},this.spliceCol=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceCol.apply(o,[e,t,n].concat(a))},this.spliceRow=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceRow.apply(o,[e,t,n].concat(a))},this.getSelected=function(){if(Z.isSelected())return(0,v.arrayMap)(Z.getSelectedRange(),(function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(Z.isSelected())return Array.from(Z.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(Z.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];(0,v.arrayEach)(Z.getSelectedRange(),(function(e){var r=e.getTopStartCorner(),o=e.getBottomEndCorner();(0,E.rangeEach)(r.row,o.row,(function(e){(0,E.rangeEach)(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){var e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(B.lockEditor(),this._refreshBorders(null),B.unlockEditor()))},this.batchRender=function(e){this.suspendRender();var t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();var n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();var t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(W.view){var e=W.view.getLastSize(),t=e.width,n=e.height,r=W.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n;!1===W.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a)||((a||W.view._wt.wtOverlays.scrollableElement===W.rootWindow)&&(W.view.setLastSize(o,i),W.render()),W.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.updateData=function(e,t){var n=this;(0,P.replaceData)(e,(function(e){r=e}),(function(e){r=e,W.columnIndexMapper.fitToLength(n.getInitialColumnCount()),W.rowIndexMapper.fitToLength(n.countSourceRows()),H.adjustRowsAndCols()}),{hotInstance:W,dataMap:r,dataSource:L,internalSource:"updateData",source:t,metaManager:K,firstRun:Y})},this.loadData=function(e,t){(0,P.replaceData)(e,(function(e){r=e}),(function(){K.clearCellsCache(),W.initIndexMappers(),H.adjustRowsAndCols(),Y&&(Y=[null,"loadData"])}),{hotInstance:W,dataMap:r,dataSource:L,internalSource:"loadData",source:t,metaManager:K,firstRun:Y})},this.getInitialColumnCount=function(){var e=X.columns,t=0;if(Array.isArray(e))t=e.length;else if((0,l.isFunction)(e))if("array"===W.dataType)for(var n=this.countSourceCols(),o=0;o<n;o+=1)e(o)&&(t+=1);else"object"!==W.dataType&&"function"!==W.dataType||(t=r.colToPropCache.length);else if((0,u.isDefined)(X.dataSchema)){var i=r.getSchema();t=Array.isArray(i)?i.length:(0,f.deepObjectSize)(i)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,o){return(0,u.isUndefined)(e)?r.getAll():r.getRange(W._createCellCoords(e,t),W._createCellCoords(n,o),r.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return r.getCopyableText(W._createCellCoords(e,t),W._createCellCoords(n,o))},this.getCopyableData=function(e,t){return r.getCopyable(e,r.colToProp(t))},this.getSchema=function(){return r.getSchema()},this.updateSettings=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(Y?W.loadData:W.updateData).bind(this),a=!1;if((0,u.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,u.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,u.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(t in e)"data"===t||("language"===t?te(e.language):"className"===t?ne("className",e.className):"tableClassName"===t&&W.table?(ne("tableClassName",e.tableClassName),W.view._wt.wtOverlays.syncOverlayTableClassNames()):I.default.getSingleton().isRegistered(t)||I.default.getSingleton().isDeprecated(t)?((0,l.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,W.addHook(t,e[t])):!o&&(0,f.hasOwnProperty)(e,t)&&(q[t]=e[t]));void 0===e.data&&void 0===X.data?i(null,"updateSettings"):void 0!==e.data?i(e.data,"updateSettings"):void 0!==e.columns&&(r.createMap(),W.initIndexMappers());var s=W.countCols(),c=X.columns;if(c&&(0,l.isFunction)(c)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||K.clearCache(),s>0)for(t=0,n=0;t<s;t++){if(c){var d=a?c(t):c[n];d&&K.updateColumnMeta(n,d)}n+=1}(0,u.isDefined)(e.cell)&&(0,f.objectEach)(e.cell,(function(e){W.setCellMetaObject(e.row,e.col,e)})),W.runHooks("afterCellMetaReset");var h=W.rootElement.style.height;""!==h&&(h=parseInt(W.rootElement.style.height,10));var v=e.height;if((0,l.isFunction)(v)&&(v=v()),o){var g=W.rootElement.getAttribute("style");g&&W.rootElement.setAttribute("data-initialstyle",W.rootElement.getAttribute("style"))}if(null===v){var p=W.rootElement.getAttribute("data-initialstyle");p&&(p.indexOf("height")>-1||p.indexOf("overflow")>-1)?W.rootElement.setAttribute("style",p):(W.rootElement.style.height="",W.rootElement.style.overflow="")}else void 0!==v&&(W.rootElement.style.height=isNaN(v)?"".concat(v):"".concat(v,"px"),W.rootElement.style.overflow="hidden");if(void 0!==e.width){var y=e.width;(0,l.isFunction)(y)&&(y=y()),W.rootElement.style.width=isNaN(y)?"".concat(y):"".concat(y,"px")}o||(W.view&&(W.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),W.view._wt.exportSettingsAsClassNames()),W.runHooks("afterUpdateSettings",e)),H.adjustRowsAndCols(),W.view&&!Y&&(W.forceFullRender=!0,B.lockEditor(),W._refreshBorders(null),W.view._wt.wtOverlays.adjustElementsSize(),B.unlockEditor()),o||!W.view||""!==h&&""!==v&&void 0!==v||h===v||W.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=W.getSelectedLast();if(X.getValue){if((0,l.isFunction)(X.getValue))return X.getValue.call(W);if(e)return W.getData()[e[0][0]][X.getValue]}else if(e)return W.getDataAtCell(e[0],e[1])},this.getSettings=function(){return X},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){H.alter(e,t,n,r,o)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r?null:W.view.getCellAtCoords(W._createCellCoords(o,r),n)},this.getCoords=function(e){var t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;var n=t.row,r=t.col,o=n,i=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),W._createCellCoords(o,i)},this.colToProp=function(e){return r.colToProp(e)},this.propToCol=function(e){return r.propToCol(e)},this.toVisualRow=function(e){return F.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return F.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return F.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return F.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return r.get(e,r.colToProp(t))},this.getDataAtRowProp=function(e,t){return r.get(e,t)},this.getDataAtCol=function(e){for(var t=[],n=r.getRange(W._createCellCoords(0,e),W._createCellCoords(X.data.length-1,e),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},this.getDataAtProp=function(e){for(var t=[],n=r.getRange(W._createCellCoords(0,r.propToCol(e)),W._createCellCoords(X.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},this.getSourceData=function(e,t,n,r){return void 0===e?L.getData():L.getByRange(W._createCellCoords(e,t),W._createCellCoords(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?L.getData(!0):L.getByRange(W._createCellCoords(e,t),W._createCellCoords(n,r),!0)},this.getSourceDataAtCol=function(e){return L.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){var o=se(e,t,n),a=this.hasHook("afterSetSourceDataAtCell"),s=[];a&&(0,v.arrayEach)(o,(function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],o=t[2];s.push([n,r,L.getAtCell(n,r),o])})),(0,v.arrayEach)(o,(function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],o=t[2];L.setAtCell(n,r,o)})),a&&this.runHooks("afterSetSourceDataAtCell",s,r),this.render();var l=W.getActiveEditor();l&&(0,u.isDefined)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return L.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return L.getAtCell(e,t)},this.getDataAtRow=function(e){return r.getRange(W._createCellCoords(e,0),W._createCellCoords(e,this.countCols()-1),r.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],l=i[2],u=i[3],c=null,d=null;void 0===l&&(l=a),void 0===u&&(u=s);var h="mixed";return(0,E.rangeEach)(Math.max(Math.min(a,l),0),Math.max(a,l),(function(e){var t=!0;return(0,E.rangeEach)(Math.max(Math.min(s,u),0),Math.max(s,u),(function(n){var r=o.getCellMeta(e,n);return d=r.type,c?t=c===d:c=d,t})),h=t?d:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=K.getCellMetaKeyValue(o,i,n);!1!==W.runHooks("beforeRemoveCellMeta",e,t,n,a)&&(K.removeCellMeta(o,i,n),W.runHooks("afterRemoveCellMeta",e,t,n,a)),a=null},this.spliceCellsMeta=function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length>0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");n>0&&K.removeRow(this.toPhysicalRow(e),n),o.length>0&&(0,v.arrayEach)(o.reverse(),(function(n){K.createRow(t.toPhysicalRow(e)),(0,v.arrayEach)(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))})),W.render()},this.setCellMetaObject=function(e,t,n){var r=this;"object"===(0,o.default)(n)&&(0,f.objectEach)(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,r){if(!1!==W.runHooks("beforeSetCellMeta",e,t,n,r)){var o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),K.setCellMeta(o,i,n,r),W.runHooks("afterSetCellMeta",e,t,n,r)}},this.getCellsMeta=function(){return K.getCellsMeta()},this.getCellMeta=function(e,t){var n=this.toPhysicalRow(e),r=this.toPhysicalColumn(t);return null===n&&(n=e),null===r&&(r=t),K.getCellMeta(n,r,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return K.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===W.dataType||X.columns)},this.getCellRenderer=function(e,t){var n="number"==typeof e?W.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?(0,y.getRenderer)(n):(0,u.isUndefined)(n)?(0,y.getRenderer)("text"):n},this.getCellEditor=function(e,t){var n="number"==typeof e?W.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?(0,m.getEditor)(n):(0,u.isUndefined)(n)?(0,m.getEditor)("text"):n},this.getCellValidator=function(e,t){var n="number"==typeof e?W.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?(0,C.getValidator)(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var r=new re;e&&(r.onQueueEmpty=e);for(var o=W.countRows()-1;o>=0;)if(void 0===t||-1!==t.indexOf(o)){for(var i=W.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),W.validateCell(W.getDataAtCell(o,i),W.getCellMeta(o,i),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=X.rowHeaders,n=e;return void 0!==n&&(n=W.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,E.rangeEach)(W.countRows()-1,(function(e){t.push(W.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,l.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!X.rowHeaders},this.hasColHeaders=function(){if(void 0!==X.colHeaders&&null!==X.colHeaders)return!!X.colHeaders;for(var e=0,t=W.countCols();e<t;e++)if(W.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=W.runHooks("modifyColHeader",e);if(void 0===n){for(var r=[],o=W.countCols(),i=0;i<o;i++)r.push(W.getColHeader(i));return r}var a=X.colHeaders,s=function(e){for(var t=[],n=W.countCols(),r=0;r<n;r++)(0,l.isFunction)(X.columns)&&X.columns(r)&&t.push(r);return t[e]},u=W.toPhysicalColumn(n),c=s(u);return!1===X.colHeaders?a=null:X.columns&&(0,l.isFunction)(X.columns)&&X.columns(c)&&X.columns(c).title?a=X.columns(c).title:X.columns&&X.columns[u]&&X.columns[u].title?a=X.columns[u].title:Array.isArray(X.colHeaders)&&void 0!==X.colHeaders[u]?a=X.colHeaders[u]:(0,l.isFunction)(X.colHeaders)?a=X.colHeaders(u):X.colHeaders&&"string"!=typeof X.colHeaders&&"number"!=typeof X.colHeaders&&(a=(0,b.spreadsheetColumnLabel)(n)),a=W.runHooks("modifyColumnHeaderValue",a,e,t)},this._getColWidthFromSettings=function(e){var t;e>=0&&(t=W.getCellMeta(0,e).width);if(void 0!==t&&t!==X.width||(t=X.colWidths),null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){var t=W._getColWidthFromSettings(e);return void 0===(t=W.runHooks("modifyColWidth",t,e))&&(t=_.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=X.rowHeights;if(null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=W._getRowHeightFromSettings(e);return t=W.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return L.countRows()},this.countSourceCols=function(){return L.countFirstRowKeys()},this.countRows=function(){return r.getLength()},this.countCols=function(){var e=X.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return W.view._wt.drawn?W.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return W.view._wt.drawn?W.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return W.view._wt.drawn?W.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return W.view._wt.drawn?W.view._wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,E.rangeEachReverse)(W.countRows()-1,(function(n){if(W.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,E.rangeEachReverse)(W.countCols()-1,(function(n){if(W.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return X.isEmptyRow.call(W,e)},this.isEmptyCol=function(e){return X.isEmptyCol.call(W,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,u.isUndefined)(e)&&!(0,u.isUndefined)(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(U=!0);var r=Z.selectCells(e);return r&&n&&W.listen(),U=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectRows(e,t)},this.deselectCell=function(){Z.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();U=!0,Z.selectAll(t,n),U=!1};var ue=function(e,t){return e.getNearestNotHiddenIndex(t,1,!0)};function ce(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!n,a=!r,s=e,l=t;if(o){var u=Number.isInteger(e),c=Number.isInteger(t),d=u?ue(this.rowIndexMapper,e):void 0,h=c?ue(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=u?W.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,l=c?W.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),v=Number.isInteger(l);return f&&v?W.view.scrollViewport(W._createCellCoords(s,l),i,r,n,a):f&&!1===v?W.view.scrollViewportVertically(s,i,n):!(!v||!1!==f)&&W.view.scrollViewportHorizontally(l,r,a)},this.destroy=function(){if(W._clearTimeouts(),W._clearImmediates(),W.view&&W.view.destroy(),L&&L.destroy(),L=null,this.getShortcutManager().destroy(),K.clearCache(),(0,O.isRootInstance)(W)){var e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,s.empty)(W.rootElement),j.destroy(),B&&B.destroy(),W.batchExecution((function(){W.rowIndexMapper.unregisterAll(),W.columnIndexMapper.unregisterAll(),Q.getItems().forEach((function(e){(0,i.default)(e,2)[1].destroy()})),Q.clear(),W.runHooks("afterDestroy")}),!0),I.default.getSingleton().destroy(W),(0,f.objectEach)(W,(function(e,t,n){(0,l.isFunction)(e)?n[t]=ce(t):"guid"!==t&&(n[t]=null)})),W.isDestroyed=!0,r&&r.destroy(),r=null,H=null,Z=null,B=null,W=null},this.getActiveEditor=function(){return B.getActiveEditor()},this.getPlugin=function(e){var t=(0,w.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:Q.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:Q.getId(e)},this.getInstance=function(){return W},this.addHook=function(e,t){I.default.getSingleton().add(e,t,W)},this.hasHook=function(e){return I.default.getSingleton().has(e,W)||I.default.getSingleton().has(e)},this.addHookOnce=function(e,t){I.default.getSingleton().once(e,t,W)},this.removeHook=function(e,t){I.default.getSingleton().remove(e,t,W)},this.runHooks=function(e,t,n,r,o,i,a){return I.default.getSingleton().run(W,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,k.getTranslatedPhrase)(X.language,e,t)},this.toHTML=function(){return(0,g.instanceToHTML)(F)},this.toTableElement=function(){var e=F.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(F)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"==typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){(0,v.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,v.arrayEach)(this.immediates,(function(e){clearImmediate(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];B.destroyEditor(e),W.view.render(),t&&Z.isSelected()&&B.prepareEditor()},this.isRtl=function(){return"rtl"===W.rootWindow.getComputedStyle(W.rootElement).direction},this.isLtr=function(){return!W.isRtl()},this.getDirectionFactor=function(){return W.isLtr()?1:-1};var de=(0,x.createShortcutManager)({handleEvent:function(e){var t=W.isListening(),n=void 0!==(null==e?void 0:e.key);return t&&n},beforeKeyDown:function(e){return F.runHooks("beforeKeyDown",e)},afterKeyDown:function(e){F.isDestroyed||W.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(function(e){!1===e.ctrlKey&&!1===e.metaKey&&de.releasePressedKeys()})),this.getShortcutManager=function(){return de};var he=de.addContext("grid"),fe={runOnlyIf:function(){return(0,u.isDefined)(W.getSelected())&&W.countRenderedRows()>0&&W.countRenderedCols()>0},group:"gridDefault"};de.setActiveContextName("grid"),he.addShortcuts([{keys:[["Control/Meta","A"]],callback:function(){W.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:function(){for(var e=W.getSelectedRange(),t=e[e.length-1].highlight,n=t.row,r=t.col,o=W.getDataAtCell(n,r),i=new Map,a=0;a<e.length;a++)e[a].forAll((function(e,t){e>=0&&t>=0&&(e!==n||t!==r)&&(W.getCellMeta(e,t).readOnly||i.set("".concat(e,"x").concat(t),[e,t,o]))}));W.setDataAtCell(Array.from(i.values()))},runOnlyIf:function(){return W.getSelectedRangeLast().getCellsCount()>1}},{keys:[["ArrowUp"]],callback:function(){Z.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:function(){Z.setRangeStart(W._createCellCoords(W.rowIndexMapper.getNearestNotHiddenIndex(0,1),W.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:function(){Z.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=W.getSelectedRangeLast(),t=e.from,n=e.to,r=W.rowIndexMapper.getNearestNotHiddenIndex(0,1);Z.setRangeStart(t.clone()),Z.setRangeEnd(W._createCellCoords(r,n.col))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByColumnHeader())}},{keys:[["ArrowDown"]],callback:function(){Z.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:function(){Z.setRangeStart(W._createCellCoords(W.rowIndexMapper.getNearestNotHiddenIndex(W.countRows()-1,-1),W.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:function(){Z.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=W.getSelectedRangeLast(),t=e.from,n=e.to,r=W.rowIndexMapper.getNearestNotHiddenIndex(W.countRows()-1,-1);Z.setRangeStart(t.clone()),Z.setRangeEnd(W._createCellCoords(r,n.col))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByColumnHeader())}},{keys:[["ArrowLeft"]],callback:function(){Z.transformStart(0,-1*W.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast().highlight.row,n=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[W.countCols()-1,-1]:[0,1]));Z.setRangeStart(W._createCellCoords(t,n))}},{keys:[["ArrowLeft","Shift"]],callback:function(){Z.transformEnd(0,-1*W.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[W.countCols()-1,-1]:[0,1]));Z.setRangeStart(n.clone()),Z.setRangeEnd(W._createCellCoords(r.row,o))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByRowHeader())}},{keys:[["ArrowRight"]],callback:function(){Z.transformStart(0,W.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast().highlight.row,n=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[0,1]:[W.countCols()-1,-1]));Z.setRangeStart(W._createCellCoords(t,n))}},{keys:[["ArrowRight","Shift"]],callback:function(){Z.transformEnd(0,W.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[0,1]:[W.countCols()-1,-1]));Z.setRangeStart(n.clone()),Z.setRangeEnd(W._createCellCoords(r.row,o))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByRowHeader())}},{keys:[["Home"]],captureCtrl:!0,callback:function(){var e=parseInt(W.getSettings().fixedColumnsStart,10),t=W.getSelectedRangeLast().highlight.row,n=W.columnIndexMapper.getNearestNotHiddenIndex(e,1);Z.setRangeStart(W._createCellCoords(t,n))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["Home","Shift"]],callback:function(){Z.setRangeEnd(W._createCellCoords(Z.selectedRange.current().from.row,W.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(W.getSettings().fixedRowsTop,10),t=parseInt(W.getSettings().fixedColumnsStart,10),n=W.rowIndexMapper.getNearestNotHiddenIndex(e,1),r=W.columnIndexMapper.getNearestNotHiddenIndex(t,1);Z.setRangeStart(W._createCellCoords(n,r))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End"]],captureCtrl:!0,callback:function(){Z.setRangeStart(W._createCellCoords(W.getSelectedRangeLast().highlight.row,W.columnIndexMapper.getNearestNotHiddenIndex(W.countCols()-1,-1)))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End","Shift"]],callback:function(){Z.setRangeEnd(W._createCellCoords(Z.selectedRange.current().from.row,W.columnIndexMapper.getNearestNotHiddenIndex(W.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(W.getSettings().fixedRowsBottom,10),t=W.rowIndexMapper.getNearestNotHiddenIndex(W.countRows()-e-1,-1),n=W.columnIndexMapper.getNearestNotHiddenIndex(W.countCols()-1,-1);Z.setRangeStart(W._createCellCoords(t,n))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["PageUp"]],callback:function(){Z.transformStart(-W.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:function(){var e=W.getSelectedRangeLast().to,t=Math.max(e.row-W.countVisibleRows(),0),n=W.rowIndexMapper.getNearestNotHiddenIndex(t,1);if(null!==n){var r=W._createCellCoords(n,e.col),o=e.row-W.view.getFirstFullyVisibleRow(),i=Math.max(r.row-o,0);Z.setRangeEnd(r),W.scrollViewportTo(i)}}},{keys:[["PageDown"]],callback:function(){Z.transformStart(W.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:function(){var e=W.getSelectedRangeLast().to,t=Math.min(e.row+W.countVisibleRows(),W.countRows()-1),n=W.rowIndexMapper.getNearestNotHiddenIndex(t,-1);if(null!==n){var r=W._createCellCoords(n,e.col),o=e.row-W.view.getFirstFullyVisibleRow(),i=Math.min(r.row-o,W.countRows()-1);Z.setRangeEnd(r),W.scrollViewportTo(i)}}},{keys:[["Tab"]],callback:function(e){var t="function"==typeof X.tabMoves?X.tabMoves(e):X.tabMoves;Z.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:function(e){var t="function"==typeof X.tabMoves?X.tabMoves(e):X.tabMoves;Z.transformStart(-t.row,-t.col)}}],fe),(0,p.getPluginsNames)().forEach((function(e){var t=(0,p.getPlugin)(e);Q.addItem(e,new t(F))})),I.default.getSingleton().run(W,"construct")};var o=r(n(14)),i=r(n(22)),a=r(n(29));n(4),n(1),n(45),n(5),n(6),n(28),n(77),n(46),n(60),n(61),n(33),n(19),n(121),n(50),n(43),n(67),n(30),n(40),n(23),n(147),n(20),n(57),n(395),n(36);var s=n(15),l=n(51),u=n(24),c=n(78),d=r(n(148)),h=r(n(44)),f=n(12),v=n(13),g=n(212),p=n(177),y=n(149),m=n(107),C=n(150),w=n(68),E=n(32),R=r(n(415)),S=r(n(464)),b=n(111),T=n(65),O=n(218),_=n(108),I=r(n(52)),k=n(307),M=n(308),N=n(222),P=n(310),A=n(178),x=n(501),D=null;new Set},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(100),o=n(144),i=n(196),a=n(142),s=n(201),l=n(82),u=n(199),c=n(191),d=n(192),h=n(268),f=n(48),v=n(141).fastKey,g=n(89),p=g.set,y=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,o){s(e,h),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:n})})),h=d.prototype,g=y(t),m=function(e,t,n){var r,o,i=g(e),a=C(e,t);return a?a.value=n:(i.last=a={index:o=v(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},C=function(e,t){var n,r=g(e),o=v(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(h,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=g(this),n=C(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!C(this,e)}}),i(h,n?{get:function(e){var t=C(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&o(h,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=y(t),i=y(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){"use strict";var r=n(88),o=n(144),i=n(41),a=n(48),s=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(116),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){var r=n(38);e.exports=r},function(e,t,n){var r=n(27);e.exports=r(1..valueOf)},function(e,t,n){var r=n(27),o=n(71),i=n(49),a=n(274),s=r("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(54);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(26),o=n(38).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var r=n(26),o=n(38).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},function(e,t,n){var r,o,i,a,s=n(38),l=n(106),u=n(142),c=n(42),d=n(47),h=n(26),f=n(246),v=n(146),g=n(161),p=n(278),y=n(397),m=n(280),C=s.setImmediate,w=s.clearImmediate,E=s.process,R=s.Dispatch,S=s.Function,b=s.MessageChannel,T=s.String,O=0,_={};h((function(){r=s.location}));var I=function(e){if(d(_,e)){var t=_[e];delete _[e],t()}},k=function(e){return function(){I(e)}},M=function(e){I(e.data)},N=function(e){s.postMessage(T(e),r.protocol+"//"+r.host)};C&&w||(C=function(e){p(arguments.length,1);var t=c(e)?e:S(e),n=v(arguments,1);return _[++O]=function(){l(t,void 0,n)},o(O),O},w=function(e){delete _[e]},m?o=function(e){E.nextTick(k(e))}:R&&R.now?o=function(e){R.now(k(e))}:b&&!y?(a=(i=new b).port2,i.port1.onmessage=M,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(N)?(o=N,s.addEventListener("message",M,!1)):o="onreadystatechange"in g("script")?function(e){f.appendChild(g("script")).onreadystatechange=function(){f.removeChild(this),I(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:C,clear:w}},function(e,t,n){var r=n(85);e.exports="undefined"!=typeof process&&"process"==r(process)},function(e,t,n){var r=n(21),o=n(26),i=n(72),a=n(167),s=n(253);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){var r=n(56),o=n(47),i=n(95),a=n(275),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},function(e,t,n){var r=n(14).default,o=n(402);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(171),o=n(116),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=n(21),o=n(407).start;r({target:"String",proto:!0,forced:n(408)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(56),o=n(173),i=n(54),a=n(82),s=n(103),l=n(49),u=n(71),c=n(101),d=n(206),h=n(174);o("match",(function(e,t,n){return[function(t){var n=u(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return h(r,o);var u=r.unicode;r.lastIndex=0;for(var c,f=[],v=0;null!==(c=h(r,o));){var g=l(c[0]);f[v]=g,""===g&&(r.lastIndex=d(o,s(r.lastIndex),u)),v++}return 0===v?null:f}]}))},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(213),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d,f=t.inlineStartOffset;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:l,calculationType:u,stretchingColumnWidthFn:h,inlineStartOffset:f}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=c,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=0,i=0,l=s.get(this),u=l.calculationType,c=l.overrideFn,d=l.scrollOffset,h=Math.max(l.scrollOffset,0),f=l.totalColumns,v=l.viewportWidth,g=h>0?v+1:v,p=0;p<f;p++)if(e=this._getColumnWidth(p),t<=h&&u!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=p,o=e),t>=h&&t+(u===a.FULLY_VISIBLE_TYPE?e:0)<=h+g&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=p,o=e),this.endColumn=p),r.push(t),t+=e,i=e,u!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=p),t>=h+v){n=!1;break}var y=d+v-g,m=u===a.FULLY_VISIBLE_TYPE?0:i,C=u===a.FULLY_VISIBLE_TYPE?o:0;if(y<-1*l.inlineStartOffset||d>r.at(-1)+m||-1*l.scrollOffset-l.viewportWidth>-1*C?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endColumn===f-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var w=r[this.endColumn]+e-r[this.startColumn-1];if((w<=v||u!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),w>v)break}u===a.RENDER_TYPE&&null!==this.startColumn&&c&&c(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),f<this.endColumn&&(this.endColumn=f-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=s.get(this),r=n.totalColumns,o=0,i=0;i<r;i++){var a=this._getColumnWidth(i),l=n.stretchingColumnWidthFn(void 0,i);"number"==typeof l?t-=l:o+=a}var u=t-o;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(r-1),d=u+c;this.stretchLastWidth=d>=0?d:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,r=s.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===s.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=s.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}],[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(213),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:l,calculationType:u,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=s.get(this),r=n.calculationType,o=n.overrideFn,i=n.rowHeightFn,l=n.scrollOffset,u=Math.max(n.scrollOffset,0),c=n.totalRows,d=n.viewportHeight,h=n.horizontalScrollbarHeight||0,f=0,v=!0,g=[],p=0,y=0,m=0;m<c;m++)if(t=i(m),isNaN(t)&&(t=e.DEFAULT_HEIGHT),f<=u&&r!==a.FULLY_VISIBLE_TYPE&&(this.startRow=m,p=t),f>=u&&f+(r===a.FULLY_VISIBLE_TYPE?t:0)<=u+d-h&&(null===this.startRow&&(this.startRow=m,p=t),this.endRow=m),g.push(f),f+=t,y=t,r!==a.FULLY_VISIBLE_TYPE&&(this.endRow=m),f>=u+d-h){v=!1;break}var C=l+d-h,w=r===a.FULLY_VISIBLE_TYPE?p:0,E=r===a.FULLY_VISIBLE_TYPE?0:y;if(C<w||l>g.at(-1)+E?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endRow===c-1&&v)for(this.startRow=this.endRow;this.startRow>0;){var R=g[this.endRow]+t-g[this.startRow-1];if((R<=d-h||r!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),R>=d-h)break}r===a.RENDER_TYPE&&null!==this.startRow&&o&&o(this),this.startPosition=g[this.startRow],void 0===this.startPosition&&(this.startPosition=null),c<this.endRow&&(this.endRow=c-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(28),n(35),n(23),n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=r(n(63)),l=r(n(64)),u=r(n(214));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,o.default)(this,e),(0,a.default)(this,"highlight",null),(0,a.default)(this,"from",null),(0,a.default)(this,"to",null),c(this,d,{writable:!0,value:!1}),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone(),(0,l.default)(this,d,i)}return(0,i.default)(e,[{key:"setHighlight",value:function(e){return this.highlight=e.clone().normalize(),this}},{key:"setFrom",value:function(e){return this.from=e.clone(),this}},{key:"setTo",value:function(e){return this.to=e.clone(),this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){if(this.from.row<0&&this.to.row<0)return 0;var e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getWidth",value:function(){if(this.from.col<0&&this.to.col<0)return 0;var e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getCellsCount",value:function(){return this.getWidth()*this.getHeight()}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getOuterTopRightCorner().col>=e.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=e.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=e.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=e.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getOuterBottomRightCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=e.getOuterBottomRightCorner().row||this.getOuterTopRightCorner().row<=e.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=e.getOuterTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=this.getDirection(),o=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),l=Math.max(n.row,i.row),u=Math.max(n.col,i.col),c=this._createCellCoords(a,s),d=this._createCellCoords(l,u);return this.from=c,this.to=d,this.setDirection(r),this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];this.from=o[0],this.to=o[1]}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getTopEndCorner():this.getTopStartCorner()}},{key:"getBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getBottomStartCorner():this.getBottomEndCorner()}},{key:"getTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getTopStartCorner():this.getTopEndCorner()}},{key:"getBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getBottomEndCorner():this.getBottomStartCorner()}},{key:"getOuterTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}},{key:"getOuterBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}},{key:"getOuterTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}},{key:"getOuterBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getOuterTopLeftCorner().isEqual(this._createCellCoords(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(this._createCellCoords(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(this._createCellCoords(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(this._createCellCoords(t.to.row,t.to.col))))||(e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof u.default))return!1;if(t){var n=t.from,r=t.to;if(t.includes(e)){if(this.getOuterTopStartCorner().isEqual(this._createCellCoords(n.row,n.col)))return this.getOuterBottomEndCorner();if(this.getOuterTopEndCorner().isEqual(this._createCellCoords(n.row,r.col)))return this.getOuterBottomStartCorner();if(this.getOuterBottomStartCorner().isEqual(this._createCellCoords(r.row,n.col)))return this.getOuterTopEndCorner();if(this.getOuterBottomEndCorner().isEqual(this._createCellCoords(r.row,r.col)))return this.getOuterTopStartCorner()}}return e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===l&&u.push("right"),n===a&&u.push("bottom"),r===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(this._createCellCoords(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(this._createCellCoords(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){if(!1===e(r,o))return}}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to,(0,s.default)(this,d))}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}},{key:"_createCellCoords",value:function(e,t){return new u.default(e,t,(0,s.default)(this,d))}}]),e}();t.default=h},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6),n(57),n(28);var a=n(15),s=n(51),l=n(90),u=n(78),c=n(24),d=new WeakMap,h=function(){function e(t,n,r,i,a,s){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;(0,o.default)(this,e),this.wtSettings=r,this.domBindings=n,this.wtTable=a,this.selections=s,this.parent=l,this.eventManager=i,this.facadeGetter=t,d.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return(0,i.default)(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.wtTable.holder,"contextmenu",(function(t){return e.onContextMenu(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseout",(function(t){return e.onMouseOut(t)}));var t=function(){e.eventManager.addEventListener(e.wtTable.holder,"touchstart",(function(t){return e.onTouchStart(t)})),e.eventManager.addEventListener(e.wtTable.holder,"touchend",(function(t){return e.onTouchEnd(t)})),e.momentumScrolling||(e.momentumScrolling={}),e.eventManager.addEventListener(e.wtTable.holder,"scroll",(function(){clearTimeout(e.momentumScrolling._timeout),e.momentumScrolling.ongoing||e.wtSettings.getSetting("onBeforeTouchScroll"),e.momentumScrolling.ongoing=!0,e.momentumScrolling._timeout=setTimeout((function(){e.touchApplied||(e.momentumScrolling.ongoing=!1,e.wtSettings.getSetting("onAfterMomentumScroll"))}),200)}))};(0,u.isMobileBrowser)()?t():((0,l.isTouchSupported)()&&t(),e.eventManager.addEventListener(e.wtTable.holder,"mouseup",(function(t){return e.onMouseUp(t)})),e.eventManager.addEventListener(e.wtTable.holder,"mousedown",(function(t){return e.onMouseDown(t)})))}},{key:"selectedCellWasTouched",value:function(e){var t=d.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var r=[n.row,t.selectedCellBeforeTouchEnd.from.row],o=r[0],i=r[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return o===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.wtTable.TABLE,r=(0,a.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.wtTable.getCoords(r),t.TD=r):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.selections.getCell().cellRange.highlight,t.TD=this.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"area")&&this.selections.createOrGetArea().cellRange&&(t.coords=this.selections.createOrGetArea().cellRange.to,t.TD=this.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=d.get(this),n=this.domBindings.rootDocument.activeElement,r=(0,s.partial)(a.getParent,e.target),o=e.target;if(o!==n&&r(0)!==n&&r(1)!==n){var i=this.parentCell(o);(0,a.hasClass)(o,"corner")?this.wtSettings.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.wtSettings.has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,i.coords,i.TD),(0===e.button||this.touchApplied)&&i.TD&&(t.dblClickOrigin[0]=i.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout((function(){t.dblClickOrigin[0]=null}),1e3))}}},{key:"onContextMenu",value:function(e){if(this.wtSettings.has("onCellContextMenu")){var t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}},{key:"onMouseOver",value:function(e){if(this.wtSettings.has("onCellMouseOver")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=this.parent||this;n&&n!==r.lastMouseOver&&(0,a.isChildOf)(n,t)&&(r.lastMouseOver=n,this.callListener("onCellMouseOver",e,this.wtTable.getCoords(n),n))}}},{key:"onMouseOut",value:function(e){if(this.wtSettings.has("onCellMouseOut")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=(0,a.closestDown)(e.relatedTarget,["TD","TH"],t),o=this.parent||this;n&&n!==r&&(0,a.isChildOf)(n,t)&&(this.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n),null===r&&(o.lastMouseOver=null))}}},{key:"onMouseUp",value:function(e){var t=d.get(this),n=this.parentCell(e.target);n.TD&&this.wtSettings.has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),(0===e.button||this.touchApplied)&&(n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout((function(){t.dblClickOrigin[1]=null}),500)))}},{key:"onTouchStart",value:function(e){d.get(this).selectedCellBeforeTouchEnd=this.selections.getCell().cellRange,this.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t,n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,o=(0,c.isDefined)(r)&&r.row>=0&&r.col>=0;if(e.cancelable&&o&&this.wtSettings.getSetting("isDataViewInstance")){(0,u.isIOS)()&&((0,u.isChromeWebKit)()||(0,u.isFirefoxWebKit)())&&this.selectedCellWasTouched(n)&&!["A","BUTTON","INPUT"].includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}},{key:"callListener",value:function(e,t,n,r){var o=this.wtSettings.getSettingPure(e);o&&o(t,n,r,this.facadeGetter())}},{key:"destroy",value:function(){var e=d.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Renderer=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(427));t.RowHeadersRenderer=a.default;var s=r(n(432));t.ColumnHeadersRenderer=s.default;var l=r(n(433));t.ColGroupRenderer=l.default;var u=r(n(434));t.RowsRenderer=u.default;var c=r(n(435));t.CellsRenderer=c.default;var d=r(n(436));t.TableRenderer=d.default;var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,i=t.COLGROUP,h=t.TBODY,f=t.rowUtils,v=t.columnUtils,g=t.cellRenderer;(0,o.default)(this,e),this.renderer=new d.default(n,{cellRenderer:g}),this.renderer.setRenderers({rowHeaders:new a.default,columnHeaders:new s.default(r),colGroup:new l.default(i),rows:new u.default(h),cells:new c.default}),this.renderer.setAxisUtils(f,v)}return(0,i.default)(e,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),e}();t.Renderer=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(295),s=r(n(428)),l=function(){function e(t,n,r){(0,o.default)(this,e),this.rootNode=t,this.nodesPool=n,this.sizeSet=new s.default,this.childNodeType=r.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}return(0,i.default)(e,[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var r=e.firstElementChild;r;){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(a.WORKING_SPACE_TOP))break;r=r.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize().nextSize,o=this.getRenderedChildCount();o<r;){var i=this.nodesPool();!n||n&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)?e.appendChild(i):e.insertBefore(i,e.firstChild),o+=1}for(var s=n&&t.isPlaceOn(a.WORKING_SPACE_TOP);o>r;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_TOP=t.WORKING_SPACE_BOTTOM=t.WORKING_SPACE_ALL=void 0;t.WORKING_SPACE_ALL=0;t.WORKING_SPACE_TOP=1;t.WORKING_SPACE_BOTTOM=2},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getLastRenderedRow:function(){var e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow:function(){var e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getRenderedRowsCount:function(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount:function(){return this.dataAccessObject.countRowsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){var r=n(21),o=n(195),i=n(26),a=n(55),s=n(141).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller,s=t.cellCoordsFactory;a.get(e.type)({coords:n,selection:o,controller:i,cellCoordsFactory:s,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})},t.mouseDown=o,t.mouseOver=i,n(4),n(36),n(1),n(5),n(6);var r=n(62);function o(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=e.cellCoordsFactory,l=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&l)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(u||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):u&&o.row<0&&!a.column?i.setRangeEnd(s(l.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,l.to.col)):(!u&&!c&&o.col<0||u&&o.col<0)&&!a.row?i.selectRows(Math.max(l.from.row,0),o.row,o.col):(!u&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(l.from.col,0),o.col,o.row);else{var d=!i.inInSelection(o),h=n||r&&d;o.row<0&&o.col>=0&&!a.column?h&&i.selectColumns(o.col,o.col,o.row):o.col<0&&o.row>=0&&!a.row?h&&i.selectRows(o.row,o.row,o.col):o.col>=0&&o.row>=0&&!a.cell?h&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0)}}function i(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller,i=e.cellCoordsFactory;if(t){var a=r.isSelectedByRowHeader(),s=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),u=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(u-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,l-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){var r=n(41);t.f=r},function(e,t,n){var r=n(271),o=n(47),i=n(301),a=n(73).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(115);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";n(20),n(37),t.__esModule=!0;var r={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!d.has(e))throw new Error('The provided map type ("'.concat(e,'") does not exist.'));return new(d.get(e))(t)},n(4),n(36),n(1),n(5),n(6);var o=n(466);t.HidingMap=o.HidingMap;var i=n(181);t.IndexMap=i.IndexMap;var a=n(468);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(219);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var l=n(469);t.TrimmingMap=l.TrimmingMap;var u=n(470);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(182);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",a.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",s.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},function(e,t,n){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,r.arrayMap)(e,(function(e){return e-t.filter((function(t){return t<e})).length}))},t.getIncreasedIndexes=function(e,t){var n=t[0],o=t.length;return(0,r.arrayMap)(e,(function(e){return e>=n?e+o:e}))},n(30),n(1);var r=n(13)},function(e,t,n){"use strict";t.__esModule=!0,t.alterUtilsFactory=void 0,n(4),n(36),n(1),n(5),n(6);var r=n(305);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(182),i=n(220),a=new Map([["indexesSequence",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}]]);t.alterUtilsFactory=function(e){if(!1===a.has(e))throw new Error("Alter strategy with ID '".concat(e,"' does not exist."));return a.get(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.dictionaryKeys=t.DEFAULT_LANGUAGE_CODE=void 0,t.getDefaultLanguageDictionary=function(){return d.default},t.getLanguageDictionary=E,t.getLanguagesDictionaries=function(){return C()},t.getTranslatedPhrase=function(e,t,n){var r=E(e);if(null===r)return null;var o=r[t];if((0,s.isUndefined)(o))return null;var i=function(e,t){var n=e;return(0,a.arrayEach)((0,c.getPhraseFormatters)(),(function(r){n=r(e,t)})),n}(o,n);if(Array.isArray(i))return i[0];return i},t.getValidLanguageCode=function(e){var t=(0,l.normalizeLanguageCode)(e);R(t)||(t=v,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=R,t.registerLanguageDictionary=w;var i=n(12),a=n(13),s=n(24),l=n(308),u=r(n(86)),c=n(476),d=r(n(478)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}t.dictionaryKeys=h;var v=d.default.languageCode;t.DEFAULT_LANGUAGE_CODE=v;var g=(0,u.default)("languagesDictionaries"),p=g.register,y=g.getItem,m=g.hasItem,C=g.getValues;function w(e,t){var n=e,r=t;return(0,i.isObject)(e)&&(n=(r=e).languageCode),function(e,t){e!==v&&(0,l.extendNotExistingKeys)(t,y(v))}(n,r),p(n,(0,i.deepClone)(r)),(0,i.deepClone)(r)}function E(e){return R(e)?(0,i.deepClone)(y(e)):null}function R(e){return m(e)}w(d.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createCellHeadersRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=n,i=r;if(e>t){var a=[i,o];o=a[0],i=a[1]}return"".concat(o,"-").concat(i)},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(function(t,n){(0,a.isUndefined)(e[n])&&(e[n]=t)})),e},t.normalizeLanguageCode=function(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase());return e},t.warnUserAboutLanguageRegistration=function(e){(0,a.isDefined)(e)&&(0,l.error)((0,u.toSingleLine)(i||(i=(0,o.default)(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'])),e))};var o=r(n(58));n(19),n(43);var i,a=n(24),s=n(12),l=n(69),u=n(59)},function(e,t,n){"use strict";n(37),n(30),n(16),n(20),n(66);var r=n(0);t.__esModule=!0,t.default=void 0,n(121),n(4),n(36),n(1),n(5),n(6),n(28),n(35),n(19),n(223),n(53),n(152);var o=r(n(29)),i=r(n(25)),a=r(n(2)),s=r(n(3)),l=n(479),u=n(87),c=n(13);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){function t(e){(0,a.default)(this,t),this.options=e,this.layerLevel=0,this.cell=(0,l.createHighlight)(u.CELL_TYPE,e),this.fill=(0,l.createHighlight)(u.FILL_TYPE,e),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(t,[{key:"isEnabledFor",value:function(e,t){var n=e;e===u.CELL_TYPE&&(n="current");var r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}},{key:"useLayerLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=(0,l.createHighlight)(u.AREA_TYPE,h({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return(0,o.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,l.createHighlight)(u.HEADER_TYPE,h({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return(0,o.default)(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,l.createHighlight)(u.ACTIVE_HEADER_TYPE,h({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return(0,o.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,o.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,l.createHighlight)(u.CUSTOM_SELECTION_TYPE,h(h({},this.options),e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,c.arrayEach)(this.areas.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.headers.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:e,value:function(){return[this.cell,this.fill].concat((0,o.default)(this.areas.values()),(0,o.default)(this.headers.values()),(0,o.default)(this.activeHeaders.values()),(0,o.default)(this.customSelections))[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(311));t.DataMap=o.default;var i=r(n(493));t.MetaManager=i.default;var a=r(n(313));t.metaSchemaFactory=a.default;var s=n(498);t.replaceData=s.replaceData;var l=n(499);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var u=n(500);t.ExtendMetaPropertiesMod=u.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6),n(60),n(61),n(46),n(77),n(33),n(20),n(19),n(30),n(23);var o=r(n(29)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(312),u=n(111),c=n(12),d=n(13),h=n(32),f=n(24),v=function(){function e(t,n,r){(0,a.default)(this,e),this.instance=t,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.duckSchema=this.createDuckSchema(),this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap()}return(0,s.default)(e,[{key:"createMap",value:function(){var e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");var t,n=this.tableMeta.columns;if(this.colToPropCache=[],this.propToColCache=new Map,n){var r=0,o=0,i=!1;if("function"==typeof n){var a=(0,c.deepObjectSize)(e);r=a>0?a:this.countFirstRowKeys(),i=!0}else{var s=this.tableMeta.maxCols;r=Math.min(s,n.length)}for(t=0;t<r;t++){var l=i?n(t):n[t];if((0,c.isObject)(l)){if(void 0!==l.data){var u=i?o:t;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,u.countFirstRowKeys)(this.dataSource)}},{key:"recursiveDuckColumns",value:function(e,t,n){var r,o=this,a=t,s=n;return void 0===a&&(a=0,s=""),"object"!==(0,i.default)(e)||Array.isArray(e)||(0,c.objectEach)(e,(function(e,t){null===e?(r=s+t,o.colToPropCache.push(r),o.propToColCache.set(r,a),a+=1):a=o.recursiveDuckColumns(e,a,"".concat(t,"."))})),a}},{key:"colToProp",value:function(e){if(!1===Number.isInteger(e))return e;var t=this.instance.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,f.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t=this.propToColCache.get(e);if((0,f.isDefined)(t))return this.instance.toVisualColumn(t);var n=this.instance.toVisualColumn(e);return null===n?e:n}},{key:"getSchema",value:function(){var e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createDuckSchema",value:function(){return this.dataSource&&this.dataSource[0]?(0,c.duckSchema)(this.dataSource[0]):{}}},{key:"refreshDuckSchema",value:function(){this.duckSchema=this.createDuckSchema()}},{key:"createRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.source,i=r.mode,a=void 0===i?"above":i,s=this.instance.countSourceRows(),l=s,u=0,d=e;("number"!=typeof d||d>=s)&&(d=s),d<this.instance.countRows()&&(l=this.instance.toPhysicalRow(d));var f=this.instance.runHooks("beforeCreateRow",d,n,o);if(!1===f||null===l)return{delta:0};for(var v=this.tableMeta.maxRows,g=this.getSchema().length,p=[],y=function(){var e=null;"array"===t.instance.dataType?t.tableMeta.dataSchema?e=(0,c.deepClone)(t.getSchema()):(e=[],(0,h.rangeEach)(g-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.tableMeta.dataSchema(d+u):(e={},(0,c.deepExtend)(e,t.getSchema())),p.push(e),u+=1};u<n&&s+u<v;)y();this.instance.rowIndexMapper.insertIndexes(d,u),"below"===a&&(l=Math.min(l+1,s)),this.spliceData(l,0,p);var m=this.instance.toVisualRow(l);return this.instance.countSourceRows()===p.length&&this.instance.columnIndexMapper.initToLength(this.instance.getInitialColumnCount()),u>0&&(null==e?this.metaManager.createRow(null,u):"auto"!==o&&this.metaManager.createRow(l,n)),this.instance.runHooks("afterCreateRow",m,u,o),this.instance.forceFullRender=!0,{delta:u,startPhysicalIndex:l}}},{key:"createCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=n.mode,i=void 0===o?"start":o;if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var a=this.dataSource,s=this.tableMeta.maxCols,l=this.instance.countSourceCols(),u=e;("number"!=typeof u||u>=l)&&(u=l);var c=this.instance.runHooks("beforeCreateCol",u,t,r);if(!1===c)return{delta:0};var d=l;u<this.instance.countCols()&&(d=this.instance.toPhysicalColumn(u));var h=this.instance.countSourceRows(),f=this.instance.countCols(),v=0,g=d;"end"===i&&(g=Math.min(g+1,l));for(var p=g;v<t&&f<s;){if("number"!=typeof u||u>=f)if(h>0)for(var y=0;y<h;y+=1)void 0===a[y]&&(a[y]=[]),a[y].push(null);else a.push([null]);else for(var m=0;m<h;m++)a[m].splice(g,0,null);v+=1,g+=1,f+=1}this.instance.columnIndexMapper.insertIndexes(u,v),v>0&&(null==e?this.metaManager.createColumn(null,v):"auto"!==r&&this.metaManager.createColumn(p,t));var C=this.instance.toVisualColumn(p);return this.instance.runHooks("afterCreateCol",C,v,r),this.instance.forceFullRender=!0,this.refreshDuckSchema(),{delta:v,startPhysicalIndex:p}}},{key:"removeRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=Number.isInteger(e)?e:-n,i=this.visualRowsToPhysical(o,n),a=this.instance.countSourceRows();o=(a+o)%a;var s=this.instance.runHooks("beforeRemoveRow",o,i.length,i,r);if(!1===s)return!1;var l=i.length;if(this.filterData(o,l,i),o<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(i);var u=(0,f.isDefined)(this.tableMeta.columns)||(0,f.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===u&&this.instance.columnIndexMapper.setIndexesSequence([])}var c=i.slice(0).sort((function(e,t){return t-e}));return c.forEach((function(e){t.metaManager.removeRow(e,1)})),this.instance.runHooks("afterRemoveRow",o,l,i,r),this.instance.forceFullRender=!0,!0}},{key:"removeCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e})),a=this.instance.runHooks("beforeRemoveCol",r,t,o,n);if(!1===a)return!1;for(var s=!0,l=i.length,u=this.dataSource,c=0;c<l;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)u[d].splice(o[0],t),0===d&&this.metaManager.removeColumn(o[0],t);else for(var f=0,v=this.instance.countSourceRows();f<v;f++)for(var g=0;g<l;g++)u[f].splice(i[g],1),0===f&&this.metaManager.removeColumn(i[g],1);return r<this.instance.countCols()&&(this.instance.columnIndexMapper.removeIndexes(o),0===this.instance.columnIndexMapper.getNotTrimmedIndexesLength()&&this.instance.rowIndexMapper.setIndexesSequence([])),this.instance.runHooks("afterRemoveCol",r,t,o,n),this.instance.forceFullRender=!0,this.refreshDuckSchema(),!0}},{key:"spliceCol",value:function(e,t,n){for(var r=this.instance.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return(0,d.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),o}},{key:"spliceRow",value:function(e,t,n){for(var r=this.instance.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),o}},{key:"spliceData",value:function(e,t,n){var r=this;if(!1!==this.instance.runHooks("beforeDataSplice",e,t,n)){var i=[].concat((0,o.default)(this.dataSource.slice(0,e)),(0,o.default)(n),(0,o.default)(this.dataSource.slice(e)));this.dataSource.length=0,i.forEach((function(e){return r.dataSource.push(e)}))}}},{key:"filterData",value:function(e,t,n){var r=this.instance.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),r=this.dataSource[n],o=this.instance.runHooks("modifyRowData",n),i=null;if((r=isNaN(o)?o:r)&&r.hasOwnProperty&&(0,c.hasOwnProperty)(r,t))i=r[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=r;if(!s)return null;for(var l=0,u=a.length;l<u;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var d=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),d,"get"),d.isTouched()&&(i=d.value)}return i}},{key:"getCopyable",value:function(e,t){return this.instance.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}},{key:"set",value:function(e,t,n){var r=this.instance.toPhysicalRow(e),o=n,i=this.dataSource[r],a=this.instance.runHooks("modifyRowData",r);if(i=isNaN(a)?a:i,this.instance.hasHook("modifyData")){var s=(0,c.createObjectPropListener)(o);this.instance.runHooks("modifyData",r,this.propToCol(t),s,"set"),s.isTouched()&&(o=s.value)}if(i&&i.hasOwnProperty&&(0,c.hasOwnProperty)(i,t))i[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){var l,u=t.split("."),d=i,h=0;for(h=0,l=u.length-1;h<l;h++)void 0===d[u[h]]&&(d[u[h]]={}),d=d[u[h]];d[u[h]]=o}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],o):i[t]=o}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,r=this.instance.countSourceRows(),o=[],i=(r+e)%r,a=t;i<r&&a;)n=this.instance.toPhysicalRow(i),o.push(n),a-=1,i+=1;return o}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),r=[],o=(n+e)%n,i=t;o<n&&i;){var a=this.instance.toPhysicalColumn(o);r.push(a),i-=1,o+=1}return r}},{key:"clear",value:function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")}},{key:"getLength",value:function(){var e,t=this.tableMeta.maxRows;e=t<0||0===t?0:t||1/0;var n=this.instance.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,e)}},{key:"getAll",value:function(){var t={row:0,col:0},n={row:Math.max(this.instance.countRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return t.row-n.row!=0||this.instance.countSourceRows()?this.getRange(t,n,e.DESTINATION_RENDERER):[]}},{key:"countCachedColumns",value:function(){return this.colToPropCache.length}},{key:"getRange",value:function(t,n,r){var o,i,a,s=[],l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(0===l||0===u)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(l-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(u-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=d;o++){a=[];var f=o>=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=h&&null!==f;i++)a.push(c.call(this,o,this.colToProp(i)));null!==f&&s.push(a)}return s}},{key:"getText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.instance=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}],[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),e}();t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=t.parse=void 0;var r=n(492);t.parse=r.parse,t.stringify=r.stringify},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(14)),i=n(24),a=n(12);t.default=function(){return{_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(r=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(r))return!1;return!0},isEmptyRow:function(e){var t,n,r,s;for(t=0,n=this.countCols();t<n;t++)if(r=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(r))return"object"===(0,o.default)(r)&&(s=this.getCellMeta(e,t),(0,a.isObjectEqual)(this.getSchema()[s.prop],r));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:void 0,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(45),n(5),n(6),n(19),n(33),n(46),n(223),n(53),n(152),n(23);var o=r(n(29)),i=r(n(2)),a=r(n(3)),s=n(13),l=n(153),u=function(e){function t(e){(0,i.default)(this,t),this.valueFactory=e,this.data=[],this.index=[],this.holes=new Set}return(0,a.default)(t,[{key:"obtain",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t,n=this._getStorageIndexByKey(e);if(n>=0)void 0===(t=this.data[n])&&(t=this.valueFactory(e),this.data[n]=t);else if(t=this.valueFactory(e),this.holes.size>0){var r=this.holes.values().next().value;this.holes.delete(r),this.data[r]=t,this.index[e]=r}else this.data.push(t),this.index[e]=this.data.length-1;return t}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=[],r=this.data.length,i=0;i<t;i++)n.push(r+i),this.data.push(void 0);var a=(0,l.isNullish)(e)?this.index.length:e;this.index=[].concat((0,o.default)(this.index.slice(0,a)),n,(0,o.default)(this.index.slice(a)))}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,l.isNullish)(e)?this.index.length-t:e,t),r=0;r<n.length;r++){var o=n[r];"number"==typeof o&&this.holes.add(o)}}},{key:"size",value:function(){return this.data.length-this.holes.size}},{key:"values",value:function(){var e=this;return(0,s.arrayFilter)(this.data,(function(t,n){return!e.holes.has(n)}))[Symbol.iterator]()}},{key:"entries",value:function(){for(var e=[],t=0;t<this.data.length;t++){var n=this._getKeyByStorageIndex(t);-1!==n&&e.push([n,this.data[t]])}var r=0;return{next:function(){if(r<e.length){var t=e[r];return r+=1,{value:t,done:!1}}return{done:!0}}}}},{key:"clear",value:function(){this.data=[],this.index=[],this.holes.clear()}},{key:"_getStorageIndexByKey",value:function(e){return this.index.length>e?this.index[e]:-1}},{key:"_getKeyByStorageIndex",value:function(e){return this.index.indexOf(e)}},{key:e,value:function(){return this.entries()}}]),t}(Symbol.iterator);t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(4),n(36),n(1),n(5),n(6),n(74),n(77),n(50);var r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=function(e){return e.map((function(e){var t=e.toLowerCase();return r.has(t)?r.get(t):t})).sort().join("+")};t.getKeysList=function(e){return e.split("+")};t.normalizeEventKey=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(506);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.SHORTCUTS_GROUP_EDITOR=t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var o=r(n(22)),i=r(n(10)),a=r(n(11)),s=r(n(8)),l=r(n(2)),u=r(n(3));n(299),n(123),n(70),n(28);var c=n(24),d=n(12),h=n(148),f=r(n(508)),v=n(15);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}t.EDITOR_TYPE="base";var p=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});t.EDITOR_STATE=p;t.SHORTCUTS_GROUP_EDITOR="baseEditor";var y=function(){function e(t){(0,l.default)(this,e),this.hot=t,this.instance=t,this.state=p.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}return(0,u.default)(e,[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=p.VIRGIN}},{key:"extend",value:function(){return function(e){(0,i.default)(n,e);var t=g(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,u.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var l=this.hot.getSelectedLast();n=Math.max(Math.min(l[0],l[2]),0),r=Math.max(Math.min(l[1],l[3]),0),i=Math.max(l[0],l[2]),a=Math.max(l[1],l[3])}else{var u=[this.row,this.col,null,null];n=u[0],r=u[1],i=u[2],a=u[3]}var d=this.hot.runHooks("modifyGetCellCoords",n,r);if(Array.isArray(d)){var h=(0,o.default)(d,2);n=h[0],r=h[1]}var f=this.hot.getShortcutManager().getContext("editor"),v={runOnlyIf:function(){return(0,c.isDefined)(s.hot.getSelected())},group:"baseEditor"};this.isInFullEditMode()&&f.addShortcuts([{keys:[["ArrowUp"]],callback:function(){s.hot.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){s.hot.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){s.hot.selection.transformStart(0,-1*s.hot.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){s.hot.selection.transformStart(0,s.hot.getDirectionFactor())}}],v),this.hot.populateFromArray(n,r,e,i,a,"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===p.VIRGIN){var n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col);if(n.view.scrollViewport(n._createCellCoords(r,o)),this.state=p.EDITING,this.isInFullEditMode()){var i="string"==typeof e?e:(0,c.stringify)(this.originalValue);this.setValue(i)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,o=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.hot.view.render()}}if(!this.isWaiting()){var a=this.hot.getShortcutManager().getContext("editor");if(a.removeShortcutsByGroup("baseEditor"),a.removeShortcutsByGroup(h.SHORTCUTS_GROUP_NAVIGATION),this.state!==p.VIRGIN){if(this.state===p.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var s=this.getValue();r=this.cellProperties.trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=p.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=p.FINISHED,o.discardEditor(e)})):(this.state=p.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}}},{key:"cancelChanges",value:function(){this.state=p.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===p.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=p.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=p.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===p.WAITING}},{key:"getEditedCellRect",value:function(){var e,t=this.getEditedCell();if(t){var n=this.hot.view._wt,r=n.wtOverlays,o=n.wtViewport,i=this.hot.rootWindow,a=(0,v.offset)(t),s=(0,v.outerWidth)(t),l=(0,v.offset)(this.hot.rootElement),u=(0,v.outerWidth)(this.hot.rootElement),c=r.topOverlay.holder,d=r.inlineStartOverlay.holder,h=c!==i?c.scrollTop:0,f=d!==i?d.scrollLeft:0,g=i.innerWidth-l.left-u,p=(null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt).wtTable,y=p.name,m=["master","inline_start"].includes(y)?h:0,C=["master","top","bottom"].includes(y)?f:0,w=a.top===l.top?0:1,E=a.top-l.top-w-m,R=0;R=this.hot.isRtl()?i.innerWidth-a.left-s-g-1+C:a.left-l.left-1-C,["top","top_inline_start_corner"].includes(y)&&(E+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(y)&&(R+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));var S=this.hot.hasColHeaders(),b=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),T=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),O=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&b<=0||b===O)&&(E+=1),T<=0&&(R+=1);var _=o.rowsRenderCalculator.startPosition,I=o.columnsRenderCalculator.startPosition,k=Math.abs(r.inlineStartOverlay.getScrollPosition()),M=r.topOverlay.getScrollPosition(),N=(0,v.getScrollbarWidth)(this.hot.rootDocument),P=t.offsetTop+_-M,A=0;if(this.hot.isRtl()){var x=t.offsetLeft;A=x>=0?p.getWidth()-t.offsetLeft:Math.abs(x),A+=I-k-s}else A=t.offsetLeft+I-k;var D=(0,v.getComputedStyle)(this.TD,this.hot.rootWindow),L=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",H=parseInt(D[L],10)>0?0:1,B=parseInt(D.borderTopWidth,10)>0?0:1,F=(0,v.outerWidth)(t)+H,V=(0,v.outerHeight)(t)+B,U=(0,v.hasVerticalScrollbar)(c)?N:0,W=(0,v.hasHorizontalScrollbar)(d)?N:0,j=this.hot.view.maximumVisibleElementWidth(A)-U+H;return{top:E,start:R,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(P)-W+B,23),width:F,maxWidth:j}}}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),e}();t.BaseEditor=y,(0,d.mixin)(y,f.default)},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var r=n(518);t.EDITOR_TYPE=r.EDITOR_TYPE,t.CheckboxEditor=r.CheckboxEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0;var r=n(522);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DropdownEditor=r.DropdownEditor},function(e,t,n){"use strict";t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var r=n(523);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var r=n(524);t.EDITOR_TYPE=r.EDITOR_TYPE,t.PasswordEditor=r.PasswordEditor},function(e,t,n){"use strict";t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var r=n(527);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TimeEditor=r.TimeEditor},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=t.RENDERER_TYPE=void 0;var r=n(530);t.RENDERER_TYPE=r.RENDERER_TYPE,t.htmlRenderer=r.htmlRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.checkboxRenderer=t.RENDERER_TYPE=void 0;var r=n(532);t.RENDERER_TYPE=r.RENDERER_TYPE,t.checkboxRenderer=r.checkboxRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.numericRenderer=t.RENDERER_TYPE=void 0;var r=n(534);t.RENDERER_TYPE=r.RENDERER_TYPE,t.numericRenderer=r.numericRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(536);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.timeRenderer=t.RENDERER_TYPE=void 0;var r=n(537);t.RENDERER_TYPE=r.RENDERER_TYPE,t.timeRenderer=r.timeRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.dateValidator=t.correctFormat=t.VALIDATOR_TYPE=void 0;var r=n(540);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(56),o=n(173),i=n(54),a=n(82),s=n(71),l=n(541),u=n(49),c=n(101),d=n(174);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=d(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);if(!isNaN(new Date("".concat(e,"T00:00")).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},function(e,t,n){"use strict";t.__esModule=!0,t.numericValidator=t.VALIDATOR_TYPE=void 0;var r=n(542);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.numericValidator=r.numericValidator},function(e,t,n){"use strict";t.__esModule=!0,t.timeValidator=t.VALIDATOR_TYPE=void 0;var r=n(543);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.timeValidator=r.timeValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6),n(37),n(23);var o=r(n(25)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(32),u=n(24),c=function(){function e(t){(0,i.default)(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return(0,a.default)(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var r=this,o=new Map,i="number"==typeof n?{from:n,to:n}:n,a=i.from,s=i.to;return(0,l.rangeEach)(a,s,(function(n){var i=r.generateSample(e,t,n);o.set(n,i)})),o}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var i=new Map,a="row"===e?"col":"row",c=[];return(0,l.rangeEach)(t.from,t.to,(function(t){var l,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,v="string"==typeof f&&f.length>0;l=v?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,u.stringify)(h).length),i.has(l)||i.set(l,{needed:r.getSampleCount(),strings:[]});var g=i.get(l);g.needed&&((!(c.indexOf(h)>-1)||r.allowDuplicates||v)&&(g.strings.push((0,o.default)({value:h},a,t)),c.push(h),g.needed-=1))})),i}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var r=n(577);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(263),o=n(266),i=n(204),a=n(265);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(h(e))return d(e);return d(o.COLUMN_DATA_TYPE)},t.registerRootComparator=t.getRootComparator=void 0;var o=n(337),i=n(581),a=n(582),s=n(583),l=r(n(86)),u=(0,l.default)("sorting.compareFunctionFactory"),c=u.register,d=u.getItem,h=u.hasItem,f=(0,l.default)("sorting.mainSortComparator"),v=f.register,g=f.getItem;t.getRootComparator=g,t.registerRootComparator=v,c(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),c(a.COLUMN_DATA_TYPE,a.compareFunctionFactory),c(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),c(o.COLUMN_DATA_TYPE,o.compareFunctionFactory)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var i=t.locale;return function(t,a){var s=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLocaleLowerCase(i)),"string"==typeof a&&(a=a.toLocaleLowerCase(i)),t===a?o.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(a)?o.DO_NOT_SWAP:s&&"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(0,r.isEmpty)(a)?s&&"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(a)?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(a)?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(a)||(t=parseFloat(t),a=parseFloat(a)),t<a?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:t>a?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP)}};var r=n(24),o=n(98);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(74);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12);function l(e,t){var n;return(0,a.arrayEach)(t,(function(t){var r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}var u=function(){function e(t){(0,o.default)(this,e),this.hot=t,this.commands={},this.commonCallback=null}return(0,i.default)(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.split(":"),u=i[0],c=2===i.length?i[1]:null,d=this.commands[u];if(!d)throw new Error("Menu command '".concat(u,"' not exists."));if(c&&d.submenu&&(d=l(c,d.submenu.items)),!0!==d.disabled&&("function"!=typeof d.disabled||!0!==d.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(d,"submenu")){var h=[];"function"==typeof d.callback&&h.push(d.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),r.unshift(i.join(":")),(0,a.arrayEach)(h,(function(e){return e.apply(t.hot,r)}))}}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(13),l=n(93);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=e;return o&&o.items?o=o.items:Array.isArray(o)||(o=t),(0,a.isObject)(o)?(0,a.objectEach)(o,(function(e,t){var o=n["string"==typeof e?e:t];o||(o=e),(0,a.isObject)(e)?(0,a.extend)(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=t),r.push(o)})):(0,s.arrayEach)(o,(function(e,t){var o=n[e];!o&&l.ITEMS.indexOf(e)>=0||(o||(o={name:e,key:"".concat(t)}),(0,a.isObject)(e)&&(0,a.extend)(o,e),void 0===o.key&&(o.key=t),r.push(o))})),r}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return(0,i.default)(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,a.objectEach)(e,(function(e,r){var o="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,o=l.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(39),a=n(24);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",l,{name:o.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(22)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),s=n(24),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,l.registerCondition)("eq",c,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=d;var i=r(n(22)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),s=n(39),l=n(343),u=n(344);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if("numeric"===e.meta.type){var a=parseFloat(r,10),c=parseFloat(o,10);r=Math.min(a,c),o=Math.max(a,c)}else if("date"===e.meta.type){var d=(0,s.getCondition)(u.CONDITION_NAME,[o]),h=(0,s.getCondition)(l.CONDITION_NAME,[r]);return d(e)&&h(e)}return e.value>=r&&e.value<=o}t.CONDITION_NAME="between",(0,s.registerCondition)("between",d,{name:a.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(22)),a=r(n(84)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)>=0}t.CONDITION_NAME="date_after",(0,l.registerCondition)("date_after",c,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(22)),a=r(n(84)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)<=0}t.CONDITION_NAME="date_before",(0,l.registerCondition)("date_before",c,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(23);var i=r(n(22)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),s=n(24),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}t.CONDITION_NAME="contains",(0,l.registerCondition)("contains",c,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(158);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunction";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,l)},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1),n(33);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(158);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunctionWithExtraCondition";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((function(e){return e.func(t)}))&&e[e.length-1].func(t)}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunctionWithExtraCondition",s,l)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(22)),i=r(n(58));n(70),n(50),n(23),n(1);var a,s,l=r(n(2)),u=r(n(3)),c=n(13),d=n(12),h=n(59),f=r(n(75)),v=n(39),g=n(234),p=n(158),y=n(24),m=n(65),C="ConditionCollection.filteringStates",w=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,l.default)(this,e),this.hot=t,this.isMapRegistrable=n,this.filteringStates=new m.LinkedPhysicalIndexToValueMap,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(C,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}return(0,u.default)(e,[{key:"isEmpty",value:function(){return 0===this.getFilteredColumns().length}},{key:"isMatch",value:function(e,t){var n,r=this.filteringStates.getValueAtIndex(t),o=null!==(n=null==r?void 0:r.conditions)&&void 0!==n?n:[],i=null==r?void 0:r.operation;return this.isMatchInConditions(o,e,i)}},{key:"isMatchInConditions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID;return!e.length||(0,p.getOperationFunc)(n)(e,t)}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID,r=arguments.length>3?arguments[3]:void 0,o=this.hot.getCellMeta(0,e).locale,l=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),u=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);var d=this.getOperation(e);if(d){if(d!==n)throw Error((0,h.toSingleLine)(a||(a=(0,i.default)(["The column of index "," has been already applied with a `","` \n filter operation. Use `removeConditions` to clear the current conditions and then add new ones. \n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`, \n use it consequently for a particular column)."],["The column of index "," has been already applied with a \\`","\\`\\x20\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\\x20\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\\x20\n use it consequently for a particular column)."])),e,d))}else if((0,y.isUndefined)(p.operations[n]))throw new Error((0,h.toSingleLine)(s||(s=(0,i.default)(["Unexpected operation named `","`. Possible ones are \n `disjunction` and `conjunction`."],["Unexpected operation named \\`","\\`. Possible ones are\\x20\n \\`disjunction\\` and \\`conjunction\\`."])),n));var f=this.getConditions(e);0===f.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:u,args:l,func:(0,v.getCondition)(u,l)}]},r):f.push({name:u,args:l,func:(0,v.getCondition)(u,l)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}},{key:"getOperation",value:function(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}},{key:"getFilteredColumns",value:function(){return this.filteringStates.getEntries().map((function(e){return(0,o.default)(e,1)[0]}))}},{key:"getColumnStackPosition",value:function(e){return this.getFilteredColumns().indexOf(e)}},{key:"exportAllConditions",value:function(){return(0,c.arrayReduce)(this.filteringStates.getEntries(),(function(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=i.operation,s=i.conditions;return e.push({column:r,operation:a,conditions:(0,c.arrayMap)(s,(function(e){return{name:e.name,args:e.args}}))}),e}),[])}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),(0,c.arrayEach)(e,(function(e){(0,c.arrayEach)(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}},{key:"hasConditions",value:function(e,t){var n=this.getConditions(e);return t?n.some((function(e){return e.name===t})):n.length>0}},{key:"destroy",value:function(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(C),this.filteringStates=null,this.clearLocalHooks()}}]),e}();(0,d.mixin)(w,f.default);var E=w;t.default=E},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(13),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,o.default)(this,e),this.conditionCollection=t,this.columnDataFactory=n}return(0,i.default)(e,[{key:"filter",value:function(){var e=this,t=[];return(0,a.arrayEach)(this.conditionCollection.getFilteredColumns(),(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return(0,a.arrayEach)(n,(function(n){void 0!==n&&t.conditionCollection.isMatch(n,e)&&r.push(n)})),r}},{key:"_getIntersectData",value:function(e,t){var n=[];return(0,a.arrayEach)(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}]),e}();t.default=s},function(e,t,n){"use strict";n(53),n(30),n(16),n(20),n(66);var r=n(0);t.__esModule=!0,t.DEFAULT_SETTINGS=t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=u,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s(s({},l),r),o)},t.getEngineSettingsWithOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s({},r),o)},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some((function(n){return void 0!==t[n]&&t[n]!==e[n]}))};var o=r(n(25));n(175),n(1),n(37);var i=n(236);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable";var l={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function u(e){var t,n;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(n=t.language)||void 0===n?void 0:n.langCode}}function c(e){return Object.keys(e).reduce((function(t,n){return"hyperformula"!==n&&(t[n]=e[n]),t}),{})}t.DEFAULT_SETTINGS=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(32),s=n(68),l=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0,this.inlineProperty=t.isRtl()?"right":"left"}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,a.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+"px")}},{key:"getPosition",value:function(){var e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}},{key:"setSize",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,a.isNumeric)(t)&&(this._element.style["margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty))]=t+"px")}},{key:"getOffset",value:function(){var e=this._element.style,t="margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty));return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.applySpanProperties=function(e,t,n,r){t?t.row===n&&t.col===r?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")},n(1),n(80)},function(e,t,n){"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.label,n=void 0===t?"":t,r=e.colspan,o=void 0===r?1:r,i=e.origColspan,a=void 0===i?1:i,s=e.collapsible,l=void 0!==s&&s,u=e.crossHiddenColumns,c=void 0===u?[]:u,d=e.isCollapsed,h=void 0!==d&&d,f=e.isHidden,v=void 0!==f&&f,g=e.isRoot,p=void 0!==g&&g,y=e.isPlaceholder,m=void 0!==y&&y;return{label:n,colspan:o,origColspan:a,collapsible:l,isCollapsed:h,crossHiddenColumns:c,isHidden:v,isRoot:p,isPlaceholder:m}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},function(e,t,n){"use strict";t.__esModule=!0,t.collapseNode=function e(t){var n,a=t.data,s=t.childs;if(a.isCollapsed||a.isHidden||a.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(s[0]);a.isCollapsed=!0;var l=s.slice(1),u=new Set;if(l.length>0)(0,r.arrayEach)(l,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){e.data.isHidden=!0}))}));else for(var c=a.origColspan,d=a.columnIndex,h=1;h<c;h++){var f=d+h;u.add(f)}var v=a.colspan-(null!==(n=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==n?n:1);return t.walkUp((function(e){var t=e.data;t.colspan-=v,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.expandNode)(t)},affectedColumns:Array.from(u),colspanCompensation:v}},n(33),n(4),n(1),n(45),n(5),n(6),n(40);var r=n(13),o=n(356),i=n(357)},function(e,t,n){"use strict";t.__esModule=!0,t.expandNode=function e(t){var n=t.data,a=t.childs;if(!n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);n.isCollapsed=!1;var s=a.slice(1),l=new Set,u=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;u+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;u=d-c;for(var f=1;f<d;f++)l.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=u,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.collapseNode)(t)},affectedColumns:Array.from(l),colspanCompensation:u}},n(33),n(4),n(1),n(45),n(5),n(6),n(40);var r=n(13),o=n(355),i=n(357)},function(e,t,n){"use strict";function r(e,t){var n=e.childs;if(0!==n.length)return n[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown((function(e){var n=e.data,r=e.childs;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(var o=1;o<n.colspan;o++)t(n.columnIndex+o)}))}},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(19);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(13),c=n(32),d=n(15);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this,e,r)).dataManager=i.plugin.dataManager,i.collapsingUI=i.plugin.collapsingUI,i.rowHeaderWidthCache=null,i}return(0,i.default)(n,[{key:"appendLevelIndicators",value:function(e,t){var r=this.hot.toPhysicalRow(e),o=this.dataManager.getRowLevel(r),i=this.dataManager.getDataObject(r),a=t.getElementsByTagName("DIV")[0],s=a.querySelector("span.rowHeader"),l=a.querySelectorAll('[class^="ht_nesting"]');if((0,u.arrayEach)(l,(function(e){e&&a.removeChild(e)})),(0,d.addClass)(t,n.CSS_CLASSES.indicatorContainer),o){var h=this.hot.rootDocument,f=s.cloneNode(!0);a.innerHTML="",(0,c.rangeEach)(0,o-1,(function(){var e=h.createElement("SPAN");(0,d.addClass)(e,n.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(f)}if(this.dataManager.hasChildren(i)){var v=this.hot.rootDocument.createElement("DIV");(0,d.addClass)(t,n.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?(0,d.addClass)(v,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.expandButton)):(0,d.addClass)(v,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.collapseButton)),a.appendChild(v)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t||(t=this.dataManager.cache.levelCount),this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}],[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),n}(r(n(238)).default);t.default=f},function(e,t,n){e.exports=n(360)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(371);var i=H(n(372));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,l,u,c,d=n(514),h=H(n(44)),f=n(65),v=r(n(755)),g=r(n(229)),p=H(n(212)),y=H(n(13)),m=H(n(78)),C=H(n(111)),w=H(n(330)),E=H(n(90)),R=H(n(51)),S=H(n(24)),b=H(n(32)),T=H(n(12)),O=H(n(68)),_=H(n(91)),I=H(n(15)),k=H(n(62)),M=n(107),N=n(149),P=n(150),A=n(154),x=n(177),D=n(34);function L(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(L=function(e){return e?n:t})(e)}function H(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=L(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,d.registerAllModules)(),(0,v.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var B=[y,m,C,w,E,R,S,b,T,O,_,p],F=[I,k];i.default.helper={},i.default.dom={},y.arrayEach(B,(function(e){y.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),y.arrayEach(F,(function(e){y.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes=null!==(a=i.default.cellTypes)&&void 0!==a?a:{},y.arrayEach((0,A.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,A.getCellType)(e)})),i.default.cellTypes.registerCellType=A.registerCellType,i.default.cellTypes.getCellType=A.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},y.arrayEach((0,M.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(O.toUpperCaseFirst(e),"Editor")]=(0,M.getEditor)(e)})),i.default.editors.registerEditor=M.registerEditor,i.default.editors.getEditor=M.getEditor,i.default.renderers=null!==(l=i.default.renderers)&&void 0!==l?l:{},y.arrayEach((0,N.getRegisteredRendererNames)(),(function(e){var t=(0,N.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(O.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=N.registerRenderer,i.default.renderers.getRenderer=N.getRenderer,i.default.validators=null!==(u=i.default.validators)&&void 0!==u?u:{},y.arrayEach((0,P.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(O.toUpperCaseFirst(e),"Validator")]=(0,P.getValidator)(e)})),i.default.validators.registerValidator=P.registerValidator,i.default.validators.getValidator=P.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},y.arrayEach((0,x.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,x.getPlugin)(e)})),i.default.plugins["".concat(O.toUpperCaseFirst(D.BasePlugin.PLUGIN_KEY),"Plugin")]=D.BasePlugin,i.default.plugins.registerPlugin=x.registerPlugin,i.default.plugins.getPlugin=x.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(56),o=n(42),i=n(55),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},function(e,t,n){"use strict";var r=n(252).IteratorPrototype,o=n(100),i=n(139),a=n(168),s=n(138),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(27),o=n(102);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){var r=n(42),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(193),o=n(169);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(195),i=n(38),a=n(27),s=n(196),l=n(141),u=n(170),c=n(259),d=n(55),h=n(89).enforce,f=n(26),v=n(247),g=Object,p=Array.isArray,y=g.isExtensible,m=g.isFrozen,C=g.isSealed,w=g.freeze,E=g.seal,R={},S={},b=!i.ActiveXObject&&"ActiveXObject"in i,T=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},O=u("WeakMap",T,c),_=O.prototype,I=a(_.set);if(v)if(b){r=c.getConstructor(T,"WeakMap",!0),l.enable();var k=a(_.delete),M=a(_.has),N=a(_.get);s(_,{delete:function(e){if(d(e)&&!y(e)){var t=h(this);return t.frozen||(t.frozen=new r),k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(d(e)&&!y(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.has(e)}return M(this,e)},get:function(e){if(d(e)&&!y(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)?N(this,e):t.frozen.get(e)}return N(this,e)},set:function(e,t){if(d(e)&&!y(e)){var n=h(this);n.frozen||(n.frozen=new r),M(this,e)?I(this,e,t):n.frozen.set(e,t)}else I(this,e,t);return this}})}else o&&f((function(){var e=w([]);return I(new O,e,1),!m(e)}))&&s(_,{set:function(e,t){var n;return p(e)&&(m(e)?n=R:C(e)&&(n=S)),I(this,e,t),n==R&&w(e),n==S&&E(e),this}})},function(e,t,n){var r=n(26),o=n(55),i=n(85),a=n(369),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(26);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){var r=n(119),o=n(171),i=n(55),a=n(41)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){var r=n(21),o=n(26),i=n(197).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(373),n(374),n(375),n(376);var o=r(n(262)),i=n(218),a=n(310),s=r(n(52)),l=n(307),u=n(154),c=n(316),d=n(155),h=n(108);function f(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}t.CellCoords=h.CellCoords,t.CellRange=h.CellRange,(0,u.registerCellType)(c.TextCellType),f.editors={BaseEditor:d.BaseEditor},f.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},f.DefaultSettings=(0,a.metaSchemaFactory)(),f.hooks=s.default.getSingleton(),f.CellCoords=h.CellCoords,f.CellRange=h.CellRange,f.packageName="handsontable",f.buildDate="21/06/2023 11:42:43",f.version="13.0.0-next-03941c3-20230621",f.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};var v=f;t.default=v},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(264);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(170)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(267))},function(e,t,n){var r=n(198),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(99).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(99);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(99).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(48),o=n(119),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(55),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(72),o=n(136),i=n(79);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(27),o=n(72),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,v=r.length,g=c;return void 0!==d&&(d=o(d),g=u),s(h,g,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>v){var h=i(c/10);return 0===h?o:h<=v?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var r=n(142),o=n(56),i=n(72),a=n(390),s=n(255),l=n(171),u=n(79),c=n(118),d=n(256),h=n(200),f=Array;e.exports=function(e){var t=i(e),n=l(this),v=arguments.length,g=v>1?arguments[1]:void 0,p=void 0!==g;p&&(g=r(g,v>2?arguments[2]:void 0));var y,m,C,w,E,R,S=h(t),b=0;if(!S||this===f&&s(S))for(y=u(t),m=n?new this(y):f(y);y>b;b++)R=p?g(t[b],b):t[b],c(m,b,R);else for(E=(w=d(t,S)).next,m=n?new this:[];!(C=o(E,w)).done;b++)R=p?a(w,g,[C.value,b],!0):C.value,c(m,b,R);return m.length=b,m}},function(e,t,n){var r=n(54),o=n(257);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(105).forEach,o=n(120)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(21),o=n(38),i=n(207)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){var r=n(21),o=n(38),i=n(207)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(396),n(398)},function(e,t,n){var r=n(21),o=n(38),i=n(279).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(99);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(21),o=n(38),i=n(279).set,a=n(207),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";n(170)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(267))},function(e,t,n){var r=n(73).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(140).PROPER,o=n(26),i=n(274);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||r&&i[e].name!==e}))}},function(e,t,n){var r=n(14).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(106),o=n(56),i=n(27),a=n(173),s=n(54),l=n(82),u=n(209),c=n(71),d=n(404),h=n(206),f=n(103),v=n(49),g=n(101),p=n(198),y=n(174),m=n(172),C=n(205),w=n(26),E=C.UNSUPPORTED_Y,R=Math.min,S=[].push,b=i(/./.exec),T=i(S),O=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=v(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,y=new RegExp(e.source,f+"g");(s=o(m,y,i))&&!((l=y.lastIndex)>g&&(T(h,O(i,g,s.index)),s.length>1&&s.index<i.length&&r(S,h,p(s,1)),d=s[0].length,g=l,h.length>=a));)y.lastIndex===s.index&&y.lastIndex++;return g===i.length?!d&&b(y,"")||T(h,""):T(h,O(i,g)),h.length>a?p(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,v(r),t,n)},function(e,r){var o=s(this),a=v(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(E?"g":"y"),p=new u(E?"^(?:"+o.source+")":o,g),m=void 0===r?4294967295:r>>>0;if(0===m)return[];if(0===a.length)return null===y(p,a)?[a]:[];for(var C=0,w=0,S=[];w<a.length;){p.lastIndex=E?0:w;var b,_=y(p,E?O(a,w):a);if(null===_||(b=R(f(p.lastIndex+(E?w:0)),a.length))===C)w=h(a,w,c);else{if(T(S,O(a,C,w)),S.length===m)return S;for(var I=1;I<=_.length-1;I++)if(T(S,_[I]),S.length===m)return S;w=C=b}}return T(S,O(a,C)),S}]}),!!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),E)},function(e,t,n){var r=n(54),o=n(284),i=n(82),a=n(41)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(21),o=n(194).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(27),o=n(103),i=n(49),a=n(211),s=n(71),l=r(a),u=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),v=h.length,g=void 0===r?" ":i(r);return f<=v||""==g?h:((d=l(g,c((a=f-v)/g.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(99);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){n(21)({target:"String",proto:!0},{repeat:n(211)})},function(e,t,n){var r=n(21),o=n(411);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(106),o=n(76),i=n(96),a=n(79),s=n(120),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var r=n(102),o=n(72),i=n(130),a=n(79),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,v=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=v;break}if(f+=v,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=v)f in d&&(u=n(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DESC=t.ASC=void 0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}};var o=r(n(29)),i=r(n(22));n(4),n(36),n(1),n(5),n(6),n(50),n(77);var a=n(32),s=n(51),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}function l(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:l,getItems:s}};var o=r(n(29));n(4),n(1),n(45),n(5),n(6);var i=n(51),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(22)),i=r(n(29)),a=r(n(2)),s=r(n(3)),l=r(n(25)),u=r(n(63)),c=r(n(64));n(4),n(1),n(5),n(7),n(6),n(60),n(61);var d=n(15),h=r(n(44)),f=n(62),v=r(n(108)),g=n(300),p=n(218);function y(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var m=new WeakMap,C=new WeakMap,w=new WeakMap,E=function(){function e(t){(0,a.default)(this,e),(0,l.default)(this,"instance",void 0),(0,l.default)(this,"eventManager",void 0),(0,l.default)(this,"settings",void 0),(0,l.default)(this,"THEAD",void 0),(0,l.default)(this,"TBODY",void 0),(0,l.default)(this,"_wt",void 0),(0,l.default)(this,"activeWt",void 0),y(this,C,{writable:!0,value:0}),y(this,w,{writable:!0,value:0}),(0,l.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),m.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize(e)}},{key:"getCellAtCoords",value:function(e,t){var n=this._wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wt.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=m.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,d.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var e=this,t=m.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,d.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,d.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,f.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,d.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,f.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,f.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(u===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,d.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=m.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,p.isRootInstance)(e.instance)},preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),(0,c.default)(e,w,t.length),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),(0,c.default)(e,C,t.length),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,o.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),v=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,v);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,l,v,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,v,g,f),e.instance.runHooks("afterRenderer",r,s,l,v,g,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onContainerElementResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||((0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e._wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,f.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e._wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,f.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e._wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e._wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,f.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e._wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.afterRender(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);i=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?i.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,o.default)(u,4),d=c[0],h=c[1],f=c[2],v=c[3];return[d>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(h,1)):h,f>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(f,-1)):f,v>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(v,-1)):v]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsStart&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this._wt=new v.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,l=a.height;this.setLastSize(s,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e._wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if((0,d.isInput)(e))return!0;var t=(0,d.isChildOf)(e,this.instance.view._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return m.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,d.hasClass)(n,"relative"))return(0,d.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.instance.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.firstChild){var o=t.firstChild;(0,d.hasClass)(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,n,r):((0,d.empty)(t),this.appendColHeader(e,t,n,r))}else{var i=this.instance.rootDocument,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="colHeader",this.updateCellHeader(s,e,n,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetColHeader",e,t,r)}},{key:"updateCellHeader",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t,i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,d.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,d.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,d.fastInnerHTML)(e,n(t,r)):((0,d.fastInnerText)(e,String.fromCharCode(160)),(0,d.addClass)(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=m.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=m.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"getColumnHeadersCount",value:function(){return(0,u.default)(this,C)}},{key:"getRowHeadersCount",value:function(){return(0,u.default)(this,w)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=E},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(419)),s=r(n(216)),l=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(31)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(292)),d=r(n(421)),h=r(n(449)),f=r(n(450)),v=r(n(451)),g=r(n(216)),p=n(12),y=n(15);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var C=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new h.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new f.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new v.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new d.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,p.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,y.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,y.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(g.default);t.default=C},function(e,t,n){"use strict";var r=n(27),o=n(102),i=n(55),a=n(47),s=n(146),l=n(131),u=Function,c=r([].concat),d=r([].join),h={},f=function(e,t,n){if(!a(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=u("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=c(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(19),n(1),n(20),n(57);var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(25)),l=n(15),u=n(90),c=n(13),d=n(91),h=n(78),f=n(109),v=function(){function e(t,n,r,o,a,c){var d=this;(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"resizeObserver",new ResizeObserver((function(e){(0,u.requestAnimationFrame)((function(){Array.isArray(e)&&e.length&&d.wtSettings.getSetting("onContainerElementResize")}))}))),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=c;var h=this.domBindings,f=h.rootDocument,v=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,l.getScrollbarWidth)(f);var g="hidden"===v.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,l.getScrollableElement)(c.TABLE),this.initOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=v.scrollX,this.lastScrollY=v.scrollY}return(0,a.default)(e,[{key:"getOverlays",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[this.topOverlay,this.topInlineStartCornerOverlay,this.inlineStartOverlay,this.bottomOverlay,this.bottomInlineStartCornerOverlay];return e&&t.push(this.wtTable),t}},{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(f.TopOverlay,e),this.bottomOverlay=(0,o.default)(f.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(f.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(f.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(f.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),l||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,d.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,l.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.updateLastSpreaderSize();t&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"updateLastSpreaderSize",value:function(){var e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var l=n.wtRootElement,u=l.scrollHeight,c=l.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=u<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>u&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,c.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,c.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=v},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(15),d=r(n(424)),h=n(126),f=n(110);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=v(n);function n(e,r,o,a,s,l){var u;return(0,i.default)(this,n),(u=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,u.inlineStartOverlay=l,u}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,c.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}}]),n}(h.Overlay);t.BottomInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(296)),d=r(n(215)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(180);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(151)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(429)),s=n(295),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.default)(e,[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof a.default}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.default)(e,[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}]),n}(r(n(294)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(15);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(151)).default);t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=n(15);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&(0,c.addClass)(u,"rowHeader")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(58)),a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(69),h=n(59),f=n(180),v=r(n(151));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=!1,y=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!p&&e>1e3&&(p=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(v.default);t.default=y},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(15),c=n(180);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(151)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=r}return(0,i.default)(e,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(15),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,l=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(l=e.getSetting("onModifyRowHeaderWidth",l)))for(var u=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<u;d++){var h=Array.isArray(l)?l[d]:l;h=null==h?c:h,this.headerWidths.set(d,h)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(31)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(25)),d=r(n(292));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var l=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),l,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(l,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(216)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(60),n(61);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),(0,a.default)(this,"lastScrolledColumnPos",-1),(0,a.default)(this,"lastScrolledRowPos",-1),this.dataAccessObject=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalColumns;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleColumn(),s=this.getLastVisibleColumn(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedColumnsStart,d=u.inlineStartOverlay;if(l&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,l?e>this.lastScrolledColumnPos:t):(l&&(e<a||e>s)||!l)&&(h=d.scrollTo(e,l?e>s:t)),h&&(this.lastScrolledColumnPos=e),h}},{key:"scrollViewportVertically",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalRows;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleRow(),s=this.getLastVisibleRow(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedRowsBottom,d=u.fixedRowsTop,h=u.topOverlay;if(l&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,l?e>this.lastScrolledRowPos:n):(l&&(e<a||e>s)||!l)&&(f=h.scrollTo(e,l?e>s:n)),f&&(this.lastScrolledRowPos=e),f}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var u=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var v=o;v>0;v--)if(f+=t.sumCellSizes(v-1,v),u.top+c-f<=h){l=v;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.getScrollTop)(i,i);if(l.top>u)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.wtSettings,n=e.inlineStartOverlay,r=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=e.rootWindow,l=r.getLastVisibleColumn();if(n.mainTableScrollableElement===a){var u=null;if(t.getSetting("rtlMode")){var c=r.TABLE.getBoundingClientRect(),d=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;u=Math.abs(c.right-d)}else{u=(0,s.offset)(r.wtRootElement).left}var h=Math.abs((0,s.getScrollLeft)(a,a));if(u>h)for(var f=(0,s.innerWidth)(a),v=o.getRowHeaderWidth(),g=1;g<=i;g++)if(u+(v+=n.sumCellSizes(g-1,g))-h>=f){l=g-2;break}}return l}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25)),h=n(15),f=r(n(442)),v=n(126),g=n(110);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y=function(e){(0,l.default)(n,e);var t=p(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsBottom",-1),l.cachedFixedRowsBottom=l.wtSettings.getSetting("fixedRowsBottom"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,h.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("defaultRowHeight"),i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,h.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,l=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===l){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=a),u=Math.min(u,t.wtRootElement.scrollWidth),s.width="".concat(u,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(v.Overlay);t.BottomOverlay=y},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(296)),d=r(n(217)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(15),d=r(n(444)),h=n(126),f=n(110);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,f.CLONE_INLINE_START,o,a)}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultColumnWidth"),r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&(this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1));return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(h.Overlay);t.InlineStartOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(297)),d=r(n(215)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_INLINE_START)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25)),h=n(15),f=r(n(446)),v=n(126),g=n(110);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y=function(e){(0,l.default)(n,e);var t=p(n);function n(e,r,o,a,l,u){var c;return(0,i.default)(this,n),c=t.call(this,e,r,g.CLONE_TOP_INLINE_START_CORNER,o,a),(0,d.default)((0,s.default)(c),"topOverlay",void 0),(0,d.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=l,c.inlineStartOverlay=u,c}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,h.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,h.resetCssTransform)(e);var r=(0,h.outerHeight)(this.clone.wtTable.TABLE),o=(0,h.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(v.Overlay);t.TopInlineStartCornerOverlay=y},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(298)),d=r(n(215)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25)),h=n(15),f=r(n(448)),v=n(126),g=n(110);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y=function(e){(0,l.default)(n,e);var t=p(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsTop",-1),l.cachedFixedRowsTop=l.wtSettings.getSetting("fixedRowsTop"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,h.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultRowHeight"),r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;t&&(this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1));if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),l=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}return o}}]),n}(v.Overlay);t.TopOverlay=y},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(298)),d=r(n(217)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(299);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=n(12),u=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,l.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,onContainerElementResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,l.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(28);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(15),c=r(n(125)),d=r(n(297)),h=r(n(217)),f=n(12);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",h.style.position="absolute",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,f.mixin)(g,d.default),(0,f.mixin)(g,h.default);var p=g;t.default=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(15),s=n(12),l=n(452),u=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,l=o.documentElement.offsetWidth,u=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=l-(d?h.right-l:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,l):Math.min(this.getContainerFillWidth(),f,l),s===i&&u>0&&this.sumColumnWidths(0,u-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var v=n.getSetting("stretchH");return"none"!==v&&v?e:Math.max(e,(0,a.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,a.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===l.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset,u=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return u&&s>=0&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,u),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new l.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("viewportRowCalculatorOverride"),calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;var i=t.getSetting("fixedColumnsStart");if(i&&o>=0){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new l.ViewportColumnsCalculator({viewportSize:r,scrollOffset:o,totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)},inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(l.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(l.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.rowsRenderCalculator,i=o.startRow,a=o.endRow;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.columnsRenderCalculator,i=o.startColumn,a=o.endColumn;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&n<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(20),n(37);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(288));t.ViewportColumnsCalculator=i.default;var a=r(n(289));t.ViewportRowsCalculator=a.default;var s=n(213);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(28),n(35),n(19),n(1),n(20),n(454);var o=r(n(22)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(15),u=r(n(456)),c=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(this.settings.createCellCoords(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,v=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,p=d.selectionType,y=void 0===p||["active-header","header"].includes(p);if(y&&null!==s&&null!==c)for(var m=0,C=0;C<n;C+=1){var w=e.wtTable.columnFilter.renderedToSource(C);if(w>=s&&w<=c){var E=e.wtTable.getColumnHeaders(w),R=E.length-1;g&&E.length>1&&(E=[E[R]]);for(var S=0;S<E.length;S+=1){var b=[],T=E[S];h&&b.push(h),f&&b.push(f),S=g?R:S;var O=e.getSetting("onBeforeHighlightingColumnHeader",w,S,{selectionType:p,columnCursor:m,selectionWidth:c-s+1,classNames:b});O!==w&&(T=e.wtTable.getColumnHeader(O,S)),(0,l.addClass)(T,b)}m+=1}}if(null!==a&&null!==u)for(var _=0,I=0;I<t;I+=1){var k=e.wtTable.rowFilter.renderedToSource(I);if(y&&k>=a&&k<=u){var M=e.wtTable.getRowHeaders(k),N=M.length-1;g&&M.length>1&&(M=[M[N]]);for(var P=0;P<M.length;P+=1){var A=[],x=M[P];h&&A.push(h),v&&A.push(v),P=g?N:P;var D=e.getSetting("onBeforeHighlightingRowHeader",k,P,{selectionType:p,rowCursor:_,selectionHeight:u-a+1,classNames:A});D!==k&&(x=e.wtTable.getRowHeader(D,P)),(0,l.addClass)(x,A)}_+=1}if(null!==s&&null!==c)for(var L=0;L<n;L+=1){var H=e.wtTable.columnFilter.renderedToSource(L);k>=a&&k<=u&&H>=s&&H<=c?this.settings.className&&this.addClassAtCoords(e,k,H,this.settings.className,this.settings.markIntersections):k>=a&&k<=u?v&&this.addClassAtCoords(e,k,H,v):H>=s&&H<=c&&f&&this.addClassAtCoords(e,k,H,f);var B=e.getSetting("onAfterDrawSelection",k,H,this.settings.layerLevel);"string"==typeof B&&this.addClassAtCoords(e,k,H,B)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=c},function(e,t,n){var r=n(21),o=n(455).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(48),o=n(26),i=n(27),a=n(167),s=n(135),l=n(76),u=i(n(164).f),c=i([].push),d=r&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),h=function(e){return function(t){for(var n,o=l(t),i=s(o),h=d&&null===a(o),f=i.length,v=0,g=[];f>v;)n=i[v++],r&&!(h?n in o:u(o,n))||c(g,e?[n,o[n]]:o[n]);return g}};e.exports={entries:h(!0),values:h(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(74);var o=r(n(22)),i=r(n(2)),a=r(n(3)),s=n(15),l=n(62),u=n(12),c=n(78),d=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t){var n=e.main.childNodes[t];e.eventManager.addEventListener(n,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","start","bottom","end","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,c.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[n]=t}));var r={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,r,o,i){var a=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=this.selectionHandles.styles,l=s.top,u=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(l.borderWidth,10),f=parseInt(l.width,10),v=parseInt(u.width,10),g=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();l.top="".concat(parseInt(n-f-1,10),"px"),l[a]="".concat(parseInt(r-f-1,10),"px"),u.top="".concat(parseInt(n-v/4*3,10),"px"),u[a]="".concat(parseInt(r-v/4*3,10),"px");var y=Math.min(parseInt(r+o,10),g-f-2*h),m=Math.min(parseInt(r+o-v/4,10),g-v-2*h);c[a]="".concat(y,"px"),d[a]="".concat(m,"px");var C=Math.min(parseInt(n+i,10),p-f-2*h),w=Math.min(parseInt(n+i-v/4,10),p-v-2*h);c.top="".concat(C,"px"),d.top="".concat(w,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",u.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(l.display="none",c.display="none",u.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",u.zIndex="9999"):(l.zIndex="",u.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,l,u=this.wot,d=u.wtTable,h=u.rootDocument,f=u.rootWindow,v=d.getRenderedRowsCount(),g=0;g<v;g+=1){var p=d.rowFilter.renderedToSource(g);if(p>=e[0]&&p<=e[2]){t=p,a=e[0];break}}for(var y=v-1;y>=0;y-=1){var m=d.rowFilter.renderedToSource(y);if(m>=e[0]&&m<=e[2]){n=m;break}}for(var C=d.getRenderedColumnsCount(),w=0;w<C;w+=1){var E=d.columnFilter.renderedToSource(w);if(E>=e[1]&&E<=e[3]){r=E,l=e[1];break}}for(var R=C-1;R>=0;R-=1){var S=d.columnFilter.renderedToSource(R);if(S>=e[1]&&S<=e[3]){i=S;break}}if(void 0!==t&&void 0!==r){var b=d.getCell(this.wot.createCellCoords(t,r)),T=t!==n||r!==i,O=T?d.getCell(this.wot.createCellCoords(n,i)):b,_=(0,s.offset)(b),I=T?(0,s.offset)(O):_,k=(0,s.offset)(d.TABLE),M=(0,s.outerWidth)(d.TABLE),N=_.top,P=_.left,A=this.wot.wtSettings.getSetting("rtlMode"),x=0,D=0;if(A){var L=(0,s.outerWidth)(b),H=f.innerWidth-k.left-M;D=P+L-I.left,x=f.innerWidth-P-L-H-1}else D=I.left+(0,s.outerWidth)(O)-P,x=P-k.left-1;if(this.isEntireColumnSelected(t,n)){var B=this.getDimensionsFromHeader("columns",r,i,a,k),F=null;if(B){var V=(0,o.default)(B,3);F=V[0],x=V[1],D=V[2]}F&&(b=F)}var U=N-k.top-1,W=I.top+(0,s.outerHeight)(O)-N;if(this.isEntireRowSelected(r,i)){var j=this.getDimensionsFromHeader("rows",t,n,l,k),Y=null;if(j){var G=(0,o.default)(j,3);Y=G[0],U=G[1],W=G[2]}Y&&(b=Y)}var z=(0,s.getComputedStyle)(b,f);parseInt(z.borderTopWidth,10)>0&&(U+=1,W=W>0?W-1:0),parseInt(z[A?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,D=D>0?D-1:0);var K=A?"right":"left";this.topStyle.top="".concat(U,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(D,"px"),this.topStyle.display="block",this.startStyle.top="".concat(U,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(W,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(U+W-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(D,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(U,"px"),this.endStyle[K]="".concat(x+D-X,"px"),this.endStyle.height="".concat(W+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var Q=this.wot.getSetting("onModifyGetCellCoords",n,i),$=n,J=i;if(Q&&Array.isArray(Q)){var Z=(0,o.default)(Q,4);$=Z[2],J=Z[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange($,J))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(U+W+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+D+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(d.TABLE),te=ee===f;te&&(ee=h.documentElement);var ne=parseInt(this.cornerDefaultStyle.width,10)/2,re=parseInt(this.cornerDefaultStyle.height,10)/2;if(i===this.wot.getSetting("totalColumns")-1){var oe=te?O.getBoundingClientRect().left:O.offsetLeft;(A?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(O)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+D+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[A?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?O.getBoundingClientRect().top:O.offsetTop)+(0,s.outerHeight)(O)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(U+W+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,U,x,D,W)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,v=null,g=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var p=this.wot.getSetting("columnHeaders").length;if(v=l(t,p-r),g=l(n,p-r),!v||!g)return!1;var y=(0,s.offset)(v),m=(0,s.offset)(g);return v&&g&&(d=y[f]-o[f]-1,h=m[f]+u(g)-y[f]),[v,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"start"!==e&&"end"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(21),o=n(38),i=n(56),a=n(27),s=n(94),l=n(48),u=n(115),c=n(26),d=n(47),h=n(95),f=n(54),v=n(76),g=n(162),p=n(49),y=n(139),m=n(100),C=n(135),w=n(117),E=n(197),R=n(165),S=n(97),b=n(73),T=n(241),O=n(164),_=n(83),I=n(144),k=n(114),M=n(163),N=n(137),P=n(160),A=n(41),x=n(301),D=n(302),L=n(458),H=n(168),B=n(89),F=n(105).forEach,V=M("hidden"),U=B.set,W=B.getterFor("Symbol"),j=Object.prototype,Y=o.Symbol,G=Y&&Y.prototype,z=o.TypeError,K=o.QObject,X=S.f,q=b.f,Q=E.f,$=O.f,J=a([].push),Z=k("symbols"),ee=k("op-symbols"),te=k("wks"),ne=!K||!K.prototype||!K.prototype.findChild,re=l&&c((function(){return 7!=m(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(j,t);r&&delete j[t],q(e,t,n),r&&e!==j&&q(j,t,r)}:q,oe=function(e,t){var n=Z[e]=m(G);return U(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},ie=function(e,t,n){e===j&&ie(ee,t,n),f(e);var r=g(t);return f(n),d(Z,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=m(n,{enumerable:y(0,!1)})):(d(e,V)||q(e,V,y(1,{})),e[V][r]=!0),re(e,r,n)):q(e,r,n)},ae=function(e,t){f(e);var n=v(t),r=C(n).concat(ce(n));return F(r,(function(t){l&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=g(e),n=i($,this,t);return!(this===j&&d(Z,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,V)&&this[V][t])||n)},le=function(e,t){var n=v(e),r=g(t);if(n!==j||!d(Z,r)||d(ee,r)){var o=X(n,r);return!o||!d(Z,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},ue=function(e){var t=Q(v(e)),n=[];return F(t,(function(e){d(Z,e)||d(N,e)||J(n,e)})),n},ce=function(e){var t=e===j,n=Q(t?ee:v(e)),r=[];return F(n,(function(e){!d(Z,e)||t&&!d(j,e)||J(r,Z[e])})),r};u||(_(G=(Y=function(){if(h(G,this))throw z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,t=P(e),n=function(e){this===j&&i(n,ee,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),re(this,t,y(1,e))};return l&&ne&&re(j,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return W(this).tag})),_(Y,"withoutSetter",(function(e){return oe(P(e),e)})),O.f=se,b.f=ie,T.f=ae,S.f=le,w.f=E.f=ue,R.f=ce,x.f=function(e){return oe(A(e),e)},l&&(I(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||_(j,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),F(C(te),(function(e){D(e)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?m(e):ae(m(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ue}),L(),H(Y,"Symbol"),N[V]=!0},function(e,t,n){var r=n(56),o=n(88),i=n(41),a=n(83);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(21),o=n(88),i=n(47),a=n(49),s=n(114),l=n(303),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(21),o=n(47),i=n(134),a=n(116),s=n(114),l=n(303),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},function(e,t,n){var r=n(21),o=n(88),i=n(106),a=n(56),s=n(27),l=n(26),u=n(42),c=n(134),d=n(146),h=n(462),f=n(115),v=String,g=o("JSON","stringify"),p=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),C=s("".replace),w=s(1..toString),E=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,b=!f||l((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),T=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),O=function(e,t){var n=d(arguments),r=h(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=a(r,this,v(e),t)),!c(t))return t},i(g,null,n)},_=function(e,t,n){var r=y(n,t-1),o=y(n,t+1);return p(R,e)&&!p(S,o)||p(S,e)&&!p(R,r)?"\\u"+w(m(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:b||T},{stringify:function(e,t,n){var r=d(arguments),o=i(b?O:g,null,r);return T&&"string"==typeof o?C(o,E,_):o}})},function(e,t,n){var r=n(27),o=n(119),i=n(42),a=n(85),s=n(49),l=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!=a(u)&&"String"!=a(u)||l(n,s(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},function(e,t,n){var r=n(21),o=n(115),i=n(26),a=n(165),s=n(72);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(60),n(61),n(1),n(20);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(111),l=n(13),u=n(32),c=n(51),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,t,r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,t,o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0;var o=r(n(29)),i=r(n(2)),a=r(n(3));n(4),n(1),n(45),n(5),n(6),n(36),n(40),n(176),n(147),n(50),n(30),n(23),n(28),n(35),n(121);var s=n(13),l=n(304),u=n(471),c=r(n(75)),d=n(12),h=n(24),f=n(473),v=(new Set,function(){function e(){var t=this;(0,i.default)(this,e),this.indexesSequence=new l.IndexesSequence,this.trimmingMapsCollection=new u.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new u.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new u.MapCollection,this.hidingChangesObservable=new f.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.indexesChangeSource=void 0,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("indexesSequenceChange",t.indexesChangeSource),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,a.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,l.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof l.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof l.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,h.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,h.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,h.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,h.isDefined)(t)?t:null}},{key:"getNearestNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getPhysicalFromVisualIndex(e);if(null===r)return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;var o=Array.from(this.fromVisualToRenderableIndexesCache.keys()),i=-1;return-1===(i=t>0?o.findIndex((function(t){return t>e})):o.reverse().findIndex((function(t){return t<e})))?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,s.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,l.getListWithRemovedItems)(this.getIndexesSequence(),r),u=o-i;if(t+i<o){var c=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];u=a.indexOf(c)}this.indexesChangeSource="move",this.setIndexesSequence((0,l.getListWithInsertedItems)(a,u,r)),this.indexesChangeSource=void 0}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,h.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,s.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(o,i),this.indexesChangeSource=void 0,this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderableIndexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}());t.IndexMapper=v,(0,d.mixin)(v,c.default)},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(219),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(8);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(19),n(50),n(4),n(1),n(6),n(28),n(35),n(46);var o=r(n(29)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(18)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(25)),f=n(181),v=n(220),g=n(182),p=n(305),y=n(51);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var C=function(e){(0,u.default)(n,e);var t=m(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,y.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,v.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,p.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,v.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,p.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(219),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(18)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(181),d=n(182),h=n(306);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=v},function(e,t,n){"use strict";n(1),n(20),n(37),t.__esModule=!0;var r=n(472);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(221);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(221),c=n(13),d=n(24);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(4),n(1),n(45),n(5),n(6),n(121),n(20),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(63)),s=r(n(64)),l=n(474),u=n(475);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,d,{writable:!0,value:new Set}),c(this,h,{writable:!0,value:[]}),c(this,f,{writable:!0,value:[]}),c(this,v,{writable:!0,value:!1}),c(this,g,{writable:!0,value:!1}),(0,s.default)(this,g,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,h),(0,a.default)(this,f))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,f);(0,a.default)(this,v)&&(0,a.default)(this,h).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,g)):(0,s.default)(this,h,new Array(e.length).fill((0,a.default)(this,g))),(0,a.default)(this,v)||((0,s.default)(this,v,!0),t=(0,a.default)(this,h)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(64)),s=r(n(63)),l=n(12),u=r(n(75));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(){(0,o.default)(this,e),c(this,d,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,d)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,d,e)}}]),e}();t.ChangesObserver=h,(0,l.mixin)(h,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=u;var o=r(n(86)),i=r(n(477)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(60),n(61)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(25)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17));
31
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("dompurify"),require("pikaday"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["moment","dompurify","pikaday","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("moment"),require("dompurify"),require("pikaday"),require("numbro")):e.Handsontable=t(e.moment,e.DOMPurify,e.Pikaday,e.numbro)}("undefined"!=typeof self?self:this,(function(e,t,n,r){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=359)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(193),o=n(83),i=n(366);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(283);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(76),o=n(132),i=n(138),a=n(89),s=n(73).f,l=n(191),u=n(192),c=n(94),d=n(48),h=a.set,f=a.getterFor("Array Iterator");e.exports=l(Array,"Array",(function(e,t){h(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(194).charAt,o=n(49),i=n(89),a=n(191),s=n(192),l=i.set,u=i.getterFor("String Iterator");a(String,"String",(function(e){l(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?s(void 0,!0):(e=r(n,o),t.index+=e.length,s(e,!1))}))},function(e,t,n){var r=n(38),o=n(260),i=n(261),a=n(4),s=n(104),l=n(41),u=l("iterator"),c=l("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)h(r[f]&&r[f].prototype,f);h(i,"DOMTokenList")},function(e,t,n){n(367)},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(21),o=n(88),i=n(106),a=n(420),s=n(284),l=n(54),u=n(55),c=n(100),d=n(26),h=o("Reflect","construct"),f=Object.prototype,v=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),p=!d((function(){h((function(){}))})),y=g||p;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(p&&!g)return h(e,t,n);if(e==n){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])}var r=[null];return i(v,r,t),new(i(a,e,r))}var o=n.prototype,d=c(u(o)?o:f),y=i(e,d,t);return u(y)?y:d}})},function(e,t,n){var r=n(291);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(14).default,o=n(31);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.clone=function(e){var t={};return u(e,(function(e,n){t[n]=e})),t},t.createObjectPropListener=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),i=(t={_touched:!1},(0,o.default)(t,r,e),(0,o.default)(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,n){u(n,(function(r,o){n[o]&&"object"===(0,i.default)(n[o])?(t[o]||(Array.isArray(n[o])?t[o]=[]:"[object Date]"===Object.prototype.toString.call(n[o])?t[o]=n[o]:t[o]={}),e(t[o],n[o])):t[o]=n[o]}))},t.deepObjectSize=function(e){if(!l(e))return 0;return function e(t){var n=0;return l(t)?u(t,(function(t,r){"__children"!==r&&(n+=e(t))})):n+=1,n}(e)},t.defineGetter=function(e,t,n,r){r.value=n,r.writable=!1!==r.writable,r.enumerable=!1!==r.enumerable,r.configurable=!1!==r.configurable,Object.defineProperty(e,t,r)},t.duckSchema=function e(t){var n;Array.isArray(t)?n=t.length?new Array(t.length).fill(null):[]:(n={},u(t,(function(t,r){"__children"!==r&&(t&&"object"===(0,i.default)(t)&&!Array.isArray(t)?n[r]=e(t):Array.isArray(t)?t.length&&"object"===(0,i.default)(t[0])&&!Array.isArray(t[0])?n[r]=[e(t[0])]:n[r]=[]:n[r]=null)})));return n},t.extend=function(e,t,n){var r=Array.isArray(n);return u(t,(function(t,o){(!1===r||n.includes(o))&&(e[o]=t)})),e},t.getProperty=function(e,t){var n=t.split("."),r=e;return u(n,(function(e){if(void 0===(r=r[e]))return r=void 0,!1})),r},t.hasOwnProperty=c,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=l,t.isObjectEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.mixin=function(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,a.arrayEach)(n,(function(t){e.MIXINS.push(t.MIXIN_NAME),u(t,(function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '".concat(n,"' already exist and cannot be overwritten."));if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:(r=n,o=t,i="_".concat(r),function(){var e;return void 0===this[i]&&(this[i]=(e=o,(Array.isArray(e)||l(e))&&(e=s(e)),e)),this[i]}),set:function(e){var t="_".concat(e);return function(e){this[t]=e}}(n),configurable:!0})}var r,o,i}))})),e},t.objectEach=u,t.setProperty=function(e,t,n){var r=t.split("."),o=e;r.forEach((function(e,t){t!==r.length-1?(c(o,e)||(o[e]={}),o=o[e]):o[e]=n}))};var o=r(n(25)),i=r(n(14));n(121),n(28),n(35),n(1),n(80),n(37),n(20);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";function r(e,t,n,r){var o=-1,i=e,a=n;Array.isArray(e)||(i=Array.from(e));var s=i.length;for(r&&s&&(a=i[o+=1]),o+=1;o<s;)a=t(a,i[o],o,i),o+=1;return a}function o(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));for(var o=r.length;n<o&&!1!==t(r[n],n,r);)n+=1;return e}function i(e){return r(e,(function(e,t){return e+t}),0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return i(e)/e.length},t.arrayEach=o,t.arrayFilter=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];t(s,n,r)&&(i[a+=1]=s),n+=1}return i},t.arrayFlatten=function e(t){return r(t,(function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])},t.arrayMap=function(e,t){var n=0,r=e;Array.isArray(e)||(r=Array.from(e));var o=r.length,i=[],a=-1;for(;n<o;){var s=r[n];i[a+=1]=t(s,n,r),n+=1}return i},t.arrayMax=function(e){return r(e,(function(e,t){return e>t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return r(e,(function(e,t){return e<t?e:t}),Array.isArray(e)?e[0]:void 0)},t.arrayReduce=r,t.arraySum=i,t.arrayUnique=function(e){var t=[];return o(e,(function(e){-1===t.indexOf(e)&&t.push(e)})),t},t.extendArray=function(e,t){var n=t.length,r=0;for(;r<n;)e.push(t[r]),r+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return!e.includes(t)}))})),s},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=i;return o(a,(function(e){s=s.filter((function(t){return e.includes(t)}))})),s},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[].concat(t),i=r[0],a=r.slice(1),s=new Set(i);return o(a,(function(e){o(e,(function(e){s.has(e)||s.add(e)}))})),Array.from(s)},t.pivot=function(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,r=e[0].length,o=0;o<n;o++)for(var i=0;i<r;i++)t[i]||(t[i]=[]),t[i][o]=e[o][i];return t},t.stringToArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){var t=e.length,n=0;for(;n<t;)e[n]=[e[n]],n+=1},n(40),n(5),n(19),n(23),n(33),n(30),n(1),n(28),n(35),n(4),n(45),n(6),n(43),n(403)},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.addClass=function(e,t){a(e,t)},t.addEvent=function(e,t,n){e.addEventListener(t,n,!1)},t.clearTextSelection=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()},t.closest=h,t.closestDown=function(e,t,n){var r=[],o=e;for(;o&&(o=h(o,t,n))&&(!n||n.contains(o));)r.push(o),o=o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o.host:o.parentNode;var i=r.length;return i?r[i-1]:null},t.empty=p,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];m.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:C(e,t)},t.fastInnerText=C,t.getCaretPosition=function(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),o=r.duplicate();return r.moveToBookmark(n.getBookmark()),o.setEndPoint("EndToStart",r),o.text.length}return 0},t.getComputedStyle=R,t.getCssTransform=function(e){var t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];if(e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"]))return["-webkit-transform",t];return-1},t.getFrameElement=d,t.getParent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,o=e;for(;null!==o;){if(n===t){r=o;break}o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE?o=o.host:(n+=1,o=o.parentNode)}return r},t.getParentWindow=function(e){return d(e)&&e.parent},t.getScrollLeft=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return w(t);return e.scrollTop},t.getScrollableElement=function(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(t=e.document?e.document:e,n=t.defaultView);var r=["auto","scroll"],o=(0,l.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,u=a.overflowX,c=a.overflowY;if([s,u,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(u)||r.includes(c))return i}if(i.clientHeight<=i.scrollHeight+1&&(r.includes(c)||r.includes(s)))return i;if(i.clientWidth<=i.scrollWidth+1&&(r.includes(u)||r.includes(s)))return i;i=i.parentNode}return n},t.getScrollbarWidth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===y&&(y=S(e));return y},t.getSelectionEndPosition=function(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0},t.getSelectionText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text);return n},t.getStyle=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var o=R(e,n);if(""!==o[t]&&void 0!==o[t])return o[t]},t.getTrimmingContainer=function(e){var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;for(;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var o=R(r,n),i=["scroll","hidden","auto"],a=o.getPropertyValue("overflow"),s=o.getPropertyValue("overflow-y"),l=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(l))return r;r=r.parentNode}return n},t.getWindowScrollLeft=E,t.getWindowScrollTop=w,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){return i(e,t)},t.hasHorizontalScrollbar=function(e){return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){return e.offsetWidth!==e.clientWidth},t.index=function(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){var n=e.parentNode,r=[];"string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);for(;null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isInput=b,t.isOutsideInput=T,t.isVisible=function e(t){var n=t.ownerDocument.documentElement,r=t;for(;r!==n;){if(null===r)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r.host){if(r.host.impl)return e(r.host.impl);if(r.host)return e(r.host);throw new Error("Lost in Web Components world")}return!1}if(r.style&&"none"===r.style.display)return!1;r=r.parentNode}return!0},t.matchesCSSRules=function(e,t){var n=t.selectorText,r=!1;t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n)));return r},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&null!==e.offsetParent&&(t(),r.unobserve(e))}))}),{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){var t,n,r,o,i=e.ownerDocument,a=i.defaultView,s=i.documentElement,u=e;if((0,l.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(o=u.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=u.offsetLeft,n=u.offsetTop,r=u;for(;(u=u.offsetParent)&&u!==i.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;r&&"fixed"===r.style.position&&(t+=a.pageXOffset||s.scrollLeft,n+=a.pageYOffset||s.scrollTop);return{left:t,top:n}},t.outerHeight=function(e){if((0,l.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return e.offsetHeight+e.firstChild.offsetHeight;return e.offsetHeight},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null},t.removeClass=function(e,t){s(e,t)},t.removeEvent=function(e,t,n){e.removeEventListener(t,n,!1)},t.removeTextNodes=function e(t){if(3===t.nodeType)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1)for(var n=t.childNodes,r=n.length-1;r>=0;r--)e(n[r])},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")},t.selectElementIfAllowed=function(e){T(e.ownerDocument.activeElement)||e.select()},t.setCaretPosition=function(e,t,n){void 0===n&&(n=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(i){var r=e.parentNode,o=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=o}}},t.setOverlayPosition=function(e,t,n){(0,u.isIE9)()?(e.style.top=n,e.style.left=t):(0,u.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(29));n(281),n(28),n(35),n(33),n(23),n(30),n(1),n(122),n(43),n(80),n(74),n(123),n(67),n(19),n(20);var i,a,s,l=n(90),u=n(78),c=n(68);function d(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,o=r.ELEMENT_NODE,i=r.DOCUMENT_FRAGMENT_NODE,a=e;null!=a&&a!==n;){var s=a,l=s.nodeType,u=s.nodeName;if(l===o&&(t.includes(u)||t.includes(a)))return a;var c=a,d=c.host;a=d&&l===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,l.isClassListSupported)()){var v=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};i=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},a=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(v(r))(n=e.classList).add.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.add(i[a]),a+=1},s=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=f(i)).length>0)if(v(r))(n=e.classList).remove.apply(n,(0,o.default)(i));else for(var a=0;i[a];)e.classList.remove(i[a]),a+=1}}else{var g=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};i=function(e,t){return void 0!==e.className&&g(t).test(e.className)},a=function(e,t){var n=e.className,r=t;if("string"==typeof r&&(r=r.split(" ")),r=f(r),""===n)n=r.join(" ");else for(var o=0;o<r.length;o++)r[o]&&!g(r[o]).test(n)&&(n+=" ".concat(r[o]));e.className=n},s=function(e,t){var n=0,r=e.className,o=t;for("string"==typeof o&&(o=o.split(" ")),o=f(o);o[n];)r=r.replace(g(o[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function p(e){for(var t;t=e.lastChild;)e.removeChild(t)}var y,m=/(<(.*)>|&(.*);)/;function C(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?l.isTextContentSupported?n.textContent=t:n.data=t:(p(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;return r===o&&(o=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-o}function b(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function T(e){return b(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=m},function(e,t,n){var r=n(21),o=n(26),i=n(76),a=n(97).f,s=n(48);r({target:"Object",stat:!0,forced:!s||o((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},function(e,t,n){"use strict";t.__esModule=!0,t.FILTERS_VALUES_BLANK_CELLS=t.FILTERS_NAMESPACE=t.FILTERS_LABELS_DISJUNCTION=t.FILTERS_LABELS_CONJUNCTION=t.FILTERS_DIVS_FILTER_BY_VALUE=t.FILTERS_DIVS_FILTER_BY_CONDITION=t.FILTERS_CONDITIONS_YESTERDAY=t.FILTERS_CONDITIONS_TOMORROW=t.FILTERS_CONDITIONS_TODAY=t.FILTERS_CONDITIONS_NOT_EQUAL=t.FILTERS_CONDITIONS_NOT_EMPTY=t.FILTERS_CONDITIONS_NOT_CONTAIN=t.FILTERS_CONDITIONS_NOT_BETWEEN=t.FILTERS_CONDITIONS_NONE=t.FILTERS_CONDITIONS_NAMESPACE=t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_LESS_THAN=t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=t.FILTERS_CONDITIONS_GREATER_THAN=t.FILTERS_CONDITIONS_EQUAL=t.FILTERS_CONDITIONS_ENDS_WITH=t.FILTERS_CONDITIONS_EMPTY=t.FILTERS_CONDITIONS_CONTAINS=t.FILTERS_CONDITIONS_BY_VALUE=t.FILTERS_CONDITIONS_BETWEEN=t.FILTERS_CONDITIONS_BEGINS_WITH=t.FILTERS_CONDITIONS_BEFORE=t.FILTERS_CONDITIONS_AFTER=t.FILTERS_BUTTONS_SELECT_ALL=t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=t.FILTERS_BUTTONS_OK=t.FILTERS_BUTTONS_CLEAR=t.FILTERS_BUTTONS_CANCEL=t.CONTEXT_MENU_ITEMS_NAMESPACE=t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=t.CONTEXTMENU_ITEMS_UNDO=t.CONTEXTMENU_ITEMS_SHOW_ROW=t.CONTEXTMENU_ITEMS_SHOW_COLUMN=t.CONTEXTMENU_ITEMS_ROW_BELOW=t.CONTEXTMENU_ITEMS_ROW_ABOVE=t.CONTEXTMENU_ITEMS_REMOVE_ROW=t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=t.CONTEXTMENU_ITEMS_REDO=t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=t.CONTEXTMENU_ITEMS_READ_ONLY=t.CONTEXTMENU_ITEMS_NO_ITEMS=t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=t.CONTEXTMENU_ITEMS_MERGE_CELLS=t.CONTEXTMENU_ITEMS_INSERT_RIGHT=t.CONTEXTMENU_ITEMS_INSERT_LEFT=t.CONTEXTMENU_ITEMS_HIDE_ROW=t.CONTEXTMENU_ITEMS_HIDE_COLUMN=t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=t.CONTEXTMENU_ITEMS_EDIT_COMMENT=t.CONTEXTMENU_ITEMS_CUT=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=t.CONTEXTMENU_ITEMS_COPY=t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=t.CONTEXTMENU_ITEMS_BORDERS_TOP=t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=t.CONTEXTMENU_ITEMS_BORDERS_LEFT=t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=t.CONTEXTMENU_ITEMS_BORDERS=t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=t.CONTEXTMENU_ITEMS_ALIGNMENT=t.CONTEXTMENU_ITEMS_ADD_COMMENT=void 0;t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items";var r="ContextMenu:items",o="".concat(r,".noItems");t.CONTEXTMENU_ITEMS_NO_ITEMS=o;var i="".concat(r,".insertRowAbove");t.CONTEXTMENU_ITEMS_ROW_ABOVE=i;var a="".concat(r,".insertRowBelow");t.CONTEXTMENU_ITEMS_ROW_BELOW=a;var s="".concat(r,".insertColumnOnTheLeft");t.CONTEXTMENU_ITEMS_INSERT_LEFT=s;var l="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=l;var u="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=u;var c="".concat(r,".removeColumn");t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=c;var d="".concat(r,".undo");t.CONTEXTMENU_ITEMS_UNDO=d;var h="".concat(r,".redo");t.CONTEXTMENU_ITEMS_REDO=h;var f="".concat(r,".readOnly");t.CONTEXTMENU_ITEMS_READ_ONLY=f;var v="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=v;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var p="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=p;var y="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=y;var m="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=m;var C="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=C;var w="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=w;var E="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=E;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var S="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=S;var b="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=b;var T="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=T;var O="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=O;var _="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=_;var I="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=I;var k="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=k;var M="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=M;var N="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=N;var P="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=P;var A="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=A;var x="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=x;var D="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=D;var L="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=L;var H="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=H;var B="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=B;var F="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=F;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var U="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=U;var W="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=W;var j="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=j;var Y="".concat(r,".hideColumn");t.CONTEXTMENU_ITEMS_HIDE_COLUMN=Y;var G="".concat(r,".showColumn");t.CONTEXTMENU_ITEMS_SHOW_COLUMN=G;var z="".concat(r,".hideRow");t.CONTEXTMENU_ITEMS_HIDE_ROW=z;var K="".concat(r,".showRow");t.CONTEXTMENU_ITEMS_SHOW_ROW=K;t.FILTERS_NAMESPACE="Filters:";var X="".concat("Filters:","conditions");t.FILTERS_CONDITIONS_NAMESPACE=X;var q="".concat(X,".none");t.FILTERS_CONDITIONS_NONE=q;var Q="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=Q;var $="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=$;var J="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=J;var Z="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=Z;var ee="".concat(X,".beginsWith");t.FILTERS_CONDITIONS_BEGINS_WITH=ee;var te="".concat(X,".endsWith");t.FILTERS_CONDITIONS_ENDS_WITH=te;var ne="".concat(X,".contains");t.FILTERS_CONDITIONS_CONTAINS=ne;var re="".concat(X,".doesNotContain");t.FILTERS_CONDITIONS_NOT_CONTAIN=re;var oe="".concat(X,".byValue");t.FILTERS_CONDITIONS_BY_VALUE=oe;var ie="".concat(X,".greaterThan");t.FILTERS_CONDITIONS_GREATER_THAN=ie;var ae="".concat(X,".greaterThanOrEqualTo");t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=ae;var se="".concat(X,".lessThan");t.FILTERS_CONDITIONS_LESS_THAN=se;var le="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=le;var ue="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=ue;var ce="".concat(X,".isNotBetween");t.FILTERS_CONDITIONS_NOT_BETWEEN=ce;var de="".concat(X,".after");t.FILTERS_CONDITIONS_AFTER=de;var he="".concat(X,".before");t.FILTERS_CONDITIONS_BEFORE=he;var fe="".concat(X,".today");t.FILTERS_CONDITIONS_TODAY=fe;var ve="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=ve;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var pe="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=pe;var ye="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ye;var me="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=me;var Ce="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ce;var we="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=we;var Ee="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ee;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var Se="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=Se;var be="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=be;var Te="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Te;var Oe="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=Oe;var _e="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=_e},function(e,t,n){var r=n(467);function o(){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(this,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(21),o=n(26),i=n(119),a=n(55),s=n(72),l=n(79),u=n(270),c=n(118),d=n(203),h=n(145),f=n(41),v=n(133),g=f("isConcatSpreadable"),p=v>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[g];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!p||!h("concat")},{concat:function(e){var t,n,r,o,i,a=s(this),h=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(y(i=-1===t?a:arguments[t]))for(o=l(i),u(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else u(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(38),o=n(260),i=n(261),a=n(391),s=n(104),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&l(r[u]&&r[u].prototype);l(i)},function(e,t,n){var r=n(38),o=n(97).f,i=n(104),a=n(83),s=n(188),l=n(250),u=n(166);e.exports=function(e,t){var n,c,d,h,f,v=e.target,g=e.global,p=e.stat;if(n=g?r:p?r[v]||s(v,{}):(r[v]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!u(g?c:v+(p?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(263),o=n(377),i=n(204),a=n(265);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(21),o=n(143),i=n(189).indexOf,a=n(120),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?s(this,e,t)||0:i(this,e,t)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._injectProductInfo=function(e,t){var n,r=!g(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="invalid",a="invalid",s=function(e){var t=[][p],n=t;if(e[p]!==w("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=w(o.shift());i;i=w(o.shift()||"A"))--i<""[p]?n|=(m("".concat(m(y(r)+(y(C(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=C(e,i,i?1===o[p]?9:8:6);return n===t}(e=E(e||""));if(r||o||s)if(s){var l=(0,h.default)("22/06/2023","DD/MM/YYYY"),u=Math.floor(l.toDate().getTime()/864e5),c=y(C(E(d=e),y("12"),w("F")))/(y(C(E(d),w("B"),~~![][p]))||9);n=(0,h.default)(864e5*(c+1),"x").format("MMMM DD, YYYY"),u>c?(i="expired",a="expired"):(i="valid",a="valid")}else o?(i="non_commercial",a="valid"):(i="invalid",a="invalid");else i="missing",a="missing";var d;"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(i="valid",a="valid");if(!R&&"valid"!==i){S[i]({keyValidityDate:n,hotVersion:"13.0.0"})&&console["non_commercial"===i?"info":"warn"](S[i]({keyValidityDate:n,hotVersion:"13.0.0"})),R=!0}if("valid"!==a&&t.parentNode){if(b[a]({keyValidityDate:n,hotVersion:"13.0.0"})){var f=document.createElement("div");f.className="hot-display-license-info",f.innerHTML=b[a]({keyValidityDate:n,hotVersion:"13.0.0"}),t.parentNode.insertBefore(f,t.nextSibling)}}},t.isDefined=function(e){return void 0!==e},t.isEmpty=g,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=v,t.stringify=function(e){var t;switch((0,d.default)(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var o=r(n(58));n(1),n(80),n(406),n(43),n(67),n(285);var i,a,s,l,u,c,d=r(n(14)),h=r(n(84)),f=n(59);function v(e){return void 0===e}function g(e){return null===e||""===e||v(e)}var p="length",y=function(e){return parseInt(e,16)},m=function(e){return parseInt(e,10)},C=function(e,t,n){return e.substr(t,n)},w=function(e){return e.codePointAt(0)-65},E=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,S={invalid:function(){return(0,f.toSingleLine)(i||(i=(0,o.default)(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(a||(a=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."])),t,n,t)},missing:function(){return(0,f.toSingleLine)(s||(s=(0,o.default)(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."])))},non_commercial:function(){return""}},b={invalid:function(){return(0,f.toSingleLine)(l||(l=(0,o.default)(['\n The license key for Handsontable is invalid. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to \n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is invalid.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\\x20\n install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return(0,f.toSingleLine)(u||(u=(0,o.default)(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.'])),t,n,t)},missing:function(){return(0,f.toSingleLine)(c||(c=(0,o.default)(['\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: \'non-commercial-and-evaluation\'. \n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in \n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n <a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\\x20\n the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.'])))},non_commercial:function(){return""}}},function(e,t,n){var r=n(283);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(131),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},function(e,t,n){"use strict";var r=n(21),o=n(189).includes,i=n(26),a=n(132);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){var r=n(378),o=n(266),i=n(204),a=n(379);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(21),o=n(105).filter;r({target:"Array",proto:!0,forced:!n(145)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.isNumeric=a,t.isNumericLike=function(e){return a(e,[","])},t.rangeEach=function(e,t,n){var r=-1;"function"==typeof t?(n=t,t=e):r=e-1;for(;++r<=t&&!1!==n(r););},t.rangeEachReverse=function(e,t,n){var r=e+1;"function"==typeof t&&(n=t,t=0);for(;--r>=t&&!1!==n(r););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},n(43),n(74),n(50),n(40),n(5),n(4),n(1),n(45),n(6),n(19),n(122),n(80),n(123),n(67);var o=r(n(29)),i=r(n(14));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,i.default)(e);if("number"===n)return!isNaN(e)&&isFinite(e);if("string"===n){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);var r=Array.from(new Set(["."].concat((0,o.default)(t)))).map((function(e){return"\\".concat(e)})).join("|");return new RegExp("^[+-]?\\s*(((".concat(r,")?\\d+((").concat(r,")\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$"),"i").test(e.trim())}return"object"===n&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}},function(e,t,n){"use strict";var r=n(21),o=n(119),i=n(171),a=n(55),s=n(136),l=n(79),u=n(76),c=n(118),d=n(41),h=n(145),f=n(146),v=h("slice"),g=d("species"),p=Array,y=Math.max;r({target:"Array",proto:!0,forced:!v},{slice:function(e,t){var n,r,d,h=u(this),v=l(h),m=s(e,v),C=s(void 0===t?v:t,v);if(o(h)&&(n=h.constructor,(i(n)&&(n===p||o(n.prototype))||a(n)&&null===(n=n[g]))&&(n=void 0),n===p||void 0===n))return f(h,m,C);for(r=new(void 0===n?p:n)(y(C-m,0)),d=0;m<C;m++,d++)m in h&&c(r,d,h[m]);return r.length=d,r}})},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_KEY=t.BasePlugin=void 0;var r=n(564);t.PLUGIN_KEY=r.PLUGIN_KEY,t.BasePlugin=r.BasePlugin},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(208),a=n(71),s=n(49),l=n(210),u=o("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(399)},function(e,t,n){var r=n(21),o=n(72),i=n(135);r({target:"Object",stat:!0,forced:n(26)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},function(e,t,n){"use strict";t.__esModule=!0,t.conditions=void 0,t.getCondition=function(e,t){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=r[e],o=n.condition,i=n.descriptor,a=t;i.inputValuesDecorator&&(a=i.inputValuesDecorator(a));return function(e){return o.apply(e.meta.instance,[].concat([e],[a]))}},t.getConditionDescriptor=function(e){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return r[e].descriptor},t.registerCondition=function(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}},n(19);var r={};t.conditions=r},function(e,t,n){var r=n(21),o=n(389);r({target:"Array",stat:!0,forced:!n(258)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){var r=n(38),o=n(114),i=n(47),a=n(160),s=n(115),l=n(239),u=r.Symbol,c=o("wks"),d=l?u.for||u:u&&u.withoutSetter||a;e.exports=function(e){return i(c,e)||(c[e]=s&&i(u,e)?u[e]:d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(240),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";var r=n(21),o=n(172);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,t.getListenersCounter=function(){return l},n(46);var o=r(n(2)),i=r(n(3)),a=n(90),s=n(62),l=0;function u(e){var t=e.stopImmediatePropagation;return e.stopImmediatePropagation=function(){t.apply(this),(0,s.stopImmediatePropagation)(this)},e}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return(0,i.default)(e,[{key:"addEventListener",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];function i(e){n.call(this,u(e))}return"boolean"==typeof o||(0,a.isPassiveEventSupported)()||(o=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i,options:o,eventManager:this}),e.addEventListener(t,i,o),l+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=this.context.eventListeners.length;i;)if(i-=1,(r=this.context.eventListeners[i]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(o&&r.eventManager!==this)continue;this.context.eventListeners.splice(i,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),l-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];e&&n.eventManager!==this||(this.context.eventListeners.splice(t,1),n.element.removeEventListener(n.event,n.callbackProxy,n.options),l-=1)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var o,i={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(o=n.createEvent("MouseEvents")).initMouseEvent(t,i.bubbles,i.cancelable,i.view,i.detail,i.screenX,i.screenY,i.clientX,i.clientY,i.ctrlKey,i.altKey,i.shiftKey,i.metaKey,i.button,i.relatedTarget||n.body.parentNode):o=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on".concat(t),o)}}]),e}();t.default=c},function(e,t,n){n(380)},function(e,t,n){"use strict";var r=n(21),o=n(72),i=n(136),a=n(96),s=n(79),l=n(385),u=n(270),c=n(203),d=n(118),h=n(269),f=n(145)("splice"),v=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!f},{splice:function(e,t){var n,r,f,p,y,m,C=o(this),w=s(C),E=i(e,w),R=arguments.length;for(0===R?n=r=0:1===R?(n=0,r=w-E):(n=R-2,r=g(v(a(t),0),w-E)),u(w+n-r),f=c(C,r),p=0;p<r;p++)(y=E+p)in C&&d(f,p,C[y]);if(f.length=r,n<r){for(p=E;p<w-r;p++)m=p+n,(y=p+r)in C?C[m]=C[y]:h(C,m);for(p=w;p>w-r+n;p--)h(C,p-1)}else if(n>r)for(p=w-r;p>E;p--)m=p+n-1,(y=p+r-1)in C?C[m]=C[y]:h(C,m);for(p=0;p<n;p++)C[p+E]=arguments[p+2];return l(C,w-r+n),f}})},function(e,t,n){var r=n(27),o=n(72),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},function(e,t,n){var r=n(26);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(169),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(21),o=n(105).map;r({target:"Array",proto:!0,forced:!n(145)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";t.__esModule=!0,t.curry=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i);return s.length>=t?e.apply(this,s):n(s)}}([])},t.curryRight=function(e){var t=e.length;return function n(r){return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=r.concat(i.reverse());return s.length>=t?e.apply(this,s):n(s)}}([])},t.debounce=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=null;function o(){for(var o=this,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r&&clearTimeout(r),r=setTimeout((function(){t=e.apply(o,a)}),n),t}return o},t.fastCall=function(e,t,n,r,i,a,s,l){if((0,o.isDefined)(l))return e.call(t,n,r,i,a,s,l);if((0,o.isDefined)(s))return e.call(t,n,r,i,a,s);if((0,o.isDefined)(a))return e.call(t,n,r,i,a);if((0,o.isDefined)(i))return e.call(t,n,r,i);if((0,o.isDefined)(r))return e.call(t,n,r);if((0,o.isDefined)(n))return e.call(t,n);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.apply(this,n.concat(r))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=t.slice(1);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.arrayReduce)(i,(function(e,t){return t(e)}),o.apply(this,t))}},t.throttle=i,t.throttleAfterHits=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(e,t),o=n;function a(){o=n}function s(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return o?(o-=1,e.apply(this,n)):r.apply(this,n)}return s.clearHits=a,s},n(57),n(33),n(19),n(147);var r=n(13),o=n(24);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},o=null;function i(){for(var i=this,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=Date.now(),c=!1;r.lastCallThrottled=!0,n||(n=u,c=!0);var d=t-(u-n);return c?(r.lastCallThrottled=!1,e.apply(this,s)):(o&&clearTimeout(o),o=setTimeout((function(){r.lastCallThrottled=!1,e.apply(i,s),n=0,o=void 0}),d)),r}return i}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6),n(23),n(46);var o,i=r(n(2)),a=r(n(3)),s=r(n(58)),l=n(13),u=n(12),c=n(68),d=n(69),h=n(59),f=n(51),v=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeSetCellMeta","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyRowHeader","modifyRowHeight","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],g=(0,h.toSingleLine)(o||(o=(0,s.default)(['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion]. \n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to \n learn about the migration path.'],['The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\\x20\n Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\\x20\n learn about the migration path.']))),p=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),y=new Map([]),m=function(){function e(){(0,i.default)(this,e),this.globalBucket=this.createEmptyBucket()}return(0,a.default)(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,l.arrayEach)(v,(function(t){return e[t]=[]})),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,l.arrayEach)(t,(function(t){return n.add(e,t,r)}));else{p.has(e)&&(0,d.warn)((0,c.substitute)(g,{hookName:e,removedInVersion:p.get(e)})),y.has(e)&&(0,d.warn)(y.get(e));var o=this.getBucket(r);if(void 0===o[e]&&(this.register(e),o[e]=[]),t.skip=!1,-1===o[e].indexOf(t)){var i=!1;t.initialHook&&(0,l.arrayEach)(o[e],(function(n,r){if(n.initialHook)return o[e][r]=t,i=!0,!1})),i||o[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,l.arrayEach)(t,(function(t){return n.once(e,t,r)})):(t.runOnce=!0,this.add(e,t,r))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,r,o,i,a,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c<u;)if(l[c]&&!l[c].skip){var d=(0,f.fastCall)(l[c],e,n,r,o,i,a,s);void 0!==d&&(n=d),l[c]&&l[c].runOnce&&this.remove(t,l[c]),c+=1}else c+=1;var h=this.getBucket(e)[t],v=h?h.length:0,g=0;if(v)for(;g<v;)if(h[g]&&!h[g].skip){var p=(0,f.fastCall)(h[g],e,n,r,o,i,a,s);void 0!==p&&(n=p),h[g]&&h[g].runOnce&&this.remove(t,h[g],e),g+=1}else g+=1;return n}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,u.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||v.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&v.splice(v.indexOf(e),1)}},{key:"isDeprecated",value:function(e){return y.has(e)||p.has(e)}},{key:"isRegistered",value:function(e){return v.indexOf(e)>=0}},{key:"getRegistered",value:function(){return v}}],[{key:"getSingleton",value:function(){return C}}]),e}(),C=new m;var w=m;t.default=w},function(e,t,n){n(457),n(459),n(460),n(461),n(463)},function(e,t,n){var r=n(55),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},function(e,t,n){var r=n(42),o=n(240),i=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(131),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},function(e,t,n){n(392),n(394)},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.__esModule=!0,t.toSingleLine=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=(0,r.arrayReduce)(e,(function(e,t,r){return e+t.replace(/\r?\n\s*/g,"")+(n[r]?n[r]:"")}),"");return i.trim()},n(43),n(67),n(123);var r=n(13)},function(e,t,n){n(21)({target:"Number",stat:!0},{isInteger:n(386)})},function(e,t,n){"use strict";var r=n(21),o=n(94),i=n(48),a=n(38),s=n(271),l=n(27),u=n(166),c=n(47),d=n(202),h=n(95),f=n(134),v=n(244),g=n(26),p=n(117).f,y=n(97).f,m=n(73).f,C=n(272),w=n(273).trim,E=a.Number,R=s.Number,S=E.prototype,b=a.TypeError,T=l("".slice),O=l("".charCodeAt),_=function(e){var t=v(e,"number");return"bigint"==typeof t?t:I(t)},I=function(e){var t,n,r,o,i,a,s,l,u=v(e,"number");if(f(u))throw b("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=w(u),43===(t=O(u,0))||45===t){if(88===(n=O(u,2))||120===n)return NaN}else if(48===t){switch(O(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=T(u,2)).length,s=0;s<a;s++)if((l=O(i,s))<48||l>o)return NaN;return parseInt(i,r)}return+u},k=u("Number",!E(" 0o1")||!E("0b1")||E("+0x1")),M=function(e){return h(S,e)&&g((function(){C(e)}))},N=function(e){var t=arguments.length<1?0:E(_(e));return M(this)?d(Object(t),this,N):t};N.prototype=S,k&&!o&&(S.constructor=N),r({global:!0,constructor:!0,wrap:!0,forced:k},{Number:N});var P=function(e,t){for(var n,r=i?p(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;r.length>o;o++)c(t,n=r[o])&&!c(e,n)&&m(e,n,y(t,n))};o&&R&&P(s.Number,R),(k||o)&&P(s.Number,E)},function(e,t,n){"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}},function(e,t,n){var r=n(416),o=n(287);e.exports=function(e,t){var n=o(e,t,"get");return r(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(417),o=n(287);e.exports=function(e,t,n){var i=o(e,t,"set");return r(e,i,n),n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(20),n(37),t.__esModule=!0;var r={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0};t.getRegisteredMapsCounter=t.getIncreasedIndexes=t.getDecreasedIndexes=t.alterUtilsFactory=t.IndexMapper=void 0;var o=n(465);t.IndexMapper=o.IndexMapper;var i=n(221);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var a=n(306);t.getIncreasedIndexes=a.getIncreasedIndexes,t.getDecreasedIndexes=a.getDecreasedIndexes,t.alterUtilsFactory=a.alterUtilsFactory;var s=n(304);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){var r=n(21),o=n(48),i=n(251),a=n(76),s=n(97),l=n(118);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&l(c,t,n);return c}})},function(e,t,n){"use strict";var r=n(106),o=n(56),i=n(27),a=n(173),s=n(26),l=n(54),u=n(42),c=n(82),d=n(96),h=n(103),f=n(49),v=n(71),g=n(206),p=n(101),y=n(388),m=n(174),C=n(41)("replace"),w=Math.max,E=Math.min,R=i([].concat),S=i([].push),b=i("".indexOf),T=i("".slice),O="$0"==="a".replace(/./,"$0"),_=!!/./[C]&&""===/./[C]("a","$0");a("replace",(function(e,t,n){var i=_?"$":"$0";return[function(e,n){var r=v(this),i=c(e)?void 0:p(e,C);return i?o(i,e,r,n):o(t,f(r),e,n)},function(e,o){var a=l(this),s=f(e);if("string"==typeof o&&-1===b(o,i)&&-1===b(o,"$<")){var c=n(t,a,s,o);if(c.done)return c.value}var v=u(o);v||(o=f(o));var p=a.global;if(p){var C=a.unicode;a.lastIndex=0}for(var O=[];;){var _=m(a,s);if(null===_)break;if(S(O,_),!p)break;""===f(_[0])&&(a.lastIndex=g(s,h(a.lastIndex),C))}for(var I,k="",M=0,N=0;N<O.length;N++){for(var P=f((_=O[N])[0]),A=w(E(d(_.index),s.length),0),x=[],D=1;D<_.length;D++)S(x,void 0===(I=_[D])?I:String(I));var L=_.groups;if(v){var H=R([P],x,A,s);void 0!==L&&S(H,L);var B=f(r(o,void 0,H))}else B=y(P,s,A,x,L,o);A>=M&&(k+=T(s,M,A)+B,M=A+P.length)}return k+T(s,M)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!O||_)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.equalsIgnoreCase=function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.length;for(;o;){o-=1;var a=(0,i.stringify)(n[o]).toLowerCase();-1===e.indexOf(a)&&e.push(a)}return 1===e.length},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=a,t.stripTags=function(e){return a("".concat(e),{ALLOWED_TAGS:[]})},t.substitute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,(function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]}))},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},n(23),n(1),n(80),n(43),n(67);var o=r(n(405)),i=n(24);function a(e,t){return o.default.sanitize(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.error=function(){var e;(0,r.isDefined)(console)&&(e=console).error.apply(e,arguments)},t.info=function(){var e;(0,r.isDefined)(console)&&(e=console).info.apply(e,arguments)},t.log=function(){var e;(0,r.isDefined)(console)&&(e=console).log.apply(e,arguments)},t.warn=function(){var e;(0,r.isDefined)(console)&&(e=console).warn.apply(e,arguments)};var r=n(24)},function(e,t,n){var r=n(48),o=n(140).EXISTS,i=n(27),a=n(144),s=Function.prototype,l=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=i(u.exec);r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},function(e,t,n){var r=n(82),o=TypeError;e.exports=function(e){if(r(e))throw o("Can't call method on "+e);return e}},function(e,t,n){var r=n(71),o=Object;e.exports=function(e){return o(r(e))}},function(e,t,n){var r=n(48),o=n(243),i=n(242),a=n(54),s=n(162),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(130),a=n(76),s=n(120),l=o([].join);r({target:"Array",proto:!0,forced:i!=Object||!s("join",",")},{join:function(e){return l(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(12),o=n(51),i={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e,t,n,r,i,a,s){if(this._localHooks[e])for(var l=this._localHooks[e].length,u=0;u<l;u++)(0,o.fastCall)(this._localHooks[e][u],this,t,n,r,i,a,s)},clearLocalHooks:function(){return this._localHooks={},this}};(0,r.defineGetter)(i,"MIXIN_NAME","localHooks",{writable:!1,enumerable:!1});var a=i;t.default=a},function(e,t,n){var r=n(130),o=n(71);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(102),a=n(72),s=n(79),l=n(269),u=n(49),c=n(26),d=n(381),h=n(120),f=n(382),v=n(383),g=n(133),p=n(384),y=[],m=o(y.sort),C=o(y.push),w=c((function(){y.sort(void 0)})),E=c((function(){y.sort(null)})),R=h("sort"),S=!c((function(){if(g)return g<70;if(!(f&&f>3)){if(v)return!0;if(p)return p<603;var e,t,n,r,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;r<y.length;r++)t=y[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:w||!E||!R||!S},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(S)return void 0===e?m(t):m(t,e);var n,r,o=[],c=s(t);for(r=0;r<c;r++)r in t&&C(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=s(o),r=0;r<n;)t[r]=o[r++];for(;r<c;)l(t,r++);return t}})},function(e,t,n){"use strict";t.__esModule=!0,t.isChrome=function(){return i.chrome.value},t.isChromeWebKit=function(){return i.chromeWebKit.value},t.isEdge=function(){return i.edge.value},t.isEdgeWebKit=function(){return i.edgeWebKit.value},t.isFirefox=function(){return i.firefox.value},t.isFirefoxWebKit=function(){return i.firefoxWebKit.value},t.isIE=function(){return i.ie.value},t.isIE9=function(){return i.ie9.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator,t=e.maxTouchPoints;return t>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMSBrowser=function(){return i.ie.value||i.edge.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return i.mobile.value},t.isSafari=function(){return i.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=s,t.setPlatformMeta=l,n(43);var r=n(12),o=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},i={chrome:o((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),chromeWebKit:o((function(e){return/CriOS/.test(e)})),edge:o((function(e){return/Edge/.test(e)})),edgeWebKit:o((function(e){return/EdgiOS/.test(e)})),firefox:o((function(e){return/Firefox/.test(e)})),firefoxWebKit:o((function(e){return/FxiOS/.test(e)})),ie:o((function(e){return/Trident/.test(e)})),ie9:o((function(){return!!document.documentMode})),mobile:o((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:o((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))},a={mac:o((function(e){return/^Mac/.test(e)})),win:o((function(e){return/^Win/.test(e)})),linux:o((function(e){return/^Linux/.test(e)})),ios:o((function(e){return/iPhone|iPad|iPod/i.test(e)}))};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,o=e.vendor,a=void 0===o?navigator.vendor:o;(0,r.objectEach)(i,(function(e){(0,e.test)(n,a)}))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.platform,n=void 0===t?navigator.platform:t;(0,r.objectEach)(a,(function(e){(0,e.test)(n)}))}s(),l()},function(e,t,n){var r=n(103);e.exports=function(e){return r(e.length)}},function(e,t,n){"use strict";var r=n(140).PROPER,o=n(83),i=n(54),a=n(49),s=n(26),l=n(282),u=RegExp.prototype.toString,c=s((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=r&&"toString"!=u.name;(c||d)&&o(RegExp.prototype,"toString",(function(){var e=i(this);return"/"+a(e.source)+"/"+a(l(e))}),{unsafe:!0})},function(e,t,n){"use strict";t.__esModule=!0,t.align=function(e,t,n,o,i){(0,r.arrayEach)(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&function(e,t,n,r,o,i){var l=o(e,t),u=r;l.className&&(u="vertical"===n?a(l.className,r):s(l.className,r));i(e,t,"className",u)}(e,r,t,n,o,i)}))}))},t.checkSelectionConsistency=function(e,t){var n=!1;Array.isArray(e)&&(0,r.arrayEach)(e,(function(e){return e.forAll((function(e,r){if(e>=0&&r>=0&&t(e,r))return n=!0,!1})),n}));return n},t.filterSeparators=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.KEY,n=e.slice(0);return n=c(n=u(n=l(n,t),t))},t.getAlignmentClasses=function(e,t){var n={};return(0,r.arrayEach)(e,(function(e){e.forAll((function(e,r){e>=0&&r>=0&&(n[e]||(n[e]=[]),n[e][r]=t(e,r))}))})),n},t.getValidSelection=function(e){var t=e.getSelected();if(!t)return null;if(t[0]<0)return null;return t},t.hasSubMenu=function(e){return(0,o.hasClass)(e,"htSubmenu")},t.isDisabled=function(e){return(0,o.hasClass)(e,"htDisabled")},t.isItemHidden=function(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))},t.isSelectionDisabled=function(e){return(0,o.hasClass)(e,"htSelectionDisabled")},t.isSeparator=function(e){return(0,o.hasClass)(e,"htSeparator")},t.markLabelAsSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeSelection=function(e){return(0,r.arrayMap)(e,(function(e){return{start:e.getTopStartCorner(),end:e.getBottomEndCorner()}}))},t.prepareHorizontalAlignClass=s,t.prepareVerticalAlignClass=a,n(23),n(43),n(67),n(19),n(33),n(70),n(147);var r=n(13),o=n(15),i=n(231);function a(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function s(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function l(e,t){for(var n=e.slice(0);0<n.length&&n[0].name===t;)n.shift();return n}function u(e,t){var n=e.slice(0);return n.reverse(),(n=l(n,t)).reverse(),n}function c(e){var t=[];return(0,r.arrayEach)(e,(function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){var r=n(42),o=n(73),i=n(248),a=n(188);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&i(n,u,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},function(t,n){t.exports=e},function(e,t,n){var r=n(27),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.collection=void 0,t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";i.has(e)||i.set(e,new Map);var t=i.get(e);function n(e,n){t.set(e,n)}function r(e){return t.get(e)}function a(e){return t.has(e)}function s(){return(0,o.default)(t.keys())}function l(){return(0,o.default)(t.values())}return{register:n,getItem:r,hasItem:a,getNames:s,getValues:l}};var o=r(n(29));n(4),n(36),n(1),n(5),n(6);var i=new Map;t.collection=i},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_TYPE=t.FILL_TYPE=t.CUSTOM_SELECTION_TYPE=t.CELL_TYPE=t.AREA_TYPE=t.ACTIVE_HEADER_TYPE=void 0;t.ACTIVE_HEADER_TYPE="active-header";t.AREA_TYPE="area";t.CELL_TYPE="cell";t.FILL_TYPE="fill";t.HEADER_TYPE="header";t.CUSTOM_SELECTION_TYPE="custom-selection"},function(e,t,n){var r=n(38),o=n(42),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},function(e,t,n){var r,o,i,a=n(247),s=n(38),l=n(55),u=n(104),c=n(47),d=n(187),h=n(163),f=n(137),v=s.TypeError,g=s.WeakMap;if(a||d.state){var p=d.state||(d.state=new g);p.get=p.get,p.has=p.has,p.set=p.set,r=function(e,t){if(p.has(e))throw v("Object already initialized");return t.facade=e,p.set(e,t),t},o=function(e){return p.get(e)||{}},i=function(e){return p.has(e)}}else{var y=h("state");f[y]=!0,r=function(e,t){if(c(e,y))throw v("Object already initialized");return t.facade=e,u(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i)return i;i="object"===("undefined"==typeof Intl?"undefined":(0,s.default)(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1};return i},t.hasCaptionProblem=function(){void 0===o&&function(){var e=document.createElement("TABLE");e.style.borderSpacing="0",e.style.borderWidth="0",e.style.padding="0";var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding="0",n.style.margin="0",e.insertBefore(n,t),document.body.appendChild(e),o=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}();return o},t.isClassListSupported=function(){return!!document.documentElement.classList},t.isGetComputedStyleSupported=function(){return!!window.getComputedStyle},t.isPassiveEventSupported=function(){if(void 0!==a)return a;try{var e={get passive(){a=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){a=!1}return a},t.isTextContentSupported=function(){return!!document.createTextNode("test").textContent},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)};var o,i,a,s=r(n(14))},function(e,t,n){"use strict";t.__esModule=!0,t.KEY_CODES=void 0,t.isCtrlKey=function(e){var t=[];(0,o.isMacOS)()?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return a.includes(e)},t.isKey=function(e,t){var n=t.split("|"),o=!1;return(0,r.arrayEach)(n,(function(t){if(e===i[t])return o=!0,!1})),o},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},n(28),n(35);var r=n(13),o=n(78),i={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,o.isFirefox)()?182:174,AUDIO_MUTE:(0,o.isFirefox)()?181:173,AUDIO_UP:(0,o.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90};t.KEY_CODES=i;var a=[i.ALT,i.ARROW_DOWN,i.ARROW_LEFT,i.ARROW_RIGHT,i.ARROW_UP,i.AUDIO_DOWN,i.AUDIO_MUTE,i.AUDIO_UP,i.BACKSPACE,i.CAPS_LOCK,i.DELETE,i.END,i.ENTER,i.ESCAPE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.F13,i.F14,i.F15,i.F16,i.F17,i.F18,i.F19,i.HOME,i.INSERT,i.MEDIA_NEXT,i.MEDIA_PLAY_PAUSE,i.MEDIA_PREV,i.MEDIA_STOP,i.NULL,i.NUM_LOCK,i.PAGE_DOWN,i.PAGE_UP,i.PAUSE,i.SCROLL_LOCK,i.SHIFT,i.TAB]},function(e,t,n){var r=n(481);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.NO_ITEMS=t.ITEMS=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0,t.addItem=function(e,t){-1===S.indexOf(e)&&(b[e]=t)},t.predefinedItems=function(){var e={};return(0,a.objectEach)(b,(function(t,n){e[n]=t()})),e},n(23);var i=r(n(25)),a=n(12),s=R(n(597));t.ALIGNMENT=s.KEY;var l=R(n(598));t.CLEAR_COLUMN=l.KEY;var u=R(n(599));t.COLUMN_LEFT=u.KEY;var c=R(n(600));t.COLUMN_RIGHT=c.KEY;var d=R(n(601));t.READ_ONLY=d.KEY;var h=R(n(602));t.REDO=h.KEY;var f=R(n(603));t.REMOVE_COLUMN=f.KEY;var v=R(n(604));t.REMOVE_ROW=v.KEY;var g=R(n(605));t.ROW_ABOVE=g.KEY;var p=R(n(606));t.ROW_BELOW=p.KEY;var y=R(n(231));t.SEPARATOR=y.KEY;var m=R(n(607));t.NO_ITEMS=m.KEY;var C,w=R(n(608));function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function R(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}t.UNDO=w.KEY;var S=[g.KEY,p.KEY,u.KEY,c.KEY,l.KEY,v.KEY,f.KEY,w.KEY,h.KEY,d.KEY,s.KEY,y.KEY,m.KEY];t.ITEMS=S;var b=(C={},(0,i.default)(C,y.KEY,y.default),(0,i.default)(C,m.KEY,m.default),(0,i.default)(C,g.KEY,g.default),(0,i.default)(C,p.KEY,p.default),(0,i.default)(C,u.KEY,u.default),(0,i.default)(C,c.KEY,c.default),(0,i.default)(C,l.KEY,l.default),(0,i.default)(C,v.KEY,v.default),(0,i.default)(C,f.KEY,f.default),(0,i.default)(C,w.KEY,w.default),(0,i.default)(C,h.KEY,h.default),(0,i.default)(C,d.KEY,d.default),(0,i.default)(C,s.KEY,s.default),C)},function(e,t){e.exports=!1},function(e,t,n){var r=n(27);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(362);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){var r=n(48),o=n(56),i=n(164),a=n(139),s=n(76),l=n(162),u=n(47),c=n(243),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},function(e,t,n){"use strict";n(77),t.__esModule=!0;var r=n(336);t.registerRootComparator=r.registerRootComparator,t.getRootComparator=r.getRootComparator,t.getCompareFunctionFactory=r.getCompareFunctionFactory;var o=n(584);t.FIRST_AFTER_SECOND=o.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=o.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=o.DO_NOT_SWAP,t.sort=o.sort},function(e,t){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){var r,o=n(54),i=n(241),a=n(190),s=n(137),l=n(246),u=n(161),c=n(163),d=c("IE_PROTO"),h=function(){},f=function(e){return"<script>"+e+"<\/script>"},v=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;g="undefined"!=typeof document?document.domain&&r?v(r):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):v(r);for(var n=a.length;n--;)delete g.prototype[a[n]];return g()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h.prototype=o(e),n=new h,h.prototype=null,n[d]=e):n=g(),void 0===t?n:i.f(n,t)}},function(e,t,n){var r=n(102),o=n(82);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},function(e,t,n){var r=n(42),o=n(116),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},function(e,t,n){var r=n(96),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(48),o=n(73),i=n(139);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(142),o=n(27),i=n(130),a=n(72),s=n(79),l=n(203),u=o([].push),c=function(e){var t=1==e,n=2==e,o=3==e,c=4==e,d=6==e,h=7==e,f=5==e||d;return function(v,g,p,y){for(var m,C,w=a(v),E=i(w),R=r(g,p),S=s(E),b=0,T=y||l,O=t?T(v,S):n||h?T(v,0):void 0;S>b;b++)if((f||b in E)&&(C=R(m=E[b],b,w),e))if(t)O[b]=C;else if(C)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:u(O,m)}else switch(e){case 4:return!1;case 7:u(O,m)}return d?-1:o||c?c:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){var r=n(131),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.RegisteredEditor=f,t.getEditorInstance=t._getEditorInstance=function(e,t){var n;if("function"==typeof e)a.get(e)||v(null,e),n=a.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=u(e)}if(!n)throw Error('No editor registered under name "'.concat(e,'"'));return n.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!c(e))throw Error('No registered editor found under "'.concat(e,'" name'));return u(e).getConstructor()},t.hasEditor=t.getRegisteredEditors=t.getRegisteredEditorNames=void 0,t.registerEditor=v,n(4),n(1),n(5),n(7),n(6);var o=r(n(52)),i=r(n(86)),a=new WeakMap,s=(0,i.default)("editors"),l=s.register,u=s.getItem,c=s.hasItem,d=s.getNames,h=s.getValues;function f(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},o.default.getSingleton().add("afterDestroy",(function(){t[this.guid]=null}))}function v(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);var n=new f(t);"string"==typeof e&&l(e,n),a.set(t,n)}t.getRegisteredEditors=h,t.getRegisteredEditorNames=d,t.hasEditor=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.Renderer=void 0;var i=r(n(288));t.ViewportColumnsCalculator=i.default;var a=r(n(289));t.ViewportRowsCalculator=a.default;var s=r(n(214));t.CellCoords=s.default;var l=r(n(290));t.CellRange=l.default;var u=r(n(418));t.default=u.default,t.Core=u.default;var c=r(n(453));t.Selection=c.default;var d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(293));t.Renderer=d;var h=n(180);t.OrderView=h.OrderView,t.SharedOrderView=h.SharedOrderView;var f=n(44);function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}t.getListenersCounter=f.getListenersCounter},function(e,t,n){"use strict";n(1),n(20),n(37),t.__esModule=!0;var r={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0};t.TopOverlay=t.TopInlineStartCornerOverlay=t.Overlay=t.InlineStartOverlay=t.BottomOverlay=t.BottomInlineStartCornerOverlay=void 0;var o=n(423);t.BottomInlineStartCornerOverlay=o.BottomInlineStartCornerOverlay;var i=n(441);t.BottomOverlay=i.BottomOverlay;var a=n(443);t.InlineStartOverlay=a.InlineStartOverlay;var s=n(126);t.Overlay=s.Overlay;var l=n(445);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var u=n(447);t.TopOverlay=u.TopOverlay;var c=n(110);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}))},function(e,t,n){"use strict";t.__esModule=!0,t.CLONE_TYPES=t.CLONE_TOP_INLINE_START_CORNER=t.CLONE_TOP=t.CLONE_INLINE_START=t.CLONE_CLASS_NAMES=t.CLONE_BOTTOM_INLINE_START_CORNER=t.CLONE_BOTTOM=void 0,n(4),n(36),n(1),n(5),n(6);t.CLONE_TOP="top";t.CLONE_BOTTOM="bottom";t.CLONE_INLINE_START="inline_start";t.CLONE_TOP_INLINE_START_CORNER="top_inline_start_corner";t.CLONE_BOTTOM_INLINE_START_CORNER="bottom_inline_start_corner";var r=["top","bottom","inline_start","top_inline_start_corner","bottom_inline_start_corner"];t.CLONE_TYPES=r;var o=new Map([["top","ht_clone_".concat("top")],["bottom","ht_clone_".concat("bottom")],["inline_start","ht_clone_".concat("inline_start"," ht_clone_left")],["top_inline_start_corner","ht_clone_".concat("top_inline_start_corner"," ht_clone_top_left_corner")],["bottom_inline_start_corner","ht_clone_".concat("bottom_inline_start_corner"," ht_clone_bottom_left_corner")]]);t.CLONE_CLASS_NAMES=o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.countFirstRowKeys=function(e){var t=0;Array.isArray(e)&&(e[0]&&Array.isArray(e[0])?t=e[0].length:e[0]&&(0,i.isObject)(e[0])&&(t=(0,i.deepObjectSize)(e[0])));return t},t.createEmptySpreadsheetData=function(e,t){for(var n,r=[],o=0;o<e;o++){n=[];for(var i=0;i<t;i++)n.push("");r.push(n)}return r},t.createSpreadsheetData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i=[];for(t=0;t<r;t++)i.push(s(t)+(e+1));o.push(i)}return o},t.createSpreadsheetObjectData=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,o=[];for(e=0;e<n;e++){var i={};for(t=0;t<r;t++)i["prop".concat(t)]=s(t)+(e+1);o.push(i)}return o},t.dataRowToChangesArray=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e,r=[];Array.isArray(e)&&Array.isArray(e[0])||(n=[e]);return n.forEach((function(e,n){Array.isArray(e)?e.forEach((function(e,o){r.push([n+t,o,e])})):Object.keys(e).forEach((function(o){r.push([n+t,o,e[o]])}))})),r},t.isArrayOfArrays=function(e){return!!(Array.isArray(e)&&e.length&&e.every((function(e){return Array.isArray(e)})))},t.isArrayOfObjects=function(e){return!!(Array.isArray(e)&&e.length&&e.every((function(e){return"object"===(0,o.default)(e)&&!Array.isArray(e)&&null!==e})))},t.spreadsheetColumnIndex=function(e){var t=0;if(e)for(var n=0,r=e.length-1;n<e.length;n+=1,r-=1)t+=Math.pow(a,r)*("ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(e[n])+1);return t-=1},t.spreadsheetColumnLabel=s;var o=r(n(14));n(1),n(20),n(37);var i=n(12),a="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function s(e){for(var t,n=e+1,r="";n>0;)t=(n-1)%a,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/a,10);return r}},function(e,t,n){"use strict";t.__esModule=!0,t.TextEditor=t.EDITOR_TYPE=void 0;var r=n(507);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TextEditor=r.TextEditor},function(e,t,n){"use strict";t.__esModule=!0,t.textRenderer=t.RENDERER_TYPE=void 0;var r=n(512);t.RENDERER_TYPE=r.RENDERER_TYPE,t.textRenderer=r.textRenderer},function(e,t,n){var r=n(94),o=n(187);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.31.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(133),o=n(26),i=n(38).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(245),o=n(190).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){"use strict";var r=n(162),o=n(73),i=n(139);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(85);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(26);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){var r=n(21),o=n(387),i=n(132);r({target:"Array",proto:!0},{fill:o}),i("fill")},function(e,t,n){var r=n(48),o=n(38),i=n(27),a=n(166),s=n(202),l=n(104),u=n(117).f,c=n(95),d=n(209),h=n(49),f=n(282),v=n(205),g=n(400),p=n(83),y=n(26),m=n(47),C=n(89).enforce,w=n(268),E=n(41),R=n(276),S=n(277),b=E("match"),T=o.RegExp,O=T.prototype,_=o.SyntaxError,I=i(O.exec),k=i("".charAt),M=i("".replace),N=i("".indexOf),P=i("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,D=/a/g,L=new T(x)!==x,H=v.MISSED_STICKY,B=v.UNSUPPORTED_Y,F=r&&(!L||H||R||S||y((function(){return D[b]=!1,T(x)!=x||T(D)==D||"/a/i"!=T(x,"i")})));if(a("RegExp",F)){for(var V=function(e,t){var n,r,o,i,a,u,v=c(O,this),g=d(e),p=void 0===t,y=[],w=e;if(!v&&g&&p&&e.constructor===V)return e;if((g||c(O,e))&&(e=e.source,p&&(t=f(w))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),w=e,R&&"dotAll"in x&&(r=!!t&&N(t,"s")>-1)&&(t=M(t,/s/g,"")),n=t,H&&"sticky"in x&&(o=!!t&&N(t,"y")>-1)&&B&&(t=M(t,/y/g,"")),S&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if("\\"===(t=k(e,r)))t+=k(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:I(A,P(e,r+1))&&(r+=2,l=!0),o+=t,u++;continue;case">"===t&&l:if(""===c||m(a,c))throw new _("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],l=!1,c="";continue}l?c+=t:o+=t}return[o,i]}(e))[0],y=i[1]),a=s(T(e,t),v?this:O,V),(r||o||y.length)&&(u=C(a),r&&(u.dotAll=!0,u.raw=V(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=k(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+k(e,++r);return o}(e),n)),o&&(u.sticky=!0),y.length&&(u.groups=y)),e!==w)try{l(a,"source",""===w?"(?:)":w)}catch(e){}return a},U=u(T),W=0;U.length>W;)g(V,T,U[W++]);O.constructor=V,V.prototype=O,p(o,"RegExp",V,{constructor:!0})}w("RegExp")},function(e,t,n){"use strict";var r=n(21),o=n(273).trim;r({target:"String",proto:!0,forced:n(401)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var r=n(291),o=n(422);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(40),n(5),n(28),n(1),n(20);var o=r(n(29)),i=r(n(22)),a=r(n(2)),s=r(n(3)),l=r(n(25)),u=n(15),c=n(51),d=r(n(425)),h=r(n(426)),f=n(293),v=r(n(437)),g=r(n(438)),p=n(109),y=function(){function e(t,n,r,o,i){var s=this;(0,a.default)(this,e),(0,l.default)(this,"wtSettings",null),(0,l.default)(this,"domBindings",void 0),(0,l.default)(this,"TBODY",null),(0,l.default)(this,"THEAD",null),(0,l.default)(this,"COLGROUP",null),(0,l.default)(this,"hasTableHeight",!0),(0,l.default)(this,"hasTableWidth",!0),(0,l.default)(this,"isTableVisible",!1),(0,l.default)(this,"tableOffset",0),(0,l.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=t,this.facadeGetter=n,this.wtSettings=o,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,u.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;var c=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",(function(){return s._modifyRowHeaderWidth(c)})),this.rowUtils=new g.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new v.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new f.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer")})}return(0,s.default)(e,[{key:"is",value:function(e){return this.name===e}},{key:"fixTableDomTree",value:function(){var e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}},{key:"createSpreader",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,u.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t}},{key:"createHider",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,u.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t}},{key:"createHolder",value:function(e){var t,n=e.parentNode;return n&&n.nodeType===Node.ELEMENT_NODE&&(0,u.hasClass)(n,"wtHolder")||((t=this.domBindings.rootDocument.createElement("div")).style.position="relative",t.className="wtHolder",n&&n.insertBefore(t,e),this.isMaster&&(t.parentNode.className+="ht_master handsontable",t.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr")),t.appendChild(e)),t}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wtSettings,n=this.dataAccessObject,r=n.wtOverlays,o=n.wtViewport,i=t.getSetting("totalRows"),a=t.getSetting("totalColumns"),s=t.getSetting("rowHeaders"),l=s.length,c=t.getSetting("columnHeaders"),f=c.length,v=!1,g=e;if(this.isMaster&&(this.holderOffset=(0,u.offset)(this.holder),g=o.createRenderCalculators(g),l&&!t.getSetting("fixedColumnsStart"))){var y=r.inlineStartOverlay.getScrollPosition(),m=this.correctHeaderWidth;this.correctHeaderWidth=0!==y,m!==this.correctHeaderWidth&&(g=!1)}if(this.isMaster&&(v=r.updateStateOfRendering()),g)this.isMaster&&o.createVisibleCalculators(),r&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,u.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;var C=i>0?this.getFirstRenderedRow():0,w=a>0?this.getFirstRenderedColumn():0;this.rowFilter=new h.default(C,i,f),this.columnFilter=new d.default(w,a,l);var E,R=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var S={};this.wtSettings.getSetting("beforeDraw",!0,S),R=!0!==S.skipRender}if(R)if(this.tableRenderer.setHeaderContentRenderers(s,c),(this.is(p.CLONE_BOTTOM)||this.is(p.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(s,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(E=this.dataAccessObject.workspaceWidth,this.dataAccessObject.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(p.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.dataAccessObject.wtViewport.createVisibleCalculators(),this.dataAccessObject.wtOverlays.refresh(!1),this.dataAccessObject.wtOverlays.applyToDOM();var b=(0,u.outerWidth)(this.hider),T=(0,u.outerWidth)(this.TABLE);0!==b&&T!==b&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),E!==this.dataAccessObject.wtViewport.getWorkspaceWidth()&&(this.dataAccessObject.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wtSettings.getSetting("onDraw",!0)}else this.is(p.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize()}var O=!1;return this.isMaster&&(O=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(O=r.bottomOverlay.resetFixedPosition()||O),O=r.inlineStartOverlay.resetFixedPosition()||O,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),O?(r.refreshAll(),r.adjustElementsSize()):this.refreshSelections(g),v&&r.syncScrollWithMaster(),this.dataAccessObject.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,r,o=this.columnFilter.renderedToSource(e),i=this.wtSettings.getSetting("columnHeaders").length,a=this.wtSettings.getSetting("defaultRowHeight"),s=this.wtSettings.getSetting("columnHeaderHeight")||[];i;)i-=1,t=this.getColumnHeaderHeight(i),(n=this.getColumnHeader(o,i))&&(r=(0,u.innerHeight)(n),(!t&&a<r||t<r)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=r),Array.isArray(s)?null!==s[i]&&void 0!==s[i]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]):isNaN(s)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s),this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]<(s[i]||s)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[i]=s[i]||s))}},{key:"adjustColumnHeaderHeights",value:function(){for(var e=this.wtSettings,t=this.THEAD.childNodes,n=this.dataAccessObject.wtViewport.oversizedColumnHeaders,r=0,o=e.getSetting("columnHeaders").length;r<o;r++)if(n[r]){if(!t[r]||0===t[r].childNodes.length)return;t[r].childNodes[0].style.height="".concat(n[r],"px")}}},{key:"resetOversizedRows",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport;if((this.isMaster||this.is(p.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator"))for(var n=this.getRenderedRowsCount(),r=0;r<n;r++){var o=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[o]&&(t.oversizedRows[o]=void 0)}}},{key:"removeClassFromCells",value:function(e){for(var t=this.TABLE.querySelectorAll(".".concat(e)),n=0,r=t.length;n<r;n++)(0,u.removeClass)(t[n],e)}},{key:"refreshSelections",value:function(e){var t=this.wtSettings,n=this.dataAccessObject.selections;if(n){var r=Array.from(n),o=r.length;if(e){for(var i=[],a=0;a<o;a++){for(var s=r[a].settings,l=s.highlightHeaderClassName,u=s.highlightRowClassName,c=s.highlightColumnClassName,d=r[a].classNames,h=d.length,f=0;f<h;f++)i.includes(d[f])||i.push(d[f]);l&&!i.includes(l)&&i.push(l),u&&!i.includes(u)&&i.push(u),c&&!i.includes(c)&&i.push(c)}var v=t.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(v))for(var g=0;g<v.length;g++)i.push(v[g]);for(var p=i.length,y=0;y<p;y++)this.removeClassFromCells(i[y])}for(var m=0;m<o;m++)r[m].draw(this.facadeGetter(),e)}}},{key:"getCell",value:function(e){var t=e.row,n=e.col,r=this.wtSettings.getSetting("onModifyGetCellCoords",t,n);if(r&&Array.isArray(r)){var o=(0,i.default)(r,2);t=o[0],n=o[1]}if(this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(n))return-3;if(this.isColumnAfterRenderedColumns(n))return-4;var a=this.getRow(t);if(!a&&t>=0)throw new Error("TR was expected to be rendered but is not");var s=a.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!s&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getRow",value:function(e){var t,n,r=null,o=null;e<0?(r=null===(t=this.rowFilter)||void 0===t?void 0:t.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(r=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceToRendered(e),o=this.TBODY);return void 0!==r&&void 0!==o&&(!(o.childNodes.length<r+1)&&o.childNodes[r])}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];return null==n?void 0:n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getColumnHeaders",value:function(e){var t=[],n=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach((function(e){var r=e.childNodes[n];r&&t.push(r)})),t}},{key:"getRowHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0!==this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0)){var n=this.wtSettings.getSetting("rowHeaders").length;if(!(t>=n)){var r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return null==r?void 0:r.childNodes[t]}}}},{key:"getRowHeaders",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return[];for(var t=[],n=this.wtSettings.getSetting("rowHeaders").length,r=0;r<n;r++){var o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],i=null==o?void 0:o.childNodes[r];i&&t.push(i)}return t}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,u.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,r=n.parentNode,o=(0,u.index)(n),i=t.cellIndex;if((0,u.overlayContainsElement)(p.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_TOP,t,this.wtRootElement))"THEAD"===r.nodeName&&(o-=r.childNodes.length);else if((0,u.overlayContainsElement)(p.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_BOTTOM,t,this.wtRootElement)){o=this.wtSettings.getSetting("totalRows")-r.childNodes.length+o}else o=r===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o);return i=(0,u.overlayContainsElement)(p.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_INLINE_START,t,this.wtRootElement)||(0,u.overlayContainsElement)(p.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),this.wot.createCellCoords(o,i)}},{key:"markOversizedRows",value:function(){if(!this.wtSettings.getSetting("externalRowCalculator")){var e,t,n,r,o,i=this.TBODY.childNodes.length;if(i*this.wtSettings.getSetting("defaultRowHeight")!==(0,u.innerHeight)(this.TBODY)-1||this.wtSettings.getSetting("fixedRowsBottom"))for(;i;)i-=1,n=this.rowFilter.renderedToSource(i),e=this.getRowHeight(n),t=(o=(r=this.getTrForRow(n)).querySelector("th"))?(0,u.innerHeight)(o):(0,u.innerHeight)(r)-1,(!e&&this.wtSettings.getSetting("defaultRowHeight")<t||e<t)&&(t+=1,this.dataAccessObject.wtViewport.oversizedRows[n]=t)}}},{key:"getTrForRow",value:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}},{key:"isColumnHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}},{key:"isRowHeaderRendered",value:function(e){if(e>=0)return!1;var t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}},{key:"isRowAfterRenderedRows",value:function(e){return e>this.getLastRenderedRow()}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}},{key:"isColumnAfterRenderedColumns",value:function(e){return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isColumnAfterViewport",value:function(e){return this.columnFilter&&e>this.getLastVisibleColumn()}},{key:"isRowAfterViewport",value:function(e){return this.rowFilter&&e>this.getLastVisibleRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"getWidth",value:function(){return(0,u.outerWidth)(this.TABLE)}},{key:"getHeight",value:function(){return(0,u.outerHeight)(this.TABLE)}},{key:"getTotalWidth",value:function(){var e=(0,u.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}},{key:"getTotalHeight",value:function(){var e=(0,u.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}},{key:"isVisible",value:function(){return(0,u.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=(0,c.isFunction)(e)?e():null;return Array.isArray(t)?(t=(0,o.default)(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}]),e}();t.default=y},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Overlay=void 0,n(23);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=n(12),u=n(13),c=n(69),d=n(110),h=r(n(439)),f=function(){function e(t,n,r,i,u){(0,o.default)(this,e),(0,a.default)(this,"wtSettings",null),(0,l.defineGetter)(this,"wot",t,{writable:!1}),this.domBindings=u,this.facadeGetter=n,this.wtSettings=i;var c=this.wot.wtTable,d=c.TABLE,h=c.hider,f=c.spreader,v=c.holder,g=c.wtRootElement;this.instance=this.wot,this.type=r,this.mainTableScrollableElement=null,this.TABLE=d,this.hider=h,this.spreader=f,this.holder=v,this.wtRootElement=g,this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.updateStateOfRendering(),this.clone=this.makeClone()}return(0,i.default)(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){var e=this.wot.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=this.wot.wtTable.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE)}},{key:"getRelativeCellPosition",value:function(e,t,n){if(!1!==this.clone.wtTable.holder.contains(e)){var r=this.mainTableScrollableElement===this.domBindings.rootWindow,o=n<this.wtSettings.getSetting("fixedColumnsStart"),i=t<this.wtSettings.getSetting("fixedRowsTop"),a=t>=this.wtSettings.getSetting("totalRows")-this.wtSettings.getSetting("fixedRowsBottom"),s=this.clone.wtTable.spreader,l={start:this.getRelativeStartPosition(s),top:s.offsetTop},u={start:this.getRelativeStartPosition(e),top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(i,o,u,l):this.getRelativeCellPositionWithinHolder(i,a,o,u,l)}(0,c.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeStartPosition",value:function(e){return this.isRtl()?e.offsetParent.offsetWidth-e.offsetLeft-e.offsetWidth:e.offsetLeft}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var o=this.wot.wtTable.wtRootElement.getBoundingClientRect(),i=0,a=0;if(t){var l=o.left;this.isRtl()&&(l=this.domBindings.rootWindow.innerWidth-(o.left+o.width+(0,s.getScrollbarWidth)())),i=l<=0?-1*l:0}else i=r.start;e?a=this.clone.wtTable.TABLE.getBoundingClientRect().top-o.top:a=r.top;return{start:n.start+i,top:n.top+a}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,o){var i=this.wot.wtOverlays.inlineStartOverlay.getScrollPosition(),a=this.wot.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=i-o.start),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=a-o.top);return{start:r.start-s,top:r.top-l}}},{key:"makeClone",value:function(){if(-1===d.CLONE_TYPES.indexOf(this.type))throw new Error('Clone type "'.concat(this.type,'" is not supported.'));var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=n.createElement("DIV"),i=n.createElement("TABLE"),a=e.wtRootElement.parentNode;o.className="".concat(d.CLONE_CLASS_NAMES.get(this.type)," handsontable"),o.setAttribute("dir",this.isRtl()?"rtl":"ltr"),o.style.position="absolute",o.style.top=0,o.style.overflow="visible",this.isRtl()?o.style.right=0:o.style.left=0,i.className=e.TABLE.className,o.appendChild(i),a.appendChild(o);var l=this.wtSettings.getSetting("preventOverflow");return!0===l||"horizontal"===l&&this.type===d.CLONE_TOP||"vertical"===l&&this.type===d.CLONE_INLINE_START?this.mainTableScrollableElement=r:"hidden"===r.getComputedStyle(a).getPropertyValue("overflow")?this.mainTableScrollableElement=e.holder:this.mainTableScrollableElement=(0,s.getScrollableElement)(e.TABLE),new h.default(i,this.wtSettings,{source:this.wot,overlay:this,viewport:this.wot.wtViewport,event:this.wot.wtEvent,selections:this.wot.selections})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder,t=this.clone.wtTable.hider,n=e.style,r=t.style,o=e.parentNode.style;(0,u.arrayEach)([n,r,o],(function(e){e.width="",e.height=""}))}}},{key:"isRtl",value:function(){return this.wtSettings.getSetting("rtlMode")}},{key:"destroy",value:function(){this.clone.eventManager.destroy()}}]),e}();t.Overlay=f},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(31)),s=r(n(18)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f=function(e){(0,l.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,null),(0,d.default)((0,a.default)(i),"visualCellRange",null),i.visualCellRange=r||null,i.commit(),i}return(0,i.default)(n,[{key:"add",value:function(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}},{key:"clear",value:function(){return this.visualCellRange=null,(0,s.default)((0,c.default)(n.prototype),"clear",this).call(this)}},{key:"trimToVisibleCellsRangeOnly",value:function(e){var t=e.from,n=e.to,r=this.getNearestNotHiddenCoords(t,1),o=this.getNearestNotHiddenCoords(n,-1);if(null===r||null===o)return null;if(r.row>o.row||r.col>o.col){if(!("header"===this.settings.type||"active-header"===this.settings.type))return null;r=t,o=n}return this.settings.createCellRange(r,r,o)}},{key:"getNearestNotHiddenCoords",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper(),e.row,t);if(null===r)return null;var o=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper(),e.col,n);return null===o?null:this.settings.createCellCoords(r,o)}},{key:"getNearestNotHiddenIndex",value:function(e,t,n){if(t<0)return t;var r=e.getNearestNotHiddenIndex(t,n);return("header"===this.settings.type||"active-header"===this.settings.type)&&null===r?-1:r}},{key:"commit",value:function(){if(null===this.visualCellRange)return this;var e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}},{key:"syncWith",value:function(e){var t="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,r=this.getNearestNotHiddenCoords(e.from.clone().normalize(),t,n);if(null!==r&&e.overlaps(r)){if(null===this.cellRange){var o=this.settings.visualToRenderableCoords(r);this.cellRange=this.settings.createCellRange(o)}return e.setHighlight(r),this}return e.setHighlight(e.from),this}},{key:"getCorners",value:function(){var e=this.cellRange,t=e.from,n=e.to,r=null===t.row||null===n.row,o=null===t.col||null===n.col,i=this.settings.createCellCoords(r?null:Math.min(t.row,n.row),o?null:Math.min(t.col,n.col)),a=this.settings.createCellCoords(r?null:Math.max(t.row,n.row),o?null:Math.max(t.col,n.col));return[i.row,i.col,a.row,a.col]}},{key:"getVisualCorners",value:function(){var e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}},{key:"createRenderableCellRange",value:function(e,t){var n=this.settings.visualToRenderableCoords(e),r=this.settings.visualToRenderableCoords(t);return this.settings.createCellRange(n,n,r)}}]),n}(n(108).Selection);t.default=f},function(e,t,n){"use strict";var r,o=n(21),i=n(143),a=n(97).f,s=n(103),l=n(49),u=n(208),c=n(71),d=n(210),h=n(94),f=i("".startsWith),v=i("".slice),g=Math.min,p=d("startsWith");o({target:"String",proto:!0,forced:!!(h||p||(r=a(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=l(c(this));u(e);var n=s(g(arguments.length>1?arguments[1]:void 0,t.length)),r=l(e);return f?f(t,r,n):v(t,n,n+r.length)===r}})},function(e,t,n){"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){var n=!1;return(0,i.arrayEach)(e.getSelectedRange(),(function(o){o.forAll((function(o,i){if(!(o<0||i<0)){var a=e.getCellMeta(o,i).borders;if(a){if(!t)return n=!0,!1;if(!(0,r.hasOwnProperty)(a[t],"hide")||!1===a[t].hide)return n=!0,!1}}}))})),n},t.createDefaultCustomBorder=s,t.createDefaultHtBorder=u,t.createEmptyBorders=function(e,t){return{id:a(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=a,t.createSingleEmptyBorder=l,t.denormalizeBorder=function(e){(0,o.isDefined)(e.start)&&(e.left=e.start);(0,o.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,r.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,r.hasOwnProperty)(t,"top")&&(0,o.isDefined)(t.top)&&(t.top?((0,r.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,r.hasOwnProperty)(t,"bottom")&&(0,o.isDefined)(t.bottom)&&(t.bottom?((0,r.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,r.hasOwnProperty)(t,"start")&&(0,o.isDefined)(t.start)&&(t.start?((0,r.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,r.hasOwnProperty)(t,"end")&&(0,o.isDefined)(t.end)&&(t.end?((0,r.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.left)||(0,o.isDefined)(e.right)}))},t.hasStartEndTypeOptions=function(e){return e.some((function(e){return(0,o.isDefined)(e.start)||(0,o.isDefined)(e.end)}))},t.markSelected=function(e){return'<span class="selected">'.concat(String.fromCharCode(10003),"</span>").concat(e)},t.normalizeBorder=function(e){var t,n;((0,o.isDefined)(e.start)||(0,o.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,o.isDefined)(e.end)||(0,o.isDefined)(e.right))&&(e.end=null!==(n=e.end)&&void 0!==n?n:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},n(19),n(1),n(4),n(36),n(5),n(6);var r=n(12),o=n(24),i=n(13);function a(e,t){return"border_row".concat(e,"col").concat(t)}function s(){return{width:1,color:"#000"}}function l(){return{hide:!0}}function u(){return{width:1,color:"#000",cornerVisible:!1}}var c=new Map([["left","start"],["right","end"]])},function(e,t,n){var r=n(27),o=n(26),i=n(85),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},function(e,t,n){var r=n(26);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){var r=n(41),o=n(100),i=n(73).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r,o,i=n(38),a=n(99),s=i.process,l=i.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(o=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},function(e,t,n){var r=n(88),o=n(42),i=n(95),a=n(239),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},function(e,t,n){var r=n(245),o=n(190);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(96),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t){e.exports={}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(48),o=n(47),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},function(e,t,n){var r=n(21),o=n(27),i=n(137),a=n(55),s=n(47),l=n(73).f,u=n(117),c=n(197),d=n(368),h=n(160),f=n(195),v=!1,g=h("meta"),p=0,y=function(e){l(e,g,{value:{objectID:"O"+p++,weakData:{}}})},m=e.exports={enable:function(){m.enable=function(){},v=!0;var e=u.f,t=o([].splice),n={};n[g]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===g){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[g].objectID},getWeakData:function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[g].weakData},onFreeze:function(e){return f&&v&&d(e)&&!s(e,g)&&y(e),e}};i[g]=!0},function(e,t,n){var r=n(143),o=n(102),i=n(131),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(85),o=n(27);e.exports=function(e){if("Function"===r(e))return o(e)}},function(e,t,n){var r=n(248),o=n(73);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},function(e,t,n){var r=n(26),o=n(41),i=n(133),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r=n(27);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(21),o=n(27),i=n(119),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=t.SHORTCUTS_GROUP_NAVIGATION=t.SHORTCUTS_GROUP_EDITOR=void 0,n(28),n(35),n(4),n(1),n(5),n(7),n(6);var o=r(n(22)),i=r(n(2)),a=r(n(3)),s=n(91),l=n(62),u=n(15),c=n(107),d=r(n(44)),h=n(24);t.SHORTCUTS_GROUP_NAVIGATION="editorManager.navigation";t.SHORTCUTS_GROUP_EDITOR="editorManager.handlingEditor";var f=function(){function e(t,n,r){var o=this;(0,i.default)(this,e),this.instance=t,this.tableMeta=n,this.selection=r,this.eventManager=new d.default(t),this.destroyed=!1,this.lock=!1,this.activeEditor=void 0,this.cellProperties=void 0,this.instance.getShortcutManager().addContext("editor"),this.registerShortcuts(),this.instance.addHook("afterDocumentKeyDown",(function(e){return o.onAfterDocumentKeyDown(e)})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"compositionstart",(function(e){!o.destroyed&&o.instance.isListening()&&o.openEditor("",e)})),this.instance.view._wt.update("onCellDblClick",(function(e,t,n){return o.onCellDblClick(e,t,n)}))}return(0,a.default)(e,[{key:"registerShortcuts",value:function(){var e=this,t=this.instance.getShortcutManager(),n=t.getContext("grid"),r={group:"editorManager.handlingEditor"};t.getContext("editor").addShortcuts([{keys:[["Enter"],["Enter","Shift"],["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],callback:function(n,r){e.closeEditorAndSaveChanges(t.isCtrlPressed()),e.moveSelectionAfterEnter(r.includes("shift"))}},{keys:[["Escape"],["Escape","Control/Meta"]],callback:function(){e.closeEditorAndRestoreOriginalValue(t.isCtrlPressed()),e.activeEditor.focus()}}],r),n.addShortcuts([{keys:[["F2"]],callback:function(t){e.openEditor(null,t,!0)}},{keys:[["Backspace"],["Delete"]],callback:function(){e.instance.emptySelectedCells(),e.prepareEditor()}},{keys:[["Enter"],["Enter","Shift"]],callback:function(t,n){e.instance.getSettings().enterBeginsEditing?e.cellProperties.readOnly?e.moveSelectionAfterEnter():e.openEditor(null,t,!0):e.moveSelectionAfterEnter(n.includes("shift")),(0,l.stopImmediatePropagation)(t)}}],r)}},{key:"lockEditor",value:function(){this.lock=!0}},{key:"unlockEditor",value:function(){this.lock=!1}},{key:"destroyEditor",value:function(e){this.lock||this.closeEditor(e)}},{key:"getActiveEditor",value:function(){return this.activeEditor}},{key:"prepareEditor",value:function(){var e=this;if(!this.lock)if(this.activeEditor&&this.activeEditor.isWaiting())this.closeEditor(!1,!1,(function(t){t&&e.prepareEditor()}));else{var t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,i=this.instance.runHooks("modifyGetCellCoords",n,r),a=n,s=r;if(Array.isArray(i)){var l=(0,o.default)(i,2);a=l[0],s=l[1]}this.cellProperties=this.instance.getCellMeta(a,s);var d=this.instance.rootDocument.activeElement;if(d&&(0,u.isOutsideInput)(d)&&d.blur(),this.isCellEditable()){var h=this.instance.getCell(n,r,!0);if(h){var f=this.instance.getCellEditor(this.cellProperties),v=this.instance.colToProp(s),g=this.instance.getSourceDataAtCell(this.instance.toPhysicalRow(a),s);this.activeEditor=(0,c.getEditorInstance)(f,this.instance),this.activeEditor.prepare(n,r,v,h,g,this.cellProperties)}}else this.clearActiveEditor()}}},{key:"isEditorOpened",value:function(){return this.activeEditor&&this.activeEditor.isOpened()}},{key:"openEditor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isCellEditable()){if(!this.activeEditor){var r=this.instance.getSelectedRangeLast().highlight,o=r.row,i=r.col,a=this.instance.rowIndexMapper.getRenderableFromVisualIndex(o),s=this.instance.columnIndexMapper.getRenderableFromVisualIndex(i);this.instance.view.scrollViewport(this.instance._createCellCoords(a,s)),this.instance.view.render(),this.prepareEditor()}this.activeEditor&&(n&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))}else this.clearActiveEditor()}},{key:"closeEditor",value:function(e,t,n){this.activeEditor?this.activeEditor.finishEditing(e,t,n):n&&n(!1)}},{key:"closeEditorAndSaveChanges",value:function(e){this.closeEditor(!1,e)}},{key:"closeEditorAndRestoreOriginalValue",value:function(e){this.closeEditor(!0,e)}},{key:"clearActiveEditor",value:function(){this.activeEditor=void 0}},{key:"isCellEditable",value:function(){var e=this.instance.getCellEditor(this.cellProperties),t=this.instance.getSelectedRangeLast().highlight,n=t.row,r=t.col,o=this.instance,i=o.rowIndexMapper,a=o.columnIndexMapper,s=i.isHidden(this.instance.toPhysicalRow(n))||a.isHidden(this.instance.toPhysicalColumn(r));return!(this.cellProperties.readOnly||!e||s)}},{key:"moveSelectionAfterEnter",value:function(e){var t="function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(event):this.tableMeta.enterMoves;e?this.selection.transformStart(-t.row,-t.col):this.selection.transformStart(t.row,t.col,!0)}},{key:"onAfterDocumentKeyDown",value:function(e){var t=this;if(this.instance.isListening()){var n=e.keyCode;if(this.selection.isSelected()){var r=(e.ctrlKey||e.metaKey)&&!e.altKey;if((!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&!((0,s.isFunctionKey)(n)||(0,s.isCtrlMetaKey)(n)||r||this.isEditorOpened())){var o={runOnlyIf:function(){return(0,h.isDefined)(t.instance.getSelected())},group:"editorManager.navigation"};this.instance.getShortcutManager().getContext("editor").addShortcuts([{keys:[["ArrowUp"]],callback:function(){t.instance.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){t.instance.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){t.instance.selection.transformStart(0,-1*t.instance.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){t.instance.selection.transformStart(0,t.instance.getDirectionFactor())}}],o),this.openEditor("",e)}}}}},{key:"onCellDblClick",value:function(e,t,n){"TD"===n.nodeName&&this.openEditor(null,e,!0)}},{key:"destroy",value:function(){this.destroyed=!0,this.eventManager.destroy()}}]),e}(),v=new WeakMap;f.getInstance=function(e,t,n){var r=v.get(e);return r||(r=new f(e,t,n),v.set(e,r)),r};var g=f;t.default=g},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=void 0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return a(e)},t.hasRenderer=void 0,t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);i(e,t)};var o=(0,r(n(86)).default)("renderers"),i=o.register,a=o.getItem,s=o.hasItem,l=o.getNames,u=o.getValues;t.getRegisteredRenderers=u,t.getRegisteredRendererNames=l,t.hasRenderer=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=void 0,t.getValidator=function(e){if("function"==typeof e)return e;if(!s(e))throw Error('No registered validator found under "'.concat(e,'" name'));return a(e)},t.hasValidator=void 0,t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);i(e,t)};var o=(0,r(n(86)).default)("validators"),i=o.register,a=o.getItem,s=o.hasItem,l=o.getNames,u=o.getValues;t.getRegisteredValidators=u,t.getRegisteredValidatorNames=l,t.hasValidator=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(431)),s=function(){function e(t,n){(0,o.default)(this,e),this.nodesPool="string"==typeof t?new a.default(t):null,this.nodeType=t,this.rootNode=n,this.table=null,this.renderedNodes=0}return(0,i.default)(e,[{key:"setTable",value:function(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}},{key:"adjust",value:function(){}},{key:"render",value:function(){}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(21),o=n(48),i=n(38),a=n(27),s=n(47),l=n(42),u=n(95),c=n(49),d=n(144),h=n(250),f=i.Symbol,v=f&&f.prototype;if(o&&l(f)&&(!("description"in v)||void 0!==f().description)){var g={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(v,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(p,f),p.prototype=v,v.constructor=p;var y="Symbol(test)"==String(f("test")),m=a(v.valueOf),C=a(v.toString),w=/^Symbol\((.*)\)[^)]+$/,E=a("".replace),R=a("".slice);d(v,"description",{configurable:!0,get:function(){var e=m(this);if(s(g,e))return"";var t=C(e),n=y?R(t,7,-1):E(t,w,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:p})}},function(e,t,n){"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error("Assertion failed: ".concat(t))},t.columnFactory=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function n(){}(0,r.inherit)(n,e);for(var o=0;o<t.length;o++)n.prototype[t[o]]=void 0;return n},t.extendByMetaType=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a="string"==typeof t.type?(0,o.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,r.objectEach)(t,(function(t,n){e._automaticallyAssignedMetaProps.delete(n)}));if(!(0,r.isObject)(a))return;n!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);var s={};(0,r.objectEach)(a,(function(t,r){var o;i(r,n)&&(s[r]=t,null===(o=e._automaticallyAssignedMetaProps)||void 0===o||o.add(r))})),(0,r.extend)(e,s)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},n(4),n(1),n(45),n(5),n(6),n(60),n(61);var r=n(12),o=n(154);function i(e,t){var n;return"CELL_TYPE"!==e&&((null===(n=t._automaticallyAssignedMetaProps)||void 0===n?void 0:n.has(e))||!(0,r.hasOwnProperty)(t,e))}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCellType=function(e){if(!d(e))throw Error('You declared cell type "'.concat(e,'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by\n "Handsontable.cellTypes.registerCellType" method'));return c(e)},t.hasCellType=t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=void 0,t.registerCellType=function(e,t){"string"!=typeof e&&(e=(t=e).CELL_TYPE);var n=t,r=n.editor,o=n.renderer,l=n.validator;r&&(0,i.registerEditor)(e,r);o&&(0,a.registerRenderer)(e,o);l&&(0,s.registerValidator)(e,l);u(e,t)};var o=r(n(86)),i=n(107),a=n(149),s=n(150),l=(0,o.default)("cellTypes"),u=l.register,c=l.getItem,d=l.hasItem,h=l.getNames,f=l.getValues;t.getRegisteredCellTypes=f,t.getRegisteredCellTypeNames=h,t.hasCellType=d},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var r=n(317);t.EDITOR_STATE=r.EDITOR_STATE,t.EDITOR_TYPE=r.EDITOR_TYPE,t.BaseEditor=r.BaseEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteRenderer=t.RENDERER_TYPE=void 0;var r=n(529);t.RENDERER_TYPE=r.RENDERER_TYPE,t.autocompleteRenderer=r.autocompleteRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.createArrayAssertion=u,t.intersectValues=function(e,t,n,r){var i,s=[],l=e===t;l||(i=u(t));return(0,o.arrayEach)(e,(function(e){var t=!1;(l||i(e))&&(t=!0);var o={checked:t,value:e,visualValue:a(e,n)};r&&r(o),s.push(o)})),s},t.sortComparison=function(e,t){if("number"==typeof e&&"number"==typeof t)return e-t;return i(e,t)},t.toEmptyString=function(e){return null==e?"":e},t.toVisualValue=a,t.unifyColumnValues=function(e){var t=e;t=l?Array.from(new Set(t)):(0,o.arrayUnique)(t);return t=t.sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))},n(4),n(1),n(45),n(5),n(6),n(40),n(23),n(77);var r=n(90),o=n(13),i=(0,r.getComparisonFunction)();function a(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var s=new Set([1]).has(1),l=s&&"function"==typeof Array.from;function u(e){var t=e;return s&&(t=new Set(t)),function(e){return s?t.has(e):!!~t.indexOf(e)}}},function(e,t,n){"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!r[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=r[e].func;return function(e,n){return t(e,n)}},t.getOperationName=function(e){return r[e].name},t.operations=void 0,t.registerOperation=function(e,t,n){r[e]={name:t,func:n}},n(70);var r={};t.operations=r},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(128);var i=r(n(2)),a=r(n(3)),s=n(12),l=r(n(75)),u=r(n(44)),c=n(15),d=n(13),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var v=["click","input","keydown","keypress","keyup","focus","blur","change"],g=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.eventManager=new u.default(this),this.options=(0,s.extend)(e.DEFAULTS,n),this._element=this.hot.rootDocument.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=null}return(0,a.default)(e,[{key:"setValue",value:function(e){this.options.value=e,this.update()}},{key:"getValue",value:function(){return this.options.value}},{key:"element",get:function(){return"building"===this.buildState?this._element:"built"===this.buildState?(this.update(),this._element):(this.buildState="building",this.build(),this.buildState="built",this._element)}},{key:"isBuilt",value:function(){return"built"===this.buildState}},{key:"translateIfPossible",value:function(e){return"string"==typeof e&&e.startsWith(h.FILTERS_NAMESPACE)?this.hot.getTranslatedPhrase(e):e}},{key:"build",value:function(){var e=this,t=function(t,n){e.eventManager.addEventListener(t,n,(function(t){return e.runLocalHooks(n,t,e)}))};if(this.buildState||(this.buildState="building"),this.options.className&&(0,c.addClass)(this._element,this.options.className),this.options.children.length)(0,d.arrayEach)(this.options.children,(function(t){return e._element.appendChild(t.element)}));else if(this.options.wrapIt){var n=this.hot.rootDocument.createElement(this.options.tagName);(0,s.objectEach)(this.options,(function(t,r){void 0!==n[r]&&"className"!==r&&"tagName"!==r&&"children"!==r&&(n[r]=e.translateIfPossible(t))})),this._element.appendChild(n),(0,d.arrayEach)(v,(function(e){return t(n,e)}))}else(0,d.arrayEach)(v,(function(n){return t(e._element,n)}))}},{key:"update",value:function(){}},{key:"reset",value:function(){this.options.value="",this.update()}},{key:"show",value:function(){this.element.style.display=""}},{key:"hide",value:function(){this.element.style.display="none"}},{key:"focus",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}}],[{key:"DEFAULTS",get:function(){return(0,s.clone)({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}]),e}();(0,s.mixin)(g,l.default);var p=g;t.default=p},function(e,t,n){var r=n(27),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},function(e,t,n){var r=n(38),o=n(55),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(244),o=n(134);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},function(e,t,n){var r=n(114),o=n(160),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(26),o=n(42),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){var r=n(47),o=n(42),i=n(72),a=n(163),s=n(253),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(r(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},function(e,t,n){var r=n(73).f,o=n(47),i=n(41)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(193),o=n(42),i=n(85),a=n(41)("toStringTag"),s=Object,l="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(21),o=n(38),i=n(27),a=n(166),s=n(83),l=n(141),u=n(199),c=n(201),d=n(42),h=n(82),f=n(55),v=n(26),g=n(258),p=n(168),y=n(202);e.exports=function(e,t,n){var m=-1!==e.indexOf("Map"),C=-1!==e.indexOf("Weak"),w=m?"set":"add",E=o[e],R=E&&E.prototype,S=E,b={},T=function(e){var t=i(R[e]);s(R,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(C&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return C&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(C&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!d(E)||!(C||R.forEach&&!v((function(){(new E).entries().next()})))))S=n.getConstructor(t,e,m,w),l.enable();else if(a(e,!0)){var O=new S,_=O[w](C?{}:-0,1)!=O,I=v((function(){O.has(1)})),k=g((function(e){new E(e)})),M=!C&&v((function(){for(var e=new E,t=5;t--;)e[w](t,t);return!e.has(-0)}));k||((S=t((function(e,t){c(e,R);var n=y(new E,e,S);return h(t)||u(t,n[w],{that:n,AS_ENTRIES:m}),n}))).prototype=R,R.constructor=S),(I||M)&&(T("delete"),T("has"),m&&T("get")),(M||_)&&T(w),C&&R.clear&&delete R.clear}return b[e]=S,r({global:!0,constructor:!0,forced:S!=E},b),p(S,e),C||n.setStrong(S,e,m),S}},function(e,t,n){var r=n(27),o=n(26),i=n(42),a=n(169),s=n(88),l=n(249),u=function(){},c=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),v=!h.exec(u),g=function(e){if(!i(e))return!1;try{return d(u,c,e),!0}catch(e){return!1}},p=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!f(h,l(e))}catch(e){return!0}};p.sham=!0,e.exports=!d||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?p:g},function(e,t,n){"use strict";var r,o,i=n(56),a=n(27),s=n(49),l=n(275),u=n(205),c=n(114),d=n(100),h=n(89).get,f=n(276),v=n(277),g=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,y=p,m=a("".charAt),C=a("".indexOf),w=a("".replace),E=a("".slice),R=(o=/b*/g,i(p,r=/a/,"a"),i(p,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=u.BROKEN_CARET,b=void 0!==/()??/.exec("")[1];(R||b||S||f||v)&&(y=function(e){var t,n,r,o,a,u,c,f=this,v=h(f),T=s(e),O=v.raw;if(O)return O.lastIndex=f.lastIndex,t=i(y,O,T),f.lastIndex=O.lastIndex,t;var _=v.groups,I=S&&f.sticky,k=i(l,f),M=f.source,N=0,P=T;if(I&&(k=w(k,"y",""),-1===C(k,"g")&&(k+="g"),P=E(T,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==m(T,f.lastIndex-1))&&(M="(?: "+M+")",P=" "+P,N++),n=new RegExp("^(?:"+M+")",k)),b&&(n=new RegExp("^"+M+"$(?!\\s)",k)),R&&(r=f.lastIndex),o=i(p,I?n:f,P),I?o?(o.input=E(o.input,N),o[0]=E(o[0],N),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:R&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),b&&o&&o.length>1&&i(g,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&_)for(o.groups=u=d(null),a=0;a<_.length;a++)u[(c=_[a])[0]]=o[c[1]];return o}),e.exports=y},function(e,t,n){"use strict";n(43);var r=n(143),o=n(83),i=n(172),a=n(26),s=n(41),l=n(104),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),v=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!v||n){var g=r(/./[h]),p=t(h,""[e],(function(e,t,n,o,a){var s=r(e),l=t.exec;return l===i||l===c.exec?f&&!a?{done:!0,value:g(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,p[0]),o(c,h,p[1])}d&&l(c[h],"sham",!0)}},function(e,t,n){var r=n(56),o=n(54),i=n(42),a=n(85),s=n(172),l=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return r(s,e,t);throw l("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(21),o=n(412).left,i=n(120),a=n(133);r({target:"Array",proto:!0,forced:!n(280)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(21),o=n(105).findIndex,i=n(132),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPlugin=v,t.getPluginsNames=function(){return[].concat((0,i.default)(d.getItems()),(0,i.default)(h.getItems()))},t.hasPlugin=function(e){return!!v(e)},t.registerPlugin=function(e,t,n){var r=function(e,t,n){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,n=t.PLUGIN_PRIORITY);return[e,t,n]}(e,t,n),i=(0,o.default)(r,3);e=i[0],t=i[1],n=i[2],void 0===v(e)&&function(e,t,n){var r=(0,a.toUpperCaseFirst)(e);if(f.hasItem(r))throw new Error(c(r));void 0===n?h.addItem(r):d.addItem(n,r);f.addItem(r,t)}(e,t,n)},n(19);var o=r(n(22)),i=r(n(29)),a=n(68),s=n(413),l=n(178),u=n(414),c=function(e){return'There is already registered "'.concat(e,'" plugin.')},d=(0,s.createPriorityMap)({errorPriorityExists:function(e){return'There is already registered plugin on priority "'.concat(e,'".')},errorPriorityNaN:function(e){return'The priority "'.concat(e,'" is not a number.')}}),h=(0,u.createUniqueSet)({errorItemExists:c}),f=(0,l.createUniqueMap)({errorIdExists:c});function v(e){var t=(0,a.toUpperCaseFirst)(e);return f.getItem(t)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorIdExists,n=new Map;function r(e,r){if(f(e))throw new Error(t(e));n.set(e,r)}function l(e){return n.delete(e)}function u(){n.clear()}function c(e){var t=h().find((function(t){var n=(0,i.default)(t,2),r=n[0],o=n[1];return e===o&&r}))||[null];return(0,i.default)(t,1)[0]}function d(e){return n.get(e)}function h(){return(0,o.default)(n)}function f(e){return n.has(e)}return t=(0,a.isFunction)(t)?t:s,{addItem:r,clear:u,getId:c,getItem:d,getItems:h,hasItem:f,removeItem:l}};var o=r(n(29)),i=r(n(22));n(4),n(36),n(1),n(5),n(6),n(179);var a=n(51),s=function(e){return"The id '".concat(e,"' is already declared in a map.")}},function(e,t,n){"use strict";var r=n(21),o=n(105).find,i=n(132),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(294));t.OrderView=o.default;var i=r(n(430));t.SharedOrderView=i.default},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMap=void 0,n(33);var o=r(n(2)),i=r(n(3)),a=n(32),s=n(12),l=n(51),u=r(n(75)),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,o.default)(this,e),this.indexedValues=[],this.initValueOrFn=t}return(0,i.default)(e,[{key:"getValues",value:function(){return this.indexedValues}},{key:"getValueAtIndex",value:function(e){var t=this.indexedValues;if(e<t.length)return t[e]}},{key:"setValues",value:function(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}},{key:"setValueAtIndex",value:function(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}},{key:"clear",value:function(){this.setDefaultValues()}},{key:"getLength",value:function(){return this.getValues().length}},{key:"setDefaultValues",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,l.isFunction)(this.initValueOrFn)?(0,a.rangeEach)(t-1,(function(t){return e.indexedValues.push(e.initValueOrFn(t))})):(0,a.rangeEach)(t-1,(function(){return e.indexedValues.push(e.initValueOrFn)})),this.runLocalHooks("change")}},{key:"init",value:function(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}},{key:"insert",value:function(){this.runLocalHooks("change")}},{key:"remove",value:function(){this.runLocalHooks("change")}},{key:"destroy",value:function(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}]),e}();t.IndexMap=c,(0,s.mixin)(c,u.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n){return[].concat((0,o.default)(e.slice(0,t)),(0,o.default)(n),(0,o.default)(e.slice(t)))},t.getListWithRemovedItems=function(e,t){return(0,i.arrayFilter)(e,(function(e){return!1===t.includes(e)}))},n(19),n(33),n(28),n(35);var o=r(n(29)),i=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.SELECTION_TYPE_UNRECOGNIZED=t.SELECTION_TYPE_OBJECT=t.SELECTION_TYPE_EMPTY=t.SELECTION_TYPE_ARRAY=t.SELECTION_TYPES=void 0,t.detectSelectionType=f,t.isValidCoord=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e<t},t.normalizeSelectionFactory=v,t.transformSelectionToColumnDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=v(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,4),a=i[1],l=i[3],u=Math.max(a,0),c=l-u+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return u+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])},t.transformSelectionToRowDistance=function(e){var t=f(e);if(0===t||1===t)return[];var n=v(t),r=new Set;(0,s.arrayEach)(e,(function(e){var t=n(e),i=(0,o.default)(t,3),a=i[0],l=i[2],u=Math.max(a,0),c=l-u+1;(0,s.arrayEach)(Array.from(new Array(c),(function(e,t){return u+t})),(function(e){r.has(e)||r.add(e)}))}));var i=Array.from(r).sort((function(e,t){return e-t}));return(0,s.arrayReduce)(i,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])};var o=r(n(22)),i=r(n(14));n(53),n(152),n(1),n(28),n(35),n(4),n(45),n(5),n(6),n(40),n(77);var a=n(108),s=n(13),l=n(24);t.SELECTION_TYPE_UNRECOGNIZED=0;t.SELECTION_TYPE_EMPTY=1;t.SELECTION_TYPE_ARRAY=2;t.SELECTION_TYPE_OBJECT=3;var u=[3,2];t.SELECTION_TYPES=u;var c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),h=Symbol("child");function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==h)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),r=t===d,o=0;if(n){var s=e[0];if(0===e.length)o=1;else if(r&&s instanceof a.CellRange)o=3;else if(r&&Array.isArray(s))o=f(s,h);else if(e.length>=2&&e.length<=4){var l=!e.some((function(e,t){return!c[t].includes((0,i.default)(e))}));l&&(o=2)}}return o}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,o=t.propToCol;if(!u.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=3===e,i=n?t.from.row:t[0],a=n?t.from.col:t[1],s=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"==typeof o&&("string"==typeof a&&(a=o(a)),"string"==typeof u&&(u=o(u))),(0,l.isUndefined)(s)&&(s=i),(0,l.isUndefined)(u)&&(u=a),!r){var c=i,d=a,h=s,f=u;i=Math.min(c,h),a=Math.min(d,f),s=Math.max(c,h),u=Math.max(d,f)}return[i,a,s,u]}}},function(e,t,n){"use strict";t.__esModule=!0,t.baseRenderer=t.RENDERER_TYPE=void 0;var r=n(513);t.RENDERER_TYPE=r.RENDERER_TYPE,t.baseRenderer=r.baseRenderer},function(e,t,n){n(565)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12),l=r(n(75)),u=n(65),c=function(){function e(t,n){var r=n.id,i=n.stateless,a=void 0===i||i;(0,o.default)(this,e),this.hot=t,this.id=r,this.elements=[],this.hidden=!1,this.stateId="Filters.component.".concat(this.id),this.state=a?null:this.hot.columnIndexMapper.registerMap(this.stateId,new u.LinkedPhysicalIndexToValueMap)}return(0,i.default)(e,[{key:"reset",value:function(){(0,a.arrayEach)(this.elements,(function(e){return e.reset()}))}},{key:"hide",value:function(){this.hidden=!0}},{key:"show",value:function(){this.hidden=!1}},{key:"isHidden",value:function(){return null===this.hot||this.hidden}},{key:"restoreState",value:function(e){this.state&&this.setState(this.state.getValueAtIndex(e))}},{key:"setState",value:function(){throw new Error("The state setting logic is not implemented")}},{key:"saveState",value:function(e){this.state&&this.state.setValueAtIndex(e,this.getState())}},{key:"getState",value:function(){throw new Error("The state gathering logic is not implemented")}},{key:"destroy",value:function(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),(0,a.arrayEach)(this.elements,(function(e){return e.destroy()})),this.state=null,this.elements=null,this.hot=null}}]),e}();(0,s.mixin)(c,l.default);var d=c;t.default=d},function(e,t,n){var r=n(38),o=n(188),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(38),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(76),o=n(136),i=n(79),a=function(e){return function(t,n,a){var s,l=r(t),u=i(l),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r=n(21),o=n(56),i=n(94),a=n(140),s=n(42),l=n(363),u=n(167),c=n(254),d=n(168),h=n(104),f=n(83),v=n(41),g=n(138),p=n(252),y=a.PROPER,m=a.CONFIGURABLE,C=p.IteratorPrototype,w=p.BUGGY_SAFARI_ITERATORS,E=v("iterator"),R=function(){return this};e.exports=function(e,t,n,a,v,p,S){l(n,t,a);var b,T,O,_=function(e){if(e===v&&P)return P;if(!w&&e in M)return M[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",k=!1,M=e.prototype,N=M[E]||M["@@iterator"]||v&&M[v],P=!w&&N||_(v),A="Array"==t&&M.entries||N;if(A&&(b=u(A.call(new e)))!==Object.prototype&&b.next&&(i||u(b)===C||(c?c(b,C):s(b[E])||f(b,E,R)),d(b,I,!0,!0),i&&(g[I]=R)),y&&"values"==v&&N&&"values"!==N.name&&(!i&&m?h(M,"name","values"):(k=!0,P=function(){return o(N,this)})),v)if(T={values:_("values"),keys:p?P:_("keys"),entries:_("entries")},S)for(O in T)(w||k||!(O in M))&&f(M,O,T[O]);else r({target:t,proto:!0,forced:w||k},T);return i&&!S||M[E]===P||f(M,E,P,{name:v}),g[t]=P,T}},function(e,t){e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){var r={};r[n(41)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(27),o=n(96),i=n(49),a=n(71),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,d=i(a(t)),h=o(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=l(d,h))<55296||r>56319||h+1===f||(c=l(d,h+1))<56320||c>57343?e?s(d,h):r:e?u(d,h,h+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},function(e,t,n){var r=n(26);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(83);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(85),o=n(76),i=n(117).f,a=n(198),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},function(e,t,n){var r=n(136),o=n(79),i=n(118),a=Array,s=Math.max;e.exports=function(e,t,n){for(var l=o(e),u=r(t,l),c=r(void 0===n?l:n,l),d=a(s(c-u,0)),h=0;u<c;u++,h++)i(d,h,e[u]);return d.length=h,d}},function(e,t,n){var r=n(142),o=n(56),i=n(54),a=n(116),s=n(255),l=n(79),u=n(95),c=n(256),d=n(200),h=n(257),f=TypeError,v=function(e,t){this.stopped=e,this.result=t},g=v.prototype;e.exports=function(e,t,n){var p,y,m,C,w,E,R,S=n&&n.that,b=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),O=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),I=r(t,S),k=function(e){return p&&h(p,"normal",e),new v(!0,e)},M=function(e){return b?(i(e),_?I(e[0],e[1],k):I(e[0],e[1])):_?I(e,k):I(e)};if(T)p=e.iterator;else if(O)p=e;else{if(!(y=d(e)))throw f(a(e)+" is not iterable");if(s(y)){for(m=0,C=l(e);C>m;m++)if((w=M(e[m]))&&u(g,w))return w;return new v(!1)}p=c(e,y)}for(E=T?e.next:p.next;!(R=o(E,p)).done;){try{w=M(R.value)}catch(e){h(p,"throw",e)}if("object"==typeof w&&w&&u(g,w))return w}return new v(!1)}},function(e,t,n){var r=n(169),o=n(101),i=n(82),a=n(138),s=n(41)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[r(e)]}},function(e,t,n){var r=n(95),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},function(e,t,n){var r=n(42),o=n(55),i=n(254);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},function(e,t,n){var r=n(370);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){var r=n(264);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(26),o=n(38).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},function(e,t,n){"use strict";var r=n(194).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r,o=n(38),i=n(106),a=n(42),s=n(393),l=n(99),u=n(146),c=n(278),d=o.Function,h=/MSIE .\./.test(l)||s&&((r=o.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return h?function(r,o){var s=c(arguments.length,1)>n,l=a(r)?r:d(r),h=s?u(arguments,n):[],f=s?function(){i(l,this,h)}:l;return t?e(f,o):e(f)}:e}},function(e,t,n){var r=n(209),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(55),o=n(85),i=n(41)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(41)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(96),o=n(49),i=n(71),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",s=r(e);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t._dataToHTML=function(e){for(var t=e.length,n=["<table>"],r=0;r<t;r+=1){var o=e[r],a=o.length,s=[];0===r&&n.push("<tbody>");for(var l=0;l<a;l+=1){var u=o[l],c=(0,i.isEmpty)(u)?"":u.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,(function(e){return'<span style="mso-spacerun: yes">'.concat("&nbsp;".repeat(e.length-1)," </span>")})).replace(/\t/gi,"&#9;");s.push("<td>".concat(c,"</td>"))}n.push.apply(n,["<tr>"].concat(s,["</tr>"])),r+1===t&&n.push("</tbody>")}return n.push("</table>"),n.join("")},t.htmlToGridSettings=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},r=t.createDocumentFragment(),i=t.createElement("div");r.appendChild(i);var u=e;if("string"==typeof u){var c=u.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/<td\b[^>]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("</td>")}));i.insertAdjacentHTML("afterbegin","".concat(c)),u=i.querySelector("table")}if(!u||!l(u))return;var d=i.querySelector('meta[name$="enerator"]'),h=null!==u.querySelector("tbody th"),f=u.querySelector("tr"),v=f?Array.from(f.cells).reduce((function(e,t){return e+t.colSpan}),0)-(h?1:0):0,g=u.tFoot&&Array.from(u.tFoot.rows)||[],p=[],y=!1,m=0,C=0;if(u.tHead){var w=Array.from(u.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&p.push(e),!t}));m=w.length,y=m>0,m>1?n.nestedHeaders=Array.from(w).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(h&&0===n)return e;var r=t.colSpan,o=t.innerHTML,i=r>1?{label:o,colspan:r}:o;return e.push(i),e}),[]);return e.push(n),e}),[]):y&&(n.colHeaders=Array.from(w[0].children).reduce((function(e,t,n){return h&&0===n||e.push(t.innerHTML),e}),[]))}p.length&&(n.fixedRowsTop=p.length);g.length&&(n.fixedRowsBottom=g.length);var E=[].concat(p,(0,o.default)(Array.from(u.tBodies).reduce((function(e,t){return e.push.apply(e,(0,o.default)(Array.from(t.rows))),e}),[])),(0,o.default)(g));C=E.length;for(var R=new Array(C),S=0;S<C;S++)R[S]=new Array(v);for(var b=[],T=[],O=0;O<C;O++)for(var _=E[O],I=Array.from(_.cells),k=I.length,M=0;M<k;M++){var N=I[M],P=N.nodeName,A=N.innerHTML,x=N.rowSpan,D=N.colSpan,L=R[O].findIndex((function(e){return void 0===e}));if("TD"===P){if(x>1||D>1){for(var H=O;H<O+x;H++)if(H<C)for(var B=L;B<L+D;B++)R[H][B]=null;var F=N.getAttribute("style"),V=F&&F.includes("mso-ignore:colspan");V||b.push({col:L,row:O,rowspan:x,colspan:D})}var U="";U=d&&/excel/gi.test(d.content)?A.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):A.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),R[O][L]=U.replace(s,(function(e){return a[e]}))}else T.push(A)}b.length&&(n.mergeCells=b);T.length&&(n.rowHeaders=T);R.length&&(n.data=R);return n},t.instanceToHTML=function(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],o=e.getData.apply(e,r),a=o.length,s=a>0?o[0].length:0,l=["<table>","</table>"],u=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],d=n?1:0,h=t?1:0,f=0;f<a;f+=1){for(var v=t&&0===f,g=[],p=0;p<s;p+=1){var y=!v&&n&&0===p,m="";if(v)m="<th>".concat(e.getColHeader(p-d),"</th>");else if(y)m="<th>".concat(e.getRowHeader(f-h),"</th>");else{var C=o[f][p],w=e.getCellMeta(f-h,p-d),E=w.hidden,R=w.rowspan,S=w.colspan;if(!E){var b=[];if(R&&b.push('rowspan="'.concat(R,'"')),S&&b.push('colspan="'.concat(S,'"')),(0,i.isEmpty)(C))m="<td ".concat(b.join(" "),"></td>");else{var T=C.toString().replace("<","&lt;").replace(">","&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");m="<td ".concat(b.join(" "),">").concat(T,"</td>")}}}g.push(m)}var O=["<tr>"].concat(g,["</tr>"]).join("");v?u.splice(1,0,O):c.splice(-1,0,O)}return l.splice(1,0,u.join(""),c.join("")),l.join("")};var o=r(n(29));n(122),n(43),n(80),n(74),n(50),n(37),n(67),n(1),n(19),n(46),n(409),n(286),n(410),n(175),n(40),n(5),n(30),n(176),n(28),n(35);var i=n(24),a={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},s=new RegExp(Object.keys(a).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function l(e){return"TABLE"===(e&&e.nodeName||"")}},function(e,t,n){"use strict";t.__esModule=!0,t.RENDER_TYPE=t.PARTIALLY_VISIBLE_TYPE=t.FULLY_VISIBLE_TYPE=void 0;t.RENDER_TYPE=1;t.FULLY_VISIBLE_TYPE=2;t.PARTIALLY_VISIBLE_TYPE=3},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=r(n(63)),l=r(n(64));function u(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var c=new WeakMap,d=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,o.default)(this,e),(0,a.default)(this,"row",null),(0,a.default)(this,"col",null),u(this,c,{writable:!0,value:!1}),(0,l.default)(this,c,r),void 0!==t&&void 0!==n&&(this.row=t,this.col=n)}return(0,i.default)(e,[{key:"isValid",value:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&((0,s.default)(this,c)?this.col>=e.col:this.col<=e.col)}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&((0,s.default)(this,c)?this.col<=e.col:this.col>=e.col)}},{key:"normalize",value:function(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}},{key:"clone",value:function(){return new e(this.row,this.col,(0,s.default)(this,c))}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}]),e}();t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){return 0===this.wtSettings.getSetting("totalColumns")?-1:0},getFirstVisibleColumn:function(){return this.getFirstRenderedColumn()},getLastRenderedColumn:function(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn:function(){return this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wtSettings.getSetting("totalColumns");return Math.min(this.wtSettings.getSetting("fixedColumnsStart"),e)},getVisibleColumnsCount:function(){return this.getRenderedColumnsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=n(68),u=r(n(44)),c=r(n(440)),d=r(n(214)),h=r(n(290)),f=function(){function e(t,n){(0,o.default)(this,e),(0,a.default)(this,"wtTable",void 0),(0,a.default)(this,"wtScroll",void 0),(0,a.default)(this,"wtViewport",void 0),(0,a.default)(this,"wtOverlays",void 0),(0,a.default)(this,"selections",void 0),(0,a.default)(this,"wtEvent",void 0),(0,a.default)(this,"guid","wt_".concat((0,l.randomString)())),(0,a.default)(this,"drawInterrupted",!1),(0,a.default)(this,"drawn",!1),(0,a.default)(this,"domBindings",void 0),(0,a.default)(this,"wtSettings",void 0),this.domBindings={rootTable:t,rootDocument:t.ownerDocument,rootWindow:t.ownerDocument.defaultView},this.wtSettings=n,this.wtScroll=new c.default(this.createScrollDao())}return(0,i.default)(e,[{key:"eventManager",get:function(){return new u.default(this)}},{key:"findOriginalHeaders",value:function(){var e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var t=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;t<n;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,n){(0,s.fastInnerText)(n,e[t])}])}}},{key:"createCellCoords",value:function(e,t){return new d.default(e,t,this.wtSettings.getSetting("rtlMode"))}},{key:"createCellRange",value:function(e,t,n){return new h.default(e,t,n,this.wtSettings.getSetting("rtlMode"))}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,e||this.wtTable.isVisible()?this.wtTable.draw(e):this.drawInterrupted=!0,this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),o=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<i)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=n-o){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>=n-o&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}},{key:"scrollViewport",value:function(e,t,n,r,o){return!(e.col<0||e.row<0)&&this.wtScroll.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return!(e<0)&&this.wtScroll.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}},{key:"destroy",value:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{key:"createScrollDao",value:function(){var e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}},{key:"getTableDao",value:function(){var e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selections(){return e.selections},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count}}}}]),e}();t.default=f},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedColumn:function(){var e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn:function(){var e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getLastRenderedColumn:function(){var e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn:function(){var e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getRenderedColumnsCount:function(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount:function(){return this.dataAccessObject.countColumnsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===o},t.holder=void 0,t.isRootInstance=function(e){return r.has(e)},t.registerAsRootInstance=function(e){r.set(e,!0)},t.rootInstanceSymbol=void 0,n(4),n(1),n(5),n(7),n(6),n(53),n(152);var r=new WeakMap;t.holder=r;var o=Symbol("rootInstance");t.rootInstanceSymbol=o},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.PhysicalIndexToValueMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(18)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(181),d=n(220);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"insert",value:function(e,t){this.indexedValues=(0,d.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,d.getListWithRemovedItems)(this.indexedValues,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.PhysicalIndexToValueMap=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getListWithInsertedItems=function(e,t,n,r){var a=n.length?n[0]:void 0;return[].concat((0,o.default)(e.slice(0,a)),(0,o.default)(n.map((function(e,t){return(0,i.isFunction)(r)?r(e,t):r}))),(0,o.default)(void 0===a?[]:e.slice(a)))},t.getListWithRemovedItems=function(e,t){return(0,a.arrayFilter)(e,(function(e,n){return!1===t.includes(n)}))},n(19),n(33),n(50),n(28),n(35);var o=r(n(29)),i=n(51),a=n(13)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.MapCollection=void 0,t.getRegisteredMapsCounter=function(){return u},n(4),n(36),n(1),n(5),n(6),n(20),n(40);var o=r(n(2)),i=r(n(3)),a=n(24),s=n(12),l=r(n(75)),u=0,c=function(){function e(){(0,o.default)(this,e),this.collection=new Map}return(0,i.default)(e,[{key:"register",value:function(e,t){var n=this;!1===this.collection.has(e)&&(this.collection.set(e,t),t.addLocalHook("change",(function(){return n.runLocalHooks("change",t)})),u+=1)}},{key:"unregister",value:function(e){var t=this.collection.get(e);(0,a.isDefined)(t)&&(t.destroy(),this.collection.delete(e),this.runLocalHooks("change",t),u-=1)}},{key:"unregisterAll",value:function(){var e=this;this.collection.forEach((function(t,n){return e.unregister(n)})),this.collection.clear()}},{key:"get",value:function(e){return(0,a.isUndefined)(e)?Array.from(this.collection.values()):this.collection.get(e)}},{key:"getLength",value:function(){return this.collection.size}},{key:"removeFromEvery",value:function(e){this.collection.forEach((function(t){t.remove(e)}))}},{key:"insertToEvery",value:function(e,t){this.collection.forEach((function(n){n.insert(e,t)}))}},{key:"initEvery",value:function(e){this.collection.forEach((function(t){t.init(e)}))}}]),e}();t.MapCollection=c,(0,s.mixin)(c,l.default)},function(e,t,n){"use strict";n(1),n(20),n(37);var r=n(0);t.__esModule=!0;var o={Highlight:!0,Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},i=r(n(309));t.Highlight=i.default;var a=r(n(489));t.Selection=a.default;var s=n(300);t.handleMouseEvent=s.handleMouseEvent;var l=n(183);t.detectSelectionType=l.detectSelectionType,t.normalizeSelectionFactory=l.normalizeSelectionFactory;var u=n(87);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}))},function(e,t,n){n(302)("iterator")},function(e,t,n){var r=n(21),o=n(486);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.AutocompleteEditor=void 0;var r=n(516);t.EDITOR_TYPE=r.EDITOR_TYPE,t.AutocompleteEditor=r.AutocompleteEditor},function(e,t,n){"use strict";t.__esModule=!0,t.HandsontableEditor=t.EDITOR_TYPE=void 0;var r=n(517);t.EDITOR_TYPE=r.EDITOR_TYPE,t.HandsontableEditor=r.HandsontableEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DateEditor=void 0;var r=n(519);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DateEditor=r.DateEditor},function(e,t,n){"use strict";t.__esModule=!0,t.autocompleteValidator=t.VALIDATOR_TYPE=void 0;var r=n(539);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.autocompleteValidator=r.autocompleteValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(1),n(20),n(123);var o=r(n(22)),i=r(n(2)),a=r(n(3)),s=n(15),l=n(13),u=function(){function e(t){(0,i.default)(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return(0,a.default)(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={row:e};this.rows.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"addColumnHeadersRow",value:function(e){var t=this.hot.getColHeader(0);if(null!=t){var n={row:-1};this.rows.push(n),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var n={col:e};this.columns.push(n),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),n.table=this.table.table}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,l.arrayEach)(this.rows,(function(t){e(t.row,(0,s.outerHeight)(t.table)-1)}))}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,l.arrayEach)(this.columns,(function(t){var n=t.table.getBoundingClientRect().width;e(t.col,Math.ceil(n))}))}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&t.appendChild(this.createColElement(-1)),this.samples.forEach((function(n){(0,l.arrayEach)(n.strings,(function(n){t.appendChild(e.createColElement(n.col))}))})),t}},{key:"createRow",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment(),o=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,o),r.appendChild(o)),this.samples.forEach((function(o){(0,l.arrayEach)(o.strings,(function(o){var i=o.col,a=t.hot.getCellMeta(e,i);a.col=i,a.row=e;var s=t.hot.getCellRenderer(a),l=n.createElement("td");l.setAttribute("ghost-table",1),s(t.hot,l,e,i,t.hot.colToProp(i),o.value,a),r.appendChild(l)}))})),r}},{key:"appendColumnHeadersRow",value:function(){var e=this,t=this.hot.rootDocument,n=t.createDocumentFragment(),r=[];if(this.hot.hasRowHeaders()){var i=t.createElement("th");r.push([-1,i]),n.appendChild(i)}this.samples.forEach((function(e){(0,l.arrayEach)(e.strings,(function(e){var o=e.col,i=t.createElement("th");r.push([o,i]),n.appendChild(i)}))})),this.table.tHead.appendChild(n),(0,l.arrayEach)(r,(function(t){var n=(0,o.default)(t,2),r=n[0],i=n[1];e.hot.view.appendColHeader(r,i)}))}},{key:"createCol",value:function(e){var t=this,n=this.hot.rootDocument,r=n.createDocumentFragment();return this.samples.forEach((function(o){(0,l.arrayEach)(o.strings,(function(o){var i=o.row,a=t.hot.getCellMeta(i,e);a.col=e,a.row=i;var s=t.hot.getCellRenderer(a),l=n.createElement("td"),u=n.createElement("tr");l.setAttribute("ghost-table",1),s(t.hot,l,i,e,t.hot.colToProp(e),o.value,a),u.appendChild(l),r.appendChild(u)}))})),r}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=this.hot.rootDocument.createElement("col");return t.style.width="".concat(this.hot.view._wt.wtTable.getStretchedColumnWidth(e),"px"),t}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("table"),o=t.createElement("thead"),i=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&r.appendChild(a),this.isHorizontal()&&(l.appendChild(u),o.appendChild(l),r.style.tableLayout="auto",r.style.width="auto"),r.appendChild(o),this.isVertical()&&i.appendChild(l),r.appendChild(i),(0,s.addClass)(r,e),n.appendChild(r),{fragment:n,table:r,tHead:o,tBody:i,colGroup:a,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.hot.rootDocument,n=t.createDocumentFragment(),r=t.createElement("div"),o="htGhostTable htAutoSize ".concat(e.trim());return(0,s.addClass)(r,o),n.appendChild(r),{fragment:n,container:r}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}();t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.HEADER_SPAN_CLASS=t.DESC_SORT_STATE=t.ASC_SORT_STATE=void 0,t.areValidSortStates=function(e){if(e.some((function(e){return!1===function(e){if(!1===(0,r.isObject)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[i,a].includes(n)}(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length},t.getHeaderSpanElement=function(e){return e.querySelector(".".concat("colHeader"))},t.getNextSortOrder=function(e){if(e===a)return;if(e===i)return a;return i},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;if(Array.from(n).indexOf(t.parentNode)-n.length!=-1)return!1;return!0},t.wasHeaderClickedProperly=function(e,t,n){return-1===e&&t>=0&&!1===(0,o.isRightClick)(n)},n(60),n(61),n(28),n(1),n(50),n(4),n(45),n(5),n(6),n(23),n(40);var r=n(12),o=n(62),i="asc";t.ASC_SORT_STATE=i;var a="desc";t.DESC_SORT_STATE=a;t.HEADER_SPAN_CLASS="colHeader"},function(e,t,n){"use strict";t.__esModule=!0,t.KEY=void 0,t.default=function(){return{name:"---------"}};t.KEY="---------"},function(e,t,n){"use strict";n(53),n(30),n(16),n(20),n(66);var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(57),n(37),n(43),n(122),n(80),n(1),n(67),n(19);var o=r(n(25)),i=r(n(2)),a=r(n(3)),s=r(n(609)),l=n(93),u=n(81),c=r(n(262)),d=r(n(44)),h=n(13),f=n(78),v=n(15),g=n(62),p=n(51),y=n(24),m=n(12),C=r(n(75));function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var R=function(){function e(t,n){(0,i.default)(this,e),this.hot=t,this.options=n||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootDocument.documentElement},this.eventManager=new d.default(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.keyEvent=!1,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()}return(0,a.default)(e,[{key:"registerEvents",value:function(){for(var e=this,t=this.hot.rootWindow;t;)this.eventManager.addEventListener(t.document,"mousedown",(function(t){return e.onDocumentMouseDown(t)})),this.eventManager.addEventListener(t.document,"contextmenu",(function(t){return e.onDocumentContextMenu(t)})),t=(0,v.getParentWindow)(t)}},{key:"setMenuItems",value:function(e){this.menuItems=e}},{key:"getSelectedItem",value:function(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}},{key:"hasSelectedItem",value:function(){return Array.isArray(this.hotMenu.getSelectedLast())}},{key:"setOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t}},{key:"isSubMenu",value:function(){return null!==this.parentMenu}},{key:"open",value:function(){var e=this;this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";var t=(0,p.debounce)((function(t){return e.openSubMenu(t)}),300),n=this.options.minWidth||215,r=!1,o=(0,h.arrayFilter)(this.menuItems,(function(t){return t.key===l.NO_ITEMS&&(r=!0),(0,u.isItemHidden)(t,e.hot)}));if(o.length<1&&!r)o.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===o.length)return;o=(0,u.filterSeparators)(o,l.SEPARATOR);var i=!1,a={data:o,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:function(e){return(0,y.isDefined)(e)&&e<n?n:e},autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,maxCols:1,columns:[{data:"name",renderer:function(t,n,r,o,i,a){return e.menuItemRenderer(t,n,r,o,i,a)}}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",afterOnCellMouseOver:function(n,r){e.isAllSubMenusClosed()?t(r.row):e.openSubMenu(r.row)},rowHeights:function(e){return o[e].name===l.SEPARATOR?1:23},afterOnCellContextMenu:function(t){t.preventDefault(),(0,f.isWindowsOS)()&&i&&e.hasSelectedItem()&&e.close(!0)},beforeOnCellMouseUp:function(t){e.hasSelectedItem()&&(i=!e.isCommandPassive(e.getSelectedItem()),e.executeCommand(t))},afterOnCellMouseUp:function(t){(0,f.isWindowsOS)()&&(0,g.isRightClick)(t)||!i||!e.hasSelectedItem()||((0,f.isMobileBrowser)()||(0,f.isIpadOS)()?setTimeout((function(){return e.close(!0)}),325):e.close(!0))},afterUnlisten:function(){!e.hasSelectedItem()&&e.isOpened()&&e.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new c.default(this.container,a),this.hotMenu.addHook("afterInit",(function(){return e.onAfterInit()})),this.hotMenu.addHook("afterSelection",(function(){return e.onAfterSelection.apply(e,arguments)})),this.hotMenu.init(),this.hotMenu.listen();var s=this.hotMenu.getShortcutManager(),d=s.addContext("menu"),m=E(E({},{group:"menu"}),{},{runOnlyIf:function(t){return!1===(0,v.isInput)(t.target)||!1===e.container.contains(t.target)}});s.setActiveContextName("menu"),d.addShortcuts([{keys:[["Escape"]],callback:function(){e.keyEvent=!0,e.close(),e.keyEvent=!1}},{keys:[["ArrowDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectNextCell(t[0],t[1]):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["ArrowUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.selectPrevCell(t[0],t[1]):e.selectLastCell(),e.keyEvent=!1}},{keys:[["ArrowRight"]],callback:function(){var t=e.hotMenu.getSelectedLast();if(e.keyEvent=!0,t){var n=e.openSubMenu(t[0]);n&&n.selectFirstCell()}e.keyEvent=!1}},{keys:[["ArrowLeft"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t&&e.isSubMenu()&&(e.close(),e.parentMenu&&e.parentMenu.hotMenu.listen()),e.keyEvent=!1}},{keys:[["Enter"]],callback:function(t){var n=e.hotMenu.getSelectedLast();e.keyEvent=!0,e.hotMenu.getSourceDataAtRow(n[0]).submenu||(e.executeCommand(t),e.close(!0)),e.keyEvent=!1}},{keys:[["PageUp"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(-e.hotMenu.countVisibleRows(),0):e.selectFirstCell(),e.keyEvent=!1}},{keys:[["PageDown"]],callback:function(){var t=e.hotMenu.getSelectedLast();e.keyEvent=!0,t?e.hotMenu.selection.transformStart(e.hotMenu.countVisibleRows(),0):e.selectLastCell(),e.keyEvent=!1}}],m),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")}},{key:"close",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.parentMenu&&this.parentMenu.hotMenu.listen()))}},{key:"openSubMenu",value:function(t){if(!this.hotMenu)return!1;var n=this.hotMenu.getCell(t,0);if(this.closeAllSubMenus(),!n||!(0,u.hasSubMenu)(n))return!1;var r=this.hotMenu.getSourceDataAtRow(t),o=new e(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return o.setMenuItems(r.submenu.items),o.open(),o.setPosition(n.getBoundingClientRect()),this.hotSubMenus[r.key]=o,o}},{key:"closeSubMenu",value:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])}},{key:"closeAllSubMenus",value:function(){var e=this;(0,h.arrayEach)(this.hotMenu.getData(),(function(t,n){return e.closeSubMenu(n)}))}},{key:"isAllSubMenusClosed",value:function(){return 0===Object.keys(this.hotSubMenus).length}},{key:"destroy",value:function(){var e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}},{key:"isOpened",value:function(){return null!==this.hotMenu}},{key:"executeCommand",value:function(e){if(this.isOpened()&&this.hasSelectedItem()){var t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),!this.isCommandPassive(t)){var n=this.hot.getSelectedRange(),r=n?(0,u.normalizeSelection)(n):[];this.runLocalHooks("executeCommand",t.key,r,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,r,e)}}}},{key:"isCommandPassive",value:function(e){var t=e.isCommand,n=e.name,r=e.disabled,o=e.submenu,i=!0===r||"function"==typeof r&&!0===r.call(this.hot);return!1===t||n===l.SEPARATOR||!0===i||o}},{key:"setPosition",value:function(e){var t=new s.default(e,this.container.ownerDocument.defaultView);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),this.hot.isLtr()?this.setHorizontalPositionForLtr(t):this.setHorizontalPositionForRtl(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))}},{key:"setHorizontalPositionForRtl",value:function(e){e.fitsOnLeft(this.container)?this.setPositionOnLeftOfCursor(e):this.setPositionOnRightOfCursor(e)}},{key:"setHorizontalPositionForLtr",value:function(e){e.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(e):this.setPositionOnLeftOfCursor(e)}},{key:"setPositionAboveCursor",value:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top="".concat(t,"px")}},{key:"setPositionBelowCursor",value:function(e){var t=this.offset.below+e.top+1;this.isSubMenu()&&(t=e.top-1),this.container.style.top="".concat(t,"px")}},{key:"setPositionOnRightOfCursor",value:function(e){var t=e.left;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().right;t+=e.cellWidth+n-(e.left+e.cellWidth)}else t+=this.offset.right;this.container.style.left="".concat(t,"px")}},{key:"setPositionOnLeftOfCursor",value:function(e){var t=this.offset.left+e.left-this.container.offsetWidth;if(this.isSubMenu()){var n=this.parentMenu.container.getBoundingClientRect().left;t-=e.left-n}this.container.style.left="".concat(t,"px")}},{key:"selectFirstCell",value:function(){var e=this.hotMenu.getCell(0,0);(0,u.isSeparator)(e)||(0,u.isDisabled)(e)||(0,u.isSelectionDisabled)(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)}},{key:"selectLastCell",value:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);(0,u.isSeparator)(t)||(0,u.isDisabled)(t)||(0,u.isSelectionDisabled)(t)?this.selectPrevCell(e,0):(this.hotMenu.selectCell(e,0,void 0,void 0,!1),this.hotMenu.scrollViewportTo(e,0,!0,!1))}},{key:"selectNextCell",value:function(e,t){var n=e+1,r=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;r&&((0,u.isSeparator)(r)||(0,u.isDisabled)(r)||(0,u.isSelectionDisabled)(r)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"selectPrevCell",value:function(e,t){var n=e-1,r=n>=0?this.hotMenu.getCell(n,t):null;r&&((0,u.isSeparator)(r)||(0,u.isDisabled)(r)||(0,u.isSelectionDisabled)(r)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))}},{key:"menuItemRenderer",value:function(e,t,n,r,o,i){var a,s=this,u=e.getSourceDataAtRow(n),c=this.hot.rootDocument.createElement("div"),d=function(e){return e.disableSelection},h=i;"function"==typeof h&&(h=h.call(this.hot)),(0,v.empty)(t),(0,v.addClass)(c,"htItemWrapper"),t.appendChild(c),a=u,new RegExp(l.SEPARATOR,"i").test(a.name)?(0,v.addClass)(t,"htSeparator"):"function"==typeof u.renderer?((0,v.addClass)(t,"htCustomMenuRenderer"),t.appendChild(u.renderer(e,c,n,r,o,h))):(0,v.fastInnerHTML)(c,h),!function(e){return!0===e.disabled||"function"==typeof e.disabled&&!0===e.disabled.call(s.hot)}(u)?d(u)?((0,v.addClass)(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()}))):!function(e){return(0,m.hasOwnProperty)(e,"submenu")}(u)?((0,v.removeClass)(t,["htSubmenu","htDisabled"]),d(u)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,v.addClass)(t,"htSubmenu"),d(u)?this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})):this.eventManager.addEventListener(t,"mouseenter",(function(){return e.selectCell(n,r,void 0,void 0,!1,!1)}))):((0,v.addClass)(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",(function(){return e.deselectCell()})))}},{key:"createContainer",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this.options.container.ownerDocument,r=t;return r&&((0,p.isFunction)(r)&&(r=null===(r=r.call(this.hot))||(0,y.isUndefined)(r)?"":r.toString()),r=r.replace(/[^A-z0-9]/g,"_"),r="".concat(this.options.className,"Sub_").concat(r),e=n.querySelector(".".concat(this.options.className,".").concat(r))),e||(e=n.createElement("div"),(0,v.addClass)(e,"htMenu ".concat(this.options.className)),r&&(0,v.addClass)(e,r),this.options.container.appendChild(e)),e}},{key:"blockMainTableCallbacks",value:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)}},{key:"releaseMainTableCallbacks",value:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)}},{key:"onAfterInit",value:function(){var e=this.hotMenu.view._wt.wtTable,t=this.hotMenu.getSettings().data,n=e.hider.style,r=e.holder.style,o=parseInt(n.width,10),i=(0,h.arrayReduce)(t,(function(e,t){return e+(t.name===l.SEPARATOR?1:26)}),0);r.width="".concat(o+3,"px"),r.height="".concat(i+3,"px"),n.height=r.height}},{key:"onAfterSelection",value:function(e,t,n,r,o){!1===this.keyEvent&&(o.value=!0)}},{key:"onDocumentMouseDown",value:function(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,v.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,v.isChildOf)(e.target,".htMenu")||this.close(!0))}},{key:"onDocumentContextMenu",value:function(e){this.isOpened()&&(0,v.hasClass)(e.target,"htCore")&&(0,v.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}]),e}();(0,m.mixin)(R,C.default);var S=R;t.default=S},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.TYPE_TEXT=t.TYPE_NUMERIC=t.TYPE_DATE=t.TYPES=void 0,t.default=function(e){var t=[],n=e;L[n]||(n="text");return(0,a.arrayEach)(L[n],(function(e){var n;n=e===s.SEPARATOR?{name:s.SEPARATOR}:(0,i.clone)((0,l.getConditionDescriptor)(e)),t.push(n)})),t};var o=r(n(25)),i=n(12),a=n(13),s=n(93),l=n(39),u=n(645);t.CONDITION_NONE=u.CONDITION_NAME;var c=n(340);t.CONDITION_EMPTY=c.CONDITION_NAME;var d=n(646);t.CONDITION_NOT_EMPTY=d.CONDITION_NAME;var h=n(341);t.CONDITION_EQUAL=h.CONDITION_NAME;var f=n(647);t.CONDITION_NOT_EQUAL=f.CONDITION_NAME;var v=n(648);t.CONDITION_GREATER_THAN=v.CONDITION_NAME;var g=n(649);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var p=n(650);t.CONDITION_LESS_THAN=p.CONDITION_NAME;var y=n(651);t.CONDITION_LESS_THAN_OR_EQUAL=y.CONDITION_NAME;var m=n(342);t.CONDITION_BETWEEN=m.CONDITION_NAME;var C=n(652);t.CONDITION_NOT_BETWEEN=C.CONDITION_NAME;var w=n(653);t.CONDITION_BEGINS_WITH=w.CONDITION_NAME;var E=n(654);t.CONDITION_ENDS_WITH=E.CONDITION_NAME;var R=n(345);t.CONDITION_CONTAINS=R.CONDITION_NAME;var S=n(656);t.CONDITION_NOT_CONTAINS=S.CONDITION_NAME;var b=n(344);t.CONDITION_DATE_BEFORE=b.CONDITION_NAME;var T=n(343);t.CONDITION_DATE_AFTER=T.CONDITION_NAME;var O=n(657);t.CONDITION_TOMORROW=O.CONDITION_NAME;var _=n(658);t.CONDITION_TODAY=_.CONDITION_NAME;var I=n(659);t.CONDITION_YESTERDAY=I.CONDITION_NAME;var k=n(660);t.CONDITION_BY_VALUE=k.CONDITION_NAME;var M=n(661);t.CONDITION_TRUE=M.CONDITION_NAME;var N=n(662);t.CONDITION_FALSE=N.CONDITION_NAME;var P=n(234);t.OPERATION_AND=P.OPERATION_ID;var A=n(346);t.OPERATION_OR=A.OPERATION_ID;var x,D=n(347);t.OPERATION_OR_THEN_VARIABLE=D.OPERATION_ID;t.TYPE_NUMERIC="numeric";t.TYPE_TEXT="text";t.TYPE_DATE="date";var L=(x={},(0,o.default)(x,"numeric",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,v.CONDITION_NAME,g.CONDITION_NAME,p.CONDITION_NAME,y.CONDITION_NAME,m.CONDITION_NAME,C.CONDITION_NAME]),(0,o.default)(x,"text",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,w.CONDITION_NAME,E.CONDITION_NAME,s.SEPARATOR,R.CONDITION_NAME,S.CONDITION_NAME]),(0,o.default)(x,"date",[u.CONDITION_NAME,s.SEPARATOR,c.CONDITION_NAME,d.CONDITION_NAME,s.SEPARATOR,h.CONDITION_NAME,f.CONDITION_NAME,s.SEPARATOR,b.CONDITION_NAME,T.CONDITION_NAME,m.CONDITION_NAME,s.SEPARATOR,O.CONDITION_NAME,_.CONDITION_NAME,I.CONDITION_NAME]),x);t.TYPES=L},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(158);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="conjunction";var s=o.FILTERS_LABELS_CONJUNCTION;function l(e,t){return e.every((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("conjunction",s,l)},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(31)),s=r(n(18)),l=r(n(10)),u=r(n(11)),c=r(n(8));n(4),n(1),n(5),n(7),n(6);var d=n(15),h=n(12),f=r(n(159));function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var g=new WeakMap,p=function(e){(0,l.default)(n,e);var t=v(n);function n(e,r){var i;return(0,o.default)(this,n),i=t.call(this,e,(0,h.extend)(n.DEFAULTS,r)),g.set((0,a.default)(i),{}),i.registerHooks(),i}return(0,i.default)(n,[{key:"registerHooks",value:function(){var e=this;this.addLocalHook("click",(function(){return e.onClick()})),this.addLocalHook("keyup",(function(t){return e.onKeyup(t)}))}},{key:"build",value:function(){(0,s.default)((0,c.default)(n.prototype),"build",this).call(this);var e=g.get(this),t=this.hot.rootDocument.createElement("div");e.input=this._element.firstChild,(0,d.addClass)(this._element,"htUIInput"),(0,d.addClass)(t,"htUIInputIcon"),this._element.appendChild(t),this.update()}},{key:"update",value:function(){if(this.isBuilt()){var e=g.get(this).input;e.type=this.options.type,e.placeholder=this.translateIfPossible(this.options.placeholder),e.value=this.translateIfPossible(this.options.value)}}},{key:"focus",value:function(){this.isBuilt()&&g.get(this).input.focus()}},{key:"onClick",value:function(){}},{key:"onKeyup",value:function(e){this.options.value=e.target.value}}],[{key:"DEFAULTS",get:function(){return(0,h.clone)({placeholder:"",type:"text",tagName:"input"})}}]),n}(f.default);t.default=p},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.SETTING_KEYS=t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.Formulas=void 0,n(19),n(1),n(20),n(4),n(45),n(5),n(6),n(50),n(128),n(33),n(28),n(35),n(147),n(77),n(7);var o=r(n(29)),i=r(n(14)),a=r(n(22)),s=r(n(2)),l=r(n(3)),u=r(n(31)),c=r(n(18)),d=r(n(10)),h=r(n(11)),f=r(n(8)),v=r(n(25)),g=r(n(64)),p=r(n(63)),y=n(34),m=r(n(86)),C=n(69),w=n(32),E=n(24),R=n(676),S=n(677),b=n(350),T=n(111),O=n(68),_=r(n(52)),I=r(n(678));function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,h.default)(this,n)}}function M(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var N="formulas";t.PLUGIN_KEY=N;var P=["maxRows","maxColumns","language"];t.SETTING_KEYS=P;t.PLUGIN_PRIORITY=260,_.default.getSingleton().register("afterNamedExpressionAdded"),_.default.getSingleton().register("afterNamedExpressionRemoved"),_.default.getSingleton().register("afterSheetAdded"),_.default.getSingleton().register("afterSheetRemoved"),_.default.getSingleton().register("afterSheetRenamed"),_.default.getSingleton().register("afterFormulasValuesUpdate");var A=function(e){return"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e},x=new WeakMap,D=new WeakMap,L=new WeakMap,H=function(e){(0,d.default)(n,e);var t=k(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),M((0,u.default)(e),x,{writable:!0,value:!1}),M((0,u.default)(e),D,{writable:!0,value:!1}),M((0,u.default)(e),L,{writable:!0,value:[["valuesUpdated",function(){var t;return(t=e).onEngineValuesUpdated.apply(t,arguments)}],["namedExpressionAdded",function(){var t;return(t=e).onEngineNamedExpressionsAdded.apply(t,arguments)}],["namedExpressionRemoved",function(){var t;return(t=e).onEngineNamedExpressionsRemoved.apply(t,arguments)}],["sheetAdded",function(){var t;return(t=e).onEngineSheetAdded.apply(t,arguments)}],["sheetRenamed",function(){var t;return(t=e).onEngineSheetRenamed.apply(t,arguments)}],["sheetRemoved",function(){var t;return(t=e).onEngineSheetRemoved.apply(t,arguments)}]]}),(0,v.default)((0,u.default)(e),"staticRegister",(0,m.default)("formulas")),(0,v.default)((0,u.default)(e),"engine",null),(0,v.default)((0,u.default)(e),"sheetName",null),(0,v.default)((0,u.default)(e),"indexSyncer",null),(0,v.default)((0,u.default)(e),"rowAxisSyncer",null),(0,v.default)((0,u.default)(e),"columnAxisSyncer",null),e}return(0,l.default)(n,[{key:"sheetId",get:function(){return null===this.sheetName?null:this.engine.getSheetId(this.sheetName)}},{key:"isEnabled",value:function(){return!!this.hot.getSettings()[N]}},{key:"enablePlugin",value:function(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,R.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){var r=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==r&&(this.sheetName=r)}this.addHook("beforeLoadData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterLoadData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("beforeUpdateData",(function(){return t.onBeforeLoadData.apply(t,arguments)})),this.addHook("afterUpdateData",(function(){return t.onAfterLoadData.apply(t,arguments)})),this.addHook("modifyData",(function(){return t.onModifyData.apply(t,arguments)})),this.addHook("modifySourceData",(function(){return t.onModifySourceData.apply(t,arguments)})),this.addHook("beforeValidate",(function(){return t.onBeforeValidate.apply(t,arguments)})),this.addHook("afterSetSourceDataAtCell",(function(){return t.onAfterSetSourceDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtCell",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("afterSetDataAtRowProp",(function(){return t.onAfterSetDataAtCell.apply(t,arguments)})),this.addHook("beforeCreateRow",(function(){return t.onBeforeCreateRow.apply(t,arguments)})),this.addHook("beforeCreateCol",(function(){return t.onBeforeCreateCol.apply(t,arguments)})),this.addHook("afterCreateRow",(function(){return t.onAfterCreateRow.apply(t,arguments)})),this.addHook("afterCreateCol",(function(){return t.onAfterCreateCol.apply(t,arguments)})),this.addHook("beforeRemoveRow",(function(){return t.onBeforeRemoveRow.apply(t,arguments)})),this.addHook("beforeRemoveCol",(function(){return t.onBeforeRemoveCol.apply(t,arguments)})),this.addHook("afterRemoveRow",(function(){return t.onAfterRemoveRow.apply(t,arguments)})),this.addHook("afterRemoveCol",(function(){return t.onAfterRemoveCol.apply(t,arguments)})),this.indexSyncer=new I.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,(function(e){t.hot.addHookOnce("init",(function(){e()}))})),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(function(e,n,r,o){t.rowAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("beforeColumnMove",(function(e,n,r,o){t.columnAxisSyncer.storeMovesInformation(e,n,o)})),this.hot.addHook("afterRowMove",(function(e,n,r,o,i){t.rowAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("afterColumnMove",(function(e,n,r,o,i){t.columnAxisSyncer.calculateAndSyncMoves(o,i)})),this.hot.addHook("beforeColumnFreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart,n)})),this.hot.addHook("afterColumnFreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.hot.addHook("beforeColumnUnfreeze",(function(e,n){t.columnAxisSyncer.storeMovesInformation([e],t.hot.getSettings().fixedColumnsStart-1,n)})),this.hot.addHook("afterColumnUnfreeze",(function(e,n){t.columnAxisSyncer.calculateAndSyncMoves(n,n)})),this.addHook("afterCellMetaReset",(function(){return t.onAfterCellMetaReset.apply(t,arguments)})),this.addHook("beforeUndo",(function(){t.indexSyncer.setPerformUndo(!0),t.engine.undo()})),this.addHook("beforeRedo",(function(){t.indexSyncer.setPerformRedo(!0),t.engine.redo()})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformUndo(!1)})),this.addHook("afterUndo",(function(){t.indexSyncer.setPerformRedo(!1)})),this.addHook("afterDetachChild",(function(){return t.onAfterDetachChild.apply(t,arguments)})),this.addHook("beforeAutofill",(function(){return t.onBeforeAutofill.apply(t,arguments)})),(0,p.default)(this,L).forEach((function(e){var n=(0,a.default)(e,2),r=n[0],o=n[1];return t.engine.on(r,o)})),(0,c.default)((0,f.default)(n.prototype),"enablePlugin",this).call(this)}else(0,C.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}},{key:"disablePlugin",value:function(){var e=this;(0,p.default)(this,L).forEach((function(t){var n=(0,a.default)(t,2),r=n[0],o=n[1];return e.engine.off(r,o)})),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"disablePlugin",this).call(this)}},{key:"updatePlugin",value:function(e){var t=(0,b.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,b.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);var r=this.hot.getSettings()[N];if((0,E.isDefined)(r)&&(0,E.isDefined)(r.sheetName)&&r.sheetName!==this.sheetName&&this.switchSheet(r.sheetName),!e.data&&null===this.sheetName){var o=this.hot.getSettings()[N].sheetName;o&&this.engine.doesSheetExist(o)?this.switchSheet(this.sheetName):this.sheetName=this.addSheet(null!=o?o:void 0,this.hot.getSourceDataArray())}(0,c.default)((0,f.default)(n.prototype),"updatePlugin",this).call(this,e)}},{key:"destroy",value:function(){var e=this;(0,p.default)(this,L).forEach((function(t){var n,r=(0,a.default)(t,2),o=r[0],i=r[1];return null===(n=e.engine)||void 0===n?void 0:n.off(o,i)})),(0,g.default)(this,L,null),(0,R.unregisterEngine)(this.engine,this.hot),this.engine=null,(0,c.default)((0,f.default)(n.prototype),"destroy",this).call(this)}},{key:"addSheet",value:function(e,t){if((0,E.isDefined)(t)&&!(0,T.isArrayOfArrays)(t))return(0,C.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,C.warn)("Sheet with the provided name already exists."),!1;try{var n=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(n),t),n}catch(e){return(0,C.warn)(e.message),!1}}},{key:"switchSheet",value:function(e){if(this.engine.doesSheetExist(e)){this.sheetName=e;var t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,"".concat((0,O.toUpperCaseFirst)(N),".switchSheet"))}else(0,C.error)("The sheet named `".concat(e,"` does not exist, switch aborted."))}},{key:"getCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId,r=this.hot.toPhysicalRow(e),o=this.hot.toPhysicalColumn(t);return null!==r&&null!==o?this.engine.getCellType({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}},{key:"isFormulaCellType",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:n,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}},{key:"renderDependentSheets",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new Set;e.forEach((function(e){var t,n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))})),(0,R.getRegisteredHotInstances)(this.engine).forEach((function(e,o){var i;(n||o!==t.sheetId)&&r.has(o)&&(e.render(),null===(i=e.view)||void 0===i||i.adjustElementsSize())}))}},{key:"validateDependentCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=function(e){var t,n=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{},r=n.row,o=n.col,i=n.sheet;return(0,E.isDefined)(i)?"".concat(i,":").concat(r,"x").concat(o):""},o=new Set(n.map((function(e){return r(e)})));e.forEach((function(e){var n,i,a=null!==(n=e.address)&&void 0!==n?n:{},s=a.row,l=a.col;if(!(!1===(0,E.isDefined)(s)||!1===(0,E.isDefined)(l)||s>=t.hot.countRows()||l>=t.hot.countCols())){var u=null==e||null===(i=e.address)||void 0===i?void 0:i.sheet,c=r(e);if(void 0!==u&&!o.has(c)){var d=(0,R.getRegisteredHotInstances)(t.engine).get(u);if(!d)return;d.validateCell(d.getDataAtCell(s,l),d.getCellMeta(s,l),(function(){}))}}}))}},{key:"syncChangeWithEngine",value:function(e,t,n){var r={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(this.engine.isItPossibleToSetCellContents(r)){var o=this.hot.getCellMeta(e,t);return(0,S.isDate)(n,o.type)&&((0,S.isDateValid)(n,o.dateFormat)?n=(0,S.getDateInHfFormat)(n,o.dateFormat):!1===(0,S.isFormula)(n)&&(n="'".concat(n))),this.engine.setCellContents(r,n)}(0,C.warn)("Not possible to set cell data at ".concat(JSON.stringify(r)))}},{key:"onBeforeValidate",value:function(e,t,n){var r=this.hot.propToCol(n);if(this.isFormulaCellType(t,r)){var o={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId},a=this.hot.getCellMeta(t,r),s=this.engine.getCellValue(o);return"date"===a.type&&(0,w.isNumeric)(s)&&(s=(0,S.getDateFromExcelDate)(s,a.dateFormat)),"object"===(0,i.default)(s)&&null!==s?s.value:s}return e}},{key:"onBeforeAutofill",value:function(e,t,n){var r=t.getTopStartCorner(),o=r.row,i=r.col,a=t.getBottomEndCorner(),s=a.row,l=a.col,u=n.getTopStartCorner(),c=u.row,d=u.col,h=n.getBottomEndCorner(),f=h.row,v=h.col,g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId}},p={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(c),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(d),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(f),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(v),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(p))return!1;for(var y=this.engine.getFillRangeData(g,p),m=g.start,C=m.row,w=m.col,E=g.end,R=E.row-C+1,b=E.col-w+1,T=0;T<y.length;T+=1)for(var O=0;O<y[T].length;O+=1){var _=y[T][O],I=T%R,k=O%b,M=this.hot.getCellMeta(I,k);(0,S.isDate)(_,M.type)&&(_.startsWith("'")?y[T][O]=_.slice(1):!1===this.isFormulaCellType(I,k,this.sheetId)&&(y[T][O]=(0,S.getDateInHotFormat)(_,M.dateFormat)))}return y}},{key:"onBeforeLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";n.includes((0,O.toUpperCaseFirst)(N))||(0,g.default)(this,D,(0,E.isUndefined)(this.hot.getSettings().data))}},{key:"onAfterCellMetaReset",value:function(){var e=this,t=this.hot.getSourceDataArray(),n=!1;t.forEach((function(r,o){r.forEach((function(r,i){var a=e.hot.getCellMeta(o,i),s=a.dateFormat;(0,S.isDate)(r,a.type)&&(n=!0,(0,S.isDateValid)(r,s)?t[o][i]=(0,S.getDateInHfFormat)(r,s):!1===e.isFormulaCellType(o,i)&&(t[o][i]="'".concat(r)))}))})),!0===n&&((0,g.default)(this,x,!0),this.engine.setSheetContent(this.sheetId,t),(0,g.default)(this,x,!1))}},{key:"onAfterLoadData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!n.includes((0,O.toUpperCaseFirst)(N)))if(this.sheetName=(0,R.setupSheet)(this.engine,this.hot.getSettings()[N].sheetName),(0,p.default)(this,D))this.switchSheet(this.sheetName);else{var r=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,r)){(0,g.default)(this,x,!0);var o=this.engine.setSheetContent(this.sheetId,r);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(o),(0,g.default)(this,x,!1)}}}},{key:"onModifyData",value:function(e,t,n,r){if("get"===r&&!(0,p.default)(this,x)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e);if(null!==o&&null!==t){if(!this.isFormulaCellType(o,t))if("ARRAY"!==this.getCellType(o,t))return void((0,S.isEscapedFormulaExpression)(n.value)&&(n.value=(0,S.unescapeFormulaExpression)(n.value)));var a={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId},s=this.engine.getCellValue(a),l=this.hot.getCellMeta(o,t);"date"===l.type&&(0,w.isNumeric)(s)&&(s=(0,S.getDateFromExcelDate)(s,l.dateFormat));var u="object"===(0,i.default)(s)&&null!==s?s.value:s;n.value=u}}}},{key:"onModifySourceData",value:function(e,t,n,r){if("get"===r&&!(0,p.default)(this,x)&&null!==this.sheetName&&this.engine.doesSheetExist(this.sheetName)){var o=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null!==o&&null!==i){if(!this.isFormulaCellType(o,i))if("ARRAY"!==this.getCellType(o,i))return;var a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0!==a.width||0!==a.height){var s={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(o),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};n.value=this.engine.getCellSerialized(s)}}}}},{key:"onAfterSetDataAtCell",value:function(e,t){var n=this;if(!A(t)){var r=[],o=[],i=this.engine.batch((function(){e.forEach((function(e){var t=(0,a.default)(e,4),i=t[0],s=t[1],l=t[3],u=n.hot.propToCol(s),c=n.hot.toPhysicalRow(i),d=n.hot.toPhysicalColumn(u),h={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:n.sheetId};null!==c&&null!==d?n.syncChangeWithEngine(i,u,l):r.push([i,u,l]),o.push({address:h})}))}));r.length&&this.hot.addHookOnce("afterChange",(function(){var e=n.engine.batch((function(){r.forEach((function(e){var t=(0,a.default)(e,3),r=t[0],o=t[1],i=t[2];n.syncChangeWithEngine(r,o,i)}))}));n.renderDependentSheets(e,!0)})),this.renderDependentSheets(i),this.validateDependentCells(i,o)}}},{key:"onAfterSetSourceDataAtCell",value:function(e,t){var n=this;if(!A(t)){var r=[],i=[];e.forEach((function(e){var t=(0,a.default)(e,4),s=t[0],l=t[1],u=t[3],c=n.hot.propToCol(l);if((0,w.isNumeric)(c)){var d={row:n.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:n.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:n.sheetId};n.engine.isItPossibleToSetCellContents(d)?(i.push({address:d}),r.push.apply(r,(0,o.default)(n.engine.setCellContents(d,u)))):(0,C.warn)("Not possible to set source cell data at ".concat(JSON.stringify(d)))}})),this.renderDependentSheets(r),this.validateDependentCells(r,i)}}},{key:"onBeforeCreateRow",value:function(e,t){var n=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[n,t]))return!1}},{key:"onBeforeCreateCol",value:function(e,t){var n=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(n=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[n,t]))return!1}},{key:"onBeforeRemoveRow",value:function(e,t,n){var r=this;return!1!==this.rowAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveRows(r.sheetId,[e,1])}))&&void 0}},{key:"onBeforeRemoveCol",value:function(e,t,n){var r=this;return!1!==this.columnAxisSyncer.setRemovedHfIndexes(n).every((function(e){return r.engine.isItPossibleToRemoveColumns(r.sheetId,[e,1])}))&&void 0}},{key:"onAfterCreateRow",value:function(e,t,n){if(!A(n)){var r=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterCreateCol",value:function(e,t,n){if(!A(n)){var r=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(r)}}},{key:"onAfterRemoveRow",value:function(e,t,n,r){var o=this;if(!A(r)){var i=this.rowAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeRows(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterRemoveCol",value:function(e,t,n,r){var o=this;if(!A(r)){var i=this.columnAxisSyncer.getRemovedHfIndexes().sort().reverse(),a=this.engine.batch((function(){i.forEach((function(e){o.engine.removeColumns(o.sheetId,[e,1])}))}));this.renderDependentSheets(a)}}},{key:"onAfterDetachChild",value:function(e,t,n){var r,o=this;(0,g.default)(this,x,!0);var i=this.hot.getSourceDataArray(n,0,n+((null===(r=t.__children)||void 0===r?void 0:r.length)||0),this.hot.countSourceCols());(0,g.default)(this,x,!1),i.forEach((function(e,t){e.forEach((function(e,r){o.engine.setCellContents({col:r,row:n+t,sheet:o.sheetId},[[e]])}))}))}},{key:"onEngineValuesUpdated",value:function(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}},{key:"onEngineNamedExpressionsAdded",value:function(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}},{key:"onEngineNamedExpressionsRemoved",value:function(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}},{key:"onEngineSheetAdded",value:function(e){this.hot.runHooks("afterSheetAdded",e)}},{key:"onEngineSheetRenamed",value:function(e,t){this.hot.runHooks("afterSheetRenamed",e,t)}},{key:"onEngineSheetRemoved",value:function(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}}],[{key:"PLUGIN_KEY",get:function(){return N}},{key:"PLUGIN_PRIORITY",get:function(){return 260}},{key:"SETTING_KEYS",get:function(){return[N].concat(P)}}]),n}(y.BasePlugin);t.Formulas=H},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o,i,a,s,l=r(n(58)),u=r(n(2)),c=r(n(3)),d=n(59),h=function(){function e(t,n,r,o,i,a){(0,u.default)(this,e),this.row=t,this.col=n,this.rowspan=r,this.colspan=o,this.removed=!1,this.cellCoordsFactory=i,this.cellRangeFactory=a}return(0,c.default)(e,[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",a=Math.min(t,r),s=Math.max(t,r),l=this[i],u=this[i]+this[o]-1;if(l>=t&&(this[i]+=n),n>0)t<=u&&t>l&&(this[o]+=n);else if(n<0){if(a<=l&&s>=u)return this.removed=!0,!1;if(l>=a&&l<=s){var c=s-l+1,d=Math.abs(n)-c;this[i]-=d+n,this[o]-=c}else if(l<=a&&u>=s)this[o]+=n;else if(l<=a&&u>=a&&u<s){var h=u-a+1;this[o]-=h}}return!0}},{key:"isFarther",value:function(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}],[{key:"NEGATIVE_VALUES_WARNING",value:function(e){return(0,d.toSingleLine)(o||(o=(0,l.default)(["The merged cell declared with {row: ",", col: ",", \n rowspan: ",", colspan: ","} contains negative values, which is \n not supported. It will not be added to the collection."],["The merged cell declared with {row: ",", col: ",",\\x20\n rowspan: ",", colspan: ","} contains negative values, which is\\x20\n not supported. It will not be added to the collection."])),e.row,e.col,e.rowspan,e.colspan)}},{key:"IS_OUT_OF_BOUNDS_WARNING",value:function(e){return(0,d.toSingleLine)(i||(i=(0,l.default)(["The merged cell declared at [",", ","] is positioned \n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."],["The merged cell declared at [",", ","] is positioned\\x20\n (or positioned partially) outside of the table range. It was not added to the table, please fix your setup."])),e.row,e.col)}},{key:"IS_SINGLE_CELL",value:function(e){return(0,d.toSingleLine)(a||(a=(0,l.default)(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has both "rowspan"\\x20\n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.'])),e.row,e.col)}},{key:"ZERO_SPAN_WARNING",value:function(e){return(0,d.toSingleLine)(s||(s=(0,l.default)(["The merged cell declared at [",", ",'] has "rowspan" \n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'],["The merged cell declared at [",", ",'] has "rowspan"\\x20\n or "colspan" declared as "0", which is not supported. It cannot be added to the collection.'])),e.row,e.col)}},{key:"containsNegativeValues",value:function(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}},{key:"isSingleCell",value:function(e){return 1===e.colspan&&1===e.rowspan}},{key:"containsZeroSpan",value:function(e){return 0===e.colspan||0===e.rowspan}},{key:"isOutOfBounds",value:function(e,t,n){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=(0,o.default)((function e(t,n){(0,i.default)(this,e),this.hot=n,this.plugin=t}));t.default=a},function(e,t,n){var r=n(115);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){var n="object"==typeof document&&document.all,r=void 0===n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:r}},function(e,t,n){var r=n(48),o=n(242),i=n(73),a=n(54),s=n(76),l=n(135);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),u=o.length,c=0;u>c;)i.f(e,n=o[c++],r[n]);return e}},function(e,t,n){var r=n(48),o=n(26);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){var r=n(48),o=n(26),i=n(161);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(56),o=n(55),i=n(134),a=n(101),s=n(361),l=n(41),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){var r=n(27),o=n(47),i=n(76),a=n(189).indexOf,s=n(137),l=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,c=[];for(n in r)!o(s,n)&&o(r,n)&&l(c,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},function(e,t,n){var r=n(88);e.exports=r("document","documentElement")},function(e,t,n){var r=n(38),o=n(42),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},function(e,t,n){var r=n(27),o=n(26),i=n(42),a=n(47),s=n(48),l=n(140).CONFIGURABLE,u=n(249),c=n(89),d=c.enforce,h=c.get,f=String,v=Object.defineProperty,g=r("".slice),p=r("".replace),y=r([].join),m=s&&!o((function(){return 8!==v((function(){}),"length",{value:8}).length})),C=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+p(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?v(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&a(n,"arity")&&e.length!==n.arity&&v(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&v(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=y(C,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&h(this).source||u(this)}),"toString")},function(e,t,n){var r=n(27),o=n(42),i=n(187),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},function(e,t,n){var r=n(47),o=n(251),i=n(97),a=n(73);e.exports=function(e,t,n){for(var s=o(t),l=a.f,u=i.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},function(e,t,n){var r=n(88),o=n(27),i=n(117),a=n(165),s=n(54),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},function(e,t,n){"use strict";var r,o,i,a=n(26),s=n(42),l=n(55),u=n(100),c=n(167),d=n(83),h=n(41),f=n(94),v=h("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):g=!0),!l(r)||a((function(){var e={};return r[v].call(e)!==e}))?r={}:f&&(r=u(r)),s(r[v])||d(r,v,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},function(e,t,n){var r=n(26);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(364),o=n(54),i=n(365);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},function(e,t,n){var r=n(41),o=n(138),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(56),o=n(102),i=n(54),a=n(116),s=n(200),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw l(a(e)+" is not iterable")}},function(e,t,n){var r=n(56),o=n(54),i=n(101);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},function(e,t,n){var r=n(41)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(27),o=n(196),i=n(141).getWeakData,a=n(201),s=n(54),l=n(82),u=n(55),c=n(199),d=n(105),h=n(47),f=n(89),v=f.set,g=f.getterFor,p=d.find,y=d.findIndex,m=r([].splice),C=0,w=function(e){return e.frozen||(e.frozen=new E)},E=function(){this.entries=[]},R=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};E.prototype={get:function(e){var t=R(this,e);if(t)return t[1]},has:function(e){return!!R(this,e)},set:function(e,t){var n=R(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=y(this.entries,(function(t){return t[0]===e}));return~t&&m(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var d=e((function(e,o){a(e,f),v(e,{type:t,id:C++,frozen:void 0}),l(o)||c(o,e[r],{that:e,AS_ENTRIES:n})})),f=d.prototype,p=g(t),y=function(e,t,n){var r=p(e),o=i(s(t),!0);return!0===o?w(r).set(t,n):o[r.id]=n,e};return o(f,{delete:function(e){var t=p(this);if(!u(e))return!1;var n=i(e);return!0===n?w(t).delete(e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!u(e))return!1;var n=i(e);return!0===n?w(t).has(e):n&&h(n,t.id)}}),o(f,n?{get:function(e){var t=p(this);if(u(e)){var n=i(e);return!0===n?w(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return y(this,e,t)}}:{add:function(e){return y(this,e,!0)}}),d}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(161)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=function(e,t){var n,r,L,H,B,F=this,V=arguments.length>2&&void 0!==arguments[2]&&arguments[2],U=!1,W=this,j=new h.default(W),Y=!0;(0,O.hasValidParameter)(V)&&(0,O.registerAsRootInstance)(this);this.rootElement=e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;var G=null!==(n=null==t?void 0:t.layoutDirection)&&void 0!==n?n:"inherit",z=["rtl","ltr"].includes(G)?G:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",z),this.isRtl=function(){return"rtl"===z},this.isLtr=function(){return!W.isRtl()},this.getDirectionFactor=function(){return W.isLtr()?1:-1},t.language=(0,k.getValidLanguageCode)(t.language);var K=new P.MetaManager(W,t,[P.DynamicCellMetaMod,P.ExtendMetaPropertiesMod]),X=K.getTableMeta(),q=K.getGlobalMeta(),Q=(0,A.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),(0,O.isRootInstance)(this)&&(0,u._injectProductInfo)(t.licenseKey,e);this.guid="ht_".concat((0,w.randomString)()),this.columnIndexMapper=new T.IndexMapper,this.rowIndexMapper=new T.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",(function(e){W.runHooks("afterColumnSequenceChange",e)})),this.rowIndexMapper.addLocalHook("indexesSequenceChange",(function(e){W.runHooks("afterRowSequenceChange",e)})),L=new S.default(W),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);var $=function(e){var t=e.row,n=e.col;return W._createCellCoords(t>=0?W.rowIndexMapper.getRenderableFromVisualIndex(t):t,n>=0?W.columnIndexMapper.getRenderableFromVisualIndex(n):n)},J=function(e){var t=e.row,n=e.col;return W._createCellCoords(t>=0?W.rowIndexMapper.getVisualFromRenderableIndex(t):t,n>=0?W.columnIndexMapper.getVisualFromRenderableIndex(n):n)},Z=new N.Selection(X,{rowIndexMapper:function(){return W.rowIndexMapper},columnIndexMapper:function(){return W.columnIndexMapper},countCols:function(){return W.countCols()},countRows:function(){return W.countRows()},propToCol:function(e){return r.propToCol(e)},isEditorOpened:function(){return!!W.getActiveEditor()&&W.getActiveEditor().isOpened()},countColsTranslated:function(){return F.view.countRenderableColumns()},countRowsTranslated:function(){return F.view.countRenderableRows()},getShortcutManager:function(){return W.getShortcutManager()},createCellCoords:function(e,t){return W._createCellCoords(e,t)},createCellRange:function(e,t,n){return W._createCellRange(e,t,n)},visualToRenderableCoords:$,renderableToVisualCoords:J,isDisabledCellSelection:function(e,t){return W.getCellMeta(e,t).disableVisualSelection}});this.selection=Z;var ee=function(e){e.hiddenIndexesChanged&&F.selection.refresh()};function te(e){var t=(0,M.normalizeLanguageCode)(e);(0,k.hasLanguageDictionary)(t)?(W.runHooks("beforeLanguageChange",t),q.language=t,W.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}function ne(e,t){var n="className"===e?W.rootElement:W.table;if(Y)(0,s.addClass)(n,t);else{var r=[],o=[];q[e]&&(r=Array.isArray(q[e])?q[e]:(0,v.stringToArray)(q[e])),t&&(o=Array.isArray(t)?t:(0,v.stringToArray)(t));var i=(0,v.getDifferenceOfArrays)(r,o),a=(0,v.getDifferenceOfArrays)(o,r);i.length&&(0,s.removeClass)(n,i),a.length&&(0,s.addClass)(n,a)}q[e]=t}function re(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(){},checkIfQueueIsEmpty:function(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function oe(e){var t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ie(e,t,n){if(e.length){var o=W.getActiveEditor(),a=new re,l=!0;a.onQueueEmpty=function(e){o&&l&&o.cancelChanges(),n(e)};for(var u=e.length-1;u>=0;u--){var c=(0,i.default)(e[u],4),d=c[0],h=c[1],f=c[3],v=r.propToCol(h),g=W.getCellMeta(d,v);"numeric"===g.type&&"string"==typeof f&&(0,E.isNumericLike)(f)&&(e[u][3]=oe(f)),W.getCellValidator(g)&&(a.addValidatorToQueue(),W.validateCell(e[u][3],g,function(t,n){return function(r){if("boolean"!=typeof r)throw new Error("Validation error: result is not boolean");if(!1===r&&!1===n.allowInvalid){l=!1,e.splice(t,1),n.valid=!0;var o=W.getCell(n.visualRow,n.visualCol);null!==o&&(0,s.removeClass)(o,X.invalidCellClassName)}a.removeValidatorFormQueue()}}(u,g),t))}a.checkIfQueueIsEmpty()}}function ae(e,t){var n=e.length-1;if(!(n<0)){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!==e[n][2]&&void 0!==e[n][2]||null!==e[n][3]&&void 0!==e[n][3]){if(X.allowInsertRow)for(;e[n][0]>W.countRows()-1;){if(0===r.createRow(void 0,void 0,{source:t}).delta){o=!0;break}}if("array"===W.dataType&&(!X.columns||0===X.columns.length)&&X.allowInsertColumn)for(;r.propToCol(e[n][1])>W.countCols()-1;){if(0===r.createCol(void 0,void 0,{source:t}).delta){o=!0;break}}o||r.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1)}W.forceFullRender=!0,H.adjustRowsAndCols(),W.runHooks("beforeChangeRender",e,t),B.lockEditor(),W._refreshBorders(null),B.unlockEditor(),W.view.adjustElementsSize(),W.runHooks("afterChange",e,t||"edit");var i=W.getActiveEditor();i&&(0,u.isDefined)(i.refreshValue)&&i.refreshValue()}}function se(e,t,n){return Array.isArray(e)?e:[[e,t,n]]}function le(e,t){var n=W.getActiveEditor(),r=W.runHooks("beforeChange",e,t||"edit"),o=e.filter((function(e){return null!==e}));return!1===r||0===o.length?(n&&n.cancelChanges(),[]):o}this.columnIndexMapper.addLocalHook("cacheUpdated",ee),this.rowIndexMapper.addLocalHook("cacheUpdated",ee),this.selection.addLocalHook("beforeSetRangeStart",(function(e){F.runHooks("beforeSetRangeStart",e)})),this.selection.addLocalHook("beforeSetRangeStartOnly",(function(e){F.runHooks("beforeSetRangeStartOnly",e)})),this.selection.addLocalHook("beforeSetRangeEnd",(function(e){F.runHooks("beforeSetRangeEnd",e),e.row<0&&(e.row=F.view._wt.wtTable.getFirstVisibleRow()),e.col<0&&(e.col=F.view._wt.wtTable.getFirstVisibleColumn())})),this.selection.addLocalHook("afterSetRangeEnd",(function(e){var t=(0,f.createObjectPropListener)(!1),n=F.selection.getSelectedRange(),r=n.current(),o=r.from,i=r.to,a=n.size()-1;F.runHooks("afterSelection",o.row,o.col,i.row,i.col,t,a),F.runHooks("afterSelectionByProp",o.row,W.colToProp(o.col),i.row,W.colToProp(i.col),t,a);var l=F.selection.isSelectedByAnyHeader(),u=F.selection.selectedRange.current(),c=!0;U&&(c=!1),t.isTouched()&&(c=!t.value);var d=F.selection.isSelectedByRowHeader(),h=F.selection.isSelectedByColumnHeader();!1!==c&&(l?d?F.view.scrollViewportVertically(W.rowIndexMapper.getRenderableFromVisualIndex(e.row)):h&&F.view.scrollViewportHorizontally(W.columnIndexMapper.getRenderableFromVisualIndex(e.col)):u&&!F.selection.isMultiple()?F.view.scrollViewport($(u.from)):F.view.scrollViewport($(e))),d&&h?(0,s.addClass)(F.rootElement,["ht__selection--rows","ht__selection--columns"]):d?((0,s.removeClass)(F.rootElement,"ht__selection--columns"),(0,s.addClass)(F.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(F.rootElement,"ht__selection--rows"),(0,s.addClass)(F.rootElement,"ht__selection--columns")):(0,s.removeClass)(F.rootElement,["ht__selection--rows","ht__selection--columns"]),F._refreshBorders(null)})),this.selection.addLocalHook("afterSelectionFinished",(function(e){var t=e.length-1,n=e[t],r=n.from,o=n.to;F.runHooks("afterSelectionEnd",r.row,r.col,o.row,o.col,t),F.runHooks("afterSelectionEndByProp",r.row,W.colToProp(r.col),o.row,W.colToProp(o.col),t)})),this.selection.addLocalHook("afterIsMultipleSelection",(function(e){var t=F.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)})),this.selection.addLocalHook("beforeModifyTransformStart",(function(e){F.runHooks("modifyTransformStart",e)})),this.selection.addLocalHook("afterModifyTransformStart",(function(e,t,n){F.runHooks("afterModifyTransformStart",e,t,n)})),this.selection.addLocalHook("beforeModifyTransformEnd",(function(e){F.runHooks("modifyTransformEnd",e)})),this.selection.addLocalHook("afterModifyTransformEnd",(function(e,t,n){F.runHooks("afterModifyTransformEnd",e,t,n)})),this.selection.addLocalHook("afterDeselect",(function(){B.destroyEditor(),F._refreshBorders(),(0,s.removeClass)(F.rootElement,["ht__selection--rows","ht__selection--columns"]),F.runHooks("afterDeselect")})),this.selection.addLocalHook("insertRowRequire",(function(e){F.alter("insert_row_above",e,1,"auto")})),this.selection.addLocalHook("insertColRequire",(function(e){F.alter("insert_col_start",e,1,"auto")})),H={alter:function(e,t){var n,o,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,d=function(e){if(0===e.length)return[];var t=(0,a.default)(e);return t.sort((function(e,t){var n=(0,i.default)(e,1)[0],r=(0,i.default)(t,1)[0];return n===r?0:n>r?1:-1})),(0,v.arrayReduce)(t,(function(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1],a=e[e.length-1],s=(0,i.default)(a,2),l=s[0]+s[1];if(r<=l){var u=Math.max(o-(l-r),0);a[1]+=u}else e.push([r,o]);return e}),[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":var h=W.countSourceRows();if(X.maxRows===h)return;var f="insert_row_below"===e?"below":"above";t=null!==(n=t)&&void 0!==n?n:"below"===f?h:0;var g=r.createRow(t,s,{source:l,mode:f}),p=g.delta,y=g.startPhysicalIndex;if(p){var m=Z.selectedRange.current(),C=null==m?void 0:m.from,w=null==C?void 0:C.row,E=W.toVisualRow(y);if(Z.isSelectedByCorner())W.selectAll();else if((0,u.isDefined)(w)&&w>=E){var R=m.to,S=R.row,b=R.col,T=C.col;Z.isSelectedByRowHeader()&&(T=-1),Z.getSelectedRange().pop(),Z.setRangeStartOnly(W._createCellCoords(w+p,T),!0),Z.setRangeEnd(W._createCellCoords(S+p,b))}else W._refreshBorders()}break;case"insert_col_start":case"insert_col_end":var O="insert_col_end"===e?"end":"start";t=null!==(o=t)&&void 0!==o?o:"end"===O?W.countSourceCols():0;var _=r.createCol(t,s,{source:l,mode:O}),I=_.delta,k=_.startPhysicalIndex;if(I){if(Array.isArray(X.colHeaders)){var M=[W.toVisualColumn(k),0];M.length+=I,Array.prototype.splice.apply(X.colHeaders,M)}var N=Z.selectedRange.current(),P=null==N?void 0:N.from,A=null==P?void 0:P.col,x=W.toVisualColumn(k);if(Z.isSelectedByCorner())W.selectAll();else if((0,u.isDefined)(A)&&A>=x){var D=N.to,L=D.row,B=D.col,F=P.row;Z.isSelectedByColumnHeader()&&(F=-1),Z.getSelectedRange().pop(),Z.setRangeStartOnly(W._createCellCoords(F,A+I),!0),Z.setRangeEnd(W._createCellCoords(L,B+I))}else W._refreshBorders()}break;case"remove_row":var V=function(e){var t=0;(0,v.arrayEach)(e,(function(e){var n=(0,i.default)(e,2),o=n[0],a=n[1],s=(0,u.isEmpty)(o)?W.countRows()-1:Math.max(o-t,0);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeRow(o,a,l)){var c=W.countRows(),d=X.fixedRowsTop;d>=s+1&&(X.fixedRowsTop-=Math.min(a,d-s));var h=X.fixedRowsBottom;h&&s>=c-h&&(X.fixedRowsBottom-=Math.min(a,h)),t+=a}}))};Array.isArray(t)?V(d(t)):V([[t,s]]),H.adjustRowsAndCols(),W._refreshBorders();break;case"remove_col":var U=function(e){var t=0;(0,v.arrayEach)(e,(function(e){var n=(0,i.default)(e,2),o=n[0],a=n[1],s=(0,u.isEmpty)(o)?W.countCols()-1:Math.max(o-t,0),c=W.toPhysicalColumn(s);if(Number.isInteger(o)&&(o=Math.max(o-t,0)),r.removeCol(o,a,l)){var d=X.fixedColumnsStart;d>=s+1&&(X.fixedColumnsStart-=Math.min(a,d-s)),Array.isArray(X.colHeaders)&&(void 0===c&&(c=-1),X.colHeaders.splice(c,a)),t+=a}}))};Array.isArray(t)?U(d(t)):U([[t,s]]),H.adjustRowsAndCols(),W._refreshBorders();break;default:throw new Error('There is no such action "'.concat(e,'"'))}c||H.adjustRowsAndCols()},adjustRowsAndCols:function(){var e,t=X.minRows,n=X.minSpareRows,o=X.minCols,i=X.minSpareCols;if(0===W.countRows()&&0===W.countCols()&&Z.deselect(),t){var a=W.countRows();a<t&&r.createRow(a,t-a,{source:"auto"})}if(n){var s=W.countEmptyRows(!0);if(s<n){var l=n-s,u=Math.min(l,X.maxRows-W.countSourceRows());r.createRow(W.countRows(),u,{source:"auto"})}}(o||i)&&(e=W.countEmptyCols(!0));var c=W.countCols();if(o&&!X.columns&&c<o){var d=o-c;e+=d,r.createCol(c,d,{source:"auto"})}if(i&&!X.columns&&"array"===W.dataType&&e<i){c=W.countCols();var h=i-e,f=Math.min(h,X.maxCols-c);r.createCol(c,f,{source:"auto"})}if(Z.isSelected()){var g=W.countRows(),p=W.countCols();(0,v.arrayEach)(Z.selectedRange,(function(e){var t=!1,n=e.from.row,r=e.from.col,o=e.to.row,i=e.to.col;n>g-1?(t=!0,o>(n=g-1)&&(o=n)):o>g-1&&(t=!0,n>(o=g-1)&&(n=o)),r>p-1?(t=!0,i>(r=p-1)&&(i=r)):i>p-1&&(t=!0,r>(i=p-1)&&(r=i)),t&&W.selectCell(n,r,o,i)}))}W.view&&W.view.adjustElementsSize()},populateFromArray:function(e,t,n,r,i){var s,l,u,c,d=[],h={},g=[],p=e.row,y=e.col;if(0===(l=t.length))return!1;var m=0,C=0;switch((0,f.isObject)(n)&&(m=n.col-y+1,C=n.row-p+1),i){case"shift_down":var w=(0,v.pivot)(t),E=w.length,R=Math.max(E,m),S=W.getData().slice(p),b=(0,v.pivot)(S).slice(y,y+R);for(u=0;u<R;u+=1)if(u<E){for(s=0,l=w[u].length;s<C-l;s+=1)w[u].push(w[u][s%l]);u<b.length?g.push(w[u].concat(b[u])):g.push(w[u].concat(new Array(S.length).fill(null)))}else g.push(w[u%E].concat(b[u]));W.populateFromArray(p,y,(0,v.pivot)(g));break;case"shift_right":var T=t.length,O=Math.max(T,C),_=W.getData().slice(p).map((function(e){return e.slice(y)}));for(s=0;s<O;s+=1)if(s<T){for(u=0,c=t[s].length;u<m-c;u+=1)t[s].push(t[s][u%c]);var I;if(s<_.length)for(var k=0;k<_[s].length;k+=1)t[s].push(_[s][k]);else(I=t[s]).push.apply(I,(0,a.default)(new Array(_[0].length).fill(null)))}else t.push(t[s%l].slice(0,O).concat(_[s]));W.populateFromArray(p,y,t);break;case"overwrite":default:h.row=e.row,h.col=e.col;var M,N=0,P=0,A=!0,x=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t[e%t.length];return null!==n?r[n%r.length]:r},D=t.length,L=n?n.row-e.row+1:0;for(l=n?L:Math.max(D,L),s=0;s<l&&!(n&&h.row>n.row&&L>D||!X.allowInsertRow&&h.row>W.countRows()-1||h.row>=X.maxRows);s++){var H=s-N,B=x(H).length,F=n?n.col-e.col+1:0;if(c=n?F:Math.max(B,F),h.col=e.col,M=W.getCellMeta(h.row,h.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!M.skipRowOnPaste){for(P=0,u=0;u<c&&!(n&&h.col>n.col&&F>B||!X.allowInsertColumn&&h.col>W.countCols()-1||h.col>=X.maxCols);u++)if(M=W.getCellMeta(h.row,h.col),"CopyPaste.paste"!==r&&"Autofill.fill"!==r||!M.skipColumnOnPaste)if(M.readOnly&&"UndoRedo.undo"!==r)h.col+=1;else{var V=x(H,u-P),U=W.getDataAtCell(h.row,h.col);if(null!==V&&"object"===(0,o.default)(V))if(Array.isArray(V)&&null===U&&(U=[]),null===U||"object"!==(0,o.default)(U))A=!1;else{var j=(0,f.duckSchema)(Array.isArray(U)?U:U[0]||U),Y=(0,f.duckSchema)(Array.isArray(V)?V:V[0]||V);(0,f.isObjectEqual)(j,Y)||Array.isArray(j)&&Array.isArray(Y)?V=(0,f.deepClone)(V):A=!1}else null!==U&&"object"===(0,o.default)(U)&&(A=!1);A&&d.push([h.row,h.col,V]),A=!0,h.col+=1}else P+=1,h.col+=1,c+=1;h.row+=1}else N+=1,h.row+=1,l+=1}W.setDataAtCell(d,null,null,r||"populateFromArray")}}},this.init=function(){L.setData(X.data),W.runHooks("beforeInit"),((0,c.isMobileBrowser)()||(0,c.isIpadOS)())&&(0,s.addClass)(W.rootElement,"mobile"),this.updateSettings(X,!0),this.view=new R.default(this),B=d.default.getInstance(W,X,Z),W.runHooks("init"),this.forceFullRender=!0,this.view.render(),Y&&null===W.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(W.rootElement,(function(){W.view._wt.wtOverlays.updateLastSpreaderSize(),W.render(),W.view.adjustElementsSize()})),"object"===(0,o.default)(Y)&&(W.runHooks("afterChange",Y[0],Y[1]),Y=!1),W.runHooks("afterInit")},this._createCellCoords=function(e,t){return W.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,n){return W.view._wt.createCellRange(e,t,n)},this.validateCell=function(e,t,n,r){var o,i=W.getCellValidator(t);function a(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(r&&!0!==t.hidden){var o=t.visualCol,i=t.visualRow,a=W.getCell(i,o,!0);if(a&&"TH"!==a.nodeName){var s=W.rowIndexMapper.getRenderableFromVisualIndex(i),l=W.columnIndexMapper.getRenderableFromVisualIndex(o);W.view._wt.getSetting("cellRenderer",s,l,a)}n(e)}else n(e)}(0,u.isRegExp)(i)&&(o=i,i=function(e,t){t(o.test(e))}),(0,l.isFunction)(i)?(e=W.runHooks("beforeValidate",e,t.visualRow,t.prop,r),W._registerImmediate((function(){i.call(t,e,(function(n){W&&(n=W.runHooks("afterValidate",n,e,t.visualRow,t.prop,r),t.valid=n,a(n),W.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,r))}))}))):W._registerImmediate((function(){t.valid=!0,a(t.valid,!1)}))},this.setDataAtCell=function(e,t,n,i){var a,s,l,u=se(e,t,n),c=[],d=i;for(a=0,s=u.length;a<s;a++){if("object"!==(0,o.default)(u[a]))throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof u[a][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=u[a][1]>=this.countCols()?u[a][1]:r.colToProp(u[a][1]),c.push([u[a][0],l,L.getAtCell(this.toPhysicalRow(u[a][0]),u[a][1]),u[a][2]])}d||"object"!==(0,o.default)(e)||(d=t);var h=le(c,i);W.runHooks("afterSetDataAtCell",h,d),ie(h,d,(function(){ae(h,d)}))},this.setDataAtRowProp=function(e,t,n,r){var i,a,s=se(e,t,n),l=[],u=r;for(i=0,a=s.length;i<a;i++)l.push([s[i][0],s[i][1],L.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);u||"object"!==(0,o.default)(e)||(u=t);var c=le(l,r);W.runHooks("afterSetDataAtRowProp",c,u),ie(c,u,(function(){ae(c,u)}))},this.listen=function(){W&&!W.isListening()&&(D=W.guid,W.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(D=null,W.runHooks("afterUnlisten"))},this.isListening=function(){return D===W.guid},this.destroyEditor=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];W._refreshBorders(e,t)},this.populateFromArray=function(e,t,n,r,i,a,s){if("object"!==(0,o.default)(n)||"object"!==(0,o.default)(n[0]))throw new Error("populateFromArray parameter `input` must be an array of arrays");var l="number"==typeof r?W._createCellCoords(r,i):null;return H.populateFromArray(W._createCellCoords(e,t),n,l,a,s)},this.spliceCol=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceCol.apply(o,[e,t,n].concat(a))},this.spliceRow=function(e,t,n){for(var o,i=arguments.length,a=new Array(i>3?i-3:0),s=3;s<i;s++)a[s-3]=arguments[s];return(o=r).spliceRow.apply(o,[e,t,n].concat(a))},this.getSelected=function(){if(Z.isSelected())return(0,v.arrayMap)(Z.getSelectedRange(),(function(e){var t=e.from,n=e.to;return[t.row,t.col,n.row,n.col]}))},this.getSelectedLast=function(){var e,t=this.getSelected();return t&&t.length>0&&(e=t[t.length-1]),e},this.getSelectedRange=function(){if(Z.isSelected())return Array.from(Z.getSelectedRange())},this.getSelectedRangeLast=function(){var e,t=this.getSelectedRange();return t&&t.length>0&&(e=t[t.length-1]),e},this.emptySelectedCells=function(e){var t=this;if(Z.isSelected()&&0!==this.countRows()&&0!==this.countCols()){var n=[];(0,v.arrayEach)(Z.getSelectedRange(),(function(e){var r=e.getTopStartCorner(),o=e.getBottomEndCorner();(0,E.rangeEach)(r.row,o.row,(function(e){(0,E.rangeEach)(r.col,o.col,(function(r){t.getCellMeta(e,r).readOnly||n.push([e,r,null])}))}))})),n.length>0&&this.setDataAtCell(n,e)}},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){var e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||(this.renderCall?this.render():this._refreshBorders(null))},this.render=function(){this.view&&(this.renderCall=!0,this.forceFullRender=!0,this.isRenderSuspended()||(B.lockEditor(),this._refreshBorders(null),B.unlockEditor()))},this.batchRender=function(e){this.suspendRender();var t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();var n=e();return this.resumeExecution(t),n},this.batch=function(e){this.suspendRender(),this.suspendExecution();var t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(W.view){var e=W.view.getLastSize(),t=e.width,n=e.height,r=W.rootElement.getBoundingClientRect(),o=r.width,i=r.height,a=o!==t||i!==n;!1===W.runHooks("beforeRefreshDimensions",{width:t,height:n},{width:o,height:i},a)||((a||W.view._wt.wtOverlays.scrollableElement===W.rootWindow)&&(W.view.setLastSize(o,i),W.render()),W.runHooks("afterRefreshDimensions",{width:t,height:n},{width:o,height:i},a))}},this.updateData=function(e,t){var n=this;(0,P.replaceData)(e,(function(e){r=e}),(function(e){r=e,W.columnIndexMapper.fitToLength(n.getInitialColumnCount()),W.rowIndexMapper.fitToLength(n.countSourceRows()),H.adjustRowsAndCols()}),{hotInstance:W,dataMap:r,dataSource:L,internalSource:"updateData",source:t,metaManager:K,firstRun:Y})},this.loadData=function(e,t){(0,P.replaceData)(e,(function(e){r=e}),(function(){K.clearCellsCache(),W.initIndexMappers(),H.adjustRowsAndCols(),Y&&(Y=[null,"loadData"])}),{hotInstance:W,dataMap:r,dataSource:L,internalSource:"loadData",source:t,metaManager:K,firstRun:Y})},this.getInitialColumnCount=function(){var e=X.columns,t=0;if(Array.isArray(e))t=e.length;else if((0,l.isFunction)(e))if("array"===W.dataType)for(var n=this.countSourceCols(),o=0;o<n;o+=1)e(o)&&(t+=1);else"object"!==W.dataType&&"function"!==W.dataType||(t=r.colToPropCache.length);else if((0,u.isDefined)(X.dataSchema)){var i=r.getSchema();t=Array.isArray(i)?i.length:(0,f.deepObjectSize)(i)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,n,o){return(0,u.isUndefined)(e)?r.getAll():r.getRange(W._createCellCoords(e,t),W._createCellCoords(n,o),r.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return r.getCopyableText(W._createCellCoords(e,t),W._createCellCoords(n,o))},this.getCopyableData=function(e,t){return r.getCopyable(e,r.colToProp(t))},this.getSchema=function(){return r.getSchema()},this.updateSettings=function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(Y?W.loadData:W.updateData).bind(this),a=!1;if((0,u.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,u.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,u.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(t in e)"data"===t||("language"===t?te(e.language):"className"===t?ne("className",e.className):"tableClassName"===t&&W.table?(ne("tableClassName",e.tableClassName),W.view._wt.wtOverlays.syncOverlayTableClassNames()):I.default.getSingleton().isRegistered(t)||I.default.getSingleton().isDeprecated(t)?((0,l.isFunction)(e[t])||Array.isArray(e[t]))&&(e[t].initialHook=!0,W.addHook(t,e[t])):!o&&(0,f.hasOwnProperty)(e,t)&&(q[t]=e[t]));void 0===e.data&&void 0===X.data?i(null,"updateSettings"):void 0!==e.data?i(e.data,"updateSettings"):void 0!==e.columns&&(r.createMap(),W.initIndexMappers());var s=W.countCols(),c=X.columns;if(c&&(0,l.isFunction)(c)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||K.clearCache(),s>0)for(t=0,n=0;t<s;t++){if(c){var d=a?c(t):c[n];d&&K.updateColumnMeta(n,d)}n+=1}(0,u.isDefined)(e.cell)&&(0,f.objectEach)(e.cell,(function(e){W.setCellMetaObject(e.row,e.col,e)})),W.runHooks("afterCellMetaReset");var h=W.rootElement.style.height;""!==h&&(h=parseInt(W.rootElement.style.height,10));var v=e.height;if((0,l.isFunction)(v)&&(v=v()),o){var g=W.rootElement.getAttribute("style");g&&W.rootElement.setAttribute("data-initialstyle",W.rootElement.getAttribute("style"))}if(null===v){var p=W.rootElement.getAttribute("data-initialstyle");p&&(p.indexOf("height")>-1||p.indexOf("overflow")>-1)?W.rootElement.setAttribute("style",p):(W.rootElement.style.height="",W.rootElement.style.overflow="")}else void 0!==v&&(W.rootElement.style.height=isNaN(v)?"".concat(v):"".concat(v,"px"),W.rootElement.style.overflow="hidden");if(void 0!==e.width){var y=e.width;(0,l.isFunction)(y)&&(y=y()),W.rootElement.style.width=isNaN(y)?"".concat(y):"".concat(y,"px")}o||(W.view&&(W.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),W.view._wt.exportSettingsAsClassNames()),W.runHooks("afterUpdateSettings",e)),H.adjustRowsAndCols(),W.view&&!Y&&(W.forceFullRender=!0,B.lockEditor(),W._refreshBorders(null),W.view._wt.wtOverlays.adjustElementsSize(),B.unlockEditor()),o||!W.view||""!==h&&""!==v&&void 0!==v||h===v||W.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=W.getSelectedLast();if(X.getValue){if((0,l.isFunction)(X.getValue))return X.getValue.call(W);if(e)return W.getData()[e[0][0]][X.getValue]}else if(e)return W.getDataAtCell(e[0],e[1])},this.getSettings=function(){return X},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,n,r,o){H.alter(e,t,n,r,o)},this.getCell=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t,o=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;r=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;o=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===o||null===r?null:W.view.getCellAtCoords(W._createCellCoords(o,r),n)},this.getCoords=function(e){var t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;var n=t.row,r=t.col,o=n,i=r;return n>=0&&(o=this.rowIndexMapper.getVisualFromRenderableIndex(n)),r>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(r)),W._createCellCoords(o,i)},this.colToProp=function(e){return r.colToProp(e)},this.propToCol=function(e){return r.propToCol(e)},this.toVisualRow=function(e){return F.rowIndexMapper.getVisualFromPhysicalIndex(e)},this.toVisualColumn=function(e){return F.columnIndexMapper.getVisualFromPhysicalIndex(e)},this.toPhysicalRow=function(e){return F.rowIndexMapper.getPhysicalFromVisualIndex(e)},this.toPhysicalColumn=function(e){return F.columnIndexMapper.getPhysicalFromVisualIndex(e)},this.getDataAtCell=function(e,t){return r.get(e,r.colToProp(t))},this.getDataAtRowProp=function(e,t){return r.get(e,t)},this.getDataAtCol=function(e){for(var t=[],n=r.getRange(W._createCellCoords(0,e),W._createCellCoords(X.data.length-1,e),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},this.getDataAtProp=function(e){for(var t=[],n=r.getRange(W._createCellCoords(0,r.propToCol(e)),W._createCellCoords(X.data.length-1,r.propToCol(e)),r.DESTINATION_RENDERER),o=0;o<n.length;o+=1)for(var i=0;i<n[o].length;i+=1)t.push(n[o][i]);return t},this.getSourceData=function(e,t,n,r){return void 0===e?L.getData():L.getByRange(W._createCellCoords(e,t),W._createCellCoords(n,r))},this.getSourceDataArray=function(e,t,n,r){return void 0===e?L.getData(!0):L.getByRange(W._createCellCoords(e,t),W._createCellCoords(n,r),!0)},this.getSourceDataAtCol=function(e){return L.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,n,r){var o=se(e,t,n),a=this.hasHook("afterSetSourceDataAtCell"),s=[];a&&(0,v.arrayEach)(o,(function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],o=t[2];s.push([n,r,L.getAtCell(n,r),o])})),(0,v.arrayEach)(o,(function(e){var t=(0,i.default)(e,3),n=t[0],r=t[1],o=t[2];L.setAtCell(n,r,o)})),a&&this.runHooks("afterSetSourceDataAtCell",s,r),this.render();var l=W.getActiveEditor();l&&(0,u.isDefined)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return L.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return L.getAtCell(e,t)},this.getDataAtRow=function(e){return r.getRange(W._createCellCoords(e,0),W._createCellCoords(e,this.countCols()-1),r.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,r){var o=this,i=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,n,r],a=i[0],s=i[1],l=i[2],u=i[3],c=null,d=null;void 0===l&&(l=a),void 0===u&&(u=s);var h="mixed";return(0,E.rangeEach)(Math.max(Math.min(a,l),0),Math.max(a,l),(function(e){var t=!0;return(0,E.rangeEach)(Math.max(Math.min(s,u),0),Math.max(s,u),(function(n){var r=o.getCellMeta(e,n);return d=r.type,c?t=c===d:c=d,t})),h=t?d:"mixed",t})),h},this.removeCellMeta=function(e,t,n){var r=[this.toPhysicalRow(e),this.toPhysicalColumn(t)],o=r[0],i=r[1],a=K.getCellMetaKeyValue(o,i,n);!1!==W.runHooks("beforeRemoveCellMeta",e,t,n,a)&&(K.removeCellMeta(o,i,n),W.runHooks("afterRemoveCellMeta",e,t,n,a)),a=null},this.spliceCellsMeta=function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(o.length>0&&!Array.isArray(o[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");n>0&&K.removeRow(this.toPhysicalRow(e),n),o.length>0&&(0,v.arrayEach)(o.reverse(),(function(n){K.createRow(t.toPhysicalRow(e)),(0,v.arrayEach)(n,(function(n,r){return t.setCellMetaObject(e,r,n)}))})),W.render()},this.setCellMetaObject=function(e,t,n){var r=this;"object"===(0,o.default)(n)&&(0,f.objectEach)(n,(function(n,o){r.setCellMeta(e,t,o,n)}))},this.setCellMeta=function(e,t,n,r){if(!1!==W.runHooks("beforeSetCellMeta",e,t,n,r)){var o=e,i=t;e<this.countRows()&&(o=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),K.setCellMeta(o,i,n,r),W.runHooks("afterSetCellMeta",e,t,n,r)}},this.getCellsMeta=function(){return K.getCellsMeta()},this.getCellMeta=function(e,t){var n=this.toPhysicalRow(e),r=this.toPhysicalColumn(t);return null===n&&(n=e),null===r&&(r=t),K.getCellMeta(n,r,{visualRow:e,visualColumn:t})},this.getCellMetaAtRow=function(e){return K.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===W.dataType||X.columns)},this.getCellRenderer=function(e,t){var n="number"==typeof e?W.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof n?(0,y.getRenderer)(n):(0,u.isUndefined)(n)?(0,y.getRenderer)("text"):n},this.getCellEditor=function(e,t){var n="number"==typeof e?W.getCellMeta(e,t).editor:e.editor;return"string"==typeof n?(0,m.getEditor)(n):(0,u.isUndefined)(n)?(0,m.getEditor)("text"):n},this.getCellValidator=function(e,t){var n="number"==typeof e?W.getCellMeta(e,t).validator:e.validator;return"string"==typeof n?(0,C.getValidator)(n):n},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,n){var r=new re;e&&(r.onQueueEmpty=e);for(var o=W.countRows()-1;o>=0;)if(void 0===t||-1!==t.indexOf(o)){for(var i=W.countCols()-1;i>=0;)void 0===n||-1!==n.indexOf(i)?(r.addValidatorToQueue(),W.validateCell(W.getDataAtCell(o,i),W.getCellMeta(o,i),(function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(r.valid=!1),r.removeValidatorFormQueue()}),"validateCells"),i-=1):i-=1;o-=1}else o-=1;r.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=X.rowHeaders,n=e;return void 0!==n&&(n=W.runHooks("modifyRowHeader",n)),void 0===n?(t=[],(0,E.rangeEach)(W.countRows()-1,(function(e){t.push(W.getRowHeader(e))}))):Array.isArray(t)&&void 0!==t[n]?t=t[n]:(0,l.isFunction)(t)?t=t(n):t&&"string"!=typeof t&&"number"!=typeof t&&(t=n+1),t},this.hasRowHeaders=function(){return!!X.rowHeaders},this.hasColHeaders=function(){if(void 0!==X.colHeaders&&null!==X.colHeaders)return!!X.colHeaders;for(var e=0,t=W.countCols();e<t;e++)if(W.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=W.runHooks("modifyColHeader",e);if(void 0===n){for(var r=[],o=W.countCols(),i=0;i<o;i++)r.push(W.getColHeader(i));return r}var a=X.colHeaders,s=function(e){for(var t=[],n=W.countCols(),r=0;r<n;r++)(0,l.isFunction)(X.columns)&&X.columns(r)&&t.push(r);return t[e]},u=W.toPhysicalColumn(n),c=s(u);return!1===X.colHeaders?a=null:X.columns&&(0,l.isFunction)(X.columns)&&X.columns(c)&&X.columns(c).title?a=X.columns(c).title:X.columns&&X.columns[u]&&X.columns[u].title?a=X.columns[u].title:Array.isArray(X.colHeaders)&&void 0!==X.colHeaders[u]?a=X.colHeaders[u]:(0,l.isFunction)(X.colHeaders)?a=X.colHeaders(u):X.colHeaders&&"string"!=typeof X.colHeaders&&"number"!=typeof X.colHeaders&&(a=(0,b.spreadsheetColumnLabel)(n)),a=W.runHooks("modifyColumnHeaderValue",a,e,t)},this._getColWidthFromSettings=function(e){var t;e>=0&&(t=W.getCellMeta(0,e).width);if(void 0!==t&&t!==X.width||(t=X.colWidths),null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e){var t=W._getColWidthFromSettings(e);return void 0===(t=W.runHooks("modifyColWidth",t,e))&&(t=_.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=X.rowHeights;if(null!=t){switch((0,o.default)(t)){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=W._getRowHeightFromSettings(e);return t=W.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return L.countRows()},this.countSourceCols=function(){return L.countFirstRowKeys()},this.countRows=function(){return r.getLength()},this.countCols=function(){var e=X.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return W.view._wt.drawn?W.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return W.view._wt.drawn?W.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return W.view._wt.drawn?W.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return W.view._wt.drawn?W.view._wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,E.rangeEachReverse)(W.countRows()-1,(function(n){if(W.isEmptyRow(n))t+=1;else if(!0===e)return!1})),t},this.countEmptyCols=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,E.rangeEachReverse)(W.countCols()-1,(function(n){if(W.isEmptyCol(n))t+=1;else if(!0===e)return!1})),t},this.isEmptyRow=function(e){return X.isEmptyRow.call(W,e)},this.isEmptyCol=function(e){return X.isEmptyCol.call(W,e)},this.selectCell=function(e,t,n,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,u.isUndefined)(e)&&!(0,u.isUndefined)(t)&&this.selectCells([[e,t,n,r]],o,i)},this.selectCells=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===t&&(U=!0);var r=Z.selectCells(e);return r&&n&&W.listen(),U=!1,r},this.selectColumns=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectColumns(e,t)},this.selectRows=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Z.selectRows(e,t)},this.deselectCell=function(){Z.deselect()},this.selectAll=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e&&this.hasRowHeaders(),n=e&&this.hasColHeaders();U=!0,Z.selectAll(t,n),U=!1};var ue=function(e,t){return e.getNearestNotHiddenIndex(t,1,!0)};function ce(e){return function(){throw new Error('The "'.concat(e,'" method cannot be called because this Handsontable instance has been destroyed'))}}this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!n,a=!r,s=e,l=t;if(o){var u=Number.isInteger(e),c=Number.isInteger(t),d=u?ue(this.rowIndexMapper,e):void 0,h=c?ue(this.columnIndexMapper,t):void 0;if(null===d||null===h)return!1;s=u?W.rowIndexMapper.getRenderableFromVisualIndex(d):void 0,l=c?W.columnIndexMapper.getRenderableFromVisualIndex(h):void 0}var f=Number.isInteger(s),v=Number.isInteger(l);return f&&v?W.view.scrollViewport(W._createCellCoords(s,l),i,r,n,a):f&&!1===v?W.view.scrollViewportVertically(s,i,n):!(!v||!1!==f)&&W.view.scrollViewportHorizontally(l,r,a)},this.destroy=function(){if(W._clearTimeouts(),W._clearImmediates(),W.view&&W.view.destroy(),L&&L.destroy(),L=null,this.getShortcutManager().destroy(),K.clearCache(),(0,O.isRootInstance)(W)){var e=this.rootDocument.querySelector(".hot-display-license-info");e&&e.parentNode.removeChild(e)}(0,s.empty)(W.rootElement),j.destroy(),B&&B.destroy(),W.batchExecution((function(){W.rowIndexMapper.unregisterAll(),W.columnIndexMapper.unregisterAll(),Q.getItems().forEach((function(e){(0,i.default)(e,2)[1].destroy()})),Q.clear(),W.runHooks("afterDestroy")}),!0),I.default.getSingleton().destroy(W),(0,f.objectEach)(W,(function(e,t,n){(0,l.isFunction)(e)?n[t]=ce(t):"guid"!==t&&(n[t]=null)})),W.isDestroyed=!0,r&&r.destroy(),r=null,H=null,Z=null,B=null,W=null},this.getActiveEditor=function(){return B.getActiveEditor()},this.getPlugin=function(e){var t=(0,w.toUpperCaseFirst)(e);return"UndoRedo"===t?this.undoRedo:Q.getItem(t)},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:Q.getId(e)},this.getInstance=function(){return W},this.addHook=function(e,t){I.default.getSingleton().add(e,t,W)},this.hasHook=function(e){return I.default.getSingleton().has(e,W)||I.default.getSingleton().has(e)},this.addHookOnce=function(e,t){I.default.getSingleton().once(e,t,W)},this.removeHook=function(e,t){I.default.getSingleton().remove(e,t,W)},this.runHooks=function(e,t,n,r,o,i,a){return I.default.getSingleton().run(W,e,t,n,r,o,i,a)},this.getTranslatedPhrase=function(e,t){return(0,k.getTranslatedPhrase)(X.language,e,t)},this.toHTML=function(){return(0,g.instanceToHTML)(F)},this.toTableElement=function(){var e=F.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(F)),e.firstElementChild},this.timeouts=[],this._registerTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e;"function"==typeof n&&(n=setTimeout(n,t)),this.timeouts.push(n)},this._clearTimeouts=function(){(0,v.arrayEach)(this.timeouts,(function(e){clearTimeout(e)}))},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,v.arrayEach)(this.immediates,(function(e){clearImmediate(e)}))},this._refreshBorders=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];B.destroyEditor(e),W.view.render(),t&&Z.isSelected()&&B.prepareEditor()},this.isRtl=function(){return"rtl"===W.rootWindow.getComputedStyle(W.rootElement).direction},this.isLtr=function(){return!W.isRtl()},this.getDirectionFactor=function(){return W.isLtr()?1:-1};var de=(0,x.createShortcutManager)({handleEvent:function(e){var t=W.isListening(),n=void 0!==(null==e?void 0:e.key);return t&&n},beforeKeyDown:function(e){return F.runHooks("beforeKeyDown",e)},afterKeyDown:function(e){F.isDestroyed||W.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",(function(e){!1===e.ctrlKey&&!1===e.metaKey&&de.releasePressedKeys()})),this.getShortcutManager=function(){return de};var he=de.addContext("grid"),fe={runOnlyIf:function(){return(0,u.isDefined)(W.getSelected())&&W.countRenderedRows()>0&&W.countRenderedCols()>0},group:"gridDefault"};de.setActiveContextName("grid"),he.addShortcuts([{keys:[["Control/Meta","A"]],callback:function(){W.selectAll()}},{keys:[["Control/Meta","Enter"]],callback:function(){for(var e=W.getSelectedRange(),t=e[e.length-1].highlight,n=t.row,r=t.col,o=W.getDataAtCell(n,r),i=new Map,a=0;a<e.length;a++)e[a].forAll((function(e,t){e>=0&&t>=0&&(e!==n||t!==r)&&(W.getCellMeta(e,t).readOnly||i.set("".concat(e,"x").concat(t),[e,t,o]))}));W.setDataAtCell(Array.from(i.values()))},runOnlyIf:function(){return W.getSelectedRangeLast().getCellsCount()>1}},{keys:[["ArrowUp"]],callback:function(){Z.transformStart(-1,0)}},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:function(){Z.setRangeStart(W._createCellCoords(W.rowIndexMapper.getNearestNotHiddenIndex(0,1),W.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowUp","Shift"]],callback:function(){Z.transformEnd(-1,0)}},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=W.getSelectedRangeLast(),t=e.from,n=e.to,r=W.rowIndexMapper.getNearestNotHiddenIndex(0,1);Z.setRangeStart(t.clone()),Z.setRangeEnd(W._createCellCoords(r,n.col))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByColumnHeader())}},{keys:[["ArrowDown"]],callback:function(){Z.transformStart(1,0)}},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:function(){Z.setRangeStart(W._createCellCoords(W.rowIndexMapper.getNearestNotHiddenIndex(W.countRows()-1,-1),W.getSelectedRangeLast().highlight.col))}},{keys:[["ArrowDown","Shift"]],callback:function(){Z.transformEnd(1,0)}},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e=W.getSelectedRangeLast(),t=e.from,n=e.to,r=W.rowIndexMapper.getNearestNotHiddenIndex(W.countRows()-1,-1);Z.setRangeStart(t.clone()),Z.setRangeEnd(W._createCellCoords(r,n.col))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByColumnHeader())}},{keys:[["ArrowLeft"]],callback:function(){Z.transformStart(0,-1*W.getDirectionFactor())}},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast().highlight.row,n=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[W.countCols()-1,-1]:[0,1]));Z.setRangeStart(W._createCellCoords(t,n))}},{keys:[["ArrowLeft","Shift"]],callback:function(){Z.transformEnd(0,-1*W.getDirectionFactor())}},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[W.countCols()-1,-1]:[0,1]));Z.setRangeStart(n.clone()),Z.setRangeEnd(W._createCellCoords(r.row,o))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByRowHeader())}},{keys:[["ArrowRight"]],callback:function(){Z.transformStart(0,W.getDirectionFactor())}},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast().highlight.row,n=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[0,1]:[W.countCols()-1,-1]));Z.setRangeStart(W._createCellCoords(t,n))}},{keys:[["ArrowRight","Shift"]],callback:function(){Z.transformEnd(0,W.getDirectionFactor())}},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:function(){var e,t=W.getSelectedRangeLast(),n=t.from,r=t.to,o=(e=W.columnIndexMapper).getNearestNotHiddenIndex.apply(e,(0,a.default)(W.isRtl()?[0,1]:[W.countCols()-1,-1]));Z.setRangeStart(n.clone()),Z.setRangeEnd(W._createCellCoords(r.row,o))},runOnlyIf:function(){return!(W.selection.isSelectedByCorner()||W.selection.isSelectedByRowHeader())}},{keys:[["Home"]],captureCtrl:!0,callback:function(){var e=parseInt(W.getSettings().fixedColumnsStart,10),t=W.getSelectedRangeLast().highlight.row,n=W.columnIndexMapper.getNearestNotHiddenIndex(e,1);Z.setRangeStart(W._createCellCoords(t,n))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["Home","Shift"]],callback:function(){Z.setRangeEnd(W._createCellCoords(Z.selectedRange.current().from.row,W.columnIndexMapper.getNearestNotHiddenIndex(0,1)))}},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(W.getSettings().fixedRowsTop,10),t=parseInt(W.getSettings().fixedColumnsStart,10),n=W.rowIndexMapper.getNearestNotHiddenIndex(e,1),r=W.columnIndexMapper.getNearestNotHiddenIndex(t,1);Z.setRangeStart(W._createCellCoords(n,r))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End"]],captureCtrl:!0,callback:function(){Z.setRangeStart(W._createCellCoords(W.getSelectedRangeLast().highlight.row,W.columnIndexMapper.getNearestNotHiddenIndex(W.countCols()-1,-1)))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["End","Shift"]],callback:function(){Z.setRangeEnd(W._createCellCoords(Z.selectedRange.current().from.row,W.columnIndexMapper.getNearestNotHiddenIndex(W.countCols()-1,-1)))}},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:function(){var e=parseInt(W.getSettings().fixedRowsBottom,10),t=W.rowIndexMapper.getNearestNotHiddenIndex(W.countRows()-e-1,-1),n=W.columnIndexMapper.getNearestNotHiddenIndex(W.countCols()-1,-1);Z.setRangeStart(W._createCellCoords(t,n))},runOnlyIf:function(){return W.view.isMainTableNotFullyCoveredByOverlays()}},{keys:[["PageUp"]],callback:function(){Z.transformStart(-W.countVisibleRows(),0)}},{keys:[["PageUp","Shift"]],callback:function(){var e=W.getSelectedRangeLast().to,t=Math.max(e.row-W.countVisibleRows(),0),n=W.rowIndexMapper.getNearestNotHiddenIndex(t,1);if(null!==n){var r=W._createCellCoords(n,e.col),o=e.row-W.view.getFirstFullyVisibleRow(),i=Math.max(r.row-o,0);Z.setRangeEnd(r),W.scrollViewportTo(i)}}},{keys:[["PageDown"]],callback:function(){Z.transformStart(W.countVisibleRows(),0)}},{keys:[["PageDown","Shift"]],callback:function(){var e=W.getSelectedRangeLast().to,t=Math.min(e.row+W.countVisibleRows(),W.countRows()-1),n=W.rowIndexMapper.getNearestNotHiddenIndex(t,-1);if(null!==n){var r=W._createCellCoords(n,e.col),o=e.row-W.view.getFirstFullyVisibleRow(),i=Math.min(r.row-o,W.countRows()-1);Z.setRangeEnd(r),W.scrollViewportTo(i)}}},{keys:[["Tab"]],callback:function(e){var t="function"==typeof X.tabMoves?X.tabMoves(e):X.tabMoves;Z.transformStart(t.row,t.col,!0)}},{keys:[["Shift","Tab"]],callback:function(e){var t="function"==typeof X.tabMoves?X.tabMoves(e):X.tabMoves;Z.transformStart(-t.row,-t.col)}}],fe),(0,p.getPluginsNames)().forEach((function(e){var t=(0,p.getPlugin)(e);Q.addItem(e,new t(F))})),I.default.getSingleton().run(W,"construct")};var o=r(n(14)),i=r(n(22)),a=r(n(29));n(4),n(1),n(45),n(5),n(6),n(28),n(77),n(46),n(60),n(61),n(33),n(19),n(121),n(50),n(43),n(67),n(30),n(40),n(23),n(147),n(20),n(57),n(395),n(36);var s=n(15),l=n(51),u=n(24),c=n(78),d=r(n(148)),h=r(n(44)),f=n(12),v=n(13),g=n(212),p=n(177),y=n(149),m=n(107),C=n(150),w=n(68),E=n(32),R=r(n(415)),S=r(n(464)),b=n(111),T=n(65),O=n(218),_=n(108),I=r(n(52)),k=n(307),M=n(308),N=n(222),P=n(310),A=n(178),x=n(501),D=null;new Set},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(100),o=n(144),i=n(196),a=n(142),s=n(201),l=n(82),u=n(199),c=n(191),d=n(192),h=n(268),f=n(48),v=n(141).fastKey,g=n(89),p=g.set,y=g.getterFor;e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,o){s(e,h),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),l(o)||u(o,e[c],{that:e,AS_ENTRIES:n})})),h=d.prototype,g=y(t),m=function(e,t,n){var r,o,i=g(e),a=C(e,t);return a?a.value=n:(i.last=a={index:o=v(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},C=function(e,t){var n,r=g(e),o=v(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(h,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=g(this),n=C(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),f?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!C(this,e)}}),i(h,n?{get:function(e){var t=C(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&o(h,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(e,t,n){var r=t+" Iterator",o=y(t),i=y(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,d(void 0,!0))}),n?"entries":"values",!n,!0),h(t)}}},function(e,t,n){"use strict";var r=n(88),o=n(144),i=n(41),a=n(48),s=i("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&o(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(116),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t){var n=TypeError;e.exports=function(e){if(e>9007199254740991)throw n("Maximum allowed index exceeded");return e}},function(e,t,n){var r=n(38);e.exports=r},function(e,t,n){var r=n(27);e.exports=r(1..valueOf)},function(e,t,n){var r=n(27),o=n(71),i=n(49),a=n(274),s=r("".replace),l=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),c=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,l,"")),2&e&&(n=s(n,u,"$1")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(54);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(26),o=n(38).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},function(e,t,n){var r=n(26),o=n(38).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},function(e,t,n){var r,o,i,a,s=n(38),l=n(106),u=n(142),c=n(42),d=n(47),h=n(26),f=n(246),v=n(146),g=n(161),p=n(278),y=n(397),m=n(280),C=s.setImmediate,w=s.clearImmediate,E=s.process,R=s.Dispatch,S=s.Function,b=s.MessageChannel,T=s.String,O=0,_={};h((function(){r=s.location}));var I=function(e){if(d(_,e)){var t=_[e];delete _[e],t()}},k=function(e){return function(){I(e)}},M=function(e){I(e.data)},N=function(e){s.postMessage(T(e),r.protocol+"//"+r.host)};C&&w||(C=function(e){p(arguments.length,1);var t=c(e)?e:S(e),n=v(arguments,1);return _[++O]=function(){l(t,void 0,n)},o(O),O},w=function(e){delete _[e]},m?o=function(e){E.nextTick(k(e))}:R&&R.now?o=function(e){R.now(k(e))}:b&&!y?(a=(i=new b).port2,i.port1.onmessage=M,o=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(N)?(o=N,s.addEventListener("message",M,!1)):o="onreadystatechange"in g("script")?function(e){f.appendChild(g("script")).onreadystatechange=function(){f.removeChild(this),I(e)}}:function(e){setTimeout(k(e),0)}),e.exports={set:C,clear:w}},function(e,t,n){var r=n(85);e.exports="undefined"!=typeof process&&"process"==r(process)},function(e,t,n){var r=n(21),o=n(26),i=n(72),a=n(167),s=n(253);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},function(e,t,n){var r=n(56),o=n(47),i=n(95),a=n(275),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},function(e,t,n){var r=n(14).default,o=n(402);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(171),o=n(116),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=n(21),o=n(407).start;r({target:"String",proto:!0,forced:n(408)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(56),o=n(173),i=n(54),a=n(82),s=n(103),l=n(49),u=n(71),c=n(101),d=n(206),h=n(174);o("match",(function(e,t,n){return[function(t){var n=u(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](l(n))},function(e){var r=i(this),o=l(e),a=n(t,r,o);if(a.done)return a.value;if(!r.global)return h(r,o);var u=r.unicode;r.lastIndex=0;for(var c,f=[],v=0;null!==(c=h(r,o));){var g=l(c[0]);f[v]=g,""===g&&(r.lastIndex=d(o,s(r.lastIndex),u)),v++}return 0===v?null:f}]}))},function(e,t){e.exports=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(213),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.stretchMode,d=t.stretchingItemWidthFn,h=void 0===d?function(e){return e}:d,f=t.inlineStartOffset;(0,o.default)(this,e),s.set(this,{viewportWidth:n,scrollOffset:r,totalColumns:i,columnWidthFn:a,overrideFn:l,calculationType:u,stretchingColumnWidthFn:h,inlineStartOffset:f}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=c,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var e,t=0,n=!0,r=[],o=0,i=0,l=s.get(this),u=l.calculationType,c=l.overrideFn,d=l.scrollOffset,h=Math.max(l.scrollOffset,0),f=l.totalColumns,v=l.viewportWidth,g=h>0?v+1:v,p=0;p<f;p++)if(e=this._getColumnWidth(p),t<=h&&u!==a.FULLY_VISIBLE_TYPE&&(this.startColumn=p,o=e),t>=h&&t+(u===a.FULLY_VISIBLE_TYPE?e:0)<=h+g&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=p,o=e),this.endColumn=p),r.push(t),t+=e,i=e,u!==a.FULLY_VISIBLE_TYPE&&(this.endColumn=p),t>=h+v){n=!1;break}var y=d+v-g,m=u===a.FULLY_VISIBLE_TYPE?0:i,C=u===a.FULLY_VISIBLE_TYPE?o:0;if(y<-1*l.inlineStartOffset||d>r.at(-1)+m||-1*l.scrollOffset-l.viewportWidth>-1*C?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endColumn===f-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var w=r[this.endColumn]+e-r[this.startColumn-1];if((w<=v||u!==a.FULLY_VISIBLE_TYPE)&&(this.startColumn-=1),w>v)break}u===a.RENDER_TYPE&&null!==this.startColumn&&c&&c(this),this.startPosition=r[this.startColumn],void 0===this.startPosition&&(this.startPosition=null),f<this.endColumn&&(this.endColumn=f-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}},{key:"refreshStretching",value:function(e){if("none"!==this.stretch){var t=e;this.totalTargetWidth=t;for(var n=s.get(this),r=n.totalColumns,o=0,i=0;i<r;i++){var a=this._getColumnWidth(i),l=n.stretchingColumnWidthFn(void 0,i);"number"==typeof l?t-=l:o+=a}var u=t-o;if("all"===this.stretch&&u>0)this.stretchAllRatio=t/o,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&t!==1/0){var c=this._getColumnWidth(r-1),d=u+c;this.stretchLastWidth=d>=0?d:c}}}},{key:"getStretchedColumnWidth",value:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n}},{key:"_getStretchedAllColumnWidth",value:function(e,t){var n=0,r=s.get(this),o=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var i=Math.round(t*this.stretchAllRatio),a=r.stretchingColumnWidthFn(i,e);this.stretchAllColumnsWidth[e]=void 0===a?i:isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===o&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]}},{key:"_getStretchedLastColumnWidth",value:function(e){return e===s.get(this).totalColumns-1?this.stretchLastWidth:null}},{key:"_getColumnWidth",value:function(t){var n=s.get(this).columnWidthFn(t);return isNaN(n)&&(n=e.DEFAULT_WIDTH),n}}],[{key:"DEFAULT_WIDTH",get:function(){return 50}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6);var a=n(213),s=new WeakMap,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.viewportSize,r=t.scrollOffset,i=t.totalItems,a=t.itemSizeFn,l=t.overrideFn,u=t.calculationType,c=t.scrollbarHeight;(0,o.default)(this,e),s.set(this,{viewportHeight:n,scrollOffset:r,totalRows:i,rowHeightFn:a,overrideFn:l,calculationType:u,horizontalScrollbarHeight:c}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.isVisibleInTrimmingContainer=!1,this.calculate()}return(0,i.default)(e,[{key:"calculate",value:function(){for(var t,n=s.get(this),r=n.calculationType,o=n.overrideFn,i=n.rowHeightFn,l=n.scrollOffset,u=Math.max(n.scrollOffset,0),c=n.totalRows,d=n.viewportHeight,h=n.horizontalScrollbarHeight||0,f=0,v=!0,g=[],p=0,y=0,m=0;m<c;m++)if(t=i(m),isNaN(t)&&(t=e.DEFAULT_HEIGHT),f<=u&&r!==a.FULLY_VISIBLE_TYPE&&(this.startRow=m,p=t),f>=u&&f+(r===a.FULLY_VISIBLE_TYPE?t:0)<=u+d-h&&(null===this.startRow&&(this.startRow=m,p=t),this.endRow=m),g.push(f),f+=t,y=t,r!==a.FULLY_VISIBLE_TYPE&&(this.endRow=m),f>=u+d-h){v=!1;break}var C=l+d-h,w=r===a.FULLY_VISIBLE_TYPE?p:0,E=r===a.FULLY_VISIBLE_TYPE?0:y;if(C<w||l>g.at(-1)+E?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,this.endRow===c-1&&v)for(this.startRow=this.endRow;this.startRow>0;){var R=g[this.endRow]+t-g[this.startRow-1];if((R<=d-h||r!==a.FULLY_VISIBLE_TYPE)&&(this.startRow-=1),R>=d-h)break}r===a.RENDER_TYPE&&null!==this.startRow&&o&&o(this),this.startPosition=g[this.startRow],void 0===this.startPosition&&(this.startPosition=null),c<this.endRow&&(this.endRow=c-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}],[{key:"DEFAULT_HEIGHT",get:function(){return 23}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(28),n(35),n(23),n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=r(n(63)),l=r(n(64)),u=r(n(214));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(0,o.default)(this,e),(0,a.default)(this,"highlight",null),(0,a.default)(this,"from",null),(0,a.default)(this,"to",null),c(this,d,{writable:!0,value:!1}),this.highlight=t.clone().normalize(),this.from=n.clone(),this.to=r.clone(),(0,l.default)(this,d,i)}return(0,i.default)(e,[{key:"setHighlight",value:function(e){return this.highlight=e.clone().normalize(),this}},{key:"setFrom",value:function(e){return this.from=e.clone(),this}},{key:"setTo",value:function(e){return this.to=e.clone(),this}},{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}},{key:"getOuterHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getOuterWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"getHeight",value:function(){if(this.from.row<0&&this.to.row<0)return 0;var e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getWidth",value:function(){if(this.from.col<0&&this.to.col<0)return 0;var e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}},{key:"getCellsCount",value:function(){return this.getWidth()*this.getHeight()}},{key:"includes",value:function(e){var t=e.row,n=e.col,r=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return r.row<=t&&o.row>=t&&r.col<=n&&o.col>=n}},{key:"includesRange",value:function(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}},{key:"isEqual",value:function(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}},{key:"isOverlappingHorizontally",value:function(e){return this.getOuterTopRightCorner().col>=e.getOuterTopLeftCorner().col&&this.getOuterTopRightCorner().col<=e.getOuterTopRightCorner().col||this.getOuterTopLeftCorner().col<=e.getOuterTopRightCorner().col&&this.getOuterTopLeftCorner().col>=e.getOuterTopLeftCorner().col}},{key:"isOverlappingVertically",value:function(e){return this.getOuterBottomRightCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomRightCorner().row<=e.getOuterBottomRightCorner().row||this.getOuterTopRightCorner().row<=e.getOuterBottomRightCorner().row&&this.getOuterTopRightCorner().row>=e.getOuterTopRightCorner().row}},{key:"expand",value:function(e){var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=this.getDirection(),o=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),a=Math.min(t.row,o.row),s=Math.min(t.col,o.col),l=Math.max(n.row,i.row),u=Math.max(n.col,i.col),c=this._createCellCoords(a,s),d=this._createCellCoords(l,u);return this.from=c,this.to=d,this.setDirection(r),this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally(),!0}},{key:"getDirection",value:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var r=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];this.from=r[0],this.to=r[1];break;case"SW-NE":var o=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];this.from=o[0],this.to=o[1]}}},{key:"getVerticalDirection",value:function(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}},{key:"getHorizontalDirection",value:function(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}},{key:"flipDirectionVertically",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}},{key:"flipDirectionHorizontally",value:function(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}},{key:"getTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getTopEndCorner():this.getTopStartCorner()}},{key:"getBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getBottomStartCorner():this.getBottomEndCorner()}},{key:"getTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}},{key:"getTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getTopStartCorner():this.getTopEndCorner()}},{key:"getBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}},{key:"getBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getBottomEndCorner():this.getBottomStartCorner()}},{key:"getOuterTopStartCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterTopLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}},{key:"getOuterBottomEndCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterBottomRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}},{key:"getOuterTopEndCorner",value:function(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getOuterTopRightCorner",value:function(){return(0,s.default)(this,d)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}},{key:"getOuterBottomStartCorner",value:function(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getOuterBottomLeftCorner",value:function(){return(0,s.default)(this,d)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getOuterTopLeftCorner().isEqual(this._createCellCoords(t.from.row,t.from.col))||this.getOuterTopRightCorner().isEqual(this._createCellCoords(t.from.row,t.to.col))||this.getOuterBottomLeftCorner().isEqual(this._createCellCoords(t.to.row,t.from.col))||this.getOuterBottomRightCorner().isEqual(this._createCellCoords(t.to.row,t.to.col))))||(e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof u.default))return!1;if(t){var n=t.from,r=t.to;if(t.includes(e)){if(this.getOuterTopStartCorner().isEqual(this._createCellCoords(n.row,n.col)))return this.getOuterBottomEndCorner();if(this.getOuterTopEndCorner().isEqual(this._createCellCoords(n.row,r.col)))return this.getOuterBottomStartCorner();if(this.getOuterBottomStartCorner().isEqual(this._createCellCoords(r.row,n.col)))return this.getOuterTopEndCorner();if(this.getOuterBottomEndCorner().isEqual(this._createCellCoords(r.row,r.col)))return this.getOuterTopStartCorner()}}return e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0}},{key:"getBordersSharedWith",value:function(e){if(!this.includesRange(e))return[];var t=Math.min(this.from.row,this.to.row),n=Math.max(this.from.row,this.to.row),r=Math.min(this.from.col,this.to.col),o=Math.max(this.from.col,this.to.col),i=Math.min(e.from.row,e.to.row),a=Math.max(e.from.row,e.to.row),s=Math.min(e.from.col,e.to.col),l=Math.max(e.from.col,e.to.col),u=[];return t===i&&u.push("top"),o===l&&u.push("right"),n===a&&u.push("bottom"),r===s&&u.push("left"),u}},{key:"getInner",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)this.from.row===r&&this.from.col===o||this.to.row===r&&this.to.col===o||n.push(this._createCellCoords(r,o));return n}},{key:"getAll",value:function(){for(var e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),n=[],r=e.row;r<=t.row;r++)for(var o=e.col;o<=t.col;o++)e.row===r&&e.col===o?n.push(e):t.row===r&&t.col===o?n.push(t):n.push(this._createCellCoords(r,o));return n}},{key:"forAll",value:function(e){for(var t=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=t.row;r<=n.row;r++)for(var o=t.col;o<=n.col;o++){if(!1===e(r,o))return}}},{key:"clone",value:function(){return new e(this.highlight,this.from,this.to,(0,s.default)(this,d))}},{key:"toObject",value:function(){return{from:this.from.toObject(),to:this.to.toObject()}}},{key:"_createCellCoords",value:function(e,t){return new u.default(e,t,(0,s.default)(this,d))}}]),e}();t.default=h},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3));n(4),n(1),n(5),n(7),n(6),n(57),n(28);var a=n(15),s=n(51),l=n(90),u=n(78),c=n(24),d=new WeakMap,h=function(){function e(t,n,r,i,a,s){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;(0,o.default)(this,e),this.wtSettings=r,this.domBindings=n,this.wtTable=a,this.selections=s,this.parent=l,this.eventManager=i,this.facadeGetter=t,d.set(this,{selectedCellBeforeTouchEnd:void 0,dblClickTimeout:[null,null],dblClickOrigin:[null,null]}),this.registerEvents()}return(0,i.default)(e,[{key:"registerEvents",value:function(){var e=this;this.eventManager.addEventListener(this.wtTable.holder,"contextmenu",(function(t){return e.onContextMenu(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseover",(function(t){return e.onMouseOver(t)})),this.eventManager.addEventListener(this.wtTable.TABLE,"mouseout",(function(t){return e.onMouseOut(t)}));var t=function(){e.eventManager.addEventListener(e.wtTable.holder,"touchstart",(function(t){return e.onTouchStart(t)})),e.eventManager.addEventListener(e.wtTable.holder,"touchend",(function(t){return e.onTouchEnd(t)})),e.momentumScrolling||(e.momentumScrolling={}),e.eventManager.addEventListener(e.wtTable.holder,"scroll",(function(){clearTimeout(e.momentumScrolling._timeout),e.momentumScrolling.ongoing||e.wtSettings.getSetting("onBeforeTouchScroll"),e.momentumScrolling.ongoing=!0,e.momentumScrolling._timeout=setTimeout((function(){e.touchApplied||(e.momentumScrolling.ongoing=!1,e.wtSettings.getSetting("onAfterMomentumScroll"))}),200)}))};(0,u.isMobileBrowser)()?t():((0,l.isTouchSupported)()&&t(),e.eventManager.addEventListener(e.wtTable.holder,"mouseup",(function(t){return e.onMouseUp(t)})),e.eventManager.addEventListener(e.wtTable.holder,"mousedown",(function(t){return e.onMouseDown(t)})))}},{key:"selectedCellWasTouched",value:function(e){var t=d.get(this),n=this.parentCell(e).coords;if(t.selectedCellBeforeTouchEnd&&n){var r=[n.row,t.selectedCellBeforeTouchEnd.from.row],o=r[0],i=r[1],a=[n.col,t.selectedCellBeforeTouchEnd.from.col];return o===i&&a[0]===a[1]}return!1}},{key:"parentCell",value:function(e){var t={},n=this.wtTable.TABLE,r=(0,a.closestDown)(e,["TD","TH"],n);return r?(t.coords=this.wtTable.getCoords(r),t.TD=r):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"current")?(t.coords=this.selections.getCell().cellRange.highlight,t.TD=this.wtTable.getCell(t.coords)):(0,a.hasClass)(e,"wtBorder")&&(0,a.hasClass)(e,"area")&&this.selections.createOrGetArea().cellRange&&(t.coords=this.selections.createOrGetArea().cellRange.to,t.TD=this.wtTable.getCell(t.coords)),t}},{key:"onMouseDown",value:function(e){var t=d.get(this),n=this.domBindings.rootDocument.activeElement,r=(0,s.partial)(a.getParent,e.target),o=e.target;if(o!==n&&r(0)!==n&&r(1)!==n){var i=this.parentCell(o);(0,a.hasClass)(o,"corner")?this.wtSettings.getSetting("onCellCornerMouseDown",e,o):i.TD&&this.wtSettings.has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,i.coords,i.TD),(0===e.button||this.touchApplied)&&i.TD&&(t.dblClickOrigin[0]=i.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout((function(){t.dblClickOrigin[0]=null}),1e3))}}},{key:"onContextMenu",value:function(e){if(this.wtSettings.has("onCellContextMenu")){var t=this.parentCell(e.target);t.TD&&this.callListener("onCellContextMenu",e,t.coords,t.TD)}}},{key:"onMouseOver",value:function(e){if(this.wtSettings.has("onCellMouseOver")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=this.parent||this;n&&n!==r.lastMouseOver&&(0,a.isChildOf)(n,t)&&(r.lastMouseOver=n,this.callListener("onCellMouseOver",e,this.wtTable.getCoords(n),n))}}},{key:"onMouseOut",value:function(e){if(this.wtSettings.has("onCellMouseOut")){var t=this.wtTable.TABLE,n=(0,a.closestDown)(e.target,["TD","TH"],t),r=(0,a.closestDown)(e.relatedTarget,["TD","TH"],t),o=this.parent||this;n&&n!==r&&(0,a.isChildOf)(n,t)&&(this.callListener("onCellMouseOut",e,this.wtTable.getCoords(n),n),null===r&&(o.lastMouseOver=null))}}},{key:"onMouseUp",value:function(e){var t=d.get(this),n=this.parentCell(e.target);n.TD&&this.wtSettings.has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),(0===e.button||this.touchApplied)&&(n.TD===t.dblClickOrigin[0]&&n.TD===t.dblClickOrigin[1]?((0,a.hasClass)(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),t.dblClickOrigin[0]=null,t.dblClickOrigin[1]=null):n.TD===t.dblClickOrigin[0]&&(t.dblClickOrigin[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout((function(){t.dblClickOrigin[1]=null}),500)))}},{key:"onTouchStart",value:function(e){d.get(this).selectedCellBeforeTouchEnd=this.selections.getCell().cellRange,this.touchApplied=!0,this.onMouseDown(e)}},{key:"onTouchEnd",value:function(e){var t,n=e.target,r=null===(t=this.parentCell(n))||void 0===t?void 0:t.coords,o=(0,c.isDefined)(r)&&r.row>=0&&r.col>=0;if(e.cancelable&&o&&this.wtSettings.getSetting("isDataViewInstance")){(0,u.isIOS)()&&((0,u.isChromeWebKit)()||(0,u.isFirefoxWebKit)())&&this.selectedCellWasTouched(n)&&!["A","BUTTON","INPUT"].includes(n.tagName)?e.preventDefault():this.selectedCellWasTouched(n)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}},{key:"callListener",value:function(e,t,n,r){var o=this.wtSettings.getSettingPure(e);o&&o(t,n,r,this.facadeGetter())}},{key:"destroy",value:function(){var e=d.get(this);clearTimeout(e.dblClickTimeout[0]),clearTimeout(e.dblClickTimeout[1]),this.eventManager.destroy()}}]),e}();t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.Renderer=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(427));t.RowHeadersRenderer=a.default;var s=r(n(432));t.ColumnHeadersRenderer=s.default;var l=r(n(433));t.ColGroupRenderer=l.default;var u=r(n(434));t.RowsRenderer=u.default;var c=r(n(435));t.CellsRenderer=c.default;var d=r(n(436));t.TableRenderer=d.default;var h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.TABLE,r=t.THEAD,i=t.COLGROUP,h=t.TBODY,f=t.rowUtils,v=t.columnUtils,g=t.cellRenderer;(0,o.default)(this,e),this.renderer=new d.default(n,{cellRenderer:g}),this.renderer.setRenderers({rowHeaders:new a.default,columnHeaders:new s.default(r),colGroup:new l.default(i),rows:new u.default(h),cells:new c.default}),this.renderer.setAxisUtils(f,v)}return(0,i.default)(e,[{key:"setFilters",value:function(e,t){return this.renderer.setFilters(e,t),this}},{key:"setViewportSize",value:function(e,t){return this.renderer.setViewportSize(e,t),this}},{key:"setHeaderContentRenderers",value:function(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}},{key:"adjust",value:function(){this.renderer.adjust()}},{key:"render",value:function(){this.renderer.render()}}]),e}();t.Renderer=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(295),s=r(n(428)),l=function(){function e(t,n,r){(0,o.default)(this,e),this.rootNode=t,this.nodesPool=n,this.sizeSet=new s.default,this.childNodeType=r.toUpperCase(),this.visualIndex=0,this.collectedNodes=[]}return(0,i.default)(e,[{key:"setSize",value:function(e){return this.sizeSet.setSize(e),this}},{key:"setOffset",value:function(e){return this.sizeSet.setOffset(e),this}},{key:"isSharedViewSet",value:function(){return this.sizeSet.isShared()}},{key:"getNode",value:function(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}},{key:"getCurrentNode",value:function(){var e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}},{key:"getRenderedChildCount",value:function(){var e=this.rootNode,t=this.sizeSet,n=0;if(this.isSharedViewSet())for(var r=e.firstElementChild;r;){if(r.tagName===this.childNodeType)n+=1;else if(t.isPlaceOn(a.WORKING_SPACE_TOP))break;r=r.nextElementSibling}else n=e.childElementCount;return n}},{key:"start",value:function(){this.collectedNodes.length=0,this.visualIndex=0;for(var e=this.rootNode,t=this.sizeSet,n=this.isSharedViewSet(),r=t.getViewSize().nextSize,o=this.getRenderedChildCount();o<r;){var i=this.nodesPool();!n||n&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)?e.appendChild(i):e.insertBefore(i,e.firstChild),o+=1}for(var s=n&&t.isPlaceOn(a.WORKING_SPACE_TOP);o>r;)e.removeChild(s?e.firstChild:e.lastChild),o-=1}},{key:"render",value:function(){var e=this.rootNode,t=this.sizeSet,n=this.visualIndex;this.isSharedViewSet()&&t.isPlaceOn(a.WORKING_SPACE_BOTTOM)&&(n+=t.sharedSize.nextSize);var r=e.childNodes[n];if(r.tagName!==this.childNodeType){var o=this.nodesPool();e.replaceChild(o,r),r=o}this.collectedNodes.push(r),this.visualIndex+=1}},{key:"end",value:function(){}}]),e}();t.default=l},function(e,t,n){"use strict";t.__esModule=!0,t.WORKING_SPACE_TOP=t.WORKING_SPACE_BOTTOM=t.WORKING_SPACE_ALL=void 0;t.WORKING_SPACE_ALL=0;t.WORKING_SPACE_TOP=1;t.WORKING_SPACE_BOTTOM=2},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.wtSettings.getSetting("totalRows"),t=this.wtSettings.getSetting("fixedRowsBottom"),n=e-t;return 0===e||0===t?-1:n<0?0:n},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsBottom"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){var e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow:function(){var e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getLastRenderedRow:function(){var e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow:function(){var e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getRenderedRowsCount:function(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount:function(){return this.dataAccessObject.countRowsVisible}};(0,n(12).defineGetter)(r,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r={getFirstRenderedRow:function(){return 0===this.wtSettings.getSetting("totalRows")?-1:0},getFirstVisibleRow:function(){return this.getFirstRenderedRow()},getLastRenderedRow:function(){return this.getRenderedRowsCount()-1},getLastVisibleRow:function(){return this.getLastRenderedRow()},getRenderedRowsCount:function(){var e=this.wtSettings.getSetting("totalRows");return Math.min(this.wtSettings.getSetting("fixedRowsTop"),e)},getVisibleRowsCount:function(){return this.getRenderedRowsCount()}};(0,n(12).defineGetter)(r,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});var o=r;t.default=o},function(e,t,n){var r=n(21),o=n(195),i=n(26),a=n(55),s=n(141).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){l(1)})),sham:!o},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.handleMouseEvent=function(e,t){var n=t.coords,o=t.selection,i=t.controller,s=t.cellCoordsFactory;a.get(e.type)({coords:n,selection:o,controller:i,cellCoordsFactory:s,isShiftKey:e.shiftKey,isLeftClick:(0,r.isLeftClick)(e)||"touchstart"===e.type,isRightClick:(0,r.isRightClick)(e)})},t.mouseDown=o,t.mouseOver=i,n(4),n(36),n(1),n(5),n(6);var r=n(62);function o(e){var t=e.isShiftKey,n=e.isLeftClick,r=e.isRightClick,o=e.coords,i=e.selection,a=e.controller,s=e.cellCoordsFactory,l=i.isSelected()?i.getSelectedRange().current():null,u=i.isSelectedByCorner(),c=i.isSelectedByRowHeader();if(t&&l)o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(o):(u||c)&&o.row>=0&&o.col>=0&&!a.cell?i.setRangeEnd(s(o.row,o.col)):u&&o.row<0&&!a.column?i.setRangeEnd(s(l.to.row,o.col)):c&&o.col<0&&!a.row?i.setRangeEnd(s(o.row,l.to.col)):(!u&&!c&&o.col<0||u&&o.col<0)&&!a.row?i.selectRows(Math.max(l.from.row,0),o.row,o.col):(!u&&!c&&o.row<0||c&&o.row<0)&&!a.column&&i.selectColumns(Math.max(l.from.col,0),o.col,o.row);else{var d=!i.inInSelection(o),h=n||r&&d;o.row<0&&o.col>=0&&!a.column?h&&i.selectColumns(o.col,o.col,o.row):o.col<0&&o.row>=0&&!a.row?h&&i.selectRows(o.row,o.row,o.col):o.col>=0&&o.row>=0&&!a.cell?h&&i.setRangeStart(o):o.col<0&&o.row<0&&i.selectAll(!0,!0)}}function i(e){var t=e.isLeftClick,n=e.coords,r=e.selection,o=e.controller,i=e.cellCoordsFactory;if(t){var a=r.isSelectedByRowHeader(),s=r.isSelectedByColumnHeader(),l=r.tableProps.countCols(),u=r.tableProps.countRows();s&&!o.column?r.setRangeEnd(i(u-1,n.col)):a&&!o.row?r.setRangeEnd(i(n.row,l-1)):o.cell||r.setRangeEnd(n)}}var a=new Map([["mousedown",o],["mouseover",i],["touchstart",o]])},function(e,t,n){var r=n(41);t.f=r},function(e,t,n){var r=n(271),o=n(47),i=n(301),a=n(73).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(115);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";n(20),n(37),t.__esModule=!0;var r={createIndexMap:!0,HidingMap:!0,IndexMap:!0,LinkedPhysicalIndexToValueMap:!0,PhysicalIndexToValueMap:!0,TrimmingMap:!0};t.createIndexMap=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!d.has(e))throw new Error('The provided map type ("'.concat(e,'") does not exist.'));return new(d.get(e))(t)},n(4),n(36),n(1),n(5),n(6);var o=n(466);t.HidingMap=o.HidingMap;var i=n(181);t.IndexMap=i.IndexMap;var a=n(468);t.LinkedPhysicalIndexToValueMap=a.LinkedPhysicalIndexToValueMap;var s=n(219);t.PhysicalIndexToValueMap=s.PhysicalIndexToValueMap;var l=n(469);t.TrimmingMap=l.TrimmingMap;var u=n(470);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))}));var c=n(182);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))}));var d=new Map([["hiding",o.HidingMap],["index",i.IndexMap],["linkedPhysicalIndexToValue",a.LinkedPhysicalIndexToValueMap],["physicalIndexToValue",s.PhysicalIndexToValueMap],["trimming",l.TrimmingMap]])},function(e,t,n){"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,r.arrayMap)(e,(function(e){return e-t.filter((function(t){return t<e})).length}))},t.getIncreasedIndexes=function(e,t){var n=t[0],o=t.length;return(0,r.arrayMap)(e,(function(e){return e>=n?e+o:e}))},n(30),n(1);var r=n(13)},function(e,t,n){"use strict";t.__esModule=!0,t.alterUtilsFactory=void 0,n(4),n(36),n(1),n(5),n(6);var r=n(305);t.getDecreasedIndexes=r.getDecreasedIndexes,t.getIncreasedIndexes=r.getIncreasedIndexes;var o=n(182),i=n(220),a=new Map([["indexesSequence",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:i.getListWithInsertedItems,getListWithRemovedItems:i.getListWithRemovedItems}]]);t.alterUtilsFactory=function(e){if(!1===a.has(e))throw new Error("Alter strategy with ID '".concat(e,"' does not exist."));return a.get(e)}},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.dictionaryKeys=t.DEFAULT_LANGUAGE_CODE=void 0,t.getDefaultLanguageDictionary=function(){return d.default},t.getLanguageDictionary=E,t.getLanguagesDictionaries=function(){return C()},t.getTranslatedPhrase=function(e,t,n){var r=E(e);if(null===r)return null;var o=r[t];if((0,s.isUndefined)(o))return null;var i=function(e,t){var n=e;return(0,a.arrayEach)((0,c.getPhraseFormatters)(),(function(r){n=r(e,t)})),n}(o,n);if(Array.isArray(i))return i[0];return i},t.getValidLanguageCode=function(e){var t=(0,l.normalizeLanguageCode)(e);R(t)||(t=v,(0,l.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=R,t.registerLanguageDictionary=w;var i=n(12),a=n(13),s=n(24),l=n(308),u=r(n(86)),c=n(476),d=r(n(478)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}t.dictionaryKeys=h;var v=d.default.languageCode;t.DEFAULT_LANGUAGE_CODE=v;var g=(0,u.default)("languagesDictionaries"),p=g.register,y=g.getItem,m=g.hasItem,C=g.getValues;function w(e,t){var n=e,r=t;return(0,i.isObject)(e)&&(n=(r=e).languageCode),function(e,t){e!==v&&(0,l.extendNotExistingKeys)(t,y(v))}(n,r),p(n,(0,i.deepClone)(r)),(0,i.deepClone)(r)}function E(e){return R(e)?(0,i.deepClone)(y(e)):null}function R(e){return m(e)}w(d.default)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createCellHeadersRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=n,i=r;if(e>t){var a=[i,o];o=a[0],i=a[1]}return"".concat(o,"-").concat(i)},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(function(t,n){(0,a.isUndefined)(e[n])&&(e[n]=t)})),e},t.normalizeLanguageCode=function(e){var t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return"".concat(t[1].toLowerCase(),"-").concat(t[2].toUpperCase());return e},t.warnUserAboutLanguageRegistration=function(e){(0,a.isDefined)(e)&&(0,l.error)((0,u.toSingleLine)(i||(i=(0,o.default)(['Language with code "','" was not found. You should register particular language \n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'],['Language with code "','" was not found. You should register particular language\\x20\n before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.'])),e))};var o=r(n(58));n(19),n(43);var i,a=n(24),s=n(12),l=n(69),u=n(59)},function(e,t,n){"use strict";n(37),n(30),n(16),n(20),n(66);var r=n(0);t.__esModule=!0,t.default=void 0,n(121),n(4),n(36),n(1),n(5),n(6),n(28),n(35),n(19),n(223),n(53),n(152);var o=r(n(29)),i=r(n(25)),a=r(n(2)),s=r(n(3)),l=n(479),u=n(87),c=n(13);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(e){function t(e){(0,a.default)(this,t),this.options=e,this.layerLevel=0,this.cell=(0,l.createHighlight)(u.CELL_TYPE,e),this.fill=(0,l.createHighlight)(u.FILL_TYPE,e),this.areas=new Map,this.headers=new Map,this.activeHeaders=new Map,this.customSelections=[]}return(0,s.default)(t,[{key:"isEnabledFor",value:function(e,t){var n=e;e===u.CELL_TYPE&&(n="current");var r=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof r&&(r=[r]),!1===r||Array.isArray(r)&&!r.includes(n)}},{key:"useLayerLevel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}},{key:"getCell",value:function(){return this.cell}},{key:"getFill",value:function(){return this.fill}},{key:"createOrGetArea",value:function(){var e,t=this.layerLevel;return this.areas.has(t)?e=this.areas.get(t):(e=(0,l.createHighlight)(u.AREA_TYPE,h({layerLevel:t},this.options)),this.areas.set(t,e)),e}},{key:"getAreas",value:function(){return(0,o.default)(this.areas.values())}},{key:"createOrGetHeader",value:function(){var e,t=this.layerLevel;return this.headers.has(t)?e=this.headers.get(t):(e=(0,l.createHighlight)(u.HEADER_TYPE,h({},this.options)),this.headers.set(t,e)),e}},{key:"getHeaders",value:function(){return(0,o.default)(this.headers.values())}},{key:"createOrGetActiveHeader",value:function(){var e,t=this.layerLevel;return this.activeHeaders.has(t)?e=this.activeHeaders.get(t):(e=(0,l.createHighlight)(u.ACTIVE_HEADER_TYPE,h({},this.options)),this.activeHeaders.set(t,e)),e}},{key:"getActiveHeaders",value:function(){return(0,o.default)(this.activeHeaders.values())}},{key:"getCustomSelections",value:function(){return(0,o.default)(this.customSelections.values())}},{key:"addCustomSelection",value:function(e){this.customSelections.push((0,l.createHighlight)(u.CUSTOM_SELECTION_TYPE,h(h({},this.options),e)))}},{key:"clear",value:function(){this.cell.clear(),this.fill.clear(),(0,c.arrayEach)(this.areas.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.headers.values(),(function(e){e.clear()})),(0,c.arrayEach)(this.activeHeaders.values(),(function(e){e.clear()}))}},{key:e,value:function(){return[this.cell,this.fill].concat((0,o.default)(this.areas.values()),(0,o.default)(this.headers.values()),(0,o.default)(this.activeHeaders.values()),(0,o.default)(this.customSelections))[Symbol.iterator]()}}]),t}(Symbol.iterator);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0;var o=r(n(311));t.DataMap=o.default;var i=r(n(493));t.MetaManager=i.default;var a=r(n(313));t.metaSchemaFactory=a.default;var s=n(498);t.replaceData=s.replaceData;var l=n(499);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var u=n(500);t.ExtendMetaPropertiesMod=u.ExtendMetaPropertiesMod},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6),n(60),n(61),n(46),n(77),n(33),n(20),n(19),n(30),n(23);var o=r(n(29)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(312),u=n(111),c=n(12),d=n(13),h=n(32),f=n(24),v=function(){function e(t,n,r){(0,a.default)(this,e),this.instance=t,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.duckSchema=this.createDuckSchema(),this.colToPropCache=void 0,this.propToColCache=void 0,this.createMap()}return(0,s.default)(e,[{key:"createMap",value:function(){var e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");var t,n=this.tableMeta.columns;if(this.colToPropCache=[],this.propToColCache=new Map,n){var r=0,o=0,i=!1;if("function"==typeof n){var a=(0,c.deepObjectSize)(e);r=a>0?a:this.countFirstRowKeys(),i=!0}else{var s=this.tableMeta.maxCols;r=Math.min(s,n.length)}for(t=0;t<r;t++){var l=i?n(t):n[t];if((0,c.isObject)(l)){if(void 0!==l.data){var u=i?o:t;this.colToPropCache[u]=l.data,this.propToColCache.set(l.data,u)}o+=1}}}else this.recursiveDuckColumns(e)}},{key:"countFirstRowKeys",value:function(){return(0,u.countFirstRowKeys)(this.dataSource)}},{key:"recursiveDuckColumns",value:function(e,t,n){var r,o=this,a=t,s=n;return void 0===a&&(a=0,s=""),"object"!==(0,i.default)(e)||Array.isArray(e)||(0,c.objectEach)(e,(function(e,t){null===e?(r=s+t,o.colToPropCache.push(r),o.propToColCache.set(r,a),a+=1):a=o.recursiveDuckColumns(e,a,"".concat(t,"."))})),a}},{key:"colToProp",value:function(e){if(!1===Number.isInteger(e))return e;var t=this.instance.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,f.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}},{key:"propToCol",value:function(e){var t=this.propToColCache.get(e);if((0,f.isDefined)(t))return this.instance.toVisualColumn(t);var n=this.instance.toVisualColumn(e);return null===n?e:n}},{key:"getSchema",value:function(){var e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}},{key:"createDuckSchema",value:function(){return this.dataSource&&this.dataSource[0]?(0,c.duckSchema)(this.dataSource[0]):{}}},{key:"refreshDuckSchema",value:function(){this.duckSchema=this.createDuckSchema()}},{key:"createRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.source,i=r.mode,a=void 0===i?"above":i,s=this.instance.countSourceRows(),l=s,u=0,d=e;("number"!=typeof d||d>=s)&&(d=s),d<this.instance.countRows()&&(l=this.instance.toPhysicalRow(d));var f=this.instance.runHooks("beforeCreateRow",d,n,o);if(!1===f||null===l)return{delta:0};for(var v=this.tableMeta.maxRows,g=this.getSchema().length,p=[],y=function(){var e=null;"array"===t.instance.dataType?t.tableMeta.dataSchema?e=(0,c.deepClone)(t.getSchema()):(e=[],(0,h.rangeEach)(g-1,(function(){return e.push(null)}))):"function"===t.instance.dataType?e=t.tableMeta.dataSchema(d+u):(e={},(0,c.deepExtend)(e,t.getSchema())),p.push(e),u+=1};u<n&&s+u<v;)y();this.instance.rowIndexMapper.insertIndexes(d,u),"below"===a&&(l=Math.min(l+1,s)),this.spliceData(l,0,p);var m=this.instance.toVisualRow(l);return this.instance.countSourceRows()===p.length&&this.instance.columnIndexMapper.initToLength(this.instance.getInitialColumnCount()),u>0&&(null==e?this.metaManager.createRow(null,u):"auto"!==o&&this.metaManager.createRow(l,n)),this.instance.runHooks("afterCreateRow",m,u,o),this.instance.forceFullRender=!0,{delta:u,startPhysicalIndex:l}}},{key:"createCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=n.mode,i=void 0===o?"start":o;if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var a=this.dataSource,s=this.tableMeta.maxCols,l=this.instance.countSourceCols(),u=e;("number"!=typeof u||u>=l)&&(u=l);var c=this.instance.runHooks("beforeCreateCol",u,t,r);if(!1===c)return{delta:0};var d=l;u<this.instance.countCols()&&(d=this.instance.toPhysicalColumn(u));var h=this.instance.countSourceRows(),f=this.instance.countCols(),v=0,g=d;"end"===i&&(g=Math.min(g+1,l));for(var p=g;v<t&&f<s;){if("number"!=typeof u||u>=f)if(h>0)for(var y=0;y<h;y+=1)void 0===a[y]&&(a[y]=[]),a[y].push(null);else a.push([null]);else for(var m=0;m<h;m++)a[m].splice(g,0,null);v+=1,g+=1,f+=1}this.instance.columnIndexMapper.insertIndexes(u,v),v>0&&(null==e?this.metaManager.createColumn(null,v):"auto"!==r&&this.metaManager.createColumn(p,t));var C=this.instance.toVisualColumn(p);return this.instance.runHooks("afterCreateCol",C,v,r),this.instance.forceFullRender=!0,this.refreshDuckSchema(),{delta:v,startPhysicalIndex:p}}},{key:"removeRow",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,o=Number.isInteger(e)?e:-n,i=this.visualRowsToPhysical(o,n),a=this.instance.countSourceRows();o=(a+o)%a;var s=this.instance.runHooks("beforeRemoveRow",o,i.length,i,r);if(!1===s)return!1;var l=i.length;if(this.filterData(o,l,i),o<this.instance.countRows()){this.instance.rowIndexMapper.removeIndexes(i);var u=(0,f.isDefined)(this.tableMeta.columns)||(0,f.isDefined)(this.tableMeta.dataSchema);0===this.instance.rowIndexMapper.getNotTrimmedIndexesLength()&&!1===u&&this.instance.columnIndexMapper.setIndexesSequence([])}var c=i.slice(0).sort((function(e,t){return t-e}));return c.forEach((function(e){t.metaManager.removeRow(e,1)})),this.instance.runHooks("afterRemoveRow",o,l,i,r),this.instance.forceFullRender=!0,!0}},{key:"removeCol",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;if("object"===this.instance.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");var r="number"!=typeof e?-t:e;r=(this.instance.countCols()+r)%this.instance.countCols();var o=this.visualColumnsToPhysical(r,t),i=o.slice(0).sort((function(e,t){return t-e})),a=this.instance.runHooks("beforeRemoveCol",r,t,o,n);if(!1===a)return!1;for(var s=!0,l=i.length,u=this.dataSource,c=0;c<l;c++)s&&o[0]!==o[c]-c&&(s=!1);if(s)for(var d=0,h=this.instance.countSourceRows();d<h;d++)u[d].splice(o[0],t),0===d&&this.metaManager.removeColumn(o[0],t);else for(var f=0,v=this.instance.countSourceRows();f<v;f++)for(var g=0;g<l;g++)u[f].splice(i[g],1),0===f&&this.metaManager.removeColumn(i[g],1);return r<this.instance.countCols()&&(this.instance.columnIndexMapper.removeIndexes(o),0===this.instance.columnIndexMapper.getNotTrimmedIndexesLength()&&this.instance.rowIndexMapper.setIndexesSequence([])),this.instance.runHooks("afterRemoveCol",r,t,o,n),this.instance.forceFullRender=!0,this.refreshDuckSchema(),!0}},{key:"spliceCol",value:function(e,t,n){for(var r=this.instance.getDataAtCol(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return(0,d.to2dArray)(s),this.instance.populateFromArray(t,e,s,null,null,"spliceCol"),o}},{key:"spliceRow",value:function(e,t,n){for(var r=this.instance.getSourceDataAtRow(e),o=r.slice(t,t+n),i=r.slice(t+n),a=arguments.length,s=new Array(a>3?a-3:0),l=3;l<a;l++)s[l-3]=arguments[l];(0,d.extendArray)(s,i);for(var u=0;u<n;)s.push(null),u+=1;return this.instance.populateFromArray(e,t,[s],null,null,"spliceRow"),o}},{key:"spliceData",value:function(e,t,n){var r=this;if(!1!==this.instance.runHooks("beforeDataSplice",e,t,n)){var i=[].concat((0,o.default)(this.dataSource.slice(0,e)),(0,o.default)(n),(0,o.default)(this.dataSource.slice(e)));this.dataSource.length=0,i.forEach((function(e){return r.dataSource.push(e)}))}}},{key:"filterData",value:function(e,t,n){var r=this.instance.runHooks("filterData",e,t,n);!1===Array.isArray(r)&&(r=this.dataSource.filter((function(e,t){return-1===n.indexOf(t)}))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,r)}},{key:"get",value:function(e,t){var n=this.instance.toPhysicalRow(e),r=this.dataSource[n],o=this.instance.runHooks("modifyRowData",n),i=null;if((r=isNaN(o)?o:r)&&r.hasOwnProperty&&(0,c.hasOwnProperty)(r,t))i=r[t];else if("string"==typeof t&&t.indexOf(".")>-1){var a=t.split("."),s=r;if(!s)return null;for(var l=0,u=a.length;l<u;l++)if(void 0===(s=s[a[l]]))return null;i=s}else"function"==typeof t&&(i=t(this.dataSource.slice(n,n+1)[0]));if(this.instance.hasHook("modifyData")){var d=(0,c.createObjectPropListener)(i);this.instance.runHooks("modifyData",n,this.propToCol(t),d,"get"),d.isTouched()&&(i=d.value)}return i}},{key:"getCopyable",value:function(e,t){return this.instance.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}},{key:"set",value:function(e,t,n){var r=this.instance.toPhysicalRow(e),o=n,i=this.dataSource[r],a=this.instance.runHooks("modifyRowData",r);if(i=isNaN(a)?a:i,this.instance.hasHook("modifyData")){var s=(0,c.createObjectPropListener)(o);this.instance.runHooks("modifyData",r,this.propToCol(t),s,"set"),s.isTouched()&&(o=s.value)}if(i&&i.hasOwnProperty&&(0,c.hasOwnProperty)(i,t))i[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){var l,u=t.split("."),d=i,h=0;for(h=0,l=u.length-1;h<l;h++)void 0===d[u[h]]&&(d[u[h]]={}),d=d[u[h]];d[u[h]]=o}else"function"==typeof t?t(this.dataSource.slice(r,r+1)[0],o):i[t]=o}},{key:"visualRowsToPhysical",value:function(e,t){for(var n,r=this.instance.countSourceRows(),o=[],i=(r+e)%r,a=t;i<r&&a;)n=this.instance.toPhysicalRow(i),o.push(n),a-=1,i+=1;return o}},{key:"visualColumnsToPhysical",value:function(e,t){for(var n=this.instance.countCols(),r=[],o=(n+e)%n,i=t;o<n&&i;){var a=this.instance.toPhysicalColumn(o);r.push(a),i-=1,o+=1}return r}},{key:"clear",value:function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")}},{key:"getLength",value:function(){var e,t=this.tableMeta.maxRows;e=t<0||0===t?0:t||1/0;var n=this.instance.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(n,e)}},{key:"getAll",value:function(){var t={row:0,col:0},n={row:Math.max(this.instance.countRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return t.row-n.row!=0||this.instance.countSourceRows()?this.getRange(t,n,e.DESTINATION_RENDERER):[]}},{key:"countCachedColumns",value:function(){return this.colToPropCache.length}},{key:"getRange",value:function(t,n,r){var o,i,a,s=[],l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(0===l||0===u)return[];var c=r===e.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,d=Math.min(Math.max(l-1,0),Math.max(t.row,n.row)),h=Math.min(Math.max(u-1,0),Math.max(t.col,n.col));for(o=Math.min(t.row,n.row);o<=d;o++){a=[];var f=o>=0?this.instance.toPhysicalRow(o):o;for(i=Math.min(t.col,n.col);i<=h&&null!==f;i++)a.push(c.call(this,o,this.colToProp(i)));null!==f&&s.push(a)}return s}},{key:"getText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_RENDERER))}},{key:"getCopyableText",value:function(t,n){return(0,l.stringify)(this.getRange(t,n,e.DESTINATION_CLIPBOARD_GENERATOR))}},{key:"destroy",value:function(){this.instance=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}],[{key:"DESTINATION_RENDERER",get:function(){return 1}},{key:"DESTINATION_CLIPBOARD_GENERATOR",get:function(){return 2}}]),e}();t.default=v},function(e,t,n){"use strict";t.__esModule=!0,t.stringify=t.parse=void 0;var r=n(492);t.parse=r.parse,t.stringify=r.stringify},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(14)),i=n(24),a=n(12);t.default=function(){return{_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",isEmptyCol:function(e){var t,n,r;for(t=0,n=this.countRows();t<n;t++)if(r=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(r))return!1;return!0},isEmptyRow:function(e){var t,n,r,s;for(t=0,n=this.countCols();t<n;t++)if(r=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(r))return"object"===(0,o.default)(r)&&(s=this.getCellMeta(e,t),(0,a.isObjectEqual)(this.getSchema()[s.prop],r));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:void 0,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0}}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(45),n(5),n(6),n(19),n(33),n(46),n(223),n(53),n(152),n(23);var o=r(n(29)),i=r(n(2)),a=r(n(3)),s=n(13),l=n(153),u=function(e){function t(e){(0,i.default)(this,t),this.valueFactory=e,this.data=[],this.index=[],this.holes=new Set}return(0,a.default)(t,[{key:"obtain",value:function(e){(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)}),"Expecting an unsigned number.");var t,n=this._getStorageIndexByKey(e);if(n>=0)void 0===(t=this.data[n])&&(t=this.valueFactory(e),this.data[n]=t);else if(t=this.valueFactory(e),this.holes.size>0){var r=this.holes.values().next().value;this.holes.delete(r),this.data[r]=t,this.index[e]=r}else this.data.push(t),this.index[e]=this.data.length-1;return t}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=[],r=this.data.length,i=0;i<t;i++)n.push(r+i),this.data.push(void 0);var a=(0,l.isNullish)(e)?this.index.length:e;this.index=[].concat((0,o.default)(this.index.slice(0,a)),n,(0,o.default)(this.index.slice(a)))}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,l.assert)((function(){return(0,l.isUnsignedNumber)(e)||(0,l.isNullish)(e)}),"Expecting an unsigned number or null/undefined argument.");for(var n=this.index.splice((0,l.isNullish)(e)?this.index.length-t:e,t),r=0;r<n.length;r++){var o=n[r];"number"==typeof o&&this.holes.add(o)}}},{key:"size",value:function(){return this.data.length-this.holes.size}},{key:"values",value:function(){var e=this;return(0,s.arrayFilter)(this.data,(function(t,n){return!e.holes.has(n)}))[Symbol.iterator]()}},{key:"entries",value:function(){for(var e=[],t=0;t<this.data.length;t++){var n=this._getKeyByStorageIndex(t);-1!==n&&e.push([n,this.data[t]])}var r=0;return{next:function(){if(r<e.length){var t=e[r];return r+=1,{value:t,done:!1}}return{done:!0}}}}},{key:"clear",value:function(){this.data=[],this.index=[],this.holes.clear()}},{key:"_getStorageIndexByKey",value:function(e){return this.index.length>e?this.index[e]:-1}},{key:"_getKeyByStorageIndex",value:function(e){return this.index.indexOf(e)}},{key:e,value:function(){return this.entries()}}]),t}(Symbol.iterator);t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.normalizeKeys=t.normalizeEventKey=t.getKeysList=void 0,n(4),n(36),n(1),n(5),n(6),n(74),n(77),n(50);var r=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=function(e){return e.map((function(e){var t=e.toLowerCase();return r.has(t)?r.get(t):t})).sort().join("+")};t.getKeysList=function(e){return e.split("+")};t.normalizeEventKey=function(e){return e.toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0,t.TextCellType=t.CELL_TYPE=void 0;var r=n(506);t.CELL_TYPE=r.CELL_TYPE,t.TextCellType=r.TextCellType},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.SHORTCUTS_GROUP_EDITOR=t.EDITOR_TYPE=t.EDITOR_STATE=t.BaseEditor=void 0;var o=r(n(22)),i=r(n(10)),a=r(n(11)),s=r(n(8)),l=r(n(2)),u=r(n(3));n(299),n(123),n(70),n(28);var c=n(24),d=n(12),h=n(148),f=r(n(508)),v=n(15);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.default)(this,n)}}t.EDITOR_TYPE="base";var p=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});t.EDITOR_STATE=p;t.SHORTCUTS_GROUP_EDITOR="baseEditor";var y=function(){function e(t){(0,l.default)(this,e),this.hot=t,this.instance=t,this.state=p.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.TD=null,this.row=null,this.col=null,this.prop=null,this.originalValue=null,this.cellProperties=null,this.init()}return(0,u.default)(e,[{key:"_fireCallbacks",value:function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}},{key:"init",value:function(){}},{key:"getValue",value:function(){throw Error("Editor getValue() method unimplemented")}},{key:"setValue",value:function(){throw Error("Editor setValue() method unimplemented")}},{key:"open",value:function(){throw Error("Editor open() method unimplemented")}},{key:"close",value:function(){throw Error("Editor close() method unimplemented")}},{key:"prepare",value:function(e,t,n,r,o,i){this.TD=r,this.row=e,this.col=t,this.prop=n,this.originalValue=o,this.cellProperties=i,this.state=p.VIRGIN}},{key:"extend",value:function(){return function(e){(0,i.default)(n,e);var t=g(n);function n(){return(0,l.default)(this,n),t.apply(this,arguments)}return(0,u.default)(n)}(this.constructor)}},{key:"saveValue",value:function(e,t){var n,r,i,a,s=this;if(t){var l=this.hot.getSelectedLast();n=Math.max(Math.min(l[0],l[2]),0),r=Math.max(Math.min(l[1],l[3]),0),i=Math.max(l[0],l[2]),a=Math.max(l[1],l[3])}else{var u=[this.row,this.col,null,null];n=u[0],r=u[1],i=u[2],a=u[3]}var d=this.hot.runHooks("modifyGetCellCoords",n,r);if(Array.isArray(d)){var h=(0,o.default)(d,2);n=h[0],r=h[1]}var f=this.hot.getShortcutManager().getContext("editor"),v={runOnlyIf:function(){return(0,c.isDefined)(s.hot.getSelected())},group:"baseEditor"};this.isInFullEditMode()&&f.addShortcuts([{keys:[["ArrowUp"]],callback:function(){s.hot.selection.transformStart(-1,0)}},{keys:[["ArrowDown"]],callback:function(){s.hot.selection.transformStart(1,0)}},{keys:[["ArrowLeft"]],callback:function(){s.hot.selection.transformStart(0,-1*s.hot.getDirectionFactor())}},{keys:[["ArrowRight"]],callback:function(){s.hot.selection.transformStart(0,s.hot.getDirectionFactor())}}],v),this.hot.populateFromArray(n,r,e,i,a,"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===p.VIRGIN){var n=this.hot,r=n.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=n.columnIndexMapper.getRenderableFromVisualIndex(this.col);if(n.view.scrollViewport(n._createCellCoords(r,o)),this.state=p.EDITING,this.isInFullEditMode()){var i="string"==typeof e?e:(0,c.stringify)(this.originalValue);this.setValue(i)}this.open(t),this._opened=!0,this.focus(),n.view.render(),n.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,o=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),o.hot.view.render()}}if(!this.isWaiting()){var a=this.hot.getShortcutManager().getContext("editor");if(a.removeShortcutsByGroup("baseEditor"),a.removeShortcutsByGroup(h.SHORTCUTS_GROUP_NAVIGATION),this.state!==p.VIRGIN){if(this.state===p.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var s=this.getValue();r=this.cellProperties.trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=p.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){o.state=p.FINISHED,o.discardEditor(e)})):(this.state=p.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){o._fireCallbacks(!0)}))}}},{key:"cancelChanges",value:function(){this.state=p.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===p.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=p.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=p.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===p.WAITING}},{key:"getEditedCellRect",value:function(){var e,t=this.getEditedCell();if(t){var n=this.hot.view._wt,r=n.wtOverlays,o=n.wtViewport,i=this.hot.rootWindow,a=(0,v.offset)(t),s=(0,v.outerWidth)(t),l=(0,v.offset)(this.hot.rootElement),u=(0,v.outerWidth)(this.hot.rootElement),c=r.topOverlay.holder,d=r.inlineStartOverlay.holder,h=c!==i?c.scrollTop:0,f=d!==i?d.scrollLeft:0,g=i.innerWidth-l.left-u,p=(null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt).wtTable,y=p.name,m=["master","inline_start"].includes(y)?h:0,C=["master","top","bottom"].includes(y)?f:0,w=a.top===l.top?0:1,E=a.top-l.top-w-m,R=0;R=this.hot.isRtl()?i.innerWidth-a.left-s-g-1+C:a.left-l.left-1-C,["top","top_inline_start_corner"].includes(y)&&(E+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(y)&&(R+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));var S=this.hot.hasColHeaders(),b=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),T=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),O=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&b<=0||b===O)&&(E+=1),T<=0&&(R+=1);var _=o.rowsRenderCalculator.startPosition,I=o.columnsRenderCalculator.startPosition,k=Math.abs(r.inlineStartOverlay.getScrollPosition()),M=r.topOverlay.getScrollPosition(),N=(0,v.getScrollbarWidth)(this.hot.rootDocument),P=t.offsetTop+_-M,A=0;if(this.hot.isRtl()){var x=t.offsetLeft;A=x>=0?p.getWidth()-t.offsetLeft:Math.abs(x),A+=I-k-s}else A=t.offsetLeft+I-k;var D=(0,v.getComputedStyle)(this.TD,this.hot.rootWindow),L=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",H=parseInt(D[L],10)>0?0:1,B=parseInt(D.borderTopWidth,10)>0?0:1,F=(0,v.outerWidth)(t)+H,V=(0,v.outerHeight)(t)+B,U=(0,v.hasVerticalScrollbar)(c)?N:0,W=(0,v.hasHorizontalScrollbar)(d)?N:0,j=this.hot.view.maximumVisibleElementWidth(A)-U+H;return{top:E,start:R,height:V,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(P)-W+B,23),width:F,maxWidth:j}}}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}],[{key:"EDITOR_TYPE",get:function(){return"base"}}]),e}();t.BaseEditor=y,(0,d.mixin)(y,f.default)},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.CheckboxEditor=void 0;var r=n(518);t.EDITOR_TYPE=r.EDITOR_TYPE,t.CheckboxEditor=r.CheckboxEditor},function(e,t,n){"use strict";t.__esModule=!0,t.EDITOR_TYPE=t.DropdownEditor=void 0;var r=n(522);t.EDITOR_TYPE=r.EDITOR_TYPE,t.DropdownEditor=r.DropdownEditor},function(e,t,n){"use strict";t.__esModule=!0,t.NumericEditor=t.EDITOR_TYPE=void 0;var r=n(523);t.EDITOR_TYPE=r.EDITOR_TYPE,t.NumericEditor=r.NumericEditor},function(e,t,n){"use strict";t.__esModule=!0,t.PasswordEditor=t.EDITOR_TYPE=void 0;var r=n(524);t.EDITOR_TYPE=r.EDITOR_TYPE,t.PasswordEditor=r.PasswordEditor},function(e,t,n){"use strict";t.__esModule=!0,t.TimeEditor=t.EDITOR_TYPE=void 0;var r=n(527);t.EDITOR_TYPE=r.EDITOR_TYPE,t.TimeEditor=r.TimeEditor},function(e,t,n){"use strict";t.__esModule=!0,t.htmlRenderer=t.RENDERER_TYPE=void 0;var r=n(530);t.RENDERER_TYPE=r.RENDERER_TYPE,t.htmlRenderer=r.htmlRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.checkboxRenderer=t.RENDERER_TYPE=void 0;var r=n(532);t.RENDERER_TYPE=r.RENDERER_TYPE,t.checkboxRenderer=r.checkboxRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.numericRenderer=t.RENDERER_TYPE=void 0;var r=n(534);t.RENDERER_TYPE=r.RENDERER_TYPE,t.numericRenderer=r.numericRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.passwordRenderer=t.RENDERER_TYPE=void 0;var r=n(536);t.RENDERER_TYPE=r.RENDERER_TYPE,t.passwordRenderer=r.passwordRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.timeRenderer=t.RENDERER_TYPE=void 0;var r=n(537);t.RENDERER_TYPE=r.RENDERER_TYPE,t.timeRenderer=r.timeRenderer},function(e,t,n){"use strict";t.__esModule=!0,t.dateValidator=t.correctFormat=t.VALIDATOR_TYPE=void 0;var r=n(540);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.correctFormat=r.correctFormat,t.dateValidator=r.dateValidator},function(e,t,n){"use strict";var r=n(56),o=n(173),i=n(54),a=n(82),s=n(71),l=n(541),u=n(49),c=n(101),d=n(174);o("search",(function(e,t,n){return[function(t){var n=s(this),o=a(t)?void 0:c(t,e);return o?r(o,t,n):new RegExp(t)[e](u(n))},function(e){var r=i(this),o=u(e),a=n(t,r,o);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=d(r,o);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},function(e,t,n){"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){var t=new Date(e);if(!isNaN(new Date("".concat(e,"T00:00")).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},function(e,t,n){"use strict";t.__esModule=!0,t.numericValidator=t.VALIDATOR_TYPE=void 0;var r=n(542);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.numericValidator=r.numericValidator},function(e,t,n){"use strict";t.__esModule=!0,t.timeValidator=t.VALIDATOR_TYPE=void 0;var r=n(543);t.VALIDATOR_TYPE=r.VALIDATOR_TYPE,t.timeValidator=r.timeValidator},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6),n(37),n(23);var o=r(n(25)),i=r(n(2)),a=r(n(3)),s=n(12),l=n(32),u=n(24),c=function(){function e(t){(0,i.default)(this,e),this.samples=null,this.dataFactory=t,this.customSampleCount=null,this.allowDuplicates=!1}return(0,a.default)(e,[{key:"getSampleCount",value:function(){return this.customSampleCount?this.customSampleCount:e.SAMPLE_COUNT}},{key:"setSampleCount",value:function(e){this.customSampleCount=e}},{key:"setAllowDuplicates",value:function(e){this.allowDuplicates=e}},{key:"generateRowSamples",value:function(e,t){return this.generateSamples("row",t,e)}},{key:"generateColumnSamples",value:function(e,t){return this.generateSamples("col",t,e)}},{key:"generateSamples",value:function(e,t,n){var r=this,o=new Map,i="number"==typeof n?{from:n,to:n}:n,a=i.from,s=i.to;return(0,l.rangeEach)(a,s,(function(n){var i=r.generateSample(e,t,n);o.set(n,i)})),o}},{key:"generateSample",value:function(e,t,n){var r=this;if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");var i=new Map,a="row"===e?"col":"row",c=[];return(0,l.rangeEach)(t.from,t.to,(function(t){var l,d="row"===e?r.dataFactory(n,t):r.dataFactory(t,n),h=d.value,f=d.bundleSeed,v="string"==typeof f&&f.length>0;l=v?f:(0,s.isObject)(h)?"".concat(Object.keys(h).length):Array.isArray(h)?"".concat(h.length):"".concat((0,u.stringify)(h).length),i.has(l)||i.set(l,{needed:r.getSampleCount(),strings:[]});var g=i.get(l);g.needed&&((!(c.indexOf(h)>-1)||r.allowDuplicates||v)&&(g.strings.push((0,o.default)({value:h},a,t)),c.push(h),g.needed-=1))})),i}}],[{key:"SAMPLE_COUNT",get:function(){return 3}}]),e}();t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.PLUGIN_PRIORITY=t.PLUGIN_KEY=t.ColumnSorting=void 0;var r=n(577);t.PLUGIN_KEY=r.PLUGIN_KEY,t.PLUGIN_PRIORITY=r.PLUGIN_PRIORITY,t.ColumnSorting=r.ColumnSorting},function(e,t,n){var r=n(263),o=n(266),i=n(204),a=n(265);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(h(e))return d(e);return d(o.COLUMN_DATA_TYPE)},t.registerRootComparator=t.getRootComparator=void 0;var o=n(337),i=n(581),a=n(582),s=n(583),l=r(n(86)),u=(0,l.default)("sorting.compareFunctionFactory"),c=u.register,d=u.getItem,h=u.hasItem,f=(0,l.default)("sorting.mainSortComparator"),v=f.register,g=f.getItem;t.getRootComparator=g,t.registerRootComparator=v,c(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),c(a.COLUMN_DATA_TYPE,a.compareFunctionFactory),c(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),c(o.COLUMN_DATA_TYPE,o.compareFunctionFactory)},function(e,t,n){"use strict";t.__esModule=!0,t.COLUMN_DATA_TYPE=void 0,t.compareFunctionFactory=function(e,t,n){var i=t.locale;return function(t,a){var s=n.sortEmptyCells;return"string"==typeof t&&(t=t.toLocaleLowerCase(i)),"string"==typeof a&&(a=a.toLocaleLowerCase(i)),t===a?o.DO_NOT_SWAP:(0,r.isEmpty)(t)?(0,r.isEmpty)(a)?o.DO_NOT_SWAP:s&&"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(0,r.isEmpty)(a)?s&&"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(a)?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(a)?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(a)||(t=parseFloat(t),a=parseFloat(a)),t<a?"asc"===e?o.FIRST_BEFORE_SECOND:o.FIRST_AFTER_SECOND:t>a?"asc"===e?o.FIRST_AFTER_SECOND:o.FIRST_BEFORE_SECOND:o.DO_NOT_SWAP)}};var r=n(24),o=n(98);t.COLUMN_DATA_TYPE="default"},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(74);var o=r(n(2)),i=r(n(3)),a=n(13),s=n(12);function l(e,t){var n;return(0,a.arrayEach)(t,(function(t){var r=t.key?t.key.split(":"):null;if(Array.isArray(r)&&r[1]===e)return n=t,!1})),n}var u=function(){function e(t){(0,o.default)(this,e),this.hot=t,this.commands={},this.commonCallback=null}return(0,i.default)(e,[{key:"registerCommand",value:function(e,t){this.commands[e]=t}},{key:"setCommonCallback",value:function(e){this.commonCallback=e}},{key:"execute",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e.split(":"),u=i[0],c=2===i.length?i[1]:null,d=this.commands[u];if(!d)throw new Error("Menu command '".concat(u,"' not exists."));if(c&&d.submenu&&(d=l(c,d.submenu.items)),!0!==d.disabled&&("function"!=typeof d.disabled||!0!==d.disabled.call(this.hot))&&!(0,s.hasOwnProperty)(d,"submenu")){var h=[];"function"==typeof d.callback&&h.push(d.callback),"function"==typeof this.commonCallback&&h.push(this.commonCallback),r.unshift(i.join(":")),(0,a.arrayEach)(h,(function(e){return e.apply(t.hot,r)}))}}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(23);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(13),l=n(93);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=e;return o&&o.items?o=o.items:Array.isArray(o)||(o=t),(0,a.isObject)(o)?(0,a.objectEach)(o,(function(e,t){var o=n["string"==typeof e?e:t];o||(o=e),(0,a.isObject)(e)?(0,a.extend)(o,e):"string"==typeof o&&(o={name:o}),void 0===o.key&&(o.key=t),r.push(o)})):(0,s.arrayEach)(o,(function(e,t){var o=n[e];!o&&l.ITEMS.indexOf(e)>=0||(o||(o={name:e,key:"".concat(t)}),(0,a.isObject)(e)&&(0,a.extend)(o,e),void 0===o.key&&(o.key=t),r.push(o))})),r}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(this,e),this.hot=t,this.predefinedItems=(0,l.predefinedItems)(),this.defaultOrderPattern=n}return(0,i.default)(e,[{key:"setPredefinedItems",value:function(e){var t=this,n={};this.defaultOrderPattern.length=0,(0,a.objectEach)(e,(function(e,r){var o="";e.name===l.SEPARATOR?(n[l.SEPARATOR]=e,o=l.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,n[r]=e,o=e.key):(n[e.key]=e,o=e.key),t.defaultOrderPattern.push(o)})),this.predefinedItems=n}},{key:"getItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return u(e,this.defaultOrderPattern,this.predefinedItems)}}]),e}();t.default=c},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=l;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(39),a=n(24);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function l(e){return(0,a.isEmpty)(e.value)}t.CONDITION_NAME="empty",(0,i.registerCondition)("empty",l,{name:o.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(22)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),s=n(24),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(n)}t.CONDITION_NAME="eq",(0,l.registerCondition)("eq",c,{name:a.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=d;var i=r(n(22)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),s=n(39),l=n(343),u=n(344);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e,t){var n=(0,i.default)(t,2),r=n[0],o=n[1];if("numeric"===e.meta.type){var a=parseFloat(r,10),c=parseFloat(o,10);r=Math.min(a,c),o=Math.max(a,c)}else if("date"===e.meta.type){var d=(0,s.getCondition)(u.CONDITION_NAME,[o]),h=(0,s.getCondition)(l.CONDITION_NAME,[r]);return d(e)&&h(e)}return e.value>=r&&e.value<=o}t.CONDITION_NAME="between",(0,s.registerCondition)("between",d,{name:a.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(22)),a=r(n(84)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)>=0}t.CONDITION_NAME="date_after",(0,l.registerCondition)("date_after",c,{name:s.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c;var i=r(n(22)),a=r(n(84)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0],r=(0,a.default)(e.value,e.meta.dateFormat),o=(0,a.default)(n,e.meta.dateFormat);return!(!r.isValid()||!o.isValid())&&r.diff(o)<=0}t.CONDITION_NAME="date_before",(0,l.registerCondition)("date_before",c,{name:s.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.CONDITION_NAME=void 0,t.condition=c,n(23);var i=r(n(22)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17)),s=n(24),l=n(39);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function c(e,t){var n=(0,i.default)(t,1)[0];return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).indexOf((0,s.stringify)(n))>=0}t.CONDITION_NAME="contains",(0,l.registerCondition)("contains",c,{name:a.FILTERS_CONDITIONS_CONTAINS,inputsCount:1,showOperators:!0})},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(158);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunction";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){return e.some((function(e){return e.func(t)}))}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunction",s,l)},function(e,t,n){"use strict";n(4),n(5),n(7),n(6),n(16);var r=n(14);t.__esModule=!0,t.SHORT_NAME_FOR_COMPONENT=t.OPERATION_ID=void 0,t.operationResult=l,n(1),n(33);var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=i?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=e[s]}o.default=e,n&&n.set(e,o);return o}(n(17)),i=n(158);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.OPERATION_ID="disjunctionWithExtraCondition";var s=o.FILTERS_LABELS_DISJUNCTION;function l(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some((function(e){return e.func(t)}))&&e[e.length-1].func(t)}t.SHORT_NAME_FOR_COMPONENT=s,(0,i.registerOperation)("disjunctionWithExtraCondition",s,l)},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(22)),i=r(n(58));n(70),n(50),n(23),n(1);var a,s,l=r(n(2)),u=r(n(3)),c=n(13),d=n(12),h=n(59),f=r(n(75)),v=n(39),g=n(234),p=n(158),y=n(24),m=n(65),C="ConditionCollection.filteringStates",w=function(){function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,l.default)(this,e),this.hot=t,this.isMapRegistrable=n,this.filteringStates=new m.LinkedPhysicalIndexToValueMap,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(C,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}return(0,u.default)(e,[{key:"isEmpty",value:function(){return 0===this.getFilteredColumns().length}},{key:"isMatch",value:function(e,t){var n,r=this.filteringStates.getValueAtIndex(t),o=null!==(n=null==r?void 0:r.conditions)&&void 0!==n?n:[],i=null==r?void 0:r.operation;return this.isMatchInConditions(o,e,i)}},{key:"isMatchInConditions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID;return!e.length||(0,p.getOperationFunc)(n)(e,t)}},{key:"addCondition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.OPERATION_ID,r=arguments.length>3?arguments[3]:void 0,o=this.hot.getCellMeta(0,e).locale,l=(0,c.arrayMap)(t.args,(function(e){return"string"==typeof e?e.toLocaleLowerCase(o):e})),u=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);var d=this.getOperation(e);if(d){if(d!==n)throw Error((0,h.toSingleLine)(a||(a=(0,i.default)(["The column of index "," has been already applied with a `","` \n filter operation. Use `removeConditions` to clear the current conditions and then add new ones. \n Mind that you cannot mix different types of operations (for instance, if you use `conjunction`, \n use it consequently for a particular column)."],["The column of index "," has been already applied with a \\`","\\`\\x20\n filter operation. Use \\`removeConditions\\` to clear the current conditions and then add new ones.\\x20\n Mind that you cannot mix different types of operations (for instance, if you use \\`conjunction\\`,\\x20\n use it consequently for a particular column)."])),e,d))}else if((0,y.isUndefined)(p.operations[n]))throw new Error((0,h.toSingleLine)(s||(s=(0,i.default)(["Unexpected operation named `","`. Possible ones are \n `disjunction` and `conjunction`."],["Unexpected operation named \\`","\\`. Possible ones are\\x20\n \\`disjunction\\` and \\`conjunction\\`."])),n));var f=this.getConditions(e);0===f.length?this.filteringStates.setValueAtIndex(e,{operation:n,conditions:[{name:u,args:l,func:(0,v.getCondition)(u,l)}]},r):f.push({name:u,args:l,func:(0,v.getCondition)(u,l)}),this.runLocalHooks("afterAdd",e)}},{key:"getConditions",value:function(e){var t,n;return null!==(t=null===(n=this.filteringStates.getValueAtIndex(e))||void 0===n?void 0:n.conditions)&&void 0!==t?t:[]}},{key:"getOperation",value:function(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}},{key:"getFilteredColumns",value:function(){return this.filteringStates.getEntries().map((function(e){return(0,o.default)(e,1)[0]}))}},{key:"getColumnStackPosition",value:function(e){return this.getFilteredColumns().indexOf(e)}},{key:"exportAllConditions",value:function(){return(0,c.arrayReduce)(this.filteringStates.getEntries(),(function(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=i.operation,s=i.conditions;return e.push({column:r,operation:a,conditions:(0,c.arrayMap)(s,(function(e){return{name:e.name,args:e.args}}))}),e}),[])}},{key:"importAllConditions",value:function(e){var t=this;this.clean(),(0,c.arrayEach)(e,(function(e){(0,c.arrayEach)(e.conditions,(function(n){return t.addCondition(e.column,n)}))}))}},{key:"removeConditions",value:function(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}},{key:"clean",value:function(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}},{key:"hasConditions",value:function(e,t){var n=this.getConditions(e);return t?n.some((function(e){return e.name===t})):n.length>0}},{key:"destroy",value:function(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(C),this.filteringStates=null,this.clearLocalHooks()}}]),e}();(0,d.mixin)(w,f.default);var E=w;t.default=E},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(13),s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return[]};(0,o.default)(this,e),this.conditionCollection=t,this.columnDataFactory=n}return(0,i.default)(e,[{key:"filter",value:function(){var e=this,t=[];return(0,a.arrayEach)(this.conditionCollection.getFilteredColumns(),(function(n,r){var o=e.columnDataFactory(n);r&&(o=e._getIntersectData(o,t)),t=e.filterByColumn(n,o)})),t}},{key:"filterByColumn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return(0,a.arrayEach)(n,(function(n){void 0!==n&&t.conditionCollection.isMatch(n,e)&&r.push(n)})),r}},{key:"_getIntersectData",value:function(e,t){var n=[];return(0,a.arrayEach)(t,(function(t){var r=t.meta.visualRow;void 0!==e[r]&&(n[r]=e[r])})),n}}]),e}();t.default=s},function(e,t,n){"use strict";n(53),n(30),n(16),n(20),n(66);var r=n(0);t.__esModule=!0,t.DEFAULT_SETTINGS=t.DEFAULT_LICENSE_KEY=void 0,t.getEngineSettingsOverrides=u,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s(s({},l),r),o)},t.getEngineSettingsWithOverrides=function(e){var t,n=e[i.PLUGIN_KEY],r=c(null!=n&&null!==(t=n.engine)&&void 0!==t&&t.hyperformula?n.engine:{}),o=u(e);return s(s({},r),o)},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some((function(n){return void 0!==t[n]&&t[n]!==e[n]}))};var o=r(n(25));n(175),n(1),n(37);var i=n(236);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable";var l={licenseKey:"internal-use-in-handsontable",useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function u(e){var t,n;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[i.PLUGIN_KEY])||void 0===t||null===(n=t.language)||void 0===n?void 0:n.langCode}}function c(e){return Object.keys(e).reduce((function(t,n){return"hyperformula"!==n&&(t[n]=e[n]),t}),{})}t.DEFAULT_SETTINGS=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(32),s=n(68),l=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0,this.inlineProperty=t.isRtl()?"right":"left"}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.top=e+"px"),(0,a.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+"px")}},{key:"getPosition",value:function(){var e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}},{key:"setSize",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.width=e+"px"),(0,a.isNumeric)(t)&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){(0,a.isNumeric)(e)&&(this._element.style.marginTop=e+"px"),(0,a.isNumeric)(t)&&(this._element.style["margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty))]=t+"px")}},{key:"getOffset",value:function(){var e=this._element.style,t="margin".concat((0,s.toUpperCaseFirst)(this.inlineProperty));return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.hot=t,this._element=null,this.state=0}return(0,i.default)(e,[{key:"appendTo",value:function(e){e.appendChild(this._element),this.state=2}},{key:"build",value:function(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}},{key:"destroy",value:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}},{key:"isAppended",value:function(){return 2===this.state}},{key:"isBuilt",value:function(){return this.state>=1}},{key:"setPosition",value:function(e,t){void 0!==e&&(this._element.style.top=e+"px"),void 0!==t&&(this._element.style.left=t+"px")}},{key:"getPosition",value:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}},{key:"setSize",value:function(e,t){e&&(this._element.style.width=e+"px"),t&&(this._element.style.height=t+"px")}},{key:"getSize",value:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}},{key:"setOffset",value:function(e,t){e&&(this._element.style.marginTop=e+"px"),t&&(this._element.style.marginLeft=t+"px")}},{key:"getOffset",value:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}]),e}();t.default=a},function(e,t,n){"use strict";t.__esModule=!0,t.applySpanProperties=function(e,t,n,r){t?t.row===n&&t.col===r?(e.setAttribute("rowspan",t.rowspan.toString()),e.setAttribute("colspan",t.colspan.toString())):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="")},n(1),n(80)},function(e,t,n){"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.label,n=void 0===t?"":t,r=e.colspan,o=void 0===r?1:r,i=e.origColspan,a=void 0===i?1:i,s=e.collapsible,l=void 0!==s&&s,u=e.crossHiddenColumns,c=void 0===u?[]:u,d=e.isCollapsed,h=void 0!==d&&d,f=e.isHidden,v=void 0!==f&&f,g=e.isRoot,p=void 0!==g&&g,y=e.isPlaceholder,m=void 0!==y&&y;return{label:n,colspan:o,origColspan:a,collapsible:l,isCollapsed:h,crossHiddenColumns:c,isHidden:v,isRoot:p,isPlaceholder:m}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},function(e,t,n){"use strict";t.__esModule=!0,t.collapseNode=function e(t){var n,a=t.data,s=t.childs;if(a.isCollapsed||a.isHidden||a.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(s[0]);a.isCollapsed=!0;var l=s.slice(1),u=new Set;if(l.length>0)(0,r.arrayEach)(l,(function(e){(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){u.add(e)})),e.data.clonedTree=e.cloneTree(),e.walkDown((function(e){e.data.isHidden=!0}))}));else for(var c=a.origColspan,d=a.columnIndex,h=1;h<c;h++){var f=d+h;u.add(f)}var v=a.colspan-(null!==(n=(0,i.getFirstChildProperty)(t,"colspan"))&&void 0!==n?n:1);return t.walkUp((function(e){var t=e.data;t.colspan-=v,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.expandNode)(t)},affectedColumns:Array.from(u),colspanCompensation:v}},n(33),n(4),n(1),n(45),n(5),n(6),n(40);var r=n(13),o=n(356),i=n(357)},function(e,t,n){"use strict";t.__esModule=!0,t.expandNode=function e(t){var n=t.data,a=t.childs;if(!n.isCollapsed||n.isHidden||n.origColspan<=1)return{rollbackModification:function(){},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(a[0]);n.isCollapsed=!1;var s=a.slice(1),l=new Set,u=0;if(s.length>0)(0,r.arrayEach)(s,(function(e){e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;var t=e.data;u+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,(function(e){l.add(e)}))}));else{var c=n.colspan,d=n.origColspan,h=n.columnIndex;u=d-c;for(var f=1;f<d;f++)l.add(h+f)}return t.walkUp((function(e){var t=e.data;t.colspan+=u,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))})),{rollbackModification:function(){return(0,o.collapseNode)(t)},affectedColumns:Array.from(l),colspanCompensation:u}},n(33),n(4),n(1),n(45),n(5),n(6),n(40);var r=n(13),o=n(355),i=n(357)},function(e,t,n){"use strict";function r(e,t){var n=e.childs;if(0!==n.length)return n[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown((function(e){var n=e.data,r=e.childs;if(!n.isHidden&&(t(n.columnIndex),0===r.length))for(var o=1;o<n.colspan;o++)t(n.columnIndex+o)}))}},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(19);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(13),c=n(32),d=n(15);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this,e,r)).dataManager=i.plugin.dataManager,i.collapsingUI=i.plugin.collapsingUI,i.rowHeaderWidthCache=null,i}return(0,i.default)(n,[{key:"appendLevelIndicators",value:function(e,t){var r=this.hot.toPhysicalRow(e),o=this.dataManager.getRowLevel(r),i=this.dataManager.getDataObject(r),a=t.getElementsByTagName("DIV")[0],s=a.querySelector("span.rowHeader"),l=a.querySelectorAll('[class^="ht_nesting"]');if((0,u.arrayEach)(l,(function(e){e&&a.removeChild(e)})),(0,d.addClass)(t,n.CSS_CLASSES.indicatorContainer),o){var h=this.hot.rootDocument,f=s.cloneNode(!0);a.innerHTML="",(0,c.rangeEach)(0,o-1,(function(){var e=h.createElement("SPAN");(0,d.addClass)(e,n.CSS_CLASSES.emptyIndicator),a.appendChild(e)})),a.appendChild(f)}if(this.dataManager.hasChildren(i)){var v=this.hot.rootDocument.createElement("DIV");(0,d.addClass)(t,n.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?(0,d.addClass)(v,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.expandButton)):(0,d.addClass)(v,"".concat(n.CSS_CLASSES.button," ").concat(n.CSS_CLASSES.collapseButton)),a.appendChild(v)}}},{key:"updateRowHeaderWidth",value:function(e){var t=e;t||(t=this.dataManager.cache.levelCount),this.rowHeaderWidthCache=Math.max(50,11+10*t+25),this.hot.render()}}],[{key:"CSS_CLASSES",get:function(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}}]),n}(r(n(238)).default);t.default=f},function(e,t,n){e.exports=n(360)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0,n(371);var i=H(n(372));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,l,u,c,d=n(514),h=H(n(44)),f=n(65),v=r(n(755)),g=r(n(229)),p=H(n(212)),y=H(n(13)),m=H(n(78)),C=H(n(111)),w=H(n(330)),E=H(n(90)),R=H(n(51)),S=H(n(24)),b=H(n(32)),T=H(n(12)),O=H(n(68)),_=H(n(91)),I=H(n(15)),k=H(n(62)),M=n(107),N=n(149),P=n(150),A=n(154),x=n(177),D=n(34);function L(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(L=function(e){return e?n:t})(e)}function H(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=L(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(0,d.registerAllModules)(),(0,v.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var B=[y,m,C,w,E,R,S,b,T,O,_,p],F=[I,k];i.default.helper={},i.default.dom={},y.arrayEach(B,(function(e){y.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),y.arrayEach(F,(function(e){y.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.dom[t]=e[t])}))})),i.default.cellTypes=null!==(a=i.default.cellTypes)&&void 0!==a?a:{},y.arrayEach((0,A.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,A.getCellType)(e)})),i.default.cellTypes.registerCellType=A.registerCellType,i.default.cellTypes.getCellType=A.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},y.arrayEach((0,M.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(O.toUpperCaseFirst(e),"Editor")]=(0,M.getEditor)(e)})),i.default.editors.registerEditor=M.registerEditor,i.default.editors.getEditor=M.getEditor,i.default.renderers=null!==(l=i.default.renderers)&&void 0!==l?l:{},y.arrayEach((0,N.getRegisteredRendererNames)(),(function(e){var t=(0,N.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(O.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=N.registerRenderer,i.default.renderers.getRenderer=N.getRenderer,i.default.validators=null!==(u=i.default.validators)&&void 0!==u?u:{},y.arrayEach((0,P.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(O.toUpperCaseFirst(e),"Validator")]=(0,P.getValidator)(e)})),i.default.validators.registerValidator=P.registerValidator,i.default.validators.getValidator=P.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},y.arrayEach((0,x.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,x.getPlugin)(e)})),i.default.plugins["".concat(O.toUpperCaseFirst(D.BasePlugin.PLUGIN_KEY),"Plugin")]=D.BasePlugin,i.default.plugins.registerPlugin=x.registerPlugin,i.default.plugins.getPlugin=x.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(56),o=n(42),i=n(55),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},function(e,t,n){"use strict";var r=n(252).IteratorPrototype,o=n(100),i=n(139),a=n(168),s=n(138),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){var r=n(27),o=n(102);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){var r=n(42),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(193),o=n(169);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(195),i=n(38),a=n(27),s=n(196),l=n(141),u=n(170),c=n(259),d=n(55),h=n(89).enforce,f=n(26),v=n(247),g=Object,p=Array.isArray,y=g.isExtensible,m=g.isFrozen,C=g.isSealed,w=g.freeze,E=g.seal,R={},S={},b=!i.ActiveXObject&&"ActiveXObject"in i,T=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},O=u("WeakMap",T,c),_=O.prototype,I=a(_.set);if(v)if(b){r=c.getConstructor(T,"WeakMap",!0),l.enable();var k=a(_.delete),M=a(_.has),N=a(_.get);s(_,{delete:function(e){if(d(e)&&!y(e)){var t=h(this);return t.frozen||(t.frozen=new r),k(this,e)||t.frozen.delete(e)}return k(this,e)},has:function(e){if(d(e)&&!y(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.has(e)}return M(this,e)},get:function(e){if(d(e)&&!y(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)?N(this,e):t.frozen.get(e)}return N(this,e)},set:function(e,t){if(d(e)&&!y(e)){var n=h(this);n.frozen||(n.frozen=new r),M(this,e)?I(this,e,t):n.frozen.set(e,t)}else I(this,e,t);return this}})}else o&&f((function(){var e=w([]);return I(new O,e,1),!m(e)}))&&s(_,{set:function(e,t){var n;return p(e)&&(m(e)?n=R:C(e)&&(n=S)),I(this,e,t),n==R&&w(e),n==S&&E(e),this}})},function(e,t,n){var r=n(26),o=n(55),i=n(85),a=n(369),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(26);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){var r=n(119),o=n(171),i=n(55),a=n(41)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){var r=n(21),o=n(26),i=n(197).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(373),n(374),n(375),n(376);var o=r(n(262)),i=n(218),a=n(310),s=r(n(52)),l=n(307),u=n(154),c=n(316),d=n(155),h=n(108);function f(e,t){var n=new o.default(e,t||{},i.rootInstanceSymbol);return n.init(),n}t.CellCoords=h.CellCoords,t.CellRange=h.CellRange,(0,u.registerCellType)(c.TextCellType),f.editors={BaseEditor:d.BaseEditor},f.Core=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new o.default(e,t,i.rootInstanceSymbol)},f.DefaultSettings=(0,a.metaSchemaFactory)(),f.hooks=s.default.getSingleton(),f.CellCoords=h.CellCoords,f.CellRange=h.CellRange,f.packageName="handsontable",f.buildDate="22/06/2023 12:52:47",f.version="13.0.0",f.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};var v=f;t.default=v},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(264);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(170)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(267))},function(e,t,n){var r=n(198),o=Math.floor,i=function(e,t){var n=e.length,l=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,l),t),i(r(e,l),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},function(e,t,n){var r=n(99).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(99);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(99).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(48),o=n(119),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){var r=n(55),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";var r=n(72),o=n(136),i=n(79);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:o(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){var r=n(27),o=n(72),i=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,v=r.length,g=c;return void 0!==d&&(d=o(d),g=u),s(h,g,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=d[l(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>v){var h=i(c/10);return 0===h?o:h<=v?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}u=r[c-1]}return void 0===u?"":u}))}},function(e,t,n){"use strict";var r=n(142),o=n(56),i=n(72),a=n(390),s=n(255),l=n(171),u=n(79),c=n(118),d=n(256),h=n(200),f=Array;e.exports=function(e){var t=i(e),n=l(this),v=arguments.length,g=v>1?arguments[1]:void 0,p=void 0!==g;p&&(g=r(g,v>2?arguments[2]:void 0));var y,m,C,w,E,R,S=h(t),b=0;if(!S||this===f&&s(S))for(y=u(t),m=n?new this(y):f(y);y>b;b++)R=p?g(t[b],b):t[b],c(m,b,R);else for(E=(w=d(t,S)).next,m=n?new this:[];!(C=o(E,w)).done;b++)R=p?a(w,g,[C.value,b],!0):C.value,c(m,b,R);return m.length=b,m}},function(e,t,n){var r=n(54),o=n(257);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(105).forEach,o=n(120)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(21),o=n(38),i=n(207)(o.setInterval,!0);r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},function(e,t){e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){var r=n(21),o=n(38),i=n(207)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(396),n(398)},function(e,t,n){var r=n(21),o=n(38),i=n(279).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(99);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(21),o=n(38),i=n(279).set,a=n(207),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";n(170)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(267))},function(e,t,n){var r=n(73).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){var r=n(140).PROPER,o=n(26),i=n(274);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||r&&i[e].name!==e}))}},function(e,t,n){var r=n(14).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(106),o=n(56),i=n(27),a=n(173),s=n(54),l=n(82),u=n(209),c=n(71),d=n(404),h=n(206),f=n(103),v=n(49),g=n(101),p=n(198),y=n(174),m=n(172),C=n(205),w=n(26),E=C.UNSUPPORTED_Y,R=Math.min,S=[].push,b=i(/./.exec),T=i(S),O=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=v(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!u(e))return o(t,i,e,a);for(var s,l,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,y=new RegExp(e.source,f+"g");(s=o(m,y,i))&&!((l=y.lastIndex)>g&&(T(h,O(i,g,s.index)),s.length>1&&s.index<i.length&&r(S,h,p(s,1)),d=s[0].length,g=l,h.length>=a));)y.lastIndex===s.index&&y.lastIndex++;return g===i.length?!d&&b(y,"")||T(h,""):T(h,O(i,g)),h.length>a?p(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=c(this),a=l(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,v(r),t,n)},function(e,r){var o=s(this),a=v(e),l=n(i,o,a,r,i!==t);if(l.done)return l.value;var u=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(E?"g":"y"),p=new u(E?"^(?:"+o.source+")":o,g),m=void 0===r?4294967295:r>>>0;if(0===m)return[];if(0===a.length)return null===y(p,a)?[a]:[];for(var C=0,w=0,S=[];w<a.length;){p.lastIndex=E?0:w;var b,_=y(p,E?O(a,w):a);if(null===_||(b=R(f(p.lastIndex+(E?w:0)),a.length))===C)w=h(a,w,c);else{if(T(S,O(a,C,w)),S.length===m)return S;for(var I=1;I<=_.length-1;I++)if(T(S,_[I]),S.length===m)return S;w=C=b}}return T(S,O(a,C)),S}]}),!!w((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),E)},function(e,t,n){var r=n(54),o=n(284),i=n(82),a=n(41)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||i(n=r(s)[a])?t:o(n)}},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(21),o=n(194).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(27),o=n(103),i=n(49),a=n(211),s=n(71),l=r(a),u=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),v=h.length,g=void 0===r?" ":i(r);return f<=v||""==g?h:((d=l(g,c((a=f-v)/g.length))).length>a&&(d=u(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(99);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){n(21)({target:"String",proto:!0},{repeat:n(211)})},function(e,t,n){var r=n(21),o=n(411);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(106),o=n(76),i=n(96),a=n(79),s=n(120),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},function(e,t,n){var r=n(102),o=n(72),i=n(130),a=n(79),s=TypeError,l=function(e){return function(t,n,l,u){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,v=e?-1:1;if(l<2)for(;;){if(f in d){u=d[f],f+=v;break}if(f+=v,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=v)f in d&&(u=n(u,d[f],f,c));return u}};e.exports={left:l(!1),right:l(!0)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.DESC=t.ASC=void 0,t.createPriorityMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorPriorityExists,n=e.errorPriorityNaN,r=new Map;function h(e,o){if(!(0,a.isNumeric)(e))throw new Error(n(e));if(r.has(e))throw new Error(t(e));r.set(e,o)}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=u.get(e)||u.get(l),n=(0,i.default)(t,2),a=n[0],s=n[1];return(0,o.default)(r).sort((function(e,t){return e[0]<t[0]?a:s})).map((function(e){return e[1]}))}return t=(0,s.isFunction)(t)?t:c,n=(0,s.isFunction)(n)?n:d,{addItem:h,getItems:f}};var o=r(n(29)),i=r(n(22));n(4),n(36),n(1),n(5),n(6),n(50),n(77);var a=n(32),s=n(51),l="asc";t.ASC=l;t.DESC="desc";var u=new Map([[l,[-1,1]],["desc",[1,-1]]]),c=function(e){return"The priority '".concat(e,"' is already declared in a map.")},d=function(e){return"The priority '".concat(e,"' is not a number.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.createUniqueSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.errorItemExists,n=new Set;function r(e){if(n.has(e))throw new Error(t(e));n.add(e)}function s(){return(0,o.default)(n)}function l(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:l,getItems:s}};var o=r(n(29));n(4),n(1),n(45),n(5),n(6);var i=n(51),a=function(e){return"'".concat(e,"' value is already declared in a unique set.")}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(22)),i=r(n(29)),a=r(n(2)),s=r(n(3)),l=r(n(25)),u=r(n(63)),c=r(n(64));n(4),n(1),n(5),n(7),n(6),n(60),n(61);var d=n(15),h=r(n(44)),f=n(62),v=r(n(108)),g=n(300),p=n(218);function y(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var m=new WeakMap,C=new WeakMap,w=new WeakMap,E=function(){function e(t){(0,a.default)(this,e),(0,l.default)(this,"instance",void 0),(0,l.default)(this,"eventManager",void 0),(0,l.default)(this,"settings",void 0),(0,l.default)(this,"THEAD",void 0),(0,l.default)(this,"TBODY",void 0),(0,l.default)(this,"_wt",void 0),(0,l.default)(this,"activeWt",void 0),y(this,C,{writable:!0,value:0}),y(this,w,{writable:!0,value:0}),(0,l.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),m.set(this,{selectionMouseDown:!1,mouseDown:void 0,table:void 0,lastWidth:0,lastHeight:0}),this.createElements(),this.registerEvents(),this.initializeWalkontable()}return(0,s.default)(e,[{key:"render",value:function(){this.instance.isRenderSuspended()||(this.instance.runHooks("beforeRender",this.instance.forceFullRender),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this._wt.draw(!this.instance.forceFullRender),this.instance.runHooks("afterRender",this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1)}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.instance.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize(e)}},{key:"getCellAtCoords",value:function(e,t){var n=this._wt.getCell(e,t);return n<0?null:n}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wt.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wt.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wt.scrollViewportVertically(e,t,n)}},{key:"createElements",value:function(){var e=m.get(this),t=this.instance,n=t.rootElement,r=t.rootDocument,o=n.getAttribute("style");o&&n.setAttribute("data-originalstyle",o),(0,d.addClass)(n,"handsontable"),e.table=r.createElement("TABLE"),(0,d.addClass)(e.table,"htCore"),this.instance.getSettings().tableClassName&&(0,d.addClass)(e.table,this.instance.getSettings().tableClassName),this.THEAD=r.createElement("THEAD"),e.table.appendChild(this.THEAD),this.TBODY=r.createElement("TBODY"),e.table.appendChild(this.TBODY),this.instance.table=e.table,this.instance.container.insertBefore(e.table,this.instance.container.firstChild)}},{key:"registerEvents",value:function(){var e=this,t=m.get(this),n=this.instance,r=n.rootElement,o=n.rootDocument,i=n.selection,a=o.documentElement;this.eventManager.addEventListener(r,"mousedown",(function(n){if(t.selectionMouseDown=!0,!e.isTextSelectionAllowed(n.target)){var r=e.instance.rootWindow;(0,d.clearTextSelection)(r),n.preventDefault(),r.focus()}})),this.eventManager.addEventListener(r,"mouseup",(function(){t.selectionMouseDown=!1})),this.eventManager.addEventListener(r,"mousemove",(function(n){t.selectionMouseDown&&!e.isTextSelectionAllowed(n.target)&&(e.settings.fragmentSelection&&(0,d.clearTextSelection)(e.instance.rootWindow),n.preventDefault())})),this.eventManager.addEventListener(a,"keyup",(function(e){i.isInProgress()&&!e.shiftKey&&i.finish()})),this.eventManager.addEventListener(a,"mouseup",(function(n){i.isInProgress()&&(0,f.isLeftClick)(n)&&i.finish(),t.mouseDown=!1,!(0,d.isOutsideInput)(o.activeElement)&&(i.isSelected()||i.isSelectedByAnyHeader()||r.contains(n.target)||(0,f.isRightClick)(n))||e.instance.unlisten()})),this.eventManager.addEventListener(a,"contextmenu",(function(e){i.isInProgress()&&(0,f.isRightClick)(e)&&(i.finish(),t.mouseDown=!1)})),this.eventManager.addEventListener(a,"touchend",(function(){i.isInProgress()&&i.finish(),t.mouseDown=!1})),this.eventManager.addEventListener(a,"mousedown",(function(n){var i=n.target,s=n.x||n.clientX,l=n.y||n.clientY,u=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(u===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,l)!==c||o.elementFromPoint(s,l+h)!==c)return}else for(;u!==a;){if(null===u){if(n.isTargetWebComponent)break;return}if(u===r)return;u=u.parentNode}("function"==typeof e.settings.outsideClickDeselects?e.settings.outsideClickDeselects(i):e.settings.outsideClickDeselects)?e.instance.deselectCell():e.instance.destroyEditor(!1,!1)}})),this.eventManager.addEventListener(t.table,"selectstart",(function(t){e.settings.fragmentSelection||(0,d.isInput)(t.target)||t.preventDefault()}))}},{key:"translateFromRenderableToVisualCoords",value:function(e){var t,n=e.row,r=e.col;return(t=this.instance)._createCellCoords.apply(t,(0,i.default)(this.translateFromRenderableToVisualIndex(n,r)))}},{key:"translateFromRenderableToVisualIndex",value:function(e,t){var n=e>=0?this.instance.rowIndexMapper.getVisualFromRenderableIndex(e):e,r=t>=0?this.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===n&&(n=e),null===r&&(r=t),[n,r]}},{key:"countRenderableIndexes",value:function(e,t){var n=Math.min(e.getNotTrimmedIndexesLength(),t),r=e.getNearestNotHiddenIndex(n-1,-1);return null===r?0:e.getRenderableFromVisualIndex(r)+1}},{key:"countRenderableColumns",value:function(){return this.countRenderableIndexes(this.instance.columnIndexMapper,this.settings.maxCols)}},{key:"countRenderableRows",value:function(){return this.countRenderableIndexes(this.instance.rowIndexMapper,this.settings.maxRows)}},{key:"countNotHiddenRowIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.rowIndexMapper,this.countRenderableRows())}},{key:"countNotHiddenColumnIndexes",value:function(e,t){return this.countNotHiddenIndexes(e,t,this.instance.columnIndexMapper,this.countRenderableColumns())}},{key:"countNotHiddenIndexes",value:function(e,t,n,r){if(isNaN(e)||e<0)return 0;var o=n.getNearestNotHiddenIndex(e,t),i=n.getRenderableFromVisualIndex(o);if(!Number.isInteger(i))return 0;var a=0;return t<0?a=i+1:t>0&&(a=r-i),a}},{key:"countNotHiddenFixedColumnsStart",value:function(){var e=this.instance.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}},{key:"countNotHiddenFixedRowsTop",value:function(){var e=this.instance.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}},{key:"countNotHiddenFixedRowsBottom",value:function(){var e=this.instance.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}},{key:"isMainTableNotFullyCoveredByOverlays",value:function(){var e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.instance.countRenderedRows()>e&&this.instance.countRenderedCols()>t}},{key:"initializeWalkontable",value:function(){var e=this,t=m.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,p.isRootInstance)(e.instance)},preventOverflow:function(){return e.settings.preventOverflow},preventWheel:function(){return e.settings.preventWheel},stretchH:function(){return e.settings.stretchH},data:function(t,n){var r;return(r=e.instance).getDataAtCell.apply(r,(0,i.default)(e.translateFromRenderableToVisualIndex(t,n)))},totalRows:function(){return e.countRenderableRows()},totalColumns:function(){return e.countRenderableColumns()},fixedColumnsStart:function(){return e.countNotHiddenFixedColumnsStart()},fixedRowsTop:function(){return e.countNotHiddenFixedRowsTop()},fixedRowsBottom:function(){return e.countNotHiddenFixedRowsBottom()},shouldRenderInlineStartOverlay:function(){return e.settings.fixedColumnsStart>0||n.rowHeaders().length>0},shouldRenderTopOverlay:function(){return e.settings.fixedRowsTop>0||n.columnHeaders().length>0},shouldRenderBottomOverlay:function(){return e.settings.fixedRowsBottom>0},minSpareRows:function(){return e.settings.minSpareRows},renderAllRows:this.settings.renderAllRows,rowHeaders:function(){var t=[];return e.instance.hasRowHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.rowIndexMapper.getVisualFromRenderableIndex(t):t;e.appendRowHeader(r,n)})),e.instance.runHooks("afterGetRowHeaderRenderers",t),(0,c.default)(e,w,t.length),t},columnHeaders:function(){var t=[];return e.instance.hasColHeaders()&&t.push((function(t,n){var r=t>=0?e.instance.columnIndexMapper.getVisualFromRenderableIndex(t):t;e.appendColHeader(r,n)})),e.instance.runHooks("afterGetColumnHeaderRenderers",t),(0,c.default)(e,C,t.length),t},columnWidth:function(t){var n=e.instance.columnIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getColWidth(null===n?t:n)},rowHeight:function(t){var n=e.instance.rowIndexMapper.getVisualFromRenderableIndex(t);return e.instance.getRowHeight(null===n?t:n)},cellRenderer:function(t,n,r){var i=e.translateFromRenderableToVisualIndex(t,n),a=(0,o.default)(i,2),s=a[0],l=a[1],u=e.instance.runHooks("modifyGetCellCoords",s,l),c=s,d=l;if(Array.isArray(u)){var h=(0,o.default)(u,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),v=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,v);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,l,v,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,l,v,g,f),e.instance.runHooks("afterRenderer",r,s,l,v,g,f)},selections:this.instance.selection.highlight,hideBorderOnMouseDownOver:function(){return e.settings.fragmentSelection},onWindowResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onContainerElementResize:function(){e.instance&&!e.instance.isDestroyed&&e.instance.refreshDimensions()},onCellMouseDown:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.instance.listen(),e.activeWt=i,t.mouseDown=!0,e.instance.runHooks("beforeOnCellMouseDown",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||((0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseDown",n,a,o),e.activeWt=e._wt)},onCellContextMenu:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r);e.activeWt=i,t.mouseDown=!1,e.instance.selection.isInProgress()&&e.instance.selection.finish(),e.instance.runHooks("beforeOnCellContextMenu",n,a,o),(0,f.isImmediatePropagationStopped)(n)||(e.instance.runHooks("afterOnCellContextMenu",n,a,o),e.activeWt=e._wt)},onCellMouseOut:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseOut",t,i,r),(0,f.isImmediatePropagationStopped)(t)||(e.instance.runHooks("afterOnCellMouseOut",t,i,r),e.activeWt=e._wt)},onCellMouseOver:function(n,r,o,i){var a=e.translateFromRenderableToVisualCoords(r),s={row:!1,column:!1,cell:!1};e.activeWt=i,e.instance.runHooks("beforeOnCellMouseOver",n,a,o,s),(0,f.isImmediatePropagationStopped)(n)||(t.mouseDown&&(0,g.handleMouseEvent)(n,{coords:a,selection:e.instance.selection,controller:s,cellCoordsFactory:function(t,n){return e.instance._createCellCoords(t,n)}}),e.instance.runHooks("afterOnCellMouseOver",n,a,o),e.activeWt=e._wt)},onCellMouseUp:function(t,n,r,o){var i=e.translateFromRenderableToVisualCoords(n);e.activeWt=o,e.instance.runHooks("beforeOnCellMouseUp",t,i,r),(0,f.isImmediatePropagationStopped)(t)||e.instance.isDestroyed||(e.instance.runHooks("afterOnCellMouseUp",t,i,r),e.activeWt=e._wt)},onCellCornerMouseDown:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerMouseDown",t)},onCellCornerDblClick:function(t){t.preventDefault(),e.instance.runHooks("afterOnCellCornerDblClick",t)},beforeDraw:function(t,n){return e.beforeRender(t,n)},onDraw:function(t){return e.afterRender(t)},onScrollVertically:function(){return e.instance.runHooks("afterScrollVertically")},onScrollHorizontally:function(){return e.instance.runHooks("afterScrollHorizontally")},onBeforeRemoveCellClassNames:function(){return e.instance.runHooks("beforeRemoveCellClassNames")},onBeforeHighlightingRowHeader:function(t,n,r){var o=e.instance.rowIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingRowHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onBeforeHighlightingColumnHeader:function(t,n,r){var o=e.instance.columnIndexMapper,i=o.getVisualFromRenderableIndex(t),a=e.instance.runHooks("beforeHighlightingColumnHeader",i,n,r);return o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(a,1))},onAfterDrawSelection:function(t,n,r){var i,a=e.translateFromRenderableToVisualIndex(t,n),s=(0,o.default)(a,2),l=s[0],u=s[1],c=e.instance.selection.getSelectedRange(),d=c.size();if(d>0){var h=(null!=r?r:0)+1-d,f=c.peekByIndex(h);i=[f.from.row,f.from.col,f.to.row,f.to.col]}return e.instance.runHooks("afterDrawSelection",l,u,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],l=r[3],u=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(l)];return e.instance.runHooks("beforeDrawBorders",u,n)},onBeforeTouchScroll:function(){return e.instance.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){return e.instance.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){var r=e.instance.columnIndexMapper.getVisualFromRenderableIndex(n);return e.instance.runHooks("beforeStretchingColumnWidth",t,r)},onModifyRowHeaderWidth:function(t){return e.instance.runHooks("modifyRowHeaderWidth",t)},onModifyGetCellCoords:function(t,n,r){var i=e.instance.rowIndexMapper,a=e.instance.columnIndexMapper,s=n>=0?a.getVisualFromRenderableIndex(n):n,l=t>=0?i.getVisualFromRenderableIndex(t):t,u=e.instance.runHooks("modifyGetCellCoords",l,s,r);if(Array.isArray(u)){var c=(0,o.default)(u,4),d=c[0],h=c[1],f=c[2],v=c[3];return[d>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(d,1)):d,h>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(h,1)):h,f>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(f,-1)):f,v>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(v,-1)):v]}},viewportRowCalculatorOverride:function(t){var n=e.settings.viewportRowRenderingOffset;if("auto"===n&&e.settings.fixedRowsTop&&(n=10),n>0||"auto"===n){var r=e.countRenderableRows(),o=t.startRow,i=t.endRow;if("number"==typeof n)t.startRow=Math.max(o-n,0),t.endRow=Math.min(i+n,r-1);else if("auto"===n){var a=Math.ceil(i/r*12);t.startRow=Math.max(o-a,0),t.endRow=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.settings.viewportColumnRenderingOffset;if("auto"===n&&e.settings.fixedColumnsStart&&(n=10),n>0||"auto"===n){var r=e.countRenderableColumns(),o=t.startColumn,i=t.endColumn;if("number"==typeof n&&(t.startColumn=Math.max(o-n,0),t.endColumn=Math.min(i+n,r-1)),"auto"===n){var a=Math.ceil(i/r*6);t.startColumn=Math.max(o-a,0),t.endColumn=Math.min(i+a,r-1)}}e.instance.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return e.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.instance.runHooks("modifyColumnHeaderHeight");return e.settings.columnHeaderHeight||t}};this.instance.runHooks("beforeInitWalkontable",n),this._wt=new v.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,l=a.height;this.setLastSize(s,l),this.eventManager.addEventListener(r,"mousedown",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(r,"contextmenu",(function(e){e.target===r&&3===e.which&&e.stopPropagation()})),this.eventManager.addEventListener(this.instance.rootDocument.documentElement,"click",(function(){e.settings.observeDOMVisibility&&e._wt.drawInterrupted&&(e.instance.forceFullRender=!0,e.render())}))}},{key:"isTextSelectionAllowed",value:function(e){if((0,d.isInput)(e))return!0;var t=(0,d.isChildOf)(e,this.instance.view._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}},{key:"isMouseDown",value:function(){return m.get(this).mouseDown}},{key:"isSelectedOnlyCell",value:function(){var e,t;return null!==(e=null===(t=this.instance.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&void 0!==e&&e}},{key:"isCellEdited",value:function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()}},{key:"beforeRender",value:function(e,t){e&&this.instance.runHooks("beforeViewRender",this.instance.forceFullRender,t)}},{key:"afterRender",value:function(e){e&&this.instance.runHooks("afterViewRender",this.instance.forceFullRender)}},{key:"appendRowHeader",value:function(e,t){if(t.firstChild){var n=t.firstChild;if(!(0,d.hasClass)(n,"relative"))return(0,d.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var r=this.instance,o=r.rootDocument,i=r.getRowHeader,a=o.createElement("div"),s=o.createElement("span");a.className="relative",s.className="rowHeader",this.updateCellHeader(s,e,i),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetRowHeader",e,t)}},{key:"appendColHeader",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.instance.getColHeader,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t.firstChild){var o=t.firstChild;(0,d.hasClass)(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,n,r):((0,d.empty)(t),this.appendColHeader(e,t,n,r))}else{var i=this.instance.rootDocument,a=i.createElement("div"),s=i.createElement("span");a.className="relative",s.className="colHeader",this.updateCellHeader(s,e,n,r),a.appendChild(s),t.appendChild(a)}this.instance.runHooks("afterGetColHeader",e,t,r)}},{key:"updateCellHeader",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=t,i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,d.hasClass)(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):(0,d.hasClass)(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?(0,d.fastInnerHTML)(e,n(t,r)):((0,d.fastInnerText)(e,String.fromCharCode(160)),(0,d.addClass)(e,"cornerHeader"))}},{key:"maximumVisibleElementWidth",value:function(e){var t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}},{key:"maximumVisibleElementHeight",value:function(e){var t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}},{key:"setLastSize",value:function(e,t){var n=m.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=m.get(this);return{width:e.lastWidth,height:e.lastHeight}}},{key:"getFirstFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleRow())}},{key:"getLastFullyVisibleRow",value:function(){return this.instance.rowIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleRow())}},{key:"getFirstFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getFirstVisibleColumn())}},{key:"getLastFullyVisibleColumn",value:function(){return this.instance.columnIndexMapper.getVisualFromRenderableIndex(this.instance.view._wt.wtScroll.getLastVisibleColumn())}},{key:"getColumnHeadersCount",value:function(){return(0,u.default)(this,C)}},{key:"getRowHeadersCount",value:function(){return(0,u.default)(this,w)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=E},function(e,t){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(419)),s=r(n(216)),l=function(){function e(t){(0,o.default)(this,e),t instanceof s.default?this._wot=t:this._initFromSettings(t)}return(0,i.default)(e,[{key:"_initFromSettings",value:function(t){t.facade=function(t){var n=new e(t);return function(){return n}},this._wot=new a.default(t.table,t)}},{key:"guid",get:function(){return this._wot.guid}},{key:"rootDocument",get:function(){return this._wot.domBindings.rootDocument}},{key:"rootWindow",get:function(){return this._wot.domBindings.rootWindow}},{key:"wtSettings",get:function(){return this._wot.wtSettings}},{key:"cloneSource",get:function(){return this._wot.cloneSource}},{key:"cloneOverlay",get:function(){return this._wot.cloneOverlay}},{key:"selections",get:function(){return this._wot.selections}},{key:"wtViewport",get:function(){return this._wot.wtViewport}},{key:"wtOverlays",get:function(){return this._wot.wtOverlays}},{key:"wtTable",get:function(){return this._wot.wtTable}},{key:"wtEvent",get:function(){return this._wot.wtEvent}},{key:"wtScroll",get:function(){return this._wot.wtScroll}},{key:"drawn",get:function(){return this._wot.drawn},set:function(e){this._wot.drawn=e}},{key:"drawInterrupted",get:function(){return this._wot.drawInterrupted},set:function(e){this._wot.drawInterrupted=e}},{key:"lastMouseOver",get:function(){return this._wot.lastMouseOver},set:function(e){this._wot.lastMouseOver=e}},{key:"momentumScrolling",get:function(){return this._wot.momentumScrolling},set:function(e){this._wot.momentumScrolling=e}},{key:"touchApplied",get:function(){return this._wot.touchApplied},set:function(e){this._wot.touchApplied=e}},{key:"domBindings",get:function(){return this._wot.domBindings}},{key:"eventListeners",get:function(){return this._wot.eventListeners},set:function(e){this._wot.eventListeners=e}},{key:"eventManager",get:function(){return this._wot.eventManager}},{key:"createCellCoords",value:function(e,t){return this._wot.createCellCoords(e,t)}},{key:"createCellRange",value:function(e,t,n){return this._wot.createCellRange(e,t,n)}},{key:"draw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}},{key:"getCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}},{key:"scrollViewport",value:function(e,t,n,r,o){return this._wot.scrollViewport(e,t,n,r,o)}},{key:"scrollViewportHorizontally",value:function(e,t,n){return this._wot.scrollViewportHorizontally(e,t,n)}},{key:"scrollViewportVertically",value:function(e,t,n){return this._wot.scrollViewportVertically(e,t,n)}},{key:"getViewport",value:function(){return this._wot.getViewport()}},{key:"getOverlayName",value:function(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}},{key:"exportSettingsAsClassNames",value:function(){return this._wot.exportSettingsAsClassNames()}},{key:"update",value:function(e,t){return this._wot.wtSettings.update(e,t),this}},{key:"getSetting",value:function(e,t,n,r,o){return this._wot.wtSettings.getSetting(e,t,n,r,o)}},{key:"hasSetting",value:function(e){return this._wot.wtSettings.hasSetting(e)}},{key:"destroy",value:function(){this._wot.destroy()}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(31)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(292)),d=r(n(421)),h=r(n(449)),f=r(n(450)),v=r(n(451)),g=r(n(216)),p=n(12),y=n(15);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var C=function(e){(0,s.default)(n,e);var t=m(n);function n(e,r){var i;(0,o.default)(this,n);var s=(i=t.call(this,e,new h.default(r))).wtSettings.getSetting("facade",(0,a.default)(i));return i.wtTable=new f.default(i.getTableDao(),s,i.domBindings,i.wtSettings),i.wtViewport=new v.default(i.getViewportDao(),i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.selections=i.wtSettings.getSetting("selections"),i.wtEvent=new c.default(s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable,i.selections),i.wtOverlays=new d.default((0,a.default)(i),s,i.domBindings,i.wtSettings,i.eventManager,i.wtTable),i.exportSettingsAsClassNames(),i.findOriginalHeaders(),i}return(0,i.default)(n,[{key:"exportSettingsAsClassNames",value:function(){var e=this,t=[],n=[];(0,p.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,y.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,y.addClass)(this.wtTable.wtRootElement.parentNode,n)}},{key:"getViewportDao",value:function(){var e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}]),n}(g.default);t.default=C},function(e,t,n){"use strict";var r=n(27),o=n(102),i=n(55),a=n(47),s=n(146),l=n(131),u=Function,c=r([].concat),d=r([].join),h={},f=function(e,t,n){if(!a(h,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";h[t]=u("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=l?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=c(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(19),n(1),n(20),n(57);var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(25)),l=n(15),u=n(90),c=n(13),d=n(91),h=n(78),f=n(109),v=function(){function e(t,n,r,o,a,c){var d=this;(0,i.default)(this,e),(0,s.default)(this,"wot",null),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"resizeObserver",new ResizeObserver((function(e){(0,u.requestAnimationFrame)((function(){Array.isArray(e)&&e.length&&d.wtSettings.getSetting("onContainerElementResize")}))}))),this.wot=t,this.wtSettings=o,this.domBindings=r,this.facadeGetter=n,this.wtTable=c;var h=this.domBindings,f=h.rootDocument,v=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,l.getScrollbarWidth)(f);var g="hidden"===v.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,l.getScrollableElement)(c.TABLE),this.initOverlays(),this.hasScrollbarBottom=!1,this.hasScrollbarRight=!1,this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=v.scrollX,this.lastScrollY=v.scrollY}return(0,a.default)(e,[{key:"getOverlays",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[this.topOverlay,this.topInlineStartCornerOverlay,this.inlineStartOverlay,this.bottomOverlay,this.bottomInlineStartCornerOverlay];return e&&t.push(this.wtTable),t}},{key:"initBrowserLineHeight",value:function(){var e=this.domBindings,t=e.rootWindow,n=e.rootDocument,r=t.getComputedStyle(n.body),o=parseInt(r.lineHeight,10),i=1.2*parseInt(r.fontSize,10);this.browserLineHeight=o||i}},{key:"initOverlays",value:function(){var e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=(0,o.default)(f.TopOverlay,e),this.bottomOverlay=(0,o.default)(f.BottomOverlay,e),this.inlineStartOverlay=(0,o.default)(f.InlineStartOverlay,e),this.topInlineStartCornerOverlay=(0,o.default)(f.TopInlineStartCornerOverlay,e.concat([this.topOverlay,this.inlineStartOverlay])),this.bottomInlineStartCornerOverlay=(0,o.default)(f.BottomInlineStartCornerOverlay,e.concat([this.bottomOverlay,this.inlineStartOverlay]))}},{key:"updateStateOfRendering",value:function(){var e=this.topOverlay.updateStateOfRendering();return e=this.bottomOverlay.updateStateOfRendering()||e,e=this.inlineStartOverlay.updateStateOfRendering()||e,this.inlineStartOverlay.needFullRender&&(this.topOverlay.needFullRender&&(e=this.topInlineStartCornerOverlay.updateStateOfRendering()||e),this.bottomOverlay.needFullRender&&(e=this.bottomInlineStartCornerOverlay.updateStateOfRendering()||e)),e}},{key:"refreshAll",value:function(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}},{key:"registerListeners",value:function(){var e=this,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=this.topOverlay.mainTableScrollableElement,i=this.inlineStartOverlay.mainTableScrollableElement;this.eventManager.addEventListener(n.documentElement,"keydown",(function(t){return e.onKeyDown(t)})),this.eventManager.addEventListener(n.documentElement,"keyup",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(n,"visibilitychange",(function(){return e.onKeyUp()})),this.eventManager.addEventListener(o,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0}),o!==i&&this.eventManager.addEventListener(i,"scroll",(function(t){return e.onTableScroll(t)}),{passive:!0});var a,s=r.devicePixelRatio&&r.devicePixelRatio>1,l=this.scrollableElement===r,u=this.wtSettings.getSetting("preventWheel"),c={passive:l};(u||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,u)}),c),[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach((function(t){if(t&&t.needFullRender){var n=t.clone.wtTable.holder;e.eventManager.addEventListener(n,"wheel",(function(t){return e.onCloneWheel(t,u)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),l||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}},{key:"deregisterListeners",value:function(){this.eventManager.clearEvents(!0)}},{key:"onTableScroll",value:function(e){var t=this.domBindings.rootWindow,n=this.inlineStartOverlay.mainTableScrollableElement,r=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(r!==t&&o!==t&&!e.target.contains(r)||n!==t&&o!==t&&!e.target.contains(n))||this.syncScrollPositions(e)}},{key:"onCloneWheel",value:function(e,t){var n=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,i=e.target,a=o!==n&&i!==n&&!i.contains(o),s=r!==n&&i!==n&&!i.contains(r);if(!this.keyPressed||!a&&!s){var l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&l)&&e.preventDefault()}}},{key:"onKeyDown",value:function(e){this.keyPressed=(0,d.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}},{key:"onKeyUp",value:function(){this.keyPressed=!1}},{key:"translateMouseWheelToScroll",value:function(e){var t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,n=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(n+=n*this.browserLineHeight,t+=t*this.browserLineHeight);var r=this.scrollVertically(t),o=this.scrollHorizontally(n);return r||o}},{key:"scrollVertically",value:function(e){var t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}},{key:"scrollHorizontally",value:function(e){var t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}},{key:"syncScrollPositions",value:function(){if(!this.destroyed){var e=this.domBindings.rootWindow,t=this.topOverlay.clone.wtTable.holder,n=this.inlineStartOverlay.clone.wtTable.holder,r=[this.scrollableElement.scrollLeft,this.scrollableElement.scrollTop],o=r[0],i=r[1];if(this.horizontalScrolling=t.scrollLeft!==o||this.lastScrollX!==e.scrollX,this.verticalScrolling=n.scrollTop!==i||this.lastScrollY!==e.scrollY,this.lastScrollX=e.scrollX,this.lastScrollY=e.scrollY,this.horizontalScrolling){t.scrollLeft=o;var a=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;a&&(a.scrollLeft=o)}this.verticalScrolling&&(n.scrollTop=i),this.refreshAll()}}},{key:"syncScrollWithMaster",value:function(){var e=this.topOverlay.mainTableScrollableElement,t=e.scrollLeft,n=e.scrollTop;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=n)}},{key:"updateMainScrollableElements",value:function(){this.deregisterListeners(),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();var e=this.wtTable;"hidden"===this.domBindings.rootWindow.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,l.getScrollableElement)(e.TABLE),this.registerListeners()}},{key:"destroy",value:function(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.updateLastSpreaderSize();t&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}},{key:"updateLastSpreaderSize",value:function(){var e=this.wtTable.spreader,t=e.clientWidth,n=e.clientHeight,r=t!==this.spreaderLastSize.width||n!==this.spreaderLastSize.height;return r&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=n),r}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.wot.wtViewport,n=this.wtTable,r=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=t.getRowHeaderWidth(),a=t.getColumnHeaderHeight(),s=n.hider.style;if(s.width="".concat(i+this.inlineStartOverlay.sumCellSizes(0,r),"px"),s.height="".concat(a+this.topOverlay.sumCellSizes(0,o)+1,"px"),this.scrollbarSize>0){var l=n.wtRootElement,u=l.scrollHeight,c=l.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=u<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>u&&(this.hasScrollbarRight=!0)}this.topOverlay.adjustElementsSize(e),this.inlineStartOverlay.adjustElementsSize(e),this.bottomOverlay.adjustElementsSize(e)}},{key:"applyToDOM",value:function(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}},{key:"getParentOverlay",value:function(e){if(!e)return null;var t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay],n=null;return(0,c.arrayEach)(t,(function(t){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)})),n}},{key:"syncOverlayTableClassNames",value:function(){var e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,c.arrayEach)(t,(function(t){t&&(t.clone.wtTable.TABLE.className=e.className)}))}}]),e}();t.default=v},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomInlineStartCornerOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(15),d=r(n(424)),h=n(126),f=n(110);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=v(n);function n(e,r,o,a,s,l){var u;return(0,i.default)(this,n),(u=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,u.inlineStartOverlay=l,u}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;var t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){var n=this.inlineStartOverlay.getOverlayOffset(),r=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]="".concat(n,"px"),t.style.bottom="".concat(r,"px")}else(0,c.resetCssTransform)(t),this.repositionOverlay();var o=(0,c.outerHeight)(this.clone.wtTable.TABLE),i=(0,c.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height="".concat(o,"px"),t.style.width="".concat(i,"px"),!1}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,c.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}}]),n}(h.Overlay);t.BottomInlineStartCornerOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(296)),d=r(n(215)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleRowHeadedColumnToSourceColumn",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceColumnToVisibleRowHeadedColumn",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n,r){(0,o.default)(this,e),this.offset=t,this.total=n,this.countTH=r}return(0,i.default)(e,[{key:"offsetted",value:function(e){return e+this.offset}},{key:"unOffsetted",value:function(e){return e-this.offset}},{key:"renderedToSource",value:function(e){return this.offsetted(e)}},{key:"sourceToRendered",value:function(e){return this.unOffsetted(e)}},{key:"offsettedTH",value:function(e){return e-this.countTH}},{key:"unOffsettedTH",value:function(e){return e+this.countTH}},{key:"visibleColHeadedRowToSourceRow",value:function(e){return this.renderedToSource(this.offsettedTH(e))}},{key:"sourceRowToVisibleColHeadedRow",value:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}}]),e}();t.default=a},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(180);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TH")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new u.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.rowHeaderFunctions,r=e.rowHeadersCount,o=e.rows,i=e.cells,a=0;a<t;a++){var s=this.table.renderedRowToSource(a),l=o.getRenderedNode(a);this.sourceRowIndex=s;var u=this.obtainOrderView(l),c=i.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){u.render();var h=u.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}u.end()}}}]),n}(r(n(151)).default);t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(429)),s=n(295),l=function(){function e(){(0,o.default)(this,e),this.size=new a.default,this.workingSpace=s.WORKING_SPACE_ALL,this.sharedSize=null}return(0,i.default)(e,[{key:"setSize",value:function(e){this.size.setSize(e)}},{key:"setOffset",value:function(e){this.size.setOffset(e)}},{key:"getViewSize",value:function(){return this.size}},{key:"isShared",value:function(){return this.sharedSize instanceof a.default}},{key:"isPlaceOn",value:function(e){return this.workingSpace===e}},{key:"append",value:function(e){this.workingSpace=s.WORKING_SPACE_TOP,e.workingSpace=s.WORKING_SPACE_BOTTOM,this.sharedSize=e.getViewSize()}},{key:"prepend",value:function(e){this.workingSpace=s.WORKING_SPACE_BOTTOM,e.workingSpace=s.WORKING_SPACE_TOP,this.sharedSize=e.getViewSize()}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(){(0,o.default)(this,e),this.currentSize=0,this.nextSize=0,this.currentOffset=0,this.nextOffset=0}return(0,i.default)(e,[{key:"setSize",value:function(e){this.currentSize=this.nextSize,this.nextSize=e}},{key:"setOffset",value:function(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8));function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=u(n);function n(){return(0,o.default)(this,n),t.apply(this,arguments)}return(0,i.default)(n,[{key:"prependView",value:function(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}},{key:"appendView",value:function(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}]),n}(r(n(294)).default);t.default=c},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){(0,o.default)(this,e),this.nodeType=t.toUpperCase()}return(0,i.default)(e,[{key:"setRootDocument",value:function(e){this.rootDocument=e}},{key:"obtain",value:function(){return this.rootDocument.createElement(this.nodeType)}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(15);function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var d=function(e){(0,a.default)(n,e);var t=c(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){var e=this.table,t=e.columnHeadersCount,n=e.rowHeadersCount,r=this.rootNode.firstChild;if(t){for(var o=this.table.columnsToRender+n,i=0,a=t;i<a;i++){for((r=this.rootNode.childNodes[i])||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}var s=this.rootNode.childNodes.length;if(s>t)for(var l=t;l<s;l++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,u.empty)(r)}},{key:"render",value:function(){for(var e=this.table.columnHeadersCount,t=0;t<e;t+=1)for(var n=this.table,r=n.columnHeaderFunctions,o=n.columnsToRender,i=n.rowHeadersCount,a=this.rootNode.childNodes[t],s=-1*i;s<o;s+=1){var l=this.table.renderedColumnToSource(s),u=a.childNodes[s+i];u.className="",u.removeAttribute("style"),r[t](l,u,t)}}}]),n}(r(n(151)).default);t.default=d},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(151)),c=n(15);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(e){return(0,o.default)(this,n),t.call(this,null,e)}return(0,i.default)(n,[{key:"adjust",value:function(){for(var e=this.table,t=e.columnsToRender+e.rowHeadersCount;this.renderedNodes<t;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>t;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}},{key:"render",value:function(){this.adjust();for(var e=this.table,t=e.columnsToRender,n=e.rowHeadersCount,r=0;r<n;r++){var o=this.table.renderedColumnToSource(r),i=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[r].style.width="".concat(i,"px")}for(var a=0;a<t;a++){var s=this.table.renderedColumnToSource(a),l=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(l,"px")}var u=this.rootNode.firstChild;u&&(0,c.addClass)(u,"rowHeader")}}]),n}(u.default);t.default=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o,i=r(n(58)),a=r(n(2)),s=r(n(3)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=n(69),h=n(59),f=n(180),v=r(n(151));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var p=!1,y=function(e){(0,l.default)(n,e);var t=g(n);function n(e){var r;return(0,a.default)(this,n),(r=t.call(this,"TR",e)).orderView=new f.OrderView(e,(function(e){return r.nodesPool.obtain(e)}),r.nodeType),r}return(0,s.default)(n,[{key:"getRenderedNode",value:function(e){return this.orderView.getNode(e)}},{key:"render",value:function(){var e=this.table.rowsToRender;!p&&e>1e3&&(p=!0,(0,d.warn)((0,h.toSingleLine)(o||(o=(0,i.default)(['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting \n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.'],['Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting\\x20\n the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.']))))),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(var t=0;t<e;t++)this.orderView.render();this.orderView.end()}}]),n}(v.default);t.default=y},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(15),c=n(180);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e;return(0,o.default)(this,n),(e=t.call(this,"TD")).orderViews=new WeakMap,e.sourceRowIndex=0,e}return(0,i.default)(n,[{key:"obtainOrderView",value:function(e){var t,n=this;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new c.SharedOrderView(e,(function(e){return n.nodesPool.obtain(n.sourceRowIndex,e)}),this.nodeType),this.orderViews.set(e,t)),t}},{key:"render",value:function(){for(var e=this.table,t=e.rowsToRender,n=e.columnsToRender,r=e.rows,o=e.rowHeaders,i=0;i<t;i++){var a=this.table.renderedRowToSource(i),s=r.getRenderedNode(i);this.sourceRowIndex=a;var l=this.obtainOrderView(s),c=o.obtainOrderView(s);l.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){l.render();var h=l.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,u.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}l.end()}}}]),n}(r(n(151)).default);t.default=h},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.cellRenderer;(0,o.default)(this,e),this.rootNode=t,this.rootDocument=this.rootNode.ownerDocument,this.rowHeaders=null,this.columnHeaders=null,this.colGroup=null,this.rows=null,this.cells=null,this.rowFilter=null,this.columnFilter=null,this.rowUtils=null,this.columnUtils=null,this.rowsToRender=0,this.columnsToRender=0,this.rowHeaderFunctions=[],this.rowHeadersCount=0,this.columnHeaderFunctions=[],this.columnHeadersCount=0,this.cellRenderer=r}return(0,i.default)(e,[{key:"setAxisUtils",value:function(e,t){this.rowUtils=e,this.columnUtils=t}},{key:"setViewportSize",value:function(e,t){this.rowsToRender=e,this.columnsToRender=t}},{key:"setFilters",value:function(e,t){this.rowFilter=e,this.columnFilter=t}},{key:"setHeaderContentRenderers",value:function(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}},{key:"setRenderers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rowHeaders,n=e.columnHeaders,r=e.colGroup,o=e.rows,i=e.cells;t.setTable(this),n.setTable(this),r.setTable(this),o.setTable(this),i.setTable(this),this.rowHeaders=t,this.columnHeaders=n,this.colGroup=r,this.rows=o,this.cells=i}},{key:"renderedRowToSource",value:function(e){return this.rowFilter.renderedToSource(e)}},{key:"renderedColumnToSource",value:function(e){return this.columnFilter.renderedToSource(e)}},{key:"render",value:function(){this.colGroup.adjust(),this.columnHeaders.adjust(),this.rows.adjust(),this.rowHeaders.adjust(),this.columnHeaders.render(),this.rows.render(),this.rowHeaders.render(),this.cells.render(),this.columnUtils.calculateWidths(),this.colGroup.render();for(var e=this.rowsToRender,t=this.rows,n=0;n<e;n++){var r=t.getRenderedNode(n);if(r.firstChild){var o=this.renderedRowToSource(n),i=this.rowUtils.getHeight(o);r.firstChild.style.height=i?"".concat(i-1,"px"):""}}}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(4),n(36),n(1),n(5),n(6);var o=r(n(2)),i=r(n(3)),a=n(15),s=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n,this.headerWidths=new Map}return(0,i.default)(e,[{key:"getWidth",value:function(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}},{key:"getStretchedColumnWidth",value:function(e){var t=this.dataAccessObject.wtViewport.columnsRenderCalculator,n=this.getWidth(e);if(t){var r=t.getStretchedColumnWidth(e,n);r&&(n=r)}return n}},{key:"getHeaderHeight",value:function(e){var t=this.wtSettings.getSetting("defaultRowHeight"),n=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),t}},{key:"getHeaderWidth",value:function(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}},{key:"calculateWidths",value:function(){var e=this.wtSettings,t=this.dataAccessObject,n=t.wtTable,r=t.wtViewport,o=t.cloneSource,i=o?o.wtTable.holder:n.holder,s=i.offsetHeight<i.scrollHeight?(0,a.getScrollbarWidth)():0,l=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(l=e.getSetting("onModifyRowHeaderWidth",l)))for(var u=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<u;d++){var h=Array.isArray(l)?l[d]:l;h=null==h?c:h,this.headerWidths.set(d,h)}}}]),e}();t.default=s},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=function(){function e(t,n){(0,o.default)(this,e),this.dataAccessObject=t,this.wtSettings=n}return(0,i.default)(e,[{key:"getHeight",value:function(e){var t=this.wtSettings.getSetting("rowHeight",e),n=this.dataAccessObject.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t}}]),e}();t.default=a},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(31)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=r(n(25)),d=r(n(292));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var f=function(e){(0,s.default)(n,e);var t=h(n);function n(e,r,o){var s;(0,i.default)(this,n),s=t.call(this,e,r),(0,c.default)((0,a.default)(s),"cloneSource",void 0),(0,c.default)((0,a.default)(s),"cloneOverlay",void 0);var l=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),l,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(l,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(216)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(60),n(61);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"dataAccessObject",void 0),(0,a.default)(this,"lastScrolledColumnPos",-1),(0,a.default)(this,"lastScrolledRowPos",-1),this.dataAccessObject=t}return(0,i.default)(e,[{key:"scrollViewport",value:function(e,t,n,r,o){var i=this.scrollViewportHorizontally(e.col,n,o),a=this.scrollViewportVertically(e.row,t,r);return i||a}},{key:"scrollViewportHorizontally",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalColumns;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleColumn(),s=this.getLastVisibleColumn(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedColumnsStart,d=u.inlineStartOverlay;if(l&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,l?e>this.lastScrolledColumnPos:t):(l&&(e<a||e>s)||!l)&&(h=d.scrollTo(e,l?e>s:t)),h&&(this.lastScrolledColumnPos=e),h}},{key:"scrollViewportVertically",value:function(e,t,n){var r=this.dataAccessObject,o=r.drawn,i=r.totalRows;if(!o||!Number.isInteger(e)||e<0||e>i)return!1;var a=this.getFirstVisibleRow(),s=this.getLastVisibleRow(),l=void 0===t&&void 0===n,u=this.dataAccessObject,c=u.fixedRowsBottom,d=u.fixedRowsTop,h=u.topOverlay;if(l&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,l?e>this.lastScrolledRowPos:n):(l&&(e<a||e>s)||!l)&&(f=h.scrollTo(e,l?e>s:n)),f&&(this.lastScrolledRowPos=e),f}},{key:"getFirstVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.fixedRowsTop,a=e.rootWindow,l=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var u=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(u.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var v=o;v>0;v--)if(f+=t.sumCellSizes(v-1,v),u.top+c-f<=h){l=v;break}}}return l}},{key:"getLastVisibleRow",value:function(){var e=this.dataAccessObject,t=e.topOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalRows,i=e.rootWindow,a=n.getLastVisibleRow();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.getScrollTop)(i,i);if(l.top>u)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),l.top+d-u>=c){a=h-2;break}}return a}},{key:"getFirstVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.inlineStartOverlay,n=e.wtTable,r=e.wtViewport,o=e.totalColumns,i=e.rootWindow,a=n.getFirstVisibleColumn();if(t.mainTableScrollableElement===i){var l=(0,s.offset)(n.wtRootElement),u=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(l.left+u-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),l.left+u-h<=d){a=f;break}}return a}},{key:"getLastVisibleColumn",value:function(){var e=this.dataAccessObject,t=e.wtSettings,n=e.inlineStartOverlay,r=e.wtTable,o=e.wtViewport,i=e.totalColumns,a=e.rootWindow,l=r.getLastVisibleColumn();if(n.mainTableScrollableElement===a){var u=null;if(t.getSetting("rtlMode")){var c=r.TABLE.getBoundingClientRect(),d=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;u=Math.abs(c.right-d)}else{u=(0,s.offset)(r.wtRootElement).left}var h=Math.abs((0,s.getScrollLeft)(a,a));if(u>h)for(var f=(0,s.innerWidth)(a),v=o.getRowHeaderWidth(),g=1;g<=i;g++)if(u+(v+=n.sumCellSizes(g-1,g))-h>=f){l=g-2;break}}return l}}]),e}();t.default=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.BottomOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25)),h=n(15),f=r(n(442)),v=n(126),g=n(110);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y=function(e){(0,l.default)(n,e);var t=p(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsBottom",-1),l.cachedFixedRowsBottom=l.wtSettings.getSetting("fixedRowsBottom"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.domBindings.rootWindow,t=this.clone.wtTable.holder.parentNode;t.style.top="";var n=0,r=this.wtSettings.getSetting("preventOverflow");this.trimmingContainer!==e||r&&"vertical"===r?(n=this.getScrollPosition(),this.repositionOverlay()):(n=this.getOverlayOffset(),t.style.bottom="".concat(n,"px"));var o=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),o}},{key:"repositionOverlay",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings.rootDocument,o=this.clone.wtTable.holder.parentNode,i=0;n.hasVerticalScroll()||(i+=n.getWorkspaceHeight()-t.getTotalHeight()),n.hasVerticalScroll()&&n.hasHorizontalScroll()&&(i+=(0,h.getScrollbarWidth)(r)),o.style.bottom="".concat(i,"px")}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wot,r=n.wtTable,o=n.wtSettings.getSetting("defaultRowHeight"),i=e,a=0;i<t;){var s=r.getRowHeight(i);a+=void 0===s?o:s,i+=1}return a}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot,t=e.wtTable,n=e.wtViewport,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,a=(0,h.getScrollbarWidth)(o),s=this.clone.wtTable.holder.parentNode.style,l=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===l){var u=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(u-=a),u=Math.min(u,t.wtRootElement.scrollWidth),s.width="".concat(u,"px")}else s.width="";this.clone.wtTable.holder.style.width=s.width;var c=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(c=0),s.height="".concat(c,"px")}},{key:"adjustRootChildrenSize",value:function(){var e=this.clone.wtTable.holder;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=e.parentNode.style.height}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&r.offsetHeight!==r.clientHeight&&(o=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight(),n+=1):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedRowsBottom"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight(),o=r-this.clone.wtTable.getTotalHeight(),i=this.domBindings.rootDocument.documentElement.clientHeight;(n=Math.max(this.getTableParentOffset()-this.getScrollPosition()-i+r,0))>o&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wtSettings.getSetting("fixedRowsBottom"),n=this.cachedFixedRowsBottom!==t,r=this.wtSettings.getSetting("columnHeaders"),o=!1;if((n||0===t)&&r.length>0){var i=this.wot.wtTable.holder.parentNode,a=(0,h.hasClass)(i,"innerBorderBottom");this.cachedFixedRowsBottom=this.wtSettings.getSetting("fixedRowsBottom"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(i,"innerBorderBottom"),o=!a):((0,h.removeClass)(i,"innerBorderBottom"),o=a)}return o}}]),n}(v.Overlay);t.BottomOverlay=y},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(296)),d=r(n(217)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_BOTTOM)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.InlineStartOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(15),d=r(n(444)),h=n(126),f=n(110);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,f.CLONE_INLINE_START,o,a)}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(d.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){var e=this.wot.wtTable;if(!this.needFullRender||!e.holder.parentNode)return!1;var t=this.domBindings.rootWindow,n=this.clone.wtTable.holder.parentNode,r=this.wtSettings.getSetting("preventOverflow"),o=0;this.trimmingContainer!==t||r&&"horizontal"===r?(o=this.getScrollPosition(),(0,c.resetCssTransform)(n)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,c.setOverlayPosition)(n,"".concat(o,"px"),"0px"));var i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.isRtl()&&(e=-e),this.mainTableScrollableElement===t&&t.scrollX!==e?(t.scrollTo(e,(0,c.getWindowScrollTop)(t)),n=!0):this.mainTableScrollableElement.scrollLeft!==e&&(this.mainTableScrollableElement.scrollLeft=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollVertically")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultColumnWidth"),r=e,o=0;r<t;)o+=this.wot.wtTable.getStretchedColumnWidth(r)||n,r+=1;return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,c.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"vertical"===a){var s=this.wot.wtViewport.getWorkspaceHeight();this.wot.wtOverlays.hasScrollbarBottom&&(s-=o),s=Math.min(s,e.wtRootElement.scrollHeight),i.height="".concat(s,"px")}else i.height="";this.clone.wtTable.holder.style.height=i.height;var l=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.height=this.hider.style.height,t.style.height=t.parentNode.style.height,t.style.width="".concat(parseInt(t.parentNode.style.width,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px"):this.clone.wtTable.spreader.style.top=""}},{key:"scrollTo",value:function(e,t){var n=this.getTableParentOffset(),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,o=0;t&&(this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1));return t&&r.offsetWidth!==r.clientWidth&&(o=(0,c.getScrollbarWidth)(this.domBindings.rootDocument)),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),n+=o,this.setScrollPosition(n)}},{key:"getTableParentOffset",value:function(){var e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}},{key:"getScrollPosition",value:function(){return Math.abs((0,c.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;this.trimmingContainer!==e||t&&"horizontal"===t||(n=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(n=0);return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wtSettings.getSetting("rowHeaders"),r=this.wtSettings.getSetting("fixedColumnsStart");this.wtSettings.getSetting("totalRows")?(0,c.removeClass)(t,"emptyRows"):(0,c.addClass)(t,"emptyRows");var o=!1;if(r&&!n.length)(0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart");else if(!r&&n.length){var i=(0,c.hasClass)(t,"innerBorderInlineStart");e?((0,c.addClass)(t,"innerBorderLeft innerBorderInlineStart"),o=!i):((0,c.removeClass)(t,"innerBorderLeft innerBorderInlineStart"),o=i)}return o}}]),n}(h.Overlay);t.InlineStartOverlay=g},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(297)),d=r(n(215)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_INLINE_START)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopInlineStartCornerOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25)),h=n(15),f=r(n(446)),v=n(126),g=n(110);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y=function(e){(0,l.default)(n,e);var t=p(n);function n(e,r,o,a,l,u){var c;return(0,i.default)(this,n),c=t.call(this,e,r,g.CLONE_TOP_INLINE_START_CORNER,o,a),(0,d.default)((0,s.default)(c),"topOverlay",void 0),(0,d.default)((0,s.default)(c),"inlineStartOverlay",void 0),c.topOverlay=l,c.inlineStartOverlay=u,c}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}},{key:"resetFixedPosition",value:function(){if(this.updateTrimmingContainer(),!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode;if(this.trimmingContainer===this.domBindings.rootWindow){var t=this.inlineStartOverlay.getOverlayOffset()*(this.isRtl()?-1:1),n=this.topOverlay.getOverlayOffset();(0,h.setOverlayPosition)(e,"".concat(t,"px"),"".concat(n,"px"))}else(0,h.resetCssTransform)(e);var r=(0,h.outerHeight)(this.clone.wtTable.TABLE),o=(0,h.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(r=0),e.style.height="".concat(r,"px"),e.style.width="".concat(o,"px"),!1}}]),n}(v.Overlay);t.TopInlineStartCornerOverlay=y},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(298)),d=r(n(215)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP_INLINE_START_CORNER)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TopOverlay=void 0;var o=r(n(124)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(10)),u=r(n(11)),c=r(n(8)),d=r(n(25)),h=n(15),f=r(n(448)),v=n(126),g=n(110);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var y=function(e){(0,l.default)(n,e);var t=p(n);function n(e,r,o,a){var l;return(0,i.default)(this,n),l=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(l),"cachedFixedRowsTop",-1),l.cachedFixedRowsTop=l.wtSettings.getSetting("fixedRowsTop"),l}return(0,a.default)(n,[{key:"createTable",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.default)(f.default,t)}},{key:"shouldBeRendered",value:function(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}},{key:"resetFixedPosition",value:function(){if(!this.needFullRender||!this.wot.wtTable.holder.parentNode)return!1;var e=this.clone.wtTable.holder.parentNode,t=this.domBindings.rootWindow,n=this.wtSettings.getSetting("preventOverflow"),r=0,o=!1;if(this.trimmingContainer!==t||n&&"vertical"===n)r=this.getScrollPosition(),(0,h.resetCssTransform)(e);else{var i=this.wot.wtTable.hider.getBoundingClientRect();o=Math.ceil(i.bottom)===e.offsetHeight,r=this.getOverlayOffset(),(0,h.setOverlayPosition)(e,"0px","".concat(r,"px"))}var a=this.adjustHeaderBordersPosition(r,o);return this.adjustElementsSize(),a}},{key:"setScrollPosition",value:function(e){var t=this.domBindings.rootWindow,n=!1;return this.mainTableScrollableElement===t&&t.scrollY!==e?(t.scrollTo((0,h.getWindowScrollLeft)(t),e),n=!0):this.mainTableScrollableElement.scrollTop!==e&&(this.mainTableScrollableElement.scrollTop=e,n=!0),n}},{key:"onScroll",value:function(){this.wtSettings.getSetting("onScrollHorizontally")}},{key:"sumCellSizes",value:function(e,t){for(var n=this.wtSettings.getSetting("defaultRowHeight"),r=e,o=0;r<t;){var i=this.wot.wtTable.getRowHeight(r);o+=void 0===i?n:i,r+=1}return o}},{key:"adjustElementsSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}},{key:"adjustRootElementSize",value:function(){var e=this.wot.wtTable,t=this.domBindings,n=t.rootDocument,r=t.rootWindow,o=(0,h.getScrollbarWidth)(n),i=this.clone.wtTable.holder.parentNode.style,a=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==r||"horizontal"===a){var s=this.wot.wtViewport.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(s-=o),s=Math.min(s,e.wtRootElement.scrollWidth),i.width="".concat(s,"px")}else i.width="";this.clone.wtTable.holder.style.width=i.width;var l=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(l=0),i.height="".concat(l,"px")}},{key:"adjustRootChildrenSize",value:function(){var e,t=this.clone.wtTable.holder,n=this.wot.selections,r=this.facadeGetter(),o=Math.abs(null!==(e=null==n?void 0:n.getCell().getBorder(r).cornerCenterPointOffset)&&void 0!==e?e:0);this.clone.wtTable.hider.style.width=this.hider.style.width,t.style.width=t.parentNode.style.width,t.style.height="".concat(parseInt(t.parentNode.style.height,10)+o,"px")}},{key:"applyToDOM",value:function(){var e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top="".concat(this.wot.wtViewport.rowsRenderCalculator.startPosition,"px");else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}},{key:"syncOverlayOffset",value:function(){var e=this.isRtl()?"right":"left",t=this.clone.wtTable.spreader;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]="".concat(this.wot.wtViewport.columnsRenderCalculator.startPosition,"px"):t.style[e]=""}},{key:"scrollTo",value:function(e,t){var n=this.wot,r=this.wtSettings,o=(n.cloneSource?n.cloneSource:n).wtTable.holder,i=this.getTableParentOffset(),a=0;t&&(this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1));if(t&&o.offsetHeight!==o.clientHeight&&(a=(0,h.getScrollbarWidth)(this.domBindings.rootDocument)),t){var s=r.getSetting("fixedRowsBottom"),l=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),i+=1}else i+=this.sumCellSizes(r.getSetting("fixedRowsTop"),e);return i+=a,this.setScrollPosition(i)}},{key:"getTableParentOffset",value:function(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}},{key:"getScrollPosition",value:function(){return(0,h.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}},{key:"getOverlayOffset",value:function(){var e=this.domBindings.rootWindow,t=this.wtSettings.getSetting("preventOverflow"),n=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){var r=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();(n=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0))>r&&(n=0)}return n}},{key:"adjustHeaderBordersPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.wot.wtTable.holder.parentNode,r=this.wtSettings.getSetting("totalColumns");r?(0,h.removeClass)(n,"emptyColumns"):(0,h.addClass)(n,"emptyColumns");var o=!1;if(!t){var i=this.wtSettings.getSetting("fixedRowsTop"),a=this.cachedFixedRowsTop!==i,s=this.wtSettings.getSetting("columnHeaders");if((a||0===i)&&s.length>0){var l=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!l):((0,h.removeClass)(n,"innerBorderTop"),o=l)}}return o}}]),n}(v.Overlay);t.TopOverlay=y},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(3)),i=r(n(2)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=r(n(125)),c=r(n(298)),d=r(n(217)),h=n(12),f=n(109);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,o,a){return(0,i.default)(this,n),t.call(this,e,r,o,a,f.CLONE_TOP)}return(0,o.default)(n)}(u.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var p=g;t.default=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(299);var o=r(n(2)),i=r(n(3)),a=r(n(25)),s=n(15),l=n(12),u=function(){function e(t){var n=this;(0,o.default)(this,e),(0,a.default)(this,"settings",{}),(0,a.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,l.objectEach)(this.defaults,(function(e,r){if(void 0!==t[r])n.settings[r]=t[r];else{if(void 0===e)throw new Error('A required setting "'.concat(r,'" was not provided'));n.settings[r]=e}}))}return(0,i.default)(e,[{key:"getDefaults",value:function(){var e=this;return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},preventWheel:!1,data:void 0,freezeOverlays:!1,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:function(){return e.getSetting("fixedColumnsStart")>0||e.getSetting("rowHeaders").length>0},shouldRenderTopOverlay:function(){return e.getSetting("fixedRowsTop")>0||e.getSetting("columnHeaders").length>0},shouldRenderBottomOverlay:function(){return e.getSetting("fixedRowsBottom")>0},minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(t,n,r){var o=e.getSetting("data",t,n);(0,s.fastInnerText)(r,null==o?"":o)},columnWidth:function(){},rowHeight:function(){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onBeforeHighlightingRowHeader:function(e){return e},onBeforeHighlightingColumnHeader:function(e){return e},onWindowResize:null,onContainerElementResize:null,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1}}},{key:"update",value:function(e,t){var n=this;return void 0===t?(0,l.objectEach)(e,(function(e,t){n.settings[t]=e})):this.settings[e]=t,this}},{key:"getSetting",value:function(e,t,n,r,o){return"function"==typeof this.settings[e]?this.settings[e](t,n,r,o):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}},{key:"getSettingPure",value:function(e){return this.settings[e]}},{key:"has",value:function(e){return!!this.settings[e]}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(28);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(15),c=r(n(125)),d=r(n(297)),h=r(n(217)),f=n(12);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=v(n);function n(e,r,i,a){return(0,o.default)(this,n),t.call(this,e,r,i,a,"master")}return(0,i.default)(n,[{key:"alignOverlaysWithTrimmingContainer",value:function(){var e=(0,u.getTrimmingContainer)(this.wtRootElement),t=this.domBindings.rootWindow;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{var n=e.parentElement,r=(0,u.getStyle)(e,"height",t),o=(0,u.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,l=e.getBoundingClientRect(),c=l.width,d=l.height;if(n&&["auto","hidden","scroll"].includes(o)){var h=e.cloneNode(!1);h.style.overflow="auto",h.style.position="absolute",e.nextElementSibling?n.insertBefore(h,e.nextElementSibling):n.appendChild(h);var f=parseInt((0,u.getComputedStyle)(h,t).height,10);n.removeChild(h),0===f&&(d=0)}d=Math.min(d,s),i.height="auto"===r?"auto":"".concat(d,"px"),c=Math.min(c,a),i.width="".concat(c,"px"),i.overflow="",this.hasTableHeight="auto"===i.height||d>0,this.hasTableWidth=c>0}this.isTableVisible=(0,u.isVisible)(this.TABLE)}},{key:"markOversizedColumnHeaders",value:function(){var e=this.wtSettings,t=this.dataAccessObject.wtViewport,n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked.master){for(var r=e.getSetting("rowHeaders").length,o=this.getRenderedColumnsCount(),i=0;i<n;i++)for(var a=-1*r;a<o;a++)this.markIfOversizedColumnHeader(a);t.hasOversizedColumnHeadersMarked.master=!0}}}]),n}(c.default);(0,f.mixin)(g,d.default),(0,f.mixin)(g,h.default);var p=g;t.default=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0;var o=r(n(2)),i=r(n(3)),a=n(15),s=n(12),l=n(452),u=function(){function e(t,n,r,i,a){var s=this;(0,o.default)(this,e),this.dataAccessObject=t,this.wot=t.wot,this.instance=this.wot,this.domBindings=n,this.wtSettings=r,this.wtTable=a,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=i,this.eventManager.addEventListener(this.domBindings.rootWindow,"resize",(function(){s.clientHeight=s.getWorkspaceHeight()}))}return(0,i.default)(e,[{key:"getWorkspaceHeight",value:function(){var e=this.domBindings.rootDocument,t=this.dataAccessObject.topOverlayTrimmingContainer,n=0;t===this.domBindings.rootWindow?n=e.documentElement.clientHeight:n=(0,a.outerHeight)(t)>0&&t.clientHeight>0?t.clientHeight:1/0;return n}},{key:"getWorkspaceWidth",value:function(){var e,t,n=this.wtSettings,r=this.domBindings,o=r.rootDocument,i=r.rootWindow,s=this.dataAccessObject.inlineStartOverlayTrimmingContainer,l=o.documentElement.offsetWidth,u=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=l-(d?h.right-l:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,l):Math.min(this.getContainerFillWidth(),f,l),s===i&&u>0&&this.sumColumnWidths(0,u-1)>e)return o.documentElement.clientWidth;if(s!==i&&("scroll"===(t=(0,a.getStyle)(this.dataAccessObject.inlineStartOverlayTrimmingContainer,"overflow",i))||"hidden"===t||"auto"===t))return Math.max(e,s.clientWidth);var v=n.getSetting("stretchH");return"none"!==v&&v?e:Math.max(e,(0,a.outerWidth)(this.wtTable.TABLE))}},{key:"hasVerticalScroll",value:function(){return this.wtTable.hider.offsetHeight>this.getWorkspaceHeight()}},{key:"hasHorizontalScroll",value:function(){return this.wtTable.hider.offsetWidth>this.getWorkspaceWidth()}},{key:"sumColumnWidths",value:function(e,t){for(var n=0,r=e;r<t;)n+=this.wtTable.getColumnWidth(r),r+=1;return n}},{key:"getContainerFillWidth",value:function(){if(this.containerWidth)return this.containerWidth;var e=this.wtTable.holder,t=this.domBindings.rootDocument.createElement("div");t.style.width="100%",t.style.height="1px",e.appendChild(t);var n=t.offsetWidth;return this.containerWidth=n,e.removeChild(t),n}},{key:"getWorkspaceOffset",value:function(){return(0,a.offset)(this.wtTable.TABLE)}},{key:"getColumnHeaderHeight",value:function(){return this.wtSettings.getSetting("columnHeaders").length?isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=(0,a.outerHeight)(this.wtTable.THEAD)):this.columnHeaderHeight=0,this.columnHeaderHeight}},{key:"getViewportHeight",value:function(){var e=this.getWorkspaceHeight();if(e===1/0)return e;var t=this.getColumnHeaderHeight();return t>0&&(e-=t),e}},{key:"getRowHeaderWidth",value:function(){var e=this.wtSettings.getSetting("rowHeaderWidth"),t=this.wtSettings.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var n=0,r=t.length;n<r;n++)this.rowHeaderWidth+=e[n]||e}if(isNaN(this.rowHeaderWidth))if(t.length){var o=this.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;i<s;i++)o?(this.rowHeaderWidth+=(0,a.outerWidth)(o),o=o.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth=this.wtSettings.getSetting("onModifyRowHeaderWidth",this.rowHeaderWidth)||this.rowHeaderWidth,this.rowHeaderWidth}},{key:"getViewportWidth",value:function(){var e=this.getWorkspaceWidth();if(e===1/0)return e;var t=this.getRowHeaderWidth();return t>0?e-t:e}},{key:"createRowsCalculator",value:function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===l.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset,u=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return u&&s>=0&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,u),e-=n),c&&this.dataAccessObject.bottomOverlay.clone&&(e-=n=this.dataAccessObject.bottomOverlay.sumCellSizes(d-c,d)),t=i.holder.clientHeight===i.holder.offsetHeight?0:(0,a.getScrollbarWidth)(this.domBindings.rootDocument),new l.ViewportRowsCalculator({viewportSize:e,scrollOffset:s,totalItems:o.getSetting("totalRows"),itemSizeFn:function(e){return i.getRowHeight(e)},overrideFn:o.getSettingPure("viewportRowCalculatorOverride"),calculationType:r,scrollbarHeight:t})}},{key:"createColumnsCalculator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.RENDER_TYPE,t=this.wtSettings,n=this.wtTable,r=this.getViewportWidth(),o=Math.abs(this.dataAccessObject.inlineStartScrollPosition)-this.dataAccessObject.inlineStartParentOffset;this.columnHeaderHeight=NaN;var i=t.getSetting("fixedColumnsStart");if(i&&o>=0){var s=this.dataAccessObject.inlineStartOverlay.sumCellSizes(0,i);o+=s,r-=s}return n.holder.clientWidth!==n.holder.offsetWidth&&(r-=(0,a.getScrollbarWidth)(this.domBindings.rootDocument)),new l.ViewportColumnsCalculator({viewportSize:r,scrollOffset:o,totalItems:t.getSetting("totalColumns"),itemSizeFn:function(e){return n.getColumnWidth(e)},overrideFn:t.getSettingPure("viewportColumnCalculatorOverride"),calculationType:e,stretchMode:t.getSetting("stretchH"),stretchingItemWidthFn:function(e,n){return t.getSetting("onBeforeStretchingColumnWidth",e,n)},inlineStartOffset:this.dataAccessObject.inlineStartParentOffset})}},{key:"createRenderCalculators",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e;if(t){var n=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(l.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(l.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(l.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(l.FULLY_VISIBLE_TYPE)}},{key:"areAllProposedVisibleRowsAlreadyRendered",value:function(e){if(!this.rowsVisibleCalculator)return!1;var t=e.startRow,n=e.endRow,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.rowsRenderCalculator,i=o.startRow,a=o.endRow;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&n<this.wtSettings.getSetting("totalRows")-1)}},{key:"areAllProposedVisibleColumnsAlreadyRendered",value:function(e){if(!this.columnsVisibleCalculator)return!1;var t=e.startColumn,n=e.endColumn,r=e.isVisibleInTrimmingContainer;if(null===t&&null===n)return!r;var o=this.columnsRenderCalculator,i=o.startColumn,a=o.endColumn;return!(t<i||t===i&&t>0)&&!(n>a||n===a&&n<this.wtSettings.getSetting("totalColumns")-1)}},{key:"resetHasOversizedColumnHeadersMarked",value:function(){(0,s.objectEach)(this.hasOversizedColumnHeadersMarked,(function(e,t,n){n[t]=void 0}))}}]),e}();t.default=u},function(e,t,n){"use strict";n(1),n(20),n(37);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(288));t.ViewportColumnsCalculator=i.default;var a=r(n(289));t.ViewportRowsCalculator=a.default;var s=n(213);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===s[e]||(t[e]=s[e]))}))},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(28),n(35),n(19),n(1),n(20),n(454);var o=r(n(22)),i=r(n(14)),a=r(n(2)),s=r(n(3)),l=n(15),u=r(n(456)),c=function(){function e(t,n){(0,a.default)(this,e),this.settings=t,this.cellRange=n||null,this.instanceBorders={},this.classNames=[this.settings.className],this.classNameGenerator=this.linearClassNameGenerator(this.settings.className,this.settings.layerLevel)}return(0,s.default)(e,[{key:"getBorder",value:function(e){return this.instanceBorders[e.guid]||(this.instanceBorders[e.guid]=new u.default(e,this.settings)),this.instanceBorders[e.guid]}},{key:"isEmpty",value:function(){return null===this.cellRange}},{key:"add",value:function(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}},{key:"replace",value:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1}},{key:"clear",value:function(){return this.cellRange=null,this}},{key:"getCorners",value:function(){var e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}},{key:"addClassAtCoords",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.wtTable.getCell(this.settings.createCellCoords(t,n));if("object"===(0,i.default)(a)){var s=r;o&&(s=this.classNameGenerator(a),this.classNames.includes(s)||this.classNames.push(s)),(0,l.addClass)(a,s)}return this}},{key:"linearClassNameGenerator",value:function(e,t){return function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0===t||0===o)return e;var i=o>=0?o:t,a=e,s=0===(i-=1)?e:"".concat(e,"-").concat(i);if((0,l.hasClass)(r,s)){var u=i+1;a="".concat(e,"-").concat(u)}else a=n(r,i);return a}}},{key:"draw",value:function(e){if(this.isEmpty())this.settings.border&&this.getBorder(e).disappear();else{var t=e.wtTable.getRenderedRowsCount(),n=e.wtTable.getRenderedColumnsCount(),r=this.getCorners(),i=(0,o.default)(r,4),a=i[0],s=i[1],u=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,v=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,p=d.selectionType,y=void 0===p||["active-header","header"].includes(p);if(y&&null!==s&&null!==c)for(var m=0,C=0;C<n;C+=1){var w=e.wtTable.columnFilter.renderedToSource(C);if(w>=s&&w<=c){var E=e.wtTable.getColumnHeaders(w),R=E.length-1;g&&E.length>1&&(E=[E[R]]);for(var S=0;S<E.length;S+=1){var b=[],T=E[S];h&&b.push(h),f&&b.push(f),S=g?R:S;var O=e.getSetting("onBeforeHighlightingColumnHeader",w,S,{selectionType:p,columnCursor:m,selectionWidth:c-s+1,classNames:b});O!==w&&(T=e.wtTable.getColumnHeader(O,S)),(0,l.addClass)(T,b)}m+=1}}if(null!==a&&null!==u)for(var _=0,I=0;I<t;I+=1){var k=e.wtTable.rowFilter.renderedToSource(I);if(y&&k>=a&&k<=u){var M=e.wtTable.getRowHeaders(k),N=M.length-1;g&&M.length>1&&(M=[M[N]]);for(var P=0;P<M.length;P+=1){var A=[],x=M[P];h&&A.push(h),v&&A.push(v),P=g?N:P;var D=e.getSetting("onBeforeHighlightingRowHeader",k,P,{selectionType:p,rowCursor:_,selectionHeight:u-a+1,classNames:A});D!==k&&(x=e.wtTable.getRowHeader(D,P)),(0,l.addClass)(x,A)}_+=1}if(null!==s&&null!==c)for(var L=0;L<n;L+=1){var H=e.wtTable.columnFilter.renderedToSource(L);k>=a&&k<=u&&H>=s&&H<=c?this.settings.className&&this.addClassAtCoords(e,k,H,this.settings.className,this.settings.markIntersections):k>=a&&k<=u?v&&this.addClassAtCoords(e,k,H,v):H>=s&&H<=c&&f&&this.addClassAtCoords(e,k,H,f);var B=e.getSetting("onAfterDrawSelection",k,H,this.settings.layerLevel);"string"==typeof B&&this.addClassAtCoords(e,k,H,B)}}e.getSetting("onBeforeDrawBorders",r,this.settings.className),this.settings.border&&this.getBorder(e).appear(r)}}},{key:"destroy",value:function(){Object.values(this.instanceBorders).forEach((function(e){return e.destroy()}))}}]),e}();t.default=c},function(e,t,n){var r=n(21),o=n(455).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(48),o=n(26),i=n(27),a=n(167),s=n(135),l=n(76),u=i(n(164).f),c=i([].push),d=r&&o((function(){var e=Object.create(null);return e[2]=2,!u(e,2)})),h=function(e){return function(t){for(var n,o=l(t),i=s(o),h=d&&null===a(o),f=i.length,v=0,g=[];f>v;)n=i[v++],r&&!(h?n in o:u(o,n))||c(g,e?[n,o[n]]:o[n]);return g}};e.exports={entries:h(!0),values:h(!1)}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(74);var o=r(n(22)),i=r(n(2)),a=r(n(3)),s=n(15),l=n(62),u=n(12),c=n(78),d=function(){function e(t,n){(0,i.default)(this,e),n&&(this.eventManager=t.eventManager,this.instance=t,this.wot=t,this.settings=n,this.mouseDown=!1,this.main=null,this.top=null,this.bottom=null,this.start=null,this.end=null,this.topStyle=null,this.bottomStyle=null,this.startStyle=null,this.endStyle=null,this.cornerDefaultStyle={width:"6px",height:"6px",borderWidth:"1px",borderStyle:"solid",borderColor:"#FFF"},this.cornerCenterPointOffset=-parseInt(this.cornerDefaultStyle.width,10)/2,this.corner=null,this.cornerStyle=null,this.createBorders(n),this.registerListeners())}return(0,a.default)(e,[{key:"registerListeners",value:function(){var e=this,t=this.wot.rootDocument.body;this.eventManager.addEventListener(t,"mousedown",(function(){return e.onMouseDown()})),this.eventManager.addEventListener(t,"mouseup",(function(){return e.onMouseUp()}));for(var n=function(t){var n=e.main.childNodes[t];e.eventManager.addEventListener(n,"mouseenter",(function(n){return e.onMouseEnter(n,e.main.childNodes[t])}))},r=0,o=this.main.childNodes.length;r<o;r++)n(r)}},{key:"onMouseDown",value:function(){this.mouseDown=!0}},{key:"onMouseUp",value:function(){this.mouseDown=!1}},{key:"onMouseEnter",value:function(e,t){if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),(0,l.stopImmediatePropagation)(e);var n=this,r=this.wot.rootDocument.body,o=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(r,"mousemove",(function e(i){var a;((a=i).clientY<Math.floor(o.top)||a.clientY>Math.ceil(o.top+o.height)||a.clientX<Math.floor(o.left)||a.clientX>Math.ceil(o.left+o.width))&&(n.eventManager.removeEventListener(r,"mousemove",e),t.style.display="block")}))}}},{key:"createBorders",value:function(e){var t=this.wot.rootDocument;this.main=t.createElement("div");var n=["top","start","bottom","end","corner"],r=this.main.style;r.position="absolute",r.top=0,r.left=0;for(var o=0;o<5;o++){var i=n[o],a=t.createElement("div");a.className="wtBorder ".concat(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(a.className+=" hidden"),(r=a.style).backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,r.height=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),r.width=this.settings[i]&&this.settings[i].width?"".concat(this.settings[i].width,"px"):"".concat(e.border.width,"px"),this.main.appendChild(a)}this.top=this.main.childNodes[0],this.start=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.end=this.main.childNodes[3],this.topStyle=this.top.style,this.startStyle=this.start.style,this.bottomStyle=this.bottom.style,this.endStyle=this.end.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,c.isMobileBrowser)()&&this.createMultipleSelectorHandles(),this.disappear();var s=this.wot.wtTable,l=s.bordersHolder;l||((l=t.createElement("div")).className="htBorders",s.bordersHolder=l,s.spreader.appendChild(l)),l.appendChild(this.main)}},{key:"createMultipleSelectorHandles",value:function(){var e=this,t=this.wot.rootDocument;this.selectionHandles={top:t.createElement("DIV"),topHitArea:t.createElement("DIV"),bottom:t.createElement("DIV"),bottomHitArea:t.createElement("DIV")};this.selectionHandles.top.className="topSelectionHandle topLeftSelectionHandle",this.selectionHandles.topHitArea.className="topSelectionHandle-HitArea topLeftSelectionHandle-HitArea",this.selectionHandles.bottom.className="bottomSelectionHandle bottomRightSelectionHandle",this.selectionHandles.bottomHitArea.className="bottomSelectionHandle-HitArea bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={top:this.selectionHandles.top.style,topHitArea:this.selectionHandles.topHitArea.style,bottom:this.selectionHandles.bottom.style,bottomHitArea:this.selectionHandles.bottomHitArea.style};var n={position:"absolute",height:"".concat(40,"px"),width:"".concat(40,"px"),"border-radius":"".concat(parseInt(40/1.5,10),"px")};(0,u.objectEach)(n,(function(t,n){e.selectionHandles.styles.bottomHitArea[n]=t,e.selectionHandles.styles.topHitArea[n]=t}));var r={position:"absolute",height:"".concat(10,"px"),width:"".concat(10,"px"),"border-radius":"".concat(parseInt(10/1.5,10),"px"),background:"#F5F5FF",border:"1px solid #4285c8"};(0,u.objectEach)(r,(function(t,n){e.selectionHandles.styles.bottom[n]=t,e.selectionHandles.styles.top[n]=t})),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}},{key:"isPartRange",value:function(e,t){var n=this.wot.selections.createOrGetArea();return!(!n.cellRange||e===n.cellRange.to.row&&t===n.cellRange.to.col)}},{key:"updateMultipleSelectionHandlesPosition",value:function(e,t,n,r,o,i){var a=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",s=this.selectionHandles.styles,l=s.top,u=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(l.borderWidth,10),f=parseInt(l.width,10),v=parseInt(u.width,10),g=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();l.top="".concat(parseInt(n-f-1,10),"px"),l[a]="".concat(parseInt(r-f-1,10),"px"),u.top="".concat(parseInt(n-v/4*3,10),"px"),u[a]="".concat(parseInt(r-v/4*3,10),"px");var y=Math.min(parseInt(r+o,10),g-f-2*h),m=Math.min(parseInt(r+o-v/4,10),g-v-2*h);c[a]="".concat(y,"px"),d[a]="".concat(m,"px");var C=Math.min(parseInt(n+i,10),p-f-2*h),w=Math.min(parseInt(n+i-v/4,10),p-v-2*h);c.top="".concat(C,"px"),d.top="".concat(w,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(l.display="block",u.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(l.display="none",c.display="none",u.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(l.zIndex="9999",u.zIndex="9999"):(l.zIndex="",u.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,l,u=this.wot,d=u.wtTable,h=u.rootDocument,f=u.rootWindow,v=d.getRenderedRowsCount(),g=0;g<v;g+=1){var p=d.rowFilter.renderedToSource(g);if(p>=e[0]&&p<=e[2]){t=p,a=e[0];break}}for(var y=v-1;y>=0;y-=1){var m=d.rowFilter.renderedToSource(y);if(m>=e[0]&&m<=e[2]){n=m;break}}for(var C=d.getRenderedColumnsCount(),w=0;w<C;w+=1){var E=d.columnFilter.renderedToSource(w);if(E>=e[1]&&E<=e[3]){r=E,l=e[1];break}}for(var R=C-1;R>=0;R-=1){var S=d.columnFilter.renderedToSource(R);if(S>=e[1]&&S<=e[3]){i=S;break}}if(void 0!==t&&void 0!==r){var b=d.getCell(this.wot.createCellCoords(t,r)),T=t!==n||r!==i,O=T?d.getCell(this.wot.createCellCoords(n,i)):b,_=(0,s.offset)(b),I=T?(0,s.offset)(O):_,k=(0,s.offset)(d.TABLE),M=(0,s.outerWidth)(d.TABLE),N=_.top,P=_.left,A=this.wot.wtSettings.getSetting("rtlMode"),x=0,D=0;if(A){var L=(0,s.outerWidth)(b),H=f.innerWidth-k.left-M;D=P+L-I.left,x=f.innerWidth-P-L-H-1}else D=I.left+(0,s.outerWidth)(O)-P,x=P-k.left-1;if(this.isEntireColumnSelected(t,n)){var B=this.getDimensionsFromHeader("columns",r,i,a,k),F=null;if(B){var V=(0,o.default)(B,3);F=V[0],x=V[1],D=V[2]}F&&(b=F)}var U=N-k.top-1,W=I.top+(0,s.outerHeight)(O)-N;if(this.isEntireRowSelected(r,i)){var j=this.getDimensionsFromHeader("rows",t,n,l,k),Y=null;if(j){var G=(0,o.default)(j,3);Y=G[0],U=G[1],W=G[2]}Y&&(b=Y)}var z=(0,s.getComputedStyle)(b,f);parseInt(z.borderTopWidth,10)>0&&(U+=1,W=W>0?W-1:0),parseInt(z[A?"borderRightWidth":"borderLeftWidth"],10)>0&&(x+=1,D=D>0?D-1:0);var K=A?"right":"left";this.topStyle.top="".concat(U,"px"),this.topStyle[K]="".concat(x,"px"),this.topStyle.width="".concat(D,"px"),this.topStyle.display="block",this.startStyle.top="".concat(U,"px"),this.startStyle[K]="".concat(x,"px"),this.startStyle.height="".concat(W,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(U+W-X,"px"),this.bottomStyle[K]="".concat(x,"px"),this.bottomStyle.width="".concat(D,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(U,"px"),this.endStyle[K]="".concat(x+D-X,"px"),this.endStyle.height="".concat(W+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var Q=this.wot.getSetting("onModifyGetCellCoords",n,i),$=n,J=i;if(Q&&Array.isArray(Q)){var Z=(0,o.default)(Q,4);$=Z[2],J=Z[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange($,J))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(U+W+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(x+D+this.cornerCenterPointOffset-1,"px"),this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";var ee=(0,s.getTrimmingContainer)(d.TABLE),te=ee===f;te&&(ee=h.documentElement);var ne=parseInt(this.cornerDefaultStyle.width,10)/2,re=parseInt(this.cornerDefaultStyle.height,10)/2;if(i===this.wot.getSetting("totalColumns")-1){var oe=te?O.getBoundingClientRect().left:O.offsetLeft;(A?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(O)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(x+D+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[A?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?O.getBoundingClientRect().top:O.offsetTop)+(0,s.outerHeight)(O)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(U+W+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,U,x,D,W)}else this.disappear()}}},{key:"isEntireColumnSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}},{key:"isEntireRowSelected",value:function(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}},{key:"getDimensionsFromHeader",value:function(e,t,n,r,o){var i=this.wot.wtTable,a=i.wtRootElement.parentNode,l=null,u=null,c=null,d=null,h=null,f=null,v=null,g=null;switch(e){case"rows":l=function(){return i.getRowHeader.apply(i,arguments)},u=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":l=function(){return i.getColumnHeader.apply(i,arguments)},u=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var p=this.wot.getSetting("columnHeaders").length;if(v=l(t,p-r),g=l(n,p-r),!v||!g)return!1;var y=(0,s.offset)(v),m=(0,s.offset)(g);return v&&g&&(d=y[f]-o[f]-1,h=m[f]+u(g)-y[f]),[v,d,h]}return!1}},{key:"changeBorderStyle",value:function(e,t){var n=this[e].style,r=t[e];!r||r.hide?(0,s.addClass)(this[e],"hidden"):((0,s.hasClass)(this[e],"hidden")&&(0,s.removeClass)(this[e],"hidden"),n.backgroundColor=r.color,"top"!==e&&"bottom"!==e||(n.height="".concat(r.width,"px")),"start"!==e&&"end"!==e||(n.width="".concat(r.width,"px")))}},{key:"changeBorderToDefaultStyle",value:function(e){var t=1,n="#000",r=this[e].style;r.backgroundColor=n,r.width="".concat(t,"px"),r.height="".concat(t,"px")}},{key:"toggleHiddenClass",value:function(e,t){this.changeBorderToDefaultStyle(e),t?(0,s.addClass)(this[e],"hidden"):(0,s.removeClass)(this[e],"hidden")}},{key:"disappear",value:function(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,c.isMobileBrowser)()&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}},{key:"destroy",value:function(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(21),o=n(38),i=n(56),a=n(27),s=n(94),l=n(48),u=n(115),c=n(26),d=n(47),h=n(95),f=n(54),v=n(76),g=n(162),p=n(49),y=n(139),m=n(100),C=n(135),w=n(117),E=n(197),R=n(165),S=n(97),b=n(73),T=n(241),O=n(164),_=n(83),I=n(144),k=n(114),M=n(163),N=n(137),P=n(160),A=n(41),x=n(301),D=n(302),L=n(458),H=n(168),B=n(89),F=n(105).forEach,V=M("hidden"),U=B.set,W=B.getterFor("Symbol"),j=Object.prototype,Y=o.Symbol,G=Y&&Y.prototype,z=o.TypeError,K=o.QObject,X=S.f,q=b.f,Q=E.f,$=O.f,J=a([].push),Z=k("symbols"),ee=k("op-symbols"),te=k("wks"),ne=!K||!K.prototype||!K.prototype.findChild,re=l&&c((function(){return 7!=m(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(j,t);r&&delete j[t],q(e,t,n),r&&e!==j&&q(j,t,r)}:q,oe=function(e,t){var n=Z[e]=m(G);return U(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},ie=function(e,t,n){e===j&&ie(ee,t,n),f(e);var r=g(t);return f(n),d(Z,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=m(n,{enumerable:y(0,!1)})):(d(e,V)||q(e,V,y(1,{})),e[V][r]=!0),re(e,r,n)):q(e,r,n)},ae=function(e,t){f(e);var n=v(t),r=C(n).concat(ce(n));return F(r,(function(t){l&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=g(e),n=i($,this,t);return!(this===j&&d(Z,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(Z,t)||d(this,V)&&this[V][t])||n)},le=function(e,t){var n=v(e),r=g(t);if(n!==j||!d(Z,r)||d(ee,r)){var o=X(n,r);return!o||!d(Z,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},ue=function(e){var t=Q(v(e)),n=[];return F(t,(function(e){d(Z,e)||d(N,e)||J(n,e)})),n},ce=function(e){var t=e===j,n=Q(t?ee:v(e)),r=[];return F(n,(function(e){!d(Z,e)||t&&!d(j,e)||J(r,Z[e])})),r};u||(_(G=(Y=function(){if(h(G,this))throw z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?p(arguments[0]):void 0,t=P(e),n=function(e){this===j&&i(n,ee,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),re(this,t,y(1,e))};return l&&ne&&re(j,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return W(this).tag})),_(Y,"withoutSetter",(function(e){return oe(P(e),e)})),O.f=se,b.f=ie,T.f=ae,S.f=le,w.f=E.f=ue,R.f=ce,x.f=function(e){return oe(A(e),e)},l&&(I(G,"description",{configurable:!0,get:function(){return W(this).description}}),s||_(j,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),F(C(te),(function(e){D(e)})),r({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(e,t){return void 0===t?m(e):ae(m(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ue}),L(),H(Y,"Symbol"),N[V]=!0},function(e,t,n){var r=n(56),o=n(88),i=n(41),a=n(83);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){var r=n(21),o=n(88),i=n(47),a=n(49),s=n(114),l=n(303),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(21),o=n(47),i=n(134),a=n(116),s=n(114),l=n(303),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},function(e,t,n){var r=n(21),o=n(88),i=n(106),a=n(56),s=n(27),l=n(26),u=n(42),c=n(134),d=n(146),h=n(462),f=n(115),v=String,g=o("JSON","stringify"),p=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),C=s("".replace),w=s(1..toString),E=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,b=!f||l((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),T=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),O=function(e,t){var n=d(arguments),r=h(t);if(u(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(u(r)&&(t=a(r,this,v(e),t)),!c(t))return t},i(g,null,n)},_=function(e,t,n){var r=y(n,t-1),o=y(n,t+1);return p(R,e)&&!p(S,o)||p(S,e)&&!p(R,r)?"\\u"+w(m(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:b||T},{stringify:function(e,t,n){var r=d(arguments),o=i(b?O:g,null,r);return T&&"string"==typeof o?C(o,E,_):o}})},function(e,t,n){var r=n(27),o=n(119),i=n(42),a=n(85),s=n(49),l=r([].push);e.exports=function(e){if(i(e))return e;if(o(e)){for(var t=e.length,n=[],r=0;r<t;r++){var u=e[r];"string"==typeof u?l(n,u):"number"!=typeof u&&"Number"!=a(u)&&"String"!=a(u)||l(n,s(u))}var c=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(o(this))return t;for(var r=0;r<c;r++)if(n[r]===e)return t}}}},function(e,t,n){var r=n(21),o=n(115),i=n(26),a=n(165),s=n(72);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(60),n(61),n(1),n(20);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(111),l=n(13),u=n(32),c=n(51),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,o.default)(this,e),this.hot=t,this.data=n,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}}return(0,i.default)(e,[{key:"modifyRowData",value:function(e){var t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}},{key:"setData",value:function(e){this.data=e}},{key:"getAtColumn",value:function(e){var t=this,n=[];return(0,l.arrayEach)(this.data,(function(r,o){var i=t.getAtCell(o,e);n.push(i)})),n}},{key:"getAtRow",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=void 0===t&&void 0===n,s=null,l=null;if(s=this.modifyRowData(e),Array.isArray(s))l=[],i?s.forEach((function(t,n){l[n]=r.getAtPhysicalCell(e,n,s)})):(0,u.rangeEach)(t,n,(function(n){l[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(l=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,u.rangeEach)(d,h,(function(i){var u=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(u)){var c=r.getAtPhysicalCell(e,u,s);o?l.push(c):(0,a.setProperty)(l,u,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(l,n,r.getAtPhysicalCell(e,n,s))}));return l}},{key:"setAtCell",value:function(e,t,n){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){var r=(0,a.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,t,r,"set"),r.isTouched()&&(n=r.value)}Number.isInteger(t)?this.data[e][t]=n:(0,a.setProperty)(this.data[e],t,n)}}},{key:"getAtPhysicalCell",value:function(e,t,n){var r=null;if(n&&(r="string"==typeof t?(0,a.getProperty)(n,t):"function"==typeof t?t(n):n[t]),this.hot.hasHook("modifySourceData")){var o=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,t,o,"get"),o.isTouched()&&(r=o.value)}return r}},{key:"getAtCell",value:function(e,t){var n=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),n)}},{key:"getByRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=!1,i=null,a=null,s=null,l=null;null===t||null===n?(o=!0,i=0,s=this.countRows()-1):(i=Math.min(t.row,n.row),a=Math.min(t.col,n.col),s=Math.max(t.row,n.row),l=Math.max(t.col,n.col));var c=[];return(0,u.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,l,r))})),c}},{key:"countRows",value:function(){if(this.hot.hasHook("modifySourceLength")){var e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}},{key:"countFirstRowKeys",value:function(){return(0,s.countFirstRowKeys)(this.data)}},{key:"destroy",value:function(){this.data=null,this.hot=null}}]),e}();t.default=d},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.IndexMapper=void 0;var o=r(n(29)),i=r(n(2)),a=r(n(3));n(4),n(1),n(45),n(5),n(6),n(36),n(40),n(176),n(147),n(50),n(30),n(23),n(28),n(35),n(121);var s=n(13),l=n(304),u=n(471),c=r(n(75)),d=n(12),h=n(24),f=n(473),v=(new Set,function(){function e(){var t=this;(0,i.default)(this,e),this.indexesSequence=new l.IndexesSequence,this.trimmingMapsCollection=new u.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new u.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new u.MapCollection,this.hidingChangesObservable=new f.ChangesObservable({initialIndexValue:!1}),this.notTrimmedIndexesCache=[],this.notHiddenIndexesCache=[],this.isBatched=!1,this.indexesSequenceChanged=!1,this.indexesChangeSource=void 0,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1,this.renderablePhysicalIndexesCache=[],this.fromPhysicalToVisualIndexesCache=new Map,this.fromVisualToRenderableIndexesCache=new Map,this.indexesSequence.addLocalHook("change",(function(){t.indexesSequenceChanged=!0,t.updateCache(),t.runLocalHooks("indexesSequenceChange",t.indexesChangeSource),t.runLocalHooks("change",t.indexesSequence,null)})),this.trimmingMapsCollection.addLocalHook("change",(function(e){t.trimmedIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.trimmingMapsCollection)})),this.hidingMapsCollection.addLocalHook("change",(function(e){t.hiddenIndexesChanged=!0,t.updateCache(),t.runLocalHooks("change",e,t.hidingMapsCollection)})),this.variousMapsCollection.addLocalHook("change",(function(e){t.runLocalHooks("change",e,t.variousMapsCollection)}))}return(0,a.default)(e,[{key:"suspendOperations",value:function(){this.isBatched=!0}},{key:"resumeOperations",value:function(){this.isBatched=!1,this.updateCache()}},{key:"createChangesObserver",value:function(e){if("hiding"!==e)throw new Error('Unsupported index map type "'.concat(e,'".'));return this.hidingChangesObservable.createObserver()}},{key:"createAndRegisterIndexMap",value:function(e,t,n){return this.registerMap(e,(0,l.createIndexMap)(t,n))}},{key:"registerMap",value:function(e,t){if(this.trimmingMapsCollection.get(e)||this.hidingMapsCollection.get(e)||this.variousMapsCollection.get(e))throw Error('Map with name "'.concat(e,'" has been already registered.'));t instanceof l.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof l.HidingMap?this.hidingMapsCollection.register(e,t):this.variousMapsCollection.register(e,t);var n=this.getNumberOfIndexes();return n>0&&t.init(n),t}},{key:"unregisterMap",value:function(e){this.trimmingMapsCollection.unregister(e),this.hidingMapsCollection.unregister(e),this.variousMapsCollection.unregister(e)}},{key:"unregisterAll",value:function(){this.trimmingMapsCollection.unregisterAll(),this.hidingMapsCollection.unregisterAll(),this.variousMapsCollection.unregisterAll()}},{key:"getPhysicalFromVisualIndex",value:function(e){var t=this.notTrimmedIndexesCache[e];return(0,h.isDefined)(t)?t:null}},{key:"getPhysicalFromRenderableIndex",value:function(e){var t=this.renderablePhysicalIndexesCache[e];return(0,h.isDefined)(t)?t:null}},{key:"getVisualFromPhysicalIndex",value:function(e){var t=this.fromPhysicalToVisualIndexesCache.get(e);return(0,h.isDefined)(t)?t:null}},{key:"getVisualFromRenderableIndex",value:function(e){return this.getVisualFromPhysicalIndex(this.getPhysicalFromRenderableIndex(e))}},{key:"getRenderableFromVisualIndex",value:function(e){var t=this.fromVisualToRenderableIndexesCache.get(e);return(0,h.isDefined)(t)?t:null}},{key:"getNearestNotHiddenIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getPhysicalFromVisualIndex(e);if(null===r)return null;if(this.fromVisualToRenderableIndexesCache.has(e))return e;var o=Array.from(this.fromVisualToRenderableIndexesCache.keys()),i=-1;return-1===(i=t>0?o.findIndex((function(t){return t>e})):o.reverse().findIndex((function(t){return t<e})))?n?this.getNearestNotHiddenIndex(e,-t,!1):null:o[i]}},{key:"initToLength",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getNumberOfIndexes();this.notTrimmedIndexesCache=(0,o.default)(new Array(e).keys()),this.notHiddenIndexesCache=(0,o.default)(new Array(e).keys()),this.suspendOperations(),this.indexesChangeSource="init",this.indexesSequence.init(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.initEvery(e),this.resumeOperations(),this.suspendOperations(),this.hidingMapsCollection.initEvery(e),this.variousMapsCollection.initEvery(e),this.resumeOperations(),this.runLocalHooks("init")}},{key:"fitToLength",value:function(e){var t=this.getNumberOfIndexes();if(e<t){var n=(0,o.default)(Array(this.getNumberOfIndexes()-e).keys()).map((function(t){return t+e}));this.removeIndexes(n)}else this.insertIndexes(t,e-t)}},{key:"getIndexesSequence",value:function(){return this.indexesSequence.getValues()}},{key:"setIndexesSequence",value:function(e){void 0===this.indexesChangeSource&&(this.indexesChangeSource="update"),this.indexesSequence.setValues(e),"update"===this.indexesChangeSource&&(this.indexesChangeSource=void 0)}},{key:"getNotTrimmedIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notTrimmedIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isTrimmed(t)}))}},{key:"getNotTrimmedIndexesLength",value:function(){return this.getNotTrimmedIndexes().length}},{key:"getNotHiddenIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.notHiddenIndexesCache;var n=this.getIndexesSequence();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getNotHiddenIndexesLength",value:function(){return this.getNotHiddenIndexes().length}},{key:"getRenderableIndexes",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t)return this.renderablePhysicalIndexesCache;var n=this.getNotTrimmedIndexes();return n.filter((function(t){return!1===e.isHidden(t)}))}},{key:"getRenderableIndexesLength",value:function(){return this.getRenderableIndexes().length}},{key:"getNumberOfIndexes",value:function(){return this.getIndexesSequence().length}},{key:"moveIndexes",value:function(e,t){var n=this;"number"==typeof e&&(e=[e]);var r=(0,s.arrayMap)(e,(function(e){return n.getPhysicalFromVisualIndex(e)})),o=this.getNotTrimmedIndexesLength(),i=e.length,a=(0,l.getListWithRemovedItems)(this.getIndexesSequence(),r),u=o-i;if(t+i<o){var c=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];u=a.indexOf(c)}this.indexesChangeSource="move",this.setIndexesSequence((0,l.getListWithInsertedItems)(a,u,r)),this.indexesChangeSource=void 0}},{key:"isTrimmed",value:function(e){return this.trimmingMapsCollection.getMergedValueAtIndex(e)}},{key:"isHidden",value:function(e){return this.hidingMapsCollection.getMergedValueAtIndex(e)}},{key:"insertIndexes",value:function(e,t){var n=this.getNotTrimmedIndexes()[e],r=(0,h.isDefined)(n)?n:this.getNumberOfIndexes(),o=this.getIndexesSequence().includes(n)?this.getIndexesSequence().indexOf(n):this.getNumberOfIndexes(),i=(0,s.arrayMap)(new Array(t).fill(r),(function(e,t){return e+t}));this.suspendOperations(),this.indexesChangeSource="insert",this.indexesSequence.insert(o,i),this.indexesChangeSource=void 0,this.trimmingMapsCollection.insertToEvery(o,i),this.hidingMapsCollection.insertToEvery(o,i),this.variousMapsCollection.insertToEvery(o,i),this.resumeOperations()}},{key:"removeIndexes",value:function(e){this.suspendOperations(),this.indexesChangeSource="remove",this.indexesSequence.remove(e),this.indexesChangeSource=void 0,this.trimmingMapsCollection.removeFromEvery(e),this.hidingMapsCollection.removeFromEvery(e),this.variousMapsCollection.removeFromEvery(e),this.resumeOperations()}},{key:"updateCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.indexesSequenceChanged||this.trimmedIndexesChanged||this.hiddenIndexesChanged;(!0===e||!1===this.isBatched&&!0===t)&&(this.trimmingMapsCollection.updateCache(),this.hidingMapsCollection.updateCache(),this.notTrimmedIndexesCache=this.getNotTrimmedIndexes(!1),this.notHiddenIndexesCache=this.getNotHiddenIndexes(!1),this.renderablePhysicalIndexesCache=this.getRenderableIndexes(!1),this.cacheFromPhysicalToVisualIndexes(),this.cacheFromVisualToRenderableIndexes(),this.hiddenIndexesChanged&&this.hidingChangesObservable.emit(this.hidingMapsCollection.getMergedValues()),this.runLocalHooks("cacheUpdated",{indexesSequenceChanged:this.indexesSequenceChanged,trimmedIndexesChanged:this.trimmedIndexesChanged,hiddenIndexesChanged:this.hiddenIndexesChanged}),this.indexesSequenceChanged=!1,this.trimmedIndexesChanged=!1,this.hiddenIndexesChanged=!1)}},{key:"cacheFromPhysicalToVisualIndexes",value:function(){var e=this.getNotTrimmedIndexesLength();this.fromPhysicalToVisualIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromVisualIndex(t);this.fromPhysicalToVisualIndexesCache.set(n,t)}}},{key:"cacheFromVisualToRenderableIndexes",value:function(){var e=this.getRenderableIndexesLength();this.fromVisualToRenderableIndexesCache.clear();for(var t=0;t<e;t+=1){var n=this.getPhysicalFromRenderableIndex(t),r=this.getVisualFromPhysicalIndex(n);this.fromVisualToRenderableIndexesCache.set(r,t)}}}]),e}());t.IndexMapper=v,(0,d.mixin)(v,c.default)},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.HidingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(219),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getHiddenIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.HidingMap=h},function(e,t,n){var r=n(8);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n(9);var r=n(0);t.__esModule=!0,t.LinkedPhysicalIndexToValueMap=void 0,n(19),n(50),n(4),n(1),n(6),n(28),n(35),n(46);var o=r(n(29)),i=r(n(2)),a=r(n(3)),s=r(n(31)),l=r(n(18)),u=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(25)),f=n(181),v=n(220),g=n(182),p=n(305),y=n(51);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var C=function(e){(0,u.default)(n,e);var t=m(n);function n(){var e;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.default)((0,s.default)(e),"orderOfIndexes",[]),e}return(0,a.default)(n,[{key:"getValues",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return e.indexedValues[t]}))}},{key:"setValues",value:function(e){this.orderOfIndexes=(0,o.default)(Array(e.length).keys()),(0,l.default)((0,d.default)(n.prototype),"setValues",this).call(this,e)}},{key:"setValueAtIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.orderOfIndexes.length;return e<this.indexedValues.length&&(this.indexedValues[e]=t,!1===this.orderOfIndexes.includes(e)&&this.orderOfIndexes.splice(n,0,e),this.runLocalHooks("change"),!0)}},{key:"clearValue",value:function(e){this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,y.isFunction)(this.initValueOrFn)?(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,l.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn)}},{key:"getLength",value:function(){return this.orderOfIndexes.length}},{key:"setDefaultValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,(0,l.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,v.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,p.getIncreasedIndexes)(this.orderOfIndexes,t),(0,l.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,v.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,p.getDecreasedIndexes)(this.orderOfIndexes,e),(0,l.default)((0,d.default)(n.prototype),"remove",this).call(this,e)}},{key:"getEntries",value:function(){var e=this;return this.orderOfIndexes.map((function(t){return[t,e.getValueAtIndex(t)]}))}}]),n}(f.IndexMap);t.LinkedPhysicalIndexToValueMap=C},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.TrimmingMap=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(219),c=n(13);function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var h=function(e){(0,a.default)(n,e);var t=d(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(0,o.default)(this,n),t.call(this,e)}return(0,i.default)(n,[{key:"getTrimmedIndexes",value:function(){return(0,c.arrayReduce)(this.getValues(),(function(e,t,n){return t&&e.push(n),e}),[])}}]),n}(u.PhysicalIndexToValueMap);t.TrimmingMap=h},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.IndexesSequence=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(18)),s=r(n(10)),l=r(n(11)),u=r(n(8)),c=n(181),d=n(182),h=n(306);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.default)(e);if(t){var o=(0,u.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}var v=function(e){(0,s.default)(n,e);var t=f(n);function n(){return(0,o.default)(this,n),t.call(this,(function(e){return e}))}return(0,i.default)(n,[{key:"insert",value:function(e,t){var r=(0,h.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,d.getListWithInsertedItems)(r,e,t),(0,a.default)((0,u.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){var t=(0,d.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,h.getDecreasedIndexes)(t,e),(0,a.default)((0,u.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=v},function(e,t,n){"use strict";n(1),n(20),n(37),t.__esModule=!0;var r=n(472);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(221);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||(t[e]=o[e]))}))},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.AggregatedCollection=void 0;var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),l=r(n(8)),u=n(221),c=n(13),d=n(24);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.default)(e);if(t){var o=(0,l.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.default)(this,n)}}var f=function(e){(0,a.default)(n,e);var t=h(n);function n(e,r){var i;return(0,o.default)(this,n),(i=t.call(this)).mergedValuesCache=[],i.aggregationFunction=e,i.fallbackValue=r,i}return(0,i.default)(n,[{key:"getMergedValues",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===e)return this.mergedValuesCache;if(0===this.getLength())return[];for(var t=(0,c.arrayMap)(this.get(),(function(e){return e.getValues()})),n=[],r=(0,d.isDefined)(t[0])&&t[0].length||0,o=0;o<r;o+=1){for(var i=[],a=0;a<this.getLength();a+=1)i.push(t[a][o]);n.push(i)}return(0,c.arrayMap)(n,this.aggregationFunction)}},{key:"getMergedValueAtIndex",value:function(e,t){var n=this.getMergedValues(t)[e];return(0,d.isDefined)(n)?n:this.fallbackValue}},{key:"updateCache",value:function(){this.mergedValuesCache=this.getMergedValues(!1)}}]),n}(u.MapCollection);t.AggregatedCollection=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObservable=void 0,n(4),n(1),n(45),n(5),n(6),n(121),n(20),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(63)),s=r(n(64)),l=n(474),u=n(475);function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,g=new WeakMap,p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialIndexValue;(0,o.default)(this,e),c(this,d,{writable:!0,value:new Set}),c(this,h,{writable:!0,value:[]}),c(this,f,{writable:!0,value:[]}),c(this,v,{writable:!0,value:!1}),c(this,g,{writable:!0,value:!1}),(0,s.default)(this,g,null!=n&&n)}return(0,i.default)(e,[{key:"createObserver",value:function(){var e=this,t=new l.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,u.arrayDiff)((0,a.default)(this,h),(0,a.default)(this,f))),t}},{key:"emit",value:function(e){var t=(0,a.default)(this,f);(0,a.default)(this,v)&&(0,a.default)(this,h).length===e.length||(0===e.length?e=new Array(t.length).fill((0,a.default)(this,g)):(0,s.default)(this,h,new Array(e.length).fill((0,a.default)(this,g))),(0,a.default)(this,v)||((0,s.default)(this,v,!0),t=(0,a.default)(this,h)));var n=(0,u.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=p},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.ChangesObserver=void 0,n(4),n(1),n(5),n(7),n(6);var o=r(n(2)),i=r(n(3)),a=r(n(64)),s=r(n(63)),l=n(12),u=r(n(75));function c(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var d=new WeakMap,h=function(){function e(){(0,o.default)(this,e),c(this,d,{writable:!0,value:[]})}return(0,i.default)(e,[{key:"subscribe",value:function(e){return this.addLocalHook("change",e),this._write((0,s.default)(this,d)),this}},{key:"unsubscribe",value:function(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}},{key:"_write",value:function(e){return e.length>0&&this.runLocalHooks("change",e),this}},{key:"_writeInitialChanges",value:function(e){(0,a.default)(this,d,e)}}]),e}();t.ChangesObserver=h,(0,l.mixin)(h,u.default)},function(e,t,n){"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){for(var n=[],r=0,o=0;r<e.length&&o<t.length;r++,o++)e[r]!==t[o]&&n.push({op:"replace",index:o,oldValue:e[r],newValue:t[o]});for(;r<t.length;r++)n.push({op:"insert",index:r,oldValue:void 0,newValue:t[r]});for(;o<e.length;o++)n.push({op:"remove",index:o,oldValue:e[o],newValue:void 0});return n}},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=u;var o=r(n(86)),i=r(n(477)),a=(0,o.default)("phraseFormatters"),s=a.register,l=a.getValues;function u(e,t){s(e,t)}u("pluralize",i.default)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e},n(60),n(61)},function(e,t,n){"use strict";n(4),n(1),n(5),n(7),n(6),n(16);var r=n(0),o=n(14);t.__esModule=!0,t.default=void 0;var i,a=r(n(25)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,n&&n.set(e,r);return r}(n(17));
32
32
  /**
33
33
  * @preserve
34
34
  * Authors: Handsoncode