handsontable 16.1.0-next-abd8f2e-20250904 → 16.1.0-next-91b8a0f-20250905

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,10 +25,10 @@
25
25
  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING FROM
26
26
  * USE OR INABILITY TO USE THIS SOFTWARE.
27
27
  *
28
- * Version: 16.1.0-next-abd8f2e-20250904
29
- * Release date: 11/09/2025 (built at 04/09/2025 07:51:06)
28
+ * Version: 16.1.0-next-91b8a0f-20250905
29
+ * Release date: 11/09/2025 (built at 05/09/2025 09:35:50)
30
30
  */
31
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,()=>(()=>{var e={162:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:r}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(r,n)=>{const s=t.getSettings(),i="function"==typeof s.tabMoves?s.tabMoves(r):s.tabMoves;n.includes("shift")?t.selection.transformStart(-i.row,-i.col):t.selection.transformStart(i.row,i.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=r.getSelectedActive();if(t){const r=e.openSubMenu(t[0]);r&&r.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{r.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 n=r.getSelectedActive();n&&(r.getSourceDataAtRow(n[0]).submenu?e.openSubMenu(n[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(-r.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(r.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},211:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.default=class{constructor(e,t,r){(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=r}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))}}},346:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(29810),r(31143),r(940),r(81056);var s=n(r(24300));class i{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((r,n)=>r.includes(e)&&t(r,n))}findAll(e){const t=[];return this.ranges.forEach((r,n)=>{r.isEqual(e)&&t.push({range:r,layer:n})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,r)=>!e.includes(r)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new i(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,r)=>e(t,r)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=i},469:()=>{},594:()=>{},763:()=>{},918:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:r}=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=r}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:r,rows:n,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),r.setTable(this),n.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=r,this.rows=n,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 r=0;r<e;r++){const e=t.getRenderedNode(r),n=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(r),s=n.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-i+"px":""}}}}},940:(e,t,r)=>{"use strict";r(60791)},982:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14001);class s extends n.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},1145:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300)),i=r(9208),o=r(17334);class a extends i.BaseAction{constructor(e){let{columns:t,finalIndex:r}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=r}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,r)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:r}))})}undo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,o.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:n}=e;t<n&&(n-=1),r.moveColumn(n,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),r.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},1181:()=>{},1202:(e,t,r)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const r=[];if(0===t)return r;(0,n.arrayEach)(e,e=>{const a=[];let l=0;r.push(a),(0,n.arrayEach)(e,e=>{const r=(0,o.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:n,headerClassName:s}=e;r.label=(0,i.stringify)(t),"number"==typeof n&&n>1&&(r.colspan=n,r.origColspan=n),"string"==typeof s&&(r.headerClassNames=[...s.split(" ")])}else r.label=(0,i.stringify)(e);l+=r.origColspan;let n=!1;if(l>=t&&(r.colspan=r.origColspan-(l-t),r.origColspan=r.colspan,n=!0),a.push(r),r.colspan>1)for(let e=0;e<r.colspan-1;e++)a.push((0,o.createPlaceholderHeaderSettings)());return!n})});const a=Math.max(...(0,n.arrayMap)(r,e=>e.length));return(0,n.arrayEach)(r,e=>{if(e.length<a){const t=(0,n.arrayMap)(new Array(a-e.length),()=>(0,o.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),r},r(99356);var n=r(40785),s=r(21389),i=r(27727),o=r(93711)},1221:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(62551);var s=n(r(85219)),i=r(55941),o=r(57971),a=r(17715),l=r(73364),h=r(51241),u=r(33746),c=r(95484),d=r(74216);function g(e,t){const r=new s.default(e,t||{},i.rootInstanceSymbol);return r.init(),r}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(u.TextCellType),g.editors={BaseEditor:c.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,i.rootInstanceSymbol)},g.DefaultSettings=(0,o.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="04/09/2025 07:51:06",g.version="16.1.0-next-abd8f2e-20250904",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},1354:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(53383),o=n(r(73333)),a=r(17715);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 u extends i.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 o.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=u},1402:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(n.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 n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},1487:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(34478),r(81056);var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(13283);const i=t.OPERATION_ID="disjunction",o=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(i,o,a)},1531:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},s=r(17330);t.IndexMapper=s.IndexMapper;var i=r(58033);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var o=r(51453);t.getIncreasedIndexes=o.getIncreasedIndexes,t.getDecreasedIndexes=o.getDecreasedIndexes,t.alterUtilsFactory=o.alterUtilsFactory;var a=r(36915);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},1766:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(6083),o=r(4407),a=r(42685),l=r(31075),h=r(96357),u=r(9671),c=r(53383),d=n(r(40638)),g=n(r(24726));function p(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(w(e,t),r),r}function E(e,t){return e.get(w(e,t))}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedHeaders",C=t.PLUGIN_PRIORITY=280;var v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakSet;class b extends c.BasePlugin{constructor(){var e,t;super(...arguments),f(e=this,t=A),t.add(e),p(this,v,new d.default),p(this,S,null),p(this,R,null),p(this,T,!1),p(this,N,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),p(this,_,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:r}=t;if(r.isHeader()&&r.col>=0){const e=E(v,this).findLeftMostColumnIndex(r.row,r.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 y}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[y]}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
31
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}("undefined"!=typeof self?self:this,()=>(()=>{var e={162:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultShortcutsList=function(e){const{hot:t,hotMenu:r}=e;return[{keys:[["Control/Meta","A"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:()=>e.close(!0)},{keys:[["Tab"],["Shift","Tab"]],callback:(r,n)=>{const s=t.getSettings(),i="function"==typeof s.tabMoves?s.tabMoves(r):s.tabMoves;n.includes("shift")?t.selection.transformStart(-i.row,-i.col):t.selection.transformStart(i.row,i.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=r.getSelectedActive();if(t){const r=e.openSubMenu(t[0]);r&&r.getNavigator().toFirstItem()}}},{keys:[[t.isRtl()?"ArrowRight":"ArrowLeft"]],callback:()=>{r.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 n=r.getSelectedActive();n&&(r.getSourceDataAtRow(n[0]).submenu?e.openSubMenu(n[0]).getNavigator().toFirstItem():(e.executeCommand(t),e.close(!0)))}},{keys:[["PageUp"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(-r.countVisibleRows(),0):e.getNavigator().toFirstItem()}},{keys:[["PageDown"]],callback:()=>{r.getSelectedActive()?r.selection.transformStart(r.countVisibleRows(),0):e.getNavigator().toLastItem()}}]}},211:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.default=class{constructor(e,t,r){(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=r}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))}}},346:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(29810),r(31143),r(940),r(81056);var s=n(r(24300));class i{constructor(e){(0,s.default)(this,"ranges",[]),(0,s.default)(this,"createCellRange",void 0),this.createCellRange=e}isEmpty(){return 0===this.size()}set(e){return this.clear(),this.ranges.push(this.createCellRange(e)),this}add(e){return this.ranges.push(this.createCellRange(e)),this}push(e){return this.ranges.push(e),this}pop(){return this.ranges.pop()}current(){return this.peekByIndex(this.size()-1)}previous(){return this.peekByIndex(this.size()-2)}includes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0;return this.ranges.some((r,n)=>r.includes(e)&&t(r,n))}findAll(e){const t=[];return this.ranges.forEach((r,n)=>{r.isEqual(e)&&t.push({range:r,layer:n})}),t}remove(e){return this.ranges=this.ranges.filter(t=>!e.some(e=>e.isEqual(t))),this}removeLayers(e){return this.ranges=this.ranges.filter((t,r)=>!e.includes(r)),this}clear(){return this.ranges.length=0,this}size(){return this.ranges.length}clone(){const e=new i(this.createCellRange);return e.ranges=this.ranges.map(e=>e.clone()),e}map(e){return this.ranges=this.ranges.map((t,r)=>e(t,r)),this}peekByIndex(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t>=0&&t<this.size()&&(e=this.ranges[t]),e}[Symbol.iterator](){return this.ranges[Symbol.iterator]()}}t.default=i},469:()=>{},594:()=>{},763:()=>{},918:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.TableRenderer=class{constructor(e){let{cellRenderer:t,stylesHandler:r}=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=r}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:r,rows:n,cells:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.setTable(this),t.setTable(this),r.setTable(this),n.setTable(this),s.setTable(this),this.rowHeaders=e,this.columnHeaders=t,this.colGroup=r,this.rows=n,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 r=0;r<e;r++){const e=t.getRenderedNode(r),n=this.rowUtils;if(e.firstChild){const t=this.renderedRowToSource(r),s=n.getHeightByOverlayName(t,this.activeOverlayName),i=this.stylesHandler.areCellsBorderBox()?0:1;e.firstChild.style.height=s?s-i+"px":""}}}}},940:(e,t,r)=>{"use strict";r(60791)},982:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14001);class s extends n.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},1145:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300)),i=r(9208),o=r(17334);class a extends i.BaseAction{constructor(e){let{columns:t,finalIndex:r}=e;super("col_move"),(0,s.default)(this,"columns",void 0),(0,s.default)(this,"finalColumnIndex",void 0),this.columns=t.slice(),this.finalColumnIndex=r}static startRegisteringEvents(e,t){e.addHook("beforeColumnMove",(e,r)=>{!1!==e&&t.done(()=>new a({columns:e,finalIndex:r}))})}undo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t);(0,o.getMoves)(this.columns,this.finalColumnIndex,e.columnIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:n}=e;t<n&&(n-=1),r.moveColumn(n,t)}),e.render(),e.deselectCell(),e.selectColumns(this.columns[0],this.columns[0]+this.columns.length-1)}redo(e,t){const r=e.getPlugin("manualColumnMove");e.addHookOnce("afterViewRender",t),r.moveColumns(this.columns.slice(),this.finalColumnIndex),e.render(),e.deselectCell(),e.selectColumns(this.finalColumnIndex,this.finalColumnIndex+this.columns.length-1)}}t.ColumnMoveAction=a},1181:()=>{},1202:(e,t,r)=>{"use strict";t.__esModule=!0,t.normalizeSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;const r=[];if(0===t)return r;(0,n.arrayEach)(e,e=>{const a=[];let l=0;r.push(a),(0,n.arrayEach)(e,e=>{const r=(0,o.createDefaultHeaderSettings)();if((0,s.isObject)(e)){const{label:t,colspan:n,headerClassName:s}=e;r.label=(0,i.stringify)(t),"number"==typeof n&&n>1&&(r.colspan=n,r.origColspan=n),"string"==typeof s&&(r.headerClassNames=[...s.split(" ")])}else r.label=(0,i.stringify)(e);l+=r.origColspan;let n=!1;if(l>=t&&(r.colspan=r.origColspan-(l-t),r.origColspan=r.colspan,n=!0),a.push(r),r.colspan>1)for(let e=0;e<r.colspan-1;e++)a.push((0,o.createPlaceholderHeaderSettings)());return!n})});const a=Math.max(...(0,n.arrayMap)(r,e=>e.length));return(0,n.arrayEach)(r,e=>{if(e.length<a){const t=(0,n.arrayMap)(new Array(a-e.length),()=>(0,o.createDefaultHeaderSettings)());e.splice(e.length,0,...t)}}),r},r(99356);var n=r(40785),s=r(21389),i=r(27727),o=r(93711)},1221:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(62551);var s=n(r(85219)),i=r(55941),o=r(57971),a=r(17715),l=r(73364),h=r(51241),u=r(33746),c=r(95484),d=r(74216);function g(e,t){const r=new s.default(e,t||{},i.rootInstanceSymbol);return r.init(),r}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(u.TextCellType),g.editors={BaseEditor:c.BaseEditor},g.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,i.rootInstanceSymbol)},g.DefaultSettings=(0,o.metaSchemaFactory)(),g.hooks=a.Hooks.getSingleton(),g.CellCoords=d.CellCoords,g.CellRange=d.CellRange,g.packageName="handsontable",g.buildDate="05/09/2025 09:35:50",g.version="16.1.0-next-91b8a0f-20250905",g.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=g},1354:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(53383),o=n(r(73333)),a=r(17715);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 u extends i.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 o.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=u},1402:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"cut",name(){return this.getTranslatedPhrase(n.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 n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},1487:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(34478),r(81056);var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(13283);const i=t.OPERATION_ID="disjunction",o=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(i,o,a)},1531:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={IndexMapper:!0,getRegisteredMapsCounter:!0,getIncreasedIndexes:!0,getDecreasedIndexes:!0,alterUtilsFactory:!0},s=r(17330);t.IndexMapper=s.IndexMapper;var i=r(58033);t.getRegisteredMapsCounter=i.getRegisteredMapsCounter;var o=r(51453);t.getIncreasedIndexes=o.getIncreasedIndexes,t.getDecreasedIndexes=o.getDecreasedIndexes,t.alterUtilsFactory=o.alterUtilsFactory;var a=r(36915);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===a[e]||(t[e]=a[e]))})},1766:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(6083),o=r(4407),a=r(42685),l=r(31075),h=r(96357),u=r(9671),c=r(53383),d=n(r(40638)),g=n(r(24726));function p(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(w(e,t),r),r}function E(e,t){return e.get(w(e,t))}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedHeaders",C=t.PLUGIN_PRIORITY=280;var v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakSet;class b extends c.BasePlugin{constructor(){var e,t;super(...arguments),f(e=this,t=A),t.add(e),p(this,v,new d.default),p(this,S,null),p(this,R,null),p(this,T,!1),p(this,N,null),(0,s.default)(this,"ghostTable",new g.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1),p(this,_,()=>{var e;const t=null===(e=this.hot)||void 0===e?void 0:e.getSelectedRangeActive();if(!t)return;const{highlight:r}=t;if(r.isHeader()&&r.col>=0){const e=E(v,this).findLeftMostColumnIndex(r.row,r.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 y}static get PLUGIN_PRIORITY(){return C}isEnabled(){return!!this.hot.getSettings()[y]}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
32
32
  passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>w(A,this,G).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,j).call(e,...r)}),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,x).call(e,...r)}),this.addHook("afterOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,P).call(e,...r)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,L).call(e,...r)}),this.addHook("beforeOnCellMouseUp",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,D).call(e,...r)}),this.addHook("beforeSelectionHighlightSet",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,k).call(e,...r)}),this.addHook("modifyTransformStart",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,H).call(e,...r)}),this.addHook("afterSelection",()=>E(_,this).call(this)),this.addHook("afterSelectionFocusSet",()=>E(_,this).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,M).call(e,...r)}),this.addHook("afterGetColumnHeaderRenderers",e=>w(A,this,U).call(this,e)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,B).call(e,...r)}),this.addHook("modifyColumnHeaderValue",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,W).call(e,...r)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,I).call(e,...r)}),this.addHook("beforeCopy",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,O).call(e,...r)}),this.addHook("beforeSelectColumns",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,F).call(e,...r)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,V).call(e,...r)}),this.addHook("modifyFocusedElement",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(A,e,Y).call(e,...r)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",E(_,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",E(_,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();E(v,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=E(v,this).setState(e)),this.detectedOverlappedHeaders&&(0,h.warn)(a.toSingleLine`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
33
33
  is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((e,t)=>{const r=!0===e?"hide-column":"show-column";E(v,this).triggerColumnModification(r,t)}),!E(S,this)&&this.enabled&&m(S,this,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(e=>{e.forEach(e=>{let{op:t,index:r,newValue:n}=e;if("replace"===t){const e=!0===n?"hide-column":"show-column";E(v,this).triggerColumnModification(e,r)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",E(_,this)),this.hot.columnIndexMapper.removeLocalHook("cacheUpdated",E(_,this)),this.clearColspans(),E(v,this).clear(),E(S,this).unsubscribe(),m(S,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return E(v,this)}getLayersCount(){return E(v,this).getLayersCount()}getHeaderSettings(e,t){return E(v,this).getHeaderSettings(e,t)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,t=e.getSetting("columnHeaders").length,r=e.wtTable.THEAD,n=e.wtOverlays.topOverlay.clone.wtTable.THEAD,s=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let e=0;e<t;e++){const t=r.childNodes[e];if(!t)break;const o=n.childNodes[e],a=s?s.childNodes[e]:null;for(let e=0,r=t.childNodes.length;e<r;e++)t.childNodes[e].removeAttribute("colspan"),(0,i.removeClass)(t.childNodes[e],"hiddenHeader"),o&&o.childNodes[e]&&(o.childNodes[e].removeAttribute("colspan"),(0,i.removeClass)(o.childNodes[e],"hiddenHeader")),s&&a&&a.childNodes[e]&&(a.childNodes[e].removeAttribute("colspan"),(0,i.removeClass)(a.childNodes[e],"hiddenHeader"))}}headerRendererFactory(e){var t=this;const r=this.hot.view._wt.getSetting("fixedColumnsStart");return(n,s)=>{var o;const{columnIndexMapper:a,view:l}=this.hot;let h=a.getVisualFromRenderableIndex(n);null===h&&(h=n),s.removeAttribute("colspan"),(0,i.removeClass)(s,"hiddenHeader"),(0,i.removeClass)(s,"hiddenHeaderText");const{colspan:u,isHidden:c,isPlaceholder:d,headerClassNames:g}=null!==(o=E(v,this).getHeaderSettings(e,h))&&void 0!==o?o:{label:""};if(d||c)(0,i.addClass)(s,"hiddenHeader");else if(u>1){var p,f,m;const{wtOverlays:e}=l._wt,t=null===(p=e.topInlineStartCornerOverlay)||void 0===p?void 0:p.clone.wtTable.THEAD.contains(s),o=null===(f=e.inlineStartOverlay)||void 0===f?void 0:f.clone.wtTable.THEAD.contains(s);(null===(m=e.topOverlay)||void 0===m?void 0:m.clone.wtTable.THEAD.contains(s))&&h<r&&(0,i.addClass)(s,"hiddenHeaderText");const a=t||o?Math.min(u,r-n):u;a>1&&s.setAttribute("colspan",a)}if(this.hot.view.appendColHeader(h,s,function(){return t.getColumnHeaderValue(...arguments)},e),!d&&!c){const e=s.querySelector("div.relative");e&&g&&g.length>0&&((0,i.removeClass)(e,this.hot.getColumnMeta(h).headerClassName),(0,i.addClass)(e,g))}}}getColumnHeaderValue(e,t){var r;const{isHidden:n,isPlaceholder:s}=null!==(r=E(v,this).getHeaderSettings(t,e))&&void 0!==r?r:{};return s||n?"":this.hot.getColHeader(e,t)}destroy(){m(v,this,null),null!==E(S,this)&&(E(S,this).unsubscribe(),m(S,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return E(v,this).getHeaderTreeNodeData(e.row,e.col)}}function M(e,t){var r;const n=this.hot.getSelectedRangeActive();if(!n)return e;const{highlight:s}=n,{navigableHeaders:i}=this.hot.getSettings(),o=this.hot.selection.isSelectedByColumnHeader(),a=i?s.row:null===(r=E(N,this))||void 0===r?void 0:r.row,l=o?e:s.col,h=a<0&&l>=0;if(m(N,this,null),!h)return e;const u=this.hot.getFirstFullyVisibleColumn(),c=this.hot.getLastFullyVisibleColumn(),d=c-u+1,g=E(v,this).findLeftMostColumnIndex(a,l),p=E(v,this).findRightMostColumnIndex(a,l),f=p-g+1;if(g<u&&p>c)return g;if(o){let e=null;return g>=u&&p>c?f>d?(t.value="start",e=g):(t.value="end",e=p):g<u&&p<=c&&(f>d?(t.value="end",e=p):(t.value="start",e=g)),e}return g<=u?g:p}function I(e,t,r){const n=E(v,this).getHeaderTreeNodeData(t,e);if(!n)return e;const{columnCursor:s,selectionType:i,selectionWidth:o}=r,{isRoot:a,colspan:l}=E(v,this).getHeaderSettings(t,e);if(i===u.HEADER_TYPE){if(!a)return n.columnIndex}else if(i===u.ACTIVE_HEADER_TYPE&&(l>o-s||!a))return null;return e}function O(e,t,r){let{columnHeadersCount:n}=r;if(0!==n)for(let r=0;r<t.length;r++){const{startRow:n,startCol:i,endRow:o,endCol:a}=t[r],l=o-n+1;if(n>=0||1===i-a+1)break;for(let t=i;t<=a;t++)for(let r=n;r<=o;r++){var s;const n=l+r,o=t-i;if(0===o)continue;!1===(null===(s=E(v,this).getHeaderTreeNodeData(r,t))||void 0===s?void 0:s.isRoot)&&(e[n][o]="")}}}function x(e,t,r,n){this._getHeaderTreeNodeDataByCoords(t)&&(n.column=!0)}function P(e,t){const r=this._getHeaderTreeNodeDataByCoords(t);if(!r)return;m(R,this,t.clone()),m(T,this,!0);const{selection:n}=this.hot,s=n.isSelected()?n.getSelectedRange().current():null,i=[],{columnIndex:o,origColspan:a}=r,h=!n.inInSelection(t);e.shiftKey&&s?t.col<s.from.col?i.push(s.getTopEndCorner().col,o,t.row):t.col>s.from.col?i.push(s.getTopStartCorner().col,o+a-1,t.row):i.push(o,o+a-1,t.row):((0,l.isLeftClick)(e)||(0,l.isRightClick)(e)&&h||(0,l.isTouchEvent)(e))&&i.push(o,o+a-1,t.row),n.selectColumns(...i)}function L(e,t,r,n){if(!this.hot.view.isMouseDown()||n.column)return;const s=this._getHeaderTreeNodeDataByCoords(t);if(!s)return;const{columnIndex:i,origColspan:a}=s,l=this.hot.getSelectedRangeActive(),h=l.getTopStartCorner(),u=l.getBottomEndCorner(),{from:c}=l;n.column=!0,n.cell=!0;const d=[],g=(0,o.clamp)(t.row,-1/0,-1);t.col<c.col?d.push(u.col,i,g):t.col>c.col?d.push(h.col,i+a-1,g):d.push(i,i+a-1,g),this.hot.selection.selectColumns(...d)}function D(){m(T,this,!1)}function k(){const{navigableHeaders:e}=this.hot.getSettings();if(!this.hot.view.isMouseDown()||!E(T,this)||!e)return;const t=this.hot.getSelectedRangeLast(),r=t.getTopStartCorner().col,n=t.getBottomEndCorner().col,{columnIndex:s,origColspan:i}=E(v,this).getHeaderTreeNodeData(E(R,this).row,E(R,this).col);if(t.setHighlight(E(R,this)),i>t.getWidth()||s<r||s+i-1>n){const e=E(v,this).findTopMostEntireHeaderLevel((0,o.clamp)(r,s,s+i-1),(0,o.clamp)(n,s,s+i-1));t.highlight.row=e,t.highlight.col=t.from.col}}function H(e){const{highlight:t}=this.hot.getSelectedRangeActive(),r=this.hot._createCellCoords(t.row+e.row,t.col+e.col);if(!(r.isHeader()&&r.col>=0))return;const n=E(v,this).findLeftMostColumnIndex(r.row,r.col),s=E(v,this).findRightMostColumnIndex(r.row,r.col);if(e.col<0){const r=t.col>=n&&t.col<=s?n-1:s,i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r,-1);e.col=null===i?-this.hot.view.countRenderableColumnsInRange(0,t.col):-Math.max(this.hot.view.countRenderableColumnsInRange(i,t.col)-1,1)}else if(e.col>0){const r=t.col>=n&&t.col<=s?s+1:n,i=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r,1);e.col=null===i?this.hot.view.countRenderableColumnsInRange(t.col,this.hot.countCols()):Math.max(this.hot.view.countRenderableColumnsInRange(t.col,i)-1,1)}}function F(e,t,r){const n=e.row,s=this._getHeaderTreeNodeDataByCoords({row:n,col:e.col}),i=this._getHeaderTreeNodeDataByCoords({row:n,col:t.col});m(N,this,r.clone()),t.col<e.col?(s&&(e.col=s.columnIndex+s.origColspan-1),i&&(t.col=i.columnIndex)):t.col>=e.col&&(s&&(e.col=s.columnIndex),i&&(t.col=i.columnIndex+i.origColspan-1))}function U(e){if(E(v,this).getLayersCount()>0){e.length=0;for(let t=0;t<E(v,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function V(e){const t=E(v,this).getLayersCount();let r=e.startColumn,n=!!t;for(let s=0;s<t;s++){const t=E(v,this).findLeftMostColumnIndex(s,e.startColumn),i=this.hot.columnIndexMapper.getRenderableFromVisualIndex(t);if(t>=0&&(n=!1),(0,o.isNumeric)(i)&&i<e.startColumn){r=i;break}}e.startColumn=n?E(v,this).getHeaderTreeNodeData(0,r).columnIndex:r}function B(e,t){const r=this.ghostTable.getWidth(t);return e>r?e:r}function W(e,t,r){var n;const{label:s}=null!==(n=E(v,this).getHeaderTreeNodeData(r,t))&&void 0!==n?n:{label:""};return s}function Y(e,t){if(e<0)return this.hot.getCell(e,E(v,this).findLeftMostColumnIndex(e,t),!0)}function G(){this.updatePlugin()}function j(e,t){t||this.updatePlugin()}t.NestedHeaders=b},1858:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:no_borders",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REMOVE_BORDERS)},callback(t,r){e.prepareBorder(r,"noBorders")},disabled(){return!(0,s.checkSelectionBorders)(this)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},1872:()=>{},2029:(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 r=t.getCSSVariableValue("cell-autofill-size"),n=t.getCSSVariableValue("cell-autofill-border-width"),s=t.getCSSVariableValue("cell-autofill-border-color");return Object.freeze({width:r,height:r,borderWidth:n,borderStyle:"solid",borderColor:s})}},2090:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(58033),o=r(40785),a=r(27727);class l extends i.MapCollection{constructor(e,t){super(),(0,s.default)(this,"mergedValuesCache",[]),(0,s.default)(this,"aggregationFunction",void 0),(0,s.default)(this,"fallbackValue",void 0),this.aggregationFunction=e,this.fallbackValue=t}getMergedValues(){if(!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.mergedValuesCache;if(0===this.getLength())return[];const e=(0,o.arrayMap)(this.get(),e=>e.getValues()),t=[],r=(0,a.isDefined)(e[0])&&e[0].length||0;for(let n=0;n<r;n+=1){const r=[];for(let t=0;t<this.getLength();t+=1)r.push(e[t][n]);t.push(r)}return(0,o.arrayMap)(t,this.aggregationFunction)}getMergedValueAtIndex(e,t){const r=this.getMergedValues(t)[e];return(0,a.isDefined)(r)?r:this.fallbackValue}updateCache(){this.mergedValuesCache=this.getMergedValues(!1)}}t.AggregatedCollection=l},2332:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var n=r(53383),s=r(6083),i=r(40785),o=r(4407),a=r(1531);function l(e,t,r){h(e,t),t.set(e,r)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u(e,t,r){return e.set(d(e,t),r),r}function c(e,t){return e.get(d(e,t))}function d(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const g=t.PLUGIN_KEY="manualColumnResize",p=t.PLUGIN_PRIORITY=130,f="manualColumnWidths";var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakSet;class P extends n.BasePlugin{static get PLUGIN_KEY(){return g}static get PLUGIN_PRIORITY(){return p}constructor(e){var t,r;super(e),h(t=this,r=x),r.add(t),l(this,m,null),l(this,E,null),l(this,w,[]),l(this,y,null),l(this,C,null),l(this,v,null),l(this,S,null),l(this,R,null),l(this,T,this.hot.rootDocument.createElement("DIV")),l(this,N,this.hot.rootDocument.createElement("DIV")),l(this,_,null),l(this,A,!1),l(this,b,0),l(this,M,null),l(this,I,void 0),l(this,O,void 0),(0,s.addClass)(c(T,this),"manualColumnResizer"),(0,s.addClass)(c(N,this),"manualColumnResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){var e=this;this.enabled||(u(I,this,new a.PhysicalIndexToValueMap),c(I,this).addLocalHook("init",()=>d(x,this,L).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,c(I,this)),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(x,e,V).call(e,...r)},1),this.addHook("beforeStretchingColumnWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(x,e,B).call(e,...r)},1),this.addHook("beforeColumnResize",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(x,e,W).call(e,...r)}),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){u(O,this,c(I,this).getValues()),this.hot.columnIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualColumnWidths(){this.hot.runHooks("persistentStateSave",f,c(I,this).getValues())}loadManualColumnWidths(){const e={};return this.hot.runHooks("persistentStateLoad",f,e),e.value}setManualSize(e,t){const r=Math.max(t,20),n=this.hot.toPhysicalColumn(e);return c(I,this).setValueAtIndex(n,r),r}clearManualSize(e){const t=this.hot.toPhysicalColumn(e);c(I,this).setValueAtIndex(t,null)}setupHandlePosition(e){if(!e.parentNode||c(b,this)>1)return;u(m,this,e);const{_wt:t}=this.hot.view,r=t.wtTable.getCoords(c(m,this)),n=r.col;if(n<0)return;const a=(0,s.outerHeight)(c(m,this)),l=c(m,this).getBoundingClientRect();let h;n<t.getSetting("fixedColumnsStart")&&(h=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),r.row,r.col)),h||(h=t.wtOverlays.topOverlay.getRelativeCellPosition(c(m,this),r.row,r.col)),u(E,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)),u(w,this,[]);const d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&d){const e=this.hot.getSelectedRange();(0,i.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,r=e.getBottomEndCorner().col;(0,o.rangeEach)(t,r,e=>{c(w,this).includes(e)||c(w,this).push(e)})})}c(w,this).includes(c(E,this))||u(w,this,[c(E,this)]),u(R,this,h.start-6),u(S,this,parseInt(l.width,10)),c(T,this).style.top=`${h.top}px`,c(T,this).style[this.inlineDir]=`${c(R,this)+c(S,this)}px`,c(T,this).style.height=`${a}px`,this.hot.rootElement.appendChild(c(T,this))}refreshHandlePosition(){c(T,this).style[this.inlineDir]=`${c(R,this)+c(y,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerHeight)(c(T,this)),10),t=parseInt(c(T,this).style.top,10)+e,r=this.hot.view.getTableHeight();(0,s.addClass)(c(T,this),"active"),(0,s.addClass)(c(N,this),"active"),c(N,this).style.top=`${t}px`,this.refreshGuidePosition(),c(N,this).style.height=r-e+"px",this.hot.rootElement.appendChild(c(N,this))}refreshGuidePosition(){c(N,this).style[this.inlineDir]=c(T,this).style[this.inlineDir]}hideHandleAndGuide(){(0,s.removeClass)(c(T,this),"active"),(0,s.removeClass)(c(N,this),"active")}checkIfColumnHeader(e){const t=(0,s.closest)(e,["THEAD"],this.hot.rootElement),{topOverlay:r,topInlineStartCornerOverlay:n}=this.hot.view._wt.wtOverlays;return[r.clone.wtTable.THEAD,n.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,r)=>{const n=this.hot.runHooks("beforeColumnResize",c(C,this),t,!0);void 0!==n&&u(C,this,n),this.setManualSize(t,c(C,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!0),r&&e()};if(c(b,this)>=2){c(w,this).length>1?((0,i.arrayEach)(c(w,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(w,this),e=>{t(e,!0)})}u(b,this,0),u(M,this,null)}bindEvents(){const{rootWindow:e,rootElement:t}=this.hot;this.eventManager.addEventListener(t,"mouseover",e=>d(x,this,D).call(this,e)),this.eventManager.addEventListener(t,"mousedown",e=>d(x,this,k).call(this,e)),this.eventManager.addEventListener(e,"mousemove",e=>d(x,this,H).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>d(x,this,F).call(this)),this.eventManager.addEventListener(c(T,this),"contextmenu",()=>d(x,this,U).call(this))}destroy(){super.destroy()}}function L(){const e=this.hot.getSettings()[g],t=this.loadManualColumnWidths();void 0!==t?this.hot.batchExecution(()=>{t.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0):Array.isArray(e)?(this.hot.batchExecution(()=>{e.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0),u(O,this,e)):!0===e&&Array.isArray(c(O,this))&&this.hot.batchExecution(()=>{c(O,this).forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0)}function D(e){if(!(0,s.isDetached)(e.target)&&!0!==c(A,this)&&this.checkIfColumnHeader(e.target)){const t=this.getClosestTHParent(e.target);if(!t)return;const r=t.getAttribute("colspan");!t||null!==r&&"1"!==r||c(_,this)||this.setupHandlePosition(t)}}function k(e){e.target.parentNode===this.hot.rootElement&&(0,s.hasClass)(e.target,"manualColumnResizer")&&(this.setupHandlePosition(c(m,this)),this.setupGuidePosition(),u(_,this,!0),null===c(M,this)&&(u(M,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(c(M,this))),u(b,this,c(b,this)+1),this.startX=e.pageX,u(C,this,c(S,this)))}function H(e){if(c(_,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();u(y,this,c(S,this)+t),(0,i.arrayEach)(c(w,this),e=>{u(C,this,this.setManualSize(e,c(y,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function F(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{this.hot.runHooks("beforeColumnResize",c(C,this),t,!1),r&&e(),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!1)};if(c(_,this)){if(this.hideHandleAndGuide(),u(_,this,!1),c(C,this)!==c(S,this)){c(w,this).length>1?((0,i.arrayEach)(c(w,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(w,this),e=>{t(e,!0)})}this.setupHandlePosition(c(m,this))}}function U(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(c(T,this)),this.hot.rootElement.removeChild(c(N,this)),u(_,this,!1),u(A,this,!0),this.hot._registerImmediate(()=>{u(A,this,!1)})}function V(e,t){let r=e;if(this.enabled){const e=this.hot.toPhysicalColumn(t),n=c(I,this).getValueAtIndex(e);this.hot.getSettings()[g]&&n&&(r=n)}return r}function B(e,t){const r=c(I,this).getValueAtIndex(this.hot.toPhysicalColumn(t));return"number"==typeof r?r:e}function W(){this.hot.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked()}t.ManualColumnResize=P},2382:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2509:()=>{},2520:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(4665);t.registerRootComparator=n.registerRootComparator,t.getRootComparator=n.getRootComparator,t.getCompareFunctionFactory=n.getCompareFunctionFactory;var s=r(12688);t.FIRST_AFTER_SECOND=s.FIRST_AFTER_SECOND,t.FIRST_BEFORE_SECOND=s.FIRST_BEFORE_SECOND,t.DO_NOT_SWAP=s.DO_NOT_SWAP,t.sort=s.sort},2527:()=>{},2668:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseWithoutSaving",callback(e){const t=e._getEditorManager();t.closeEditorAndRestoreOriginalValue(e.getShortcutManager().isCtrlPressed()),t.activeEditor.focus()}}},2686:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(23718);class o extends i.ViewportBaseCalculator{constructor(e){let{calculationTypes:t,viewportHeight:r,scrollOffset:n,totalRows:i,defaultRowHeight:o,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=o,this.viewportHeight=r,this.scrollOffset=n,this.zeroBasedScrollOffset=Math.max(n,0),this.totalRows=i,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=o},2732:()=>{},2788:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(97996)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_INLINE_START)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},2835:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeActive(),t=e?(0,s.clamp)(e.getWidth()-1,0,1):0;return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY,t)},callback(){e.copyColumnHeadersOnly()},disabled(){if(!this.hasColHeaders())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 n=r(15230),s=r(4407)},2847:(e,t,r)=>{"use strict";var n=r(94266),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2898:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(81056);var s=r(53383),i=r(17715),o=r(40785),a=r(6083),l=r(31075),h=r(4407),u=n(r(17283)),c=n(r(83276));function d(e,t,r){g(e,t),t.set(e,r)}function g(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(e,t,r){return e.set(m(e,t),r),r}function f(e,t){return e.get(m(e,t))}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}i.Hooks.getSingleton().register("beforeColumnMove"),i.Hooks.getSingleton().register("afterColumnMove");const E=t.PLUGIN_KEY="manualColumnMove",w=t.PLUGIN_PRIORITY=120,y="ht__manualColumnMove",C="show-ui",v="on-moving--columns",S="after-selection--columns";var R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap,A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakMap,P=new WeakMap,L=new WeakSet;class D extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=L),t.add(e),d(this,R,new u.default(this.hot)),d(this,T,new c.default(this.hot)),d(this,N,[]),d(this,_,0),d(this,A,!1),d(this,b,{}),d(this,M,void 0),d(this,I,void 0),d(this,O,void 0),d(this,x,void 0),d(this,P,void 0)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;this.enabled||(this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(L,e,k).call(e,...r)}),this.addHook("beforeOnCellMouseOver",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(L,e,F).call(e,...r)}),this.addHook("afterScrollVertically",()=>m(L,this,V).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(L,e,B).call(e,...r)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,y),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,y),this.unregisterEvents(),f(R,this).destroy(),f(T,this).destroy(),super.disablePlugin()}moveColumn(e,t){return this.moveColumns([e],t)}moveColumns(e,t){const r=f(M,this),n=this.isMovePossible(e,t),s=this.hot.runHooks("beforeColumnMove",e,t,r,n);if(p(M,this,void 0),!1===s)return;n&&this.hot.columnIndexMapper.moveIndexes(e,t);const i=n&&this.isColumnOrderChanged(e,t);return this.hot.runHooks("afterColumnMove",e,t,r,n,i),i}dragColumn(e,t){return this.dragColumns([e],t)}dragColumns(e,t){const r=this.countFinalIndex(e,t);return p(M,this,t),this.moveColumns(e,r)}isMovePossible(e,t){const r=this.hot.columnIndexMapper.getNotTrimmedIndexesLength(),n=e.length+t>r,s=t<0,i=e.some(e=>e<0),o=e.some(e=>e>=r);return!(n||s||i||o)}isColumnOrderChanged(e,t){return e.some((e,r)=>e-r!==t)}countFinalIndex(e,t){const r=(0,o.arrayReduce)(e,(e,r)=>(r<t&&(e+=1),e),0);return t-r}getColumnsWidth(e,t){const r=this.hot.columnIndexMapper;let n=0;for(let s=e;s<=t;s+=1){const e=r.getRenderableFromVisualIndex(s);s<0?n+=this.hot.view._wt.wtViewport.getRowHeaderWidth()||0:null!==e&&(n+=this.hot.view._wt.wtTable.getColumnWidth(e)||0)}return n}moveBySettingsOrLoad(){const e=this.hot.getSettings()[E];if(Array.isArray(e))this.moveColumns(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveColumns(e,0)}}isFixedColumnsStart(e){return e<this.hot.getSettings().fixedColumnsStart}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualColumnMove",this.hot.columnIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualColumnMove",e),e.value?e.value:[]}prepareColumnsToMoving(e,t){const r=[];return(0,h.rangeEach)(e,t,e=>{r.push(e)}),r}refreshPositions(){const e=this.hot.view.getFirstFullyVisibleColumn();this.isFixedColumnsStart(f(I,this))&&e>0&&this.hot.scrollViewportTo({col:this.hot.columnIndexMapper.getNearestNotHiddenIndex(e-1,-1)});const t=this.hot.view._wt.wtTable,r=this.hot.view._wt.wtOverlays.scrollableElement,n="number"==typeof r.scrollX?r.scrollX:r.scrollLeft;let s=this.hot.view.THEAD.offsetLeft+this.getColumnsWidth(0,f(I,this)-1);const i=t.hider.offsetWidth,o=t.TBODY.offsetLeft,l=f(R,this).getOffset().start,h=f(R,this).getSize().width;let u=0,c=0;if(this.hot.isRtl()){const e=this.hot.rootWindow,t=(0,a.outerWidth)(this.hot.rootElement),s=e.innerWidth-f(O,this)-t;c=e.innerWidth-f(b,this).eventPageX-s-(void 0===r.scrollX?n:0)}else c=f(b,this).eventPageX-(f(O,this)-(void 0===r.scrollX?n:0));if(f(x,this)&&(u=this.hot.view._wt.wtOverlays.inlineStartOverlay.clone.wtTable.getColumnHeader(-1).offsetWidth),this.isFixedColumnsStart(f(I,this))&&(s+=n),s+=u,f(I,this)<0)f(P,this)>0?f(b,this).col=0:f(b,this).col=e>0?e-1:e;else if(f(b,this).TD.offsetWidth/2+s<=c){const e=f(I,this)>=f(_,this)?f(_,this)-1:f(I,this);f(b,this).col=e+1,s+=f(b,this).TD.offsetWidth}else f(b,this).col=f(I,this);let d=c,g=s;c+h+l>=i?d=i-h-l:c+l<o+u&&(d=o+u+Math.abs(l)),s>=i-1?g=i-1:0===g?g=1:void 0!==r.scrollX&&f(I,this)<f(P,this)&&(g-=f(O,this)<=r.scrollX?f(O,this):0),f(R,this).setPosition(null,d),f(T,this).setPosition(null,g)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>m(L,this,H).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>m(L,this,U).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){f(R,this).build(),f(T,this).build()}destroy(){f(R,this).destroy(),f(T,this).destroy(),super.destroy()}}function k(e,t,r,n){const s=this.hot.view._wt.wtTable,i=this.hot.selection.isSelectedByColumnHeader(),o=this.hot.getSelectedRangeActive(),h=(0,a.hasClass)(e.target,"sortAction");if(!o||!i||f(A,this)||0!==e.button||h)return p(A,this,!1),f(N,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[v,C]);const u=f(T,this).isBuilt()&&!f(T,this).isAppended(),c=f(R,this).isBuilt()&&!f(R,this).isAppended();u&&c&&(f(T,this).appendTo(s.hider),f(R,this).appendTo(s.hider));const{from:d,to:g}=o,m=Math.min(d.col,g.col),E=Math.max(d.col,g.col);if(t.row<0&&t.col>=m&&t.col<=E){n.column=!0,p(A,this,!0);const i=r.firstChild?(0,l.offsetRelativeTo)(e,r.firstChild).x:e.offsetX;f(b,this).eventPageX=e.pageX,p(I,this,t.col),f(b,this).TD=r,f(b,this).col=t.col,p(N,this,this.prepareColumnsToMoving(m,E)),p(x,this,!!this.hot.getSettings().rowHeaders),p(_,this,this.hot.countCols()),p(P,this,this.hot.getSettings().fixedColumnsStart),p(O,this,(0,a.offset)(this.hot.rootElement).left);const o=f(x,this)?-1:0,h=s.holder.scrollTop+s.getColumnHeaderHeight(0)+1,u=t.col<f(P,this),c=this.hot.view._wt.wtOverlays.inlineStartOverlay.getOverlayOffset(),d=Math.abs(i-(this.hot.isRtl()?r.offsetWidth:0)),g=this.getColumnsWidth(m,t.col-1)+d,w=this.getColumnsWidth(o,m-1)+(u?c:0)+g;f(R,this).setPosition(h,w),f(R,this).setSize(this.getColumnsWidth(m,E),s.hider.offsetHeight-h),f(R,this).setOffset(null,-g),(0,a.addClass)(this.hot.rootElement,v)}else(0,a.removeClass)(this.hot.rootElement,S),p(A,this,!1),f(N,this).length=0}function H(e){f(A,this)&&(f(b,this).eventPageX=e.pageX,this.refreshPositions())}function F(e,t,r,n){this.hot.getSelectedRangeActive()&&f(A,this)&&(f(N,this).indexOf(t.col)>-1?(0,a.removeClass)(this.hot.rootElement,C):(0,a.addClass)(this.hot.rootElement,C),n.row=!0,n.column=!0,n.cell=!0,p(I,this,t.col),f(b,this).TD=r)}function U(){const e=f(b,this).col,t=f(N,this).length;if(p(I,this,void 0),p(A,this,!1),(0,a.removeClass)(this.hot.rootElement,[v,C,S]),this.hot.selection.isSelectedByColumnHeader()&&(0,a.addClass)(this.hot.rootElement,S),t<1||void 0===e)return;const r=f(N,this)[0],n=this.hot.toPhysicalColumn(r),s=this.dragColumns(f(N,this),e);if(f(N,this).length=0,!0===s){this.persistentStateSave(),this.hot.view.adjustElementsSize(),this.hot.render();const e=this.hot.toVisualColumn(n),r=e+t-1;this.hot.selectColumns(e,r)}}function V(){const e=this.hot.view._wt.wtTable,t=e.getColumnHeaderHeight(0)+1+e.holder.scrollTop;f(R,this).setPosition(t),f(R,this).setSize(null,e.hider.offsetHeight-t)}function B(){this.moveBySettingsOrLoad()}t.ManualColumnMove=D},2943:()=>{},3166:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(21389),s=r(11492);function i(e,t,r){(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,r)}function o(e,t){return e.get(a(e,t))}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;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,n.clone)({href:"#",tagName:"a",tabIndex:-1,role:"button"})}constructor(e,t){super(e,(0,n.extend)(h.DEFAULTS,t)),i(this,l,void 0)}build(){var e,t,r;super.build(),e=l,t=this,r=this._element.firstChild,e.set(a(e,t),r)}update(){this.isBuilt()&&(o(l,this).textContent=this.translateIfPossible(this.options.textContent))}focus(){this.isBuilt()&&o(l,this).focus()}activate(){o(l,this).click()}}t.LinkUI=h},3418:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDownByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeActive(),s=Math.min(n.row+e.countVisibleRows(),e.countRows()-1),i=r.getNearestNotHiddenIndex(s,-1);if(null!==i){const r=e._createCellCoords(i,n.col),s=n.row-e.getFirstFullyVisibleRow(),o=Math.min(r.row-s,e.countRows()-1);t.markSource("keyboard"),t.setRangeEnd(r,e.getActiveSelectionLayerIndex()),t.markEndSource(),e.scrollViewportTo({row:o,verticalSnap:"top",horizontalSnap:"start"})}}}},3442:(e,t,r)=>{"use strict";t.__esModule=!0,t.detectSelectionType=p,t.normalizeSelectionFactory=f,t.transformSelectionToColumnDistance=function(e){const t=p(e.getSelected());if(t===o||t===a)return[];const r=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),n=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:i}=r(e),o=Math.max(t.col,0),a=i.col-o+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>o+t),e=>{n.has(e)||n.add(e)})});const i=Array.from(n).sort((e,t)=>e-t);return(0,s.arrayReduce)(i,(e,t,r,n)=>(0!==r&&t===n[r-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},t.transformSelectionToRowDistance=function(e){const t=p(e.getSelected());if(t===o||t===a)return[];const r=f(t,{createCellCoords:e._createCellCoords.bind(e),createCellRange:e._createCellRange.bind(e)}),n=new Set;(0,s.arrayEach)(e.getSelected(),e=>{const{from:t,to:i}=r(e),o=Math.max(t.row,0),a=i.row-o+1;(0,s.arrayEach)(Array.from(new Array(a),(e,t)=>o+t),e=>{n.has(e)||n.add(e)})});const i=Array.from(n).sort((e,t)=>e-t);return(0,s.arrayReduce)(i,(e,t,r,n)=>(0!==r&&t===n[r-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e),[])},r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(81056);var n=r(74216),s=r(40785),i=r(27727);const o=t.SELECTION_TYPE_UNRECOGNIZED=0,a=t.SELECTION_TYPE_EMPTY=1,l=t.SELECTION_TYPE_ARRAY=2,h=t.SELECTION_TYPE_OBJECT=3,u=t.SELECTION_TYPES=[h,l],c=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],d=Symbol("root"),g=Symbol("child");function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;if(t!==d&&t!==g)throw new Error("The second argument is used internally only and cannot be overwritten.");const r=Array.isArray(e),s=t===d;let i=o;if(r){const t=e[0];if(0===e.length)i=a;else if(s&&t instanceof n.CellRange)i=h;else if(s&&Array.isArray(t))i=p(t,g);else if(e.length>=2&&e.length<=4){!e.some((e,t)=>!c[t].includes(typeof e))&&(i=l)}}return i}function f(e){let{createCellCoords:t,createCellRange:r,keepDirection:n=!1,propToCol:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!u.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(o){const a=e===h;let l=a?o.from.row:o[0],u=a?o.from.col:o[1],c=a?o.to.row:o[2],d=a?o.to.col:o[3];if("function"==typeof s&&("string"==typeof u&&(u=s(u)),"string"==typeof d&&(d=s(d))),(0,i.isUndefined)(c)&&(c=l),(0,i.isUndefined)(d)&&(d=u),!n){const e=l,t=u,r=c,n=d;l=Math.min(e,r),u=Math.min(t,n),c=Math.max(e,r),d=Math.max(t,n)}const g=a?o.highlight.clone():t(l,u),p=t(l,u),f=t(c,d);return r(g,p,f)}}},3518:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(94178),o=r(70792),a=r(90501),l=r(21177),h=r(99793),u=r(14483)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{every:function(e){a(this);try{o(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return!i(t,function(t,n){if(!e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3538:()=>{},3732:e=>{function t(){}t.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function s(){n.off(e,s),t.apply(r,arguments)}return s._=t,this.on(e,s,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,s=r.length;n<s;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],s=[];if(n&&t)for(var i=0,o=n.length;i<o;i++)n[i].fn!==t&&n[i].fn._!==t&&s.push(n[i]);return s.length?r[e]=s:delete r[e],this}},e.exports=t,e.exports.TinyEmitter=t},3837:(e,t,r)=>{"use strict";t.__esModule=!0,t.createMenuNavigator=function(e){return(0,n.createPaginator)({size:()=>e.countRows(),onItemSelect(t,r){const n=e.getCell(t,0);if(!n||(0,s.isSeparator)(n)||(0,s.isDisabled)(n)||(0,s.isSelectionDisabled)(n))return!1;e.selectCell(t,0,...r?[t,0,!1,!1]:[])},onClear(){e.deselectCell()}})};var n=r(43679),s=r(55517)},4407:(e,t,r)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=typeof e;if("number"===r)return!isNaN(e)&&isFinite(e);if("string"===r){if(0===e.length)return!1;if(1===e.length)return/\d/.test(e);const r=Array.from(new Set([".",...t])).map(e=>`\\${e}`).join("|");return new RegExp(`^[+-]?(((${r})?\\d+((${r})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(e.trim())}return"object"===r&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}t.__esModule=!0,t.clamp=function(e,t,r){if(Math.min(e,t)===e)return t;if(Math.max(e,r)===e)return r;return e},t.getParsedNumber=function(e){const t=e.replace(",",".");if(!1===isNaN(parseFloat(t)))return parseFloat(t);return null},t.isNumeric=n,t.isNumericLike=function(e){return n(e,[","])},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},t.rangeEach=function(e,t,r){let n=-1;"function"==typeof t?(r=t,t=e):n=e-1;for(;++n<=t&&!1!==r(n););},t.rangeEachReverse=function(e,t,r){let n=e+1;"function"==typeof t&&(r=t,t=0);for(;--n>=t&&!1!==r(n););},t.valueAccordingPercent=function(e,t){return t=parseInt(t.toString().replace("%",""),10),t=isNaN(t)?0:t,parseInt(e*t/100,10)},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(940)},4462:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(96127).clear;n({global:!0,bind:!0,enumerable:!0,forced:s.clearImmediate!==i},{clearImmediate:i})},4553:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPriorityMap=function(){let{errorPriorityExists:e,errorPriorityNaN:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=new Map;return e=(0,s.isFunction)(e)?e:l,t=(0,s.isFunction)(t)?t:h,{addItem:function(s,i){if(!(0,n.isNumeric)(s))throw new Error(t(s));if(r.has(s))throw new Error(e(s));r.set(s,i)},getItems:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;const[t,n]=a.get(e)||a.get(i);return[...r].sort((e,r)=>e[0]<r[0]?t:n).map(e=>e[1])}}},r(52490),r(34478),r(940);var n=r(4407),s=r(99242);const i=t.ASC="asc",o=t.DESC="desc",a=new Map([[i,[-1,1]],[o,[1,-1]]]),l=e=>`The priority '${e}' is already declared in a map.`,h=e=>`The priority '${e}' is not a number.`},4665:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCompareFunctionFactory=function(e){if(c(e))return u(e);return u(n.COLUMN_DATA_TYPE)};var n=r(17008),s=r(93490),i=r(33440),o=r(92149),a=r(60764),l=r(55585);const{register:h,getItem:u,hasItem:c}=(0,l.staticRegister)("sorting.compareFunctionFactory"),{register:d,getItem:g}=(0,l.staticRegister)("sorting.mainSortComparator");t.getRootComparator=g,t.registerRootComparator=d,h(i.COLUMN_DATA_TYPE,i.compareFunctionFactory),h(o.COLUMN_DATA_TYPE,o.compareFunctionFactory),h(n.COLUMN_DATA_TYPE,n.compareFunctionFactory),h(s.COLUMN_DATA_TYPE,s.compareFunctionFactory),h(a.COLUMN_DATA_TYPE,a.compareFunctionFactory)},4911:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(21389),i=n(r(50496));class o{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)(o,i.default);t.default=o},4998:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="gt";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_GREATER_THAN,inputsCount:1,showOperators:!0})},5003:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.timeValidator=a;var s=n(r(37539));const i=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],o=t.VALIDATOR_TYPE="time";function a(e,t){const r=this.timeFormat||"h:mm:ss a";let n=!0,o=e;null===o&&(o=""),o=/^\d{3,}$/.test(o)?parseInt(o,10):o;const a=/^\d{1,2}$/.test(o);a&&(o+=":00");const l=(0,s.default)(o,i,!0).isValid()?(0,s.default)(o):(0,s.default)(o,r);let h=l.isValid(),u=(0,s.default)(o,r,!0).isValid()&&!a;if(this.allowEmpty&&""===o&&(h=!0,u=!0),h||(n=!1),!h&&u&&(n=!0),h&&!u)if(!0===this.correctFormat){const e=l.format(r);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"timeValidator"),n=!0}else n=!1;t(n)}a.VALIDATOR_TYPE=o},5022:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(85364);t.RENDERER_TYPE=n.RENDERER_TYPE,t.textRenderer=n.textRenderer},5184:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(21389),i=n(r(50496));function o(e,t,r){(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,r)}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var l=new WeakMap;class h{constructor(){o(this,l,[])}subscribe(e){var t,r;return this.addLocalHook("change",e),this._write((r=this,(t=l).get(a(t,r)))),this}unsubscribe(){return this.runLocalHooks("unsubscribe"),this.clearLocalHooks(),this}_write(e){return e.length>0&&this.runLocalHooks("change",e),this}_writeInitialChanges(e){var t,r,n;r=this,n=e,(t=l).set(a(t,r),n)}}t.ChangesObserver=h,(0,s.mixin)(h,i.default)},5841:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="ends_with";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).endsWith((0,s.stringify)(r))}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_ENDS_WITH,inputsCount:1,showOperators:!0})},5864:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];let r=e;k[r]||(r=L);return(0,s.arrayEach)(k[r],e=>{let r;r=e===i.SEPARATOR?{name:i.SEPARATOR}:(0,n.clone)((0,o.getConditionDescriptor)(e)),t.push(r)}),t},r(99356);var n=r(21389),s=r(40785),i=r(70095),o=r(11278),a=r(70133);t.CONDITION_NONE=a.CONDITION_NAME;var l=r(64922);t.CONDITION_EMPTY=l.CONDITION_NAME;var h=r(35373);t.CONDITION_NOT_EMPTY=h.CONDITION_NAME;var u=r(7751);t.CONDITION_EQUAL=u.CONDITION_NAME;var c=r(97392);t.CONDITION_NOT_EQUAL=c.CONDITION_NAME;var d=r(4998);t.CONDITION_GREATER_THAN=d.CONDITION_NAME;var g=r(23451);t.CONDITION_GREATER_THAN_OR_EQUAL=g.CONDITION_NAME;var p=r(39081);t.CONDITION_LESS_THAN=p.CONDITION_NAME;var f=r(61690);t.CONDITION_LESS_THAN_OR_EQUAL=f.CONDITION_NAME;var m=r(76823);t.CONDITION_BETWEEN=m.CONDITION_NAME;var E=r(79696);t.CONDITION_NOT_BETWEEN=E.CONDITION_NAME;var w=r(26241);t.CONDITION_BEGINS_WITH=w.CONDITION_NAME;var y=r(5841);t.CONDITION_ENDS_WITH=y.CONDITION_NAME;var C=r(48130);t.CONDITION_CONTAINS=C.CONDITION_NAME;var v=r(37227);t.CONDITION_NOT_CONTAINS=v.CONDITION_NAME;var S=r(57093);t.CONDITION_DATE_BEFORE=S.CONDITION_NAME;var R=r(9598);t.CONDITION_DATE_AFTER=R.CONDITION_NAME;var T=r(36781);t.CONDITION_TOMORROW=T.CONDITION_NAME;var N=r(57861);t.CONDITION_TODAY=N.CONDITION_NAME;var _=r(52e3);t.CONDITION_YESTERDAY=_.CONDITION_NAME;var A=r(97021);t.CONDITION_BY_VALUE=A.CONDITION_NAME;var b=r(27823);t.CONDITION_TRUE=b.CONDITION_NAME;var M=r(57976);t.CONDITION_FALSE=M.CONDITION_NAME;var I=r(36327);t.OPERATION_AND=I.OPERATION_ID;var O=r(1487);t.OPERATION_OR=O.OPERATION_ID;var x=r(9696);t.OPERATION_OR_THEN_VARIABLE=x.OPERATION_ID;const P=t.TYPE_NUMERIC="numeric",L=t.TYPE_TEXT="text",D=t.TYPE_DATE="date",k=t.TYPES={[P]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,d.CONDITION_NAME,g.CONDITION_NAME,p.CONDITION_NAME,f.CONDITION_NAME,m.CONDITION_NAME,E.CONDITION_NAME],[L]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,w.CONDITION_NAME,y.CONDITION_NAME,i.SEPARATOR,C.CONDITION_NAME,v.CONDITION_NAME],[D]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,S.CONDITION_NAME,R.CONDITION_NAME,m.CONDITION_NAME,i.SEPARATOR,T.CONDITION_NAME,N.CONDITION_NAME,_.CONDITION_NAME]}},6036:()=>{},6083:(e,t,r)=>{"use strict";t.__esModule=!0,t.addClass=u,t.addEvent=function(e,t,r){e.addEventListener(t,r,!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,r){const n=[];let s=e;for(;s&&(s=a(s,t,r),s&&(!r||r.contains(s)));)n.push(s),s=s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s.host:s.parentNode;const i=n.length;return i?n[i-1]:null},t.empty=g,t.fastInnerHTML=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];p.test(t)?e.innerHTML=r?(0,n.sanitize)(t):t:f(e,t)},t.fastInnerText=f,t.findFirstParentWithClass=function(e,t){const r={element:void 0,classNames:[]};let n=e;for(;null!==n&&n!==e.ownerDocument.documentElement&&!r.element;){if("string"==typeof t&&n.classList.contains(t))r.element=n,r.classNames.push(t);else if(t instanceof RegExp){const e=Array.from(n.classList).filter(e=>t.test(e));e.length&&(r.element=n,r.classNames.push(...e))}n=n.parentElement}return r},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,i.isWindowsOS)())return 0;return Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2},t.getFrameElement=o,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,r=-1,n=null,s=e;for(;null!==s;){if(r===t){n=s;break}s.host&&s.nodeType===Node.DOCUMENT_FRAGMENT_NODE?s=s.host:(r+=1,s=s.parentNode)}return n},t.getParentWindow=function(e){return o(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(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,r=t?t.defaultView:void 0;t||(t=e.document?e.document:e,r=t.defaultView);const n=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:i}=s.style;if([e,t,i].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:i}=r.getComputedStyle(s)),n.includes(e)||n.includes(t)||n.includes(i))return s;if(s.clientHeight<=s.scrollHeight+1&&(n.includes(i)||n.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(n.includes(t)||n.includes(e)))return s;s=s.parentNode}return r},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===w&&(w=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 r=e.createElement("div");(0,i.isSafari)()&&!(0,i.isMobileBrowser)()&&r.classList.add("htScrollbarSafariTest");r.style.boxSizing="content-box",r.style.height="150px",r.style.left="0px",r.style.overflow="hidden",r.style.position="absolute",r.style.top="0px",r.style.width="200px",r.style.visibility="hidden",r.appendChild(t),(e.body||e.documentElement).appendChild(r);const n=t.getBoundingClientRect().width;r.style.overflow="scroll";let s=t.getBoundingClientRect().width;n===s&&(s=r.clientWidth);return(e.body||e.documentElement).removeChild(r),parseFloat((n-s).toFixed(3))}(e));return w},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 r="";e.getSelection?r=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(r=t.selection.createRange().text);return r},t.getStyle=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===r)return"width"===t?`${r.innerWidth}px`:"height"===t?`${r.innerHeight}px`:void 0;const n=e.style[t];if(""!==n&&void 0!==n)return n;const s=r.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,r=t.defaultView;let n=e.parentNode;for(;n&&n.style&&t.body!==n;){if("visible"!==n.style.overflow&&""!==n.style.overflow)return n;const e=r.getComputedStyle(n),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),i=e.getPropertyValue("overflow-y"),o=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(i)||t.includes(o))return n;n=n.parentNode}return r},t.getWindowScrollLeft=E,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 r=e;for(;r.parentNode;){if("0px"===r.style.height||"0"===r.style.height)return"hidden"===t.getComputedStyle(r).overflow;r=r.parentNode}return!1},t.index=function(e){let t=0,r=e;if(r.previousSibling)for(;r=r.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 r=e.parentNode,n=[];"string"==typeof t?n=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):n.push(t);for(;null!==r;){if(n.indexOf(r)>-1)return!0;r=r.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(r&&null!==r&&e instanceof r)},t.isInput=y,t.isInternalElement=function(e,t){const r=e.closest(".handsontable");return!!r&&(r.parentNode===t||r===t)},t.isOutsideInput=C,t.isVisible=function e(t){const r=t.ownerDocument.documentElement,n=t.ownerDocument.defaultView;let s=t;for(;s!==r;){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"===n.getComputedStyle(s).display)return!1;s=s.parentNode}return!0},t.makeElementContentEditableAndSelectItsContent=v,t.matchesCSSRules=function(e,t){const{selectorText:r}=t;let n=!1;t.type===CSSRule.STYLE_RULE&&r&&(e.msMatchesSelector?n=e.msMatchesSelector(r):e.matches&&(n=e.matches(r)));return n},t.observeVisibilityChangeOnce=function(e,t){new IntersectionObserver((r,n)=>{r.forEach(r=>{r.isIntersecting&&null!==e.offsetParent&&(t(),n.unobserve(e))})},{root:e.ownerDocument.body}).observe(e)},t.offset=function(e){const t=e.ownerDocument,r=t.defaultView,n=t.documentElement;let s,i,o,a=e;s=a.offsetLeft,i=a.offsetTop,o=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,i+=a.offsetTop,o=a;o&&"fixed"===o.style.position&&(s+=r.pageXOffset||n.scrollLeft,i+=r.pageYOffset||n.scrollTop);return{left:s,top:i}},t.outerHeight=function(e){return e.getBoundingClientRect().height},t.outerWidth=function(e){return e.offsetWidth},t.overlayContainsElement=function(e,t,r){const n=r.parentElement.querySelector(`.ht_clone_${e}`);return n?n.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:r,regexes:n}=h(t,!0);r.forEach(t=>{""!==t&&e.removeAttribute(t)}),n.forEach(t=>{e.getAttributeNames().forEach(r=>{t.test(r)&&e.removeAttribute(r)})})},t.removeClass=c,t.removeContentEditableFromElementAndDeselect=S,t.removeEvent=function(e,t,r){e.removeEventListener(t,r,!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 r=t.childNodes;for(let t=r.length-1;t>=0;t--)e(r[t])}},t.resetCssTransform=function(e){e.style.transform&&""!==e.style.transform&&(e.style.transform="")},t.runWithSelectedContendEditableElement=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];v(e,r),t(),S(e,r)},t.selectElementIfAllowed=function(e){C(e.ownerDocument.activeElement)||e.select()},t.setAttribute=d,t.setCaretPosition=function(e,t,r){void 0===r&&(r=t);if(e.setSelectionRange){e.focus();try{e.setSelectionRange(t,r)}catch(n){const s=e.parentNode,i=s.style.display;s.style.display="block",e.setSelectionRange(t,r),s.style.display=i}}},t.setOverlayPosition=function(e,t,r){e.style.transform=`translate3d(${t},${r},0)`},r(52490),r(99356),r(34478),r(29810),r(31143);var n=r(82887),s=r(13618),i=r(55924);function o(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:n,DOCUMENT_FRAGMENT_NODE:s}=Node;let i=e;for(;null!=i&&i!==r;){const{nodeType:e,nodeName:r}=i;if(e===n&&(t.includes(r)||t.includes(i)))return i;const{host:o}=i;i=o&&e===s?o:i.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 r=[],n=[];return n.push(...e.filter(e=>{const n=e instanceof RegExp;return n&&t&&r.push(e),!n})),t?{regexFree:n,regexes:r}:n}function u(e,t){"string"==typeof t&&(t=t.split(" ")),(t=l(t)).length>0&&e.classList.add(...t)}function c(e,t){"string"==typeof t?t=t.split(" "):t instanceof RegExp&&(t=[t]);let{regexFree:r,regexes:n}=h(t,!0);r=l(r),r.length>0&&e.classList.remove(...r),n.forEach(t=>{e.classList.forEach(r=>{t.test(r)&&e.classList.remove(r)})})}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;Array.isArray(t)||(t=[[t,r]]),t.forEach(t=>{Array.isArray(t)&&""!==t[0]&&e.setAttribute(...t)})}function g(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const p=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const r=e.firstChild;r&&3===r.nodeType&&null===r.nextSibling?r.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 E(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let w;function y(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function C(e){return y(e)&&!1===e.hasAttribute("data-hot-input")}function v(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=e.ownerDocument,i=n.createRange(),o=n.defaultView.getSelection();d(e,"contenteditable",!0),r&&d(e,...(0,s.A11Y_HIDDEN)()),t&&u(e,"invisibleSelection"),i.selectNodeContents(e),o.removeAllRanges(),o.addRange(i)}function S(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=e.ownerDocument.defaultView.getSelection();e.hasAttribute("aria-hidden")&&e.removeAttribute("aria-hidden"),r.removeAllRanges(),t&&c(e,"invisibleSelection"),e.removeAttribute("contenteditable")}},6105:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let i,o=0,a=0;for(;e.length>0&&i!==e.length;)if(i=e.length,e.match(s))e=e.replace(s,""),o+=1,t[a][o]="";else if(e.match(r))e=e.replace(r,""),o=0,a+=1,t[a]=[""];else{let r="";if(e.startsWith('"')){let t=0,n=!0;for(;n;){const s=e.slice(0,1);'"'===s&&(t+=1),r+=s,(0===(e=e.slice(1)).length||e.match(/^[\t\r\n]/)&&t%2==0)&&(n=!1)}r=r.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,e=>new Array(Math.floor(e.length/2)).fill('"').join(""))}else{const t=e.match(n);r=t?t[0]:"",e=e.slice(r.length)}t[a][o]=r}return t},t.stringify=function(e){let t,r,n,s,i,o="";for(t=0,r=e.length;t<r;t+=1){for(s=e[t].length,n=0;n<s;n+=1)n>0&&(o+="\t"),i=e[t][n],"string"==typeof i?i.indexOf("\n")>-1?o+=`"${i.replace(/"/g,'""')}"`:o+=i:o+=null==i?"":i;t!==r-1&&(o+="\n")}return o};const r=/^(\r\n|\n\r|\r|\n)/,n=/^[^\t\r\n]+/,s=/^\t/},6224:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(56300)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},6229:()=>{},6232:(e,t,r)=>{"use strict";t.__esModule=!0,r(99356);var n=r(53076),s=r(40785);class i extends n.PhysicalIndexToValueMap{constructor(){super(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}getHiddenIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.HidingMap=i},6329:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostLeft",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByColumnHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(...e.isRtl()?[e.countCols()-1,-1]:[0,1]),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},6396:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(6083),i=r(21389),o=n(r(50496)),a=r(73029);function l(e,t,r){(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,r)}function h(e,t){return e.get(c(e,t))}function u(e,t,r){return e.set(c(e,t),r),r}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap;class C{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t,r){var n=this;l(this,d,void 0),l(this,g,void 0),l(this,p,!1),l(this,f,null),l(this,m,void 0),l(this,E,void 0),l(this,w,!0),l(this,y,new a.EditorResizeObserver),u(d,this,e),u(g,this,r),u(p,this,t),u(m,this,this.createEditor()),u(E,this,h(m,this).style),h(y,this).setObservedElement(this.getInputElement()),h(y,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("resize",...t)}),this.hide()}setPosition(e,t){h(E,this).left=`${e}px`,h(E,this).top=`${t}px`}setSize(e,t){if(e&&t){const r=this.getInputElement();r.style.width=`${e}px`,r.style.height=`${t}px`}}getSize(){return{width:(0,s.outerWidth)(this.getInputElement()),height:(0,s.outerHeight)(this.getInputElement())}}observeSize(){h(y,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(E,this).display="block",u(w,this,!1)}hide(){h(y,this).unobserve(),h(w,this)||(h(E,this).display="none"),u(w,this,!0)}isVisible(){return"block"===h(E,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",u(f,this,h(d,this).createElement("div")),h(f,this).setAttribute("dir",h(p,this)?"rtl":"ltr"),(0,s.addClass)(h(f,this),C.CLASS_EDITOR_CONTAINER),h(g,this).appendChild(h(f,this)),(0,s.addClass)(e,C.CLASS_EDITOR),(0,s.addClass)(t,C.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(f,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${C.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(f,this)?h(f,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),u(m,this,null),u(E,this,null),h(y,this).destroy(),e&&e.removeChild(h(f,this))}}(0,i.mixin)(C,o.default);t.default=C},6558:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>K});var n,s,i,o,a,l,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
34
34
  /*!
@@ -232,7 +232,7 @@ const F=E(),U=g(),V=(e=>({loadLanguagesInNode:t=>w(t,e)}))($),B=d();let W=(e=>({
232
232
  learn about the migration path.`;class g{constructor(){(0,s.default)(this,"globalBucket",new c.HooksBucket)}static getSingleton(){return p}getBucket(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new c.HooksBucket),e.pluginHookBucket):this.globalBucket}add(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.add(e,t,r)):(u.REMOVED_HOOKS.has(e)&&(0,a.warn)((0,o.substitute)(d,{hookName:e,removedInVersion:u.REMOVED_HOOKS.get(e)})),u.DEPRECATED_HOOKS.has(e)&&(0,a.warn)(u.DEPRECATED_HOOKS.get(e)),this.getBucket(r).add(e,t,{orderIndex:n,runOnce:!1})),this}once(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.once(e,t,r)):this.getBucket(r).add(e,t,{orderIndex:n,runOnce:!0}),this}addAsFixed(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Array.isArray(t)?(0,i.arrayEach)(t,t=>this.addAsFixed(e,t,r)):this.getBucket(r).add(e,t,{initialHook:!0}),this}remove(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.getBucket(r).remove(e,t)}has(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.getBucket(t).has(e)}run(e,t,r,n,s,i,o,a){{const l=this.getBucket().getHooks(t),u=l?l.length:0;let c=0;if(u)for(;c<u;){if(!l[c]||l[c].skip){c+=1;continue}const u=(0,h.fastCall)(l[c].callback,e,r,n,s,i,o,a);void 0!==u&&(r=u),l[c]&&l[c].runOnce&&this.remove(t,l[c].callback),c+=1}}{const l=this.getBucket(e).getHooks(t),u=l?l.length:0;let c=0;if(u)for(;c<u;){if(!l[c]||l[c].skip){c+=1;continue}const u=(0,h.fastCall)(l[c].callback,e,r,n,s,i,o,a);void 0!==u&&(r=u),l[c]&&l[c].runOnce&&this.remove(t,l[c].callback,e),c+=1}}return r}destroy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||u.REGISTERED_HOOKS.push(e)}deregister(e){this.isRegistered(e)&&u.REGISTERED_HOOKS.splice(u.REGISTERED_HOOKS.indexOf(e),1)}isDeprecated(e){return u.DEPRECATED_HOOKS.has(e)||u.REMOVED_HOOKS.has(e)}isRegistered(e){return u.REGISTERED_HOOKS.indexOf(e)>=0}getRegistered(){return u.REGISTERED_HOOKS}}t.Hooks=g;const p=new g;t.default=g},18088:(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()}}},18095:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.depthFirstPreOrder=o;var s=n(r(24300));r(52490),r(99356);const i=t.TRAVERSAL_DF_PRE="DF-pre-order";function o(e,t){let r=e.call(t,this);for(let n=0;n<this.childs.length;n++){if(!1===r)return!1;r=o.call(this.childs[n],e,t)}return r}const a=t.TRAVERSAL_DF_POST="DF-post-order";const l=t.TRAVERSAL_BF="BF";const h=l,u=new Map([[i,o],[a,function e(t,r){for(let n=0;n<this.childs.length;n++){if(!1===e.call(this.childs[n],t,r))return!1}return t.call(r,this)}],[l,function(e,t){const r=[this];!function n(){if(0===r.length)return;const s=r.shift();r.push(...s.childs),!1!==e.call(t,s)&&n()}()}]]);class c{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 c({...e.data});for(let r=0;r<e.childs.length;r++)t.addChild(this.cloneTree(e.childs[r]));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(!u.has(t))throw new Error(`Traversal strategy "${t}" does not exist`);u.get(t).call(this,e,this)}walkUp(e){const t=this,r=n=>{!1!==e.call(t,n)&&null!==n.parent&&r(n.parent)};r(this)}}t.default=c},18101:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(92850),s=r(96357),i=r(42685),o=r(6083);let a=!1;class l extends n.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:t}=this.table,r=e+t;for(;this.renderedNodes<r;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>r;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:t}=this.table;!a&&e>1e3&&(a=!0,(0,s.warn)(i.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
233
233
  Consider limiting the number of rendered columns by specifying the table width and/or\x20
234
234
  turning off the "renderAllColumns" option.`));for(let e=0;e<t;e++){const t=this.table.renderedColumnToSource(e),r=this.table.columnUtils.getHeaderWidth(t);this.rootNode.childNodes[e].style.width=`${r}px`}for(let r=0;r<e;r++){const e=this.table.renderedColumnToSource(r),n=this.table.columnUtils.getWidth(e);this.rootNode.childNodes[r+t].style.width=`${n}px`}const r=this.rootNode.firstChild;r&&(0,o.addClass)(r,"rowHeader")}}t.ColGroupRenderer=l},18334:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(24834);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Loading=n.Loading},18372:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_rows_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_ROW,e)},callback(){var r,n;if(0===t.length)return;let s=t[0],i=t[t.length-1];s=null!==(r=this.rowIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==r?r:0,i=null!==(n=this.rowIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==n?n:this.countRows()-1,e.showRows(t),this.view.adjustElementsSize(),this.render();i-s+1===this.countRows()||this.selectRows(s,i)},disabled:!1,hidden(){const r=(0,n.arrayMap)(e.getHiddenRows(),e=>this.toPhysicalRow(e));if(!this.selection.isSelectedByRowHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;const s=this.getSelectedRangeActive(),i=s.getTopStartCorner().row,o=s.getBottomEndCorner().row,a=this.rowIndexMapper,l=a.getRenderableFromVisualIndex(i),h=a.getRenderableFromVisualIndex(o),u=a.getNotTrimmedIndexes(),c=[];if(i!==o){if(o-i+1>h-l+1){const e=u.slice(i,o+1);c.push(...e.filter(e=>r.includes(e)))}}else if(0===l&&l<i)c.push(...u.slice(0,i));else if(null===l)c.push(...u.slice(0,this.countRows()));else{const e=this.countRows()-1;h===a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(e,-1))&&e>o&&c.push(...u.slice(o+1))}return(0,n.arrayEach)(c,e=>{t.push(this.toVisualRow(e))}),0===t.length}}},r(99356),r(34478),r(29810);var n=r(40785),s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},18546:(e,t,r)=>{"use strict";t.__esModule=!0,t.singleScrollStrategy=function(e){return t=>{const r=e.selection.getSelectionSource(),{row:s,col:i}=t,o=()=>{(0,n.scrollWindowToCell)(e.getCell(s,i,!0))};if(s<0&&i>=0)e.scrollViewportTo({col:i},o);else if(i<0&&s>=0)e.scrollViewportTo({row:s},o);else{if("mouse"===r&&(i===e.view.getLastPartiallyVisibleColumn()||s===e.view.getLastPartiallyVisibleRow()))return;e.scrollViewportTo({row:s,col:i},o)}}};var n=r(62147)},18639:(e,t,r)=>{"use strict";function n(e,t,r){s(e,t),t.set(e,r)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(a(e,t))}function o(e,t,r){return e.set(a(e,t),r),r}function a(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}t.__esModule=!0,r(52490);var l=new WeakMap,h=new WeakMap,u=new WeakSet;function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const n=a(u,this,d).call(this,i(l,this),e.row,t);if(null===n)return null;const s=a(u,this,d).call(this,i(h,this),e.col,r);return null===s?null:e.clone().assign({row:n,col:s})}function d(e,t,r){return t<0?t:e.getNearestNotHiddenIndex(t,r)}t.CellRangeToRenderableMapper=class{constructor(e){let{rowIndexMapper:t,columnIndexMapper:r}=e;var i,a;s(i=this,a=u),a.add(i),n(this,l,void 0),n(this,h,void 0),o(l,this,t),o(h,this,r)}toRenderable(e){const t="N-S"===e.getVerticalDirection()?1:-1,r="W-E"===e.getHorizontalDirection()?1:-1,n=a(u,this,c).call(this,e.from,t,r);if(null===n)return null;const s=a(u,this,c).call(this,e.to,-t,-r);if(null===s)return null;const i=e.clone();return i.from=n,i.to=s,i.includes(e.highlight)||(i.highlight=n),i}}},18675:(e,t,r)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(r,s){const[,...i]=r,[,...o]=s;return function r(s){const a=e[s],l=t[s],h=i[s],u=o[s],c=l.multiColumnSorting,d=(c.compareFunctionFactory?c.compareFunctionFactory:(0,n.getCompareFunctionFactory)(l.type))(a,l,c)(h,u);if(d===n.DO_NOT_SWAP){const e=s+1;if(void 0!==t[e])return r(e)}return d}(0)}};var n=r(2520)},18689:(e,t,r)=>{"use strict";t.__esModule=!0,t.valueSetter=function(e,t,r){const{checkedTemplate:s,uncheckedTemplate:i}=this.getCellMeta(t,r),o=(0,n.stringify)(e),a=o===(0,n.stringify)(s),l=o===(0,n.stringify)(i);if(a||l)return a?s:i;return e};var n=r(27727)},18711:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=r(31075),i=r(40785),o=r(4407),a=r(6083),l=n(r(75175)),h=n(r(23861));class u extends l.default{constructor(e,t){var r;super(e,t),r=this,this.dataManager=this.plugin.dataManager,this.collapsedRows=[],this.collapsedRowsStash={stash:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r.lastCollapsedRows=r.collapsedRows.slice(0),r.expandMultipleChildren(r.lastCollapsedRows,e)},shiftStash:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;null==t&&(t=1/0),(0,i.arrayEach)(r.lastCollapsedRows,(s,i)=>{s>=e&&s<t&&(r.lastCollapsedRows[i]=s+n)})},applyStash:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];r.collapseMultipleChildren(r.lastCollapsedRows,e),r.lastCollapsedRows=void 0},trimStash:(e,t)=>{(0,o.rangeEach)(e,e+t-1,e=>{const t=this.lastCollapsedRows.indexOf(e);t>-1&&this.lastCollapsedRows.splice(t,1)})}}}collapseChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];let s=null,o=null,a=null;return isNaN(e)?(s=e,o=this.dataManager.getRowIndex(s)):(s=this.dataManager.getDataObject(e),o=e),this.dataManager.hasChildren(s)&&(0,i.arrayEach)(s.__children,e=>{n.push(this.dataManager.getRowIndex(e))}),a=this.collapseRows(n,!0,!1),r&&this.trimRows(a),t&&this.renderAndAdjust(),-1===this.collapsedRows.indexOf(o)&&this.collapsedRows.push(o),a}collapseMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];(0,i.arrayEach)(e,e=>{n.push(...this.collapseChildren(e,!1,!1))}),r&&this.trimRows(n),t&&this.renderAndAdjust()}collapseRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.collapseRows([e],t)}collapseRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[];return(0,i.arrayEach)(e,e=>{n.push(e),t&&this.collapseChildRows(e,n)}),r&&this.trimRows(n),n}collapseChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const r=this.dataManager.getDataObject(e);(0,i.arrayEach)(r.__children,e=>{const r=this.dataManager.getRowIndex(e);t.push(r),this.collapseChildRows(r,t)})}r&&this.trimRows(t)}expandRow(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.expandRows([e],t)}expandRows(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[];return(0,i.arrayEach)(e,e=>{n.push(e),t&&this.expandChildRows(e,n)}),r&&this.untrimRows(n),n}expandChildRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.dataManager.hasChildren(e)){const r=this.dataManager.getDataObject(e);(0,i.arrayEach)(r.__children,e=>{if(!this.isAnyParentCollapsed(e)){const r=this.dataManager.getRowIndex(e);t.push(r),this.expandChildRows(r,t)}})}r&&this.untrimRows(t)}expandChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];let s=null,o=null,a=null;return isNaN(e)?(s=e,o=this.dataManager.getRowIndex(e)):(s=this.dataManager.getDataObject(e),o=e),this.collapsedRows.splice(this.collapsedRows.indexOf(o),1),this.dataManager.hasChildren(s)&&(0,i.arrayEach)(s.__children,e=>{const t=this.dataManager.getRowIndex(e);n.push(t)}),a=this.expandRows(n,!0,!1),r&&this.untrimRows(a),t&&this.renderAndAdjust(),a}expandMultipleChildren(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n=[];(0,i.arrayEach)(e,e=>{n.push(...this.expandChildren(e,!1,!1))}),r&&this.untrimRows(n),t&&this.renderAndAdjust()}collapseAll(){const e=this.dataManager.getData(),t=[];(0,i.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,i.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution(()=>{(0,i.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)})},!0)}untrimRows(e){this.hot.batchExecution(()=>{(0,i.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!1)})},!0)}areChildrenCollapsed(e){let t=isNaN(e)?e:this.dataManager.getDataObject(e),r=!0;return null===t&&(t={__children:this.dataManager.data}),this.dataManager.hasChildren(t)&&(0,i.arrayEach)(t.__children,e=>{const t=this.dataManager.getRowIndex(e);if(!this.plugin.collapsedRowsMap.getValueAtIndex(t))return r=!1,!1}),r}isAnyParentCollapsed(e){let t=e;for(;null!==t;){t=this.dataManager.getRowParent(t);const e=this.dataManager.getRowIndex(t);if(this.collapsedRows.indexOf(e)>-1)return!0}return!1}toggleState(e,t){if(t.col>=0)return;const r=this.translateTrimmedRow(t.row);(0,a.hasClass)(e.target,h.default.CSS_CLASSES.button)&&(this.areChildrenCollapsed(r)?this.expandChildren(r):this.collapseChildren(r),(0,s.stopImmediatePropagation)(e))}translateTrimmedRow(e){return this.hot.toPhysicalRow(e)}untranslateTrimmedRow(e){return this.hot.toVisualRow(e)}renderAndAdjust(){this.hot.view.adjustElementsSize(),this.hot.render()}}t.default=u},19026:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=[];return{key:"hidden_columns_show",name(){const e=t.length>1?1:0;return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_SHOW_COLUMN,e)},callback(){var r,n;if(0===t.length)return;let s=t[0],i=t[t.length-1];s=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==r?r:0,i=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(i+1,1))&&void 0!==n?n:this.countCols()-1,e.showColumns(t),this.view.adjustElementsSize(),this.render();i-s+1===this.countCols()||this.selectColumns(s,i)},disabled:!1,hidden(){const r=(0,n.arrayMap)(e.getHiddenColumns(),e=>this.toPhysicalColumn(e));if(!this.selection.isSelectedByColumnHeader()&&!this.selection.isSelectedByCorner()||r.length<1)return!0;t.length=0;const s=this.getSelectedRangeActive(),i=s.getTopStartCorner().col,o=s.getBottomEndCorner().col,a=this.columnIndexMapper,l=a.getRenderableFromVisualIndex(i),h=a.getRenderableFromVisualIndex(o),u=a.getNotTrimmedIndexes(),c=[];if(i!==o){if(o-i+1>h-l+1){const e=u.slice(i,o+1);c.push(...e.filter(e=>r.includes(e)))}}else if(0===l&&l<i)c.push(...u.slice(0,i));else if(null===l)c.push(...u.slice(0,this.countCols()));else{const e=this.countCols()-1;h===a.getRenderableFromVisualIndex(a.getNearestNotHiddenIndex(e,-1))&&e>o&&c.push(...u.slice(o+1))}return(0,n.arrayEach)(c,e=>{t.push(this.toVisualColumn(e))}),0===t.length}}},r(99356),r(34478),r(29810);var n=r(40785),s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},19098:(e,t,r)=>{"use strict";var n=r(19682),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},19199:(e,t,r)=>{"use strict";t.__esModule=!0,t.getRegisteredHotInstances=function(e){var t;const r=u(),n=0===r.size?[]:Array.from(null!==(t=r.get(e))&&void 0!==t?t:[]);return new Map(n.map(e=>[e.getPlugin("formulas").sheetId,e]))},t.registerCustomFunctions=g,t.registerEngine=d,t.registerLanguage=p,t.registerNamedExpressions=f,t.setupEngine=function(e){const t=e.getSettings(),r=t[l.PLUGIN_KEY],n=null==r?void 0:r.engine;if(!0===r)return null;if((0,s.isUndefined)(n))return null;var g;if("function"==typeof n.hyperformula||"function"==typeof n)return d(null!==(g=n.hyperformula)&&void 0!==g?g:n,t,e);if("object"==typeof n&&(0,s.isUndefined)(n.hyperformula)){const t=u(),r=c().get(n);return t.has(n)||t.set(n,[]),t.get(n).push(e),r&&r.push(e.guid),n.getConfig().licenseKey||n.updateConfig({licenseKey:h.DEFAULT_LICENSE_KEY}),n.getConfig().leapYear1900===h.DEFAULT_SETTINGS.leapYear1900&&!1!==(0,a.isObjectEqual)(n.getConfig().nullDate,h.DEFAULT_SETTINGS.nullDate)||(0,o.warn)(i.toSingleLine`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
235
- settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),n}return null},t.setupSheet=function(e,t){!(0,s.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){const r=u(),n=r.get(e),s=c(),i=s.get(e);n&&n.includes(t)&&(n.splice(n.indexOf(t),1),0===n.length&&r.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(s.delete(e),e.destroy()))}},r(99356),r(34478),r(31143),r(940);var n=r(55585),s=r(27727),i=r(42685),o=r(96357),a=r(21389),l=r(90742),h=r(95519);function u(){const e="engine_relationship",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function c(){const e="shared_engine_usage",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,r){const n=t[l.PLUGIN_KEY],s=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),i=u(),o=c();g(e,n.functions),p(e,n.language);const a=e.buildEmpty(s);return i.set(a,[r]),o.set(a,[r.guid]),f(a,n.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function g(e,t){t&&t.forEach(t=>{const{name:r,plugin:n,translations:s}=t;try{e.registerFunction(r,n,s)}catch(e){(0,o.warn)(e.message)}})}function p(e,t){if(t){const{langCode:r}=t;try{e.registerLanguage(r,t)}catch(e){(0,o.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:r,expression:n,scope:s,options:i}=t;try{e.addNamedExpression(r,n,s,i)}catch(e){(0,o.warn)(e.message)}}),e.resumeEvaluation())}},19247:()=>{},19429:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,r)=>{t>=0&&r>=0&&e.removeCommentAtCell(t,r,!1)}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},19451:(e,t,r)=>{"use strict";var n=r(19098),s=r(82683),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},19648:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(940);var s=n(r(24300)),i=r(6083),o=r(31075),a=r(40785),l=r(58231),h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),u=r(44876),c=r(8173),d=r(63470),g=r(5864),p=r(11278),f=r(49890);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 E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakSet;class y extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,w),(0,s.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>E(w,this,C).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>E(w,this,S).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,r,n,s,i)=>{const[o]=(0,a.arrayFilter)(r,e=>e.name===g.CONDITION_BY_VALUE),l={},c=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(o){const r=s(t,i),h=(0,a.arrayMap)(r,e=>e.value),d=new Map(r.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),f=(0,u.unifyColumnValues)(h);n&&(o.args[0]=n);const m=[],y=(0,u.intersectValues)(f,o.args[0],c,e=>{e.checked&&m.push(e.value),E(w,this,v).call(this,e,d)}),C=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,C).locale,l.args=[m],l.command=(0,p.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=y}else l.args=[],l.command=(0,p.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,l)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter(e=>e instanceof d.MultipleSelectUI)[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,r,n,s,o)=>{(0,i.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,i.addClass)(l,"htFiltersMenuLabel"),l.textContent=o,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),r=t.map(e=>e.value),n=new Map(t.map(e=>[e.value,e.meta])),s=(0,u.unifyColumnValues)(r),i=(0,u.intersectValues)(s,s,e,e=>{E(w,this,v).call(this,e,n)});this.getMultipleSelectElement().setItems(i),super.reset(),this.getMultipleSelectElement().setValue(s);const o=this.hot.getPlugin("filters").getSelectedColumn();null!==o&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,r)=>({value:(0,u.toEmptyString)(t),meta:this.hot.getCellMeta(r,e.visualIndex)}))}}function C(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,o.stopImmediatePropagation)(e))}function v(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function S(e,t){return"numeric"===t.type?(0,f.getRenderedValue)(e,t):e}t.ValueComponent=y},19682:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},20022:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(21389),o=r(96645),a=n(r(93236));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,i.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,i.extend)(this.meta,e),(0,o.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},20048:(e,t,r)=>{"use strict";t.__esModule=!0,t.createFocusNavigator=function(e){return(0,n.createPaginator)({initialPage:0,size:()=>e.length,onItemSelect:(t,r)=>{const n=e[t];return n instanceof i.MultipleSelectUI?r:!(n.element&&!(0,s.isVisible)(n.element))&&void n.focus()}})};var n=r(43679),s=r(6083),i=r(63470)},20188:(e,t,r)=>{"use strict";t.__esModule=!0,t.timeRenderer=i;var n=r(5022);const s=t.RENDERER_TYPE="time";function i(e,t,r,s,i,o,a){n.textRenderer.apply(this,[e,t,r,s,i,o,a]),t.dir="ltr"}i.RENDERER_TYPE=s},20362:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},20390:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:r}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},20514:()=>{},20536:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const r=t[0].start.col,n=t[0].end.col;this.countRows()&&this.populateFromArray(0,r,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeActive();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll((e,r)=>{if(e<0||r<0)return!0;const{readOnly:n}=this.getCellMeta(e,r);return!!n||(t=!0,!1)}),!t}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const s=t.KEY="clear_column"},20559:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,p.registerEditor)(s.BaseEditor),(0,p.registerEditor)(n.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(o.DateEditor),(0,p.registerEditor)(a.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(h.NumericEditor),(0,p.registerEditor)(u.PasswordEditor),(0,p.registerEditor)(c.SelectEditor),(0,p.registerEditor)(d.TextEditor),(0,p.registerEditor)(g.TimeEditor)};var n=r(50057);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var s=r(95484);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var i=r(14864);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var o=r(85689);t.DateEditor=o.DateEditor,t.DATE_EDITOR=o.EDITOR_TYPE;var a=r(8116);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(69488);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(12638);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=r(41736);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=r(25589);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=r(91698);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=r(78072);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var p=r(69264);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},20620:()=>{},20635:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(r,"top",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},20637:(e,t,r)=>{"use strict";var n=r(2382),s=r(98363),i=r(70906);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},20678:()=>{},20745:()=>{},20954:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(66133);var s=n(r(24300)),i=r(21389),o=r(40785);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"mergedCellsCollection",void 0),(0,s.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let r=null;return r=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",r}snapDragArea(e,t,r,n){const s=t.slice(0),i=this.getAutofillSize(e,t,r),[o,a,l,h]=e,u=["up","down"].indexOf(r)>-1?l-o+1:h-a+1,c=i-Math.floor(i/u)*u,d=this.getFarthestCollection(e,t,r,n);if(d)if("down"===r){const e=d.row+d.rowspan-o-c;s[2]+e>=this.plugin.hot.countRows()?s[2]-=c:s[2]+=c?e:0}else if("right"===r){const e=d.col+d.colspan-a-c;s[3]+e>=this.plugin.hot.countCols()?s[3]-=c:s[3]+=c?e:0}else if("up"===r){const e=l-c-d.row+1;s[0]+e<0?s[0]+=c:s[0]-=c?e:0}else if("left"===r){const e=h-c-d.col+1;s[1]+e<0?s[1]+=c:s[1]-=c?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:r,foundMergedCells:n,fillSize:i,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,i.extend)(this.currentFillData,e)}getAutofillSize(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return n-a;case"down":return h-i;case"left":return s-l;case"right":return u-o;default:return null}}getDragArea(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return[a,l,n-1,o];case"down":{const e=this.mergedCellsCollection.get(h,o);return[i+1,s,h+(e?e.rowspan-1:0),o]}case"left":return[a,l,i,s-1];case"right":{const e=this.mergedCellsCollection.get(h,o);return[n,o+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,r,n){const[s,i,a,l]=e,h=["up","down"].indexOf(r)>-1,u=h?a:l,c=h?s:i,d=this.getAutofillSize(e,t,r),g=h?a-s+1:l-i+1,p=d-Math.floor(d/g)*g;let f=null,m=null,E=null;switch(r){case"up":f="includesVertically",E=u-p+1;break;case"left":f="includesHorizontally",E=u-p+1;break;case"down":f="includesVertically",E=c+p-1;break;case"right":f="includesHorizontally",E=c+p-1}return(0,o.arrayEach)(n,e=>{e[f](E)&&e.isFarther(m,r)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),r=this.currentFillData.foundMergedCells,n=this.currentFillData.dragDirection,s=(e,r)=>{switch(n){case"up":return e.row-r>=t.from.row;case"down":return e.row+e.rowspan-1+r<=t.to.row;case"left":return e.col-r>=t.from.column;case"right":return e.col+e.colspan-1+r<=t.to.column;default:return null}};let i=0,o=null,a=1;do{for(let e=0;e<r.length;e+=1){if(o=r[e],i=a*this.currentFillData.cycleLength,s(o,i))switch(n){case"up":this.plugin.mergedCellsCollection.add({row:o.row-i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:o.row+i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col-i,colspan:o.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col+i,colspan:o.colspan},!0)}e===r.length-1&&(a+=1)}}while(s(o,i));this.currentFillData=null,this.plugin.hot.render(),r.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},r={min:null,max:null};return(0,o.arrayEach)(e,e=>{const n=e[0],s=this.plugin.hot.propToCol(e[1]);(null===t.min||n<t.min)&&(t.min=n),(null===t.max||n>t.max)&&(t.max=n),(null===r.min||s<r.min)&&(r.min=s),(null===r.max||s>r.max)&&(r.max=s)}),{from:{row:t.min,column:r.min},to:{row:t.max,column:r.max}}}dragAreaOverlapsCollections(e,t,r){const n=this.getDragArea(e,t,r),[s,i,o,a]=n,l=this.plugin.hot._createCellCoords(s,i),h=this.plugin.hot._createCellCoords(o,a),u=this.plugin.hot._createCellRange(l,l,h);if(0===this.mergedCellsCollection.getWithinRange(u,!0).length)return!1;const c=this.mergedCellsCollection.getWithinRange(u,!1);return 0===c.length||("up"===r||"down"===r?!c.every(e=>{let{colspan:t}=e;return t===u.getWidth()}):!c.every(e=>{let{rowspan:t}=e;return t===u.getHeight()}))}}},21177:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},21389:(e,t,r)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,r){if("object"!=typeof t||null===t)return r;if("object"!=typeof r||null===r)return t;const n={};return Object.keys(r).forEach(s=>{"object"!=typeof r[s]||null===r[s]||Array.isArray(r[s])?n[s]=a(t,s)&&void 0!==t[s]?t[s]:r[s]:n[s]=e(t[s],r[s])}),Object.keys(t).forEach(e=>{a(n,e)||(n[e]=t[e])}),n},t.clone=function(e){const t={};return o(e,(e,r)=>{t[r]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const r=`_${t}`,n={_touched:!1,[r]:e,isTouched(){return this._touched}};return Object.defineProperty(n,t,{get(){return this[r]},set(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),n},t.deepClone=s,t.deepExtend=function e(t,r){o(r,(n,s)=>{r[s]&&"object"==typeof r[s]?(t[s]||(Array.isArray(r[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(r[s])?t[s]=r[s]:t[s]={}),e(t[s],r[s])):t[s]=r[s]})},t.deepObjectSize=function(e){if(!i(e))return 0;const t=function(e){let r=0;return i(e)?o(e,(e,n)=>{"__children"!==n&&(r+=t(e))}):r+=1,r};return t(e)},t.defineGetter=function(e,t,r,n){n.value=r,n.writable=!1!==n.writable,n.enumerable=!1!==n.enumerable,n.configurable=!1!==n.configurable,Object.defineProperty(e,t,n)},t.duckSchema=function e(t){let r;Array.isArray(t)?r=t.length?new Array(t.length).fill(null):[]:(r={},o(t,(t,n)=>{"__children"!==n&&(t&&"object"==typeof t&&!Array.isArray(t)?r[n]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?r[n]=[e(t[0])]:r[n]=[]:r[n]=null)}));return r},t.extend=function(e,t,r){const n=Array.isArray(r);return o(t,(t,s)=>{(!1===n||r.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const r=t.split(".");let n=e;return o(r,e=>{if(n=n[e],void 0===n)return n=void 0,!1}),n},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=i,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,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return(0,n.arrayEach)(r,t=>{e.MIXINS.push(t.MIXIN_NAME),o(t,(t,r)=>{if(void 0!==e.prototype[r])throw new Error(`Mixin conflict. Property '${r}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[r]=t;else{const n=function(e,t){const r=`_${e}`;return function(){return void 0===this[r]&&(this[r]=(e=>{let t=e;return(Array.isArray(t)||i(t))&&(t=s(t)),t})(t)),this[r]}},o=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,r,{get:n(r,t),set:o(r),configurable:!0})}})}),e},t.objectEach=o,t.setProperty=function(e,t,r){if("string"!=typeof t)return;const n=t.split(".");let s=e;n.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==n.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=r)})},r(52490),r(99356),r(58584),r(34478),r(31143);var n=r(40785);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){for(const r in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,r))&&!1===t(e[r],r,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},21422:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:r}=e;this.pageSize=Math.max(t,1),this.totalItems=r,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},21439:(e,t,r)=>{"use strict";var n=r(19098),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},21574:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(79956)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=o},21639:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(70792),o=r(90501),a=r(21177),l=r(64276),h=r(91509),u=r(33973),c=r(99793),d=r(47150),g=r(14483),p=!u&&!d("filter",function(){}),f=!u&&!p&&g("filter",TypeError),m=u||p||f,E=l(function(){for(var e,t,r=this.iterator,n=this.predicate,i=this.next;;){if(e=o(s(i,r)),this.done=!!e.done)return;if(t=e.value,h(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{i(e)}catch(e){c(this,"throw",e)}return f?s(f,this,e):new E(a(this),{predicate:e})}})},21769:(e,t,r)=>{"use strict";var n=r(19098),s=r(53001),i=r(44827),o=r(19451),a=r(2382),l=r(10768).CONFIGURABLE,h=r(88932),u=r(62579),c=u.enforce,d=u.get,g=String,p=Object.defineProperty,f=n("".slice),m=n("".replace),E=n([].join),w=a&&!s(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),C=e.exports=function(e,t,r){"Symbol("===f(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),w&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=c(e);return o(n,"source")||(n.source=E(y,"string"==typeof t?t:"")),e};Function.prototype.toString=C(function(){return i(this)&&d(this).source||h(this)},"toString")},21860:()=>{},22063:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14864),s=r(37864),i=r(83247);const o=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:o,editor:n.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:i.valueSetter}},22199:(e,t,r)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:r,title:s,description:i}=e;return`\n <div class="${n.LOADING_CLASS_NAME}__content">\n <i class="${n.LOADING_CLASS_NAME}__icon">${r}</i>\n <div class="${n.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${n.PLUGIN_KEY}-title" class="${n.LOADING_CLASS_NAME}__title">${s}</h2>\n ${i?`<p id="${t}-${n.PLUGIN_KEY}-description" class="${n.LOADING_CLASS_NAME}__description">${i}</p>`:""}\n </div>\n </div>\n `};var n=r(24834)},22208:(e,t,r)=>{"use strict";var n=r(79268);e.exports=function(e){return n(e.length)}},22350:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(53383),o=r(40785),a=r(4407),l=r(96357),h=r(6083),u=r(31075),c=r(88453),d=r(13618);function g(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(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="collapsibleColumns",w=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",v=E,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=T),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.default)(this,"headerStateManager",null),function(e,t,r){g(e,t),t.set(e,r)}(this,R,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[E,...y]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,l.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),f(R,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",()=>m(T,this,b).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,M).call(e,...r)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,_).call(e,...r)}),this.addHook("beforeOnCellMouseDown",(e,t,r)=>m(T,this,A).call(this,e,t,r)),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState(e=>({collapsible:e.origColspan>1})):Array.isArray(e)&&(this.headerStateManager.mapState(()=>({collapsible:!1})),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),f(R,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:r}=this.hot.getSelectedRangeActive().highlight,{collapsible:n,isCollapsed:s,columnIndex:i}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,r))&&void 0!==e?e:{};if(n)return s?this.expandSection({row:t,col:i}):this.collapseSection({row:t,col:i}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},group:v,relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,a.rangeEach)(0,e-1,e=>{const i=t.childNodes[e],o=r.childNodes[e],l=n?n.childNodes[e]:null;(0,a.rangeEach)(0,i.childNodes.length-1,e=>{let t=i.childNodes[e].querySelector(`.${C}`);s(t),o&&o.childNodes[e]&&(t=o.childNodes[e].querySelector(`.${C}`),s(t)),n&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(`.${C}`),s(t))})},!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes(t=>{const{collapsible:r,origColspan:n,headerLevel:s,columnIndex:i,isCollapsed:o}=t;if(!0===r&&n>1&&(o&&"expand"===e||!o&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:i}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!S.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const r=(0,o.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let n=r.length>0;(0,o.arrayEach)(r,e=>{var r;let{row:s,col:i}=e;const{collapsible:o,isCollapsed:a}=null!==(r=this.headerStateManager.getHeaderSettings(s,i))&&void 0!==r?r:{};if(!o||a&&"collapse"===t||!a&&"expand"===t)return n=!1,!1});const s=[],i=[];n&&(0,o.arrayEach)(r,e=>{let{row:r,col:n}=e;const{colspanCompensation:o,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,r,n);o>0&&(i.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,o.arrayUnique)([...a,...i]):"expand"===t&&(l=(0,o.arrayFilter)(a,e=>!i.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,n))return void(0,o.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,o.arrayEach)(i,e=>{p(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const u=this.getCollapsedColumns().length!==a.length,c=this.hot.getSelectedRangeActive();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&i.includes(t)){const r=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,n=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==r&&null!==n&&this.hot.selectCell(r,n)}}this.hot.runHooks(h.afterHook,a,l,n,u),this.hot.view.adjustElementsSize(),this.hot.render()}getCollapsedColumns(){return p(R,this).getHiddenIndexes()}destroy(){f(R,this,null),super.destroy()}}function _(e,t,r){var n;const{collapsible:s,origColspan:i,isCollapsed:o}=null!==(n=this.headerStateManager.getHeaderSettings(r,e))&&void 0!==n?n:{},a=s&&i>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let u=t.querySelector(`.${C}`);var c;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),a)?(u||(u=this.hot.rootDocument.createElement("div"),(0,h.addClass)(u,C),t.querySelector("div:first-child").appendChild(u)),(0,h.removeClass)(u,["collapsed","expanded"]),o?((0,h.addClass)(u,"collapsed"),(0,h.fastInnerText)(u,"+"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(u,"expanded"),(0,h.fastInnerText)(u,"-"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),l&&(0,h.setAttribute)(u,...(0,d.A11Y_HIDDEN)())):null===(c=u)||void 0===c||c.remove()}function A(e,t){(0,h.hasClass)(e.target,C)&&((0,h.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,h.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,u.stopImmediatePropagation)(e))}function b(){this.updatePlugin()}function M(e,t){t||this.updatePlugin()}t.CollapsibleColumns=N},22493:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new i.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:s.HIGHLIGHT_FILL_TYPE})};var s=r(74216),i=n(r(44982))},22546:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s,columnWidth:i}=t;r>=n&&r+i<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=n&&(this.startColumn-=1),e>=n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const u=r+n-(i>0?n+1:n),c=null===this.startColumn?0:e.getColumnWidth(this.startColumn);u<-1*s||r>l.at(-1)||-1*r-n>-1*c?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},22849:(e,t,r)=>{"use strict";var n=r(20637),s=r(21439),i=r(11613),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},23002:(e,t,r)=>{"use strict";var n=r(19098),s=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},23173:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,r){let n,s,i;t[0]===e[0]&&t[1]<e[1]?(i="left",n=r(t[0],t[1]),s=r(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",n=r(t[0],e[3]+1),s=r(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",n=r(t[0],t[1]),s=r(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=r(e[2]+1,t[1]),s=r(t[2],t[3]));n&&n.normalize();s&&s.normalize();return{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:s}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,n.isObject)(e)?((0,s.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,s.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var n=r(21389),s=r(27727);const i=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},23224:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50575);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},23304:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(34478),r(31143);var n=r(53383),s=r(96832);function i(e,t,r){o(e,t),t.set(e,r)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="stretchColumns",c=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakSet;class m extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=f),t.add(e),i(this,d,new s.StretchCalculator(this.hot)),i(this,g,null),i(this,p,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 u}static get PLUGIN_PRIORITY(){return c}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(p,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,w).call(e,...r)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,E).call(e,...r)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(p,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(p,this).disconnect(),a(p,this,null),a(d,this,null),super.destroy()}}function E(e,t,r){if(r===this.pluginName)return;const n=this.getColumnWidth(t);return"number"==typeof n?n:e}function w(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},23451:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="gte";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},23624:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6083),s=r(31075),i=r(21389),o=r(55924),a=r(2029);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 r=this,n=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(n,"mousemove",function e(s){var o;((o=s).clientY<Math.floor(i.top)||o.clientY>Math.ceil(i.top+i.height)||o.clientX<Math.floor(i.left)||o.clientX>Math.ceil(i.left+i.width))&&(r.eventManager.removeEventListener(n,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const r=["top","start","bottom","end","corner"];let n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(let s=0;s<5;s++){const i=r[s],o=t.createElement("div");o.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(o.className+=" hidden"),n=o.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,n.width=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,this.main.appendChild(o)}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,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let i=s.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",s.bordersHolder=i,s.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,r=t.getSetting("stylesHandler"),n=r.getCSSVariableValue("cell-mobile-handle-size"),s=r.getCSSVariableValue("cell-mobile-handle-border-radius"),o=r.getCSSVariableValue("cell-mobile-handle-background-color"),a=r.getCSSVariableValue("cell-mobile-handle-border-width"),l=r.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,i.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const u=r.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${s}px`,background:`${o}`,border:`${a}px solid ${l}`};(0,i.objectEach)(u,(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 r=this.wot.selectionManager.getAreaSelection();return!(!r.cellRange||e===r.cellRange.to.row&&t===r.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,r,n,s,i){const o=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:u}=this.selectionHandles.styles,c=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),p=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(r-d-1,10)}px`,a[o]=`${parseInt(n-d-1,10)}px`,l.top=`${parseInt(r-g/4*3,10)}px`,l[o]=`${parseInt(n-g/4*3,10)}px`;const m=Math.min(parseInt(n+s,10),p-d-2*c),E=Math.min(parseInt(n+s-g/4,10),p-g-2*c);h[o]=`${m}px`,u[o]=`${E}px`;const w=Math.min(parseInt(r+i,10),f-d-2*c),y=Math.min(parseInt(r+i-g/4,10),f-g-2*c);h.top=`${w}px`,u.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",u.display="none"):(h.display="block",u.display="block")):(a.display="none",h.display="none",l.display="none",u.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,r,s,i]=e;if(t<0&&s<0||r<0&&i<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,u=t!==s||r!==i,c=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),p=a.getFirstRenderedColumn(),f=a.getLastRenderedColumn();if(p<0&&f<0||d<0&&g<0)return void this.disappear();let m;if(u){if(r=Math.max(r,p),i=Math.min(i,f),t=Math.max(t,d),s=Math.min(s,g),i<r||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,r))}else if(m=a.getCell(this.wot.createCellCoords(t,r)),!(0,n.isHTMLElement)(m))return void this.disappear();const E=u?a.getCell(this.wot.createCellCoords(s,i)):m,w=(0,n.offset)(m),y=u?(0,n.offset)(E):w,C=(0,n.offset)(a.TABLE),v=w.top,S=w.left,R=this.wot.wtSettings.getSetting("rtlMode");let T=0,N=0;if(R){const e=(0,n.outerWidth)(a.TABLE),t=(0,n.outerWidth)(m),r=h.innerWidth-C.left-e;N=S+t-y.left,T=h.innerWidth-S-t-r-1}else N=y.left+(0,n.outerWidth)(E)-S,T=S-C.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,n=this.getDimensionsFromHeader("columns",r,i,e,C);let s=null;n&&([s,T,N]=n),s&&(m=s)}let _=v-C.top-1,A=y.top+(0,n.outerHeight)(E)-v;if(this.isEntireRowSelected(r,i)){const e=r,n=this.getDimensionsFromHeader("rows",t,s,e,C);let i=null;n&&([i,_,A]=n),i&&(m=i)}const b=h.getComputedStyle(m);parseInt(b.borderTopWidth,10)>0&&(_+=1,A=A>0?A-1:0),parseInt(b[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(T+=1,N=N>0?N-1:0);const M=R?"right":"left",I=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${_}px`,this.topStyle[M]=`${T}px`,this.topStyle.width=`${N+I}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[M]=`${T}px`,this.startStyle.height=`${A+I}px`,this.startStyle.display="block",this.bottomStyle.top=`${_+A-parseInt(this.bottomStyle.height,10)+I}px`,this.bottomStyle[M]=`${T}px`,this.bottomStyle.width=`${N+I}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[M]=`${T+N-parseInt(this.endStyle.width,10)+I}px`,this.endStyle.height=`${A+I}px`,this.endStyle.display="block";let O=this.settings.border.cornerVisible;O="function"==typeof O?O(this.settings.layerLevel):O;const x=this.wot.getSetting("onModifyGetCellCoords",s,i,!1,"render");let[P,L]=[s,i];if(x&&Array.isArray(x)&&([,,P,L]=x),(0,o.isMobileBrowser)()||!O||this.isPartRange(P,L))this.cornerStyle.display="none";else{this.cornerStyle.top=_+A+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[M]=T+N+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,n.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const r=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,o=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),u=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(i===this.wot.getSetting("totalColumns")-1){const s=t?E.getBoundingClientRect().left:E.offsetLeft;let i=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=s+(0,n.outerWidth)(E)+parseInt(this.cornerDefaultStyle.width,10)/2,i=a>=(0,n.innerWidth)(e)),i){const e=Math.floor(T+N+this.cornerCenterPointOffset-o-r);c?(this.cornerStyle[M]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[M]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?E.getBoundingClientRect().top:E.offsetTop)+(0,n.outerHeight)(E)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,n.innerHeight)(e)){const e=Math.floor(_+A+this.cornerCenterPointOffset-u-r);c?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,i,_,T,N,A)}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,r,s,i){const{wtTable:o}=this.wot,a=o.wtRootElement.parentNode;let l=null,h=null,u=null,c=null,d=null,g=null,p=null,f=null;switch(e){case"rows":l=function(){return o.getRowHeader(...arguments)},h=function(){return(0,n.outerHeight)(...arguments)},u="ht__selection--rows",g="top";break;case"columns":l=function(){return o.getColumnHeader(...arguments)},h=function(){return(0,n.outerWidth)(...arguments)},u="ht__selection--columns",g="left"}if(a.classList.contains(u)){const e=this.wot.getSetting("columnHeaders").length;if(p=l(t,e-s),f=l(r,e-s),!p||!f)return!1;const o=(0,n.offset)(p),a=(0,n.offset)(f);return p&&f&&(c=o[g]-i[g]-1,d=a[g]+h(f)-o[g]),[p,c,d]}return!1}changeBorderStyle(e,t){const r=this[e].style,s=t[e];!s||s.hide?(0,n.addClass)(this[e],"hidden"):((0,n.hasClass)(this[e],"hidden")&&(0,n.removeClass)(this[e],"hidden"),r.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(r.height=`${s.width}px`),"start"!==e&&"end"!==e||(r.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,r="#000",n=this[e].style;n.backgroundColor=r,n.width=`${t}px`,n.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,n.addClass)(this[e],"hidden"):(0,n.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,o.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)}}},23718:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[r,n]=t;this.calculationResults.set(r,n),n.initialize(e)})}_process(e,t){this.calculationTypes.forEach(r=>{let[,n]=r;return n.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,r]=t;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},23720:(e,t,r)=>{"use strict";var n=r(21769),s=r(98363);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),s.f(e,t,r)}},23845:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74418);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dateRenderer=n.dateRenderer},23861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(40785),i=r(4407),o=r(6083),a=n(r(75175)),l=r(13618);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 r=this.hot.toPhysicalRow(e),n=this.dataManager.getDataObject(r);if(!n)return;const a=this.dataManager.getRowLevel(r),u=t.getElementsByTagName("DIV")[0],c=u.querySelector("span.rowHeader"),d=u.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&u.removeChild(e)}),(0,o.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=c.cloneNode(!0);u.innerHTML="",(0,i.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,o.addClass)(t,h.CSS_CLASSES.emptyIndicator),u.appendChild(t)}),u.appendChild(t)}if(this.dataManager.hasChildren(n)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,o.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,o.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!0)])),u.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let r=11;if(!this.hot.stylesHandler.isClassicTheme()){r=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,r+10*t+25),this.hot.render()}}t.default=h},23869:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,r,s,i){const o=["visualRow","visualCol","row","col","prop"],a=o.length,l=[];return(0,n.rangeEach)(s,i,s=>{(0,n.rangeEach)(t,r,t=>{const r=e.getCellMeta(t,s);if(Object.keys(r).length!==a){const e=Object.fromEntries(Object.entries(r).filter(e=>{let[t]=e;return!1===o.includes(t)}));l.push([r.visualRow,r.visualCol,e])}})}),l},r(99356),r(89083),r(34478),r(29810);var n=r(4407)},24144:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(26172);t.RENDERER_TYPE=n.RENDERER_TYPE,t.handsontableRenderer=n.handsontableRenderer},24184:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[n.CellAlignmentAction,s.ColumnMoveAction,i.ColumnSortAction,o.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,u.MergeCellsAction,c.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,p.UnmergeCellsAction].forEach(r=>r.startRegisteringEvents(e,t))};var n=r(93961),s=r(1145),i=r(63260),o=r(60564),a=r(98736),l=r(25614),h=r(29891),u=r(90375),c=r(15604),d=r(28816),g=r(39621),p=r(40408)},24234:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginatorStrategy=function(e){if(!i.has(e))throw new Error(`Unknown pagination strategy type: ${e}`);return new(i.get(e))},r(52490);var n=r(21422),s=r(82973);const i=new Map([["fixed",n.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},24278:(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([[]])},24300:(e,t,r)=>{var n=r(74851);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},24501:()=>{},24726:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"nestedHeaderSettingsGetter",void 0),(0,s.default)(this,"layersCount",0),(0,s.default)(this,"container",void 0),(0,s.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),r=t.length;this.widthsMap.clear();for(let e=0;e<r;e++){const r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),n=this.hot.toPhysicalColumn(r);this.widthsMap.setValueAtIndex(n,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:r}=this.hot,n=t.createDocumentFragment(),s=t.createElement("table"),o=!!this.hot.getSettings().dropdownMenu,a=r.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const n=t.createElement("tr");for(let s=0;s<a;s++){let a=r.getVisualFromRenderableIndex(s);null===a&&(a=s);const l=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,a);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;o&&(e+='<button class="changeType"></button>'),(0,i.fastInnerHTML)(l,e),l.colSpan=h.colspan,n.appendChild(l)}}s.appendChild(n)}n.appendChild(s),e.appendChild(n)}clear(){this.widthsMap.clear(),this.container=null}}},24834:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(53383),s=r(22199),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="loading",c=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${u}`;var g=new WeakMap,p=new WeakSet;class f extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=p),t.add(e),function(e,t,r){o(e,t),t.set(e,r)}(this,g,null)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return c}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()[u]}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.updateSettings({dialog:!0}),this.hot.addHook("afterDialogFocus",()=>h(p,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,r;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const n=this.hot.guid,o=this.getSetting("icon"),a=null!==(r=this.getSetting("title"))&&void 0!==r?r:this.hot.getTranslatedPhrase(i.LOADING_TITLE),h=this.getSetting("description"),c=(0,s.loadingContent)({id:n,icon:o,title:a,description:h});l(g,this).update({content:c,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${n}-${u}-title`,ariaDescribedby:h?`${n}-${u}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=f},25043:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(6083),o=n(r(46427)),a=r(31075),l=n(r(74216)),h=r(28416),u=r(55941),c=r(55585),d=r(13618);function g(e,t,r){p(e,t),t.set(e,r)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(E(e,t))}function m(e,t,r){return e.set(E(e,t),r),r}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;function A(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function b(e){const t=E(_,this,A).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function M(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,r;p(t=this,r=_),r.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,w,0),g(this,y,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,C,!1),g(this,v,void 0),g(this,S,void 0),g(this,R,0),g(this,T,0),g(this,N,null),this.hot=e,this.eventManager=new o.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),E(_,this,M).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 r=this._wt.getCell(e,t);return r<0?null:r}scrollViewport(e,t,r){return this._wt.scrollViewport(e,t,r)}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,r=e.getAttribute("style");r&&e.setAttribute("data-originalstyle",r),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.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"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:r,selection:n,rootWindow:s}=this.hot,o=r.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(C,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(C,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(C,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(o,"keyup",e=>{n.isInProgress()&&!e.shiftKey&&n.finish()}),this.eventManager.addEventListener(o,"mouseup",s=>{var o;n.isInProgress()&&(0,a.isLeftClick)(s)&&n.finish(),m(v,this,!1);const l=(0,i.isOutsideInput)(r.activeElement),h=null===(o=r.querySelector(".ht-dialog"))||void 0===o?void 0:o.contains(r.activeElement);(0,i.isInput)(r.activeElement)&&!l||h||!l&&(n.isSelected()||n.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(o,"contextmenu",e=>{n.isInProgress()&&(0,a.isRightClick)(e)&&(n.finish(),m(v,this,!1))}),this.eventManager.addEventListener(o,"touchend",()=>{n.isInProgress()&&n.finish(),m(v,this,!1)}),this.eventManager.addEventListener(o,"mousedown",e=>{const n=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(v,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(r);if(r.elementFromPoint(s+e,a)!==h||r.elementFromPoint(s,a+e)!==h)return}else for(;l!==o;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(n):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:r}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,r))}translateFromRenderableToVisualIndex(e,t){let r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,n=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===r&&(r=e),null===n&&(n=t),[r,n]}countRenderableIndexes(e,t){const r=Math.min(e.getNotTrimmedIndexesLength(),t),n=e.getNearestNotHiddenIndex(r-1,-1);return null===n?0:e.getRenderableFromVisualIndex(n)+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,r,n){if(isNaN(e)||e<0)return 0;const s=r.getNearestNotHiddenIndex(e,t),i=r.getRenderableFromVisualIndex(s);if(!Number.isInteger(i))return 0;let o=0;return t<0?o=i+1:t>0&&(o=n-i),o}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 r=0;for(let n=e;n<=t;n++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}countRenderableRowsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}addClassNameToLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.addClass)(r,e)}removeClassNameFromLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.removeClass)(r,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:f(S,this),isDataViewInstance:()=>(0,u.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 r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&E(_,this,A).call(this)===this.hot.countCols()&&E(_,this,b).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(w,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 r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,s]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",n,s,!1,"meta");let o=n,a=s;Array.isArray(i)&&([o,a]=i);const l=this.hot.getCellMeta(o,a),h=this.hot.colToProp(a);let u=this.hot.getDataAtRowProp(o,h);this.hot.hasHook("beforeValueRender")&&(u=this.hot.runHooks("beforeValueRender",u,l)),this.hot.runHooks("beforeRenderer",r,n,s,h,u,l),this.hot.getCellRenderer(l)(this.hot,r,n,s,h,u,l),this.hot.runHooks("afterRenderer",r,n,s,h,u,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,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(v,this,!0),m(N,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,r),this.activeWt=this._wt)},onCellContextMenu:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,m(v,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,r),this.activeWt=this._wt)},onCellMouseOut:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOut",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,r),this.activeWt=this._wt)},onCellMouseOver:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||(!f(v,this)||f(N,this)&&f(N,this).x===e.clientX&&f(N,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,r),this.activeWt=this._wt,m(N,this,null))},onCellMouseUp:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseUp",e,s,r),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,c.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,r),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 r=this.hot.rowIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const r=this.hot.columnIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.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,r)=>{const n=this.hot.rowIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingRowHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[s,i]=this.translateFromRenderableToVisualIndex(e,t),o=this.hot.selection.getSelectedRange();if(o.size()>0){const e=o.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,i,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,s,i]=e,o=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",o,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,r,n)=>{const s=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,o=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,o,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,r>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(r,-1)):r,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,s=t>=0?n.getVisualFromRenderableIndex(t):t,i=e>=0?r.getVisualFromRenderableIndex(e):e,o=this.hot.runHooks("modifyGetCoordsElement",i,s);if(Array.isArray(o)){const[e,t]=o;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const r=this.countRenderableRows(),n=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/r*12));e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-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 r=this.countRenderableColumns(),n=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/r*6));e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-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:r,height:n}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(r,n),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,r;if((0,i.isInput)(e))return!0;const n=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&n)return!0;const s=null!==(t=null===(r=this.hot.getSelectedRangeActive())||void 0===r?void 0:r.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!n)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return f(v,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 r=t.firstChild;if(!(0,i.hasClass)(r,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(r.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:r,getRowHeader:n}=this.hot,s=r.createElement("div"),i=r.createElement("span");s.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,n),s.appendChild(i),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,n=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 o=t.firstChild;(0,i.hasClass)(o,"relative")?(this.updateCellHeader(o.querySelector(".colHeader"),e,r,n),o.className="",(0,i.addClass)(o,["relative",...s()])):((0,i.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:o}=this.hot,a=o.createElement("div"),l=o.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,r,n),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,n)}updateCellHeader(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const o=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?s=o.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(s=o.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,i.fastInnerHTML)(e,r(t,n)):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.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(T,this,t)}getLastSize(){return{width:f(R,this),height:f(T,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 f(w,this)}getRowHeadersCount(){return f(y,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()}}},25116:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(81056);var s=n(r(24300)),i=r(53383),o=r(17715),a=r(6083),l=r(21389),h=r(40785),u=r(27727),c=r(23173);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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}o.Hooks.getSingleton().register("modifyAutofillRange"),o.Hooks.getSingleton().register("beforeAutofill"),o.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,m=["fillHandle"];var E=new WeakSet;class w extends i.BasePlugin{constructor(){super(...arguments),d(this,E),(0,s.default)(this,"addingStarted",!1),(0,s.default)(this,"mouseDownOnCellCorner",!1),(0,s.default)(this,"mouseDragOutside",!1),(0,s.default)(this,"handleDraggedCells",0),(0,s.default)(this,"directions",[]),(0,s.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[p,...m]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>g(E,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(E,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(E,this,S).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.hot.getSelectedRangeLast(),{row:r,col:n}=t.getTopStartCorner(),{row:s,col:i}=t.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:n,endRow:s,endCol:i}]),a=[],u=[],c=[];return(0,h.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===a.indexOf(t)&&a.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===u.indexOf(t)&&u.push(t)}),(0,h.arrayEach)(a,t=>{const r=[];(0,h.arrayEach)(u,n=>{const s=e?this.hot.getSourceDataAtCell(t,n):null;e&&(0,l.isObject)(s)?r.push(this.hot.getCopyableSourceData(t,n)):r.push(this.hot.getCopyableData(t,n))}),c.push(r)}),c}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,r,n]=this.hot.selection.highlight.getFill().getVisualCorners(),s=this.hot.getSelectedRangeLast(),i=s.getTopStartCorner(),o=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,o.row,o.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(o.row,r),Math.max(o.col,n)],a),{directionOfDrag:u,startOfDragCoords:d,endOfDragCoords:p}=(0,c.getDragDirectionAndRange)(a,h,(e,t)=>this.hot._createCellCoords(e,t));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=this.getSelectionData(!0),r=s.clone(),n=this.hot._createCellRange(d,d,p),i=this.hot.runHooks("beforeAutofill",e,r,n,u);if(!1===i)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=i;const a=i;if(["up","left"].indexOf(u)>-1&&(1!==a.length||0!==a[0].length))if(o=[],"up"===u){const e=p.row-d.row+1,t=e%a.length;for(let r=0;r<e;r++)o.push(a[(r+(a.length-t))%a.length])}else{const e=p.col-d.col+1,t=e%a[0].length;for(let r=0;r<a.length;r++){o.push([]);for(let n=0;n<e;n++)o[r].push(a[r][(n+(a[r].length-t))%a[r].length])}}if(t.some(e=>e.some(e=>(0,l.isObject)(e)))){const e=g(E,this,y).call(this,o,t,d,p,u);e.length&&(o=e)}this.hot.populateFromArray(d.row,d.col,o,p.row,p.col,`${this.pluginName}.fill`,null),this.setSelection(h),this.hot.runHooks("afterAutofill",o,r,n,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),r=t.getBottomEndCorner();let n=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const s=t.getTopStartCorner();(r.col<=e.col||s.col>=e.col)&&(n=this.hot._createCellCoords(r.row,e.col)),(r.row<e.row||s.row>e.row)&&(n=this.hot._createCellCoords(e.row,r.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))n=this.hot._createCellCoords(e.row,r.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;n=this.hot._createCellCoords(r.row,e.col)}return this.reduceSelectionAreaIfNeeded(n)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout(()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1},200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),r=this.hot.countRows();e[2]<r-1&&t[2]===r-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),r=this.hot.countRows();let n;for(let s=e[2]+1;s<r;s++){for(let r=e[1];r<=e[3];r++){const e=t[s][r];if(!(0,u.isEmpty)(e))return-1}const r=t[s][e[1]-1],i=t[s][e[3]+1];(0,u.isEmpty)(r)&&(0,u.isEmpty)(i)||(n=s)}return n}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,h.arrayMap)(e,e=>Math.max(e,0)),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,r=(0,a.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,a.outerHeight)(this.hot.table),n=(0,a.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,a.outerWidth)(this.hot.table);return e.clientY>r&&e.clientX<=n}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",()=>g(E,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(E,this,T).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function y(e,t,r,n){const s=[];for(let i=Math.min(r.row,n.row);i<=Math.max(r.row,n.row);i+=1){s.push([]);for(let o=Math.min(r.col,n.col);o<=Math.max(r.col,n.col);o+=1){const a=this.hot.getSourceDataAtCell(i,o),h=i-Math.min(r.row,n.row),u=o-Math.min(r.col,n.col),c=h%t.length,d=u%t[0].length;(0,l.isObject)(a)?s[h][u]=t[c][d]:s[h][u]=e[c][d]}}return s}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function S(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function R(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function T(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=w},25145:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(0,1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},25250:(e,t,r)=>{"use strict";var n=r(92853);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},25589:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27972);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},25614:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(90643),r(31143),r(33098);var s=n(r(24300)),i=r(9208),o=r(21389);class a extends i.BaseAction{constructor(e){let{changes:t,selected:r,countCols:n,countRows:i}=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=r,this.countCols=n,this.countRows=i}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(r,n){const s=r&&r.length;if(!s)return;if(!r.find(e=>{const[,,t,r]=e;return t!==r}))return;t.done(()=>{const t=r.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const n=s>1?this.getSelected():[[t[0][0],t[0][1]]];return new a({changes:t,selected:n,countCols:e.countCols(),countRows:e.countRows()})},n)})}undo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(3,1);e.addHookOnce("afterChange",()=>{const r=e.countRows()-this.countRows;r>0&&e.alter("remove_row",null,r,"UndoRedo.undo");const n=e.countCols()-this.countCols;n>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,n,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.undo")}redo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(2,1);e.addHookOnce("afterChange",()=>{e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.redo")}}t.DataChangeAction=a},26005:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(48136));t.default=class{constructor(){this.clipboardData=new s.default}preventDefault(){}composedPath(){return[]}}},26023:(e,t,r)=>{"use strict";var n=r(19098),s=r(48369),i=r(31520),o=i.Set,a=i.proto,l=n(a.forEach),h=n(a.keys),u=h(new o).next;e.exports=function(e,t,r){return r?s({iterator:h(e),next:u},t):l(e,t)}},26172:(e,t,r)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=i;var n=r(40697);const s=t.RENDERER_TYPE="handsontable";function i(e,t,r,s,i,o,a){n.autocompleteRenderer.apply(this,[e,t,r,s,i,o,a])}i.RENDERER_TYPE=s},26241:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="begins_with";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(r))}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},26520:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(14228)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},26648:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(19098),o=r(53872),a=r(44827),l=r(15176),h=r(80706),u=r(84677),c=r(85988),d=r(52232),g=r(66228),p=r(12033),f=r(33973),m=p("replace"),E=TypeError,w=i("".indexOf),y=i("".replace),C=i("".slice),v=Math.max;n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,p,S,R,T,N,_,A,b=o(this),M=0,I="";if(l(e)){if((r=h(e))&&(n=u(o(d(e))),!~w(n,"g")))throw new E("`.replaceAll` does not allow non-global regexes");if(i=c(e,m))return s(i,e,b,t);if(f&&r)return y(u(b),e,t)}for(p=u(b),S=u(e),(R=a(t))||(t=u(t)),T=S.length,N=v(1,T),_=w(p,S);-1!==_;)A=R?u(t(S,_,p)):g(S,p,_,[],void 0,t),I+=C(p,M,_)+A,M=_+T,_=_+N>p.length?-1:w(p,S,_+N);return M<p.length&&(I+=C(p,M)),I}})},27089:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),r=e.getFirstFullyVisibleRow()-1,n=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,o=e._createCellCoords(r,n),a=e._createCellCoords(s,i);if(!e._createCellRange(o,o,a).includes(t)&&(t.row>=0||t.col>=0)){const r={};if(t.col>=0){const n=Math.floor(e.countVisibleCols()/2);r.col=Math.max(t.col-n,0)}if(t.row>=0){const n=Math.floor(e.countVisibleRows()/2);r.row=Math.max(t.row-n,0)}e.scrollViewportTo({...r,verticalSnap:"top",horizontalSnap:"start"})}}}},27317:()=>{},27367:(e,t,r)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:r,childs:o}=t;if(!r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(o[0]);r.isCollapsed=!1;const a=o.slice(1),l=new Set;let h=0;if(a.length>0)(0,n.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:n}=r;h=t-e;for(let e=1;e<t;e++)l.add(n+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(40785),s=r(55708),i=r(42413)},27446:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(940);var s=r(53383),i=r(6083),o=r(4407),a=r(40785),l=r(70095),h=r(17715),u=n(r(62107)),c=n(r(19026)),d=r(1531);function g(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(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}h.Hooks.getSingleton().register("beforeHideColumns"),h.Hooks.getSingleton().register("afterHideColumns"),h.Hooks.getSingleton().register("beforeUnhideColumns"),h.Hooks.getSingleton().register("afterUnhideColumns");const E=t.PLUGIN_KEY="hiddenColumns",w=t.PLUGIN_PRIORITY=310;var y=new WeakMap,C=new WeakSet;class v extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=C),t.add(e),function(e,t,r){g(e,t),t.set(e,r)}(this,y,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;this.enabled||(f(y,this,new d.HidingMap),p(y,this).addLocalHook("init",()=>m(C,this,A).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,p(y,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,_).call(e,...r)}),this.addHook("afterGetCellMeta",(e,t,r)=>m(C,this,R).call(this,e,t,r)),this.addHook("modifyColWidth",(e,t)=>m(C,this,S).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,N).call(e,...r)}),this.addHook("modifyCopyableRange",e=>m(C,this,T).call(this,e)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),r=this.isValidConfig(e);let n=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(r&&i){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(this.hot.toVisualColumn(r)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,n,r&&i)&&(r&&i&&p(y,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,n,r&&i,r&&n.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,n,r,r&&n.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(p(y,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return p(y,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipColumnOnPaste=!1})}destroy(){f(y,this,null),super.destroy()}}function S(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function R(e,t,r){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(r.skipColumnOnPaste=!0),this.isHidden(t-1))r.className=r.className||"",-1===r.className.indexOf("afterHiddenColumn")&&(r.className+=" afterHiddenColumn");else if(r.className){const e=r.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),r.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],r=(e,r,n,s)=>{t.push({startRow:e,endRow:r,startCol:n,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,n=0;(0,o.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||r(e.startRow,e.endRow,n,s-1),t=!0):(t&&(n=s),s===e.endCol&&r(e.startRow,e.endRow,n,s),t=!1)})}),t}function N(e,t){if(!this.getSetting("indicators")||e<0)return;const r=[];e>=1&&this.isHidden(e-1)&&r.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&r.push("beforeHiddenColumn"),(0,i.addClass)(t,r)}function _(e){e.items.push({name:l.SEPARATOR},(0,u.default)(this),(0,c.default)(this))}function A(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=v},27577:()=>{},27600:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s}=t;r<=n&&(this.startColumn=e);r>=n&&r<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;r+n-(i>0?n+1:n)<-1*s||r>l.at(-1)+h||-1*r-n>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},27727:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const r=!a(e),n="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="16.1.0-next-abd8f2e-20250904";let o,y="invalid",C="invalid";const v=function(e){let t=[][l],r=t;if(e[l]!==d("Z"))return!1;for(let t="",n="B<H4P+".split(""),s=d(n.shift());s;s=d(n.shift()||"A"))--s<""[l]?r|=(u(`${u(h(t)+(h(c(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,s,s?1===n[l]?9:8:6);return r===t}(e=g(e||""));if(r||n||v)if(v){const t=(0,s.default)("11/09/2025","DD/MM/YYYY"),r=Math.floor(t.toDate().getTime()/864e5),n=p(e);o=(0,s.default)(864e5*(n+1),"x").format("MMMM DD, YYYY"),r>n?(y="expired",C="expired"):(y="valid",C="valid")}else n?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){E[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](E[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(w[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[C]({keyValidityDate:o,hotVersion:i}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,r;const{rowIndexMapper:n,columnIndexMapper:s}=e,{navigableHeaders:i}=e.getSettings();let o=n.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(o<0){if(!i||0===e.countColHeaders())return null;o=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=n.getVisualFromRenderableIndex(o))&&void 0!==t?t:o,null!==(r=s.getVisualFromRenderableIndex(a))&&void 0!==r?r:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let s=n&&e.countColHeaders()>0?-e.countColHeaders():0,i=n&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===i&&(i=r.getVisualFromRenderableIndex(i));if(null===s||null===i)return null;return e._createCellCoords(s,i)},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=o,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=n(r(37539)),i=r(42685);function o(e){return void 0===e}function a(e){return null===e||""===e||o(e)}const l="length",h=e=>parseInt(e,16),u=e=>parseInt(e,10),c=(e,t,r)=>e.substr(t,r),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),p=e=>h(c(g(e),h("12"),d("F")))/(h(c(g(e),d("B"),~~![][l]))||9),f=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let m=!1;const E={invalid:()=>i.toSingleLine`
235
+ settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),n}return null},t.setupSheet=function(e,t){!(0,s.isUndefined)(t)&&e.doesSheetExist(t)||(t=e.addSheet(t));return t},t.unregisterEngine=function(e,t){if(e){const r=u(),n=r.get(e),s=c(),i=s.get(e);n&&n.includes(t)&&(n.splice(n.indexOf(t),1),0===n.length&&r.delete(e)),i&&i.includes(t.guid)&&(i.splice(i.indexOf(t.guid),1),0===i.length&&(s.delete(e),e.destroy()))}},r(99356),r(34478),r(31143),r(940);var n=r(55585),s=r(27727),i=r(42685),o=r(96357),a=r(21389),l=r(90742),h=r(95519);function u(){const e="engine_relationship",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function c(){const e="shared_engine_usage",t=(0,n.staticRegister)(l.PLUGIN_KEY);return t.hasItem(e)||t.register(e,new Map),t.getItem(e)}function d(e,t,r){const n=t[l.PLUGIN_KEY],s=(0,h.getEngineSettingsWithDefaultsAndOverrides)(t),i=u(),o=c();g(e,n.functions),p(e,n.language);const a=e.buildEmpty(s);return i.set(a,[r]),o.set(a,[r.guid]),f(a,n.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function g(e,t){t&&t.forEach(t=>{const{name:r,plugin:n,translations:s}=t;try{e.registerFunction(r,n,s)}catch(e){(0,o.warn)(e.message)}})}function p(e,t){if(t){const{langCode:r}=t;try{e.registerLanguage(r,t)}catch(e){(0,o.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:r,expression:n,scope:s,options:i}=t;try{e.addNamedExpression(r,n,s,i)}catch(e){(0,o.warn)(e.message)}}),e.resumeEvaluation())}},19247:()=>{},19429:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsRemove",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REMOVE_COMMENT)},callback(){this.getSelectedRangeActive().forAll((t,r)=>{t>=0&&r>=0&&e.removeCommentAtCell(t,r,!1)}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!!(!e||e.highlight.isHeader()||this.selection.isEntireRowSelected()&&this.selection.isEntireColumnSelected()||0===this.countRenderedRows()||0===this.countRenderedCols())}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230))},19451:(e,t,r)=>{"use strict";var n=r(19098),s=r(82683),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},19648:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(940);var s=n(r(24300)),i=r(6083),o=r(31075),a=r(40785),l=r(58231),h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),u=r(44876),c=r(8173),d=r(63470),g=r(5864),p=r(11278),f=r(49890);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 E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakSet;class y extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,w),(0,s.default)(this,"name",""),this.name=t.name,this.elements.push(new d.MultipleSelectUI(this.hot)),this.registerHooks()}registerHooks(){this.getMultipleSelectElement().addLocalHook("keydown",e=>E(w,this,C).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>E(w,this,S).call(this,e,t))}getElements(){const e=this.getMultipleSelectElement();return[e.getSearchInputElement(),e.getSelectAllElement(),e.getClearAllElement(),this.getMultipleSelectElement()]}setState(e){if(this.reset(),e&&e.command.key===g.CONDITION_BY_VALUE){const t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0]),t.setLocale(e.locale)}}getState(){const e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?g.CONDITION_NONE:g.CONDITION_BY_VALUE},args:[e.getValue()],itemsSnapshot:t}}updateState(e){const t=(t,r,n,s,i)=>{const[o]=(0,a.arrayFilter)(r,e=>e.name===g.CONDITION_BY_VALUE),l={},c=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS);if(o){const r=s(t,i),h=(0,a.arrayMap)(r,e=>e.value),d=new Map(r.map(e=>[e.value,this.hot.getCellMeta(e.meta.visualRow,e.meta.visualCol)])),f=(0,u.unifyColumnValues)(h);n&&(o.args[0]=n);const m=[],y=(0,u.intersectValues)(f,o.args[0],c,e=>{e.checked&&m.push(e.value),E(w,this,v).call(this,e,d)}),C=e.editedConditionStack.column;l.locale=this.hot.getCellMeta(0,C).locale,l.args=[m],l.command=(0,p.getConditionDescriptor)(g.CONDITION_BY_VALUE),l.itemsSnapshot=y}else l.args=[],l.command=(0,p.getConditionDescriptor)(g.CONDITION_NONE);this.state.setValueAtIndex(t,l)};t(e.editedConditionStack.column,e.editedConditionStack.conditions,e.conditionArgsChange,e.filteredRowsFactory),e.dependentConditionStacks.length&&t(e.dependentConditionStacks[0].column,e.dependentConditionStacks[0].conditions,e.conditionArgsChange,e.filteredRowsFactory,e.editedConditionStack)}getMultipleSelectElement(){return this.elements.filter(e=>e instanceof d.MultipleSelectUI)[0]}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,r,n,s,o)=>{(0,i.addClass)(t.parentNode,"htFiltersMenuValue");const l=this.hot.rootDocument.createElement("div");return(0,i.addClass)(l,"htFiltersMenuLabel"),l.textContent=o,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getTranslatedPhrase(h.FILTERS_VALUES_BLANK_CELLS),t=this._getColumnVisibleValues(),r=t.map(e=>e.value),n=new Map(t.map(e=>[e.value,e.meta])),s=(0,u.unifyColumnValues)(r),i=(0,u.intersectValues)(s,s,e,e=>{E(w,this,v).call(this,e,n)});this.getMultipleSelectElement().setItems(i),super.reset(),this.getMultipleSelectElement().setValue(s);const o=this.hot.getPlugin("filters").getSelectedColumn();null!==o&&this.getMultipleSelectElement().setLocale(this.hot.getCellMeta(0,o.visualIndex).locale)}_getColumnVisibleValues(){const e=this.hot.getPlugin("filters").getSelectedColumn();return null===e?[]:(0,a.arrayMap)(this.hot.getDataAtCol(e.visualIndex),(t,r)=>({value:(0,u.toEmptyString)(t),meta:this.hot.getCellMeta(r,e.visualIndex)}))}}function C(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,o.stopImmediatePropagation)(e))}function v(e,t){this.hot.hasHook("modifyFiltersMultiSelectValue")&&(e.visualValue=this.hot.runHooks("modifyFiltersMultiSelectValue",e.visualValue,t.get(e.value)))}function S(e,t){return"numeric"===t.type?(0,f.getRenderedValue)(e,t):e}t.ValueComponent=y},19682:(e,t,r)=>{"use strict";var n=r(53001);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},20022:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(21389),o=r(96645),a=n(r(93236));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,i.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,i.extend)(this.meta,e),(0,o.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},20048:(e,t,r)=>{"use strict";t.__esModule=!0,t.createFocusNavigator=function(e){return(0,n.createPaginator)({initialPage:0,size:()=>e.length,onItemSelect:(t,r)=>{const n=e[t];return n instanceof i.MultipleSelectUI?r:!(n.element&&!(0,s.isVisible)(n.element))&&void n.focus()}})};var n=r(43679),s=r(6083),i=r(63470)},20188:(e,t,r)=>{"use strict";t.__esModule=!0,t.timeRenderer=i;var n=r(5022);const s=t.RENDERER_TYPE="time";function i(e,t,r,s,i,o,a){n.textRenderer.apply(this,[e,t,r,s,i,o,a]),t.dir="ltr"}i.RENDERER_TYPE=s},20362:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeActive();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},20390:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineEnd",callback(e){const{selection:t,columnIndexMapper:r}=e;t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(e.getSelectedRangeActive().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},20514:()=>{},20536:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_CLEAR_COLUMN)},callback(e,t){const r=t[0].start.col,n=t[0].end.col;this.countRows()&&this.populateFromArray(0,r,[[null]],Math.max(t[0].start.row,t[0].end.row),n,"ContextMenu.clearColumn")},disabled(){const e=this.getSelectedRangeActive();if(!e||e.isSingleHeader()&&e.highlight.col<0||!this.selection.isSelectedByColumnHeader())return!0;let t=!1;return e.forAll((e,r)=>{if(e<0||r<0)return!0;const{readOnly:n}=this.getCellMeta(e,r);return!!n||(t=!0,!1)}),!t}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));const s=t.KEY="clear_column"},20559:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,p.registerEditor)(s.BaseEditor),(0,p.registerEditor)(n.AutocompleteEditor),(0,p.registerEditor)(i.CheckboxEditor),(0,p.registerEditor)(o.DateEditor),(0,p.registerEditor)(a.DropdownEditor),(0,p.registerEditor)(l.HandsontableEditor),(0,p.registerEditor)(h.NumericEditor),(0,p.registerEditor)(u.PasswordEditor),(0,p.registerEditor)(c.SelectEditor),(0,p.registerEditor)(d.TextEditor),(0,p.registerEditor)(g.TimeEditor)};var n=r(50057);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var s=r(95484);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var i=r(14864);t.CheckboxEditor=i.CheckboxEditor,t.CHECKBOX_EDITOR=i.EDITOR_TYPE;var o=r(85689);t.DateEditor=o.DateEditor,t.DATE_EDITOR=o.EDITOR_TYPE;var a=r(8116);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(69488);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(12638);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=r(41736);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=r(25589);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=r(91698);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var g=r(78072);t.TimeEditor=g.TimeEditor,t.TIME_EDITOR=g.EDITOR_TYPE;var p=r(69264);t.registerEditor=p.registerEditor,t.RegisteredEditor=p.RegisteredEditor,t._getEditorInstance=p._getEditorInstance,t.getEditor=p.getEditor,t.getEditorInstance=p.getEditorInstance,t.getRegisteredEditorNames=p.getRegisteredEditorNames,t.getRegisteredEditors=p.getRegisteredEditors,t.hasEditor=p.hasEditor},20620:()=>{},20635:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:top",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_TOP);return(0,s.checkSelectionBorders)(this,"top")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"top");e.prepareBorder(r,"top",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},20637:(e,t,r)=>{"use strict";var n=r(2382),s=r(98363),i=r(70906);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},20678:()=>{},20745:()=>{},20954:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(66133);var s=n(r(24300)),i=r(21389),o=r(40785);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"mergedCellsCollection",void 0),(0,s.default)(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}getDirection(e,t){let r=null;return r=t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3]?"down":t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]?"up":t[1]===e[1]&&t[2]===e[2]?"right":"left",r}snapDragArea(e,t,r,n){const s=t.slice(0),i=this.getAutofillSize(e,t,r),[o,a,l,h]=e,u=["up","down"].indexOf(r)>-1?l-o+1:h-a+1,c=i-Math.floor(i/u)*u,d=this.getFarthestCollection(e,t,r,n);if(d)if("down"===r){const e=d.row+d.rowspan-o-c;s[2]+e>=this.plugin.hot.countRows()?s[2]-=c:s[2]+=c?e:0}else if("right"===r){const e=d.col+d.colspan-a-c;s[3]+e>=this.plugin.hot.countCols()?s[3]-=c:s[3]+=c?e:0}else if("up"===r){const e=l-c-d.row+1;s[0]+e<0?s[0]+=c:s[0]-=c?e:0}else if("left"===r){const e=h-c-d.col+1;s[1]+e<0?s[1]+=c:s[1]-=c?e:0}return this.updateCurrentFillCache({baseArea:e,dragDirection:r,foundMergedCells:n,fillSize:i,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,i.extend)(this.currentFillData,e)}getAutofillSize(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return n-a;case"down":return h-i;case"left":return s-l;case"right":return u-o;default:return null}}getDragArea(e,t,r){const[n,s,i,o]=e,[a,l,h,u]=t;switch(r){case"up":return[a,l,n-1,o];case"down":{const e=this.mergedCellsCollection.get(h,o);return[i+1,s,h+(e?e.rowspan-1:0),o]}case"left":return[a,l,i,s-1];case"right":{const e=this.mergedCellsCollection.get(h,o);return[n,o+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,r,n){const[s,i,a,l]=e,h=["up","down"].indexOf(r)>-1,u=h?a:l,c=h?s:i,d=this.getAutofillSize(e,t,r),g=h?a-s+1:l-i+1,p=d-Math.floor(d/g)*g;let f=null,m=null,E=null;switch(r){case"up":f="includesVertically",E=u-p+1;break;case"left":f="includesHorizontally",E=u-p+1;break;case"down":f="includesVertically",E=c+p-1;break;case"right":f="includesHorizontally",E=c+p-1}return(0,o.arrayEach)(n,e=>{e[f](E)&&e.isFarther(m,r)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),r=this.currentFillData.foundMergedCells,n=this.currentFillData.dragDirection,s=(e,r)=>{switch(n){case"up":return e.row-r>=t.from.row;case"down":return e.row+e.rowspan-1+r<=t.to.row;case"left":return e.col-r>=t.from.column;case"right":return e.col+e.colspan-1+r<=t.to.column;default:return null}};let i=0,o=null,a=1;do{for(let e=0;e<r.length;e+=1){if(o=r[e],i=a*this.currentFillData.cycleLength,s(o,i))switch(n){case"up":this.plugin.mergedCellsCollection.add({row:o.row-i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:o.row+i,rowspan:o.rowspan,col:o.col,colspan:o.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col-i,colspan:o.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:o.row,rowspan:o.rowspan,col:o.col+i,colspan:o.colspan},!0)}e===r.length-1&&(a+=1)}}while(s(o,i));this.currentFillData=null,this.plugin.hot.render(),r.length>0&&this.plugin.ifChromeForceRepaint()}getRangeFromChanges(e){const t={min:null,max:null},r={min:null,max:null};return(0,o.arrayEach)(e,e=>{const n=e[0],s=this.plugin.hot.propToCol(e[1]);(null===t.min||n<t.min)&&(t.min=n),(null===t.max||n>t.max)&&(t.max=n),(null===r.min||s<r.min)&&(r.min=s),(null===r.max||s>r.max)&&(r.max=s)}),{from:{row:t.min,column:r.min},to:{row:t.max,column:r.max}}}dragAreaOverlapsCollections(e,t,r){const n=this.getDragArea(e,t,r),[s,i,o,a]=n,l=this.plugin.hot._createCellCoords(s,i),h=this.plugin.hot._createCellCoords(o,a),u=this.plugin.hot._createCellRange(l,l,h);if(0===this.mergedCellsCollection.getWithinRange(u,!0).length)return!1;const c=this.mergedCellsCollection.getWithinRange(u,!1);return 0===c.length||("up"===r||"down"===r?!c.every(e=>{let{colspan:t}=e;return t===u.getWidth()}):!c.every(e=>{let{rowspan:t}=e;return t===u.getHeight()}))}}},21177:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},21389:(e,t,r)=>{"use strict";t.__esModule=!0,t.assignObjectDefaults=function e(t,r){if("object"!=typeof t||null===t)return r;if("object"!=typeof r||null===r)return t;const n={};return Object.keys(r).forEach(s=>{"object"!=typeof r[s]||null===r[s]||Array.isArray(r[s])?n[s]=a(t,s)&&void 0!==t[s]?t[s]:r[s]:n[s]=e(t[s],r[s])}),Object.keys(t).forEach(e=>{a(n,e)||(n[e]=t[e])}),n},t.clone=function(e){const t={};return o(e,(e,r)=>{t[r]=e}),t},t.createObjectPropListener=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value";const r=`_${t}`,n={_touched:!1,[r]:e,isTouched(){return this._touched}};return Object.defineProperty(n,t,{get(){return this[r]},set(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),n},t.deepClone=s,t.deepExtend=function e(t,r){o(r,(n,s)=>{r[s]&&"object"==typeof r[s]?(t[s]||(Array.isArray(r[s])?t[s]=[]:"[object Date]"===Object.prototype.toString.call(r[s])?t[s]=r[s]:t[s]={}),e(t[s],r[s])):t[s]=r[s]})},t.deepObjectSize=function(e){if(!i(e))return 0;const t=function(e){let r=0;return i(e)?o(e,(e,n)=>{"__children"!==n&&(r+=t(e))}):r+=1,r};return t(e)},t.defineGetter=function(e,t,r,n){n.value=r,n.writable=!1!==n.writable,n.enumerable=!1!==n.enumerable,n.configurable=!1!==n.configurable,Object.defineProperty(e,t,n)},t.duckSchema=function e(t){let r;Array.isArray(t)?r=t.length?new Array(t.length).fill(null):[]:(r={},o(t,(t,n)=>{"__children"!==n&&(t&&"object"==typeof t&&!Array.isArray(t)?r[n]=e(t):Array.isArray(t)?t.length&&"object"==typeof t[0]&&!Array.isArray(t[0])?r[n]=[e(t[0])]:r[n]=[]:r[n]=null)}));return r},t.extend=function(e,t,r){const n=Array.isArray(r);return o(t,(t,s)=>{(!1===n||r.includes(s))&&(e[s]=t)}),e},t.getProperty=function(e,t){const r=t.split(".");let n=e;return o(r,e=>{if(n=n[e],void 0===n)return n=void 0,!1}),n},t.hasOwnProperty=a,t.inherit=function(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e},t.isObject=i,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,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return(0,n.arrayEach)(r,t=>{e.MIXINS.push(t.MIXIN_NAME),o(t,(t,r)=>{if(void 0!==e.prototype[r])throw new Error(`Mixin conflict. Property '${r}' already exist and cannot be overwritten.`);if("function"==typeof t)e.prototype[r]=t;else{const n=function(e,t){const r=`_${e}`;return function(){return void 0===this[r]&&(this[r]=(e=>{let t=e;return(Array.isArray(t)||i(t))&&(t=s(t)),t})(t)),this[r]}},o=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,r,{get:n(r,t),set:o(r),configurable:!0})}})}),e},t.objectEach=o,t.setProperty=function(e,t,r){if("string"!=typeof t)return;const n=t.split(".");let s=e;n.forEach((e,t)=>{"__proto__"!==e&&"constructor"!==e&&"prototype"!==e&&(t!==n.length-1?(a(s,e)||(s[e]={}),s=s[e]):s[e]=r)})},r(52490),r(99356),r(58584),r(34478),r(31143);var n=r(40785);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function i(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){for(const r in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,r))&&!1===t(e[r],r,e))break;return e}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},21422:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.FixedPageSizeStrategy=class{constructor(){(0,s.default)(this,"pageSize",1),(0,s.default)(this,"totalItems",0),(0,s.default)(this,"totalPages",0)}calculate(e){let{pageSize:t,totalItems:r}=e;this.pageSize=Math.max(t,1),this.totalItems=r,this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize))}getTotalPages(){return this.totalPages}getState(e){if((e-=1)<0||e>=this.getTotalPages())return;const t=e*this.pageSize;return{startIndex:t,endIndex:Math.max(0,Math.min(t+this.pageSize-1,this.totalItems-1)),pageSize:this.pageSize}}}},21439:(e,t,r)=>{"use strict";var n=r(19098),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(o);e.exports=function(e,t){if(l&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},21574:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(79956)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--guideline")}}t.default=o},21639:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(70792),o=r(90501),a=r(21177),l=r(64276),h=r(91509),u=r(33973),c=r(99793),d=r(47150),g=r(14483),p=!u&&!d("filter",function(){}),f=!u&&!p&&g("filter",TypeError),m=u||p||f,E=l(function(){for(var e,t,r=this.iterator,n=this.predicate,i=this.next;;){if(e=o(s(i,r)),this.done=!!e.done)return;if(t=e.value,h(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{i(e)}catch(e){c(this,"throw",e)}return f?s(f,this,e):new E(a(this),{predicate:e})}})},21769:(e,t,r)=>{"use strict";var n=r(19098),s=r(53001),i=r(44827),o=r(19451),a=r(2382),l=r(10768).CONFIGURABLE,h=r(88932),u=r(62579),c=u.enforce,d=u.get,g=String,p=Object.defineProperty,f=n("".slice),m=n("".replace),E=n([].join),w=a&&!s(function(){return 8!==p(function(){},"length",{value:8}).length}),y=String(String).split("String"),C=e.exports=function(e,t,r){"Symbol("===f(g(t),0,7)&&(t="["+m(g(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),w&&r&&o(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=c(e);return o(n,"source")||(n.source=E(y,"string"==typeof t?t:"")),e};Function.prototype.toString=C(function(){return i(this)&&d(this).source||h(this)},"toString")},21860:()=>{},22063:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14864),s=r(37864),i=r(83247);const o=t.CELL_TYPE="checkbox";t.CheckboxCellType={CELL_TYPE:o,editor:n.CheckboxEditor,renderer:s.checkboxRenderer,valueSetter:i.valueSetter}},22199:(e,t,r)=>{"use strict";t.__esModule=!0,t.loadingContent=function(e){let{id:t,icon:r,title:s,description:i}=e;return`\n <div class="${n.LOADING_CLASS_NAME}__content">\n <i class="${n.LOADING_CLASS_NAME}__icon">${r}</i>\n <div class="${n.LOADING_CLASS_NAME}__text">\n <h2 id="${t}-${n.PLUGIN_KEY}-title" class="${n.LOADING_CLASS_NAME}__title">${s}</h2>\n ${i?`<p id="${t}-${n.PLUGIN_KEY}-description" class="${n.LOADING_CLASS_NAME}__description">${i}</p>`:""}\n </div>\n </div>\n `};var n=r(24834)},22208:(e,t,r)=>{"use strict";var n=r(79268);e.exports=function(e){return n(e.length)}},22350:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(53383),o=r(40785),a=r(4407),l=r(96357),h=r(6083),u=r(31075),c=r(88453),d=r(13618);function g(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(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="collapsibleColumns",w=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",v=E,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var R=new WeakMap,T=new WeakSet;class N extends i.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=T),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.default)(this,"headerStateManager",null),function(e,t,r){g(e,t),t.set(e,r)}(this,R,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[E,...y]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,l.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),f(R,this,this.hot.columnIndexMapper.createAndRegisterIndexMap(this.pluginName,"hiding")),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.headerStateManager=this.nestedHeadersPlugin.getStateManager(),this.addHook("init",()=>m(T,this,b).call(this)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,M).call(e,...r)}),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(T,e,_).call(e,...r)}),this.addHook("beforeOnCellMouseDown",(e,t,r)=>m(T,this,A).call(this,e,t,r)),this.registerShortcuts(),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(this.hot.view){if(!this.nestedHeadersPlugin.detectedOverlappedHeaders){const{collapsibleColumns:e}=this.hot.getSettings();"boolean"==typeof e?this.headerStateManager.mapState(e=>({collapsible:e.origColspan>1})):Array.isArray(e)&&(this.headerStateManager.mapState(()=>({collapsible:!1})),this.headerStateManager.mergeStateWith(e))}super.updatePlugin()}}disablePlugin(){this.hot.columnIndexMapper.unregisterMap(this.pluginName),f(R,this,null),this.nestedHeadersPlugin=null,this.unregisterShortcuts(),this.clearButtons(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{var e;const{row:t,col:r}=this.hot.getSelectedRangeActive().highlight,{collapsible:n,isCollapsed:s,columnIndex:i}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,r))&&void 0!==e?e:{};if(n)return s?this.expandSection({row:t,col:i}):this.collapseSection({row:t,col:i}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isHeader())},group:v,relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(v)}clearButtons(){if(!this.hot.view)return;const e=this.hot.view._wt.getSetting("columnHeaders").length,t=this.hot.view._wt.wtTable.THEAD,r=this.hot.view._wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay?this.hot.view._wt.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null,s=function(e){e&&e.parentNode.removeChild(e)};(0,a.rangeEach)(0,e-1,e=>{const i=t.childNodes[e],o=r.childNodes[e],l=n?n.childNodes[e]:null;(0,a.rangeEach)(0,i.childNodes.length-1,e=>{let t=i.childNodes[e].querySelector(`.${C}`);s(t),o&&o.childNodes[e]&&(t=o.childNodes[e].querySelector(`.${C}`),s(t)),n&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(`.${C}`),s(t))})},!0)}expandSection(e){this.toggleCollapsibleSection([e],"expand")}collapseSection(e){this.toggleCollapsibleSection([e],"collapse")}toggleAllCollapsibleSections(e){const t=this.headerStateManager.mapNodes(t=>{const{collapsible:r,origColspan:n,headerLevel:s,columnIndex:i,isCollapsed:o}=t;if(!0===r&&n>1&&(o&&"expand"===e||!o&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:i}});this.toggleCollapsibleSection(t,e)}collapseAll(){this.toggleAllCollapsibleSections("collapse")}expandAll(){this.toggleAllCollapsibleSections("expand")}toggleCollapsibleSection(e,t){if(!S.has(t))throw new Error(`Unsupported action is passed (${t}).`);if(!Array.isArray(e))return;const r=(0,o.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let n=r.length>0;(0,o.arrayEach)(r,e=>{var r;let{row:s,col:i}=e;const{collapsible:o,isCollapsed:a}=null!==(r=this.headerStateManager.getHeaderSettings(s,i))&&void 0!==r?r:{};if(!o||a&&"collapse"===t||!a&&"expand"===t)return n=!1,!1});const s=[],i=[];n&&(0,o.arrayEach)(r,e=>{let{row:r,col:n}=e;const{colspanCompensation:o,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,r,n);o>0&&(i.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,o.arrayUnique)([...a,...i]):"expand"===t&&(l=(0,o.arrayFilter)(a,e=>!i.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,n))return void(0,o.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,o.arrayEach)(i,e=>{p(R,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const u=this.getCollapsedColumns().length!==a.length,c=this.hot.getSelectedRangeActive();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&i.includes(t)){const r=e>=0?this.hot.rowIndexMapper.getNearestNotHiddenIndex(e,1,!0):e,n=t>=0?this.hot.columnIndexMapper.getNearestNotHiddenIndex(t,1,!0):t;null!==r&&null!==n&&this.hot.selectCell(r,n)}}this.hot.runHooks(h.afterHook,a,l,n,u),this.hot.view.adjustElementsSize(),this.hot.render()}getCollapsedColumns(){return p(R,this).getHiddenIndexes()}destroy(){f(R,this,null),super.destroy()}}function _(e,t,r){var n;const{collapsible:s,origColspan:i,isCollapsed:o}=null!==(n=this.headerStateManager.getHeaderSettings(r,e))&&void 0!==n?n:{},a=s&&i>1&&e>=this.hot.getSettings().fixedColumnsStart,l=this.hot.getSettings().ariaTags;let u=t.querySelector(`.${C}`);var c;((0,h.removeAttribute)(t,[(0,d.A11Y_EXPANDED)("")[0]]),a)?(u||(u=this.hot.rootDocument.createElement("div"),(0,h.addClass)(u,C),t.querySelector("div:first-child").appendChild(u)),(0,h.removeClass)(u,["collapsed","expanded"]),o?((0,h.addClass)(u,"collapsed"),(0,h.fastInnerText)(u,"+"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!1))):((0,h.addClass)(u,"expanded"),(0,h.fastInnerText)(u,"-"),l&&(0,h.setAttribute)(t,...(0,d.A11Y_EXPANDED)(!0))),l&&(0,h.setAttribute)(u,...(0,d.A11Y_HIDDEN)())):null===(c=u)||void 0===c||c.remove()}function A(e,t){(0,h.hasClass)(e.target,C)&&((0,h.hasClass)(e.target,"expanded")?(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"collapse")):(0,h.hasClass)(e.target,"collapsed")&&(this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection([t],"expand")),(0,u.stopImmediatePropagation)(e))}function b(){this.updatePlugin()}function M(e,t){t||this.updatePlugin()}t.CollapsibleColumns=N},22493:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new i.default({className:"fill",border:{width:1,color:"#ff0000"},...t,selectionType:s.HIGHLIGHT_FILL_TYPE})};var s=r(74216),i=n(r(44982))},22546:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.FullyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s,columnWidth:i}=t;r>=n&&r+i<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e),this.endColumn=e)}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(e<=n&&(this.startColumn-=1),e>=n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;const u=r+n-(i>0?n+1:n),c=null===this.startColumn?0:e.getColumnWidth(this.startColumn);u<-1*s||r>l.at(-1)||-1*r-n>-1*c?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},22849:(e,t,r)=>{"use strict";var n=r(20637),s=r(21439),i=r(11613),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},23002:(e,t,r)=>{"use strict";var n=r(19098),s=0,i=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},23173:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,r){let n,s,i;t[0]===e[0]&&t[1]<e[1]?(i="left",n=r(t[0],t[1]),s=r(t[2],e[1]-1)):t[2]===e[2]&&t[0]===e[0]&&t[3]>e[3]?(i="right",n=r(t[0],e[3]+1),s=r(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(i="up",n=r(t[0],t[1]),s=r(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(i="down",n=r(e[2]+1,t[1]),s=r(t[2],t[3]));n&&n.normalize();s&&s.normalize();return{directionOfDrag:i,startOfDragCoords:n,endOfDragCoords:s}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(i),t.autoInsertRow=!0):(0,n.isObject)(e)?((0,s.isDefined)(e.autoInsertRow)?e.direction===i.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,s.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(i)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var n=r(21389),s=r(27727);const i=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},23224:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50575);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},23304:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(34478),r(31143);var n=r(53383),s=r(96832);function i(e,t,r){o(e,t),t.set(e,r)}function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="stretchColumns",c=t.PLUGIN_PRIORITY=155;var d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakSet;class m extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=f),t.add(e),i(this,d,new s.StretchCalculator(this.hot)),i(this,g,null),i(this,p,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 u}static get PLUGIN_PRIORITY(){return c}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(p,this).observe(this.hot.rootElement),this.addHook("beforeRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,w).call(e,...r)}),this.addHook("modifyColWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return h(f,e,E).call(e,...r)},10),super.enablePlugin())}updatePlugin(){l(d,this).useStrategy(this.hot.getSettings().stretchH),super.updatePlugin()}disablePlugin(){super.disablePlugin(),l(p,this).unobserve(this.hot.rootElement)}getColumnWidth(e){return l(d,this).getStretchedWidth(e)}destroy(){l(p,this).disconnect(),a(p,this,null),a(d,this,null),super.destroy()}}function E(e,t,r){if(r===this.pluginName)return;const n=this.getColumnWidth(t);return"number"==typeof n?n:e}function w(e){e&&l(d,this).refreshStretching()}t.StretchColumns=m},23451:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=o;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278);const i=t.CONDITION_NAME="gte";function o(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value>=n}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},23624:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6083),s=r(31075),i=r(21389),o=r(55924),a=r(2029);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 r=this,n=this.wot.rootDocument.body,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(n,"mousemove",function e(s){var o;((o=s).clientY<Math.floor(i.top)||o.clientY>Math.ceil(i.top+i.height)||o.clientX<Math.floor(i.left)||o.clientX>Math.ceil(i.left+i.width))&&(r.eventManager.removeEventListener(n,"mousemove",e),t.style.display="block")})}createBorders(e){const{rootDocument:t}=this.wot;this.main=t.createElement("div");const r=["top","start","bottom","end","corner"];let n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(let s=0;s<5;s++){const i=r[s],o=t.createElement("div");o.className=`wtBorder ${this.settings.className||""}`,this.settings[i]&&this.settings[i].hide&&(o.className+=" hidden"),n=o.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,n.width=this.settings[i]&&this.settings[i].width?`${this.settings[i].width}px`:`${e.border.width}px`,this.main.appendChild(o)}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,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.createMultipleSelectorHandles(),this.disappear();const{wtTable:s}=this.wot;let i=s.bordersHolder;i||(i=t.createElement("div"),i.className="htBorders",s.bordersHolder=i,s.spreader.appendChild(i)),i.appendChild(this.main)}createMultipleSelectorHandles(){const{rootDocument:e,wtSettings:t}=this.wot,r=t.getSetting("stylesHandler"),n=r.getCSSVariableValue("cell-mobile-handle-size"),s=r.getCSSVariableValue("cell-mobile-handle-border-radius"),o=r.getCSSVariableValue("cell-mobile-handle-background-color"),a=r.getCSSVariableValue("cell-mobile-handle-border-width"),l=r.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,i.objectEach)(h,(e,t)=>{this.selectionHandles.styles.bottomHitArea[t]=e,this.selectionHandles.styles.topHitArea[t]=e});const u=r.isClassicTheme()?{position:"absolute",height:"10px",width:"10px","border-radius":`${parseInt(10/1.5,10)}px`,background:"#F5F5FF",border:"1px solid #4285c8"}:{position:"absolute",height:`${n}px`,width:`${n}px`,"border-radius":`${s}px`,background:`${o}`,border:`${a}px solid ${l}`};(0,i.objectEach)(u,(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 r=this.wot.selectionManager.getAreaSelection();return!(!r.cellRange||e===r.cellRange.to.row&&t===r.cellRange.to.col)}updateMultipleSelectionHandlesPosition(e,t,r,n,s,i){const o=this.wot.wtSettings.getSetting("rtlMode")?"right":"left",{top:a,topHitArea:l,bottom:h,bottomHitArea:u}=this.selectionHandles.styles,c=parseInt(a.borderWidth,10),d=parseInt(a.width,10),g=parseInt(l.width,10),p=this.wot.wtTable.getWidth(),f=this.wot.wtTable.getHeight();a.top=`${parseInt(r-d-1,10)}px`,a[o]=`${parseInt(n-d-1,10)}px`,l.top=`${parseInt(r-g/4*3,10)}px`,l[o]=`${parseInt(n-g/4*3,10)}px`;const m=Math.min(parseInt(n+s,10),p-d-2*c),E=Math.min(parseInt(n+s-g/4,10),p-g-2*c);h[o]=`${m}px`,u[o]=`${E}px`;const w=Math.min(parseInt(r+i,10),f-d-2*c),y=Math.min(parseInt(r+i-g/4,10),f-g-2*c);h.top=`${w}px`,u.top=`${y}px`,this.settings.border.cornerVisible&&this.settings.border.cornerVisible()?(a.display="block",l.display="block",this.isPartRange(e,t)?(h.display="none",u.display="none"):(h.display="block",u.display="block")):(a.display="none",h.display="none",l.display="none",u.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,r,s,i]=e;if(t<0&&s<0||r<0&&i<0)return void this.disappear();const{wtTable:a,rootDocument:l,rootWindow:h}=this.wot,u=t!==s||r!==i,c=this.wot.wtSettings.getSetting("stylesHandler").isClassicTheme(),d=a.getFirstRenderedRow(),g=a.getLastRenderedRow(),p=a.getFirstRenderedColumn(),f=a.getLastRenderedColumn();if(p<0&&f<0||d<0&&g<0)return void this.disappear();let m;if(u){if(r=Math.max(r,p),i=Math.min(i,f),t=Math.max(t,d),s=Math.min(s,g),i<r||s<t)return void this.disappear();m=a.getCell(this.wot.createCellCoords(t,r))}else if(m=a.getCell(this.wot.createCellCoords(t,r)),!(0,n.isHTMLElement)(m))return void this.disappear();const E=u?a.getCell(this.wot.createCellCoords(s,i)):m,w=(0,n.offset)(m),y=u?(0,n.offset)(E):w,C=(0,n.offset)(a.TABLE),v=w.top,S=w.left,R=this.wot.wtSettings.getSetting("rtlMode");let T=0,N=0;if(R){const e=(0,n.outerWidth)(a.TABLE),t=(0,n.outerWidth)(m),r=h.innerWidth-C.left-e;N=S+t-y.left,T=h.innerWidth-S-t-r-1}else N=y.left+(0,n.outerWidth)(E)-S,T=S-C.left-1;if(this.isEntireColumnSelected(t,s)){const e=t,n=this.getDimensionsFromHeader("columns",r,i,e,C);let s=null;n&&([s,T,N]=n),s&&(m=s)}let _=v-C.top-1,A=y.top+(0,n.outerHeight)(E)-v;if(this.isEntireRowSelected(r,i)){const e=r,n=this.getDimensionsFromHeader("rows",t,s,e,C);let i=null;n&&([i,_,A]=n),i&&(m=i)}const b=h.getComputedStyle(m);parseInt(b.borderTopWidth,10)>0&&(_+=1,A=A>0?A-1:0),parseInt(b[R?"borderRightWidth":"borderLeftWidth"],10)>0&&(T+=1,N=N>0?N-1:0);const M=R?"right":"left",I=Math.ceil(this.settings.border.width/2);this.topStyle.top=`${_}px`,this.topStyle[M]=`${T}px`,this.topStyle.width=`${N+I}px`,this.topStyle.display="block",this.startStyle.top=`${_}px`,this.startStyle[M]=`${T}px`,this.startStyle.height=`${A+I}px`,this.startStyle.display="block",this.bottomStyle.top=`${_+A-parseInt(this.bottomStyle.height,10)+I}px`,this.bottomStyle[M]=`${T}px`,this.bottomStyle.width=`${N+I}px`,this.bottomStyle.display="block",this.endStyle.top=`${_}px`,this.endStyle[M]=`${T+N-parseInt(this.endStyle.width,10)+I}px`,this.endStyle.height=`${A+I}px`,this.endStyle.display="block";let O=this.settings.border.cornerVisible;O="function"==typeof O?O(this.settings.layerLevel):O;const x=this.wot.getSetting("onModifyGetCellCoords",s,i,!1,"render");let[P,L]=[s,i];if(x&&Array.isArray(x)&&([,,P,L]=x),(0,o.isMobileBrowser)()||!O||this.isPartRange(P,L))this.cornerStyle.display="none";else{this.cornerStyle.top=_+A+this.cornerCenterPointOffset-this.cornerDefaultStyle.borderWidth+"px",this.cornerStyle[M]=T+N+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,n.getTrimmingContainer)(a.TABLE);const t=e===h;t&&(e=l.documentElement);const r=parseInt(this.cornerDefaultStyle.borderWidth,10)-1,o=Math.ceil(parseInt(this.cornerDefaultStyle.width,10)/2),u=Math.ceil(parseInt(this.cornerDefaultStyle.height,10)/2);if(i===this.wot.getSetting("totalColumns")-1){const s=t?E.getBoundingClientRect().left:E.offsetLeft;let i=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=s+(0,n.outerWidth)(E)+parseInt(this.cornerDefaultStyle.width,10)/2,i=a>=(0,n.innerWidth)(e)),i){const e=Math.floor(T+N+this.cornerCenterPointOffset-o-r);c?(this.cornerStyle[M]=`${e}px`,this.cornerStyle[R?"borderLeftWidth":"borderRightWidth"]=0):this.cornerStyle[M]=e-1+"px"}}if(s===this.wot.getSetting("totalRows")-1){if((t?E.getBoundingClientRect().top:E.offsetTop)+(0,n.outerHeight)(E)+parseInt(this.cornerDefaultStyle.height,10)/2>=(0,n.innerHeight)(e)){const e=Math.floor(_+A+this.cornerCenterPointOffset-u-r);c?(this.cornerStyle.top=`${e}px`,this.cornerStyle.borderBottomWidth=0):this.cornerStyle.top=e-1+"px"}}this.cornerStyle.display="block"}(0,o.isMobileBrowser)()&&this.instance.getSetting("isDataViewInstance")&&this.updateMultipleSelectionHandlesPosition(s,i,_,T,N,A)}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,r,s,i){const{wtTable:o}=this.wot,a=o.wtRootElement.parentNode;let l=null,h=null,u=null,c=null,d=null,g=null,p=null,f=null;switch(e){case"rows":l=function(){return o.getRowHeader(...arguments)},h=function(){return(0,n.outerHeight)(...arguments)},u="ht__selection--rows",g="top";break;case"columns":l=function(){return o.getColumnHeader(...arguments)},h=function(){return(0,n.outerWidth)(...arguments)},u="ht__selection--columns",g="left"}if(a.classList.contains(u)){const e=this.wot.getSetting("columnHeaders").length;if(p=l(t,e-s),f=l(r,e-s),!p||!f)return!1;const o=(0,n.offset)(p),a=(0,n.offset)(f);return p&&f&&(c=o[g]-i[g]-1,d=a[g]+h(f)-o[g]),[p,c,d]}return!1}changeBorderStyle(e,t){const r=this[e].style,s=t[e];!s||s.hide?(0,n.addClass)(this[e],"hidden"):((0,n.hasClass)(this[e],"hidden")&&(0,n.removeClass)(this[e],"hidden"),r.backgroundColor=s.color,"top"!==e&&"bottom"!==e||(r.height=`${s.width}px`),"start"!==e&&"end"!==e||(r.width=`${s.width}px`))}changeBorderToDefaultStyle(e){const t=1,r="#000",n=this[e].style;n.backgroundColor=r,n.width=`${t}px`,n.height=`${t}px`}toggleHiddenClass(e,t){this.changeBorderToDefaultStyle(e),t?(0,n.addClass)(this[e],"hidden"):(0,n.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,o.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)}}},23718:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(34478),r(31143);var s=n(r(24300));t.ViewportBaseCalculator=class{constructor(e){(0,s.default)(this,"calculationTypes",[]),(0,s.default)(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(t=>{let[r,n]=t;this.calculationResults.set(r,n),n.initialize(e)})}_process(e,t){this.calculationTypes.forEach(r=>{let[,n]=r;return n.process(e,t)})}_finalize(e){this.calculationTypes.forEach(t=>{let[,r]=t;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}},23720:(e,t,r)=>{"use strict";var n=r(21769),s=r(98363);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),s.f(e,t,r)}},23845:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74418);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dateRenderer=n.dateRenderer},23861:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(40785),i=r(4407),o=r(6083),a=n(r(75175)),l=r(13618);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 r=this.hot.toPhysicalRow(e),n=this.dataManager.getDataObject(r);if(!n)return;const a=this.dataManager.getRowLevel(r),u=t.getElementsByTagName("DIV")[0],c=u.querySelector("span.rowHeader"),d=u.querySelectorAll('[class^="ht_nesting"]'),g=this.hot.getSettings().ariaTags;if((0,s.arrayEach)(d,e=>{e&&u.removeChild(e)}),(0,o.addClass)(t,h.CSS_CLASSES.indicatorContainer),a){const{rootDocument:e}=this.hot,t=c.cloneNode(!0);u.innerHTML="",(0,i.rangeEach)(0,a-1,()=>{const t=e.createElement("SPAN");(0,o.addClass)(t,h.CSS_CLASSES.emptyIndicator),u.appendChild(t)}),u.appendChild(t)}if(this.dataManager.hasChildren(n)){const e=this.hot.rootDocument.createElement("DIV");g&&(0,o.setAttribute)(e,[(0,l.A11Y_HIDDEN)()]),(0,o.addClass)(t,h.CSS_CLASSES.parent),this.collapsingUI.areChildrenCollapsed(r)?((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.expandButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!1)])):((0,o.addClass)(e,`${h.CSS_CLASSES.button} ${h.CSS_CLASSES.collapseButton}`),g&&(0,o.setAttribute)(t,[(0,l.A11Y_EXPANDED)(!0)])),u.appendChild(e)}}updateRowHeaderWidth(e){let t=e;t||(t=this.dataManager.cache.levelCount);let r=11;if(!this.hot.stylesHandler.isClassicTheme()){r=2*this.hot.stylesHandler.getCSSVariableValue("cell-horizontal-padding")}this.rowHeaderWidthCache=Math.max(50,r+10*t+25),this.hot.render()}}t.default=h},23869:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,r,s,i){const o=["visualRow","visualCol","row","col","prop"],a=o.length,l=[];return(0,n.rangeEach)(s,i,s=>{(0,n.rangeEach)(t,r,t=>{const r=e.getCellMeta(t,s);if(Object.keys(r).length!==a){const e=Object.fromEntries(Object.entries(r).filter(e=>{let[t]=e;return!1===o.includes(t)}));l.push([r.visualRow,r.visualCol,e])}})}),l},r(99356),r(89083),r(34478),r(29810);var n=r(4407)},24144:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(26172);t.RENDERER_TYPE=n.RENDERER_TYPE,t.handsontableRenderer=n.handsontableRenderer},24184:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[n.CellAlignmentAction,s.ColumnMoveAction,i.ColumnSortAction,o.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,u.MergeCellsAction,c.RemoveColumnAction,d.RemoveRowAction,g.RowMoveAction,p.UnmergeCellsAction].forEach(r=>r.startRegisteringEvents(e,t))};var n=r(93961),s=r(1145),i=r(63260),o=r(60564),a=r(98736),l=r(25614),h=r(29891),u=r(90375),c=r(15604),d=r(28816),g=r(39621),p=r(40408)},24234:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginatorStrategy=function(e){if(!i.has(e))throw new Error(`Unknown pagination strategy type: ${e}`);return new(i.get(e))},r(52490);var n=r(21422),s=r(82973);const i=new Map([["fixed",n.FixedPageSizeStrategy],["auto",s.AutoPageSizeStrategy]])},24278:(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([[]])},24300:(e,t,r)=>{var n=r(74851);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},24501:()=>{},24726:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"nestedHeaderSettingsGetter",void 0),(0,s.default)(this,"layersCount",0),(0,s.default)(this,"container",void 0),(0,s.default)(this,"widthsMap",void 0),this.hot=e,this.nestedHeaderSettingsGetter=t,this.widthsMap=this.hot.columnIndexMapper.createAndRegisterIndexMap("nestedHeaders.widthsMap","physicalIndexToValue")}setLayersCount(e){return this.layersCount=e,this}getWidth(e){return this.widthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e))}buildWidthsMap(){const e=this.hot.getCurrentThemeName();this.container=this.hot.rootDocument.createElement("div"),this.container.classList.add("handsontable","htGhostTable","htAutoSize"),e&&this.container.classList.add(e),this._buildGhostTable(this.container),this.hot.rootDocument.body.appendChild(this.container);const t=this.container.querySelectorAll("tr:last-of-type th"),r=t.length;this.widthsMap.clear();for(let e=0;e<r;e++){const r=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e),n=this.hot.toPhysicalColumn(r);this.widthsMap.setValueAtIndex(n,t[e].offsetWidth)}this.container.parentNode.removeChild(this.container),this.container=null}_buildGhostTable(e){const{rootDocument:t,columnIndexMapper:r}=this.hot,n=t.createDocumentFragment(),s=t.createElement("table"),o=!!this.hot.getSettings().dropdownMenu,a=r.getRenderableIndexesLength();for(let e=0;e<this.layersCount;e++){const n=t.createElement("tr");for(let s=0;s<a;s++){let a=r.getVisualFromRenderableIndex(s);null===a&&(a=s);const l=t.createElement("th"),h=this.nestedHeaderSettingsGetter(e,a);if(h&&(!h.isPlaceholder||h.isHidden)){let e=h.label;o&&(e+='<button class="changeType"></button>'),(0,i.fastInnerHTML)(l,e),l.colSpan=h.colspan,n.appendChild(l)}}s.appendChild(n)}n.appendChild(s),e.appendChild(n)}clear(){this.widthsMap.clear(),this.container=null}}},24834:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(53383),s=r(22199),i=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230));function o(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t,r){return e.set(h(e,t),r),r}function l(e,t){return e.get(h(e,t))}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const u=t.PLUGIN_KEY="loading",c=t.PLUGIN_PRIORITY=350,d=t.LOADING_CLASS_NAME=`ht-${u}`;var g=new WeakMap,p=new WeakSet;class f extends n.BasePlugin{constructor(){var e,t;super(...arguments),o(e=this,t=p),t.add(e),function(e,t,r){o(e,t),t.set(e,r)}(this,g,null)}static get PLUGIN_KEY(){return u}static get PLUGIN_PRIORITY(){return c}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()[u]}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(p,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,r;if(!this.isEnabled()||!l(g,this)||null===(t=l(g,this))||void 0===t||!t.isEnabled())return;this.updatePluginSettings(e);const n=this.hot.guid,o=this.getSetting("icon"),a=null!==(r=this.getSetting("title"))&&void 0!==r?r:this.hot.getTranslatedPhrase(i.LOADING_TITLE),h=this.getSetting("description"),c=(0,s.loadingContent)({id:n,icon:o,title:a,description:h});l(g,this).update({content:c,customClassName:d,background:0===this.hot.countSourceRows()?"solid":"semi-transparent",a11y:{role:"alertdialog",ariaLabelledby:`${n}-${u}-title`,ariaDescribedby:h?`${n}-${u}-description`:void 0}})}destroy(){a(g,this,null),super.destroy()}}function m(){l(g,this).focus()}t.Loading=f},25043:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(6083),o=n(r(46427)),a=r(31075),l=n(r(74216)),h=r(28416),u=r(55941),c=r(55585),d=r(13618);function g(e,t,r){p(e,t),t.set(e,r)}function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(e,t){return e.get(E(e,t))}function m(e,t,r){return e.set(E(e,t),r),r}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakMap,y=new WeakMap,C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;function A(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function b(e){const t=E(_,this,A).call(this)+e;(0,i.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function M(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,i.addClass)(e,"htHasScrollY"):(0,i.removeClass)(e,"htHasScrollY"),this.isVerticallyScrollableByWindow()?(0,i.addClass)(e,"htVerticallyScrollableByWindow"):(0,i.removeClass)(e,"htVerticallyScrollableByWindow"),this.hasHorizontalScroll()?(0,i.addClass)(e,"htHasScrollX"):(0,i.removeClass)(e,"htHasScrollX"),this.isHorizontallyScrollableByWindow()?(0,i.addClass)(e,"htHorizontallyScrollableByWindow"):(0,i.removeClass)(e,"htHorizontallyScrollableByWindow")}t.default=class{constructor(e){var t,r;p(t=this,r=_),r.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,w,0),g(this,y,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),g(this,C,!1),g(this,v,void 0),g(this,S,void 0),g(this,R,0),g(this,T,0),g(this,N,null),this.hot=e,this.eventManager=new o.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),E(_,this,M).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 r=this._wt.getCell(e,t);return r<0?null:r}scrollViewport(e,t,r){return this._wt.scrollViewport(e,t,r)}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,r=e.getAttribute("style");r&&e.setAttribute("data-originalstyle",r),(0,i.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,i.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,i.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,i.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,i.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"),f(S,this).appendChild(this.THEAD),this.TBODY=t.createElement("TBODY"),f(S,this).appendChild(this.TBODY),this.hot.table=f(S,this),this.hot.container.insertBefore(f(S,this),this.hot.container.firstChild)}registerEvents(){const{rootWrapperElement:e,rootElement:t,rootDocument:r,selection:n,rootWindow:s}=this.hot,o=r.documentElement;this.eventManager.addEventListener(t,"mousedown",e=>{m(C,this,!0),this.isTextSelectionAllowed(e.target)||((0,i.clearTextSelection)(s),e.preventDefault(),s.focus())}),this.eventManager.addEventListener(t,"mouseup",()=>{m(C,this,!1)}),this.eventManager.addEventListener(t,"mousemove",e=>{f(C,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,i.clearTextSelection)(s),e.preventDefault())}),this.eventManager.addEventListener(o,"keyup",e=>{n.isInProgress()&&!e.shiftKey&&n.finish()}),this.eventManager.addEventListener(o,"mouseup",s=>{var o;n.isInProgress()&&(0,a.isLeftClick)(s)&&n.finish(),m(v,this,!1);const l=(0,i.isOutsideInput)(r.activeElement),h=null===(o=r.querySelector(".ht-dialog"))||void 0===o?void 0:o.contains(r.activeElement);(0,i.isInput)(r.activeElement)&&!l||h||!l&&(n.isSelected()||n.isSelectedByAnyHeader()||(null!=e?e:t).contains(s.target)||(0,a.isRightClick)(s))||this.hot.unlisten()}),this.eventManager.addEventListener(o,"contextmenu",e=>{n.isInProgress()&&(0,a.isRightClick)(e)&&(n.finish(),m(v,this,!1))}),this.eventManager.addEventListener(o,"touchend",()=>{n.isInProgress()&&n.finish(),m(v,this,!1)}),this.eventManager.addEventListener(o,"mousedown",e=>{const n=e.target,s=e.x||e.clientX,a=e.y||e.clientY;let l=e.target;if(f(v,this)||!t||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,i.getScrollbarWidth)(r);if(r.elementFromPoint(s+e,a)!==h||r.elementFromPoint(s,a+e)!==h)return}else for(;l!==o;){if(null===l){if(e.isTargetWebComponent)break;return}if(l===t)return;l=l.parentNode}("function"==typeof this.settings.outsideClickDeselects?this.settings.outsideClickDeselects(n):this.settings.outsideClickDeselects)?this.hot.deselectCell():this.hot.destroyEditor(!1,!1)});let l=(0,i.getParentWindow)(s);for(;null!==l;)this.eventManager.addEventListener(l.document.documentElement,"click",()=>{this.hot.unlisten()}),l=(0,i.getParentWindow)(l);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,i.isInput)(e.target)||e.preventDefault()})}translateFromRenderableToVisualCoords(e){let{row:t,col:r}=e;return this.hot._createCellCoords(...this.translateFromRenderableToVisualIndex(t,r))}translateFromRenderableToVisualIndex(e,t){let r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e,n=t>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(t):t;return null===r&&(r=e),null===n&&(n=t),[r,n]}countRenderableIndexes(e,t){const r=Math.min(e.getNotTrimmedIndexesLength(),t),n=e.getNearestNotHiddenIndex(r-1,-1);return null===n?0:e.getRenderableFromVisualIndex(n)+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,r,n){if(isNaN(e)||e<0)return 0;const s=r.getNearestNotHiddenIndex(e,t),i=r.getRenderableFromVisualIndex(s);if(!Number.isInteger(i))return 0;let o=0;return t<0?o=i+1:t>0&&(o=n-i),o}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 r=0;for(let n=e;n<=t;n++)null!==this.hot.columnIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}countRenderableRowsInRange(e,t){let r=0;for(let n=e;n<=t;n++)null!==this.hot.rowIndexMapper.getRenderableFromVisualIndex(n)&&(r+=1);return r}addClassNameToLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.addClass)(r,e)}removeClassNameFromLicenseElement(e){var t;const r=null===(t=this.hot.rootElement.parentNode)||void 0===t?void 0:t.querySelector(".hot-display-license-info");r&&(0,i.removeClass)(r,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:f(S,this),isDataViewInstance:()=>(0,u.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 r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&E(_,this,A).call(this)===this.hot.countCols()&&E(_,this,b).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(w,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 r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,s]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.runHooks("modifyGetCellCoords",n,s,!1,"meta");let o=n,a=s;Array.isArray(i)&&([o,a]=i);const l=this.hot.getCellMeta(o,a),h=this.hot.colToProp(a);let u=this.hot.getDataAtRowProp(o,h);this.hot.hasHook("beforeValueRender")&&(u=this.hot.runHooks("beforeValueRender",u,l)),this.hot.runHooks("beforeRenderer",r,n,s,h,u,l),this.hot.getCellRenderer(l)(this.hot,r,n,s,h,u,l),this.hot.runHooks("afterRenderer",r,n,s,h,u,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,i.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(v,this,!0),m(N,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseDown",e,s,r),this.activeWt=this._wt)},onCellContextMenu:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,m(v,this,!1),this.hot.selection.isInProgress()&&this.hot.selection.finish(),this.hot.runHooks("beforeOnCellContextMenu",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellContextMenu",e,s,r),this.activeWt=this._wt)},onCellMouseOut:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOut",e,s,r),(0,a.isImmediatePropagationStopped)(e)||(this.hot.runHooks("afterOnCellMouseOut",e,s,r),this.activeWt=this._wt)},onCellMouseOver:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),i={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,s,r,i),(0,a.isImmediatePropagationStopped)(e)||(!f(v,this)||f(N,this)&&f(N,this).x===e.clientX&&f(N,this).y===e.clientY||(0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:i,cellCoordsFactory:(e,t)=>this.hot._createCellCoords(e,t)}),this.hot.runHooks("afterOnCellMouseOver",e,s,r),this.activeWt=this._wt,m(N,this,null))},onCellMouseUp:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t);this.activeWt=n,this.hot.runHooks("beforeOnCellMouseUp",e,s,r),(0,a.isImmediatePropagationStopped)(e)||this.hot.isDestroyed||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,cellRangeMapper:(0,c.resolveWithInstance)(this.hot,"cellRangeMapper")}),this.hot.runHooks("afterOnCellMouseUp",e,s,r),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 r=this.hot.rowIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollVertically",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.getRenderableFromVisualIndex(s)):e},onBeforeViewportScrollHorizontally:(e,t)=>{const r=this.hot.columnIndexMapper,n=e<0;let s=e;return n||(s=r.getVisualFromRenderableIndex(e),null!==s)?(s=this.hot.runHooks("beforeViewportScrollHorizontally",s,t),this.hot.runHooks("beforeViewportScroll"),n?s:r.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,r)=>{const n=this.hot.rowIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingRowHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,s=e<0;let i=e;s||(i=n.getVisualFromRenderableIndex(e));const o=this.hot.runHooks("beforeHighlightingColumnHeader",i,t,r);return s?o:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(o,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[s,i]=this.translateFromRenderableToVisualIndex(e,t),o=this.hot.selection.getSelectedRange();if(o.size()>0){const e=o.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,i,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,s,i]=e,o=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(i)];return this.hot.runHooks("beforeDrawBorders",o,t)},onBeforeTouchScroll:()=>this.hot.runHooks("beforeTouchScroll"),onAfterMomentumScroll:()=>this.hot.runHooks("afterMomentumScroll"),onModifyRowHeaderWidth:e=>this.hot.runHooks("modifyRowHeaderWidth",e),onModifyGetCellCoords:(e,t,r,n)=>{const s=this.hot.rowIndexMapper,i=this.hot.columnIndexMapper,o=t>=0?i.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,o,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(t,1)):t,r>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(r,-1)):r,n>=0?i.getRenderableFromVisualIndex(i.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,s=t>=0?n.getVisualFromRenderableIndex(t):t,i=e>=0?r.getVisualFromRenderableIndex(e):e,o=this.hot.runHooks("modifyGetCoordsElement",i,s);if(Array.isArray(o)){const[e,t]=o;return[e>=0?r.getRenderableFromVisualIndex(r.getNearestNotHiddenIndex(e,1)):e,t>=0?n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(t,1)):t]}},viewportRowCalculatorOverride:e=>{let t=this.settings.viewportRowRenderingOffset;if("auto"===t&&this.settings.fixedRowsTop&&(t=10),t>0||"auto"===t){const r=this.countRenderableRows(),n=e.startRow,s=e.endRow;if("number"==typeof t)e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-1);else if("auto"===t){const t=Math.max(1,Math.ceil(s/r*12));e.startRow=Math.max(n-t,0),e.endRow=Math.min(s+t,r-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 r=this.countRenderableColumns(),n=e.startColumn,s=e.endColumn;if("number"==typeof t&&(e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-1)),"auto"===t){const t=Math.max(1,Math.ceil(s/r*6));e.startColumn=Math.max(n-t,0),e.endColumn=Math.min(s+t,r-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:r,height:n}=this.hot.rootElement.getBoundingClientRect();this.setLastSize(r,n),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,r;if((0,i.isInput)(e))return!0;const n=(0,i.isChildOf)(e,this._wt.wtTable.spreader);if(!0===this.settings.fragmentSelection&&n)return!0;const s=null!==(t=null===(r=this.hot.getSelectedRangeActive())||void 0===r?void 0:r.isSingleCell())&&void 0!==t&&t;return!("cell"!==this.settings.fragmentSelection||!s||!n)||!(this.settings.fragmentSelection||!this.isCellEdited()||!s)}isMouseDown(){return f(v,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 r=t.firstChild;if(!(0,i.hasClass)(r,"relative"))return(0,i.empty)(t),void this.appendRowHeader(e,t);this.updateCellHeader(r.querySelector(".rowHeader"),e,this.hot.getRowHeader)}else{const{rootDocument:r,getRowHeader:n}=this.hot,s=r.createElement("div"),i=r.createElement("span");s.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,n),s.appendChild(i),t.appendChild(s)}this.hot.runHooks("afterGetRowHeader",e,t)}appendColHeader(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hot.getColHeader,n=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 o=t.firstChild;(0,i.hasClass)(o,"relative")?(this.updateCellHeader(o.querySelector(".colHeader"),e,r,n),o.className="",(0,i.addClass)(o,["relative",...s()])):((0,i.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:o}=this.hot,a=o.createElement("div"),l=o.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,i.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,i.setAttribute)(l,...(0,d.A11Y_PRESENTATION)())),this.updateCellHeader(l,e,r,n),a.appendChild(l),t.appendChild(a)}this.hot.runHooks("afterGetColHeader",e,t,n)}updateCellHeader(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=t;const o=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,i.hasClass)(e,"colHeader")?s=o.wtTable.columnFilter.sourceToRendered(t):(0,i.hasClass)(e,"rowHeader")&&(s=o.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,i.fastInnerHTML)(e,r(t,n)):((0,i.fastInnerText)(e,String.fromCharCode(160)),(0,i.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(T,this,t)}getLastSize(){return{width:f(R,this),height:f(T,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 f(w,this)}getRowHeadersCount(){return f(y,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()}}},25116:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(81056);var s=n(r(24300)),i=r(53383),o=r(17715),a=r(6083),l=r(21389),h=r(40785),u=r(27727),c=r(23173);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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}o.Hooks.getSingleton().register("modifyAutofillRange"),o.Hooks.getSingleton().register("beforeAutofill"),o.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",f=t.PLUGIN_PRIORITY=20,m=["fillHandle"];var E=new WeakSet;class w extends i.BasePlugin{constructor(){super(...arguments),d(this,E),(0,s.default)(this,"addingStarted",!1),(0,s.default)(this,"mouseDownOnCellCorner",!1),(0,s.default)(this,"mouseDragOutside",!1),(0,s.default)(this,"handleDraggedCells",0),(0,s.default)(this,"directions",[]),(0,s.default)(this,"autoInsertRow",!1)}static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return[p,...m]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>g(E,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(E,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(E,this,S).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.hot.getSelectedRangeLast(),{row:r,col:n}=t.getTopStartCorner(),{row:s,col:i}=t.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:r,startCol:n,endRow:s,endCol:i}]),a=[],u=[],c=[];return(0,h.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===a.indexOf(t)&&a.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===u.indexOf(t)&&u.push(t)}),(0,h.arrayEach)(a,t=>{const r=[];(0,h.arrayEach)(u,n=>{const s=e?this.hot.getSourceDataAtCell(t,n):null;e&&(0,l.isObject)(s)?r.push(this.hot.getCopyableSourceData(t,n)):r.push(this.hot.getCopyableData(t,n))}),c.push(r)}),c}fillIn(){if(this.hot.selection.highlight.getFill().isEmpty())return!1;const[e,t,r,n]=this.hot.selection.highlight.getFill().getVisualCorners(),s=this.hot.getSelectedRangeLast(),i=s.getTopStartCorner(),o=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[i.row,i.col,o.row,o.col],h=this.hot.runHooks("modifyAutofillRange",[Math.min(i.row,e),Math.min(i.col,t),Math.max(o.row,r),Math.max(o.col,n)],a),{directionOfDrag:u,startOfDragCoords:d,endOfDragCoords:p}=(0,c.getDragDirectionAndRange)(a,h,(e,t)=>this.hot._createCellCoords(e,t));if(d&&d.row>-1&&d.col>-1){const e=this.getSelectionData(),t=this.getSelectionData(!0),r=s.clone(),n=this.hot._createCellRange(d,d,p),i=this.hot.runHooks("beforeAutofill",e,r,n,u);if(!1===i)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=i;const a=i;if(["up","left"].indexOf(u)>-1&&(1!==a.length||0!==a[0].length))if(o=[],"up"===u){const e=p.row-d.row+1,t=e%a.length;for(let r=0;r<e;r++)o.push(a[(r+(a.length-t))%a.length])}else{const e=p.col-d.col+1,t=e%a[0].length;for(let r=0;r<a.length;r++){o.push([]);for(let n=0;n<e;n++)o[r].push(a[r][(n+(a[r].length-t))%a[r].length])}}if(t.some(e=>e.some(e=>(0,l.isObject)(e)))){const e=g(E,this,y).call(this,o,t,d,p,u);e.length&&(o=e)}this.hot.populateFromArray(d.row,d.col,o,p.row,p.col,`${this.pluginName}.fill`,null),this.setSelection(h),this.hot.runHooks("afterAutofill",o,r,n,u),this.hot.render()}else this.hot.view.render();return!0}reduceSelectionAreaIfNeeded(e){return e.row<0&&(e.row=0),e.col<0&&(e.col=0),e}getCoordsOfDragAndDropBorders(e){const t=this.hot.getSelectedRangeLast(),r=t.getBottomEndCorner();let n=e;if(this.directions.includes(c.DIRECTIONS.vertical)&&this.directions.includes(c.DIRECTIONS.horizontal)){const s=t.getTopStartCorner();(r.col<=e.col||s.col>=e.col)&&(n=this.hot._createCellCoords(r.row,e.col)),(r.row<e.row||s.row>e.row)&&(n=this.hot._createCellCoords(e.row,r.col))}else if(this.directions.includes(c.DIRECTIONS.vertical))n=this.hot._createCellCoords(e.row,r.col);else{if(!this.directions.includes(c.DIRECTIONS.horizontal))return;n=this.hot._createCellCoords(r.row,e.col)}return this.reduceSelectionAreaIfNeeded(n)}showBorder(e){const t=this.getCoordsOfDragAndDropBorders(e);t&&this.redrawBorders(t)}addRow(){this.hot._registerTimeout(()=>{this.hot.alter("insert_row_below",void 0,1,`${this.pluginName}.fill`),this.addingStarted=!1},200)}addNewRowIfNeeded(){if(!this.hot.selection.highlight.getFill().isEmpty()&&!1===this.addingStarted&&this.autoInsertRow){const e=this.hot.getSelectedLast(),t=this.hot.selection.highlight.getFill().getVisualCorners(),r=this.hot.countRows();e[2]<r-1&&t[2]===r-1&&(this.addingStarted=!0,this.addRow())}}getIndexOfLastAdjacentFilledInRow(e){const t=this.hot.getData(),r=this.hot.countRows();let n;for(let s=e[2]+1;s<r;s++){for(let r=e[1];r<=e[3];r++){const e=t[s][r];if(!(0,u.isEmpty)(e))return-1}const r=t[s][e[1]-1],i=t[s][e[3]+1];(0,u.isEmpty)(r)&&(0,u.isEmpty)(i)||(n=s)}return n}addSelectionFromStartAreaToSpecificRowIndex(e,t){this.hot.selection.highlight.getFill().clear().add(this.hot._createCellCoords(e[0],e[1])).add(this.hot._createCellCoords(t,e[3])).commit()}setSelection(e){this.hot.selectCell(...(0,h.arrayMap)(e,e=>Math.max(e,0)),!1,!1)}selectAdjacent(){const e=this.hot.getSelectedLast(),t=this.getIndexOfLastAdjacentFilledInRow(e);return-1!==t&&void 0!==t&&(this.addSelectionFromStartAreaToSpecificRowIndex(e,t),!0)}resetSelectionOfDraggedArea(){this.handleDraggedCells=0,this.hot.selection.highlight.getFill().clear()}redrawBorders(e){this.hot.selection.highlight.getFill().clear().add(this.hot.getSelectedRangeLast().from).add(this.hot.getSelectedRangeLast().to).add(e).commit(),this.hot.view.render()}getIfMouseWasDraggedOutside(e){const{documentElement:t}=this.hot.rootDocument,r=(0,a.offset)(this.hot.table).top-(this.hot.rootWindow.pageYOffset||t.scrollTop)+(0,a.outerHeight)(this.hot.table),n=(0,a.offset)(this.hot.table).left-(this.hot.rootWindow.pageXOffset||t.scrollLeft)+(0,a.outerWidth)(this.hot.table);return e.clientY>r&&e.clientX<=n}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mouseup",()=>g(E,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(E,this,T).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,c.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function y(e,t,r,n){const s=[];for(let i=Math.min(r.row,n.row);i<=Math.max(r.row,n.row);i+=1){s.push([]);for(let o=Math.min(r.col,n.col);o<=Math.max(r.col,n.col);o+=1){const a=this.hot.getSourceDataAtCell(i,o),h=i-Math.min(r.row,n.row),u=o-Math.min(r.col,n.col),c=h%t.length,d=u%t[0].length;(0,l.isObject)(a)?s[h][u]=t[c][d]:s[h][u]=e[c][d]}}return s}function C(){this.selectAdjacent()&&this.fillIn()}function v(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function S(e){this.mouseDownOnCellCorner&&!this.hot.view.isMouseDown()&&this.handleDraggedCells&&(this.handleDraggedCells+=1,this.showBorder(e),this.addNewRowIfNeeded())}function R(){this.handleDraggedCells&&(this.handleDraggedCells>1&&this.fillIn(),this.handleDraggedCells=0,this.mouseDownOnCellCorner=!1)}function T(e){const t=this.getIfMouseWasDraggedOutside(e);!1===this.addingStarted&&this.handleDraggedCells>0&&t?(this.mouseDragOutside=!0,this.addingStarted=!0):this.mouseDragOutside=!1,this.mouseDragOutside&&this.autoInsertRow&&this.addRow()}t.Autofill=w},25145:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostTop",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive(),o=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||o){const a=r.getNearestNotHiddenIndex(0,1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),o&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,i.col)),t.markEndSource()}}}},25250:(e,t,r)=>{"use strict";var n=r(92853);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},25589:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27972);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},25614:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(90643),r(31143),r(33098);var s=n(r(24300)),i=r(9208),o=r(21389);class a extends i.BaseAction{constructor(e){let{changes:t,selected:r,countCols:n,countRows:i}=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=r,this.countCols=n,this.countRows=i}static startRegisteringEvents(e,t){e.addHook("beforeChange",function(r,n){const s=r&&r.length;if(!s)return;if(!r.find(e=>{const[,,t,r]=e;return t!==r}))return;t.done(()=>{const t=r.reduce((e,t)=>(e.push([...t]),e),[]);t.forEach(t=>{t[1]=e.propToCol(t[1])});const n=s>1?this.getSelected():[[t[0][0],t[0][1]]];return new a({changes:t,selected:n,countCols:e.countCols(),countRows:e.countRows()})},n)})}undo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(3,1);e.addHookOnce("afterChange",()=>{const r=e.countRows()-this.countRows;r>0&&e.alter("remove_row",null,r,"UndoRedo.undo");const n=e.countCols()-this.countCols;n>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,n,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.undo")}redo(e,t){const r=(0,o.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(2,1);e.addHookOnce("afterChange",()=>{e.selectCells(this.selected,!1,!1),t()}),e.setDataAtCell(r,null,null,"UndoRedo.redo")}}t.DataChangeAction=a},26005:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(48136));t.default=class{constructor(){this.clipboardData=new s.default}preventDefault(){}composedPath(){return[]}}},26023:(e,t,r)=>{"use strict";var n=r(19098),s=r(48369),i=r(31520),o=i.Set,a=i.proto,l=n(a.forEach),h=n(a.keys),u=h(new o).next;e.exports=function(e,t,r){return r?s({iterator:h(e),next:u},t):l(e,t)}},26172:(e,t,r)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=i;var n=r(40697);const s=t.RENDERER_TYPE="handsontable";function i(e,t,r,s,i,o,a){n.autocompleteRenderer.apply(this,[e,t,r,s,i,o,a])}i.RENDERER_TYPE=s},26241:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(27727),i=r(11278);const o=t.CONDITION_NAME="begins_with";function a(e,t){let[r]=t;return(0,s.stringify)(e.value).toLocaleLowerCase(e.meta.locale).startsWith((0,s.stringify)(r))}(0,i.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_BEGINS_WITH,inputsCount:1,showOperators:!0})},26520:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(14228)),o=n(r(80595)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM_INLINE_START_CORNER)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},26648:(e,t,r)=>{"use strict";var n=r(72820),s=r(77439),i=r(19098),o=r(53872),a=r(44827),l=r(15176),h=r(80706),u=r(84677),c=r(85988),d=r(52232),g=r(66228),p=r(12033),f=r(33973),m=p("replace"),E=TypeError,w=i("".indexOf),y=i("".replace),C=i("".slice),v=Math.max;n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,i,p,S,R,T,N,_,A,b=o(this),M=0,I="";if(l(e)){if((r=h(e))&&(n=u(o(d(e))),!~w(n,"g")))throw new E("`.replaceAll` does not allow non-global regexes");if(i=c(e,m))return s(i,e,b,t);if(f&&r)return y(u(b),e,t)}for(p=u(b),S=u(e),(R=a(t))||(t=u(t)),T=S.length,N=v(1,T),_=w(p,S);-1!==_;)A=R?u(t(S,_,p)):g(S,p,_,[],void 0,t),I+=C(p,M,_)+A,M=_+T,_=_+N>p.length?-1:w(p,S,_+N);return M<p.length&&(I+=C(p,M)),I}})},27089:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"scrollToFocusedCell",callback(e){const{highlight:t}=e.getSelectedRangeActive(),r=e.getFirstFullyVisibleRow()-1,n=e.getFirstFullyVisibleColumn()-1,s=e.getLastFullyVisibleRow()+1,i=e.getLastFullyVisibleColumn()+1,o=e._createCellCoords(r,n),a=e._createCellCoords(s,i);if(!e._createCellRange(o,o,a).includes(t)&&(t.row>=0||t.col>=0)){const r={};if(t.col>=0){const n=Math.floor(e.countVisibleCols()/2);r.col=Math.max(t.col-n,0)}if(t.row>=0){const n=Math.floor(e.countVisibleRows()/2);r.row=Math.max(t.row-n,0)}e.scrollViewportTo({...r,verticalSnap:"top",horizontalSnap:"start"})}}}},27317:()=>{},27367:(e,t,r)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:r,childs:o}=t;if(!r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,i.isNodeReflectsFirstChildColspan)(t))return e(o[0]);r.isCollapsed=!1;const a=o.slice(1),l=new Set;let h=0;if(a.length>0)(0,n.arrayEach)(a,e=>{e.replaceTreeWith(e.data.clonedTree),e.data.clonedTree=null;const t=e.data;h+=t.colspan,(0,i.traverseHiddenNodeColumnIndexes)(e,e=>{l.add(e)})});else{const{colspan:e,origColspan:t,columnIndex:n}=r;h=t-e;for(let e=1;e<t;e++)l.add(n+e)}return t.walkUp(e=>{const{data:t}=e;t.colspan+=h,t.colspan>=t.origColspan?(t.colspan=t.origColspan,t.isCollapsed=!1):(0,i.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,i.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(40785),s=r(55708),i=r(42413)},27446:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(940);var s=r(53383),i=r(6083),o=r(4407),a=r(40785),l=r(70095),h=r(17715),u=n(r(62107)),c=n(r(19026)),d=r(1531);function g(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(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}h.Hooks.getSingleton().register("beforeHideColumns"),h.Hooks.getSingleton().register("afterHideColumns"),h.Hooks.getSingleton().register("beforeUnhideColumns"),h.Hooks.getSingleton().register("afterUnhideColumns");const E=t.PLUGIN_KEY="hiddenColumns",w=t.PLUGIN_PRIORITY=310;var y=new WeakMap,C=new WeakSet;class v extends s.BasePlugin{constructor(){var e,t;super(...arguments),g(e=this,t=C),t.add(e),function(e,t,r){g(e,t),t.set(e,r)}(this,y,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;this.enabled||(f(y,this,new d.HidingMap),p(y,this).addLocalHook("init",()=>m(C,this,A).call(this)),this.hot.columnIndexMapper.registerMap(this.pluginName,p(y,this)),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,_).call(e,...r)}),this.addHook("afterGetCellMeta",(e,t,r)=>m(C,this,R).call(this,e,t,r)),this.addHook("modifyColWidth",(e,t)=>m(C,this,S).call(this,e,t),2),this.addHook("afterGetColHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return m(C,e,N).call(e,...r)}),this.addHook("modifyCopyableRange",e=>m(C,this,T).call(this,e)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.hot.columnIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showColumns(e){const t=this.getHiddenColumns(),r=this.isValidConfig(e);let n=t;const s=p(y,this).getValues().slice(),i=e.length>0;if(r&&i){const t=e.map(e=>this.hot.toPhysicalColumn(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(this.hot.toVisualColumn(r)),e),[])}!1!==this.hot.runHooks("beforeUnhideColumns",t,n,r&&i)&&(r&&i&&p(y,this).setValues(s),this.hot.view.adjustElementsSize(),this.hot.runHooks("afterUnhideColumns",t,n,r&&i,r&&n.length<t.length))}showColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.showColumns(t)}hideColumns(e){const t=this.getHiddenColumns(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideColumns",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{p(y,this).setValueAtIndex(this.hot.toPhysicalColumn(e),!0)})},!0),this.hot.runHooks("afterHideColumns",t,n,r,r&&n.length>t.length))}hideColumn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.hideColumns(t)}getHiddenColumns(){return(0,a.arrayMap)(p(y,this).getHiddenIndexes(),e=>this.hot.toVisualColumn(e))}isHidden(e){return p(y,this).getValueAtIndex(this.hot.toPhysicalColumn(e))||!1}isValidConfig(e){const t=this.hot.countCols();return!!(Array.isArray(e)&&e.length>0)&&e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}resetCellsMeta(){(0,a.arrayEach)(this.hot.getCellsMeta(),e=>{e.skipColumnOnPaste=!1})}destroy(){f(y,this,null),super.destroy()}}function S(e,t){return this.isHidden(t)?0:this.getSetting("indicators")&&(this.isHidden(t+1)||this.isHidden(t-1))&&"number"==typeof e&&this.hot.hasColHeaders()?e+15:void 0}function R(e,t,r){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(t)&&(r.skipColumnOnPaste=!0),this.isHidden(t-1))r.className=r.className||"",-1===r.className.indexOf("afterHiddenColumn")&&(r.className+=" afterHiddenColumn");else if(r.className){const e=r.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenColumn");t>-1&&e.splice(t,1),r.className=e.join(" ")}}}function T(e){if(this.getSetting("copyPasteEnabled"))return e;const t=[],r=(e,r,n,s)=>{t.push({startRow:e,endRow:r,startCol:n,endCol:s})};return(0,a.arrayEach)(e,e=>{let t=!0,n=0;(0,o.rangeEach)(e.startCol,e.endCol,s=>{this.isHidden(s)?(t||r(e.startRow,e.endRow,n,s-1),t=!0):(t&&(n=s),s===e.endCol&&r(e.startRow,e.endRow,n,s),t=!1)})}),t}function N(e,t){if(!this.getSetting("indicators")||e<0)return;const r=[];e>=1&&this.isHidden(e-1)&&r.push("afterHiddenColumn"),e<this.hot.countCols()-1&&this.isHidden(e+1)&&r.push("beforeHiddenColumn"),(0,i.addClass)(t,r)}function _(e){e.items.push({name:l.SEPARATOR},(0,u.default)(this),(0,c.default)(this))}function A(){const e=this.getSetting("columns");Array.isArray(e)&&this.hideColumns(e)}t.HiddenColumns=v},27577:()=>{},27600:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.PartiallyVisibleColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",null),(0,s.default)(this,"endColumn",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedWidth:r,zeroBasedScrollOffset:n,viewportWidth:s}=t;r<=n&&(this.startColumn=e);r>=n&&r<=n+(n>0?s+1:s)&&(null!==this.startColumn&&void 0!==this.startColumn||(this.startColumn=e)),this.endColumn=e}finalize(e){var t;const{scrollOffset:r,viewportWidth:n,inlineStartOffset:s,zeroBasedScrollOffset:i,totalColumns:o,needReverse:a,startPositions:l,columnWidth:h}=e;if(this.endColumn===o-1&&a)for(this.startColumn=this.endColumn;this.startColumn>0;){const e=l[this.endColumn]+h-l[this.startColumn-1];if(this.startColumn-=1,e>n)break}this.startPosition=null!==(t=l[this.startColumn])&&void 0!==t?t:null;r+n-(i>0?n+1:n)<-1*s||r>l.at(-1)+h||-1*r-n>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,o<this.endColumn&&(this.endColumn=o-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}},27727:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t._injectProductInfo=function(e,t){const r=!a(e),n="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),i="16.1.0-next-91b8a0f-20250905";let o,y="invalid",C="invalid";const v=function(e){let t=[][l],r=t;if(e[l]!==d("Z"))return!1;for(let t="",n="B<H4P+".split(""),s=d(n.shift());s;s=d(n.shift()||"A"))--s<""[l]?r|=(u(`${u(h(t)+(h(c(e,Math.abs(s),2))+[]).padStart(2,"0"))}`)%97||2)>>1:t=c(e,s,s?1===n[l]?9:8:6);return r===t}(e=g(e||""));if(r||n||v)if(v){const t=(0,s.default)("11/09/2025","DD/MM/YYYY"),r=Math.floor(t.toDate().getTime()/864e5),n=p(e);o=(0,s.default)(864e5*(n+1),"x").format("MMMM DD, YYYY"),r>n?(y="expired",C="expired"):(y="valid",C="valid")}else n?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){E[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](E[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(w[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[C]({keyValidityDate:o,hotVersion:i}),t.appendChild(e)}}},t.getMostBottomEndPosition=function(e){var t,r;const{rowIndexMapper:n,columnIndexMapper:s}=e,{navigableHeaders:i}=e.getSettings();let o=n.getRenderableIndexesLength()-1,a=s.getRenderableIndexesLength()-1;if(o<0){if(!i||0===e.countColHeaders())return null;o=-1}if(a<0){if(!i||0===e.countColHeaders())return null;a=-1}return e._createCellCoords(null!==(t=n.getVisualFromRenderableIndex(o))&&void 0!==t?t:o,null!==(r=s.getVisualFromRenderableIndex(a))&&void 0!==r?r:a)},t.getMostTopStartPosition=function(e){const{rowIndexMapper:t,columnIndexMapper:r}=e,{navigableHeaders:n}=e.getSettings();let s=n&&e.countColHeaders()>0?-e.countColHeaders():0,i=n&&e.countRowHeaders()>0?-e.countRowHeaders():0;0===s&&(s=t.getVisualFromRenderableIndex(s));0===i&&(i=r.getVisualFromRenderableIndex(i));if(null===s||null===i)return null;return e._createCellCoords(s,i)},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=o,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=n(r(37539)),i=r(42685);function o(e){return void 0===e}function a(e){return null===e||""===e||o(e)}const l="length",h=e=>parseInt(e,16),u=e=>parseInt(e,10),c=(e,t,r)=>e.substr(t,r),d=e=>e.codePointAt(0)-65,g=e=>`${e}`.replace(/\-/g,""),p=e=>h(c(g(e),h("12"),d("F")))/(h(c(g(e),d("B"),~~![][l]))||9),f=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let m=!1;const E={invalid:()=>i.toSingleLine`
236
236
  The license key for Handsontable is invalid.\x20
237
237
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:r}=e;return i.toSingleLine`
238
238
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -274,7 +274,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
274
274
  This combination is not supported. The plugin will remain disabled.`),r})};var n=r(42685),s=r(96357);const i=["nestedRows","mergeCells","fixedRowsTop","fixedRowsBottom"]},73805:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},74011:(e,t,r)=>{"use strict";t.__esModule=!0,t.numericValidator=i;var n=r(4407);const s=t.VALIDATOR_TYPE="numeric";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):t(""!==r&&(0,n.isNumeric)(e))}i.VALIDATOR_TYPE=s},74071:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143);var s=n(r(38350));function i(e,t,r){o(e,t),t.set(e,r)}function o(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(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap,E=new WeakSet;function w(e){let{selectedRange:t,selectionLayer:r,listOrder:n,mergeCellsVisitor:s,row:i,column:o}=e;const l=t.getTopStartCorner(),h=t.getBottomEndCorner(),u=t.highlight.clone().normalize(),c=a(p,this).call(this,i,o);if(c&&s.has(c))return null;const d={selectionLayer:r,colStart:o,colEnd:o,rowStart:i,rowEnd:i};if(c){if(s.add(c),c.row<l.row||c.row+c.rowspan-1>h.row||c.col<l.col||c.col+c.colspan-1>h.col)return null;d.colStart=c.col,d.colEnd=c.col+c.colspan-1,d.rowStart=c.row,d.rowEnd=c.row+c.rowspan-1}const g=n.push(d);return i===u.row&&o===u.col||c&&u.row>=c.row&&u.row<=c.row+c.rowspan-1&&u.col>=c.col&&u.col<=c.col+c.colspan-1?g:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:r,columnIndexMapper:n}=e;var a,h;o(a=this,h=E),h.add(a),i(this,u,new s.default),i(this,c,new s.default),i(this,d,null),i(this,g,null),i(this,p,null),i(this,f,null),i(this,m,null),l(p,this,t),l(f,this,r),l(m,this,n)}getCurrentVerticalNode(){return a(g,this).data}getFirstVerticalNode(){return a(c,this).first.data}getNextVerticalNode(){return a(g,this).next.data}getPrevVerticalNode(){return a(g,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(u,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(g,this,a(g,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(g,this,a(g,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){l(u,this,new s.default),e.forEach((e,t)=>{const r=new WeakSet,n=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let i=n.row;i<=s.row;i++)if(!a(f,this).isHidden(i))for(let o=n.col;o<=s.col;o++){if(a(m,this).isHidden(o))continue;const n=h(E,this,w).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(u,this),mergeCellsVisitor:r,row:i,column:o});n&&l(d,this,n)}}),a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first),l(c,this,new s.default),e.forEach((e,t)=>{const r=new WeakSet,n=e.getTopStartCorner(),s=e.getBottomEndCorner();for(let i=n.col;i<=s.col;i++)if(!a(m,this).isHidden(i))for(let o=n.row;o<=s.row;o++){if(a(f,this).isHidden(o))continue;const n=h(E,this,w).call(this,{selectedRange:e,selectionLayer:t,listOrder:a(c,this),mergeCellsVisitor:r,row:o,column:i});n&&l(g,this,n)}}),a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first)}setActiveNode(e,t,r){return a(u,this).inorder(n=>{const{selectionLayer:s,rowStart:i,rowEnd:o,colStart:a,colEnd:h}=n.data;if(s===r&&e>=i&&e<=o&&t>=a&&t<=h)return l(d,this,n),!0}),a(c,this).inorder(n=>{const{selectionLayer:s,rowStart:i,rowEnd:o,colStart:a,colEnd:h}=n.data;if(s===r&&e>=i&&e<=o&&t>=a&&t<=h)return l(g,this,n),!0}),this}}},74103:()=>{},74164:(e,t,r)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[n.command,s.command,i.command,o.command,a.command,l.command,h.command,u.command,c.command,d.command,g.command,p.command,f.command,m.command]};var n=r(34922),s=r(3418),i=r(47491),o=r(20362),a=r(61904),l=r(54415),h=r(72368),u=r(80337),c=r(6329),d=r(97152),g=r(25145),p=r(91158),f=r(10883),m=r(58527)},74216:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(47565);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var i=n(r(54983));t.CellCoords=i.default;var o=n(r(30592));t.CellRange=o.default;var a=n(r(92912));t.default=a.default,t.Core=a.default;var l=r(53477);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(84786));t.Renderer=h;var u=r(8864);t.OrderView=u.OrderView,t.SharedOrderView=u.SharedOrderView;var c=r(14017);t.NodesPool=c.NodesPool;var d=r(46427);t.getListenersCounter=d.getListenersCounter},74321:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(83847);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.autocompleteValidator=n.autocompleteValidator},74418:(e,t,r)=>{"use strict";t.__esModule=!0,t.dateRenderer=i;var n=r(40697);const s=t.RENDERER_TYPE="date";function i(e,t,r,s,i,o,a){n.autocompleteRenderer.apply(this,[e,t,r,s,i,o,a])}i.RENDERER_TYPE=s},74492:(e,t,r)=>{"use strict";t.__esModule=!0,t.passwordRenderer=a;var n=r(5022),s=r(6083),i=r(4407);const o=t.RENDERER_TYPE="password";function a(e,t,r,o,a,l,h){n.textRenderer.apply(this,[e,t,r,o,a,l,h]);const u=h.hashLength||t.innerHTML.length,c=h.hashSymbol||"*";let d="";(0,i.rangeEach)(u-1,()=>{d+=c}),(0,s.fastInnerHTML)(t,d)}a.RENDERER_TYPE=o},74629:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(1531);const{getListWithInsertedItems:s,getListWithRemovedItems:i}=(0,n.alterUtilsFactory)("physicallyIndexed");class o extends n.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=i(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=o},74851:(e,t,r)=>{var n=r(52183).default,s=r(57198);e.exports=function(e){var t=s(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},74937:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(940);var n=r(82887),s=r(17334);function i(e,t,r){(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,r)}function o(e,t){return e.get(l(e,t))}function a(e,t,r){return e.set(l(e,t),r),r}function l(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var h=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap;t.default=class{constructor(e,t,r){i(this,h,void 0),i(this,u,void 0),i(this,c,void 0),i(this,d,[]),i(this,g,[]),i(this,p,void 0),i(this,f,[]),a(h,this,e),a(u,this,t),a(c,this,r)}setRemovedHfIndexes(e){return a(f,this,e.map(e=>{const t=o(u,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),o(f,this)}getRemovedHfIndexes(){return o(f,this)}getHfIndexFromVisualIndex(e){const t=o(u,this).getIndexesSequence(),r=o(u,this).getNotTrimmedIndexes();return t.indexOf(r[e],e)}syncMoves(e){const t=`move${(0,n.toUpperCaseFirst)(o(h,this))}s`;o(c,this).getEngine().batch(()=>{e.forEach(e=>{const r=e.from!==e.to,n=e.from+1!==e.to;r&&n&&o(c,this).getEngine()[t](o(c,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,r){!1!==r&&(a(g,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(p,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(o(c,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const r=(0,s.getMoves)(o(g,this),o(p,this),o(u,this).getNumberOfIndexes());null===o(c,this).getSheetId()?o(c,this).getPostponeAction(()=>this.syncMoves(r)):this.syncMoves(r)}getIndexesChangeSyncMethod(){const e=`set${(0,n.toUpperCaseFirst)(o(h,this))}Order`;return t=>{if(o(c,this).isPerformingUndoRedo())return;const r=o(u,this).getIndexesSequence();if("update"===t&&r.length>0){const t=o(d,this).map(e=>r.indexOf(e)),n=o(c,this).getEngine().getSheetDimensions(o(c,this).getSheetId());let s;s="row"===o(h,this)?n.height:n.width;for(let e=t.length;e<s;e+=1)t.push(e);o(c,this).getEngine()[e](o(c,this).getSheetId(),t)}a(d,this,r)}}init(){a(d,this,o(u,this).getIndexesSequence())}}},74941:(e,t,r)=>{"use strict";t.__esModule=!0,t.valueGetter=function(e){return n.valueGetter.call(this,e)};var n=r(10470)},75040:(e,t,r)=>{"use strict";var n=r(30717),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},75175:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(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}}},75216:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){return{name:r}};const r=t.KEY="---------"},75240:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(53383),i=n(r(34281)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(87488));const a=t.PLUGIN_KEY="exportFile",l=t.PLUGIN_PRIORITY=240;class h extends s.BasePlugin{static get PLUGIN_KEY(){return a}static get PLUGIN_PRIORITY(){return l}isEnabled(){return!0}exportAsString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t).export()}exportAsBlob(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))}downloadFile(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{rootDocument:r,rootWindow:n}=this.hot,s=this._createTypeFormatter(e,t),i=this._createBlob(s),o=n.URL||n.webkitURL,a=r.createElement("a"),l=`${s.options.filename}.${s.options.fileExtension}`;if(void 0!==a.download){const e=o.createObjectURL(i);a.style.display="none",a.setAttribute("href",e),a.setAttribute("download",l),r.body.appendChild(a),a.dispatchEvent(new MouseEvent("click")),r.body.removeChild(a),setTimeout(()=>{o.revokeObjectURL(e)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(i,l)}_createTypeFormatter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o.EXPORT_TYPES[e])throw new Error(`Export format type "${e}" is not supported.`);return(0,o.default)(e,new i.default(this.hot),t)}_createBlob(e){let t=null;return"undefined"!=typeof Blob&&(t=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),t}}t.ExportFile=h},75590:()=>{},75713:function(e,t){var r,n,s;"undefined"!=typeof self&&self,n=[],void 0===(s="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var r={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":a(r,"global");break;case"i":a(r,"ignoreCase");break;case"m":a(r,"multiLine");break;case"u":a(r,"unicode");break;case"y":a(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}h()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":t=this.isDigit()?{atLeast:r,atMost:this.integerIncludingZero()}:{atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=u;break;case"D":e=u,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=i("\f");break;case"n":e=i("\n");break;case"r":e=i("\r");break;case"t":e=i("\t");break;case"v":e=i("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if("Character"===r.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else o(r.value,e),e.push(i("-")),o(n.value,e)}else o(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===s.test(e))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===n.test(e))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",n=0;n<e;n++){var s=this.popChar();if(!1===r.test(s))throw Error("Expecting a HexDecimal digits");t+=s}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,r=/[0-9a-fA-F]/,n=/[0-9]/,s=/[1-9]/;function i(e){return e.charCodeAt(0)}function o(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}function h(){throw Error("Internal Error - Should never get here!")}var u=[];for(t=i("0");t<=i("9");t++)u.push(t);var c=[i("_")].concat(u);for(t=i("a");t<=i("z");t++)c.push(t);for(t=i("A");t<=i("Z");t++)c.push(t);var d=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function g(){}return g.prototype.visitChildren=function(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(function(e){this.visit(e)},this))}},g.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},g.prototype.visitPattern=function(e){},g.prototype.visitFlags=function(e){},g.prototype.visitDisjunction=function(e){},g.prototype.visitAlternative=function(e){},g.prototype.visitStartAnchor=function(e){},g.prototype.visitEndAnchor=function(e){},g.prototype.visitWordBoundary=function(e){},g.prototype.visitNonWordBoundary=function(e){},g.prototype.visitLookahead=function(e){},g.prototype.visitNegativeLookahead=function(e){},g.prototype.visitCharacter=function(e){},g.prototype.visitSet=function(e){},g.prototype.visitGroup=function(e){},g.prototype.visitGroupBackReference=function(e){},g.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:g,VERSION:"0.4.0"}})?r.apply(t,n):r)||(e.exports=s)},75720:()=>{},75721:(e,t,r)=>{"use strict";var n=r(15105),s=r(19098),i=r(65158),o=r(49819),a=r(90501),l=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?l(t,r(e)):t}},75803:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(31143),r(940),r(81056);var s=n(r(24300)),i=r(27727),o=r(96357),a=r(42685);t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"dataManager",void 0),(0,s.default)(this,"collapsingUI",void 0),this.plugin=e,this.hot=e.hot,this.dataManager=e.dataManager,this.collapsingUI=e.collapsingUI}onBeforeRowMove(e,t,r,n){if(this.displayAPICompatibilityWarning({rows:e,finalIndex:t,dropIndex:r,movePossible:n}))return!1;this.movedToCollapsed=!1;const s=r===this.hot.countRows(),i=s?this.hot.countSourceRows():this.dataManager.translateTrimmedRow(r);let o=!0;const a=e.map(e=>{if(!o)return!1;const t=this.dataManager.translateTrimmedRow(e);return o=this.shouldAllowMoving(t,i),t}),l=-1===a.indexOf(i);if(!o||!l)return!1;const h=this.getBaseParent(a),u=this.getTargetParent(s,i),c=h===u;return this.movedToCollapsed=this.collapsingUI.areChildrenCollapsed(u),this.collapsingUI.collapsedRowsStash.stash(),this.shiftCollapsibleParentsLocations(a,i,c),this.moveRows(a,i,u),this.dataManager.rewriteCache(),this.moveCellsMeta(a,i),this.collapsingUI.collapsedRowsStash.applyStash(!1),this.hot.runHooks("afterRowMove",e,t,r,n,n&&this.isRowOrderChanged(e,t)),this.hot.render(),this.selectCells(e,r),!1}displayAPICompatibilityWarning(e){const{rows:t,finalIndex:r,dropIndex:n,movePossible:s}=e;let l=!1;return(0,i.isUndefined)(n)&&((0,o.warn)(a.toSingleLine`Since version 8.0.0 of the Handsontable the 'moveRows' method isn't used for moving rows\x20
275
275
  when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",t,r,n,s,!1),l=!0),l}shouldAllowMoving(e,t){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===t||0===t)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,t){let r=this.dataManager.getRowParent(e?t-1:t);return null==r&&(r=this.dataManager.getRowParent(t-1)),r}shiftCollapsibleParentsLocations(e,t,r){r||(Math.max(...e)<=t?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],t,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(t,e[0],e.length))}moveRows(e,t,r){const n=t===this.dataManager.getRowIndex(r)+this.dataManager.countChildren(r)+1;this.hot.batchRender(()=>{e.forEach(e=>{this.dataManager.moveRow(e,t,this.movedToCollapsed,n)})})}moveCellsMeta(e,t){const r=[],n=Math.max(...e)<t;e.forEach(e=>{r.push(this.hot.getCellMetaAtRow(e))}),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(t-(n?r.length:0),0,...r)}selectCells(e,t){const r=e.length;let n=0,s=0;if(this.movedToCollapsed){let i=null;i=e[r-1]<t?this.dataManager.translateTrimmedRow(t-r):this.dataManager.translateTrimmedRow(t);const o=this.dataManager.getRowParent(null===i?this.hot.countSourceRows()-1:i-1),a=this.dataManager.getRowIndex(o);n=this.dataManager.untranslateTrimmedRow(a),s=n}else e[r-1]<t?(s=t-1,n=s-r+1):(n=t,s=n+r-1);this.hot.selectCells([[n,0,s,this.hot.countCols()-1]],!1)}isRowOrderChanged(e,t){return e.some((e,r)=>e-r!==t)}}},75829:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(81751);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.correctFormat=n.correctFormat,t.dateValidator=n.dateValidator},75891:(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()}}},75972:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(20188);t.RENDERER_TYPE=n.RENDERER_TYPE,t.timeRenderer=n.timeRenderer},76004:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTopInlineStart",callback(e){const{selection:t,rowIndexMapper:r,columnIndexMapper:n}=e,s=parseInt(e.getSettings().fixedRowsTop,10),i=parseInt(e.getSettings().fixedColumnsStart,10),o=r.getNearestNotHiddenIndex(s,1),a=n.getNearestNotHiddenIndex(i,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,a)),t.markEndSource()}}},76089:()=>{},76097:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(33594);t.RENDERER_TYPE=n.RENDERER_TYPE,t.selectRenderer=n.selectRenderer},76176:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(42660)),i=n(r(56300)),o=n(r(93578)),a=r(21389),l=r(82175);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_TOP)}}(0,a.mixin)(h,i.default),(0,a.mixin)(h,o.default);t.default=h},76277:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{areaCornerVisible:t,...r}=e;return new i.default({className:"area",createLayers:!0,border:{width:1,color:"#4b89ff",cornerVisible:t},...r,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=r(74216),i=n(r(44982))},76489:(e,t,r)=>{"use strict";t.__esModule=!0,t.updateCaretPosition=function(e,t){const r=(0,n.getCaretPosition)(t),s=t.value.split("\n");let i=r,o=0;for(let t=0;t<s.length;t++){const n=s[t];0!==t&&(o+=s[t-1].length+1);const a=o+n.length;if("home"===e?i=o:"end"===e&&(i=a),r<=a)break}(0,n.setCaretPosition)(t,i)};var n=r(6083)},76823:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=l;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278),i=r(9598),o=r(57093);const a=t.CONDITION_NAME="between";function l(e,t){let[r,n]=t,a=r,l=n;if("numeric"===e.meta.type){const e=parseFloat(a,10),t=parseFloat(l,10);a=Math.min(e,t),l=Math.max(e,t)}else if("date"===e.meta.type){const t=(0,s.getCondition)(o.CONDITION_NAME,[l]),r=(0,s.getCondition)(i.CONDITION_NAME,[a]);return t(e)&&r(e)}return e.value>=a&&e.value<=l}(0,s.registerCondition)(a,l,{name:n.FILTERS_CONDITIONS_BETWEEN,inputsCount:2,showOperators:!0})},76958:(e,t,r)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const t=e.getSelectedRangeActive();if(!t)return;const{row:r,col:s}=t.highlight;(0,n.scrollWindowToCell)(e.getCell(r,s,!0))})}};var n=r(62147)},77016:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllValidators=function(){(0,l.registerValidator)(n.autocompleteValidator),(0,l.registerValidator)(i.dropdownValidator),(0,l.registerValidator)(s.dateValidator),(0,l.registerValidator)(o.numericValidator),(0,l.registerValidator)(a.timeValidator)};var n=r(74321);t.autocompleteValidator=n.autocompleteValidator,t.AUTOCOMPLETE_VALIDATOR=n.VALIDATOR_TYPE;var s=r(75829);t.dateValidator=s.dateValidator,t.DATE_VALIDATOR=s.VALIDATOR_TYPE;var i=r(65266);t.dropdownValidator=i.dropdownValidator,t.DROPDOWN_VALIDATOR=i.VALIDATOR_TYPE;var o=r(79434);t.numericValidator=o.numericValidator,t.NUMERIC_VALIDATOR=o.VALIDATOR_TYPE;var a=r(78622);t.timeValidator=a.timeValidator,t.TIME_VALIDATOR=a.VALIDATOR_TYPE;var l=r(39705);t.registerValidator=l.registerValidator,t.getRegisteredValidatorNames=l.getRegisteredValidatorNames,t.getRegisteredValidators=l.getRegisteredValidators,t.getValidator=l.getValidator,t.hasValidator=l.hasValidator},77350:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(82328),r(34478),r(29810),r(31143),r(940);var s=n(r(24300)),i=r(53383),o=r(40785),a=r(42685),l=r(96357),h=r(4407),u=r(6083),c=r(58231),d=r(70095),g=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),p=r(27764),f=r(39832),m=r(19648),E=r(92142),w=n(r(86388)),y=n(r(28259)),C=n(r(30399)),v=r(44876),S=r(12629),R=r(5864),T=r(1531);function N(e,t,r){_(e,t),t.set(e,r)}function _(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function A(e,t,r){return e.set(M(e,t),r),r}function b(e,t){return e.get(M(e,t))}function M(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const I=t.PLUGIN_KEY="filters",O=t.PLUGIN_PRIORITY=250,x=I;var P=new WeakMap,L=new WeakMap,D=new WeakMap,k=new WeakSet;class H extends i.BasePlugin{static get PLUGIN_KEY(){return I}static get PLUGIN_PRIORITY(){return O}static get PLUGIN_DEPS(){return["plugin:DropdownMenu","plugin:HiddenRows","cell-type:checkbox"]}constructor(e){var t,r,n;super(e),t=this,_(r=this,n=k),n.add(r),(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),N(this,P,void 0),N(this,L,new WeakSet),N(this,D,[]),this.hot.addHook("afterGetColHeader",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return M(k,t,z).call(t,...r)})}isEnabled(){return!!this.hot.getSettings()[I]}enablePlugin(){var e=this;if(this.enabled)return;this.filtersRowsMap=this.hot.rowIndexMapper.registerMap(this.pluginName,new T.TrimmingMap),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");const t=this.hot.getSettings().dropdownMenu,r=t&&t.uiContainer||this.hot.rootPortalElement,n=e=>(e.addLocalHook("accept",()=>M(k,this,Y).call(this,"accept")),e.addLocalHook("cancel",()=>M(k,this,Y).call(this,"cancel")),e.addLocalHook("change",t=>M(k,this,G).call(this,e,t)),e),s=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_CONDITION)}:`,i=()=>`${this.hot.getTranslatedPhrase(g.FILTERS_DIVS_FILTER_BY_VALUE)}:`;if(!this.components.get("filter_by_condition")){const e=new p.ConditionComponent(this.hot,{id:"filter_by_condition",name:s,addSeparator:!1,menuContainer:r});e.addLocalHook("afterClose",()=>M(k,this,j).call(this)),this.components.set("filter_by_condition",n(e))}if(this.components.get("filter_operators")||this.components.set("filter_operators",new f.OperatorsComponent(this.hot,{id:"filter_operators",name:"Operators"})),!this.components.get("filter_by_condition2")){const e=new p.ConditionComponent(this.hot,{id:"filter_by_condition2",name:"",addSeparator:!0,menuContainer:r});e.addLocalHook("afterClose",()=>M(k,this,j).call(this)),this.components.set("filter_by_condition2",n(e))}if(this.components.get("filter_by_value")||this.components.set("filter_by_value",n(new m.ValueComponent(this.hot,{id:"filter_by_value",name:i}))),this.components.get("filter_action_bar")||this.components.set("filter_action_bar",n(new E.ActionBarComponent(this.hot,{id:"filter_action_bar",name:"Action bar"}))),this.conditionCollection||(this.conditionCollection=new w.default(this.hot)),this.conditionUpdateObserver||(this.conditionUpdateObserver=new C.default(this.hot,this.conditionCollection,e=>this.getDataMapAtColumn(e)),this.conditionUpdateObserver.addLocalHook("update",e=>M(k,this,$).call(this,e))),this.components.forEach(e=>e.show()),this.addHook("afterDropdownMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return M(k,e,W).call(e,...r)}),this.addHook("beforeDropdownMenuShow",()=>M(k,this,B).call(this)),this.addHook("afterDropdownMenuShow",()=>M(k,this,U).call(this)),this.addHook("afterDropdownMenuHide",()=>M(k,this,V).call(this)),this.addHook("afterChange",e=>M(k,this,F).call(this,e)),this.hot.getSettings().dropdownMenu&&this.dropdownMenuPlugin&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),!b(P,this)&&this.dropdownMenuPlugin.enabled){const e=[{focus:()=>{const e=b(P,this).getMenu(),t=e.getNavigator(),r=b(P,this).getLastMenuPage();e.focus(),r>0?t.setCurrentPage(r):t.toFirstItem()}},...Array.from(this.components).map(e=>{let[,t]=e;return t.getElements()}).flat()];A(P,this,(0,S.createMenuFocusController)(this.dropdownMenuPlugin.menu,e));const t=e=>{b(P,this).listen(),e.preventDefault(),(0,c.isKey)(e.keyCode,"TAB")&&(e.shiftKey?b(P,this).toPreviousItem():b(P,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:x})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(x)}addCondition(e,t,r){let n=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:r},n)}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(),r=!this.conditionCollection.isEmpty();let n=[];const s=this.exportConditions(),i=this.hot.runHooks("beforeFilter",s,b(D,this));if(!1!==i&&r){const r=[];this.hot.batchExecution(()=>{this.filtersRowsMap.clear(),n=(0,o.arrayMap)(t.filter(),e=>e.meta.visualRow);const e=(0,v.createArrayAssertion)(n);(0,h.rangeEach)(this.hot.countSourceRows()-1,t=>{e(t)||r.push(t)}),(0,o.arrayEach)(r,e=>{this.filtersRowsMap.setValueAtIndex(e,!0)})},!0),e||n.length||this.hot.deselectCell(),A(D,this,this.exportConditions())}else!1===i||r?this.importConditions(b(D,this)):(A(D,this,this.exportConditions()),this.filtersRowsMap.clear());this.hot.selection.isSelected()&&this.hot.selectCell(e?-1:0,this.hot.getSelectedRangeActive().highlight.col),!1!==i&&(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),r=[];return(0,o.arrayEach)(this.hot.getSourceDataAtCol(t),(e,n)=>{var s;const{row:i,col:o,visualCol:a,visualRow:l,type:h,instance:u,dateFormat:c,locale:d}=this.hot.getCellMeta(n,t),g=null!==(s=this.hot.getDataAtCell(this.hot.toVisualRow(n),t))&&void 0!==s?s:e;r.push({meta:{row:i,col:o,visualCol:a,visualRow:l,type:h,instance:u,dateFormat:c,locale:d},value:(0,v.toEmptyString)(g)})}),r}updateValueComponentCondition(e){const t=this.hot.getDataAtCol(e),r=(0,v.unifyColumnValues)(t);this.conditionUpdateObserver.updateStatesAtColumn(e,r)}restoreComponents(e){var t;const r=null===(t=this.getSelectedColumn())||void 0===t?void 0:t.physicalIndex;e.forEach(e=>{e.isHidden()||e.restoreState(r)}),this.updateDependentComponentsVisibility()}getOperationBasedOnArguments(e,t,r,n){let s=e;return s===R.OPERATION_OR&&t.command.key!==R.CONDITION_NONE&&r.command.key!==R.CONDITION_NONE&&n.command.key!==R.CONDITION_NONE?s=R.OPERATION_OR_THEN_VARIABLE:n.command.key!==R.CONDITION_NONE&&(t.command.key!==R.CONDITION_NONE&&r.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(),r=[this.components.get("filter_by_condition2"),this.components.get("filter_operators")];t.showOperators?this.showComponents(...r):this.hideComponents(...r)}_createDataFilter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.conditionCollection;return new y.default(e,e=>this.getDataMapAtColumn(e))}getIndexesOfComponents(){const e=[];if(!this.dropdownMenuPlugin)return e;const t=this.dropdownMenuPlugin.menu;for(var r=arguments.length,n=new Array(r),s=0;s<r;s++)n[s]=arguments[s];return(0,o.arrayEach)(n,r=>{(0,o.arrayEach)(t.menuItems,(t,n)=>{t.key===r.getMenuItemDescriptor().key&&e.push(n)})}),e}changeComponentsVisibility(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!this.dropdownMenuPlugin)return;const t=this.dropdownMenuPlugin.menu.hotMenu,r=t.getPlugin("hiddenRows");for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];const o=this.getIndexesOfComponents(...s);e?r.showRows(o):r.hideRows(o),t.render()}hideComponents(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.changeComponentsVisibility(!1,...t)}showComponents(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];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 F(e){e&&(0,o.arrayEach)(e,e=>{const[,t]=e,r=this.hot.propToCol(t);this.conditionCollection.hasConditions(r)&&this.updateValueComponentCondition(r)})}function U(){const e=this.dropdownMenuPlugin.menu;this.restoreComponents(Array.from(this.components.values())),e.updateMenuDimensions()}function V(){this.components.get("filter_by_condition").getSelectElement().closeOptions(),this.components.get("filter_by_condition2").getSelectElement().closeOptions()}function B(){const e=this.dropdownMenuPlugin.menu;b(L,this).has(e)||b(P,this).setMenu(e),b(L,this).add(e)}function W(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 r;if(null===e)return void(null===(r=this.dropdownMenuPlugin)||void 0===r||r.close());const{physicalIndex:t}=e,n=this.components.get("filter_by_condition").getState(),s=this.components.get("filter_by_condition2").getState(),i=this.components.get("filter_by_value").getState(),o=this.getOperationBasedOnArguments(this.components.get("filter_operators").getActiveOperationId(),n,s,i);this.conditionUpdateObserver.groupChanges();let a=this.conditionCollection.getColumnStackPosition(t);-1===a&&(a=void 0),this.conditionCollection.removeConditions(t),n.command.key!==R.CONDITION_NONE&&(this.conditionCollection.addCondition(t,n,o,a),s.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,s,o,a)),i.command.key!==R.CONDITION_NONE&&this.conditionCollection.addCondition(t,i,o,a),this.conditionUpdateObserver.flush(),this.components.forEach(e=>e.saveState(t)),this.filter()}null===(t=this.dropdownMenuPlugin)||void 0===t||t.close()}function G(e,t){const r=this.dropdownMenuPlugin.menu;this.updateDependentComponentsVisibility(),e.constructor!==p.ConditionComponent||t.inputsCount||this.setListeningDropdownMenu(),r.updateMenuDimensions()}function j(){this.setListeningDropdownMenu()}function z(e,t,r){const n=this.hot.toPhysicalColumn(e);this.enabled&&this.conditionCollection.hasConditions(n)&&r===this.hot.view.getColumnHeadersCount()-1?(0,u.addClass)(t,"htFiltersActive"):(0,u.removeClass)(t,"htFiltersActive")}function $(e){var t;if(null===(t=this.dropdownMenuPlugin)||void 0===t||!t.enabled)return;const{editedConditionStack:{conditions:r,column:n},conditionArgsChange:s}=e;Array.isArray(s)&&A(D,this,b(D,this).map(e=>(e.column===n&&r.length>0&&e.conditions.forEach(e=>{"by_value"===e.name&&(e.args=[[...s]])}),e)));const i=r.filter(e=>e.name===R.CONDITION_BY_VALUE),o=r.filter(e=>e.name!==R.CONDITION_BY_VALUE);if(i.length>=2||o.length>=3)(0,l.warn)(a.toSingleLine`The filter conditions have been applied properly, but couldn’t be displayed visually.\x20
276
276
  The overall amount of conditions exceed the capability of the dropdown menu.\x20
277
- For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(n);this.components.get("filter_by_condition").updateState(o[0],n),this.components.get("filter_by_condition2").updateState(o[1],n),this.components.get("filter_operators").updateState(t,n),this.components.get("filter_by_value").updateState(e)}}t.Filters=H},77437:()=>{},77439:(e,t,r)=>{"use strict";var n=r(19682),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},77510:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(38713);t.createShortcutManager=n.createShortcutManager},77581:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27446);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenColumns=n.HiddenColumns},77618:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},78072:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(92654);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TimeEditor=n.TimeEditor},78282:()=>{},78310:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(21389),o=r(97934),a=r(40785),l=r(4407),h=r(99242);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,(r,n)=>{const s=this.getAtCell(n,e);t.push(s)}),t}getAtRow(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=void 0===t&&void 0===r,{dataDotNotation:o}=this.hot.getSettings();let a=null,u=null;if(a=this.modifyRowData(e),Array.isArray(a))u=[],s?a.forEach((t,r)=>{u[r]=this.getAtPhysicalCell(e,r,a)}):(0,l.rangeEach)(t,r,r=>{u[r-t]=this.getAtPhysicalCell(e,r,a)});else if((0,i.isObject)(a)||(0,h.isFunction)(a))if(u=n?[]:{},!s||n){const s=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(s,h,l=>{const c=this.colToProp(l);if(l>=(t||s)&&l<=(r||h)&&!Number.isInteger(c)){const t=this.getAtPhysicalCell(e,c,a);n?u.push(t):o?(0,i.setProperty)(u,c,t):u[c]=t}})}else(0,i.objectEach)(a,(t,r)=>{const n=this.getAtPhysicalCell(e,r,a);o?(0,i.setProperty)(u,r,n):u[r]=n});return u}setAtCell(e,t,r){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const n=(0,i.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,t,n,"set"),n.isTouched()&&(r=n.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=r:(0,i.setProperty)(this.data[e],t,r))}}getAtPhysicalCell(e,t,r){let n=null;if(r)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();n=e?(0,i.getProperty)(r,t):r[t]}else n="function"==typeof t?t(r):r[t];if(this.hot.hasHook("modifySourceData")){const r=(0,i.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,t,r,"get"),r.isTouched()&&(n=r.value)}return n}getAtCell(e,t){const r=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),r)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,s=null,i=null,o=null,a=null;null===e||null===t?(n=!0,s=0,o=this.countRows()-1):(s=Math.min(e.row,t.row),i=Math.min(e.col,t.col),o=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const h=[];return(0,l.rangeEach)(s,o,e=>{h.push(n?this.getAtRow(e,void 0,void 0,r):this.getAtRow(e,i,a,r))}),h}getCopyable(e,t){const r=this.propToCol(t);return this.hot.getCellMeta(e,r).copyable?this.getAtCell(this.hot.toPhysicalRow(e),r):""}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,o.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},78622:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(5003);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.timeValidator=n.timeValidator},79268:(e,t,r)=>{"use strict";var n=r(30717),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},79300:(e,t,r)=>{"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 r(){return[...t]}function i(e){return t.has(e)}return e=(0,n.isFunction)(e)?e:s,{addItem:function(r,n){if(i(r))throw new Error(e(r));t.set(r,n)},clear:function(){t.clear()},getId:function(e){const[t]=r().find(t=>{let[r,n]=t;return e===n&&r})||[null];return t},getItem:function(e){return t.get(e)},getItems:r,hasItem:i,removeItem:function(e){return t.delete(e)}}},r(52490),r(34478),r(90643);var n=r(99242);const s=e=>`The id '${e}' is already declared in a map.`},79384:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47124);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.DropdownMenu=n.DropdownMenu},79434:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74011);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.numericValidator=n.numericValidator},79696:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278),i=r(76823);const o=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},79817:(e,t,r)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,r,o,a,l,h)=>{const u=t.getSourceDataAtRow(o),c=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof u.ariaLabel?u.ariaLabel.call(e):u.ariaLabel,p="function"==typeof u.ariaChecked?u.ariaChecked.call(e):u.ariaChecked;if((0,s.empty)(r),(0,s.addClass)(c,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,n.isItemDisabled)(u,e)&&!(0,n.isItemSelectionDisabled)(u)&&!(0,n.isItemSeparator)(u);(0,s.setAttribute)(r,[...(0,n.isItemCheckable)(u)?[(0,i.A11Y_MENU_ITEM_CHECKBOX)(),(0,i.A11Y_LABEL)(g),(0,i.A11Y_CHECKED)(p)]:[(0,i.A11Y_MENU_ITEM)(),(0,i.A11Y_LABEL)(d)],...t?[(0,i.A11Y_TABINDEX)(-1)]:[],...(0,n.isItemDisabled)(u,e)?[(0,i.A11Y_DISABLED)()]:[],...(0,n.isItemSubMenu)(u)?[(0,i.A11Y_EXPANDED)(!1)]:[]])}r.className="",r.appendChild(c),(0,n.isItemSeparator)(u)?(0,s.addClass)(r,"htSeparator"):"function"==typeof u.renderer?((0,s.addClass)(r,"htCustomMenuRenderer"),r.appendChild(u.renderer(t,c,o,a,l,d))):(0,s.fastInnerHTML)(c,d),(0,n.isItemDisabled)(u,e)?(0,s.addClass)(r,"htDisabled"):(0,n.isItemSelectionDisabled)(u)?(0,s.addClass)(r,"htSelectionDisabled"):(0,n.isItemSubMenu)(u)&&(0,s.addClass)(r,"htSubmenu")}};var n=r(55517),s=r(6083),i=r(13618)},79933:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(79956)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--backlight")}}t.default=o},79937:(e,t,r)=>{"use strict";var n=r(42328),s=r(15176),i=r(53872),o=r(30812);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},79956:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));const i="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+i),void 0!==t&&(this._element.style.left=t+i)}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+i),t&&(this._element.style.height=t+i)}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+i),t&&(this._element.style.marginLeft=t+i)}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}}}},80152:()=>{},80218:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(6083),o=r(82887),a=n(r(46427)),l=n(r(92131)),h=n(r(54983)),u=n(r(30592));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,o.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;t<r;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,r){(0,i.fastInnerText)(r,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,r){return new u.default(e,t,r,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,i.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),n=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-n){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-n&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,r){return this.wtScroll.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},80337:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&n.isCell()){const o=parseInt(e.getSettings().fixedColumnsStart,10),a=r.getNearestNotHiddenIndex(o,1),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},80350:()=>{},80533:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(r,"bottom",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},80595:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21389);const s={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=s},80668:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(53383),s=r(68850),i=r(16362),o=r(21389);function a(e,t,r){l(e,t),t.set(e,r)}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,r){return e.set(c(e,t),r),r}function u(e,t){return e.get(c(e,t))}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="dialog",g=t.PLUGIN_PRIORITY=340,p=d,f=`plugin:${d}`;var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakSet;class v extends n.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=C),t.add(e),a(this,m,null),a(this,E,!1),a(this,w,null),a(this,y,null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}static get DEFAULT_SETTINGS(){return{content:"",customClassName:"",background:"solid",contentBackground:!1,animation:!0,closable:!1,a11y:{role:"dialog",ariaLabel:"Dialog",ariaLabelledby:"",ariaDescribedby:""}}}static get SETTINGS_VALIDATORS(){return{content:e=>"string"==typeof e||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"undefined"!=typeof DocumentFragment&&e instanceof DocumentFragment,customClassName:e=>"string"==typeof e,background:e=>["solid","semi-transparent"].includes(e),contentBackground:e=>"boolean"==typeof e,animation:e=>"boolean"==typeof e,closable:e=>"boolean"==typeof e,a11y:e=>(0,o.isObject)(e)&&(void 0===(null==e?void 0:e.role)||["dialog","alertdialog"].includes(null==e?void 0:e.role))&&(void 0===(null==e?void 0:e.ariaLabel)||"string"==typeof(null==e?void 0:e.ariaLabel))&&(void 0===(null==e?void 0:e.ariaLabelledby)||"string"==typeof(null==e?void 0:e.ariaLabelledby))&&(void 0===(null==e?void 0:e.ariaDescribedby)||"string"==typeof(null==e?void 0:e.ariaDescribedby))}}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(u(m,this)||(h(m,this,new s.DialogUI({rootElement:this.hot.rootGridElement,isRtl:this.hot.isRtl()})),u(m,this).addLocalHook("clickDialogElement",()=>c(C,this,N).call(this)),h(w,this,(0,i.installFocusDetector)(this.hot,u(m,this).getDialogElement(),{onFocus:e=>{this.hot.getShortcutManager().setActiveContextName(f),this.hot.listen(),this.hot.runHooks("afterDialogFocus",`tab_${e}`)}}))),c(C,this,S).call(this),this.addHook("modifyFocusOnTabNavigation",e=>c(C,this,T).call(this,e),1),this.addHook("afterViewRender",()=>c(C,this,b).call(this)),this.addHook("afterListen",()=>c(C,this,_).call(this)),this.addHook("afterUnlisten",()=>c(C,this,A).call(this)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),c(C,this,R).call(this),super.disablePlugin()}isVisible(){return u(E,this)}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.enabled)return;if(this.isVisible())return void this.update(e);this.hot.runHooks("beforeDialogShow"),this.update(e),u(m,this).showDialog(this.getSetting("animation")),h(E,this,!0),h(y,this,this.hot.selection.exportSelection()),this.hot.deselectCell(),this.hot.runHooks("afterDialogShow");const{activeElement:t}=this.hot.rootDocument;(this.hot.rootWrapperElement.contains(t)||this.hot.rootPortalElement.contains(t))&&(this.hot.unlisten(),this.hot.getShortcutManager().setActiveContextName(f),this.hot.listen(),u(m,this).focusDialog(),this.hot.runHooks("afterDialogFocus","show"))}hide(){this.isVisible()&&(this.hot.runHooks("beforeDialogHide"),u(m,this).hideDialog(this.getSetting("animation")),this.hot.getShortcutManager().setActiveContextName("grid"),h(E,this,!1),u(y,this)?(this.hot.selection.importSelection(u(y,this)),this.hot.view.render(),h(y,this,null)):this.hot.selectCell(0,0),this.hot.runHooks("afterDialogHide"))}update(e){this.enabled&&(this.updatePluginSettings(e),u(m,this).updateDialog({isVisible:this.isVisible(),content:this.getSetting("content"),customClassName:this.getSetting("customClassName"),background:this.getSetting("background"),contentBackground:this.getSetting("contentBackground"),animation:this.getSetting("animation"),a11y:this.getSetting("a11y")}))}focus(){u(m,this).focusDialog()}destroy(){var e;null===(e=u(m,this))||void 0===e||e.destroyDialog(),h(m,this,null),h(E,this,!1),h(w,this,null),h(y,this,null),super.destroy()}}function S(){var e;const t=this.hot.getShortcutManager(),r=null!==(e=t.getContext(f))&&void 0!==e?e:t.addContext(f);r.addShortcut({keys:[["Escape"]],callback:()=>{this.hide()},runOnlyIf:()=>u(E,this)&&this.getSetting("closable"),group:p}),r.addShortcut({keys:[["Shift","Tab"],["Tab"]],preventDefault:!1,callback:e=>{this.hot._registerTimeout(()=>{const{activeElement:t}=this.hot.rootDocument;u(m,this).isInsideDialog(t)?e.shiftKey?this.hot.runHooks("dialogFocusPreviousElement"):this.hot.runHooks("dialogFocusNextElement"):this.hot.unlisten()},0)},group:p})}function R(){this.hot.getShortcutManager().getContext(f).removeShortcutsByGroup(p)}function T(e){if(this.isVisible())return u(w,this).focus(e),!1}function N(){this.isVisible()&&!this.hot.isListening()&&(this.hot.getShortcutManager().setActiveContextName(f),this.hot.runHooks("afterDialogFocus","click")),this.hot.listen()}function _(){u(w,this).deactivate()}function A(){u(w,this).activate()}function b(){const{view:e,rootWrapperElement:t,rootWindow:r}=this.hot,n=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();u(m,this).updateWidth(n);const s=t.querySelector(".hot-display-license-info");if(s){const e=s.offsetHeight,t=parseFloat(r.getComputedStyle(s).marginTop);u(m,this).updateHeight(e+t)}}t.Dialog=v},80706:(e,t,r)=>{"use strict";var n=r(15176),s=r(60606),i=r(12033)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===s(e))}},80825:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(90742);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Formulas=n.Formulas},81037:(e,t,r)=>{"use strict";var n=r(19451),s=r(44827),i=r(82683),o=r(57041),a=r(39393),l=o("IE_PROTO"),h=Object,u=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof h?u:null}},81056:(e,t,r)=>{"use strict";r(33873)},81231:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.replaceData=function(e,t,r,n){const{hotInstance:u,dataMap:c,dataSource:d,internalSource:g,source:p,metaManager:f,firstRun:m}=n,E=(0,s.toUpperCaseFirst)(g),w=u.getSettings();Array.isArray(w.dataSchema)?u.dataType="array":(0,i.isFunction)(w.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks(`before${E}`,e,m,p);const y=new o.default(u,e,f);if(t(y),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${g} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=y.getSchema();let r;e=[];let n=0,s=0;for(n=0,s=w.startRows;n<s;n++)if("object"!==u.dataType&&"function"!==u.dataType||!w.dataSchema)if("array"===u.dataType)r=(0,a.deepClone)(t[0]),e.push(r);else{r=[];for(let e=0,t=w.startCols;e<t;e++)r.push(null);e.push(r)}else r=(0,a.deepClone)(t),e.push(r)}}Array.isArray(e[0])&&(u.dataType="array");w.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),r(y),u.runHooks(`after${E}`,e,m,p),m||(u.runHooks("afterChange",null,g),u.view.adjustElementsSize(),u.render());u.getSettings().ariaTags&&(0,l.setAttribute)(u.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(u.countCols()+(u.view?u.countRowHeaders():0))])},r(52490),r(99356);var s=r(82887),i=r(99242),o=n(r(99257)),a=r(21389),l=r(6083),h=r(13618)},81263:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(41736),s=r(43008);const i=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:i,editor:n.PasswordEditor,renderer:s.passwordRenderer,copyable:!1}},81384:()=>{},81514:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(6083),o=r(40785),a=r(53383),l=r(31078);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 u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class p 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 c}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,l.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>u(g,this,f).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>u(g,this,m).call(this)),this.addHook("afterMomentumScroll",()=>u(g,this,E).call(this))}}function f(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:r,topInlineStartCornerOverlay:n,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(r),n&&this.scrollbars.push(n),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),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),n&&this.clones.push(n.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,o.arrayEach)(this.clones,e=>{(0,i.addClass)(e,"hide-tween")})}function E(){this.freezeOverlays=!1,(0,o.arrayEach)(this.clones,e=>{(0,i.removeClass)(e,"hide-tween"),(0,i.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,o.arrayEach)(this.clones,e=>{(0,i.removeClass)(e,"show-tween")})},400),(0,o.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=p},81553:(e,t,r)=>{"use strict";t.__esModule=!0;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}
277
+ For more details see the documentation.`);else{const t=this.conditionCollection.getOperation(n);this.components.get("filter_by_condition").updateState(o[0],n),this.components.get("filter_by_condition2").updateState(o[1],n),this.components.get("filter_operators").updateState(t,n),this.components.get("filter_by_value").updateState(e)}}t.Filters=H},77437:()=>{},77439:(e,t,r)=>{"use strict";var n=r(19682),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},77510:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(38713);t.createShortcutManager=n.createShortcutManager},77581:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27446);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenColumns=n.HiddenColumns},77618:e=>{"use strict";var t=TypeError;e.exports=function(e,r){if(e<r)throw new t("Not enough arguments");return e}},78072:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(92654);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TimeEditor=n.TimeEditor},78282:()=>{},78310:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(34478),r(31143);var s=n(r(24300)),i=r(21389),o=r(97934),a=r(40785),l=r(4407),h=r(99242);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,(r,n)=>{const s=this.getAtCell(n,e);t.push(s)}),t}getAtRow(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=void 0===t&&void 0===r,{dataDotNotation:o}=this.hot.getSettings();let a=null,u=null;if(a=this.modifyRowData(e),Array.isArray(a))u=[],s?a.forEach((t,r)=>{u[r]=this.getAtPhysicalCell(e,r,a)}):(0,l.rangeEach)(t,r,r=>{u[r-t]=this.getAtPhysicalCell(e,r,a)});else if((0,i.isObject)(a)||(0,h.isFunction)(a))if(u=n?[]:{},!s||n){const s=0,h=this.countFirstRowKeys()-1;(0,l.rangeEach)(s,h,l=>{const c=this.colToProp(l);if(l>=(t||s)&&l<=(r||h)&&!Number.isInteger(c)){const t=this.getAtPhysicalCell(e,c,a);n?u.push(t):o?(0,i.setProperty)(u,c,t):u[c]=t}})}else(0,i.objectEach)(a,(t,r)=>{const n=this.getAtPhysicalCell(e,r,a);o?(0,i.setProperty)(u,r,n):u[r]=n});return u}setAtCell(e,t,r){if(!(e>=this.countRows()||t>=this.countFirstRowKeys())){if(this.hot.hasHook("modifySourceData")){const n=(0,i.createObjectPropListener)(r);this.hot.runHooks("modifySourceData",e,t,n,"set"),n.isTouched()&&(r=n.value)}["__proto__","constructor","prototype"].includes(e)||(Number.isInteger(t)?this.data[e][t]=r:(0,i.setProperty)(this.data[e],t,r))}}getAtPhysicalCell(e,t,r){let n=null;if(r)if("string"==typeof t){const{dataDotNotation:e}=this.hot.getSettings();n=e?(0,i.getProperty)(r,t):r[t]}else n="function"==typeof t?t(r):r[t];if(this.hot.hasHook("modifySourceData")){const r=(0,i.createObjectPropListener)(n);this.hot.runHooks("modifySourceData",e,t,r,"get"),r.isTouched()&&(n=r.value)}return n}getAtCell(e,t){const r=this.modifyRowData(e);return this.getAtPhysicalCell(e,this.colToProp(t),r)}getByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,s=null,i=null,o=null,a=null;null===e||null===t?(n=!0,s=0,o=this.countRows()-1):(s=Math.min(e.row,t.row),i=Math.min(e.col,t.col),o=Math.max(e.row,t.row),a=Math.max(e.col,t.col));const h=[];return(0,l.rangeEach)(s,o,e=>{h.push(n?this.getAtRow(e,void 0,void 0,r):this.getAtRow(e,i,a,r))}),h}getCopyable(e,t){const r=this.propToCol(t);return this.hot.getCellMeta(e,r).copyable?this.getAtCell(this.hot.toPhysicalRow(e),r):""}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,o.countFirstRowKeys)(this.data)}destroy(){this.data=null,this.hot=null}}},78622:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(5003);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.timeValidator=n.timeValidator},79268:(e,t,r)=>{"use strict";var n=r(30717),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},79300:(e,t,r)=>{"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 r(){return[...t]}function i(e){return t.has(e)}return e=(0,n.isFunction)(e)?e:s,{addItem:function(r,n){if(i(r))throw new Error(e(r));t.set(r,n)},clear:function(){t.clear()},getId:function(e){const[t]=r().find(t=>{let[r,n]=t;return e===n&&r})||[null];return t},getItem:function(e){return t.get(e)},getItems:r,hasItem:i,removeItem:function(e){return t.delete(e)}}},r(52490),r(34478),r(90643);var n=r(99242);const s=e=>`The id '${e}' is already declared in a map.`},79384:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47124);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.DropdownMenu=n.DropdownMenu},79434:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(74011);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.numericValidator=n.numericValidator},79696:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=a;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(11278),i=r(76823);const o=t.CONDITION_NAME="not_between";function a(e,t){return!(0,s.getCondition)(i.CONDITION_NAME,t)(e)}(0,s.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_NOT_BETWEEN,inputsCount:2,showOperators:!0})},79817:(e,t,r)=>{"use strict";t.__esModule=!0,t.createMenuItemRenderer=function(e){return(t,r,o,a,l,h)=>{const u=t.getSourceDataAtRow(o),c=e.rootDocument.createElement("div"),d="function"==typeof h?h.call(e):h,g="function"==typeof u.ariaLabel?u.ariaLabel.call(e):u.ariaLabel,p="function"==typeof u.ariaChecked?u.ariaChecked.call(e):u.ariaChecked;if((0,s.empty)(r),(0,s.addClass)(c,"htItemWrapper"),e.getSettings().ariaTags){const t=!(0,n.isItemDisabled)(u,e)&&!(0,n.isItemSelectionDisabled)(u)&&!(0,n.isItemSeparator)(u);(0,s.setAttribute)(r,[...(0,n.isItemCheckable)(u)?[(0,i.A11Y_MENU_ITEM_CHECKBOX)(),(0,i.A11Y_LABEL)(g),(0,i.A11Y_CHECKED)(p)]:[(0,i.A11Y_MENU_ITEM)(),(0,i.A11Y_LABEL)(d)],...t?[(0,i.A11Y_TABINDEX)(-1)]:[],...(0,n.isItemDisabled)(u,e)?[(0,i.A11Y_DISABLED)()]:[],...(0,n.isItemSubMenu)(u)?[(0,i.A11Y_EXPANDED)(!1)]:[]])}r.className="",r.appendChild(c),(0,n.isItemSeparator)(u)?(0,s.addClass)(r,"htSeparator"):"function"==typeof u.renderer?((0,s.addClass)(r,"htCustomMenuRenderer"),r.appendChild(u.renderer(t,c,o,a,l,d))):(0,s.fastInnerHTML)(c,d),(0,n.isItemDisabled)(u,e)?(0,s.addClass)(r,"htDisabled"):(0,n.isItemSelectionDisabled)(u)?(0,s.addClass)(r,"htSelectionDisabled"):(0,n.isItemSubMenu)(u)&&(0,s.addClass)(r,"htSubmenu")}};var n=r(55517),s=r(6083),i=r(13618)},79933:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(79956)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualRowMove--backlight")}}t.default=o},79937:(e,t,r)=>{"use strict";var n=r(42328),s=r(15176),i=r(53872),o=r(30812);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},79956:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));const i="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+i),void 0!==t&&(this._element.style.left=t+i)}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+i),t&&(this._element.style.height=t+i)}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+i),t&&(this._element.style.marginLeft=t+i)}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}}}},80152:()=>{},80218:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(6083),o=r(82887),a=n(r(46427)),l=n(r(92131)),h=n(r(54983)),u=n(r(30592));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,o.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;t<r;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,r){(0,i.fastInnerText)(r,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,r){return new u.default(e,t,r,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,i.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),n=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-n){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-n&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,r){return this.wtScroll.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},80337:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:i}=e.getSelectedRangeActive();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&n.isCell()){const o=parseInt(e.getSettings().fixedColumnsStart,10),a=r.getNearestNotHiddenIndex(o,1),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),t.setRangeEnd(e._createCellCoords(i.row,a)),t.markEndSource()}}}},80350:()=>{},80533:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(r,"bottom",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}(r(15230)),s=r(36053)},80595:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21389);const s={getFirstRenderedColumn(){return 0===this.getRenderedColumnsCount()?-1:0},getFirstVisibleColumn(){return this.getFirstRenderedColumn()},getFirstPartiallyVisibleColumn(){return this.getFirstRenderedColumn()},getLastRenderedColumn(){return this.getRenderedColumnsCount()-1},getLastVisibleColumn(){return this.getLastRenderedColumn()},getLastPartiallyVisibleColumn(){return this.getLastRenderedColumn()},getRenderedColumnsCount(){return Math.min(this.wtSettings.getSetting("totalColumns"),this.wtSettings.getSetting("fixedColumnsStart"))},getVisibleColumnsCount(){return this.getRenderedColumnsCount()},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","stickyColumnsStart",{writable:!1,enumerable:!1});t.default=s},80668:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(53383),s=r(68850),i=r(16362),o=r(21389);function a(e,t,r){l(e,t),t.set(e,r)}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,r){return e.set(c(e,t),r),r}function u(e,t){return e.get(c(e,t))}function c(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const d=t.PLUGIN_KEY="dialog",g=t.PLUGIN_PRIORITY=360,p=d,f=`plugin:${d}`;var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakSet;class v extends n.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=C),t.add(e),a(this,m,null),a(this,E,!1),a(this,w,null),a(this,y,null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}static get DEFAULT_SETTINGS(){return{content:"",customClassName:"",background:"solid",contentBackground:!1,animation:!0,closable:!1,a11y:{role:"dialog",ariaLabel:"Dialog",ariaLabelledby:"",ariaDescribedby:""}}}static get SETTINGS_VALIDATORS(){return{content:e=>"string"==typeof e||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"undefined"!=typeof DocumentFragment&&e instanceof DocumentFragment,customClassName:e=>"string"==typeof e,background:e=>["solid","semi-transparent"].includes(e),contentBackground:e=>"boolean"==typeof e,animation:e=>"boolean"==typeof e,closable:e=>"boolean"==typeof e,a11y:e=>(0,o.isObject)(e)&&(void 0===(null==e?void 0:e.role)||["dialog","alertdialog"].includes(null==e?void 0:e.role))&&(void 0===(null==e?void 0:e.ariaLabel)||"string"==typeof(null==e?void 0:e.ariaLabel))&&(void 0===(null==e?void 0:e.ariaLabelledby)||"string"==typeof(null==e?void 0:e.ariaLabelledby))&&(void 0===(null==e?void 0:e.ariaDescribedby)||"string"==typeof(null==e?void 0:e.ariaDescribedby))}}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(u(m,this)||(h(m,this,new s.DialogUI({rootElement:this.hot.rootGridElement,isRtl:this.hot.isRtl()})),u(m,this).addLocalHook("clickDialogElement",()=>c(C,this,N).call(this)),h(w,this,(0,i.installFocusDetector)(this.hot,u(m,this).getDialogElement(),{onFocus:e=>{this.hot.getShortcutManager().setActiveContextName(f),this.hot.listen(),this.hot.runHooks("afterDialogFocus",`tab_${e}`)}}))),c(C,this,S).call(this),this.addHook("modifyFocusOnTabNavigation",e=>c(C,this,T).call(this,e),1),this.addHook("afterViewRender",()=>c(C,this,b).call(this)),this.addHook("afterListen",()=>c(C,this,_).call(this)),this.addHook("afterUnlisten",()=>c(C,this,A).call(this)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.hide(),c(C,this,R).call(this),super.disablePlugin()}isVisible(){return u(E,this)}show(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.enabled)return;if(this.isVisible())return void this.update(e);this.hot.runHooks("beforeDialogShow"),this.update(e),u(m,this).showDialog(this.getSetting("animation")),h(E,this,!0),h(y,this,this.hot.selection.exportSelection()),this.hot.deselectCell(),this.hot.runHooks("afterDialogShow");const{activeElement:t}=this.hot.rootDocument;(this.hot.rootWrapperElement.contains(t)||this.hot.rootPortalElement.contains(t))&&(this.hot.unlisten(),this.hot.getShortcutManager().setActiveContextName(f),this.hot.listen(),u(m,this).focusDialog(),this.hot.runHooks("afterDialogFocus","show"))}hide(){this.isVisible()&&(this.hot.runHooks("beforeDialogHide"),u(m,this).hideDialog(this.getSetting("animation")),this.hot.getShortcutManager().setActiveContextName("grid"),h(E,this,!1),u(y,this)?(this.hot.selection.importSelection(u(y,this)),this.hot.view.render(),h(y,this,null)):this.hot.selectCell(0,0),this.hot.runHooks("afterDialogHide"))}update(e){this.enabled&&(this.updatePluginSettings(e),u(m,this).updateDialog({isVisible:this.isVisible(),content:this.getSetting("content"),customClassName:this.getSetting("customClassName"),background:this.getSetting("background"),contentBackground:this.getSetting("contentBackground"),animation:this.getSetting("animation"),a11y:this.getSetting("a11y")}))}focus(){u(m,this).focusDialog()}destroy(){var e;null===(e=u(m,this))||void 0===e||e.destroyDialog(),h(m,this,null),h(E,this,!1),h(w,this,null),h(y,this,null),super.destroy()}}function S(){var e;const t=this.hot.getShortcutManager(),r=null!==(e=t.getContext(f))&&void 0!==e?e:t.addContext(f);r.addShortcut({keys:[["Escape"]],callback:()=>{this.hide()},runOnlyIf:()=>u(E,this)&&this.getSetting("closable"),group:p}),r.addShortcut({keys:[["Shift","Tab"],["Tab"]],preventDefault:!1,callback:e=>{this.hot._registerTimeout(()=>{const{activeElement:t}=this.hot.rootDocument;u(m,this).isInsideDialog(t)?e.shiftKey?this.hot.runHooks("dialogFocusPreviousElement"):this.hot.runHooks("dialogFocusNextElement"):this.hot.unlisten()},0)},group:p})}function R(){this.hot.getShortcutManager().getContext(f).removeShortcutsByGroup(p)}function T(e){if(this.isVisible())return u(w,this).focus(e),!1}function N(){this.isVisible()&&!this.hot.isListening()&&(this.hot.getShortcutManager().setActiveContextName(f),this.hot.runHooks("afterDialogFocus","click")),this.hot.listen()}function _(){u(w,this).deactivate()}function A(){u(w,this).activate()}function b(){const{view:e,rootWrapperElement:t,rootWindow:r}=this.hot,n=e.isHorizontallyScrollableByWindow()?e.getTotalTableWidth():e.getWorkspaceWidth();u(m,this).updateWidth(n);const s=t.querySelector(".hot-display-license-info");if(s){const e=s.offsetHeight,t=parseFloat(r.getComputedStyle(s).marginTop);u(m,this).updateHeight(e+t)}}t.Dialog=v},80706:(e,t,r)=>{"use strict";var n=r(15176),s=r(60606),i=r(12033)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===s(e))}},80825:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(90742);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Formulas=n.Formulas},81037:(e,t,r)=>{"use strict";var n=r(19451),s=r(44827),i=r(82683),o=r(57041),a=r(39393),l=o("IE_PROTO"),h=Object,u=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=i(e);if(n(t,l))return t[l];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof h?u:null}},81056:(e,t,r)=>{"use strict";r(33873)},81231:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.replaceData=function(e,t,r,n){const{hotInstance:u,dataMap:c,dataSource:d,internalSource:g,source:p,metaManager:f,firstRun:m}=n,E=(0,s.toUpperCaseFirst)(g),w=u.getSettings();Array.isArray(w.dataSchema)?u.dataType="array":(0,i.isFunction)(w.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks(`before${E}`,e,m,p);const y=new o.default(u,e,f);if(t(y),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${g} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=y.getSchema();let r;e=[];let n=0,s=0;for(n=0,s=w.startRows;n<s;n++)if("object"!==u.dataType&&"function"!==u.dataType||!w.dataSchema)if("array"===u.dataType)r=(0,a.deepClone)(t[0]),e.push(r);else{r=[];for(let e=0,t=w.startCols;e<t;e++)r.push(null);e.push(r)}else r=(0,a.deepClone)(t),e.push(r)}}Array.isArray(e[0])&&(u.dataType="array");w.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),r(y),u.runHooks(`after${E}`,e,m,p),m||(u.runHooks("afterChange",null,g),u.view.adjustElementsSize(),u.render());u.getSettings().ariaTags&&(0,l.setAttribute)(u.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(u.countCols()+(u.view?u.countRowHeaders():0))])},r(52490),r(99356);var s=r(82887),i=r(99242),o=n(r(99257)),a=r(21389),l=r(6083),h=r(13618)},81263:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(41736),s=r(43008);const i=t.CELL_TYPE="password";t.PasswordCellType={CELL_TYPE:i,editor:n.PasswordEditor,renderer:s.passwordRenderer,copyable:!1}},81384:()=>{},81514:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s=n(r(24300)),i=r(6083),o=r(40785),a=r(53383),l=r(31078);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 u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var g=new WeakSet;class p 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 c}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,l.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>u(g,this,f).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>u(g,this,m).call(this)),this.addHook("afterMomentumScroll",()=>u(g,this,E).call(this))}}function f(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:r,topInlineStartCornerOverlay:n,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(r),n&&this.scrollbars.push(n),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),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),n&&this.clones.push(n.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,o.arrayEach)(this.clones,e=>{(0,i.addClass)(e,"hide-tween")})}function E(){this.freezeOverlays=!1,(0,o.arrayEach)(this.clones,e=>{(0,i.removeClass)(e,"hide-tween"),(0,i.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,o.arrayEach)(this.clones,e=>{(0,i.removeClass)(e,"show-tween")})},400),(0,o.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=p},81553:(e,t,r)=>{"use strict";t.__esModule=!0;var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,o)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?s(o,t,i):o[t]=e[t]);return o}(e,t)}
278
278
  /**
279
279
  * @preserve
280
280
  * Authors: Handsoncode
@@ -283,7 +283,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
283
283
  * Description: Definition file for English - United States language-country.
284
284
  */(r(15230));const s={languageCode:"en-US",[n.CONTEXTMENU_ITEMS_NO_ITEMS]:"No available options",[n.CONTEXTMENU_ITEMS_ROW_ABOVE]:"Insert row above",[n.CONTEXTMENU_ITEMS_ROW_BELOW]:"Insert row below",[n.CONTEXTMENU_ITEMS_INSERT_LEFT]:"Insert column left",[n.CONTEXTMENU_ITEMS_INSERT_RIGHT]:"Insert column right",[n.CONTEXTMENU_ITEMS_REMOVE_ROW]:["Remove row","Remove rows"],[n.CONTEXTMENU_ITEMS_REMOVE_COLUMN]:["Remove column","Remove columns"],[n.CONTEXTMENU_ITEMS_UNDO]:"Undo",[n.CONTEXTMENU_ITEMS_REDO]:"Redo",[n.CONTEXTMENU_ITEMS_READ_ONLY]:"Read only",[n.CONTEXTMENU_ITEMS_CLEAR_COLUMN]:"Clear column",[n.CONTEXTMENU_ITEMS_ALIGNMENT]:"Alignment",[n.CONTEXTMENU_ITEMS_ALIGNMENT_LEFT]:"Left",[n.CONTEXTMENU_ITEMS_ALIGNMENT_CENTER]:"Center",[n.CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT]:"Right",[n.CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY]:"Justify",[n.CONTEXTMENU_ITEMS_ALIGNMENT_TOP]:"Top",[n.CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE]:"Middle",[n.CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM]:"Bottom",[n.CONTEXTMENU_ITEMS_FREEZE_COLUMN]:"Freeze column",[n.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN]:"Unfreeze column",[n.CONTEXTMENU_ITEMS_BORDERS]:"Borders",[n.CONTEXTMENU_ITEMS_BORDERS_TOP]:"Top",[n.CONTEXTMENU_ITEMS_BORDERS_RIGHT]:"Right",[n.CONTEXTMENU_ITEMS_BORDERS_BOTTOM]:"Bottom",[n.CONTEXTMENU_ITEMS_BORDERS_LEFT]:"Left",[n.CONTEXTMENU_ITEMS_REMOVE_BORDERS]:"Remove border(s)",[n.CONTEXTMENU_ITEMS_ADD_COMMENT]:"Add comment",[n.CONTEXTMENU_ITEMS_EDIT_COMMENT]:"Edit comment",[n.CONTEXTMENU_ITEMS_REMOVE_COMMENT]:"Delete comment",[n.CONTEXTMENU_ITEMS_READ_ONLY_COMMENT]:"Read-only comment",[n.CONTEXTMENU_ITEMS_MERGE_CELLS]:"Merge cells",[n.CONTEXTMENU_ITEMS_UNMERGE_CELLS]:"Unmerge cells",[n.CONTEXTMENU_ITEMS_COPY]:"Copy",[n.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS]:["Copy with header","Copy with headers"],[n.CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS]:["Copy with group header","Copy with group headers"],[n.CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY]:["Copy header only","Copy headers only"],[n.CONTEXTMENU_ITEMS_CUT]:"Cut",[n.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD]:"Insert child row",[n.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD]:"Detach from parent",[n.CONTEXTMENU_ITEMS_HIDE_COLUMN]:["Hide column","Hide columns"],[n.CONTEXTMENU_ITEMS_SHOW_COLUMN]:["Show column","Show columns"],[n.CONTEXTMENU_ITEMS_HIDE_ROW]:["Hide row","Hide rows"],[n.CONTEXTMENU_ITEMS_SHOW_ROW]:["Show row","Show rows"],[n.FILTERS_CONDITIONS_NONE]:"None",[n.FILTERS_CONDITIONS_EMPTY]:"Is empty",[n.FILTERS_CONDITIONS_NOT_EMPTY]:"Is not empty",[n.FILTERS_CONDITIONS_EQUAL]:"Is equal to",[n.FILTERS_CONDITIONS_NOT_EQUAL]:"Is not equal to",[n.FILTERS_CONDITIONS_BEGINS_WITH]:"Begins with",[n.FILTERS_CONDITIONS_ENDS_WITH]:"Ends with",[n.FILTERS_CONDITIONS_CONTAINS]:"Contains",[n.FILTERS_CONDITIONS_NOT_CONTAIN]:"Does not contain",[n.FILTERS_CONDITIONS_GREATER_THAN]:"Greater than",[n.FILTERS_CONDITIONS_GREATER_THAN_OR_EQUAL]:"Greater than or equal to",[n.FILTERS_CONDITIONS_LESS_THAN]:"Less than",[n.FILTERS_CONDITIONS_LESS_THAN_OR_EQUAL]:"Less than or equal to",[n.FILTERS_CONDITIONS_BETWEEN]:"Is between",[n.FILTERS_CONDITIONS_NOT_BETWEEN]:"Is not between",[n.FILTERS_CONDITIONS_AFTER]:"After",[n.FILTERS_CONDITIONS_BEFORE]:"Before",[n.FILTERS_CONDITIONS_TODAY]:"Today",[n.FILTERS_CONDITIONS_TOMORROW]:"Tomorrow",[n.FILTERS_CONDITIONS_YESTERDAY]:"Yesterday",[n.FILTERS_VALUES_BLANK_CELLS]:"Blank cells",[n.FILTERS_DIVS_FILTER_BY_CONDITION]:"Filter by condition",[n.FILTERS_DIVS_FILTER_BY_VALUE]:"Filter by value",[n.FILTERS_LABELS_CONJUNCTION]:"And",[n.FILTERS_LABELS_DISJUNCTION]:"Or",[n.FILTERS_BUTTONS_SELECT_ALL]:"Select all",[n.FILTERS_BUTTONS_CLEAR]:"Clear",[n.FILTERS_BUTTONS_OK]:"OK",[n.FILTERS_BUTTONS_CANCEL]:"Cancel",[n.FILTERS_BUTTONS_PLACEHOLDER_SEARCH]:"Search",[n.FILTERS_BUTTONS_PLACEHOLDER_VALUE]:"Value",[n.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE]:"Second value",[n.PAGINATION_SECTION]:"Pagination",[n.PAGINATION_PAGE_SIZE_SECTION]:"Page size",[n.PAGINATION_PAGE_SIZE_AUTO]:"Auto",[n.PAGINATION_COUNTER_SECTION]:"[start] - [end] of [total]",[n.PAGINATION_NAV_SECTION]:"Page [currentPage] of [totalPages]",[n.PAGINATION_FIRST_PAGE]:"Go to first page",[n.PAGINATION_PREV_PAGE]:"Go to previous page",[n.PAGINATION_NEXT_PAGE]:"Go to next page",[n.PAGINATION_LAST_PAGE]:"Go to last page",[n.CHECKBOX_CHECKED]:"Checked",[n.CHECKBOX_UNCHECKED]:"Unchecked",[n.LOADING_TITLE]:"Loading..."};t.default=s},81566:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520).add,i=r(96792),o=r(94811),a=r(48369);e.exports=function(e){var t=n(this),r=o(e).getIterator(),l=i(t);return a(r,function(e){s(l,e)}),l}},81751:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.correctFormat=u,t.dateValidator=h;var s=n(r(37539)),i=r(69264),o=r(85689),a=r(13186);const l=t.VALIDATOR_TYPE="date";function h(e,t){const r=(0,i.getEditorInstance)(o.EDITOR_TYPE,this.instance);let n=e,a=!0;null==n&&(n="");let l=(0,s.default)(n,this.dateFormat||r.defaultDateFormat,!0).isValid(),h=(0,s.default)(new Date(n)).isValid()||l;if(this.allowEmpty&&""===n&&(h=!0,l=!0),h||(a=!1),!h&&l&&(a=!0),h&&!l)if(!0===this.correctFormat){const e=u(n,this.dateFormat);this.instance.setDataAtCell(this.visualRow,this.visualCol,e,"dateValidator"),a=!0}else a=!1;t(a)}function u(e,t){const r=(0,s.default)((0,a.getNormalizedDate)(e)),n=(0,s.default)(e,t),i=e.search(/[A-Za-z]/g)>-1;let o;return o=r.isValid()&&r.format("x")===n.format("x")||!n.isValid()||i?r:n,o.format(t)}h.VALIDATOR_TYPE=l},81828:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(21389),o=r(82887);class a{static get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",bom:!1,columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}constructor(e,t){(0,s.default)(this,"dataProvider",void 0),(0,s.default)(this,"options",void 0),this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)}_mergeOptions(e){let t=(0,i.clone)(this.constructor.DEFAULT_OPTIONS);const r=new Date;return t=(0,i.extend)((0,i.clone)(a.DEFAULT_OPTIONS),t),t=(0,i.extend)(t,e),t.filename=(0,o.substitute)(t.filename,{YYYY:r.getFullYear(),MM:`${r.getMonth()+1}`.padStart(2,"0"),DD:`${r.getDate()}`.padStart(2,"0")}),t}}t.default=a},81874:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(40059),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(29810),r(39748),r(31143);var s=n(r(24300)),i=n(r(59589)),o=r(4407),a=r(96357),l=r(40785),h=r(42685);function u(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,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var d=new WeakSet;class g{constructor(e){u(this,d),(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"mergedCells",[]),(0,s.default)(this,"mergedCellsMatrix",new Map),(0,s.default)(this,"hot",void 0),this.plugin=e,this.hot=e.hot}static IS_OVERLAPPING_WARNING(e){let{row:t,col:r}=e;return h.toSingleLine`The merged cell declared at [${t}, ${r}], overlaps\x20
285
285
  with the other declared merged cell. The overlapping merged cell was not added to the table, please\x20
286
- fix your setup.`}get(e,t){var r;return!!this.mergedCellsMatrix.has(e)&&(null!==(r=this.mergedCellsMatrix.get(e).get(t))&&void 0!==r&&r)}getByRange(e){const{row:t,col:r}=e.getTopStartCorner(),{row:n,col:s}=e.getBottomEndCorner(),i=this.mergedCells.length;let o=!1;for(let e=0;e<i;e++){const i=this.mergedCells[e],{row:a,col:l,rowspan:h,colspan:u}=i;if(a>=t&&a+h-1<=n&&l>=r&&l+u-1<=s){o=i;break}}return o}filterOverlappingMergeCells(e){const t=new Set;this.mergedCells.forEach(e=>{const{row:r,col:n,colspan:s,rowspan:i}=e;for(let e=r;e<r+i;e++)for(let r=n;r<n+s;r++)t.add(`r${e},c${r}`)});return e.filter(e=>{const{row:r,col:n,colspan:s,rowspan:i}=e,o=new Set;let l=!1;for(let h=r;h<r+i;h++){for(let r=n;r<n+s;r++){const n=`r${h},c${r}`;if(t.has(n)){(0,a.warn)(g.IS_OVERLAPPING_WARNING(e)),l=!0;break}o.add(n)}if(l)break}return l||t.add(...o),!l})}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:r,col:n}=e.getTopStartCorner(),{row:s,col:i}=e.getBottomEndCorner(),o=[];for(let e=r;e<=s;e++)for(let r=n;r<=i;r++){const n=this.get(e,r);n&&(t||!t&&n.row===e&&n.col===r)&&o.push(n)}return o}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=e.row,n=e.col,s=e.rowspan,o=e.colspan,l=new i.default(r,n,s,o,this.hot._createCellCoords,this.hot._createCellRange),h=this.get(r,n),u=!t&&this.isOverlapping(l);return h||u?(u&&(0,a.warn)(g.IS_OVERLAPPING_WARNING(l)),!1):(this.hot&&l.normalize(this.hot),this.mergedCells.push(l),c(d,this,f).call(this,l),l)}remove(e,t){const r=this.get(e,t),n=r?this.mergedCells.indexOf(r):-1;return!(!r||-1===n)&&(this.mergedCells.splice(n,1),c(d,this,m).call(this,r),r)}clear(){(0,l.arrayEach)(this.mergedCells,e=>{let{row:t,col:r,rowspan:n,colspan:s}=e;(0,o.rangeEach)(t,t+n,e=>{(0,o.rangeEach)(r,r+s,t=>{const r=this.hot.getCell(e,t);r&&(r.removeAttribute("rowspan"),r.removeAttribute("colspan"),r.style.display="")})})}),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++){if(this.mergedCells[e].getRange().overlaps(t))return!0}return!1}isFirstRenderableMergedCell(e,t){const r=this.get(e,t);if(!r)return!1;const{row:n,col:s,rowspan:i,colspan:a}=r,l=this.hot.view.getActiveOverlayName(),h=["top","top_inline_start_corner"].includes(l)?0:this.hot.getFirstRenderedVisibleRow(),u=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(l)?0:this.hot.getFirstRenderedVisibleColumn(),c=(0,o.clamp)(h,n,n+i-1),d=(0,o.clamp)(u,s,s+a-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(c,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(d,1)===t}getFirstRenderableCoords(e,t){const r=this.get(e,t);if(!r||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const n=this.hot.rowIndexMapper.getNearestNotHiddenIndex(r.row,1),s=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r.col,1);return this.hot._createCellCoords(n,s)}getStartMostColumnIndex(e,t){const r=c(d,this,p).call(this,e,"col",-1);let n=t;for(let e=0;e<r.length;e++)if(r[e]<=t){n=r[e];break}return n}getEndMostColumnIndex(e,t){const r=c(d,this,p).call(this,e,"col",1);let n=t;for(let e=0;e<r.length;e++)if(r[e]>=t){n=r[e];break}return n}getTopMostRowIndex(e,t){const r=c(d,this,p).call(this,e,"row",-1);let n=t;for(let e=0;e<r.length;e++)if(r[e]<=t){n=r[e];break}return n}getBottomMostRowIndex(e,t){const r=c(d,this,p).call(this,e,"row",1);let n=t;for(let e=0;e<r.length;e++)if(r[e]>=t){n=r[e];break}return n}shiftCollections(e,t,r){const n=[0,0];switch(e){case"right":n[0]+=r;break;case"left":n[0]-=r;break;case"down":n[1]+=r;break;case"up":n[1]-=r}const s=[];this.mergedCells.forEach(e=>{e.shift(n,t),e.removed&&s.push(e)}),s.forEach(e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)}),this.mergedCellsMatrix.clear(),this.mergedCells.forEach(e=>{c(d,this,f).call(this,e)})}}function p(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const n=new Map,s=1===r?e.getTopStartCorner():e.getBottomEndCorner(),i=1===r?e.getBottomEndCorner():e.getTopStartCorner();for(let e=s.row;1===r?e<=i.row:e>=i.row;e+=r)for(let o=s.col;1===r?o<=i.col:o>=i.col;o+=r){const s="row"===t?e:o,i=this.get(e,o);let a=s;i&&(a=1===r?i[t]+i[`${t}span`]-1:i[t]),n.has(s)||n.set(s,new Set),n.get(s).add(a)}return Array.from(new Set(Array.from(n.entries()).filter(e=>{let[,t]=e;return 1===t.size}).flatMap(e=>{let[,t]=e;return Array.from(t)})))}function f(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let r=e.col;r<e.col+e.colspan;r++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(r,e)}function m(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let r=e.col;r<e.col+e.colspan;r++)this.mergedCellsMatrix.get(t).delete(r)}t.default=g},81910:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(53383),o=n(r(40172)),a=n(r(74629));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="bindRowsWithHeaders",u=t.PLUGIN_PRIORITY=210,c=new Map([["loose",o.default],["strict",a.default]]);var d=new WeakSet;class g extends i.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=c.get(this.getSetting()))&&void 0!==e?e:c.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(d,this,p).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function p(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},81953:(e,t,r)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e),s={row:r.getComputedRowTarget(t),col:r.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:r}=s;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(62147)},81979:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},82175:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=r(16964);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var i=r(55316);t.BottomOverlay=i.BottomOverlay;var o=r(86720);t.InlineStartOverlay=o.InlineStartOverlay;var a=r(37131);t.Overlay=a.Overlay;var l=r(52732);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=r(16076);t.TopOverlay=h.TopOverlay;var u=r(42210);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))})},82228:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(93710);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ColumnSummary=n.ColumnSummary},82264:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91698);const s=t.EDITOR_TYPE="numeric";class i extends n.TextEditor{static get EDITOR_TYPE(){return s}}t.NumericEditor=i},82328:(e,t,r)=>{"use strict";r(49463)("flat")},82497:(e,t,r)=>{"use strict";var n=r(84677);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},82515:(e,t,r)=>{"use strict";var n=r(72820),s=r(19098),i=r(70792),o=r(66431),a=r(91952),l=r(35738),h=r(49463),u=Array,c=s(l("Array","sort"));n({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&i(e);var t=o(this),r=a(u,t);return c(r,e)}}),h("toSorted")},82683:(e,t,r)=>{"use strict";var n=r(53872),s=Object;e.exports=function(e){return s(n(e))}},82887:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];let s=r.length;for(;s;){s-=1;const t=(0,i.stringify)(r[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=o,t.stripTags=function(e){return o(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,r)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[r]?"":t[r])},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},r(99356);var s=n(r(32457)),i=r(27727);function o(e,t){return s.default.sanitize(e,t)}},82973:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:r}=e;const n=t(),s=r(),i=[];let o=0,a=1,l=0;for(let e=0;e<n.length;e++){const t=n[e];l>0&&a+t>=s&&(i.push({startIndex:o,endIndex:e-1,pageSize:l}),o=e,a=1,l=0),a+=t,l+=1}i.push({startIndex:o,endIndex:Math.max(0,n.length-1),pageSize:l}),this.pages=i}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},83247:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(18689);t.valueSetter=n.valueSetter},83252:()=>{},83276:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(46830)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=o},83367:()=>{},83434:(e,t,r)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(r,s){const[,...i]=r,[,...o]=s;return function(r){const s=e[r],a=t[r],l=i[r],h=o[r],u=a.columnSorting;return(u.compareFunctionFactory?u.compareFunctionFactory:(0,n.getCompareFunctionFactory)(a.type))(s,a,u)(l,h)}(0)}};var n=r(2520)},83788:()=>{},83847:(e,t,r)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=i;var n=r(21389);const s=t.VALIDATOR_TYPE="autocomplete";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(r,o(r,t)):o(r,t)(this.source):t(!0)}function o(e,t){const r=e;return function(e){let s=!1;for(let t=0,i=e.length;t<i;t++)if((0,n.isObjectEqual)(r,e[t])){s=!0;break}t(s)}}i.VALIDATOR_TYPE=s},83995:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,n=parseInt(e.getSettings().fixedColumnsStart,10),s=e.getSelectedRangeActive().highlight.row,i=r.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,i)),t.markEndSource()}}},84055:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(40393);t.valueSetter=n.valueSetter},84101:()=>{},84111:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(38388),o=r(27916);t.OrderView=class{constructor(e,t){(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"nodesPool",void 0),(0,s.default)(this,"sizeSet",new i.ViewSizeSet),(0,s.default)(this,"collectedNodes",[]),(0,s.default)(this,"viewDiffer",new o.ViewDiffer(this.sizeSet)),(0,s.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[r,n,s,i]=e,o=this.nodesPool(n);switch(this.collectedNodes.push(o),r){case"prepend":t.insertBefore(o,t.firstChild);break;case"append":t.appendChild(o);break;case"insert_before":t.insertBefore(o,this.nodesPool(s)),t.removeChild(this.nodesPool(i));break;case"replace":t.replaceChild(o,this.nodesPool(s));break;case"remove":t.removeChild(o)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},84440:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(95887);t.CELL_TYPE=n.CELL_TYPE,t.NumericCellType=n.NumericCellType},84677:(e,t,r)=>{"use strict";var n=r(47057),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},84786:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(30582);t.RowHeadersRenderer=n.RowHeadersRenderer;var s=r(93622);t.ColumnHeadersRenderer=s.ColumnHeadersRenderer;var i=r(18101);t.ColGroupRenderer=i.ColGroupRenderer;var o=r(67145);t.RowsRenderer=o.RowsRenderer;var a=r(66635);t.CellsRenderer=a.CellsRenderer;var l=r(918);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:r,TBODY:h,rowUtils:u,columnUtils:c,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 n.RowHeadersRenderer,columnHeaders:new s.ColumnHeadersRenderer(t),colGroup:new i.ColGroupRenderer(r),rows:new o.RowsRenderer(h),cells:new a.CellsRenderer}),this.renderer.setAxisUtils(u,c)}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()}}},84888:()=>{},85158:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=r(55585),i=n(r(97870)),o=n(r(50231));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",i.default),h("substitute",o.default)},85190:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(63301),s=r(99544),i=r(51453);class o extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(r,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=o},85219:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.default=function(e,t){var r,n,G=this;let j=arguments.length>2&&void 0!==arguments[2]&&arguments[2],z=this;const $=new h.default(z);let K,X,q,Q,Z,J,ee=!0;const te={...t.initialState,...t};(0,N.hasValidParameter)(j)&&(0,N.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,N.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,N.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const re=null!==(r=null==te?void 0:te.layoutDirection)&&void 0!==r?r:"inherit",ne=["rtl","ltr"].includes(re)?re:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",ne),null===(n=this.rootWrapperElement)||void 0===n||n.setAttribute("dir",ne),this.isRtl=function(){return"rtl"===ne},this.isLtr=function(){return!z.isRtl()},this.getDirectionFactor=function(){return z.isLtr()?1:-1},this.stylesHandler=new H.StylesHandler({rootElement:z.rootElement,rootDocument:z.rootDocument,onThemeChange:e=>{(0,N.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,F.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),te.language=(0,b.getValidLanguageCode)(te.language);const se=Object.fromEntries(Object.entries(te).filter(e=>{let[t]=e;return!(A.Hooks.getSingleton().isRegistered(t)||A.Hooks.getSingleton().isDeprecated(t))})),ie=new O.MetaManager(z,se,[O.DynamicCellMetaMod,O.ExtendMetaPropertiesMod]),oe=ie.getTableMeta(),ae=ie.getGlobalMeta(),le=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,y.randomString)()}`,Y.set(this.guid,this),this.columnIndexMapper=new T.IndexMapper,this.rowIndexMapper=new T.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{z.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{z.runHooks("afterRowSequenceChange",e)}),$.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{z.runHooks("beforeCompositionStart",e)}),X=new S.default(z);const he=(0,p.staticRegister)(this.guid);he.register("cellRangeMapper",new U.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ue=new I.Selection(oe,{rowIndexMapper:z.rowIndexMapper,columnIndexMapper:z.columnIndexMapper,countCols:()=>z.countCols(),countRows:()=>z.countRows(),propToCol:e=>K.propToCol(e),isEditorOpened:()=>!!z.getActiveEditor()&&z.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return G.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return G.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>z.getShortcutManager(),createCellCoords:(e,t)=>z._createCellCoords(e,t),createCellRange:(e,t,r)=>z._createCellRange(e,t,r),visualToRenderableCoords:e=>{const{row:t,col:r}=e;return z._createCellCoords(t>=0?z.rowIndexMapper.getRenderableFromVisualIndex(t):t,r>=0?z.columnIndexMapper.getRenderableFromVisualIndex(r):r)},renderableToVisualCoords:e=>{const{row:t,col:r}=e;return z._createCellCoords(t>=0?z.rowIndexMapper.getVisualFromRenderableIndex(t):t,r>=0?z.columnIndexMapper.getVisualFromRenderableIndex(r):r)},findFirstNonHiddenRenderableRow:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),i=z.rowIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>s||-1===r&&i<n?null:i>=0?z.rowIndexMapper.getRenderableFromVisualIndex(i):i},findFirstNonHiddenRenderableColumn:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),i=z.columnIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>s||-1===r&&i<n?null:i>=0?z.columnIndexMapper.getRenderableFromVisualIndex(i):i},isDisabledCellSelection:(e,t)=>e<0||t<0?z.getSettings().disableVisualSelection:z.getCellMeta(e,t).disableVisualSelection});this.selection=ue;const ce=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function de(e,t){const r="className"===e?z.rootElement:z.table;if(ee)(0,s.addClass)(r,t);else{let n=[],i=[];ae[e]&&(n=Array.isArray(ae[e])?ae[e]:(0,d.stringToArray)(ae[e])),t&&(i=Array.isArray(t)?t:(0,d.stringToArray)(t));const o=(0,d.getDifferenceOfArrays)(n,i),a=(0,d.getDifferenceOfArrays)(i,n);o.length&&(0,s.removeClass)(r,o),a.length&&(0,s.addClass)(r,a)}ae[e]=t}function ge(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function pe(e,t,r){if(!e.length)return void r();const n=z.getActiveEditor(),s=new ge;let i=!0;s.onQueueEmpty=()=>{n&&i&&n.cancelChanges(),r()};for(let r=e.length-1;r>=0;r--){const[n,o,,a]=e[r],l=K.propToCol(o);let h;h=Number.isInteger(l)?z.getCellMeta(n,l):{...Object.getPrototypeOf(oe),...oe},z.getCellValidator(h)&&(s.addValidatorToQueue(),z.validateCell(a,h,function(t,r){return function(n){if("boolean"!=typeof n)throw new Error("Validation error: result is not boolean");!1===n&&!1===r.allowInvalid&&(i=!1,e.splice(t,1),r.valid=!0),s.removeValidatorFormQueue()}}(r,h),t))}s.checkIfQueueIsEmpty()}function fe(e,t){for(let t=e.length-1;t>=0;t--){let r=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(oe.allowInsertRow)for(;e[t][0]>z.countRows()-1;){const{delta:e}=K.createRow(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}if("array"===z.dataType&&(!oe.columns||0===oe.columns.length)&&oe.allowInsertColumn)for(;K.propToCol(e[t][1])>z.countCols()-1;){const{delta:e}=K.createCol(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}r||K.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){q.adjustRowsAndCols(),z.runHooks("beforeChangeRender",e,t),Q.closeEditor(),z.view.adjustElementsSize(),z.render(),Q.prepareEditor(),z.runHooks("afterChange",e,t||"edit");const r=z.getActiveEditor();r&&(0,o.isDefined)(r.refreshValue)&&r.refreshValue()}else z.render()}function me(e,t,r){return Array.isArray(e)?e:[[e,t,r]]}function Ee(e,t){const r=z.runHooks("beforeChange",e,t||"edit"),n=e.filter(e=>null!==e);var s;if(!1===r||0===n.length)return null===(s=z.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){const[t,r,,s]=n[e],i=K.propToCol(r);let o;o=Number.isInteger(i)?z.getCellMeta(t,i):{...Object.getPrototypeOf(oe),...oe},n[e][3]=(0,B.getValueSetterValue)(s,o)}return n}this.columnIndexMapper.addLocalHook("cacheUpdated",ce),this.rowIndexMapper.addLocalHook("cacheUpdated",ce),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const r=(0,u.createObjectPropListener)(!1),n=this.selection.getSelectedRange(),{from:i,to:o}=n.current(),a=n.size()-1;this.runHooks("afterSelection",i.row,i.col,o.row,o.col,r,a),this.runHooks("afterSelectionByProp",i.row,z.colToProp(i.col),o.row,z.colToProp(o.col),r,a),t&&(!r.isTouched()||r.isTouched()&&!r.value)&&J.scrollTo(e);const l=ue.isSelectedByRowHeader(),h=ue.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ue.getSelectionSource())||Q.closeEditor(null),"refresh"!==ue.getSelectionSource()&&(z.view.render(),Q.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,u.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&J.scrollTo(e),Q.closeEditor(),z.view.render(),Q.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:r,to:n}=e[t];this.runHooks("afterSelectionEnd",r.row,r.col,n.row,n.col,t),this.runHooks("afterSelectionEndByProp",r.row,z.colToProp(r.col),n.row,z.colToProp(n.col),t),"refresh"===ue.getSelectionSource()&&(z.view.render(),Q.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{Q.closeEditor(),z.view.render(),(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),q={alter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const i=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[r]=e,[n]=t;return r===n?0:r>n?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[r,n]=t;const s=e[e.length-1],[i,o]=s,a=i+o;if(r<=a){const e=Math.max(n-(a-r),0);s[1]+=e}else e.push([r,n]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=z.countSourceRows();if(oe.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=K.createRow(t,r,{source:n,mode:a});ue.shiftRows(z.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const u="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===u?z.countSourceCols():0;const{delta:c,startPhysicalIndex:g}=K.createCol(t,r,{source:n,mode:u});if(c){if(Array.isArray(oe.colHeaders)){const e=[z.toVisualColumn(g),0];e.length+=c,Array.prototype.splice.apply(oe.colHeaders,e)}ue.shiftColumns(z.toVisualColumn(g),c)}break;case"remove_row":const p=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const i=(0,o.isEmpty)(r)?z.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeRow(r,s,n))return;if(ue.isSelected()){const{row:e}=z.getSelectedRangeActive().highlight;e>=r&&e<=r+s-1&&Q.closeEditor(!0)}const a=z.countRows(),l=oe.fixedRowsTop;l>=i+1&&(oe.fixedRowsTop-=Math.min(s,l-i));const h=oe.fixedRowsBottom;if(h&&i>=a-h&&(oe.fixedRowsBottom-=Math.min(s,h)),0===a)ue.deselect();else if("ContextMenu.removeRow"===n){const e=ue.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ue.refresh()}else ue.shiftRows(r,-s);t+=s})};Array.isArray(t)?p(i(t)):p([[t,r]]);break;case"remove_col":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const i=(0,o.isEmpty)(r)?z.countCols()-1:Math.max(r-t,0);let a=z.toPhysicalColumn(i);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeCol(r,s,n))return;if(ue.isSelected()){const{col:e}=z.getSelectedRangeActive().highlight;e>=r&&e<=r+s-1&&Q.closeEditor(!0)}if(0===z.countCols())ue.deselect();else if("ContextMenu.removeColumn"===n){const e=ue.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ue.refresh()}else ue.shiftColumns(r,-s);const l=oe.fixedColumnsStart;l>=i+1&&(oe.fixedColumnsStart-=Math.min(s,l-i)),Array.isArray(oe.colHeaders)&&(void 0===a&&(a=-1),oe.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?f(i(t)):f([[t,r]]);break;default:throw new Error(`There is no such action "${e}"`)}s||q.adjustRowsAndCols(),z.view.adjustElementsSize(),z.view.render()},adjustRowsAndCols(){const e=oe.minRows,t=oe.minSpareRows,r=oe.minCols,n=oe.minSpareCols;if(e){const t=z.countRows();t<e&&K.createRow(t,e-t,{source:"auto"})}if(t){const e=z.countEmptyRows(!0);if(e<t){const r=t-e,n=Math.min(r,oe.maxRows-z.countSourceRows());K.createRow(z.countRows(),n,{source:"auto"})}}{let e;(r||n)&&(e=z.countEmptyCols(!0));let t=z.countCols();if(r&&!oe.columns&&t<r){const n=r-t;e+=n,K.createCol(t,n,{source:"auto"})}if(n&&!oe.columns&&"array"===z.dataType&&e<n){t=z.countCols();const r=n-e,s=Math.min(r,oe.maxCols-t);K.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,r,n,s){let i,o,a,l;const h=[],c={},g=[],p=e.row,f=e.col;if(o=t.length,0===o)return!1;let m=0,E=0;switch((0,u.isObject)(r)&&(m=r.col-f+1,E=r.row-p+1),s){case"shift_down":const s=(0,d.pivot)(t),y=s.length,C=Math.max(y,m),v=z.getData().slice(p),S=(0,d.pivot)(v).slice(f,f+C);for(a=0;a<C;a+=1)if(a<y){for(i=0,o=s[a].length;i<E-o;i+=1)s[a].push(s[a][i%o]);a<S.length?g.push(s[a].concat(S[a])):g.push(s[a].concat(new Array(v.length).fill(null)))}else g.push(s[a%y].concat(S[a]));z.populateFromArray(p,f,(0,d.pivot)(g));break;case"shift_right":const R=t.length,T=Math.max(R,E),N=z.getData().slice(p).map(e=>e.slice(f));for(i=0;i<T;i+=1)if(i<R){for(a=0,l=t[i].length;a<m-l;a+=1)t[i].push(t[i][a%l]);if(i<N.length)for(let e=0;e<N[i].length;e+=1)t[i].push(N[i][e]);else t[i].push(...new Array(N[0].length).fill(null))}else t.push(t[i%o].slice(0,T).concat(N[i]));z.populateFromArray(p,f,t);break;default:c.row=e.row,c.col=e.col;let _,A=0,b=0,M=!0;const I=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t[e%t.length];return null!==r?n[r%n.length]:n},O=t.length,x=r?r.row-e.row+1:0;for(o=r?x:Math.max(O,x),i=0;i<o&&!(r&&c.row>r.row&&x>O||!oe.allowInsertRow&&c.row>z.countRows()-1||c.row>=oe.maxRows);i++){const t=i-A,s=I(t).length,d=r?r.col-e.col+1:0;if(l=r?d:Math.max(s,d),c.col=e.col,_=z.getCellMeta(c.row,c.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!_.skipRowOnPaste){for(b=0,a=0;a<l;a++){var w;if(r&&c.col>r.col&&d>s||!oe.allowInsertColumn&&c.col>z.countCols()-1||c.col>=oe.maxCols)break;if(_=z.getCellMeta(c.row,c.col),("CopyPaste.paste"===n||"Autofill.fill"===n)&&_.skipColumnOnPaste){b+=1,c.col+=1,l+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==n){c.col+=1;continue}const e=a-b,i=!!_.valueSetter;let o=I(t,e),g=null!==(w=z.getSourceDataAtCell(c.row,c.col))&&void 0!==w?w:null;if(null!==o&&"object"==typeof o)if(Array.isArray(o)&&null===g&&(g=[]),i||"object"==typeof g&&null!==g){if(null!==g){const e=(0,u.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,u.duckSchema)(Array.isArray(o)?o:o[0]||o);i||(0,u.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?o=(0,u.deepClone)(o):M=!1}}else M=!1;else i||null===g||"object"!=typeof g||(M=!1);M&&h.push([c.row,c.col,o]),M=!0,c.col+=1}c.row+=1}else A+=1,c.row+=1,o+=1}z.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.init=function(){X.setData(oe.data),z.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(z.rootElement,"mobile"),this.updateSettings(te,!0),this.view=new v.default(this),Q=l.default.getInstance(z,oe,ue),J=(0,x.createViewportScroller)(z),Z=new c.FocusManager(z),(0,N.isRootInstance)(this)&&((0,x.installFocusCatcher)(z),(0,V.install)(z.rootPortalElement),(0,o._injectProductInfo)(te.licenseKey,this.rootWrapperElement)),z.runHooks("init"),this.render(),ee&&null===z.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(z.rootElement,()=>{z.view._wt.wtOverlays.updateLastSpreaderSize(),z.view.adjustElementsSize(),z.render()}),"object"==typeof ee&&(z.runHooks("afterChange",ee[0],ee[1]),ee=!1),z.runHooks("afterInit")},this._createCellCoords=function(e,t){return z.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,r){return z.view._wt.createCellRange(e,t,r)},this.validateCell=function(e,t,r,n){let s=z.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void r(e);const n=t.visualCol,s=t.visualRow,i=z.getCell(s,n,!0);if(i&&"TH"!==i.nodeName){const e=z.rowIndexMapper.getRenderableFromVisualIndex(s),t=z.columnIndexMapper.getRenderableFromVisualIndex(n);z.view._wt.getSetting("cellRenderer",e,t,i)}r(e)}var l;(0,o.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,i.isFunction)(s)?(e=z.runHooks("beforeValidate",e,t.visualRow,t.prop,n),z._registerImmediate(()=>{s.call(t,e,r=>{z&&(r=z.runHooks("afterValidate",r,e,t.visualRow,t.prop,n),t.valid=r,a(r),z.runHooks("postAfterValidate",r,e,t.visualRow,t.prop,n))})})):z._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,r,n){const s=me(e,t,r),i=[];let o,a,l,h=n;for(o=0,a=s.length;o<a;o++){const[e,t,r]=s[o];if("object"!=typeof s[o])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:K.colToProp(t),i.push([e,l,X.getAtCell(this.toPhysicalRow(e),t),r])}h||"object"!=typeof e||(h=t);const u=Ee(i,h);z.runHooks("afterSetDataAtCell",u,h),pe(u,h,()=>{fe(u,h)})},this.setDataAtRowProp=function(e,t,r,n){const s=me(e,t,r),i=[];let o,a,l=n;for(o=0,a=s.length;o<a;o++){const[e,t,r]=s[o];i.push([e,t,X.getAtCell(this.toPhysicalRow(e),t),r])}l||"object"!=typeof e||(l=t);const h=Ee(i,n);z.runHooks("afterSetDataAtRowProp",h,l),pe(h,l,()=>{fe(h,l)})},this.listen=function(){z&&!z.isListening()&&(Y.forEach(e=>{z!==e&&e.unlisten()}),W=z.guid,z.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(W=null,z.runHooks("afterUnlisten"))},this.isListening=function(){return W===z.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Q.closeEditor(e),z.view.render(),t&&ue.isSelected()&&Q.prepareEditor()},this.populateFromArray=function(e,t,r,n,s,i,o){if("object"!=typeof r||"object"!=typeof r[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof n?z._createCellCoords(n,s):null;return q.populateFromArray(z._createCellCoords(e,t),r,a,i,o)},this.spliceCol=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),i=3;i<n;i++)s[i-3]=arguments[i];return K.spliceCol(e,t,r,...s)},this.spliceRow=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),i=3;i<n;i++)s[i-3]=arguments[i];return K.spliceRow(e,t,r,...s)},this.getSelected=function(){if(ue.isSelected())return(0,d.arrayMap)(ue.getSelectedRange(),e=>{let{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]},this.getSelectedRange=function(){if(ue.isSelected())return Array.from(ue.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return ue.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return ue.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!ue.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ue.getSelectedRange(),e=>{if(e.isSingleHeader())return;const r=e.getTopStartCorner(),n=e.getBottomEndCorner();(0,C.rangeEach)(r.row,n.row,e=>{(0,C.rangeEach)(r.col,n.col,r=>{this.getCellMeta(e,r).readOnly||t.push([e,r,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||z.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||z.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const r=e();return this.resumeExecution(t),r},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!z.view)return;const e=z.view,{width:t,height:r}=e.getLastSize(),{width:n,height:s}=z.rootElement.getBoundingClientRect(),i=n!==t||s!==r;!1===z.runHooks("beforeRefreshDimensions",{width:t,height:r},{width:n,height:s},i)||((i||e._wt.wtOverlays.scrollableElement===z.rootWindow)&&(e.setLastSize(n,s),e.adjustElementsSize(),z.render()),z.runHooks("afterRefreshDimensions",{width:t,height:r},{width:n,height:s},i))},this.updateData=function(e,t){(0,O.replaceData)(e,e=>{K=e},e=>{K=e,z.columnIndexMapper.fitToLength(this.getInitialColumnCount()),z.rowIndexMapper.fitToLength(this.countSourceRows()),q.adjustRowsAndCols(),ue.refresh()},{hotInstance:z,dataMap:K,dataSource:X,internalSource:"updateData",source:t,metaManager:ie,firstRun:ee})},this.loadData=function(e,t){(0,O.replaceData)(e,e=>{K=e},()=>{ie.clearCellsCache(),z.initIndexMappers(),q.adjustRowsAndCols(),ue.refresh(),ee&&(ee=[null,"loadData"])},{hotInstance:z,dataMap:K,dataSource:X,internalSource:"loadData",source:t,metaManager:ie,firstRun:ee})},this.getInitialColumnCount=function(){const e=oe.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,i.isFunction)(e))if("array"===z.dataType){const r=this.countSourceCols();for(let n=0;n<r;n+=1)e(n)&&(t+=1)}else"object"!==z.dataType&&"function"!==z.dataType||(t=K.colToPropCache.length);else if((0,o.isDefined)(oe.dataSchema)){const e=K.getSchema();t=Array.isArray(e)?e.length:(0,u.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,r,n){return(0,o.isUndefined)(e)?K.getAll():K.getRange(z._createCellCoords(e,t),z._createCellCoords(r,n),K.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,n){return K.getCopyableText(z._createCellCoords(e,t),z._createCellCoords(r,n))},this.getCopyableData=function(e,t){return K.getCopyable(e,K.colToProp(t))},this.getCopyableSourceData=function(e,t){return X.getCopyable(e,K.colToProp(t))},this.getSchema=function(){return K.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=(ee?z.loadData:z.updateData).bind(this);let n,s,a=!1;if((0,o.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,o.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,o.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(n in e)if("data"===n||"language"===n);else if("className"===n)de("className",e.className);else if("tableClassName"===n&&z.table)de("tableClassName",e.tableClassName),z.view._wt.wtOverlays.syncOverlayTableClassNames();else if(A.Hooks.getSingleton().isRegistered(n)||A.Hooks.getSingleton().isDeprecated(n)){const t=e[n];(0,i.isFunction)(t)?(A.Hooks.getSingleton().addAsFixed(n,t,z),oe[n]=t):Array.isArray(t)&&(A.Hooks.getSingleton().add(n,t,z),oe[n]=t)}else!t&&(0,u.hasOwnProperty)(e,n)&&(ae[n]=e[n]);if(t)z.useTheme(oe.themeName||(0,k.getThemeClassName)(z.rootContainer));else{const t=z.getCurrentThemeName();(0,u.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&z.useTheme(e.themeName)}z.stylesHandler.isClassicTheme()&&(0,F.deprecatedWarn)("Handsontable classic theme is a legacy theme and will be removed in version 17.0. Please update your theme settings to ensure compatibility with future versions."),void 0===e.data&&void 0===oe.data?r(null,"updateSettings"):void 0!==e.data?r(e.data,"updateSettings"):void 0!==e.columns&&(K.createMap(),z.initIndexMappers()),!ee&&e.language&&function(e){const t=(0,M.normalizeLanguageCode)(e);(0,b.hasLanguageDictionary)(t)?(z.runHooks("beforeLanguageChange",t),ae.language=t,z.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}(e.language);const l=z.countCols(),h=oe.columns;if(h&&(0,i.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||ie.clearCache(),l>0)for(n=0,s=0;n<l;n++){if(h){const e=a?h(n):h[s];e&&ie.updateColumnMeta(s,e)}s+=1}(0,o.isDefined)(e.cell)&&(0,u.objectEach)(e.cell,e=>{z.setCellMetaObject(e.row,e.col,e)}),z.runHooks("afterCellMetaReset");let c=z.rootElement.style.height;if(""!==c&&(c=parseInt(z.rootElement.style.height,10)),t){z.rootElement.getAttribute("style")&&z.rootElement.setAttribute("data-initialstyle",z.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,i.isFunction)(d)&&(d=d()),d=z.runHooks("beforeHeightChange",d),null===d){const e=z.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?z.rootElement.setAttribute("style",e):(z.rootElement.style.height="",z.rootElement.style.overflow="")}else void 0!==d&&(z.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,z.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,i.isFunction)(t)&&(t=t()),t=z.runHooks("beforeWidthChange",t),z.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(z.view&&(z.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),z.view._wt.exportSettingsAsClassNames()),z.runHooks("afterUpdateSettings",e)),q.adjustRowsAndCols(),z.view&&!ee&&(z.render(),z.view._wt.wtOverlays.adjustElementsSize()),t||!z.view||""!==c&&""!==d&&void 0!==d||c===d||z.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=z.getSelectedRangeActive();if(oe.getValue){if((0,i.isFunction)(oe.getValue))return oe.getValue.call(z);if(e)return z.getData()[e.highlight.row][oe.getValue]}else if(e)return z.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return oe},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,r,n,s){q.alter(e,t,r,n,s)},this.getCell=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;n=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===n||void 0===s||void 0===n?null:z.view.getCellAtCoords(z._createCellCoords(s,n),r)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:r,col:n}=t;let s=r,i=n;return r>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(r)),n>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(n)),z._createCellCoords(s,i)},this.colToProp=function(e){return K.colToProp(e)},this.propToCol=function(e){return K.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return K.get(e,K.colToProp(t))},this.getDataAtRowProp=function(e,t){return K.get(e,t)},this.getDataAtCol=function(e){const t=[],r=K.getRange(z._createCellCoords(0,e),z._createCellCoords(oe.data.length-1,e),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getDataAtProp=function(e){const t=[],r=K.getRange(z._createCellCoords(0,K.propToCol(e)),z._createCellCoords(oe.data.length-1,K.propToCol(e)),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getSourceData=function(e,t,r,n){let s;return s=void 0===e?X.getData():X.getByRange(z._createCellCoords(e,t),z._createCellCoords(r,n)),s},this.getSourceDataArray=function(e,t,r,n){let s;return s=void 0===e?X.getData(!0):X.getByRange(z._createCellCoords(e,t),z._createCellCoords(r,n),!0),s},this.getSourceDataAtCol=function(e){return X.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,r,n){const s=me(e,t,r),i=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const r=this.toVisualRow(e),n=this.toVisualColumn(t);return Number.isInteger(n)?this.getCellMeta(r,n):{...Object.getPrototypeOf(oe),...oe}};i&&(0,d.arrayEach)(s,e=>{let[t,r,n]=e;const s=(0,B.getValueSetterValue)(n,l(t,r));a.push([t,r,X.getAtCell(t,r),s])}),(0,d.arrayEach)(s,e=>{let[t,r,n]=e;const s=(0,B.getValueSetterValue)(n,l(t,r));X.setAtCell(t,r,s)}),i&&this.runHooks("afterSetSourceDataAtCell",a,n),this.render();const h=z.getActiveEditor();h&&(0,o.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return X.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return X.getAtCell(e,t)},this.getDataAtRow=function(e){return K.getRange(z._createCellCoords(e,0),z._createCellCoords(e,this.countCols()-1),K.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,r,n){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,r,n],[i,o]=s;let[,,a,l]=s,h=null,u=null;void 0===a&&(a=i),void 0===l&&(l=o);let c="mixed";return(0,C.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),e=>{let t=!0;return(0,C.rangeEach)(Math.max(Math.min(o,l),0),Math.max(o,l),r=>{const n=this.getCellMeta(e,r);return u=n.type,h?t=h===u:h=u,t}),c=t?u:"mixed",t}),c},this.removeCellMeta=function(e,t,r){const[n,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let i=ie.getCellMetaKeyValue(n,s,r);!1!==z.runHooks("beforeRemoveCellMeta",e,t,r,i)&&(ie.removeCellMeta(n,s,r),z.runHooks("afterRemoveCellMeta",e,t,r,i)),i=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];if(n.length>0&&!Array.isArray(n[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&ie.removeRow(this.toPhysicalRow(e),t),n.length>0&&(0,d.arrayEach)(n.reverse(),t=>{ie.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,r)=>this.setCellMetaObject(e,r,t))}),z.render()},this.setCellMetaObject=function(e,t,r){"object"==typeof r&&(0,u.objectEach)(r,(r,n)=>{this.setCellMeta(e,t,n,r)})},this.setCellMeta=function(e,t,r,n){if(!1===z.runHooks("beforeSetCellMeta",e,t,r,n))return;let s=e,i=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),ie.setCellMeta(s,i,r,n),z.runHooks("afterSetCellMeta",e,t,r,n)},this.getCellsMeta=function(){return ie.getCellsMeta()},this.getCellMeta=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},n=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===n&&(n=e),null===s&&(s=t),ie.getCellMeta(n,s,{visualRow:e,visualColumn:t,...r})},this.getColumnMeta=function(e){return ie.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return ie.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===z.dataType||oe.columns)},this.getCellRenderer=function(e,t){const r="number"==typeof e?z.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof r?(0,m.getRenderer)(r):(0,o.isUndefined)(r)?(0,m.getRenderer)("text"):r},this.getCellEditor=function(e,t){const r="number"==typeof e?z.getCellMeta(e,t).editor:e.editor;return"string"==typeof r?(0,E.getEditor)(r):(0,o.isUndefined)(r)?(0,E.getEditor)("text"):r},this.getCellValidator=function(e,t){const r="number"==typeof e?z.getCellMeta(e,t).validator:e.validator;return"string"==typeof r?(0,w.getValidator)(r):r},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,r){const n=new ge;e&&(n.onQueueEmpty=e);let s=z.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=z.countCols()-1;for(;e>=0;)void 0===r||-1!==r.indexOf(e)?(n.addValidatorToQueue(),z.validateCell(z.getDataAtCell(s,e),z.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(n.valid=!1),n.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}n.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=oe.rowHeaders,r=e;return void 0!==r&&(r=z.runHooks("modifyRowHeader",r)),void 0===r?(t=[],(0,C.rangeEach)(z.countRows()-1,e=>{t.push(z.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[r]?t=t[r]:(0,i.isFunction)(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!oe.rowHeaders},this.hasColHeaders=function(){if(void 0!==oe.colHeaders&&null!==oe.colHeaders)return!!oe.colHeaders;for(let e=0,t=z.countCols();e<t;e++)if(z.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=z.runHooks("modifyColHeader",e);if(void 0===r){const e=[],t=z.countCols();for(let r=0;r<t;r++)e.push(z.getColHeader(r));return e}let n=oe.colHeaders;const s=z.toPhysicalColumn(r),o=function(e){const t=[],r=z.countCols();let n=0;for(;n<r;n++)(0,i.isFunction)(oe.columns)&&oe.columns(n)&&t.push(n);return t[e]}(s);return!1===oe.colHeaders?n=null:oe.columns&&(0,i.isFunction)(oe.columns)&&oe.columns(o)&&oe.columns(o).title?n=oe.columns(o).title:oe.columns&&oe.columns[s]&&oe.columns[s].title?n=oe.columns[s].title:Array.isArray(oe.colHeaders)&&void 0!==oe.colHeaders[s]?n=oe.colHeaders[s]:(0,i.isFunction)(oe.colHeaders)?n=oe.colHeaders(s):oe.colHeaders&&"string"!=typeof oe.colHeaders&&"number"!=typeof oe.colHeaders&&(n=(0,R.spreadsheetColumnLabel)(r)),n=z.runHooks("modifyColumnHeaderValue",n,e,t),n},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=z.getCellMeta(0,e).width}if(void 0!==t&&t!==oe.width||(t=oe.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let r=z._getColWidthFromSettings(e);return r=z.runHooks("modifyColWidth",r,e,t),void 0===r&&(r=_.DEFAULT_COLUMN_WIDTH),r},this._getRowHeightFromSettings=function(e){const t=z.stylesHandler.getDefaultRowHeight();let r=oe.rowHeights;if(null!=r){switch(typeof r){case"object":r=r[e];break;case"function":r=r(e)}"string"==typeof r&&(r=parseInt(r,10))}return null!=r&&r<t?t:r},this.getRowHeight=function(e,t){let r=z._getRowHeightFromSettings(e);return r=z.runHooks("modifyRowHeight",r,e,t),r},this.countSourceRows=function(){return X.countRows()},this.countSourceCols=function(){return X.countFirstRowKeys()},this.countRows=function(){return K.getLength()},this.countCols=function(){const e=oe.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return z.view._wt.drawn?z.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return z.view._wt.drawn?z.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return z.view._wt.drawn?z.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return z.view._wt.drawn?z.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(z.countRows()-1,r=>{if(z.isEmptyRow(r))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(z.countCols()-1,r=>{if(z.isEmptyCol(r))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return oe.isEmptyRow.call(z,e)},this.isEmptyCol=function(e){return oe.isEmptyCol.call(z,e)},this.selectCell=function(e,t,r,n){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,o.isUndefined)(e)&&!(0,o.isUndefined)(t)&&this.selectCells([[e,t,r,n]],s,i)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&J.suspend();const r=ue.selectCells(e);return r&&t&&z.listen(),J.resume(),r},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ue.selectColumns(e,t,r)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ue.selectRows(e,t,r)},this.deselectCell=function(){ue.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;J.skipNextScrollCycle(),ue.selectAll(e,t,r)};const we=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var r;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(r=arguments[4])||void 0===r||r});const{row:n,col:s,considerHiddenIndexes:o}=null!=e?e:{};let a=n,l=s;if((0,i.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===o||o){const e=Number.isInteger(n)&&n>=0,t=Number.isInteger(s)&&s>=0,r=e?we(this.rowIndexMapper,n):void 0,i=t?we(this.columnIndexMapper,s):void 0;if(null===r||null===i)return!1;a=e?z.rowIndexMapper.getRenderableFromVisualIndex(r):n,l=t?z.columnIndexMapper.getRenderableFromVisualIndex(i):s}const h=Number.isInteger(a),u=Number.isInteger(l);let c=!1;return h&&a>=0&&u&&l>=0?c=z.view.scrollViewport(z._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(u&&l<0||!u)?c=z.view.scrollViewportVertically(a,e.verticalSnap):u&&l>=0&&(h&&a<0||!h)&&(c=z.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,i.isFunction)(t)&&(c?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),c},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,i.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),r=this.scrollViewportTo(t.toObject());return r?this.view.render():(0,i.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),r},this.destroy=function(){z._clearTimeouts(),z._clearImmediates(),z.view&&z.view.destroy(),X&&X.destroy(),X=null,(0,N.isRootInstance)(this)&&(0,V.uninstall)(),this.getShortcutManager().destroy(),he.clear(),ie.clearCache(),Y.delete(this.guid),$.destroy(),Q&&Q.destroy(),z.rootContainer&&(0,s.empty)(z.rootContainer),z.rootPortalElement&&z.rootPortalElement.remove(),z.batchExecution(()=>{z.rowIndexMapper.unregisterAll(),z.columnIndexMapper.unregisterAll(),le.getItems().forEach(e=>{let[,t]=e;t.destroy()}),le.clear(),z.runHooks("afterDestroy")},!0),A.Hooks.getSingleton().destroy(z),(0,u.objectEach)(z,(e,t,r)=>{var n;(0,i.isFunction)(e)?r[t]=(n=t,()=>{throw new Error(`The "${n}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(r[t]=null)}),z.isDestroyed=!0,K&&K.destroy(),K=null,q=null,ue=null,Q=null,z=null},this.getActiveEditor=function(){return Q.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return z.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return z.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return z.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return z.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return z.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return z.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return z.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return z.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return z.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return z.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return z.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return z.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return le.getItem((0,y.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:le.getId(e)},this.getInstance=function(){return z},this.addHook=function(e,t,r){A.Hooks.getSingleton().add(e,t,z,r)},this.hasHook=function(e){return A.Hooks.getSingleton().has(e,z)||A.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,r){A.Hooks.getSingleton().once(e,t,z,r)},this.removeHook=function(e,t){A.Hooks.getSingleton().remove(e,t,z)},this.runHooks=function(e,t,r,n,s,i,o){return A.Hooks.getSingleton().run(z,e,t,r,n,s,i,o)},this.getTranslatedPhrase=function(e,t){return(0,b.getTranslatedPhrase)(oe.language,e,t)},this.toHTML=()=>(0,g.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!ee;this.stylesHandler.useTheme(e);const r=this.stylesHandler.getThemeName();t||(z.render(),z.scrollViewportTo(0,0),(0,k.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),r&&(0,s.addClass)(this.rootContainer,r))),this.runHooks("afterSetTheme",r,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return Q};const ye=(0,L.createShortcutManager)({handleEvent:()=>z.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||z.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&ye.releasePressedKeys()}),this.getShortcutManager=function(){return ye},this.getFocusManager=function(){return Z},(0,f.getPluginsNames)().forEach(e=>{const t=(0,f.getPlugin)(e);le.addItem(e,new t(this))}),(0,D.registerAllShortcutContexts)(z),ye.setActiveContextName("grid"),A.Hooks.getSingleton().run(z,"construct")},r(52490),r(99356),r(89083),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(29810),r(31143),r(940),r(38950);var s=r(6083),i=r(99242),o=r(27727),a=r(55924),l=n(r(55237)),h=n(r(46427)),u=r(21389),c=r(7103),d=r(40785),g=r(43447),p=r(55585),f=r(40038),m=r(38594),E=r(69264),w=r(39705),y=r(82887),C=r(4407),v=n(r(25043)),S=n(r(78310)),R=r(97934),T=r(1531),N=r(55941),_=r(74216),A=r(17715),b=r(73364),M=r(92486),I=r(9671),O=r(57971),x=r(86508),P=r(79300),L=r(77510),D=r(88453),k=r(95776),H=r(98442),F=r(96357),U=r(18639),V=r(46963),B=r(49865);let W=null;const Y=new Map;new Set},85335:(e,t,r)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],r=[];return(0,n.arrayEach)(e,e=>{const n=Math.min(e.startRow,e.endRow),i=Math.max(e.startRow,e.endRow);(0,s.rangeEach)(n,i,e=>{-1===t.indexOf(e)&&t.push(e)});const o=Math.min(e.startCol,e.endCol),a=Math.max(e.startCol,e.endCol);(0,s.rangeEach)(o,a,e=>{-1===r.indexOf(e)&&r.push(e)})}),{rows:t,columns:r}},r(52490),r(99356);var n=r(40785),s=r(4407);function i(e,t,r){o(e,t),t.set(e,r)}function o(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(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakSet;function E(e,t){return Math.min(t,Math.max(e+a(p,this).call(this)-1,e))}function w(e,t){return Math.min(t,Math.max(e+a(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:r,rowsLimit:n,columnsLimit:s,countColumnHeaders:a}=e;var h,E;o(h=this,E=m),E.add(h),i(this,u,void 0),i(this,c,void 0),i(this,d,void 0),i(this,g,void 0),i(this,p,void 0),i(this,f,void 0),l(c,this,t),l(d,this,r),l(g,this,n),l(p,this,s),l(f,this,a)}setSelectedRange(e){l(u,this,e)}getCellsRange(){if(0===a(c,this).call(this)||0===a(d,this).call(this))return null;const{row:e,col:t}=a(u,this).getTopStartCorner(),{row:r,col:n}=a(u,this).getBottomEndCorner(),s=h(m,this,w).call(this,e,r),i=h(m,this,E).call(this,t,n);return{isRangeTrimmed:r!==s||n!==i,startRow:e,startCol:t,endRow:s,endCol:i}}getMostBottomColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(f,this).call(this))return null;const{col:e}=a(u,this).getTopStartCorner(),{col:t}=a(u,this).getBottomEndCorner(),r=h(m,this,E).call(this,e,t);return{isRangeTrimmed:t!==r,startRow:-1,startCol:e,endRow:-1,endCol:r}}getAllColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(f,this).call(this))return null;const{col:e}=a(u,this).getTopStartCorner(),{col:t}=a(u,this).getBottomEndCorner(),r=h(m,this,E).call(this,e,t);return{isRangeTrimmed:t!==r,startRow:-a(f,this).call(this),startCol:e,endRow:-1,endCol:r}}}},85364:(e,t,r)=>{"use strict";t.__esModule=!0,t.textRenderer=a;var n=r(73488),s=r(6083),i=r(27727);const o=t.RENDERER_TYPE="text";function a(e,t,r,o,a,l,h){n.baseRenderer.apply(this,[e,t,r,o,a,l,h]);let u=l;!u&&h.placeholder&&(u=h.placeholder),u=(0,i.stringify)(u),h.trimWhitespace&&(u=u.trim()),(0,s.fastInnerText)(t,u)}a.RENDERER_TYPE=o},85555:()=>{},85689:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(71268);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DateEditor=n.DateEditor},85742:()=>{},85979:(e,t,r)=>{"use strict";var n=r(72820),s=r(94178),i=r(70792),o=r(90501),a=r(21177),l=r(99793),h=r(14483),u=r(69019),c=r(53001),d=TypeError,g=c(function(){[].keys().reduce(function(){},void 0)}),p=!g&&h("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:g||p},{reduce:function(e){o(this);try{i(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(p)return u(p,this,t?[e]:[e,r]);var n=a(this),h=0;if(s(n,function(n){t?(t=!1,r=n):r=e(r,n,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return r}})},85988:(e,t,r)=>{"use strict";var n=r(70792),s=r(49887);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},85994:(e,t,r)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r,s){const i=r.length?r[0]:void 0;return[...e.slice(0,i),...r.map((e,t)=>(0,n.isFunction)(s)?s(e,t):s),...void 0===i?[]:e.slice(i)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,(e,r)=>!1===t.includes(r))},r(34478),r(940);var n=r(99242),s=r(40785)},86121:(e,t,r)=>{"use strict";var n=r(94266),s=r(92853),i=r(60606),o=function(e){return s.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},86388:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(940),r(33098),r(81056);var s=n(r(24300)),i=r(21389),o=r(42685),a=n(r(50496)),l=r(11278),h=r(36327),u=r(13283),c=r(27727),d=r(1531);const g="ConditionCollection.filteringStates";class p{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,s.default)(this,"hot",void 0),(0,s.default)(this,"isMapRegistrable",void 0),(0,s.default)(this,"filteringStates",new d.LinkedPhysicalIndexToValueMap),this.hot=e,this.isMapRegistrable=t,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(g,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}isEmpty(){return 0===this.getFilteredColumns().length}isMatch(e,t){var r;const n=this.filteringStates.getValueAtIndex(t),s=null!==(r=null==n?void 0:n.conditions)&&void 0!==r?r:[],i=null==n?void 0:n.operation;return this.isMatchInConditions(s,e,i)}isMatchInConditions(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID;return!e.length||(0,u.getOperationFunc)(r)(e,t)}addCondition(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID,n=arguments.length>3?arguments[3]:void 0;const s=this.hot.getCellMeta(0,e).locale,i=t.args.map(e=>"string"==typeof e?e.toLocaleLowerCase(s):e),a=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);const d=this.getOperation(e);if(d){if(d!==r)throw Error(o.toSingleLine`The column of index ${e} has been already applied with a \`${d}\`\x20
286
+ fix your setup.`}get(e,t){var r;return!!this.mergedCellsMatrix.has(e)&&(null!==(r=this.mergedCellsMatrix.get(e).get(t))&&void 0!==r&&r)}getByRange(e){const{row:t,col:r}=e.getTopStartCorner(),{row:n,col:s}=e.getBottomEndCorner(),i=this.mergedCells.length;let o=!1;for(let e=0;e<i;e++){const i=this.mergedCells[e],{row:a,col:l,rowspan:h,colspan:u}=i;if(a>=t&&a+h-1<=n&&l>=r&&l+u-1<=s){o=i;break}}return o}filterOverlappingMergeCells(e){const t=new Set;this.mergedCells.forEach(e=>{const{row:r,col:n,colspan:s,rowspan:i}=e;for(let e=r;e<r+i;e++)for(let r=n;r<n+s;r++)t.add(`r${e},c${r}`)});return e.filter(e=>{const{row:r,col:n,colspan:s,rowspan:i}=e,o=new Set;let l=!1;for(let h=r;h<r+i;h++){for(let r=n;r<n+s;r++){const n=`r${h},c${r}`;if(t.has(n)){(0,a.warn)(g.IS_OVERLAPPING_WARNING(e)),l=!0;break}o.add(n)}if(l)break}return l||t.add(...o),!l})}getWithinRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{row:r,col:n}=e.getTopStartCorner(),{row:s,col:i}=e.getBottomEndCorner(),o=[];for(let e=r;e<=s;e++)for(let r=n;r<=i;r++){const n=this.get(e,r);n&&(t||!t&&n.row===e&&n.col===r)&&o.push(n)}return o}add(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=e.row,n=e.col,s=e.rowspan,o=e.colspan,l=new i.default(r,n,s,o,this.hot._createCellCoords,this.hot._createCellRange),h=this.get(r,n),u=!t&&this.isOverlapping(l);return h||u?(u&&(0,a.warn)(g.IS_OVERLAPPING_WARNING(l)),!1):(this.hot&&l.normalize(this.hot),this.mergedCells.push(l),c(d,this,f).call(this,l),l)}remove(e,t){const r=this.get(e,t),n=r?this.mergedCells.indexOf(r):-1;return!(!r||-1===n)&&(this.mergedCells.splice(n,1),c(d,this,m).call(this,r),r)}clear(){(0,l.arrayEach)(this.mergedCells,e=>{let{row:t,col:r,rowspan:n,colspan:s}=e;(0,o.rangeEach)(t,t+n,e=>{(0,o.rangeEach)(r,r+s,t=>{const r=this.hot.getCell(e,t);r&&(r.removeAttribute("rowspan"),r.removeAttribute("colspan"),r.style.display="")})})}),this.mergedCells.length=0,this.mergedCellsMatrix=new Map}isOverlapping(e){const t=e.getRange();for(let e=0;e<this.mergedCells.length;e++){if(this.mergedCells[e].getRange().overlaps(t))return!0}return!1}isFirstRenderableMergedCell(e,t){const r=this.get(e,t);if(!r)return!1;const{row:n,col:s,rowspan:i,colspan:a}=r,l=this.hot.view.getActiveOverlayName(),h=["top","top_inline_start_corner"].includes(l)?0:this.hot.getFirstRenderedVisibleRow(),u=["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(l)?0:this.hot.getFirstRenderedVisibleColumn(),c=(0,o.clamp)(h,n,n+i-1),d=(0,o.clamp)(u,s,s+a-1);return this.hot.rowIndexMapper.getNearestNotHiddenIndex(c,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(d,1)===t}getFirstRenderableCoords(e,t){const r=this.get(e,t);if(!r||this.isFirstRenderableMergedCell(e,t))return this.hot._createCellCoords(e,t);const n=this.hot.rowIndexMapper.getNearestNotHiddenIndex(r.row,1),s=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r.col,1);return this.hot._createCellCoords(n,s)}getStartMostColumnIndex(e,t){const r=c(d,this,p).call(this,e,"col",-1);let n=t;for(let e=0;e<r.length;e++)if(r[e]<=t){n=r[e];break}return n}getEndMostColumnIndex(e,t){const r=c(d,this,p).call(this,e,"col",1);let n=t;for(let e=0;e<r.length;e++)if(r[e]>=t){n=r[e];break}return n}getTopMostRowIndex(e,t){const r=c(d,this,p).call(this,e,"row",-1);let n=t;for(let e=0;e<r.length;e++)if(r[e]<=t){n=r[e];break}return n}getBottomMostRowIndex(e,t){const r=c(d,this,p).call(this,e,"row",1);let n=t;for(let e=0;e<r.length;e++)if(r[e]>=t){n=r[e];break}return n}shiftCollections(e,t,r){const n=[0,0];switch(e){case"right":n[0]+=r;break;case"left":n[0]-=r;break;case"down":n[1]+=r;break;case"up":n[1]-=r}const s=[];this.mergedCells.forEach(e=>{e.shift(n,t),e.removed&&s.push(e)}),s.forEach(e=>{this.mergedCells.splice(this.mergedCells.indexOf(e),1)}),this.mergedCellsMatrix.clear(),this.mergedCells.forEach(e=>{c(d,this,f).call(this,e)})}}function p(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const n=new Map,s=1===r?e.getTopStartCorner():e.getBottomEndCorner(),i=1===r?e.getBottomEndCorner():e.getTopStartCorner();for(let e=s.row;1===r?e<=i.row:e>=i.row;e+=r)for(let o=s.col;1===r?o<=i.col:o>=i.col;o+=r){const s="row"===t?e:o,i=this.get(e,o);let a=s;i&&(a=1===r?i[t]+i[`${t}span`]-1:i[t]),n.has(s)||n.set(s,new Set),n.get(s).add(a)}return Array.from(new Set(Array.from(n.entries()).filter(e=>{let[,t]=e;return 1===t.size}).flatMap(e=>{let[,t]=e;return Array.from(t)})))}function f(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let r=e.col;r<e.col+e.colspan;r++)this.mergedCellsMatrix.has(t)||this.mergedCellsMatrix.set(t,new Map),this.mergedCellsMatrix.get(t).set(r,e)}function m(e){for(let t=e.row;t<e.row+e.rowspan;t++)for(let r=e.col;r<e.col+e.colspan;r++)this.mergedCellsMatrix.get(t).delete(r)}t.default=g},81910:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(53383),o=n(r(40172)),a=n(r(74629));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="bindRowsWithHeaders",u=t.PLUGIN_PRIORITY=210,c=new Map([["loose",o.default],["strict",a.default]]);var d=new WeakSet;class g extends i.BasePlugin{constructor(){super(...arguments),l(this,d),(0,s.default)(this,"headerIndexes",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){var e;if(this.enabled)return;const t=null!==(e=c.get(this.getSetting()))&&void 0!==e?e:c.get("loose");this.headerIndexes=this.hot.rowIndexMapper.registerMap("bindRowsWithHeaders",new t),this.addHook("modifyRowHeader",e=>function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(d,this,p).call(this,e)),super.enablePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("bindRowsWithHeaders"),super.disablePlugin()}destroy(){super.destroy()}}function p(e){return this.headerIndexes.getValueAtIndex(this.hot.toPhysicalRow(e))}t.BindRowsWithHeaders=g},81953:(e,t,r)=>{"use strict";t.__esModule=!0,t.noncontiguousScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e),s={row:r.getComputedRowTarget(t),col:r.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:r}=s;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(62147)},81979:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},82175:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=r(16964);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var i=r(55316);t.BottomOverlay=i.BottomOverlay;var o=r(86720);t.InlineStartOverlay=o.InlineStartOverlay;var a=r(37131);t.Overlay=a.Overlay;var l=r(52732);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=r(16076);t.TopOverlay=h.TopOverlay;var u=r(42210);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))})},82228:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(93710);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ColumnSummary=n.ColumnSummary},82264:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91698);const s=t.EDITOR_TYPE="numeric";class i extends n.TextEditor{static get EDITOR_TYPE(){return s}}t.NumericEditor=i},82328:(e,t,r)=>{"use strict";r(49463)("flat")},82497:(e,t,r)=>{"use strict";var n=r(84677);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},82515:(e,t,r)=>{"use strict";var n=r(72820),s=r(19098),i=r(70792),o=r(66431),a=r(91952),l=r(35738),h=r(49463),u=Array,c=s(l("Array","sort"));n({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&i(e);var t=o(this),r=a(u,t);return c(r,e)}}),h("toSorted")},82683:(e,t,r)=>{"use strict";var n=r(53872),s=Object;e.exports=function(e){return s(n(e))}},82887:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.equalsIgnoreCase=function(){const e=[];for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];let s=r.length;for(;s;){s-=1;const t=(0,i.stringify)(r[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=o,t.stripTags=function(e){return o(`${e}`,{ALLOWED_TAGS:[]})},t.substitute=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return`${e}`.replace(/(?:\\)?\[([^[\]]+)]/g,(e,r)=>"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[r]?"":t[r])},t.toUpperCaseFirst=function(e){return e[0].toUpperCase()+e.substr(1)},r(99356);var s=n(r(32457)),i=r(27727);function o(e,t){return s.default.sanitize(e,t)}},82973:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300));t.AutoPageSizeStrategy=class{constructor(){(0,s.default)(this,"pages",[])}calculate(e){let{itemsSizeProvider:t,viewportSizeProvider:r}=e;const n=t(),s=r(),i=[];let o=0,a=1,l=0;for(let e=0;e<n.length;e++){const t=n[e];l>0&&a+t>=s&&(i.push({startIndex:o,endIndex:e-1,pageSize:l}),o=e,a=1,l=0),a+=t,l+=1}i.push({startIndex:o,endIndex:Math.max(0,n.length-1),pageSize:l}),this.pages=i}getTotalPages(){return this.pages.length}getState(e){if(!((e-=1)<0||e>=this.getTotalPages()))return this.pages[e]}}},83247:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(18689);t.valueSetter=n.valueSetter},83252:()=>{},83276:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(46830)),i=r(6083);class o extends s.default{build(){super.build(),(0,i.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=o},83367:()=>{},83434:(e,t,r)=>{"use strict";t.__esModule=!0,t.rootComparator=function(e,t){return function(r,s){const[,...i]=r,[,...o]=s;return function(r){const s=e[r],a=t[r],l=i[r],h=o[r],u=a.columnSorting;return(u.compareFunctionFactory?u.compareFunctionFactory:(0,n.getCompareFunctionFactory)(a.type))(s,a,u)(l,h)}(0)}};var n=r(2520)},83788:()=>{},83847:(e,t,r)=>{"use strict";t.__esModule=!0,t.autocompleteValidator=i;var n=r(21389);const s=t.VALIDATOR_TYPE="autocomplete";function i(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):this.strict&&this.source?"function"==typeof this.source?this.source(r,o(r,t)):o(r,t)(this.source):t(!0)}function o(e,t){const r=e;return function(e){let s=!1;for(let t=0,i=e.length;t<i;t++)if((0,n.isObjectEqual)(r,e[t])){s=!0;break}t(s)}}i.VALIDATOR_TYPE=s},83995:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,n=parseInt(e.getSettings().fixedColumnsStart,10),s=e.getSelectedRangeActive().highlight.row,i=r.getNearestNotHiddenIndex(n,1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(s,i)),t.markEndSource()}}},84055:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(40393);t.valueSetter=n.valueSetter},84101:()=>{},84111:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(38388),o=r(27916);t.OrderView=class{constructor(e,t){(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"nodesPool",void 0),(0,s.default)(this,"sizeSet",new i.ViewSizeSet),(0,s.default)(this,"collectedNodes",[]),(0,s.default)(this,"viewDiffer",new o.ViewDiffer(this.sizeSet)),(0,s.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[r,n,s,i]=e,o=this.nodesPool(n);switch(this.collectedNodes.push(o),r){case"prepend":t.insertBefore(o,t.firstChild);break;case"append":t.appendChild(o);break;case"insert_before":t.insertBefore(o,this.nodesPool(s)),t.removeChild(this.nodesPool(i));break;case"replace":t.replaceChild(o,this.nodesPool(s));break;case"remove":t.removeChild(o)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},84440:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(95887);t.CELL_TYPE=n.CELL_TYPE,t.NumericCellType=n.NumericCellType},84677:(e,t,r)=>{"use strict";var n=r(47057),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},84786:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(30582);t.RowHeadersRenderer=n.RowHeadersRenderer;var s=r(93622);t.ColumnHeadersRenderer=s.ColumnHeadersRenderer;var i=r(18101);t.ColGroupRenderer=i.ColGroupRenderer;var o=r(67145);t.RowsRenderer=o.RowsRenderer;var a=r(66635);t.CellsRenderer=a.CellsRenderer;var l=r(918);t.TableRenderer=l.TableRenderer;t.Renderer=class{constructor(){let{TABLE:e,THEAD:t,COLGROUP:r,TBODY:h,rowUtils:u,columnUtils:c,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 n.RowHeadersRenderer,columnHeaders:new s.ColumnHeadersRenderer(t),colGroup:new i.ColGroupRenderer(r),rows:new o.RowsRenderer(h),cells:new a.CellsRenderer}),this.renderer.setAxisUtils(u,c)}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()}}},84888:()=>{},85158:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return l()},t.registerPhraseFormatter=t.register=h;var s=r(55585),i=n(r(97870)),o=n(r(50231));const{register:a,getValues:l}=(0,s.staticRegister)("phraseFormatters");function h(e,t){a(e,t)}h("pluralize",i.default),h("substitute",o.default)},85190:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(63301),s=r(99544),i=r(51453);class o extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,i.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(r,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,i.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=o},85219:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.default=function(e,t){var r,n,G=this;let j=arguments.length>2&&void 0!==arguments[2]&&arguments[2],z=this;const $=new h.default(z);let K,X,q,Q,Z,J,ee=!0;const te={...t.initialState,...t};(0,N.hasValidParameter)(j)&&(0,N.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootGridElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,N.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,N.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootGridElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,["ht-wrapper","handsontable"]),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),(0,s.addClass)(this.rootGridElement,"ht-grid"),this.rootGridElement.appendChild(this.rootElement),this.rootWrapperElement.appendChild(this.rootGridElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const re=null!==(r=null==te?void 0:te.layoutDirection)&&void 0!==r?r:"inherit",ne=["rtl","ltr"].includes(re)?re:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",ne),null===(n=this.rootWrapperElement)||void 0===n||n.setAttribute("dir",ne),this.isRtl=function(){return"rtl"===ne},this.isLtr=function(){return!z.isRtl()},this.getDirectionFactor=function(){return z.isLtr()?1:-1},this.stylesHandler=new H.StylesHandler({rootElement:z.rootElement,rootDocument:z.rootDocument,onThemeChange:e=>{(0,N.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),e&&((0,s.addClass)(this.rootWrapperElement,e),(0,s.addClass)(this.rootPortalElement,e),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,F.warn)(`The "${e}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`)))}}),te.language=(0,b.getValidLanguageCode)(te.language);const se=Object.fromEntries(Object.entries(te).filter(e=>{let[t]=e;return!(A.Hooks.getSingleton().isRegistered(t)||A.Hooks.getSingleton().isDeprecated(t))})),ie=new O.MetaManager(z,se,[O.DynamicCellMetaMod,O.ExtendMetaPropertiesMod]),oe=ie.getTableMeta(),ae=ie.getGlobalMeta(),le=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),this.guid=`ht_${(0,y.randomString)()}`,Y.set(this.guid,this),this.columnIndexMapper=new T.IndexMapper,this.rowIndexMapper=new T.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{z.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{z.runHooks("afterRowSequenceChange",e)}),$.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{z.runHooks("beforeCompositionStart",e)}),X=new S.default(z);const he=(0,p.staticRegister)(this.guid);he.register("cellRangeMapper",new U.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ue=new I.Selection(oe,{rowIndexMapper:z.rowIndexMapper,columnIndexMapper:z.columnIndexMapper,countCols:()=>z.countCols(),countRows:()=>z.countRows(),propToCol:e=>K.propToCol(e),isEditorOpened:()=>!!z.getActiveEditor()&&z.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return G.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return G.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>z.getShortcutManager(),createCellCoords:(e,t)=>z._createCellCoords(e,t),createCellRange:(e,t,r)=>z._createCellRange(e,t,r),visualToRenderableCoords:e=>{const{row:t,col:r}=e;return z._createCellCoords(t>=0?z.rowIndexMapper.getRenderableFromVisualIndex(t):t,r>=0?z.columnIndexMapper.getRenderableFromVisualIndex(r):r)},renderableToVisualCoords:e=>{const{row:t,col:r}=e;return z._createCellCoords(t>=0?z.rowIndexMapper.getVisualFromRenderableIndex(t):t,r>=0?z.columnIndexMapper.getVisualFromRenderableIndex(r):r)},findFirstNonHiddenRenderableRow:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),i=z.rowIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>s||-1===r&&i<n?null:i>=0?z.rowIndexMapper.getRenderableFromVisualIndex(i):i},findFirstNonHiddenRenderableColumn:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),i=z.columnIndexMapper.getNearestNotHiddenIndex(e,r);return null===i||1===r&&i>s||-1===r&&i<n?null:i>=0?z.columnIndexMapper.getRenderableFromVisualIndex(i):i},isDisabledCellSelection:(e,t)=>e<0||t<0?z.getSettings().disableVisualSelection:z.getCellMeta(e,t).disableVisualSelection});this.selection=ue;const ce=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function de(e,t){const r="className"===e?z.rootElement:z.table;if(ee)(0,s.addClass)(r,t);else{let n=[],i=[];ae[e]&&(n=Array.isArray(ae[e])?ae[e]:(0,d.stringToArray)(ae[e])),t&&(i=Array.isArray(t)?t:(0,d.stringToArray)(t));const o=(0,d.getDifferenceOfArrays)(n,i),a=(0,d.getDifferenceOfArrays)(i,n);o.length&&(0,s.removeClass)(r,o),a.length&&(0,s.addClass)(r,a)}ae[e]=t}function ge(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function pe(e,t,r){if(!e.length)return void r();const n=z.getActiveEditor(),s=new ge;let i=!0;s.onQueueEmpty=()=>{n&&i&&n.cancelChanges(),r()};for(let r=e.length-1;r>=0;r--){const[n,o,,a]=e[r],l=K.propToCol(o);let h;h=Number.isInteger(l)?z.getCellMeta(n,l):{...Object.getPrototypeOf(oe),...oe},z.getCellValidator(h)&&(s.addValidatorToQueue(),z.validateCell(a,h,function(t,r){return function(n){if("boolean"!=typeof n)throw new Error("Validation error: result is not boolean");!1===n&&!1===r.allowInvalid&&(i=!1,e.splice(t,1),r.valid=!0),s.removeValidatorFormQueue()}}(r,h),t))}s.checkIfQueueIsEmpty()}function fe(e,t){for(let t=e.length-1;t>=0;t--){let r=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(oe.allowInsertRow)for(;e[t][0]>z.countRows()-1;){const{delta:e}=K.createRow(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}if("array"===z.dataType&&(!oe.columns||0===oe.columns.length)&&oe.allowInsertColumn)for(;K.propToCol(e[t][1])>z.countCols()-1;){const{delta:e}=K.createCol(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}r||K.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){q.adjustRowsAndCols(),z.runHooks("beforeChangeRender",e,t),Q.closeEditor(),z.view.adjustElementsSize(),z.render(),Q.prepareEditor(),z.runHooks("afterChange",e,t||"edit");const r=z.getActiveEditor();r&&(0,o.isDefined)(r.refreshValue)&&r.refreshValue()}else z.render()}function me(e,t,r){return Array.isArray(e)?e:[[e,t,r]]}function Ee(e,t){const r=z.runHooks("beforeChange",e,t||"edit"),n=e.filter(e=>null!==e);var s;if(!1===r||0===n.length)return null===(s=z.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){const[t,r,,s]=n[e],i=K.propToCol(r);let o;o=Number.isInteger(i)?z.getCellMeta(t,i):{...Object.getPrototypeOf(oe),...oe},n[e][3]=(0,B.getValueSetterValue)(s,o)}return n}this.columnIndexMapper.addLocalHook("cacheUpdated",ce),this.rowIndexMapper.addLocalHook("cacheUpdated",ce),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const r=(0,u.createObjectPropListener)(!1),n=this.selection.getSelectedRange(),{from:i,to:o}=n.current(),a=n.size()-1;this.runHooks("afterSelection",i.row,i.col,o.row,o.col,r,a),this.runHooks("afterSelectionByProp",i.row,z.colToProp(i.col),o.row,z.colToProp(o.col),r,a),t&&(!r.isTouched()||r.isTouched()&&!r.value)&&J.scrollTo(e);const l=ue.isSelectedByRowHeader(),h=ue.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ue.getSelectionSource())||Q.closeEditor(null),"refresh"!==ue.getSelectionSource()&&(z.view.render(),Q.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,u.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&J.scrollTo(e),Q.closeEditor(),z.view.render(),Q.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:r,to:n}=e[t];this.runHooks("afterSelectionEnd",r.row,r.col,n.row,n.col,t),this.runHooks("afterSelectionEndByProp",r.row,z.colToProp(r.col),n.row,z.colToProp(n.col),t),"refresh"===ue.getSelectionSource()&&(z.view.render(),Q.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{Q.closeEditor(),z.view.render(),(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterSelectRows",...t)}).addLocalHook("beforeSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeSelectAll",...t)}).addLocalHook("afterSelectAll",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterSelectAll",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return G.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),q={alter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const i=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[r]=e,[n]=t;return r===n?0:r>n?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[r,n]=t;const s=e[e.length-1],[i,o]=s,a=i+o;if(r<=a){const e=Math.max(n-(a-r),0);s[1]+=e}else e.push([r,n]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=z.countSourceRows();if(oe.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=K.createRow(t,r,{source:n,mode:a});ue.shiftRows(z.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const u="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===u?z.countSourceCols():0;const{delta:c,startPhysicalIndex:g}=K.createCol(t,r,{source:n,mode:u});if(c){if(Array.isArray(oe.colHeaders)){const e=[z.toVisualColumn(g),0];e.length+=c,Array.prototype.splice.apply(oe.colHeaders,e)}ue.shiftColumns(z.toVisualColumn(g),c)}break;case"remove_row":const p=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const i=(0,o.isEmpty)(r)?z.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeRow(r,s,n))return;if(ue.isSelected()){const{row:e}=z.getSelectedRangeActive().highlight;e>=r&&e<=r+s-1&&Q.closeEditor(!0)}const a=z.countRows(),l=oe.fixedRowsTop;l>=i+1&&(oe.fixedRowsTop-=Math.min(s,l-i));const h=oe.fixedRowsBottom;if(h&&i>=a-h&&(oe.fixedRowsBottom-=Math.min(s,h)),0===a)ue.deselect();else if("ContextMenu.removeRow"===n){const e=ue.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ue.refresh()}else ue.shiftRows(r,-s);t+=s})};Array.isArray(t)?p(i(t)):p([[t,r]]);break;case"remove_col":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const i=(0,o.isEmpty)(r)?z.countCols()-1:Math.max(r-t,0);let a=z.toPhysicalColumn(i);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!K.removeCol(r,s,n))return;if(ue.isSelected()){const{col:e}=z.getSelectedRangeActive().highlight;e>=r&&e<=r+s-1&&Q.closeEditor(!0)}if(0===z.countCols())ue.deselect();else if("ContextMenu.removeColumn"===n){const e=ue.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ue.refresh()}else ue.shiftColumns(r,-s);const l=oe.fixedColumnsStart;l>=i+1&&(oe.fixedColumnsStart-=Math.min(s,l-i)),Array.isArray(oe.colHeaders)&&(void 0===a&&(a=-1),oe.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?f(i(t)):f([[t,r]]);break;default:throw new Error(`There is no such action "${e}"`)}s||q.adjustRowsAndCols(),z.view.adjustElementsSize(),z.view.render()},adjustRowsAndCols(){const e=oe.minRows,t=oe.minSpareRows,r=oe.minCols,n=oe.minSpareCols;if(e){const t=z.countRows();t<e&&K.createRow(t,e-t,{source:"auto"})}if(t){const e=z.countEmptyRows(!0);if(e<t){const r=t-e,n=Math.min(r,oe.maxRows-z.countSourceRows());K.createRow(z.countRows(),n,{source:"auto"})}}{let e;(r||n)&&(e=z.countEmptyCols(!0));let t=z.countCols();if(r&&!oe.columns&&t<r){const n=r-t;e+=n,K.createCol(t,n,{source:"auto"})}if(n&&!oe.columns&&"array"===z.dataType&&e<n){t=z.countCols();const r=n-e,s=Math.min(r,oe.maxCols-t);K.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,r,n,s){let i,o,a,l;const h=[],c={},g=[],p=e.row,f=e.col;if(o=t.length,0===o)return!1;let m=0,E=0;switch((0,u.isObject)(r)&&(m=r.col-f+1,E=r.row-p+1),s){case"shift_down":const s=(0,d.pivot)(t),y=s.length,C=Math.max(y,m),v=z.getData().slice(p),S=(0,d.pivot)(v).slice(f,f+C);for(a=0;a<C;a+=1)if(a<y){for(i=0,o=s[a].length;i<E-o;i+=1)s[a].push(s[a][i%o]);a<S.length?g.push(s[a].concat(S[a])):g.push(s[a].concat(new Array(v.length).fill(null)))}else g.push(s[a%y].concat(S[a]));z.populateFromArray(p,f,(0,d.pivot)(g));break;case"shift_right":const R=t.length,T=Math.max(R,E),N=z.getData().slice(p).map(e=>e.slice(f));for(i=0;i<T;i+=1)if(i<R){for(a=0,l=t[i].length;a<m-l;a+=1)t[i].push(t[i][a%l]);if(i<N.length)for(let e=0;e<N[i].length;e+=1)t[i].push(N[i][e]);else t[i].push(...new Array(N[0].length).fill(null))}else t.push(t[i%o].slice(0,T).concat(N[i]));z.populateFromArray(p,f,t);break;default:c.row=e.row,c.col=e.col;let _,A=0,b=0,M=!0;const I=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t[e%t.length];return null!==r?n[r%n.length]:n},O=t.length,x=r?r.row-e.row+1:0;for(o=r?x:Math.max(O,x),i=0;i<o&&!(r&&c.row>r.row&&x>O||!oe.allowInsertRow&&c.row>z.countRows()-1||c.row>=oe.maxRows);i++){const t=i-A,s=I(t).length,d=r?r.col-e.col+1:0;if(l=r?d:Math.max(s,d),c.col=e.col,_=z.getCellMeta(c.row,c.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!_.skipRowOnPaste){for(b=0,a=0;a<l;a++){var w;if(r&&c.col>r.col&&d>s||!oe.allowInsertColumn&&c.col>z.countCols()-1||c.col>=oe.maxCols)break;if(_=z.getCellMeta(c.row,c.col),("CopyPaste.paste"===n||"Autofill.fill"===n)&&_.skipColumnOnPaste){b+=1,c.col+=1,l+=1;continue}if(_.readOnly&&"UndoRedo.undo"!==n){c.col+=1;continue}const e=a-b,i=!!_.valueSetter;let o=I(t,e),g=null!==(w=z.getSourceDataAtCell(c.row,c.col))&&void 0!==w?w:null;if(null!==o&&"object"==typeof o)if(Array.isArray(o)&&null===g&&(g=[]),i||"object"==typeof g&&null!==g){if(null!==g){const e=(0,u.duckSchema)(Array.isArray(g)?g:g[0]||g),t=(0,u.duckSchema)(Array.isArray(o)?o:o[0]||o);i||(0,u.isObjectEqual)(e,t)||Array.isArray(e)&&Array.isArray(t)?o=(0,u.deepClone)(o):M=!1}}else M=!1;else i||null===g||"object"!=typeof g||(M=!1);M&&h.push([c.row,c.col,o]),M=!0,c.col+=1}c.row+=1}else A+=1,c.row+=1,o+=1}z.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.init=function(){X.setData(oe.data),z.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(z.rootElement,"mobile"),this.updateSettings(te,!0),this.view=new v.default(this),Q=l.default.getInstance(z,oe,ue),J=(0,x.createViewportScroller)(z),Z=new c.FocusManager(z),(0,N.isRootInstance)(this)&&((0,x.installFocusCatcher)(z),(0,V.install)(z.rootPortalElement),(0,o._injectProductInfo)(te.licenseKey,this.rootWrapperElement)),z.runHooks("init"),this.render(),ee&&null===z.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(z.rootElement,()=>{z.view._wt.wtOverlays.updateLastSpreaderSize(),z.view.adjustElementsSize(),z.render()}),"object"==typeof ee&&(z.runHooks("afterChange",ee[0],ee[1]),ee=!1),z.runHooks("afterInit")},this._createCellCoords=function(e,t){return z.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,r){return z.view._wt.createCellRange(e,t,r)},this.validateCell=function(e,t,r,n){let s=z.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void r(e);const n=t.visualCol,s=t.visualRow,i=z.getCell(s,n,!0);if(i&&"TH"!==i.nodeName){const e=z.rowIndexMapper.getRenderableFromVisualIndex(s),t=z.columnIndexMapper.getRenderableFromVisualIndex(n);z.view._wt.getSetting("cellRenderer",e,t,i)}r(e)}var l;(0,o.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,i.isFunction)(s)?(e=z.runHooks("beforeValidate",e,t.visualRow,t.prop,n),z._registerImmediate(()=>{s.call(t,e,r=>{z&&(r=z.runHooks("afterValidate",r,e,t.visualRow,t.prop,n),t.valid=r,a(r),z.runHooks("postAfterValidate",r,e,t.visualRow,t.prop,n))})})):z._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,r,n){const s=me(e,t,r),i=[];let o,a,l,h=n;for(o=0,a=s.length;o<a;o++){const[e,t,r]=s[o];if("object"!=typeof s[o])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof t)throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=t>=this.countCols()?t:K.colToProp(t),i.push([e,l,X.getAtCell(this.toPhysicalRow(e),t),r])}h||"object"!=typeof e||(h=t);const u=Ee(i,h);z.runHooks("afterSetDataAtCell",u,h),pe(u,h,()=>{fe(u,h)})},this.setDataAtRowProp=function(e,t,r,n){const s=me(e,t,r),i=[];let o,a,l=n;for(o=0,a=s.length;o<a;o++){const[e,t,r]=s[o];i.push([e,t,X.getAtCell(this.toPhysicalRow(e),t),r])}l||"object"!=typeof e||(l=t);const h=Ee(i,n);z.runHooks("afterSetDataAtRowProp",h,l),pe(h,l,()=>{fe(h,l)})},this.listen=function(){z&&!z.isListening()&&(Y.forEach(e=>{z!==e&&e.unlisten()}),W=z.guid,z.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(W=null,z.runHooks("afterUnlisten"))},this.isListening=function(){return W===z.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Q.closeEditor(e),z.view.render(),t&&ue.isSelected()&&Q.prepareEditor()},this.populateFromArray=function(e,t,r,n,s,i,o){if("object"!=typeof r||"object"!=typeof r[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof n?z._createCellCoords(n,s):null;return q.populateFromArray(z._createCellCoords(e,t),r,a,i,o)},this.spliceCol=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),i=3;i<n;i++)s[i-3]=arguments[i];return K.spliceCol(e,t,r,...s)},this.spliceRow=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),i=3;i<n;i++)s[i-3]=arguments[i];return K.spliceRow(e,t,r,...s)},this.getSelected=function(){if(ue.isSelected())return(0,d.arrayMap)(ue.getSelectedRange(),e=>{let{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedActive=function(){const e=this.getSelectedRangeActive();if(!e)return;const{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]},this.getSelectedRange=function(){if(ue.isSelected())return Array.from(ue.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRangeActive=function(){return ue.getActiveSelectedRange()},this.getActiveSelectionLayerIndex=function(){return ue.getActiveSelectionLayerIndex()},this.emptySelectedCells=function(e){if(!ue.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ue.getSelectedRange(),e=>{if(e.isSingleHeader())return;const r=e.getTopStartCorner(),n=e.getBottomEndCorner();(0,C.rangeEach)(r.row,n.row,e=>{(0,C.rangeEach)(r.col,n.col,r=>{this.getCellMeta(e,r).readOnly||t.push([e,r,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||z.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||z.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const r=e();return this.resumeExecution(t),r},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!z.view)return;const e=z.view,{width:t,height:r}=e.getLastSize(),{width:n,height:s}=z.rootElement.getBoundingClientRect(),i=n!==t||s!==r;!1===z.runHooks("beforeRefreshDimensions",{width:t,height:r},{width:n,height:s},i)||((i||e._wt.wtOverlays.scrollableElement===z.rootWindow)&&(e.setLastSize(n,s),e.adjustElementsSize(),z.render()),z.runHooks("afterRefreshDimensions",{width:t,height:r},{width:n,height:s},i))},this.updateData=function(e,t){(0,O.replaceData)(e,e=>{K=e},e=>{K=e,z.columnIndexMapper.fitToLength(this.getInitialColumnCount()),z.rowIndexMapper.fitToLength(this.countSourceRows()),q.adjustRowsAndCols(),ue.refresh()},{hotInstance:z,dataMap:K,dataSource:X,internalSource:"updateData",source:t,metaManager:ie,firstRun:ee})},this.loadData=function(e,t){(0,O.replaceData)(e,e=>{K=e},()=>{ie.clearCellsCache(),z.initIndexMappers(),q.adjustRowsAndCols(),ue.refresh(),ee&&(ee=[null,"loadData"])},{hotInstance:z,dataMap:K,dataSource:X,internalSource:"loadData",source:t,metaManager:ie,firstRun:ee})},this.getInitialColumnCount=function(){const e=oe.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,i.isFunction)(e))if("array"===z.dataType){const r=this.countSourceCols();for(let n=0;n<r;n+=1)e(n)&&(t+=1)}else"object"!==z.dataType&&"function"!==z.dataType||(t=K.colToPropCache.length);else if((0,o.isDefined)(oe.dataSchema)){const e=K.getSchema();t=Array.isArray(e)?e.length:(0,u.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,r,n){return(0,o.isUndefined)(e)?K.getAll():K.getRange(z._createCellCoords(e,t),z._createCellCoords(r,n),K.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,n){return K.getCopyableText(z._createCellCoords(e,t),z._createCellCoords(r,n))},this.getCopyableData=function(e,t){return K.getCopyable(e,K.colToProp(t))},this.getCopyableSourceData=function(e,t){return X.getCopyable(e,K.colToProp(t))},this.getSchema=function(){return K.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=(ee?z.loadData:z.updateData).bind(this);let n,s,a=!1;if((0,o.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,o.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,o.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(n in e)if("data"===n||"language"===n);else if("className"===n)de("className",e.className);else if("tableClassName"===n&&z.table)de("tableClassName",e.tableClassName),z.view._wt.wtOverlays.syncOverlayTableClassNames();else if(A.Hooks.getSingleton().isRegistered(n)||A.Hooks.getSingleton().isDeprecated(n)){const t=e[n];(0,i.isFunction)(t)?(A.Hooks.getSingleton().addAsFixed(n,t,z),oe[n]=t):Array.isArray(t)&&(A.Hooks.getSingleton().add(n,t,z),oe[n]=t)}else!t&&(0,u.hasOwnProperty)(e,n)&&(ae[n]=e[n]);if(t)z.useTheme(oe.themeName||(0,k.getThemeClassName)(z.rootContainer));else{const t=z.getCurrentThemeName();(0,u.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&z.useTheme(e.themeName)}(0,N.isRootInstance)(z)&&z.stylesHandler.isClassicTheme()&&(0,F.deprecatedWarn)("Handsontable classic theme is a legacy theme and will be removed in version 17.0. Please update your theme settings to ensure compatibility with future versions."),void 0===e.data&&void 0===oe.data?r(null,"updateSettings"):void 0!==e.data?r(e.data,"updateSettings"):void 0!==e.columns&&(K.createMap(),z.initIndexMappers()),!ee&&e.language&&function(e){const t=(0,M.normalizeLanguageCode)(e);(0,b.hasLanguageDictionary)(t)?(z.runHooks("beforeLanguageChange",t),ae.language=t,z.runHooks("afterLanguageChange",t)):(0,M.warnUserAboutLanguageRegistration)(e)}(e.language);const l=z.countCols(),h=oe.columns;if(h&&(0,i.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||ie.clearCache(),l>0)for(n=0,s=0;n<l;n++){if(h){const e=a?h(n):h[s];e&&ie.updateColumnMeta(s,e)}s+=1}(0,o.isDefined)(e.cell)&&(0,u.objectEach)(e.cell,e=>{z.setCellMetaObject(e.row,e.col,e)}),z.runHooks("afterCellMetaReset");let c=z.rootElement.style.height;if(""!==c&&(c=parseInt(z.rootElement.style.height,10)),t){z.rootElement.getAttribute("style")&&z.rootElement.setAttribute("data-initialstyle",z.rootElement.getAttribute("style"))}let d=e.height;if(void 0!==e.height)if((0,i.isFunction)(d)&&(d=d()),d=z.runHooks("beforeHeightChange",d),null===d){const e=z.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?z.rootElement.setAttribute("style",e):(z.rootElement.style.height="",z.rootElement.style.overflow="")}else void 0!==d&&(z.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,z.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,i.isFunction)(t)&&(t=t()),t=z.runHooks("beforeWidthChange",t),z.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}t||(z.view&&(z.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),z.view._wt.exportSettingsAsClassNames()),z.runHooks("afterUpdateSettings",e)),q.adjustRowsAndCols(),z.view&&!ee&&(z.render(),z.view._wt.wtOverlays.adjustElementsSize()),t||!z.view||""!==c&&""!==d&&void 0!==d||c===d||z.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=z.getSelectedRangeActive();if(oe.getValue){if((0,i.isFunction)(oe.getValue))return oe.getValue.call(z);if(e)return z.getData()[e.highlight.row][oe.getValue]}else if(e)return z.getDataAtCell(e.highlight.row,e.highlight.col);return null},this.getSettings=function(){return oe},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,r,n,s){q.alter(e,t,r,n,s)},this.getCell=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;n=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===n||void 0===s||void 0===n?null:z.view.getCellAtCoords(z._createCellCoords(s,n),r)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:r,col:n}=t;let s=r,i=n;return r>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(r)),n>=0&&(i=this.columnIndexMapper.getVisualFromRenderableIndex(n)),z._createCellCoords(s,i)},this.colToProp=function(e){return K.colToProp(e)},this.propToCol=function(e){return K.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return K.get(e,K.colToProp(t))},this.getDataAtRowProp=function(e,t){return K.get(e,t)},this.getDataAtCol=function(e){const t=[],r=K.getRange(z._createCellCoords(0,e),z._createCellCoords(oe.data.length-1,e),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getDataAtProp=function(e){const t=[],r=K.getRange(z._createCellCoords(0,K.propToCol(e)),z._createCellCoords(oe.data.length-1,K.propToCol(e)),K.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getSourceData=function(e,t,r,n){let s;return s=void 0===e?X.getData():X.getByRange(z._createCellCoords(e,t),z._createCellCoords(r,n)),s},this.getSourceDataArray=function(e,t,r,n){let s;return s=void 0===e?X.getData(!0):X.getByRange(z._createCellCoords(e,t),z._createCellCoords(r,n),!0),s},this.getSourceDataAtCol=function(e){return X.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,r,n){const s=me(e,t,r),i=this.hasHook("afterSetSourceDataAtCell"),a=[],l=(e,t)=>{const r=this.toVisualRow(e),n=this.toVisualColumn(t);return Number.isInteger(n)?this.getCellMeta(r,n):{...Object.getPrototypeOf(oe),...oe}};i&&(0,d.arrayEach)(s,e=>{let[t,r,n]=e;const s=(0,B.getValueSetterValue)(n,l(t,r));a.push([t,r,X.getAtCell(t,r),s])}),(0,d.arrayEach)(s,e=>{let[t,r,n]=e;const s=(0,B.getValueSetterValue)(n,l(t,r));X.setAtCell(t,r,s)}),i&&this.runHooks("afterSetSourceDataAtCell",a,n),this.render();const h=z.getActiveEditor();h&&(0,o.isDefined)(h.refreshValue)&&h.refreshValue()},this.getSourceDataAtRow=function(e){return X.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return X.getAtCell(e,t)},this.getDataAtRow=function(e){return K.getRange(z._createCellCoords(e,0),z._createCellCoords(e,this.countCols()-1),K.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,r,n){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,r,n],[i,o]=s;let[,,a,l]=s,h=null,u=null;void 0===a&&(a=i),void 0===l&&(l=o);let c="mixed";return(0,C.rangeEach)(Math.max(Math.min(i,a),0),Math.max(i,a),e=>{let t=!0;return(0,C.rangeEach)(Math.max(Math.min(o,l),0),Math.max(o,l),r=>{const n=this.getCellMeta(e,r);return u=n.type,h?t=h===u:h=u,t}),c=t?u:"mixed",t}),c},this.removeCellMeta=function(e,t,r){const[n,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let i=ie.getCellMetaKeyValue(n,s,r);!1!==z.runHooks("beforeRemoveCellMeta",e,t,r,i)&&(ie.removeCellMeta(n,s,r),z.runHooks("afterRemoveCellMeta",e,t,r,i)),i=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];if(n.length>0&&!Array.isArray(n[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&ie.removeRow(this.toPhysicalRow(e),t),n.length>0&&(0,d.arrayEach)(n.reverse(),t=>{ie.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,r)=>this.setCellMetaObject(e,r,t))}),z.render()},this.setCellMetaObject=function(e,t,r){"object"==typeof r&&(0,u.objectEach)(r,(r,n)=>{this.setCellMeta(e,t,n,r)})},this.setCellMeta=function(e,t,r,n){if(!1===z.runHooks("beforeSetCellMeta",e,t,r,n))return;let s=e,i=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(i=this.toPhysicalColumn(t)),ie.setCellMeta(s,i,r,n),z.runHooks("afterSetCellMeta",e,t,r,n)},this.getCellsMeta=function(){return ie.getCellsMeta()},this.getCellMeta=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},n=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===n&&(n=e),null===s&&(s=t),ie.getCellMeta(n,s,{visualRow:e,visualColumn:t,...r})},this.getColumnMeta=function(e){return ie.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return ie.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===z.dataType||oe.columns)},this.getCellRenderer=function(e,t){const r="number"==typeof e?z.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof r?(0,m.getRenderer)(r):(0,o.isUndefined)(r)?(0,m.getRenderer)("text"):r},this.getCellEditor=function(e,t){const r="number"==typeof e?z.getCellMeta(e,t).editor:e.editor;return"string"==typeof r?(0,E.getEditor)(r):(0,o.isUndefined)(r)?(0,E.getEditor)("text"):r},this.getCellValidator=function(e,t){const r="number"==typeof e?z.getCellMeta(e,t).validator:e.validator;return"string"==typeof r?(0,w.getValidator)(r):r},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,r){const n=new ge;e&&(n.onQueueEmpty=e);let s=z.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=z.countCols()-1;for(;e>=0;)void 0===r||-1!==r.indexOf(e)?(n.addValidatorToQueue(),z.validateCell(z.getDataAtCell(s,e),z.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(n.valid=!1),n.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}n.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=oe.rowHeaders,r=e;return void 0!==r&&(r=z.runHooks("modifyRowHeader",r)),void 0===r?(t=[],(0,C.rangeEach)(z.countRows()-1,e=>{t.push(z.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[r]?t=t[r]:(0,i.isFunction)(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!oe.rowHeaders},this.hasColHeaders=function(){if(void 0!==oe.colHeaders&&null!==oe.colHeaders)return!!oe.colHeaders;for(let e=0,t=z.countCols();e<t;e++)if(z.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=z.runHooks("modifyColHeader",e);if(void 0===r){const e=[],t=z.countCols();for(let r=0;r<t;r++)e.push(z.getColHeader(r));return e}let n=oe.colHeaders;const s=z.toPhysicalColumn(r),o=function(e){const t=[],r=z.countCols();let n=0;for(;n<r;n++)(0,i.isFunction)(oe.columns)&&oe.columns(n)&&t.push(n);return t[e]}(s);return!1===oe.colHeaders?n=null:oe.columns&&(0,i.isFunction)(oe.columns)&&oe.columns(o)&&oe.columns(o).title?n=oe.columns(o).title:oe.columns&&oe.columns[s]&&oe.columns[s].title?n=oe.columns[s].title:Array.isArray(oe.colHeaders)&&void 0!==oe.colHeaders[s]?n=oe.colHeaders[s]:(0,i.isFunction)(oe.colHeaders)?n=oe.colHeaders(s):oe.colHeaders&&"string"!=typeof oe.colHeaders&&"number"!=typeof oe.colHeaders&&(n=(0,R.spreadsheetColumnLabel)(r)),n=z.runHooks("modifyColumnHeaderValue",n,e,t),n},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=z.getCellMeta(0,e).width}if(void 0!==t&&t!==oe.width||(t=oe.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let r=z._getColWidthFromSettings(e);return r=z.runHooks("modifyColWidth",r,e,t),void 0===r&&(r=_.DEFAULT_COLUMN_WIDTH),r},this._getRowHeightFromSettings=function(e){const t=z.stylesHandler.getDefaultRowHeight();let r=oe.rowHeights;if(null!=r){switch(typeof r){case"object":r=r[e];break;case"function":r=r(e)}"string"==typeof r&&(r=parseInt(r,10))}return null!=r&&r<t?t:r},this.getRowHeight=function(e,t){let r=z._getRowHeightFromSettings(e);return r=z.runHooks("modifyRowHeight",r,e,t),r},this.countSourceRows=function(){return X.countRows()},this.countSourceCols=function(){return X.countFirstRowKeys()},this.countRows=function(){return K.getLength()},this.countCols=function(){const e=oe.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return z.view._wt.drawn?z.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return z.view._wt.drawn?z.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return z.view._wt.drawn?z.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return z.view._wt.drawn?z.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(z.countRows()-1,r=>{if(z.isEmptyRow(r))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(z.countCols()-1,r=>{if(z.isEmptyCol(r))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return oe.isEmptyRow.call(z,e)},this.isEmptyCol=function(e){return oe.isEmptyCol.call(z,e)},this.selectCell=function(e,t,r,n){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,o.isUndefined)(e)&&!(0,o.isUndefined)(t)&&this.selectCells([[e,t,r,n]],s,i)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&J.suspend();const r=ue.selectCells(e);return r&&t&&z.listen(),J.resume(),r},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ue.selectColumns(e,t,r)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ue.selectRows(e,t,r)},this.deselectCell=function(){ue.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;J.skipNextScrollCycle(),ue.selectAll(e,t,r)};const we=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var r;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(r=arguments[4])||void 0===r||r});const{row:n,col:s,considerHiddenIndexes:o}=null!=e?e:{};let a=n,l=s;if((0,i.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===o||o){const e=Number.isInteger(n)&&n>=0,t=Number.isInteger(s)&&s>=0,r=e?we(this.rowIndexMapper,n):void 0,i=t?we(this.columnIndexMapper,s):void 0;if(null===r||null===i)return!1;a=e?z.rowIndexMapper.getRenderableFromVisualIndex(r):n,l=t?z.columnIndexMapper.getRenderableFromVisualIndex(i):s}const h=Number.isInteger(a),u=Number.isInteger(l);let c=!1;return h&&a>=0&&u&&l>=0?c=z.view.scrollViewport(z._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(u&&l<0||!u)?c=z.view.scrollViewportVertically(a,e.verticalSnap):u&&l>=0&&(h&&a<0||!h)&&(c=z.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,i.isFunction)(t)&&(c?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),c},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,i.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeActive(),r=this.scrollViewportTo(t.toObject());return r?this.view.render():(0,i.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),r},this.destroy=function(){z._clearTimeouts(),z._clearImmediates(),z.view&&z.view.destroy(),X&&X.destroy(),X=null,(0,N.isRootInstance)(this)&&(0,V.uninstall)(),this.getShortcutManager().destroy(),he.clear(),ie.clearCache(),Y.delete(this.guid),$.destroy(),Q&&Q.destroy(),z.rootContainer&&(0,s.empty)(z.rootContainer),z.rootPortalElement&&z.rootPortalElement.remove(),z.batchExecution(()=>{z.rowIndexMapper.unregisterAll(),z.columnIndexMapper.unregisterAll(),le.getItems().forEach(e=>{let[,t]=e;t.destroy()}),le.clear(),z.runHooks("afterDestroy")},!0),A.Hooks.getSingleton().destroy(z),(0,u.objectEach)(z,(e,t,r)=>{var n;(0,i.isFunction)(e)?r[t]=(n=t,()=>{throw new Error(`The "${n}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(r[t]=null)}),z.isDestroyed=!0,K&&K.destroy(),K=null,q=null,ue=null,Q=null,z=null},this.getActiveEditor=function(){return Q.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return z.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return z.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return z.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return z.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return z.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return z.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return z.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return z.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return z.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return z.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return z.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return z.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return le.getItem((0,y.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:le.getId(e)},this.getInstance=function(){return z},this.addHook=function(e,t,r){A.Hooks.getSingleton().add(e,t,z,r)},this.hasHook=function(e){return A.Hooks.getSingleton().has(e,z)||A.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,r){A.Hooks.getSingleton().once(e,t,z,r)},this.removeHook=function(e,t){A.Hooks.getSingleton().remove(e,t,z)},this.runHooks=function(e,t,r,n,s,i,o){return A.Hooks.getSingleton().run(z,e,t,r,n,s,i,o)},this.getTranslatedPhrase=function(e,t){return(0,b.getTranslatedPhrase)(oe.language,e,t)},this.toHTML=()=>(0,g.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,g.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!ee;this.stylesHandler.useTheme(e);const r=this.stylesHandler.getThemeName();t||(z.render(),z.scrollViewportTo(0,0),(0,k.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),r&&(0,s.addClass)(this.rootContainer,r))),this.runHooks("afterSetTheme",r,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return Q};const ye=(0,L.createShortcutManager)({handleEvent:()=>z.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||z.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&ye.releasePressedKeys()}),this.getShortcutManager=function(){return ye},this.getFocusManager=function(){return Z},(0,f.getPluginsNames)().forEach(e=>{const t=(0,f.getPlugin)(e);le.addItem(e,new t(this))}),(0,D.registerAllShortcutContexts)(z),ye.setActiveContextName("grid"),A.Hooks.getSingleton().run(z,"construct")},r(52490),r(99356),r(89083),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(29810),r(31143),r(940),r(38950);var s=r(6083),i=r(99242),o=r(27727),a=r(55924),l=n(r(55237)),h=n(r(46427)),u=r(21389),c=r(7103),d=r(40785),g=r(43447),p=r(55585),f=r(40038),m=r(38594),E=r(69264),w=r(39705),y=r(82887),C=r(4407),v=n(r(25043)),S=n(r(78310)),R=r(97934),T=r(1531),N=r(55941),_=r(74216),A=r(17715),b=r(73364),M=r(92486),I=r(9671),O=r(57971),x=r(86508),P=r(79300),L=r(77510),D=r(88453),k=r(95776),H=r(98442),F=r(96357),U=r(18639),V=r(46963),B=r(49865);let W=null;const Y=new Map;new Set},85335:(e,t,r)=>{"use strict";t.__esModule=!0,t.normalizeRanges=function(e){const t=[],r=[];return(0,n.arrayEach)(e,e=>{const n=Math.min(e.startRow,e.endRow),i=Math.max(e.startRow,e.endRow);(0,s.rangeEach)(n,i,e=>{-1===t.indexOf(e)&&t.push(e)});const o=Math.min(e.startCol,e.endCol),a=Math.max(e.startCol,e.endCol);(0,s.rangeEach)(o,a,e=>{-1===r.indexOf(e)&&r.push(e)})}),{rows:t,columns:r}},r(52490),r(99356);var n=r(40785),s=r(4407);function i(e,t,r){o(e,t),t.set(e,r)}function o(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(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakSet;function E(e,t){return Math.min(t,Math.max(e+a(p,this).call(this)-1,e))}function w(e,t){return Math.min(t,Math.max(e+a(g,this).call(this)-1,e))}t.CopyableRangesFactory=class{constructor(e){let{countRows:t,countColumns:r,rowsLimit:n,columnsLimit:s,countColumnHeaders:a}=e;var h,E;o(h=this,E=m),E.add(h),i(this,u,void 0),i(this,c,void 0),i(this,d,void 0),i(this,g,void 0),i(this,p,void 0),i(this,f,void 0),l(c,this,t),l(d,this,r),l(g,this,n),l(p,this,s),l(f,this,a)}setSelectedRange(e){l(u,this,e)}getCellsRange(){if(0===a(c,this).call(this)||0===a(d,this).call(this))return null;const{row:e,col:t}=a(u,this).getTopStartCorner(),{row:r,col:n}=a(u,this).getBottomEndCorner(),s=h(m,this,w).call(this,e,r),i=h(m,this,E).call(this,t,n);return{isRangeTrimmed:r!==s||n!==i,startRow:e,startCol:t,endRow:s,endCol:i}}getMostBottomColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(f,this).call(this))return null;const{col:e}=a(u,this).getTopStartCorner(),{col:t}=a(u,this).getBottomEndCorner(),r=h(m,this,E).call(this,e,t);return{isRangeTrimmed:t!==r,startRow:-1,startCol:e,endRow:-1,endCol:r}}getAllColumnHeadersRange(){if(0===a(d,this).call(this)||0===a(f,this).call(this))return null;const{col:e}=a(u,this).getTopStartCorner(),{col:t}=a(u,this).getBottomEndCorner(),r=h(m,this,E).call(this,e,t);return{isRangeTrimmed:t!==r,startRow:-a(f,this).call(this),startCol:e,endRow:-1,endCol:r}}}},85364:(e,t,r)=>{"use strict";t.__esModule=!0,t.textRenderer=a;var n=r(73488),s=r(6083),i=r(27727);const o=t.RENDERER_TYPE="text";function a(e,t,r,o,a,l,h){n.baseRenderer.apply(this,[e,t,r,o,a,l,h]);let u=l;!u&&h.placeholder&&(u=h.placeholder),u=(0,i.stringify)(u),h.trimWhitespace&&(u=u.trim()),(0,s.fastInnerText)(t,u)}a.RENDERER_TYPE=o},85555:()=>{},85689:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(71268);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DateEditor=n.DateEditor},85742:()=>{},85979:(e,t,r)=>{"use strict";var n=r(72820),s=r(94178),i=r(70792),o=r(90501),a=r(21177),l=r(99793),h=r(14483),u=r(69019),c=r(53001),d=TypeError,g=c(function(){[].keys().reduce(function(){},void 0)}),p=!g&&h("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:g||p},{reduce:function(e){o(this);try{i(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(p)return u(p,this,t?[e]:[e,r]);var n=a(this),h=0;if(s(n,function(n){t?(t=!1,r=n):r=e(r,n,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return r}})},85988:(e,t,r)=>{"use strict";var n=r(70792),s=r(49887);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},85994:(e,t,r)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r,s){const i=r.length?r[0]:void 0;return[...e.slice(0,i),...r.map((e,t)=>(0,n.isFunction)(s)?s(e,t):s),...void 0===i?[]:e.slice(i)]},t.getListWithRemovedItems=function(e,t){return(0,s.arrayFilter)(e,(e,r)=>!1===t.includes(r))},r(34478),r(940);var n=r(99242),s=r(40785)},86121:(e,t,r)=>{"use strict";var n=r(94266),s=r(92853),i=r(60606),o=function(e){return s.slice(0,e.length)===e};e.exports=o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},86388:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(940),r(33098),r(81056);var s=n(r(24300)),i=r(21389),o=r(42685),a=n(r(50496)),l=r(11278),h=r(36327),u=r(13283),c=r(27727),d=r(1531);const g="ConditionCollection.filteringStates";class p{constructor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,s.default)(this,"hot",void 0),(0,s.default)(this,"isMapRegistrable",void 0),(0,s.default)(this,"filteringStates",new d.LinkedPhysicalIndexToValueMap),this.hot=e,this.isMapRegistrable=t,!0===this.isMapRegistrable?this.hot.columnIndexMapper.registerMap(g,this.filteringStates):this.filteringStates.init(this.hot.columnIndexMapper.getNumberOfIndexes())}isEmpty(){return 0===this.getFilteredColumns().length}isMatch(e,t){var r;const n=this.filteringStates.getValueAtIndex(t),s=null!==(r=null==n?void 0:n.conditions)&&void 0!==r?r:[],i=null==n?void 0:n.operation;return this.isMatchInConditions(s,e,i)}isMatchInConditions(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID;return!e.length||(0,u.getOperationFunc)(r)(e,t)}addCondition(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.OPERATION_ID,n=arguments.length>3?arguments[3]:void 0;const s=this.hot.getCellMeta(0,e).locale,i=t.args.map(e=>"string"==typeof e?e.toLocaleLowerCase(s):e),a=t.name||t.command.key;this.runLocalHooks("beforeAdd",e);const d=this.getOperation(e);if(d){if(d!==r)throw Error(o.toSingleLine`The column of index ${e} has been already applied with a \`${d}\`\x20
287
287
  filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
288
288
  Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
289
289
  use it consequently for a particular column).`)}else if((0,c.isUndefined)(u.operations[r]))throw new Error(o.toSingleLine`Unexpected operation named \`${r}\`. Possible ones are\x20