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():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){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=640)}([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(271),o=n(98),i=n(698);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(427);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(89),o=n(168),i=n(174),a=n(107),s=n(84).f,u=n(269),l=n(270),c=n(114),d=n(55),h=a.set,f=a.getterFor("Array Iterator");e.exports=u(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,l(void 0,!0)):l("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(272).charAt,o=n(56),i=n(107),a=n(269),s=n(270),u=i.set,l=i.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=l(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(44),o=n(404),i=n(405),a=n(4),s=n(127),u=n(48),l=u("iterator"),c=u("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(t){e[l]=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(699)},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(22),o=n(106),i=n(129),a=n(753),s=n(428),u=n(62),l=n(63),c=n(123),d=n(28),h=o("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!d((function(){h((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!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(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(l(o)?o:f),v=i(e,d,t);return l(v)?v:d}})},function(e,t,n){var r=n(571);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(35);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 l(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){l(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(!u(e))return 0;return function e(t){var n=0;return u(t)?l(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={},l(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 l(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 l(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=u,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),l(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)||u(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=l,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(27)),i=r(n(14));n(147),n(31),n(40),n(1),n(95),n(42),n(21);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(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(47),n(5),n(20),n(24),n(37),n(34),n(1),n(31),n(40),n(4),n(52),n(6),n(50),n(735)},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=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,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 C(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(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,u.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,l=a.overflowX,c=a.overflowY;if([s,l,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,l=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(l)||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(l)||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===v&&(v=w(e));return v},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"),u=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(u))return r;r=r.parentNode}return n},t.getWindowScrollLeft=C,t.getWindowScrollTop=T,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=S,t.isOutsideInput=O,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,l=e;if((0,u.hasCaptionProblem)()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(o=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=l.offsetLeft,n=l.offsetTop,r=l;for(;(l=l.offsetParent)&&l!==i.body;)t+=l.offsetLeft,n+=l.offsetTop,r=l;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,u.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){O(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,l.isIE9)()?(e.style.top=n,e.style.left=t):(0,l.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(32));n(425),n(31),n(40),n(37),n(24),n(34),n(1),n(148),n(50),n(95),n(85),n(149),n(78),n(20),n(21);var i,a,s,u=n(108),l=n(91),c=n(79);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,u=s.nodeType,l=s.nodeName;if(u===o&&(t.includes(l)||t.includes(a)))return a;var c=a,d=c.host;a=d&&u===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,u.isClassListSupported)()){var p=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(p(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(p(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 m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?u.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function T(){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 C(){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 w(){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 S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){var r=n(22),o=n(28),i=n(89),a=n(117).f,s=n(55);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";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return l})),n.d(t,"CellValueNoNumber",(function(){return c})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return h})),n.d(t,"CellValueDetailedType",(function(){return f})),n.d(t,"CellValueTypeOrd",(function(){return p})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return m})),n.d(t,"getCellValueFormat",(function(){return v})),n.d(t,"CellError",(function(){return y})),n.d(t,"simpleRowAddress",(function(){return E})),n.d(t,"invalidSimpleRowAddress",(function(){return T})),n.d(t,"simpleColumnAddress",(function(){return C})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return w})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return O})),n.d(t,"addressKey",(function(){return b})),n.d(t,"isSimpleCellAddress",(function(){return A})),n.d(t,"absoluteSheetReference",(function(){return N})),n.d(t,"equalSimpleCellAddress",(function(){return M}));var r,o,i=n(112),a=n(33),s=n(43),u=n(69);!function(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));const l=(e,t)=>e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY;var c,d;!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(c||(c={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));const h=Object.assign(Object.assign({},c),d),f=Object.assign(Object.assign({},c),s.NumberType),p=e=>{switch(e){case h.EMPTY:return 0;case h.NUMBER:return 1;case h.STRING:return 2;case h.BOOLEAN:return 3;case h.ERROR:return 4}throw new Error("Cell value not computed")},g=e=>{if(e===s.EmptyValue)return h.EMPTY;if(e instanceof y||e instanceof u.SimpleRangeValue)return h.ERROR;if("string"==typeof e)return h.STRING;if(Object(s.isExtendedNumber)(e))return h.NUMBER;if("boolean"==typeof e)return h.BOOLEAN;throw new Error("Cell value not computed")},m=e=>Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e),v=e=>Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0;class y{constructor(e,t,n){this.type=e,this.message=t,this.root=n}static parsingError(){return new y(r.ERROR,a.ErrorMessage.ParseError)}attachRootVertex(e){return void 0===this.root?new y(this.type,this.message,e):this}}const E=(e,t)=>({sheet:e,row:t}),T=e=>e.row<0,C=(e,t)=>({sheet:e,col:t}),R=e=>e.col<0,w=(e,t,n)=>({sheet:e,col:t,row:n}),S=e=>e.col<0||e.row<0,O=(e,t,n,r)=>w(t,e.col+n,e.row+r),b=e=>`${e.sheet},${e.row},${e.col}`;function A(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}const N=(e,t)=>{var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=(e,t)=>e.sheet===t.sheet&&e.col===t.col&&e.row===t.row},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 u="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=u;var l="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=l;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 p="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=p;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var m="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=m;var v="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=v;var y="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=y;var E="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=E;var T="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=T;var C="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=C;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var w="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=w;var S="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=S;var O="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=O;var b="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b;var A="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=A;var N="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=N;var M="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=M;var I="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=I;var _="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var k="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=k;var x="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=x;var P="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=P;var L="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=L;var D="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var F="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=F;var U="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=U;var H="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=H;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var j="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=j;var B="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;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 $="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=$;var Q="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=Q;var Z="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var J="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=J;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 ue="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=ue;var le="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=le;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 pe="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=pe;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var me="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=me;var ve="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ve;var ye="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ye;var Ee="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ee;var Te="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=Te;var Ce="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ce;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var we="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=we;var Se="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var Oe="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Oe;var be="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=be;var Ae="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Ae},function(e,t,n){var r=n(800);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(22),o=n(28),i=n(145),a=n(63),s=n(83),u=n(94),l=n(414),c=n(144),d=n(281),h=n(181),f=n(48),p=n(169),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=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:!m||!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(v(i=-1===t?a:arguments[t]))for(o=u(i),l(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else l(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(44),o=n(404),i=n(405),a=n(723),s=n(127),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},function(e,t,n){var r=n(44),o=n(117).f,i=n(127),a=n(98),s=n(266),u=n(394),l=n(217);e.exports=function(e,t){var n,c,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(407),o=n(709),i=n(282),a=n(409);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(22),o=n(179),i=n(267).indexOf,a=n(146),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?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",u=function(e){var t=[][m],n=t;if(e[m]!==T("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=T(o.shift());i;i=T(o.shift()||"A"))--i<""[m]?n|=(y("".concat(y(v(r)+(v(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=C(e||""));if(r||o||u)if(u){var l=(0,h.default)("22/06/2023","DD/MM/YYYY"),c=Math.floor(l.toDate().getTime()/864e5),d=v(E(C(f=e),v("12"),T("F")))/(v(E(C(f),T("B"),~~![][m]))||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){w[a]({keyValidityDate:n,hotVersion:i})&&console["non_commercial"===a?"info":"warn"](w[a]({keyValidityDate:n,hotVersion:i})),R=!0}if("valid"!==s&&t.parentNode){if(S[s]({keyValidityDate:n,hotVersion:i})){var p=document.createElement("div");p.className="hot-display-license-info",p.innerHTML=S[s]({keyValidityDate:n,hotVersion:i}),t.parentNode.insertBefore(p,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=p,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(66));n(1),n(95),n(737),n(50),n(78),n(430);var i,a,s,u,l,c,d=r(n(14)),h=r(n(92)),f=n(67);function p(e){return void 0===e}function g(e){return null===e||""===e||p(e)}var m="length",v=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},T=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,w={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""}},S={invalid:function(){return(0,f.toSingleLine)(u||(u=(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)(l||(l=(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){"use strict";n.r(t),n.d(t,"FunctionArgumentType",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(77),i=n(17),a=n(33),s=n(61),u=n(101),l=n(43),c=n(69);!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));class d{constructor(e){this.coerceScalarToNumberOrError=e=>this.arithmeticHelper.coerceScalarToNumberOrError(e),this.runFunction=(e,t,n,r)=>{const o=this.evaluateArguments(e,t,n),s=o.map(([e,t])=>e),u=o.map(([e,t])=>t),l=this.buildMetadataForEachArgumentValue(s.length,n),d=t.arraysFlag&&!n.vectorizationForbidden;if(!this.isNumberOfArgumentValuesValid(l,s.length))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const[h,f]=d?this.calculateSizeOfVectorizedResultArray(s,l):[1,1];if(1===h&&1===f){const e=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,0,0);return this.calculateSingleCellOfResultArray(t,e,l,u,r,n.returnNumberType)}const p=[...Array(h).keys()].map(e=>[...Array(f).keys()].map(o=>{const i=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,e,o),a=this.calculateSingleCellOfResultArray(t,i,l,u,r,n.returnNumberType);if(a instanceof c.SimpleRangeValue)throw new Error("Function returning array cannot be vectorized.");return a}));return c.SimpleRangeValue.onlyValues(p)},this.runFunctionWithReferenceArgument=(e,t,n,r,u,l=(()=>new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)))=>{if(0===e.length)return this.returnNumberWrapper(r(),n.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);let c,d=e[0];for(;d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)c=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{c=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==c?this.returnNumberWrapper(u(c),n.returnNumberType):this.runFunction(e,t,n,l)},this.interpreter=e,this.dependencyGraph=e.dependencyGraph,this.columnSearch=e.columnSearch,this.config=e.config,this.serialization=e.serialization,this.arraySizePredictor=e.arraySizePredictor,this.dateTimeHelper=e.dateTimeHelper,this.arithmeticHelper=e.arithmeticHelper}evaluateAst(e,t){return this.interpreter.evaluateAst(e,t)}arraySizeForAst(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}listOfScalarValues(e,t){const n=[];for(const r of e){const e=this.evaluateAst(r,t);if(e instanceof c.SimpleRangeValue)for(const t of e.valuesFromTopLeftCorner())n.push([t,!0]);else n.push([e,!1])}return n}coerceToType(e,t,n){let o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:{const t=Object(u.coerceRangeToScalar)(e,n);if(void 0===t)return;e=t}}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:const n=this.coerceScalarToNumberOrError(e);if(!Object(l.isExtendedNumber)(n)){o=n;break}const s=Object(l.getRawValue)(n);if(void 0!==t.maxValue&&s>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&s<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&s>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&s<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(s))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=n;break;case r.STRING:o=Object(u.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(u.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(u.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(l.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(l.getRawValue)(o)}calculateSingleCellOfResultArray(e,t,n,r,o,a){const s=this.coerceArgumentsToRequiredTypes(e,t,n,r);if(s instanceof i.CellError)return s;const u=o(...s);return this.returnNumberWrapper(u,a)}coerceArgumentsToRequiredTypes(e,t,n,o){const s=[];for(let u=0;u<n.length;u++){const l=n[u],c=void 0!==t[u]?t[u]:null==l?void 0:l.defaultValue;if(void 0===c){s.push(void 0);continue}const d=this.coerceToType(c,l,e);if(void 0===d&&!o[u])return new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType);if(d instanceof i.CellError&&l.argumentType!==r.SCALAR)return d;s.push(d)}return s}vectorizeAndBroadcastArgumentsIfNecessary(e,t,n,r,o){return t.map((t,i)=>e&&this.isRangePassedAsAScalarArgument(t,n[i])?this.vectorizeAndBroadcastRangeArgument(t,r,o):t)}vectorizeAndBroadcastRangeArgument(e,t,n){var r;const o=1===e.height()?0:t,i=1===e.width()?0:n;return null===(r=e.data[o])||void 0===r?void 0:r[i]}evaluateArguments(e,t,n){return n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1])}buildMetadataForEachArgumentValue(e,t){const n=t.parameters?[...t.parameters]:[];if(void 0!==t.repeatLastArgs&&Number.isInteger(t.repeatLastArgs)&&t.repeatLastArgs>0)for(;e>n.length;)n.push(...n.slice(n.length-t.repeatLastArgs));return n}isNumberOfArgumentValuesValid(e,t){if(t>e.length)return!1;if(t<e.length){return e.slice(t).every(e=>(null==e?void 0:e.optionalArg)||void 0!==(null==e?void 0:e.defaultValue))}return!0}calculateSizeOfVectorizedResultArray(e,t){const n=e.filter((e,n)=>this.isRangePassedAsAScalarArgument(e,t[n]));return[Math.max(1,...n.map(e=>e.height())),Math.max(1,...n.map(e=>e.width()))]}isRangePassedAsAScalarArgument(e,t){return null!=e&&null!=t&&(e instanceof c.SimpleRangeValue&&![r.RANGE,r.ANY].includes(t.argumentType))}metadata(e){const t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error(`No metadata for function ${e}.`)}returnNumberWrapper(e,t,n){return void 0!==t&&Object(l.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(l.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){var r=n(427);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){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return r})),n.d(t,"NoSheetWithNameError",(function(){return o})),n.d(t,"SheetNameAlreadyTakenError",(function(){return i})),n.d(t,"SheetSizeLimitExceededError",(function(){return a})),n.d(t,"NotAFormulaError",(function(){return s})),n.d(t,"InvalidAddressError",(function(){return u})),n.d(t,"InvalidArgumentsError",(function(){return l})),n.d(t,"SheetsNotEqual",(function(){return c})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return d})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return h})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return f})),n.d(t,"NoOperationToUndoError",(function(){return p})),n.d(t,"NoOperationToRedoError",(function(){return g})),n.d(t,"NothingToPasteError",(function(){return m})),n.d(t,"UnableToParseError",(function(){return y})),n.d(t,"ExpectedValueOfTypeError",(function(){return E})),n.d(t,"ConfigValueEmpty",(function(){return T})),n.d(t,"ConfigValueTooSmallError",(function(){return C})),n.d(t,"ConfigValueTooBigError",(function(){return R})),n.d(t,"ExpectedOneOfValuesError",(function(){return w})),n.d(t,"EvaluationSuspendedError",(function(){return S})),n.d(t,"MissingTranslationError",(function(){return O})),n.d(t,"ProtectedFunctionTranslationError",(function(){return b})),n.d(t,"LanguageNotRegisteredError",(function(){return A})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return N})),n.d(t,"FunctionPluginValidationError",(function(){return M})),n.d(t,"ProtectedFunctionError",(function(){return I})),n.d(t,"SourceLocationHasArrayError",(function(){return _})),n.d(t,"TargetLocationHasArrayError",(function(){return k})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return x})),n.d(t,"AliasAlreadyExisting",(function(){return P}));
31
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,(function(){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=640)}([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(271),o=n(98),i=n(698);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(427);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(89),o=n(168),i=n(174),a=n(107),s=n(84).f,u=n(269),l=n(270),c=n(114),d=n(55),h=a.set,f=a.getterFor("Array Iterator");e.exports=u(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,l(void 0,!0)):l("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!c&&d&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(272).charAt,o=n(56),i=n(107),a=n(269),s=n(270),u=i.set,l=i.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:o(e),index:0})}),(function(){var e,t=l(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(44),o=n(404),i=n(405),a=n(4),s=n(127),u=n(48),l=u("iterator"),c=u("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[l]!==d)try{s(e,l,d)}catch(t){e[l]=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(699)},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(22),o=n(106),i=n(129),a=n(753),s=n(428),u=n(62),l=n(63),c=n(123),d=n(28),h=o("Reflect","construct"),f=Object.prototype,p=[].push,g=d((function(){function e(){}return!(h((function(){}),[],e)instanceof e)})),m=!d((function(){h((function(){}))})),v=g||m;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(m&&!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(p,r,t),new(i(a,e,r))}var o=n.prototype,d=c(l(o)?o:f),v=i(e,d,t);return l(v)?v:d}})},function(e,t,n){var r=n(571);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(35);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 l(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){l(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(!u(e))return 0;return function e(t){var n=0;return u(t)?l(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={},l(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 l(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 l(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=u,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),l(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)||u(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=l,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(27)),i=r(n(14));n(147),n(31),n(40),n(1),n(95),n(42),n(21);var a=n(13);function s(e){return"object"===(0,i.default)(e)?JSON.parse(JSON.stringify(e)):e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(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(47),n(5),n(20),n(24),n(37),n(34),n(1),n(31),n(40),n(4),n(52),n(6),n(50),n(735)},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=m,t.fastInnerHTML=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];y.test(t)?e.innerHTML=n?(0,c.sanitize)(t):t:E(e,t)},t.fastInnerText=E,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 C(t);return e.scrollLeft},t.getScrollTop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return T(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,u.isGetComputedStyleSupported)(),i=e.parentNode;for(;i&&i.style&&t.body!==i;){var a=i.style,s=a.overflow,l=a.overflowX,c=a.overflowY;if([s,l,c].includes("scroll"))return i;if(o){var d=n.getComputedStyle(i);if(s=d.overflow,l=d.overflowX,c=d.overflowY,r.includes(s)||r.includes(l)||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(l)||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===v&&(v=w(e));return v},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"),u=o.getPropertyValue("overflow-x");if(i.includes(a)||i.includes(s)||i.includes(u))return r;r=r.parentNode}return n},t.getWindowScrollLeft=C,t.getWindowScrollTop=T,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=S,t.isOutsideInput=O,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,l=e;if((0,u.hasCaptionProblem)()&&l.firstChild&&"CAPTION"===l.firstChild.nodeName)return{top:(o=l.getBoundingClientRect()).top+(a.pageYOffset||s.scrollTop)-(s.clientTop||0),left:o.left+(a.pageXOffset||s.scrollLeft)-(s.clientLeft||0)};t=l.offsetLeft,n=l.offsetTop,r=l;for(;(l=l.offsetParent)&&l!==i.body;)t+=l.offsetLeft,n+=l.offsetTop,r=l;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,u.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){O(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,l.isIE9)()?(e.style.top=n,e.style.left=t):(0,l.isSafari)()?e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")};var o=r(n(32));n(425),n(31),n(40),n(37),n(24),n(34),n(1),n(148),n(50),n(95),n(85),n(149),n(78),n(20),n(21);var i,a,s,u=n(108),l=n(91),c=n(79);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,u=s.nodeType,l=s.nodeName;if(u===o&&(t.includes(l)||t.includes(a)))return a;var c=a,d=c.host;a=d&&u===i?d:a.parentNode}return null}function f(e){return e&&e.length?e.filter((function(e){return!!e})):[]}if((0,u.isClassListSupported)()){var p=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(p(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(p(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 m(e){for(var t;t=e.lastChild;)e.removeChild(t)}var v,y=/(<(.*)>|&(.*);)/;function E(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?u.isTextContentSupported?n.textContent=t:n.data=t:(m(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function T(){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 C(){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 w(){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 S(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function O(e){return S(e)&&!1===e.hasAttribute("data-hot-input")}t.HTML_CHARACTERS=y},function(e,t,n){var r=n(22),o=n(28),i=n(89),a=n(117).f,s=n(55);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";n.r(t),n.d(t,"ErrorType",(function(){return r})),n.d(t,"CellType",(function(){return o})),n.d(t,"getCellType",(function(){return l})),n.d(t,"CellValueNoNumber",(function(){return c})),n.d(t,"CellValueJustNumber",(function(){return d})),n.d(t,"CellValueType",(function(){return h})),n.d(t,"CellValueDetailedType",(function(){return f})),n.d(t,"CellValueTypeOrd",(function(){return p})),n.d(t,"getCellValueType",(function(){return g})),n.d(t,"getCellValueDetailedType",(function(){return m})),n.d(t,"getCellValueFormat",(function(){return v})),n.d(t,"CellError",(function(){return y})),n.d(t,"simpleRowAddress",(function(){return E})),n.d(t,"invalidSimpleRowAddress",(function(){return T})),n.d(t,"simpleColumnAddress",(function(){return C})),n.d(t,"invalidSimpleColumnAddress",(function(){return R})),n.d(t,"simpleCellAddress",(function(){return w})),n.d(t,"invalidSimpleCellAddress",(function(){return S})),n.d(t,"movedSimpleCellAddress",(function(){return O})),n.d(t,"addressKey",(function(){return b})),n.d(t,"isSimpleCellAddress",(function(){return A})),n.d(t,"absoluteSheetReference",(function(){return N})),n.d(t,"equalSimpleCellAddress",(function(){return M}));var r,o,i=n(112),a=n(33),s=n(43),u=n(69);!function(e){e.DIV_BY_ZERO="DIV_BY_ZERO",e.NAME="NAME",e.VALUE="VALUE",e.NUM="NUM",e.NA="NA",e.CYCLE="CYCLE",e.REF="REF",e.SPILL="SPILL",e.LIC="LIC",e.ERROR="ERROR"}(r||(r={})),function(e){e.FORMULA="FORMULA",e.VALUE="VALUE",e.ARRAY="ARRAY",e.EMPTY="EMPTY",e.ARRAYFORMULA="ARRAYFORMULA"}(o||(o={}));const l=(e,t)=>e instanceof i.ArrayVertex?e.isLeftCorner(t)?o.ARRAYFORMULA:o.ARRAY:e instanceof i.FormulaCellVertex||e instanceof i.ParsingErrorVertex?o.FORMULA:e instanceof i.ValueCellVertex?o.VALUE:o.EMPTY;var c,d;!function(e){e.EMPTY="EMPTY",e.NUMBER="NUMBER",e.STRING="STRING",e.BOOLEAN="BOOLEAN",e.ERROR="ERROR"}(c||(c={})),function(e){e.NUMBER="NUMBER"}(d||(d={}));const h=Object.assign(Object.assign({},c),d),f=Object.assign(Object.assign({},c),s.NumberType),p=e=>{switch(e){case h.EMPTY:return 0;case h.NUMBER:return 1;case h.STRING:return 2;case h.BOOLEAN:return 3;case h.ERROR:return 4}throw new Error("Cell value not computed")},g=e=>{if(e===s.EmptyValue)return h.EMPTY;if(e instanceof y||e instanceof u.SimpleRangeValue)return h.ERROR;if("string"==typeof e)return h.STRING;if(Object(s.isExtendedNumber)(e))return h.NUMBER;if("boolean"==typeof e)return h.BOOLEAN;throw new Error("Cell value not computed")},m=e=>Object(s.isExtendedNumber)(e)?Object(s.getTypeOfExtendedNumber)(e):g(e),v=e=>Object(s.isExtendedNumber)(e)?Object(s.getFormatOfExtendedNumber)(e):void 0;class y{constructor(e,t,n){this.type=e,this.message=t,this.root=n}static parsingError(){return new y(r.ERROR,a.ErrorMessage.ParseError)}attachRootVertex(e){return void 0===this.root?new y(this.type,this.message,e):this}}const E=(e,t)=>({sheet:e,row:t}),T=e=>e.row<0,C=(e,t)=>({sheet:e,col:t}),R=e=>e.col<0,w=(e,t,n)=>({sheet:e,col:t,row:n}),S=e=>e.col<0||e.row<0,O=(e,t,n,r)=>w(t,e.col+n,e.row+r),b=e=>`${e.sheet},${e.row},${e.col}`;function A(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&("col"in e&&"number"==typeof e.col&&"row"in e&&"number"==typeof e.row&&"sheet"in e&&"number"==typeof e.sheet)}const N=(e,t)=>{var n;return null!==(n=e.sheet)&&void 0!==n?n:t.sheet},M=(e,t)=>e.sheet===t.sheet&&e.col===t.col&&e.row===t.row},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 u="".concat(r,".insertColumnOnTheRight");t.CONTEXTMENU_ITEMS_INSERT_RIGHT=u;var l="".concat(r,".removeRow");t.CONTEXTMENU_ITEMS_REMOVE_ROW=l;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 p="".concat(r,".clearColumn");t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=p;var g="".concat(r,".copy");t.CONTEXTMENU_ITEMS_COPY=g;var m="".concat(r,".copyWithHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=m;var v="".concat(r,".copyWithGroupHeaders");t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=v;var y="".concat(r,".copyHeadersOnly");t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=y;var E="".concat(r,".cut");t.CONTEXTMENU_ITEMS_CUT=E;var T="".concat(r,".freezeColumn");t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=T;var C="".concat(r,".unfreezeColumn");t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=C;var R="".concat(r,".mergeCells");t.CONTEXTMENU_ITEMS_MERGE_CELLS=R;var w="".concat(r,".unmergeCells");t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=w;var S="".concat(r,".addComment");t.CONTEXTMENU_ITEMS_ADD_COMMENT=S;var O="".concat(r,".editComment");t.CONTEXTMENU_ITEMS_EDIT_COMMENT=O;var b="".concat(r,".removeComment");t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=b;var A="".concat(r,".readOnlyComment");t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=A;var N="".concat(r,".align");t.CONTEXTMENU_ITEMS_ALIGNMENT=N;var M="".concat(r,".align.left");t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=M;var I="".concat(r,".align.center");t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=I;var _="".concat(r,".align.right");t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=_;var k="".concat(r,".align.justify");t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=k;var x="".concat(r,".align.top");t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=x;var P="".concat(r,".align.middle");t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=P;var L="".concat(r,".align.bottom");t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=L;var D="".concat(r,".borders");t.CONTEXTMENU_ITEMS_BORDERS=D;var F="".concat(r,".borders.top");t.CONTEXTMENU_ITEMS_BORDERS_TOP=F;var U="".concat(r,".borders.right");t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=U;var H="".concat(r,".borders.bottom");t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=H;var V="".concat(r,".borders.left");t.CONTEXTMENU_ITEMS_BORDERS_LEFT=V;var j="".concat(r,".borders.remove");t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=j;var B="".concat(r,".nestedHeaders.insertChildRow");t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=B;var W="".concat(r,".nestedHeaders.detachFromParent");t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=W;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 $="".concat(X,".isEmpty");t.FILTERS_CONDITIONS_EMPTY=$;var Q="".concat(X,".isNotEmpty");t.FILTERS_CONDITIONS_NOT_EMPTY=Q;var Z="".concat(X,".isEqualTo");t.FILTERS_CONDITIONS_EQUAL=Z;var J="".concat(X,".isNotEqualTo");t.FILTERS_CONDITIONS_NOT_EQUAL=J;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 ue="".concat(X,".lessThanOrEqualTo");t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=ue;var le="".concat(X,".isBetween");t.FILTERS_CONDITIONS_BETWEEN=le;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 pe="".concat(X,".tomorrow");t.FILTERS_CONDITIONS_TOMORROW=pe;var ge="".concat(X,".yesterday");t.FILTERS_CONDITIONS_YESTERDAY=ge;var me="".concat("Filters:","labels.filterByCondition");t.FILTERS_DIVS_FILTER_BY_CONDITION=me;var ve="".concat("Filters:","labels.filterByValue");t.FILTERS_DIVS_FILTER_BY_VALUE=ve;var ye="".concat("Filters:","labels.conjunction");t.FILTERS_LABELS_CONJUNCTION=ye;var Ee="".concat("Filters:","labels.disjunction");t.FILTERS_LABELS_DISJUNCTION=Ee;var Te="".concat("Filters:","values.blankCells");t.FILTERS_VALUES_BLANK_CELLS=Te;var Ce="".concat("Filters:","buttons.selectAll");t.FILTERS_BUTTONS_SELECT_ALL=Ce;var Re="".concat("Filters:","buttons.clear");t.FILTERS_BUTTONS_CLEAR=Re;var we="".concat("Filters:","buttons.ok");t.FILTERS_BUTTONS_OK=we;var Se="".concat("Filters:","buttons.cancel");t.FILTERS_BUTTONS_CANCEL=Se;var Oe="".concat("Filters:","buttons.placeholder.search");t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=Oe;var be="".concat("Filters:","buttons.placeholder.value");t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=be;var Ae="".concat("Filters:","buttons.placeholder.secondValue");t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=Ae},function(e,t,n){var r=n(800);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(22),o=n(28),i=n(145),a=n(63),s=n(83),u=n(94),l=n(414),c=n(144),d=n(281),h=n(181),f=n(48),p=n(169),g=f("isConcatSpreadable"),m=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=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:!m||!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(v(i=-1===t?a:arguments[t]))for(o=u(i),l(f+o),n=0;n<o;n++,f++)n in i&&c(h,f,i[n]);else l(f+1),c(h,f++,i);return h.length=f,h}})},function(e,t,n){var r=n(44),o=n(404),i=n(405),a=n(723),s=n(127),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in o)o[l]&&u(r[l]&&r[l].prototype);u(i)},function(e,t,n){var r=n(44),o=n(117).f,i=n(127),a=n(98),s=n(266),u=n(394),l=n(217);e.exports=function(e,t){var n,c,d,h,f,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(h=t[c],d=e.dontCallGetSet?(f=o(n,c))&&f.value:n[c],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;u(h,d)}(e.sham||d&&d.sham)&&i(h,"sham",!0),a(n,c,h,e)}}},function(e,t,n){var r=n(407),o=n(709),i=n(282),a=n(409);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(22),o=n(179),i=n(267).indexOf,a=n(146),s=o([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?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=[][m],n=t;if(e[m]!==T("Z"))return!1;for(var r="",o="B<H4P+".split(""),i=T(o.shift());i;i=T(o.shift()||"A"))--i<""[m]?n|=(y("".concat(y(v(r)+(v(E(e,Math.abs(i),2))+[]).padStart(2,"0"))))%97||2)>>1:r=E(e,i,i?1===o[m]?9:8:6);return n===t}(e=C(e||""));if(r||o||s)if(s){var u=(0,h.default)("22/06/2023","DD/MM/YYYY"),l=Math.floor(u.toDate().getTime()/864e5),c=v(E(C(d=e),v("12"),T("F")))/(v(E(C(d),T("B"),~~![][m]))||9);n=(0,h.default)(864e5*(c+1),"x").format("MMMM DD, YYYY"),l>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){w[i]({keyValidityDate:n,hotVersion:"13.0.0"})&&console["non_commercial"===i?"info":"warn"](w[i]({keyValidityDate:n,hotVersion:"13.0.0"})),R=!0}if("valid"!==a&&t.parentNode){if(S[a]({keyValidityDate:n,hotVersion:"13.0.0"})){var f=document.createElement("div");f.className="hot-display-license-info",f.innerHTML=S[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=p,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(66));n(1),n(95),n(737),n(50),n(78),n(430);var i,a,s,u,l,c,d=r(n(14)),h=r(n(92)),f=n(67);function p(e){return void 0===e}function g(e){return null===e||""===e||p(e)}var m="length",v=function(e){return parseInt(e,16)},y=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},T=function(e){return e.codePointAt(0)-65},C=function(e){return"".concat(e).replace(/\-/g,"")},R=!1,w={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""}},S={invalid:function(){return(0,f.toSingleLine)(u||(u=(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)(l||(l=(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){"use strict";n.r(t),n.d(t,"FunctionArgumentType",(function(){return r})),n.d(t,"FunctionPlugin",(function(){return d}));var r,o=n(77),i=n(17),a=n(33),s=n(61),u=n(101),l=n(43),c=n(69);!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.SCALAR="SCALAR",e.NOERROR="NOERROR",e.RANGE="RANGE",e.INTEGER="INTEGER",e.COMPLEX="COMPLEX",e.ANY="ANY"}(r||(r={}));class d{constructor(e){this.coerceScalarToNumberOrError=e=>this.arithmeticHelper.coerceScalarToNumberOrError(e),this.runFunction=(e,t,n,r)=>{const o=this.evaluateArguments(e,t,n),s=o.map(([e,t])=>e),u=o.map(([e,t])=>t),l=this.buildMetadataForEachArgumentValue(s.length,n),d=t.arraysFlag&&!n.vectorizationForbidden;if(!this.isNumberOfArgumentValuesValid(l,s.length))return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);const[h,f]=d?this.calculateSizeOfVectorizedResultArray(s,l):[1,1];if(1===h&&1===f){const e=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,0,0);return this.calculateSingleCellOfResultArray(t,e,l,u,r,n.returnNumberType)}const p=[...Array(h).keys()].map(e=>[...Array(f).keys()].map(o=>{const i=this.vectorizeAndBroadcastArgumentsIfNecessary(d,s,l,e,o),a=this.calculateSingleCellOfResultArray(t,i,l,u,r,n.returnNumberType);if(a instanceof c.SimpleRangeValue)throw new Error("Function returning array cannot be vectorized.");return a}));return c.SimpleRangeValue.onlyValues(p)},this.runFunctionWithReferenceArgument=(e,t,n,r,u,l=(()=>new i.CellError(i.ErrorType.NA,a.ErrorMessage.CellRefExpected)))=>{if(0===e.length)return this.returnNumberWrapper(r(),n.returnNumberType);if(e.length>1)return new i.CellError(i.ErrorType.NA,a.ErrorMessage.WrongArgNumber);let c,d=e[0];for(;d.type===s.AstNodeType.PARENTHESIS;)d=d.expression;if(d.type===s.AstNodeType.CELL_REFERENCE)c=d.reference.toSimpleCellAddress(t.formulaAddress);else if(d.type===s.AstNodeType.CELL_RANGE||d.type===s.AstNodeType.COLUMN_RANGE||d.type===s.AstNodeType.ROW_RANGE)try{c=o.AbsoluteCellRange.fromAst(d,t.formulaAddress).start}catch(e){return new i.CellError(i.ErrorType.REF,a.ErrorMessage.CellRefExpected)}return void 0!==c?this.returnNumberWrapper(u(c),n.returnNumberType):this.runFunction(e,t,n,l)},this.interpreter=e,this.dependencyGraph=e.dependencyGraph,this.columnSearch=e.columnSearch,this.config=e.config,this.serialization=e.serialization,this.arraySizePredictor=e.arraySizePredictor,this.dateTimeHelper=e.dateTimeHelper,this.arithmeticHelper=e.arithmeticHelper}evaluateAst(e,t){return this.interpreter.evaluateAst(e,t)}arraySizeForAst(e,t){return this.arraySizePredictor.checkArraySizeForAst(e,t)}listOfScalarValues(e,t){const n=[];for(const r of e){const e=this.evaluateAst(r,t);if(e instanceof c.SimpleRangeValue)for(const t of e.valuesFromTopLeftCorner())n.push([t,!0]);else n.push([e,!1])}return n}coerceToType(e,t,n){let o;if(e instanceof c.SimpleRangeValue)switch(t.argumentType){case r.RANGE:case r.ANY:o=e;break;default:{const t=Object(u.coerceRangeToScalar)(e,n);if(void 0===t)return;e=t}}if(!(e instanceof c.SimpleRangeValue))switch(t.argumentType){case r.INTEGER:case r.NUMBER:const n=this.coerceScalarToNumberOrError(e);if(!Object(l.isExtendedNumber)(n)){o=n;break}const s=Object(l.getRawValue)(n);if(void 0!==t.maxValue&&s>t.maxValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.minValue&&s<t.minValue)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(void 0!==t.lessThan&&s>=t.lessThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueLarge);if(void 0!==t.greaterThan&&s<=t.greaterThan)return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.ValueSmall);if(t.argumentType===r.INTEGER&&!Number.isInteger(s))return new i.CellError(i.ErrorType.NUM,a.ErrorMessage.IntegerExpected);o=n;break;case r.STRING:o=Object(u.coerceScalarToString)(e);break;case r.BOOLEAN:o=Object(u.coerceScalarToBoolean)(e);break;case r.SCALAR:case r.NOERROR:case r.ANY:o=e;break;case r.RANGE:if(e instanceof i.CellError)return e;o=Object(u.coerceToRange)(e);break;case r.COMPLEX:return this.arithmeticHelper.coerceScalarToComplex(Object(l.getRawValue)(e))}return t.passSubtype||void 0===o?o:Object(l.getRawValue)(o)}calculateSingleCellOfResultArray(e,t,n,r,o,a){const s=this.coerceArgumentsToRequiredTypes(e,t,n,r);if(s instanceof i.CellError)return s;const u=o(...s);return this.returnNumberWrapper(u,a)}coerceArgumentsToRequiredTypes(e,t,n,o){const s=[];for(let u=0;u<n.length;u++){const l=n[u],c=void 0!==t[u]?t[u]:null==l?void 0:l.defaultValue;if(void 0===c){s.push(void 0);continue}const d=this.coerceToType(c,l,e);if(void 0===d&&!o[u])return new i.CellError(i.ErrorType.VALUE,a.ErrorMessage.WrongType);if(d instanceof i.CellError&&l.argumentType!==r.SCALAR)return d;s.push(d)}return s}vectorizeAndBroadcastArgumentsIfNecessary(e,t,n,r,o){return t.map((t,i)=>e&&this.isRangePassedAsAScalarArgument(t,n[i])?this.vectorizeAndBroadcastRangeArgument(t,r,o):t)}vectorizeAndBroadcastRangeArgument(e,t,n){var r;const o=1===e.height()?0:t,i=1===e.width()?0:n;return null===(r=e.data[o])||void 0===r?void 0:r[i]}evaluateArguments(e,t,n){return n.expandRanges?this.listOfScalarValues(e,t):e.map(e=>[this.evaluateAst(e,t),!1])}buildMetadataForEachArgumentValue(e,t){const n=t.parameters?[...t.parameters]:[];if(void 0!==t.repeatLastArgs&&Number.isInteger(t.repeatLastArgs)&&t.repeatLastArgs>0)for(;e>n.length;)n.push(...n.slice(n.length-t.repeatLastArgs));return n}isNumberOfArgumentValuesValid(e,t){if(t>e.length)return!1;if(t<e.length){return e.slice(t).every(e=>(null==e?void 0:e.optionalArg)||void 0!==(null==e?void 0:e.defaultValue))}return!0}calculateSizeOfVectorizedResultArray(e,t){const n=e.filter((e,n)=>this.isRangePassedAsAScalarArgument(e,t[n]));return[Math.max(1,...n.map(e=>e.height())),Math.max(1,...n.map(e=>e.width()))]}isRangePassedAsAScalarArgument(e,t){return null!=e&&null!=t&&(e instanceof c.SimpleRangeValue&&![r.RANGE,r.ANY].includes(t.argumentType))}metadata(e){const t=this.constructor.implementedFunctions[e];if(void 0!==t)return t;throw new Error(`No metadata for function ${e}.`)}returnNumberWrapper(e,t,n){return void 0!==t&&Object(l.isExtendedNumber)(e)?this.arithmeticHelper.ExtendedNumberFactory(Object(l.getRawValue)(e),{type:t,format:n}):e}}},function(e,t,n){var r=n(427);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){"use strict";n.r(t),n.d(t,"NoSheetWithIdError",(function(){return r})),n.d(t,"NoSheetWithNameError",(function(){return o})),n.d(t,"SheetNameAlreadyTakenError",(function(){return i})),n.d(t,"SheetSizeLimitExceededError",(function(){return a})),n.d(t,"NotAFormulaError",(function(){return s})),n.d(t,"InvalidAddressError",(function(){return u})),n.d(t,"InvalidArgumentsError",(function(){return l})),n.d(t,"SheetsNotEqual",(function(){return c})),n.d(t,"NamedExpressionNameIsAlreadyTakenError",(function(){return d})),n.d(t,"NamedExpressionNameIsInvalidError",(function(){return h})),n.d(t,"NamedExpressionDoesNotExistError",(function(){return f})),n.d(t,"NoOperationToUndoError",(function(){return p})),n.d(t,"NoOperationToRedoError",(function(){return g})),n.d(t,"NothingToPasteError",(function(){return m})),n.d(t,"UnableToParseError",(function(){return y})),n.d(t,"ExpectedValueOfTypeError",(function(){return E})),n.d(t,"ConfigValueEmpty",(function(){return T})),n.d(t,"ConfigValueTooSmallError",(function(){return C})),n.d(t,"ConfigValueTooBigError",(function(){return R})),n.d(t,"ExpectedOneOfValuesError",(function(){return w})),n.d(t,"EvaluationSuspendedError",(function(){return S})),n.d(t,"MissingTranslationError",(function(){return O})),n.d(t,"ProtectedFunctionTranslationError",(function(){return b})),n.d(t,"LanguageNotRegisteredError",(function(){return A})),n.d(t,"LanguageAlreadyRegisteredError",(function(){return N})),n.d(t,"FunctionPluginValidationError",(function(){return M})),n.d(t,"ProtectedFunctionError",(function(){return I})),n.d(t,"SourceLocationHasArrayError",(function(){return _})),n.d(t,"TargetLocationHasArrayError",(function(){return k})),n.d(t,"NoRelativeAddressesAllowedError",(function(){return x})),n.d(t,"AliasAlreadyExisting",(function(){return P}));
32
32
  /**
33
33
  * @license
34
34
  * Copyright (c) 2023 Handsoncode. All rights reserved.
@@ -872,7 +872,7 @@ function*r(){}function o(e){const t=e[Symbol.iterator](),{done:n,value:o}=t.next
872
872
  limitations under the License.
873
873
 
874
874
  */
875
- var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,u,l,c,d,h,f,p,g,m,v,y,E,T=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function u(i){var u=0,l=0,c=0,d=i*i;if(i<8)u=(l=o(t,d))/(c=o(n,d));else{var h=i-.785398164;l=o(a,d=64/d),c=o(s,d),u=r.sqrt(e/i)*(r.cos(h)*l-r.sin(h)*c*8/i)}return u}var l=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),d=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function f(t){var n=0,i=0,a=0,s=t*t,u=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(l,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(u)*i-r.sin(u)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return u(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,u(t),f(t),-1);else{for(var a=!1,s=0,l=0,c=1,d=0,h=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,l*=1e-10),a&&(l+=c),a=!a,p==n&&(o=s);o/=l=2*l-c}return o}}(),C=(s=.636619772,u=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),l=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),d=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),h=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),f=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),g=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,h=e-.785398164;return e<8?t=(n=o(u,a))/(i=o(l,a))+s*T(e,0)*r.log(e):(n=o(c,a=64/a),i=o(d,a),t=r.sqrt(s/e)*(r.sin(h)*n+r.cos(h)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,u=e-2.356194491;return e<8?t=(n=e*o(h,a))/(i=o(f,a))+s*(T(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(g,a),t=r.sqrt(s/e)*(r.sin(u)*n+r.cos(u)*i*8/e)),t}),0,1,-1)),R=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),v=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(v,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(y,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),u=0,l=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*l+u,u=l,l=c,r.abs(l)>1e10&&(l*=1e-10,u*=1e-10,a*=1e-10),i==n&&(a=u);return a*=e(t,0)/l,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*R(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*R(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},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(703);var i=F(n(704));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,u,l,c,d=n(847),h=F(n(51)),f=n(75),p=r(n(1087)),g=r(n(307)),m=F(n(290)),v=F(n(13)),y=F(n(91)),E=F(n(134)),T=F(n(611)),C=F(n(108)),R=F(n(58)),w=F(n(25)),S=F(n(36)),O=F(n(12)),b=F(n(79)),A=F(n(109)),N=F(n(15)),M=F(n(72)),I=n(130),_=n(185),k=n(186),x=n(190),P=n(228),L=n(39);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=D(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,p.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var U=[v,y,E,T,C,R,w,S,O,b,A,m],H=[N,M];i.default.helper={},i.default.dom={},v.arrayEach(U,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),v.arrayEach(H,(function(e){v.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:{},v.arrayEach((0,x.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,x.getCellType)(e)})),i.default.cellTypes.registerCellType=x.registerCellType,i.default.cellTypes.getCellType=x.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},v.arrayEach((0,I.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(b.toUpperCaseFirst(e),"Editor")]=(0,I.getEditor)(e)})),i.default.editors.registerEditor=I.registerEditor,i.default.editors.getEditor=I.getEditor,i.default.renderers=null!==(u=i.default.renderers)&&void 0!==u?u:{},v.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(b.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators=null!==(l=i.default.validators)&&void 0!==l?l:{},v.arrayEach((0,k.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(b.toUpperCaseFirst(e),"Validator")]=(0,k.getValidator)(e)})),i.default.validators.registerValidator=k.registerValidator,i.default.validators.getValidator=k.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},v.arrayEach((0,P.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,P.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=P.registerPlugin,i.default.plugins.getPlugin=P.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(64),o=n(49),i=n(63),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(396).IteratorPrototype,o=n(123),i=n(175),a=n(219),s=n(174),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){var r=n(30),o=n(125);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){var r=n(49),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(271),o=n(220);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(273),i=n(44),a=n(30),s=n(274),u=n(177),l=n(221),c=n(403),d=n(63),h=n(107).enforce,f=n(28),p=n(391),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,E=g.isSealed,T=g.freeze,C=g.seal,R={},w={},S=!i.ActiveXObject&&"ActiveXObject"in i,O=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=l("WeakMap",O,c),A=b.prototype,N=a(A.set);if(p)if(S){r=c.getConstructor(O,"WeakMap",!0),u.enable();var M=a(A.delete),I=a(A.has),_=a(A.get);s(A,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.delete(e)}return M(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)?_(this,e):t.frozen.get(e)}return _(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new r),I(this,e)?N(this,e,t):n.frozen.set(e,t)}else N(this,e,t);return this}})}else o&&f((function(){var e=T([]);return N(new b,e,1),!y(e)}))&&s(A,{set:function(e,t){var n;return m(e)&&(y(e)?n=R:E(e)&&(n=w)),N(this,e,t),n==R&&T(e),n==w&&C(e),this}})},function(e,t,n){var r=n(28),o=n(63),i=n(102),a=n(701),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(28);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(145),o=n(222),i=n(63),a=n(48)("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(22),o=n(28),i=n(275).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(705),n(706),n(707),n(708);var o=r(n(406)),i=n(296),a=n(590),s=r(n(59)),u=n(587),l=n(190),c=n(596),d=n(191),h=n(131);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,l.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:u.dictionaryKeys,getLanguageDictionary:u.getLanguageDictionary,getLanguagesDictionaries:u.getLanguagesDictionaries,registerLanguageDictionary:u.registerLanguageDictionary,getTranslatedPhrase:u.getTranslatedPhrase};var p=f;t.default=p},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=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(408);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(221)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(411))},function(e,t,n){var r=n(276),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,u),t),i(r(e,u),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(122).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(122);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(122).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(55),o=n(145),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(63),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(83),o=n(172),i=n(94);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(83),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=c;return void 0!==d&&(d=o(d),g=l),s(h,g,(function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,f);case"<":l=d[u(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var h=i(c/10);return 0===h?o:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}l=r[c-1]}return void 0===l?"":l}))}},function(e,t,n){"use strict";var r=n(178),o=n(64),i=n(83),a=n(722),s=n(399),u=n(222),l=n(94),c=n(144),d=n(400),h=n(278),f=Array;e.exports=function(e){var t=i(e),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,E,T,C,R,w=h(t),S=0;if(!w||this===f&&s(w))for(v=l(t),y=n?new this(v):f(v);v>S;S++)R=m?g(t[S],S):t[S],c(y,S,R);else for(C=(T=d(t,w)).next,y=n?new this:[];!(E=o(C,T)).done;S++)R=m?a(T,g,[E.value,S],!0):E.value,c(y,S,R);return y.length=S,y}},function(e,t,n){var r=n(62),o=n(401);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(128).forEach,o=n(146)("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(22),o=n(44),i=n(285)(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(22),o=n(44),i=n(285)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(728),n(730)},function(e,t,n){var r=n(22),o=n(44),i=n(423).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(122);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(22),o=n(44),i=n(423).set,a=n(285),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(221)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(411))},function(e,t,n){var r=n(84).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(176).PROPER,o=n(28),i=n(418);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(129),o=n(64),i=n(30),a=n(224),s=n(62),u=n(97),l=n(287),c=n(82),d=n(736),h=n(284),f=n(126),p=n(56),g=n(124),m=n(276),v=n(225),y=n(223),E=n(283),T=n(28),C=E.UNSUPPORTED_Y,R=Math.min,w=[].push,S=i(/./.exec),O=i(w),b=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=p(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!l(e))return o(t,i,e,a);for(var s,u,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");(s=o(y,v,i))&&!((u=v.lastIndex)>g&&(O(h,b(i,g,s.index)),s.length>1&&s.index<i.length&&r(w,h,m(s,1)),d=s[0].length,g=u,h.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return g===i.length?!d&&S(v,"")||O(h,""):O(h,b(i,g)),h.length>a?m(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=u(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=s(this),a=p(e),u=n(i,o,a,r,i!==t);if(u.done)return u.value;var l=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new l(C?"^(?:"+o.source+")":o,g),y=void 0===r?4294967295:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];for(var E=0,T=0,w=[];T<a.length;){m.lastIndex=C?0:T;var S,A=v(m,C?b(a,T):a);if(null===A||(S=R(f(m.lastIndex+(C?T:0)),a.length))===E)T=h(a,T,c);else{if(O(w,b(a,E,T)),w.length===y)return w;for(var N=1;N<=A.length-1;N++)if(O(w,A[N]),w.length===y)return w;T=E=S}}return O(w,b(a,E)),w}]}),!!T((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]})),C)},function(e,t,n){var r=n(62),o=n(428),i=n(97),a=n(48)("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,t,n){"use strict";var r=n(22),o=n(272).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(126),i=n(56),a=n(289),s=n(82),u=r(a),l=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),p=h.length,g=void 0===r?" ":i(r);return f<=p||""==g?h:((d=u(g,c((a=f-p)/g.length))).length>a&&(d=l(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(122);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":431,"./af.js":431,"./ar":432,"./ar-dz":433,"./ar-dz.js":433,"./ar-kw":434,"./ar-kw.js":434,"./ar-ly":435,"./ar-ly.js":435,"./ar-ma":436,"./ar-ma.js":436,"./ar-sa":437,"./ar-sa.js":437,"./ar-tn":438,"./ar-tn.js":438,"./ar.js":432,"./az":439,"./az.js":439,"./be":440,"./be.js":440,"./bg":441,"./bg.js":441,"./bm":442,"./bm.js":442,"./bn":443,"./bn-bd":444,"./bn-bd.js":444,"./bn.js":443,"./bo":445,"./bo.js":445,"./br":446,"./br.js":446,"./bs":447,"./bs.js":447,"./ca":448,"./ca.js":448,"./cs":449,"./cs.js":449,"./cv":450,"./cv.js":450,"./cy":451,"./cy.js":451,"./da":452,"./da.js":452,"./de":453,"./de-at":454,"./de-at.js":454,"./de-ch":455,"./de-ch.js":455,"./de.js":453,"./dv":456,"./dv.js":456,"./el":457,"./el.js":457,"./en-au":458,"./en-au.js":458,"./en-ca":459,"./en-ca.js":459,"./en-gb":460,"./en-gb.js":460,"./en-ie":461,"./en-ie.js":461,"./en-il":462,"./en-il.js":462,"./en-in":463,"./en-in.js":463,"./en-nz":464,"./en-nz.js":464,"./en-sg":465,"./en-sg.js":465,"./eo":466,"./eo.js":466,"./es":467,"./es-do":468,"./es-do.js":468,"./es-mx":469,"./es-mx.js":469,"./es-us":470,"./es-us.js":470,"./es.js":467,"./et":471,"./et.js":471,"./eu":472,"./eu.js":472,"./fa":473,"./fa.js":473,"./fi":474,"./fi.js":474,"./fil":475,"./fil.js":475,"./fo":476,"./fo.js":476,"./fr":477,"./fr-ca":478,"./fr-ca.js":478,"./fr-ch":479,"./fr-ch.js":479,"./fr.js":477,"./fy":480,"./fy.js":480,"./ga":481,"./ga.js":481,"./gd":482,"./gd.js":482,"./gl":483,"./gl.js":483,"./gom-deva":484,"./gom-deva.js":484,"./gom-latn":485,"./gom-latn.js":485,"./gu":486,"./gu.js":486,"./he":487,"./he.js":487,"./hi":488,"./hi.js":488,"./hr":489,"./hr.js":489,"./hu":490,"./hu.js":490,"./hy-am":491,"./hy-am.js":491,"./id":492,"./id.js":492,"./is":493,"./is.js":493,"./it":494,"./it-ch":495,"./it-ch.js":495,"./it.js":494,"./ja":496,"./ja.js":496,"./jv":497,"./jv.js":497,"./ka":498,"./ka.js":498,"./kk":499,"./kk.js":499,"./km":500,"./km.js":500,"./kn":501,"./kn.js":501,"./ko":502,"./ko.js":502,"./ku":503,"./ku.js":503,"./ky":504,"./ky.js":504,"./lb":505,"./lb.js":505,"./lo":506,"./lo.js":506,"./lt":507,"./lt.js":507,"./lv":508,"./lv.js":508,"./me":509,"./me.js":509,"./mi":510,"./mi.js":510,"./mk":511,"./mk.js":511,"./ml":512,"./ml.js":512,"./mn":513,"./mn.js":513,"./mr":514,"./mr.js":514,"./ms":515,"./ms-my":516,"./ms-my.js":516,"./ms.js":515,"./mt":517,"./mt.js":517,"./my":518,"./my.js":518,"./nb":519,"./nb.js":519,"./ne":520,"./ne.js":520,"./nl":521,"./nl-be":522,"./nl-be.js":522,"./nl.js":521,"./nn":523,"./nn.js":523,"./oc-lnc":524,"./oc-lnc.js":524,"./pa-in":525,"./pa-in.js":525,"./pl":526,"./pl.js":526,"./pt":527,"./pt-br":528,"./pt-br.js":528,"./pt.js":527,"./ro":529,"./ro.js":529,"./ru":530,"./ru.js":530,"./sd":531,"./sd.js":531,"./se":532,"./se.js":532,"./si":533,"./si.js":533,"./sk":534,"./sk.js":534,"./sl":535,"./sl.js":535,"./sq":536,"./sq.js":536,"./sr":537,"./sr-cyrl":538,"./sr-cyrl.js":538,"./sr.js":537,"./ss":539,"./ss.js":539,"./sv":540,"./sv.js":540,"./sw":541,"./sw.js":541,"./ta":542,"./ta.js":542,"./te":543,"./te.js":543,"./tet":544,"./tet.js":544,"./tg":545,"./tg.js":545,"./th":546,"./th.js":546,"./tk":547,"./tk.js":547,"./tl-ph":548,"./tl-ph.js":548,"./tlh":549,"./tlh.js":549,"./tr":550,"./tr.js":550,"./tzl":551,"./tzl.js":551,"./tzm":552,"./tzm-latn":553,"./tzm-latn.js":553,"./tzm.js":552,"./ug-cn":554,"./ug-cn.js":554,"./uk":555,"./uk.js":555,"./ur":556,"./ur.js":556,"./uz":557,"./uz-latn":558,"./uz-latn.js":558,"./uz.js":557,"./vi":559,"./vi.js":559,"./x-pseudo":560,"./x-pseudo.js":560,"./yo":561,"./yo.js":561,"./zh-cn":562,"./zh-cn.js":562,"./zh-hk":563,"./zh-hk.js":563,"./zh-mo":564,"./zh-mo.js":564,"./zh-tw":565,"./zh-tw.js":565};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=741},function(e,t,n){n(22)({target:"String",proto:!0},{repeat:n(289)})},function(e,t,n){var r=n(22),o=n(744);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(129),o=n(89),i=n(116),a=n(94),s=n(146),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(l,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=u(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,n){var r=n(125),o=n(83),i=n(166),a=n(94),s=TypeError,u=function(e){return function(t,n,u,l){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(u<2)for(;;){if(f in d){l=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(l=n(l,d[f],f,c));return l}};e.exports={left:u(!1),right:u(!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]:u,t=l.get(e)||l.get(u),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(32)),i=r(n(23));n(4),n(41),n(1),n(5),n(6),n(57),n(90);var a=n(36),s=n(58),u="asc";t.ASC=u;t.DESC="desc";var l=new Map([[u,[-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 u(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:u,getItems:s}};var o=r(n(32));n(4),n(1),n(52),n(5),n(6);var i=n(58),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(23)),i=r(n(32)),a=r(n(2)),s=r(n(3)),u=r(n(27)),l=r(n(73)),c=r(n(74));n(4),n(1),n(5),n(7),n(6),n(70),n(71);var d=n(15),h=r(n(51)),f=n(72),p=r(n(131)),g=n(580),m=n(296);function v(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 y=new WeakMap,E=new WeakMap,T=new WeakMap,C=function(){function e(t){(0,a.default)(this,e),(0,u.default)(this,"instance",void 0),(0,u.default)(this,"eventManager",void 0),(0,u.default)(this,"settings",void 0),(0,u.default)(this,"THEAD",void 0),(0,u.default)(this,"TBODY",void 0),(0,u.default)(this,"_wt",void 0),(0,u.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,u.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),y.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=y.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=y.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,u=n.y||n.clientY,l=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(l===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,u)!==c||o.elementFromPoint(s,u+h)!==c)return}else for(;l!==a;){if(null===l){if(n.isTargetWebComponent)break;return}if(l===r)return;l=l.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=y.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,m.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,T,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,E,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],u=a[1],l=e.instance.runHooks("modifyGetCellCoords",s,u),c=s,d=u;if(Array.isArray(l)){var h=(0,o.default)(l,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),p=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,u,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,u,p,g,f),e.instance.runHooks("afterRenderer",r,s,u,p,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),u=s[0],l=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",u,l,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],u=r[3],l=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(u)];return e.instance.runHooks("beforeDrawBorders",l,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,u=t>=0?i.getVisualFromRenderableIndex(t):t,l=e.instance.runHooks("modifyGetCellCoords",u,s,r);if(Array.isArray(l)){var c=(0,o.default)(l,4),d=c[0],h=c[1],f=c[2],p=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,p>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(p,-1)):p]}},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 p.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,u=a.height;this.setLastSize(s,u),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 y.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=y.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=y.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,l.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,l.default)(this,T)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=C},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(752)),s=r(n(294)),u=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=u},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(35)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=r(n(572)),d=r(n(754)),h=r(n(782)),f=r(n(783)),p=r(n(784)),g=r(n(294)),m=n(12),v=n(15);function y(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,u.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=y(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 p.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,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,v.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,v.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=E},function(e,t,n){"use strict";var r=n(30),o=n(125),i=n(63),a=n(54),s=n(182),u=n(167),l=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]=l("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=u?l.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(20),n(1),n(21),n(65);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(27)),u=n(15),l=n(108),c=n(13),d=n(109),h=n(91),f=n(132),p=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,l.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,p=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,u.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,u.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=p.scrollX,this.lastScrollY=p.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,u=this.scrollableElement===r,l=this.wtSettings.getSetting("preventWheel"),c={passive:u};(l||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,l)}),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,l)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),u||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 u=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&u)&&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,u.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 u=n.wtRootElement,l=u.scrollHeight,c=u.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=l<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>l&&(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=p},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(757)),h=n(152),f=n(133);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,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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,u){var l;return(0,i.default)(this,n),(l=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,l.inlineStartOverlay=u,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)(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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(293)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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)),u=r(n(8)),l=n(231);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,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,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 l.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),u=o.getRenderedNode(a);this.sourceRowIndex=s;var l=this.obtainOrderView(u),c=i.obtainOrderView(u);l.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){l.render();var h=l.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}l.end()}}}]),n}(r(n(187)).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(762)),s=n(575),u=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=u},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)),u=r(n(8));function l(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,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=l(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(574)).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)),u=r(n(8)),l=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,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,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 u=t;u<s;u++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,l.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 u=this.table.renderedColumnToSource(s),l=a.childNodes[s+i];l.className="",l.removeAttribute("style"),r[t](u,l,t)}}}]),n}(r(n(187)).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)),u=r(n(8)),l=r(n(187)),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,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,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),u=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(u,"px")}var l=this.rootNode.firstChild;l&&(0,c.addClass)(l,"rowHeader")}}]),n}(l.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(66)),a=r(n(2)),s=r(n(3)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=n(80),h=n(67),f=n(231),p=r(n(187));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,l.default)(this,n)}}var m=!1,v=function(e){(0,u.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;!m&&e>1e3&&(m=!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}(p.default);t.default=v},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)),u=r(n(8)),l=n(15),c=n(231);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,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,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 u=this.obtainOrderView(s),c=o.obtainOrderView(s);u.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){u.render();var h=u.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,l.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}u.end()}}}]),n}(r(n(187)).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(41),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,u=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(u=e.getSetting("onModifyRowHeaderWidth",u)))for(var l=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<l;d++){var h=Array.isArray(u)?u[d]:u;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(35)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=r(n(27)),d=r(n(572));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,u.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 u=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),u,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(u,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(294)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(71);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedColumnsStart,d=l.inlineStartOverlay;if(u&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,u?e>this.lastScrolledColumnPos:t):(u&&(e<a||e>s)||!u)&&(h=d.scrollTo(e,u?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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedRowsBottom,d=l.fixedRowsTop,h=l.topOverlay;if(u&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,u?e>this.lastScrolledRowPos:n):(u&&(e<a||e>s)||!u)&&(f=h.scrollTo(e,u?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,u=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(l.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(f+=t.sumCellSizes(p-1,p),l.top+c-f<=h){u=p;break}}}return u}},{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 u=(0,s.offset)(n.wtRootElement),l=(0,s.getScrollTop)(i,i);if(u.top>l)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),u.top+d-l>=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 u=(0,s.offset)(n.wtRootElement),l=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(u.left+l-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),u.left+l-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,u=r.getLastVisibleColumn();if(n.mainTableScrollableElement===a){var l=null;if(t.getSetting("rtlMode")){var c=r.TABLE.getBoundingClientRect(),d=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(c.right-d)}else{l=(0,s.offset)(r.wtRootElement).left}var h=Math.abs((0,s.getScrollLeft)(a,a));if(l>h)for(var f=(0,s.innerWidth)(a),p=o.getRowHeaderWidth(),g=1;g<=i;g++)if(l+(p+=n.sumCellSizes(g-1,g))-h>=f){u=g-2;break}}return u}}]),e}();t.default=u},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(775)),p=n(152),g=n(133);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,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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsBottom",-1),u.cachedFixedRowsBottom=u.wtSettings.getSetting("fixedRowsBottom"),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)(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,u=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===u){var l=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(l-=a),l=Math.min(l,t.wtRootElement.scrollWidth),s.width="".concat(l,"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}(p.Overlay);t.BottomOverlay=v},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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(295)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(777)),h=n(152),f=n(133);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,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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(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 u=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(u,"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)),u=r(n(8)),l=r(n(151)),c=r(n(577)),d=r(n(293)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(779)),p=n(152),g=n(133);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,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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a,u,l){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=u,c.inlineStartOverlay=l,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}(p.Overlay);t.TopInlineStartCornerOverlay=v},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)),u=r(n(8)),l=r(n(151)),c=r(n(578)),d=r(n(293)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(781)),p=n(152),g=n(133);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,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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsTop",-1),u.cachedFixedRowsTop=u.wtSettings.getSetting("fixedRowsTop"),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)(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 u=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),i.height="".concat(u,"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"),u=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(u-s,u),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 u=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!u):((0,h.removeClass)(n,"innerBorderTop"),o=u)}}return o}}]),n}(p.Overlay);t.TopOverlay=v},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)),u=r(n(8)),l=r(n(151)),c=r(n(578)),d=r(n(295)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(579);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=n(12),l=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,u.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,u.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=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(31);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),u=r(n(8)),l=n(15),c=r(n(151)),d=r(n(577)),h=r(n(295)),f=n(12);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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,l.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,l.getStyle)(e,"height",t),o=(0,l.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,u=e.getBoundingClientRect(),c=u.width,d=u.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,l.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,l.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 m=g;t.default=m},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),u=n(785),l=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,u=o.documentElement.offsetWidth,l=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=u-(d?h.right-u:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,u):Math.min(this.getContainerFillWidth(),f,u),s===i&&l>0&&this.sumColumnWidths(0,l-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 p=n.getSetting("stretchH");return"none"!==p&&p?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]:u.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===u.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset,l=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return l&&s>=0&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,l),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 u.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]:u.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 u.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(u.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(u.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(u.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(u.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=l},function(e,t,n){"use strict";n(1),n(21),n(42);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(568));t.ViewportColumnsCalculator=i.default;var a=r(n(569));t.ViewportRowsCalculator=a.default;var s=n(291);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(31),n(40),n(20),n(1),n(21),n(787);var o=r(n(23)),i=r(n(14)),a=r(n(2)),s=r(n(3)),u=n(15),l=r(n(789)),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 l.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,u.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,u.hasClass)(r,s)){var l=i+1;a="".concat(e,"-").concat(l)}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],l=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,p=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,m=d.selectionType,v=void 0===m||["active-header","header"].includes(m);if(v&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var T=e.wtTable.columnFilter.renderedToSource(E);if(T>=s&&T<=c){var C=e.wtTable.getColumnHeaders(T),R=C.length-1;g&&C.length>1&&(C=[C[R]]);for(var w=0;w<C.length;w+=1){var S=[],O=C[w];h&&S.push(h),f&&S.push(f),w=g?R:w;var b=e.getSetting("onBeforeHighlightingColumnHeader",T,w,{selectionType:m,columnCursor:y,selectionWidth:c-s+1,classNames:S});b!==T&&(O=e.wtTable.getColumnHeader(b,w)),(0,u.addClass)(O,S)}y+=1}}if(null!==a&&null!==l)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=l){var I=e.wtTable.getRowHeaders(M),_=I.length-1;g&&I.length>1&&(I=[I[_]]);for(var k=0;k<I.length;k+=1){var x=[],P=I[k];h&&x.push(h),p&&x.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:l-a+1,classNames:x});L!==M&&(P=e.wtTable.getRowHeader(L,k)),(0,u.addClass)(P,x)}A+=1}if(null!==s&&null!==c)for(var D=0;D<n;D+=1){var F=e.wtTable.columnFilter.renderedToSource(D);M>=a&&M<=l&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=l?p&&this.addClassAtCoords(e,M,F,p):F>=s&&F<=c&&f&&this.addClassAtCoords(e,M,F,f);var U=e.getSetting("onAfterDrawSelection",M,F,this.settings.layerLevel);"string"==typeof U&&this.addClassAtCoords(e,M,F,U)}}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(22),o=n(788).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(55),o=n(28),i=n(30),a=n(218),s=n(171),u=n(89),l=i(n(215).f),c=i([].push),d=r&&o((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),h=function(e){return function(t){for(var n,o=u(t),i=s(o),h=d&&null===a(o),f=i.length,p=0,g=[];f>p;)n=i[p++],r&&!(h?n in o:l(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(85);var o=r(n(23)),i=r(n(2)),a=r(n(3)),s=n(15),u=n(72),l=n(12),c=n(91),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,u.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,u=s.bordersHolder;u||((u=t.createElement("div")).className="htBorders",s.bordersHolder=u,s.spreader.appendChild(u)),u.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,l.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,l.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,u=s.top,l=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(u.borderWidth,10),f=parseInt(u.width,10),p=parseInt(l.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();u.top="".concat(parseInt(n-f-1,10),"px"),u[a]="".concat(parseInt(r-f-1,10),"px"),l.top="".concat(parseInt(n-p/4*3,10),"px"),l[a]="".concat(parseInt(r-p/4*3,10),"px");var v=Math.min(parseInt(r+o,10),g-f-2*h),y=Math.min(parseInt(r+o-p/4,10),g-p-2*h);c[a]="".concat(v,"px"),d[a]="".concat(y,"px");var E=Math.min(parseInt(n+i,10),m-f-2*h),T=Math.min(parseInt(n+i-p/4,10),m-p-2*h);c.top="".concat(E,"px"),d.top="".concat(T,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(u.display="block",l.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(u.display="none",c.display="none",l.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(u.zIndex="9999",l.zIndex="9999"):(u.zIndex="",l.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,u,l=this.wot,d=l.wtTable,h=l.rootDocument,f=l.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var v=p-1;v>=0;v-=1){var y=d.rowFilter.renderedToSource(v);if(y>=e[0]&&y<=e[2]){n=y;break}}for(var E=d.getRenderedColumnsCount(),T=0;T<E;T+=1){var C=d.columnFilter.renderedToSource(T);if(C>=e[1]&&C<=e[3]){r=C,u=e[1];break}}for(var R=E-1;R>=0;R-=1){var w=d.columnFilter.renderedToSource(R);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,b=O?d.getCell(this.wot.createCellCoords(n,i)):S,A=(0,s.offset)(S),N=O?(0,s.offset)(b):A,M=(0,s.offset)(d.TABLE),I=(0,s.outerWidth)(d.TABLE),_=A.top,k=A.left,x=this.wot.wtSettings.getSetting("rtlMode"),P=0,L=0;if(x){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,P=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,P=k-M.left-1;if(this.isEntireColumnSelected(t,n)){var U=this.getDimensionsFromHeader("columns",r,i,a,M),H=null;if(U){var V=(0,o.default)(U,3);H=V[0],P=V[1],L=V[2]}H&&(S=H)}var j=_-M.top-1,B=N.top+(0,s.outerHeight)(b)-_;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,u,M),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],j=G[1],B=G[2]}Y&&(S=Y)}var z=(0,s.getComputedStyle)(S,f);parseInt(z.borderTopWidth,10)>0&&(j+=1,B=B>0?B-1:0),parseInt(z[x?"borderRightWidth":"borderLeftWidth"],10)>0&&(P+=1,L=L>0?L-1:0);var K=x?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(P,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(P,"px"),this.startStyle.height="".concat(B,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(j+B-X,"px"),this.bottomStyle[K]="".concat(P,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(P+L-X,"px"),this.endStyle.height="".concat(B+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var $=this.wot.getSetting("onModifyGetCellCoords",n,i),Q=n,Z=i;if($&&Array.isArray($)){var J=(0,o.default)($,4);Q=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange(Q,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(j+B+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(P+L+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?b.getBoundingClientRect().left:b.offsetLeft;(x?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(P+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[x?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(j+B+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,j,P,L,B)}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,u=null,l=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":u=function(){return i.getRowHeader.apply(i,arguments)},l=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":u=function(){return i.getColumnHeader.apply(i,arguments)},l=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=u(t,m-r),g=u(n,m-r),!p||!g)return!1;var v=(0,s.offset)(p),y=(0,s.offset)(g);return p&&g&&(d=v[f]-o[f]-1,h=y[f]+l(g)-v[f]),[p,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(22),o=n(44),i=n(64),a=n(30),s=n(114),u=n(55),l=n(141),c=n(28),d=n(54),h=n(115),f=n(62),p=n(89),g=n(213),m=n(56),v=n(175),y=n(123),E=n(171),T=n(143),C=n(275),R=n(216),w=n(117),S=n(84),O=n(385),b=n(215),A=n(98),N=n(180),M=n(140),I=n(214),_=n(173),k=n(211),x=n(48),P=n(581),L=n(582),D=n(791),F=n(219),U=n(107),H=n(128).forEach,V=I("hidden"),j=U.set,B=U.getterFor("Symbol"),W=Object.prototype,Y=o.Symbol,G=Y&&Y.prototype,z=o.TypeError,K=o.QObject,X=w.f,q=S.f,$=C.f,Q=b.f,Z=a([].push),J=M("symbols"),ee=M("op-symbols"),te=M("wks"),ne=!K||!K.prototype||!K.prototype.findChild,re=u&&c((function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(W,t);r&&delete W[t],q(e,t,n),r&&e!==W&&q(W,t,r)}:q,oe=function(e,t){var n=J[e]=y(G);return j(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},ie=function(e,t,n){e===W&&ie(ee,t,n),f(e);var r=g(t);return f(n),d(J,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,V)||q(e,V,v(1,{})),e[V][r]=!0),re(e,r,n)):q(e,r,n)},ae=function(e,t){f(e);var n=p(t),r=E(n).concat(ce(n));return H(r,(function(t){u&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=g(e),n=i(Q,this,t);return!(this===W&&d(J,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,V)&&this[V][t])||n)},ue=function(e,t){var n=p(e),r=g(t);if(n!==W||!d(J,r)||d(ee,r)){var o=X(n,r);return!o||!d(J,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},le=function(e){var t=$(p(e)),n=[];return H(t,(function(e){d(J,e)||d(_,e)||Z(n,e)})),n},ce=function(e){var t=e===W,n=$(t?ee:p(e)),r=[];return H(n,(function(e){!d(J,e)||t&&!d(W,e)||Z(r,J[e])})),r};l||(A(G=(Y=function(){if(h(G,this))throw z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=k(e),n=function(e){this===W&&i(n,ee,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),re(this,t,v(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return B(this).tag})),A(Y,"withoutSetter",(function(e){return oe(k(e),e)})),b.f=se,S.f=ie,O.f=ae,w.f=ue,T.f=C.f=le,R.f=ce,P.f=function(e){return oe(x(e),e)},u&&(N(G,"description",{configurable:!0,get:function(){return B(this).description}}),s||A(W,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Y}),H(E(te),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:le}),D(),F(Y,"Symbol"),_[V]=!0},function(e,t,n){var r=n(64),o=n(106),i=n(48),a=n(98);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(22),o=n(106),i=n(54),a=n(56),s=n(140),u=n(583),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(22),o=n(54),i=n(170),a=n(142),s=n(140),u=n(583),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},function(e,t,n){var r=n(22),o=n(106),i=n(129),a=n(64),s=n(30),u=n(28),l=n(49),c=n(170),d=n(182),h=n(795),f=n(141),p=String,g=o("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),E=s("".replace),T=s(1..toString),C=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!f||u((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=d(arguments),r=h(t);if(l(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(l(r)&&(t=a(r,this,p(e),t)),!c(t))return t},i(g,null,n)},A=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(R,e)&&!m(w,o)||m(w,e)&&!m(R,r)?"\\u"+T(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,n){var r=d(arguments),o=i(S?b:g,null,r);return O&&"string"==typeof o?E(o,C,A):o}})},function(e,t,n){var r=n(30),o=n(145),i=n(49),a=n(102),s=n(56),u=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 l=e[r];"string"==typeof l?u(n,l):"number"!=typeof l&&"Number"!=a(l)&&"String"!=a(l)||u(n,s(l))}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(22),o=n(141),i=n(28),a=n(216),s=n(83);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(70),n(71),n(1),n(21);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(134),u=n(13),l=n(36),c=n(58),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,u.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,u=null;if(s=this.modifyRowData(e),Array.isArray(s))u=[],i?s.forEach((function(t,n){u[n]=r.getAtPhysicalCell(e,n,s)})):(0,l.rangeEach)(t,n,(function(n){u[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(u=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(d,h,(function(i){var l=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(l)){var c=r.getAtPhysicalCell(e,l,s);o?u.push(c):(0,a.setProperty)(u,l,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(u,n,r.getAtPhysicalCell(e,n,s))}));return u}},{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,u=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),u=Math.max(t.col,n.col));var c=[];return(0,l.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,u,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(32)),i=r(n(2)),a=r(n(3));n(4),n(1),n(52),n(5),n(6),n(41),n(47),n(227),n(183),n(57),n(34),n(24),n(31),n(40),n(147);var s=n(13),u=n(584),l=n(804),c=r(n(86)),d=n(12),h=n(25),f=n(806),p=(new Set,function(){function e(){var t=this;(0,i.default)(this,e),this.indexesSequence=new u.IndexesSequence,this.trimmingMapsCollection=new l.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new l.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new l.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,u.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 u.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof u.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,u.getListWithRemovedItems)(this.getIndexesSequence(),r),l=o-i;if(t+i<o){var c=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];l=a.indexOf(c)}this.indexesChangeSource="move",this.setIndexesSequence((0,u.getListWithInsertedItems)(a,l,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=p,(0,d.mixin)(p,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)),u=r(n(8)),l=n(297),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,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,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}(l.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(20),n(57),n(4),n(1),n(6),n(31),n(40),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(19)),l=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(27)),f=n(232),p=n(298),g=n(233),m=n(585),v=n(58);function y(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 E=function(e){(0,l.default)(n,e);var t=y(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,u.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,v.isFunction)(this.initValueOrFn)?(0,u.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,u.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,u.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,u.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,u.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=E},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)),u=r(n(8)),l=n(297),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,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,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}(l.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(19)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(232),d=n(233),h=n(586);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,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,u.default)(this,n)}}var p=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,l.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,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(21),n(42),t.__esModule=!0;var r=n(805);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(299);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)),u=r(n(8)),l=n(299),c=n(13),d=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,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,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}(l.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(52),n(5),n(6),n(147),n(21),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(73)),s=r(n(74)),u=n(807),l=n(808);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,p=new WeakMap,g=new WeakMap,m=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,p,{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 u.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,l.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,p)&&(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,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,h)));var n=(0,l.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=m},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(74)),s=r(n(73)),u=n(12),l=r(n(86));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,u.mixin)(h,l.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 u()},t.registerPhraseFormatter=t.register=l;var o=r(n(103)),i=r(n(810)),a=(0,o.default)("phraseFormatters"),s=a.register,u=a.getValues;function l(e,t){s(e,t)}l("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(70),n(71)},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(27)),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(18));
875
+ var r=Math;function o(e,t){for(var n=0,r=0;n<e.length;++n)r=t*r+e[n];return r}function i(e,t,n,r,o){if(0===t)return n;if(1===t)return r;for(var i=2/e,a=r,s=1;s<t;++s)a=r*s*i+o*n,n=r,r=a;return a}function a(e,t,n,r,o){return function(n,a){if(r){if(0===n)return 1==r?-1/0:1/0;if(n<0)return NaN}return 0===a?e(n):1===a?t(n):a<0?NaN:i(n,a|=0,e(n),t(n),o)}}var s,u,l,c,d,h,f,p,g,m,v,y,E,T=function(){var e=.636619772,t=[57568490574,-13362590354,651619640.7,-11214424.18,77392.33017,-184.9052456].reverse(),n=[57568490411,1029532985,9494680.718,59272.64853,267.8532712,1].reverse(),a=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),s=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34935152e-8].reverse();function u(i){var u=0,l=0,c=0,d=i*i;if(i<8)u=(l=o(t,d))/(c=o(n,d));else{var h=i-.785398164;l=o(a,d=64/d),c=o(s,d),u=r.sqrt(e/i)*(r.cos(h)*l-r.sin(h)*c*8/i)}return u}var l=[72362614232,-7895059235,242396853.1,-2972611.439,15704.4826,-30.16036606].reverse(),c=[144725228442,2300535178,18583304.74,99447.43394,376.9991397,1].reverse(),d=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse();function f(t){var n=0,i=0,a=0,s=t*t,u=r.abs(t)-2.356194491;return Math.abs(t)<8?n=(i=t*o(l,s))/(a=o(c,s)):(i=o(d,s=64/s),a=o(h,s),n=r.sqrt(e/r.abs(t))*(r.cos(u)*i-r.sin(u)*a*8/r.abs(t)),t<0&&(n=-n)),n}return function e(t,n){if(n=Math.round(n),!isFinite(t))return isNaN(t)?t:0;if(n<0)return(n%2?-1:1)*e(t,-n);if(t<0)return(n%2?-1:1)*e(-t,n);if(0===n)return u(t);if(1===n)return f(t);if(0===t)return 0;var o=0;if(t>n)o=i(t,n,u(t),f(t),-1);else{for(var a=!1,s=0,l=0,c=1,d=0,h=2/t,p=2*r.floor((n+r.floor(r.sqrt(40*n)))/2);p>0;p--)d=p*h*c-s,s=c,c=d,r.abs(c)>1e10&&(c*=1e-10,s*=1e-10,o*=1e-10,l*=1e-10),a&&(l+=c),a=!a,p==n&&(o=s);o/=l=2*l-c}return o}}(),C=(s=.636619772,u=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),l=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),c=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),d=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),h=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),f=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),p=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),g=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),a((function(e){var t=0,n=0,i=0,a=e*e,h=e-.785398164;return e<8?t=(n=o(u,a))/(i=o(l,a))+s*T(e,0)*r.log(e):(n=o(c,a=64/a),i=o(d,a),t=r.sqrt(s/e)*(r.sin(h)*n+r.cos(h)*i*8/e)),t}),(function(e){var t=0,n=0,i=0,a=e*e,u=e-2.356194491;return e<8?t=(n=e*o(h,a))/(i=o(f,a))+s*(T(e,1)*r.log(e)-1/e):(n=o(p,a=64/a),i=o(g,a),t=r.sqrt(s/e)*(r.sin(u)*n+r.cos(u)*i*8/e)),t}),0,1,-1)),R=(m=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),v=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),y=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),E=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(t,n){if(0===(n=Math.round(n)))return function(e){return e<=3.75?o(m,e*e/14.0625):r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(v,3.75/r.abs(e))}(t);if(1===n)return function(e){return e<3.75?e*o(y,e*e/14.0625):(e<0?-1:1)*r.exp(r.abs(e))/r.sqrt(r.abs(e))*o(E,3.75/r.abs(e))}(t);if(n<0)return NaN;if(0===r.abs(t))return 0;if(t==1/0)return 1/0;var i,a=0,s=2/r.abs(t),u=0,l=1,c=0;for(i=2*r.round((n+r.round(r.sqrt(40*n)))/2);i>0;i--)c=i*s*l+u,u=l,l=c,r.abs(l)>1e10&&(l*=1e-10,u*=1e-10,a*=1e-10),i==n&&(a=u);return a*=e(t,0)/l,t<0&&n%2?-a:a}),w=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),t=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse();var n=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),i=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return a((function(n){return n<=2?-r.log(n/2)*R(n,0)+o(e,n*n/4):r.exp(-n)/r.sqrt(n)*o(t,2/n)}),(function(e){return e<=2?r.log(e/2)*R(e,1)+1/e*o(n,e*e/4):r.exp(-e)/r.sqrt(e)*o(i,2/e)}),0,2,1)}()},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(703);var i=F(n(704));t.CellCoords=i.CellCoords,t.CellRange=i.CellRange;var a,s,u,l,c,d=n(847),h=F(n(51)),f=n(75),p=r(n(1087)),g=r(n(307)),m=F(n(290)),v=F(n(13)),y=F(n(91)),E=F(n(134)),T=F(n(611)),C=F(n(108)),R=F(n(58)),w=F(n(25)),S=F(n(36)),O=F(n(12)),b=F(n(79)),A=F(n(109)),N=F(n(15)),M=F(n(72)),I=n(130),_=n(185),k=n(186),x=n(190),P=n(228),L=n(39);function D(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(D=function(e){return e?n:t})(e)}function F(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=D(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,p.default)(i.default),i.default.__GhostTable=g.default,i.default._getListenersCounter=h.getListenersCounter,i.default._getRegisteredMapsCounter=f.getRegisteredMapsCounter,i.default.EventManager=h.default;var U=[v,y,E,T,C,R,w,S,O,b,A,m],H=[N,M];i.default.helper={},i.default.dom={},v.arrayEach(U,(function(e){v.arrayEach(Object.getOwnPropertyNames(e),(function(t){"_"!==t.charAt(0)&&(i.default.helper[t]=e[t])}))})),v.arrayEach(H,(function(e){v.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:{},v.arrayEach((0,x.getRegisteredCellTypeNames)(),(function(e){i.default.cellTypes[e]=(0,x.getCellType)(e)})),i.default.cellTypes.registerCellType=x.registerCellType,i.default.cellTypes.getCellType=x.getCellType,i.default.editors=null!==(s=i.default.editors)&&void 0!==s?s:{},v.arrayEach((0,I.getRegisteredEditorNames)(),(function(e){i.default.editors["".concat(b.toUpperCaseFirst(e),"Editor")]=(0,I.getEditor)(e)})),i.default.editors.registerEditor=I.registerEditor,i.default.editors.getEditor=I.getEditor,i.default.renderers=null!==(u=i.default.renderers)&&void 0!==u?u:{},v.arrayEach((0,_.getRegisteredRendererNames)(),(function(e){var t=(0,_.getRenderer)(e);"base"===e&&(i.default.renderers.cellDecorator=t),i.default.renderers["".concat(b.toUpperCaseFirst(e),"Renderer")]=t})),i.default.renderers.registerRenderer=_.registerRenderer,i.default.renderers.getRenderer=_.getRenderer,i.default.validators=null!==(l=i.default.validators)&&void 0!==l?l:{},v.arrayEach((0,k.getRegisteredValidatorNames)(),(function(e){i.default.validators["".concat(b.toUpperCaseFirst(e),"Validator")]=(0,k.getValidator)(e)})),i.default.validators.registerValidator=k.registerValidator,i.default.validators.getValidator=k.getValidator,i.default.plugins=null!==(c=i.default.plugins)&&void 0!==c?c:{},v.arrayEach((0,P.getPluginsNames)(),(function(e){i.default.plugins[e]=(0,P.getPlugin)(e)})),i.default.plugins["".concat(b.toUpperCaseFirst(L.BasePlugin.PLUGIN_KEY),"Plugin")]=L.BasePlugin,i.default.plugins.registerPlugin=P.registerPlugin,i.default.plugins.getPlugin=P.getPlugin;var V=i.default;t.default=V},function(e,t,n){var r=n(64),o=n(49),i=n(63),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(396).IteratorPrototype,o=n(123),i=n(175),a=n(219),s=n(174),u=function(){return this};e.exports=function(e,t,n,l){var c=t+" Iterator";return e.prototype=o(r,{next:i(+!l,n)}),a(e,c,!1,!0),s[c]=u,e}},function(e,t,n){var r=n(30),o=n(125);e.exports=function(e,t,n){try{return r(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){var r=n(49),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(271),o=n(220);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r,o=n(273),i=n(44),a=n(30),s=n(274),u=n(177),l=n(221),c=n(403),d=n(63),h=n(107).enforce,f=n(28),p=n(391),g=Object,m=Array.isArray,v=g.isExtensible,y=g.isFrozen,E=g.isSealed,T=g.freeze,C=g.seal,R={},w={},S=!i.ActiveXObject&&"ActiveXObject"in i,O=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=l("WeakMap",O,c),A=b.prototype,N=a(A.set);if(p)if(S){r=c.getConstructor(O,"WeakMap",!0),u.enable();var M=a(A.delete),I=a(A.has),_=a(A.get);s(A,{delete:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),M(this,e)||t.frozen.delete(e)}return M(this,e)},has:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)||t.frozen.has(e)}return I(this,e)},get:function(e){if(d(e)&&!v(e)){var t=h(this);return t.frozen||(t.frozen=new r),I(this,e)?_(this,e):t.frozen.get(e)}return _(this,e)},set:function(e,t){if(d(e)&&!v(e)){var n=h(this);n.frozen||(n.frozen=new r),I(this,e)?N(this,e,t):n.frozen.set(e,t)}else N(this,e,t);return this}})}else o&&f((function(){var e=T([]);return N(new b,e,1),!y(e)}))&&s(A,{set:function(e,t){var n;return m(e)&&(y(e)?n=R:E(e)&&(n=w)),N(this,e,t),n==R&&T(e),n==w&&C(e),this}})},function(e,t,n){var r=n(28),o=n(63),i=n(102),a=n(701),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!s||s(e)))}:s},function(e,t,n){var r=n(28);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(145),o=n(222),i=n(63),a=n(48)("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(22),o=n(28),i=n(275).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(705),n(706),n(707),n(708);var o=r(n(406)),i=n(296),a=n(590),s=r(n(59)),u=n(587),l=n(190),c=n(596),d=n(191),h=n(131);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,l.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:u.dictionaryKeys,getLanguageDictionary:u.getLanguageDictionary,getLanguagesDictionaries:u.getLanguagesDictionaries,registerLanguageDictionary:u.registerLanguageDictionary,getTranslatedPhrase:u.getTranslatedPhrase};var p=f;t.default=p},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=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(408);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(221)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(411))},function(e,t,n){var r=n(276),o=Math.floor,i=function(e,t){var n=e.length,u=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,u),t),i(r(e,u),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(122).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){var r=n(122);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){var r=n(122).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(55),o=n(145),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(63),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(83),o=n(172),i=n(94);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){var r=n(30),o=n(83),i=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=c;return void 0!==d&&(d=o(d),g=l),s(h,g,(function(o,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,f);case"<":l=d[u(s,1,-1)];break;default:var c=+s;if(0===c)return o;if(c>p){var h=i(c/10);return 0===h?o:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):o}l=r[c-1]}return void 0===l?"":l}))}},function(e,t,n){"use strict";var r=n(178),o=n(64),i=n(83),a=n(722),s=n(399),u=n(222),l=n(94),c=n(144),d=n(400),h=n(278),f=Array;e.exports=function(e){var t=i(e),n=u(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,p>2?arguments[2]:void 0));var v,y,E,T,C,R,w=h(t),S=0;if(!w||this===f&&s(w))for(v=l(t),y=n?new this(v):f(v);v>S;S++)R=m?g(t[S],S):t[S],c(y,S,R);else for(C=(T=d(t,w)).next,y=n?new this:[];!(E=o(C,T)).done;S++)R=m?a(T,g,[E.value,S],!0):E.value,c(y,S,R);return y.length=S,y}},function(e,t,n){var r=n(62),o=n(401);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(128).forEach,o=n(146)("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(22),o=n(44),i=n(285)(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(22),o=n(44),i=n(285)(o.setTimeout,!0);r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},function(e,t,n){n(728),n(730)},function(e,t,n){var r=n(22),o=n(44),i=n(423).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},function(e,t,n){var r=n(122);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){var r=n(22),o=n(44),i=n(423).set,a=n(285),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(221)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(411))},function(e,t,n){var r=n(84).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(176).PROPER,o=n(28),i=n(418);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(129),o=n(64),i=n(30),a=n(224),s=n(62),u=n(97),l=n(287),c=n(82),d=n(736),h=n(284),f=n(126),p=n(56),g=n(124),m=n(276),v=n(225),y=n(223),E=n(283),T=n(28),C=E.UNSUPPORTED_Y,R=Math.min,w=[].push,S=i(/./.exec),O=i(w),b=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=p(c(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!l(e))return o(t,i,e,a);for(var s,u,d,h=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");(s=o(y,v,i))&&!((u=v.lastIndex)>g&&(O(h,b(i,g,s.index)),s.length>1&&s.index<i.length&&r(w,h,m(s,1)),d=s[0].length,g=u,h.length>=a));)v.lastIndex===s.index&&v.lastIndex++;return g===i.length?!d&&S(v,"")||O(h,""):O(h,b(i,g)),h.length>a?m(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=u(t)?void 0:g(t,e);return a?o(a,t,r,n):o(i,p(r),t,n)},function(e,r){var o=s(this),a=p(e),u=n(i,o,a,r,i!==t);if(u.done)return u.value;var l=d(o,RegExp),c=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(C?"g":"y"),m=new l(C?"^(?:"+o.source+")":o,g),y=void 0===r?4294967295:r>>>0;if(0===y)return[];if(0===a.length)return null===v(m,a)?[a]:[];for(var E=0,T=0,w=[];T<a.length;){m.lastIndex=C?0:T;var S,A=v(m,C?b(a,T):a);if(null===A||(S=R(f(m.lastIndex+(C?T:0)),a.length))===E)T=h(a,T,c);else{if(O(w,b(a,E,T)),w.length===y)return w;for(var N=1;N<=A.length-1;N++)if(O(w,A[N]),w.length===y)return w;T=E=S}}return O(w,b(a,E)),w}]}),!!T((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]})),C)},function(e,t,n){var r=n(62),o=n(428),i=n(97),a=n(48)("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,t,n){"use strict";var r=n(22),o=n(272).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(30),o=n(126),i=n(56),a=n(289),s=n(82),u=r(a),l=r("".slice),c=Math.ceil,d=function(e){return function(t,n,r){var a,d,h=i(s(t)),f=o(n),p=h.length,g=void 0===r?" ":i(r);return f<=p||""==g?h:((d=u(g,c((a=f-p)/g.length))).length>a&&(d=l(d,0,a)),e?h+d:d+h)}};e.exports={start:d(!1),end:d(!0)}},function(e,t,n){var r=n(122);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":431,"./af.js":431,"./ar":432,"./ar-dz":433,"./ar-dz.js":433,"./ar-kw":434,"./ar-kw.js":434,"./ar-ly":435,"./ar-ly.js":435,"./ar-ma":436,"./ar-ma.js":436,"./ar-sa":437,"./ar-sa.js":437,"./ar-tn":438,"./ar-tn.js":438,"./ar.js":432,"./az":439,"./az.js":439,"./be":440,"./be.js":440,"./bg":441,"./bg.js":441,"./bm":442,"./bm.js":442,"./bn":443,"./bn-bd":444,"./bn-bd.js":444,"./bn.js":443,"./bo":445,"./bo.js":445,"./br":446,"./br.js":446,"./bs":447,"./bs.js":447,"./ca":448,"./ca.js":448,"./cs":449,"./cs.js":449,"./cv":450,"./cv.js":450,"./cy":451,"./cy.js":451,"./da":452,"./da.js":452,"./de":453,"./de-at":454,"./de-at.js":454,"./de-ch":455,"./de-ch.js":455,"./de.js":453,"./dv":456,"./dv.js":456,"./el":457,"./el.js":457,"./en-au":458,"./en-au.js":458,"./en-ca":459,"./en-ca.js":459,"./en-gb":460,"./en-gb.js":460,"./en-ie":461,"./en-ie.js":461,"./en-il":462,"./en-il.js":462,"./en-in":463,"./en-in.js":463,"./en-nz":464,"./en-nz.js":464,"./en-sg":465,"./en-sg.js":465,"./eo":466,"./eo.js":466,"./es":467,"./es-do":468,"./es-do.js":468,"./es-mx":469,"./es-mx.js":469,"./es-us":470,"./es-us.js":470,"./es.js":467,"./et":471,"./et.js":471,"./eu":472,"./eu.js":472,"./fa":473,"./fa.js":473,"./fi":474,"./fi.js":474,"./fil":475,"./fil.js":475,"./fo":476,"./fo.js":476,"./fr":477,"./fr-ca":478,"./fr-ca.js":478,"./fr-ch":479,"./fr-ch.js":479,"./fr.js":477,"./fy":480,"./fy.js":480,"./ga":481,"./ga.js":481,"./gd":482,"./gd.js":482,"./gl":483,"./gl.js":483,"./gom-deva":484,"./gom-deva.js":484,"./gom-latn":485,"./gom-latn.js":485,"./gu":486,"./gu.js":486,"./he":487,"./he.js":487,"./hi":488,"./hi.js":488,"./hr":489,"./hr.js":489,"./hu":490,"./hu.js":490,"./hy-am":491,"./hy-am.js":491,"./id":492,"./id.js":492,"./is":493,"./is.js":493,"./it":494,"./it-ch":495,"./it-ch.js":495,"./it.js":494,"./ja":496,"./ja.js":496,"./jv":497,"./jv.js":497,"./ka":498,"./ka.js":498,"./kk":499,"./kk.js":499,"./km":500,"./km.js":500,"./kn":501,"./kn.js":501,"./ko":502,"./ko.js":502,"./ku":503,"./ku.js":503,"./ky":504,"./ky.js":504,"./lb":505,"./lb.js":505,"./lo":506,"./lo.js":506,"./lt":507,"./lt.js":507,"./lv":508,"./lv.js":508,"./me":509,"./me.js":509,"./mi":510,"./mi.js":510,"./mk":511,"./mk.js":511,"./ml":512,"./ml.js":512,"./mn":513,"./mn.js":513,"./mr":514,"./mr.js":514,"./ms":515,"./ms-my":516,"./ms-my.js":516,"./ms.js":515,"./mt":517,"./mt.js":517,"./my":518,"./my.js":518,"./nb":519,"./nb.js":519,"./ne":520,"./ne.js":520,"./nl":521,"./nl-be":522,"./nl-be.js":522,"./nl.js":521,"./nn":523,"./nn.js":523,"./oc-lnc":524,"./oc-lnc.js":524,"./pa-in":525,"./pa-in.js":525,"./pl":526,"./pl.js":526,"./pt":527,"./pt-br":528,"./pt-br.js":528,"./pt.js":527,"./ro":529,"./ro.js":529,"./ru":530,"./ru.js":530,"./sd":531,"./sd.js":531,"./se":532,"./se.js":532,"./si":533,"./si.js":533,"./sk":534,"./sk.js":534,"./sl":535,"./sl.js":535,"./sq":536,"./sq.js":536,"./sr":537,"./sr-cyrl":538,"./sr-cyrl.js":538,"./sr.js":537,"./ss":539,"./ss.js":539,"./sv":540,"./sv.js":540,"./sw":541,"./sw.js":541,"./ta":542,"./ta.js":542,"./te":543,"./te.js":543,"./tet":544,"./tet.js":544,"./tg":545,"./tg.js":545,"./th":546,"./th.js":546,"./tk":547,"./tk.js":547,"./tl-ph":548,"./tl-ph.js":548,"./tlh":549,"./tlh.js":549,"./tr":550,"./tr.js":550,"./tzl":551,"./tzl.js":551,"./tzm":552,"./tzm-latn":553,"./tzm-latn.js":553,"./tzm.js":552,"./ug-cn":554,"./ug-cn.js":554,"./uk":555,"./uk.js":555,"./ur":556,"./ur.js":556,"./uz":557,"./uz-latn":558,"./uz-latn.js":558,"./uz.js":557,"./vi":559,"./vi.js":559,"./x-pseudo":560,"./x-pseudo.js":560,"./yo":561,"./yo.js":561,"./zh-cn":562,"./zh-cn.js":562,"./zh-hk":563,"./zh-hk.js":563,"./zh-mo":564,"./zh-mo.js":564,"./zh-tw":565,"./zh-tw.js":565};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=741},function(e,t,n){n(22)({target:"String",proto:!0},{repeat:n(289)})},function(e,t,n){var r=n(22),o=n(744);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(e,t,n){"use strict";var r=n(129),o=n(89),i=n(116),a=n(94),s=n(146),u=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=c||!d;e.exports=h?function(e){if(c)return r(l,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=u(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},function(e,t,n){var r=n(125),o=n(83),i=n(166),a=n(94),s=TypeError,u=function(e){return function(t,n,u,l){r(n);var c=o(t),d=i(c),h=a(c),f=e?h-1:0,p=e?-1:1;if(u<2)for(;;){if(f in d){l=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(l=n(l,d[f],f,c));return l}};e.exports={left:u(!1),right:u(!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]:u,t=l.get(e)||l.get(u),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(32)),i=r(n(23));n(4),n(41),n(1),n(5),n(6),n(57),n(90);var a=n(36),s=n(58),u="asc";t.ASC=u;t.DESC="desc";var l=new Map([[u,[-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 u(){n.clear()}return t=(0,i.isFunction)(t)?t:a,{addItem:r,clear:u,getItems:s}};var o=r(n(32));n(4),n(1),n(52),n(5),n(6);var i=n(58),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(23)),i=r(n(32)),a=r(n(2)),s=r(n(3)),u=r(n(27)),l=r(n(73)),c=r(n(74));n(4),n(1),n(5),n(7),n(6),n(70),n(71);var d=n(15),h=r(n(51)),f=n(72),p=r(n(131)),g=n(580),m=n(296);function v(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 y=new WeakMap,E=new WeakMap,T=new WeakMap,C=function(){function e(t){(0,a.default)(this,e),(0,u.default)(this,"instance",void 0),(0,u.default)(this,"eventManager",void 0),(0,u.default)(this,"settings",void 0),(0,u.default)(this,"THEAD",void 0),(0,u.default)(this,"TBODY",void 0),(0,u.default)(this,"_wt",void 0),(0,u.default)(this,"activeWt",void 0),v(this,E,{writable:!0,value:0}),v(this,T,{writable:!0,value:0}),(0,u.default)(this,"postponedAdjustElementsSize",!1),this.instance=t,this.eventManager=new h.default(this.instance),this.settings=this.instance.getSettings(),y.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=y.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=y.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,u=n.y||n.clientY,l=n.target;if(!t.mouseDown&&r&&e.instance.view){var c=e.instance.view._wt.wtTable.holder;if(l===c){var h=(0,d.getScrollbarWidth)(o);if(o.elementFromPoint(s+h,u)!==c||o.elementFromPoint(s,u+h)!==c)return}else for(;l!==a;){if(null===l){if(n.isTargetWebComponent)break;return}if(l===r)return;l=l.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=y.get(this),n={rtlMode:this.instance.isRtl(),externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:t.table,isDataViewInstance:function(){return(0,m.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,T,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,E,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],u=a[1],l=e.instance.runHooks("modifyGetCellCoords",s,u),c=s,d=u;if(Array.isArray(l)){var h=(0,o.default)(l,2);c=h[0],d=h[1]}var f=e.instance.getCellMeta(c,d),p=e.instance.colToProp(d),g=e.instance.getDataAtRowProp(c,p);e.instance.hasHook("beforeValueRender")&&(g=e.instance.runHooks("beforeValueRender",g,f)),e.instance.runHooks("beforeRenderer",r,s,u,p,g,f),e.instance.getCellRenderer(f)(e.instance,r,s,u,p,g,f),e.instance.runHooks("afterRenderer",r,s,u,p,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),u=s[0],l=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",u,l,i,r)},onBeforeDrawBorders:function(t,n){var r=(0,o.default)(t,4),i=r[0],a=r[1],s=r[2],u=r[3],l=[e.instance.rowIndexMapper.getVisualFromRenderableIndex(i),e.instance.columnIndexMapper.getVisualFromRenderableIndex(a),e.instance.rowIndexMapper.getVisualFromRenderableIndex(s),e.instance.columnIndexMapper.getVisualFromRenderableIndex(u)];return e.instance.runHooks("beforeDrawBorders",l,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,u=t>=0?i.getVisualFromRenderableIndex(t):t,l=e.instance.runHooks("modifyGetCellCoords",u,s,r);if(Array.isArray(l)){var c=(0,o.default)(l,4),d=c[0],h=c[1],f=c[2],p=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,p>=0?a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(p,-1)):p]}},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 p.default(n),this.activeWt=this._wt;var r=this._wt.wtTable.spreader,a=this.instance.rootElement.getBoundingClientRect(),s=a.width,u=a.height;this.setLastSize(s,u),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 y.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=y.get(this),r=[e,t];n.lastWidth=r[0],n.lastHeight=r[1]}},{key:"getLastSize",value:function(){var e=y.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,l.default)(this,E)}},{key:"getRowHeadersCount",value:function(){return(0,l.default)(this,T)}},{key:"destroy",value:function(){this._wt.destroy(),this.eventManager.destroy()}}]),e}();t.default=C},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(752)),s=r(n(294)),u=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=u},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(35)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=r(n(572)),d=r(n(754)),h=r(n(782)),f=r(n(783)),p=r(n(784)),g=r(n(294)),m=n(12),v=n(15);function y(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,u.default)(this,n)}}var E=function(e){(0,s.default)(n,e);var t=y(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 p.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,m.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(function(r,o){e.wtSettings.getSetting(o).length&&n.push(r),t.push(r)})),(0,v.removeClass)(this.wtTable.wtRootElement.parentNode,t),(0,v.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=E},function(e,t,n){"use strict";var r=n(30),o=n(125),i=n(63),a=n(54),s=n(182),u=n(167),l=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]=l("C,a","return new C("+d(r,",")+")")}return h[t](e,n)};e.exports=u?l.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(20),n(1),n(21),n(65);var o=r(n(150)),i=r(n(2)),a=r(n(3)),s=r(n(27)),u=n(15),l=n(108),c=n(13),d=n(109),h=n(91),f=n(132),p=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,l.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,p=h.rootWindow;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,u.getScrollbarWidth)(f);var g="hidden"===p.getComputedStyle(c.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=g?c.holder:(0,u.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=p.scrollX,this.lastScrollY=p.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,u=this.scrollableElement===r,l=this.wtSettings.getSetting("preventWheel"),c={passive:u};(l||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",(function(t){return e.onCloneWheel(t,l)}),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,l)}),c)}})),this.eventManager.addEventListener(r,"resize",(function(){clearTimeout(a),a=setTimeout((function(){e.wtSettings.getSetting("onWindowResize")}),200)})),u||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 u=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==n&&u)&&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,u.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 u=n.wtRootElement,l=u.scrollHeight,c=u.scrollWidth,d=n.holder,h=d.scrollHeight,f=d.scrollWidth;this.hasScrollbarRight=l<h,this.hasScrollbarBottom=c<f,this.hasScrollbarRight&&n.hider.scrollWidth+this.scrollbarSize>c?this.hasScrollbarBottom=!0:this.hasScrollbarBottom&&n.hider.scrollHeight+this.scrollbarSize>l&&(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=p},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(757)),h=n(152),f=n(133);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,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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(n);function n(e,r,o,a,s,u){var l;return(0,i.default)(this,n),(l=t.call(this,e,r,f.CLONE_BOTTOM_INLINE_START_CORNER,o,a)).bottomOverlay=s,l.inlineStartOverlay=u,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)(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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(293)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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)),u=r(n(8)),l=n(231);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,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,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 l.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),u=o.getRenderedNode(a);this.sourceRowIndex=s;var l=this.obtainOrderView(u),c=i.obtainOrderView(u);l.appendView(c).setSize(r).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<r;d++){l.render();var h=l.getCurrentNode();h.className="",h.removeAttribute("style"),n[d](s,h,d)}l.end()}}}]),n}(r(n(187)).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(762)),s=n(575),u=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=u},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)),u=r(n(8));function l(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,s.default)(this,n)}}var c=function(e){(0,a.default)(n,e);var t=l(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(574)).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)),u=r(n(8)),l=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,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,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 u=t;u<s;u++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,l.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 u=this.table.renderedColumnToSource(s),l=a.childNodes[s+i];l.className="",l.removeAttribute("style"),r[t](u,l,t)}}}]),n}(r(n(187)).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)),u=r(n(8)),l=r(n(187)),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,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,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),u=this.table.columnUtils.getStretchedColumnWidth(s);this.rootNode.childNodes[a+n].style.width="".concat(u,"px")}var l=this.rootNode.firstChild;l&&(0,c.addClass)(l,"rowHeader")}}]),n}(l.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(66)),a=r(n(2)),s=r(n(3)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=n(80),h=n(67),f=n(231),p=r(n(187));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,l.default)(this,n)}}var m=!1,v=function(e){(0,u.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;!m&&e>1e3&&(m=!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}(p.default);t.default=v},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)),u=r(n(8)),l=n(15),c=n(231);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,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,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 u=this.obtainOrderView(s),c=o.obtainOrderView(s);u.prependView(c).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(var d=0;d<n;d++){u.render();var h=u.getCurrentNode(),f=this.table.renderedColumnToSource(d);(0,l.hasClass)(h,"hide")||(h.className=""),h.removeAttribute("style"),h.removeAttribute("dir"),this.table.cellRenderer(a,f,h)}u.end()}}}]),n}(r(n(187)).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(41),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,u=e.getSetting("rowHeaderWidth");if(r.columnsRenderCalculator.refreshStretching(r.getViewportWidth()-s),null!=(u=e.getSetting("onModifyRowHeaderWidth",u)))for(var l=e.getSetting("rowHeaders").length,c=e.getSetting("defaultColumnWidth"),d=0;d<l;d++){var h=Array.isArray(u)?u[d]:u;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(35)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=r(n(27)),d=r(n(572));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,u.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 u=s.wtSettings.getSetting("facade",(0,a.default)(s));return s.cloneSource=o.source,s.cloneOverlay=o.overlay,s.wtTable=s.cloneOverlay.createTable(s.getTableDao(),u,s.domBindings,s.wtSettings),s.wtViewport=o.viewport,s.selections=o.selections,s.wtEvent=new d.default(u,s.domBindings,s.wtSettings,s.eventManager,s.wtTable,s.selections,o.event),s.findOriginalHeaders(),s}return(0,o.default)(n)}(r(n(294)).default);t.default=f},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(70),n(71);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedColumnsStart,d=l.inlineStartOverlay;if(u&&e<c)return!1;var h=!1;return-1===a?h=d.scrollTo(e,u?e>this.lastScrolledColumnPos:t):(u&&(e<a||e>s)||!u)&&(h=d.scrollTo(e,u?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(),u=void 0===t&&void 0===n,l=this.dataAccessObject,c=l.fixedRowsBottom,d=l.fixedRowsTop,h=l.topOverlay;if(u&&(e<d||e>i-c-1))return!1;var f=!1;return-1===a?f=h.scrollTo(e,u?e>this.lastScrolledRowPos:n):(u&&(e<a||e>s)||!u)&&(f=h.scrollTo(e,u?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,u=n.getFirstVisibleRow();if(t.mainTableScrollableElement===a){var l=(0,s.offset)(n.wtRootElement),c=(0,s.innerHeight)(n.hider),d=(0,s.innerHeight)(a),h=(0,s.getScrollTop)(a,a);if(l.top+c-d<=h){var f=r.getColumnHeaderHeight();f+=t.sumCellSizes(0,i);for(var p=o;p>0;p--)if(f+=t.sumCellSizes(p-1,p),l.top+c-f<=h){u=p;break}}}return u}},{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 u=(0,s.offset)(n.wtRootElement),l=(0,s.getScrollTop)(i,i);if(u.top>l)for(var c=(0,s.innerHeight)(i),d=r.getColumnHeaderHeight(),h=1;h<=o;h++)if(d+=t.sumCellSizes(h-1,h),u.top+d-l>=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 u=(0,s.offset)(n.wtRootElement),l=(0,s.innerWidth)(n.hider),c=(0,s.innerWidth)(i),d=Math.abs((0,s.getScrollLeft)(i,i));if(u.left+l-c<=d)for(var h=r.getRowHeaderWidth(),f=o;f>0;f--)if(h+=t.sumCellSizes(f-1,f),u.left+l-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,u=r.getLastVisibleColumn();if(n.mainTableScrollableElement===a){var l=null;if(t.getSetting("rtlMode")){var c=r.TABLE.getBoundingClientRect(),d=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(c.right-d)}else{l=(0,s.offset)(r.wtRootElement).left}var h=Math.abs((0,s.getScrollLeft)(a,a));if(l>h)for(var f=(0,s.innerWidth)(a),p=o.getRowHeaderWidth(),g=1;g<=i;g++)if(l+(p+=n.sumCellSizes(g-1,g))-h>=f){u=g-2;break}}return u}}]),e}();t.default=u},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(775)),p=n(152),g=n(133);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,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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_BOTTOM,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsBottom",-1),u.cachedFixedRowsBottom=u.wtSettings.getSetting("fixedRowsBottom"),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)(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,u=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===u){var l=n.getWorkspaceWidth();this.wot.wtOverlays.hasScrollbarRight&&(l-=a),l=Math.min(l,t.wtRootElement.scrollWidth),s.width="".concat(l,"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}(p.Overlay);t.BottomOverlay=v},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)),u=r(n(8)),l=r(n(151)),c=r(n(576)),d=r(n(295)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(15),d=r(n(777)),h=n(152),f=n(133);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,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,u.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=p(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 u=(0,c.outerWidth)(this.clone.wtTable.TABLE);i.width="".concat(u,"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)),u=r(n(8)),l=r(n(151)),c=r(n(577)),d=r(n(293)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(779)),p=n(152),g=n(133);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,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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a,u,l){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=u,c.inlineStartOverlay=l,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}(p.Overlay);t.TopInlineStartCornerOverlay=v},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)),u=r(n(8)),l=r(n(151)),c=r(n(578)),d=r(n(293)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},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(150)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(10)),l=r(n(11)),c=r(n(8)),d=r(n(27)),h=n(15),f=r(n(781)),p=n(152),g=n(133);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,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,l.default)(this,n)}}var v=function(e){(0,u.default)(n,e);var t=m(n);function n(e,r,o,a){var u;return(0,i.default)(this,n),u=t.call(this,e,r,g.CLONE_TOP,o,a),(0,d.default)((0,s.default)(u),"cachedFixedRowsTop",-1),u.cachedFixedRowsTop=u.wtSettings.getSetting("fixedRowsTop"),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)(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 u=(0,h.outerHeight)(this.clone.wtTable.TABLE);this.wot.wtTable.hasDefinedSize()||(u=0),i.height="".concat(u,"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"),u=r.getSetting("totalRows");i+=this.sumCellSizes(0,e+1),i-=n.wtViewport.getViewportHeight()-this.sumCellSizes(u-s,u),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 u=(0,h.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop"),e||0===this.wtSettings.getSetting("totalRows")?((0,h.addClass)(n,"innerBorderTop"),o=!u):((0,h.removeClass)(n,"innerBorderTop"),o=u)}}return o}}]),n}(p.Overlay);t.TopOverlay=v},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)),u=r(n(8)),l=r(n(151)),c=r(n(578)),d=r(n(295)),h=n(12),f=n(132);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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)}(l.default);(0,h.mixin)(g,c.default),(0,h.mixin)(g,d.default);var m=g;t.default=m},function(e,t,n){"use strict";var r=n(0);t.__esModule=!0,t.default=void 0,n(579);var o=r(n(2)),i=r(n(3)),a=r(n(27)),s=n(15),u=n(12),l=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,u.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,u.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=l},function(e,t,n){"use strict";n(1),n(9);var r=n(0);t.__esModule=!0,t.default=void 0,n(31);var o=r(n(2)),i=r(n(3)),a=r(n(10)),s=r(n(11)),u=r(n(8)),l=n(15),c=r(n(151)),d=r(n(577)),h=r(n(295)),f=n(12);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,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,s.default)(this,n)}}var g=function(e){(0,a.default)(n,e);var t=p(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,l.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,l.getStyle)(e,"height",t),o=(0,l.getStyle)(e,"overflow",t),i=this.holder.style,a=e.scrollWidth,s=e.scrollHeight,u=e.getBoundingClientRect(),c=u.width,d=u.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,l.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,l.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 m=g;t.default=m},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),u=n(785),l=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,u=o.documentElement.offsetWidth,l=n.getSetting("totalColumns"),c=n.getSetting("preventOverflow"),d=n.getSetting("rtlMode"),h=this.wtTable.TABLE.getBoundingClientRect(),f=u-(d?h.right-u:h.left);if(c)return(0,a.outerWidth)(this.wtTable.wtRootElement);if(e=n.getSetting("freezeOverlays")?Math.min(f,u):Math.min(this.getContainerFillWidth(),f,u),s===i&&l>0&&this.sumColumnWidths(0,l-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 p=n.getSetting("stretchH");return"none"!==p&&p?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]:u.RENDER_TYPE,o=this.wtSettings,i=this.wtTable;this.rowHeaderWidth=NaN,e=o.getSetting("renderAllRows")&&r===u.RENDER_TYPE?1/0:this.getViewportHeight();var s=this.dataAccessObject.topScrollPosition-this.dataAccessObject.topParentOffset,l=o.getSetting("fixedRowsTop"),c=o.getSetting("fixedRowsBottom"),d=o.getSetting("totalRows");return l&&s>=0&&(s+=n=this.dataAccessObject.topOverlay.sumCellSizes(0,l),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 u.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]:u.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 u.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(u.FULLY_VISIBLE_TYPE),r=this.createColumnsCalculator(u.FULLY_VISIBLE_TYPE);this.areAllProposedVisibleRowsAlreadyRendered(n)&&this.areAllProposedVisibleColumnsAlreadyRendered(r)||(t=!1)}return t||(this.rowsRenderCalculator=this.createRowsCalculator(u.RENDER_TYPE),this.columnsRenderCalculator=this.createColumnsCalculator(u.RENDER_TYPE)),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,t}},{key:"createVisibleCalculators",value:function(){this.rowsVisibleCalculator=this.createRowsCalculator(u.FULLY_VISIBLE_TYPE),this.columnsVisibleCalculator=this.createColumnsCalculator(u.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=l},function(e,t,n){"use strict";n(1),n(21),n(42);var r=n(0);t.__esModule=!0;var o={ViewportColumnsCalculator:!0,ViewportRowsCalculator:!0},i=r(n(568));t.ViewportColumnsCalculator=i.default;var a=r(n(569));t.ViewportRowsCalculator=a.default;var s=n(291);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(31),n(40),n(20),n(1),n(21),n(787);var o=r(n(23)),i=r(n(14)),a=r(n(2)),s=r(n(3)),u=n(15),l=r(n(789)),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 l.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,u.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,u.hasClass)(r,s)){var l=i+1;a="".concat(e,"-").concat(l)}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],l=i[2],c=i[3],d=this.settings,h=d.highlightHeaderClassName,f=d.highlightColumnClassName,p=d.highlightRowClassName,g=d.highlightOnlyClosestHeader,m=d.selectionType,v=void 0===m||["active-header","header"].includes(m);if(v&&null!==s&&null!==c)for(var y=0,E=0;E<n;E+=1){var T=e.wtTable.columnFilter.renderedToSource(E);if(T>=s&&T<=c){var C=e.wtTable.getColumnHeaders(T),R=C.length-1;g&&C.length>1&&(C=[C[R]]);for(var w=0;w<C.length;w+=1){var S=[],O=C[w];h&&S.push(h),f&&S.push(f),w=g?R:w;var b=e.getSetting("onBeforeHighlightingColumnHeader",T,w,{selectionType:m,columnCursor:y,selectionWidth:c-s+1,classNames:S});b!==T&&(O=e.wtTable.getColumnHeader(b,w)),(0,u.addClass)(O,S)}y+=1}}if(null!==a&&null!==l)for(var A=0,N=0;N<t;N+=1){var M=e.wtTable.rowFilter.renderedToSource(N);if(v&&M>=a&&M<=l){var I=e.wtTable.getRowHeaders(M),_=I.length-1;g&&I.length>1&&(I=[I[_]]);for(var k=0;k<I.length;k+=1){var x=[],P=I[k];h&&x.push(h),p&&x.push(p),k=g?_:k;var L=e.getSetting("onBeforeHighlightingRowHeader",M,k,{selectionType:m,rowCursor:A,selectionHeight:l-a+1,classNames:x});L!==M&&(P=e.wtTable.getRowHeader(L,k)),(0,u.addClass)(P,x)}A+=1}if(null!==s&&null!==c)for(var D=0;D<n;D+=1){var F=e.wtTable.columnFilter.renderedToSource(D);M>=a&&M<=l&&F>=s&&F<=c?this.settings.className&&this.addClassAtCoords(e,M,F,this.settings.className,this.settings.markIntersections):M>=a&&M<=l?p&&this.addClassAtCoords(e,M,F,p):F>=s&&F<=c&&f&&this.addClassAtCoords(e,M,F,f);var U=e.getSetting("onAfterDrawSelection",M,F,this.settings.layerLevel);"string"==typeof U&&this.addClassAtCoords(e,M,F,U)}}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(22),o=n(788).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},function(e,t,n){var r=n(55),o=n(28),i=n(30),a=n(218),s=n(171),u=n(89),l=i(n(215).f),c=i([].push),d=r&&o((function(){var e=Object.create(null);return e[2]=2,!l(e,2)})),h=function(e){return function(t){for(var n,o=u(t),i=s(o),h=d&&null===a(o),f=i.length,p=0,g=[];f>p;)n=i[p++],r&&!(h?n in o:l(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(85);var o=r(n(23)),i=r(n(2)),a=r(n(3)),s=n(15),u=n(72),l=n(12),c=n(91),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,u.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,u=s.bordersHolder;u||((u=t.createElement("div")).className="htBorders",s.bordersHolder=u,s.spreader.appendChild(u)),u.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,l.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,l.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,u=s.top,l=s.topHitArea,c=s.bottom,d=s.bottomHitArea,h=parseInt(u.borderWidth,10),f=parseInt(u.width,10),p=parseInt(l.width,10),g=this.wot.wtTable.getWidth(),m=this.wot.wtTable.getHeight();u.top="".concat(parseInt(n-f-1,10),"px"),u[a]="".concat(parseInt(r-f-1,10),"px"),l.top="".concat(parseInt(n-p/4*3,10),"px"),l[a]="".concat(parseInt(r-p/4*3,10),"px");var v=Math.min(parseInt(r+o,10),g-f-2*h),y=Math.min(parseInt(r+o-p/4,10),g-p-2*h);c[a]="".concat(v,"px"),d[a]="".concat(y,"px");var E=Math.min(parseInt(n+i,10),m-f-2*h),T=Math.min(parseInt(n+i-p/4,10),m-p-2*h);c.top="".concat(E,"px"),d.top="".concat(T,"px"),this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(u.display="block",l.display="block",this.isPartRange(e,t)?(c.display="none",d.display="none"):(c.display="block",d.display="block")):(u.display="none",c.display="none",l.display="none",d.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(u.zIndex="9999",l.zIndex="9999"):(u.zIndex="",l.zIndex="")}},{key:"appear",value:function(e){if(!this.disabled){for(var t,n,r,i,a,u,l=this.wot,d=l.wtTable,h=l.rootDocument,f=l.rootWindow,p=d.getRenderedRowsCount(),g=0;g<p;g+=1){var m=d.rowFilter.renderedToSource(g);if(m>=e[0]&&m<=e[2]){t=m,a=e[0];break}}for(var v=p-1;v>=0;v-=1){var y=d.rowFilter.renderedToSource(v);if(y>=e[0]&&y<=e[2]){n=y;break}}for(var E=d.getRenderedColumnsCount(),T=0;T<E;T+=1){var C=d.columnFilter.renderedToSource(T);if(C>=e[1]&&C<=e[3]){r=C,u=e[1];break}}for(var R=E-1;R>=0;R-=1){var w=d.columnFilter.renderedToSource(R);if(w>=e[1]&&w<=e[3]){i=w;break}}if(void 0!==t&&void 0!==r){var S=d.getCell(this.wot.createCellCoords(t,r)),O=t!==n||r!==i,b=O?d.getCell(this.wot.createCellCoords(n,i)):S,A=(0,s.offset)(S),N=O?(0,s.offset)(b):A,M=(0,s.offset)(d.TABLE),I=(0,s.outerWidth)(d.TABLE),_=A.top,k=A.left,x=this.wot.wtSettings.getSetting("rtlMode"),P=0,L=0;if(x){var D=(0,s.outerWidth)(S),F=f.innerWidth-M.left-I;L=k+D-N.left,P=f.innerWidth-k-D-F-1}else L=N.left+(0,s.outerWidth)(b)-k,P=k-M.left-1;if(this.isEntireColumnSelected(t,n)){var U=this.getDimensionsFromHeader("columns",r,i,a,M),H=null;if(U){var V=(0,o.default)(U,3);H=V[0],P=V[1],L=V[2]}H&&(S=H)}var j=_-M.top-1,B=N.top+(0,s.outerHeight)(b)-_;if(this.isEntireRowSelected(r,i)){var W=this.getDimensionsFromHeader("rows",t,n,u,M),Y=null;if(W){var G=(0,o.default)(W,3);Y=G[0],j=G[1],B=G[2]}Y&&(S=Y)}var z=(0,s.getComputedStyle)(S,f);parseInt(z.borderTopWidth,10)>0&&(j+=1,B=B>0?B-1:0),parseInt(z[x?"borderRightWidth":"borderLeftWidth"],10)>0&&(P+=1,L=L>0?L-1:0);var K=x?"right":"left";this.topStyle.top="".concat(j,"px"),this.topStyle[K]="".concat(P,"px"),this.topStyle.width="".concat(L,"px"),this.topStyle.display="block",this.startStyle.top="".concat(j,"px"),this.startStyle[K]="".concat(P,"px"),this.startStyle.height="".concat(B,"px"),this.startStyle.display="block";var X=Math.floor(this.settings.border.width/2);this.bottomStyle.top="".concat(j+B-X,"px"),this.bottomStyle[K]="".concat(P,"px"),this.bottomStyle.width="".concat(L,"px"),this.bottomStyle.display="block",this.endStyle.top="".concat(j,"px"),this.endStyle[K]="".concat(P+L-X,"px"),this.endStyle.height="".concat(B+1,"px"),this.endStyle.display="block";var q=this.settings.border.cornerVisible;q="function"==typeof q?q(this.settings.layerLevel):q;var $=this.wot.getSetting("onModifyGetCellCoords",n,i),Q=n,Z=i;if($&&Array.isArray($)){var J=(0,o.default)($,4);Q=J[2],Z=J[3]}if((0,c.isMobileBrowser)()||!q||this.isPartRange(Q,Z))this.cornerStyle.display="none";else{this.cornerStyle.top="".concat(j+B+this.cornerCenterPointOffset-1,"px"),this.cornerStyle[K]="".concat(P+L+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?b.getBoundingClientRect().left:b.offsetLeft;(x?oe-parseInt(this.cornerDefaultStyle.width,10)/2<0:oe+(0,s.outerWidth)(b)+parseInt(this.cornerDefaultStyle.width,10)/2>=(0,s.innerWidth)(ee))&&(this.cornerStyle[K]="".concat(Math.floor(P+L+this.cornerCenterPointOffset-ne),"px"),this.cornerStyle[x?"borderLeftWidth":"borderRightWidth"]=0)}if(n===this.wot.getSetting("totalRows")-1)(te?b.getBoundingClientRect().top:b.offsetTop)+(0,s.outerHeight)(b)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,s.innerHeight)(ee)&&(this.cornerStyle.top="".concat(Math.floor(j+B+this.cornerCenterPointOffset-re),"px"),this.cornerStyle.borderBottomWidth=0);this.cornerStyle.display="block"}(0,c.isMobileBrowser)()&&this.updateMultipleSelectionHandlesPosition(n,i,j,P,L,B)}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,u=null,l=null,c=null,d=null,h=null,f=null,p=null,g=null;switch(e){case"rows":u=function(){return i.getRowHeader.apply(i,arguments)},l=function(){return s.outerHeight.apply(void 0,arguments)},c="ht__selection--rows",f="top";break;case"columns":u=function(){return i.getColumnHeader.apply(i,arguments)},l=function(){return s.outerWidth.apply(void 0,arguments)},c="ht__selection--columns",f="left"}if(a.classList.contains(c)){var m=this.wot.getSetting("columnHeaders").length;if(p=u(t,m-r),g=u(n,m-r),!p||!g)return!1;var v=(0,s.offset)(p),y=(0,s.offset)(g);return p&&g&&(d=v[f]-o[f]-1,h=y[f]+l(g)-v[f]),[p,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(22),o=n(44),i=n(64),a=n(30),s=n(114),u=n(55),l=n(141),c=n(28),d=n(54),h=n(115),f=n(62),p=n(89),g=n(213),m=n(56),v=n(175),y=n(123),E=n(171),T=n(143),C=n(275),R=n(216),w=n(117),S=n(84),O=n(385),b=n(215),A=n(98),N=n(180),M=n(140),I=n(214),_=n(173),k=n(211),x=n(48),P=n(581),L=n(582),D=n(791),F=n(219),U=n(107),H=n(128).forEach,V=I("hidden"),j=U.set,B=U.getterFor("Symbol"),W=Object.prototype,Y=o.Symbol,G=Y&&Y.prototype,z=o.TypeError,K=o.QObject,X=w.f,q=S.f,$=C.f,Q=b.f,Z=a([].push),J=M("symbols"),ee=M("op-symbols"),te=M("wks"),ne=!K||!K.prototype||!K.prototype.findChild,re=u&&c((function(){return 7!=y(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=X(W,t);r&&delete W[t],q(e,t,n),r&&e!==W&&q(W,t,r)}:q,oe=function(e,t){var n=J[e]=y(G);return j(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},ie=function(e,t,n){e===W&&ie(ee,t,n),f(e);var r=g(t);return f(n),d(J,r)?(n.enumerable?(d(e,V)&&e[V][r]&&(e[V][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,V)||q(e,V,v(1,{})),e[V][r]=!0),re(e,r,n)):q(e,r,n)},ae=function(e,t){f(e);var n=p(t),r=E(n).concat(ce(n));return H(r,(function(t){u&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=g(e),n=i(Q,this,t);return!(this===W&&d(J,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(J,t)||d(this,V)&&this[V][t])||n)},ue=function(e,t){var n=p(e),r=g(t);if(n!==W||!d(J,r)||d(ee,r)){var o=X(n,r);return!o||!d(J,r)||d(n,V)&&n[V][r]||(o.enumerable=!0),o}},le=function(e){var t=$(p(e)),n=[];return H(t,(function(e){d(J,e)||d(_,e)||Z(n,e)})),n},ce=function(e){var t=e===W,n=$(t?ee:p(e)),r=[];return H(n,(function(e){!d(J,e)||t&&!d(W,e)||Z(r,J[e])})),r};l||(A(G=(Y=function(){if(h(G,this))throw z("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=k(e),n=function(e){this===W&&i(n,ee,e),d(this,V)&&d(this[V],t)&&(this[V][t]=!1),re(this,t,v(1,e))};return u&&ne&&re(W,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return B(this).tag})),A(Y,"withoutSetter",(function(e){return oe(k(e),e)})),b.f=se,S.f=ie,O.f=ae,w.f=ue,T.f=C.f=le,R.f=ce,P.f=function(e){return oe(x(e),e)},u&&(N(G,"description",{configurable:!0,get:function(){return B(this).description}}),s||A(W,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Y}),H(E(te),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?y(e):ae(y(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ue}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:le}),D(),F(Y,"Symbol"),_[V]=!0},function(e,t,n){var r=n(64),o=n(106),i=n(48),a=n(98);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(22),o=n(106),i=n(54),a=n(56),s=n(140),u=n(583),l=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(i(l,t))return l[t];var n=o("Symbol")(t);return l[t]=n,c[n]=t,n}})},function(e,t,n){var r=n(22),o=n(54),i=n(170),a=n(142),s=n(140),u=n(583),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(l,e))return l[e]}})},function(e,t,n){var r=n(22),o=n(106),i=n(129),a=n(64),s=n(30),u=n(28),l=n(49),c=n(170),d=n(182),h=n(795),f=n(141),p=String,g=o("JSON","stringify"),m=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),E=s("".replace),T=s(1..toString),C=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,w=/^[\uDC00-\uDFFF]$/,S=!f||u((function(){var e=o("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=u((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),b=function(e,t){var n=d(arguments),r=h(t);if(l(r)||void 0!==e&&!c(e))return n[1]=function(e,t){if(l(r)&&(t=a(r,this,p(e),t)),!c(t))return t},i(g,null,n)},A=function(e,t,n){var r=v(n,t-1),o=v(n,t+1);return m(R,e)&&!m(w,o)||m(w,e)&&!m(R,r)?"\\u"+T(y(e,0),16):e};g&&r({target:"JSON",stat:!0,arity:3,forced:S||O},{stringify:function(e,t,n){var r=d(arguments),o=i(S?b:g,null,r);return O&&"string"==typeof o?E(o,C,A):o}})},function(e,t,n){var r=n(30),o=n(145),i=n(49),a=n(102),s=n(56),u=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 l=e[r];"string"==typeof l?u(n,l):"number"!=typeof l&&"Number"!=a(l)&&"String"!=a(l)||u(n,s(l))}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(22),o=n(141),i=n(28),a=n(216),s=n(83);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(70),n(71),n(1),n(21);var o=r(n(2)),i=r(n(3)),a=n(12),s=n(134),u=n(13),l=n(36),c=n(58),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,u.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,u=null;if(s=this.modifyRowData(e),Array.isArray(s))u=[],i?s.forEach((function(t,n){u[n]=r.getAtPhysicalCell(e,n,s)})):(0,l.rangeEach)(t,n,(function(n){u[n-t]=r.getAtPhysicalCell(e,n,s)}));else if((0,a.isObject)(s)||(0,c.isFunction)(s))if(u=o?[]:{},!i||o){var d=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(d,h,(function(i){var l=r.colToProp(i);if(i>=(t||d)&&i<=(n||h)&&!Number.isInteger(l)){var c=r.getAtPhysicalCell(e,l,s);o?u.push(c):(0,a.setProperty)(u,l,c)}}))}else(0,a.objectEach)(s,(function(t,n){(0,a.setProperty)(u,n,r.getAtPhysicalCell(e,n,s))}));return u}},{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,u=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),u=Math.max(t.col,n.col));var c=[];return(0,l.rangeEach)(i,s,(function(t){c.push(o?e.getAtRow(t,void 0,void 0,r):e.getAtRow(t,a,u,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(32)),i=r(n(2)),a=r(n(3));n(4),n(1),n(52),n(5),n(6),n(41),n(47),n(227),n(183),n(57),n(34),n(24),n(31),n(40),n(147);var s=n(13),u=n(584),l=n(804),c=r(n(86)),d=n(12),h=n(25),f=n(806),p=(new Set,function(){function e(){var t=this;(0,i.default)(this,e),this.indexesSequence=new u.IndexesSequence,this.trimmingMapsCollection=new l.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.hidingMapsCollection=new l.AggregatedCollection((function(e){return e.some((function(e){return!0===e}))}),!1),this.variousMapsCollection=new l.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,u.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 u.TrimmingMap?this.trimmingMapsCollection.register(e,t):t instanceof u.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,u.getListWithRemovedItems)(this.getIndexesSequence(),r),l=o-i;if(t+i<o){var c=a.filter((function(e){return!1===n.isTrimmed(e)}))[t];l=a.indexOf(c)}this.indexesChangeSource="move",this.setIndexesSequence((0,u.getListWithInsertedItems)(a,l,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=p,(0,d.mixin)(p,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)),u=r(n(8)),l=n(297),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,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,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}(l.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(20),n(57),n(4),n(1),n(6),n(31),n(40),n(53);var o=r(n(32)),i=r(n(2)),a=r(n(3)),s=r(n(35)),u=r(n(19)),l=r(n(10)),c=r(n(11)),d=r(n(8)),h=r(n(27)),f=n(232),p=n(298),g=n(233),m=n(585),v=n(58);function y(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 E=function(e){(0,l.default)(n,e);var t=y(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,u.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,v.isFunction)(this.initValueOrFn)?(0,u.default)((0,d.default)(n.prototype),"setValueAtIndex",this).call(this,e,this.initValueOrFn(e)):(0,u.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,u.default)((0,d.default)(n.prototype),"setDefaultValues",this).call(this,e)}},{key:"insert",value:function(e,t){this.indexedValues=(0,p.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,m.getIncreasedIndexes)(this.orderOfIndexes,t),(0,u.default)((0,d.default)(n.prototype),"insert",this).call(this,e,t)}},{key:"remove",value:function(e){this.indexedValues=(0,p.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,g.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,m.getDecreasedIndexes)(this.orderOfIndexes,e),(0,u.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=E},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)),u=r(n(8)),l=n(297),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,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,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}(l.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(19)),s=r(n(10)),u=r(n(11)),l=r(n(8)),c=n(232),d=n(233),h=n(586);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,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,u.default)(this,n)}}var p=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,l.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,l.default)(n.prototype),"remove",this).call(this,e)}}]),n}(c.IndexMap);t.IndexesSequence=p},function(e,t,n){"use strict";n(1),n(21),n(42),t.__esModule=!0;var r=n(805);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||(t[e]=r[e]))}));var o=n(299);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)),u=r(n(8)),l=n(299),c=n(13),d=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,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,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}(l.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(52),n(5),n(6),n(147),n(21),n(7);var o=r(n(2)),i=r(n(3)),a=r(n(73)),s=r(n(74)),u=n(807),l=n(808);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,p=new WeakMap,g=new WeakMap,m=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,p,{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 u.ChangesObserver;return(0,a.default)(this,d).add(t),t.addLocalHook("unsubscribe",(function(){(0,a.default)(e,d).delete(t)})),t._writeInitialChanges((0,l.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,p)&&(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,p)||((0,s.default)(this,p,!0),t=(0,a.default)(this,h)));var n=(0,l.arrayDiff)(t,e);(0,a.default)(this,d).forEach((function(e){return e._write(n)})),(0,s.default)(this,f,e)}}]),e}();t.ChangesObservable=m},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(74)),s=r(n(73)),u=n(12),l=r(n(86));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,u.mixin)(h,l.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 u()},t.registerPhraseFormatter=t.register=l;var o=r(n(103)),i=r(n(810)),a=(0,o.default)("phraseFormatters"),s=a.register,u=a.getValues;function l(e,t){s(e,t)}l("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(70),n(71)},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(27)),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(18));
876
876
  /**
877
877
  * @preserve
878
878
  * Authors: Handsoncode