handsontable 16.1.0-next-e0ea502-20250912 → 16.1.0-next-6b799e4-20250912

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,12 +25,12 @@
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: 16.1.0-next-e0ea502-20250912
29
- * Release date: 15/09/2025 (built at 12/09/2025 07:34:04)
28
+ * Version: 16.1.0-next-6b799e4-20250912
29
+ * Release date: 15/09/2025 (built at 12/09/2025 10:28:24)
30
30
  */
31
31
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):"function"==typeof define&&define.amd?define("Handsontable",["dompurify","@handsontable/pikaday","moment","numbro"],t):"object"==typeof exports?exports.Handsontable=t(require("dompurify"),require("@handsontable/pikaday"),require("moment"),require("numbro")):e.Handsontable=t(e.DOMPurify,e.Pikaday,e.moment,e.numbro)}("undefined"!=typeof self?self:this,(e,t,o,i)=>(()=>{var s={55:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=i(o(99771)),a=o(65820),l=o(91342),h=o(66649);class c extends a.Overlay{constructor(e,t,o,i){super(e,t,h.CLONE_TOP,o,i),(0,s.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new r.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,o=this.wtSettings.getSetting("preventOverflow");let i=0,s=!1;if(this.trimmingContainer!==t||o&&"vertical"===o)i=this.getScrollPosition(),(0,n.resetCssTransform)(e);else{const{wtTable:t}=this.wot,o=t.hider.getBoundingClientRect();s=Math.ceil(o.bottom)===e.offsetHeight,i=this.getOverlayOffset(),(0,n.setOverlayPosition)(e,"0px",`${i}px`)}const r=this.adjustHeaderBordersPosition(i,s);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings,o=this.mainTableScrollableElement;let i=!1;if(o===t&&e!==t.scrollY){const o=t.scrollY;t.scrollTo((0,n.getWindowScrollLeft)(t),e),i=o!==t.scrollY}else if(e!==o.scrollTop){const t=o.scrollTop;o.scrollTop=e,i=t!==o.scrollTop}return i}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let i=e,s=0;for(;i<t;){const e=this.wot.wtTable.getRowHeight(i);s+=void 0===e?o:e,i+=1}return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,s=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"horizontal"===r){let i=t.getWorkspaceWidth();t.hasVerticalScroll()&&(i-=(0,n.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollWidth),s.width=`${i}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,n.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${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()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:o,wtSettings:i}=this,s=(o.cloneSource?o.cloneSource:o).wtTable.holder,r=i.getSetting("columnHeaders"),a=0===i.getSetting("fixedRowsTop")&&r.length>0&&!(0,n.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,n.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=i.getSetting("fixedRowsBottom"),s=i.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=o.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(i.getSetting("fixedRowsTop"),e);return l+=h,(0,n.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,n.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();o=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),o>e&&(o=0)}return o}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:o}=this,i=this.wot.wtTable.holder.parentNode,s=o.getSetting("totalColumns"),r="horizontal"===o.getSetting("preventOverflow");s?(0,n.removeClass)(i,"emptyColumns"):(0,n.addClass)(i,"emptyColumns");let a=!1;if(!t&&!r){const t=o.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,r=o.getSetting("columnHeaders");if((s||0===t)&&r.length>0){const t=(0,n.hasClass)(i,"innerBorderTop");this.cachedFixedRowsTop=o.getSetting("fixedRowsTop"),e||0===o.getSetting("totalRows")?((0,n.addClass)(i,"innerBorderTop"),a=!t):((0,n.removeClass)(i,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=c},329:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionRight",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,e.getDirectionFactor()),t.markEndSource()}}},367:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10582);t.OrderView=i.OrderView;var s=o(11963);t.SharedOrderView=s.SharedOrderView},495:(e,t,o)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,i.arrayEach)(e,e=>{e.walkDown(e=>{const o=e.data,{origColspan:i,columnIndex:r,headerLevel:a,crossHiddenColumns:l}=o,h=function(e,t){let o;Array.isArray(e[t])?o=e[t]:(o=[],e[t]=o);return o}(t,a);let c=!1;for(let e=r;e<r+i;e++){if(l.includes(e)||c)h.push((0,s.createPlaceholderHeaderSettings)(o));else{const e=n(o);e.isRoot=!0,h.push(e),c=!0}}})}),t},o(99356);var i=o(94576),s=o(14680);function n(e){const{crossHiddenColumns:t,...o}=(0,s.createDefaultHeaderSettings)(e);return o}},631:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300));t.BaseAction=class{constructor(e){(0,s.default)(this,"actionType",""),this.actionType=e}undo(){throw new Error("Not implemented")}redo(){throw new Error("Not implemented")}}},887:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(4138),r=o(94576),a=o(92641),l=o(61654),h=o(89211),c=o(88181),u=o(36780),d=i(o(59468)),g=o(7120);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,o){return e.set(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",c.hasRenderer],["validator",u.hasValidator]]),y=t.defaultMainSettingSymbol=Symbol("mainSetting"),S=t.PLUGIN_KEY="base",E=[];let R=null;var b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let o=0;o<t.length;o++)if(void 0!==e[t[o]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return S}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}static get SETTINGS_VALIDATORS(){return null}constructor(e){var t,o;p(t=this,o=T),o.add(t),f(this,b,null),(0,s.default)(this,"eventManager",new d.default(this)),(0,s.default)(this,"pluginName",null),(0,s.default)(this,"pluginsInitializedCallbacks",[]),(0,s.default)(this,"isPluginsReady",!1),(0,s.default)(this,"enabled",!1),(0,s.default)(this,"initialized",!1),f(this,_,{}),(0,n.defineGetter)(this,"hot",e,{writable:!1}),R=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this),this.updatePluginSettings(this.hot.getSettings()[this.constructor.PLUGIN_KEY]);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[o,i]=t.split(":");if(!v.has(o))throw new Error(`Unknown plugin dependency type "${o}" was found.`);v.get(o)(i)||e.push(` - ${i} (${o})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");E.push(t)}}R||(R=(0,a.getPluginsNames)()),R.indexOf(this.pluginName)>=0&&R.splice(R.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===R.length){if(E.length>0){const e=[`${E.join("\n")}\n`,"You have to import and register them manually."].join("");throw E.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.constructor.DEFAULT_SETTINGS;if(void 0===e)return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),t):w(b,this);var o;if((Array.isArray(w(b,this))||(0,n.isObject)(w(b,this)))&&t[y]===e)return Array.isArray(w(b,this))?w(b,this):null!==(o=w(b,this)[e])&&void 0!==o?o:t[e];if(e.includes(".")){const o=(0,n.getProperty)(w(b,this),e),i=(0,n.getProperty)(t,e);return(0,n.isObject)(o)?(0,n.assignObjectDefaults)(o,i):void 0!==o?o:i}return(0,n.isObject)(w(b,this))?(0,n.assignObjectDefaults)(w(b,this),t)[e]:t[e]}updatePluginSettings(e){const t=this.constructor.SETTINGS_VALIDATORS;if(t&&"function"==typeof t&&"object"!=typeof e){return!1===t(e)?void(0,g.warn)(`${this.pluginName} Plugin: option is not valid and it will be ignored.`):(m(b,this,e),w(b,this))}return t&&"object"==typeof t&&"object"==typeof e?(null!==w(b,this)&&"object"==typeof w(b,this)||m(b,this,{...this.constructor.DEFAULT_SETTINGS}),Object.keys(t).forEach(o=>{if(!(o in e))return;const i=t[o];!1!==(!i||i(e[o]))?w(b,this)[o]=e[o]:(0,g.warn)(`${this.pluginName} Plugin: "${o}" option is not valid and it will be ignored.`)}),w(b,this)):(m(b,this,e),e)}addHook(e,t,o){w(_,this)[e]=w(_,this)[e]||[];const i=w(_,this)[e];this.hot.addHook(e,t,o),i.push(t),w(_,this)[e]=i}removeHooks(e){(0,r.arrayEach)(w(_,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=w(_,this);(0,n.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,r.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=C(T,this,M).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&(this.updatePluginSettings(e[this.constructor.PLUGIN_KEY]),this.updatePlugin(e)))}updatePlugin(){}destroy(){var e;m(b,this,null),null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,n.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},940:(e,t,o)=>{"use strict";o(60791)},1011:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var i=o(26808),s=o(78966),n=o(94576),r=o(58604),a=o(55656);function l(e,t,o){h(e,t),t.set(e,o)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,o){return e.set(d(e,t),o),o}function u(e,t){return e.get(d(e,t))}function d(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const g=t.PLUGIN_KEY="manualRowResize",f=t.PLUGIN_PRIORITY=30,p="manualRowHeights";var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakSet;class H extends i.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=P),o.add(t),l(this,m,null),l(this,w,null),l(this,C,[]),l(this,v,null),l(this,y,null),l(this,S,null),l(this,E,null),l(this,R,null),l(this,b,this.hot.rootDocument.createElement("DIV")),l(this,_,this.hot.rootDocument.createElement("DIV")),l(this,T,!1),l(this,M,!1),l(this,I,0),l(this,O,null),l(this,A,void 0),l(this,N,void 0),(0,s.addClass)(u(b,this),"manualRowResizer"),(0,s.addClass)(u(_,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){this.enabled||(c(A,this,new a.PhysicalIndexToValueMap),u(A,this).addLocalHook("init",()=>d(P,this,F).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,u(A,this)),this.addHook("modifyRowHeight",(e,t)=>d(P,this,W).call(this,e,t)),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(N,this,u(A,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",p,u(A,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=this.hot.toPhysicalRow(e),i=Math.max(t,this.hot.stylesHandler.getDefaultRowHeight());return u(A,this).setValueAtIndex(o,i),i}getLastDesiredRowHeight(){return u(v,this)}setupHandlePosition(e){if(u(I,this)>1)return;c(m,this,e);const{view:t}=this.hot,{_wt:o}=t,i=o.wtTable.getCoords(u(m,this)),a=i.row;if(a<0)return;const l=(0,s.outerWidth)(u(m,this)),h=u(m,this).getBoundingClientRect(),d=a<o.getSetting("fixedRowsTop"),g=a>=t.countNotHiddenRowIndexes(0,1)-o.getSetting("fixedRowsBottom");let f;d?f=o.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),i.row,i.col):g&&(f=o.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),i.row,i.col)),f||(f=o.wtOverlays.inlineStartOverlay.getRelativeCellPosition(u(m,this),i.row,i.col)),c(w,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(a)),c(C,this,[]);const p=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&p){const e=this.hot.getSelectedRange();(0,n.arrayEach)(e,e=>{const t=e.getTopStartCorner().row,o=e.getBottomStartCorner().row;(0,r.rangeEach)(t,o,e=>{u(C,this).includes(e)||u(C,this).push(e)})})}u(C,this).includes(u(w,this))||c(C,this,[u(w,this)]),c(R,this,f.top-6),c(E,this,parseInt(h.height,10)),u(b,this).style.top=`${u(R,this)+u(E,this)}px`,u(b,this).style[this.inlineDir]=`${f.start}px`,u(b,this).style.width=`${l}px`,this.hot.rootElement.appendChild(u(b,this))}refreshHandlePosition(){u(b,this).style.top=`${u(R,this)+u(v,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerWidth)(u(b,this)),10),t=parseInt(u(b,this).style[this.inlineDir],10)+e,o=this.hot.view.getTableWidth();(0,s.addClass)(u(b,this),"active"),(0,s.addClass)(u(_,this),"active"),u(_,this).style.top=u(b,this).style.top,u(_,this).style[this.inlineDir]=`${t}px`,u(_,this).style.width=o-e+"px",this.hot.rootElement.appendChild(u(_,this))}refreshGuidePosition(){u(_,this).style.top=u(b,this).style.top}hideHandleAndGuide(){(0,s.removeClass)(u(b,this),"active"),(0,s.removeClass)(u(_,this),"active")}checkIfRowHeader(e){const t=(0,s.closest)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:o,topInlineStartCornerOverlay:i,bottomInlineStartCornerOverlay:n}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.TBODY,i.clone.wtTable.TBODY,n.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&u(y,this)<t?t:u(y,this)}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{const i=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==i&&c(y,this,i),this.setManualSize(t,u(y,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),o&&e()};if(u(I,this)>=2){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.arrayEach)(u(C,this),e=>{t(e,!0)})}c(I,this,0),c(O,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",e=>d(P,this,x).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>d(P,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousemove",e=>d(P,this,D).call(this,e)),this.eventManager.addEventListener(t,"mouseup",()=>d(P,this,L).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(P,this,V).call(this))}destroy(){super.destroy()}}function x(e){if(!(0,s.isDetached)(e.target)&&!0!==u(M,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(u(T,this)||this.setupHandlePosition(t))}}function k(e){(0,s.hasClass)(e.target,"manualRowResizer")&&(this.setupHandlePosition(u(m,this)),this.setupGuidePosition(),c(T,this,!0),null===u(O,this)&&(c(O,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(u(O,this))),c(I,this,u(I,this)+1),c(S,this,e.pageY),c(y,this,u(E,this)))}function D(e){u(T,this)&&(c(v,this,u(E,this)+(e.pageY-u(S,this))),(0,n.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition())}function L(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),o&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};if(u(T,this)){if(this.hideHandleAndGuide(),c(T,this,!1),u(y,this)!==u(E,this)){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.arrayEach)(u(C,this),e=>{t(e,!0)})}this.setupHandlePosition(u(m,this))}}function V(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(u(b,this)),this.hot.rootElement.removeChild(u(_,this)),c(T,this,!1),c(M,this,!0),this.hot._registerImmediate(()=>{c(M,this,!1)})}function W(e,t){let o=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),i=u(A,this).getValueAtIndex(e);this.hot.getSettings()[g]&&i&&(o=i)}return o}function F(){const e=this.hot.getSettings()[g],t=this.loadManualRowHeights();this.hot.batchExecution(()=>{void 0!==t?t.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)}):Array.isArray(e)?(e.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)}),c(N,this,e)):!0===e&&Array.isArray(u(N,this))&&u(N,this).forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0)}t.ManualRowResize=H},1471:(e,t,o)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,o,s){const n=o.length?o[0]:void 0;return[...e.slice(0,n),...o.map((e,t)=>(0,i.isFunction)(s)?s(e,t):s),...void 0===n?[]:e.slice(n)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,(e,o)=>!1===t.includes(o))},o(34478),o(940);var i=o(81761),s=o(94576)},1796:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(47271);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultiColumnSorting=i.MultiColumnSorting},1880:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,o,r,a,l,h)=>{const c=t.getSourceDataAtRow(r),u=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof c.ariaLabel?c.ariaLabel.call(e):c.ariaLabel,f="function"==typeof c.ariaChecked?c.ariaChecked.call(e):c.ariaChecked;if((0,s.empty)(o),(0,s.addClass)(u,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,i.isItemDisabled)(c,e)&&!(0,i.isItemSelectionDisabled)(c)&&!(0,i.isItemSeparator)(c);(0,s.setAttribute)(o,[...(0,i.isItemCheckable)(c)?[(0,n.A11Y_MENU_ITEM_CHECKBOX)(),(0,n.A11Y_LABEL)(g),(0,n.A11Y_CHECKED)(f)]:[(0,n.A11Y_MENU_ITEM)(),(0,n.A11Y_LABEL)(d)],...t?[(0,n.A11Y_TABINDEX)(-1)]:[],...(0,i.isItemDisabled)(c,e)?[(0,n.A11Y_DISABLED)()]:[],...(0,i.isItemSubMenu)(c)?[(0,n.A11Y_EXPANDED)(!1)]:[]])}o.className="",o.appendChild(u),(0,i.isItemSeparator)(c)?(0,s.addClass)(o,"htSeparator"):"function"==typeof c.renderer?((0,s.addClass)(o,"htCustomMenuRenderer"),o.appendChild(c.renderer(t,u,r,a,l,d))):(0,s.fastInnerHTML)(u,d),(0,i.isItemDisabled)(c,e)?(0,s.addClass)(o,"htDisabled"):(0,i.isItemSelectionDisabled)(c)?(0,s.addClass)(o,"htSelectionDisabled"):(0,i.isItemSubMenu)(c)&&(0,s.addClass)(o,"htSubmenu")}};var i=o(30386),s=o(78966),n=o(72609)},2373:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllCellTypes=function(){(0,g.registerCellType)(i.AutocompleteCellType),(0,g.registerCellType)(s.CheckboxCellType),(0,g.registerCellType)(n.DateCellType),(0,g.registerCellType)(r.DropdownCellType),(0,g.registerCellType)(a.HandsontableCellType),(0,g.registerCellType)(l.NumericCellType),(0,g.registerCellType)(h.PasswordCellType),(0,g.registerCellType)(c.SelectCellType),(0,g.registerCellType)(u.TextCellType),(0,g.registerCellType)(d.TimeCellType)};var i=o(37994);t.AutocompleteCellType=i.AutocompleteCellType,t.AUTOCOMPLETE_TYPE=i.CELL_TYPE;var s=o(9967);t.CheckboxCellType=s.CheckboxCellType,t.CHECKBOX_TYPE=s.CELL_TYPE;var n=o(26814);t.DateCellType=n.DateCellType,t.DATE_TYPE=n.CELL_TYPE;var r=o(26539);t.DropdownCellType=r.DropdownCellType,t.DROPDOWN_TYPE=r.CELL_TYPE;var a=o(56479);t.HandsontableCellType=a.HandsontableCellType,t.HANDSONTABLE_TYPE=a.CELL_TYPE;var l=o(25561);t.NumericCellType=l.NumericCellType,t.NUMERIC_TYPE=l.CELL_TYPE;var h=o(9807);t.PasswordCellType=h.PasswordCellType,t.PASSWORD_TYPE=h.CELL_TYPE;var c=o(78938);t.SelectCellType=c.SelectCellType,t.SELECT_TYPE=c.CELL_TYPE;var u=o(5997);t.TextCellType=u.TextCellType,t.TEXT_TYPE=u.CELL_TYPE;var d=o(24827);t.TimeCellType=d.TimeCellType,t.TIME_TYPE=d.CELL_TYPE;var g=o(61654);t.registerCellType=g.registerCellType,t.getCellType=g.getCellType,t.getRegisteredCellTypeNames=g.getRegisteredCellTypeNames,t.getRegisteredCellTypes=g.getRegisteredCellTypes,t.hasCellType=g.hasCellType},2382:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2459:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(78966),n=i(o(75407)),r=o(65820),a=o(91342),l=o(66649);class h extends r.Overlay{constructor(e,t,o,i){super(e,t,l.CLONE_INLINE_START,o,i)}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,o=this.clone.wtTable.holder.parentNode,i=this.wtSettings.getSetting("preventOverflow");let n=0;this.trimmingContainer!==t||i&&"horizontal"===i?(n=this.getScrollPosition(),(0,s.resetCssTransform)(o)):(n=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(o,`${n}px`,"0px"));const r=this.adjustHeaderBordersPosition(n);return this.adjustElementsSize(),r}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let o=!1;this.isRtl()&&(e=-e);const i=this.mainTableScrollableElement;if(i===t&&e!==t.scrollX){const i=t.scrollX;t.scrollTo(e,(0,s.getWindowScrollTop)(t)),o=i!==t.scrollX}else if(e!==i.scrollLeft){const t=i.scrollLeft;i.scrollLeft=e,o=t!==i.scrollLeft}return o}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const o=this.wtSettings.getSetting("defaultColumnWidth");let i=e,s=0;for(;i<t;)s+=this.wot.wtTable.getColumnWidth(i)||o,i+=1;return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o,rootWindow:i}=this.domBindings,n=this.clone.wtTable.holder.parentNode.style,r=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==i||"vertical"===r){let i=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(i-=(0,s.getScrollbarWidth)(o)),i=Math.min(i,e.wtRootElement.scrollHeight),n.height=`${i}px`}else n.height="";this.clone.wtTable.holder.style.height=n.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);n.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),o=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+o}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${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()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:o}=this,i=o.getSetting("rowHeaders"),n=o.getSetting("fixedColumnsStart"),r=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===n&&i.length>0&&!(0,s.hasClass)(r.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&r.offsetWidth!==r.clientWidth&&(h=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,s.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,s.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let o=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){o=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);o>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(o=0)}return o}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,o=this.wot.wtTable.holder.parentNode,i=t.getSetting("rowHeaders"),n=t.getSetting("fixedColumnsStart"),r=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");r?(0,s.removeClass)(o,"emptyRows"):(0,s.addClass)(o,"emptyRows");let l=!1;if(!a)if(n&&!i.length)(0,s.addClass)(o,"innerBorderLeft innerBorderInlineStart");else if(!n&&i.length){const t=(0,s.hasClass)(o,"innerBorderInlineStart");e?((0,s.addClass)(o,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,s.removeClass)(o,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=h},2470:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,o){const i=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(o,"bottom",i)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},2744:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];let s=o.length;for(;s;){s-=1;const t=(0,n.stringify)(o[s]).toLowerCase();-1===e.indexOf(t)&&e.push(t)}return 1===e.length},t.isJSON=function(e){if("string"!=typeof e)return!1;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t}catch{return!1}},t.isPercentValue=function(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)},t.randomString=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()},t.sanitize=r,t.stripTags=function(e){return r(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,o)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o])},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},o(99356);var s=i(o(65166)),n=o(7886);function r(e,t){return s.default.sanitize(e,t)}},2754:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.default=class{constructor(e,t,o){(0,s.default)(this,"offset",void 0),(0,s.default)(this,"total",void 0),(0,s.default)(this,"countTH",void 0),this.offset=e,this.total=t,this.countTH=o}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}},2847:(e,t,o)=>{"use strict";var i=o(94266),s=Object.defineProperty;e.exports=function(e,t){try{s(i,e,{value:t,configurable:!0,writable:!0})}catch(o){i[e]=t}return t}},2907:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(94576),n=i(o(3458));function r(e,t,o){(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,o)}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap;t.default=class{constructor(e){var t,o,i;r(this,h,new Map),r(this,c,new Map),r(this,u,null),o=this,i=e,(t=u).set(l(t,o),i)}getRoots(){return Array.from(a(h,this).values())}getRootByColumn(e){let t;return a(c,this).has(e)&&(t=a(h,this).get(a(c,this).get(e))),t}getNode(e,t){const o=this.getRootByColumn(t);if(!o)return;const i=t-a(c,this).get(t);let s,n=0;return o.walkDown(o=>{const{data:{origColspan:r,headerLevel:a}}=o;if(e===a){if(i>=n&&i<=n+r-1)return s=o,s.data.isRoot=t===s.data.columnIndex,!1;n+=r}}),s}rebuildTreeIndex(){let e=0;a(c,this).clear(),(0,s.arrayEach)(a(h,this),t=>{let[,{data:{colspan:o}}]=t;for(let t=e;t<e+o;t++)a(c,this).set(t,e);e+=o})}buildTree(){this.clear();const e=a(u,this).getColumnsCount();let t=0;for(;t<e;){const e=a(u,this).getHeaderSettings(0,t),o=new n.default;a(h,this).set(t,o),this.buildLeaves(o,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const r=a(u,this).getHeadersSettings(o,t,i);o+=1,(0,s.arrayEach)(r,i=>{const s={...i,headerLevel:o-1,columnIndex:t};let r;1===o?(e.data=s,r=e):(r=new n.default(s),e.addChild(r)),o<a(u,this).getLayersCount()&&this.buildLeaves(r,t,o,i.origColspan),t+=i.origColspan})}clear(){a(h,this).clear(),a(c,this).clear()}}},2979:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(78966),s=o(4138),n=o(26911);function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakSet;class u extends n.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var o,i;super(e,(0,s.extend)(u.DEFAULTS,t)),r(o=this,i=c),i.add(o),function(e,t,o){r(e,t),t.set(e,o)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(c,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,o,s;t=h,o=this,s=this._element.firstChild,t.set(l(t,o),s),(0,i.addClass)(this._element,"htUIInput"),(0,i.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=u},3161:(e,t)=>{"use strict";t.__esModule=!0,t.getNormalizedDate=function(e){const t=new Date(e);if(!isNaN(new Date(`${e}T00:00`).getDate()))return new Date(t.getTime()+6e4*t.getTimezoneOffset());return t}},3176:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedActive();if(t){const o=e.mergedCellsCollection.get(t[0],t[1]);if(o.row===t[0]&&o.col===t[1]&&o.row+o.rowspan-1===t[2]&&o.col+o.colspan-1===t[3])return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeActive();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:o,to:i}=t;e.toggleMerge(t),this.selectCell(o.row,o.col,i.row,i.col,!1)},disabled(){const e=this.getSelectedActive();if(!e)return!0;return n.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),n=i(o(60860))},3196:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(56259);class a extends n.BaseAction{constructor(e){let{columns:t,finalIndex:o}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,o)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveColumn(i,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const o=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),o.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},3417:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){return function(t,n){const r=parseFloat(t),a=parseFloat(n),{sortEmptyCells:l}=o;if(r===a||isNaN(r)&&isNaN(a))return s.DO_NOT_SWAP;if(l){if((0,i.isEmpty)(t))return"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND;if((0,i.isEmpty)(n))return"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND}return isNaN(r)?s.FIRST_AFTER_SECOND:isNaN(a)?s.FIRST_BEFORE_SECOND:r<a?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:r>a?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var i=o(7886),s=o(70705);t.COLUMN_DATA_TYPE="numeric"},3458:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.depthFirstPreOrder=r;var s=i(o(24300));o(52490),o(99356);const n=t.TRAVERSAL_DF_PRE="DF-pre-order";function r(e,t){let o=e.call(t,this);for(let i=0;i<this.childs.length;i++){if(!1===o)return!1;o=r.call(this.childs[i],e,t)}return o}const a=t.TRAVERSAL_DF_POST="DF-post-order";const l=t.TRAVERSAL_BF="BF";const h=l,c=new Map([[n,r],[a,function e(t,o){for(let i=0;i<this.childs.length;i++){if(!1===e.call(this.childs[i],t,o))return!1}return t.call(o,this)}],[l,function(e,t){const o=[this];!function i(){if(0===o.length)return;const s=o.shift();o.push(...s.childs),!1!==e.call(t,s)&&i()}()}]]);class u{constructor(e){(0,s.default)(this,"data",{}),(0,s.default)(this,"parent",null),(0,s.default)(this,"childs",[]),this.data=e}addChild(e){e.parent=this,this.childs.push(e)}cloneTree(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;const t=new u({...e.data});for(let o=0;o<e.childs.length;o++)t.addChild(this.cloneTree(e.childs[o]));return t}replaceTreeWith(e){this.data={...e.data},this.childs=[];for(let t=0;t<e.childs.length;t++)this.addChild(e.childs[t])}walkDown(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;if(!c.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);c.get(t).call(this,e,this)}walkUp(e){const t=this,o=i=>{!1!==e.call(t,i)&&null!==i.parent&&o(i.parent)};o(this)}}t.default=u},3518:(e,t,o)=>{"use strict";var i=o(72820),s=o(77439),n=o(94178),r=o(70792),a=o(90501),l=o(21177),h=o(99793),c=o(14483)("every",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:c},{every:function(e){a(this);try{r(e)}catch(e){h(this,"throw",e)}if(c)return s(c,this,e);var t=l(this),o=0;return!n(t,function(t,i){if(!e(t,o++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3631:(e,t,o)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,i.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var i=o(78966)},3639:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(78966),r=o(81761),a=i(o(64034)),l=i(o(2754)),h=o(97095),c=i(o(33183)),u=i(o(30041)),d=o(99700),g=o(72609);t.default=class{constructor(e,t,o,i,r){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=o,this.isMaster="master"===r,this.name=r,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=i,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=o.rootTable,(0,n.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new u.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new c.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtSpreader",t&&t.insertBefore(o,e),o.appendChild(e)),o.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHider(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.className="wtHider",t&&t.insertBefore(o,e),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}createHolder(e){const t=e.parentNode;let o;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,n.hasClass)(t,"wtHolder")||(o=this.domBindings.rootDocument.createElement("div"),o.style.position="relative",o.className="wtHolder",this.isMaster&&(0,n.setAttribute)(o,[(0,g.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(o,e),this.isMaster&&(o.parentNode.className+="ht_master handsontable",o.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o.parentNode,[(0,g.A11Y_PRESENTATION)()])),o.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,n.setAttribute)(o,[(0,g.A11Y_PRESENTATION)()]),o}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:o,wtViewport:i}=this.dataAccessObject,s=t.getSetting("totalRows"),r=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),c=h.length,u=t.getSetting("columnHeaders"),g=u.length;let f=e;if(this.isMaster&&(o.beforeDraw(),this.holderOffset=(0,n.offset)(this.holder),f=i.createCalculators(f),c&&!t.getSetting("fixedColumnsStart"))){const e=o.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(f=!1)}if(f)this.isMaster&&o.refresh(!0);else{this.isMaster?this.tableOffset=(0,n.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,g),this.columnFilter=new a.default(t,r,c);let f=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),f=!0!==e.skipRender}f&&(this.tableRenderer.setHeaderContentRenderers(h,u),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||i.createVisibleCalculators(),o.refresh(!1),o.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let p=!1;return this.isMaster&&(p=o.topOverlay.resetFixedPosition(),o.bottomOverlay.clone&&(p=o.bottomOverlay.resetFixedPosition()||p),p=o.inlineStartOverlay.resetFixedPosition()||p,o.topInlineStartCornerOverlay&&o.topInlineStartCornerOverlay.resetFixedPosition(),o.bottomInlineStartCornerOverlay&&o.bottomInlineStartCornerOverlay.clone&&o.bottomInlineStartCornerOverlay.resetFixedPosition()),p?(o.refreshAll(),o.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(f),this.isMaster&&o.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let o=this.wtSettings.getSetting("columnHeaders").length;const i=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,r,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;o;)o-=1,s=this.getColumnHeaderHeight(o),r=this.getColumnHeader(t,o),r&&(a=(0,n.innerHeight)(r),(!s&&i<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=a),Array.isArray(l)?null!==l[o]&&void 0!==l[o]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]<(l[o]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[o]=l[o]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,o=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let i=0,s=e.getSetting("columnHeaders").length;i<s;i++)if(o[i]){if(!t[i]||0===t[i].childNodes.length)return;t[i].childNodes[0].style.height=`${o[i]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let o=0;o<e;o++){const e=this.rowFilter.renderedToSource(o);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,o=e.col;const i=this.wtSettings.getSetting("onModifyGetCellCoords",t,o,!this.isMaster,"render");if(i&&Array.isArray(i)&&([t,o]=i),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(o))return-3;if(this.isColumnAfterRenderedColumns(o))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const n=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(o)];if(!n&&o>=0)throw new Error("TD or TH was expected to be rendered but is not");return n}getRow(e){let t=null,o=null;var i,s;e<0?(t=null===(i=this.rowFilter)||void 0===i?void 0:i.sourceRowToVisibleColHeadedRow(e),o=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceToRendered(e),o=this.TBODY);return void 0!==t&&void 0!==o&&(!(o.childNodes.length<t+1)&&o.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const o=this.THEAD.childNodes[t];return null==o?void 0:o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],o=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const i=e.childNodes[o];i&&t.push(i)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const o=this.rowFilter.sourceToRendered(e),i=o<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):o,s=(o<0?this.THEAD:this.TBODY).childNodes[i];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],o=this.wtSettings.getSetting("rowHeaders").length;for(let i=0;i<o;i++){const o=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==o?void 0:o.childNodes[i];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,n.closest)(t,["TD","TH"])),null===t)return null;const o=t.parentNode;if(!o)return null;const i=o.parentNode;let s=(0,n.index)(o),r=t.cellIndex;if((0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===i.nodeName&&(s-=i.childNodes.length);else if((0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-i.childNodes.length+s}else i===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,n.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,n.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?r=this.columnFilter.offsettedTH(r):this.columnFilter&&(r=this.columnFilter.visibleRowHeadedColumnToSourceColumn(r));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,r);return a&&Array.isArray(a)&&([s,r]=a),this.wot.createCellCoords(s,r)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),o=e*t.getDefaultRowHeight(),i=(0,n.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),r=s?n.outerHeight:n.innerHeight,a=s?0:1,l=s?1:0;let h,c,u,d,g;if(o!==i||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,u=this.rowFilter.renderedToSource(e),h=this.getRowHeight(u),d=this.getTrForRow(u),g=d.querySelector("th");const o=0===u?l:0;c=g?r(g):r(d)-a,(!h&&t.getDefaultRowHeight()<c-o||h<c)&&(s||(c+=1),this.dataAccessObject.wtViewport.oversizedRows[u]=c)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,n.outerWidth)(this.TABLE)}getHeight(){return(0,n.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,n.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,n.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,n.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,r.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},3715:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(12793);function s(e,t,o){(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,o)}function n(e,t){return e.get(a(e,t))}function r(e,t,o){return e.set(a(e,t),o),o}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var l=new WeakMap,h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap;t.Positioner=class{constructor(e){s(this,l,void 0),s(this,h,void 0),s(this,c,void 0),s(this,u,!1),s(this,d,{above:0,below:0,left:0,right:0}),r(u,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return n(d,this)[e]=t,this}setElement(e){return r(l,this,e),this}setParentElement(e){return r(h,this,e),this}updatePosition(e){r(c,this,new i.Cursor(e,n(l,this).ownerDocument.defaultView)),n(u,this)?(n(c,this).fitsBelow(n(l,this))?this.setPositionBelowCursor():n(c,this).fitsAbove(n(l,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===n(l,this).dir?n(c,this).fitsOnLeft(n(l,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():n(c,this).fitsOnRight(n(l,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=n(d,this).above+n(c,this).top-n(l,this).offsetHeight;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView.getComputedStyle(n(h,this).querySelector(".ht_master")),o=Number.parseInt(t.paddingTop,10),i=Number.parseInt(t.borderTop,10);e=n(c,this).top+n(c,this).cellHeight-n(l,this).scrollHeight+o+i}n(l,this).style.top=`${e}px`}setPositionBelowCursor(){let e=n(d,this).below+n(c,this).top+1;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView.getComputedStyle(n(h,this).querySelector(".ht_master")),o=Number.parseInt(t.paddingTop,10),i=Number.parseInt(t.borderTop,10);e=n(c,this).top-o-i}n(l,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=n(c,this).left;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView,o=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderRightWidth,10);e+=n(c,this).cellWidth+o}else e+=n(d,this).right;n(l,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=n(d,this).left+n(c,this).left-n(l,this).offsetWidth;if(n(h,this)){const t=n(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(n(h,this).querySelector(".htCore")).borderLeftWidth,10)}n(l,this).style.left=`${e}px`}}},3720:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkSelectionBorders=function(e,t){let o=!1;return(0,n.arrayEach)(e.getSelectedRange(),s=>{s.forAll((s,n)=>{if(s<0||n<0)return;const r=e.getCellMeta(s,n).borders;if(r){if(!t)return o=!0,!1;if(!(0,i.hasOwnProperty)(r[t],"hide")||!1===r[t].hide)return o=!0,!1}})}),o},t.createDefaultCustomBorder=a,t.createDefaultHtBorder=h,t.createEmptyBorders=function(e,t){return{id:r(e,t),border:{width:1,color:"#000",cornerVisible:!1},row:e,col:t,top:{hide:!0},bottom:{hide:!0},start:{hide:!0},end:{hide:!0}}},t.createId=r,t.createSingleEmptyBorder=l,t.denormalizeBorder=function(e){(0,s.isDefined)(e.start)&&(e.left=e.start);(0,s.isDefined)(e.end)&&(e.right=e.end);return e},t.extendDefaultBorder=function(e,t){(0,i.hasOwnProperty)(t,"border")&&t.border&&(e.border=t.border);(0,i.hasOwnProperty)(t,"top")&&(0,s.isDefined)(t.top)&&(t.top?((0,i.isObject)(t.top)||(t.top={width:1,color:"#000"}),e.top=t.top):(t.top={hide:!0},e.top=t.top));(0,i.hasOwnProperty)(t,"bottom")&&(0,s.isDefined)(t.bottom)&&(t.bottom?((0,i.isObject)(t.bottom)||(t.bottom={width:1,color:"#000"}),e.bottom=t.bottom):(t.bottom={hide:!0},e.bottom=t.bottom));(0,i.hasOwnProperty)(t,"start")&&(0,s.isDefined)(t.start)&&(t.start?((0,i.isObject)(t.start)||(t.start={width:1,color:"#000"}),e.start=t.start):(t.start={hide:!0},e.start=t.start));(0,i.hasOwnProperty)(t,"end")&&(0,s.isDefined)(t.end)&&(t.end?((0,i.isObject)(t.end)||(t.end={width:1,color:"#000"}),e.end=t.end):(t.end={hide:!0},e.end=t.end));return e},t.hasLeftRightTypeOptions=function(e){return e.some(e=>(0,s.isDefined)(e.left)||(0,s.isDefined)(e.right))},t.hasStartEndTypeOptions=function(e){return e.some(e=>(0,s.isDefined)(e.start)||(0,s.isDefined)(e.end))},t.markSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.normalizeBorder=function(e){var t,o;((0,s.isDefined)(e.start)||(0,s.isDefined)(e.left))&&(e.start=null!==(t=e.start)&&void 0!==t?t:e.left);((0,s.isDefined)(e.end)||(0,s.isDefined)(e.right))&&(e.end=null!==(o=e.end)&&void 0!==o?o:e.right);return delete e.left,delete e.right,e},t.toInlinePropName=function(e){var t;return null!==(t=c.get(e))&&void 0!==t?t:e},o(34478),o(81056);var i=o(4138),s=o(7886),n=o(94576);function r(e,t){return`border_row${e}col${t}`}function a(){return{width:1,color:"#000"}}function l(){return{hide:!0}}function h(){return{width:1,color:"#000",cornerVisible:!1}}const c=new Map([["left","start"],["right","end"]])},3771:(e,t,o)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,o){const n=t.locale;return function(t,r){const{sortEmptyCells:a}=o;return"string"==typeof t&&(t=t.toLocaleLowerCase(n)),"string"==typeof r&&(r=r.toLocaleLowerCase(n)),t===r?s.DO_NOT_SWAP:(0,i.isEmpty)(t)?(0,i.isEmpty)(r)?s.DO_NOT_SWAP:a&&"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(0,i.isEmpty)(r)?a&&"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(r)?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(r)?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(r)||(t=parseFloat(t),r=parseFloat(r)),t<r?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:t>r?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP)}};var i=o(7886),s=o(70705);t.COLUMN_DATA_TYPE="default"},3797:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143);var i=o(26808),s=o(13421);function n(e,t,o){r(e,t),t.set(e,o)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,o){return e.set(h(e,t),o),o}function l(e,t){return e.get(h(e,t))}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="stretchColumns",u=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakSet;class m extends i.BasePlugin{constructor(){var e,t;super(...arguments),r(e=this,t=p),t.add(e),n(this,d,new s.StretchCalculator(this.hot)),n(this,g,null),n(this,f,new ResizeObserver(e=>{requestAnimationFrame(()=>{var t;null!==(t=this.hot)&&void 0!==t&&t.view.isHorizontallyScrollableByWindow()&&e.forEach(e=>{let{contentRect:t}=e;null!==l(g,this)&&l(g,this)!==t.width&&(this.hot.view.adjustElementsSize(),this.hot.refreshDimensions()),a(g,this,t.width)})})}))}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get SETTING_KEYS(){return!0}isEnabled(){return["all","last"].includes(this.hot.getSettings().stretchH)}enablePlugin(){var e=this;this.enabled||(l(d,this).useStrategy(this.hot.getSettings().stretchH),l(f,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return h(p,e,C).call(e,...o)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return h(p,e,w).call(e,...o)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(f,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(f,this).disconnect(),a(f,this,null),a(d,this,null),super.destroy()}}function w(e,t,o){if(o===this.pluginName)return;const i=this.getColumnWidth(t);return"number"==typeof i?i:e}function C(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},3993:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=s},4138:(e,t,o)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,o){if("object"!=typeof t||null===t)return o;if("object"!=typeof o||null===o)return t;const i={};return Object.keys(o).forEach(s=>{"object"!=typeof o[s]||null===o[s]||Array.isArray(o[s])?i[s]=a(t,s)&&void 0!==t[s]?t[s]:o[s]:i[s]=e(t[s],o[s])}),Object.keys(t).forEach(e=>{a(i,e)||(i[e]=t[e])}),i},t.clone=function(e){const t={};return r(e,(e,o)=>{t[o]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const o=`_${t}`,i={_touched:!1,[o]:e,isTouched(){return this._touched}};return Object.defineProperty(i,t,{get(){return this[o]},set(e){this._touched=!0,this[o]=e},enumerable:!0,configurable:!0}),i},t.deepClone=s,t.deepExtend=function e(t,o){r(o,(i,s)=>{o[s]&&"object"==typeof o[s]?(t[s]||(Array.isArray(o[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(o[s])?t[s]=o[s]:t[s]={}),e(t[s],o[s])):t[s]=o[s]})},t.deepObjectSize=function(e){if(!n(e))return 0;const t=function(e){let o=0;return n(e)?r(e,(e,i)=>{"__children"!==i&&(o+=t(e))}):o+=1,o};return t(e)},t.defineGetter=function(e,t,o,i){i.value=o,i.writable=!1!==i.writable,i.enumerable=!1!==i.enumerable,i.configurable=!1!==i.configurable,Object.defineProperty(e,t,i)},t.duckSchema=function e(t){let o;Array.isArray(t)?o=t.length?new Array(t.length).fill(null):[]:(o={},r(t,(t,i)=>{"__children"!==i&&(t&&"object"==typeof t&&!Array.isArray(t)?o[i]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?o[i]=[e(t[0])]:o[i]=[]:o[i]=null)}));return o},t.extend=function(e,t,o){const i=Array.isArray(o);return r(t,(t,s)=>{(!1===i||o.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const o=t.split(".");let i=e;return r(o,e=>{if(i=i[e],void 0===i)return i=void 0,!1}),i},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=n,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,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];return(0,i.arrayEach)(o,t=>{e.MIXINS.push(t.MIXIN_NAME),r(t,(t,o)=>{if(void 0!==e.prototype[o])throw new Error(`Mixin conflict. Property '${o}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[o]=t;else{const i=function(e,t){const o=`_${e}`;return function(){return void 0===this[o]&&(this[o]=(e=>{let t=e;return(Array.isArray(t)||n(t))&&(t=s(t)),t})(t)),this[o]}},r=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,o,{get:i(o,t),set:r(o),configurable:!0})}})}),e},t.objectEach=r,t.setProperty=function(e,t,o){if("string"!=typeof t)return;const i=t.split(".");let s=e;i.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==i.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=o)})},o(52490),o(99356),o(58584),o(34478),o(31143);var i=o(94576);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function r(e,t){for(const o in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,o))&&!1===t(e[o],o,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},4462:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(96127).clear;i({global:!0,bind:!0,enumerable:!0,forced:s.clearImmediate!==n},{clearImmediate:n})},4655:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="lte";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value<=i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},5008:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"emptySelectedCells",callback(e){e.emptySelectedCells(),e._getEditorManager().prepareEditor()}}},5085:(e,t,o)=>{"use strict";o.r(t)},5247:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(48969);t.RENDERER_TYPE=i.RENDERER_TYPE,t.passwordRenderer=i.passwordRenderer},5300:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(82328),o(34478),o(29810),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(30738),l=o(7120),h=o(58604),c=o(78966),u=o(38830),d=o(58226),g=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),f=o(47845),p=o(19209),m=o(9609),w=o(65835),C=i(o(34645)),v=i(o(32120)),y=i(o(73734)),S=o(56013),E=o(68970),R=o(65865),b=o(55656);function _(e,t,o){T(e,t),t.set(e,o)}function T(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t,o){return e.set(O(e,t),o),o}function I(e,t){return e.get(O(e,t))}function O(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const A=t.PLUGIN_KEY="filters",N=t.PLUGIN_PRIORITY=250,P=A;var H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakSet;class L extends n.BasePlugin{static get PLUGIN_KEY(){return A}static get PLUGIN_PRIORITY(){return N}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,o,i;super(e),t=this,T(o=this,i=D),i.add(o),(0,s.default)(this,"dropdownMenuPlugin",null),(0,s.default)(this,"conditionCollection",null),(0,s.default)(this,"conditionUpdateObserver",null),(0,s.default)(this,"components",new Map([["filter_by_condition",null],["filter_operators",null],["filter_by_condition2",null],["filter_by_value",null],["filter_action_bar",null]])),(0,s.default)(this,"filtersRowsMap",null),_(this,H,void 0),_(this,x,new WeakSet),_(this,k,[]),this.hot.addHook("afterGetColHeader",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return O(D,t,G).call(t,...o)})}isEnabled(){return!!this.hot.getSettings()[A]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new b.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,o=t&&t.uiContainer||this.hot.rootPortalElement,i=e=>(e.addLocalHook("accept",()=>O(D,this,Y).call(this,"accept")),e.addLocalHook("cancel",()=>O(D,this,Y).call(this,"cancel")),e.addLocalHook("change",t=>O(D,this,j).call(this,e,t)),e),s=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_CONDITION)}:`,n=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_VALUE)}:`;if(!this.components.get("filter_by_condition")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition",name:s,addSeparator:!1,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition",i(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new p.OperatorsComponent(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new f.ConditionComponent(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:o});e.addLocalHook("afterClose",()=>O(D,this,z).call(this)),this.components.set("filter_by_condition2",i(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",i(new m.ValueComponent(this.hot,{id:"filter_by_value",name:n}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",i(new w.ActionBarComponent(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new C.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new y.default(this.hot,this.conditionCollection,e=>this.getDataMapAtColumn(e)),this.conditionUpdateObserver.addLocalHook("update",e=>O(D,this,$).call(this,e))),this.components.forEach(e=>e.show()),this.addHook("afterDropdownMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return O(D,e,U).call(e,...o)}),this.addHook("beforeDropdownMenuShow",()=>O(D,this,B).call(this)),this.addHook("afterDropdownMenuShow",()=>O(D,this,W).call(this)),this.addHook("afterDropdownMenuHide",()=>O(D,this,F).call(this)),this.addHook("afterChange",e=>O(D,this,V).call(this,e)),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!I(H,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=I(H,this).getMenu(),t=e.getNavigator(),o=I(H,this).getLastMenuPage();e.focus(),o>0?t.setCurrentPage(o):t.toFirstItem()}},...Array.from(this.components).map(e=>{let[,t]=e;return t.getElements()}).flat()];M(H,this,(0,E.createMenuFocusController)(this.dropdownMenuPlugin.menu,e));const t=e=>{I(H,this).listen(),e.preventDefault(),(0,u.isKey)(e.keyCode,"TAB")&&(e.shiftKey?I(H,this).toPreviousItem():I(H,this).toNextItem())};this.components.get("filter_by_value").addLocalHook("listTabKeydown",t),this.components.get("filter_by_condition").addLocalHook("selectTabKeydown",t)}this.registerShortcuts(),super.enablePlugin()}disablePlugin(){var e;this.enabled&&(null!==(e=this.dropdownMenuPlugin)&&void 0!==e&&e.enabled&&this.dropdownMenuPlugin.menu.clearLocalHooks(),this.components.forEach((e,t)=>{e.destroy(),this.components.set(t,null)}),this.conditionCollection.destroy(),this.conditionCollection=null,this.hot.rowIndexMapper.unregisterMap(this.pluginName));this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Alt","A"]],stopPropagation:!0,callback:()=>{const e=this.hot.getSelected();this.clearConditions(),this.filter(),e&&this.hot.selectCells(e)},group:P})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(P)}addCondition(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:R.OPERATION_AND;const s=this.hot.toPhysicalColumn(e);this.conditionCollection.addCondition(s,{command:{key:t},args:o},i)}removeConditions(e){const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}clearConditions(e){if(void 0===e)this.conditionCollection.clean();else{const t=this.hot.toPhysicalColumn(e);this.conditionCollection.removeConditions(t)}}importConditions(e){this.conditionCollection.importAllConditions(e)}exportConditions(){return this.conditionCollection.exportAllConditions()}filter(){const{navigableHeaders:e}=this.hot.getSettings(),t=this._createDataFilter(),o=!this.conditionCollection.isEmpty();let i=[];const s=this.exportConditions(),n=this.hot.runHooks("beforeFilter",s,I(k,this));if(!1!==n&&o){const o=[];this.hot.batchExecution(()=>{this.filtersRowsMap.clear(),i=(0,r.arrayMap)(t.filter(),e=>e.meta.visualRow);const e=(0,S.createArrayAssertion)(i);(0,h.rangeEach)(this.hot.countSourceRows()-1,t=>{e(t)||o.push(t)}),(0,r.arrayEach)(o,e=>{this.filtersRowsMap.setValueAtIndex(e,!0)})},!0),e||i.length||this.hot.deselectCell(),M(k,this,this.exportConditions())}else!1===n||o?this.importConditions(I(k,this)):(M(k,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeActive().highlight.col),!1!==n&&(this.hot.runHooks("afterFilter",s),this.hot.view.adjustElementsSize(),this.hot.render())}getSelectedColumn(){var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t?{visualIndex:t.col,physicalIndex:this.hot.toPhysicalColumn(t.col)}:null}getDataMapAtColumn(e){const t=this.hot.toVisualColumn(e),o=[];return(0,r.arrayEach)(this.hot.getSourceDataAtCol(t),(e,i)=>{var s;const{row:n,col:r,visualCol:a,visualRow:l,type:h,instance:c,dateFormat:u,locale:d}=this.hot.getCellMeta(i,t),g=null!==(s=this.hot.getDataAtCell(this.hot.toVisualRow(i),t))&&void 0!==s?s:e;o.push({meta:{row:n,col:r,visualCol:a,visualRow:l,type:h,instance:c,dateFormat:u,locale:d},value:(0,S.toEmptyString)(g)})}),o}updateValueComponentCondition(e){const t=this.hot.getDataAtCol(e),o=(0,S.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,o)}restoreComponents(e){var t;const o=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach(e=>{e.isHidden()||e.restoreState(o)}),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,o,i){let s=e;return s===R.OPERATION_OR&&t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE&&i.command.key!==R.CONDITION_NONE?s=R.OPERATION_OR_THEN_VARIABLE:i.command.key!==R.CONDITION_NONE&&(t.command.key!==R.CONDITION_NONE&&o.command.key!==R.CONDITION_NONE||(s=R.OPERATION_AND)),s}setListeningDropdownMenu(){this.dropdownMenuPlugin&&this.dropdownMenuPlugin.setListening()}updateDependentComponentsVisibility(){const e=this.components.get("filter_by_condition"),{command:t}=e.getState(),o=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...o):this.hideComponents(...o)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new v.default(e,e=>this.getDataMapAtColumn(e))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return(0,r.arrayEach)(i,o=>{(0,r.arrayEach)(t.menuItems,(t,i)=>{t.key===o.getMenuItemDescriptor().key&&e.push(i)})}),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,o=t.getPlugin("hiddenRows");for(var i=arguments.length,s=new Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];const r=this.getIndexesOfComponents(...s);e?o.showRows(r):o.hideRows(r),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.changeComponentsVisibility(!0,...t)}destroy(){this.enabled&&(this.components.forEach((e,t)=>{null!==e&&(e.destroy(),this.components.set(t,null))}),this.conditionCollection.destroy(),this.conditionUpdateObserver.destroy(),this.hot.rowIndexMapper.unregisterMap(this.pluginName)),super.destroy()}}function V(e){e&&(0,r.arrayEach)(e,e=>{const[,t]=e,o=this.hot.propToCol(t);this.conditionCollection.hasConditions(o)&&this.updateValueComponentCondition(o)})}function W(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function F(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function B(){const e=this.dropdownMenuPlugin.menu;I(x,this).has(e)||I(H,this).setMenu(e),I(x,this).add(e)}function U(e){e.items.push({name:d.SEPARATOR}),this.components.forEach(t=>{e.items.push(t.getMenuItemDescriptor())})}function Y(e){var t;if("accept"===e){const e=this.getSelectedColumn();var o;if(null===e)return void(null===(o=this.dropdownMenuPlugin)||void 0===o||o.close());const{physicalIndex:t}=e,i=this.components.get("filter_by_condition").getState(),s=this.components.get("filter_by_condition2").getState(),n=this.components.get("filter_by_value").getState(),r=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),i,s,n);this.conditionUpdateObserver.groupChanges();let a=this.conditionCollection.getColumnStackPosition(t);-1===a&&(a=void 0),this.conditionCollection.removeConditions(t),i.command.key!==R.CONDITION_NONE&&(this.conditionCollection.addCondition(t,i,r,a),s.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,s,r,a)),n.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,n,r,a),this.conditionUpdateObserver.flush(),this.components.forEach(e=>e.saveState(t)),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function j(e,t){const o=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==f.ConditionComponent||t.inputsCount||this.setListeningDropdownMenu(),o.updateMenuDimensions()}function z(){this.setListeningDropdownMenu()}function G(e,t,o){const i=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(i)&&o===this.hot.view.getColumnHeadersCount()-1?(0,c.addClass)(t,"htFiltersActive"):(0,c.removeClass)(t,"htFiltersActive")}function $(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:o,column:i},conditionArgsChange:s}=e;Array.isArray(s)&&M(k,this,I(k,this).map(e=>(e.column===i&&o.length>0&&e.conditions.forEach(e=>{"by_value"===e.name&&(e.args=[[...s]])}),e)));const n=o.filter(e=>e.name===R.CONDITION_BY_VALUE),r=o.filter(e=>e.name!==R.CONDITION_BY_VALUE);if(n.length>=2||r.length>=3)(0,l.warn)(a.toSingleLine`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
32
32
  The overall amount of conditions exceed the capability of the dropdown menu.\x20
33
- For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(i);this.components.get("filter_by_condition").updateState(r[0],i),this.components.get("filter_by_condition2").updateState(r[1],i),this.components.get("filter_operators").updateState(t,i),this.components.get("filter_by_value").updateState(e)}}t.Filters=L},5448:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},5665:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(52490),o(34478),o(81056);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="disjunctionWithExtraCondition",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,s.registerOperation)(n,r,a)},5676:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var i=o(58604);const s=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,i.isNumeric)(e))}n.VALIDATOR_TYPE=s},5705:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},5714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(91376));t.DataMap=s.default;var n=i(o(81053));t.MetaManager=n.default;var r=i(o(86491));t.metaSchemaFactory=r.default;var a=o(56782);t.replaceData=a.replaceData;var l=o(9383);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(5919);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},5869:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(18514),r=o(22746);t.ViewDiffer=class{constructor(e){(0,s.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let i=Math.max(o,t);if(0===i)return[];const{currentOffset:s,nextOffset:a}=e.getViewSize(),l=new r.ViewOrder(s,t),h=new r.ViewOrder(a,o),c=[];for(let t=0;t<i;t++){const s=l.get(t),r=h.get(t);if(-1===r)c.push(["remove",s]);else if(-1===s)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",r]):c.push(["prepend",r]);else if(r>s)l.has(r)&&(l.remove(r),o<=l.length&&(i-=1)),c.push(["replace",r,s]);else if(r<s){const e=l.prepend(r);c.push(["insert_before",r,s,e])}else c.push(["none",r])}return c}}},5879:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(78790);const s=t.RENDERER_TYPE="date";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},5895:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(8562);const r=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},5908:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var i=o(40492);const s=t.VALIDATOR_TYPE="dropdown";function n(e,t){i.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=s},5919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var s=i(o(24300));function n(e,t,o){(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,o)}function r(e,t){return e.get(function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(e,t))}var a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,a,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:i,onChange:s}=e,n="string"==typeof i,l=n?i:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),n&&this.installPropWatcher(i,h,s)):o&&(this.installPropWatcher(t,h,r(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const n=!i.usageTracker.has(e);i.usageTracker.add(e),o.call(i,e,s,n),this[t]=s},enumerable:!0,configurable:!0})}}},5994:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,checkable:!0,ariaChecked(){return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,i.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,i.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var i=o(83914),s=o(94576),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const r=t.KEY="make_read_only"},5997:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15686);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},6098:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631),r=o(83914),a=o(94576);class l extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:i,alignment:n}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=i,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,i,s)=>{t.done(()=>new l({stateBefore:e,range:o,type:i,alignment:s}))})}undo(e,t){(0,a.arrayEach)(this.range,t=>{t.forAll((t,o)=>{t>=0&&o>=0&&e.setCellMeta(t,o,"className",this.stateBefore[t][o]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,r.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,i,s)=>e.setCellMeta(t,o,i,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},6239:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},6310:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(7886),n=o(23895);const r=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(o))}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},6711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(13743);class r extends n.Selection{constructor(e,t){super(e,null),(0,s.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:o}=e,i=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(o,-1);return null===i||null===s?null:((i.row>s.row||i.col>s.col)&&(i=t,s=o),this.settings.createCellRange(i,i,s))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===i)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===s?null:this.settings.createCellCoords(i,s)}getNearestNotHiddenIndex(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),o="N-S"===e.getVerticalDirection()?1:-1,i="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let n=null;if(null!==s&&null!==s.col&&null!==s.row||(n=this.getNearestNotHiddenCoords(t,o,i)),null!==n&&e.overlaps(n)){const t=e.highlight.clone();if(t.row>=0&&(t.row=n.row),t.col>=0&&(t.col=n.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==s&&null===n&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const o=this.settings.visualToRenderableCoords(e),i=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===i.row||null===i.col?null:this.settings.createCellRange(o,o,i)}}t.default=r},6745:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(4138),n=i(o(18805));function r(e,t,o){(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,o)}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h{constructor(){r(this,l,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=l).get(a(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,i;o=this,i=e,(t=l).set(a(t,o),i)}}t.ChangesObserver=h,(0,s.mixin)(h,n.default)},6941:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.forEach(o=>{let{name:i,callback:s}=o;t[i]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return s(e,...o)}}),t};var i=o(38491),s=o(70787),n=o(7255),r=o(5008),a=o(23552),l=o(8517),h=o(36416),c=o(11453);const u=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command]},6942:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return i.valueGetter.call(this,e)};var i=o(20737)},7120:(e,t,o)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,i.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,i.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,i.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,i.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,i.isDefined)(console)&&console.warn(...arguments)};var i=o(7886)},7255:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command,w.command,C.command]};var i=o(22823),s=o(31235),n=o(80393),r=o(93112),a=o(99710),l=o(329),h=o(28730),c=o(44806),u=o(37547),d=o(30390),g=o(56020),f=o(33999),p=o(68294),m=o(31743),w=o(30498),C=o(46802)},7569:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=o(13743),n=i(o(6711))},7743:(e,t)=>{"use strict";t.__esModule=!0;t.ACTIVE_HEADER_TYPE="active-header",t.HEADER_TYPE="header",t.AREA_TYPE="area",t.FOCUS_TYPE="focus",t.FILL_TYPE="fill",t.ROW_TYPE="row",t.COLUMN_TYPE="column",t.CUSTOM_SELECTION_TYPE="custom-selection"},7857:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",(e,o)=>{o||t.done(()=>new r({cellRange:e}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=r},7869:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53341);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ExportFile=i.ExportFile},7886:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.1.0-next-e0ea502-20250912";let r,v="invalid",y="invalid";const S=function(e){let t=[][l],o=t;if(e[l]!==d("Z"))return!1;for(let t="",i="B<H4P+".split(""),s=d(i.shift());s;s=d(i.shift()||"A"))--s<""[l]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,s,s?1===i[l]?9:8:6);return o===t}(e=g(e||""));if(o||i||S)if(S){const t=(0,s.default)("15/09/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),i=f(e);r=(0,s.default)(864e5*(i+1),"x").format("MMMM DD, YYYY"),o>i?(v="expired",y="expired"):(v="valid",y="valid")}else i?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:r,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:r,hotVersion:n})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:r,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:r,hotVersion:n}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,o;const{rowIndexMapper:i,columnIndexMapper:s}=e,{navigableHeaders:n}=e.getSettings();let r=i.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(r<0){if(!n||0===e.countColHeaders())return null;r=-1}if(a<0){if(!n||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=i.getVisualFromRenderableIndex(r))&&void 0!==t?t:r,null!==(o=s.getVisualFromRenderableIndex(a))&&void 0!==o?o:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=i&&e.countColHeaders()>0?-e.countColHeaders():0,n=i&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===n&&(n=o.getVisualFromRenderableIndex(n));if(null===s||null===n)return null;return e._createCellCoords(s,n)},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=r,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var s=i(o(86798)),n=o(30738);function r(e){return void 0===e}function a(e){return null===e||""===e||r(e)}const l="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("B"),~~![][l]))||9),p=()=>"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);let m=!1;const w={invalid:()=>n.toSingleLine`
33
+ For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(i);this.components.get("filter_by_condition").updateState(r[0],i),this.components.get("filter_by_condition2").updateState(r[1],i),this.components.get("filter_operators").updateState(t,i),this.components.get("filter_by_value").updateState(e)}}t.Filters=L},5448:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},5665:(e,t,o)=>{"use strict";t.__esModule=!0,t.operationResult=a,o(52490),o(34478),o(81056);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(13280);const n=t.OPERATION_ID="disjunctionWithExtraCondition",r=t.SHORT_NAME_FOR_COMPONENT=i.FILTERS_LABELS_DISJUNCTION;function a(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,s.registerOperation)(n,r,a)},5676:(e,t,o)=>{"use strict";t.__esModule=!0,t.numericValidator=n;var i=o(58604);const s=t.VALIDATOR_TYPE="numeric";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):t(""!==o&&(0,i.isNumeric)(e))}n.VALIDATOR_TYPE=s},5705:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:o}};const o=t.KEY="---------"},5714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(91376));t.DataMap=s.default;var n=i(o(81053));t.MetaManager=n.default;var r=i(o(86491));t.metaSchemaFactory=r.default;var a=o(56782);t.replaceData=a.replaceData;var l=o(9383);t.DynamicCellMetaMod=l.DynamicCellMetaMod;var h=o(5919);t.ExtendMetaPropertiesMod=h.ExtendMetaPropertiesMod},5869:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(18514),r=o(22746);t.ViewDiffer=class{constructor(e){(0,s.default)(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:t,nextSize:o}=e.getViewSize();let i=Math.max(o,t);if(0===i)return[];const{currentOffset:s,nextOffset:a}=e.getViewSize(),l=new r.ViewOrder(s,t),h=new r.ViewOrder(a,o),c=[];for(let t=0;t<i;t++){const s=l.get(t),r=h.get(t);if(-1===r)c.push(["remove",s]);else if(-1===s)!e.isShared()||e.isShared()&&e.isPlaceOn(n.WORKING_SPACE_BOTTOM)?c.push(["append",r]):c.push(["prepend",r]);else if(r>s)l.has(r)&&(l.remove(r),o<=l.length&&(i-=1)),c.push(["replace",r,s]);else if(r<s){const e=l.prepend(r);c.push(["insert_before",r,s,e])}else c.push(["none",r])}return c}}},5879:(e,t,o)=>{"use strict";t.__esModule=!0,t.dateRenderer=n;var i=o(78790);const s=t.RENDERER_TYPE="date";function n(e,t,o,s,n,r,a){i.autocompleteRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},5895:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(8562);const r=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},5908:(e,t,o)=>{"use strict";t.__esModule=!0,t.dropdownValidator=n;var i=o(40492);const s=t.VALIDATOR_TYPE="dropdown";function n(e,t){i.autocompleteValidator.apply(this,[e,t])}n.VALIDATOR_TYPE=s},5919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143);var s=i(o(24300));function n(e,t,o){(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,o)}function r(e,t){return e.get(function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(e,t))}var a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),n(this,a,(e,t,o)=>{if(!o)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:o,target:i,onChange:s}=e,n="string"==typeof i,l=n?i:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),n&&this.installPropWatcher(i,h,s)):o&&(this.installPropWatcher(t,h,r(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,o){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const n=!i.usageTracker.has(e);i.usageTracker.add(e),o.call(i,e,s,n),this[t]=s},enumerable:!0,configurable:!0})}}},5994:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,checkable:!0,ariaChecked(){return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_READ_ONLY);return(0,i.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,i.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,i.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,o)=>{e>=0&&o>=0&&this.setCellMeta(e,o,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var i=o(83914),s=o(94576),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const r=t.KEY="make_read_only"},5997:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(15686);t.CELL_TYPE=i.CELL_TYPE,t.TextCellType=i.TextCellType},6098:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631),r=o(83914),a=o(94576);class l extends n.BaseAction{constructor(e){let{stateBefore:t,range:o,type:i,alignment:n}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=o,this.type=i,this.alignment=n}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,o,i,s)=>{t.done(()=>new l({stateBefore:e,range:o,type:i,alignment:s}))})}undo(e,t){(0,a.arrayEach)(this.range,t=>{t.forAll((t,o)=>{t>=0&&o>=0&&e.setCellMeta(t,o,"className",this.stateBefore[t][o]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,r.align)(this.range,this.type,this.alignment,(t,o)=>e.getCellMeta(t,o),(t,o,i,s)=>e.setCellMeta(t,o,i,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},6239:(e,t)=>{"use strict";t.__esModule=!0;t.GRID_GROUP="gridDefault",t.EDITOR_EDIT_GROUP="editorManager.handlingEditor"},6310:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(7886),n=o(23895);const r=t.CONDITION_NAME="begins_with";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(o))}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},6711:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(13743);class r extends n.Selection{constructor(e,t){super(e,null),(0,s.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:o}=e,i=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(o,-1);return null===i||null===s?null:((i.row>s.row||i.col>s.col)&&(i=t,s=o),this.settings.createCellRange(i,i,s))}getNearestNotHiddenCoords(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===i)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,o);return null===s?null:this.settings.createCellCoords(i,s)}getNearestNotHiddenIndex(e,t,o){return t<0?t:e.getNearestNotHiddenIndex(t,o)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),o="N-S"===e.getVerticalDirection()?1:-1,i="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let n=null;if(null!==s&&null!==s.col&&null!==s.row||(n=this.getNearestNotHiddenCoords(t,o,i)),null!==n&&e.overlaps(n)){const t=e.highlight.clone();if(t.row>=0&&(t.row=n.row),t.col>=0&&(t.col=n.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==s&&null===n&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const o=this.settings.visualToRenderableCoords(e),i=this.settings.visualToRenderableCoords(t);return null===o.row||null===o.col||null===i.row||null===i.col?null:this.settings.createCellRange(o,o,i)}}t.default=r},6745:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=o(4138),n=i(o(18805));function r(e,t,o){(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,o)}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h{constructor(){r(this,l,[])}subscribe(e){var t,o;return this.addLocalHook("change",e),this._write((o=this,(t=l).get(a(t,o)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,o,i;o=this,i=e,(t=l).set(a(t,o),i)}}t.ChangesObserver=h,(0,s.mixin)(h,n.default)},6941:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutCommandsPool=function(e){const t={};return u.forEach(o=>{let{name:i,callback:s}=o;t[i]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return s(e,...o)}}),t};var i=o(38491),s=o(70787),n=o(7255),r=o(5008),a=o(23552),l=o(8517),h=o(36416),c=o(11453);const u=[...(0,i.getAllCommands)(),...(0,s.getAllCommands)(),...(0,n.getAllCommands)(),r.command,a.command,l.command,h.command,c.command]},6942:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return i.valueGetter.call(this,e)};var i=o(20737)},7120:(e,t,o)=>{"use strict";t.__esModule=!0,t.deprecatedWarn=function(e){(0,i.isDefined)(console)&&console.warn(`Deprecated: ${e}`)},t.error=function(){(0,i.isDefined)(console)&&console.error(...arguments)},t.info=function(){(0,i.isDefined)(console)&&console.info(...arguments)},t.log=function(){(0,i.isDefined)(console)&&console.log(...arguments)},t.warn=function(){(0,i.isDefined)(console)&&console.warn(...arguments)};var i=o(7886)},7255:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command,h.command,c.command,u.command,d.command,g.command,f.command,p.command,m.command,w.command,C.command]};var i=o(22823),s=o(31235),n=o(80393),r=o(93112),a=o(99710),l=o(329),h=o(28730),c=o(44806),u=o(37547),d=o(30390),g=o(56020),f=o(33999),p=o(68294),m=o(31743),w=o(30498),C=o(46802)},7569:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{columnClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_COLUMN_TYPE})};var s=o(13743),n=i(o(6711))},7743:(e,t)=>{"use strict";t.__esModule=!0;t.ACTIVE_HEADER_TYPE="active-header",t.HEADER_TYPE="header",t.AREA_TYPE="area",t.FOCUS_TYPE="focus",t.FILL_TYPE="fill",t.ROW_TYPE="row",t.COLUMN_TYPE="column",t.CUSTOM_SELECTION_TYPE="custom-selection"},7857:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{cellRange:t}=e;super("unmerge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=t}static startRegisteringEvents(e,t){e.addHook("afterUnmergeCells",(e,o)=>{o||t.done(()=>new r({cellRange:e}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange,!0)}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0),e.render()}}t.UnmergeCellsAction=r},7869:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(53341);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ExportFile=i.ExportFile},7886:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const o=!a(e),i="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),n="16.1.0-next-6b799e4-20250912";let r,v="invalid",y="invalid";const S=function(e){let t=[][l],o=t;if(e[l]!==d("Z"))return!1;for(let t="",i="B<H4P+".split(""),s=d(i.shift());s;s=d(i.shift()||"A"))--s<""[l]?o|=(c(`${c(h(t)+(h(u(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=u(e,s,s?1===i[l]?9:8:6);return o===t}(e=g(e||""));if(o||i||S)if(S){const t=(0,s.default)("15/09/2025","DD/MM/YYYY"),o=Math.floor(t.toDate().getTime()/864e5),i=f(e);r=(0,s.default)(864e5*(i+1),"x").format("MMMM DD, YYYY"),o>i?(v="expired",y="expired"):(v="valid",y="valid")}else i?(v="non_commercial",y="valid"):(v="invalid",y="invalid");else v="missing",y="missing";p()&&(v="valid",y="valid");if(!m&&"valid"!==v){w[v]({keyValidityDate:r,hotVersion:n})&&console["non_commercial"===v?"info":"warn"](w[v]({keyValidityDate:r,hotVersion:n})),m=!0}if("valid"!==y&&t){if(C[y]({keyValidityDate:r,hotVersion:n})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=C[y]({keyValidityDate:r,hotVersion:n}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,o;const{rowIndexMapper:i,columnIndexMapper:s}=e,{navigableHeaders:n}=e.getSettings();let r=i.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(r<0){if(!n||0===e.countColHeaders())return null;r=-1}if(a<0){if(!n||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=i.getVisualFromRenderableIndex(r))&&void 0!==t?t:r,null!==(o=s.getVisualFromRenderableIndex(a))&&void 0!==o?o:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:o}=e,{navigableHeaders:i}=e.getSettings();let s=i&&e.countColHeaders()>0?-e.countColHeaders():0,n=i&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===n&&(n=o.getVisualFromRenderableIndex(n));if(null===s||null===n)return null;return e._createCellCoords(s,n)},t.isDefined=function(e){return void 0!==e},t.isEmpty=a,t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isUndefined=r,t.stringify=function(e){let t;switch(typeof e){case"string":case"number":t=`${e}`;break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t};var s=i(o(86798)),n=o(30738);function r(e){return void 0===e}function a(e){return null===e||""===e||r(e)}const l="length",h=e=>parseInt(e,16),c=e=>parseInt(e,10),u=(e,t,o)=>e.substr(t,o),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),f=e=>h(u(g(e),h("12"),d("F")))/(h(u(g(e),d("B"),~~![][l]))||9),p=()=>"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);let m=!1;const w={invalid:()=>n.toSingleLine`
34
34
  The license key for Handsontable is invalid.\x20
35
35
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:o}=e;return n.toSingleLine`
36
36
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -64,7 +64,7 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
64
64
  use it consequently for a particular column).`)}else if((0,u.isUndefined)(c.operations[o]))throw new Error(r.toSingleLine`Unexpected operation named \`${o}\`. Possible ones are\x20
65
65
  \`disjunction\` and \`conjunction\`.`);const g=this.getConditions(e);0===g.length?this.filteringStates.setValueAtIndex(e,{operation:o,conditions:[{name:a,args:n,func:(0,l.getCondition)(a,n)}]},i):g.push({name:a,args:n,func:(0,l.getCondition)(a,n)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,o;return null!==(t=null===(o=this.filteringStates.getValueAtIndex(e))||void 0===o?void 0:o.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[t]=e;return t})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce((e,t)=>{let[o,{operation:i,conditions:s}]=t;return e.push({column:o,operation:i,conditions:s.map(e=>{let{name:t,args:o}=e;return{name:t,args:[...o]}})}),e},[])}importAllConditions(e){this.clean(),e.forEach(e=>{e.conditions.forEach(t=>this.addCondition(e.column,t))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const o=this.getConditions(e);return t?o.some(e=>e.name===t):o.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(g),this.filteringStates=null,this.clearLocalHooks()}}(0,n.mixin)(f,a.default);t.default=f},34650:(e,t,o)=>{"use strict";t.__esModule=!0,t.arrayDiff=function(e,t){const o=[];let i=0,s=0;for(;i<e.length&&s<t.length;i++,s++)e[i]!==t[s]&&o.push({op:"replace",index:s,oldValue:e[i],newValue:t[s]});for(;i<t.length;i++)o.push({op:"insert",index:i,oldValue:void 0,newValue:t[i]});for(;s<e.length;s++)o.push({op:"remove",index:s,oldValue:e[s],newValue:void 0});return o},o(99356)},34651:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(26808),s=o(51798),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,o){return e.set(h(e,t),o),o}function l(e,t){return e.get(h(e,t))}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="loading",u=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${c}`;var g=new WeakMap,f=new WeakSet;class p extends i.BasePlugin{constructor(){var e,t;super(...arguments),r(e=this,t=f),t.add(e),function(e,t,o){r(e,t),t.set(e,o)}(this,g,null)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}static get DEFAULT_SETTINGS(){return{icon:`<svg class="${d}__icon-svg" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-width="2" d="M15 8a7 7 0 1 1-3.5-6.062"></path></svg>`,title:void 0,description:""}}static get SETTINGS_VALIDATORS(){return{icon:e=>"string"==typeof e,title:e=>"string"==typeof e,description:e=>"string"==typeof e}}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){if(!this.enabled){var e;if(null===l(g,this))a(g,this,this.hot.getPlugin("dialog")),null!==(e=l(g,this))&&void 0!==e&&e.isEnabled()||(this.hot.getSettings().dialog=!0),this.hot.addHook("afterDialogFocus",()=>h(f,this,m).call(this));super.enablePlugin()}}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),super.disablePlugin()}isVisible(){var e,t;return null!==(e=null===(t=l(g,this))||void 0===t?void 0:t.isVisible())&&void 0!==e&&e}show(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isEnabled()||!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled())return;if(this.isVisible())return void this.update(t);!1!==this.hot.runHooks("beforeLoadingShow")&&(this.update(t),l(g,this).show(),this.hot.runHooks("afterLoadingShow"))}hide(){var e;if(!l(g,this)||null===(e=l(g,this))||void 0===e||!e.isEnabled()||!this.isVisible())return;!1!==this.hot.runHooks("beforeLoadingHide")&&(l(g,this).hide(),this.hot.runHooks("afterLoadingHide"))}update(e){var t,o;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const i=this.hot.guid,r=this.getSetting("icon"),a=null!==(o=this.getSetting("title"))&&void 0!==o?o:this.hot.getTranslatedPhrase(n.LOADING_TITLE),h=this.getSetting("description"),u=(0,s.loadingContent)({id:i,icon:r,title:a,description:h});l(g,this).update({content:u,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${i}-${c}-title`,ariaDescribedby:h?`${i}-${c}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=p},34679:e=>{"use strict";var t=Math.ceil,o=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?o:t)(i)}},34695:(e,t,o)=>{"use strict";t.__esModule=!0,t.selectRenderer=n;var i=o(54657);const s=t.RENDERER_TYPE="select";function n(e,t,o,s,n,r,a){i.textRenderer.apply(this,[e,t,o,s,n,r,a])}n.RENDERER_TYPE=s},34701:e=>{"use strict";e.exports=function(e){try{var t=new Set,o={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},i=t[e](o);return 1===i.size&&4===i.values().next().value}catch(e){return!1}}},34738:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=new Map;return e=(0,s.isFunction)(e)?e:l,t=(0,s.isFunction)(t)?t:h,{addItem:function(s,n){if(!(0,i.isNumeric)(s))throw new Error(t(s));if(o.has(s))throw new Error(e(s));o.set(s,n)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;const[t,i]=a.get(e)||a.get(n);return[...o].sort((e,o)=>e[0]<o[0]?t:i).map(e=>e[1])}}},o(52490),o(34478),o(940);var i=o(58604),s=o(81761);const n=t.ASC="asc",r=t.DESC="desc",a=new Map([[n,[-1,1]],[r,[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},34758:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34695);t.RENDERER_TYPE=i.RENDERER_TYPE,t.selectRenderer=i.selectRenderer},34822:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,i.createPaginator)({size:()=>e.countRows(),onItemSelect(t,o){const i=e.getCell(t,0);if(!i||(0,s.isSeparator)(i)||(0,s.isDisabled)(i)||(0,s.isSelectionDisabled)(i))return!1;e.selectCell(t,0,...o?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var i=o(83166),s=o(30386)},34832:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=r;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895);const n=t.CONDITION_NAME="gte";function r(e,t){let[o]=t,i=o;return"numeric"===e.meta.type&&(i=parseFloat(i,10)),e.value>=i}(0,s.registerCondition)(n,r,{name:i.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},35234:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(10721);t.EDITOR_TYPE=i.EDITOR_TYPE,t.SelectEditor=i.SelectEditor},35315:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[i.CellAlignmentAction,s.ColumnMoveAction,n.ColumnSortAction,r.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,c.MergeCellsAction,u.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,f.UnmergeCellsAction].forEach(o=>o.startRegisteringEvents(e,t))};var i=o(6098),s=o(3196),n=o(43605),r=o(81921),a=o(25727),l=o(95367),h=o(11808),c=o(99962),u=o(21077),d=o(75299),g=o(89426),f=o(7857)},35394:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(940);const i=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return i.has(t)?i.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:o}=e;if(s.has(t))return s.get(t);const i=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(i)?i:o.toLowerCase()}},35450:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(4138),s=o(26911);function n(e,t,o){(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,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap;class u extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,i.extend)(u.DEFAULTS,t)),n(this,h,void 0),n(this,c,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),a(c,this,e),a(h,this,this._element.firstChild),r(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(r(c,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&r(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(r(h,this).checked=e)}focus(){this.isBuilt()&&r(h,this).focus()}}t.RadioInputUI=u},35701:(e,t,o)=>{"use strict";t.__esModule=!0,t.createCellHeadersRange=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,[s,n]=[o,i];e>t&&([s,n]=[n,s]);return`${s}-${n}`},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(t,o)=>{(0,i.isUndefined)(e[o])&&(e[o]=t)}),e},t.normalizeLanguageCode=function(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return`${t[1].toLowerCase()}-${t[2].toUpperCase()}`;return e},t.warnUserAboutLanguageRegistration=function(e){(0,i.isDefined)(e)&&(0,n.error)(r.toSingleLine`Language with code "${e}" was not found. You should register particular language\x20
66
66
  before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var i=o(7886),s=o(4138),n=o(7120),r=o(30738)},35734:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(940);var s=i(o(24300)),n=o(30286),r=o(1471),a=o(69425),l=o(25884),h=o(81761);class c extends n.IndexMap{constructor(){super(...arguments),(0,s.default)(this,"orderOfIndexes",[])}getValues(){return this.orderOfIndexes.map(e=>this.indexedValues[e])}setValues(e){this.orderOfIndexes=[...Array(e.length).keys()],super.setValues(e)}setValueAtIndex(e,t){let o=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(o,0,e),this.runLocalHooks("change"),!0)}clearValue(e){this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,[e]),(0,h.isFunction)(this.initValueOrFn)?super.setValueAtIndex(e,this.initValueOrFn(e)):super.setValueAtIndex(e,this.initValueOrFn)}getLength(){return this.orderOfIndexes.length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.orderOfIndexes.length=0,super.setDefaultValues(e)}insert(e,t){this.indexedValues=(0,r.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),this.orderOfIndexes=(0,l.getIncreasedIndexes)(this.orderOfIndexes,t),super.insert(e,t)}remove(e){this.indexedValues=(0,r.getListWithRemovedItems)(this.indexedValues,e),this.orderOfIndexes=(0,a.getListWithRemovedItems)(this.orderOfIndexes,e),this.orderOfIndexes=(0,l.getDecreasedIndexes)(this.orderOfIndexes,e),super.remove(e)}getEntries(){return this.orderOfIndexes.map(e=>[e,this.getValueAtIndex(e)])}}t.LinkedPhysicalIndexToValueMap=c},35738:(e,t,o)=>{"use strict";var i=o(94266);e.exports=function(e,t){var o=i[e],s=o&&o.prototype;return s&&s[t]}},35775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},36062:(e,t)=>{"use strict";function o(e,t,o){e.addEventListener(t,o,!1)}function i(e,t,o){e.removeEventListener(t,o,!1)}function s(e){return e.ownerDocument.defaultView.getComputedStyle(e)}t.__esModule=!0,t.createInputElementResizer=function(e){const t={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300,textContent:e=>e.value,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}},n=e.body,r=e.createTextNode(""),a=e.createElement("span");let l;function h(){var e,o;r.textContent=t.textContent(l),a.style.position="absolute",a.style.fontSize=s(l).fontSize,a.style.fontFamily=s(l).fontFamily,a.style.whiteSpace="pre",n.appendChild(a);const i=parseInt((null===(e=s(l))||void 0===e?void 0:e.paddingInlineStart)||0,10),h=parseInt((null===(o=s(l))||void 0===o?void 0:o.paddingInlineEnd)||0,10),c=a.clientWidth+i+h+1;n.removeChild(a);const u=l.style;u.height=`${t.minHeight}px`,t.minWidth>c?u.width=`${t.minWidth}px`:c>t.maxWidth?u.width=`${t.maxWidth}px`:u.width=`${c}px`;const d=l.scrollHeight?l.scrollHeight-1:0;t.minHeight>d?u.height=`${t.minHeight}px`:t.maxHeight<d?(u.height=`${t.maxHeight}px`,u.overflowY="visible"):u.height=`${d}px`}function c(){e.defaultView.setTimeout(h,0)}return{init:function(e,i){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l=e,function(e){if(e&&e.minHeight)if("inherit"===e.minHeight)t.minHeight=l.clientHeight;else{const o=parseInt(e.minHeight,10);isNaN(o)||(t.minHeight=o)}if(e&&e.maxHeight)if("inherit"===e.maxHeight)t.maxHeight=l.clientHeight;else{const o=parseInt(e.maxHeight,10);isNaN(o)||(t.maxHeight=o)}if(e&&e.minWidth)if("inherit"===e.minWidth)t.minWidth=l.clientWidth;else{const o=parseInt(e.minWidth,10);isNaN(o)||(t.minWidth=o)}if(e&&e.maxWidth)if("inherit"===e.maxWidth)t.maxWidth=l.clientWidth;else{const o=parseInt(e.maxWidth,10);isNaN(o)||(t.maxWidth=o)}a.firstChild||(a.className="autoResize",a.style.display="inline-block",a.appendChild(r))}(i),"TEXTAREA"===l.nodeName&&(l.style.resize="none",l.style.height=`${t.minHeight}px`,l.style.minWidth=`${t.minWidth}px`,l.style.maxWidth=`${t.maxWidth}px`,l.style.overflowY="hidden"),s&&(o(l,"input",h),o(l,"keydown",c)),h()},resize:h,unObserve(){i(l,"input",h),i(l,"keydown",c)}}}},36117:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueSet=function(){let{errorItemExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Set;return e=(0,i.isFunction)(e)?e:s,{addItem:function(o){if(t.has(o))throw new Error(e(o));t.add(o)},clear:function(){t.clear()},getItems:function(){return[...t]}}},o(52490),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(81761);const s=e=>`'${e}' value is already declared in a unique set.`},36416:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCellsAndHeaders",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!1}),t.markEndSource()}}},36547:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));const n="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),this.hot=e}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){void 0!==e&&(this._element.style.top=e+n),void 0!==t&&(this._element.style.left=t+n)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+n),t&&(this._element.style.height=t+n)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){e&&(this._element.style.marginTop=e+n),t&&(this._element.style.marginLeft=t+n)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}},36714:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=i(o(8323)),r=i(o(24699));class a extends r.default{constructor(e,t,o){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const i=this.wtSettings.getSetting("facade",this);this.cloneSource=o.source,this.cloneOverlay=o.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),i,this.domBindings,this.wtSettings),this.wtViewport=o.viewport,this.selectionManager=o.selectionManager,this.wtEvent=new n.default(i,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,o.event),this.findOriginalHeaders()}}t.default=a},36780:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValidator=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered validator found under "${e}" name`);return n(e)},t.registerValidator=function(e,t){"string"!=typeof e&&(e=(t=e).VALIDATOR_TYPE);s(e,t)},o(52490);var i=o(25854);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("validators");t.getRegisteredValidators=l,t.getRegisteredValidatorNames=a,t.hasValidator=r},37069:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(17725);class r extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:o,scrollOffset:i,totalRows:n,defaultRowHeight:r,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:h}=e;super(t),(0,s.default)(this,"viewportHeight",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalRows",0),(0,s.default)(this,"rowHeightFn",null),(0,s.default)(this,"rowHeight",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"horizontalScrollbarHeight",0),(0,s.default)(this,"innerViewportHeight",0),(0,s.default)(this,"totalCalculatedHeight",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.defaultHeight=r,this.viewportHeight=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalRows=n,this.rowHeightFn=a,this.overrideFn=l,this.horizontalScrollbarHeight=null!=h?h:0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const t=this.rowHeightFn(e);return isNaN(t)?this.defaultHeight:t}}t.ViewportRowsCalculator=r},37334:(e,t,o)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{const o=(0,i.createScrollTargetCalculator)(e),s={row:o.getComputedRowTarget(t),col:o.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:o}=s;(0,i.scrollWindowToCell)(e.getCell(t,o,!0))})}};var i=o(31970)},37359:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(67347),s=o(78966);const n=t.EDITOR_TYPE="checkbox";class r extends i.BaseEditor{static get EDITOR_TYPE(){return n}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,s.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=r},37368:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(11847);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.ManualColumnMove=i.ManualColumnMove},37547:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:o}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,o.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},37961:(e,t,o)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:o,columnIndexMapper:r}=t,a=new Map;return{before:function(){},after:function(l,h,c){const u=e.mergedCellsCollection.get(h,c);if(!(0,i.isObject)(u))return l.removeAttribute("rowspan"),l.removeAttribute("colspan"),a.has(h)&&!t.getSettings().rowHeaders&&(l.style.height=`${a.get(h)}px`,a.delete(h)),void(l.style.display="");const{row:d,col:g,colspan:f,rowspan:p}=u,[m,w]=e.translateMergedCellToRenderable(d,p,g,f),C=e.getSetting("virtualized");if(0===g&&!t.getSettings().rowHeaders){const e=t._getRowHeightFromSettings(h);if(void 0!==e){const o=t.stylesHandler.areCellsBorderBox()?0:1;a.set(h,e-o)}else if((0,s.isSafari)()){const e=(0,n.sumCellsHeights)(t,d,p);a.set(h,e/p)}}const v=m-o.getRenderableFromVisualIndex(h)+1,y=w-r.getRenderableFromVisualIndex(c)+1;let S=o.getNearestNotHiddenIndex(d,1),E=r.getNearestNotHiddenIndex(g,1);if(C){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(E=Math.max(E,t.getFirstRenderedVisibleColumn()))}const R=Math.min(p,v),b=Math.min(f,y);S===h&&E===c?(l.setAttribute("rowspan",R),l.setAttribute("colspan",b)):(l.removeAttribute("rowspan"),l.removeAttribute("colspan"),l.style.display="none")}}};var i=o(4138),s=o(40929),n=o(56097)},37994:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(98532);t.AutocompleteCellType=i.AutocompleteCellType,t.CELL_TYPE=i.CELL_TYPE},38221:(e,t,o)=>{"use strict";var i=o(72820),s=o(87913);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},38465:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(93868),r=o(79420),a=o(62678),l=o(7569),h=o(71883),c=o(38784),u=o(48622),d=o(26826),g=o(76623),f=o(13743);t.ACTIVE_HEADER_TYPE=f.HIGHLIGHT_ACTIVE_HEADER_TYPE,t.AREA_TYPE=f.HIGHLIGHT_AREA_TYPE,t.FOCUS_TYPE=f.HIGHLIGHT_FOCUS_TYPE,t.CUSTOM_SELECTION_TYPE=f.HIGHLIGHT_CUSTOM_SELECTION_TYPE,t.FILL_TYPE=f.HIGHLIGHT_FILL_TYPE,t.HEADER_TYPE=f.HIGHLIGHT_HEADER_TYPE,t.ROW_TYPE=f.HIGHLIGHT_ROW_TYPE,t.COLUMN_TYPE=f.HIGHLIGHT_COLUMN_TYPE;var p=o(94576);function m(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakSet;class v{constructor(e){m(this,C),(0,s.default)(this,"options",void 0),(0,s.default)(this,"layerLevel",0),(0,s.default)(this,"focus",void 0),(0,s.default)(this,"fill",void 0),(0,s.default)(this,"layeredAreas",new Map),(0,s.default)(this,"areas",new Map),(0,s.default)(this,"rowHeaders",new Map),(0,s.default)(this,"columnHeaders",new Map),(0,s.default)(this,"activeRowHeaders",new Map),(0,s.default)(this,"activeColumnHeaders",new Map),(0,s.default)(this,"activeCornerHeaders",new Map),(0,s.default)(this,"rowHighlights",new Map),(0,s.default)(this,"columnHighlights",new Map),(0,s.default)(this,"customSelections",[]),this.options=e,this.focus=(0,h.createHighlight)(e),this.fill=(0,u.createHighlight)(e)}isEnabledFor(e,t){let o=e;e===f.HIGHLIGHT_FOCUS_TYPE&&(o="current");let i=this.options.disabledCellSelection(t.row,t.col);return"string"==typeof i&&(i=[i]),!1===i||Array.isArray(i)&&!i.includes(o)}useLayerLevel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.layerLevel=e,this}getFocus(){return this.focus}getFill(){return this.fill}createLayeredArea(){return w(C,this,y).call(this,this.layeredAreas,r.createHighlight)}getLayeredAreas(){return[...this.layeredAreas.values()]}createArea(){return w(C,this,y).call(this,this.areas,a.createHighlight)}getAreas(){return[...this.areas.values()]}createRowHeader(){return w(C,this,y).call(this,this.rowHeaders,d.createHighlight)}getRowHeaders(){return[...this.rowHeaders.values()]}createColumnHeader(){return w(C,this,y).call(this,this.columnHeaders,d.createHighlight)}getColumnHeaders(){return[...this.columnHeaders.values()]}createActiveRowHeader(){return w(C,this,y).call(this,this.activeRowHeaders,n.createHighlight)}getActiveRowHeaders(){return[...this.activeRowHeaders.values()]}createActiveColumnHeader(){return w(C,this,y).call(this,this.activeColumnHeaders,n.createHighlight)}getActiveColumnHeaders(){return[...this.activeColumnHeaders.values()]}createActiveCornerHeader(){return w(C,this,y).call(this,this.activeCornerHeaders,n.createHighlight)}getActiveCornerHeaders(){return[...this.activeCornerHeaders.values()]}createRowHighlight(){return w(C,this,y).call(this,this.rowHighlights,g.createHighlight)}getRowHighlights(){return[...this.rowHighlights.values()]}createColumnHighlight(){return w(C,this,y).call(this,this.columnHighlights,l.createHighlight)}getColumnHighlights(){return[...this.columnHighlights.values()]}getCustomSelections(){return[...this.customSelections.values()]}addCustomSelection(e){this.customSelections.push((0,c.createHighlight)({...this.options,...e}))}clear(){this.focus.clear(),this.fill.clear(),(0,p.arrayEach)(this.areas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.layeredAreas.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeRowHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeColumnHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.activeCornerHeaders.values(),e=>{e.clear()}),(0,p.arrayEach)(this.rowHighlights.values(),e=>{e.clear()}),(0,p.arrayEach)(this.columnHighlights.values(),e=>{e.clear()})}[Symbol.iterator](){return[this.focus,this.fill,...this.areas.values(),...this.layeredAreas.values(),...this.rowHeaders.values(),...this.columnHeaders.values(),...this.activeRowHeaders.values(),...this.activeColumnHeaders.values(),...this.activeCornerHeaders.values(),...this.rowHighlights.values(),...this.columnHighlights.values(),...this.customSelections][Symbol.iterator]()}}function y(e,t){const o=this.layerLevel;if(e.has(o))return e.get(o);const i=t({layerLevel:o,...this.options});return e.set(o,i),i}t.default=v},38491:(e,t,o)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[i.command,s.command,n.command,r.command,a.command,l.command]};var i=o(99063),s=o(60541),n=o(67606),r=o(64369),a=o(46553),l=o(88855)},38775:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=o(79035),a=i(o(30164)),l=o(4138),h=o(58604),c=i(o(65165)),u=o(2744),d=o(55656),g=o(78966);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,o){return e.set(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.PLUGIN_KEY="autoRowSize",y=t.PLUGIN_PRIORITY=40,S="htFirstDatasetColumnNotRendered";var E=new WeakMap,R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 500}constructor(e){var t,o;super(e),p(t=this,o=b),o.add(t),(0,s.default)(this,"headerHeight",null),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const o=this.hot.toPhysicalColumn(t);if(this.hot.columnIndexMapper.isHidden(o))return!1;if(e>=0&&t>=0){if(this.hot.getCellMeta(e,t).hidden)return!1}let i;return e>=0?i=this.hot.getDataAtCell(e,t):-1===e&&(i=this.hot.getColHeader(t)),{value:i}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredRows",0),(0,s.default)(this,"rowHeightsMap",new d.PhysicalIndexToValueMap),f(this,E,[]),f(this,R,!1),this.hot.rowIndexMapper.registerMap("autoRowSize",this.rowHeightsMap),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).call(this,e,t,o))}isEnabled(){const e=this.hot.getSettings()[v];return!0===e||(0,l.isObject)(e)}enablePlugin(){var e=this;if(this.enabled)return;this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,N).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,P).call(e,...o)}),this.addHook("beforeColumnResize",()=>this.recalculateAllRowsHeight()),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,x).call(e,...o)}),this.addHook("beforeViewRender",()=>C(b,this,I).call(this)),this.addHook("beforeRender",()=>C(b,this,O).call(this)),this.addHook("modifyRowHeight",(e,t)=>this.getRowHeight(t,e)),this.addHook("init",()=>C(b,this,H).call(this)),this.addHook("modifyColumnHeaderHeight",()=>this.getColumnHeaderHeight()),super.enablePlugin()}disablePlugin(){this.headerHeight=null,super.disablePlugin(),C(b,this,M).call(this,!1),this.addHook("beforeRowResize",(e,t,o)=>C(b,this,A).call(this,e,t,o))}calculateVisibleRowsHeight(){if(!this.hot.countCols())return;const e=this.getFirstVisibleRow(),t=this.getLastVisibleRow();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateRowsHeight({from:e,to:t},void 0,o)}calculateRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;if(null!==this.hot.getColHeader(0)){const e=this.samplesGenerator.generateRowSamples(-1,s);this.ghostTable.addColumnHeadersRow(e.get(-1))}(0,h.rangeEach)(i.from,i.to,e=>{let t=this.hot.toPhysicalRow(e);if(null===t&&(t=e),o||null===this.rowHeightsMap.getValueAtIndex(t)){this.samplesGenerator.generateRowSamples(e,s).forEach((e,t)=>this.ghostTable.addRow(t,e))}}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{e<0?this.headerHeight=t:this.rowHeightsMap.setValueAtIndex(this.hot.toPhysicalRow(e),t)})},!0),this.measuredRows=i.to+1,this.ghostTable.clean())}calculateAllRowsHeight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const i=this.hot.countRows()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateRowsHeight({from:o,to:Math.min(o+_.CALCULATION_STEP,i)},e,t),o=o+_.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateRowsHeight({from:0,to:a},e,t),o=a+1),o<i?n():(this.inProgress=!1,this.hot.view.adjustElementsSize())}recalculateAllRowsHeight(){this.hot.view.isVisible()&&this.calculateAllRowsHeight({from:0,to:this.hot.countCols()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[v];let t=_.SYNC_CALCULATION_LIMIT;const o=this.hot.countRows()-1;return(0,l.isObject)(e)&&(t=e.syncLimit,(0,u.isPercentValue)(t)?t=(0,h.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getRowHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hot.stylesHandler.getDefaultRowHeight();var o;if(e<0)return null!==(o=this.headerHeight)&&void 0!==o?o:t;const i=this.hot.toPhysicalRow(e);if(this.hot.rowIndexMapper.isHidden(i))return t;const s=this.rowHeightsMap.getValueAtIndex(i);let n=t;return null!==s&&s>t&&(n=s),n}getColumnHeaderHeight(){return this.headerHeight}getFirstVisibleRow(){var e;return null!==(e=this.hot.getFirstRenderedVisibleRow())&&void 0!==e?e:-1}getLastVisibleRow(){var e;return null!==(e=this.hot.getLastRenderedVisibleRow())&&void 0!==e?e:-1}clearCache(e){this.headerHeight=null,Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0):this.rowHeightsMap.clear()}clearCacheByRange(e){const{from:t,to:o}="number"==typeof e?{from:e,to:e}:e;this.hot.batchExecution(()=>{(0,h.rangeEach)(Math.min(t,o),Math.max(t,o),e=>{this.rowHeightsMap.setValueAtIndex(e,null)})},!0)}isNeedRecalculate(){return!!this.rowHeightsMap.getValues().slice(0,this.measuredRows).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function T(e){const t={from:0,to:this.hot.countCols()-1};e.forEach(e=>{this.samplesGenerator.generateRowSamples(e,t).forEach((e,t)=>this.ghostTable.addRow(t,e))}),this.ghostTable.rows.length&&(this.hot.batchExecution(()=>{this.ghostTable.getHeights((e,t)=>{const o=this.hot.toPhysicalRow(e);this.rowHeightsMap.setValueAtIndex(o,t)})},!0),this.ghostTable.clean())}function M(e){const t=this.hot.getFirstRenderedVisibleColumn(),o=this.hot.columnIndexMapper.getPhysicalFromVisualIndex(t);!1===e||o===this.hot.columnIndexMapper.getPhysicalFromRenderableIndex(0)?(0,g.removeClass)(this.hot.rootElement,S):(0,g.addClass)(this.hot.rootElement,S)}function I(){C(b,this,M).call(this)}function O(){this.calculateVisibleRowsHeight(),this.inProgress||(C(b,this,T).call(this,w(E,this)),m(E,this,[]))}function A(e,t,o){let i=e;return o&&(this.calculateRowsHeight(t,void 0,!0),i=this.getRowHeight(t)),i}function N(e,t){t||this.recalculateAllRowsHeight()}function P(e){const t=e.reduce((e,t)=>{let[o]=t;return-1===e.indexOf(o)&&e.push(o),e},[]);w(E,this).push(...t)}function H(){this.recalculateAllRowsHeight(),m(R,this,!0)}function x(e){if(!w(R,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.row;if(Number.isInteger(i)){const t=this.hot.toVisualRow(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(E,this).push(...t)}t.AutoRowSize=_},38784:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:o,...i}=e;return new n.default({...t,...i,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},o)};var s=o(13743),n=i(o(6711))},38829:(e,t,o)=>{"use strict";t.__esModule=!0,t.htmlRenderer=r;var i=o(85439),s=o(78966);const n=t.RENDERER_TYPE="html";function r(e,t,o,n,r,a,l){i.baseRenderer.apply(this,[e,t,o,n,r,a,l]),(0,s.fastInnerHTML)(t,null==a?"":a,!1)}r.RENDERER_TYPE=n},38830:(e,t,o)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX):t.push(n.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[n.CONTROL,n.COMMAND_LEFT,n.COMMAND_RIGHT,n.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return r.includes(e)},t.isKey=function(e,t){const o=t.split("|");let s=!1;return(0,i.arrayEach)(o,t=>{if(e===n[t])return s=!0,!1}),s},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},o(99356);var i=o(94576),s=o(40929);const n=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,s.isFirefox)()?182:174,AUDIO_MUTE:(0,s.isFirefox)()?181:173,AUDIO_UP:(0,s.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},r=[n.ALT,n.ARROW_DOWN,n.ARROW_LEFT,n.ARROW_RIGHT,n.ARROW_UP,n.AUDIO_DOWN,n.AUDIO_MUTE,n.AUDIO_UP,n.BACKSPACE,n.CAPS_LOCK,n.DELETE,n.END,n.ENTER,n.ESCAPE,n.F1,n.F2,n.F3,n.F4,n.F5,n.F6,n.F7,n.F8,n.F9,n.F10,n.F11,n.F12,n.F13,n.F14,n.F15,n.F16,n.F17,n.F18,n.F19,n.HOME,n.INSERT,n.MEDIA_NEXT,n.MEDIA_PLAY_PAUSE,n.MEDIA_PREV,n.MEDIA_STOP,n.NULL,n.NUM_LOCK,n.PAGE_DOWN,n.PAGE_UP,n.PAUSE,n.SCROLL_LOCK,n.SHIFT,n.TAB]},38950:(e,t,o)=>{"use strict";o(4462),o(52695)},39225:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=s},39372:(e,t,o)=>{"use strict";var i=o(30617),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+i(t)+" of "+i(e))}},39393:(e,t,o)=>{"use strict";var i=o(53001);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},39411:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(78966),r=o(94576),a=o(26808),l=o(79035);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class f extends a.BasePlugin{constructor(){super(...arguments),h(this,g),(0,s.default)(this,"scrollbars",[]),(0,s.default)(this,"clones",[]),(0,s.default)(this,"lockedCollection",!1),(0,s.default)(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,l.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>c(g,this,p).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>c(g,this,m).call(this)),this.addHook("afterMomentumScroll",()=>c(g,this,w).call(this))}}function p(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:o,topInlineStartCornerOverlay:i,bottomInlineStartCornerOverlay:s}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(o),i&&this.scrollbars.push(i),s&&s.clone&&this.scrollbars.push(s),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),o.needFullRender&&this.clones.push(o.clone.wtTable.holder.parentNode),i&&this.clones.push(i.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,r.arrayEach)(this.clones,e=>{(0,n.addClass)(e,"hide-tween")})}function w(){this.freezeOverlays=!1,(0,r.arrayEach)(this.clones,e=>{(0,n.removeClass)(e,"hide-tween"),(0,n.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,r.arrayEach)(this.clones,e=>{(0,n.removeClass)(e,"show-tween")})},400),(0,r.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=f},39572:(e,t,o)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,o){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,o)},o(52490);var i=o(60269),s=o(84686),n=o(46848),r=o(18253);const a=new Map([["collapse",i.collapseNode],["expand",s.expandNode],["hide-column",n.hideColumn],["show-column",r.showColumn]])},39604:(e,t,o)=>{"use strict";t.__esModule=!0,t.checkPluginSettingsConflict=function(e){return n.some(t=>{const o=!!e[t];return o&&(0,s.warn)(i.toSingleLine`The \`pagination\` plugin cannot be used with the \`${t}\` option.\x20
67
- This combination is not supported. The plugin will remain disabled.`),o})};var i=o(30738),s=o(7120);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},39710:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.unfreezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},39748:(e,t,o)=>{"use strict";o(52653)},39872:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(4138),n=i(o(18805));class r{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(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}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,s.mixin)(r,n.default);t.default=r},39888:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(59188),r=o(94811),a=o(26023),l=o(48369),h=s.Set,c=s.add,u=s.has;e.exports=function(e){var t=i(this),o=r(e),s=new h;return n(t)>o.size?l(o.getIterator(),function(e){u(t,e)&&c(s,e)}):a(t,function(e){o.includes(e)&&c(s,e)}),s}},39969:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="row_above"},40041:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43181);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Search=i.Search},40059:(e,t,o)=>{"use strict";o(49463)("flatMap")},40492:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(4138);const s=t.VALIDATOR_TYPE="autocomplete";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,n=e.length;t<n;t++)if((0,i.isObjectEqual)(o,e[t])){s=!0;break}t(s)}}n.VALIDATOR_TYPE=s},40550:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},40591:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,i.getRootComparator)(t);for(var s=arguments.length,n=new Array(s>2?s-2:0),r=2;r<s;r++)n[r-2]=arguments[r];e.sort(o(...n))};var i=o(32234);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},40761:(e,t,o)=>{"use strict";var i=o(2382),s=o(33266),n=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40920:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let s=0;s<t;s+=1){const n=e[s],r=n.length,a=[];0===s&&o.push("<tbody>");for(let e=0;e<r;e+=1){const t=n[e],o=(0,i.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${o}</td>`)}o.push("<tr>",...a,"</tr>"),s+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},i=t.createDocumentFragment(),r=t.createElement("div");i.appendChild(r);let a=e;if("string"==typeof a){const e=a.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/gm,"")}</td>`});r.insertAdjacentHTML("afterbegin",`${e}`),a=r.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=r.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce((e,t)=>{const o=Array.from(t.cells).reduce((e,t,o)=>{if(h&&0===o)return e;const{colSpan:i,innerHTML:s}=t,n=i>1?{label:s,colspan:i}:s;return e.push(n),e},[]);return e.push(o),e},[]):f&&(o.colHeaders=Array.from(e[0].children).reduce((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(a.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),i=o.length;for(let t=0;t<i;t++){const i=o[t],{nodeName:r,innerHTML:a,rowSpan:h,colSpan:c}=i,u=C[e].findIndex(e=>void 0===e);if("TD"===r){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=i.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,e=>s[e])}else y.push(a)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),s=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...s),r=n.length,a=r>0?n[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let s=0;s<r;s+=1){const r=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!r&&o&&0===t;let h="";if(r)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const o=n[s][t],{hidden:r,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-u);if(!r){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,i.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");r?h.splice(1,0,g):c.splice(-1,0,g)}return l.splice(1,0,h.join(""),c.join("")),l.join("")},o(99356),o(26648),o(34478),o(29810),o(940),o(33098);var i=o(7886);const s={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},40929:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return r.chrome.value},t.isChromeWebKit=function(){return r.chromeWebKit.value},t.isEdge=function(){return r.edge.value},t.isEdgeWebKit=function(){return r.edgeWebKit.value},t.isFirefox=function(){return r.firefox.value},t.isFirefoxWebKit=function(){return r.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return r.mobile.value},t.isSafari=function(){return r.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var i=o(4138),s=o(79035);const n=e=>{const t={value:!1,test:(o,i)=>{t.value=e(o,i)}};return t},r={chrome:n((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:n(e=>/CriOS/.test(e)),edge:n(e=>/Edge/.test(e)),edgeWebKit:n(e=>/EdgiOS/.test(e)),firefox:n(e=>/Firefox/.test(e)),firefoxWebKit:n(e=>/FxiOS/.test(e)),mobile:n(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:n((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:n(e=>/^Mac/.test(e)),win:n(e=>/^Win/.test(e)),linux:n(e=>/^Linux/.test(e)),ios:n(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(r,o=>{let{test:i}=o;i(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(a,t=>{let{test:o}=t;o(e)})}(0,s.isCSR)()&&(l(),h())},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41145:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_after";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)>=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},41462:(e,t,o)=>{"use strict";var i=o(31520).has;e.exports=function(e){return i(e),e}},41595:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(25854),a=o(7120),l=o(58604),h=o(7886),c=o(32040),u=o(24879),d=o(12516),g=o(9013),f=o(2744),p=o(23228),m=i(o(81045));function w(e,t,o){C(e,t),t.set(e,o)}function C(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,o){return e.set(S(e,t),o),o}function y(e,t){return e.get(S(e,t))}function S(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="formulas",R=t.SETTING_KEYS=["maxRows","maxColumns","language"],b=t.PLUGIN_PRIORITY=260;p.Hooks.getSingleton().register("afterNamedExpressionAdded"),p.Hooks.getSingleton().register("afterNamedExpressionRemoved"),p.Hooks.getSingleton().register("afterSheetAdded"),p.Hooks.getSingleton().register("afterSheetRemoved"),p.Hooks.getSingleton().register("afterSheetRenamed"),p.Hooks.getSingleton().register("afterFormulasValuesUpdate");const _=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakSet;class A extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,C(t=this,o=O),o.add(t),w(this,T,!1),w(this,M,!1),w(this,I,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,te).call(e,...o)}]]),(0,s.default)(this,"staticRegister",(0,r.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[E,...R]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==e&&S(O,this,N).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,L).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,V).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,P).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,F).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,B).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,U).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,z).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,G).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,Y).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,j).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,$).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,K).call(t,...o)}),this.indexSyncer=new m.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,o,i)=>{this.rowAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("beforeColumnMove",(e,t,o,i)=>{this.columnAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("afterRowMove",(e,t,o,i,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("afterColumnMove",(e,t,o,i,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,k).call(t,...o)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,X).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,H).call(t,...o)}),y(I,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){y(I,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,d.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,d.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[E];if((0,h.isDefined)(o)&&(0,h.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[E].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());S(O,this,N).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),v(I,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,h.isDefined)(t)&&!(0,g.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const o=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(o),t),o}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(O,this,N).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(E)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const i=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==i&&null!==s?this.engine.getCellType({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=new Set;e.forEach(e=>{var t;const i=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==i&&(o.has(i)||o.add(i))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,i)=>{var s;(t||i!==this.sheetId)&&o.has(i)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:i,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,h.isDefined)(s)?`${s}:${o}x${i}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var i,s;const{row:n,col:r}=null!==(i=e.address)&&void 0!==i?i:{};if(!1===(0,h.isDefined)(n)||!1===(0,h.isDefined)(r)||n>=this.hot.countRows()||r>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!o.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(n,r),e.getCellMeta(n,r),()=>{})}})}syncChangeWithEngine(e,t,o){const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(i))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(i)}`);const s=this.hot.getCellMeta(e,t);return(0,u.isDate)(o,s.type)&&((0,u.isDateValid)(o,s.dateFormat)?o=(0,u.getDateInHfFormat)(o,s.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function N(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,o){const i=this.hot.propToCol(o);if(this.isFormulaCellType(t,i)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},o=this.hot.getCellMeta(t,i);let s=this.engine.getCellValue(e);return"date"===o.type&&(0,l.isNumeric)(s)&&(s=(0,u.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function H(e,t,o){const{row:i,col:s}=t.getTopStartCorner(),{row:n,col:r}=t.getBottomEndCorner(),{row:a,col:l}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const f=this.engine.getFillRangeData(d,g),{row:p,col:m}=d.start,{row:w,col:C}=d.end,v=w-p+1,y=C-m+1;for(let e=0;e<f.length;e+=1)for(let t=0;t<f[e].length;t+=1){const o=f[e][t],i=p+e%v,s=m+t%y,n=this.hot.getCellMeta(i,s);(0,u.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,n.dateFormat)))}return f}function x(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(E))||v(M,this,(0,h.isUndefined)(this.hot.getSettings().data))}function k(){if(y(M,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,u.isDate)(t,s.type)&&((0,u.isDateValid)(t,n)?e[o][i]=(0,u.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}function D(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,f.toUpperCaseFirst)(E)))return;const i=(0,c.setupSheet)(this.engine,this.hot.getSettings()[E].sheetName);if(S(O,this,N).call(this,i),"updateSettings"!==o)if(y(M,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}}}function L(e,t,o,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(o.value=(0,u.unescapeFormulaExpression)(o.value));const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let r=this.engine.getCellValue(n);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(r)&&(r=(0,u.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function V(e,t,o,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),n=this.hot.propToCol(t);if(null===s||null===n)return;const r=this.getCellType(s,n);if("VALUE"===r||"EMPTY"===r)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};o.value=this.engine.getCellSerialized(l)}function W(e,t){if(_(t))return;const o=[],i=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(r),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,r,n):o.push([t,r,n]),i.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,i]=e;this.syncChangeWithEngine(t,o,i)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,i)}function F(e,t){if(_(t))return;const o=[],i=[];e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s);if(!(0,l.isNumeric)(r))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(i.push({address:h}),o.push(...this.engine.setCellContents(h,n))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,i)}function B(e,t){let o=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[o,t]))return!1}function U(e,t){let o=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[o,t]))return!1}function Y(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function j(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function z(e,t,o){if(_(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function G(e,t,o){if(_(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function $(e,t,o,i){if(_(i))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function K(e,t,o,i){if(_(i))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function X(e,t,o){var i;v(T,this,!0);const s=this.hot.getSourceDataArray(o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());v(T,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function q(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Q(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function J(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function Z(e){this.hot.runHooks("afterSheetAdded",e)}function ee(e,t){S(O,this,N).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=A},41691:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=r},42207:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(78966),a=o(47802),l=o(4138),h=o(13390);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n);const r=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&r.setValue(o),r.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,n.handsontable),this.htOptions=a}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedActive()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;o=Math.max(o+t,0)}const i=this.getDropdownHeight(),s=e.getWorkspaceHeight()-o-t.height,n=i>s&&o>s+t.height;return n?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:n,spaceAbove:o,spaceBelow:s}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;o=Math.max(o+t,0)}const i=this.getDropdownWidth(),s=e.getWorkspaceWidth()-o+t.width,n=i>s&&o>s;return n?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:n,spaceInlineStart:o,spaceInlineEnd:s}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let i,s;return!t.getSelectedActive()&&this.isFlippedVertically?i=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],i=Math.max(0,s-1)):(s=t.getSelectedActive()[0],i=s-1)),o(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let i,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)i=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],i=Math.min(e,s+1)}}else i=0;return o(i,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},42299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(86491));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},42326:(e,t,o)=>{"use strict";var i=o(19098),s=o(19451),n=o(66431),r=o(62283).indexOf,a=o(48099),l=i([].push);e.exports=function(e,t){var o,i=n(e),h=0,c=[];for(o in i)!s(a,o)&&s(i,o)&&l(c,o);for(;t.length>h;)s(i,o=t[h++])&&(~r(c,o)||l(c,o));return c}},42328:(e,t,o)=>{"use strict";var i=o(19098),s=o(70792);e.exports=function(e,t,o){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},42559:(e,t,o)=>{"use strict";var i=o(15105),s=o(19451),n=o(20637),r=o(14815),a=o(79937),l=o(31622),h=o(17374),c=o(59549),u=o(82497),d=o(92434),g=o(22849),f=o(2382),p=o(33973);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],S=i.apply(null,v);if(S){var E=S.prototype;if(!p&&s(E,"cause")&&delete E.cause,!o)return S;var R=i("Error"),b=t(function(e,t){var o=u(m?t:e,void 0),i=m?new S(e):new S;return void 0!==o&&n(i,"message",o),g(i,b,i.stack,2),this&&r(E,this)&&c(i,this,b),arguments.length>C&&d(i,arguments[C]),i});if(b.prototype=E,"Error"!==y?a?a(b,R):l(b,R,{name:!0}):f&&w in S&&(h(b,S,w),h(b,S,"prepareStackTrace")),l(b,S),!p)try{E.name!==y&&n(E,"name",y),E.constructor=b}catch(e){}return b}}},42595:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18385);t.EDITOR_TYPE=i.EDITOR_TYPE,t.NumericEditor=i.NumericEditor},42888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(3715),r=o(34822),a=o(86092),l=o(58226),h=o(30386),c=i(o(59468)),u=o(94576),d=o(40929),g=o(78966),f=o(47802),p=o(81761),m=o(7886),w=o(4138),C=i(o(18805)),v=o(1880),y=o(72609);function S(e,t,o){(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,o)}function E(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var _=new WeakMap,T=new WeakMap,M=new WeakMap;class I{get tableBorderWidth(){return void 0===R(M,this)&&this.hotMenu&&E(M,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(M,this)}constructor(e,t){var o=this;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new c.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),S(this,_,void 0),S(this,T,void 0),S(this,M,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new n.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,g.removeClass)(this.options.container,/ht-theme-.*/g),(0,g.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(T,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,p.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let o=!1,i=(0,u.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(i.length<1&&!o)i.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===i.length)return;i=(0,h.filterSeparators)(i,l.SEPARATOR);let s=!1;const n={data:i,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,v.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?R(_,this).setCurrentPage(t.row):R(_,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,o)=>{this.isAllSubMenusClosed()?e(o.row):this.openSubMenu(o.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,i,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!s||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,n),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),E(_,this,(0,r.createMenuNavigator)(this.hotMenu)),E(T,this,(0,a.createKeyboardShortcutsCtrl)(this)),R(T,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedActive();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const o=this.hotMenu.getSourceDataAtRow(e),i=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=i,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),i}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const i=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(i,[(0,y.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,u.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const o=this.hot.getSelectedRange(),i=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,o=e.hider.style,i=e.holder.style,s=parseInt(o.width,10),n=(0,u.arrayReduce)(t,(e,t,o)=>{const i=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===l.SEPARATOR?1:i)},0);this.hotMenu.stylesHandler.isClassicTheme()?(i.width=`${s+3}px`,i.height=`${n+3}px`):(i.width=`${s}px`,i.height=`${n}px`),o.height=i.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,i=e;return i&&((0,p.isFunction)(i)&&(i=i.call(this.hot),i=null===i||(0,m.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-Za-z0-9]/g,"_"),i=`${this.options.className}Sub_${i}`,o=t.querySelector(`.${this.options.className}.${i}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),i&&(0,g.addClass)(o,i),this.options.container.appendChild(o)),o}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,y.A11Y_MENU)(),(0,y.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=I,(0,w.mixin)(I,C.default)},43181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(7886);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,i,s){e.getCellMeta(t,o).isSearchResult=s},f=function(e,t,o){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",f),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const i=this.hot.countRows(),s=this.hot.countCols(),n=[],r=this.hot;return(0,a.rangeEach)(0,i-1,i=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(i,s),l=this.hot.getCellMeta(i,s),h=l.search.callback||t,c=(l.search.queryMethod||o)(e,a,l);if(c){const e={row:i,col:s,data:a};n.push(e)}h&&h(r,i,s,a,c)})}),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,r.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,i,s,n){const r=n.className||[];let a=[];"string"==typeof r?a=r.split(" "):a.push(...r),this.isEnabled()&&n.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),n.className=a.join(" ")}t.Search=m},43290:(e,t,o)=>{"use strict";var i=o(60606),s=o(19098);e.exports=function(e){if("Function"===i(e))return s(e)}},43502:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(5085);var s=i(o(50236)),n=o(88422),r=o(5714),a=o(23228),l=o(63061),h=o(61654),c=o(5997),u=o(67347),d=o(13743);function g(e,t){const o=new s.default(e,t||{},n.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,r.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="12/09/2025 07:34:04",g.version="16.1.0-next-e0ea502-20250912",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},43605:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,o,i)=>{i&&t.done(()=>new r({currentSortState:e,newSortState:o}))})}undo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting"),s=i.isEnabled()?i:o;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting");(i.isEnabled()?i:o).sort(this.nextSortState),t()}}t.ColumnSortAction=r},43619:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},43713:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(47802),a=o(78966);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"boundaries",null),(0,s.default)(this,"callback",null),(0,s.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",e=>h(d,this,f).call(this,e)),this.addHook("afterOnCellCornerMouseDown",e=>h(d,this,f).call(this,e)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,i=0;t<this.boundaries.top?i=t-this.boundaries.top:t>this.boundaries.bottom&&(i=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,i)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mouseup",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mousemove",e=>this.onMouseMove(e)),t=(0,a.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,r.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback((e,o)=>{var i,s;const n=null!==(i=t.scrollLeft)&&void 0!==i?i:t.scrollX,r=null!==(s=t.scrollTop)&&void 0!==s?s:t.scrollY;t.scroll(n+50*Math.sign(e),r+20*Math.sign(o))}),this.listen()}t.DragToScroll=g},44013:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},44031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=i(o(8625)),a=i(o(39710));function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeColumnFreeze"),n.Hooks.getSingleton().register("afterColumnFreeze"),n.Hooks.getSingleton().register("beforeColumnUnfreeze"),n.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var f=new WeakMap,p=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=p),t.add(e),function(e,t,o){l(e,t),t.set(e,o)}(this,f,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>u(p,this,w).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>u(p,this,C).call(this,e,t)),super.enablePlugin())}disablePlugin(){c(f,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,o)&&(o&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,o))}unfreezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,o)&&(o&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,o))}}function w(e){e.items.push({name:"---------"},(0,r.default)(this),(0,a.default)(this))}function C(e,t){if(h(f,this)){const o=this.hot.getSettings().fixedColumnsStart;if(t<o)return!1;if(e.some(e=>e<o))return!1}}t.ManualColumnFreeze=m},44251:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34651);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Loading=i.Loading},44270:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(28666);class s extends i.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:o}=e.getOuterTopStartCorner(),i=this.tableApi.countRenderableColumnsInRange(0,o-1),s=this.tableApi.countRenderableRowsInRange(0,t-1),n=e.highlight.isHeader(),r=n?Math.abs(o):0,a=n?Math.abs(t):0;return{x:o<0?r:-i,y:t<0?a:-s}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){throw new Error("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=s},44423:(e,t,o)=>{"use strict";var i=o(2382),s=o(60072),n=o(98363),r=o(90501),a=o(66431),l=o(61674);t.f=i&&!s?Object.defineProperties:function(e,t){r(e);for(var o,i=a(t),s=l(t),h=s.length,c=0;h>c;)n.f(e,o=s[c++],i[o]);return e}},44481:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",i=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${o}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${o}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${o}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${o}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${o}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${o}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${o}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${o}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${o}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${o}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${o}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${o}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${o}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${o}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${o}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${o}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${o}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${o}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${o}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${o}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${o}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${o}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${o}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${o}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${o}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${o}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${o}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${o}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${o}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${o}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${o}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${o}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${o}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${o}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${o}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${o}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${o}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${o}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${o}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${o}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${o}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${o}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${o}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${o}.showRow`,t.FILTERS_NAMESPACE="Filters:"),s=t.FILTERS_CONDITIONS_NAMESPACE=`${i}conditions`,n=(t.FILTERS_CONDITIONS_NONE=`${s}.none`,t.FILTERS_CONDITIONS_EMPTY=`${s}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${s}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${s}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${s}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${s}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${s}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${s}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${s}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${s}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${s}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${s}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${s}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${s}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${s}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${s}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${s}.after`,t.FILTERS_CONDITIONS_BEFORE=`${s}.before`,t.FILTERS_CONDITIONS_TODAY=`${s}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${s}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${s}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${i}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${i}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${i}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${i}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${i}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${i}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${i}buttons.clear`,t.FILTERS_BUTTONS_OK=`${i}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${i}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${i}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${i}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${i}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),r=(t.PAGINATION_SECTION=`${n}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${n}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${n}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${n}section.counter`,t.PAGINATION_NAV_SECTION=`${n}section.navigation`,t.PAGINATION_FIRST_PAGE=`${n}firstPage`,t.PAGINATION_PREV_PAGE=`${n}prevPage`,t.PAGINATION_NEXT_PAGE=`${n}nextPage`,t.PAGINATION_LAST_PAGE=`${n}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),a=(t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`,t.LOADING_NAMESPACE="Loading:");t.LOADING_TITLE=`${a}title`},44624:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(82515),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(90643),o(31143);var i=o(79521);function s(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t,o){return e.set(l(e,t),o),o}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),s(this,h,new Map),s(this,c,new Map),s(this,u,new Set),i.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),i.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e);if(s.find(e=>e.callback===t))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,r=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:n,runOnce:r,initialHook:c,skip:!1});let o=a(u,this).has(e);o||0===n||(o=!0,a(u,this).add(e)),o&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i){let t=a(c,this).get(e);return i.skip=!0,t+=1,t>100&&(a(h,this).set(e,o.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),r(h,this,null),r(c,this,null)}}},44806:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-s-1,-1),r=i.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s,rowHeight:n}=t;o>=i&&o+n<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=i-s&&(this.startRow-=1),e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},45007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76439);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},45084:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,n.isObject)(e))return!1;const{column:t,sortOrder:o}=e;return Number.isInteger(t)&&[u,d].includes(o)}(e)))return!1;const t=e.map(e=>{let{column:t}=e;return t});return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,o){return function(i,n){const{sortEmptyCells:r}=o;if(i===n)return l.DO_NOT_SWAP;if((0,a.isEmpty)(i))return(0,a.isEmpty)(n)?l.DO_NOT_SWAP:r&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(n))return r&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(i,t),c=(0,s.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${g}`)},t.getNextSortOrder=function(e){if(e===d)return;if(e===u)return d;return u},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const o=t.parentNode.parentNode.childNodes;if(Array.from(o).indexOf(t.parentNode)-o.length!==-1)return!1;return!0},t.warnAboutPluginsConflict=function(e,t){(0,h.warn)(c.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
67
+ This combination is not supported. The plugin will remain disabled.`),o})};var i=o(30738),s=o(7120);const n=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},39710:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,o){const[{start:{col:i}}]=o;e.unfreezeColumn(i),this.view.adjustElementsSize(),this.render()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},39748:(e,t,o)=>{"use strict";o(52653)},39872:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(4138),n=i(o(18805));class r{constructor(e,t){this.settings=e,this.cellRange=t||null}isEmpty(){return null===this.cellRange}add(e){return this.isEmpty()?this.cellRange=this.settings.createCellRange(e):this.cellRange.expand(e),this}replace(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}clear(){return this.cellRange=null,this}getCorners(){const e=this.cellRange.getOuterTopStartCorner(),t=this.cellRange.getOuterBottomEndCorner();return[e.row,e.col,t.row,t.col]}destroy(){this.runLocalHooks("destroy")}}(0,s.mixin)(r,n.default);t.default=r},39888:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(59188),r=o(94811),a=o(26023),l=o(48369),h=s.Set,c=s.add,u=s.has;e.exports=function(e){var t=i(this),o=r(e),s=new h;return n(t)>o.size?l(o.getIterator(),function(e){u(t,e)&&c(s,e)}):a(t,function(e){o.includes(e)&&c(s,e)}),s}},39969:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_ROW_ABOVE)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner();this.alter("insert_row_above",e.row,1,"ContextMenu.rowAbove")},disabled(){const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)||!!this.selection.isSelectedByCorner()&&0===this.countRows()},hidden(){return!this.getSettings().allowInsertRow}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="row_above"},40041:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(43181);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Search=i.Search},40059:(e,t,o)=>{"use strict";o(49463)("flatMap")},40492:(e,t,o)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=n;var i=o(4138);const s=t.VALIDATOR_TYPE="autocomplete";function n(e,t){let o=e;null==o&&(o=""),this.allowEmpty&&""===o?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(o,r(o,t)):r(o,t)(this.source):t(!0)}function r(e,t){const o=e;return function(e){let s=!1;for(let t=0,n=e.length;t<n;t++)if((0,i.isObjectEqual)(o,e[t])){s=!0;break}t(s)}}n.VALIDATOR_TYPE=s},40550:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByRowHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=i.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,n.col)),t.markEndSource()}}}},40591:(e,t,o)=>{"use strict";t.__esModule=!0,t.sort=function(e,t){const o=(0,i.getRootComparator)(t);for(var s=arguments.length,n=new Array(s>2?s-2:0),r=2;r<s;r++)n[r-2]=arguments[r];e.sort(o(...n))};var i=o(32234);t.DO_NOT_SWAP=0,t.FIRST_BEFORE_SECOND=-1,t.FIRST_AFTER_SECOND=1},40761:(e,t,o)=>{"use strict";var i=o(2382),s=o(33266),n=TypeError,r=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},40920:(e,t,o)=>{"use strict";t.__esModule=!0,t._dataToHTML=function(e){const t=e.length,o=["<table>"];for(let s=0;s<t;s+=1){const n=e[s],r=n.length,a=[];0===s&&o.push("<tbody>");for(let e=0;e<r;e+=1){const t=n[e],o=(0,i.isEmpty)(t)?"":t.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20{2,}/gi,e=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(e.length-1)} </span>`).replace(/\t/gi,"&#9;");a.push(`<td>${o}</td>`)}o.push("<tr>",...a,"</tr>"),s+1===t&&o.push("</tbody>")}return o.push("</table>"),o.join("")},t.htmlToGridSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const o={},i=t.createDocumentFragment(),r=t.createElement("div");i.appendChild(r);let a=e;if("string"==typeof a){const e=a.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,e=>{const t=e.match(/<td\b[^>]*?>/g)[0];return`${t}${e.substring(t.length,e.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(/<p.*?>/g,"\n").replace("\n","").replaceAll(/<\/(.*)>\s+$/gm,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^&nbsp;$/gm,"")}</td>`});r.insertAdjacentHTML("afterbegin",`${e}`),a=r.querySelector("table")}if(!a||!function(e){return"TABLE"===(e&&e.nodeName||"")}(a))return;const l=r.querySelector('meta[name$="enerator"]'),h=null!==a.querySelector("tbody th"),c=a.querySelector("tr"),u=c?Array.from(c.cells).reduce((e,t)=>e+t.colSpan,0)-(h?1:0):0,d=a.tFoot&&Array.from(a.tFoot.rows)||[],g=[];let f=!1,p=0,m=0;if(a.tHead){const e=Array.from(a.tHead.rows).filter(e=>{const t=null!==e.querySelector("td");return t&&g.push(e),!t});p=e.length,f=p>0,p>1?o.nestedHeaders=Array.from(e).reduce((e,t)=>{const o=Array.from(t.cells).reduce((e,t,o)=>{if(h&&0===o)return e;const{colSpan:i,innerHTML:s}=t,n=i>1?{label:s,colspan:i}:s;return e.push(n),e},[]);return e.push(o),e},[]):f&&(o.colHeaders=Array.from(e[0].children).reduce((e,t,o)=>(h&&0===o||e.push(t.innerHTML),e),[]))}g.length&&(o.fixedRowsTop=g.length);d.length&&(o.fixedRowsBottom=d.length);const w=[...g,...Array.from(a.tBodies).reduce((e,t)=>(e.push(...Array.from(t.rows)),e),[]),...d];m=w.length;const C=new Array(m);for(let e=0;e<m;e++)C[e]=new Array(u);const v=[],y=[];for(let e=0;e<m;e++){const t=w[e],o=Array.from(t.cells),i=o.length;for(let t=0;t<i;t++){const i=o[t],{nodeName:r,innerHTML:a,rowSpan:h,colSpan:c}=i,u=C[e].findIndex(e=>void 0===e);if("TD"===r){if(h>1||c>1){for(let t=e;t<e+h;t++)if(t<m)for(let e=u;e<u+c;e++)C[t][e]=null;const t=i.getAttribute("style");t&&t.includes("mso-ignore:colspan")||v.push({col:u,row:e,rowspan:h,colspan:c})}let t="";t=l&&/excel/gi.test(l.content)?a.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,"\r\n"):a.replace(/<br(\s*|\/)>[\r\n]?/gim,"\r\n"),C[e][u]=t.replace(n,e=>s[e])}else y.push(a)}}v.length&&(o.mergeCells=v);y.length&&(o.rowHeaders=y);C.length&&(o.data=C);return o},t.instanceToHTML=function(e){const t=e.hasColHeaders(),o=e.hasRowHeaders(),s=[t?-1:0,o?-1:0,e.countRows()-1,e.countCols()-1],n=e.getData(...s),r=n.length,a=r>0?n[0].length:0,l=["<table>","</table>"],h=t?["<thead>","</thead>"]:[],c=["<tbody>","</tbody>"],u=o?1:0,d=t?1:0;for(let s=0;s<r;s+=1){const r=t&&0===s,l=[];for(let t=0;t<a;t+=1){const a=!r&&o&&0===t;let h="";if(r)h=`<th>${e.getColHeader(t-u)}</th>`;else if(a)h=`<th>${e.getRowHeader(s-d)}</th>`;else{const o=n[s][t],{hidden:r,rowspan:a,colspan:l}=e.getCellMeta(s-d,t-u);if(!r){const e=[];if(a&&e.push(`rowspan="${a}"`),l&&e.push(`colspan="${l}"`),(0,i.isEmpty)(o))h=`<td ${e.join(" ")}></td>`;else{const t=o.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,"<br>\r\n").replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");h=`<td ${e.join(" ")}>${t}</td>`}}}l.push(h)}const g=["<tr>",...l,"</tr>"].join("");r?h.splice(1,0,g):c.splice(-1,0,g)}return l.splice(1,0,h.join(""),c.join("")),l.join("")},o(99356),o(26648),o(34478),o(29810),o(940),o(33098);var i=o(7886);const s={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">"},n=new RegExp(Object.keys(s).map(e=>`(${e})`).join("|"),"gi")},40929:(e,t,o)=>{"use strict";t.__esModule=!0,t.isChrome=function(){return r.chrome.value},t.isChromeWebKit=function(){return r.chromeWebKit.value},t.isEdge=function(){return r.edge.value},t.isEdgeWebKit=function(){return r.edgeWebKit.value},t.isFirefox=function(){return r.firefox.value},t.isFirefoxWebKit=function(){return r.firefoxWebKit.value},t.isIOS=function(){return a.ios.value},t.isIpadOS=function(){let{maxTouchPoints:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator;return e>2&&a.mac.value},t.isLinuxOS=function(){return a.linux.value},t.isMacOS=function(){return a.mac.value},t.isMobileBrowser=function(){return r.mobile.value},t.isSafari=function(){return r.safari.value},t.isWindowsOS=function(){return a.win.value},t.setBrowserMeta=l,t.setPlatformMeta=h;var i=o(4138),s=o(79035);const n=e=>{const t={value:!1,test:(o,i)=>{t.value=e(o,i)}};return t},r={chrome:n((e,t)=>/Chrome/.test(e)&&/Google/.test(t)),chromeWebKit:n(e=>/CriOS/.test(e)),edge:n(e=>/Edge/.test(e)),edgeWebKit:n(e=>/EdgiOS/.test(e)),firefox:n(e=>/Firefox/.test(e)),firefoxWebKit:n(e=>/FxiOS/.test(e)),mobile:n(e=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)),safari:n((e,t)=>/Safari/.test(e)&&/Apple Computer/.test(t))},a={mac:n(e=>/^Mac/.test(e)),win:n(e=>/^Win/.test(e)),linux:n(e=>/^Linux/.test(e)),ios:n(e=>/iPhone|iPad|iPod/i.test(e))};function l(){let{userAgent:e=navigator.userAgent,vendor:t=navigator.vendor}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(r,o=>{let{test:i}=o;i(e,t)})}function h(){let{platform:e=navigator.platform}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.objectEach)(a,t=>{let{test:o}=t;o(e)})}(0,s.isCSR)()&&(l(),h())},40981:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},41145:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_after";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)>=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_AFTER,inputsCount:1,showOperators:!0})},41462:(e,t,o)=>{"use strict";var i=o(31520).has;e.exports=function(e){return i(e),e}},41595:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133),o(31143),o(940);var s=i(o(24300)),n=o(26808),r=o(25854),a=o(7120),l=o(58604),h=o(7886),c=o(32040),u=o(24879),d=o(12516),g=o(9013),f=o(2744),p=o(23228),m=i(o(81045));function w(e,t,o){C(e,t),t.set(e,o)}function C(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function v(e,t,o){return e.set(S(e,t),o),o}function y(e,t){return e.get(S(e,t))}function S(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="formulas",R=t.SETTING_KEYS=["maxRows","maxColumns","language"],b=t.PLUGIN_PRIORITY=260;p.Hooks.getSingleton().register("afterNamedExpressionAdded"),p.Hooks.getSingleton().register("afterNamedExpressionRemoved"),p.Hooks.getSingleton().register("afterSheetAdded"),p.Hooks.getSingleton().register("afterSheetRemoved"),p.Hooks.getSingleton().register("afterSheetRenamed"),p.Hooks.getSingleton().register("afterFormulasValuesUpdate");const _=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakSet;class A extends n.BasePlugin{constructor(){var e,t,o;super(...arguments),e=this,C(t=this,o=O),o.add(t),w(this,T,!1),w(this,M,!1),w(this,I,[["valuesUpdated",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,q).call(e,...o)}],["namedExpressionAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Q).call(e,...o)}],["namedExpressionRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,J).call(e,...o)}],["sheetAdded",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,Z).call(e,...o)}],["sheetRenamed",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,ee).call(e,...o)}],["sheetRemoved",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return S(O,e,te).call(e,...o)}]]),(0,s.default)(this,"staticRegister",(0,r.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return b}static get SETTING_KEYS(){return[E,...R]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==e&&S(O,this,N).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,x).call(t,...o)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,D).call(t,...o)}),this.addHook("modifyData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,L).call(t,...o)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,V).call(t,...o)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,P).call(t,...o)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,F).call(t,...o)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,W).call(t,...o)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,B).call(t,...o)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,U).call(t,...o)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,z).call(t,...o)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,G).call(t,...o)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,Y).call(t,...o)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,j).call(t,...o)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,$).call(t,...o)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,K).call(t,...o)}),this.indexSyncer=new m.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,o,i)=>{this.rowAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("beforeColumnMove",(e,t,o,i)=>{this.columnAxisSyncer.storeMovesInformation(e,t,i)}),this.hot.addHook("afterRowMove",(e,t,o,i,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("afterColumnMove",(e,t,o,i,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(i,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,k).call(t,...o)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,X).call(t,...o)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return S(O,t,H).call(t,...o)}),y(I,this).forEach(e=>{let[t,o]=e;return this.engine.on(t,o)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){y(I,this).forEach(e=>{let[t,o]=e;return this.engine.off(t,o)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,d.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,d.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const o=this.hot.getSettings()[E];if((0,h.isDefined)(o)&&(0,h.isDefined)(o.sheetName)&&o.sheetName!==this.sheetName&&this.switchSheet(o.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[E].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());S(O,this,N).call(this,t)}}super.updatePlugin(e)}destroy(){y(I,this).forEach(e=>{var t;let[o,i]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(o,i)}),v(I,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,h.isDefined)(t)&&!(0,g.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const o=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(o),t),o}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(O,this,N).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(E)}.switchSheet`)}getCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const i=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==i&&null!==s?this.engine.getCellType({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:o,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=new Set;e.forEach(e=>{var t;const i=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==i&&(o.has(i)||o.add(i))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,i)=>{var s;(t||i!==this.sheetId)&&o.has(i)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:o,col:i,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,h.isDefined)(s)?`${s}:${o}x${i}`:""},o=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var i,s;const{row:n,col:r}=null!==(i=e.address)&&void 0!==i?i:{};if(!1===(0,h.isDefined)(n)||!1===(0,h.isDefined)(r)||n>=this.hot.countRows()||r>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!o.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(n,r),e.getCellMeta(n,r),()=>{})}})}syncChangeWithEngine(e,t,o){const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(i))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(i)}`);const s=this.hot.getCellMeta(e,t);return(0,u.isDate)(o,s.type)&&((0,u.isDateValid)(o,s.dateFormat)?o=(0,u.getDateInHfFormat)(o,s.dateFormat):!1===(0,u.isFormula)(o)&&(o=`'${o}`)),this.engine.setCellContents(i,o)}}function N(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,o){const i=this.hot.propToCol(o);if(this.isFormulaCellType(t,i)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId},o=this.hot.getCellMeta(t,i);let s=this.engine.getCellValue(e);return"date"===o.type&&(0,l.isNumeric)(s)&&(s=(0,u.getDateFromExcelDate)(s,o.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function H(e,t,o){const{row:i,col:s}=t.getTopStartCorner(),{row:n,col:r}=t.getBottomEndCorner(),{row:a,col:l}=o.getTopStartCorner(),{row:h,col:c}=o.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(c),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const f=this.engine.getFillRangeData(d,g),{row:p,col:m}=d.start,{row:w,col:C}=d.end,v=w-p+1,y=C-m+1;for(let e=0;e<f.length;e+=1)for(let t=0;t<f[e].length;t+=1){const o=f[e][t],i=p+e%v,s=m+t%y,n=this.hot.getCellMeta(i,s);(0,u.isDate)(o,n.type)&&(o.startsWith("'")?f[e][t]=o.slice(1):!1===this.isFormulaCellType(i,s,this.sheetId)&&(f[e][t]=(0,u.getDateInHotFormat)(o,n.dateFormat)))}return f}function x(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(E))||v(M,this,(0,h.isUndefined)(this.hot.getSettings().data))}function k(){if(y(M,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach((t,o)=>{t.forEach((t,i)=>{const s=this.hot.getCellMeta(o,i,{skipMetaExtension:!0}),n=s.dateFormat;(0,u.isDate)(t,s.type)&&((0,u.isDateValid)(t,n)?e[o][i]=(0,u.getDateInHfFormat)(t,n):t.startsWith("=")||(e[o][i]=`'${t}`))})}),v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}function D(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(o.includes((0,f.toUpperCaseFirst)(E)))return;const i=(0,c.setupSheet)(this.engine,this.hot.getSettings()[E].sheetName);if(S(O,this,N).call(this,i),"updateSettings"!==o)if(y(M,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){v(T,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),v(T,this,!1)}}}function L(e,t,o,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(o.value=(0,u.unescapeFormulaExpression)(o.value));const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let r=this.engine.getCellValue(n);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(r)&&(r=(0,u.getDateFromExcelDate)(r,a.dateFormat)),o.value="object"==typeof r&&null!==r?r.value:r}function V(e,t,o,i){if("get"!==i||y(T,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),n=this.hot.propToCol(t);if(null===s||null===n)return;const r=this.getCellType(s,n);if("VALUE"===r||"EMPTY"===r)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId};o.value=this.engine.getCellSerialized(l)}function W(e,t){if(_(t))return;const o=[],i=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(r),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,r,n):o.push([t,r,n]),i.push({address:h})})});o.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{o.forEach(e=>{let[t,o,i]=e;this.syncChangeWithEngine(t,o,i)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,i)}function F(e,t){if(_(t))return;const o=[],i=[];e.forEach(e=>{let[t,s,,n]=e;const r=this.hot.propToCol(s);if(!(0,l.isNumeric)(r))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(r),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(i.push({address:h}),o.push(...this.engine.setCellContents(h,n))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(o),this.validateDependentCells(o,i)}function B(e,t){let o=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[o,t]))return!1}function U(e,t){let o=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(o=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[o,t]))return!1}function Y(e,t,o){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function j(e,t,o){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(o).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function z(e,t,o){if(_(o))return;const i=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function G(e,t,o){if(_(o))return;const i=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(i)}function $(e,t,o,i){if(_(i))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function K(e,t,o,i){if(_(i))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),n=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(n)}function X(e,t,o){var i;v(T,this,!0);const s=this.hot.getSourceDataArray(o,0,o+((null===(i=t.__children)||void 0===i?void 0:i.length)||0),this.hot.countSourceCols());v(T,this,!1),s.forEach((e,t)=>{e.forEach((e,i)=>{this.engine.setCellContents({col:i,row:o+t,sheet:this.sheetId},[[e]])})})}function q(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Q(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function J(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function Z(e){this.hot.runHooks("afterSheetAdded",e)}function ee(e,t){S(O,this,N).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=A},41691:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=s(o,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){const t=n(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.default=r},42207:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(32813),r=o(78966),a=o(47802),l=o(4138),h=o(13390);const c="handsontableEditor",u=t.EDITOR_TYPE="handsontable";class d extends n.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return u}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,r.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n);const r=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const o=this.getSourceData(t.row,t.col);void 0!==o&&r.setValue(o),r.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,n.handsontable),this.htOptions=a}beginEditing(e,t){const o=this.hot.getSettings().onBeginEditing;o&&!1===o()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,o){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedActive()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,o)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;o=Math.max(o+t,0)}const i=this.getDropdownHeight(),s=e.getWorkspaceHeight()-o-t.height,n=i>s&&o>s+t.height;return n?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:n,spaceAbove:o,spaceBelow:s}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let o=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;o=Math.max(o+t,0)}const i=this.getDropdownWidth(),s=e.getWorkspaceWidth()-o+t.width,n=i>s&&o>s;return n?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:n,spaceInlineStart:o,spaceInlineEnd:s}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:c,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},o=(e,t)=>{const o=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>o.countRows()-1?o.deselectCell():o.selectCell(e,0),o.getData().length))return t.preventDefault(),(0,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let i,s;return!t.getSelectedActive()&&this.isFlippedVertically?i=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],i=Math.max(0,s-1)):(s=t.getSelectedActive()[0],i=s-1)),o(i,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let i,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)i=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],i=Math.min(e,s+1)}}else i=0;return o(i,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(c)}}t.HandsontableEditor=d},42299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(4138),r=o(28520),a=i(o(86491));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,n.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,n.extend)(this.meta,e),(0,r.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},42326:(e,t,o)=>{"use strict";var i=o(19098),s=o(19451),n=o(66431),r=o(62283).indexOf,a=o(48099),l=i([].push);e.exports=function(e,t){var o,i=n(e),h=0,c=[];for(o in i)!s(a,o)&&s(i,o)&&l(c,o);for(;t.length>h;)s(i,o=t[h++])&&(~r(c,o)||l(c,o));return c}},42328:(e,t,o)=>{"use strict";var i=o(19098),s=o(70792);e.exports=function(e,t,o){try{return i(s(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}}},42559:(e,t,o)=>{"use strict";var i=o(15105),s=o(19451),n=o(20637),r=o(14815),a=o(79937),l=o(31622),h=o(17374),c=o(59549),u=o(82497),d=o(92434),g=o(22849),f=o(2382),p=o(33973);e.exports=function(e,t,o,m){var w="stackTraceLimit",C=m?2:1,v=e.split("."),y=v[v.length-1],S=i.apply(null,v);if(S){var E=S.prototype;if(!p&&s(E,"cause")&&delete E.cause,!o)return S;var R=i("Error"),b=t(function(e,t){var o=u(m?t:e,void 0),i=m?new S(e):new S;return void 0!==o&&n(i,"message",o),g(i,b,i.stack,2),this&&r(E,this)&&c(i,this,b),arguments.length>C&&d(i,arguments[C]),i});if(b.prototype=E,"Error"!==y?a?a(b,R):l(b,R,{name:!0}):f&&w in S&&(h(b,S,w),h(b,S,"prepareStackTrace")),l(b,S),!p)try{E.name!==y&&n(E,"name",y),E.constructor=b}catch(e){}return b}}},42595:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(18385);t.EDITOR_TYPE=i.EDITOR_TYPE,t.NumericEditor=i.NumericEditor},42888:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(3715),r=o(34822),a=o(86092),l=o(58226),h=o(30386),c=i(o(59468)),u=o(94576),d=o(40929),g=o(78966),f=o(47802),p=o(81761),m=o(7886),w=o(4138),C=i(o(18805)),v=o(1880),y=o(72609);function S(e,t,o){(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,o)}function E(e,t,o){return e.set(b(e,t),o),o}function R(e,t){return e.get(b(e,t))}function b(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var _=new WeakMap,T=new WeakMap,M=new WeakMap;class I{get tableBorderWidth(){return void 0===R(M,this)&&this.hotMenu&&E(M,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),R(M,this)}constructor(e,t){var o=this;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new c.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),S(this,_,void 0),S(this,T,void 0),S(this,M,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new n.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,g.removeClass)(this.options.container,/ht-theme-.*/g),(0,g.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,g.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return R(_,this)}getKeyboardShortcutsCtrl(){return R(T,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedActive()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedActive())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,p.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let o=!1,i=(0,u.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(o=!0),(0,h.isItemHidden)(e,this.hot)));if(i.length<1&&!o)i.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===i.length)return;i=(0,h.filterSeparators)(i,l.SEPARATOR);let s=!1;const n={data:i,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,v.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?R(_,this).setCurrentPage(t.row):R(_,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,o)=>{this.isAllSubMenusClosed()?e(o.row):this.openSubMenu(o.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,o,i,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,f.isRightClick)(e)||!s||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,n),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),E(_,this,(0,r.createMenuNavigator)(this.hotMenu)),E(T,this,(0,a.createKeyboardShortcutsCtrl)(this)),R(T,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(R(_,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedActive();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const o=this.hotMenu.getSourceDataAtRow(e),i=new I(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return i.setMenuItems(o.submenu.items),i.open(),i.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=i,this.hot.getSettings().ariaTags&&(0,g.setAttribute)(t,[(0,y.A11Y_EXPANDED)(!0)]),i}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];if(o){o.destroy(),delete this.hotSubMenus[t.key];const i=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,g.setAttribute)(i,[(0,y.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,u.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const o=this.hot.getSelectedRange(),i=o?(0,h.normalizeSelection)(o):[];this.runLocalHooks("executeCommand",t.key,i,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,i,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,o=e.hider.style,i=e.holder.style,s=parseInt(o.width,10),n=(0,u.arrayReduce)(t,(e,t,o)=>{const i=this.hotMenu.getCell(o,0)?(0,g.outerHeight)(this.hotMenu.getCell(o,0)):0;return e+(t.name===l.SEPARATOR?1:i)},0);this.hotMenu.stylesHandler.isClassicTheme()?(i.width=`${s+3}px`,i.height=`${n+3}px`):(i.width=`${s}px`,i.height=`${n}px`),o.height=i.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let o,i=e;return i&&((0,p.isFunction)(i)&&(i=i.call(this.hot),i=null===i||(0,m.isUndefined)(i)?"":i.toString()),i=i.replace(/[^A-Za-z0-9]/g,"_"),i=`${this.options.className}Sub_${i}`,o=t.querySelector(`.${this.options.className}.${i}`)),o||(o=t.createElement("div"),(0,g.addClass)(o,`htMenu handsontable ${this.options.className}`),i&&(0,g.addClass)(o,i),this.options.container.appendChild(o)),o}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,g.setAttribute)(this.hotMenu.rootElement,[(0,y.A11Y_MENU)(),(0,y.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,g.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,g.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,g.hasClass)(e.target,"htCore")&&(0,g.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=I,(0,w.mixin)(I,C.default)},43181:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(7886);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,o,i,s){e.getCellMeta(t,o).isSearchResult=s},f=function(e,t,o){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(o.locale).indexOf(e.toLocaleLowerCase(o.locale)))};var p=new WeakSet;class m extends n.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",f),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[u]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[u];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return c(p,e,w).call(e,...o)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const i=this.hot.countRows(),s=this.hot.countCols(),n=[],r=this.hot;return(0,a.rangeEach)(0,i-1,i=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(i,s),l=this.hot.getCellMeta(i,s),h=l.search.callback||t,c=(l.search.queryMethod||o)(e,a,l);if(c){const e={row:i,col:s,data:a};n.push(e)}h&&h(r,i,s,a,c)})}),n}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,r.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,o,i,s,n){const r=n.className||[];let a=[];"string"==typeof r?a=r.split(" "):a.push(...r),this.isEnabled()&&n.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),n.className=a.join(" ")}t.Search=m},43290:(e,t,o)=>{"use strict";var i=o(60606),s=o(19098);e.exports=function(e){if("Function"===i(e))return s(e)}},43502:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(5085);var s=i(o(50236)),n=o(88422),r=o(5714),a=o(23228),l=o(63061),h=o(61654),c=o(5997),u=o(67347),d=o(13743);function g(e,t){const o=new s.default(e,t||{},n.rootInstanceSymbol);return o.init(),o}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(c.TextCellType),g.editors={BaseEditor:u.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,n.rootInstanceSymbol)},g.DefaultSettings=(0,r.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="12/09/2025 10:28:24",g.version="16.1.0-next-6b799e4-20250912",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},43605:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{currentSortState:t,newSortState:o}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=o}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,o,i)=>{i&&t.done(()=>new r({currentSortState:e,newSortState:o}))})}undo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting"),s=i.isEnabled()?i:o;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const o=e.getPlugin("columnSorting"),i=e.getPlugin("multiColumnSorting");(i.isEnabled()?i:o).sort(this.nextSortState),t()}}t.ColumnSortAction=r},43619:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},43713:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(47802),a=o(78966);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="dragToScroll",u=t.PLUGIN_PRIORITY=100;var d=new WeakSet;class g extends n.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"boundaries",null),(0,s.default)(this,"callback",null),(0,s.default)(this,"listening",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[c]}enablePlugin(){this.enabled||(this.addHook("afterOnCellMouseDown",e=>h(d,this,f).call(this,e)),this.addHook("afterOnCellCornerMouseDown",e=>h(d,this,f).call(this,e)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.unregisterEvents(),super.disablePlugin()}setBoundaries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{left:0,right:this.hot.rootWindow.innerWidth,top:0,bottom:this.hot.rootWindow.innerHeight};this.boundaries=e}setCallback(e){this.callback=e}check(e,t){let o=0,i=0;t<this.boundaries.top?i=t-this.boundaries.top:t>this.boundaries.bottom&&(i=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,i)}listen(){this.listening=!0}unlisten(){this.listening=!1}isListening(){return this.listening}registerEvents(){const{rootWindow:e}=this.hot;let t=e;for(;t;)this.eventManager.addEventListener(t.document,"contextmenu",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mouseup",()=>this.unlisten()),this.eventManager.addEventListener(t.document,"mousemove",e=>this.onMouseMove(e)),t=(0,a.getParentWindow)(t)}unregisterEvents(){this.eventManager.clear()}onMouseMove(e){this.isListening()&&this.check(e.clientX,e.clientY)}destroy(){super.destroy()}}function f(e){if((0,r.isRightClick)(e))return;const t=this.hot.view._wt.wtOverlays.topOverlay.mainTableScrollableElement;this.setBoundaries(t!==this.hot.rootWindow?t.getBoundingClientRect():void 0),this.setCallback((e,o)=>{var i,s;const n=null!==(i=t.scrollLeft)&&void 0!==i?i:t.scrollX,r=null!==(s=t.scrollTop)&&void 0!==s?s:t.scrollY;t.scroll(n+50*Math.sign(e),r+20*Math.sign(o))}),this.listen()}t.DragToScroll=g},44013:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){const e=this.getRenderedRowsCount();return 0===e?-1:this.wtSettings.getSetting("totalRows")-e},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return 0===this.getRenderedRowsCount()?-1:this.wtSettings.getSetting("totalRows")-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsBottom"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount:()=>0};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsBottom",{writable:!1,enumerable:!1});t.default=s},44031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=i(o(8625)),a=i(o(39710));function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeColumnFreeze"),n.Hooks.getSingleton().register("afterColumnFreeze"),n.Hooks.getSingleton().register("beforeColumnUnfreeze"),n.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",g=t.PLUGIN_PRIORITY=110;var f=new WeakMap,p=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=p),t.add(e),function(e,t,o){l(e,t),t.set(e,o)}(this,f,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>u(p,this,w).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>u(p,this,C).call(this,e,t)),super.enablePlugin())}disablePlugin(){c(f,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,o)&&(o&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,o))}unfreezeColumn(e){const t=this.hot.getSettings(),o=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(f,this)||c(f,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,o)&&(o&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,o))}}function w(e){e.items.push({name:"---------"},(0,r.default)(this),(0,a.default)(this))}function C(e,t){if(h(f,this)){const o=this.hot.getSettings().fixedColumnsStart;if(t<o)return!1;if(e.some(e=>e<o))return!1}}t.ManualColumnFreeze=m},44251:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(34651);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Loading=i.Loading},44270:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(28666);class s extends i.BaseTransformation{calculateOffset(){const e=this.getCurrentSelection(),{row:t,col:o}=e.getOuterTopStartCorner(),i=this.tableApi.countRenderableColumnsInRange(0,o-1),s=this.tableApi.countRenderableRowsInRange(0,t-1),n=e.highlight.isHeader(),r=n?Math.abs(o):0,a=n?Math.abs(t):0;return{x:o<0?r:-i,y:t<0?a:-s}}countRenderableRows(){const e=this.getCurrentSelection();return this.tableApi.countRenderableRowsInRange(0,e.getOuterBottomEndCorner().row)}countRenderableColumns(){const e=this.getCurrentSelection();return this.tableApi.countRenderableColumnsInRange(0,e.getOuterBottomEndCorner().col)}transformEnd(){throw new Error("`transformEnd` is not valid for focus selection use `transformStart` instead")}shouldSwitchSelectionLayer(){return!0}}t.FocusTransformation=s},44423:(e,t,o)=>{"use strict";var i=o(2382),s=o(60072),n=o(98363),r=o(90501),a=o(66431),l=o(61674);t.f=i&&!s?Object.defineProperties:function(e,t){r(e);for(var o,i=a(t),s=l(t),h=s.length,c=0;h>c;)n.f(e,o=s[c++],i[o]);return e}},44481:(e,t)=>{"use strict";t.__esModule=!0;const o=t.CONTEXT_MENU_ITEMS_NAMESPACE="ContextMenu:items",i=(t.CONTEXTMENU_ITEMS_NO_ITEMS=`${o}.noItems`,t.CONTEXTMENU_ITEMS_ROW_ABOVE=`${o}.insertRowAbove`,t.CONTEXTMENU_ITEMS_ROW_BELOW=`${o}.insertRowBelow`,t.CONTEXTMENU_ITEMS_INSERT_LEFT=`${o}.insertColumnOnTheLeft`,t.CONTEXTMENU_ITEMS_INSERT_RIGHT=`${o}.insertColumnOnTheRight`,t.CONTEXTMENU_ITEMS_REMOVE_ROW=`${o}.removeRow`,t.CONTEXTMENU_ITEMS_REMOVE_COLUMN=`${o}.removeColumn`,t.CONTEXTMENU_ITEMS_UNDO=`${o}.undo`,t.CONTEXTMENU_ITEMS_REDO=`${o}.redo`,t.CONTEXTMENU_ITEMS_READ_ONLY=`${o}.readOnly`,t.CONTEXTMENU_ITEMS_CLEAR_COLUMN=`${o}.clearColumn`,t.CONTEXTMENU_ITEMS_COPY=`${o}.copy`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS=`${o}.copyWithHeaders`,t.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS=`${o}.copyWithGroupHeaders`,t.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY=`${o}.copyHeadersOnly`,t.CONTEXTMENU_ITEMS_CUT=`${o}.cut`,t.CONTEXTMENU_ITEMS_FREEZE_COLUMN=`${o}.freezeColumn`,t.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN=`${o}.unfreezeColumn`,t.CONTEXTMENU_ITEMS_MERGE_CELLS=`${o}.mergeCells`,t.CONTEXTMENU_ITEMS_UNMERGE_CELLS=`${o}.unmergeCells`,t.CONTEXTMENU_ITEMS_ADD_COMMENT=`${o}.addComment`,t.CONTEXTMENU_ITEMS_EDIT_COMMENT=`${o}.editComment`,t.CONTEXTMENU_ITEMS_REMOVE_COMMENT=`${o}.removeComment`,t.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT=`${o}.readOnlyComment`,t.CONTEXTMENU_ITEMS_ALIGNMENT=`${o}.align`,t.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT=`${o}.align.left`,t.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER=`${o}.align.center`,t.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT=`${o}.align.right`,t.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY=`${o}.align.justify`,t.CONTEXTMENU_ITEMS_ALIGNMENT_TOP=`${o}.align.top`,t.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE=`${o}.align.middle`,t.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM=`${o}.align.bottom`,t.CONTEXTMENU_ITEMS_BORDERS=`${o}.borders`,t.CONTEXTMENU_ITEMS_BORDERS_TOP=`${o}.borders.top`,t.CONTEXTMENU_ITEMS_BORDERS_RIGHT=`${o}.borders.right`,t.CONTEXTMENU_ITEMS_BORDERS_BOTTOM=`${o}.borders.bottom`,t.CONTEXTMENU_ITEMS_BORDERS_LEFT=`${o}.borders.left`,t.CONTEXTMENU_ITEMS_REMOVE_BORDERS=`${o}.borders.remove`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD=`${o}.nestedHeaders.insertChildRow`,t.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD=`${o}.nestedHeaders.detachFromParent`,t.CONTEXTMENU_ITEMS_HIDE_COLUMN=`${o}.hideColumn`,t.CONTEXTMENU_ITEMS_SHOW_COLUMN=`${o}.showColumn`,t.CONTEXTMENU_ITEMS_HIDE_ROW=`${o}.hideRow`,t.CONTEXTMENU_ITEMS_SHOW_ROW=`${o}.showRow`,t.FILTERS_NAMESPACE="Filters:"),s=t.FILTERS_CONDITIONS_NAMESPACE=`${i}conditions`,n=(t.FILTERS_CONDITIONS_NONE=`${s}.none`,t.FILTERS_CONDITIONS_EMPTY=`${s}.isEmpty`,t.FILTERS_CONDITIONS_NOT_EMPTY=`${s}.isNotEmpty`,t.FILTERS_CONDITIONS_EQUAL=`${s}.isEqualTo`,t.FILTERS_CONDITIONS_NOT_EQUAL=`${s}.isNotEqualTo`,t.FILTERS_CONDITIONS_BEGINS_WITH=`${s}.beginsWith`,t.FILTERS_CONDITIONS_ENDS_WITH=`${s}.endsWith`,t.FILTERS_CONDITIONS_CONTAINS=`${s}.contains`,t.FILTERS_CONDITIONS_NOT_CONTAIN=`${s}.doesNotContain`,t.FILTERS_CONDITIONS_BY_VALUE=`${s}.byValue`,t.FILTERS_CONDITIONS_GREATER_THAN=`${s}.greaterThan`,t.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL=`${s}.greaterThanOrEqualTo`,t.FILTERS_CONDITIONS_LESS_THAN=`${s}.lessThan`,t.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL=`${s}.lessThanOrEqualTo`,t.FILTERS_CONDITIONS_BETWEEN=`${s}.isBetween`,t.FILTERS_CONDITIONS_NOT_BETWEEN=`${s}.isNotBetween`,t.FILTERS_CONDITIONS_AFTER=`${s}.after`,t.FILTERS_CONDITIONS_BEFORE=`${s}.before`,t.FILTERS_CONDITIONS_TODAY=`${s}.today`,t.FILTERS_CONDITIONS_TOMORROW=`${s}.tomorrow`,t.FILTERS_CONDITIONS_YESTERDAY=`${s}.yesterday`,t.FILTERS_DIVS_FILTER_BY_CONDITION=`${i}labels.filterByCondition`,t.FILTERS_DIVS_FILTER_BY_VALUE=`${i}labels.filterByValue`,t.FILTERS_LABELS_CONJUNCTION=`${i}labels.conjunction`,t.FILTERS_LABELS_DISJUNCTION=`${i}labels.disjunction`,t.FILTERS_VALUES_BLANK_CELLS=`${i}values.blankCells`,t.FILTERS_BUTTONS_SELECT_ALL=`${i}buttons.selectAll`,t.FILTERS_BUTTONS_CLEAR=`${i}buttons.clear`,t.FILTERS_BUTTONS_OK=`${i}buttons.ok`,t.FILTERS_BUTTONS_CANCEL=`${i}buttons.cancel`,t.FILTERS_BUTTONS_PLACEHOLDER_SEARCH=`${i}buttons.placeholder.search`,t.FILTERS_BUTTONS_PLACEHOLDER_VALUE=`${i}buttons.placeholder.value`,t.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE=`${i}buttons.placeholder.secondValue`,t.PAGINATION_NAMESPACE="Pagination:"),r=(t.PAGINATION_SECTION=`${n}section.pagination`,t.PAGINATION_PAGE_SIZE_AUTO=`${n}.pageSize.auto`,t.PAGINATION_PAGE_SIZE_SECTION=`${n}section.pageSize`,t.PAGINATION_COUNTER_SECTION=`${n}section.counter`,t.PAGINATION_NAV_SECTION=`${n}section.navigation`,t.PAGINATION_FIRST_PAGE=`${n}firstPage`,t.PAGINATION_PREV_PAGE=`${n}prevPage`,t.PAGINATION_NEXT_PAGE=`${n}nextPage`,t.PAGINATION_LAST_PAGE=`${n}lastPage`,t.CHECKBOX_RENDERER_NAMESPACE="CheckboxRenderer:"),a=(t.CHECKBOX_CHECKED=`${r}checked`,t.CHECKBOX_UNCHECKED=`${r}unchecked`,t.LOADING_NAMESPACE="Loading:");t.LOADING_TITLE=`${a}title`},44624:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(82515),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(90643),o(31143);var i=o(79521);function s(e,t,o){n(e,t),t.set(e,o)}function n(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function r(e,t,o){return e.set(l(e,t),o),o}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakSet;function g(e){a(h,this).set(e,[]),a(c,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;n(e=this,t=d),t.add(e),s(this,h,new Map),s(this,c,new Map),s(this,u,new Set),i.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),i.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e);if(s.find(e=>e.callback===t))return;const n=Number.isInteger(o.orderIndex)?o.orderIndex:0,r=!!o.runOnce,c=!!o.initialHook;let f=!1;if(c){const e=s.find(e=>e.initialHook);e&&(e.callback=t,f=!0)}if(!f){s.push({callback:t,orderIndex:n,runOnce:r,initialHook:c,skip:!1});let o=a(u,this).has(e);o||0===n||(o=!0,a(u,this).add(e)),o&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const o=a(h,this).get(e),i=o.find(e=>e.callback===t);if(i){let t=a(c,this).get(e);return i.skip=!0,t+=1,t>100&&(a(h,this).set(e,o.filter(e=>!e.skip)),t=0),a(c,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(c,this).clear(),r(h,this,null),r(c,this,null)}}},44806:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:o,columnIndexMapper:i}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),n=o.getNearestNotHiddenIndex(e.countRows()-s-1,-1),r=i.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},44827:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},44919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s,rowHeight:n}=t;o>=i&&o+n<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=i-s&&(this.startRow-=1),e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||o>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},45007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(76439);t.RENDERER_TYPE=i.RENDERER_TYPE,t.numericRenderer=i.numericRenderer,t.getRenderedValue=i.getRenderedValue},45084:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.areValidSortStates=function(e){if(e.some(e=>!1===function(e){if(!1===(0,n.isObject)(e))return!1;const{column:t,sortOrder:o}=e;return Number.isInteger(t)&&[u,d].includes(o)}(e)))return!1;const t=e.map(e=>{let{column:t}=e;return t});return new Set(t).size===t.length},t.createDateTimeCompareFunction=function(e,t,o){return function(i,n){const{sortEmptyCells:r}=o;if(i===n)return l.DO_NOT_SWAP;if((0,a.isEmpty)(i))return(0,a.isEmpty)(n)?l.DO_NOT_SWAP:r&&"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND;if((0,a.isEmpty)(n))return r&&"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND;const h=(0,s.default)(i,t),c=(0,s.default)(n,t);return h.isValid()?c.isValid()?c.isAfter(h)?"asc"===e?l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND:c.isBefore(h)?"asc"===e?l.FIRST_AFTER_SECOND:l.FIRST_BEFORE_SECOND:l.DO_NOT_SWAP:l.FIRST_BEFORE_SECOND:l.FIRST_AFTER_SECOND}},t.getHeaderSpanElement=function(e){return e.querySelector(`.${g}`)},t.getNextSortOrder=function(e){if(e===d)return;if(e===u)return d;return u},t.isFirstLevelColumnHeader=function(e,t){if(e<0||!t.parentNode)return!1;const o=t.parentNode.parentNode.childNodes;if(Array.from(o).indexOf(t.parentNode)-o.length!==-1)return!1;return!0},t.warnAboutPluginsConflict=function(e,t){(0,h.warn)(c.toSingleLine`Plugins \`columnSorting\` and \`multiColumnSorting\` should not be enabled simultaneously.\x20
68
68
  Only \`${e}\` will work. The \`${t}\` plugin will remain disabled.`)},t.wasHeaderClickedProperly=function(e,t,o){return-1===e&&t>=0&&!1===(0,r.isRightClick)(o)},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(940),o(81056);var s=i(o(86798)),n=o(4138),r=o(47802),a=o(7886),l=o(70705),h=o(7120),c=o(30738);const u=t.ASC_SORT_STATE="asc",d=t.DESC_SORT_STATE="desc",g=t.HEADER_SPAN_CLASS="colHeader"},45463:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(69213);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Autofill=i.Autofill},45972:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(94576),n=o(58604),r=o(78966),a=i(o(78918)),l=o(72609);class h extends a.default{static get CSS_CLASSES(){return{indicatorContainer:"ht_nestingLevels",parent:"ht_nestingParent",indicator:"ht_nestingLevel",emptyIndicator:"ht_nestingLevel_empty",button:"ht_nestingButton",expandButton:"ht_nestingExpand",collapseButton:"ht_nestingCollapse"}}constructor(e,t){super(e,t),this.dataManager=this.plugin.dataManager,this.collapsingUI=this.plugin.collapsingUI,this.rowHeaderWidthCache=null}appendLevelIndicators(e,t){const o=this.hot.toPhysicalRow(e),i=this.dataManager.getDataObject(o);if(!i)return;const a=this.dataManager.getRowLevel(o),c=t.getElementsByTagName("DIV")[0],u=c.querySelector("span.rowHeader"),d=c.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&c.removeChild(e)}),(0,r.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=u.cloneNode(!0);c.innerHTML="",(0,n.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,r.addClass)(t,h.CSS_CLASSES.emptyIndicator),c.appendChild(t)}),c.appendChild(t)}if(this.dataManager.hasChildren(i)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,r.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,r.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(o)?((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,r.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,r.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,r.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!0)])),c.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let o=11;if(!this.hot.stylesHandler.isClassicTheme()){o=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,o+10*t+25),this.hot.render()}}t.default=h},46337:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(4138),r=o(94576),a=o(58226);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"predefinedItems",(0,a.predefinedItems)()),(0,s.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,n.objectEach)(e,(e,o)=>{let i="";e.name===a.SEPARATOR?(t[a.SEPARATOR]=e,i=a.SEPARATOR):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,t[o]=e,i=e.key):(t[e.key]=e,i=e.key),this.defaultOrderPattern.push(i)}),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];let s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,n.isObject)(s)?(0,n.objectEach)(s,(e,t)=>{let s=o["string"==typeof e?e:t];s||(s=e),(0,n.isObject)(e)?(0,n.extend)(s,e):"string"==typeof s&&(s={name:s}),void 0===s.key&&(s.key=t),i.push(s)}):(0,r.arrayEach)(s,(e,t)=>{let s=o[e];!s&&a.ITEMS.indexOf(e)>=0||(s||(s={name:e,key:`${t}`}),(0,n.isObject)(e)&&(0,n.extend)(s,e),void 0===s.key&&(s.key=t),i.push(s))});return i}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},46367:(e,t,o)=>{"use strict";var i=o(19098),s=o(33266),n=o(44827),r=o(60606),a=o(84677),l=i([].push);e.exports=function(e){if(n(e))return e;if(s(e)){for(var t=e.length,o=[],i=0;i<t;i++){var h=e[i];"string"==typeof h?l(o,h):"number"!=typeof h&&"Number"!==r(h)&&"String"!==r(h)||l(o,a(h))}var c=o.length,u=!0;return function(e,t){if(u)return u=!1,t;if(s(this))return t;for(var i=0;i<c;i++)if(o[i]===e)return t}}}},46410:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(82467)),n=o(78966);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=r},46553:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:o}=e.getSelectedRangeActive();o.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},46700:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsReadOnly",name(){const t=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT);return(0,s.checkSelectionConsistency)(this.getSelectedRange(),(t,o)=>e.getCommentMeta(t,o,n.META_READONLY))?(0,s.markLabelAsSelected)(t):t},callback(){this.getSelectedRangeActive().forAll((t,o)=>{if(t>=0&&o>=0){const i=!!e.getCommentMeta(t,o,n.META_READONLY);e.updateCommentMeta(t,o,{[n.META_READONLY]:!i})}})},disabled(){const t=this.getSelectedRangeActive();return!!(!t||t.highlight.isHeader()||!e.getCommentAtCell(t.highlight.row,t.highlight.col)||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(83914),n=o(67837)},46802:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:o}=e.getSettings(),i=o?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let n=e.countVisibleRows()+i;n=0===n?-1:-n,s===-i?n=-1:s+n<i&&(n=-(s+i)),t.markSource("keyboard"),t.transformStart(n,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},46848:(e,t,o)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(i.toSingleLine`The passed node is not the last node on the tree. Only for\x20
69
69
  the last node, the hide column modification can be applied.`);const{crossHiddenColumns:o}=e.data;if(o.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:o}=e;o.crossHiddenColumns.push(t),o.colspan>1?o.colspan-=1:o.isHidden=!0})},o(52490),o(99356);var i=o(30738)},47057:(e,t,o)=>{"use strict";var i=o(88786),s=o(44827),n=o(60606),r=o(12033)("toStringTag"),a=Object,l="Arguments"===n(function(){return arguments}());e.exports=i?n:function(e){var t,o,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(t=a(e),r))?o:l?n(t):"Object"===(i=n(t))&&s(t.callee)?"Arguments":i}},47150:e=>{"use strict";e.exports=function(e,t){var o="function"==typeof Iterator&&Iterator.prototype[e];if(o)try{o.call({next:null},t).next()}catch(e){return!0}}},47271:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(9137),r=o(70705),a=o(45084),l=o(78966),h=o(29430),c=o(14207),u=o(13390);const d=t.PLUGIN_KEY="multiColumnSorting",g=t.PLUGIN_PRIORITY=170,f=d;(0,r.registerRootComparator)(d,h.rootComparator);class p extends n.ColumnSorting{constructor(){super(...arguments),(0,s.default)(this,"pluginKey",d)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return-1===e.row&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,n.APPEND_COLUMN_CONFIG_STRATEGY)),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&o.isHeader()},relativeToGroup:u.EDITOR_EDIT_GROUP,position:"before",group:f})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(f)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];super.updateHeaderClasses(e,...o),(0,l.removeClass)(e,(0,c.getClassesToRemove)(e)),!1!==this.enabled&&(0,l.addClass)(e,(0,c.getClassesToAdd)(...o))}onAfterOnCellMouseDown(e,t){!1!==(0,a.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(t.col),this.sort(this.getNextSortConfig(t.col,n.APPEND_COLUMN_CONFIG_STRATEGY))):this.sort(this.getColumnNextConfig(t.col)))}}t.MultiColumnSorting=p},47343:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"rootDocument",void 0),(0,s.default)(this,"rowHeaders",null),(0,s.default)(this,"columnHeaders",null),(0,s.default)(this,"colGroup",null),(0,s.default)(this,"rows",null),(0,s.default)(this,"cells",null),(0,s.default)(this,"rowFilter",null),(0,s.default)(this,"columnFilter",null),(0,s.default)(this,"rowUtils",null),(0,s.default)(this,"columnUtils",null),(0,s.default)(this,"rowsToRender",0),(0,s.default)(this,"columnsToRender",0),(0,s.default)(this,"rowHeaderFunctions",[]),(0,s.default)(this,"rowHeadersCount",0),(0,s.default)(this,"columnHeaderFunctions",[]),(0,s.default)(this,"columnHeadersCount",0),(0,s.default)(this,"cellRenderer",void 0),(0,s.default)(this,"activeOverlayName",void 0),(0,s.default)(this,"stylesHandler",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=t,this.stylesHandler=o}setActiveOverlayName(e){this.activeOverlayName=e}setAxisUtils(e,t){this.rowUtils=e,this.columnUtils=t}setViewportSize(e,t){this.rowsToRender=e,this.columnsToRender=t}setFilters(e,t){this.rowFilter=e,this.columnFilter=t}setHeaderContentRenderers(e,t){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=t,this.columnHeadersCount=t.length}setRenderers(){let{rowHeaders:e,columnHeaders:t,colGroup:o,rows:i,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),o.setTable(this),i.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=o,this.rows=i,this.cells=s}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting("ariaTags")}render(){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();const{rowsToRender:e,rows:t}=this;for(let o=0;o<e;o++){const e=t.getRenderedNode(o),i=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(o),s=i.getHeightByOverlayName(t,this.activeOverlayName),n=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-n+"px":""}}}}},47520:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=n;var i=o(23895);const s=t.CONDITION_NAME="true";function n(){return!0}(0,i.registerCondition)(s,n,{name:"True"})},47742:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724)},47763:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78966),s=o(29779),n=o(72609);class r extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let o=this.rootNode.firstChild;if(e){const{columnsToRender:i}=this.table,s=i+t;for(let t=0,i=e;t<i;t++){for(o=this.rootNode.childNodes[t],o||(o=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(o)),this.renderedNodes=o.childNodes.length;this.renderedNodes<s;)o.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>s;)o.removeChild(o.lastChild),this.renderedNodes-=1}const n=this.rootNode.childNodes.length;if(n>e)for(let t=e;t<n;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else o&&(0,i.empty)(o)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,i.setAttribute)(this.rootNode,[(0,n.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:o,rowHeadersCount:s}=this.table,r=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,i.setAttribute)(r,[(0,n.A11Y_ROW)(),(0,n.A11Y_ROWINDEX)(t+1)]);for(let a=-1*s;a<o;a+=1){const o=this.table.renderedColumnToSource(a),l=r.childNodes[a+s];l.className="",l.removeAttribute("style"),(0,i.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,i.setAttribute)(l,[(0,n.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,n.A11Y_TABINDEX)(-1),(0,n.A11Y_COLUMNHEADER)(),...a>=0?[(0,n.A11Y_SCOPE_COL)()]:[(0,n.A11Y_GRIDCELL_BUTTON)(),(0,n.A11Y_LABEL)("Select whole grid")]]),e[t](o,l,t)}}}}t.ColumnHeadersRenderer=r},47802:(e,t,o)=>{"use strict";t.__esModule=!0,t.isImmediatePropagationStopped=function(e){return!1===e.isImmediatePropagationEnabled},t.isLeftClick=function(e){return 0===e.button},t.isRightClick=function(e){return 2===e.button},t.isTouchEvent=function(e){return e instanceof TouchEvent},t.offsetRelativeTo=function(e,t){const o={x:e.offsetX,y:e.offsetY};let s=e.target;if(!(0,i.isHTMLElement)(t)||s!==t&&s.contains(t))return o;for(;s!==t;)o.x+=s.offsetLeft,o.y+=s.offsetTop,s=s.offsetParent;return o},t.stopImmediatePropagation=function(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0};var i=o(78966)},47833:(e,t,o)=>{"use strict";var i=o(61546);e.exports=function(e,t,o){for(var s in t)i(e,s,t[s],o);return e}},47845:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810);var s=i(o(24300)),n=o(78966),r=o(47802),a=o(94576),l=o(38830),h=o(4138),c=m(o(44481)),u=o(69572),d=m(o(65865)),g=o(2979),f=o(30095),p=o(23895);function m(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(e,t)}function w(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var v=new WeakSet;class y extends u.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),w(this,v),(0,s.default)(this,"name",""),(0,s.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new f.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new g.InputUI(this.hot,{placeholder:c.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>C(v,this,S).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>C(v,this,E).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(c.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,a.arrayEach)(e.args,(e,o)=>{if(o>t.inputsCount-1)return!1;const i=this.getInputElement(o);i.setValue(e),i[t.inputsCount>o?"show":"hide"](),o||this.hot._registerTimeout(()=>i.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,p.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(o,i)=>{e.inputsCount>i&&t.push(o.getValue())}),{command:e,args:t}}updateState(e,t){const o=e?(0,p.getConditionDescriptor)(e.name):(0,p.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:o,args:e?e.args:[]}),e||(0,a.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof f.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof g.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,o,i,s,r)=>{(0,n.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,n.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,n.addClass)(l,"htFiltersMenuLabel"),l.textContent=r,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,p.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:o}=e;t=(0,d.default)(this.hot.getDataType(0,o,this.hot.countRows(),o))}(0,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function S(e){(0,a.arrayEach)(this.getInputElements(),(t,o)=>{t[e.inputsCount>o?"show":"hide"](),0===o&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function E(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,r.stopImmediatePropagation)(e))}t.ConditionComponent=y},47865:(e,t,o)=>{"use strict";var i=o(94266),s=o(15176),n=i.document,r=s(n)&&s(n.createElement);e.exports=function(e){return r?n.createElement(e):{}}},47927:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(99640)),n=i(o(24699));class r{constructor(e){e instanceof n.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new r(e);return()=>t},this._wot=new s.default(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,o){return this._wot.createCellRange(e,t,o)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,o){return this._wot.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,o,i,s){return this._wot.wtSettings.getSetting(e,t,o,i,s)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=r},48099:e=>{"use strict";e.exports={}},48360:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(55656);const{getListWithInsertedItems:s,getListWithRemovedItems:n}=(0,i.alterUtilsFactory)("physicallyIndexed");class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){this.indexedValues=s(this.indexedValues,e,t,(e,t)=>this.getNextValue(t)),super.insert(e,t)}remove(e){this.indexedValues=n(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=r},48369:(e,t,o)=>{"use strict";var i=o(77439);e.exports=function(e,t,o){for(var s,n,r=o?e:e.iterator,a=e.next;!(s=i(a,r)).done;)if(void 0!==(n=t(s.value)))return n}},48370:(e,t)=>{"use strict";t.__esModule=!0,t.announce=function(e){if(!o)return;o.textContent="",setTimeout(()=>{o&&(o.textContent=e)},100)},t.install=function(e){const t=e.ownerDocument;if(!o){o=t.createElement("div"),o.setAttribute("role","status"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");const i=o.style;i.position="absolute",i.width="1px",i.height="1px",i.margin="-1px",i.overflow="hidden",i.clipPath="rect(0 0 0 0)",i.whiteSpace="nowrap",e.appendChild(o)}i+=1},t.uninstall=function(){if(0===i)return;1===i&&(o.remove(),o=null);i-=1};let o=null,i=0},48404:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(78966),r=o(58604),a=o(30738),l=o(47802),h=o(7120),c=o(79930),u=o(26808),d=i(o(15981)),g=i(o(24181));function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,o){return e.set(C(e,t),o),o}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.PLUGIN_KEY="nestedHeaders",y=t.PLUGIN_PRIORITY=280;var S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakSet;class I extends u.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=M),t.add(e),f(this,S,new d.default),f(this,E,null),f(this,R,null),f(this,b,!1),f(this,_,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),f(this,T,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:o}=t;if(o.isHeader()&&o.col>=0){const e=w(S,this).findLeftMostColumnIndex(o.row,o.col),t=this.hot.selection.highlight.getFocus();t.visualCellRange.highlight.col=e,t.visualCellRange.from.col=e,t.visualCellRange.to.col=e,t.commit()}})}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();Array.isArray(t)&&Array.isArray(t[0])||(0,h.warn)(a.toSingleLine`Your Nested Headers plugin configuration is invalid. The settings has to be\x20
70
70
  passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>C(M,this,j).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,z).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,P).call(e,...o)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,H).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,x).call(e,...o)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,k).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,D).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,L).call(e,...o)}),this.addHook("afterSelection",()=>w(T,this).call(this)),this.addHook("afterSelectionFocusSet",()=>w(T,this).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,O).call(e,...o)}),this.addHook("afterGetColumnHeaderRenderers",e=>C(M,this,W).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,B).call(e,...o)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,U).call(e,...o)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,A).call(e,...o)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,N).call(e,...o)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,V).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,F).call(e,...o)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(M,e,Y).call(e,...o)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",w(T,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",w(T,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(S,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(S,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(a.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
@@ -91,6 +91,6 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
91
91
  from the Core API in the future. Please use the method from the UndoRedo plugin\x20
92
92
  (e.g. \`hotInstance.getPlugin("undoRedo").${e}()\`).`),m.add(e))};this.hot.undo=()=>{e("undo"),this.undo()},this.hot.redo=()=>{e("redo"),this.redo()},this.hot.isUndoAvailable=()=>(e("isUndoAvailable"),this.isUndoAvailable()),this.hot.isRedoAvailable=()=>(e("isRedoAvailable"),this.isRedoAvailable()),this.hot.clearUndo=()=>{e("clear"),this.clear()},this.hot.undoRedo=this}function S(){delete this.hot.undo,delete this.hot.redo,delete this.hot.isUndoAvailable,delete this.hot.isRedoAvailable,delete this.hot.clearUndo,delete this.hot.undoRedo}t.UndoRedo=C},71362:(e,t,o)=>{"use strict";var i=o(43290),s=o(70792),n=o(19682),r=i(i.bind);e.exports=function(e,t){return s(e),void 0===t?e:n?r(e,t):function(){return e.apply(t,arguments)}}},71443:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,l.registerValidator)(i.autocompleteValidator),(0,l.registerValidator)(n.dropdownValidator),(0,l.registerValidator)(s.dateValidator),(0,l.registerValidator)(r.numericValidator),(0,l.registerValidator)(a.timeValidator)};var i=o(61894);t.autocompleteValidator=i.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=i.VALIDATOR_TYPE;var s=o(12294);t.dateValidator=s.dateValidator,t.DATE_VALIDATOR=s.VALIDATOR_TYPE;var n=o(77089);t.dropdownValidator=n.dropdownValidator,t.DROPDOWN_VALIDATOR=n.VALIDATOR_TYPE;var r=o(58299);t.numericValidator=r.numericValidator,t.NUMERIC_VALIDATOR=r.VALIDATOR_TYPE;var a=o(58301);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var l=o(36780);t.registerValidator=l.registerValidator,t.getRegisteredValidatorNames=l.getRegisteredValidatorNames,t.getRegisteredValidators=l.getRegisteredValidators,t.getValidator=l.getValidator,t.hasValidator=l.hasValidator},71449:(e,t,o)=>{"use strict";var i=o(47057),s=o(85988),n=o(49887),r=o(17511),a=o(12033)("iterator");e.exports=function(e){if(!n(e))return s(e,a)||s(e,"@@iterator")||r[i(e)]}},71468:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(96792),r=o(94811),a=o(48369),l=s.add,h=s.has,c=s.remove;e.exports=function(e){var t=i(this),o=r(e).getIterator(),s=n(t);return a(o,function(e){h(t,e)?c(s,e):l(s,e)}),s}},71740:(e,t,o)=>{"use strict";t.__esModule=!0,t.installFocusCatcher=function(e){const t=(0,n.normalizeCoordsIfNeeded)(e);let o;const{activate:a,deactivate:l}=(0,s.installFocusDetector)(e,e.rootGridElement,{onFocus(i){if("from_above"===i){var s;const i=null!==(s=t(o))&&void 0!==s?s:(0,r.getMostTopStartPosition)(e),n=e.runHooks("modifyFocusOnTabNavigation","from_above",i);i&&!1!==n&&e.selectCell(i.row,i.col)}else{var n;const i=null!==(n=t(o))&&void 0!==n?n:(0,r.getMostBottomEndPosition)(e),s=e.runHooks("modifyFocusOnTabNavigation","from_below",i);i&&!1!==s&&e.selectCell(i.row,i.col)}e.listen()}}),h={wrapped:!1,flipped:!1};let c=!0,u=!1,d=!1;e.addHook("afterListen",()=>{const t=e.getShortcutManager().getActiveContextName(),o=e.getShortcutManager().getContext(t);"table"===(null==o?void 0:o.scope)&&l()}),e.addHook("afterUnlisten",()=>{const t=e.getShortcutManager().getActiveContextName(),o=e.getShortcutManager().getContext(t);"table"===(null==o?void 0:o.scope)&&a()}),e.addHook("afterSelection",(t,i,s,n,r)=>{var a;(u&&(h.wrapped&&h.flipped||d)&&(d=!1,r.value=!0),c)&&(o=null===(a=e.getSelectedRangeActive())||void 0===a?void 0:a.highlight)}),e.addHook("beforeRowWrap",(e,t,o)=>{h.wrapped=!0,h.flipped=o});const g={keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:i.GRID_GROUP,group:"focusCatcher"};e.getShortcutManager().getContext("grid").addShortcuts([{...g,callback:()=>{const{tabNavigation:t}=e.getSettings();u=!0,e.getSelectedRangeActive()&&!t&&(c=!1),t||(d=!0)},position:"before"},{...g,callback:t=>{const{tabNavigation:i,autoWrapRow:s}=e.getSettings();if(u=!1,c=!0,!i||!e.selection.isSelected()||s&&h.wrapped&&h.flipped||!s&&h.wrapped)return s&&h.wrapped&&h.flipped&&(o=t.shiftKey?(0,r.getMostTopStartPosition)(e):(0,r.getMostBottomEndPosition)(e)),h.wrapped=!1,h.flipped=!1,e.deselectCell(),e.unlisten(),!1;t.preventDefault()},position:"after"}])};var i=o(13390),s=o(31363),n=o(25333),r=o(7886)},71754:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:o}=e;const i=t(),s=o(),n=[];let r=0,a=1,l=0;for(let e=0;e<i.length;e++){const t=i[e];l>0&&a+t>=s&&(n.push({startIndex:r,endIndex:e-1,pageSize:l}),r=e,a=1,l=0),a+=t,l+=1}n.push({startIndex:r,endIndex:Math.max(0,i.length-1),pageSize:l}),this.pages=n}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},71806:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(41595);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Formulas=i.Formulas},71883:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...o}=e;return new n.default({className:"current",headerAttributes:[(0,r.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...o,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=o(13743),n=i(o(6711)),r=o(72609)},71898:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(58604),r=o(94576),a=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),l=i(o(78918));function h(e,t,o){(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,o)}function c(e,t){return e.get(function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(e,t))}var u=new WeakMap;class d extends l.default{constructor(){super(...arguments),(0,s.default)(this,"dataManager",this.plugin.dataManager),h(this,u,{row_above:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"above")},row_below:(e,t)=>{const o=t[t.length-1];this.dataManager.addSibling(o.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedActive()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedActive();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedActive())},disabled:()=>{const e=this.hot.getSelectedActive(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,n.rangeEach)(0,e.items.length-1,o=>{if(0===o)return(0,r.arrayEach)(t,(t,i)=>{e.items.splice(o+i,0,t)}),!1}),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,n.rangeEach)(0,e.items.length-1,t=>{const o=c(u,this)[e.items[t].key];null!=o&&(e.items[t].callback=o)}),e}}t.default=d},72e3:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(78966),n=i(o(3639)),r=i(o(3993)),a=i(o(39225)),l=o(4138);class h extends n.default{constructor(e,t,o,i){super(e,t,o,i,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,s.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const o=e.parentElement,i=(0,s.getStyle)(e,"height",t),n=(0,s.getStyle)(e,"overflow",t),r=this.holder.style,{scrollWidth:a,scrollHeight:l}=e;let h=e.offsetWidth,c=e.offsetHeight;if(o&&["auto","hidden","scroll"].includes(n)){const i=e.cloneNode(!1);i.style.overflow="auto",i.style.position="absolute",e.nextElementSibling?o.insertBefore(i,e.nextElementSibling):o.appendChild(i);const s=parseInt(t.getComputedStyle(i).height,10);o.removeChild(i),0===s&&(c=0)}c=Math.min(c,l),r.height="auto"===i?"auto":`${c}px`,h=Math.min(h,a),r.width=`${h}px`,r.overflow="",this.hasTableHeight="auto"===r.height||c>0,this.hasTableWidth=h>0}this.isTableVisible=(0,s.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,o="master",i=e.getSetting("columnHeaders").length;if(i&&!t.hasOversizedColumnHeadersMarked[o]){const s=e.getSetting("rowHeaders").length,n=this.getRenderedColumnsCount();for(let e=0;e<i;e++)for(let e=-1*s;e<n;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[o]=!0}}}(0,l.mixin)(h,r.default),(0,l.mixin)(h,a.default);t.default=h},72425:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(82467)),n=o(78966);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=r},72515:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(4138);const s={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,i.defineGetter)(s,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=s},72609:(e,t)=>{"use strict";t.__esModule=!0;t.A11Y_TABINDEX=e=>["tabindex",e];t.A11Y_TREEGRID=()=>["role","treegrid"];t.A11Y_PRESENTATION=()=>["role","presentation"];t.A11Y_GRIDCELL=()=>["role","gridcell"];t.A11Y_GRIDCELL_BUTTON=()=>["role","gridcell button"];t.A11Y_ROWHEADER=()=>["role","rowheader"];t.A11Y_ROWGROUP=()=>["role","rowgroup"];t.A11Y_COLUMNHEADER=()=>["role","columnheader"];t.A11Y_ROW=()=>["role","row"];t.A11Y_MENU=()=>["role","menu"];t.A11Y_MENU_ITEM=()=>["role","menuitem"];t.A11Y_MENU_ITEM_CHECKBOX=()=>["role","menuitemcheckbox"];t.A11Y_COMBOBOX=()=>["role","combobox"];t.A11Y_LISTBOX=()=>["role","listbox"];t.A11Y_OPTION=()=>["role","option"];t.A11Y_CHECKBOX=()=>["role","checkbox"];t.A11Y_DIALOG=()=>["role","dialog"];t.A11Y_ALERTDIALOG=()=>["role","alertdialog"];t.A11Y_SCOPE_COL=()=>["scope","col"];t.A11Y_SCOPE_ROW=()=>["scope","row"];t.A11Y_TEXT=()=>["type","text"];t.A11Y_LABEL=e=>["aria-label",e];t.A11Y_LABELED_BY=e=>["aria-labelledby",e];t.A11Y_DESCRIBED_BY=e=>["aria-describedby",e];t.A11Y_HIDDEN=()=>["aria-hidden","true"];t.A11Y_DISABLED=function(){return["aria-disabled",!(arguments.length>0&&void 0!==arguments[0])||arguments[0]]};t.A11Y_MULTISELECTABLE=()=>["aria-multiselectable","true"];t.A11Y_HASPOPUP=e=>["aria-haspopup",e];t.A11Y_ROWCOUNT=e=>["aria-rowcount",e];t.A11Y_COLCOUNT=e=>["aria-colcount",e];t.A11Y_ROWINDEX=e=>["aria-rowindex",e];t.A11Y_COLINDEX=e=>["aria-colindex",e];t.A11Y_EXPANDED=e=>["aria-expanded",e];t.A11Y_SORT=e=>["aria-sort",e];t.A11Y_READONLY=()=>["aria-readonly","true"];t.A11Y_INVALID=()=>["aria-invalid","true"];t.A11Y_CHECKED=e=>["aria-checked",e];t.A11Y_SELECTED=()=>["aria-selected","true"];t.A11Y_AUTOCOMPLETE=()=>["aria-autocomplete","list"];t.A11Y_CONTROLS=e=>["aria-controls",e];t.A11Y_ACTIVEDESCENDANT=e=>["aria-activedescendant",e];t.A11Y_LIVE=e=>["aria-live",e];t.A11Y_RELEVANT=e=>["aria-relevant",e];t.A11Y_SETSIZE=e=>["aria-setsize",e];t.A11Y_POSINSET=e=>["aria-posinset",e];t.A11Y_MODAL=()=>["aria-modal","true"]},72623:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return(0,i.isObject)(e)&&void 0!==e.value?e.value:e};var i=o(4138)},72746:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeActive().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="col_right"},72820:(e,t,o)=>{"use strict";var i=o(94266),s=o(32497).f,n=o(20637),r=o(61546),a=o(2847),l=o(31622),h=o(33850);e.exports=function(e,t){var o,c,u,d,g,f=e.target,p=e.global,m=e.stat;if(o=p?i:m?i[f]||a(f,{}):i[f]&&i[f].prototype)for(c in t){if(d=t[c],u=e.dontCallGetSet?(g=s(o,c))&&g.value:o[c],!h(p?c:f+(m?".":"#")+c,e.forced)&&void 0!==u){if(typeof d==typeof u)continue;l(d,u)}(e.sham||u&&u.sham)&&n(d,"sham",!0),r(o,c,d,e)}}},73079:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(49735);t.EDITOR_TYPE=i.EDITOR_TYPE,t.TimeEditor=i.TimeEditor},73131:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(940);var i=o(78966),s=o(4138),n=o(38830),r=o(81761),a=o(9013),l=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),h=o(47802),c=o(26911),u=o(2979),d=o(81895),g=o(56013);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(C(e,t))}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v="multipleSelect.itemBox";var y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;class M extends c.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var o,i;super(e,(0,s.extend)(M.DEFAULTS,t)),p(o=this,i=T),i.add(o),f(this,y,[]),f(this,S,void 0),f(this,E,void 0),f(this,R,void 0),f(this,b,void 0),f(this,_,void 0),w(R,this,new u.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(b,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(_,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(S,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>C(T,this,O).call(this,e)),m(R,this).addLocalHook("input",e=>C(T,this,I).call(this,e)),m(b,this).addLocalHook("click",e=>C(T,this,A).call(this,e)),m(_,this).addLocalHook("click",e=>C(T,this,N).call(this,e))}setItems(e){var t;w(y,this,e),null===(t=m(S,this))||void 0===t||t.loadData(m(y,this))}setLocale(e){w(E,this,e)}getLocale(){return m(E,this)}getItems(){return[...m(y,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(y,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(b,this)}getClearAllElement(){return m(_,this)}isSelectedAllValues(){return m(y,this).length===this.getValue().length}build(){super.build();const{rootDocument:e}=this.hot,t=e.createElement("div"),o=new c.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(b,this),m(_,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(o.element),this._element.appendChild(t);const s=t=>{var o;if(!this._element)return;null===(o=m(S,this))||void 0===o||o.destroy(),(0,i.addClass)(t,"htUIMultipleSelectHot"),w(S,this,new this.hot.constructor(t,{data:m(y,this),columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,o,i,s,n)=>{e.title=n.instance.getDataAtRowProp(t,n.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(S,this).listen()},modifyColWidth:t=>{const o=m(S,this).container.scrollWidth-(0,i.getScrollbarWidth)(e);return void 0!==t&&t<o?o:t},maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(S,this).init();const s=m(S,this).getShortcutManager().getContext("grid");s.removeShortcutsByKeys(["Tab"]),s.removeShortcutsByKeys(["Shift","Tab"]),s.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:v}),s.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(S,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:v})};s(t),this.hot._registerTimeout(()=>s(t),100)}focus(){this.isBuilt()&&m(S,this).listen()}reset(){m(R,this).reset(),m(b,this).reset(),m(_,this).reset()}update(){this.isBuilt()&&(m(S,this).loadData(function(e,t){const o=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=o(e.value),e))}(m(y,this),this.options.value)),super.update())}destroy(){var e;null===(e=m(S,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(_,this).destroy(),m(b,this).destroy(),w(R,this,null),w(_,this,null),w(b,this,null),w(S,this,null),w(y,this,null),super.destroy()}}function I(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());let o;o=""===t?[...m(y,this)]:m(y,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(S,this).loadData(o)}function O(e){this.runLocalHooks("keydown",e,this);(0,r.partial)(n.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(S,this).listen(),m(S,this).selectCell(0,0))}function A(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}function N(e){const t=[];e.preventDefault(),m(S,this).getSourceData().forEach((e,o)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,o)[0])}),m(S,this).setSourceDataAtCell(t)}t.MultipleSelectUI=M;t.default=M},73734:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810);var s=i(o(24300)),n=o(94576),r=o(4138),a=o(81761),l=i(o(18805)),h=i(o(34645)),c=i(o(32120)),u=o(56013);function d(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function g(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var f=new WeakSet;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];d(this,f),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),(0,s.default)(this,"changes",[]),(0,s.default)(this,"grouping",!1),(0,s.default)(this,"latestEditedColumnPosition",-1),(0,s.default)(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=o,this.conditionCollection.addLocalHook("beforeRemove",e=>g(f,this,m).call(this,e)),this.conditionCollection.addLocalHook("afterRemove",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("afterAdd",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("beforeClean",()=>g(f,this,w).call(this)),this.conditionCollection.addLocalHook("afterClean",()=>g(f,this,C).call(this))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,(0,n.arrayEach)(this.changes,e=>{this.updateStatesAtColumn(e)}),this.changes.length=0}updateStatesAtColumn(e,t){var o=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const i=this.conditionCollection.exportAllConditions();let s=this.conditionCollection.getColumnStackPosition(e);-1===s&&(s=this.latestEditedColumnPosition);const r=i.slice(0,s),l=i.slice(s);l.length&&l[0].column===e&&l.shift();const d=(0,a.curry)(function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const s=new h.default(o.hot,!1),r=[].concat(e,i);s.importAllConditions(r);const a=o.columnDataFactory(t);let l;l=s.isEmpty()?a:new c.default(s,e=>o.columnDataFactory(e)).filter(),l=(0,n.arrayMap)(l,e=>e.meta.visualRow);const d=(0,u.createArrayAssertion)(l);return s.destroy(),(0,n.arrayFilter)(a,e=>d(e.meta.visualRow))})(r),g=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:g},dependentConditionStacks:l,filteredRowsFactory:d,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),(0,r.objectEach)(this,(e,t)=>{this[t]=null})}}function m(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function w(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function C(){(0,n.arrayEach)(this.latestOrderStack,e=>{this.updateStatesAtColumn(e)})}(0,r.mixin)(p,l.default);t.default=p},73747:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_CUT)},callback(){e.cut()},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},73805:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},73899:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:o}=e,{highlight:i,from:s,to:n}=e.getSelectedRangeActive(),r=i.isHeader()&&t.isSelectedByColumnHeader();if(i.isCell()||r){const a=o.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=s.clone();l.col=i.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,i.clone()),r&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(n.row,a)),t.markEndSource()}}}},74011:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=o(78966),n=i(o(50415)),r=o(65820),a=o(66649);class l extends r.Overlay{constructor(e,t,o,i,s,n){super(e,t,a.CLONE_BOTTOM_INLINE_START_CORNER,o,i),this.bottomOverlay=s,this.inlineStartOverlay=n}createTable(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return new n.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderBottomOverlay")&&this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wot:e}=this;if(this.updateTrimmingContainer(),!e.wtTable.holder.parentNode)return!1;const t=this.clone.wtTable.holder.parentNode;if(t.style.top="",this.trimmingContainer===this.domBindings.rootWindow){const e=this.inlineStartOverlay.getOverlayOffset(),o=this.bottomOverlay.getOverlayOffset();t.style[this.isRtl()?"right":"left"]=`${e}px`,t.style.bottom=`${o}px`}else(0,s.resetCssTransform)(t),this.repositionOverlay();let o=(0,s.outerHeight)(this.clone.wtTable.TABLE);const i=(0,s.outerWidth)(this.clone.wtTable.TABLE);return this.wot.wtTable.hasDefinedSize()||(o=0),t.style.height=`${o}px`,t.style.width=`${i}px`,!1}repositionOverlay(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:o}=this.domBindings,i=this.clone.wtTable.holder.parentNode;let n=0;t.hasVerticalScroll()||(n+=t.getWorkspaceHeight()-e.getTotalHeight()),t.hasVerticalScroll()&&t.hasHorizontalScroll()&&(n+=(0,s.getScrollbarWidth)(o)),i.style.bottom=`${n}px`}}t.BottomInlineStartCornerOverlay=l},74077:(e,t,o)=>{"use strict";t.__esModule=!0,o(99356);var i=o(9093),s=o(94576);class n extends i.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.HidingMap=n},74435:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:r,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT)},disabled(){if(0===this.countRows()||0===this.countCols())return!0;const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||!(this.getSelectedRange()&&!this.selection.isSelectedByCorner()))},submenu:{items:[{key:`${r}:left`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htLeft";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:center`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htCenter";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:right`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htRight";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:justify`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="horizontal",s="htJustify";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{name:s.KEY},{key:`${r}:top`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htTop";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:middle`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htMiddle";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1},{key:`${r}:bottom`,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM)},callback(){const e=this.getSelectedRange(),t=(0,i.getAlignmentClasses)(e,(e,t)=>this.getCellMeta(e,t).className),o="vertical",s="htBottom";this.runHooks("beforeCellAlignment",t,e,o,s),(0,i.align)(e,o,s,(e,t)=>this.getCellMeta(e,t),(e,t,o,i)=>this.setCellMeta(e,t,o,i)),this.render()},disabled:!1}]}}};var i=o(83914),s=o(5705),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const r=t.KEY="alignment"},74518:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(7886),n=o(23895);const r=t.CONDITION_NAME="eq";function a(e,t){let[o]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale)===(0,s.stringify)(o)}(0,n.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_EQUAL,inputsCount:1,showOperators:!0})},74571:(e,t,o)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const o=[];if(0===t)return o;(0,i.arrayEach)(e,e=>{const a=[];let l=0;o.push(a),(0,i.arrayEach)(e,e=>{const o=(0,r.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:i,headerClassName:s}=e;o.label=(0,n.stringify)(t),"number"==typeof i&&i>1&&(o.colspan=i,o.origColspan=i),"string"==typeof s&&(o.headerClassNames=[...s.split(" ")])}else o.label=(0,n.stringify)(e);l+=o.origColspan;let i=!1;if(l>=t&&(o.colspan=o.origColspan-(l-t),o.origColspan=o.colspan,i=!0),a.push(o),o.colspan>1)for(let e=0;e<o.colspan-1;e++)a.push((0,r.createPlaceholderHeaderSettings)());return!i})});const a=Math.max(...(0,i.arrayMap)(o,e=>e.length));return(0,i.arrayEach)(o,e=>{if(e.length<a){const t=(0,i.arrayMap)(new Array(a-e.length),()=>(0,r.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),o},o(99356);var i=o(94576),s=o(4138),n=o(7886),r=o(14680)},74851:(e,t,o)=>{var i=o(52183).default,s=o(57198);e.exports=function(e){var t=s(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},75040:(e,t,o)=>{"use strict";var i=o(30717),s=Math.max,n=Math.min;e.exports=function(e,t){var o=i(e);return o<0?s(o+t,0):n(o,t)}},75068:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(87999);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TrimRows=i.TrimRows},75204:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(20419);t.FullyVisibleColumnsCalculationType=i.FullyVisibleColumnsCalculationType;var s=o(44919);t.FullyVisibleRowsCalculationType=s.FullyVisibleRowsCalculationType;var n=o(51997);t.PartiallyVisibleColumnsCalculationType=n.PartiallyVisibleColumnsCalculationType;var r=o(75293);t.PartiallyVisibleRowsCalculationType=r.PartiallyVisibleRowsCalculationType;var a=o(35775);t.RenderedAllColumnsCalculationType=a.RenderedAllColumnsCalculationType;var l=o(17283);t.RenderedAllRowsCalculationType=l.RenderedAllRowsCalculationType;var h=o(75610);t.RenderedColumnsCalculationType=h.RenderedColumnsCalculationType;var c=o(89980);t.RenderedRowsCalculationType=c.RenderedRowsCalculationType;var u=o(80269);t.ViewportColumnsCalculator=u.ViewportColumnsCalculator,t.DEFAULT_COLUMN_WIDTH=u.DEFAULT_WIDTH;var d=o(37069);t.ViewportRowsCalculator=d.ViewportRowsCalculator},75293:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(8249),o(31835);var s=i(o(24300));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:o,zeroBasedScrollOffset:i,innerViewportHeight:s}=t;o<=i&&(this.startRow=e),o>=i&&o<=s&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:o,viewportHeight:i,horizontalScrollbarHeight:s,totalRows:n,needReverse:r,startPositions:a,rowHeight:l}=e;if(this.endRow===n-1&&r)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=i-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;o+i-s<0||o>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,n<this.endRow&&(this.endRow=n-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},75299:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(84922),a=o(4138);class l extends n.BaseAction{constructor(e){let{index:t,data:o,fixedRowsBottom:i,fixedRowsTop:n,rowIndexesSequence:r,removedCellMetas:a}=e;super("remove_row"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"fixedRowsBottom",void 0),(0,s.default)(this,"fixedRowsTop",void 0),(0,s.default)(this,"rowIndexesSequence",void 0),(0,s.default)(this,"removedCellMetas",void 0),this.index=t,this.data=o,this.fixedRowsBottom=i,this.fixedRowsTop=n,this.rowIndexesSequence=r,this.removedCellMetas=a}static startRegisteringEvents(e,t){e.addHook("beforeRemoveRow",(o,i,s,n)=>{t.done(()=>{const t=e.toPhysicalRow(o),s=t+i-1,n=(0,a.deepClone)(e.getSourceData(t,0,t+i-1,e.countSourceCols()-1));return new l({index:t,data:n,fixedRowsBottom:e.getSettings().fixedRowsBottom,fixedRowsTop:e.getSettings().fixedRowsTop,rowIndexesSequence:e.rowIndexMapper.getIndexesSequence(),removedCellMetas:(0,r.getCellMetas)(e,t,s,0,e.countCols()-1)})},n)})}undo(e,t){const o=e.getSettings(),i=[];o.fixedRowsBottom=this.fixedRowsBottom,o.fixedRowsTop=this.fixedRowsTop,this.data.forEach((e,t)=>{Object.keys(e).forEach(o=>{const s=parseInt(o,10);i.push([this.index+t,isNaN(s)?o:s,e[o]])})}),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),e.alter("insert_row_above",e.toVisualRow(this.index),this.data.length,"UndoRedo.undo"),e.rowIndexMapper.setIndexesSequence(this.rowIndexesSequence),this.removedCellMetas.forEach(t=>{let[o,i,s]=t;e.setCellMetaObject(o,i,s)}),e.addHookOnce("afterViewRender",t),e.setSourceDataAtCell(i,null,null,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",e.toVisualRow(this.index),this.data.length,"UndoRedo.redo")}}t.RemoveRowAction=l},75407:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(3639)),n=i(o(3993)),r=i(o(62578)),a=o(4138),l=o(99700);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_INLINE_START)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},75548:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(7120),s=o(78966),n=o(81761);function r(e,t,o){a(e,t),t.set(e,o)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const u=Object.freeze({CELL:"cell",MIXED:"mixed"});var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;function C(e){var t;const o=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!o||!l(d,this).selection.isCellVisible(o))return void e(null);const i=l(d,this).getCell(o.row,o.col,!0);null===i?l(d,this).addHookOnce("afterScroll",()=>{e(l(d,this).getCell(o.row,o.col,!0))}):e(i)}function v(){c(w,this,C).call(this,e=>{const{activeElement:t}=l(d,this).rootDocument;t&&(0,s.isOutsideInput)(t)&&t.blur(),this.focusOnHighlightedCell(e)})}function y(){c(w,this,C).call(this,e=>{this.getFocusMode()===u.MIXED&&"TD"===(null==e?void 0:e.nodeName)&&this.refocusToEditorTextarea()})}function S(e){"boolean"==typeof e.imeFastEdit&&this.setFocusMode(e.imeFastEdit?u.MIXED:u.CELL)}t.FocusManager=class{constructor(e){var t,o,i=this;a(t=this,o=w),o.add(t),r(this,d,void 0),r(this,g,void 0),r(this,f,1),r(this,p,null),r(this,m,new Map);const s=e.getSettings();h(d,this,e),h(g,this,s.imeFastEdit?u.MIXED:u.CELL),l(d,this).addHook("afterUpdateSettings",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,i,S).call(i,...t)}),l(d,this).addHook("afterSelection",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,i,v).call(i,...t)}),l(d,this).addHook("afterSelectionFocusSet",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,i,v).call(i,...t)}),l(d,this).addHook("afterSelectionEnd",function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return c(w,i,y).call(i,...t)})}getFocusMode(){return l(g,this)}setFocusMode(e){Object.values(u).includes(e)?h(g,this,e):(0,i.warn)(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return l(f,this)}setRefocusDelay(e){h(f,this,e)}setRefocusElementGetter(e){h(p,this,e)}getRefocusElement(){var e;return"function"==typeof l(p,this)?l(p,this).call(this):null===(e=l(d,this).getActiveEditor())||void 0===e?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const t=e=>{var t,o;const i=null===(t=l(d,this).getSelectedRangeActive())||void 0===t?void 0:t.highlight;if(!i)return;let n=l(d,this).runHooks("modifyFocusedElement",i.row,i.col,e);(0,s.isHTMLElement)(n)||(n=e),!n||null!==(o=l(d,this).getActiveEditor())&&void 0!==o&&o.isOpened()||n.focus({preventScroll:!0})};e?t(e):c(w,this,C).call(this,e=>t(e))}refocusToEditorTextarea(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l(f,this);var o,i;!l(d,this).getSettings().imeFastEdit||null!==(e=l(d,this).getActiveEditor())&&void 0!==e&&e.isOpened()||(null===(o=l(d,this).getActiveEditor())||void 0===o||null===(i=o.refreshValue)||void 0===i||i.call(o),l(m,this).has(t)||l(m,this).set(t,(0,n.debounce)(()=>{var e;l(d,this).isDestroyed||(null===(e=this.getRefocusElement())||void 0===e||e.select())},t)),l(m,this).get(t)())}}},75610:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(51997);class r extends n.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalColumns:i,startPositions:s}=e;if(null!==this.startColumn&&"function"==typeof o){const e=this.startColumn,t=this.endColumn;o(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=s[this.startColumn])&&void 0!==t?t:null,i<this.endColumn&&(this.endColumn=i-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=r},75698:(e,t,o)=>{"use strict";t.__esModule=!0,t.condition=a;var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(23895),n=o(68718);const r=t.CONDITION_NAME="not_contains";function a(e,t){return!(0,s.getCondition)(n.CONDITION_NAME,t)(e)}(0,s.registerCondition)(r,a,{name:i.FILTERS_CONDITIONS_NOT_CONTAIN,inputsCount:1,showOperators:!0})},75721:(e,t,o)=>{"use strict";var i=o(15105),s=o(19098),n=o(65158),r=o(49819),a=o(90501),l=s([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=n.f(a(e)),o=r.f;return o?l(t,o(e)):t}},75972:e=>{"use strict";e.exports=t},75975:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810),o(31143),o(940),o(33098);var s=i(o(24300)),n=o(26808),r=o(23228),a=i(o(67893)),l=i(o(60860)),h=i(o(70337)),c=i(o(67545)),u=i(o(3176)),d=o(94576),g=o(4138),f=o(7120),p=o(58604),m=o(78966),w=o(40929),C=o(8814),v=o(37961),y=o(56097);function S(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t,o){return e.set(_(e,t),o),o}function b(e,t){return e.get(_(e,t))}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("beforeMergeCells"),r.Hooks.getSingleton().register("afterMergeCells"),r.Hooks.getSingleton().register("beforeUnmergeCells"),r.Hooks.getSingleton().register("afterUnmergeCells");const T=t.PLUGIN_KEY="mergeCells",M=t.PLUGIN_PRIORITY=150,I=T;var O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakSet;class x extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=H),t.add(e),(0,s.default)(this,"mergedCellsCollection",null),(0,s.default)(this,"autofillCalculations",null),(0,s.default)(this,"selectionCalculations",null),S(this,O,null),S(this,A,{row:0,col:0}),S(this,N,new C.FocusOrder({mergedCellsGetter:(e,t)=>this.mergedCellsCollection.get(e,t),rowIndexMapper:this.hot.rowIndexMapper,columnIndexMapper:this.hot.columnIndexMapper})),S(this,P,(0,v.createMergeCellRenderer)(this))}static get PLUGIN_KEY(){return T}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{[n.defaultMainSettingSymbol]:"cells",virtualized:!1,cells:[]}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e=this;this.enabled||(this.mergedCellsCollection=new a.default(this),this.autofillCalculations=new h.default(this),this.selectionCalculations=new c.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,k).call(e,...o)}),this.addHook("modifyTransformFocus",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,L).call(e,...o)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,V).call(e,...o)}),this.addHook("modifyTransformEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,W).call(e,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,F).call(e,...o)}),this.addHook("beforeSetRangeStart",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSetRangeStartOnly",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Y).call(e,...o)}),this.addHook("beforeSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,j).call(e,...o)}),this.addHook("afterSelectionFocusSet",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,z).call(e,...o)}),this.addHook("afterSelectionEnd",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,G).call(e,...o)}),this.addHook("modifyGetCellCoords",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("modifyGetCoordsElement",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,B).call(e,...o)}),this.addHook("afterIsMultipleSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,D).call(e,...o)}),this.addHook("afterRenderer",function(){return b(P,e).after(...arguments)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,U).call(e,...o)}),this.addHook("afterGetCellMeta",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,$).call(e,...o)}),this.addHook("afterViewportRowCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,K).call(e,...o)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,X).call(e,...o)}),this.addHook("modifyAutofillRange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,q).call(e,...o)}),this.addHook("afterCreateCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Q).call(e,...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,J).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,Z).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ee).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,te).call(e,...o)}),this.addHook("beforeDrawBorders",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,oe).call(e,...o)}),this.addHook("afterDrawSelection",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ie).call(e,...o)}),this.addHook("beforeRemoveCellClassNames",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,se).call(e,...o)}),this.addHook("beforeBeginEditing",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,ne).call(e,...o)}),this.addHook("modifyRowHeightByOverlayName",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return _(H,e,re).call(e,...o)}),this.addHook("beforeUndoStackChange",(e,t)=>{if("MergeCells"===t)return!1}),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.clearCollections(),this.unregisterShortcuts(),this.hot.render(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.generateFromSettings(),super.updatePlugin()}ifChromeForceRepaint(){if(!(0,w.isChrome)())return;const e=[];let t=[];this.mergedCellsCollection.mergedCells.forEach(e=>{const{row:o,rowspan:i}=e;for(let e=o+1;e<o+i;e++)t.push(e)}),t=[...new Set(t)],t.forEach(t=>{const o=this.hot.rowIndexMapper.getRenderableFromVisualIndex(t);this.hot.view._wt.wtOverlays.getOverlays(!0).map(e=>"master"===(null==e?void 0:e.name)?e:e.clone.wtTable).forEach(t=>{const i=t.getRow(o);i&&(i.style.background=(0,m.getStyle)(i,"backgroundColor").replace(")",", 0.99)"),e.push(i))})}),this.hot._registerTimeout(()=>{e.forEach(e=>{var t;e.style.background=null===(t=(0,m.getStyle)(e,"backgroundColor"))||void 0===t?void 0:t.replace(", 0.99)",")")})},1)}validateSetting(e){return!!e&&(l.default.containsNegativeValues(e)?((0,f.warn)(l.default.NEGATIVE_VALUES_WARNING(e)),!1):l.default.isOutOfBounds(e,this.hot.countRows(),this.hot.countCols())?((0,f.warn)(l.default.IS_OUT_OF_BOUNDS_WARNING(e)),!1):l.default.isSingleCell(e)?((0,f.warn)(l.default.IS_SINGLE_CELL(e)),!1):!l.default.containsZeroSpan(e)||((0,f.warn)(l.default.ZERO_SPAN_WARNING(e)),!1))}generateFromSettings(){const e=this.getSetting("cells").filter(e=>this.validateSetting(e)),t=this.mergedCellsCollection.filterOverlappingMergeCells(e),o=[];t.forEach(e=>{const{row:t,col:i,rowspan:s,colspan:n}=e,r=this.hot._createCellCoords(t,i),a=this.hot._createCellCoords(t+s-1,i+n-1),l=this.hot._createCellRange(r,r,a);this.mergeRange(l,!0,!0);for(let e=t;e<t+s;e++)for(let s=i;s<i+n;s++)e===t&&s===i||o.push([e,s,null])}),0!==o.length&&this.hot.setDataAtCell(o,void 0,void 0,this.pluginName)}clearCollections(){this.mergedCellsCollection.clear()}canMergeRange(e){return!!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||this.validateSetting(e)}mergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;e.setDirection(this.hot.isRtl()?"NE-SW":"NW-SE");const{from:t,to:o}=e;this.unmergeRange(e,!0),this.mergeRange(e),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}unmergeSelection(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hot.getSelectedRangeActive();if(!e)return;const{from:t,to:o}=e;this.unmergeRange(e,!0),this.hot.selectCell(t.row,t.col,o.row,o.col,!1)}mergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=e.getTopStartCorner(),s=e.getBottomEndCorner(),n={row:i.row,col:i.col,rowspan:s.row-i.row+1,colspan:s.col-i.col+1},r=[];let a=null;if(!this.canMergeRange(n,t))return!1;this.hot.runHooks("beforeMergeCells",e,t),(0,p.rangeEach)(0,n.rowspan-1,e=>{(0,p.rangeEach)(0,n.colspan-1,t=>{let o=null;r[e]||(r[e]=[]),0===e&&0===t?o=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n.row),this.hot.toPhysicalColumn(n.col)):this.hot.setCellMeta(n.row+e,n.col+t,"hidden",!0),r[e][t]=o})}),this.hot.setCellMeta(n.row,n.col,"spanned",!0);return!this.mergedCellsCollection.add(n,t)||(o?a=[n.row,n.col,r]:this.hot.populateFromArray(n.row,n.col,r,void 0,void 0,this.pluginName),t||this.ifChromeForceRepaint(),this.hot.runHooks("afterMergeCells",e,n,t),a)}unmergeRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=this.mergedCellsCollection.getWithinRange(e);0!==o.length&&(this.hot.runHooks("beforeUnmergeCells",e,t),(0,d.arrayEach)(o,e=>{this.mergedCellsCollection.remove(e.row,e.col),(0,p.rangeEach)(0,e.rowspan-1,t=>{(0,p.rangeEach)(0,e.colspan-1,o=>{this.hot.removeCellMeta(e.row+t,e.col+o,"hidden"),this.hot.removeCellMeta(e.row+t,e.col+o,"copyable")})}),this.hot.removeCellMeta(e.row,e.col,"spanned")}),this.hot.runHooks("afterUnmergeCells",e,t),this.hot.render())}toggleMerge(e){const{from:t,to:o}=e.clone().normalize(),i=this.mergedCellsCollection.get(t.row,t.col);i.row===t.row&&i.col===t.col&&i.row+i.rowspan-1===o.row&&i.col+i.colspan-1===o.col?this.unmergeRange(e):this.mergeSelection(e)}merge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.mergeRange(this.hot._createCellRange(s,s,n))}unmerge(e,t,o,i){const s=this.hot._createCellCoords(e,t),n=this.hot._createCellCoords(o,i);this.unmergeRange(this.hot._createCellRange(s,s,n))}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Control","m"]],callback:()=>{const e=this.hot.getSelectedRangeActive();e&&!e.isSingleHeader()&&(this.toggleMerge(e),this.hot.render())},runOnlyIf:e=>!e.altKey,group:I})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(I)}modifyViewportRowStart(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.startRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.row,1));if(i<e.startRow)return e.startRow=i,void this.modifyViewportRowStart(e,t)}}}modifyViewportRowEnd(e,t){const o=this.hot.rowIndexMapper,i=o.getVisualFromRenderableIndex(e.endRow);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(i,s);if((0,g.isObject)(n)){const i=n.row+n.rowspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endRow)return e.endRow=s,void this.modifyViewportRowEnd(e,t)}}}modifyViewportColumnStart(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.startColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n.col,1));if(i<e.startColumn)return e.startColumn=i,void this.modifyViewportColumnStart(e,t)}}}modifyViewportColumnEnd(e,t){const o=this.hot.columnIndexMapper,i=o.getVisualFromRenderableIndex(e.endColumn);for(let s=0;s<t;s+=1){const n=this.mergedCellsCollection.get(s,i);if((0,g.isObject)(n)){const i=n.col+n.colspan-1,s=o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(i,-1));if(s>e.endColumn)return e.endColumn=s,void this.modifyViewportColumnEnd(e,t)}}}translateMergedCellToRenderable(e,t,o,i){const{rowIndexMapper:s,columnIndexMapper:n}=this.hot;let r,a;r=0===t?s.getNearestNotHiddenIndex(e,1):s.getNearestNotHiddenIndex(e+t-1,-1),a=0===i?n.getNearestNotHiddenIndex(o,1):n.getNearestNotHiddenIndex(o+i-1,-1);return[e>=0?s.getRenderableFromVisualIndex(r):e,o>=0?n.getRenderableFromVisualIndex(a):o]}}function k(){this.generateFromSettings(),this.hot.render()}function D(e){if(e){const e=this.mergedCellsCollection.mergedCells,t=this.hot.getSelectedRangeActive(),o=t.getTopStartCorner(),i=t.getBottomEndCorner();for(let t=0;t<e.length;t+=1)if(o.row===e[t].row&&o.col===e[t].col&&i.row===e[t].row+e[t].rowspan-1&&i.col===e[t].col+e[t].colspan-1)return!1}return e}function L(e){b(A,this).row=e.row,b(A,this).col=e.col}function V(e){const t=this.hot.getSelectedRangeActive(),{highlight:o}=t,{columnIndexMapper:i,rowIndexMapper:s}=this.hot;b(O,this)&&(null!==s.getRenderableFromVisualIndex(b(O,this).row)&&(o.row=b(O,this).row),null!==i.getRenderableFromVisualIndex(b(O,this).col)&&(o.col=b(O,this).col),R(O,this,null));const n=this.mergedCellsCollection.get(o.row,o.col);if(!n)return;const r=n.col,a=n.col+n.colspan-1;if(e.col<0){const t=o.col>=r&&o.col<=a?r-1:a,s=i.getNearestNotHiddenIndex(t,-1);e.col=null===s?-this.hot.view.countRenderableColumnsInRange(0,o.col):-Math.max(this.hot.view.countRenderableColumnsInRange(s,o.col)-1,1)}else if(e.col>0){const t=o.col>=r&&o.col<=a?a+1:r,s=i.getNearestNotHiddenIndex(t,1);e.col=null===s?this.hot.view.countRenderableColumnsInRange(o.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(o.col,s)-1,1)}const l=n.row,h=n.row+n.rowspan-1;if(e.row<0){const t=o.row>=l&&o.row<=h?l-1:h,i=s.getNearestNotHiddenIndex(t,-1);e.row=null===i?-this.hot.view.countRenderableRowsInRange(0,o.row):-Math.max(this.hot.view.countRenderableRowsInRange(i,o.row)-1,1)}else if(e.row>0){const t=o.row>=l&&o.row<=h?h+1:l,i=s.getNearestNotHiddenIndex(t,1);e.row=null===i?this.hot.view.countRenderableRowsInRange(o.row,this.hot.countRows()):Math.max(this.hot.view.countRenderableRowsInRange(o.row,i)-1,1)}}function W(e){const t=this.hot.getSelectedRangeActive(),o=t.clone(),{to:i}=t,{columnIndexMapper:s,rowIndexMapper:n}=this.hot,r=(e,t)=>{o.expand(this.hot._createCellCoords(e,t));for(let e=0;e<this.mergedCellsCollection.mergedCells.length;e+=1)o.expandByRange(this.mergedCellsCollection.mergedCells[e].getRange())};if(e.col<0){let n=this.mergedCellsCollection.getStartMostColumnIndex(t,i.col)+e.col;r(i.row,n),"E-W"===t.getHorizontalDirection()&&"E-W"===o.getHorizontalDirection()&&(n=o.getTopStartCorner().col);const a=s.getNearestNotHiddenIndex(n,1);null!==a&&(e.col=-Math.max(this.hot.view.countRenderableColumnsInRange(a,i.col)-1,1))}else if(e.col>0){let n=this.mergedCellsCollection.getEndMostColumnIndex(t,i.col)+e.col;r(i.row,n),"W-E"===t.getHorizontalDirection()&&"W-E"===o.getHorizontalDirection()&&(n=o.getBottomEndCorner().col);const a=s.getNearestNotHiddenIndex(n,-1);null!==a&&(e.col=Math.max(this.hot.view.countRenderableColumnsInRange(i.col,a)-1,1))}if(e.row<0){let s=this.mergedCellsCollection.getTopMostRowIndex(t,i.row)+e.row;r(s,i.col),"S-N"===t.getVerticalDirection()&&"S-N"===o.getVerticalDirection()&&(s=o.getTopStartCorner().row);const a=n.getNearestNotHiddenIndex(s,1);null!==a&&(e.row=-Math.max(this.hot.view.countRenderableRowsInRange(a,i.row)-1,1))}else if(e.row>0){let s=this.mergedCellsCollection.getBottomMostRowIndex(t,i.row)+e.row;r(s,i.col),"N-S"===t.getVerticalDirection()&&"N-S"===o.getVerticalDirection()&&(s=o.getBottomStartCorner().row);const a=n.getNearestNotHiddenIndex(s,-1);null!==a&&(e.row=Math.max(this.hot.view.countRenderableRowsInRange(i.row,a)-1,1))}}function F(){const e=this.hot.getSelectedRangeLast(),{highlight:t}=e;if(this.hot.selection.isSelectedByColumnHeader()||this.hot.selection.isSelectedByRowHeader())return void R(O,this,t.clone());for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);for(let t=0;t<this.mergedCellsCollection.mergedCells.length;t+=1)e.expandByRange(this.mergedCellsCollection.mergedCells[t].getRange(),!1);const o=this.mergedCellsCollection.get(t.row,t.col);R(O,this,t.clone()),o&&t.assign(o)}function B(e,t,o,i){if(e<0||t<0)return;const s=this.mergedCellsCollection.get(e,t);if(!s)return;const{row:n,col:r,colspan:a,rowspan:l}=s,h=n,c=r,u=n+l-1,d=r+a-1;if("render"===i&&this.getSetting("virtualized")){const e=this.hot.view.getActiveOverlayName(),t=["top","top_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleRow(),o=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)?0:this.hot.getFirstRenderedVisibleColumn();return[(0,p.clamp)(t,h,u),(0,p.clamp)(o,c,d),(0,p.clamp)(this.hot.getLastRenderedVisibleRow(),h,u),(0,p.clamp)(this.hot.getLastRenderedVisibleColumn(),c,d)]}return[h,c,u,d]}function U(e){e.items.push({name:"---------"},(0,u.default)(this))}function Y(){R(O,this,null)}function j(){if(b(O,this).isCell())return;const e=this.hot.getSelectedRangeActive(),t=e.getVerticalDirection(),o=e.getHorizontalDirection(),i=b(O,this).clone().normalize();b(N,this).setActiveNode(i.row,i.col),b(A,this).row>0||b(A,this).col>0?b(N,this).setPrevNodeAsActive():("E-W"===o&&b(A,this).col<0||"S-N"===t&&b(A,this).row<0)&&b(N,this).setNextNodeAsActive()}function z(e,t){const{columnIndexMapper:o,rowIndexMapper:i}=this.hot;let s=this.hot.getActiveSelectionLayerIndex(),n=null,r=null;if(b(A,this).col<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevHorizontalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).col>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextHorizontalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}else if(b(A,this).row<0){const{rowEnd:e,colEnd:t,selectionLayer:a}=b(N,this).getPrevVerticalNode();r=o.getNearestNotHiddenIndex(t,-1),n=i.getNearestNotHiddenIndex(e,-1),s=a}else if(b(A,this).row>0){const{rowStart:e,colStart:t,selectionLayer:a}=b(N,this).getNextVerticalNode();r=o.getNearestNotHiddenIndex(t,1),n=i.getNearestNotHiddenIndex(e,1),s=a}if(null!==n||null!==r){this.hot.selection.setActiveSelectionLayerIndex(s);const o=this.hot.getSelectedRangeActive(),i=this.hot._createCellCoords(n,r),a=this.mergedCellsCollection.get(i.row,i.col),l=this.hot.selection.highlight.getFocus();e=i.row,t=i.col,a?o.highlight.assign({row:this.hot.rowIndexMapper.getNearestNotHiddenIndex(a.row,1),col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(a.col,1)}):o.highlight.assign(i),l.clear(),l.add(i).commit()}b(N,this).setActiveNode(e,t,s),R(A,this,{row:0,col:0})}function G(){b(N,this).buildFocusOrder(this.hot.getSelectedRange())}function $(e,t,o){const i=this.mergedCellsCollection.get(e,t);i&&(i.row!==e||i.col!==t?o.copyable=!1:(o.rowspan=i.rowspan,o.colspan=i.colspan))}function K(e){if(this.getSetting("virtualized"))return;const t=this.hot.countCols();this.modifyViewportRowStart(e,t),this.modifyViewportRowEnd(e,t)}function X(e){if(this.getSetting("virtualized"))return;const t=this.hot.countRows();this.modifyViewportColumnStart(e,t),this.modifyViewportColumnEnd(e,t)}function q(e,t){const o=this.autofillCalculations.getDirection(t,e);if(this.autofillCalculations.dragAreaOverlapsCollections(t,e,o))return t;const i=this.hot._createCellCoords(t[0],t[1]),s=this.hot._createCellCoords(t[2],t[3]),n=this.hot._createCellRange(i,i,s),r=this.mergedCellsCollection.getWithinRange(n);return 0===r.length?e:this.autofillCalculations.snapDragArea(t,e,o,r)}function Q(e,t){this.mergedCellsCollection.shiftCollections("right",e,t)}function J(e,t){this.mergedCellsCollection.shiftCollections("left",e,t)}function Z(e,t,o){"auto"!==o&&this.mergedCellsCollection.shiftCollections("down",e,t)}function ee(e,t){this.mergedCellsCollection.shiftCollections("up",e,t)}function te(e,t){"Autofill.fill"===t&&this.autofillCalculations.recreateAfterDataPopulation(e)}function oe(e,t){if(t&&"area"===t){const t=this.hot.getSelectedRangeActive(),o=this.mergedCellsCollection.getWithinRange(t);(0,d.arrayEach)(o,o=>{t.getBottomEndCorner().row===o.getLastRow()&&t.getBottomEndCorner().col===o.getLastColumn()&&(e[2]=o.row,e[3]=o.col)})}}function ie(e,t,o,i){if(o)return this.selectionCalculations.getSelectedMergedCellClassName(e,t,o,i)}function se(){return this.selectionCalculations.getSelectedMergedCellClassNameToRemove()}function ne(e,t,o,i){if(!(i instanceof MouseEvent))return;const s=this.hot.getSelectedRangeActive(),n=this.mergedCellsCollection.getByRange(s);if(!n)return;const r=this.hot._createCellCoords(n.row,n.col),a=this.hot._createCellCoords(n.row+n.rowspan-1,n.col+n.colspan-1);return 0===this.hot.selection.getLayerLevel()&&s.isEqual(this.hot._createCellRange(r,r,a))}function re(e,t,o){if(this.hot.getSettings().rowHeaders||"bottom"===o||"bottom_inline_start_corner"===o)return e;let i,s;if("master"===o)i=this.hot.getFirstRenderedVisibleColumn(),s=this.hot.getLastRenderedVisibleColumn();else{const e=this.hot.view.getOverlayByName(o);i=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getFirstRenderedColumn()),s=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e.clone.wtTable.getLastRenderedColumn())}if(!this.mergedCellsCollection.get(t,i))return e;const n=this.hot._createCellCoords(t,i),r=this.hot._createCellCoords(t,s),a=this.hot._createCellRange(n,n,r),l=this.mergedCellsCollection.getWithinRange(a,!0),h=l.reduce((e,t)=>{let{rowspan:o}=t;return Math.max(e,o)},1);let c=0;return l.length>1&&l[0].rowspan<h&&(c=h-l[0].rowspan),l.forEach(i=>{let{rowspan:s}=i,n=0;n="top"===o||"top_inline_start_corner"===o?Math.min(h,this.hot.view.countNotHiddenFixedRowsTop()-t):s-c,e=Math.max(null!=e?e:0,(0,y.sumCellsHeights)(this.hot,t,n))}),e}t.MergeCells=x},76100:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.correctFormat=c,t.dateValidator=h;var s=i(o(86798)),n=o(89211),r=o(17286),a=o(3161);const l=t.VALIDATOR_TYPE="date";function h(e,t){const o=(0,n.getEditorInstance)(r.EDITOR_TYPE,this.instance);let i=e,a=!0;null==i&&(i="");let l=(0,s.default)(i,this.dateFormat||o.defaultDateFormat,!0).isValid(),h=(0,s.default)(new Date(i)).isValid()||l;if(this.allowEmpty&&""===i&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=c(i,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function c(e,t){const o=(0,s.default)((0,a.getNormalizedDate)(e)),i=(0,s.default)(e,t),n=e.search(/[A-Za-z]/g)>-1;let r;return r=o.isValid()&&o.format("x")===i.format("x")||!i.isValid()||n?o:i,r.format(t)}h.VALIDATOR_TYPE=l},76323:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(64039);var s=i(o(24300)),n=o(94576),r=o(4138);t.CommandExecutor=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"commands",{}),(0,s.default)(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];const s=e.split(":"),a=s[0],l=2===s.length?s[1]:null;let h=this.commands[a];if(!h)throw new Error(`Menu command '${a}' not exists.`);if(l&&h.submenu&&(h=function(e,t){let o;return(0,n.arrayEach)(t,t=>{const i=t.key?t.key.split(":"):null;if(Array.isArray(i)&&i[1]===e)return o=t,!1}),o}(l,h.submenu.items)),!0===h.disabled)return;if("function"==typeof h.disabled&&!0===h.disabled.call(this.hot))return;if((0,r.hasOwnProperty)(h,"submenu"))return;const c=[];"function"==typeof h.callback&&c.push(h.callback),"function"==typeof this.commonCallback&&c.push(this.commonCallback),o.unshift(s.join(":")),(0,n.arrayEach)(c,e=>e.apply(this.hot,o))}}},76439:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.getRenderedValue=l,t.numericRenderer=h,o(99356);var s=i(o(20846)),n=o(54657),r=o(58604);const a=t.RENDERER_TYPE="numeric";function l(e,t){if((0,r.isNumeric)(e)){const o=t.numericFormat,i=o&&o.culture||"-",n=o&&o.pattern;if(void 0!==i&&!s.default.languages()[i]){const e=i.replace("-",""),t=s.default.allLanguages?s.default.allLanguages[i]:s.default[e];t&&s.default.registerLanguage(t)}s.default.setLanguage(i),e=(0,s.default)(e).format(n||"0")}return e}function h(e,t,o,i,s,a,h){let c=a;if((0,r.isNumeric)(c)){let e=[];if(Array.isArray(h.className))e=h.className;else{var u;const t=null!==(u=h.className)&&void 0!==u?u:"";t.length&&(e=t.split(" "))}c=l(c,h),e.indexOf("htLeft")<0&&e.indexOf("htCenter")<0&&e.indexOf("htRight")<0&&e.indexOf("htJustify")<0&&e.push("htRight"),e.indexOf("htNumeric")<0&&e.push("htNumeric"),h.className=e.join(" "),t.dir="ltr"}(0,n.textRenderer)(e,t,o,i,s,c,h)}h.RENDERER_TYPE=a},76623:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{rowClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ROW_TYPE})};var s=o(13743),n=i(o(6711))},77089:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(5908);t.VALIDATOR_TYPE=i.VALIDATOR_TYPE,t.dropdownValidator=i.dropdownValidator},77164:(e,t,o)=>{"use strict";t.__esModule=!0,o(99356),o(34478),o(31143),o(33098);var i=o(13743),s=o(83011);class n extends s.StretchStrategy{calculate(){const e=Array.from(this.baseWidths).reduce((e,t)=>{let[,o]=t;return e+o},0);if(this.viewportWidth-e<0)return void this.stretchedWidths.clear();const t=this.viewportWidth/e,o=[],s=[];let n=this.viewportWidth,r=0;if(this.baseWidths.forEach((e,a)=>{const l=Math.round(e*t),h=this.overwriteColumnWidthFn(l,a);l===h&&l>=i.DEFAULT_COLUMN_WIDTH?(o.push([a,h]),r+=h):l!==h&&(o.push([a,h]),s.push(a),n-=h)}),n<=i.DEFAULT_COLUMN_WIDTH)return void this.stretchedWidths.clear();const a=n/r;let l=-1,h=0;o.forEach((e,t)=>{let[i,n]=e,r=n;s.includes(i)||(r=Math.round(n*a)),this.stretchedWidths.set(i,r),l=i,t<o.length-1&&(h+=r)}),this.stretchedWidths.size>1&&this.stretchedWidths.set(l,Math.round(this.viewportWidth-h))}}t.StretchAllStrategy=n},77416:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(58604);t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",{}),this.hot=e}setOptions(e){this.options=e}getData(){const{startRow:e,startCol:t,endRow:o,endCol:i}=this._getDataRange(),s=this.options,r=[];return(0,n.rangeEach)(e,o,e=>{const o=[];!s.exportHiddenRows&&this._isHiddenRow(e)||((0,n.rangeEach)(t,i,t=>{!s.exportHiddenColumns&&this._isHiddenColumn(t)||o.push(this.hot.getDataAtCell(e,t))}),r.push(o))}),r}getRowHeaders(){const e=[];if(this.options.rowHeaders){const{startRow:t,endRow:o}=this._getDataRange(),i=this.hot.getRowHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenRows&&this._isHiddenRow(t)||e.push(i[t])})}return e}getColumnHeaders(){const e=[];if(this.options.columnHeaders){const{startCol:t,endCol:o}=this._getDataRange(),i=this.hot.getColHeader();(0,n.rangeEach)(t,o,t=>{!this.options.exportHiddenColumns&&this._isHiddenColumn(t)||e.push(i[t])})}return e}_getDataRange(){const e=this.hot.countCols()-1,t=this.hot.countRows()-1;let[o=0,i=0,s=t,n=e]=this.options.range;return o=Math.max(o,0),i=Math.max(i,0),s=Math.min(s,t),n=Math.min(n,e),{startRow:o,startCol:i,endRow:s,endCol:n}}_isHiddenRow(e){return this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))}_isHiddenColumn(e){return this.hot.columnIndexMapper.isHidden(this.hot.toPhysicalColumn(e))}}},77439:(e,t,o)=>{"use strict";var i=o(19682),s=Function.prototype.call;e.exports=i?s.bind(s):function(){return s.apply(s,arguments)}},77537:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=i(o(86798)),r=i(o(75972)),a=o(67347),l=o(32813),h=o(78966),c=o(4138),u=o(38830),d=o(40929);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.EDITOR_TYPE="date",m="dateEditor";var w=new WeakSet;class C extends l.TextEditor{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return p}init(){if("function"!=typeof n.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof r.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=f(w,this,v).call(this),o=this.hot.view.isMouseDown(),i=!!e&&(0,u.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new r.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(n.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),i||o||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,n.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,n.default)(s,t),!0),i||o||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,o={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,c.deepExtend)(o,this.cellProperties.datePickerConfig);const i=o.onSelect,s=o.onClose;return o.field=t,o.trigger=t,o.container=this.datePicker,o.bound=!1,o.keyboardInput=!1,o.format=null!==(e=o.format)&&void 0!==e?e:f(w,this,v).call(this),o.reposition=o.reposition||!1,o.isRTL=!1,o.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,n.default)(t).format(f(w,this,v).call(this))),this.setValue(t),i&&i(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},o.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},o}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:o,columnIndexMapper:i}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:n}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,r=o.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleRow()),l=o.getVisualFromRenderableIndex(n.getLastPartiallyVisibleRow()),c=i.getVisualFromRenderableIndex(n.getFirstPartiallyVisibleColumn()),u=i.getVisualFromRenderableIndex(n.getLastPartiallyVisibleColumn());if(this.row>=r&&this.row<=l&&this.col>=c&&this.col<=u){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function v(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=C},77618:e=>{"use strict";var t=TypeError;e.exports=function(e,o){if(e<o)throw new t("Not enough arguments");return e}},77969:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(82328),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143),o(940);var s=o(78966),n=o(17924),r=i(o(99839));function a(e,t,o){l(e,t),t.set(e,o)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(u(e,t))}function c(e,t,o){return e.set(u(e,t),o),o}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakMap,C=new WeakSet;function v(){const e=h(p,this).get(h(d,this)),t=h(d,this).wtSettings.getSetting("onBeforeRemoveCellClassNames");if(Array.isArray(t))for(let o=0;o<t.length;o++)e.add(t[o]);e.forEach(e=>{var t,o;const i=h(d,this).wtTable.TABLE.querySelectorAll(`.${e}`);let n=[];Array.isArray(null===(t=h(g,this).options)||void 0===t?void 0:t.cellAttributes)&&(n=h(g,this).options.cellAttributes.map(e=>e[0])),Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.headerAttributes)&&(n=[...n,...h(g,this).options.headerAttributes.map(e=>e[0])]);for(let t=0,o=i.length;t<o;t++)(0,s.removeClass)(i[t],e),(0,s.removeAttribute)(i[t],n)}),e.clear()}t.SelectionManager=class{constructor(e){var t,o;l(t=this,o=C),o.add(t),a(this,d,void 0),a(this,g,void 0),a(this,f,new n.SelectionScanner),a(this,p,new WeakMap),a(this,m,new WeakSet),a(this,w,new Map),c(g,this,e)}setActiveOverlay(e){return c(d,this,e),h(f,this).setActiveOverlay(h(d,this)),h(p,this).has(h(d,this))||h(p,this).set(h(d,this),new Set),this}getFocusSelection(){return null!==h(g,this)?h(g,this).getFocus():null}getAreaSelection(){return null!==h(g,this)?h(g,this).createLayeredArea():null}getBorderInstance(e){if(!e.settings.border)return null;if(h(w,this).has(e)){const t=h(w,this).get(e);if(t.has(h(d,this)))return t.get(h(d,this));const o=new r.default(h(d,this),e.settings);return t.set(h(d,this),o),o}const t=new r.default(h(d,this),e.settings);return h(w,this).set(e,new Map([[h(d,this),t]])),t}getBorderInstances(e){var t,o;return Array.from(null!==(t=null===(o=h(w,this).get(e))||void 0===o?void 0:o.values())&&void 0!==t?t:[])}destroyBorders(e){h(w,this).get(e).forEach(e=>e.destroy()),h(w,this).delete(e)}render(e){if(null===h(g,this))return;e&&u(C,this,v).call(this);const t=Array.from(h(g,this)),o=new Map,i=new Map;for(let e=0;e<t.length;e++){const s=t[e],{className:n,headerAttributes:r,createLayers:a,selectionType:l}=s.settings;h(m,this).has(s)||(h(m,this).add(s),s.addLocalHook("destroy",()=>this.destroyBorders(s)));const c=this.getBorderInstance(s);if(s.isEmpty()){null==c||c.disappear();continue}if(n){h(f,this).setActiveSelection(s).scan().forEach(e=>{if(o.has(e)){const t=o.get(e);t.has(n)&&!0===a?t.set(n,t.get(n)+1):t.set(n,1)}else o.set(e,new Map([[n,1]]));r&&(i.has(e)||i.set(e,[]),"TH"===e.nodeName&&i.get(e).push(...r))})}const u=s.getCorners();h(d,this).getSetting("onBeforeDrawBorders",u,l),null==c||c.appear(u)}o.forEach((e,t)=>{var o;const i=Array.from(e).map(e=>{let[t,o]=e;return 1===o?t:[t,...Array.from({length:o-1},(e,o)=>`${t}-${o+1}`)]}).flat();i.forEach(e=>h(p,this).get(h(d,this)).add(e)),(0,s.addClass)(t,i),"TD"===t.nodeName&&Array.isArray(null===(o=h(g,this).options)||void 0===o?void 0:o.cellAttributes)&&(0,s.setAttribute)(t,h(g,this).options.cellAttributes)}),Array.from(i.keys()).forEach(e=>{(0,s.setAttribute)(e,[...i.get(e)])})}}},78152:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(35234),s=o(34758);const n=t.CELL_TYPE="select";t.SelectCellType={CELL_TYPE:n,editor:i.SelectEditor,renderer:s.selectRenderer}},78172:(e,t)=>{"use strict";t.__esModule=!0,t.isNullishOrNaN=function(e){return null==e||isNaN(e)}},78743:(e,t,o)=>{"use strict";t.__esModule=!0,o(99356);var i=o(94576),s=o(4138);const n={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,i.arrayEach)(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){(0,s.objectEach)(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};(0,s.defineGetter)(n,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=n},78790:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(31587);t.RENDERER_TYPE=i.RENDERER_TYPE,t.autocompleteRenderer=i.autocompleteRenderer},78918:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"plugin",void 0),this.hot=t,this.plugin=e}}},78938:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78152);t.CELL_TYPE=i.CELL_TYPE,t.SelectCellType=i.SelectCellType},78966:(e,t,o)=>{"use strict";t.__esModule=!0,t.addClass=c,t.addEvent=function(e,t,o){e.addEventListener(t,o,!1)},t.clearTextSelection=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;e.getSelection&&(e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges())},t.closest=a,t.closestDown=function(e,t,o){const i=[];let s=e;for(;s&&(s=a(s,t,o),s&&(!o||o.contains(s)));)i.push(s),s=s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.host:s.parentNode;const n=i.length;return n?i[n-1]:null},t.empty=g,t.fastInnerHTML=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];f.test(t)?e.innerHTML=o?(0,i.sanitize)(t):t:p(e,t)},t.fastInnerText=p,t.findFirstParentWithClass=function(e,t){const o={element:void 0,classNames:[]};let i=e;for(;null!==i&&i!==e.ownerDocument.documentElement&&!o.element;){if("string"==typeof t&&i.classList.contains(t))o.element=i,o.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(i.classList).filter(e=>t.test(e));e.length&&(o.element=i,o.classNames.push(...e))}i=i.parentElement}return o},t.getCaretPosition=function(e){if(e.selectionStart)return e.selectionStart;return 0},t.getCssTransform=function(e){let t;if(e.style.transform&&""!==(t=e.style.transform))return["transform",t];return-1},t.getFractionalScalingCompensation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!(0,n.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=r,t.getMaximumScrollLeft=function(e){return e.scrollWidth-e.clientWidth},t.getMaximumScrollTop=function(e){return e.scrollHeight-e.clientHeight},t.getParent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=-1,i=null,s=e;for(;null!==s;){if(o===t){i=s;break}s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s=s.host:(o+=1,s=s.parentNode)}return i},t.getParentWindow=function(e){return r(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return w(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,o=t?t.defaultView:void 0;t||(t=e.document?e.document:e,o=t.defaultView);const i=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:n}=s.style;if([e,t,n].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:n}=o.getComputedStyle(s)),i.includes(e)||i.includes(t)||i.includes(n))return s;if(s.clientHeight<=s.scrollHeight+1&&(i.includes(n)||i.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(i.includes(t)||i.includes(e)))return s;s=s.parentNode}return o},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===C&&(C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const o=e.createElement("div");(0,n.isSafari)()&&!(0,n.isMobileBrowser)()&&o.classList.add("htScrollbarSafariTest");o.style.boxSizing="content-box",o.style.height="150px",o.style.left="0px",o.style.overflow="hidden",o.style.position="absolute",o.style.top="0px",o.style.width="200px",o.style.visibility="hidden",o.appendChild(t),(e.body||e.documentElement).appendChild(o);const i=t.getBoundingClientRect().width;o.style.overflow="scroll";let s=t.getBoundingClientRect().width;i===s&&(s=o.clientWidth);return(e.body||e.documentElement).removeChild(o),parseFloat((i-s).toFixed(3))}(e));return C},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let o="";e.getSelection?o=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(o=t.selection.createRange().text);return o},t.getStyle=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===o)return"width"===t?`${o.innerWidth}px`:"height"===t?`${o.innerHeight}px`:void 0;const i=e.style[t];if(""!==i&&void 0!==i)return i;const s=o.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,o=t.defaultView;let i=e.parentNode;for(;i&&i.style&&t.body!==i;){if("visible"!==i.style.overflow&&""!==i.style.overflow)return i;const e=o.getComputedStyle(i),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),n=e.getPropertyValue("overflow-y"),r=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(n)||t.includes(r))return i;i=i.parentNode}return o},t.getWindowScrollLeft=w,t.getWindowScrollTop=m,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let o=e;for(;o.parentNode;){if("0px"===o.style.height||"0"===o.style.height)return"hidden"===t.getComputedStyle(o).overflow;o=o.parentNode}return!1},t.index=function(e){let t=0,o=e;if(o.previousSibling)for(;o=o.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){let o=e.parentNode,i=[];"string"==typeof t?i=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):i.push(t);for(;null!==o;){if(i.indexOf(o)>-1)return!0;o=o.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const o=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(o&&null!==o&&e instanceof o)},t.isInput=v,t.isInternalElement=function(e,t){const o=e.closest(".handsontable");return!!o&&(o.parentNode===t||o===t)},t.isOutsideInput=y,t.isVisible=function e(t){const o=t.ownerDocument.documentElement,i=t.ownerDocument.defaultView;let s=t;for(;s!==o;){if(null===s)return!1;if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(s.host){if(s.host.impl)return e(s.host.impl);if(s.host)return e(s.host);throw new Error("Lost in Web Components world")}return!1}if("none"===i.getComputedStyle(s).display)return!1;s=s.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=S,t.matchesCSSRules=function(e,t){const{selectorText:o}=t;let i=!1;t.type===CSSRule.STYLE_RULE&&o&&(e.msMatchesSelector?i=e.msMatchesSelector(o):e.matches&&(i=e.matches(o)));return i},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((o,i)=>{o.forEach(o=>{o.isIntersecting&&null!==e.offsetParent&&(t(),i.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,o=t.defaultView,i=t.documentElement;let s,n,r,a=e;s=a.offsetLeft,n=a.offsetTop,r=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,n+=a.offsetTop,r=a;r&&"fixed"===r.style.position&&(s+=o.pageXOffset||i.scrollLeft,n+=o.pageYOffset||i.scrollTop);return{left:s,top:n}},t.outerHeight=function(e){return e.getBoundingClientRect().height},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,o){const i=o.parentElement.querySelector(`.ht_clone_${e}`);return i?i.contains(t):null},t.removeAttribute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);const{regexFree:o,regexes:i}=h(t,!0);o.forEach(t=>{""!==t&&e.removeAttribute(t)}),i.forEach(t=>{e.getAttributeNames().forEach(o=>{t.test(o)&&e.removeAttribute(o)})})},t.removeClass=u,t.removeContentEditableFromElementAndDeselect=E,t.removeEvent=function(e,t,o){e.removeEventListener(t,o,!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){const o=t.childNodes;for(let t=o.length-1;t>=0;t--)e(o[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];S(e,o),t(),E(e,o)},t.selectElementIfAllowed=function(e){y(e.ownerDocument.activeElement)||e.select()},t.setAttribute=d,t.setCaretPosition=function(e,t,o){void 0===o&&(o=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(i){const s=e.parentNode,n=s.style.display;s.style.display="block",e.setSelectionRange(t,o),s.style.display=n}}},t.setOverlayPosition=function(e,t,o){e.style.transform=`translate3d(${t},${o},0)`},o(52490),o(99356),o(34478),o(29810),o(31143);var i=o(2744),s=o(72609),n=o(40929);function r(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:i,DOCUMENT_FRAGMENT_NODE:s}=Node;let n=e;for(;null!=n&&n!==o;){const{nodeType:e,nodeName:o}=n;if(e===i&&(t.includes(o)||t.includes(n)))return n;const{host:r}=n;n=r&&e===s?r:n.parentNode}return null}function l(e){return e&&e.length?e.filter(e=>!!e):[]}function h(e,t){if(!e||!e.length)return t?{regexFree:[],regexes:[]}:[];const o=[],i=[];return i.push(...e.filter(e=>{const i=e instanceof RegExp;return i&&t&&o.push(e),!i})),t?{regexFree:i,regexes:o}:i}function c(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(t)).length>0&&e.classList.add(...t)}function u(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:o,regexes:i}=h(t,!0);o=l(o),o.length>0&&e.classList.remove(...o),i.forEach(t=>{e.classList.forEach(o=>{t.test(o)&&e.classList.remove(o)})})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,o]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function g(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const f=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function p(e,t){const o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?o.textContent=t:(g(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function w(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let C;function v(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function y(e){return v(e)&&!1===e.hasAttribute("data-hot-input")}function S(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=e.ownerDocument,n=i.createRange(),r=i.defaultView.getSelection();d(e,"contenteditable",!0),o&&d(e,...(0,s.A11Y_HIDDEN)()),t&&c(e,"invisibleSelection"),n.selectNodeContents(e),r.removeAllRanges(),r.addRange(n)}function E(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),o.removeAllRanges(),t&&u(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},79007:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(30286),s=o(69425),n=o(17604);class r extends i.IndexMap{constructor(){super(e=>e)}insert(e,t){const o=(0,n.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(o,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,n.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=r},79035:(e,t)=>{"use strict";let o;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o)return o;o="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return o},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},79133:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(90331);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CustomBorders=i.CustomBorders},79268:(e,t,o)=>{"use strict";var i=o(30717),s=Math.min;e.exports=function(e){var t=i(e);return t>0?s(t,9007199254740991):0}},79308:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.condition=l;var s=i(o(86798)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),r=o(23895);const a=t.CONDITION_NAME="date_before";function l(e,t){let[o]=t;const i=(0,s.default)(e.value,e.meta.dateFormat),n=(0,s.default)(o,e.meta.dateFormat);return!(!i.isValid()||!n.isValid())&&i.diff(n)<=0}(0,r.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},79420:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{areaCornerVisible:t,...o}=e;return new n.default({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:t},...o,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=o(13743),n=i(o(6711))},79521:(e,t)=>{"use strict";t.__esModule=!0;t.REGISTERED_HOOKS=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","beforeSelectAll","afterSelectAll","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeHeightChange","beforeWidthChange","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","beforePageChange","afterPageChange","beforePageSizeChange","afterPageSizeChange","afterPageSizeVisibilityChange","afterPageCounterVisibilityChange","afterPageNavigationVisibilityChange","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterDialogHide","afterDialogShow","beforeDialogHide","beforeDialogShow","dialogFocusPreviousElement","dialogFocusNextElement","afterDialogFocus","beforeLoadingShow","afterLoadingShow","beforeLoadingHide","afterLoadingHide","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],t.REMOVED_HOOKS=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),t.DEPRECATED_HOOKS=new Map([[]])},79675:(e,t,o)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function o(){return[...t]}function n(e){return t.has(e)}return e=(0,i.isFunction)(e)?e:s,{addItem:function(o,i){if(n(o))throw new Error(e(o));t.set(o,i)},clear:function(){t.clear()},getId:function(e){const[t]=o().find(t=>{let[o,i]=t;return e===i&&o})||[null];return t},getItem:function(e){return t.get(e)},getItems:o,hasItem:n,removeItem:function(e){return t.delete(e)}}},o(52490),o(34478),o(90643);var i=o(81761);const s=e=>`The id '${e}' is already declared in a map.`},79728:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(58584);var s=i(o(24300)),n=o(94576);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,s.default)(this,"rootWindow",void 0),(0,s.default)(this,"prefix",void 0),(0,s.default)(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const o=void 0===e?t:e,i=this.rootWindow.localStorage.getItem(`${this.prefix}_${o}`);return null===i?void 0:JSON.parse(i)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,n.arrayEach)(this.savedKeys,(e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)}),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}}},79930:(e,t,o)=>{"use strict";o(34478),o(31143);var i=o(73805);t.__esModule=!0;var s={Selection:!0,handleMouseEvent:!0,detectSelectionType:!0,normalizeSelectionFactory:!0},n=i(o(81412));t.Selection=n.default;var r=o(55189);t.handleMouseEvent=r.handleMouseEvent;var a=o(48971);t.detectSelectionType=a.detectSelectionType,t.normalizeSelectionFactory=a.normalizeSelectionFactory;var l=o(38465);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===l[e]||(t[e]=l[e]))})},79937:(e,t,o)=>{"use strict";var i=o(42328),s=o(15176),n=o(53872),r=o(30812);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=i(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(e){}return function(o,i){return n(o),r(i),s(o)?(t?e(o,i):o.__proto__=i,o):o}}():void 0)},80249:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356),o(34478),o(31143);var i=o(26808),s=o(78966),n=o(94576),r=o(58604),a=o(55656);function l(e,t,o){h(e,t),t.set(e,o)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,o){return e.set(d(e,t),o),o}function u(e,t){return e.get(d(e,t))}function d(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const g=t.PLUGIN_KEY="manualColumnResize",f=t.PLUGIN_PRIORITY=130,p="manualColumnWidths";var m=new WeakMap,w=new WeakMap,C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakSet;class H extends i.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return f}constructor(e){var t,o;super(e),h(t=this,o=P),o.add(t),l(this,m,null),l(this,w,null),l(this,C,[]),l(this,v,null),l(this,y,null),l(this,S,null),l(this,E,null),l(this,R,null),l(this,b,this.hot.rootDocument.createElement("DIV")),l(this,_,this.hot.rootDocument.createElement("DIV")),l(this,T,null),l(this,M,!1),l(this,I,0),l(this,O,null),l(this,A,void 0),l(this,N,void 0),(0,s.addClass)(u(b,this),"manualColumnResizer"),(0,s.addClass)(u(_,this),"manualColumnResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){var e=this;this.enabled||(c(A,this,new a.PhysicalIndexToValueMap),u(A,this).addLocalHook("init",()=>d(P,this,x).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,u(A,this)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,F).call(e,...o)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,B).call(e,...o)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return d(P,e,U).call(e,...o)}),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){c(N,this,u(A,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",p,u(A,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",p,e),e.value}setManualSize(e,t){const o=Math.max(t,20),i=this.hot.toPhysicalColumn(e);return u(A,this).setValueAtIndex(i,o),o}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);u(A,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode||u(I,this)>1)return;c(m,this,e);const{_wt:t}=this.hot.view,o=t.wtTable.getCoords(u(m,this)),i=o.col;if(i<0)return;const a=(0,s.outerHeight)(u(m,this)),l=u(m,this).getBoundingClientRect();let h;i<t.getSetting("fixedColumnsStart")&&(h=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(u(m,this),o.row,o.col)),h||(h=t.wtOverlays.topOverlay.getRelativeCellPosition(u(m,this),o.row,o.col)),c(w,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)),c(C,this,[]);const d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&d){const e=this.hot.getSelectedRange();(0,n.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,o=e.getBottomEndCorner().col;(0,r.rangeEach)(t,o,e=>{u(C,this).includes(e)||u(C,this).push(e)})})}u(C,this).includes(u(w,this))||c(C,this,[u(w,this)]),c(R,this,h.start-6),c(E,this,parseInt(l.width,10)),u(b,this).style.top=`${h.top}px`,u(b,this).style[this.inlineDir]=`${u(R,this)+u(E,this)}px`,u(b,this).style.height=`${a}px`,this.hot.rootElement.appendChild(u(b,this))}refreshHandlePosition(){u(b,this).style[this.inlineDir]=`${u(R,this)+u(v,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerHeight)(u(b,this)),10),t=parseInt(u(b,this).style.top,10)+e,o=this.hot.view.getTableHeight();(0,s.addClass)(u(b,this),"active"),(0,s.addClass)(u(_,this),"active"),u(_,this).style.top=`${t}px`,this.refreshGuidePosition(),u(_,this).style.height=o-e+"px",this.hot.rootElement.appendChild(u(_,this))}refreshGuidePosition(){u(_,this).style[this.inlineDir]=u(b,this).style[this.inlineDir]}hideHandleAndGuide(){(0,s.removeClass)(u(b,this),"active"),(0,s.removeClass)(u(_,this),"active")}checkIfColumnHeader(e){const t=(0,s.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:o,topInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;return[o.clone.wtTable.THEAD,i.clone.wtTable.THEAD].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{const i=this.hot.runHooks("beforeColumnResize",u(y,this),t,!0);void 0!==i&&c(y,this,i),this.setManualSize(t,u(y,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",u(y,this),t,!0),o&&e()};if(u(I,this)>=2){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.arrayEach)(u(C,this),e=>{t(e,!0)})}c(I,this,0),c(O,this,null)}bindEvents(){const{rootWindow:e,rootElement:t}=this.hot;this.eventManager.addEventListener(t,"mouseover",e=>d(P,this,k).call(this,e)),this.eventManager.addEventListener(t,"mousedown",e=>d(P,this,D).call(this,e)),this.eventManager.addEventListener(e,"mousemove",e=>d(P,this,L).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>d(P,this,V).call(this)),this.eventManager.addEventListener(u(b,this),"contextmenu",()=>d(P,this,W).call(this))}destroy(){super.destroy()}}function x(){const e=this.hot.getSettings()[g],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution(()=>{t.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0):Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0),c(N,this,e)):!0===e&&Array.isArray(u(N,this))&&this.hot.batchExecution(()=>{u(N,this).forEach((e,t)=>{u(A,this).setValueAtIndex(t,e)})},!0)}function k(e){if(!(0,s.isDetached)(e.target)&&!0!==u(M,this)&&this.checkIfColumnHeader(e.target)){const t=this.getClosestTHParent(e.target);if(!t)return;const o=t.getAttribute("colspan");!t||null!==o&&"1"!==o||u(T,this)||this.setupHandlePosition(t)}}function D(e){e.target.parentNode===this.hot.rootElement&&(0,s.hasClass)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(u(m,this)),this.setupGuidePosition(),c(T,this,!0),null===u(O,this)&&(c(O,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(u(O,this))),c(I,this,u(I,this)+1),this.startX=e.pageX,c(y,this,u(E,this)))}function L(e){if(u(T,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();c(v,this,u(E,this)+t),(0,n.arrayEach)(u(C,this),e=>{c(y,this,this.setManualSize(e,u(v,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function V(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,o)=>{this.hot.runHooks("beforeColumnResize",u(y,this),t,!1),o&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",u(y,this),t,!1)};if(u(T,this)){if(this.hideHandleAndGuide(),c(T,this,!1),u(y,this)!==u(E,this)){u(C,this).length>1?((0,n.arrayEach)(u(C,this),e=>{t(e)}),e()):(0,n.arrayEach)(u(C,this),e=>{t(e,!0)})}this.setupHandlePosition(u(m,this))}}function W(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(u(b,this)),this.hot.rootElement.removeChild(u(_,this)),c(T,this,!1),c(M,this,!0),this.hot._registerImmediate(()=>{c(M,this,!1)})}function F(e,t){let o=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),i=u(A,this).getValueAtIndex(e);this.hot.getSettings()[g]&&i&&(o=i)}return o}function B(e,t){const o=u(A,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof o?o:e}function U(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=H},80269:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(17725);const r=t.DEFAULT_WIDTH=50;class a extends n.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportWidth:o,scrollOffset:i,totalColumns:n,columnWidthFn:r,overrideFn:a,inlineStartOffset:l}=e;super(t),(0,s.default)(this,"viewportWidth",0),(0,s.default)(this,"scrollOffset",0),(0,s.default)(this,"zeroBasedScrollOffset",0),(0,s.default)(this,"totalColumns",0),(0,s.default)(this,"columnWidthFn",null),(0,s.default)(this,"columnWidth",0),(0,s.default)(this,"overrideFn",null),(0,s.default)(this,"inlineStartOffset",0),(0,s.default)(this,"totalCalculatedWidth",0),(0,s.default)(this,"startPositions",[]),(0,s.default)(this,"needReverse",!0),this.viewportWidth=o,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalColumns=n,this.columnWidthFn=r,this.overrideFn=a,this.inlineStartOffset=l,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const t=this.columnWidthFn(e);return isNaN(t)?r:t}}t.ViewportColumnsCalculator=a},80368:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[,o,,i]=e;o-i!==0&&(t=1)}return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:o}=this.getSelectedRangeActive(),i=Math.max(Math.min(t.col,o.col),0),s=Math.max(t.col,o.col),n=[];for(let e=i;e<=s;e+=1)n.push(e);e.hideColumns(n);const r=n[n.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(r,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},o(99356);var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481))},80393:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(81056);t.command={name:"moveCellSelectionInlineEnd",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(-r.row,-r.col):o.transformStart(-r.row,-r.col),o.markEndSource()}}},80706:(e,t,o)=>{"use strict";var i=o(15176),s=o(60606),n=o(12033)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[n])?!!t:"RegExp"===s(e))}},80715:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_with_column_group_headers",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS,t)},callback(){e.copyWithAllColumnHeaders()},disabled(){if(!this.hasColHeaders()||!this.getSettings().nestedHeaders)return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var i=o(44481),s=o(58604)},81002:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(36547)),n=o(78966);class r extends s.default{build(){super.build(),(0,n.addClass)(this._element,"ht__manualRowMove--backlight")}}t.default=r},81037:(e,t,o)=>{"use strict";var i=o(19451),s=o(44827),n=o(82683),r=o(57041),a=o(39393),l=r("IE_PROTO"),h=Object,c=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=n(e);if(i(t,l))return t[l];var o=t.constructor;return s(o)&&t instanceof o?o.prototype:t instanceof h?c:null}},81045:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(70536));function n(e,t,o){(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,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakMap,p=new WeakMap;t.default=class{constructor(e,t,o){n(this,h,void 0),n(this,c,void 0),n(this,u,void 0),n(this,d,!1),n(this,g,!1),n(this,f,null),n(this,p,null),a(h,this,new s.default("row",e,this)),a(c,this,new s.default("column",t,this)),a(u,this,o)}getForAxis(e){return r("row"===e?h:c,this)}setPerformUndo(e){a(d,this,e)}setPerformRedo(e){a(g,this,e)}isPerformingUndoRedo(){return r(d,this)||r(g,this)}getSheetId(){return r(p,this)}getEngine(){return r(f,this)}getPostponeAction(){return r(u,this)}setupSyncEndpoint(e,t){a(f,this,e),a(p,this,t),r(h,this).init(),r(c,this).init()}}},81053:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(34478),o(31143);var s=i(o(42299)),n=i(o(27180)),r=i(o(21602)),a=i(o(84392)),l=i(o(18805)),h=o(4138);class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];this.hot=e,this.globalMeta=new s.default(e),this.tableMeta=new n.default(this.globalMeta),this.columnMeta=new r.default(this.globalMeta),this.cellMeta=new a.default(this.columnMeta),o.forEach(e=>new e(this)),this.globalMeta.updateMeta(t)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,t){this.columnMeta.updateMeta(e,t)}getCellMeta(e,t,o){const i=this.cellMeta.getMeta(e,t);return i.visualRow=o.visualRow,i.visualCol=o.visualColumn,i.row=e,i.col=t,o.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",i),i}getCellMetaKeyValue(e,t,o){if("string"!=typeof o)throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,t,o)}setCellMeta(e,t,o,i){this.cellMeta.setMeta(e,t,o,i)}updateCellMeta(e,t,o){this.cellMeta.updateMeta(e,t,o)}removeCellMeta(e,t,o){this.cellMeta.removeMeta(e,t,o)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createRow(e,t)}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeRow(e,t)}createColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.createColumn(e,t),this.columnMeta.createColumn(e,t)}removeColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cellMeta.removeColumn(e,t),this.columnMeta.removeColumn(e,t)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}t.default=c,(0,h.mixin)(c,l.default)},81056:(e,t,o)=>{"use strict";o(33873)},81217:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(31143);var s=i(o(24300)),n=o(4138),r=o(9013),a=o(94576),l=o(58604),h=o(81761);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,s.default)(this,"hot",void 0),(0,s.default)(this,"data",void 0),(0,s.default)(this,"dataType","array"),(0,s.default)(this,"colToProp",()=>{}),(0,s.default)(this,"propToCol",()=>{}),this.hot=e,this.data=t}modifyRowData(e){let t;return this.hot.hasHook("modifyRowData")&&(t=this.hot.runHooks("modifyRowData",e)),void 0===t||Number.isInteger(t)?this.data[e]:t}getData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.data&&0!==this.data.length?this.getByRange(null,null,e):this.data}setData(e){this.data=e}getAtColumn(e){const t=[];return(0,a.arrayEach)(this.data,(o,i)=>{const s=this.getAtCell(i,e);t.push(s)}),t}getAtRow(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=void 0===t&&void 0===o,{dataDotNotation:r}=this.hot.getSettings();let a=null,c=null;if(a=this.modifyRowData(e),Array.isArray(a))c=[],s?a.forEach((t,o)=>{c[o]=this.getAtPhysicalCell(e,o,a)}):(0,l.rangeEach)(t,o,o=>{c[o-t]=this.getAtPhysicalCell(e,o,a)});else if((0,n.isObject)(a)||(0,h.isFunction)(a))if(c=i?[]:{},!s||i){const s=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(s,h,l=>{const u=this.colToProp(l);if(l>=(t||s)&&l<=(o||h)&&!Number.isInteger(u)){const t=this.getAtPhysicalCell(e,u,a);i?c.push(t):r?(0,n.setProperty)(c,u,t):c[u]=t}})}else(0,n.objectEach)(a,(t,o)=>{const i=this.getAtPhysicalCell(e,o,a);r?(0,n.setProperty)(c,o,i):c[o]=i});return c}setAtCell(e,t,o){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const i=(0,n.createObjectPropListener)(o);this.hot.runHooks("modifySourceData",e,t,i,"set"),i.isTouched()&&(o=i.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=o:(0,n.setProperty)(this.data[e],t,o))}}getAtPhysicalCell(e,t,o){let i=null;if(o)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();i=e?(0,n.getProperty)(o,t):o[t]}else i="function"==typeof t?t(o):o[t];if(this.hot.hasHook("modifySourceData")){const o=(0,n.createObjectPropListener)(i);this.hot.runHooks("modifySourceData",e,t,o,"get"),o.isTouched()&&(i=o.value)}return i}getAtCell(e,t){const o=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),o)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,s=null,n=null,r=null,a=null;null===e||null===t?(i=!0,s=0,r=this.countRows()-1):(s=Math.min(e.row,t.row),n=Math.min(e.col,t.col),r=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const h=[];return(0,l.rangeEach)(s,r,e=>{h.push(i?this.getAtRow(e,void 0,void 0,o):this.getAtRow(e,n,a,o))}),h}getCopyable(e,t){const o=this.propToCol(t);return this.hot.getCellMeta(e,o).copyable?this.getAtCell(this.hot.toPhysicalRow(e),o):""}countRows(){if(this.hot.hasHook("modifySourceLength")){const e=this.hot.runHooks("modifySourceLength");if(Number.isInteger(e))return e}return this.data.length}countFirstRowKeys(){return(0,r.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},81412:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143),o(940),o(81056);var s=i(o(24300)),n=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(38465)),r=i(o(15503)),a=o(4138),l=o(7886),h=o(58604),c=o(94576),u=i(o(18805)),d=o(87066),g=o(48971),f=o(30738),p=o(72609);function m(e,t,o){(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,o)}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap;class M{constructor(e,t){var o=this;(0,s.default)(this,"settings",void 0),(0,s.default)(this,"tableProps",void 0),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"selectedRange",new r.default((e,t,o)=>this.tableProps.createCellRange(e,t,o))),(0,s.default)(this,"highlight",void 0),m(this,y,void 0),m(this,S,void 0),(0,s.default)(this,"selectedByRowHeader",new Set),(0,s.default)(this,"selectedByColumnHeader",new Set),m(this,E,!1),m(this,R,!1),m(this,b,"unknown"),m(this,_,-1),m(this,T,0),this.settings=e,this.tableProps=t,this.highlight=new n.default({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,cellAttributes:[(0,p.A11Y_SELECTED)()],rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,disabledCellSelection:(e,t)=>this.tableProps.isDisabledCellSelection(e,t),cellCornerVisible:function(){return o.isCellCornerVisible(...arguments)},areaCornerVisible:function(){return o.isAreaCornerVisible(...arguments)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),createCellRange:(e,t,o)=>this.tableProps.createCellRange(e,t,o)}),C(y,this,new d.ExtenderTransformation(this.selectedRange,{...this.tableProps,navigableHeaders:()=>e.navigableHeaders,fixedRowsBottom:()=>e.fixedRowsBottom,minSpareRows:()=>e.minSpareRows,minSpareCols:()=>e.minSpareCols,autoWrapRow:()=>e.autoWrapRow,autoWrapCol:()=>e.autoWrapCol})),C(S,this,new d.FocusTransformation(this.selectedRange,{...this.tableProps,navigableHeaders:()=>e.navigableHeaders,fixedRowsBottom:()=>0,minSpareRows:()=>0,minSpareCols:()=>0,autoWrapRow:()=>!0,autoWrapCol:()=>!0})),w(y,this).addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("beforeModifyTransformStart",...t)}),w(y,this).addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("afterModifyTransformStart",...t)}),w(y,this).addLocalHook("beforeTransformEnd",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("beforeModifyTransformEnd",...t)}),w(y,this).addLocalHook("afterTransformEnd",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("afterModifyTransformEnd",...t)}),w(y,this).addLocalHook("insertRowRequire",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("insertRowRequire",...t)}),w(y,this).addLocalHook("insertColRequire",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("insertColRequire",...t)}),w(y,this).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("beforeRowWrap",...t)}),w(y,this).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("beforeColumnWrap",...t)}),w(S,this).addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("beforeModifyTransformFocus",...t)}),w(S,this).addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return o.runLocalHooks("afterModifyTransformFocus",...t)})}getSelectedRange(){return this.selectedRange}getActiveSelectedRange(){return this.selectedRange.peekByIndex(w(T,this))}getActiveSelectionLayerIndex(){return w(T,this)}setActiveSelectionLayerIndex(e){C(T,this,e)}markSource(e){C(b,this,e)}markEndSource(){C(b,this,"unknown")}getSelectionSource(){return w(b,this)}setExpectedLayers(e){C(_,this,e)}begin(){this.inProgress=!0}finish(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1,C(_,this,-1)}isInProgress(){return this.inProgress}setRangeStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e;const s="multiple"===this.settings.selectionMode,n=(0,l.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,r=e.clone();C(R,this,!1),C(E,this,!1),this.runLocalHooks("beforeSetRangeStart"+(o?"Only":""),r),(!s||s&&!n&&(0,l.isUndefined)(t))&&(this.selectedRange.clear(),(0,c.arrayEach)(this.highlight.getAreas(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getLayeredAreas(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getRowHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getColumnHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getActiveRowHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getActiveColumnHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getActiveCornerHeaders(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getRowHighlights(),e=>{e.clear()}),(0,c.arrayEach)(this.highlight.getColumnHighlights(),e=>{e.clear()})),this.selectedRange.add(r).current().setHighlight(i.clone()),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),o||this.setRangeEnd(e)}setRangeStartOnly(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;this.setRangeStart(e,t,!0,o)}setRangeEnd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();if(this.selectedRange.isEmpty())return;this.setActiveSelectionLayerIndex(t);const o=e.clone(),i=this.tableProps.countRows(),s=this.tableProps.countCols(),n=this.getActiveSelectedRange().clone().setTo(e).isSingleHeader();if((i>0||s>0)&&(0===i&&o.col<0&&!n||0===s&&o.row<0&&!n))return;this.runLocalHooks("beforeSetRangeEnd",o),this.begin();const r=this.getActiveSelectedRange();if(this.settings.navigableHeaders||r.highlight.normalize(),"single"===this.settings.selectionMode)r.setFrom(r.highlight),r.setTo(r.highlight);else{const e=r.getHorizontalDirection(),t=r.getVerticalDirection(),i=this.isMultiple();r.setTo(o),i&&(e!==r.getHorizontalDirection()||1===r.getWidth()&&!r.includes(r.highlight))&&r.from.assign({col:r.highlight.col}),i&&(t!==r.getVerticalDirection()||1===r.getHeight()&&!r.includes(r.highlight))&&r.from.assign({row:r.highlight.row})}i>0&&s>0&&(!this.settings.navigableHeaders||this.settings.navigableHeaders&&!r.isSingleHeader())&&r.to.normalize(),this.runLocalHooks("beforeHighlightSet"),this.setRangeFocus(this.getActiveSelectedRange().highlight,t),this.applyAndCommit(this.getActiveSelectedRange(),t);const a=-1===w(_,this)||this.selectedRange.size()===w(_,this);this.runLocalHooks("afterSetRangeEnd",e,a)}applyAndCommit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getActiveSelectedRange(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();const o=this.tableProps.countRows(),i=this.tableProps.countCols();this.highlight.useLayerLevel(t);const s=this.highlight.createArea(),r=this.highlight.createLayeredArea(),a=this.highlight.createRowHeader(),l=this.highlight.createColumnHeader(),h=this.highlight.createActiveRowHeader(),c=this.highlight.createActiveColumnHeader(),u=this.highlight.createActiveCornerHeader(),d=this.highlight.createRowHighlight(),g=this.highlight.createColumnHighlight();if(s.clear(),r.clear(),a.clear(),l.clear(),h.clear(),c.clear(),u.clear(),d.clear(),g.clear(),this.highlight.isEnabledFor(n.AREA_TYPE,e.highlight)&&(this.isMultiple()||t>=1)&&(s.add(e.from).add(e.to).commit(),r.add(e.from).add(e.to).commit(),1===t)){const e=this.selectedRange.peekByIndex(t-1);this.highlight.useLayerLevel(t-1),this.highlight.createArea().add(e.from).commit().syncWith(e),this.highlight.createLayeredArea().add(e.from).commit().syncWith(e),this.highlight.useLayerLevel(t)}if(this.highlight.isEnabledFor(n.HEADER_TYPE,e.highlight)){if(!e.isSingleHeader()){const t=this.tableProps.createCellCoords(Math.max(e.from.row,0),-1),o=this.tableProps.createCellCoords(e.to.row,-1),i=this.tableProps.createCellCoords(-1,Math.max(e.from.col,0)),s=this.tableProps.createCellCoords(-1,e.to.col);"single"===this.settings.selectionMode?(a.add(t).commit(),l.add(i).commit(),d.add(t).commit(),g.add(i).commit()):(a.add(t).add(o).commit(),l.add(i).add(s).commit(),d.add(t).add(o).commit(),g.add(i).add(s).commit())}const t=!w(R,this)&&this.isEntireRowSelected()&&(i>0&&i===e.getWidth()||0===i&&this.isSelectedByRowHeader()),s=!w(R,this)&&this.isEntireColumnSelected()&&(o>0&&o===e.getHeight()||0===o&&this.isSelectedByColumnHeader());t&&h.add(this.tableProps.createCellCoords(Math.max(e.from.row,0),Math.min(-this.tableProps.countRowHeaders(),-1))).add(this.tableProps.createCellCoords(Math.max(e.to.row,0),-1)).commit(),s&&c.add(this.tableProps.createCellCoords(Math.min(-this.tableProps.countColHeaders(),-1),Math.max(e.from.col,0))).add(this.tableProps.createCellCoords(-1,Math.max(e.to.col,0))).commit(),t&&s&&u.add(this.tableProps.createCellCoords(-this.tableProps.countColHeaders(),-this.tableProps.countRowHeaders())).add(this.tableProps.createCellCoords(-1,-1)).commit()}}setRangeFocus(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();if(this.selectedRange.isEmpty())return;this.setActiveSelectionLayerIndex(t),w(y,this).setActiveLayerIndex(t),w(S,this).setActiveLayerIndex(t);const o=this.getActiveSelectedRange();this.inProgress||this.runLocalHooks("beforeSetFocus",e);const i=this.highlight.getFocus();i.clear(),o.setHighlight(e),this.inProgress||this.runLocalHooks("beforeHighlightSet"),this.highlight.isEnabledFor(n.FOCUS_TYPE,o.highlight)&&i.add(o.highlight).commit().syncWith(o),this.inProgress||(C(E,this,!0),this.runLocalHooks("afterSetFocus",o.highlight))}transformStart(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{visualCoords:i}=w(y,this).transformStart(e,t,o);this.setRangeStart(i)}transformEnd(e,t){const{visualCoords:o,selectionLayer:i}=w(y,this).transformEnd(e,t);this.setRangeEnd(o,i)}transformFocus(e,t){const{selectionLayer:o,visualCoords:i}=w(S,this).transformStart(e,t);this.setRangeFocus(i.normalize(),o)}shiftRows(e,t){if(!this.isSelected())return;const o=this.getActiveSelectedRange();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByColumnHeader()||o.getOuterTopStartCorner().row>=e){const{from:i,to:s,highlight:n}=o,r=this.tableProps.countRows(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),c=l?-1:0,u=l?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords((0,h.clamp)(i.row+u,c,r-1),i.col),g=this.tableProps.createCellCoords((0,h.clamp)(s.row+t,c,r-1),s.col);this.markSource("shift"),n.row>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords((0,h.clamp)(n.row+t,0,r-1),n.col)):this.setRangeStartOnly(d,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.markEndSource()}}shiftColumns(e,t){if(!this.isSelected())return;const o=this.getActiveSelectedRange();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByRowHeader()||o.getOuterTopStartCorner().col>=e){const{from:i,to:s,highlight:n}=o,r=this.tableProps.countCols(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),c=a?-1:0,u=a?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords(i.row,(0,h.clamp)(i.col+u,c,r-1)),g=this.tableProps.createCellCoords(s.row,(0,h.clamp)(s.col+t,c,r-1));this.markSource("shift"),n.col>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords(n.row,(0,h.clamp)(n.col+t,0,r-1))):this.setRangeStartOnly(d,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.markEndSource()}}getLayerLevel(){return this.selectedRange.size()-1}isSelected(){return!this.selectedRange.isEmpty()}isMultiple(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getActiveSelectedRange();if(!this.isSelected())return!1;const t=(0,a.createObjectPropListener)(!e.isSingle());return this.runLocalHooks("afterIsMultipleSelection",t),t.value}isFocusSelectionChanged(){return this.isSelected()&&w(E,this)}isSelectedByRowHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&(-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e))}isEntireRowSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{col:t}=e.getOuterTopStartCorner(),o=this.tableProps.countRowHeaders(),i=this.tableProps.countCols();return(o>0&&t<0||0===o)&&e.getWidth()===i};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));const o=this.selectedRange.peekByIndex(e);return!!o&&t(o)}isSelectedByColumnHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&(-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e))}isEntireColumnSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{row:t}=e.getOuterTopStartCorner(),o=this.tableProps.countColHeaders(),i=this.tableProps.countRows();return(o>0&&t<0||0===o)&&e.getHeight()===i};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));const o=this.selectedRange.peekByIndex(e);return!!o&&t(o)}isSelectedByAnyHeader(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}isSelectedByCorner(){return this.selectedByColumnHeader.has(this.getLayerLevel())&&this.selectedByRowHeader.has(this.getLayerLevel())}inInSelection(e){return this.selectedRange.includes(e)}isCellCornerVisible(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}isCellVisible(e){const t=this.tableProps.visualToRenderableCoords(e);return null!==t.row&&null!==t.col}isAreaCornerVisible(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}clear(){this.selectedRange.clear(),this.highlight.clear()}deselect(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}selectAll(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{focusPosition:!1,disableHeadersHighlight:!1};const s=this.tableProps.countRows(),n=this.tableProps.countCols(),r=this.tableProps.countRowHeaders(),a=this.tableProps.countColHeaders(),l=o?-a:0,c=t?-r:0;if(0===l&&0===c&&(0===s||0===n))return;let u=null===(e=this.getActiveSelectedRange())||void 0===e?void 0:e.highlight;const{focusPosition:d,disableHeadersHighlight:g}=i;d&&Number.isInteger(null==d?void 0:d.row)&&Number.isInteger(null==d?void 0:d.col)&&(u=this.tableProps.createCellCoords((0,h.clamp)(d.row,l,s-1),(0,h.clamp)(d.col,c,n-1)));const f=this.tableProps.createCellCoords(l,c),p=this.tableProps.createCellCoords(s-1,n-1);this.clear(),this.runLocalHooks("beforeSelectAll",f,p,u),this.setRangeStartOnly(f,void 0,u),C(R,this,g),c<0&&this.selectedByRowHeader.add(this.getLayerLevel()),l<0&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(p),this.runLocalHooks("afterSelectAll",f,p,u),this.finish()}selectCells(e){var t=this;const o=(0,g.detectSelectionType)(e);if(o===g.SELECTION_TYPE_EMPTY)return!1;if(o===g.SELECTION_TYPE_UNRECOGNIZED)throw new Error(f.toSingleLine`Unsupported format of the selection ranges was passed. To select cells pass\x20
93
93
  the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
94
- columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const i=(0,g.normalizeSelectionFactory)(o,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),s=this.settings.navigableHeaders,n={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:s?this.tableProps.countRowHeaders():0,countColHeaders:s?this.tableProps.countColHeaders():0},r=!e.some(e=>{const t=i(e),o=t.isValid(n);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())});return r&&(this.clear(),this.setExpectedLayers(e.length),(0,c.arrayEach)(e,e=>{const{from:t,to:o}=i(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(o.clone())}),this.finish()),r}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i="string"==typeof e?this.tableProps.propToCol(e):e,s="string"==typeof t?this.tableProps.propToCol(t):t,n=this.tableProps.countRows(),r=this.tableProps.countCols(),a=this.tableProps.countColHeaders(),l=0===a?0:-a,c=this.tableProps.createCellCoords(l,i),u=this.tableProps.createCellCoords(n-1,s),d=this.tableProps.createCellRange(c,c,u).isValid({countRows:n,countCols:r,countRowHeaders:0,countColHeaders:a});if(d){let e=0,t=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(e=(0,h.clamp)(o.row,l,n-1),t=(0,h.clamp)(o.col,Math.min(i,s),Math.max(i,s))):(e=(0,h.clamp)(o,l,n-1),t=i);const r=this.tableProps.createCellCoords(e,t),c=0===a?0:(0,h.clamp)(r.row,l,-1),u=n-1,d=this.tableProps.createCellCoords(c,i),g=this.tableProps.createCellCoords(u,s);this.runLocalHooks("beforeSelectColumns",d,g,r),this.setRangeStartOnly(d,void 0,r),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectColumns",d,g,r),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=this.tableProps.countRows(),s=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),r=0===n?0:-n,a=this.tableProps.createCellCoords(e,r),l=this.tableProps.createCellCoords(t,s-1),c=this.tableProps.createCellRange(a,a,l).isValid({countRows:i,countCols:s,countRowHeaders:n,countColHeaders:0});if(c){let i=0,a=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(i=(0,h.clamp)(o.row,Math.min(e,t),Math.max(e,t)),a=(0,h.clamp)(o.col,r,s-1)):(i=e,a=(0,h.clamp)(o,r,s-1));const l=this.tableProps.createCellCoords(i,a),c=0===n?0:(0,h.clamp)(l.col,r,-1),u=s-1,d=this.tableProps.createCellCoords(e,c),g=this.tableProps.createCellCoords(t,u);this.runLocalHooks("beforeSelectRows",d,g,l),this.setRangeStartOnly(d,void 0,l),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectRows",d,g,l),this.finish()}return c}importSelection(e){let{ranges:t,activeRange:o,activeSelectionLayer:i,selectedByRowHeader:s,selectedByColumnHeader:n,disableHeadersHighlight:r}=e;0!==t.length&&(this.selectedRange.clear(),this.highlight.clear(),this.inProgress=!0,C(R,this,r),this.selectedByRowHeader=new Set(s),this.selectedByColumnHeader=new Set(n),this.setActiveSelectionLayerIndex(0),t.forEach((e,t)=>{this.selectedRange.push(e),this.applyAndCommit(e,t)}),this.setRangeFocus(o.highlight,i),C(R,this,!1),this.inProgress=!1)}exportSelection(){return{ranges:Array.from(this.selectedRange).map(e=>e.clone()),activeRange:this.getActiveSelectedRange(),activeSelectionLayer:this.getActiveSelectionLayerIndex(),selectedByRowHeader:Array.from(this.selectedByRowHeader),selectedByColumnHeader:Array.from(this.selectedByColumnHeader),disableHeadersHighlight:w(R,this)}}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const o=this.selectedRange.ranges.map(e=>e.clone());this.markSource("refresh");const i=new Set(this.selectedByRowHeader),s=new Set(this.selectedByColumnHeader);this.clear(),this.setExpectedLayers(o.length),o.forEach(o=>{const{from:i,to:s,highlight:n}=o,r=e-1,a=t-1;n.assign({row:(0,h.clamp)(n.row,this.settings.navigableHeaders?-1/0:0,r),col:(0,h.clamp)(n.col,this.settings.navigableHeaders?-1/0:0,a)}),i.assign({row:(0,h.clamp)(i.row,-1/0,r),col:(0,h.clamp)(i.col,-1/0,a)}),s.assign({row:(0,h.clamp)(s.row,-1/0,r),col:(0,h.clamp)(s.col,-1/0,a)}),this.setRangeStartOnly(i,!0,n),this.setRangeEnd(s)}),this.selectedByRowHeader=i,this.selectedByColumnHeader=s,this.finish(),this.markEndSource()}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;const e=this.getLayerLevel(),t=this.getActiveSelectedRange();this.highlight.isEnabledFor(n.FOCUS_TYPE,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),o=this.highlight.createLayeredArea(),i=this.highlight.createRowHeader(),s=this.highlight.createColumnHeader(),n=this.highlight.createActiveRowHeader(),r=this.highlight.createActiveColumnHeader(),a=this.highlight.createActiveCornerHeader(),l=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t.commit(),o.commit(),i.commit(),s.commit(),n.commit(),r.commit(),a.commit(),l.commit(),h.commit()}this.highlight.useLayerLevel(e)}}(0,a.mixin)(M,u.default);t.default=M},81430:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=o(4138);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:i,wtViewport:s,totalColumns:r,rootWindow:a}=this.dataAccessObject;if(o.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,n.offset)(i.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(a,a));if(l>h){const t=(0,n.innerWidth)(a);let i=s.getRowHeaderWidth();for(let s=1;s<=r;s++)if(i+=o.sumCellSizes(s-1,s),l+i-h>=t){e=s-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:i,totalRows:s,rootWindow:r}=this.dataAccessObject;if(t.mainTableScrollableElement===r){const a=(0,n.offset)(o.wtRootElement),l=(0,n.getScrollTop)(r,r);if(a.top>l){const o=(0,n.innerHeight)(r);let h=i.getColumnHeaderHeight();for(let i=1;i<=s;i++)if(h+=t.sumCellSizes(i-1,i),a.top+h-l>=o){e=i-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const i=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,o);return i||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedColumnsStart:n,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedRowsBottom:n,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>i-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},81518:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(86545);t.EDITOR_TYPE=i.EDITOR_TYPE,t.AutocompleteEditor=i.AutocompleteEditor},81566:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520).add,n=o(96792),r=o(94811),a=o(48369);e.exports=function(e){var t=i(this),o=r(e).getIterator(),l=n(t);return a(o,function(e){s(l,e)}),l}},81761:(e,t,o)=>{"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function o(i){return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];const a=i.concat(n);let l;return l=a.length>=t?e.apply(this,a):o(a),l}}([])},t.curryRight=function(e){const t=e.length;return function o(i){return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];const a=i.concat(n.reverse());let l;return l=a.length>=t?e.apply(this,a):o(a),l}}([])},t.debounce=function(e){let t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=null;return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];return i&&clearTimeout(i),i=setTimeout(()=>{t=e.apply(this,n)},o),t}},t.fastCall=function(e,t,o,i,n,r,a,l){if((0,s.isDefined)(l))return e.call(t,o,i,n,r,a,l);if((0,s.isDefined)(a))return e.call(t,o,i,n,r,a);if((0,s.isDefined)(r))return e.call(t,o,i,n,r);if((0,s.isDefined)(n))return e.call(t,o,i,n);if((0,s.isDefined)(i))return e.call(t,o,i);if((0,s.isDefined)(o))return e.call(t,o);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return e.apply(this,o.concat(i))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=t;return function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,i.arrayReduce)(n,(e,t)=>t(e),s.apply(this,t))}},t.throttle=n,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const i=n(e,t);let s=o;function r(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return s?(s-=1,e.apply(this,o)):i.apply(this,o)}return r.clearHits=function(){s=o},r};var i=o(94576),s=o(7886);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0;const i={lastCallThrottled:!0};let s=null;return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const l=Date.now();let h=!1;i.lastCallThrottled=!0,o||(o=l,h=!0);const c=t-(l-o);return h?(i.lastCallThrottled=!1,e.apply(this,r)):(s&&clearTimeout(s),s=setTimeout(()=>{i.lastCallThrottled=!1,e.apply(this,r),o=0,s=void 0},c)),i}}},81890:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,o){const i=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(o,"top",i)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},81895:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(4138),s=o(26911);function n(e,t,o){(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,o)}function r(e,t){return e.get(a(e,t))}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){super(e,(0,i.extend)(h.DEFAULTS,t)),n(this,l,void 0)}build(){var e,t,o;super.build(),e=l,t=this,o=this._element.firstChild,e.set(a(e,t),o)}update(){this.isBuilt()&&(r(l,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&r(l,this).focus()}activate(){r(l,this).click()}}t.LinkUI=h},81921:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=r},81963:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},81979:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!o.call({1:2},1);t.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:o},82328:(e,t,o)=>{"use strict";o(49463)("flat")},82467:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(58604),r=o(2744);const a="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),(0,s.default)(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,n.isNumeric)(e)&&(this._element.style.top=e+a),(0,n.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+a)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,n.isNumeric)(e)&&(this._element.style.width=e+a),(0,n.isNumeric)(t)&&(this._element.style.height=t+a)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,n.isNumeric)(e)&&(this._element.style.marginTop=e+a),(0,n.isNumeric)(t)&&(this._element.style[`margin${(0,r.toUpperCaseFirst)(this.inlineProperty)}`]=t+a)}getOffset(){const e=this._element.style,t=`margin${(0,r.toUpperCaseFirst)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}},82497:(e,t,o)=>{"use strict";var i=o(84677);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},82515:(e,t,o)=>{"use strict";var i=o(72820),s=o(19098),n=o(70792),r=o(66431),a=o(91952),l=o(35738),h=o(49463),c=Array,u=s(l("Array","sort"));i({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&n(e);var t=r(this),o=a(c,t);return u(o,e)}}),h("toSorted")},82683:(e,t,o)=>{"use strict";var i=o(53872),s=Object;e.exports=function(e){return s(i(e))}},82919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof r[e])return new r[e](t,o);return null};var s=i(o(16751));const n=t.TYPE_CSV="csv",r=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:s.default})},83011:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.StretchStrategy=class{constructor(e){(0,s.default)(this,"viewportWidth",void 0),(0,s.default)(this,"overwriteColumnWidthFn",void 0),(0,s.default)(this,"baseWidths",new Map),(0,s.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},83055:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(38830),r=o(47802),a=o(89211),l=i(o(59468));function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;class d{constructor(e,t,o){h(this,u),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"selection",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"destroyed",!1),(0,s.default)(this,"activeEditor",void 0),(0,s.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new l.default(e),this.hot.addHook("afterDocumentKeyDown",e=>c(u,this,g).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>c(u,this,g).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,o)=>c(u,this,f).call(this,e,t,o))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:i}=t,s=this.hot.runHooks("modifyGetCellCoords",o,i,!1,"meta");let n=o,r=i;if(Array.isArray(s)&&([n,r]=s),this.cellProperties=this.hot.getCellMeta(n,r),!this.isCellEditable())return void this.clearActiveEditor();const l=this.hot.getCell(o,i,!0);if(l){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(r),s=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n),r);this.activeEditor=(0,a.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,i,t,l,s,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const i=this.hot.getSelectedRangeActive();let s=this.hot.runHooks("beforeBeginEditing",i.highlight.row,i.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof s&&(s=0===this.hot.selection.getLayerLevel()&&i.isSingle()),!1!==s?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(o&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,o){this.activeEditor?this.activeEditor.finishEditing(e,t,o):o&&o(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeActive();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:i}=e.highlight,{rowIndexMapper:s,columnIndexMapper:n}=this.hot,r=s.isHidden(this.hot.toPhysicalRow(o))||n.isHidden(this.hot.toPhysicalColumn(i));return!(this.cellProperties.readOnly||!t||r)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,r.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,i=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,n.isFunctionKey)(o)||(0,n.isCtrlMetaKey)(o)||i||this.isEditorOpened()||this.openEditor("",e))}function f(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const p=new WeakMap;d.getInstance=function(e,t,o){let i=p.get(e);return i||(i=new d(e,t,o),p.set(e,i)),i};t.default=d},83143:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=o(25854),n=i(o(50235)),r=i(o(24954));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",n.default),h("substitute",r.default)},83166:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:s=()=>{},onClear:n=()=>{}}=e;const r=new Set;let a=(0,i.clamp)(t,-1,h()-1);function l(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),r.has(e))return-1;r.add(e);return!1===s(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==s(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(r.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(r.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(r.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(r.clear(),a=l(--a,-1))},getSize:h,clear:function(){r.clear(),a=t,n()}}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(58604)},83327:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(65037);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dropdownRenderer=i.dropdownRenderer},83914:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,r,a){(0,i.arrayEach)(e,e=>{e.forAll((e,i)=>{e>=0&&i>=0&&function(e,t,o,i,r,a){const l=r(e,t);let h=i;l.className&&(h="vertical"===o?s(l.className,i):n(l.className,i));a(e,t,"className",h)}(e,i,t,o,r,a)})})},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,i.arrayEach)(e,e=>(e.forAll((e,i)=>{if(e>=0&&i>=0&&t(e,i))return o=!0,!1}),o));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,i.arrayEach)(e,e=>{e.forAll((e,i)=>{e>=0&&i>=0&&(o[e]||(o[e]=[]),o[e][i]=t(e,i))})}),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const i=this.getCellMeta(t,o).className;return i&&-1!==i.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:i,left:s}=e.getBoundingClientRect();o.top=i,o.left=s}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=n,t.prepareVerticalAlignClass=s;var i=o(94576);function s(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function n(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},84392:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(28520),r=i(o(14843)),a=o(4138),l=o(7886),h=o(58604);t.default=class{constructor(e){(0,s.default)(this,"columnMeta",void 0),(0,s.default)(this,"metas",new r.default(()=>this._createRow())),this.columnMeta=e}updateMeta(e,t,o){const i=this.getMeta(e,t);(0,a.extend)(i,o),(0,n.extendByMetaType)(i,o)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).remove(e,t)}getMeta(e,t,o){const i=this.metas.obtain(e).obtain(t);return void 0===o?i:i[o]}setMeta(e,t,o,i){var s;const n=this.metas.obtain(e).obtain(t);null===(s=n._automaticallyAssignedMetaProps)||void 0===s||s.delete(o),n[o]=i}removeMeta(e,t,o){delete this.metas.obtain(e).obtain(t)[o]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let o=0;o<t.length;o++)(0,l.isDefined)(t[o])&&e.push(...t[o].values());return e}getMetasAtRow(e){(0,n.assert)(()=>(0,h.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new r.default(e=>this._createMeta(e))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}},84566:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValueGetterValue=function(e,t){const{instance:o,visualRow:s,visualCol:n,valueGetter:r}=t;if((0,i.isFunction)(r))return r.call(o,e,s,n,t);return e},t.getValueSetterValue=function(e,t){const{instance:o,visualRow:s,visualCol:n,valueSetter:r}=t;if((0,i.isFunction)(r))return r.call(o,e,s,n,t);return e};var i=o(81761)},84677:(e,t,o)=>{"use strict";var i=o(47057),s=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},84686:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:r}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(r[0]);o.isCollapsed=!1;const a=r.slice(1),l=new Set;let h=0;if(a.length>0)(0,i.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:i}=o;h=t-e;for(let e=1;e<t;e++)l.add(i+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(94576),s=o(60269),n=o(89136)},84796:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllRenderers=function(){(0,f.registerRenderer)(i.autocompleteRenderer),(0,f.registerRenderer)(s.baseRenderer),(0,f.registerRenderer)(r.checkboxRenderer),(0,f.registerRenderer)(n.dropdownRenderer),(0,f.registerRenderer)(a.handsontableRenderer),(0,f.registerRenderer)(l.htmlRenderer),(0,f.registerRenderer)(h.numericRenderer),(0,f.registerRenderer)(c.passwordRenderer),(0,f.registerRenderer)(u.selectRenderer),(0,f.registerRenderer)(d.textRenderer),(0,f.registerRenderer)(g.timeRenderer)};var i=o(78790);t.autocompleteRenderer=i.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=i.RENDERER_TYPE;var s=o(85439);t.baseRenderer=s.baseRenderer,t.BASE_RENDERER=s.RENDERER_TYPE;var n=o(83327);t.dropdownRenderer=n.dropdownRenderer,t.DROPDOWN_RENDERER=n.RENDERER_TYPE;var r=o(24895);t.checkboxRenderer=r.checkboxRenderer,t.CHECKBOX_RENDERER=r.RENDERER_TYPE;var a=o(99343);t.handsontableRenderer=a.handsontableRenderer,t.HANDSONTABLE_RENDERER=a.RENDERER_TYPE;var l=o(20743);t.htmlRenderer=l.htmlRenderer,t.HTML_RENDERER=l.RENDERER_TYPE;var h=o(45007);t.numericRenderer=h.numericRenderer,t.NUMERIC_RENDERER=h.RENDERER_TYPE;var c=o(5247);t.passwordRenderer=c.passwordRenderer,t.PASSWORD_RENDERER=c.RENDERER_TYPE;var u=o(34758);t.selectRenderer=u.selectRenderer,t.SELECT_RENDERER=u.RENDERER_TYPE;var d=o(54657);t.textRenderer=d.textRenderer,t.TEXT_RENDERER=d.RENDERER_TYPE;var g=o(30459);t.timeRenderer=g.timeRenderer,t.TIME_RENDERER=g.RENDERER_TYPE;var f=o(88181);t.registerRenderer=f.registerRenderer,t.getRegisteredRendererNames=f.getRegisteredRendererNames,t.getRegisteredRenderers=f.getRegisteredRenderers,t.getRenderer=f.getRenderer,t.hasRenderer=f.hasRenderer},84922:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,o,s,n){const r=["visualRow","visualCol","row","col","prop"],a=r.length,l=[];return(0,i.rangeEach)(s,n,s=>{(0,i.rangeEach)(t,o,t=>{const o=e.getCellMeta(t,s);if(Object.keys(o).length!==a){const e=Object.fromEntries(Object.entries(o).filter(e=>{let[t]=e;return!1===r.includes(t)}));l.push([o.visualRow,o.visualCol,e])}})}),l},o(99356),o(89083),o(34478),o(29810);var i=o(58604)},85439:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(12485);t.RENDERER_TYPE=i.RENDERER_TYPE,t.baseRenderer=i.baseRenderer},85665:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(81761),r=o(4138),a=i(o(18805));class l{constructor(e){(0,s.default)(this,"wasLastActionShow",!0),(0,s.default)(this,"showDebounced",null),(0,s.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,n.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,r.mixin)(l,a.default);t.default=l},85979:(e,t,o)=>{"use strict";var i=o(72820),s=o(94178),n=o(70792),r=o(90501),a=o(21177),l=o(99793),h=o(14483),c=o(69019),u=o(53001),d=TypeError,g=u(function(){[].keys().reduce(function(){},void 0)}),f=!g&&h("reduce",d);i({target:"Iterator",proto:!0,real:!0,forced:g||f},{reduce:function(e){r(this);try{n(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,o=t?void 0:arguments[1];if(f)return c(f,this,t?[e]:[e,o]);var i=a(this),h=0;if(s(i,function(i){t?(t=!1,o=i):o=e(o,i,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return o}})},85988:(e,t,o)=>{"use strict";var i=o(70792),s=o(49887);e.exports=function(e,t){var o=e[t];return s(o)?void 0:i(o)}},86092:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];function r(e,t){h(t).addShortcuts(e,{group:s})}function a(e,t){const i=h(t);e.forEach(e=>{let{keys:t}=e;t.forEach(e=>i.removeShortcutsByKeys(e))}),o.push({shortcuts:e,contextName:t}),r(e,t)}function l(e){return e?`${n}:${e}`:n}function h(t){var o;const i=e.hotMenu.getShortcutManager(),s=l(t);return null!==(o=i.getContext(s))&&void 0!==o?o:i.addContext(s)}return r((0,i.createDefaultShortcutsList)(e)),t.forEach(e=>{let{shortcuts:t,contextName:o}=e;a(t,o)}),{addCustomShortcuts:a,getCustomShortcuts:function(){return[...o]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(l(t))}}},o(99356),o(34478),o(31143);var i=o(92083);const s="menu",n=s},86121:(e,t,o)=>{"use strict";var i=o(94266),s=o(92853),n=o(60606),r=function(e){return s.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},86342:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42595),s=o(45007),n=o(58299),r=o(13074);const a=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:a,editor:i.NumericEditor,renderer:s.numericRenderer,validator:n.numericValidator,dataType:"number",valueSetter:r.valueSetter}},86491:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(7886),s=o(4138);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,s;for(t=0,o=this.countRows();t<o;t++)if(s=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,o,n,r;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(n))return"object"==typeof n&&(r=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[r.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},86545:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(82515),o(34478),o(66133),o(29810),o(90643),o(940),o(33098);var s=i(o(24300)),n=o(19975),r=o(94576),a=o(4138),l=o(78966),h=o(7886),c=o(2744),u=o(38830),d=o(54657),g=o(72609),f=o(81761);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.EDITOR_TYPE="autocomplete";var y=new WeakMap,S=new WeakMap,E=new WeakSet;class R extends n.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=E),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),p(this,y,this.hot.guid.slice(0,9)),p(this,S,(0,f.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return v}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(C(E,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${w(y,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>C(E,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,i=null==o?void 0:o.length,{row:s,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,n,r,a,c,u)=>{(0,d.textRenderer)(e,s,n,r,a,c,u);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,h.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...o?[(0,g.A11Y_SETSIZE)(i)]:[],...o?[(0,g.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${r}`]]),s.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},i=this.htEditor.getCell(e,o,!0);null!==i?t(i):this.htEditor.addHookOnce("afterScrollVertically",()=>{const i=this.htEditor.getCell(e,o,!0);t(i)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${w(y,this)}-listbox-${s}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,n=this.stripValueIfNeeded(this.getValue()),a=C(E,this,_).call(this,n)?n.value:n;let u=null,d=e;i||(d=d.toSorted());const g=[],f=this.cellProperties.locale,p=this.cellProperties.filteringCaseSensitive,m=p?a:a.toLocaleLowerCase(f);for(let e=0;e<d.length;e++){const t=C(E,this,_).call(this,d[e])?(0,c.stripTags)((0,h.stringify)(d[e].value)):(0,c.stripTags)((0,h.stringify)(d[e]));if(-1!==(p?t:t.toLocaleLowerCase(f)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?u=g[0]:(d=g.map(e=>d[e]),u=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,r.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(u)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:o,spaceBelow:i}=e;return this.limitDropdownIfNeeded(t?o:i),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let o=0,i=0,s=null;do{i=this.htEditor.stylesHandler.getDefaultRowHeight(),o+=i}while(o<e);s=o-i,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(o-i)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,o=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:o}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>C(E,this,_).call(this,e))?e.map(e=>({key:o(e.key),value:o(e.value)})):e.map(e=>o(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function b(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},86672:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.timeValidator=a;var s=i(o(86798));const n=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],r=t.VALIDATOR_TYPE="time";function a(e,t){const o=this.timeFormat||"h:mm:ss a";let i=!0,r=e;null===r&&(r=""),r=/^\d{3,}$/.test(r)?parseInt(r,10):r;const a=/^\d{1,2}$/.test(r);a&&(r+=":00");const l=(0,s.default)(r,n,!0).isValid()?(0,s.default)(r):(0,s.default)(r,o);let h=l.isValid(),c=(0,s.default)(r,o,!0).isValid()&&!a;if(this.allowEmpty&&""===r&&(h=!0,c=!0),h||(i=!1),!h&&c&&(i=!0),h&&!c)if(!0===this.correctFormat){const e=l.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),i=!0}else i=!1;t(i)}a.VALIDATOR_TYPE=r},86798:e=>{"use strict";e.exports=o},87066:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(90271);t.ExtenderTransformation=i.ExtenderTransformation;var s=o(44270);t.FocusTransformation=s.FocusTransformation},87276:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(34478),o(31143);var s=o(4138),n=i(o(18805));function r(e,t,o){a(e,t),t.set(e,o)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakSet;class p{constructor(){var e,t;a(e=this,t=f),t.add(e),r(this,u,!0),r(this,d,null),r(this,g,new ResizeObserver(e=>c(f,this,m).call(this,e)))}setObservedElement(e){h(d,this,e)}unobserve(){l(g,this).unobserve(l(d,this))}observe(){h(u,this,!0),l(g,this).observe(l(d,this))}destroy(){l(g,this).disconnect()}}function m(e){!l(u,this)&&Array.isArray(e)&&e.length?e.forEach(e=>{let{borderBoxSize:t}=e;const{inlineSize:o,blockSize:i}=t[0];this.runLocalHooks("resize",o,i)}):h(u,this,!1)}t.EditorResizeObserver=p,(0,s.mixin)(p,n.default)},87395:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="col_left"},87404:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,i.registerAllEditors)(),(0,s.registerAllRenderers)(),(0,n.registerAllValidators)(),(0,r.registerAllCellTypes)(),(0,a.registerAllPlugins)()};var i=o(51610);t.registerAllEditors=i.registerAllEditors;var s=o(84796);t.registerAllRenderers=s.registerAllRenderers;var n=o(71443);t.registerAllValidators=n.registerAllValidators;var r=o(2373);t.registerAllCellTypes=r.registerAllCellTypes;var a=o(29344);t.registerAllPlugins=a.registerAllPlugins},87793:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(13861),r=o(90501),a=o(44827),l=o(81037),h=o(23720),c=o(67774),u=o(53001),d=o(19451),g=o(12033),f=o(97259).IteratorPrototype,p=o(2382),m=o(33973),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,S=s[C],E=m||!a(S)||S.prototype!==f||!u(function(){S({})}),R=function(){if(n(this,f),l(this)===f)throw new y("Abstract class Iterator not directly constructable")},b=function(e,t){p?h(f,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===f)throw new y("You can't redefine this property");d(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};d(f,v)||b(v,C),!E&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,i({global:!0,constructor:!0,forced:E},{Iterator:R})},87878:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(96792),r=o(59188),a=o(94811),l=o(26023),h=o(48369),c=s.has,u=s.remove;e.exports=function(e){var t=i(this),o=a(e),s=n(t);return r(t)<=o.size?l(t,function(e){o.includes(e)&&u(s,e)}):h(o.getIterator(),function(e){c(s,e)&&u(s,e)}),s}},87913:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520).has,n=o(59188),r=o(94811),a=o(48369),l=o(99793);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},87999:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133);var s=i(o(24300)),n=o(26808),r=o(55656),a=o(94576);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="trimRows",c=t.PLUGIN_PRIORITY=330;var u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),l(this,u),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new r.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(u,this,g).call(this)),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{this.trimmedRowsMap.clear(),(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,i,o,o&&i.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;const s=this.trimmedRowsMap.getValues().slice(),n=e.length>0;o&&n&&((0,a.arrayEach)(e,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(o),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,i,o&&n)&&(o&&n&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,i,o&&n,o&&i.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}destroy(){super.destroy()}}function g(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0)}t.TrimRows=d},88173:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=o(79035),a=i(o(30164)),l=o(23228),h=o(4138),c=o(58604),u=i(o(65165)),d=o(2744),g=o(13743),f=o(55656);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const y=t.PLUGIN_KEY="autoColumnSize",S=t.PLUGIN_PRIORITY=10;var E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,o;super(e),m(t=this,o=_),o.add(t),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new u.default((e,t)=>{const o=this.hot.toPhysicalRow(e),i=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(i))return!1;const s=this.hot.getCellMeta(e,t);let n="";s.spanned||(n=this.hot.getDataAtCell(e,t));let r="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(r=this.hot.runHooks("modifyAutoColumnSizeSeed",r,s,n)),{value:n,bundleSeed:r}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new f.PhysicalIndexToValueMap),p(this,E,!1),p(this,R,[]),p(this,b,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,H).call(this,e,t,o))}isEnabled(){return!1!==this.hot.getSettings()[y]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("beforeRender",()=>v(_,this,A).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>v(_,this,x).call(this)),super.enablePlugin()}updatePlugin(){C(b,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,H).call(this,e,t,o))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,o)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,c.rangeEach)(i.from,i.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(o||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&v(_,this,I).call(this,e,s)}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.measuredColumns=i.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const i=this.hot.countCols()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:o,to:Math.min(o+T.CALCULATION_STEP,i)},e,t),o=o+T.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),o=a+1),o<i?n():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[y];let t=T.SYNC_CALCULATION_LIMIT;const o=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,c.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getColumnWidth(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t;return void 0===i&&(i=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),o&&"number"==typeof i&&(i=Math.max(i,g.DEFAULT_COLUMN_WIDTH))),i}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,o)=>{const i=w(R,this).length;return(i-1<o||w(R,this)[o]!==t)&&e.push(this.hot.toVisualColumn(o)),i-1<o?w(R,this).push(t):w(R,this)[o]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function M(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const o=this.hot.toPhysicalColumn(e);null!==o&&(this.hot._getColWidthFromSettings(o)||v(_,this,I).call(this,e,t))}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.ghostTable.clean())}function I(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function O(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const o=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(o,t)})},!0)}function A(){this.calculateVisibleColumnsWidth(),this.inProgress||(v(_,this,M).call(this,w(b,this)),C(b,this,[]))}function N(e,t){t||this.recalculateAllColumnsWidth()}function P(e){const t=e.reduce((e,t)=>{let[,o]=t;const i=this.hot.propToCol(o);return Number.isInteger(i)&&-1===e.indexOf(i)&&e.push(i),e},[]);w(b,this).push(...t)}function H(e,t,o){let i=e;return o&&(this.calculateColumnsWidth(t,void 0,!0),i=this.getColumnWidth(t,void 0,!1)),i}function x(){C(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),C(E,this,!0)}function k(e){if(!w(E,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.col;if(Number.isInteger(i)){const t=this.hot.toVisualColumn(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(b,this).push(...t)}t.AutoColumnSize=T},88181:(e,t,o)=>{"use strict";t.__esModule=!0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered renderer found under "${e}" name`);return n(e)},t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);s(e,t)},o(52490);var i=o(25854);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("renderers");t.getRegisteredRenderers=l,t.getRegisteredRendererNames=a,t.hasRenderer=r},88422:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===i},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,i=t.rootInstanceSymbol=Symbol("rootInstance")},88711:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i=o(42888);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},88786:(e,t,o)=>{"use strict";var i={};i[o(12033)("toStringTag")]="z",e.exports="[object z]"===String(i)},88855:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(81056);var i=o(47802);t.command={name:"editorOpen",callback(e,t,o){const{selection:s}=e,n=e._getEditorManager(),r=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((r.some(e=>s.isMultiple(e))||r.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const i=e.getSettings(),n="function"==typeof i.enterMoves?i.enterMoves(t):i.enterMoves;return void(o.includes("shift")?s.transformFocus(-n.row,-n.col):s.transformFocus(n.row,n.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?n.cellProperties.readOnly?n.moveSelectionAfterEnter(t):n.openEditor(null,t,!0):n.moveSelectionAfterEnter(t),(0,i.stopImmediatePropagation)(t))}}},88932:(e,t,o)=>{"use strict";var i=o(19098),s=o(44827),n=o(65415),r=i(Function.toString);s(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),e.exports=n.inspectSource},89083:(e,t,o)=>{"use strict";var i=o(72820),s=o(94178),n=o(67774);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return s(e,function(e,o){n(t,e,o)},{AS_ENTRIES:!0}),t}})},89136:(e,t)=>{"use strict";function o(e,t){let{childs:o}=e;if(0!==o.length)return o[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=o,t.isNodeReflectsFirstChildColspan=function(e){return o(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:o,childs:i}=e;if(!o.isHidden&&(t(o.columnIndex),0===i.length))for(let e=1;e<o.colspan;e++)t(o.columnIndex+e)})}},89211:(e,t,o)=>{"use strict";t.__esModule=!0,t.RegisteredEditor=u,t.getEditorInstance=t._getEditorInstance=function(e,t){let o;if("function"==typeof e)n.get(e)||d(null,e),o=n.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=a(e)}if(!o)throw Error(`No editor registered under name "${e}"`);return o.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()},t.registerEditor=d,o(52490);var i=o(23228),s=o(25854);const n=new WeakMap,{register:r,getItem:a,hasItem:l,getNames:h,getValues:c}=(0,s.staticRegister)("editors");function u(e){const t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},i.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function d(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const o=new u(t);"string"==typeof e&&r(e,o),n.set(t,o)}t.getRegisteredEditors=c,t.getRegisteredEditorNames=h,t.hasEditor=l},89273:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(39411);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TouchScroll=i.TouchScroll},89426:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(56259);class a extends n.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,o)=>{!1!==e&&t.done(()=>new a({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveRow(i,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),o.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=a},89624:(e,t,o)=>{"use strict";var i=o(72820),s=o(87878),n=o(53001);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("difference",function(e){return 0===e.size})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var o=e++>1;return t.has(1)&&t.clear(),{done:o,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:s})},89980:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(75293);class r extends n.PartiallyVisibleRowsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"rowStartOffset",0),(0,s.default)(this,"rowEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalRows:i,startPositions:s}=e;if(null!==this.startRow&&"function"==typeof o){const e=this.startRow,t=this.endRow;o(this),this.rowStartOffset=e-this.startRow,this.rowEndOffset=this.endRow-t}this.startRow<0&&(this.startRow=0),this.startPosition=null!==(t=s[this.startRow])&&void 0!==t?t:null,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}t.RenderedRowsCalculationType=r},90116:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300));function n(e,t,o){(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,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),n(this,h,!1),a(h,this,o),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:o,countRowHeaders:i,countColHeaders:s}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-s||this.col<-i)&&!(this.row>=t||this.col>=o))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return r(h,this)}isSouthEastOf(e){return this.row>=e.row&&(r(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(r(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(r(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(r(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof c&&a(h,this,e.isRtl()),this}clone(){return new c(this.row,this.col,r(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=c},90271:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(28666);class s extends i.BaseTransformation{calculateOffset(){return{x:this.tableApi.navigableHeaders()?this.tableApi.countRowHeaders():0,y:this.tableApi.navigableHeaders()?this.tableApi.countColHeaders():0}}countRenderableRows(){return this.tableApi.countRenderableRows()}countRenderableColumns(){return this.tableApi.countRenderableColumns()}shouldSwitchSelectionLayer(){return!1}}t.ExtenderTransformation=s},90331:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(94576),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),c=o(58781),u=o(3720),d=o(79930);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.PLUGIN_KEY="customBorders",m=t.PLUGIN_PRIORITY=90;var w=new WeakSet;class C extends n.BasePlugin{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return m}isEnabled(){return!!this.hot.getSettings()[p]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>f(w,this,v).call(this,e)),this.addHook("init",()=>f(w,this,y).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let o=["top","bottom","start","end"],i=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),i=(0,u.normalizeBorder)(t));const s=(0,d.detectSelectionType)(e),n=(0,d.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,l.arrayEach)(e,e=>{n(e).forAll((e,t)=>{(0,l.arrayEach)(o,o=>{this.prepareBorderFromCustomAdded(e,t,i,(0,u.toInlinePropName)(o))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),i=[];return(0,l.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,l.arrayEach)(this.savedBorders,o=>{o.row===e&&o.col===t&&i.push((0,u.denormalizeBorder)(o))})})}),i}clearBorders(e){e?this.setBorders(e):((0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const o=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:o})}prepareBorderFromCustomAdded(e,t,o,i){const s=this.hot.countRows(),n=this.hot.countCols();if(e>=s||t>=n)return;let r=(0,u.createEmptyBorders)(e,t);o&&(r=(0,u.extendDefaultBorder)(r,o),(0,l.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(r.id===e.settings.id)return Object.assign(e.settings,o),r.id=e.settings.id,r.top=e.settings.top,r.bottom=e.settings.bottom,r.start=e.settings.start,r.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(r)),this.insertBorderIntoSettings(r,i)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),i=Math.min(e.to.col,this.hot.countCols()-1);(0,a.rangeEach)(e.from.row,o,o=>{(0,a.rangeEach)(e.from.col,i,i=>{const s=(0,u.createEmptyBorders)(o,i);let n=0;o===e.from.row&&(0,r.hasOwnProperty)(t,"top")&&(n+=1,s.top=t.top),o===e.to.row&&(0,r.hasOwnProperty)(t,"bottom")&&(n+=1,s.bottom=t.bottom),i===e.from.col&&(0,r.hasOwnProperty)(t,"start")&&(n+=1,s.start=t.start),i===e.to.col&&(0,r.hasOwnProperty)(t,"end")&&(n+=1,s.end=t.end),n>0&&(this.hot.setCellMeta(o,i,"borders",(0,u.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const o=(0,u.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,i){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,u.normalizeBorder)(s):(0,u.createEmptyBorders)(e,t),i){s[o]=(0,u.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(s))}}else{s[o]=(0,u.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(s))}}prepareBorder(e,t,o){(0,l.arrayEach)(e,e=>{let{start:i,end:s}=e;if(i.row===s.row&&i.col===s.col)"noBorders"===t?this.removeAllBorders(i.row,i.col):this.setBorder(i.row,i.col,t,o);else switch(t){case"noBorders":(0,a.rangeEach)(i.col,s.col,e=>{(0,a.rangeEach)(i.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,a.rangeEach)(i.col,s.col,e=>{this.setBorder(i.row,e,t,o)});break;case"bottom":(0,a.rangeEach)(i.col,s.col,e=>{this.setBorder(s.row,e,t,o)});break;case"start":(0,a.rangeEach)(i.row,s.row,e=>{this.setBorder(e,i.col,t,o)});break;case"end":(0,a.rangeEach)(i.row,s.row,e=>{this.setBorder(e,s.col,t,o)})}})}createCustomBorders(e){(0,l.arrayEach)(e,e=>{const t=(0,u.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:o,start:i,end:s}=e,n=[t,o,i,s];return(0,l.arrayReduce)(n,(e,t)=>{let o=e;return t&&t.hide&&(o+=1),o},0)}clearBordersFromSelectionSettings(e){const t=(0,l.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,l.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,l.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,l.arrayEach)(this.savedBorders,(o,i)=>{if(e.id===o.id)return this.savedBorders[i]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,o){let i=!1;return(0,l.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,l.arrayEach)(e,e=>{e.toggleHiddenClass(t,o)}),i=!0,!1}}),i}checkCustomSelections(e,t,o){const i=this.countHide(e);let s=!1;return 4===i?(this.removeAllBorders(e.row,e.col),s=!0):(0,l.arrayEach)(this.hot.selection.highlight.customSelections,i=>{if(e.id===i.settings.id){if(i.visualCellRange=t,i.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(i);(0,l.arrayEach)(t,t=>{t.changeBorderStyle(o,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[p];if(Array.isArray(e)){const t=(0,r.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,u.hasLeftRightTypeOptions)(e),o=(0,u.hasStartEndTypeOptions)(e);if(t&&o)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function v(e){this.hot.getSettings()[p]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}function y(){this.changeBorderSettings()}t.CustomBorders=C},90501:(e,t,o)=>{"use strict";var i=o(15176),s=String,n=TypeError;e.exports=function(e){if(i(e))return e;throw new n(s(e)+" is not an object")}},90606:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,i.transformSelectionToRowDistance)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}};var i=o(48971),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const n=t.KEY="remove_row"},90625:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356);var i=o(4138),s=o(94576),n=o(74571);function r(e,t,o){(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,o)}function a(e,t){return e.get(h(e,t))}function l(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var u=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){r(this,u,[]),r(this,d,0),r(this,g,1/0)}setColumnsLimit(e){l(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l(u,this,(0,n.normalizeSettings)(e,a(g,this))),l(d,this,a(u,this).length)}getData(){return a(u,this)}mergeWith(e){(0,s.arrayEach)(e,e=>{let{row:t,col:o,...s}=e;const n=this.getHeaderSettings(t,o);null!==n&&(0,i.extend)(n,s,c)})}map(e){(0,s.arrayEach)(a(u,this),t=>{(0,s.arrayEach)(t,t=>{const o=e({...t});(0,i.isObject)(o)&&(0,i.extend)(t,o,c)})})}getHeaderSettings(e,t){var o;if(e>=a(d,this)||e<0)return null;const i=a(u,this)[e];return!1===Array.isArray(i)||t>=i.length?null:null!==(o=i[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const i=[];if(e>=a(d,this)||e<0)return i;const s=a(u,this)[e];let n=0;for(let e=t;e<s.length;e++){const t=s[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(n+=t.colspan,i.push(t),t.colspan>1&&(e+=t.colspan-1),n===o)break;if(n>o)throw new Error("The last column settings cannot overlap the other header layers")}return i}getLayersCount(){return a(d,this)}getColumnsCount(){return a(d,this)>0?a(u,this)[0].length:0}clear(){l(u,this,[]),l(d,this,0)}}},90643:(e,t,o)=>{"use strict";o(50506)},91031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(34478),o(29810),o(940);var s=i(o(24300)),n=o(26808),r=o(23228),a=o(51839),l=o(94576),h=o(2744),c=o(4138),u=o(78966),d=o(40929),g=i(o(30818)),f=i(o(57566)),p=i(o(80715)),m=i(o(28212)),w=i(o(73747)),C=i(o(55826)),v=o(8536),y=o(40920);function S(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t){return e.get(_(e,t))}function b(e,t,o){return e.set(_(e,t),o),o}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("afterCopyLimit"),r.Hooks.getSingleton().register("modifyCopyableRange"),r.Hooks.getSingleton().register("beforeCut"),r.Hooks.getSingleton().register("afterCut"),r.Hooks.getSingleton().register("beforePaste"),r.Hooks.getSingleton().register("afterPaste"),r.Hooks.getSingleton().register("beforeCopy"),r.Hooks.getSingleton().register("afterCopy");const T=t.PLUGIN_KEY="copyPaste",M=t.PLUGIN_PRIORITY=80,I=["fragmentSelection"],O="application/ht-source-data-json-html",A=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakMap,L=new WeakMap,V=new WeakMap,W=new WeakSet;class F extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=W),t.add(e),(0,s.default)(this,"columnsLimit",1/0),(0,s.default)(this,"rowsLimit",1/0),(0,s.default)(this,"pasteMode","overwrite"),(0,s.default)(this,"uiContainer",this.hot.rootDocument.body),S(this,N,!1),S(this,P,!1),S(this,H,!1),S(this,x,"cells-only"),S(this,k,!1),S(this,D,!1),S(this,L,new v.CopyableRangesFactory({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),S(this,V,!1),(0,s.default)(this,"copyableRanges",[])}static get PLUGIN_KEY(){return T}static get SETTING_KEYS(){return[T,...I]}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e,t,o=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),b(N,this,this.getSetting("copyColumnHeaders")),b(P,this,this.getSetting("copyColumnGroupHeaders")),b(H,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",e=>_(W,this,G).call(this,e)),this.addHook("afterSelection",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return _(W,o,$).call(o,...t)}),this.addHook("afterSelectionEnd",()=>_(W,this,K).call(this)),this.eventManager.addEventListener(this.hot.rootDocument,"copy",function(){return o.onCopy(...arguments)}),this.eventManager.addEventListener(this.hot.rootDocument,"cut",function(){return o.onCut(...arguments)}),this.eventManager.addEventListener(this.hot.rootDocument,"paste",function(){return o.onPaste(...arguments)}),(0,d.isSafari)()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return _(W,o,X).call(o,...t)}),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return _(W,o,q).call(o,...t)}),this.addHook("afterSelection",()=>_(W,this,Q).call(this))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){b(x,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),b(k,this,!0),_(W,this,B).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){b(D,this,!0),_(W,this,B).call(this,"cut")}getRangedCopyableData(e){return(0,a.stringify)(this.getRangedData(e))}getRangedData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[],{rows:i,columns:s}=(0,v.normalizeRanges)(e);return(0,l.arrayEach)(i,e=>{const i=[];(0,l.arrayEach)(s,o=>{if(e<0)i.push(this.hot.getColHeader(o,e));else{let s=t?this.hot.getCopyableSourceData(e,o):this.hot.getCopyableData(e,o);t&&(0,c.isObject)(s)&&(s=JSON.stringify(s)),i.push(s)}}),o.push(i)}),o}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const o=new C.default;e&&o.clipboardData.setData("text/plain",e),t&&o.clipboardData.setData("text/html",t),this.onPaste(o)}setCopyableText(){const e=this.hot.getSelectedRangeActive();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);R(L,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===R(x,this)?t.set("headers",R(L,this).getMostBottomColumnHeadersRange()):("with-column-headers"===R(x,this)?t.set("headers",R(L,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===R(x,this)&&t.set("headers",R(L,this).getAllColumnHeadersRange()),t.set("cells",R(L,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter(e=>null!==e).map(e=>{let{startRow:t,startCol:o,endRow:i,endCol:s}=e;return{startRow:t,startCol:o,endRow:i,endCol:s}}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const o=t.get("cells");if(null!==o&&o.isRangeTrimmed){const{startRow:e,startCol:t,endRow:i,endCol:s}=o;this.hot.runHooks("afterCopyLimit",i-e+1,s-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getSelectedRangeActive();if(!e.length)return[null,null,null,null];const i=e.length,s=e[0].length,n=[],{row:r,col:a}=o.getTopStartCorner(),{row:l,col:u}=o.getBottomEndCorner();let d=r,g=a,f=r,p=a;for(;n.length<i||d<=l;){const{skipRowOnPaste:o,visualRow:r}=this.hot.getCellMeta(d,a);if(d=r+1,!0===o)continue;f=r,g=a;const l=[],w=n.length%i;for(;l.length<s||g<=u;){var m;const{skipColumnOnPaste:o,visualCol:i}=this.hot.getCellMeta(r,g),n=this.hot.getSourceDataAtCell(r,g),a=l.length%s;if(g=i+1,!0===o)continue;p=i;const u=null==t||null===(m=t[w])||void 0===m?void 0:m[a];let d=e[w][a];if(t&&(0,h.isJSON)(u)){const e=JSON.parse(u);((0,c.isObject)(n)||null===n)&&(d=e)}l.push(d)}n.push(l)}return b(V,this,!0),this.hot.populateFromArray(r,a,n,void 0,void 0,"CopyPaste.paste",this.pasteMode),[r,a,f,p]}onCopy(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),i=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!R(k,this)||this.isEditorOpened()||(0,u.isHTMLElement)(t)&&(i&&t!==o||!i&&t!==this.hot.rootDocument.body&&!(0,u.isInternalElement)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),b(k,this,!1);const s=this.getRangedData(this.copyableRanges),n=this.getRangedData(this.copyableRanges,!0),r=_(W,this,U).call(this,this.copyableRanges);!!this.hot.runHooks("beforeCopy",s,this.copyableRanges,r)&&(_(W,this,z).call(this,e,s,n),this.hot.runHooks("afterCopy",s,this.copyableRanges,r)),b(x,this,"cells-only")}onCut(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),i=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!R(D,this)||this.isEditorOpened()||(0,u.isHTMLElement)(t)&&(i&&t!==o||!i&&t!==this.hot.rootDocument.body&&!(0,u.isInternalElement)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),b(D,this,!1);const s=this.getRangedData(this.copyableRanges),n=this.getRangedData(this.copyableRanges,!0);!!this.hot.runHooks("beforeCut",s,this.copyableRanges)&&(_(W,this,z).call(this,e,s,n),this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",s,this.copyableRanges))}onPaste(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),i=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||(0,u.isHTMLElement)(t)&&(i&&t!==o||!i&&t!==this.hot.rootDocument.body&&!(0,u.isInternalElement)(t,this.hot.rootElement)))return;let s,n;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=e.clipboardData.getData(O);if(t){n=(0,y.htmlToGridSettings)(t,this.hot.rootDocument).data}const o=(0,h.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(o&&/(<table)|(<TABLE)/g.test(o)){s=(0,y.htmlToGridSettings)(o,this.hot.rootDocument).data}else s=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(s=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof s&&(s=(0,a.parse)(s)),void 0===s||s&&0===s.length)return;if(!1===this.hot.runHooks("beforePaste",s,this.copyableRanges))return;const[r,l,c,d]=this.populateValues(s,n);null!==r&&null!==l&&this.hot.selectCell(r,l,Math.min(this.hot.countRows()-1,c),Math.min(this.hot.countCols()-1,d)),this.hot.runHooks("afterPaste",s,this.copyableRanges)}destroy(){super.destroy()}}function B(e){if((0,d.isSafari)()){const t=this.hot.getSelectedRangeActive();if(t){const{row:o,col:i}=t.highlight,s=this.hot.getCell(o,i,!0);s&&(0,u.runWithSelectedContendEditableElement)(s,()=>{this.hot.rootDocument.execCommand(e)})}}else this.hot.rootDocument.execCommand(e)}function U(e){const{rows:t}=(0,v.normalizeRanges)(e);let o=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)o+=1;return{columnHeadersCount:o}}function Y(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeActive();if(e){const{row:t,col:o}=e.highlight,i=this.hot.getCell(t,o,!0);i&&(0,u.makeElementContentEditableAndSelectItsContent)(i)}}}function j(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeActive();if(e){const{row:t,col:o}=e.highlight,i=this.hot.getCell(t,o,!0);null!=i&&i.hasAttribute("contenteditable")&&(0,u.removeContentEditableFromElementAndDeselect)(i)}}}function z(e,t,o){const i=(0,a.stringify)(t);if(e&&e.clipboardData){const s=(0,y._dataToHTML)(t),n=(0,y._dataToHTML)(o);e.clipboardData.setData("text/plain",i),e.clipboardData.setData("text/html",[A,s].join("")),e.clipboardData.setData(O,[A,n].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",i)}function G(e){e.items.push({name:"---------"},(0,g.default)(this)),R(N,this)&&e.items.push((0,m.default)(this)),R(P,this)&&e.items.push((0,p.default)(this)),R(H,this)&&e.items.push((0,f.default)(this)),e.items.push((0,w.default)(this))}function $(e,t,o,i,s){R(V,this)&&(s.value=!0),b(V,this,!1)}function K(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function X(){_(W,this,j).call(this)}function q(){_(W,this,Y).call(this)}function Q(){_(W,this,j).call(this)}t.CopyPaste=F},91173:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(4138),l=o(76323),h=o(83914),c=o(78966),u=o(46337),d=o(88711),g=o(23228),f=o(58226),p=o(72609);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,S="changeType",E=v;var R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,s.default)(this,"commandExecutor",new l.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>C(b,this,I).call(this,e,t))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,x).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,H).call(e,...o)}),this.addHook("beforeDialogShow",()=>this.close());const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const i=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",i),this.menu.setMenuItems(i),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,A).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,N).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,P).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),(0,r.arrayEach)(i,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeActive();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeActive(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),i=this.hot.getCell(-1,t.col,!0).querySelector(`.${S}`),s=i.getBoundingClientRect();this.open({left:s.left+o.left,top:s.top+i.offsetHeight+o.top},{left:s.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:E},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:E}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>C(b,this,M).call(this,e))}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,a.objectEach)(o,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,S)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function I(e,t){const o=t.parentNode;if(!o)return;const i=o.parentNode.childNodes,s=Array.prototype.indexOf.call(i,o);if(e<0||s!==i.length-1)return;const n=t.querySelector(`.${S}`);if(this.enabled&&n)return;if(!this.enabled)return void(n&&n.parentNode.removeChild(n));const r=this.hot.rootDocument.createElement("button");r.className=S,r.type="button",r.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(r,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),r.onclick=function(){return!1},t.firstChild.insertBefore(r,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function A(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function N(e){C(b,this,T).call(this,e)}function P(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function H(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function x(e){(0,c.hasClass)(e.target,S)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},91197:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(88173);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.AutoColumnSize=i.AutoColumnSize},91342:(e,t,o)=>{"use strict";o(34478),o(31143);var i=o(73805);t.__esModule=!0;var s={SelectionManager:!0,Selection:!0},n=i(o(39872));t.Selection=n.default;var r=o(7743);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))});var a=o(96188);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))});var l=o(77969);t.SelectionManager=l.SelectionManager},91376:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143);var s=i(o(24300)),n=o(51839),r=o(9013),a=o(4138),l=o(94576),h=o(58604),c=o(7886),u=o(84566);class d{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,o){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"dataSource",void 0),(0,s.default)(this,"duckSchema",void 0),(0,s.default)(this,"colToPropCache",void 0),(0,s.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=o,this.tableMeta=o.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let o;if(this.colToPropCache=[],this.propToColCache=new Map,t){let i=0,s=0,n=!1;if("function"==typeof t){const t=(0,a.deepObjectSize)(e);i=t>0?t:this.countFirstRowKeys(),n=!0}else{const e=this.tableMeta.maxCols;i=Math.min(e,t.length)}for(o=0;o<i;o++){const e=n?t(o):t[o];if((0,a.isObject)(e)){if(void 0!==e.data){const t=n?s:o;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}s+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,r.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,o){let i,s=t,n=o;return void 0===s&&(s=0,n=""),"object"!=typeof e||Array.isArray(e)||(0,a.objectEach)(e,(e,t)=>{null===e?(i=n+t,this.colToPropCache.push(i),this.propToColCache.set(i,s),s+=1):s=this.recursiveDuckColumns(e,s,`${t}.`)}),s}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,c.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,c.isDefined)(t))return this.hot.toVisualColumn(t);const o=this.hot.toVisualColumn(e);return null===o?e:o}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,a.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:i="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=this.hot.countSourceRows();let n=s,r=0,l=e;("number"!=typeof l||l>=s)&&(l=s),l<this.hot.countRows()&&(n=this.hot.toPhysicalRow(l));if(!1===this.hot.runHooks("beforeCreateRow",l,t,o)||null===n)return{delta:0};const c=this.tableMeta.maxRows,u=this.getSchema().length,d=[];for(;r<t&&s+r<c;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,a.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(u-1,()=>e.push(null))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(l+r):(e={},(0,a.deepExtend)(e,this.getSchema())),d.push(e),r+=1}this.hot.rowIndexMapper.insertIndexes(l,r),"below"===i&&(n=Math.min(n+1,s)),this.spliceData(n,0,d);const g=this.hot.toVisualRow(n);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),r>0&&(null==e?this.metaManager.createRow(null,r):"auto"!==o&&this.metaManager.createRow(n,t)),this.hot.runHooks("afterCreateRow",g,r,o),{delta:r,startPhysicalIndex:n}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:i="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const s=this.dataSource,n=this.tableMeta.maxCols,r=this.hot.countSourceCols(),a=this.hot.countCols(),l=this.hot.countSourceRows(),h="number"==typeof e&&e<=r?e:a;if(!1===this.hot.runHooks("beforeCreateCol",h,t,o))return{delta:0};const c=h<a?this.hot.toPhysicalColumn(h):r,u="end"===i?Math.min(c+1,r):c;let d=0;for(let e=u;d<t&&a+d<n;e++){if("number"!=typeof h||h>=a+d)if(l>0)for(let e=0;e<l;e+=1)void 0===s[e]&&(s[e]=[]),s[e].push(null);else s.push([null]);else for(let t=0;t<l;t++)s[t].splice(e,0,null);d+=1}return d>0&&(null==e?this.metaManager.createColumn(null,d):"auto"!==o&&this.metaManager.createColumn(u,t)),this.hot.columnIndexMapper.insertIndexes(h,d,i),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(u),d,o),this.refreshDuckSchema(),{delta:d,startPhysicalIndex:u}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0,i=Number.isInteger(e)?e:-t;const s=this.visualRowsToPhysical(i,t),n=this.hot.countSourceRows();i=(n+i)%n;if(!1===this.hot.runHooks("beforeRemoveRow",i,s.length,s,o))return!1;const r=s.length;if(this.filterData(i,r,s),i<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(s);const e=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return s.slice(0).sort((e,t)=>t-e).forEach(e=>{this.metaManager.removeRow(e,1)}),this.hot.runHooks("afterRemoveRow",i,r,s,o),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let i="number"!=typeof e?-t:e;i=(this.hot.countCols()+i)%this.hot.countCols();const s=this.visualColumnsToPhysical(i,t),n=s.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",i,t,s,o))return!1;let r=!0;const a=n.length,l=this.dataSource;for(let e=0;e<a;e++)r&&s[0]!==s[e]-e&&(r=!1);if(r)for(let e=0,o=this.hot.countSourceRows();e<o;e++)l[e].splice(s[0],t),0===e&&this.metaManager.removeColumn(s[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<a;t++)l[e].splice(n[t],1),0===e&&this.metaManager.removeColumn(n[t],1);return i<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(s),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",i,t,s,o),this.refreshDuckSchema(),!0}spliceCol(e,t,o){const i=this.hot.getDataAtCol(e),s=i.slice(t,t+o),n=i.slice(t+o);for(var r=arguments.length,a=new Array(r>3?r-3:0),h=3;h<r;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,n);let c=0;for(;c<o;)a.push(null),c+=1;return(0,l.to2dArray)(a),this.hot.populateFromArray(t,e,a,null,null,"spliceCol"),s}spliceRow(e,t,o){const i=this.hot.getSourceDataAtRow(e),s=i.slice(t,t+o),n=i.slice(t+o);for(var r=arguments.length,a=new Array(r>3?r-3:0),h=3;h<r;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,n);let c=0;for(;c<o;)a.push(null),c+=1;return this.hot.populateFromArray(e,t,[a],null,null,"spliceRow"),s}spliceData(e,t,o){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,o)){const t=[...this.dataSource.slice(0,e),...o,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,o){let i=this.hot.runHooks("filterData",e,t,o);!1===Array.isArray(i)&&(i=this.dataSource.filter((e,t)=>-1===o.indexOf(t))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,i)}get(e,t){const o=this.hot.toPhysicalRow(e);let i=this.dataSource[o];const s=this.hot.runHooks("modifyRowData",o);i=isNaN(s)?s:i;const{dataDotNotation:n}=this.hot.getSettings();let r=null;if(i&&i.hasOwnProperty&&(0,a.hasOwnProperty)(i,t))r=i[t];else if(n&&"string"==typeof t&&t.indexOf(".")>-1){let e=i;if(!e)return null;const o=t.split(".");for(let t=0,i=o.length;t<i;t++)if(e=e[o[t]],void 0===e)return null;r=e}else"function"==typeof t&&(r=t(this.dataSource.slice(o,o+1)[0]));const l=this.propToCol(t),c=this.hot.toPhysicalColumn(l);if((0,h.isUnsignedNumber)(o)&&(0,h.isUnsignedNumber)(c)&&(r=(0,u.getValueGetterValue)(r,this.metaManager.getCellMeta(o,c,{visualRow:e,visualColumn:l,skipMetaExtension:!0}))),this.hot.hasHook("modifyData")){const t=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifyData",e,l,t,"get"),t.isTouched()&&(r=t.value)}return r}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,o){const i=this.hot.toPhysicalRow(e);let s=o,n=this.dataSource[i];const r=this.hot.runHooks("modifyRowData",i);if(n=isNaN(r)?r:n,this.hot.hasHook("modifyData")){const o=(0,a.createObjectPropListener)(s);this.hot.runHooks("modifyData",e,this.propToCol(t),o,"set"),o.isTouched()&&(s=o.value)}const{dataDotNotation:l}=this.hot.getSettings();if(n&&n.hasOwnProperty&&(0,a.hasOwnProperty)(n,t))n[t]=s;else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e,o=n,i=0;const r=t.split(".");for(i=0,e=r.length-1;i<e;i++){if("__proto__"===r[i]||"constructor"===r[i]||"prototype"===r[i])return;void 0===o[r[i]]&&(o[r[i]]={}),o=o[r[i]]}o[r[i]]=s}else if("function"==typeof t)t(this.dataSource.slice(i,i+1)[0],s);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;n[t]=s}}visualRowsToPhysical(e,t){const o=this.hot.countSourceRows(),i=[];let s,n=(o+e)%o,r=t;for(;n<o&&r;)s=this.hot.toPhysicalRow(n),i.push(s),r-=1,n+=1;return i}visualColumnsToPhysical(e,t){const o=this.hot.countCols(),i=[];let s=(o+e)%o,n=t;for(;s<o&&n;){const e=this.hot.toPhysicalColumn(s);i.push(e),n-=1,s+=1}return i}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(o,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!==0||this.hot.countSourceRows()?this.getRange(e,t,d.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,o){const i=[];let s,n,r;const a=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===a||0===l)return[];const h=o===d.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(a-1,0),Math.max(e.row,t.row)),u=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(s=Math.min(e.row,t.row);s<=c;s++){r=[];const o=s>=0?this.hot.toPhysicalRow(s):s;for(n=Math.min(e.col,t.col);n<=u&&null!==o;n++)r.push(h.call(this,s,this.colToProp(n)));null!==o&&i.push(r)}return i}getText(e,t){return(0,n.stringify)(this.getRange(e,t,d.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,n.stringify)(this.getRange(e,t,d.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}t.default=d},91509:(e,t,o)=>{"use strict";var i=o(90501),s=o(99793);e.exports=function(e,t,o,n){try{return n?t(i(o)[0],o[1]):t(o)}catch(t){s(e,"throw",t)}}},91952:(e,t,o)=>{"use strict";var i=o(22208);e.exports=function(e,t,o){for(var s=0,n=arguments.length>2?o:i(t),r=new e(n);n>s;)r[s]=t[s++];return r}},92083:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:o}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(o,i)=>{const s=t.getSettings(),n="function"==typeof s.tabMoves?s.tabMoves(o):s.tabMoves;i.includes("shift")?t.selection.transformStart(-n.row,-n.col):t.selection.transformStart(n.row,n.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=o.getSelectedActive();if(t){const o=e.openSubMenu(t[0]);o&&o.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{o.getSelectedActive()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const i=o.getSelectedActive();i&&(o.getSourceDataAtRow(i[0]).submenu?e.openSubMenu(i[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{o.getSelectedActive()?o.selection.transformStart(-o.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{o.getSelectedActive()?o.selection.transformStart(o.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},92351:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},92434:(e,t,o)=>{"use strict";var i=o(15176),s=o(20637);e.exports=function(e,t){i(t)&&"cause"in t&&s(e,"cause",t.cause)}},92449:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=i(o(59363)),a=i(o(33268)),l=i(o(45972)),h=i(o(71898)),c=o(7120),u=o(9013),d=o(55656),g=o(13390),f=i(o(67288));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedRows",S=t.PLUGIN_PRIORITY=300,E=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new r.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,F).call(e,...o)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,B).call(e,...o)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,O).call(e,...o)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,A).call(e,...o)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,I).call(e,...o)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,x).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,H).call(e,...o)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,D).call(e,...o)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,L).call(e,...o)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,V).call(e,...o)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,W).call(e,...o)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,M).call(e,...o)}),this.addHook("beforeLoadData",e=>v(_,this,U).call(this,e)),this.addHook("beforeUpdateData",e=>v(_,this,U).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&-1===o.col&&o.row>=0},group:E,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,i){return this.rowMoveController.onBeforeRowMove(e,t,o,i)}function I(e,t,o){this.collapsingUI.toggleState(e,t,o)}function O(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function A(e){return this.contextMenuUI.appendOptions(e)}function N(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,i){i!==this.pluginName&&this.hot._registerTimeout(()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function x(e,t,o){const i=Array.from(o.reduce((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));o.length=0,o.push(...i)}function k(){this.collapsingUI.collapsedRowsStash.stash()}function D(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function W(){this.dataManager.rewriteCache()}function F(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},92482:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(78966),r=o(367),a=o(29779),l=o(72609);class h extends a.BaseRenderer{constructor(){super("TD"),(0,s.default)(this,"orderViews",new WeakMap),(0,s.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new r.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:o,rowHeaders:i}=this.table;for(let a=0;a<e;a++){const e=this.table.renderedRowToSource(a),h=o.getRenderedNode(a);this.sourceRowIndex=e;const c=this.obtainOrderView(h),u=i.obtainOrderView(h);c.prependView(u).setSize(t).setOffset(0).start();for(let o=0;o<t;o++){c.render();const t=this.table.renderedColumnToSource(o),i=c.getCurrentNode();var s,r;if((0,n.hasClass)(i,"hide")||(i.className=""),i.removeAttribute("style"),i.removeAttribute("dir"),(0,n.removeAttribute)(i,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,i),this.table.isAriaEnabled())(0,n.setAttribute)(i,[...i.hasAttribute("role")?[]:[(0,l.A11Y_GRIDCELL)()],(0,l.A11Y_TABINDEX)(-1),(0,l.A11Y_COLINDEX)(t+(null!==(s=null===(r=this.table.rowUtils)||void 0===r||null===(r=r.dataAccessObject)||void 0===r?void 0:r.rowHeaders.length)&&void 0!==s?s:0)+1)])}c.end()}}}t.CellsRenderer=h},92503:(e,t,o)=>{"use strict";var i=o(2382),s=o(53001),n=o(47865);e.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},92515:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(26808),r=i(o(79728)),a=o(23228);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const l=t.PLUGIN_KEY="persistentState",h=t.PLUGIN_PRIORITY=0;class c extends n.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return h}isEnabled(){return!!this.hot.getSettings()[l]}enablePlugin(){this.enabled||(this.storage||(this.storage=new r.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=c},92582:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(78966),r=i(o(59468)),a=o(47802),l=i(o(13743)),h=o(55189),c=o(88422),u=o(25854),d=o(72609);function g(e,t,o){f(e,t),t.set(e,o)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(w(e,t))}function m(e,t,o){return e.set(w(e,t),o),o}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function I(e){const t=w(T,this,M).call(this)+e;(0,n.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,n.addClass)(e,"htHasScrollY"):(0,n.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,n.addClass)(e,"htVerticallyScrollableByWindow"):(0,n.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,n.addClass)(e,"htHasScrollX"):(0,n.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,n.addClass)(e,"htHorizontallyScrollableByWindow"):(0,n.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,o;f(t=this,o=T),o.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,C,0),g(this,v,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,y,!1),g(this,S,void 0),g(this,E,void 0),g(this,R,0),g(this,b,0),g(this,_,null),this.hot=e,this.eventManager=new r.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),w(T,this,O).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,n.addClass)(e,"handsontable"),m(E,this,t.createElement("TABLE")),(0,n.addClass)(p(E,this),"htCore"),this.hot.getSettings().tableClassName&&(0,n.addClass)(p(E,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,n.setAttribute)(p(E,this),[(0,d.A11Y_PRESENTATION)()]),(0,n.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),p(E,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),p(E,this).appendChild(this.TBODY),this.hot.table=p(E,this),this.hot.container.insertBefore(p(E,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:o,selection:i,rootWindow:s}=this.hot,r=o.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(y,this,!0),this.isTextSelectionAllowed(e.target)||((0,n.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(y,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{p(y,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,n.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(r,"keyup",e=>{i.isInProgress()&&!e.shiftKey&&i.finish()}),this.eventManager.addEventListener(r,"mouseup",s=>{var r;i.isInProgress()&&(0,a.isLeftClick)(s)&&i.finish(),m(S,this,!1);const l=(0,n.isOutsideInput)(o.activeElement),h=null===(r=o.querySelector(".ht-dialog"))||void 0===r?void 0:r.contains(o.activeElement);(0,n.isInput)(o.activeElement)&&!l||h||!l&&(i.isSelected()||i.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(r,"contextmenu",e=>{i.isInProgress()&&(0,a.isRightClick)(e)&&(i.finish(),m(S,this,!1))}),this.eventManager.addEventListener(r,"touchend",()=>{i.isInProgress()&&i.finish(),m(S,this,!1)}),this.eventManager.addEventListener(r,"mousedown",e=>{const i=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(p(S,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,n.getScrollbarWidth)(o);if(o.elementFromPoint(s+e,a)!==h||o.elementFromPoint(s,a+e)!==h)return}else for(;l!==r;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(i):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,n.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,n.getParentWindow)(l);this.eventManager.addEventListener(p(E,this),"selectstart",e=>{this.settings.fragmentSelection||(0,n.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,i=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===i&&(i=t),[o,i]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),i=e.getNearestNotHiddenIndex(o-1,-1);return null===i?0:e.getRenderableFromVisualIndex(i)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,i){if(isNaN(e)||e<0)return 0;const s=o.getNearestNotHiddenIndex(e,t),n=o.getRenderableFromVisualIndex(s);if(!Number.isInteger(n))return 0;let r=0;return t<0?r=n+1:t>0&&(r=i-n),r}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:p(E,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(v,this,e.length),this.hot.getSettings().ariaTags&&w(T,this,M).call(this)===this.hot.countCols()&&w(T,this,I).call(this,p(v,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(C,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),i=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(i),i,t)},cellRenderer:(e,t,o)=>{const[i,s]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.runHooks("modifyGetCellCoords",i,s,!1,"meta");let r=i,a=s;Array.isArray(n)&&([r,a]=n);const l=this.hot.getCellMeta(r,a),h=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(r,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l)),this.hot.runHooks("beforeRenderer",o,i,s,h,c,l),this.hot.getCellRenderer(l)(this.hot,o,i,s,h,c,l),this.hot.runHooks("afterRenderer",o,i,s,h,c,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,n.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=i,m(S,this,!0),m(_,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,m(S,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOut",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOver",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||(!p(S,this)||p(_,this)&&p(_,this).x===e.clientX&&p(_,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,o),this.activeWt=this._wt,m(_,this,null))},onCellMouseUp:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseUp",e,s,o),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const i=this.hot.rowIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingRowHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const i=this.hot.columnIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingColumnHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onAfterDrawSelection:(e,t,o)=>{let i;const[s,n]=this.translateFromRenderableToVisualIndex(e,t),r=this.hot.selection.getSelectedRange();if(r.size()>0){const e=r.peekByIndex(null!=o?o:0);i=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,n,i,o)},onBeforeDrawBorders:(e,t)=>{const[o,i,s,n]=e,r=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)];return this.hot.runHooks("beforeDrawBorders",r,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,i)=>{const s=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,r=t>=0?n.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,r,o,i);if(Array.isArray(l)){const[e,t,o,i]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t,o>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(o,-1)):o,i>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i,-1)):i]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,n=e>=0?o.getVisualFromRenderableIndex(e):e,r=this.hot.runHooks("modifyGetCoordsElement",n,s);if(Array.isArray(r)){const[e,t]=r;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),i=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/o*12));e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),i=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/o*6));e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:i}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,i),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,o;if((0,n.isInput)(e))return!0;const i=(0,n.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&i)return!0;const s=null!==(t=null===(o=this.hot.getSelectedRangeActive())||void 0===o?void 0:o.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!i)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return p(S,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,n.hasClass)(o,"relative"))return(0,n.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:i}=this.hot,s=o.createElement("div"),n=o.createElement("span");s.className="relative",n.className="rowHeader",this.updateCellHeader(n,e,i),s.appendChild(n),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const r=t.firstChild;(0,n.hasClass)(r,"relative")?(this.updateCellHeader(r.querySelector(".colHeader"),e,o,i),r.className="",(0,n.addClass)(r,["relative",...s()])):((0,n.empty)(t),this.appendColHeader(e,t,o,i))}else{const{rootDocument:r}=this.hot,a=r.createElement("div"),l=r.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,n.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,n.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,o,i),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,i)}updateCellHeader(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const r=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,n.hasClass)(e,"colHeader")?s=r.wtTable.columnFilter.sourceToRendered(t):(0,n.hasClass)(e,"rowHeader")&&(s=r.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,n.fastInnerHTML)(e,o(t,i)):((0,n.fastInnerText)(e,String.fromCharCode(160)),(0,n.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(b,this,t)}getLastSize(){return{width:p(R,this),height:p(b,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return p(C,this)}getRowHeadersCount(){return p(v,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},92641:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!u(e)},t.registerPlugin=function(e,t,o){[e,t,o]=function(e,t,o){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,o=t.PLUGIN_PRIORITY);return[e,t,o]}(e,t,o),void 0===u(e)&&function(e,t,o){const s=(0,i.toUpperCaseFirst)(e);if(c.hasItem(s))throw new Error(a(s));void 0===o?h.addItem(s):l.addItem(o,s);c.addItem(s,t)}(e,t,o)},o(52490);var i=o(2744),s=o(34738),n=o(79675),r=o(36117);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,r.createUniqueSet)({errorItemExists:a}),c=(0,n.createUniqueMap)({errorIdExists:a});function u(e){const t=(0,i.toUpperCaseFirst)(e);return c.getItem(t)}},92853:(e,t,o)=>{"use strict";var i=o(94266).navigator,s=i&&i.userAgent;e.exports=s?String(s):""},93112:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(81056);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},93868:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=o(13743),n=i(o(6711))},94178:(e,t,o)=>{"use strict";var i=o(71362),s=o(77439),n=o(90501),r=o(30617),a=o(32403),l=o(22208),h=o(14815),c=o(94839),u=o(71449),d=o(99793),g=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;e.exports=function(e,t,o){var m,w,C,v,y,S,E,R=o&&o.that,b=!(!o||!o.AS_ENTRIES),_=!(!o||!o.IS_RECORD),T=!(!o||!o.IS_ITERATOR),M=!(!o||!o.INTERRUPTED),I=i(t,R),O=function(e){return m&&d(m,"normal"),new f(!0,e)},A=function(e){return b?(n(e),M?I(e[0],e[1],O):I(e[0],e[1])):M?I(e,O):I(e)};if(_)m=e.iterator;else if(T)m=e;else{if(!(w=u(e)))throw new g(r(e)+" is not iterable");if(a(w)){for(C=0,v=l(e);v>C;C++)if((y=A(e[C]))&&h(p,y))return y;return new f(!1)}m=c(e,w)}for(S=_?e.next:m.next;!(E=s(S,m)).done;){try{y=A(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof y&&y&&h(p,y))return y}return new f(!1)}},94266:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},94312:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},94576:(e,t,o)=>{"use strict";function i(e,t,o,i){let s=-1,n=e,r=o;Array.isArray(e)||(n=Array.from(e));const a=n.length;for(i&&a&&(s+=1,r=n[s]),s+=1;s<a;)r=t(r,n[s],s,n),s+=1;return r}function s(e,t){let o=0,i=e;Array.isArray(e)||(i=Array.from(e));const s=i.length;for(;o<s&&!1!==t(i[o],o,i);)o+=1;return e}function n(e){return i(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return n(e)/e.length},t.arrayEach=s,t.arrayFilter=function(e,t){let o=0,i=e;Array.isArray(e)||(i=Array.from(e));const s=i.length,n=[];let r=-1;for(;o<s;){const e=i[o];t(e,o,i)&&(r+=1,n[r]=e),o+=1}return n},t.arrayFlatten=function e(t){return i(t,(t,o)=>t.concat(Array.isArray(o)?e(o):o),[])},t.arrayMap=function(e,t){let o=0,i=e;Array.isArray(e)||(i=Array.from(e));const s=i.length,n=[];let r=-1;for(;o<s;){const e=i[o];r+=1,n[r]=t(e,o,i),o+=1}return n},t.arrayMax=function(e){return i(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return i(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=i,t.arraySum=n,t.arrayUnique=function(e){const t=[];return s(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const o=t.length;let i=0;for(;i<o;)e.push(t[i]),i+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[i,...n]=[...t];let r=i;return s(n,e=>{r=r.filter(t=>!e.includes(t))}),r},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[i,...n]=[...t];let r=i;return s(n,e=>{r=r.filter(t=>e.includes(t))}),r},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[i,...n]=[...t],r=new Set(i);return s(n,e=>{s(e,e=>{r.has(e)||r.add(e)})}),Array.from(r)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const o=e.length,i=e[0].length;for(let s=0;s<o;s++)for(let o=0;o<i;o++)t[o]||(t[o]=[]),t[o][s]=e[s][o];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let o=0;for(;o<t;)e[o]=[e[o]],o+=1},o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810)},94811:(e,t,o)=>{"use strict";var i=o(70792),s=o(90501),n=o(77439),r=o(30717),a=o(21177),l="Invalid size",h=RangeError,c=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=i(e.has),this.keys=i(e.keys)};d.prototype={getIterator:function(){return a(s(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},e.exports=function(e){s(e);var t=+e.size;if(t!=t)throw new c(l);var o=r(t);if(o<0)throw new h(l);return new d(e,o)}},94839:(e,t,o)=>{"use strict";var i=o(77439),s=o(70792),n=o(90501),r=o(30617),a=o(71449),l=TypeError;e.exports=function(e,t){var o=arguments.length<2?a(e):t;if(s(o))return n(i(o,e));throw new l(r(e)+" is not iterable")}},95115:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const n=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(o)),r=e=>(0,i.isObject)(e)&&(0,s.isDefined)(e.key)&&(0,s.isDefined)(e.value);if(r(n))return r(e)?e:{key:e,value:e};return e};var i=o(4138),s=o(7886)},95287:(e,t,o)=>{"use strict";t.__esModule=!0,o(99356);var i=o(9093),s=o(94576);class n extends i.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=n},95367:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(90643),o(31143),o(33098);var s=i(o(24300)),n=o(631),r=o(4138);class a extends n.BaseAction{constructor(e){let{changes:t,selected:o,countCols:i,countRows:n}=e;super("change"),(0,s.default)(this,"changes",void 0),(0,s.default)(this,"selected",void 0),(0,s.default)(this,"countCols",void 0),(0,s.default)(this,"countRows",void 0),this.changes=t,this.selected=o,this.countCols=i,this.countRows=n}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(o,i){const s=o&&o.length;if(!s)return;if(!o.find(e=>{const[,,t,o]=e;return t!==o}))return;t.done(()=>{const t=o.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const i=s>1?this.getSelected():[[t[0][0],t[0][1]]];return new a({changes:t,selected:i,countCols:e.countCols(),countRows:e.countRows()})},i)})}undo(e,t){const o=(0,r.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(3,1);e.addHookOnce("afterChange",()=>{const o=e.countRows()-this.countRows;o>0&&e.alter("remove_row",null,o,"UndoRedo.undo");const i=e.countCols()-this.countCols;i>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,i,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(o,null,null,"UndoRedo.undo")}redo(e,t){const o=(0,r.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(2,1);e.addHookOnce("afterChange",()=>{e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(o,null,null,"UndoRedo.redo")}}t.DataChangeAction=a},96092:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(59215);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultipleSelectionHandles=i.MultipleSelectionHandles},96127:(e,t,o)=>{"use strict";var i,s,n,r,a=o(94266),l=o(69019),h=o(71362),c=o(44827),u=o(19451),d=o(53001),g=o(53931),f=o(56274),p=o(47865),m=o(77618),w=o(25250),C=o(64919),v=a.setImmediate,y=a.clearImmediate,S=a.process,E=a.Dispatch,R=a.Function,b=a.MessageChannel,_=a.String,T=0,M={},I="onreadystatechange";d(function(){i=a.location});var O=function(e){if(u(M,e)){var t=M[e];delete M[e],t()}},A=function(e){return function(){O(e)}},N=function(e){O(e.data)},P=function(e){a.postMessage(_(e),i.protocol+"//"+i.host)};v&&y||(v=function(e){m(arguments.length,1);var t=c(e)?e:R(e),o=f(arguments,1);return M[++T]=function(){l(t,void 0,o)},s(T),T},y=function(e){delete M[e]},C?s=function(e){S.nextTick(A(e))}:E&&E.now?s=function(e){E.now(A(e))}:b&&!w?(r=(n=new b).port2,n.port1.onmessage=N,s=h(r.postMessage,r)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!d(P)?(s=P,a.addEventListener("message",N,!1)):s=I in p("script")?function(e){g.appendChild(p("script"))[I]=function(){g.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:v,clear:y}},96188:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler");if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),i=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:i,borderStyle:"solid",borderColor:s})}},96219:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(91031);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CopyPaste=i.CopyPaste},96253:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=i(o(90116));function r(e,t,o){(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,o)}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var n,a,c;(0,s.default)(this,"highlight",null),(0,s.default)(this,"from",null),(0,s.default)(this,"to",null),r(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=o.clone(),a=this,c=i,(n=h).set(l(n,a),c)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:o}=e,i=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner();return i.row<=t&&s.row>=t&&i.col<=o&&s.col>=o}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>o.row||e.col>o.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(o.row,e.row),Math.max(o.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const o=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner(),s=this.getDirection(),n=e.getOuterTopStartCorner(),r=e.getOuterBottomEndCorner(),a=Math.min(o.row,n.row),l=Math.min(o.col,n.col),h=Math.max(i.row,r.row),c=Math.max(i.col,r.col),u=this._createCellCoords(a,l),d=this._createCellCoords(h,c);return this.from=u,this.to=d,this.setDirection(s),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return a(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return a(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return a(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return a(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return a(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return a(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return a(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return a(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof n.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),o=Math.max(this.from.row,this.to.row),i=Math.min(this.from.col,this.to.col),s=Math.max(this.from.col,this.to.col),n=Math.min(e.from.row,e.to.row),r=Math.max(e.from.row,e.to.row),l=Math.min(e.from.col,e.to.col),c=Math.max(e.from.col,e.to.col),u=[];return t===n&&u.push("top"),s===c&&u.push(a(h,this)?"left":"right"),o===r&&u.push("bottom"),i===l&&u.push(a(h,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let i=e.row;i<=t.row;i++)for(let s=e.col;s<=t.col;s++)this.from.row===i&&this.from.col===s||this.to.row===i&&this.to.col===s||o.push(this._createCellCoords(i,s));return o}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let i=e.row;i<=t.row;i++)for(let s=e.col;s<=t.col;s++)e.row===i&&e.col===s?o.push(e):t.row===i&&t.col===s?o.push(t):o.push(this._createCellCoords(i,s));return o}forAll(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();for(let i=t.row;i<=o.row;i++)for(let s=t.col;s<=o.col;s++){if(!1===e(i,s))return}}clone(){return new c(this.highlight,this.from,this.to,a(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new n.default(e,t,a(h,this))}}t.default=c},96338:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o,s){return i.valueSetter.call(this,e,t,o,s)};var i=o(20737)},96792:(e,t,o)=>{"use strict";var i=o(31520),s=o(26023),n=i.Set,r=i.add;e.exports=function(e){var t=new n;return s(e,function(e){r(t,e)}),t}},96858:(e,t,o)=>{"use strict";var i,s=o(90501),n=o(44423),r=o(40981),a=o(48099),l=o(53931),h=o(47865),c=o(57041),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&i?m(i):(t=h("iframe"),o="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(i);for(var s=r.length;s--;)delete w[u][r[s]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=s(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},96935:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=o(94576),a=o(78966),l=o(58604),h=i(o(81002)),c=i(o(65161));function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeRowMove"),n.Hooks.getSingleton().register("afterRowMove");const m=t.PLUGIN_KEY="manualRowMove",w=t.PLUGIN_PRIORITY=140,C="ht__manualRowMove",v="show-ui",y="on-moving--rows",S="after-selection--rows";var E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends s.BasePlugin{constructor(){var e,t;super(...arguments),d(e=this,t=I),t.add(e),u(this,E,new h.default(this.hot)),u(this,R,new c.default(this.hot)),u(this,b,[]),u(this,_,void 0),u(this,T,{}),u(this,M,void 0)}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,A).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,P).call(e,...o)}),this.addHook("afterScrollHorizontally",()=>p(I,this,x).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,k).call(e,...o)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,C),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,C),this.unregisterEvents(),f(E,this).destroy(),f(R,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const o=f(M,this),i=this.isMovePossible(e,t),s=this.hot.runHooks("beforeRowMove",e,t,o,i);if(g(M,this,void 0),!1===s)return;i&&this.hot.rowIndexMapper.moveIndexes(e,t);const n=i&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,o,i,n),n}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const o=this.countFinalIndex(e,t);return g(M,this,t),this.moveRows(e,o)}isMovePossible(e,t){const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),i=e.length+t>o,s=t<0,n=e.some(e=>e<0),r=e.some(e=>e>=o);return!(i||s||n||r)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}countFinalIndex(e,t){const o=(0,r.arrayReduce)(e,(e,o)=>(o<t&&(e+=1),e),0);return t-o}getRowsHeight(e,t){const o=this.hot.rowIndexMapper;let i=0;for(let s=e;s<=t;s++){const e=o.getRenderableFromVisualIndex(s);null!==e&&(i+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.stylesHandler.getDefaultRowHeight())}return i}moveBySettingsOrLoad(){const e=this.hot.getSettings()[m];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeActive(),t=[];if(!e)return t;const{from:o,to:i}=e,s=Math.min(o.row,i.row),n=Math.max(o.row,i.row);return(0,l.rangeEach)(s,n,e=>{t.push(e)}),t}refreshPositions(){const e=f(T,this).coords,t=this.hot.getFirstFullyVisibleRow(),o=this.hot.getLastFullyVisibleRow(),i=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&o<i&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(o+1,1),void 0,!0);const s=this.hot.view._wt.wtTable,n=f(T,this).TD,r=this.hot.rootElement,l=(0,a.offset)(r),h=(0,a.getTrimmingContainer)(r),c=s.holder.scrollTop,u=this.hot.rootWindow!==h?h.scrollTop:0,d=l.top-u,g=f(T,this).eventPageY-d+c,p=s.hider.offsetHeight,m=s.TBODY.offsetTop,w=f(E,this).getOffset().top,C=f(E,this).getSize().height,v=n.offsetHeight/2,y=n.offsetHeight;let S=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const b=g>=S+v;this.isFixedRowTop(e.row)&&(S+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?f(T,this).row=t>0?t-1:t:b?(f(T,this).row=e.row+1,S+=0===e.row?y-1:y):f(T,this).row=e.row;let _=g,M=S;g+C+w>=p?_=p-C-w:g+w<m&&(_=m+Math.abs(w)),S>=p-1&&(M=p-1),f(E,this).setPosition(_),f(R,this).setPosition(M)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>p(I,this,N).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>p(I,this,H).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){f(E,this).build(),f(R,this).build()}destroy(){f(E,this).destroy(),f(R,this).destroy(),super.destroy()}}function A(e,t,o,i){const{wtTable:s,wtViewport:n}=this.hot.view._wt,r=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeActive();if(!l||!r||f(_,this)||0!==e.button)return g(_,this,!1),f(b,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[y,v]);const h=f(R,this).isBuilt()&&!f(R,this).isAppended(),c=f(E,this).isBuilt()&&!f(E,this).isAppended();h&&c&&(f(R,this).appendTo(s.hider),f(E,this).appendTo(s.hider));const{from:u,to:d}=l,p=Math.min(u.row,d.row),m=Math.max(u.row,d.row);if(t.col<0&&t.row>=p&&t.row<=m){i.row=!0,g(_,this,!0),f(T,this).eventPageY=e.pageY,f(T,this).coords=t,f(T,this).TD=o,g(b,this,this.prepareRowsToMoving());const r=s.holder.scrollLeft+n.getRowHeaderWidth(),l=this.getRowsHeight(p,t.row-1)+(e.clientY-o.getBoundingClientRect().top);f(E,this).setPosition(null,r),f(E,this).setSize(s.hider.offsetWidth-r,this.getRowsHeight(p,m)),f(E,this).setOffset(-l,null),(0,a.addClass)(this.hot.rootElement,y),this.refreshPositions()}else(0,a.removeClass)(this.hot.rootElement,S),g(_,this,!1),f(b,this).length=0}function N(e){f(_,this)&&(f(T,this).eventPageY=e.pageY,this.refreshPositions())}function P(e,t,o,i){this.hot.getSelectedRangeActive()&&f(_,this)&&(f(b,this).indexOf(t.row)>-1?(0,a.removeClass)(this.hot.rootElement,v):(0,a.addClass)(this.hot.rootElement,v),i.row=!0,i.column=!0,i.cell=!0,f(T,this).coords=t,f(T,this).TD=o)}function H(){const e=f(T,this).row,t=f(b,this).length;if(g(_,this,!1),(0,a.removeClass)(this.hot.rootElement,[y,v,S]),this.hot.selection.isSelectedByRowHeader()&&(0,a.addClass)(this.hot.rootElement,S),t<1||void 0===e)return;const o=f(b,this)[0],i=this.hot.toPhysicalRow(o),s=this.dragRows(f(b,this),e);if(f(b,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualRow(i),o=e+t-1;this.hot.selectRows(e,o)}}function x(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;f(E,this).setPosition(null,t),f(E,this).setSize(e.hider.offsetWidth-t)}function k(){this.moveBySettingsOrLoad()}t.ManualRowMove=O},97043:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(29810);var i=o(81518);const s=t.EDITOR_TYPE="dropdown";class n extends i.AutocompleteEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){n.filter=!1,n.strict=!0,super.prepare(e,t,o,i,s,n)}}t.DropdownEditor=n},97095:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26533);t.RowHeadersRenderer=i.RowHeadersRenderer;var s=o(47763);t.ColumnHeadersRenderer=s.ColumnHeadersRenderer;var n=o(52978);t.ColGroupRenderer=n.ColGroupRenderer;var r=o(26154);t.RowsRenderer=r.RowsRenderer;var a=o(92482);t.CellsRenderer=a.CellsRenderer;var l=o(47343);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:o,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new l.TableRenderer(e,{cellRenderer:d,stylesHandler:g}),this.renderer.setRenderers({rowHeaders:new i.RowHeadersRenderer,columnHeaders:new s.ColumnHeadersRenderer(t),colGroup:new n.ColGroupRenderer(o),rows:new r.RowsRenderer(h),cells:new a.CellsRenderer}),this.renderer.setAxisUtils(c,u)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}},97259:(e,t,o)=>{"use strict";var i,s,n,r=o(53001),a=o(44827),l=o(15176),h=o(96858),c=o(81037),u=o(61546),d=o(12033),g=o(33973),f=d("iterator"),p=!1;[].keys&&("next"in(n=[].keys())?(s=c(c(n)))!==Object.prototype&&(i=s):p=!0),!l(i)||r(function(){var e={};return i[f].call(e)!==e})?i={}:g&&(i=h(i)),a(i[f])||u(i,f,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},97971:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},98061:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},98363:(e,t,o)=>{"use strict";var i=o(2382),s=o(92503),n=o(60072),r=o(90501),a=o(69431),l=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",g="writable";t.f=i?n?function(e,t,o){if(r(e),t=a(t),r(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var i=c(e,t);i&&i[g]&&(e[t]=o.value,o={configurable:d in o?o[d]:i[d],enumerable:u in o?o[u]:i[u],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(r(e),t=a(t),r(o),s)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new l("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},98414:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,i.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var i=o(48971),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const n=t.KEY="remove_col"},98532:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81518),s=o(78790),n=o(61894),r=o(20737);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:i.AutocompleteEditor,renderer:s.autocompleteRenderer,validator:n.autocompleteValidator,valueGetter:r.valueGetter,valueSetter:r.valueSetter}},98757:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143),o(940);var i=o(26808),s=o(58604),n=o(78966),r=o(26363),a=o(39604),l=o(48370),h=o(32951),c=o(30738),u=o(7120),d=o(12449),g=o(31363);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(C(e,t))}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.PLUGIN_KEY="pagination",y=t.PLUGIN_PRIORITY=900,S=v,E=`plugin:${v}`,R=c.toSingleLine`The \`auto\` page size setting requires the \`autoRowSize\`\x20
94
+ columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const i=(0,g.normalizeSelectionFactory)(o,{createCellCoords:function(){return t.tableProps.createCellCoords(...arguments)},createCellRange:function(){return t.tableProps.createCellRange(...arguments)},propToCol:e=>this.tableProps.propToCol(e),keepDirection:!0}),s=this.settings.navigableHeaders,n={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:s?this.tableProps.countRowHeaders():0,countColHeaders:s?this.tableProps.countColHeaders():0},r=!e.some(e=>{const t=i(e),o=t.isValid(n);return!(o&&!t.containsHeaders()||o&&t.containsHeaders()&&t.isSingleHeader())});return r&&(this.clear(),this.setExpectedLayers(e.length),(0,c.arrayEach)(e,e=>{const{from:t,to:o}=i(e);this.setRangeStartOnly(t.clone(),!1),this.setRangeEnd(o.clone())}),this.finish()),r}selectColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i="string"==typeof e?this.tableProps.propToCol(e):e,s="string"==typeof t?this.tableProps.propToCol(t):t,n=this.tableProps.countRows(),r=this.tableProps.countCols(),a=this.tableProps.countColHeaders(),l=0===a?0:-a,c=this.tableProps.createCellCoords(l,i),u=this.tableProps.createCellCoords(n-1,s),d=this.tableProps.createCellRange(c,c,u).isValid({countRows:n,countCols:r,countRowHeaders:0,countColHeaders:a});if(d){let e=0,t=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(e=(0,h.clamp)(o.row,l,n-1),t=(0,h.clamp)(o.col,Math.min(i,s),Math.max(i,s))):(e=(0,h.clamp)(o,l,n-1),t=i);const r=this.tableProps.createCellCoords(e,t),c=0===a?0:(0,h.clamp)(r.row,l,-1),u=n-1,d=this.tableProps.createCellCoords(c,i),g=this.tableProps.createCellCoords(u,s);this.runLocalHooks("beforeSelectColumns",d,g,r),this.setRangeStartOnly(d,void 0,r),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectColumns",d,g,r),this.finish()}return d}selectRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=this.tableProps.countRows(),s=this.tableProps.countCols(),n=this.tableProps.countRowHeaders(),r=0===n?0:-n,a=this.tableProps.createCellCoords(e,r),l=this.tableProps.createCellCoords(t,s-1),c=this.tableProps.createCellRange(a,a,l).isValid({countRows:i,countCols:s,countRowHeaders:n,countColHeaders:0});if(c){let i=0,a=0;Number.isInteger(null==o?void 0:o.row)&&Number.isInteger(null==o?void 0:o.col)?(i=(0,h.clamp)(o.row,Math.min(e,t),Math.max(e,t)),a=(0,h.clamp)(o.col,r,s-1)):(i=e,a=(0,h.clamp)(o,r,s-1));const l=this.tableProps.createCellCoords(i,a),c=0===n?0:(0,h.clamp)(l.col,r,-1),u=s-1,d=this.tableProps.createCellCoords(e,c),g=this.tableProps.createCellCoords(t,u);this.runLocalHooks("beforeSelectRows",d,g,l),this.setRangeStartOnly(d,void 0,l),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.runLocalHooks("afterSelectRows",d,g,l),this.finish()}return c}importSelection(e){let{ranges:t,activeRange:o,activeSelectionLayer:i,selectedByRowHeader:s,selectedByColumnHeader:n,disableHeadersHighlight:r}=e;0!==t.length&&(this.selectedRange.clear(),this.highlight.clear(),this.inProgress=!0,C(R,this,r),this.selectedByRowHeader=new Set(s),this.selectedByColumnHeader=new Set(n),this.setActiveSelectionLayerIndex(0),t.forEach((e,t)=>{this.selectedRange.push(e),this.applyAndCommit(e,t)}),this.setRangeFocus(o.highlight,i),C(R,this,!1),this.inProgress=!1)}exportSelection(){return{ranges:Array.from(this.selectedRange).map(e=>e.clone()),activeRange:this.getActiveSelectedRange(),activeSelectionLayer:this.getActiveSelectionLayerIndex(),selectedByRowHeader:Array.from(this.selectedByRowHeader),selectedByColumnHeader:Array.from(this.selectedByColumnHeader),disableHeadersHighlight:w(R,this)}}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),t=this.tableProps.countCols();if(0===e||0===t)return void this.deselect();const o=this.selectedRange.ranges.map(e=>e.clone());this.markSource("refresh");const i=new Set(this.selectedByRowHeader),s=new Set(this.selectedByColumnHeader);this.clear(),this.setExpectedLayers(o.length),o.forEach(o=>{const{from:i,to:s,highlight:n}=o,r=e-1,a=t-1;n.assign({row:(0,h.clamp)(n.row,this.settings.navigableHeaders?-1/0:0,r),col:(0,h.clamp)(n.col,this.settings.navigableHeaders?-1/0:0,a)}),i.assign({row:(0,h.clamp)(i.row,-1/0,r),col:(0,h.clamp)(i.col,-1/0,a)}),s.assign({row:(0,h.clamp)(s.row,-1/0,r),col:(0,h.clamp)(s.col,-1/0,a)}),this.setRangeStartOnly(i,!0,n),this.setRangeEnd(s)}),this.selectedByRowHeader=i,this.selectedByColumnHeader=s,this.finish(),this.markEndSource()}commit(){if(this.highlight.getCustomSelections().forEach(e=>{e.commit()}),!this.isSelected())return;const e=this.getLayerLevel(),t=this.getActiveSelectedRange();this.highlight.isEnabledFor(n.FOCUS_TYPE,t.highlight)&&this.highlight.getFocus().commit().syncWith(t);for(let e=0;e<this.selectedRange.size();e+=1){this.highlight.useLayerLevel(e);const t=this.highlight.createArea(),o=this.highlight.createLayeredArea(),i=this.highlight.createRowHeader(),s=this.highlight.createColumnHeader(),n=this.highlight.createActiveRowHeader(),r=this.highlight.createActiveColumnHeader(),a=this.highlight.createActiveCornerHeader(),l=this.highlight.createRowHighlight(),h=this.highlight.createColumnHighlight();t.commit(),o.commit(),i.commit(),s.commit(),n.commit(),r.commit(),a.commit(),l.commit(),h.commit()}this.highlight.useLayerLevel(e)}}(0,a.mixin)(M,u.default);t.default=M},81430:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(78966),r=o(4138);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakSet;function c(e){const{wtSettings:t,inlineStartOverlay:o,wtTable:i,wtViewport:s,totalColumns:r,rootWindow:a}=this.dataAccessObject;if(o.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=i.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,n.offset)(i.wtRootElement).left}const h=Math.abs((0,n.getScrollLeft)(a,a));if(l>h){const t=(0,n.innerWidth)(a);let i=s.getRowHeaderWidth();for(let s=1;s<=r;s++)if(i+=o.sumCellSizes(s-1,s),l+i-h>=t){e=s-2;break}}}return e}function u(e){const{topOverlay:t,wtTable:o,wtViewport:i,totalRows:s,rootWindow:r}=this.dataAccessObject;if(t.mainTableScrollableElement===r){const a=(0,n.offset)(o.wtRootElement),l=(0,n.getScrollTop)(r,r);if(a.top>l){const o=(0,n.innerHeight)(r);let h=i.getColumnHeaderHeight();for(let i=1;i<=s;i++)if(h+=t.sumCellSizes(i-1,i),a.top+h-l>=o){e=i-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,o){if(e.col<0||e.row<0)return!1;const i=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,o);return i||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalColumns:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedColumnsStart:n,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<n)return!1;const h=this.getFirstVisibleColumn(),c=this.getLastVisibleColumn();let u=!1;return(l&&(e<h||e>c)||!l)&&(u=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),u}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:o,totalRows:i}=this.dataAccessObject;if(!o)return!1;const s=(0,r.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>i)return!1;t=s.value;const{fixedRowsBottom:n,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>i-n-1))return!1;const c=this.getFirstVisibleRow(),u=this.getLastVisibleRow();let d=!1;return(h&&(e<c||e>u)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},81518:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(86545);t.EDITOR_TYPE=i.EDITOR_TYPE,t.AutocompleteEditor=i.AutocompleteEditor},81566:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520).add,n=o(96792),r=o(94811),a=o(48369);e.exports=function(e){var t=i(this),o=r(e).getIterator(),l=n(t);return a(o,function(e){s(l,e)}),l}},81761:(e,t,o)=>{"use strict";t.__esModule=!0,t.curry=function(e){const t=e.length;return function o(i){return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];const a=i.concat(n);let l;return l=a.length>=t?e.apply(this,a):o(a),l}}([])},t.curryRight=function(e){const t=e.length;return function o(i){return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];const a=i.concat(n.reverse());let l;return l=a.length>=t?e.apply(this,a):o(a),l}}([])},t.debounce=function(e){let t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=null;return function(){for(var s=arguments.length,n=new Array(s),r=0;r<s;r++)n[r]=arguments[r];return i&&clearTimeout(i),i=setTimeout(()=>{t=e.apply(this,n)},o),t}},t.fastCall=function(e,t,o,i,n,r,a,l){if((0,s.isDefined)(l))return e.call(t,o,i,n,r,a,l);if((0,s.isDefined)(a))return e.call(t,o,i,n,r,a);if((0,s.isDefined)(r))return e.call(t,o,i,n,r);if((0,s.isDefined)(n))return e.call(t,o,i,n);if((0,s.isDefined)(i))return e.call(t,o,i);if((0,s.isDefined)(o))return e.call(t,o);return e.call(t)},t.isFunction=function(e){return"function"==typeof e},t.partial=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];return function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return e.apply(this,o.concat(i))}},t.pipe=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[s,...n]=t;return function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return(0,i.arrayReduce)(n,(e,t)=>t(e),s.apply(this,t))}},t.throttle=n,t.throttleAfterHits=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;const i=n(e,t);let s=o;function r(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return s?(s-=1,e.apply(this,o)):i.apply(this,o)}return r.clearHits=function(){s=o},r};var i=o(94576),s=o(7886);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0;const i={lastCallThrottled:!0};let s=null;return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const l=Date.now();let h=!1;i.lastCallThrottled=!0,o||(o=l,h=!0);const c=t-(l-o);return h?(i.lastCallThrottled=!1,e.apply(this,r)):(s&&clearTimeout(s),s=setTimeout(()=>{i.lastCallThrottled=!1,e.apply(this,r),o=0,s=void 0},c)),i}}},81890:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,o){const i=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(o,"top",i)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},81895:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490);var i=o(4138),s=o(26911);function n(e,t,o){(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,o)}function r(e,t){return e.get(a(e,t))}function a(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h extends s.BaseUI{static get DEFAULTS(){return(0,i.clone)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){super(e,(0,i.extend)(h.DEFAULTS,t)),n(this,l,void 0)}build(){var e,t,o;super.build(),e=l,t=this,o=this._element.firstChild,e.set(a(e,t),o)}update(){this.isBuilt()&&(r(l,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&r(l,this).focus()}activate(){r(l,this).click()}}t.LinkUI=h},81921:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{index:t,amount:o}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=o}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,o,i)=>{t.done(()=>new r({index:e,amount:o}),i)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=r},81963:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},81979:(e,t)=>{"use strict";var o={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!o.call({1:2},1);t.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:o},82328:(e,t,o)=>{"use strict";o(49463)("flat")},82467:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(58604),r=o(2744);const a="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),(0,s.default)(this,"inlineProperty",void 0),this.hot=e,this.inlineProperty=e.isRtl()?"right":"left"}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){(0,n.isNumeric)(e)&&(this._element.style.top=e+a),(0,n.isNumeric)(t)&&(this._element.style[this.inlineProperty]=t+a)}getPosition(){const e=this._element.style;return{top:e.top?parseInt(e.top,10):0,start:e[this.inlineProperty]?parseInt(e[this.inlineProperty],10):0}}setSize(e,t){(0,n.isNumeric)(e)&&(this._element.style.width=e+a),(0,n.isNumeric)(t)&&(this._element.style.height=t+a)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){(0,n.isNumeric)(e)&&(this._element.style.marginTop=e+a),(0,n.isNumeric)(t)&&(this._element.style[`margin${(0,r.toUpperCaseFirst)(this.inlineProperty)}`]=t+a)}getOffset(){const e=this._element.style,t=`margin${(0,r.toUpperCaseFirst)(this.inlineProperty)}`;return{top:e.marginTop?parseInt(e.marginTop,10):0,start:e[t]?parseInt(e[t],10):0}}}},82497:(e,t,o)=>{"use strict";var i=o(84677);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},82515:(e,t,o)=>{"use strict";var i=o(72820),s=o(19098),n=o(70792),r=o(66431),a=o(91952),l=o(35738),h=o(49463),c=Array,u=s(l("Array","sort"));i({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&n(e);var t=r(this),o=a(c,t);return u(o,e)}}),h("toSorted")},82683:(e,t,o)=>{"use strict";var i=o(53872),s=Object;e.exports=function(e){return s(i(e))}},82919:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.default=function(e,t,o){if("function"==typeof r[e])return new r[e](t,o);return null};var s=i(o(16751));const n=t.TYPE_CSV="csv",r=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[n]:s.default})},83011:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300));t.StretchStrategy=class{constructor(e){(0,s.default)(this,"viewportWidth",void 0),(0,s.default)(this,"overwriteColumnWidthFn",void 0),(0,s.default)(this,"baseWidths",new Map),(0,s.default)(this,"stretchedWidths",new Map),this.overwriteColumnWidthFn=e}prepare(e){let{viewportWidth:t}=e;this.viewportWidth=t,this.baseWidths.clear(),this.stretchedWidths.clear()}setColumnBaseWidth(e,t){this.baseWidths.set(e,t)}calculate(){}getWidths(){return Array.from(this.stretchedWidths)}}},83055:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(38830),r=o(47802),a=o(89211),l=i(o(59468));function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;class d{constructor(e,t,o){h(this,u),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"selection",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"destroyed",!1),(0,s.default)(this,"activeEditor",void 0),(0,s.default)(this,"cellProperties",void 0),this.hot=e,this.tableMeta=t,this.selection=o,this.eventManager=new l.default(e),this.hot.addHook("afterDocumentKeyDown",e=>c(u,this,g).call(this,e)),this.hot.addHook("beforeCompositionStart",e=>c(u,this,g).call(this,e)),this.hot.view._wt.update("onCellDblClick",(e,t,o)=>c(u,this,f).call(this,e,t,o))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting())return void this.closeEditor(!1,!1,e=>{e&&this.prepareEditor()});const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;if(!t||t.isHeader())return;const{row:o,col:i}=t,s=this.hot.runHooks("modifyGetCellCoords",o,i,!1,"meta");let n=o,r=i;if(Array.isArray(s)&&([n,r]=s),this.cellProperties=this.hot.getCellMeta(n,r),!this.isCellEditable())return void this.clearActiveEditor();const l=this.hot.getCell(o,i,!0);if(l){const e=this.hot.getCellEditor(this.cellProperties),t=this.hot.colToProp(r),s=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(n),r);this.activeEditor=(0,a.getEditorInstance)(e,this.hot),this.activeEditor.prepare(o,i,t,l,s,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this.isCellEditable())return void this.clearActiveEditor();const i=this.hot.getSelectedRangeActive();let s=this.hot.runHooks("beforeBeginEditing",i.highlight.row,i.highlight.col,e,t,o);t instanceof MouseEvent&&"boolean"!=typeof s&&(s=0===this.hot.selection.getLayerLevel()&&i.isSingle()),!1!==s?(this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(o&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,t))):this.clearActiveEditor()}closeEditor(e,t,o){this.activeEditor?this.activeEditor.finishEditing(e,t,o):o&&o(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeActive();if(!e)return!1;const t=this.hot.getCellEditor(this.cellProperties),{row:o,col:i}=e.highlight,{rowIndexMapper:s,columnIndexMapper:n}=this.hot,r=s.isHidden(this.hot.toPhysicalRow(o))||n.isHidden(this.hot.toPhysicalColumn(i));return!(this.cellProperties.readOnly||!t||r)}moveSelectionAfterEnter(e){const t={..."function"==typeof this.tableMeta.enterMoves?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(t.row=-t.row,t.col=-t.col),this.hot.selection.isMultiple()?this.selection.transformFocus(t.row,t.col):this.selection.transformStart(t.row,t.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function g(e){const t=this.hot.getSelectedRangeActive();if(!this.hot.isListening()||!t||t.highlight.isHeader()||(0,r.isImmediatePropagationStopped)(e))return;const{keyCode:o}=e,i=(e.ctrlKey||e.metaKey)&&!e.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&((0,n.isFunctionKey)(o)||(0,n.isCtrlMetaKey)(o)||i||this.isEditorOpened()||this.openEditor("",e))}function f(e,t){t.isCell()&&(this.hot.getShortcutManager().isCtrlPressed()?this.clearActiveEditor():this.openEditor(null,e,!0))}const p=new WeakMap;d.getInstance=function(e,t,o){let i=p.get(e);return i||(i=new d(e,t,o),p.set(e,i)),i};t.default=d},83143:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=o(25854),n=i(o(50235)),r=i(o(24954));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",n.default),h("substitute",r.default)},83166:(e,t,o)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:o=()=>0,onItemSelect:s=()=>{},onClear:n=()=>{}}=e;const r=new Set;let a=(0,i.clamp)(t,-1,h()-1);function l(e,t){const o=h()-1;if(e<0&&(e=o),e>o&&(e=0),r.has(e))return-1;r.add(e);return!1===s(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(o(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==s(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(r.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(r.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(r.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(r.clear(),a=l(--a,-1))},getSize:h,clear:function(){r.clear(),a=t,n()}}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(58604)},83327:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(65037);t.RENDERER_TYPE=i.RENDERER_TYPE,t.dropdownRenderer=i.dropdownRenderer},83914:(e,t,o)=>{"use strict";t.__esModule=!0,t.align=function(e,t,o,r,a){(0,i.arrayEach)(e,e=>{e.forAll((e,i)=>{e>=0&&i>=0&&function(e,t,o,i,r,a){const l=r(e,t);let h=i;l.className&&(h="vertical"===o?s(l.className,i):n(l.className,i));a(e,t,"className",h)}(e,i,t,o,r,a)})})},t.checkSelectionConsistency=function(e,t){let o=!1;Array.isArray(e)&&(0,i.arrayEach)(e,e=>(e.forAll((e,i)=>{if(e>=0&&i>=0&&t(e,i))return o=!0,!1}),o));return o},t.getAlignmentClasses=function(e,t){const o={};return(0,i.arrayEach)(e,e=>{e.forAll((e,i)=>{e>=0&&i>=0&&(o[e]||(o[e]=[]),o[e][i]=t(e,i))})}),o},t.getAlignmentComparatorByClass=function(e){return function(t,o){const i=this.getCellMeta(t,o).className;return i&&-1!==i.indexOf(e)}},t.getDocumentOffsetByElement=function(e,t){const o={top:0,left:0};if(t!==e.ownerDocument){const{frameElement:e}=t.defaultView,{top:i,left:s}=e.getBoundingClientRect();o.top=i,o.left=s}return o},t.markLabelAsSelected=function(e){return`<span class="selected">${String.fromCharCode(10003)}</span>${e}`},t.prepareHorizontalAlignClass=n,t.prepareVerticalAlignClass=s;var i=o(94576);function s(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","")} ${t}`}function n(e,t){if(-1!==e.indexOf(t))return e;return`${e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","")} ${t}`}},84392:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(24300)),n=o(28520),r=i(o(14843)),a=o(4138),l=o(7886),h=o(58604);t.default=class{constructor(e){(0,s.default)(this,"columnMeta",void 0),(0,s.default)(this,"metas",new r.default(()=>this._createRow())),this.columnMeta=e}updateMeta(e,t,o){const i=this.getMeta(e,t);(0,a.extend)(i,o),(0,n.extendByMetaType)(i,o)}createRow(e,t){this.metas.insert(e,t)}createColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).insert(e,t)}removeRow(e,t){this.metas.remove(e,t)}removeColumn(e,t){for(let o=0;o<this.metas.size();o++)this.metas.obtain(o).remove(e,t)}getMeta(e,t,o){const i=this.metas.obtain(e).obtain(t);return void 0===o?i:i[o]}setMeta(e,t,o,i){var s;const n=this.metas.obtain(e).obtain(t);null===(s=n._automaticallyAssignedMetaProps)||void 0===s||s.delete(o),n[o]=i}removeMeta(e,t,o){delete this.metas.obtain(e).obtain(t)[o]}getMetas(){const e=[],t=Array.from(this.metas.values());for(let o=0;o<t.length;o++)(0,l.isDefined)(t[o])&&e.push(...t[o].values());return e}getMetasAtRow(e){(0,n.assert)(()=>(0,h.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=new Map(this.metas);return t.has(e)?Array.from(t.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new r.default(e=>this._createMeta(e))}_createMeta(e){return new(this.columnMeta.getMetaConstructor(e))}}},84566:(e,t,o)=>{"use strict";t.__esModule=!0,t.getValueGetterValue=function(e,t){const{instance:o,visualRow:s,visualCol:n,valueGetter:r}=t;if((0,i.isFunction)(r))return r.call(o,e,s,n,t);return e},t.getValueSetterValue=function(e,t){const{instance:o,visualRow:s,visualCol:n,valueSetter:r}=t;if((0,i.isFunction)(r))return r.call(o,e,s,n,t);return e};var i=o(81761)},84677:(e,t,o)=>{"use strict";var i=o(47057),s=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},84686:(e,t,o)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:o,childs:r}=t;if(!o.isCollapsed||o.isHidden||o.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,n.isNodeReflectsFirstChildColspan)(t))return e(r[0]);o.isCollapsed=!1;const a=r.slice(1),l=new Set;let h=0;if(a.length>0)(0,i.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,n.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:i}=o;h=t-e;for(let e=1;e<t;e++)l.add(i+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,n.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,n.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724);var i=o(94576),s=o(60269),n=o(89136)},84796:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllRenderers=function(){(0,f.registerRenderer)(i.autocompleteRenderer),(0,f.registerRenderer)(s.baseRenderer),(0,f.registerRenderer)(r.checkboxRenderer),(0,f.registerRenderer)(n.dropdownRenderer),(0,f.registerRenderer)(a.handsontableRenderer),(0,f.registerRenderer)(l.htmlRenderer),(0,f.registerRenderer)(h.numericRenderer),(0,f.registerRenderer)(c.passwordRenderer),(0,f.registerRenderer)(u.selectRenderer),(0,f.registerRenderer)(d.textRenderer),(0,f.registerRenderer)(g.timeRenderer)};var i=o(78790);t.autocompleteRenderer=i.autocompleteRenderer,t.AUTOCOMPLETE_RENDERER=i.RENDERER_TYPE;var s=o(85439);t.baseRenderer=s.baseRenderer,t.BASE_RENDERER=s.RENDERER_TYPE;var n=o(83327);t.dropdownRenderer=n.dropdownRenderer,t.DROPDOWN_RENDERER=n.RENDERER_TYPE;var r=o(24895);t.checkboxRenderer=r.checkboxRenderer,t.CHECKBOX_RENDERER=r.RENDERER_TYPE;var a=o(99343);t.handsontableRenderer=a.handsontableRenderer,t.HANDSONTABLE_RENDERER=a.RENDERER_TYPE;var l=o(20743);t.htmlRenderer=l.htmlRenderer,t.HTML_RENDERER=l.RENDERER_TYPE;var h=o(45007);t.numericRenderer=h.numericRenderer,t.NUMERIC_RENDERER=h.RENDERER_TYPE;var c=o(5247);t.passwordRenderer=c.passwordRenderer,t.PASSWORD_RENDERER=c.RENDERER_TYPE;var u=o(34758);t.selectRenderer=u.selectRenderer,t.SELECT_RENDERER=u.RENDERER_TYPE;var d=o(54657);t.textRenderer=d.textRenderer,t.TEXT_RENDERER=d.RENDERER_TYPE;var g=o(30459);t.timeRenderer=g.timeRenderer,t.TIME_RENDERER=g.RENDERER_TYPE;var f=o(88181);t.registerRenderer=f.registerRenderer,t.getRegisteredRendererNames=f.getRegisteredRendererNames,t.getRegisteredRenderers=f.getRegisteredRenderers,t.getRenderer=f.getRenderer,t.hasRenderer=f.hasRenderer},84922:(e,t,o)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,o,s,n){const r=["visualRow","visualCol","row","col","prop"],a=r.length,l=[];return(0,i.rangeEach)(s,n,s=>{(0,i.rangeEach)(t,o,t=>{const o=e.getCellMeta(t,s);if(Object.keys(o).length!==a){const e=Object.fromEntries(Object.entries(o).filter(e=>{let[t]=e;return!1===r.includes(t)}));l.push([o.visualRow,o.visualCol,e])}})}),l},o(99356),o(89083),o(34478),o(29810);var i=o(58604)},85439:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(12485);t.RENDERER_TYPE=i.RENDERER_TYPE,t.baseRenderer=i.baseRenderer},85665:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(81761),r=o(4138),a=i(o(18805));class l{constructor(e){(0,s.default)(this,"wasLastActionShow",!0),(0,s.default)(this,"showDebounced",null),(0,s.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,n.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,r.mixin)(l,a.default);t.default=l},85979:(e,t,o)=>{"use strict";var i=o(72820),s=o(94178),n=o(70792),r=o(90501),a=o(21177),l=o(99793),h=o(14483),c=o(69019),u=o(53001),d=TypeError,g=u(function(){[].keys().reduce(function(){},void 0)}),f=!g&&h("reduce",d);i({target:"Iterator",proto:!0,real:!0,forced:g||f},{reduce:function(e){r(this);try{n(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,o=t?void 0:arguments[1];if(f)return c(f,this,t?[e]:[e,o]);var i=a(this),h=0;if(s(i,function(i){t?(t=!1,o=i):o=e(o,i,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return o}})},85988:(e,t,o)=>{"use strict";var i=o(70792),s=o(49887);e.exports=function(e,t){var o=e[t];return s(o)?void 0:i(o)}},86092:(e,t,o)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const o=[];function r(e,t){h(t).addShortcuts(e,{group:s})}function a(e,t){const i=h(t);e.forEach(e=>{let{keys:t}=e;t.forEach(e=>i.removeShortcutsByKeys(e))}),o.push({shortcuts:e,contextName:t}),r(e,t)}function l(e){return e?`${n}:${e}`:n}function h(t){var o;const i=e.hotMenu.getShortcutManager(),s=l(t);return null!==(o=i.getContext(s))&&void 0!==o?o:i.addContext(s)}return r((0,i.createDefaultShortcutsList)(e)),t.forEach(e=>{let{shortcuts:t,contextName:o}=e;a(t,o)}),{addCustomShortcuts:a,getCustomShortcuts:function(){return[...o]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(l(t))}}},o(99356),o(34478),o(31143);var i=o(92083);const s="menu",n=s},86121:(e,t,o)=>{"use strict";var i=o(94266),s=o(92853),n=o(60606),r=function(e){return s.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},86342:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(42595),s=o(45007),n=o(58299),r=o(13074);const a=t.CELL_TYPE="numeric";t.NumericCellType={CELL_TYPE:a,editor:i.NumericEditor,renderer:s.numericRenderer,validator:n.numericValidator,dataType:"number",valueSetter:r.valueSetter}},86491:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(7886),s=o(4138);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,o,s;for(t=0,o=this.countRows();t<o;t++)if(s=this.getDataAtCell(t,e),!1===(0,i.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,o,n,r;for(t=0,o=this.countCols();t<o;t++)if(n=this.getDataAtCell(e,t),!1===(0,i.isEmpty)(n))return"object"==typeof n&&(r=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[r.prop],n));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},86545:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(82515),o(34478),o(66133),o(29810),o(90643),o(940),o(33098);var s=i(o(24300)),n=o(19975),r=o(94576),a=o(4138),l=o(78966),h=o(7886),c=o(2744),u=o(38830),d=o(54657),g=o(72609),f=o(81761);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(C(e,t))}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.EDITOR_TYPE="autocomplete";var y=new WeakMap,S=new WeakMap,E=new WeakSet;class R extends n.HandsontableEditor{constructor(){var e,t;super(...arguments),m(e=this,t=E),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),p(this,y,this.hot.guid.slice(0,9)),p(this,S,(0,f.debounce)(()=>{this.focus()},100))}static get EDITOR_TYPE(){return v}getValue(){const e=this.rawChoices.find(e=>{const t=this.stripValueIfNeeded(e);return(C(E,this,_).call(this,t)?t.value:t)===this.TEXTAREA.value});return(0,h.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,l.addClass)(this.htContainer,"autocompleteEditor"),(0,l.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_TEXT)(),(0,g.A11Y_COMBOBOX)(),(0,g.A11Y_HASPOPUP)("listbox"),(0,g.A11Y_AUTOCOMPLETE)()])}prepare(e,t,o,i,s,n){super.prepare(e,t,o,i,s,n),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false"),(0,g.A11Y_CONTROLS)(`${w(y,this)}-listbox-${e}-${t}`)]),this.htOptions={...this.htOptions,valueGetter:e=>C(E,this,_).call(this,e)?e.value:e}}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,o=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,i=null==o?void 0:o.length,{row:s,col:n}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",w(S,this)),this.htEditor.updateSettings({colWidths:e?[(0,l.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,n,r,a,c,u)=>{(0,d.textRenderer)(e,s,n,r,a,c,u);const{filteringCaseSensitive:f,allowHtml:p,locale:m}=this.cellProperties,w=this.query;let C,v,y=(0,h.stringify)(c);y&&!p&&(C=!0===f?y.indexOf(w):y.toLocaleLowerCase(m).indexOf(w.toLocaleLowerCase(m)),-1!==C&&(v=y.substr(C,w.length),y=y.replace(v,`<strong>${v}</strong>`))),t&&(0,l.setAttribute)(s,[(0,g.A11Y_OPTION)(),...o?[(0,g.A11Y_SETSIZE)(i)]:[],...o?[(0,g.A11Y_POSINSET)(o.indexOf(c)+1)]:[],["id",`${this.htEditor.rootElement.id}_${n}-${r}`]]),s.innerHTML=y},afterSelectionEnd:(e,o)=>{if(t){const t=e=>{(0,l.setAttribute)(e,[(0,g.A11Y_SELECTED)()]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_ACTIVEDESCENDANT)(e.id))},i=this.htEditor.getCell(e,o,!0);null!==i?t(i):this.htEditor.addHookOnce("afterScrollVertically",()=>{const i=this.htEditor.getCell(e,o,!0);t(i)})}}}),t&&((0,l.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,g.A11Y_PRESENTATION)()),(0,l.setAttribute)(this.htEditor.rootElement,[(0,g.A11Y_LISTBOX)(),(0,g.A11Y_LIVE)("polite"),(0,g.A11Y_RELEVANT)("text"),["id",`${w(y,this)}-listbox-${s}-${n}`]]),(0,l.setAttribute)(this.TEXTAREA,...(0,g.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,l.setAttribute)(this.TEXTAREA,[(0,g.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,l.getCaretPosition)(this.TEXTAREA),o=(0,l.getSelectionEndPosition)(this.TEXTAREA),i=this.cellProperties.sortByRelevance,s=this.cellProperties.filter,n=this.stripValueIfNeeded(this.getValue()),a=C(E,this,_).call(this,n)?n.value:n;let u=null,d=e;i||(d=d.toSorted());const g=[],f=this.cellProperties.locale,p=this.cellProperties.filteringCaseSensitive,m=p?a:a.toLocaleLowerCase(f);for(let e=0;e<d.length;e++){const t=C(E,this,_).call(this,d[e])?(0,c.stripTags)((0,h.stringify)(d[e].value)):(0,c.stripTags)((0,h.stringify)(d[e]));if(-1!==(p?t:t.toLocaleLowerCase(f)).indexOf(m)&&(g.push(e),!1===s))break}!1===s?u=g[0]:(d=g.map(e=>d[e]),u=d.indexOf(m)>-1?d.indexOf(m):0),this.strippedChoices=d,0===d.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,r.pivot)([d])),d.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(u)),this.hot.listen(),(0,l.setCaretPosition)(this.TEXTAREA,t,t===o?void 0:o)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:o,spaceBelow:i}=e;return this.limitDropdownIfNeeded(t?o:i),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let o=0,i=0,s=null;do{i=this.htEditor.stylesHandler.getDefaultRowHeight(),o+=i}while(o<e);s=o-i,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(o-i)}}updateDropdownDimensions(){const e=(0,l.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,o=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:o}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),C(E,this,b).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,o=e=>(0,h.stringify)(t?e:(0,c.stripTags)(e));return e.every(e=>C(E,this,_).call(this,e))?e.map(e=>({key:o(e.key),value:o(e.value)})):e.map(e=>o(e))}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function b(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,l.getScrollbarWidth)(this.hot.rootDocument)})}function _(e){return(0,a.isObject)(e)&&(0,h.isDefined)(e.key)&&(0,h.isDefined)(e.value)}t.AutocompleteEditor=R},86672:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.timeValidator=a;var s=i(o(86798));const n=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],r=t.VALIDATOR_TYPE="time";function a(e,t){const o=this.timeFormat||"h:mm:ss a";let i=!0,r=e;null===r&&(r=""),r=/^\d{3,}$/.test(r)?parseInt(r,10):r;const a=/^\d{1,2}$/.test(r);a&&(r+=":00");const l=(0,s.default)(r,n,!0).isValid()?(0,s.default)(r):(0,s.default)(r,o);let h=l.isValid(),c=(0,s.default)(r,o,!0).isValid()&&!a;if(this.allowEmpty&&""===r&&(h=!0,c=!0),h||(i=!1),!h&&c&&(i=!0),h&&!c)if(!0===this.correctFormat){const e=l.format(o);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),i=!0}else i=!1;t(i)}a.VALIDATOR_TYPE=r},86798:e=>{"use strict";e.exports=o},87066:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(90271);t.ExtenderTransformation=i.ExtenderTransformation;var s=o(44270);t.FocusTransformation=s.FocusTransformation},87276:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(34478),o(31143);var s=o(4138),n=i(o(18805));function r(e,t,o){a(e,t),t.set(e,o)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(c(e,t))}function h(e,t,o){return e.set(c(e,t),o),o}function c(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,d=new WeakMap,g=new WeakMap,f=new WeakSet;class p{constructor(){var e,t;a(e=this,t=f),t.add(e),r(this,u,!0),r(this,d,null),r(this,g,new ResizeObserver(e=>c(f,this,m).call(this,e)))}setObservedElement(e){h(d,this,e)}unobserve(){l(g,this).unobserve(l(d,this))}observe(){h(u,this,!0),l(g,this).observe(l(d,this))}destroy(){l(g,this).disconnect()}}function m(e){!l(u,this)&&Array.isArray(e)&&e.length?e.forEach(e=>{let{borderBoxSize:t}=e;const{inlineSize:o,blockSize:i}=t[0];this.runLocalHooks("resize",o,i)}):h(u,this,!1)}t.EditorResizeObserver=p,(0,s.mixin)(p,n.default)},87395:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_INSERT_LEFT)},callback(){const e=this.getSelectedRangeActive().getTopLeftCorner(),t=this.isRtl()?"insert_col_end":"insert_col_start";this.alter(t,e.col,1,"ContextMenu.columnLeft")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)||!!this.selection.isSelectedByCorner()&&0===this.countCols()},hidden(){return!this.getSettings().allowInsertColumn}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const s=t.KEY="col_left"},87404:(e,t,o)=>{"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,i.registerAllEditors)(),(0,s.registerAllRenderers)(),(0,n.registerAllValidators)(),(0,r.registerAllCellTypes)(),(0,a.registerAllPlugins)()};var i=o(51610);t.registerAllEditors=i.registerAllEditors;var s=o(84796);t.registerAllRenderers=s.registerAllRenderers;var n=o(71443);t.registerAllValidators=n.registerAllValidators;var r=o(2373);t.registerAllCellTypes=r.registerAllCellTypes;var a=o(29344);t.registerAllPlugins=a.registerAllPlugins},87793:(e,t,o)=>{"use strict";var i=o(72820),s=o(94266),n=o(13861),r=o(90501),a=o(44827),l=o(81037),h=o(23720),c=o(67774),u=o(53001),d=o(19451),g=o(12033),f=o(97259).IteratorPrototype,p=o(2382),m=o(33973),w="constructor",C="Iterator",v=g("toStringTag"),y=TypeError,S=s[C],E=m||!a(S)||S.prototype!==f||!u(function(){S({})}),R=function(){if(n(this,f),l(this)===f)throw new y("Abstract class Iterator not directly constructable")},b=function(e,t){p?h(f,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===f)throw new y("You can't redefine this property");d(this,e)?this[e]=t:c(this,e,t)}}):f[e]=t};d(f,v)||b(v,C),!E&&d(f,w)&&f[w]!==Object||b(w,R),R.prototype=f,i({global:!0,constructor:!0,forced:E},{Iterator:R})},87878:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520),n=o(96792),r=o(59188),a=o(94811),l=o(26023),h=o(48369),c=s.has,u=s.remove;e.exports=function(e){var t=i(this),o=a(e),s=n(t);return r(t)<=o.size?l(t,function(e){o.includes(e)&&u(s,e)}):h(o.getIterator(),function(e){c(s,e)&&u(s,e)}),s}},87913:(e,t,o)=>{"use strict";var i=o(41462),s=o(31520).has,n=o(59188),r=o(94811),a=o(48369),l=o(99793);e.exports=function(e){var t=i(this),o=r(e);if(n(t)<o.size)return!1;var h=o.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},87999:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(66133);var s=i(o(24300)),n=o(26808),r=o(55656),a=o(94576);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="trimRows",c=t.PLUGIN_PRIORITY=330;var u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),l(this,u),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new r.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>function(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}(u,this,g).call(this)),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{this.trimmedRowsMap.clear(),(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;o&&(i=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,i,o)&&(o&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,i,o,o&&i.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),o=this.isValidConfig(e);let i=t;const s=this.trimmedRowsMap.getValues().slice(),n=e.length>0;o&&n&&((0,a.arrayEach)(e,e=>{s[e]=!1}),i=(0,a.arrayReduce)(s,(e,t,o)=>(t&&e.push(o),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,i,o&&n)&&(o&&n&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,i,o&&n,o&&i.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}destroy(){super.destroy()}}function g(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0)}t.TrimRows=d},88173:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=o(79035),a=i(o(30164)),l=o(23228),h=o(4138),c=o(58604),u=i(o(65165)),d=o(2744),g=o(13743),f=o(55656);function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const y=t.PLUGIN_KEY="autoColumnSize",S=t.PLUGIN_PRIORITY=10;var E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,o;super(e),m(t=this,o=_),o.add(t),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new u.default((e,t)=>{const o=this.hot.toPhysicalRow(e),i=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(o)||this.hot.columnIndexMapper.isHidden(i))return!1;const s=this.hot.getCellMeta(e,t);let n="";s.spanned||(n=this.hot.getDataAtCell(e,t));let r="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(r=this.hot.runHooks("modifyAutoColumnSizeSeed",r,s,n)),{value:n,bundleSeed:r}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new f.PhysicalIndexToValueMap),p(this,E,!1),p(this,R,[]),p(this,b,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,H).call(this,e,t,o))}isEnabled(){return!1!==this.hot.getSettings()[y]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeChangeRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterFormulasValuesUpdate",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("beforeRender",()=>v(_,this,A).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>v(_,this,x).call(this)),super.enablePlugin()}updatePlugin(){C(b,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,o)=>v(_,this,H).call(this,e,t,o))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const o=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,o)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,c.rangeEach)(i.from,i.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(o||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&v(_,this,I).call(this,e,s)}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.measuredColumns=i.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=0;const i=this.hot.countCols()-1;let s=null;this.inProgress=!0;const n=()=>{if(!this.hot)return(0,r.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:o,to:Math.min(o+T.CALCULATION_STEP,i)},e,t),o=o+T.CALCULATION_STEP+1,o<i?s=(0,r.requestAnimationFrame)(n):((0,r.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),o=a+1),o<i?n():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[y];let t=T.SYNC_CALCULATION_LIMIT;const o=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,c.valueAccordingPercent)(o,t):t>>=0),Math.min(t,o)}getColumnWidth(e,t){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t;return void 0===i&&(i=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),o&&"number"==typeof i&&(i=Math.max(i,g.DEFAULT_COLUMN_WIDTH))),i}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,o)=>{const i=w(R,this).length;return(i-1<o||w(R,this)[o]!==t)&&e.push(this.hot.toVisualColumn(o)),i-1<o?w(R,this).push(t):w(R,this)[o]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function M(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const o=this.hot.toPhysicalColumn(e);null!==o&&(this.hot._getColWidthFromSettings(o)||v(_,this,I).call(this,e,t))}),this.ghostTable.columns.length&&(v(_,this,O).call(this),this.ghostTable.clean())}function I(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function O(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const o=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(o,t)})},!0)}function A(){this.calculateVisibleColumnsWidth(),this.inProgress||(v(_,this,M).call(this,w(b,this)),C(b,this,[]))}function N(e,t){t||this.recalculateAllColumnsWidth()}function P(e){const t=e.reduce((e,t)=>{let[,o]=t;const i=this.hot.propToCol(o);return Number.isInteger(i)&&-1===e.indexOf(i)&&e.push(i),e},[]);w(b,this).push(...t)}function H(e,t,o){let i=e;return o&&(this.calculateColumnsWidth(t,void 0,!0),i=this.getColumnWidth(t,void 0,!1)),i}function x(){C(R,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),C(E,this,!0)}function k(e){if(!w(E,this))return;const t=e.reduce((e,t)=>{var o;const i=null===(o=t.address)||void 0===o?void 0:o.col;if(Number.isInteger(i)){const t=this.hot.toVisualColumn(i);-1===e.indexOf(t)&&e.push(t)}return e},[]);w(b,this).push(...t)}t.AutoColumnSize=T},88181:(e,t,o)=>{"use strict";t.__esModule=!0,t.getRenderer=function(e){if("function"==typeof e)return e;if(!r(e))throw Error(`No registered renderer found under "${e}" name`);return n(e)},t.registerRenderer=function(e,t){"string"!=typeof e&&(e=(t=e).RENDERER_TYPE);s(e,t)},o(52490);var i=o(25854);const{register:s,getItem:n,hasItem:r,getNames:a,getValues:l}=(0,i.staticRegister)("renderers");t.getRegisteredRenderers=l,t.getRegisteredRendererNames=a,t.hasRenderer=r},88422:(e,t)=>{"use strict";t.__esModule=!0,t.hasValidParameter=function(e){return e===i},t.isRootInstance=function(e){return o.has(e)},t.registerAsRootInstance=function(e){o.set(e,!0)};const o=t.holder=new WeakMap,i=t.rootInstanceSymbol=Symbol("rootInstance")},88711:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i=o(42888);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||(t[e]=i[e]))})},88786:(e,t,o)=>{"use strict";var i={};i[o(12033)("toStringTag")]="z",e.exports="[object z]"===String(i)},88855:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(81056);var i=o(47802);t.command={name:"editorOpen",callback(e,t,o){const{selection:s}=e,n=e._getEditorManager(),r=e.getSelectedRange(),a=e.getSelectedRangeActive(),{highlight:l}=a;if((r.some(e=>s.isMultiple(e))||r.length>1)&&!a.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const i=e.getSettings(),n="function"==typeof i.enterMoves?i.enterMoves(t):i.enterMoves;return void(o.includes("shift")?s.transformFocus(-n.row,-n.col):s.transformFocus(n.row,n.col))}l.isHeader()||(e.getSettings().enterBeginsEditing?n.cellProperties.readOnly?n.moveSelectionAfterEnter(t):n.openEditor(null,t,!0):n.moveSelectionAfterEnter(t),(0,i.stopImmediatePropagation)(t))}}},88932:(e,t,o)=>{"use strict";var i=o(19098),s=o(44827),n=o(65415),r=i(Function.toString);s(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),e.exports=n.inspectSource},89083:(e,t,o)=>{"use strict";var i=o(72820),s=o(94178),n=o(67774);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return s(e,function(e,o){n(t,e,o)},{AS_ENTRIES:!0}),t}})},89136:(e,t)=>{"use strict";function o(e,t){let{childs:o}=e;if(0!==o.length)return o[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=o,t.isNodeReflectsFirstChildColspan=function(e){return o(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:o,childs:i}=e;if(!o.isHidden&&(t(o.columnIndex),0===i.length))for(let e=1;e<o.colspan;e++)t(o.columnIndex+e)})}},89211:(e,t,o)=>{"use strict";t.__esModule=!0,t.RegisteredEditor=u,t.getEditorInstance=t._getEditorInstance=function(e,t){let o;if("function"==typeof e)n.get(e)||d(null,e),o=n.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');o=a(e)}if(!o)throw Error(`No editor registered under name "${e}"`);return o.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()},t.registerEditor=d,o(52490);var i=o(23228),s=o(25854);const n=new WeakMap,{register:r,getItem:a,hasItem:l,getNames:h,getValues:c}=(0,s.staticRegister)("editors");function u(e){const t={},o=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new o(e)),t[e.guid]},i.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function d(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const o=new u(t);"string"==typeof e&&r(e,o),n.set(t,o)}t.getRegisteredEditors=c,t.getRegisteredEditorNames=h,t.hasEditor=l},89273:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(39411);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.TouchScroll=i.TouchScroll},89426:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(34478),o(31143);var s=i(o(24300)),n=o(631),r=o(56259);class a extends n.BaseAction{constructor(e){let{rows:t,finalIndex:o}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=o}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,o)=>{!1!==e&&t.done(()=>new a({rows:e,finalIndex:o}))})}undo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,r.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:i}=e;t<i&&(i-=1),o.moveRow(i,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const o=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),o.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=a},89624:(e,t,o)=>{"use strict";var i=o(72820),s=o(87878),n=o(53001);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("difference",function(e){return 0===e.size})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var o=e++>1;return t.has(1)&&t.clear(),{done:o,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:s})},89980:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(75293);class r extends n.PartiallyVisibleRowsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"rowStartOffset",0),(0,s.default)(this,"rowEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:o,totalRows:i,startPositions:s}=e;if(null!==this.startRow&&"function"==typeof o){const e=this.startRow,t=this.endRow;o(this),this.rowStartOffset=e-this.startRow,this.rowEndOffset=this.endRow-t}this.startRow<0&&(this.startRow=0),this.startPosition=null!==(t=s[this.startRow])&&void 0!==t?t:null,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}t.RenderedRowsCalculationType=r},90116:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300));function n(e,t,o){(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,o)}function r(e,t){return e.get(l(e,t))}function a(e,t,o){return e.set(l(e,t),o),o}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),n(this,h,!1),a(h,this,o),void 0!==e&&void 0!==t&&(this.row=e,this.col=t)}isValid(e){const{countRows:t,countCols:o,countRowHeaders:i,countColHeaders:s}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col))&&(!(this.row<-s||this.col<-i)&&!(this.row>=t||this.col>=o))}isEqual(e){return e===this||this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return r(h,this)}isSouthEastOf(e){return this.row>=e.row&&(r(h,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(r(h,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(r(h,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(r(h,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=null===this.row?this.row:Math.max(this.row,0),this.col=null===this.col?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(null==e?void 0:e.row)&&(this.row=e.row),Number.isInteger(null==e?void 0:e.col)&&(this.col=e.col),e instanceof c&&a(h,this,e.isRtl()),this}clone(){return new c(this.row,this.col,r(h,this))}toObject(){return{row:this.row,col:this.col}}}t.default=c},90271:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(28666);class s extends i.BaseTransformation{calculateOffset(){return{x:this.tableApi.navigableHeaders()?this.tableApi.countRowHeaders():0,y:this.tableApi.navigableHeaders()?this.tableApi.countColHeaders():0}}countRenderableRows(){return this.tableApi.countRenderableRows()}countRenderableColumns(){return this.tableApi.countRenderableColumns()}shouldSwitchSelectionLayer(){return!1}}t.ExtenderTransformation=s},90331:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(26808),r=o(4138),a=o(58604),l=o(94576),h=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),c=o(58781),u=o(3720),d=o(79930);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function f(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const p=t.PLUGIN_KEY="customBorders",m=t.PLUGIN_PRIORITY=90;var w=new WeakSet;class C extends n.BasePlugin{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return m}isEnabled(){return!!this.hot.getSettings()[p]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>f(w,this,v).call(this,e)),this.addHook("init",()=>f(w,this,y).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let o=["top","bottom","start","end"],i=null;t&&(this.checkSettingsCohesion([t]),o=Object.keys(t),i=(0,u.normalizeBorder)(t));const s=(0,d.detectSelectionType)(e),n=(0,d.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,l.arrayEach)(e,e=>{n(e).forAll((e,t)=>{(0,l.arrayEach)(o,o=>{this.prepareBorderFromCustomAdded(e,t,i,(0,u.toInlinePropName)(o))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),i=[];return(0,l.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,l.arrayEach)(this.savedBorders,o=>{o.row===e&&o.col===t&&i.push((0,u.denormalizeBorder)(o))})})}),i}clearBorders(e){e?this.setBorders(e):((0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const o=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,o,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:o})}prepareBorderFromCustomAdded(e,t,o,i){const s=this.hot.countRows(),n=this.hot.countCols();if(e>=s||t>=n)return;let r=(0,u.createEmptyBorders)(e,t);o&&(r=(0,u.extendDefaultBorder)(r,o),(0,l.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(r.id===e.settings.id)return Object.assign(e.settings,o),r.id=e.settings.id,r.top=e.settings.top,r.bottom=e.settings.bottom,r.start=e.settings.start,r.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(r)),this.insertBorderIntoSettings(r,i)}prepareBorderFromCustomAddedRange(e,t){const o=Math.min(e.to.row,this.hot.countRows()-1),i=Math.min(e.to.col,this.hot.countCols()-1);(0,a.rangeEach)(e.from.row,o,o=>{(0,a.rangeEach)(e.from.col,i,i=>{const s=(0,u.createEmptyBorders)(o,i);let n=0;o===e.from.row&&(0,r.hasOwnProperty)(t,"top")&&(n+=1,s.top=t.top),o===e.to.row&&(0,r.hasOwnProperty)(t,"bottom")&&(n+=1,s.bottom=t.bottom),i===e.from.col&&(0,r.hasOwnProperty)(t,"start")&&(n+=1,s.start=t.start),i===e.to.col&&(0,r.hasOwnProperty)(t,"end")&&(n+=1,s.end=t.end),n>0&&(this.hot.setCellMeta(o,i,"borders",(0,u.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const o=(0,u.createId)(e,t);this.spliceBorder(o),this.clearBordersFromSelectionSettings(o),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,o,i){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,u.normalizeBorder)(s):(0,u.createEmptyBorders)(e,t),i){s[o]=(0,u.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(s))}}else{s[o]=(0,u.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,o,i)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,u.denormalizeBorder)(s))}}prepareBorder(e,t,o){(0,l.arrayEach)(e,e=>{let{start:i,end:s}=e;if(i.row===s.row&&i.col===s.col)"noBorders"===t?this.removeAllBorders(i.row,i.col):this.setBorder(i.row,i.col,t,o);else switch(t){case"noBorders":(0,a.rangeEach)(i.col,s.col,e=>{(0,a.rangeEach)(i.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,a.rangeEach)(i.col,s.col,e=>{this.setBorder(i.row,e,t,o)});break;case"bottom":(0,a.rangeEach)(i.col,s.col,e=>{this.setBorder(s.row,e,t,o)});break;case"start":(0,a.rangeEach)(i.row,s.row,e=>{this.setBorder(e,i.col,t,o)});break;case"end":(0,a.rangeEach)(i.row,s.row,e=>{this.setBorder(e,s.col,t,o)})}})}createCustomBorders(e){(0,l.arrayEach)(e,e=>{const t=(0,u.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:o,start:i,end:s}=e,n=[t,o,i,s];return(0,l.arrayReduce)(n,(e,t)=>{let o=e;return t&&t.hide&&(o+=1),o},0)}clearBordersFromSelectionSettings(e){const t=(0,l.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,l.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,l.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,l.arrayEach)(this.savedBorders,(o,i)=>{if(e.id===o.id)return this.savedBorders[i]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,o){let i=!1;return(0,l.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,l.arrayEach)(e,e=>{e.toggleHiddenClass(t,o)}),i=!0,!1}}),i}checkCustomSelections(e,t,o){const i=this.countHide(e);let s=!1;return 4===i?(this.removeAllBorders(e.row,e.col),s=!0):(0,l.arrayEach)(this.hot.selection.highlight.customSelections,i=>{if(e.id===i.settings.id){if(i.visualCellRange=t,i.commit(),o){const t=this.hot.view._wt.selectionManager.getBorderInstances(i);(0,l.arrayEach)(t,t=>{t.changeBorderStyle(o,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[p];if(Array.isArray(e)){const t=(0,r.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,u.hasLeftRightTypeOptions)(e),o=(0,u.hasStartEndTypeOptions)(e);if(t&&o)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function v(e){this.hot.getSettings()[p]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,c.top)(this),(0,c.right)(this),(0,c.bottom)(this),(0,c.left)(this),(0,c.noBorders)(this)]}})}function y(){this.changeBorderSettings()}t.CustomBorders=C},90501:(e,t,o)=>{"use strict";var i=o(15176),s=String,n=TypeError;e.exports=function(e){if(i(e))return e;throw new n(s(e)+" is not an object")}},90606:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_ROW,t)},callback(){this.alter("remove_row",(0,i.transformSelectionToRowDistance)(this),1,"ContextMenu.removeRow")},disabled(){const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.row<0)return!0;const t=this.countRows();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByColumnHeader()||0===t},hidden(){return!this.getSettings().allowRemoveRow}}};var i=o(48971),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const n=t.KEY="remove_row"},90625:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(99356);var i=o(4138),s=o(94576),n=o(74571);function r(e,t,o){(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,o)}function a(e,t){return e.get(h(e,t))}function l(e,t,o){return e.set(h(e,t),o),o}function h(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const c=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var u=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){r(this,u,[]),r(this,d,0),r(this,g,1/0)}setColumnsLimit(e){l(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l(u,this,(0,n.normalizeSettings)(e,a(g,this))),l(d,this,a(u,this).length)}getData(){return a(u,this)}mergeWith(e){(0,s.arrayEach)(e,e=>{let{row:t,col:o,...s}=e;const n=this.getHeaderSettings(t,o);null!==n&&(0,i.extend)(n,s,c)})}map(e){(0,s.arrayEach)(a(u,this),t=>{(0,s.arrayEach)(t,t=>{const o=e({...t});(0,i.isObject)(o)&&(0,i.extend)(t,o,c)})})}getHeaderSettings(e,t){var o;if(e>=a(d,this)||e<0)return null;const i=a(u,this)[e];return!1===Array.isArray(i)||t>=i.length?null:null!==(o=i[t])&&void 0!==o?o:null}getHeadersSettings(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const i=[];if(e>=a(d,this)||e<0)return i;const s=a(u,this)[e];let n=0;for(let e=t;e<s.length;e++){const t=s[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(n+=t.colspan,i.push(t),t.colspan>1&&(e+=t.colspan-1),n===o)break;if(n>o)throw new Error("The last column settings cannot overlap the other header layers")}return i}getLayersCount(){return a(d,this)}getColumnsCount(){return a(d,this)>0?a(u,this)[0].length:0}clear(){l(u,this,[]),l(d,this,0)}}},90643:(e,t,o)=>{"use strict";o(50506)},91031:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(58584),o(34478),o(29810),o(940);var s=i(o(24300)),n=o(26808),r=o(23228),a=o(51839),l=o(94576),h=o(2744),c=o(4138),u=o(78966),d=o(40929),g=i(o(30818)),f=i(o(57566)),p=i(o(80715)),m=i(o(28212)),w=i(o(73747)),C=i(o(55826)),v=o(8536),y=o(40920);function S(e,t,o){E(e,t),t.set(e,o)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(e,t){return e.get(_(e,t))}function b(e,t,o){return e.set(_(e,t),o),o}function _(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}r.Hooks.getSingleton().register("afterCopyLimit"),r.Hooks.getSingleton().register("modifyCopyableRange"),r.Hooks.getSingleton().register("beforeCut"),r.Hooks.getSingleton().register("afterCut"),r.Hooks.getSingleton().register("beforePaste"),r.Hooks.getSingleton().register("afterPaste"),r.Hooks.getSingleton().register("beforeCopy"),r.Hooks.getSingleton().register("afterCopy");const T=t.PLUGIN_KEY="copyPaste",M=t.PLUGIN_PRIORITY=80,I=["fragmentSelection"],O="application/ht-source-data-json-html",A=['<meta name="generator" content="Handsontable"/>','<style type="text/css">td{white-space:normal}br{mso-data-placement:same-cell}</style>'].join("");var N=new WeakMap,P=new WeakMap,H=new WeakMap,x=new WeakMap,k=new WeakMap,D=new WeakMap,L=new WeakMap,V=new WeakMap,W=new WeakSet;class F extends n.BasePlugin{constructor(){var e,t;super(...arguments),E(e=this,t=W),t.add(e),(0,s.default)(this,"columnsLimit",1/0),(0,s.default)(this,"rowsLimit",1/0),(0,s.default)(this,"pasteMode","overwrite"),(0,s.default)(this,"uiContainer",this.hot.rootDocument.body),S(this,N,!1),S(this,P,!1),S(this,H,!1),S(this,x,"cells-only"),S(this,k,!1),S(this,D,!1),S(this,L,new v.CopyableRangesFactory({countRows:()=>this.hot.countRows(),countColumns:()=>this.hot.countCols(),rowsLimit:()=>this.rowsLimit,columnsLimit:()=>this.columnsLimit,countColumnHeaders:()=>this.hot.view.getColumnHeadersCount()})),S(this,V,!1),(0,s.default)(this,"copyableRanges",[])}static get PLUGIN_KEY(){return T}static get SETTING_KEYS(){return[T,...I]}static get PLUGIN_PRIORITY(){return M}static get DEFAULT_SETTINGS(){return{pasteMode:"overwrite",rowsLimit:1/0,columnsLimit:1/0,copyColumnHeaders:!1,copyColumnGroupHeaders:!1,copyColumnHeadersOnly:!1}}isEnabled(){return!!this.hot.getSettings()[T]}enablePlugin(){var e,t,o=this;this.enabled||(this.pasteMode=null!==(e=this.getSetting("pasteMode"))&&void 0!==e?e:this.pasteMode,this.rowsLimit=isNaN(this.getSetting("rowsLimit"))?this.rowsLimit:this.getSetting("rowsLimit"),this.columnsLimit=isNaN(this.getSetting("columnsLimit"))?this.columnsLimit:this.getSetting("columnsLimit"),b(N,this,this.getSetting("copyColumnHeaders")),b(P,this,this.getSetting("copyColumnGroupHeaders")),b(H,this,this.getSetting("copyColumnHeadersOnly")),this.uiContainer=null!==(t=this.getSetting("uiContainer"))&&void 0!==t?t:this.uiContainer,this.addHook("afterContextMenuDefaultOptions",e=>_(W,this,G).call(this,e)),this.addHook("afterSelection",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return _(W,o,$).call(o,...t)}),this.addHook("afterSelectionEnd",()=>_(W,this,K).call(this)),this.eventManager.addEventListener(this.hot.rootDocument,"copy",function(){return o.onCopy(...arguments)}),this.eventManager.addEventListener(this.hot.rootDocument,"cut",function(){return o.onCut(...arguments)}),this.eventManager.addEventListener(this.hot.rootDocument,"paste",function(){return o.onPaste(...arguments)}),(0,d.isSafari)()&&(this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseenter",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return _(W,o,X).call(o,...t)}),this.eventManager.addEventListener(this.hot.rootDocument.body,"mouseleave",function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return _(W,o,q).call(o,...t)}),this.addHook("afterSelection",()=>_(W,this,Q).call(this))),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin()}copy(){b(x,this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cells-only"),b(k,this,!0),_(W,this,B).call(this,"copy")}copyCellsOnly(){this.copy("cells-only")}copyColumnHeadersOnly(){this.copy("column-headers-only")}copyWithAllColumnHeaders(){this.copy("with-column-group-headers")}copyWithColumnHeaders(){this.copy("with-column-headers")}cut(){b(D,this,!0),_(W,this,B).call(this,"cut")}getRangedCopyableData(e){return(0,a.stringify)(this.getRangedData(e))}getRangedData(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=[],{rows:i,columns:s}=(0,v.normalizeRanges)(e);return(0,l.arrayEach)(i,e=>{const i=[];(0,l.arrayEach)(s,o=>{if(e<0)i.push(this.hot.getColHeader(o,e));else{let s=t?this.hot.getCopyableSourceData(e,o):this.hot.getCopyableData(e,o);t&&(0,c.isObject)(s)&&(s=JSON.stringify(s)),i.push(s)}}),o.push(i)}),o}paste(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(!e&&!t)return;const o=new C.default;e&&o.clipboardData.setData("text/plain",e),t&&o.clipboardData.setData("text/html",t),this.onPaste(o)}setCopyableText(){const e=this.hot.getSelectedRangeActive();if(!e)return;if(e.isSingleHeader())return void(this.copyableRanges=[]);R(L,this).setSelectedRange(e);const t=new Map([["headers",null],["cells",null]]);"column-headers-only"===R(x,this)?t.set("headers",R(L,this).getMostBottomColumnHeadersRange()):("with-column-headers"===R(x,this)?t.set("headers",R(L,this).getMostBottomColumnHeadersRange()):"with-column-group-headers"===R(x,this)&&t.set("headers",R(L,this).getAllColumnHeadersRange()),t.set("cells",R(L,this).getCellsRange())),this.copyableRanges=Array.from(t.values()).filter(e=>null!==e).map(e=>{let{startRow:t,startCol:o,endRow:i,endCol:s}=e;return{startRow:t,startCol:o,endRow:i,endCol:s}}),this.copyableRanges=this.hot.runHooks("modifyCopyableRange",this.copyableRanges);const o=t.get("cells");if(null!==o&&o.isRangeTrimmed){const{startRow:e,startCol:t,endRow:i,endCol:s}=o;this.hot.runHooks("afterCopyLimit",i-e+1,s-t+1,this.rowsLimit,this.columnsLimit)}}isEditorOpened(){var e;return null===(e=this.hot.getActiveEditor())||void 0===e?void 0:e.isOpened()}populateValues(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getSelectedRangeActive();if(!e.length)return[null,null,null,null];const i=e.length,s=e[0].length,n=[],{row:r,col:a}=o.getTopStartCorner(),{row:l,col:u}=o.getBottomEndCorner();let d=r,g=a,f=r,p=a;for(;n.length<i||d<=l;){const{skipRowOnPaste:o,visualRow:r}=this.hot.getCellMeta(d,a);if(d=r+1,!0===o)continue;f=r,g=a;const l=[],w=n.length%i;for(;l.length<s||g<=u;){var m;const{skipColumnOnPaste:o,visualCol:i}=this.hot.getCellMeta(r,g),n=this.hot.getSourceDataAtCell(r,g),a=l.length%s;if(g=i+1,!0===o)continue;p=i;const u=null==t||null===(m=t[w])||void 0===m?void 0:m[a];let d=e[w][a];if(t&&(0,h.isJSON)(u)){const e=JSON.parse(u);((0,c.isObject)(n)||null===n)&&(d=e)}l.push(d)}n.push(l)}return b(V,this,!0),this.hot.populateFromArray(r,a,n,void 0,void 0,"CopyPaste.paste",this.pasteMode),[r,a,f,p]}onCopy(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),i=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!R(k,this)||this.isEditorOpened()||(0,u.isHTMLElement)(t)&&(i&&t!==o||!i&&t!==this.hot.rootDocument.body&&!(0,u.isInternalElement)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),b(k,this,!1);const s=this.getRangedData(this.copyableRanges),n=this.getRangedData(this.copyableRanges,!0),r=_(W,this,U).call(this,this.copyableRanges);!!this.hot.runHooks("beforeCopy",s,this.copyableRanges,r)&&(_(W,this,z).call(this,e,s,n),this.hot.runHooks("afterCopy",s,this.copyableRanges,r)),b(x,this,"cells-only")}onCut(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),i=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()&&!R(D,this)||this.isEditorOpened()||(0,u.isHTMLElement)(t)&&(i&&t!==o||!i&&t!==this.hot.rootDocument.body&&!(0,u.isInternalElement)(t,this.hot.rootElement)))return;e.preventDefault(),this.setCopyableText(),b(D,this,!1);const s=this.getRangedData(this.copyableRanges),n=this.getRangedData(this.copyableRanges,!0);!!this.hot.runHooks("beforeCut",s,this.copyableRanges)&&(_(W,this,z).call(this,e,s,n),this.hot.emptySelectedCells("CopyPaste.cut"),this.hot.runHooks("afterCut",s,this.copyableRanges))}onPaste(e){const t=e.composedPath()[0],o=this.hot.getFocusManager().getRefocusElement(),i=null==t?void 0:t.hasAttribute("data-hot-input");if(!this.hot.isListening()||this.isEditorOpened()||!this.hot.getSelected()||(0,u.isHTMLElement)(t)&&(i&&t!==o||!i&&t!==this.hot.rootDocument.body&&!(0,u.isInternalElement)(t,this.hot.rootElement)))return;let s,n;if(e.preventDefault(),e&&void 0!==e.clipboardData){const t=e.clipboardData.getData(O);if(t){n=(0,y.htmlToGridSettings)(t,this.hot.rootDocument).data}const o=(0,h.sanitize)(e.clipboardData.getData("text/html"),{ADD_TAGS:["meta"],ADD_ATTR:["content"],FORCE_BODY:!0});if(o&&/(<table)|(<TABLE)/g.test(o)){s=(0,y.htmlToGridSettings)(o,this.hot.rootDocument).data}else s=e.clipboardData.getData("text/plain")}else"undefined"==typeof ClipboardEvent&&void 0!==this.hot.rootWindow.clipboardData&&(s=this.hot.rootWindow.clipboardData.getData("Text"));if("string"==typeof s&&(s=(0,a.parse)(s)),void 0===s||s&&0===s.length)return;if(!1===this.hot.runHooks("beforePaste",s,this.copyableRanges))return;const[r,l,c,d]=this.populateValues(s,n);null!==r&&null!==l&&this.hot.selectCell(r,l,Math.min(this.hot.countRows()-1,c),Math.min(this.hot.countCols()-1,d)),this.hot.runHooks("afterPaste",s,this.copyableRanges)}destroy(){super.destroy()}}function B(e){if((0,d.isSafari)()){const t=this.hot.getSelectedRangeActive();if(t){const{row:o,col:i}=t.highlight,s=this.hot.getCell(o,i,!0);s&&(0,u.runWithSelectedContendEditableElement)(s,()=>{this.hot.rootDocument.execCommand(e)})}}else this.hot.rootDocument.execCommand(e)}function U(e){const{rows:t}=(0,v.normalizeRanges)(e);let o=0;for(let e=0;e<t.length&&!(t[e]>=0);e++)o+=1;return{columnHeadersCount:o}}function Y(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeActive();if(e){const{row:t,col:o}=e.highlight,i=this.hot.getCell(t,o,!0);i&&(0,u.makeElementContentEditableAndSelectItsContent)(i)}}}function j(){if(this.hot.isListening()){const e=this.hot.getSelectedRangeActive();if(e){const{row:t,col:o}=e.highlight,i=this.hot.getCell(t,o,!0);null!=i&&i.hasAttribute("contenteditable")&&(0,u.removeContentEditableFromElementAndDeselect)(i)}}}function z(e,t,o){const i=(0,a.stringify)(t);if(e&&e.clipboardData){const s=(0,y._dataToHTML)(t),n=(0,y._dataToHTML)(o);e.clipboardData.setData("text/plain",i),e.clipboardData.setData("text/html",[A,s].join("")),e.clipboardData.setData(O,[A,n].join(""))}else"undefined"==typeof ClipboardEvent&&this.hot.rootWindow.clipboardData.setData("Text",i)}function G(e){e.items.push({name:"---------"},(0,g.default)(this)),R(N,this)&&e.items.push((0,m.default)(this)),R(P,this)&&e.items.push((0,p.default)(this)),R(H,this)&&e.items.push((0,f.default)(this)),e.items.push((0,w.default)(this))}function $(e,t,o,i,s){R(V,this)&&(s.value=!0),b(V,this,!1)}function K(){this.isEditorOpened()||this.hot.getSettings().fragmentSelection||this.setCopyableText()}function X(){_(W,this,j).call(this)}function q(){_(W,this,Y).call(this)}function Q(){_(W,this,j).call(this)}t.CopyPaste=F},91173:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(94576),a=o(4138),l=o(76323),h=o(83914),c=o(78966),u=o(46337),d=o(88711),g=o(23228),f=o(58226),p=o(72609);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}g.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),g.Hooks.getSingleton().register("beforeDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuShow"),g.Hooks.getSingleton().register("afterDropdownMenuHide"),g.Hooks.getSingleton().register("afterDropdownMenuExecute");const v=t.PLUGIN_KEY="dropdownMenu",y=t.PLUGIN_PRIORITY=230,S="changeType",E=v;var R=new WeakMap,b=new WeakSet;class _ extends n.BasePlugin{static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[f.COLUMN_LEFT,f.COLUMN_RIGHT,f.SEPARATOR,f.REMOVE_COLUMN,f.SEPARATOR,f.CLEAR_COLUMN,f.SEPARATOR,f.READ_ONLY,f.SEPARATOR,f.ALIGNMENT]}constructor(e){var t,o;super(e),m(t=this,o=b),o.add(t),(0,s.default)(this,"commandExecutor",new l.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.default)(this,"menu",null),function(e,t,o){m(e,t),t.set(e,o)}(this,R,!1),this.hot.addHook("afterGetColHeader",(e,t)=>C(b,this,I).call(this,e,t))}isEnabled(){return this.hot.getSettings()[v]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new u.ItemsFactory(this.hot,_.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,x).call(e,...o)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return C(b,e,H).call(e,...o)}),this.addHook("beforeDialogShow",()=>this.close());const t=this.hot.getSettings()[v],o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",o),this.itemsFactory.setPredefinedItems(o.items);const i=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",i),this.menu.setMenuItems(i),this.menu.addLocalHook("beforeOpen",()=>C(b,this,O).call(this)),this.menu.addLocalHook("afterOpen",()=>C(b,this,A).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>C(b,this,N).call(this,e)),this.menu.addLocalHook("afterClose",()=>C(b,this,P).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.executeCommand.call(e,...o)}),(0,r.arrayEach)(i,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeActive();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeActive(),o=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),i=this.hot.getCell(-1,t.col,!0).querySelector(`.${S}`),s=i.getBoundingClientRect();this.open({left:s.left+o.left,top:s.top+i.offsetHeight+o.top},{left:s.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:E},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:E}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>C(b,this,M).call(this,e))}open(e){var t;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,a.objectEach)(o,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];this.commandExecutor.execute(e,...o)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function T(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function M(e){if((0,c.hasClass)(e.target,S)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),o=e.target.getBoundingClientRect();e.stopPropagation(),w(R,this,!1),this.open({left:o.left+t.left,top:o.top+e.target.offsetHeight+t.top},{left:o.width,right:0,above:0,below:3})}}function I(e,t){const o=t.parentNode;if(!o)return;const i=o.parentNode.childNodes,s=Array.prototype.indexOf.call(i,o);if(e<0||s!==i.length-1)return;const n=t.querySelector(`.${S}`);if(this.enabled&&n)return;if(!this.enabled)return void(n&&n.parentNode.removeChild(n));const r=this.hot.rootDocument.createElement("button");r.className=S,r.type="button",r.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,c.setAttribute)(r,[(0,p.A11Y_HIDDEN)(),(0,p.A11Y_LABEL)(" ")]),(0,c.setAttribute)(t,[(0,p.A11Y_HASPOPUP)("menu")])),r.onclick=function(){return!1},t.firstChild.insertBefore(r,t.firstChild.firstChild)}function O(){this.hot.runHooks("beforeDropdownMenuShow",this)}function A(){this.hot.runHooks("afterDropdownMenuShow",this),C(b,this,T).call(this,this.menu)}function N(e){C(b,this,T).call(this,e)}function P(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function H(e){return o=this,(t=R).get(C(t,o))?null:e;var t,o}function x(e){(0,c.hasClass)(e.target,S)&&w(R,this,!0)}t.DropdownMenu=_,_.SEPARATOR={name:f.SEPARATOR}},91197:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(88173);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.AutoColumnSize=i.AutoColumnSize},91342:(e,t,o)=>{"use strict";o(34478),o(31143);var i=o(73805);t.__esModule=!0;var s={SelectionManager:!0,Selection:!0},n=i(o(39872));t.Selection=n.default;var r=o(7743);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===r[e]||(t[e]=r[e]))});var a=o(96188);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(s,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))});var l=o(77969);t.SelectionManager=l.SelectionManager},91376:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(29810),o(31143);var s=i(o(24300)),n=o(51839),r=o(9013),a=o(4138),l=o(94576),h=o(58604),c=o(7886),u=o(84566);class d{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,t,o){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"tableMeta",void 0),(0,s.default)(this,"dataSource",void 0),(0,s.default)(this,"duckSchema",void 0),(0,s.default)(this,"colToPropCache",void 0),(0,s.default)(this,"propToColCache",void 0),this.hot=e,this.metaManager=o,this.tableMeta=o.getTableMeta(),this.dataSource=t,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(void 0===e)throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const t=this.tableMeta.columns;let o;if(this.colToPropCache=[],this.propToColCache=new Map,t){let i=0,s=0,n=!1;if("function"==typeof t){const t=(0,a.deepObjectSize)(e);i=t>0?t:this.countFirstRowKeys(),n=!0}else{const e=this.tableMeta.maxCols;i=Math.min(e,t.length)}for(o=0;o<i;o++){const e=n?t(o):t[o];if((0,a.isObject)(e)){if(void 0!==e.data){const t=n?s:o;this.colToPropCache[t]=e.data,this.propToColCache.set(e.data,t)}s+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return(0,r.countFirstRowKeys)(this.dataSource)}recursiveDuckColumns(e,t,o){let i,s=t,n=o;return void 0===s&&(s=0,n=""),"object"!=typeof e||Array.isArray(e)||(0,a.objectEach)(e,(e,t)=>{null===e?(i=n+t,this.colToPropCache.push(i),this.propToColCache.set(i,s),s+=1):s=this.recursiveDuckColumns(e,s,`${t}.`)}),s}colToProp(e){if(!1===Number.isInteger(e))return e;const t=this.hot.toPhysicalColumn(e);return null===t?e:this.colToPropCache&&(0,c.isDefined)(this.colToPropCache[t])?this.colToPropCache[t]:t}propToCol(e){const t=this.propToColCache.get(e);if((0,c.isDefined)(t))return this.hot.toVisualColumn(t);const o=this.hot.toVisualColumn(e);return null===o?e:o}getSchema(){const e=this.tableMeta.dataSchema;return e?"function"==typeof e?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?(0,a.duckSchema)(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:i="above"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=this.hot.countSourceRows();let n=s,r=0,l=e;("number"!=typeof l||l>=s)&&(l=s),l<this.hot.countRows()&&(n=this.hot.toPhysicalRow(l));if(!1===this.hot.runHooks("beforeCreateRow",l,t,o)||null===n)return{delta:0};const c=this.tableMeta.maxRows,u=this.getSchema().length,d=[];for(;r<t&&s+r<c;){let e=null;"array"===this.hot.dataType?this.tableMeta.dataSchema?e=(0,a.deepClone)(this.getSchema()):(e=[],(0,h.rangeEach)(u-1,()=>e.push(null))):"function"===this.hot.dataType?e=this.tableMeta.dataSchema(l+r):(e={},(0,a.deepExtend)(e,this.getSchema())),d.push(e),r+=1}this.hot.rowIndexMapper.insertIndexes(l,r),"below"===i&&(n=Math.min(n+1,s)),this.spliceData(n,0,d);const g=this.hot.toVisualRow(n);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),r>0&&(null==e?this.metaManager.createRow(null,r):"auto"!==o&&this.metaManager.createRow(n,t)),this.hot.runHooks("afterCreateRow",g,r,o),{delta:r,startPhysicalIndex:n}}createCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{source:o,mode:i="start"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const s=this.dataSource,n=this.tableMeta.maxCols,r=this.hot.countSourceCols(),a=this.hot.countCols(),l=this.hot.countSourceRows(),h="number"==typeof e&&e<=r?e:a;if(!1===this.hot.runHooks("beforeCreateCol",h,t,o))return{delta:0};const c=h<a?this.hot.toPhysicalColumn(h):r,u="end"===i?Math.min(c+1,r):c;let d=0;for(let e=u;d<t&&a+d<n;e++){if("number"!=typeof h||h>=a+d)if(l>0)for(let e=0;e<l;e+=1)void 0===s[e]&&(s[e]=[]),s[e].push(null);else s.push([null]);else for(let t=0;t<l;t++)s[t].splice(e,0,null);d+=1}return d>0&&(null==e?this.metaManager.createColumn(null,d):"auto"!==o&&this.metaManager.createColumn(u,t)),this.hot.columnIndexMapper.insertIndexes(h,d,i),this.hot.runHooks("afterCreateCol",this.hot.toVisualColumn(u),d,o),this.refreshDuckSchema(),{delta:d,startPhysicalIndex:u}}removeRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0,i=Number.isInteger(e)?e:-t;const s=this.visualRowsToPhysical(i,t),n=this.hot.countSourceRows();i=(n+i)%n;if(!1===this.hot.runHooks("beforeRemoveRow",i,s.length,s,o))return!1;const r=s.length;if(this.filterData(i,r,s),i<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(s);const e=(0,c.isDefined)(this.tableMeta.columns)||(0,c.isDefined)(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;0!==this.hot.rowIndexMapper.getNotTrimmedIndexesLength()||e||this.hot.columnIndexMapper.setIndexesSequence([])}return s.slice(0).sort((e,t)=>t-e).forEach(e=>{this.metaManager.removeRow(e,1)}),this.hot.runHooks("afterRemoveRow",i,r,s,o),!0}removeCol(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,o=arguments.length>2?arguments[2]:void 0;if("object"===this.hot.dataType||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let i="number"!=typeof e?-t:e;i=(this.hot.countCols()+i)%this.hot.countCols();const s=this.visualColumnsToPhysical(i,t),n=s.slice(0).sort((e,t)=>t-e);if(!1===this.hot.runHooks("beforeRemoveCol",i,t,s,o))return!1;let r=!0;const a=n.length,l=this.dataSource;for(let e=0;e<a;e++)r&&s[0]!==s[e]-e&&(r=!1);if(r)for(let e=0,o=this.hot.countSourceRows();e<o;e++)l[e].splice(s[0],t),0===e&&this.metaManager.removeColumn(s[0],t);else for(let e=0,t=this.hot.countSourceRows();e<t;e++)for(let t=0;t<a;t++)l[e].splice(n[t],1),0===e&&this.metaManager.removeColumn(n[t],1);return i<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(s),this.tableMeta.rowHeaders||0!==this.hot.columnIndexMapper.getNotTrimmedIndexesLength()||this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",i,t,s,o),this.refreshDuckSchema(),!0}spliceCol(e,t,o){const i=this.hot.getDataAtCol(e),s=i.slice(t,t+o),n=i.slice(t+o);for(var r=arguments.length,a=new Array(r>3?r-3:0),h=3;h<r;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,n);let c=0;for(;c<o;)a.push(null),c+=1;return(0,l.to2dArray)(a),this.hot.populateFromArray(t,e,a,null,null,"spliceCol"),s}spliceRow(e,t,o){const i=this.hot.getSourceDataAtRow(e),s=i.slice(t,t+o),n=i.slice(t+o);for(var r=arguments.length,a=new Array(r>3?r-3:0),h=3;h<r;h++)a[h-3]=arguments[h];(0,l.extendArray)(a,n);let c=0;for(;c<o;)a.push(null),c+=1;return this.hot.populateFromArray(e,t,[a],null,null,"spliceRow"),s}spliceData(e,t,o){if(!1!==this.hot.runHooks("beforeDataSplice",e,t,o)){const t=[...this.dataSource.slice(0,e),...o,...this.dataSource.slice(e)];this.dataSource.length=0,t.forEach(e=>this.dataSource.push(e))}}filterData(e,t,o){let i=this.hot.runHooks("filterData",e,t,o);!1===Array.isArray(i)&&(i=this.dataSource.filter((e,t)=>-1===o.indexOf(t))),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,i)}get(e,t){const o=this.hot.toPhysicalRow(e);let i=this.dataSource[o];const s=this.hot.runHooks("modifyRowData",o);i=isNaN(s)?s:i;const{dataDotNotation:n}=this.hot.getSettings();let r=null;if(i&&i.hasOwnProperty&&(0,a.hasOwnProperty)(i,t))r=i[t];else if(n&&"string"==typeof t&&t.indexOf(".")>-1){let e=i;if(!e)return null;const o=t.split(".");for(let t=0,i=o.length;t<i;t++)if(e=e[o[t]],void 0===e)return null;r=e}else"function"==typeof t&&(r=t(this.dataSource.slice(o,o+1)[0]));const l=this.propToCol(t),c=this.hot.toPhysicalColumn(l);if((0,h.isUnsignedNumber)(o)&&(0,h.isUnsignedNumber)(c)&&(r=(0,u.getValueGetterValue)(r,this.metaManager.getCellMeta(o,c,{visualRow:e,visualColumn:l,skipMetaExtension:!0}))),this.hot.hasHook("modifyData")){const t=(0,a.createObjectPropListener)(r);this.hot.runHooks("modifyData",e,l,t,"get"),t.isTouched()&&(r=t.value)}return r}getCopyable(e,t){return this.hot.getCellMeta(e,this.propToCol(t)).copyable?this.get(e,t):""}set(e,t,o){const i=this.hot.toPhysicalRow(e);let s=o,n=this.dataSource[i];const r=this.hot.runHooks("modifyRowData",i);if(n=isNaN(r)?r:n,this.hot.hasHook("modifyData")){const o=(0,a.createObjectPropListener)(s);this.hot.runHooks("modifyData",e,this.propToCol(t),o,"set"),o.isTouched()&&(s=o.value)}const{dataDotNotation:l}=this.hot.getSettings();if(n&&n.hasOwnProperty&&(0,a.hasOwnProperty)(n,t))n[t]=s;else if(l&&"string"==typeof t&&t.indexOf(".")>-1){let e,o=n,i=0;const r=t.split(".");for(i=0,e=r.length-1;i<e;i++){if("__proto__"===r[i]||"constructor"===r[i]||"prototype"===r[i])return;void 0===o[r[i]]&&(o[r[i]]={}),o=o[r[i]]}o[r[i]]=s}else if("function"==typeof t)t(this.dataSource.slice(i,i+1)[0],s);else{if("__proto__"===t||"constructor"===t||"prototype"===t)return;n[t]=s}}visualRowsToPhysical(e,t){const o=this.hot.countSourceRows(),i=[];let s,n=(o+e)%o,r=t;for(;n<o&&r;)s=this.hot.toPhysicalRow(n),i.push(s),r-=1,n+=1;return i}visualColumnsToPhysical(e,t){const o=this.hot.countCols(),i=[];let s=(o+e)%o,n=t;for(;s<o&&n;){const e=this.hot.toPhysicalColumn(s);i.push(e),n-=1,s+=1}return i}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let t=0;t<this.hot.countCols();t++)this.set(e,this.colToProp(t),"")}getLength(){const e=this.tableMeta.maxRows;let t;t=e<0||0===e?0:e||1/0;const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(o,t)}getAll(){const e={row:0,col:0},t={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-t.row!==0||this.hot.countSourceRows()?this.getRange(e,t,d.DESTINATION_RENDERER):[]}countCachedColumns(){return this.colToPropCache.length}getRange(e,t,o){const i=[];let s,n,r;const a=this.tableMeta.maxRows,l=this.tableMeta.maxCols;if(0===a||0===l)return[];const h=o===d.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,c=Math.min(Math.max(a-1,0),Math.max(e.row,t.row)),u=Math.min(Math.max(l-1,0),Math.max(e.col,t.col));for(s=Math.min(e.row,t.row);s<=c;s++){r=[];const o=s>=0?this.hot.toPhysicalRow(s):s;for(n=Math.min(e.col,t.col);n<=u&&null!==o;n++)r.push(h.call(this,s,this.colToProp(n)));null!==o&&i.push(r)}return i}getText(e,t){return(0,n.stringify)(this.getRange(e,t,d.DESTINATION_RENDERER))}getCopyableText(e,t){return(0,n.stringify)(this.getRange(e,t,d.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}t.default=d},91509:(e,t,o)=>{"use strict";var i=o(90501),s=o(99793);e.exports=function(e,t,o,n){try{return n?t(i(o)[0],o[1]):t(o)}catch(t){s(e,"throw",t)}}},91952:(e,t,o)=>{"use strict";var i=o(22208);e.exports=function(e,t,o){for(var s=0,n=arguments.length>2?o:i(t),r=new e(n);n>s;)r[s]=t[s++];return r}},92083:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:o}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(o,i)=>{const s=t.getSettings(),n="function"==typeof s.tabMoves?s.tabMoves(o):s.tabMoves;i.includes("shift")?t.selection.transformStart(-n.row,-n.col):t.selection.transformStart(n.row,n.col),e.close(!0)}},{keys:[["Escape"]],callback:()=>e.close()},{keys:[["ArrowDown"]],callback:()=>e.getNavigator().toNextItem()},{keys:[["ArrowUp"]],callback:()=>e.getNavigator().toPreviousItem()},{keys:[[t.isRtl()?"ArrowLeft":"ArrowRight"]],callback:()=>{const t=o.getSelectedActive();if(t){const o=e.openSubMenu(t[0]);o&&o.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{o.getSelectedActive()&&e.isSubMenu()&&(e.close(),e.isSubMenu()&&e.parentMenu.hotMenu.listen())}},{keys:[["Control/Meta","ArrowUp"],["Home"]],callback:()=>e.getNavigator().toFirstItem()},{keys:[["Control/Meta","ArrowDown"],["End"]],callback:()=>e.getNavigator().toLastItem()},{keys:[["Enter"],["Space"]],callback:t=>{const i=o.getSelectedActive();i&&(o.getSourceDataAtRow(i[0]).submenu?e.openSubMenu(i[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{o.getSelectedActive()?o.selection.transformStart(-o.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{o.getSelectedActive()?o.selection.transformStart(o.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},92351:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},92434:(e,t,o)=>{"use strict";var i=o(15176),s=o(20637);e.exports=function(e,t){i(t)&&"cause"in t&&s(e,"cause",t.cause)}},92449:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(31143),o(33098);var s=i(o(24300)),n=o(26808),r=i(o(59363)),a=i(o(33268)),l=i(o(45972)),h=i(o(71898)),c=o(7120),u=o(9013),d=o(55656),g=o(13390),f=i(o(67288));function p(e,t,o){m(e,t),t.set(e,o)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(v(e,t))}function C(e,t,o){return e.set(v(e,t),o),o}function v(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedRows",S=t.PLUGIN_PRIORITY=300,E=y;var R=new WeakMap,b=new WeakMap,_=new WeakSet;class T extends n.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=_),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),p(this,R,!1),p(this,b,!1)}static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return S}isEnabled(){return!!this.hot.getSettings()[y]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new r.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new f.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,F).call(e,...o)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,B).call(e,...o)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,O).call(e,...o)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,A).call(e,...o)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,N).call(e,...o)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,I).call(e,...o)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,x).call(e,...o)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,H).call(e,...o)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,k).call(e,...o)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,D).call(e,...o)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,L).call(e,...o)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,V).call(e,...o)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,P).call(e,...o)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,W).call(e,...o)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return v(_,e,M).call(e,...o)}),this.addHook("beforeLoadData",e=>v(_,this,U).call(this,e)),this.addHook("beforeUpdateData",e=>v(_,this,U).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const o=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return o&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(o)&&-1===o.col&&o.row>=0},group:E,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(E)}disableCoreAPIModifiers(){C(b,this,!0)}enableCoreAPIModifiers(){C(b,this,!1)}onModifyRowData(e){if(!w(b,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(b,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,o){return!(!w(b,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,o),!1)}destroy(){super.destroy()}}function M(e,t,o,i){return this.rowMoveController.onBeforeRowMove(e,t,o,i)}function I(e,t,o){this.collapsingUI.toggleState(e,t,o)}function O(e,t,o){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(o[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(o[0],null,-1*t),this.dataManager.filterData(e,t,o),C(R,this,!0),this.dataManager.getData().slice()}function A(e){return this.contextMenuUI.appendOptions(e)}function N(e,t){this.headersUI.appendLevelIndicators(e,t)}function P(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function H(e,t,o,i){i!==this.pluginName&&this.hot._registerTimeout(()=>{C(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function x(e,t,o){const i=Array.from(o.reduce((e,t)=>{if(this.dataManager.isParent(t)){const o=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(o)&&o.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));o.length=0,o.push(...i)}function k(){this.collapsingUI.collapsedRowsStash.stash()}function D(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function L(){this.collapsingUI.collapsedRowsStash.stash()}function V(e,t,o){this.collapsingUI.collapsedRowsStash.shiftStash(o,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function W(){this.dataManager.rewriteCache()}function F(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function U(e){if(!(0,u.isArrayOfObjects)(e))return(0,c.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[y]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=T},92482:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(78966),r=o(367),a=o(29779),l=o(72609);class h extends a.BaseRenderer{constructor(){super("TD"),(0,s.default)(this,"orderViews",new WeakMap),(0,s.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new r.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:o,rowHeaders:i}=this.table;for(let a=0;a<e;a++){const e=this.table.renderedRowToSource(a),h=o.getRenderedNode(a);this.sourceRowIndex=e;const c=this.obtainOrderView(h),u=i.obtainOrderView(h);c.prependView(u).setSize(t).setOffset(0).start();for(let o=0;o<t;o++){c.render();const t=this.table.renderedColumnToSource(o),i=c.getCurrentNode();var s,r;if((0,n.hasClass)(i,"hide")||(i.className=""),i.removeAttribute("style"),i.removeAttribute("dir"),(0,n.removeAttribute)(i,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,i),this.table.isAriaEnabled())(0,n.setAttribute)(i,[...i.hasAttribute("role")?[]:[(0,l.A11Y_GRIDCELL)()],(0,l.A11Y_TABINDEX)(-1),(0,l.A11Y_COLINDEX)(t+(null!==(s=null===(r=this.table.rowUtils)||void 0===r||null===(r=r.dataAccessObject)||void 0===r?void 0:r.rowHeaders.length)&&void 0!==s?s:0)+1)])}c.end()}}}t.CellsRenderer=h},92503:(e,t,o)=>{"use strict";var i=o(2382),s=o(53001),n=o(47865);e.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},92515:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(26808),r=i(o(79728)),a=o(23228),l=o(7120);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const h=t.PLUGIN_KEY="persistentState",c=t.PLUGIN_PRIORITY=0,u=new WeakSet;class d extends n.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return c}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(u.has(this.hot)||(u.add(this.hot),(0,l.deprecatedWarn)("The PersistentState plugin is deprecated and will be removed in version 17.0. Please update your settings to ensure compatibility with future versions.")),this.storage||(this.storage=new r.default(this.hot.rootContainer.id||this.hot.rootElement.id,this.hot.rootWindow)),this.addHook("persistentStateSave",(e,t)=>this.saveValue(e,t)),this.addHook("persistentStateLoad",(e,t)=>this.loadValue(e,t)),this.addHook("persistentStateReset",()=>this.resetValue()),super.enablePlugin())}disablePlugin(){this.storage=void 0,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}loadValue(e,t){t.value=this.storage.loadValue(e)}saveValue(e,t){this.storage.saveValue(e,t)}resetValue(e){void 0===e?this.storage.resetAll():this.storage.reset(e)}destroy(){super.destroy()}}t.PersistentState=d},92582:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=o(78966),r=i(o(59468)),a=o(47802),l=i(o(13743)),h=o(55189),c=o(88422),u=o(25854),d=o(72609);function g(e,t,o){f(e,t),t.set(e,o)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t){return e.get(w(e,t))}function m(e,t,o){return e.set(w(e,t),o),o}function w(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var C=new WeakMap,v=new WeakMap,y=new WeakMap,S=new WeakMap,E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakSet;function M(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function I(e){const t=w(T,this,M).call(this)+e;(0,n.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function O(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,n.addClass)(e,"htHasScrollY"):(0,n.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,n.addClass)(e,"htVerticallyScrollableByWindow"):(0,n.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,n.addClass)(e,"htHasScrollX"):(0,n.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,n.addClass)(e,"htHorizontallyScrollableByWindow"):(0,n.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,o;f(t=this,o=T),o.add(t),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"eventManager",void 0),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"THEAD",void 0),(0,s.default)(this,"TBODY",void 0),(0,s.default)(this,"_wt",void 0),(0,s.default)(this,"activeWt",void 0),g(this,C,0),g(this,v,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,y,!1),g(this,S,void 0),g(this,E,void 0),g(this,R,0),g(this,b,0),g(this,_,null),this.hot=e,this.eventManager=new r.default(this.hot),this.settings=this.hot.getSettings(),this.createElements(),this.registerEvents(),this.initializeWalkontable()}render(){if(!this.hot.isRenderSuspended()){const e=this.hot.forceFullRender;this.hot.runHooks("beforeRender",e),this._wt.draw(!e),w(T,this,O).call(this),this.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize(!0)),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this._wt.wtOverlays.adjustElementsSize():this.postponedAdjustElementsSize=!0}getCellAtCoords(e,t){const o=this._wt.getCell(e,t);return o<0?null:o}scrollViewport(e,t,o){return this._wt.scrollViewport(e,t,o)}scrollViewportHorizontally(e,t){return this._wt.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wt.scrollViewportVertically(e,t)}createElements(){const{rootElement:e,rootDocument:t}=this.hot,o=e.getAttribute("style");o&&e.setAttribute("data-originalstyle",o),(0,n.addClass)(e,"handsontable"),m(E,this,t.createElement("TABLE")),(0,n.addClass)(p(E,this),"htCore"),this.hot.getSettings().tableClassName&&(0,n.addClass)(p(E,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,n.setAttribute)(p(E,this),[(0,d.A11Y_PRESENTATION)()]),(0,n.setAttribute)(e,[(0,d.A11Y_TREEGRID)(),(0,d.A11Y_ROWCOUNT)(-1),(0,d.A11Y_COLCOUNT)(this.hot.countCols()),(0,d.A11Y_MULTISELECTABLE)()])),this.THEAD=t.createElement("THEAD"),p(E,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),p(E,this).appendChild(this.TBODY),this.hot.table=p(E,this),this.hot.container.insertBefore(p(E,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:o,selection:i,rootWindow:s}=this.hot,r=o.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(y,this,!0),this.isTextSelectionAllowed(e.target)||((0,n.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(y,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{p(y,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,n.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(r,"keyup",e=>{i.isInProgress()&&!e.shiftKey&&i.finish()}),this.eventManager.addEventListener(r,"mouseup",s=>{var r;i.isInProgress()&&(0,a.isLeftClick)(s)&&i.finish(),m(S,this,!1);const l=(0,n.isOutsideInput)(o.activeElement),h=null===(r=o.querySelector(".ht-dialog"))||void 0===r?void 0:r.contains(o.activeElement);(0,n.isInput)(o.activeElement)&&!l||h||!l&&(i.isSelected()||i.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(r,"contextmenu",e=>{i.isInProgress()&&(0,a.isRightClick)(e)&&(i.finish(),m(S,this,!1))}),this.eventManager.addEventListener(r,"touchend",()=>{i.isInProgress()&&i.finish(),m(S,this,!1)}),this.eventManager.addEventListener(r,"mousedown",e=>{const i=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(p(S,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,n.getScrollbarWidth)(o);if(o.elementFromPoint(s+e,a)!==h||o.elementFromPoint(s,a+e)!==h)return}else for(;l!==r;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(i):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,n.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,n.getParentWindow)(l);this.eventManager.addEventListener(p(E,this),"selectstart",e=>{this.settings.fragmentSelection||(0,n.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:o}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,o))}translateFromRenderableToVisualIndex(e,t){let o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,i=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===o&&(o=e),null===i&&(i=t),[o,i]}countRenderableIndexes(e,t){const o=Math.min(e.getNotTrimmedIndexesLength(),t),i=e.getNearestNotHiddenIndex(o-1,-1);return null===i?0:e.getRenderableFromVisualIndex(i)+1}countRenderableColumns(){return this.countRenderableIndexes(this.hot.columnIndexMapper,this.settings.maxCols)}countRenderableRows(){return this.countRenderableIndexes(this.hot.rowIndexMapper,this.settings.maxRows)}countNotHiddenRowIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.rowIndexMapper,this.countRenderableRows())}countNotHiddenColumnIndexes(e,t){return this.countNotHiddenIndexes(e,t,this.hot.columnIndexMapper,this.countRenderableColumns())}countNotHiddenIndexes(e,t,o,i){if(isNaN(e)||e<0)return 0;const s=o.getNearestNotHiddenIndex(e,t),n=o.getRenderableFromVisualIndex(s);if(!Number.isInteger(n))return 0;let r=0;return t<0?r=n+1:t>0&&(r=i-n),r}countNotHiddenFixedColumnsStart(){const e=this.hot.countCols(),t=Math.min(parseInt(this.settings.fixedColumnsStart,10),e)-1;return this.countNotHiddenColumnIndexes(t,-1)}countNotHiddenFixedRowsTop(){const e=this.hot.countRows(),t=Math.min(parseInt(this.settings.fixedRowsTop,10),e)-1;return this.countNotHiddenRowIndexes(t,-1)}countNotHiddenFixedRowsBottom(){const e=this.hot.countRows(),t=Math.max(e-parseInt(this.settings.fixedRowsBottom,10),0);return this.countNotHiddenRowIndexes(t,1)}countRenderableColumnsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}countRenderableRowsInRange(e,t){let o=0;for(let i=e;i<=t;i++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(i)&&(o+=1);return o}addClassNameToLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.addClass)(o,e)}removeClassNameFromLicenseElement(e){var t;const o=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");o&&(0,n.removeClass)(o,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:p(E,this),isDataViewInstance:()=>(0,c.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(o,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(v,this,e.length),this.hot.getSettings().ariaTags&&w(T,this,M).call(this)===this.hot.countCols()&&w(T,this,I).call(this,p(v,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const o=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(o,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(C,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const o=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),i=null===o?e:o;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(i),i,t)},cellRenderer:(e,t,o)=>{const[i,s]=this.translateFromRenderableToVisualIndex(e,t),n=this.hot.runHooks("modifyGetCellCoords",i,s,!1,"meta");let r=i,a=s;Array.isArray(n)&&([r,a]=n);const l=this.hot.getCellMeta(r,a),h=this.hot.colToProp(a);let c=this.hot.getDataAtRowProp(r,h);this.hot.hasHook("beforeValueRender")&&(c=this.hot.runHooks("beforeValueRender",c,l)),this.hot.runHooks("beforeRenderer",o,i,s,h,c,l),this.hot.getCellRenderer(l)(this.hot,o,i,s,h,c,l),this.hot.runHooks("afterRenderer",o,i,s,h,c,l)},selections:this.hot.selection.highlight,hideBorderOnMouseDownOver:()=>this.settings.fragmentSelection,onWindowResize:()=>{this.hot&&!this.hot.isDestroyed&&this.hot.refreshDimensions()},onContainerElementResize:()=>{this.hot&&!this.hot.isDestroyed&&(0,n.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=i,m(S,this,!0),m(_,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,o),this.activeWt=this._wt)},onCellContextMenu:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,m(S,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,o),this.activeWt=this._wt)},onCellMouseOut:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOut",e,s,o),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,o),this.activeWt=this._wt)},onCellMouseOver:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t),n={row:!1,column:!1,cell:!1};this.activeWt=i,this.hot.runHooks("beforeOnCellMouseOver",e,s,o,n),(0,a.isImmediatePropagationStopped)(e)||(!p(S,this)||p(_,this)&&p(_,this).x===e.clientX&&p(_,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:n,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,o),this.activeWt=this._wt,m(_,this,null))},onCellMouseUp:(e,t,o,i)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=i,this.hot.runHooks("beforeOnCellMouseUp",e,s,o),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,u.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,o),this.activeWt=this._wt)},onCellCornerMouseDown:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerMouseDown",e)},onCellCornerDblClick:e=>{e.preventDefault(),this.hot.runHooks("afterOnCellCornerDblClick",e)},beforeDraw:(e,t)=>this.beforeRender(e,t),onDraw:e=>this.afterRender(e),onBeforeViewportScrollVertically:(e,t)=>{const o=this.hot.rowIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const o=this.hot.columnIndexMapper,i=e<0;let s=e;return i||(s=o.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),i?s:o.getRenderableFromVisualIndex(s)):e},onScrollVertically:()=>{this.hot.runHooks("afterScrollVertically"),this.hot.runHooks("afterScroll")},onScrollHorizontally:()=>{this.hot.runHooks("afterScrollHorizontally"),this.hot.runHooks("afterScroll")},onBeforeRemoveCellClassNames:()=>this.hot.runHooks("beforeRemoveCellClassNames"),onBeforeHighlightingRowHeader:(e,t,o)=>{const i=this.hot.rowIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingRowHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onBeforeHighlightingColumnHeader:(e,t,o)=>{const i=this.hot.columnIndexMapper,s=e<0;let n=e;s||(n=i.getVisualFromRenderableIndex(e));const r=this.hot.runHooks("beforeHighlightingColumnHeader",n,t,o);return s?r:i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(r,1))},onAfterDrawSelection:(e,t,o)=>{let i;const[s,n]=this.translateFromRenderableToVisualIndex(e,t),r=this.hot.selection.getSelectedRange();if(r.size()>0){const e=r.peekByIndex(null!=o?o:0);i=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,n,i,o)},onBeforeDrawBorders:(e,t)=>{const[o,i,s,n]=e,r=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(o),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)];return this.hot.runHooks("beforeDrawBorders",r,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,o,i)=>{const s=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,r=t>=0?n.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,r,o,i);if(Array.isArray(l)){const[e,t,o,i]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t,o>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(o,-1)):o,i>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i,-1)):i]}},onModifyGetCoordsElement:(e,t)=>{const o=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,s=t>=0?i.getVisualFromRenderableIndex(t):t,n=e>=0?o.getVisualFromRenderableIndex(e):e,r=this.hot.runHooks("modifyGetCoordsElement",n,s);if(Array.isArray(r)){const[e,t]=r;return[e>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const o=this.countRenderableRows(),i=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/o*12));e.startRow=Math.max(i-t,0),e.endRow=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportRowCalculatorOverride",e)},viewportColumnCalculatorOverride:e=>{let t=this.settings.viewportColumnRenderingOffset;if("auto"===t&&this.settings.fixedColumnsStart&&(t=10),t>0||"auto"===t){const o=this.countRenderableColumns(),i=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/o*6));e.startColumn=Math.max(i-t,0),e.endColumn=Math.min(s+t,o-1)}}this.hot.runHooks("afterViewportColumnCalculatorOverride",e)},rowHeaderWidth:()=>this.settings.rowHeaderWidth,columnHeaderHeight:()=>{const e=this.hot.runHooks("modifyColumnHeaderHeight");return this.settings.columnHeaderHeight||e},stylesHandler:()=>this.hot.stylesHandler};this.hot.runHooks("beforeInitWalkontable",e),this._wt=new l.default(e),this.activeWt=this._wt;const t=this._wt.wtTable.spreader,{width:o,height:i}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(o,i),this.eventManager.addEventListener(t,"mousedown",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(t,"contextmenu",e=>{e.target===t&&3===e.which&&e.stopPropagation()}),this.eventManager.addEventListener(this.hot.rootDocument.documentElement,"click",()=>{this.settings.observeDOMVisibility&&this._wt.drawInterrupted&&this.hot.render()})}isTextSelectionAllowed(e){var t,o;if((0,n.isInput)(e))return!0;const i=(0,n.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&i)return!0;const s=null!==(t=null===(o=this.hot.getSelectedRangeActive())||void 0===o?void 0:o.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!i)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return p(S,this)}isCellEdited(){const e=this.hot.getActiveEditor();return e&&e.isOpened()}beforeRender(e,t){e&&this.hot.runHooks("beforeViewRender",this.hot.forceFullRender,t)}afterRender(e){e&&this.hot.runHooks("afterViewRender",this.hot.forceFullRender)}appendRowHeader(e,t){if(t.firstChild){const o=t.firstChild;if(!(0,n.hasClass)(o,"relative"))return(0,n.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:o,getRowHeader:i}=this.hot,s=o.createElement("div"),n=o.createElement("span");s.className="relative",n.className="rowHeader",this.updateCellHeader(n,e,i),s.appendChild(n),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const s=()=>{const t=e>=0?this.hot.getColumnMeta(e).headerClassName:null;return t?t.split(" "):[]};if(t.firstChild){const r=t.firstChild;(0,n.hasClass)(r,"relative")?(this.updateCellHeader(r.querySelector(".colHeader"),e,o,i),r.className="",(0,n.addClass)(r,["relative",...s()])):((0,n.empty)(t),this.appendColHeader(e,t,o,i))}else{const{rootDocument:r}=this.hot,a=r.createElement("div"),l=r.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,n.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,n.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,o,i),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,i)}updateCellHeader(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const r=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,n.hasClass)(e,"colHeader")?s=r.wtTable.columnFilter.sourceToRendered(t):(0,n.hasClass)(e,"rowHeader")&&(s=r.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,n.fastInnerHTML)(e,o(t,i)):((0,n.fastInnerText)(e,String.fromCharCode(160)),(0,n.addClass)(e,"cornerHeader"))}maximumVisibleElementWidth(e){const t=this._wt.wtViewport.getWorkspaceWidth()-e;return t>0?t:0}maximumVisibleElementHeight(e){const t=this._wt.wtViewport.getWorkspaceHeight()-e;return t>0?t:0}setLastSize(e,t){m(R,this,e),m(b,this,t)}getLastSize(){return{width:p(R,this),height:p(b,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return p(C,this)}getRowHeadersCount(){return p(v,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}getTotalTableWidth(){return this._wt.wtTable.getTotalWidth()}getTotalTableHeight(){return this._wt.wtTable.getTotalHeight()}getTableOffset(){return this._wt.wtViewport.getWorkspaceOffset()}getRowHeaderWidth(){return this._wt.wtViewport.getRowHeaderWidth()}getColumnHeaderHeight(){return this._wt.wtViewport.getColumnHeaderHeight()}isVerticallyScrollableByWindow(){return this._wt.wtViewport.isVerticallyScrollableByWindow()}isHorizontallyScrollableByWindow(){return this._wt.wtViewport.isHorizontallyScrollableByWindow()}destroy(){this._wt.destroy(),this.eventManager.destroy()}}},92641:(e,t,o)=>{"use strict";t.__esModule=!0,t.getPlugin=u,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!u(e)},t.registerPlugin=function(e,t,o){[e,t,o]=function(e,t,o){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,o=t.PLUGIN_PRIORITY);return[e,t,o]}(e,t,o),void 0===u(e)&&function(e,t,o){const s=(0,i.toUpperCaseFirst)(e);if(c.hasItem(s))throw new Error(a(s));void 0===o?h.addItem(s):l.addItem(o,s);c.addItem(s,t)}(e,t,o)},o(52490);var i=o(2744),s=o(34738),n=o(79675),r=o(36117);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,r.createUniqueSet)({errorItemExists:a}),c=(0,n.createUniqueMap)({errorIdExists:a});function u(e){const t=(0,i.toUpperCaseFirst)(e);return c.getItem(t)}},92853:(e,t,o)=>{"use strict";var i=o(94266).navigator,s=i&&i.userAgent;e.exports=s?String(s):""},93112:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(81056);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:o}=e,i=e.getSettings(),s=e.getSelectedRange(),n=e.getSelectedRangeActive(),r="function"==typeof i.tabMoves?i.tabMoves(t):i.tabMoves;o.markSource("keyboard"),(s.some(e=>o.isMultiple(e))||s.length>1)&&!n.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?o.transformFocus(r.row,r.col):o.transformStart(r.row,r.col),o.markEndSource()}}},93868:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...o}=e;return new n.default({className:t,...o,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=o(13743),n=i(o(6711))},94178:(e,t,o)=>{"use strict";var i=o(71362),s=o(77439),n=o(90501),r=o(30617),a=o(32403),l=o(22208),h=o(14815),c=o(94839),u=o(71449),d=o(99793),g=TypeError,f=function(e,t){this.stopped=e,this.result=t},p=f.prototype;e.exports=function(e,t,o){var m,w,C,v,y,S,E,R=o&&o.that,b=!(!o||!o.AS_ENTRIES),_=!(!o||!o.IS_RECORD),T=!(!o||!o.IS_ITERATOR),M=!(!o||!o.INTERRUPTED),I=i(t,R),O=function(e){return m&&d(m,"normal"),new f(!0,e)},A=function(e){return b?(n(e),M?I(e[0],e[1],O):I(e[0],e[1])):M?I(e,O):I(e)};if(_)m=e.iterator;else if(T)m=e;else{if(!(w=u(e)))throw new g(r(e)+" is not iterable");if(a(w)){for(C=0,v=l(e);v>C;C++)if((y=A(e[C]))&&h(p,y))return y;return new f(!1)}m=c(e,w)}for(S=_?e.next:m.next;!(E=s(S,m)).done;){try{y=A(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof y&&y&&h(p,y))return y}return new f(!1)}},94266:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},94312:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(o,i){const n=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(i,t,n)}}};var i=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481)),s=o(3720)},94576:(e,t,o)=>{"use strict";function i(e,t,o,i){let s=-1,n=e,r=o;Array.isArray(e)||(n=Array.from(e));const a=n.length;for(i&&a&&(s+=1,r=n[s]),s+=1;s<a;)r=t(r,n[s],s,n),s+=1;return r}function s(e,t){let o=0,i=e;Array.isArray(e)||(i=Array.from(e));const s=i.length;for(;o<s&&!1!==t(i[o],o,i);)o+=1;return e}function n(e){return i(e,(e,t)=>e+t,0)}t.__esModule=!0,t.arrayAvg=function(e){if(!e.length)return 0;return n(e)/e.length},t.arrayEach=s,t.arrayFilter=function(e,t){let o=0,i=e;Array.isArray(e)||(i=Array.from(e));const s=i.length,n=[];let r=-1;for(;o<s;){const e=i[o];t(e,o,i)&&(r+=1,n[r]=e),o+=1}return n},t.arrayFlatten=function e(t){return i(t,(t,o)=>t.concat(Array.isArray(o)?e(o):o),[])},t.arrayMap=function(e,t){let o=0,i=e;Array.isArray(e)||(i=Array.from(e));const s=i.length,n=[];let r=-1;for(;o<s;){const e=i[o];r+=1,n[r]=t(e,o,i),o+=1}return n},t.arrayMax=function(e){return i(e,(e,t)=>e>t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayMin=function(e){return i(e,(e,t)=>e<t?e:t,Array.isArray(e)?e[0]:void 0)},t.arrayReduce=i,t.arraySum=n,t.arrayUnique=function(e){const t=[];return s(e,e=>{-1===t.indexOf(e)&&t.push(e)}),t},t.extendArray=function(e,t){const o=t.length;let i=0;for(;i<o;)e.push(t[i]),i+=1},t.getDifferenceOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[i,...n]=[...t];let r=i;return s(n,e=>{r=r.filter(t=>!e.includes(t))}),r},t.getIntersectionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[i,...n]=[...t];let r=i;return s(n,e=>{r=r.filter(t=>e.includes(t))}),r},t.getUnionOfArrays=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const[i,...n]=[...t],r=new Set(i);return s(n,e=>{s(e,e=>{r.has(e)||r.add(e)})}),Array.from(r)},t.pivot=function(e){const t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;const o=e.length,i=e[0].length;for(let s=0;s<o;s++)for(let o=0;o<i;o++)t[o]||(t[o]=[]),t[o][s]=e[s][o];return t},t.stringToArray=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.split(t)},t.to2dArray=function(e){const t=e.length;let o=0;for(;o<t;)e[o]=[e[o]],o+=1},o(99356),o(89624),o(14950),o(98831),o(67046),o(38221),o(56050),o(65724),o(34478),o(29810)},94811:(e,t,o)=>{"use strict";var i=o(70792),s=o(90501),n=o(77439),r=o(30717),a=o(21177),l="Invalid size",h=RangeError,c=TypeError,u=Math.max,d=function(e,t){this.set=e,this.size=u(t,0),this.has=i(e.has),this.keys=i(e.keys)};d.prototype={getIterator:function(){return a(s(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},e.exports=function(e){s(e);var t=+e.size;if(t!=t)throw new c(l);var o=r(t);if(o<0)throw new h(l);return new d(e,o)}},94839:(e,t,o)=>{"use strict";var i=o(77439),s=o(70792),n=o(90501),r=o(30617),a=o(71449),l=TypeError;e.exports=function(e,t){var o=arguments.length<2?a(e):t;if(s(o))return n(i(o,e));throw new l(r(e)+" is not iterable")}},95115:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o){const n=this.getSourceDataAtCell(this.toPhysicalRow(t),this.toPhysicalColumn(o)),r=e=>(0,i.isObject)(e)&&(0,s.isDefined)(e.key)&&(0,s.isDefined)(e.value);if(r(n))return r(e)?e:{key:e,value:e};return e};var i=o(4138),s=o(7886)},95287:(e,t,o)=>{"use strict";t.__esModule=!0,o(99356);var i=o(9093),s=o(94576);class n extends i.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,o)=>(t&&e.push(o),e),[])}}t.TrimmingMap=n},95367:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356),o(34478),o(90643),o(31143),o(33098);var s=i(o(24300)),n=o(631),r=o(4138);class a extends n.BaseAction{constructor(e){let{changes:t,selected:o,countCols:i,countRows:n}=e;super("change"),(0,s.default)(this,"changes",void 0),(0,s.default)(this,"selected",void 0),(0,s.default)(this,"countCols",void 0),(0,s.default)(this,"countRows",void 0),this.changes=t,this.selected=o,this.countCols=i,this.countRows=n}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(o,i){const s=o&&o.length;if(!s)return;if(!o.find(e=>{const[,,t,o]=e;return t!==o}))return;t.done(()=>{const t=o.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const i=s>1?this.getSelected():[[t[0][0],t[0][1]]];return new a({changes:t,selected:i,countCols:e.countCols(),countRows:e.countRows()})},i)})}undo(e,t){const o=(0,r.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(3,1);e.addHookOnce("afterChange",()=>{const o=e.countRows()-this.countRows;o>0&&e.alter("remove_row",null,o,"UndoRedo.undo");const i=e.countCols()-this.countCols;i>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,i,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(o,null,null,"UndoRedo.undo")}redo(e,t){const o=(0,r.deepClone)(this.changes);for(let e=0,t=o.length;e<t;e++)o[e].splice(2,1);e.addHookOnce("afterChange",()=>{e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(o,null,null,"UndoRedo.redo")}}t.DataChangeAction=a},96092:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(59215);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.MultipleSelectionHandles=i.MultipleSelectionHandles},96127:(e,t,o)=>{"use strict";var i,s,n,r,a=o(94266),l=o(69019),h=o(71362),c=o(44827),u=o(19451),d=o(53001),g=o(53931),f=o(56274),p=o(47865),m=o(77618),w=o(25250),C=o(64919),v=a.setImmediate,y=a.clearImmediate,S=a.process,E=a.Dispatch,R=a.Function,b=a.MessageChannel,_=a.String,T=0,M={},I="onreadystatechange";d(function(){i=a.location});var O=function(e){if(u(M,e)){var t=M[e];delete M[e],t()}},A=function(e){return function(){O(e)}},N=function(e){O(e.data)},P=function(e){a.postMessage(_(e),i.protocol+"//"+i.host)};v&&y||(v=function(e){m(arguments.length,1);var t=c(e)?e:R(e),o=f(arguments,1);return M[++T]=function(){l(t,void 0,o)},s(T),T},y=function(e){delete M[e]},C?s=function(e){S.nextTick(A(e))}:E&&E.now?s=function(e){E.now(A(e))}:b&&!w?(r=(n=new b).port2,n.port1.onmessage=N,s=h(r.postMessage,r)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!d(P)?(s=P,a.addEventListener("message",N,!1)):s=I in p("script")?function(e){g.appendChild(p("script"))[I]=function(){g.removeChild(this),O(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:v,clear:y}},96188:(e,t)=>{"use strict";t.__esModule=!0;t.getCornerStyle=e=>{const t=e.wtSettings.getSetting("stylesHandler");if(t.isClassicTheme())return Object.freeze({width:6,height:6,borderWidth:1,borderStyle:"solid",borderColor:"#FFF"});const o=t.getCSSVariableValue("cell-autofill-size"),i=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:o,height:o,borderWidth:i,borderStyle:"solid",borderColor:s})}},96219:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(91031);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.CopyPaste=i.CopyPaste},96253:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356);var s=i(o(24300)),n=i(o(90116));function r(e,t,o){(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,o)}function a(e,t){return e.get(l(e,t))}function l(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}var h=new WeakMap;class c{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var n,a,c;(0,s.default)(this,"highlight",null),(0,s.default)(this,"from",null),(0,s.default)(this,"to",null),r(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=o.clone(),a=this,c=i,(n=h).set(l(n,a),c)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:o}=e,i=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner();return i.row<=t&&s.row>=t&&i.col<=o&&s.col>=o}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>o.row||e.col>o.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(o.row,e.row),Math.max(o.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const o=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner(),s=this.getDirection(),n=e.getOuterTopStartCorner(),r=e.getOuterBottomEndCorner(),a=Math.min(o.row,n.row),l=Math.min(o.col,n.col),h=Math.max(i.row,r.row),c=Math.max(i.col,r.col),u=this._createCellCoords(a,l),d=this._createCellCoords(h,c);return this.from=u,this.to=d,this.setDirection(s),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return a(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return a(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return a(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return a(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return a(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return a(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return a(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return a(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof n.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),o=Math.max(this.from.row,this.to.row),i=Math.min(this.from.col,this.to.col),s=Math.max(this.from.col,this.to.col),n=Math.min(e.from.row,e.to.row),r=Math.max(e.from.row,e.to.row),l=Math.min(e.from.col,e.to.col),c=Math.max(e.from.col,e.to.col),u=[];return t===n&&u.push("top"),s===c&&u.push(a(h,this)?"left":"right"),o===r&&u.push("bottom"),i===l&&u.push(a(h,this)?"right":"left"),u}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let i=e.row;i<=t.row;i++)for(let s=e.col;s<=t.col;s++)this.from.row===i&&this.from.col===s||this.to.row===i&&this.to.col===s||o.push(this._createCellCoords(i,s));return o}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),o=[];for(let i=e.row;i<=t.row;i++)for(let s=e.col;s<=t.col;s++)e.row===i&&e.col===s?o.push(e):t.row===i&&t.col===s?o.push(t):o.push(this._createCellCoords(i,s));return o}forAll(e){const t=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();for(let i=t.row;i<=o.row;i++)for(let s=t.col;s<=o.col;s++){if(!1===e(i,s))return}}clone(){return new c(this.highlight,this.from,this.to,a(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new n.default(e,t,a(h,this))}}t.default=c},96338:(e,t,o)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,o,s){return i.valueSetter.call(this,e,t,o,s)};var i=o(20737)},96792:(e,t,o)=>{"use strict";var i=o(31520),s=o(26023),n=i.Set,r=i.add;e.exports=function(e){var t=new n;return s(e,function(e){r(t,e)}),t}},96858:(e,t,o)=>{"use strict";var i,s=o(90501),n=o(44423),r=o(40981),a=o(48099),l=o(53931),h=o(47865),c=o(57041),u="prototype",d="script",g=c("IE_PROTO"),f=function(){},p=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},w=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,o;w="undefined"!=typeof document?document.domain&&i?m(i):(t=h("iframe"),o="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(o),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):m(i);for(var s=r.length;s--;)delete w[u][r[s]];return w()};a[g]=!0,e.exports=Object.create||function(e,t){var o;return null!==e?(f[u]=s(e),o=new f,f[u]=null,o[g]=e):o=w(),void 0===t?o:n.f(o,t)}},96935:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490),o(99356),o(34478),o(81056);var s=o(26808),n=o(23228),r=o(94576),a=o(78966),l=o(58604),h=i(o(81002)),c=i(o(65161));function u(e,t,o){d(e,t),t.set(e,o)}function d(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t,o){return e.set(p(e,t),o),o}function f(e,t){return e.get(p(e,t))}function p(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}n.Hooks.getSingleton().register("beforeRowMove"),n.Hooks.getSingleton().register("afterRowMove");const m=t.PLUGIN_KEY="manualRowMove",w=t.PLUGIN_PRIORITY=140,C="ht__manualRowMove",v="show-ui",y="on-moving--rows",S="after-selection--rows";var E=new WeakMap,R=new WeakMap,b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends s.BasePlugin{constructor(){var e,t;super(...arguments),d(e=this,t=I),t.add(e),u(this,E,new h.default(this.hot)),u(this,R,new c.default(this.hot)),u(this,b,[]),u(this,_,void 0),u(this,T,{}),u(this,M,void 0)}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[m]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,A).call(e,...o)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,P).call(e,...o)}),this.addHook("afterScrollHorizontally",()=>p(I,this,x).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return p(I,e,k).call(e,...o)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,C),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,C),this.unregisterEvents(),f(E,this).destroy(),f(R,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const o=f(M,this),i=this.isMovePossible(e,t),s=this.hot.runHooks("beforeRowMove",e,t,o,i);if(g(M,this,void 0),!1===s)return;i&&this.hot.rowIndexMapper.moveIndexes(e,t);const n=i&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,o,i,n),n}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const o=this.countFinalIndex(e,t);return g(M,this,t),this.moveRows(e,o)}isMovePossible(e,t){const o=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),i=e.length+t>o,s=t<0,n=e.some(e=>e<0),r=e.some(e=>e>=o);return!(i||s||n||r)}isRowOrderChanged(e,t){return e.some((e,o)=>e-o!==t)}countFinalIndex(e,t){const o=(0,r.arrayReduce)(e,(e,o)=>(o<t&&(e+=1),e),0);return t-o}getRowsHeight(e,t){const o=this.hot.rowIndexMapper;let i=0;for(let s=e;s<=t;s++){const e=o.getRenderableFromVisualIndex(s);null!==e&&(i+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.stylesHandler.getDefaultRowHeight())}return i}moveBySettingsOrLoad(){const e=this.hot.getSettings()[m];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeActive(),t=[];if(!e)return t;const{from:o,to:i}=e,s=Math.min(o.row,i.row),n=Math.max(o.row,i.row);return(0,l.rangeEach)(s,n,e=>{t.push(e)}),t}refreshPositions(){const e=f(T,this).coords,t=this.hot.getFirstFullyVisibleRow(),o=this.hot.getLastFullyVisibleRow(),i=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&o<i&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(o+1,1),void 0,!0);const s=this.hot.view._wt.wtTable,n=f(T,this).TD,r=this.hot.rootElement,l=(0,a.offset)(r),h=(0,a.getTrimmingContainer)(r),c=s.holder.scrollTop,u=this.hot.rootWindow!==h?h.scrollTop:0,d=l.top-u,g=f(T,this).eventPageY-d+c,p=s.hider.offsetHeight,m=s.TBODY.offsetTop,w=f(E,this).getOffset().top,C=f(E,this).getSize().height,v=n.offsetHeight/2,y=n.offsetHeight;let S=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const b=g>=S+v;this.isFixedRowTop(e.row)&&(S+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?f(T,this).row=t>0?t-1:t:b?(f(T,this).row=e.row+1,S+=0===e.row?y-1:y):f(T,this).row=e.row;let _=g,M=S;g+C+w>=p?_=p-C-w:g+w<m&&(_=m+Math.abs(w)),S>=p-1&&(M=p-1),f(E,this).setPosition(_),f(R,this).setPosition(M)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>p(I,this,N).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>p(I,this,H).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){f(E,this).build(),f(R,this).build()}destroy(){f(E,this).destroy(),f(R,this).destroy(),super.destroy()}}function A(e,t,o,i){const{wtTable:s,wtViewport:n}=this.hot.view._wt,r=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeActive();if(!l||!r||f(_,this)||0!==e.button)return g(_,this,!1),f(b,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[y,v]);const h=f(R,this).isBuilt()&&!f(R,this).isAppended(),c=f(E,this).isBuilt()&&!f(E,this).isAppended();h&&c&&(f(R,this).appendTo(s.hider),f(E,this).appendTo(s.hider));const{from:u,to:d}=l,p=Math.min(u.row,d.row),m=Math.max(u.row,d.row);if(t.col<0&&t.row>=p&&t.row<=m){i.row=!0,g(_,this,!0),f(T,this).eventPageY=e.pageY,f(T,this).coords=t,f(T,this).TD=o,g(b,this,this.prepareRowsToMoving());const r=s.holder.scrollLeft+n.getRowHeaderWidth(),l=this.getRowsHeight(p,t.row-1)+(e.clientY-o.getBoundingClientRect().top);f(E,this).setPosition(null,r),f(E,this).setSize(s.hider.offsetWidth-r,this.getRowsHeight(p,m)),f(E,this).setOffset(-l,null),(0,a.addClass)(this.hot.rootElement,y),this.refreshPositions()}else(0,a.removeClass)(this.hot.rootElement,S),g(_,this,!1),f(b,this).length=0}function N(e){f(_,this)&&(f(T,this).eventPageY=e.pageY,this.refreshPositions())}function P(e,t,o,i){this.hot.getSelectedRangeActive()&&f(_,this)&&(f(b,this).indexOf(t.row)>-1?(0,a.removeClass)(this.hot.rootElement,v):(0,a.addClass)(this.hot.rootElement,v),i.row=!0,i.column=!0,i.cell=!0,f(T,this).coords=t,f(T,this).TD=o)}function H(){const e=f(T,this).row,t=f(b,this).length;if(g(_,this,!1),(0,a.removeClass)(this.hot.rootElement,[y,v,S]),this.hot.selection.isSelectedByRowHeader()&&(0,a.addClass)(this.hot.rootElement,S),t<1||void 0===e)return;const o=f(b,this)[0],i=this.hot.toPhysicalRow(o),s=this.dragRows(f(b,this),e);if(f(b,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualRow(i),o=e+t-1;this.hot.selectRows(e,o)}}function x(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;f(E,this).setPosition(null,t),f(E,this).setSize(e.hider.offsetWidth-t)}function k(){this.moveBySettingsOrLoad()}t.ManualRowMove=O},97043:(e,t,o)=>{"use strict";t.__esModule=!0,o(34478),o(29810);var i=o(81518);const s=t.EDITOR_TYPE="dropdown";class n extends i.AutocompleteEditor{static get EDITOR_TYPE(){return s}prepare(e,t,o,i,s,n){n.filter=!1,n.strict=!0,super.prepare(e,t,o,i,s,n)}}t.DropdownEditor=n},97095:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(26533);t.RowHeadersRenderer=i.RowHeadersRenderer;var s=o(47763);t.ColumnHeadersRenderer=s.ColumnHeadersRenderer;var n=o(52978);t.ColGroupRenderer=n.ColGroupRenderer;var r=o(26154);t.RowsRenderer=r.RowsRenderer;var a=o(92482);t.CellsRenderer=a.CellsRenderer;var l=o(47343);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:o,TBODY:h,rowUtils:c,columnUtils:u,cellRenderer:d,stylesHandler:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.renderer=new l.TableRenderer(e,{cellRenderer:d,stylesHandler:g}),this.renderer.setRenderers({rowHeaders:new i.RowHeadersRenderer,columnHeaders:new s.ColumnHeadersRenderer(t),colGroup:new n.ColGroupRenderer(o),rows:new r.RowsRenderer(h),cells:new a.CellsRenderer}),this.renderer.setAxisUtils(c,u)}setActiveOverlayName(e){return this.renderer.setActiveOverlayName(e),this}setFilters(e,t){return this.renderer.setFilters(e,t),this}setViewportSize(e,t){return this.renderer.setViewportSize(e,t),this}setHeaderContentRenderers(e,t){return this.renderer.setHeaderContentRenderers(e,t),this}adjust(){this.renderer.adjust()}render(){this.renderer.render()}}},97259:(e,t,o)=>{"use strict";var i,s,n,r=o(53001),a=o(44827),l=o(15176),h=o(96858),c=o(81037),u=o(61546),d=o(12033),g=o(33973),f=d("iterator"),p=!1;[].keys&&("next"in(n=[].keys())?(s=c(c(n)))!==Object.prototype&&(i=s):p=!0),!l(i)||r(function(){var e={};return i[f].call(e)!==e})?i={}:g&&(i=h(i)),a(i[f])||u(i,f,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},97971:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},98061:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:o}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(o.isCell()||o.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},98363:(e,t,o)=>{"use strict";var i=o(2382),s=o(92503),n=o(60072),r=o(90501),a=o(69431),l=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",g="writable";t.f=i?n?function(e,t,o){if(r(e),t=a(t),r(o),"function"==typeof e&&"prototype"===t&&"value"in o&&g in o&&!o[g]){var i=c(e,t);i&&i[g]&&(e[t]=o.value,o={configurable:d in o?o[d]:i[d],enumerable:u in o?o[u]:i[u],writable:!1})}return h(e,t,o)}:h:function(e,t,o){if(r(e),t=a(t),r(o),s)try{return h(e,t,o)}catch(e){}if("get"in o||"set"in o)throw new l("Accessors not supported");return"value"in o&&(e[t]=o.value),e}},98414:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:n,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,o,,i]=e[0];o-i!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,i.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var i=o(48971),s=function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r}(e,t)}(o(44481));const n=t.KEY="remove_col"},98532:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(81518),s=o(78790),n=o(61894),r=o(20737);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:i.AutocompleteEditor,renderer:s.autocompleteRenderer,validator:n.autocompleteValidator,valueGetter:r.valueGetter,valueSetter:r.valueSetter}},98757:(e,t,o)=>{"use strict";t.__esModule=!0,o(52490),o(34478),o(31143),o(940);var i=o(26808),s=o(58604),n=o(78966),r=o(26363),a=o(39604),l=o(48370),h=o(32951),c=o(30738),u=o(7120),d=o(12449),g=o(31363);function f(e,t,o){p(e,t),t.set(e,o)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t){return e.get(C(e,t))}function w(e,t,o){return e.set(C(e,t),o),o}function C(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const v=t.PLUGIN_KEY="pagination",y=t.PLUGIN_PRIORITY=900,S=v,E=`plugin:${v}`,R=c.toSingleLine`The \`auto\` page size setting requires the \`autoRowSize\`\x20
95
95
  plugin to be enabled. Set the \`autoRowSize: true\` in the configuration to ensure correct behavior.`;var b=new WeakMap,_=new WeakMap,T=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,A=new WeakMap,N=new WeakMap,P=new WeakMap,H=new WeakSet,x=new WeakMap;class k extends i.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=H),t.add(e),f(this,b,null),f(this,_,1),f(this,T,10),f(this,M,null),f(this,I,null),f(this,O,!1),f(this,A,!1),f(this,N,null),f(this,P,null),f(this,x,()=>{var e;!m(O,this)&&null!==(e=this.hot)&&void 0!==e&&e.view&&C(H,this,F).call(this)})}static get PLUGIN_KEY(){return v}static get PLUGIN_PRIORITY(){return y}static get DEFAULT_SETTINGS(){return{pageSize:10,pageSizeList:["auto",5,10,20,50,100],initialPage:1,showPageSize:!0,showCounter:!0,showNavigation:!0,uiContainer:null}}isEnabled(){return!!this.hot.getSettings()[v]}enablePlugin(){var e,t=this;if((0,a.checkPluginSettingsConflict)(this.hot.getSettings()))return void(this.hot.getSettings()[v]=!1);if(this.enabled)return;const o=this.hot.getSettings()[v];void 0!==(null==o?void 0:o.initialPage)&&w(_,this,this.getSetting("initialPage")),void 0!==(null==o?void 0:o.pageSize)&&w(T,this,this.getSetting("pageSize")),w(b,this,this.hot.rowIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding",!1)),"auto"!==m(T,this)||null!==(e=this.hot.getPlugin("autoRowSize"))&&void 0!==e&&e.enabled||(0,u.warn)(R),w(I,this,(0,h.createPaginatorStrategy)("auto"===m(T,this)?"auto":"fixed")),m(M,this)||(w(M,this,new r.PaginationUI({rootElement:this.hot.rootGridElement,uiContainer:this.getSetting("uiContainer"),isRtl:this.hot.isRtl(),themeName:this.hot.getSettings().themeName,phraseTranslator:function(){return t.hot.getTranslatedPhrase(...arguments)},shouldHaveBorder:()=>C(H,this,B).call(this),a11yAnnouncer:e=>(0,l.announce)(e)})),C(H,this,W).call(this),m(M,this).addLocalHook("firstPageClick",()=>this.firstPage()).addLocalHook("prevPageClick",()=>this.prevPage()).addLocalHook("nextPageClick",()=>this.nextPage()).addLocalHook("lastPageClick",()=>this.lastPage()).addLocalHook("pageSizeChange",e=>this.setPageSize(e)).addLocalHook("focus",e=>{m(N,this).setCurrentPage(m(M,this).getFocusableElements().indexOf(e)),this.hot.unlisten(),this.hot.getShortcutManager().setActiveContextName(E),this.hot.listen(),m(P,this).deactivate()})),m(N,this)||w(N,this,(0,d.createPaginationFocusController)({focusableElements:()=>m(M,this).getFocusableElements()})),m(P,this)||w(P,this,(0,g.installFocusDetector)(this.hot,m(M,this).getContainer(),{onFocus:e=>{this.hot.getShortcutManager().setActiveContextName(E),this.hot.listen(),"from_above"===e?m(N,this).toFirstItem():m(N,this).toLastItem(),m(P,this).deactivate()}})),C(H,this,D).call(this),C(H,this,L).call(this),this.addHook("init",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,q).call(t,...o)},-1),this.addHook("beforeSelectAll",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,U).call(t,...o)}),this.addHook("beforeSelectColumns",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,U).call(t,...o)}),this.addHook("beforeSetRangeEnd",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,Y).call(t,...o)}),this.addHook("beforeSelectionHighlightSet",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,j).call(t,...o)}),this.addHook("beforePaste",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,z).call(t,...o)}),this.addHook("afterViewRender",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,$).call(t,...o)}),this.addHook("afterRender",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,K).call(t,...o)}),this.addHook("afterScrollVertically",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,Q).call(t,...o)}),this.addHook("afterLanguageChange",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,J).call(t,...o)}),this.addHook("modifyRowHeight",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,G).call(t,...o)}),this.addHook("beforeHeightChange",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,X).call(t,...o)}),this.addHook("afterSetTheme",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,Z).call(t,...o)}),this.addHook("afterDialogShow",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,te).call(t,...o)}),this.addHook("beforeDialogHide",function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return C(H,t,oe).call(t,...o)}),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",m(x,this)),super.enablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),C(H,this,F).call(this),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",m(x,this)).unregisterMap(this.pluginName),m(M,this).destroy(),w(M,this,null),C(H,this,V).call(this),super.disablePlugin()}getPaginationData(){const e=m(I,this).getTotalPages();let t=-1,o=-1;const{pageSize:i,startIndex:s}=m(I,this).getState(m(_,this)),n=this.hot.countRows();let r=0;for(let e=s;r<i&&!(e>=n);e++)this.hot.rowIndexMapper.isHidden(this.hot.toPhysicalRow(e))||(-1===t&&(t=e),o=e,r+=1);return{currentPage:m(_,this),totalPages:e,pageSize:i,pageSizeList:[...this.getSetting("pageSizeList")],autoPageSize:"auto"===m(T,this),numberOfRenderedRows:this.hot.rowIndexMapper.getRenderableIndexesLength(),firstVisibleRowIndex:t,lastVisibleRowIndex:o}}setPage(e){const t=m(_,this);!1!==this.hot.runHooks("beforePageChange",t,e)&&(w(_,this,e),C(H,this,F).call(this),this.hot.scrollViewportTo({row:0}),this.hot.runHooks("afterPageChange",t,m(_,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPage(){this.setPage(this.getSetting("initialPage"))}setPageSize(e){var t;const o=m(T,this);!1!==this.hot.runHooks("beforePageSizeChange",o,e)&&("auto"!==e||null!==(t=this.hot.getPlugin("autoRowSize"))&&void 0!==t&&t.enabled||(0,u.warn)(R),w(I,this,(0,h.createPaginatorStrategy)("auto"===e?"auto":"fixed")),w(T,this,e),C(H,this,F).call(this),this.hot.runHooks("afterPageSizeChange",o,m(T,this)),this.hot.view.adjustElementsSize(),this.hot.render())}resetPageSize(){this.setPageSize(this.getSetting("pageSize"))}resetPagination(){this.resetPage(),this.resetPageSize(),C(H,this,W).call(this)}nextPage(){this.setPage(m(_,this)+1)}prevPage(){this.setPage(m(_,this)-1)}firstPage(){this.setPage(1)}lastPage(){this.setPage(m(I,this).getTotalPages())}hasPreviousPage(){return m(_,this)>1}hasNextPage(){return m(_,this)<m(I,this).getTotalPages()}getCurrentPageData(){const{firstVisibleRowIndex:e,lastVisibleRowIndex:t}=this.getPaginationData();return-1===e||-1===t?[]:this.hot.getData(e,0,t,this.hot.countCols()-1)}showPageSizeSection(){m(M,this).setPageSizeSectionVisibility(!0),this.hot.runHooks("afterPageSizeVisibilityChange",!0)}hidePageSizeSection(){m(M,this).setPageSizeSectionVisibility(!1),this.hot.runHooks("afterPageSizeVisibilityChange",!1)}showPageCounterSection(){m(M,this).setCounterSectionVisibility(!0),this.hot.runHooks("afterPageCounterVisibilityChange",!0)}hidePageCounterSection(){m(M,this).setCounterSectionVisibility(!1),this.hot.runHooks("afterPageCounterVisibilityChange",!1)}showPageNavigationSection(){m(M,this).setNavigationSectionVisibility(!0),this.hot.runHooks("afterPageNavigationVisibilityChange",!0)}hidePageNavigationSection(){m(M,this).setNavigationSectionVisibility(!1),this.hot.runHooks("afterPageNavigationVisibilityChange",!1)}destroy(){var e;w(b,this,null),w(I,this,null),null===(e=m(M,this))||void 0===e||e.destroy(),w(M,this,null),super.destroy()}}function D(){this.eventManager.addEventListener(this.hot.rootDocument,"mouseup",e=>{m(M,this).getContainer().contains(e.target)||this.hot.getShortcutManager().getActiveContextName()!==E||(m(P,this).activate(),m(N,this).clear(),this.hot.getShortcutManager().setActiveContextName("grid"))})}function L(){var e;const t=this.hot.getShortcutManager();(null!==(e=t.getContext(E))&&void 0!==e?e:t.addContext(E,"global")).addShortcut({keys:[["Shift","Tab"],["Tab"]],preventDefault:!1,callback:e=>{let t=m(N,this).getCurrentPage();if(e.shiftKey){m(N,this).toPreviousItem();const e=m(N,this).getCurrentPage();if(e>=t)return void C(H,this,ee).call(this);t=e}else{m(N,this).toNextItem();const e=m(N,this).getCurrentPage();if(e<=t)return void C(H,this,ee).call(this);t=e}e.preventDefault()},group:S})}function V(){this.hot.getShortcutManager().getContext(E).removeShortcutsByGroup(S)}function W(){this.getSetting("showPageSize")?this.showPageSizeSection():this.hidePageSizeSection(),this.getSetting("showCounter")?this.showPageCounterSection():this.hidePageCounterSection(),this.getSetting("showNavigation")?this.showPageNavigationSection():this.hidePageNavigationSection()}function F(){w(O,this,!0),m(b,this).clear();const e=this.hot.rowIndexMapper.getRenderableIndexes(),t=e.length,{stylesHandler:o}=this.hot;m(I,this).calculate({pageSize:m(T,this),totalItems:t,viewportSizeProvider:()=>{const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow()){const t=getComputedStyle(this.hot.rootDocument.body),o=Number.parseInt(t.marginTop,10)+Number.parseInt(t.marginBottom,10),i=this.hot.hasColHeaders()?e._wt.wtTable.getColumnHeaderHeight():0,s=m(M,this).getHeight();return e.getWorkspaceHeight()-s-i-o}const t=e.hasHorizontalScroll()?(0,n.getScrollbarWidth)():0;return e.getViewportHeight()-t},itemsSizeProvider:()=>{const e=o.getDefaultRowHeight();return this.hot.rowIndexMapper.getRenderableIndexes().map(t=>{var o;return null!==(o=this.hot.getRowHeight(this.hot.toVisualRow(t)))&&void 0!==o?o:e})}});const i=m(I,this).getTotalPages();if(w(_,this,(0,s.clamp)(m(_,this),1,i)),e.length>0){const{startIndex:t,pageSize:o}=m(I,this).getState(m(_,this));e.splice(t,o)}e.length>0?this.hot.batchExecution(()=>{e.forEach(e=>m(b,this).setValueAtIndex(e,!0))},!0):this.hot.rowIndexMapper.updateCache(!0),w(O,this,!1);const r=this.getPaginationData();m(M,this).updateState({...r,totalRenderedRows:t}),(this.getSetting("showPageSize")||this.getSetting("showNavigation"))&&r.totalPages>1?m(P,this).activate():m(P,this).deactivate()}function B(){if(!this.hot.view)return!0;const{view:e}=this.hot;if(e.isVerticallyScrollableByWindow())return!1;if(e.hasHorizontalScroll()||e.getTableHeight()<e.getWorkspaceHeight())return!0;const{lastVisibleRowIndex:t}=this.getPaginationData();return e.getLastFullyVisibleRow()!==t}function U(e,t){const{firstVisibleRowIndex:o,lastVisibleRowIndex:i}=this.getPaginationData();(m(_,this)>1||e.row>=0)&&(e.row=o),t.row=i}function Y(e){if(this.hot.selection.isSelectedByColumnHeader()){const{lastVisibleRowIndex:t}=this.getPaginationData();e.row=t}}function j(){if(!this.hot.getSettings().navigableHeaders)return;const e=this.hot.getSelectedRangeLast();if(!e.isSingle()){const{highlight:t}=e;t.row=(0,s.clamp)(t.row,e.getTopStartCorner().row,e.getBottomEndCorner().row)}}function z(e,t){const{firstVisibleRowIndex:o,lastVisibleRowIndex:i}=this.getPaginationData();if(-1===o||-1===i)return!1;t.forEach(t=>{let{startRow:o}=t;if(0===e.length)return;const s=Math.min(e.length-(i-o+1),e.length);e.splice(0,s)})}function G(e,t){if(void 0===e||!m(I,this).getState(m(_,this)))return;const{firstVisibleRowIndex:o}=this.getPaginationData();return 0!==t&&t===o&&(e+=1),e}function $(){"auto"!==m(T,this)||m(A,this)?w(A,this,!1):(C(H,this,F).call(this),w(A,this,!0),this.hot.view.adjustElementsSize(),this.hot.render())}function K(){const{view:e}=this.hot,t=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();m(M,this).updateWidth(t).refreshBorderState()}function X(e){if(this.getSetting("uiContainer"))return e;if(!("number"==typeof e||"string"==typeof e&&/^\d+$/.test(e)||"string"==typeof e&&e.endsWith("px")))return e;return`calc(${"string"==typeof e&&e.endsWith("px")?e:`${e}px`} - ${m(M,this).getHeight()}px)`}function q(){"auto"!==m(T,this)&&C(H,this,F).call(this)}function Q(){m(M,this).refreshBorderState()}function J(){C(H,this,F).call(this)}function Z(e){m(M,this).updateTheme(e)}function ee(){m(P,this).activate(),m(N,this).clear(),this.hot.unlisten(),this.hot.getShortcutManager().setActiveContextName("grid")}function te(){m(P,this).deactivate()}function oe(){m(P,this).activate()}t.Pagination=k},98831:(e,t,o)=>{"use strict";var i=o(72820),s=o(11179);i({target:"Set",proto:!0,real:!0,forced:!o(12874)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:s})},98835:(e,t,o)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_NO_ITEMS)},disabled:!0,isCommand:!1}};var i=o(44481);const s=t.KEY="no_items"},99063:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},99085:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(92515);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.PersistentState=i.PersistentState},99234:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let n,r=0,a=0;for(;e.length>0&&n!==e.length;)if(n=e.length,e.match(s))e=e.replace(s,""),r+=1,t[a][r]="";else if(e.match(o))e=e.replace(o,""),r=0,a+=1,t[a]=[""];else{let o="";if(e.startsWith('"')){let t=0,i=!0;for(;i;){const s=e.slice(0,1);'"'===s&&(t+=1),o+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(i=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(i);o=t?t[0]:"",e=e.slice(o.length)}t[a][r]=o}return t},t.stringify=function(e){let t,o,i,s,n,r="";for(t=0,o=e.length;t<o;t+=1){for(s=e[t].length,i=0;i<s;i+=1)i>0&&(r+="\t"),n=e[t][i],"string"==typeof n?n.indexOf("\n")>-1?r+=`"${n.replace(/"/g,'""')}"`:r+=n:r+=null==n?"":n;t!==o-1&&(r+="\n")}return r};const o=/^(\r\n|\n\r|\r|\n)/,i=/^[^\t\r\n]+/,s=/^\t/},99343:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(68593);t.RENDERER_TYPE=i.RENDERER_TYPE,t.handsontableRenderer=i.handsontableRenderer},99356:(e,t,o)=>{"use strict";var i=o(72820),s=o(82683),n=o(22208),r=o(40761),a=o(56643);i({target:"Array",proto:!0,arity:1,forced:o(53001)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),o=n(t),i=arguments.length;a(o+i);for(var l=0;l<i;l++)t[o]=arguments[l],o++;return r(t,o),o}})},99470:(e,t,o)=>{"use strict";var i=o(55805);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},99577:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(98757);t.PLUGIN_KEY=i.PLUGIN_KEY,t.PLUGIN_PRIORITY=i.PLUGIN_PRIORITY,t.Pagination=i.Pagination},99640:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(99356);var s=i(o(8323)),n=i(o(18814)),r=o(99700),a=i(o(48525)),l=i(o(72e3)),h=i(o(17313)),c=i(o(24699)),u=o(77969),d=o(4138),g=o(78966);class f extends c.default{constructor(e,t){super(e,new a.default(t));const o=this.wtSettings.getSetting("facade",this);this.wtTable=new l.default(this.getTableDao(),o,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new u.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new s.default(o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new n.default(this,o,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(o,i)=>{this.wtSettings.getSetting(i).length&&t.push(o),e.push(o)}),(0,g.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,g.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!r.CLONE_TYPES.includes(e))return null;const o=e.replace(/_([a-z])/g,e=>e[1].toUpperCase());return null!==(t=this.wtOverlays[`${o}Overlay`])&&void 0!==t?t:null}getViewportDao(){const 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}}}}t.default=f},99677:(e,t,o)=>{"use strict";var i=o(90501);e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},99695:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0,o(52490);var s=i(o(24300)),n=o(26808),r=o(4138),a=i(o(66763)),l=o(30738),h=o(78172);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function u(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="columnSummary",g=t.PLUGIN_PRIORITY=220;var f=new WeakSet;class p extends n.BasePlugin{constructor(){super(...arguments),c(this,f),(0,s.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new a.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,m).call(e,...o)}),this.addHook("afterChange",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,C).call(e,...o)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,w).call(e,...o)}),this.addHook("beforeCreateRow",(e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,o)),this.addHook("beforeCreateCol",(e,t,o)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,o)),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...o)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...o)}),this.addHook("afterCreateRow",(e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,o)),this.addHook("afterCreateCol",(e,t,o)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,o)),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...o)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...o)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return u(f,e,v).call(e,...o)}),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,r.objectEach)(e.ranges,o=>{t+=this.getPartialSum(o,e.sourceColumn)}),t}getPartialSum(e,t){let o=0,i=e[1]||e[0],s=null,n=0;do{if(s=this.getCellValue(i,t),s=(0,h.isNullishOrNaN)(s)?null:s,null!==s){const e=(`${s}`.split(".")[1]||[]).length||1;e>n&&(n=e)}o+=s||0,i-=1}while(i>=e[0]);return Math.round(o*10**n)/10**n}calculateMinMax(e,t){let o=null;return(0,r.objectEach)(e.ranges,i=>{const s=this.getPartialMinMax(i,e.sourceColumn,t);if(null===o&&null!==s&&(o=s),null!==s)switch(t){case"min":o=Math.min(o,s);break;case"max":o=Math.max(o,s)}}),null===o?"Not enough data":o}getPartialMinMax(e,t,o){let i,s=null,n=e[1]||e[0];do{if(i=this.getCellValue(n,t),i=(0,h.isNullishOrNaN)(i)?null:i,null===s)s=i;else if(null!==i)switch(o){case"min":s=Math.min(s,i);break;case"max":s=Math.max(s,i)}n-=1}while(n>=e[0]);return s}countEmpty(e,t){let o,i=0,s=e[1]||e[0];do{o=this.getCellValue(s,t),o=(0,h.isNullishOrNaN)(o)?null:o,null===o&&(i+=1),s-=1}while(s>=e[0]);return i}countEntries(e){let t=0;const o=e.ranges;return(0,r.objectEach)(o,o=>{const i=void 0===o[1]?1:o[1]-o[0]+1,s=this.countEmpty(o,e.sourceColumn);t+=i,t-=s}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const o=this.hot.toVisualRow(e),i=this.hot.toVisualColumn(t);let s=this.hot.getSourceDataAtCell(e,t),n="";if(null!==o&&null!==i&&(n=this.hot.getCellMeta(o,i).className||""),n.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof s&&(s=s.replace(/,/,".")),s=parseFloat(s)),isNaN(s)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(l.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20
96
96
  numeric format. Cannot do the calculation.`);return s}}function m(){this.endpoints.initEndpoints()}function w(e){void 0!==e.columns&&this.endpoints.refreshCellMetas()}function C(e,t){e&&"ColumnSummary.reset"!==t&&"ColumnSummary.set"!==t&&"loadData"!==t&&this.endpoints.refreshChangedEndpoints(e)}function v(e,t){this.endpoints.resetSetupBeforeStructureAlteration("move_row",e[0],e.length,e,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",t,e.length,e,this.pluginName)}t.ColumnSummary=p},99700:(e,t,o)=>{"use strict";o(34478),o(31143),t.__esModule=!0;var i={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=o(74011);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var n=o(65809);t.BottomOverlay=n.BottomOverlay;var r=o(2459);t.InlineStartOverlay=r.InlineStartOverlay;var a=o(65820);t.Overlay=a.Overlay;var l=o(22385);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=o(55);t.TopOverlay=h.TopOverlay;var c=o(66649);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===c[e]||(t[e]=c[e]))})},99710:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},99771:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(3639)),n=i(o(72515)),r=i(o(39225)),a=o(4138),l=o(99700);class h extends s.default{constructor(e,t,o,i){super(e,t,o,i,l.CLONE_TOP)}}(0,a.mixin)(h,n.default),(0,a.mixin)(h,r.default);t.default=h},99793:(e,t,o)=>{"use strict";var i=o(77439),s=o(90501),n=o(85988);e.exports=function(e,t,o){var r,a;s(e);try{if(!(r=n(e,"return"))){if("throw"===t)throw o;return o}r=i(r,e)}catch(e){a=!0,r=e}if("throw"===t)throw o;if(a)throw r;return s(r),o}},99839:(e,t,o)=>{"use strict";t.__esModule=!0;var i=o(78966),s=o(47802),n=o(4138),r=o(40929),a=o(96188);t.default=class{constructor(e,t){t&&(this.eventManager=e.eventManager,this.instance=e,this.wot=e,this.settings=t,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=(0,a.getCornerStyle)(this.instance),this.cornerCenterPointOffset=-Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())}registerListeners(){const e=this.wot.rootDocument.body;this.eventManager.addEventListener(e,"mousedown",()=>this.onMouseDown()),this.eventManager.addEventListener(e,"mouseup",()=>this.onMouseUp());for(let e=0,t=this.main.childNodes.length;e<t;e++){const t=this.main.childNodes[e];this.eventManager.addEventListener(t,"mouseenter",t=>this.onMouseEnter(t,this.main.childNodes[e]))}}onMouseDown(){this.mouseDown=!0}onMouseUp(){this.mouseDown=!1}onMouseEnter(e,t){if(!this.mouseDown||!this.wot.getSetting("hideBorderOnMouseDownOver"))return;e.preventDefault(),(0,s.stopImmediatePropagation)(e);const o=this,i=this.wot.rootDocument.body,n=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(i,"mousemove",function e(s){var r;((r=s).clientY<Math.floor(n.top)||r.clientY>Math.ceil(n.top+n.height)||r.clientX<Math.floor(n.left)||r.clientX>Math.ceil(n.left+n.width))&&(o.eventManager.removeEventListener(i,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const o=["top","start","bottom","end","corner"];let i=this.main.style;i.position="absolute",i.top=0,i.left=0;for(let s=0;s<5;s++){const n=o[s],r=t.createElement("div");r.className=`wtBorder ${this.settings.className||""}`,this.settings[n]&&this.settings[n].hide&&(r.className+=" hidden"),i=r.style,i.backgroundColor=this.settings[n]&&this.settings[n].color?this.settings[n].color:e.border.color,i.height=this.settings[n]&&this.settings[n].width?`${this.settings[n].width}px`:`${e.border.width}px`,i.width=this.settings[n]&&this.settings[n].width?`${this.settings[n].width}px`:`${e.border.width}px`,this.main.appendChild(r)}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}px`,this.cornerStyle.height=`${this.cornerDefaultStyle.height}px`,this.cornerStyle.border=[`${this.cornerDefaultStyle.borderWidth}px`,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let n=s.bordersHolder;n||(n=t.createElement("div"),n.className="htBorders",s.bordersHolder=n,s.spreader.appendChild(n)),n.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,o=t.getSetting("stylesHandler"),i=o.getCSSVariableValue("cell-mobile-handle-size"),s=o.getCSSVariableValue("cell-mobile-handle-border-radius"),r=o.getCSSVariableValue("cell-mobile-handle-background-color"),a=o.getCSSVariableValue("cell-mobile-handle-border-width"),l=o.getCSSVariableValue("cell-mobile-handle-border-color");this.selectionHandles={top:e.createElement("DIV"),topHitArea:e.createElement("DIV"),bottom:e.createElement("DIV"),bottomHitArea:e.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};const h={position:"absolute",height:"40px",width:"40px","border-radius":`${parseInt(40/1.5,10)}px`};(0,n.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const c=o.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${i}px`,width:`${i}px`,"border-radius":`${s}px`,background:`${r}`,border:`${a}px solid ${l}`};(0,n.objectEach)(c,(e,t)=>{this.selectionHandles.styles.bottom[t]=e,this.selectionHandles.styles.top[t]=e}),this.main.appendChild(this.selectionHandles.top),this.main.appendChild(this.selectionHandles.bottom),this.main.appendChild(this.selectionHandles.topHitArea),this.main.appendChild(this.selectionHandles.bottomHitArea)}isPartRange(e,t){const o=this.wot.selectionManager.getAreaSelection();return!(!o.cellRange||e===o.cellRange.to.row&&t===o.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,o,i,s,n){const r=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:c}=this.selectionHandles.styles,u=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),f=this.wot.wtTable.getWidth(),p=this.wot.wtTable.getHeight();a.top=`${parseInt(o-d-1,10)}px`,a[r]=`${parseInt(i-d-1,10)}px`,l.top=`${parseInt(o-g/4*3,10)}px`,l[r]=`${parseInt(i-g/4*3,10)}px`;const m=Math.min(parseInt(i+s,10),f-d-2*u),w=Math.min(parseInt(i+s-g/4,10),f-g-2*u);h[r]=`${m}px`,c[r]=`${w}px`;const C=Math.min(parseInt(o+n,10),p-d-2*u),v=Math.min(parseInt(o+n-g/4,10),p-g-2*u);h.top=`${C}px`,c.top=`${v}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",c.display="none"):(h.display="block",c.display="block")):(a.display="none",h.display="none",l.display="none",c.display="none"),e===this.wot.wtSettings.getSetting("fixedRowsTop")||t===this.wot.wtSettings.getSetting("fixedColumnsStart")?(a.zIndex="9999",l.zIndex="9999"):(a.zIndex="",l.zIndex="")}appear(e){if(this.disabled)return;let[t,o,s,n]=e;if(t<0&&s<0||o<0&&n<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,c=t!==s||o!==n,u=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),f=a.getFirstRenderedColumn(),p=a.getLastRenderedColumn();if(f<0&&p<0||d<0&&g<0)return void this.disappear();let m;if(c){if(o=Math.max(o,f),n=Math.min(n,p),t=Math.max(t,d),s=Math.min(s,g),n<o||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,o))}else if(m=a.getCell(this.wot.createCellCoords(t,o)),!(0,i.isHTMLElement)(m))return void this.disappear();const w=c?a.getCell(this.wot.createCellCoords(s,n)):m,C=(0,i.offset)(m),v=c?(0,i.offset)(w):C,y=(0,i.offset)(a.TABLE),S=C.top,E=C.left,R=this.wot.wtSettings.getSetting("rtlMode");let b=0,_=0;if(R){const e=(0,i.outerWidth)(a.TABLE),t=(0,i.outerWidth)(m),o=h.innerWidth-y.left-e;_=E+t-v.left,b=h.innerWidth-E-t-o-1}else _=v.left+(0,i.outerWidth)(w)-E,b=E-y.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,i=this.getDimensionsFromHeader("columns",o,n,e,y);let s=null;i&&([s,b,_]=i),s&&(m=s)}let T=S-y.top-1,M=v.top+(0,i.outerHeight)(w)-S;if(this.isEntireRowSelected(o,n)){const e=o,i=this.getDimensionsFromHeader("rows",t,s,e,y);let n=null;i&&([n,T,M]=i),n&&(m=n)}const I=h.getComputedStyle(m);parseInt(I.borderTopWidth,10)>0&&(T+=1,M=M>0?M-1:0),parseInt(I[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(b+=1,_=_>0?_-1:0);const O=R?"right":"left",A=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${T}px`,this.topStyle[O]=`${b}px`,this.topStyle.width=`${_+A}px`,this.topStyle.display="block",this.startStyle.top=`${T}px`,this.startStyle[O]=`${b}px`,this.startStyle.height=`${M+A}px`,this.startStyle.display="block",this.bottomStyle.top=`${T+M-parseInt(this.bottomStyle.height,10)+A}px`,this.bottomStyle[O]=`${b}px`,this.bottomStyle.width=`${_+A}px`,this.bottomStyle.display="block",this.endStyle.top=`${T}px`,this.endStyle[O]=`${b+_-parseInt(this.endStyle.width,10)+A}px`,this.endStyle.height=`${M+A}px`,this.endStyle.display="block";let N=this.settings.border.cornerVisible;N="function"==typeof N?N(this.settings.layerLevel):N;const P=this.wot.getSetting("onModifyGetCellCoords",s,n,!1,"render");let[H,x]=[s,n];if(P&&Array.isArray(P)&&([,,H,x]=P),(0,r.isMobileBrowser)()||!N||this.isPartRange(H,x))this.cornerStyle.display="none";else{this.cornerStyle.top=T+M+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[O]=b+_+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle.borderRightWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderLeftWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.borderBottomWidth=`${this.cornerDefaultStyle.borderWidth}px`,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="none";let e=(0,i.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const o=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,r=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),c=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(n===this.wot.getSetting("totalColumns")-1){const s=t?w.getBoundingClientRect().left:w.offsetLeft;let n=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,n=a<0):(a=s+(0,i.outerWidth)(w)+parseInt(this.cornerDefaultStyle.width,10)/2,n=a>=(0,i.innerWidth)(e)),n){const e=Math.floor(b+_+this.cornerCenterPointOffset-r-o);u?(this.cornerStyle[O]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[O]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?w.getBoundingClientRect().top:w.offsetTop)+(0,i.outerHeight)(w)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,i.innerHeight)(e)){const e=Math.floor(T+M+this.cornerCenterPointOffset-c-o);u?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,n,T,b,_,M)}isEntireColumnSelected(e,t){return e===this.wot.wtTable.getFirstRenderedRow()&&t===this.wot.wtTable.getLastRenderedRow()}isEntireRowSelected(e,t){return e===this.wot.wtTable.getFirstRenderedColumn()&&t===this.wot.wtTable.getLastRenderedColumn()}getDimensionsFromHeader(e,t,o,s,n){const{wtTable:r}=this.wot,a=r.wtRootElement.parentNode;let l=null,h=null,c=null,u=null,d=null,g=null,f=null,p=null;switch(e){case"rows":l=function(){return r.getRowHeader(...arguments)},h=function(){return(0,i.outerHeight)(...arguments)},c="ht__selection--rows",g="top";break;case"columns":l=function(){return r.getColumnHeader(...arguments)},h=function(){return(0,i.outerWidth)(...arguments)},c="ht__selection--columns",g="left"}if(a.classList.contains(c)){const e=this.wot.getSetting("columnHeaders").length;if(f=l(t,e-s),p=l(o,e-s),!f||!p)return!1;const r=(0,i.offset)(f),a=(0,i.offset)(p);return f&&p&&(u=r[g]-n[g]-1,d=a[g]+h(p)-r[g]),[f,u,d]}return!1}changeBorderStyle(e,t){const o=this[e].style,s=t[e];!s||s.hide?(0,i.addClass)(this[e],"hidden"):((0,i.hasClass)(this[e],"hidden")&&(0,i.removeClass)(this[e],"hidden"),o.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(o.height=`${s.width}px`),"start"!==e&&"end"!==e||(o.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,o="#000",i=this[e].style;i.backgroundColor=o,i.width=`${t}px`,i.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,i.addClass)(this[e],"hidden"):(0,i.removeClass)(this[e],"hidden")}disappear(){this.topStyle.display="none",this.bottomStyle.display="none",this.startStyle.display="none",this.endStyle.display="none",this.cornerStyle.display="none",(0,r.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&(this.selectionHandles.styles.top.display="none",this.selectionHandles.styles.topHitArea.display="none",this.selectionHandles.styles.bottom.display="none",this.selectionHandles.styles.bottomHitArea.display="none")}destroy(){this.eventManager.destroyWithOwnEventsOnly(),this.main.parentNode.removeChild(this.main)}}},99962:(e,t,o)=>{"use strict";var i=o(73805);t.__esModule=!0;var s=i(o(24300)),n=o(631);class r extends n.BaseAction{constructor(e){let{data:t,cellRange:o}=e;super("merge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=o,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",(o,i)=>{if(i)return;const s=o.getTopStartCorner(),n=o.getBottomEndCorner(),a=e.getData(s.row,s.col,n.row,n.col);t.done(()=>new r({data:a,cellRange:o}))})}undo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.unmergeRange(this.cellRange,!0);const i=this.cellRange.getTopStartCorner();e.populateFromArray(i.row,i.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const o=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),o.mergeRange(this.cellRange)}}t.MergeCellsAction=r}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return s[e].call(o.exports,o,o.exports,r),o.exports}r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";var e=a,t=r(73805);var o=k(r(43502));o.CellCoords,o.CellRange;var i,s,n,l,h,c=r(87404),u=k(r(59468)),d=r(55656),g=t(r(10766)),f=t(r(30164)),p=k(r(40920)),m=k(r(94576)),w=k(r(40929)),C=k(r(9013)),v=k(r(3161)),y=k(r(79035)),S=k(r(81761)),E=k(r(7886)),R=k(r(58604)),b=k(r(4138)),_=k(r(2744)),T=k(r(38830)),M=k(r(78966)),I=k(r(47802)),O=r(89211),A=r(88181),N=r(36780),P=r(61654),H=r(92641),x=r(26808);function k(e,t){if("function"==typeof WeakMap)var o=new WeakMap,i=new WeakMap;return(k=function(e,t){if(!t&&e&&e.__esModule)return e;var s,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(s=t?i:o){if(s.has(e))return s.get(e);s.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((n=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(n.get||n.set)?s(r,t,n):r[t]=e[t]);return r})(e,t)}(0,c.registerAllModules)(),(0,g.default)(o.default),o.default.__GhostTable=f.default,o.default._getListenersCounter=u.getListenersCounter,o.default._getRegisteredMapsCounter=d.getRegisteredMapsCounter,o.default.EventManager=u.default;const D=[m,w,C,v,y,S,E,R,b,_,T,p],L=[M,I];o.default.helper={},o.default.dom={},m.arrayEach(D,e=>{m.arrayEach(Object.getOwnPropertyNames(e),t=>{"_"!==t.charAt(0)&&(o.default.helper[t]=e[t])})}),m.arrayEach(L,e=>{m.arrayEach(Object.getOwnPropertyNames(e),t=>{"_"!==t.charAt(0)&&(o.default.dom[t]=e[t])})}),o.default.cellTypes=null!==(i=o.default.cellTypes)&&void 0!==i?i:{},m.arrayEach((0,P.getRegisteredCellTypeNames)(),e=>{o.default.cellTypes[e]=(0,P.getCellType)(e)}),o.default.cellTypes.registerCellType=P.registerCellType,o.default.cellTypes.getCellType=P.getCellType,o.default.editors=null!==(s=o.default.editors)&&void 0!==s?s:{},m.arrayEach((0,O.getRegisteredEditorNames)(),e=>{o.default.editors[`${_.toUpperCaseFirst(e)}Editor`]=(0,O.getEditor)(e)}),o.default.editors.registerEditor=O.registerEditor,o.default.editors.getEditor=O.getEditor,o.default.renderers=null!==(n=o.default.renderers)&&void 0!==n?n:{},m.arrayEach((0,A.getRegisteredRendererNames)(),e=>{const t=(0,A.getRenderer)(e);"base"===e&&(o.default.renderers.cellDecorator=t),o.default.renderers[`${_.toUpperCaseFirst(e)}Renderer`]=t}),o.default.renderers.registerRenderer=A.registerRenderer,o.default.renderers.getRenderer=A.getRenderer,o.default.validators=null!==(l=o.default.validators)&&void 0!==l?l:{},m.arrayEach((0,N.getRegisteredValidatorNames)(),e=>{o.default.validators[`${_.toUpperCaseFirst(e)}Validator`]=(0,N.getValidator)(e)}),o.default.validators.registerValidator=N.registerValidator,o.default.validators.getValidator=N.getValidator,o.default.plugins=null!==(h=o.default.plugins)&&void 0!==h?h:{},m.arrayEach((0,H.getPluginsNames)(),e=>{o.default.plugins[e]=(0,H.getPlugin)(e)}),o.default.plugins[`${_.toUpperCaseFirst(x.BasePlugin.PLUGIN_KEY)}Plugin`]=x.BasePlugin,o.default.plugins.registerPlugin=H.registerPlugin,o.default.plugins.getPlugin=H.getPlugin;e.default=o.default})(),a=a.default})());