handsontable 16.1.0 → 16.1.1-next-895fbb8-20250923

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
29
- * Release date: 15/09/2025 (built at 15/09/2025 10:06:24)
28
+ * Version: 16.1.1-next-895fbb8-20250923
29
+ * Release date: 23/09/2025 (built at 23/09/2025 08:54:43)
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="15/09/2025 10:06:24",g.version="16.1.0",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),l=r(96357);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const h=t.PLUGIN_KEY="persistentState",u=t.PLUGIN_PRIORITY=0,c=new WeakSet;class d extends i.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(c.has(this.hot)||(c.add(this.hot),(0,l.deprecatedWarn)("The PersistentState plugin is deprecated and will be removed in version 17.0. Please update your settings to ensure compatibility with future versions.")),this.storage||(this.storage=new 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=d},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(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}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")}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=w(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="23/09/2025 08:54:43",g.version="16.1.1-next-895fbb8-20250923",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),l=r(96357);a.Hooks.getSingleton().register("persistentStateSave"),a.Hooks.getSingleton().register("persistentStateLoad"),a.Hooks.getSingleton().register("persistentStateReset");const h=t.PLUGIN_KEY="persistentState",u=t.PLUGIN_PRIORITY=0,c=new WeakSet;class d extends i.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"storage",void 0)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(c.has(this.hot)||(c.add(this.hot),(0,l.deprecatedWarn)("The PersistentState plugin is deprecated and will be removed in version 17.0. Please update your settings to ensure compatibility with future versions.")),this.storage||(this.storage=new 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=d},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(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}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")}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=w(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",()=>E(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 E(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 E(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 E(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 E(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 E(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 E(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 E(A,e,H).call(e,...r)}),this.addHook("afterSelection",()=>w(_,this).call(this)),this.addHook("afterSelectionFocusSet",()=>w(_,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 E(A,e,M).call(e,...r)}),this.addHook("afterGetColumnHeaderRenderers",e=>E(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 E(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 E(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 E(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 E(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 E(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 E(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 E(A,e,Y).call(e,...r)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",w(_,this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",w(_,this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();w(v,this).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=w(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";w(v,this).triggerColumnModification(r,t)}),!w(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";w(v,this).triggerColumnModification(e,r)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.removeLocalHook("cacheUpdated",w(_,this)),this.hot.columnIndexMapper.removeLocalHook("cacheUpdated",w(_,this)),this.clearColspans(),w(v,this).clear(),w(S,this).unsubscribe(),m(S,this,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return w(v,this)}getLayersCount(){return w(v,this).getLayersCount()}getHeaderSettings(e,t){return w(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=w(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=w(v,this).getHeaderSettings(t,e))&&void 0!==r?r:{};return s||n?"":this.hot.getColHeader(e,t)}destroy(){m(v,this,null),null!==w(S,this)&&(w(S,this).unsubscribe(),m(S,this,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return w(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=w(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=w(v,this).findLeftMostColumnIndex(a,l),p=w(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=w(v,this).getHeaderTreeNodeData(t,e);if(!n)return e;const{columnCursor:s,selectionType:i,selectionWidth:o}=r,{isRoot:a,colspan:l}=w(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=w(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()||!w(T,this)||!e)return;const t=this.hot.getSelectedRangeLast(),r=t.getTopStartCorner().col,n=t.getBottomEndCorner().col,{columnIndex:s,origColspan:i}=w(v,this).getHeaderTreeNodeData(w(R,this).row,w(R,this).col);if(t.setHighlight(w(R,this)),i>t.getWidth()||s<r||s+i-1>n){const e=w(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=w(v,this).findLeftMostColumnIndex(r.row,r.col),s=w(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(w(v,this).getLayersCount()>0){e.length=0;for(let t=0;t<w(v,this).getLayersCount();t++)e.push(this.headerRendererFactory(t))}}function V(e){const t=w(v,this).getLayersCount();let r=e.startColumn,n=!!t;for(let s=0;s<t;s++){const t=w(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?w(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=w(v,this).getHeaderTreeNodeData(r,t))&&void 0!==n?n:{label:""};return s}function Y(e,t){if(e<0)return this.hot.getCell(e,w(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,w=new WeakMap,E=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,w,null),l(this,E,[]),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(w,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)),u(E,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(E,this).includes(e)||c(E,this).push(e)})})}c(E,this).includes(c(w,this))||u(E,this,[c(w,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(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,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(E,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(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,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 w=t.PLUGIN_KEY="manualColumnMove",E=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 w}static get PLUGIN_PRIORITY(){return E}isEnabled(){return!!this.hot.getSettings()[w]}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()[w];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),w=Math.max(d.col,g.col);if(t.row<0&&t.col>=m&&t.col<=w){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,w)),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,E=this.getColumnsWidth(o,m-1)+(u?c:0)+g;f(R,this).setPosition(h,E),f(R,this).setSize(this.getColumnsWidth(m,w),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 w=r(79696);t.CONDITION_NOT_BETWEEN=w.CONDITION_NAME;var E=r(26241);t.CONDITION_BEGINS_WITH=E.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,w.CONDITION_NAME],[L]:[a.CONDITION_NAME,i.SEPARATOR,l.CONDITION_NAME,h.CONDITION_NAME,i.SEPARATOR,u.CONDITION_NAME,c.CONDITION_NAME,i.SEPARATOR,E.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 w(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,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===E&&(E=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 E},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=w,t.getWindowScrollTop=m,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let 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 w(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let E;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,w=new WeakMap,E=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,w,void 0),l(this,E,!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(w,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(w,this).left=`${e}px`,h(w,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(w,this).display="block",u(E,this,!1)}hide(){h(y,this).unobserve(),h(E,this)||(h(w,this).display="none"),u(E,this,!0)}isVisible(){return"block"===h(w,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(w,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=w(),U=g(),V=(e=>({loadLanguagesInNode:t=>E(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 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")}var E=new WeakSet;class y extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,E),(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=>w(E,this,C).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(E,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),w(E,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=>{w(E,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,w=null;switch(r){case"up":f="includesVertically",w=u-p+1;break;case"left":f="includesHorizontally",w=u-p+1;break;case"down":f="includesVertically",w=c+p-1;break;case"right":f="includesHorizontally",w=c+p-1}return(0,o.arrayEach)(n,e=>{e[f](w)&&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,w=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 w(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),w=n([].join),E=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),E&&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=w(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 w=t.PLUGIN_KEY="collapsibleColumns",E=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",v=w,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 w}static get PLUGIN_PRIORITY(){return E}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[w,...y]}isEnabled(){return!!this.hot.getSettings()[w]}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,E).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,w).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 w(e,t,r){if(r===this.pluginName)return;const n=this.getColumnWidth(t);return"number"==typeof n?n:e}function E(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),w=Math.min(parseInt(n+s-g/4,10),p-g-2*c);h[o]=`${m}px`,u[o]=`${w}px`;const E=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=`${E}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 w=u?a.getCell(this.wot.createCellCoords(s,i)):m,E=(0,n.offset)(m),y=u?(0,n.offset)(w):E,C=(0,n.offset)(a.TABLE),v=E.top,S=E.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)(w)-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)(w)-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?w.getBoundingClientRect().left:w.offsetLeft;let i=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=s+(0,n.outerWidth)(w)+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?w.getBoundingClientRect().top:w.offsetTop)+(0,n.outerHeight)(w)+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(w(e,t))}function m(e,t,r){return e.set(w(e,t),r),r}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")}var E=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=w(_,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,E,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),w(_,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&&w(_,this,A).call(this)===this.hot.countCols()&&w(_,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(E,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(E,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 w=new WeakSet;class E extends i.BasePlugin{constructor(){super(...arguments),d(this,w),(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(w,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(w,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(w,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(w,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(w,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(w,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=E},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"),w=TypeError,E=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))),!~E(n,"g")))throw new w("`.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),_=E(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:E(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 w=t.PLUGIN_KEY="hiddenColumns",E=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 w}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[w]}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";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)("15/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){w[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](w[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(E[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=E[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 w={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 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")}var E=new WeakSet;class y extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),m(this,E),(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=>w(E,this,C).call(this,e)).addLocalHook("listTabKeydown",e=>this.runLocalHooks("listTabKeydown",e)),this.hot.addHook("modifyFiltersMultiSelectValue",(e,t)=>w(E,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),w(E,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=>{w(E,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,w=null;switch(r){case"up":f="includesVertically",w=u-p+1;break;case"left":f="includesHorizontally",w=u-p+1;break;case"down":f="includesVertically",w=c+p-1;break;case"right":f="includesHorizontally",w=c+p-1}return(0,o.arrayEach)(n,e=>{e[f](w)&&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,w=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 w(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),w=n([].join),E=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),E&&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=w(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 w=t.PLUGIN_KEY="collapsibleColumns",E=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",v=w,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 w}static get PLUGIN_PRIORITY(){return E}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[w,...y]}isEnabled(){return!!this.hot.getSettings()[w]}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,E).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,w).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 w(e,t,r){if(r===this.pluginName)return;const n=this.getColumnWidth(t);return"number"==typeof n?n:e}function E(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),w=Math.min(parseInt(n+s-g/4,10),p-g-2*c);h[o]=`${m}px`,u[o]=`${w}px`;const E=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=`${E}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 w=u?a.getCell(this.wot.createCellCoords(s,i)):m,E=(0,n.offset)(m),y=u?(0,n.offset)(w):E,C=(0,n.offset)(a.TABLE),v=E.top,S=E.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)(w)-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)(w)-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?w.getBoundingClientRect().left:w.offsetLeft;let i=!1,a=0;if(R?(a=s-parseInt(this.cornerDefaultStyle.width,10)/2,i=a<0):(a=s+(0,n.outerWidth)(w)+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?w.getBoundingClientRect().top:w.offsetTop)+(0,n.outerHeight)(w)+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(w(e,t))}function m(e,t,r){return e.set(w(e,t),r),r}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")}var E=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=w(_,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,E,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),w(_,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&&w(_,this,A).call(this)===this.hot.countCols()&&w(_,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(E,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(E,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 w=new WeakSet;class E extends i.BasePlugin{constructor(){super(...arguments),d(this,w),(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(w,this,v).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>g(w,this,C).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>g(w,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(w,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(w,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>g(w,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=E},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"),w=TypeError,E=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))),!~E(n,"g")))throw new w("`.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),_=E(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:E(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 w=t.PLUGIN_KEY="hiddenColumns",E=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 w}static get PLUGIN_PRIORITY(){return E}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,columns:[]}}isEnabled(){return!!this.hot.getSettings()[w]}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.1-next-895fbb8-20250923";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)("23/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){w[y]({keyValidityDate:o,hotVersion:i})&&console["non_commercial"===y?"info":"warn"](w[y]({keyValidityDate:o,hotVersion:i})),m=!0}if("valid"!==C&&t){if(E[C]({keyValidityDate:o,hotVersion:i})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=E[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 w={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
@@ -265,7 +265,7 @@ s.version="2.30.1",i(Xr),s.fn=hi,s.min=Jr,s.max=en,s.now=tn,s.utc=f,s.unix=ui,s.
265
265
  not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){let{row:t,col:r}=e;return i.toSingleLine`The merged cell declared at [${t}, ${r}] is positioned\x20
266
266
  (or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){let{row:t,col:r}=e;return i.toSingleLine`The merged cell declared at [${t}, ${r}] has both "rowspan"\x20
267
267
  and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){let{row:t,col:r}=e;return i.toSingleLine`The merged cell declared at [${t}, ${r}] has "rowspan"\x20
268
- or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:r,rowspan:n,colspan:s}=e;return t<0||r<0||n<0||s<0}static isSingleCell(e){let{rowspan:t,colspan:r}=e;return 1===r&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:r}=e;return 0===r||0===t}static isOutOfBounds(e,t,r){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=r||e.col+e.colspan-1>=r}normalize(e){const t=e.countRows(),r=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>r-1&&(this.col=r-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>r-1&&(this.colspan=r-this.col),l(u,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const r=e[0]||e[1],n=t+Math.abs(e[0]||e[1])-1,s=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",o=Math.min(t,n),a=Math.max(t,n),h=this[i],c=this[i]+this[s]-1;if(h>=t&&(this[i]+=r),r>0)t<=c&&t>h&&(this[s]+=r);else if(r<0){if(o<=h&&a>=c)return this.removed=!0,l(u,this,null),!1;if(h>=o&&h<=a){const e=a-h+1,t=Math.abs(r)-e;this[i]-=t+r,this[s]-=e}else if(h<=o&&c>=a)this[s]+=r;else if(h<=o&&c>=o&&c<a){const e=c-o+1;this[s]-=e}}return l(u,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return a(u,this)||l(u,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),a(u,this)}}},59980:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(73016);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dropdownRenderer=n.dropdownRenderer},60036:()=>{},60072:(e,t,r)=>{"use strict";var n=r(2382),s=r(53001);e.exports=n&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},60290:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(81056);var s=n(r(24300)),i=r(40785),o=r(96357);t.default=class{constructor(e,t){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"endpoints",[]),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"settingsType","array"),(0,s.default)(this,"currentEndpoint",null),(0,s.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let r=e;if(r||"function"!=typeof this.settings)return r||(r=this.settings),(0,i.arrayEach)(r,e=>{const r={};this.assignSetting(e,r,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,r,"reversedRowCoords",!1),this.assignSetting(e,r,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,r,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,r,"sourceColumn",e.destinationColumn),this.assignSetting(e,r,"type","sum"),this.assignSetting(e,r,"forceNumeric",!1),this.assignSetting(e,r,"suppressDataTypeErrors",!0),this.assignSetting(e,r,"customFunction",null),this.assignSetting(e,r,"readOnly",!0),this.assignSetting(e,r,"roundFloat",!1),t.push(r)}),t;this.settingsType="function"}assignSetting(e,t,r,n){if("ranges"!==r||void 0!==e[r]){if("ranges"!==r||0!==e[r].length)if(void 0===e[r]){if(n instanceof Error)throw n;t[r]=n}else"destinationRow"===r&&t.reversedRowCoords?t[r]=this.hot.countRows()-e[r]-1:t[r]=e[r]}else t[r]=n}resetSetupBeforeStructureAlteration(e,t,r){if("function"!==this.settingsType)return;const n=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();(0,i.arrayEach)(s,s=>{"row"===n&&s.destinationRow>=t&&("insert_row"===e?s.alterRowOffset=r:"remove_row"===e&&(s.alterRowOffset=-1*r)),"col"===n&&s.destinationColumn>=t&&("insert_col"===e?s.alterColumnOffset=r:"remove_col"===e&&(s.alterColumnOffset=-1*r))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,t,r,n,s){let o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),u=0===e.indexOf("move_row"),c=t;(0,i.arrayEach)(h,e=>{"row"===a&&e.destinationRow>=c&&(e.alterRowOffset=l*r),"col"===a&&e.destinationColumn>=c&&(e.alterColumnOffset=l*r)}),this.resetAllEndpoints(h,!u),u?(0,i.arrayEach)(h,e=>{this.extendEndpointRanges(e,c,n[0],n.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,i.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,c)}),o&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,r,n){(0,i.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?r>e[1]?e[1]+=n:r<e[0]&&(e[0]-=n):r>=e[0]&&r<=e[1]&&(e[1]-=n,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,r=[],n=[];(0,i.arrayEach)(t,e=>{const t=[];if(e[1])for(let r=e[0];r<=e[1];r++)t.push(this.hot.toPhysicalRow(r));else t.push(this.hot.toPhysicalRow(e[0]));n.push(t)}),(0,i.arrayEach)(n,e=>{let t=[];(0,i.arrayEach)(e,(n,s)=>{0===s?t.push(n):e[s]!==e[s-1]+1&&(t.push(e[s-1]),r.push(t),t=[],t.push(n)),s===e.length-1&&(t.push(n),r.push(t))})}),e.ranges=r}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,i.arrayEach)(e.ranges,r=>{(0,i.arrayEach)(r,(n,s)=>{n>=t&&(r[s]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,r=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+r>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,i.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,i.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,i.arrayEach)(e,(e,r,n)=>{`${e[2]||""}`!=`${e[3]}`&&(0,i.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(n[r][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,i.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const r=this.hot.getCellMeta(t,e.destinationColumn);r.readOnly=e.readOnly,r.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=e.alterRowOffset||0,n=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?r:0)),this.hot.toVisualColumn(e.destinationColumn+(t?n:0)),""])}setEndpointValue(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const s=this.hot.toVisualRow(e.destinationRow);if(null!==s){const r=this.hot.getCellMeta(s,e.destinationColumn);"init"!==t&&r.readOnly===e.readOnly||(r.readOnly=e.readOnly,r.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let r=0;Number.isInteger(t)&&(r=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(r)}r?this.hot.setDataAtCell(n,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([n,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,o.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},60296:()=>{},60499:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(2898);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualColumnMove=n.ManualColumnMove},60549:()=>{},60564:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.BaseAction{constructor(e){let{index:t,amount:r}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=r}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,r,n)=>{t.done(()=>new o({index:e,amount:r}),n)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=o},60606:(e,t,r)=>{"use strict";var n=r(19098),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},60664:()=>{},60698:()=>{},60764:(e,t,r)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,r){return(0,n.createDateTimeCompareFunction)(e,t.timeFormat,r)};var n=r(52665);t.COLUMN_DATA_TYPE="time"},60791:(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(99793),c=r(47150),d=r(14483),g=r(33973),p=!g&&!c("map",function(){}),f=!g&&!p&&d("map",TypeError),m=g||p||f,w=l(function(){var e=this.iterator,t=o(s(this.next,e));if(!(this.done=!!t.done))return h(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){o(this);try{i(e)}catch(e){u(this,"throw",e)}return f?s(f,this,e):new w(a(this),{mapper:e})}})},61014:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(84111);class s extends n.OrderView{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}t.SharedOrderView=s},61094:()=>{},61292:()=>{},61546:(e,t,r)=>{"use strict";var n=r(44827),s=r(98363),i=r(21769),o=r(2847);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(n(r)&&i(r,h,a),a.global)l?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:s.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},61674:(e,t,r)=>{"use strict";var n=r(42326),s=r(40981);e.exports=Object.keys||function(e){return n(e,s)}},61690:(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="lte";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_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},61904:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:r,from:n,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(n.col,s.col,r),t.markEndSource()}}},61954:(e,t,r)=>{"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let r=!1,u=!1;return{resume(){u=!1},suspend(){u=!0},skipNextScrollCycle(){r=!0},scrollTo(c){var d;if(r||u)return void(r=!1);let g;t.isFocusSelectionChanged()?g=(0,i.focusScrollStrategy)(e):t.isSelectedByCorner()?g=(0,s.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?g=(0,l.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?g=(0,n.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?g=(0,o.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(g=(0,a.noncontiguousScrollStrategy)(e)):g=(0,h.singleScrollStrategy)(e),null===(d=g)||void 0===d||d(c)}}};var n=r(90233),s=r(99774),i=r(76958),o=r(11642),a=r(81953),l=r(63947),h=r(18546)},62107:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[,r,,n]=e;r-n!==0&&(t=1)}return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:r}=this.getSelectedRangeActive(),n=Math.max(Math.min(t.col,r.col),0),s=Math.max(t.col,r.col),i=[];for(let e=n;e<=s;e+=1)i.push(e);e.hideColumns(i);const o=i[i.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(o,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},r(99356);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))},62147:(e,t,r)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:r}=e,n=e.getSelectedRangeActive(),s=t.getSelectionSource(),i=r.getFirstFullyVisibleColumn(),o=r.getLastFullyVisibleColumn(),a=n.getTopStartCorner().col,l=n.getBottomEndCorner().col,h=a<=i,u=l>=o,c=r.getFirstFullyVisibleRow(),d=r.getLastFullyVisibleRow(),g=n.getTopStartCorner().row,p=n.getBottomEndCorner().row,f=g<=c,m=p>=d;return{getComputedColumnTarget:e=>"mouse"===s||"keyboard"===s?e.col:h&&u?n.highlight.col:h?a:u?l:e.col,getComputedRowTarget:e=>"mouse"===s||"keyboard"===s?e.row:f&&m?n.highlight.row:f?g:m?p:e.row}},t.scrollWindowToCell=function(e){(0,n.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var n=r(6083)},62184:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6105);t.parse=n.parse,t.stringify=n.stringify},62192:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(81514);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.TouchScroll=n.TouchScroll},62283:(e,t,r)=>{"use strict";var n=r(66431),s=r(75040),i=r(22208),o=function(e){return function(t,r,o){var a=n(t),l=i(a);if(0===l)return!e&&-1;var h,u=s(o,l);if(e&&r!=r){for(;l>u;)if((h=a[u++])!=h)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},62346:(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="manualRowResize",p=t.PLUGIN_PRIORITY=30,f="manualRowHeights";var m=new WeakMap,w=new WeakMap,E=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,w,null),l(this,E,[]),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,_,!1),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),"manualRowResizer"),(0,s.addClass)(c(N,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){this.enabled||(u(I,this,new a.PhysicalIndexToValueMap),c(I,this).addLocalHook("init",()=>d(x,this,V).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,c(I,this)),this.addHook("modifyRowHeight",(e,t)=>d(x,this,U).call(this,e,t)),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){u(O,this,c(I,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",f,c(I,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",f,e),e.value}setManualSize(e,t){const r=this.hot.toPhysicalRow(e),n=Math.max(t,this.hot.stylesHandler.getDefaultRowHeight());return c(I,this).setValueAtIndex(r,n),n}getLastDesiredRowHeight(){return c(y,this)}setupHandlePosition(e){if(c(b,this)>1)return;u(m,this,e);const{view:t}=this.hot,{_wt:r}=t,n=r.wtTable.getCoords(c(m,this)),a=n.row;if(a<0)return;const l=(0,s.outerWidth)(c(m,this)),h=c(m,this).getBoundingClientRect(),d=a<r.getSetting("fixedRowsTop"),g=a>=t.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");let p;d?p=r.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),n.row,n.col):g&&(p=r.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),n.row,n.col)),p||(p=r.wtOverlays.inlineStartOverlay.getRelativeCellPosition(c(m,this),n.row,n.col)),u(w,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(a)),u(E,this,[]);const f=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&f){const e=this.hot.getSelectedRange();(0,i.arrayEach)(e,e=>{const t=e.getTopStartCorner().row,r=e.getBottomStartCorner().row;(0,o.rangeEach)(t,r,e=>{c(E,this).includes(e)||c(E,this).push(e)})})}c(E,this).includes(c(w,this))||u(E,this,[c(w,this)]),u(R,this,p.top-6),u(S,this,parseInt(h.height,10)),c(T,this).style.top=`${c(R,this)+c(S,this)}px`,c(T,this).style[this.inlineDir]=`${p.start}px`,c(T,this).style.width=`${l}px`,this.hot.rootElement.appendChild(c(T,this))}refreshHandlePosition(){c(T,this).style.top=`${c(R,this)+c(y,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerWidth)(c(T,this)),10),t=parseInt(c(T,this).style[this.inlineDir],10)+e,r=this.hot.view.getTableWidth();(0,s.addClass)(c(T,this),"active"),(0,s.addClass)(c(N,this),"active"),c(N,this).style.top=c(T,this).style.top,c(N,this).style[this.inlineDir]=`${t}px`,c(N,this).style.width=r-e+"px",this.hot.rootElement.appendChild(c(N,this))}refreshGuidePosition(){c(N,this).style.top=c(T,this).style.top}hideHandleAndGuide(){(0,s.removeClass)(c(T,this),"active"),(0,s.removeClass)(c(N,this),"active")}checkIfRowHeader(e){const t=(0,s.closest)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:r,topInlineStartCornerOverlay:n,bottomInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;return[r.clone.wtTable.TBODY,n.clone.wtTable.TBODY,i.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&c(C,this)<t?t:c(C,this)}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{const n=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==n&&u(C,this,n),this.setManualSize(t,c(C,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),r&&e()};if(c(b,this)>=2){c(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,this),e=>{t(e,!0)})}u(b,this,0),u(M,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",e=>d(x,this,L).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>d(x,this,D).call(this,e)),this.eventManager.addEventListener(t,"mousemove",e=>d(x,this,k).call(this,e)),this.eventManager.addEventListener(t,"mouseup",()=>d(x,this,H).call(this)),this.eventManager.addEventListener(c(T,this),"contextmenu",()=>d(x,this,F).call(this))}destroy(){super.destroy()}}function L(e){if(!(0,s.isDetached)(e.target)&&!0!==c(A,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(c(_,this)||this.setupHandlePosition(t))}}function D(e){(0,s.hasClass)(e.target,"manualRowResizer")&&(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),u(v,this,e.pageY),u(C,this,c(S,this)))}function k(e){c(_,this)&&(u(y,this,c(S,this)+(e.pageY-c(v,this))),(0,i.arrayEach)(c(E,this),e=>{u(C,this,this.setManualSize(e,c(y,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition())}function H(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),r&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};if(c(_,this)){if(this.hideHandleAndGuide(),u(_,this,!1),c(C,this)!==c(S,this)){c(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,this),e=>{t(e,!0)})}this.setupHandlePosition(c(m,this))}}function F(){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 U(e,t){let r=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),n=c(I,this).getValueAtIndex(e);this.hot.getSettings()[g]&&n&&(r=n)}return r}function V(){const e=this.hot.getSettings()[g],t=this.loadManualRowHeights();this.hot.batchExecution(()=>{void 0!==t?t.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)}):Array.isArray(e)?(e.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)}),u(O,this,e)):!0===e&&Array.isArray(c(O,this))&&c(O,this).forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0)}t.ManualRowResize=P},62551:()=>{},62579:(e,t,r)=>{"use strict";var n,s,i,o=r(69540),a=r(94266),l=r(15176),h=r(20637),u=r(19451),c=r(65415),d=r(57041),g=r(48099),p="Object already initialized",f=a.TypeError,m=a.WeakMap;if(o||c.state){var w=c.state||(c.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,n=function(e,t){if(w.has(e))throw new f(p);return t.facade=e,w.set(e,t),t},s=function(e){return w.get(e)||{}},i=function(e){return w.has(e)}}else{var E=d("state");g[E]=!0,n=function(e,t){if(u(e,E))throw new f(p);return t.facade=e,h(e,E,t),t},s=function(e){return u(e,E)?e[E]:{}},i=function(e){return u(e,E)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=s(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},62580:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91812);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.UndoRedo=n.UndoRedo},62623:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(53209);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.TrimRows=n.TrimRows},63036:(e,t,r)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[n.command,s.command,i.command,o.command,a.command,l.command]};var n=r(66790),s=r(48894),i=r(38461),o=r(2668),a=r(41316),l=r(36286)},63259:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91698),s=r(5022);const i=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:i,editor:n.TextEditor,renderer:s.textRenderer}},63260:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.BaseAction{constructor(e){let{currentSortState:t,newSortState:r}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=r}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,r,n)=>{n&&t.done(()=>new o({currentSortState:e,newSortState:r}))})}undo(e,t){const r=e.getPlugin("columnSorting"),n=e.getPlugin("multiColumnSorting"),s=n.isEnabled()?n:r;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const r=e.getPlugin("columnSorting"),n=e.getPlugin("multiColumnSorting");(n.isEnabled()?n:r).sort(this.nextSortState),t()}}t.ColumnSortAction=o},63301:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(4407),o=r(21389),a=r(99242),l=n(r(50496));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,i.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,i.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,o.mixin)(h,l.default)},63453:()=>{},63470:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(31143),r(940);var n=r(6083),s=r(21389),i=r(58231),o=r(99242),a=r(97934),l=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)),h=r(31075),u=r(11492),c=r(88236),d=r(3166),g=r(44876);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){return e.get(E(e,t))}function w(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")}const y="multipleSelect.itemBox";var C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;class A extends u.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var r,n;super(e,(0,s.extend)(A.DEFAULTS,t)),f(r=this,n=_),n.add(r),p(this,C,[]),p(this,v,void 0),p(this,S,void 0),p(this,R,void 0),p(this,T,void 0),p(this,N,void 0),w(R,this,new c.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(T,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(N,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(v,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>E(_,this,M).call(this,e)),m(R,this).addLocalHook("input",e=>E(_,this,b).call(this,e)),m(T,this).addLocalHook("click",e=>E(_,this,I).call(this,e)),m(N,this).addLocalHook("click",e=>E(_,this,O).call(this,e))}setItems(e){var t;w(C,this,e),null===(t=m(v,this))||void 0===t||t.loadData(m(C,this))}setLocale(e){w(S,this,e)}getLocale(){return m(S,this)}getItems(){return[...m(C,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(C,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(T,this)}getClearAllElement(){return m(N,this)}isSelectedAllValues(){return m(C,this).length===this.getValue().length}build(){super.build();const{rootDocument:e}=this.hot,t=e.createElement("div"),r=new u.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(T,this),m(N,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(r.element),this._element.appendChild(t);const s=t=>{var r;if(!this._element)return;null===(r=m(v,this))||void 0===r||r.destroy(),(0,n.addClass)(t,"htUIMultipleSelectHot"),w(v,this,new this.hot.constructor(t,{data:m(C,this),columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,r,n,s,i)=>{e.title=i.instance.getDataAtRowProp(t,i.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(v,this).listen()},modifyColWidth:t=>{const r=m(v,this).container.scrollWidth-(0,n.getScrollbarWidth)(e);return void 0!==t&&t<r?r:t},maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(v,this).init();const s=m(v,this).getShortcutManager().getContext("grid");s.removeShortcutsByKeys(["Tab"]),s.removeShortcutsByKeys(["Shift","Tab"]),s.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:y}),s.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(v,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:y})};s(t),this.hot._registerTimeout(()=>s(t),100)}focus(){this.isBuilt()&&m(v,this).listen()}reset(){m(R,this).reset(),m(T,this).reset(),m(N,this).reset()}update(){this.isBuilt()&&(m(v,this).loadData(function(e,t){const r=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=r(e.value),e))}(m(C,this),this.options.value)),super.update())}destroy(){var e;null===(e=m(v,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(N,this).destroy(),m(T,this).destroy(),w(R,this,null),w(N,this,null),w(T,this,null),w(v,this,null),w(C,this,null),super.destroy()}}function b(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());let r;r=""===t?[...m(C,this)]:m(C,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(v,this).loadData(r)}function M(e){this.runLocalHooks("keydown",e,this);(0,o.partial)(i.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(v,this).listen(),m(v,this).selectCell(0,0))}function I(e){const t=[];e.preventDefault(),m(v,this).getSourceData().forEach((e,r)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,r)[0])}),m(v,this).setSourceDataAtCell(t)}function O(e){const t=[];e.preventDefault(),m(v,this).getSourceData().forEach((e,r)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,r)[0])}),m(v,this).setSourceDataAtCell(t)}t.MultipleSelectUI=A;t.default=A},63775:()=>{},63947:(e,t,r)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:r},()=>{const t=!!e.getSettings().rowHeaders;(0,n.scrollWindowToCell)(e.getCell(r,t?-1:0,!0))})}};var n=r(62147)},63991:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...r}=e;return new i.default({className:t,...r,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=r(74216),i=n(r(44982))},64039:(e,t,r)=>{"use strict";var n=r(72820),s=r(82683),i=r(22208),o=r(40761),a=r(39372),l=r(56643);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=s(this),r=i(t),n=arguments.length;if(n){l(r+n);for(var h=r;h--;){var u=h+n;h in t?t[u]=t[h]:a(t,u)}for(var c=0;c<n;c++)t[c]=arguments[c]}return o(t,r+n)}})},64078:()=>{},64276:(e,t,r)=>{"use strict";var n=r(77439),s=r(96858),i=r(20637),o=r(47833),a=r(12033),l=r(62579),h=r(85988),u=r(97259).IteratorPrototype,c=r(92351),d=r(99793),g=r(64735),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",w="normal",E="throw",y=l.set,C=function(e){var t=l.getterFor(e?m:f);return o(s(u),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return c(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:c(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),s=r.iterator;if(r.done=!0,e){var i=h(s,"return");return i?n(i,s):c(void 0,!0)}if(r.inner)try{d(r.inner.iterator,w)}catch(e){return d(s,E,e)}if(r.openIters)try{g(r.openIters,w)}catch(e){return d(s,E,e)}return s&&d(s,w),c(void 0,!0)}})},v=C(!0),S=C(!1);i(S,p,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,s){s?(s.iterator=n.iterator,s.next=n.next):s=n,s.type=t?m:f,s.returnHandlerResult=!!r,s.nextHandler=e,s.counter=0,s.done=!1,y(this,s)};return n.prototype=t?v:S,n}},64417:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,r,,n]=e[0];r-n!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,n.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var n=r(3442),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));const i=t.KEY="remove_col"},64588:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},64605:()=>{},64735:(e,t,r)=>{"use strict";var n=r(99793);e.exports=function(e,t,r){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{r=n(e[s].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},64765:(e,t,r)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(n.toSingleLine`The passed node is not the last node on the tree. Only for\x20
268
+ or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){let{row:t,col:r,rowspan:n,colspan:s}=e;return t<0||r<0||n<0||s<0}static isSingleCell(e){let{rowspan:t,colspan:r}=e;return 1===r&&1===t}static containsZeroSpan(e){let{rowspan:t,colspan:r}=e;return 0===r||0===t}static isOutOfBounds(e,t,r){return e.row<0||e.col<0||e.row>=t||e.row+e.rowspan-1>=t||e.col>=r||e.col+e.colspan-1>=r}normalize(e){const t=e.countRows(),r=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>r-1&&(this.col=r-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>r-1&&(this.colspan=r-this.col),l(u,this,null)}includes(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,t){const r=e[0]||e[1],n=t+Math.abs(e[0]||e[1])-1,s=e[0]?"colspan":"rowspan",i=e[0]?"col":"row",o=Math.min(t,n),a=Math.max(t,n),h=this[i],c=this[i]+this[s]-1;if(h>=t&&(this[i]+=r),r>0)t<=c&&t>h&&(this[s]+=r);else if(r<0){if(o<=h&&a>=c)return this.removed=!0,l(u,this,null),!1;if(h>=o&&h<=a){const e=a-h+1,t=Math.abs(r)-e;this[i]-=t+r,this[s]-=e}else if(h<=o&&c>=a)this[s]+=r;else if(h<=o&&c>=o&&c<a){const e=c-o+1;this[s]-=e}}return l(u,this,null),!0}isFarther(e,t){return!e||("down"===t?e.row+e.rowspan-1<this.row+this.rowspan-1:"up"===t?e.row>this.row:"right"===t?e.col+e.colspan-1<this.col+this.colspan-1:"left"===t?e.col>this.col:null)}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return a(u,this)||l(u,this,this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))),a(u,this)}}},59980:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(73016);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dropdownRenderer=n.dropdownRenderer},60036:()=>{},60072:(e,t,r)=>{"use strict";var n=r(2382),s=r(53001);e.exports=n&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},60290:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(31143),r(81056);var s=n(r(24300)),i=r(40785),o=r(96357);t.default=class{constructor(e,t){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"endpoints",[]),(0,s.default)(this,"settings",void 0),(0,s.default)(this,"settingsType","array"),(0,s.default)(this,"currentEndpoint",null),(0,s.default)(this,"cellsToSetCache",[]),this.plugin=e,this.hot=this.plugin.hot,this.settings=t}initEndpoints(){this.endpoints=this.parseSettings(),this.refreshAllEndpoints()}getEndpoint(e){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings)[e]:this.endpoints[e]}getAllEndpoints(){return"function"===this.settingsType?this.fillMissingEndpointData(this.settings):this.endpoints}fillMissingEndpointData(e){return this.parseSettings(e.call(this))}parseSettings(e){const t=[];let r=e;if(r||"function"!=typeof this.settings)return r||(r=this.settings),(0,i.arrayEach)(r,e=>{const r={};this.assignSetting(e,r,"ranges",[[0,this.hot.countRows()-1]]),this.assignSetting(e,r,"reversedRowCoords",!1),this.assignSetting(e,r,"destinationRow",new Error("\n You must provide a destination row for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,r,"destinationColumn",new Error("\n You must provide a destination column for the Column Summary plugin in order to work properly!\n ")),this.assignSetting(e,r,"sourceColumn",e.destinationColumn),this.assignSetting(e,r,"type","sum"),this.assignSetting(e,r,"forceNumeric",!1),this.assignSetting(e,r,"suppressDataTypeErrors",!0),this.assignSetting(e,r,"customFunction",null),this.assignSetting(e,r,"readOnly",!0),this.assignSetting(e,r,"roundFloat",!1),t.push(r)}),t;this.settingsType="function"}assignSetting(e,t,r,n){if("ranges"!==r||void 0!==e[r]){if("ranges"!==r||0!==e[r].length)if(void 0===e[r]){if(n instanceof Error)throw n;t[r]=n}else"destinationRow"===r&&t.reversedRowCoords?t[r]=this.hot.countRows()-e[r]-1:t[r]=e[r]}else t[r]=n}resetSetupBeforeStructureAlteration(e,t,r){if("function"!==this.settingsType)return;const n=e.indexOf("row")>-1?"row":"col",s=this.getAllEndpoints();(0,i.arrayEach)(s,s=>{"row"===n&&s.destinationRow>=t&&("insert_row"===e?s.alterRowOffset=r:"remove_row"===e&&(s.alterRowOffset=-1*r)),"col"===n&&s.destinationColumn>=t&&("insert_col"===e?s.alterColumnOffset=r:"remove_col"===e&&(s.alterColumnOffset=-1*r))}),this.resetAllEndpoints(s,!1)}resetSetupAfterStructureAlteration(e,t,r,n,s){let o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if("function"===this.settingsType){const e=()=>(this.hot.removeHook("beforeViewRender",e),this.refreshAllEndpoints());return void this.hot.addHookOnce("beforeViewRender",e)}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,h=this.getAllEndpoints(),u=0===e.indexOf("move_row"),c=t;(0,i.arrayEach)(h,e=>{"row"===a&&e.destinationRow>=c&&(e.alterRowOffset=l*r),"col"===a&&e.destinationColumn>=c&&(e.alterColumnOffset=l*r)}),this.resetAllEndpoints(h,!u),u?(0,i.arrayEach)(h,e=>{this.extendEndpointRanges(e,c,n[0],n.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,i.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,c)}),o&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,r,n){(0,i.arrayEach)(e.ranges,e=>{e[1]&&(t>=e[0]&&t<=e[1]?r>e[1]?e[1]+=n:r<e[0]&&(e[0]-=n):r>=e[0]&&r<=e[1]&&(e[1]-=n,t<=e[0]&&(e[0]+=1,e[1]+=1)))})}recreatePhysicalRanges(e){const t=e.ranges,r=[],n=[];(0,i.arrayEach)(t,e=>{const t=[];if(e[1])for(let r=e[0];r<=e[1];r++)t.push(this.hot.toPhysicalRow(r));else t.push(this.hot.toPhysicalRow(e[0]));n.push(t)}),(0,i.arrayEach)(n,e=>{let t=[];(0,i.arrayEach)(e,(n,s)=>{0===s?t.push(n):e[s]!==e[s-1]+1&&(t.push(e[s-1]),r.push(t),t=[],t.push(n)),s===e.length-1&&(t.push(n),r.push(t))})}),e.ranges=r}shiftEndpointCoordinates(e,t){e.alterRowOffset&&0!==e.alterRowOffset?(e.destinationRow+=e.alterRowOffset||0,(0,i.arrayEach)(e.ranges,r=>{(0,i.arrayEach)(r,(n,s)=>{n>=t&&(r[s]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&0!==e.alterColumnOffset&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAllEndpoints(),t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.some(e=>{const t=e.alterRowOffset||0,r=e.alterColumnOffset||0;return e.destinationRow+t>=this.hot.countRows()||e.destinationColumn+r>=this.hot.countCols()})||(this.cellsToSetCache=[],(0,i.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,i.arrayEach)(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const t=[];this.cellsToSetCache=[],(0,i.arrayEach)(e,(e,r,n)=>{`${e[2]||""}`!=`${e[3]}`&&(0,i.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(n[r][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,i.arrayEach)(t,e=>{this.refreshEndpoint(this.getEndpoint(e))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshCellMetas(){this.endpoints.forEach(e=>{const t=this.hot.toVisualRow(e.destinationRow);if(null!==t){const r=this.hot.getCellMeta(t,e.destinationColumn);r.readOnly=e.readOnly,r.className="columnSummaryResult"}})}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=e.alterRowOffset||0,n=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destinationRow+(t?r:0)),this.hot.toVisualColumn(e.destinationColumn+(t?n:0)),""])}setEndpointValue(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.hot.toVisualRow(e.destinationRow);if(e.destinationRow>=this.hot.countRows()||e.destinationColumn>=this.hot.countCols())return void this.throwOutOfBoundsWarning();const s=this.hot.toVisualRow(e.destinationRow);if(null!==s){const r=this.hot.getCellMeta(s,e.destinationColumn);"init"!==t&&r.readOnly===e.readOnly||(r.readOnly=e.readOnly,r.className="columnSummaryResult")}if((!0===e.roundFloat||Number.isInteger(e.roundFloat))&&!isNaN(e.result)){const t=e.roundFloat;let r=0;Number.isInteger(t)&&(r=Math.min(Math.max(0,t),100)),e.result=e.result.toFixed(r)}r?this.hot.setDataAtCell(n,e.destinationColumn,e.result,"ColumnSummary.set"):this.cellsToSetCache.push([n,e.destinationColumn,e.result]),e.alterRowOffset=void 0,e.alterColumnOffset=void 0}throwOutOfBoundsWarning(){(0,o.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},60296:()=>{},60499:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(2898);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualColumnMove=n.ManualColumnMove},60549:()=>{},60564:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.BaseAction{constructor(e){let{index:t,amount:r}=e;super("insert_col"),(0,s.default)(this,"index",void 0),(0,s.default)(this,"amount",void 0),this.index=t,this.amount=r}static startRegisteringEvents(e,t){e.addHook("afterCreateCol",(e,r,n)=>{t.done(()=>new o({index:e,amount:r}),n)})}undo(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount,"UndoRedo.undo")}redo(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col_start",this.index,this.amount,"UndoRedo.redo")}}t.CreateColumnAction=o},60606:(e,t,r)=>{"use strict";var n=r(19098),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},60664:()=>{},60698:()=>{},60764:(e,t,r)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,r){return(0,n.createDateTimeCompareFunction)(e,t.timeFormat,r)};var n=r(52665);t.COLUMN_DATA_TYPE="time"},60791:(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(99793),c=r(47150),d=r(14483),g=r(33973),p=!g&&!c("map",function(){}),f=!g&&!p&&d("map",TypeError),m=g||p||f,w=l(function(){var e=this.iterator,t=o(s(this.next,e));if(!(this.done=!!t.done))return h(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){o(this);try{i(e)}catch(e){u(this,"throw",e)}return f?s(f,this,e):new w(a(this),{mapper:e})}})},61014:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(84111);class s extends n.OrderView{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}t.SharedOrderView=s},61094:()=>{},61292:()=>{},61546:(e,t,r)=>{"use strict";var n=r(44827),s=r(98363),i=r(21769),o=r(2847);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(n(r)&&i(r,h,a),a.global)l?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:s.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},61674:(e,t,r)=>{"use strict";var n=r(42326),s=r(40981);e.exports=Object.keys||function(e){return n(e,s)}},61690:(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="lte";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_LESS_THAN_OR_EQUAL,inputsCount:1,showOperators:!0})},61904:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToColumns",callback(e){const{selection:t}=e,{highlight:r,from:n,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByRowHeader()?t.selectAll(!0,!0):e.selectColumns(n.col,s.col,r),t.markEndSource()}}},61954:(e,t,r)=>{"use strict";t.__esModule=!0,t.createViewportScroller=function(e){const{selection:t}=e;let r=!1,u=!1;return{resume(){u=!1},suspend(){u=!0},skipNextScrollCycle(){r=!0},scrollTo(c){var d;if(r||u)return void(r=!1);let g;t.isFocusSelectionChanged()?g=(0,i.focusScrollStrategy)(e):t.isSelectedByCorner()?g=(0,s.cornerHeaderScrollStrategy)(e):t.isSelectedByRowHeader()?g=(0,l.rowHeaderScrollStrategy)(e):t.isSelectedByColumnHeader()?g=(0,n.columnHeaderScrollStrategy)(e):1===t.getSelectedRange().size()&&t.isMultiple()?g=(0,o.multipleScrollStrategy)(e):1!==t.getSelectedRange().size()||t.isMultiple()?t.getSelectedRange().size()>1&&(g=(0,a.noncontiguousScrollStrategy)(e)):g=(0,h.singleScrollStrategy)(e),null===(d=g)||void 0===d||d(c)}}};var n=r(90233),s=r(99774),i=r(76958),o=r(11642),a=r(81953),l=r(63947),h=r(18546)},62107:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedActive();let t=0;if(Array.isArray(e)){const[,r,,n]=e;r-n!==0&&(t=1)}return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_HIDE_COLUMN,t)},callback(){const{from:t,to:r}=this.getSelectedRangeActive(),n=Math.max(Math.min(t.col,r.col),0),s=Math.max(t.col,r.col),i=[];for(let e=n;e<=s;e+=1)i.push(e);e.hideColumns(i);const o=i[i.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(o,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.view.adjustElementsSize(),this.render()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},r(99356);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))},62147:(e,t,r)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:r}=e,n=e.getSelectedRangeActive(),s=t.getSelectionSource(),i=r.getFirstFullyVisibleColumn(),o=r.getLastFullyVisibleColumn(),a=n.getTopStartCorner().col,l=n.getBottomEndCorner().col,h=a<=i,u=l>=o,c=r.getFirstFullyVisibleRow(),d=r.getLastFullyVisibleRow(),g=n.getTopStartCorner().row,p=n.getBottomEndCorner().row,f=g<=c,m=p>=d;return{getComputedColumnTarget:e=>"mouse"===s||"keyboard"===s?e.col:h&&u?n.highlight.col:h?a:u?l:e.col,getComputedRowTarget:e=>"mouse"===s||"keyboard"===s?e.row:f&&m?n.highlight.row:f?g:m?p:e.row}},t.scrollWindowToCell=function(e){(0,n.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var n=r(6083)},62184:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6105);t.parse=n.parse,t.stringify=n.stringify},62192:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(81514);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.TouchScroll=n.TouchScroll},62283:(e,t,r)=>{"use strict";var n=r(66431),s=r(75040),i=r(22208),o=function(e){return function(t,r,o){var a=n(t),l=i(a);if(0===l)return!e&&-1;var h,u=s(o,l);if(e&&r!=r){for(;l>u;)if((h=a[u++])!=h)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},62346:(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="manualRowResize",p=t.PLUGIN_PRIORITY=30,f="manualRowHeights";var m=new WeakMap,w=new WeakMap,E=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,w,null),l(this,E,[]),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,_,!1),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),"manualRowResizer"),(0,s.addClass)(c(N,this),"manualRowResizerGuide")}get inlineDir(){return this.hot.isRtl()?"right":"left"}isEnabled(){return this.hot.getSettings()[g]}enablePlugin(){this.enabled||(u(I,this,new a.PhysicalIndexToValueMap),c(I,this).addLocalHook("init",()=>d(x,this,V).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,c(I,this)),this.addHook("modifyRowHeight",(e,t)=>d(x,this,U).call(this,e,t)),this.bindEvents(),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){u(O,this,c(I,this).getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginName),super.disablePlugin()}saveManualRowHeights(){this.hot.runHooks("persistentStateSave",f,c(I,this).getValues())}loadManualRowHeights(){const e={};return this.hot.runHooks("persistentStateLoad",f,e),e.value}setManualSize(e,t){const r=this.hot.toPhysicalRow(e),n=Math.max(t,this.hot.stylesHandler.getDefaultRowHeight());return c(I,this).setValueAtIndex(r,n),n}getLastDesiredRowHeight(){return c(y,this)}setupHandlePosition(e){if(c(b,this)>1)return;u(m,this,e);const{view:t}=this.hot,{_wt:r}=t,n=r.wtTable.getCoords(c(m,this)),a=n.row;if(a<0)return;const l=(0,s.outerWidth)(c(m,this)),h=c(m,this).getBoundingClientRect(),d=a<r.getSetting("fixedRowsTop"),g=a>=t.countNotHiddenRowIndexes(0,1)-r.getSetting("fixedRowsBottom");let p;d?p=r.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),n.row,n.col):g&&(p=r.wtOverlays.bottomInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),n.row,n.col)),p||(p=r.wtOverlays.inlineStartOverlay.getRelativeCellPosition(c(m,this),n.row,n.col)),u(w,this,this.hot.rowIndexMapper.getVisualFromRenderableIndex(a)),u(E,this,[]);const f=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByRowHeader();if(this.hot.selection.isSelected()&&f){const e=this.hot.getSelectedRange();(0,i.arrayEach)(e,e=>{const t=e.getTopStartCorner().row,r=e.getBottomStartCorner().row;(0,o.rangeEach)(t,r,e=>{c(E,this).includes(e)||c(E,this).push(e)})})}c(E,this).includes(c(w,this))||u(E,this,[c(w,this)]),u(R,this,p.top-6),u(S,this,parseInt(h.height,10)),c(T,this).style.top=`${c(R,this)+c(S,this)}px`,c(T,this).style[this.inlineDir]=`${p.start}px`,c(T,this).style.width=`${l}px`,this.hot.rootElement.appendChild(c(T,this))}refreshHandlePosition(){c(T,this).style.top=`${c(R,this)+c(y,this)}px`}setupGuidePosition(){const e=parseInt((0,s.outerWidth)(c(T,this)),10),t=parseInt(c(T,this).style[this.inlineDir],10)+e,r=this.hot.view.getTableWidth();(0,s.addClass)(c(T,this),"active"),(0,s.addClass)(c(N,this),"active"),c(N,this).style.top=c(T,this).style.top,c(N,this).style[this.inlineDir]=`${t}px`,c(N,this).style.width=r-e+"px",this.hot.rootElement.appendChild(c(N,this))}refreshGuidePosition(){c(N,this).style.top=c(T,this).style.top}hideHandleAndGuide(){(0,s.removeClass)(c(T,this),"active"),(0,s.removeClass)(c(N,this),"active")}checkIfRowHeader(e){const t=(0,s.closest)(e,["TBODY"],this.hot.rootElement),{inlineStartOverlay:r,topInlineStartCornerOverlay:n,bottomInlineStartCornerOverlay:i}=this.hot.view._wt.wtOverlays;return[r.clone.wtTable.TBODY,n.clone.wtTable.TBODY,i.clone.wtTable.TBODY].includes(t)}getClosestTHParent(e){return"TABLE"!==e.tagName?"TH"===e.tagName?e:this.getClosestTHParent(e.parentNode):null}getActualRowHeight(e){const t=this.hot.view._wt.wtTable.getRowHeight(e);return void 0!==t&&c(C,this)<t?t:c(C,this)}afterMouseDownTimeout(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{const n=this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!0);void 0!==n&&u(C,this,n),this.setManualSize(t,c(C,this)),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!0),r&&e()};if(c(b,this)>=2){c(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,this),e=>{t(e,!0)})}u(b,this,0),u(M,this,null)}bindEvents(){const{rootElement:e,rootWindow:t}=this.hot;this.eventManager.addEventListener(e,"mouseover",e=>d(x,this,L).call(this,e)),this.eventManager.addEventListener(e,"mousedown",e=>d(x,this,D).call(this,e)),this.eventManager.addEventListener(t,"mousemove",e=>d(x,this,k).call(this,e)),this.eventManager.addEventListener(t,"mouseup",()=>d(x,this,H).call(this)),this.eventManager.addEventListener(c(T,this),"contextmenu",()=>d(x,this,F).call(this))}destroy(){super.destroy()}}function L(e){if(!(0,s.isDetached)(e.target)&&!0!==c(A,this)&&this.checkIfRowHeader(e.target)){const t=this.getClosestTHParent(e.target);t&&(c(_,this)||this.setupHandlePosition(t))}}function D(e){(0,s.hasClass)(e.target,"manualRowResizer")&&(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),u(v,this,e.pageY),u(C,this,c(S,this)))}function k(e){c(_,this)&&(u(y,this,c(S,this)+(e.pageY-c(v,this))),(0,i.arrayEach)(c(E,this),e=>{u(C,this,this.setManualSize(e,c(y,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition())}function H(){const e=()=>{this.hot.view.adjustElementsSize(),this.hot.render()},t=(t,r)=>{this.hot.runHooks("beforeRowResize",this.getActualRowHeight(t),t,!1),r&&e(),this.saveManualRowHeights(),this.hot.runHooks("afterRowResize",this.getActualRowHeight(t),t,!1)};if(c(_,this)){if(this.hideHandleAndGuide(),u(_,this,!1),c(C,this)!==c(S,this)){c(E,this).length>1?((0,i.arrayEach)(c(E,this),e=>{t(e)}),e()):(0,i.arrayEach)(c(E,this),e=>{t(e,!0)})}this.setupHandlePosition(c(m,this))}}function F(){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 U(e,t){let r=e;if(this.enabled){const e=this.hot.toPhysicalRow(t),s=c(I,this).getValueAtIndex(e);var n;if(this.hot.getSettings()[g]&&s)r=null!==(n=this.hot.getPlugin("autoRowSize"))&&void 0!==n&&n.isEnabled()?Math.max(s,null!=r?r:0):s}return r}function V(){const e=this.hot.getSettings()[g],t=this.loadManualRowHeights();this.hot.batchExecution(()=>{void 0!==t?t.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)}):Array.isArray(e)?(e.forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)}),u(O,this,e)):!0===e&&Array.isArray(c(O,this))&&c(O,this).forEach((e,t)=>{c(I,this).setValueAtIndex(t,e)})},!0)}t.ManualRowResize=P},62551:()=>{},62579:(e,t,r)=>{"use strict";var n,s,i,o=r(69540),a=r(94266),l=r(15176),h=r(20637),u=r(19451),c=r(65415),d=r(57041),g=r(48099),p="Object already initialized",f=a.TypeError,m=a.WeakMap;if(o||c.state){var w=c.state||(c.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,n=function(e,t){if(w.has(e))throw new f(p);return t.facade=e,w.set(e,t),t},s=function(e){return w.get(e)||{}},i=function(e){return w.has(e)}}else{var E=d("state");g[E]=!0,n=function(e,t){if(u(e,E))throw new f(p);return t.facade=e,h(e,E,t),t},s=function(e){return u(e,E)?e[E]:{}},i=function(e){return u(e,E)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=s(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},62580:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91812);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.UndoRedo=n.UndoRedo},62623:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(53209);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.TrimRows=n.TrimRows},63036:(e,t,r)=>{"use strict";t.__esModule=!0,t.getAllCommands=function(){return[n.command,s.command,i.command,o.command,a.command,l.command]};var n=r(66790),s=r(48894),i=r(38461),o=r(2668),a=r(41316),l=r(36286)},63259:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91698),s=r(5022);const i=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:i,editor:n.TextEditor,renderer:s.textRenderer}},63260:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.BaseAction{constructor(e){let{currentSortState:t,newSortState:r}=e;super("col_sort"),(0,s.default)(this,"previousSortState",void 0),(0,s.default)(this,"nextSortState",void 0),this.previousSortState=t,this.nextSortState=r}static startRegisteringEvents(e,t){e.addHook("beforeColumnSort",(e,r,n)=>{n&&t.done(()=>new o({currentSortState:e,newSortState:r}))})}undo(e,t){const r=e.getPlugin("columnSorting"),n=e.getPlugin("multiColumnSorting"),s=n.isEnabled()?n:r;this.previousSortState.length?s.sort(this.previousSortState):s.clearSort(),t()}redo(e,t){const r=e.getPlugin("columnSorting"),n=e.getPlugin("multiColumnSorting");(n.isEnabled()?n:r).sort(this.nextSortState),t()}}t.ColumnSortAction=o},63301:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356);var s=n(r(24300)),i=r(4407),o=r(21389),a=r(99242),l=n(r(50496));class h{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(0,s.default)(this,"indexedValues",[]),(0,s.default)(this,"initValueOrFn",void 0),this.initValueOrFn=e}getValues(){return this.indexedValues}getValueAtIndex(e){const t=this.indexedValues;if(e<t.length)return t[e]}setValues(e){this.indexedValues=e.slice(),this.runLocalHooks("change")}setValueAtIndex(e,t){return e<this.indexedValues.length&&(this.indexedValues[e]=t,this.runLocalHooks("change"),!0)}clear(){this.setDefaultValues()}getLength(){return this.getValues().length}setDefaultValues(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.indexedValues.length;this.indexedValues.length=0,(0,a.isFunction)(this.initValueOrFn)?(0,i.rangeEach)(e-1,e=>this.indexedValues.push(this.initValueOrFn(e))):(0,i.rangeEach)(e-1,()=>this.indexedValues.push(this.initValueOrFn)),this.runLocalHooks("change")}init(e){return this.setDefaultValues(e),this.runLocalHooks("init"),this}insert(){this.runLocalHooks("change")}remove(){this.runLocalHooks("change")}destroy(){this.clearLocalHooks(),this.indexedValues=null,this.initValueOrFn=null}}t.IndexMap=h,(0,o.mixin)(h,l.default)},63453:()=>{},63470:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356),r(34478),r(29810),r(31143),r(940);var n=r(6083),s=r(21389),i=r(58231),o=r(99242),a=r(97934),l=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)),h=r(31075),u=r(11492),c=r(88236),d=r(3166),g=r(44876);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){return e.get(E(e,t))}function w(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")}const y="multipleSelect.itemBox";var C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakSet;class A extends u.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUIMultipleSelect",value:[]})}constructor(e,t){var r,n;super(e,(0,s.extend)(A.DEFAULTS,t)),f(r=this,n=_),n.add(r),p(this,C,[]),p(this,v,void 0),p(this,S,void 0),p(this,R,void 0),p(this,T,void 0),p(this,N,void 0),w(R,this,new c.InputUI(this.hot,{placeholder:l.FILTERS_BUTTONS_PLACEHOLDER_SEARCH,className:"htUIMultipleSelectSearch"})),w(T,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_SELECT_ALL,className:"htUISelectAll"})),w(N,this,new d.LinkUI(this.hot,{textContent:l.FILTERS_BUTTONS_CLEAR,className:"htUIClearAll"})),this.registerHooks()}getItemsBox(){return m(v,this)}registerHooks(){m(R,this).addLocalHook("keydown",e=>E(_,this,M).call(this,e)),m(R,this).addLocalHook("input",e=>E(_,this,b).call(this,e)),m(T,this).addLocalHook("click",e=>E(_,this,I).call(this,e)),m(N,this).addLocalHook("click",e=>E(_,this,O).call(this,e))}setItems(e){var t;w(C,this,e),null===(t=m(v,this))||void 0===t||t.loadData(m(C,this))}setLocale(e){w(S,this,e)}getLocale(){return m(S,this)}getItems(){return[...m(C,this)]}getValue(){return function(e){const t=[];return e.forEach(e=>{e.checked&&t.push(e.value)}),t}(m(C,this))}getSearchInputElement(){return m(R,this)}getSelectAllElement(){return m(T,this)}getClearAllElement(){return m(N,this)}isSelectedAllValues(){return m(C,this).length===this.getValue().length}build(){super.build();const{rootDocument:e}=this.hot,t=e.createElement("div"),r=new u.BaseUI(this.hot,{className:"htUISelectionControls",children:[m(T,this),m(N,this)]});this._element.appendChild(m(R,this).element),this._element.appendChild(r.element),this._element.appendChild(t);const s=t=>{var r;if(!this._element)return;null===(r=m(v,this))||void 0===r||r.destroy(),(0,n.addClass)(t,"htUIMultipleSelectHot"),w(v,this,new this.hot.constructor(t,{data:m(C,this),columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],beforeRenderer:(e,t,r,n,s,i)=>{e.title=i.instance.getDataAtRowProp(t,i.label.property)},afterListen:()=>{this.runLocalHooks("focus",this)},beforeOnCellMouseUp:()=>{m(v,this).listen()},modifyColWidth:t=>{const r=m(v,this).container.scrollWidth-(0,n.getScrollbarWidth)(e);return void 0!==t&&t<r?r:t},maxCols:1,autoWrapCol:!0,height:110,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},themeName:this.hot.getCurrentThemeName(),layoutDirection:this.hot.isRtl()?"rtl":"ltr"})),m(v,this).init();const s=m(v,this).getShortcutManager().getContext("grid");s.removeShortcutsByKeys(["Tab"]),s.removeShortcutsByKeys(["Shift","Tab"]),s.addShortcut({keys:[["Escape"]],callback:e=>{this.runLocalHooks("keydown",e,this)},group:y}),s.addShortcut({keys:[["Tab"],["Shift","Tab"]],callback:e=>{m(v,this).deselectCell(),this.runLocalHooks("keydown",e,this),this.runLocalHooks("listTabKeydown",e,this)},group:y})};s(t),this.hot._registerTimeout(()=>s(t),100)}focus(){this.isBuilt()&&m(v,this).listen()}reset(){m(R,this).reset(),m(T,this).reset(),m(N,this).reset()}update(){this.isBuilt()&&(m(v,this).loadData(function(e,t){const r=(0,g.createArrayAssertion)(t);return e.map(e=>(e.checked=r(e.value),e))}(m(C,this),this.options.value)),super.update())}destroy(){var e;null===(e=m(v,this))||void 0===e||e.destroy(),m(R,this).destroy(),m(N,this).destroy(),m(T,this).destroy(),w(R,this,null),w(N,this,null),w(T,this,null),w(v,this,null),w(C,this,null),super.destroy()}}function b(e){const t=e.target.value.toLocaleLowerCase(this.getLocale());let r;r=""===t?[...m(C,this)]:m(C,this).filter(e=>`${e.value}`.toLocaleLowerCase(this.getLocale()).indexOf(t)>=0),m(v,this).loadData(r)}function M(e){this.runLocalHooks("keydown",e,this);(0,o.partial)(i.isKey,e.keyCode)("ARROW_DOWN")&&(e.preventDefault(),(0,h.stopImmediatePropagation)(e),m(v,this).listen(),m(v,this).selectCell(0,0))}function I(e){const t=[];e.preventDefault(),m(v,this).getSourceData().forEach((e,r)=>{e.checked=!0,t.push((0,a.dataRowToChangesArray)(e,r)[0])}),m(v,this).setSourceDataAtCell(t)}function O(e){const t=[];e.preventDefault(),m(v,this).getSourceData().forEach((e,r)=>{e.checked=!1,t.push((0,a.dataRowToChangesArray)(e,r)[0])}),m(v,this).setSourceDataAtCell(t)}t.MultipleSelectUI=A;t.default=A},63775:()=>{},63947:(e,t,r)=>{"use strict";t.__esModule=!0,t.rowHeaderScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e).getComputedRowTarget(t);e.scrollViewportTo({row:r},()=>{const t=!!e.getSettings().rowHeaders;(0,n.scrollWindowToCell)(e.getCell(r,t?-1:0,!0))})}};var n=r(62147)},63991:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{activeHeaderClassName:t,...r}=e;return new i.default({className:t,...r,selectionType:s.HIGHLIGHT_ACTIVE_HEADER_TYPE})};var s=r(74216),i=n(r(44982))},64039:(e,t,r)=>{"use strict";var n=r(72820),s=r(82683),i=r(22208),o=r(40761),a=r(39372),l=r(56643);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=s(this),r=i(t),n=arguments.length;if(n){l(r+n);for(var h=r;h--;){var u=h+n;h in t?t[u]=t[h]:a(t,u)}for(var c=0;c<n;c++)t[c]=arguments[c]}return o(t,r+n)}})},64078:()=>{},64276:(e,t,r)=>{"use strict";var n=r(77439),s=r(96858),i=r(20637),o=r(47833),a=r(12033),l=r(62579),h=r(85988),u=r(97259).IteratorPrototype,c=r(92351),d=r(99793),g=r(64735),p=a("toStringTag"),f="IteratorHelper",m="WrapForValidIterator",w="normal",E="throw",y=l.set,C=function(e){var t=l.getterFor(e?m:f);return o(s(u),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return c(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:c(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),s=r.iterator;if(r.done=!0,e){var i=h(s,"return");return i?n(i,s):c(void 0,!0)}if(r.inner)try{d(r.inner.iterator,w)}catch(e){return d(s,E,e)}if(r.openIters)try{g(r.openIters,w)}catch(e){return d(s,E,e)}return s&&d(s,w),c(void 0,!0)}})},v=C(!0),S=C(!1);i(S,p,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,s){s?(s.iterator=n.iterator,s.next=n.next):s=n,s.type=t?m:f,s.returnHandlerResult=!!r,s.nextHandler=e,s.counter=0,s.done=!1,y(this,s)};return n.prototype=t?v:S,n}},64417:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,name(){const e=this.getSelected();let t=0;if(e)if(e.length>1)t=1;else{const[,r,,n]=e[0];r-n!==0&&(t=1)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_REMOVE_COLUMN,t)},callback(){this.alter("remove_col",(0,n.transformSelectionToColumnDistance)(this),null,"ContextMenu.removeColumn")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeActive();if(!e)return!0;if(e.isSingleHeader()&&e.highlight.col<0)return!0;const t=this.countCols();return this.selection.isSelectedByCorner()?0===t:this.selection.isSelectedByRowHeader()||0===t},hidden(){return!this.getSettings().allowRemoveColumn}}};var n=r(3442),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));const i=t.KEY="remove_col"},64588:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.RenderedAllColumnsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startColumn",0),(0,s.default)(this,"endColumn",0),(0,s.default)(this,"startPosition",0),(0,s.default)(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:t}=e;this.count=t,this.endColumn=this.count-1}process(){}finalize(){}}},64605:()=>{},64735:(e,t,r)=>{"use strict";var n=r(99793);e.exports=function(e,t,r){for(var s=e.length-1;s>=0;s--)if(void 0!==e[s])try{r=n(e[s].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},64765:(e,t,r)=>{"use strict";t.__esModule=!0,t.hideColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(n.toSingleLine`The passed node is not the last node on the tree. Only for\x20
269
269
  the last node, the hide column modification can be applied.`);const{crossHiddenColumns:r}=e.data;if(r.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:r}=e;r.crossHiddenColumns.push(t),r.colspan>1?r.colspan-=1:r.isHidden=!0})},r(52490),r(99356);var n=r(42685)},64919:(e,t,r)=>{"use strict";var n=r(86121);e.exports="NODE"===n},64922:(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(27727);const o=t.CONDITION_NAME="empty";function a(e){return(0,i.isEmpty)(e.value)}(0,s.registerCondition)(o,a,{name:n.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},64954:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(95484),s=r(6083);const i=t.EDITOR_TYPE="checkbox";class o extends n.BaseEditor{static get EDITOR_TYPE(){return i}beginEditing(e,t){if(t&&"mouseup"===t.type&&"TD"===t.target.nodeName){const e=this.TD.querySelector('input[type="checkbox"]');(0,s.hasClass)(e,"htBadValue")||e.click()}}finishEditing(){}init(){}open(){}close(){}getValue(){}setValue(){}focus(){}}t.CheckboxEditor=o},65032:()=>{},65092:()=>{},65109:()=>{},65158:(e,t,r)=>{"use strict";var n=r(42326),s=r(40981).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},65266:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91447);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.dropdownValidator=n.dropdownValidator},65280:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72914);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ColumnSorting=n.ColumnSorting,t.APPEND_COLUMN_CONFIG_STRATEGY=n.APPEND_COLUMN_CONFIG_STRATEGY,t.REPLACE_COLUMN_CONFIG_STRATEGY=n.REPLACE_COLUMN_CONFIG_STRATEGY},65415:(e,t,r)=>{"use strict";var n=r(33973),s=r(94266),i=r(2847),o="__core-js_shared__",a=e.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.45.1",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},65441:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new i.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=r(74216),i=n(r(44982))},65455:(e,t,r)=>{"use strict";var n=r(15105),s=r(44827),i=r(14815),o=r(99470),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},65546:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(99242),o=r(21389),a=n(r(50496));class l{constructor(e){(0,s.default)(this,"wasLastActionShow",!0),(0,s.default)(this,"showDebounced",null),(0,s.default)(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{!1===this.wasLastActionShow&&this.runLocalHooks("hide")},250)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250;this.showDebounced=(0,i.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,o.mixin)(l,a.default);t.default=l},65724:(e,t,r)=>{"use strict";var n=r(72820),s=r(81566),i=r(34701);n({target:"Set",proto:!0,real:!0,forced:!r(12874)("union")||!i("union")},{union:s})},65876:()=>{},66064:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300));t.Cursor=class{constructor(e,t){(0,s.default)(this,"top",void 0),(0,s.default)(this,"topRelative",void 0),(0,s.default)(this,"left",void 0),(0,s.default)(this,"leftRelative",void 0),(0,s.default)(this,"scrollTop",void 0),(0,s.default)(this,"scrollLeft",void 0),(0,s.default)(this,"cellHeight",void 0),(0,s.default)(this,"cellWidth",void 0);const r=t.scrollY,n=t.scrollX;let i,o,a,l,h,u;this.rootWindow=t,this.type=this.getSourceType(e),"literal"===this.type?(i=parseInt(e.top,10),a=parseInt(e.left,10),h=e.height||0,u=e.width||0,o=i,l=a,i+=r,a+=n):"event"===this.type&&(i=parseInt(e.pageY,10),a=parseInt(e.pageX,10),h=e.target.clientHeight,u=e.target.clientWidth,o=i-r,l=a-n),this.top=i,this.topRelative=o,this.left=a,this.leftRelative=l,this.scrollTop=r,this.scrollLeft=n,this.cellHeight=h,this.cellWidth=u}getSourceType(e){let t="literal";return e instanceof Event&&(t="event"),t}fitsAbove(e){return this.topRelative>=e.offsetHeight}fitsBelow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.innerHeight;return this.topRelative+e.offsetHeight<=t}fitsOnRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.rootWindow.document.documentElement.clientWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t}fitsOnLeft(e){return this.leftRelative>=e.offsetWidth}}},66070:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getRenderedValue=l,t.numericRenderer=h,r(99356);var s=n(r(6558)),i=r(5022),o=r(4407);const a=t.RENDERER_TYPE="numeric";function l(e,t){if((0,o.isNumeric)(e)){const r=t.numericFormat,n=r&&r.culture||"-",i=r&&r.pattern;if(void 0!==n&&!s.default.languages()[n]){const e=n.replace("-",""),t=s.default.allLanguages?s.default.allLanguages[n]:s.default[e];t&&s.default.registerLanguage(t)}s.default.setLanguage(n),e=(0,s.default)(e).format(i||"0")}return e}function h(e,t,r,n,s,a,h){let u=a;if((0,o.isNumeric)(u)){let e=[];if(Array.isArray(h.className))e=h.className;else{var c;const t=null!==(c=h.className)&&void 0!==c?c:"";t.length&&(e=t.split(" "))}u=l(u,h),e.indexOf("htLeft")<0&&e.indexOf("htCenter")<0&&e.indexOf("htRight")<0&&e.indexOf("htJustify")<0&&e.push("htRight"),e.indexOf("htNumeric")<0&&e.push("htNumeric"),h.className=e.join(" "),t.dir="ltr"}(0,i.textRenderer)(e,t,r,n,s,u,h)}h.RENDERER_TYPE=a},66123:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var n=r(6083);function s(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}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 WeakSet;function d(e){let[t,r,s,i]=o(h,this).getCorners();if(t<0&&s<0||r<0&&i<0)return;const{wtTable:a}=o(u,this),l=t!==s||r!==i;if(r=Math.max(r,0),i=Math.max(i,0),t=Math.max(t,0),s=Math.max(s,0),l){if(r=Math.max(r,a.getFirstRenderedColumn()),i=Math.min(i,a.getLastRenderedColumn()),t=Math.max(t,a.getFirstRenderedRow()),s=Math.min(s,a.getLastRenderedRow()),i<r||s<t)return}else{const e=a.getCell(o(u,this).createCellCoords(t,r));if(!(0,n.isHTMLElement)(e))return}for(let n=t;n<=s;n+=1)for(let t=r;t<=i;t+=1)e(n,t)}function g(e){const{wtTable:t}=o(u,this),r=t.getRenderedRowsCount(),n=t.getRenderedColumnsCount();for(let s=0;s<r;s+=1){const r=t.rowFilter.renderedToSource(s);for(let s=0;s<n;s+=1)e(r,t.columnFilter.renderedToSource(s))}}t.SelectionScanner=class{constructor(){var e,t;i(e=this,t=c),t.add(e),s(this,h,void 0),s(this,u,void 0)}setActiveOverlay(e){return a(u,this,e),this}setActiveSelection(e){return a(h,this,e),this}scan(){const e=o(h,this).settings.selectionType,t=new Set;return"active-header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"area"===e?this.scanCellsRange(e=>t.add(e)):"focus"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e)),this.scanCellsRange(e=>t.add(e))):"fill"===e?this.scanCellsRange(e=>t.add(e)):"header"===e?(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanRowsInHeadersRange(e=>t.add(e))):"row"===e?(this.scanRowsInHeadersRange(e=>t.add(e)),this.scanRowsInCellsRange(e=>t.add(e))):"column"===e&&(this.scanColumnsInHeadersRange(e=>t.add(e)),this.scanColumnsInCellsRange(e=>t.add(e))),t}scanColumnsInHeadersRange(e){const[t,r,n,s]=o(h,this).getCorners(),{wtTable:i}=o(u,this),a=i.getRenderedColumnsCount(),l=i.getColumnHeadersCount();let c=0;for(let d=-i.getRowHeadersCount();d<a;d++){const a=i.columnFilter.renderedToSource(d);if(!(a<r||a>s)){for(let d=-l;d<0;d++){if(d<t||d>n)continue;const g=d+l;let p=i.getColumnHeader(a,g);const f=o(u,this).getSetting("onBeforeHighlightingColumnHeader",a,g,{selectionType:o(h,this).settings.selectionType,columnCursor:c,selectionWidth:s-r+1});null!==f&&(f!==a&&(p=i.getColumnHeader(f,g)),e(p))}c+=1}}}scanRowsInHeadersRange(e){const[t,r,n,s]=o(h,this).getCorners(),{wtTable:i}=o(u,this),a=i.getRenderedRowsCount(),l=i.getRowHeadersCount();let c=0;for(let d=-i.getColumnHeadersCount();d<a;d++){const a=i.rowFilter.renderedToSource(d);if(!(a<t||a>n)){for(let d=-l;d<0;d++){if(d<r||d>s)continue;const g=d+l;let p=i.getRowHeader(a,g);const f=o(u,this).getSetting("onBeforeHighlightingRowHeader",a,g,{selectionType:o(h,this).settings.selectionType,rowCursor:c,selectionHeight:n-t+1});null!==f&&(f!==a&&(p=i.getRowHeader(f,g)),e(p))}c+=1}}}scanCellsRange(e){const{wtTable:t}=o(u,this);l(c,this,d).call(this,(r,s)=>{const i=t.getCell(o(u,this).createCellCoords(r,s)),a=o(u,this).getSetting("onAfterDrawSelection",r,s,o(h,this).settings.layerLevel);"string"==typeof a&&(0,n.addClass)(i,a),e(i)})}scanRowsInCellsRange(e){const[t,,r]=o(h,this).getCorners(),{wtTable:n}=o(u,this);l(c,this,g).call(this,(s,i)=>{if(s>=t&&s<=r){const t=n.getCell(o(u,this).createCellCoords(s,i));e(t)}})}scanColumnsInCellsRange(e){const[,t,,r]=o(h,this).getCorners(),{wtTable:n}=o(u,this);l(c,this,g).call(this,(s,i)=>{if(i>=t&&i<=r){const t=n.getCell(o(u,this).createCellCoords(s,i));e(t)}})}}},66133:(e,t,r)=>{"use strict";r(3518)},66147:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_REDO)},callback(){this.getPlugin("undoRedo").redo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isRedoAvailable()}}};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="redo"},66228:(e,t,r)=>{"use strict";var n=r(19098),s=r(82683),i=Math.floor,o=n("".charAt),a=n("".replace),l=n("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,c,d){var g=r+e.length,p=n.length,f=u;return void 0!==c&&(c=s(c),f=h),a(d,f,function(s,a){var h;switch(o(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,g);case"<":h=c[l(a,1,-1)];break;default:var u=+a;if(0===u)return s;if(u>p){var d=i(u/10);return 0===d?s:d<=p?void 0===n[d-1]?o(a,1):n[d-1]+o(a,1):s}h=n[u-1]}return void 0===h?"":h})}},66431:(e,t,r)=>{"use strict";var n=r(16937),s=r(53872);e.exports=function(e){return n(s(e))}},66635:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(6083),o=r(8864),a=r(92850),l=r(13618);class h extends a.BaseRenderer{constructor(){super("TD"),(0,s.default)(this,"orderViews",new WeakMap),(0,s.default)(this,"sourceRowIndex",0)}obtainOrderView(e){let t;return this.orderViews.has(e)?t=this.orderViews.get(e):(t=new o.SharedOrderView(e,e=>this.nodesPool.obtain(this.sourceRowIndex,e),this.nodeType),this.orderViews.set(e,t)),t}render(){const{rowsToRender:e,columnsToRender:t,rows:r,rowHeaders:n}=this.table;for(let a=0;a<e;a++){const e=this.table.renderedRowToSource(a),h=r.getRenderedNode(a);this.sourceRowIndex=e;const u=this.obtainOrderView(h),c=n.obtainOrderView(h);u.prependView(c).setSize(t).setOffset(0).start();for(let r=0;r<t;r++){u.render();const t=this.table.renderedColumnToSource(r),n=u.getCurrentNode();var s,o;if((0,i.hasClass)(n,"hide")||(n.className=""),n.removeAttribute("style"),n.removeAttribute("dir"),(0,i.removeAttribute)(n,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(e,t,n),this.table.isAriaEnabled())(0,i.setAttribute)(n,[...n.hasAttribute("role")?[]:[(0,l.A11Y_GRIDCELL)()],(0,l.A11Y_TABINDEX)(-1),(0,l.A11Y_COLINDEX)(t+(null!==(s=null===(o=this.table.rowUtils)||void 0===o||null===(o=o.dataAccessObject)||void 0===o?void 0:o.rowHeaders.length)&&void 0!==s?s:0)+1)])}u.end()}}}t.CellsRenderer=h},66790:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},66813:(e,t)=>{"use strict";t.__esModule=!0,t.isNullishOrNaN=function(e){return null==e||isNaN(e)}},67046:(e,t,r)=>{"use strict";var n=r(72820),s=r(57536);n({target:"Set",proto:!0,real:!0,forced:!r(12874)("isSubsetOf",function(e){return e})},{isSubsetOf:s})},67145:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(92850),o=r(96357),a=r(42685),l=r(8864),h=r(6083),u=r(13618);const c="ht__row_even",d="ht__row_odd";let g=!1;class p extends i.BaseRenderer{constructor(e){super("TR",e),(0,s.default)(this,"orderView",void 0),this.orderView=new l.OrderView(e,e=>this.nodesPool.obtain(e))}getRenderedNode(e){return this.orderView.getNode(e)}hasStaleContent(e){return this.orderView.hasStaleContent(e)}render(){const{rowsToRender:e}=this.table;!g&&e>1e3&&(g=!0,(0,o.warn)(a.toSingleLine`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
270
270
  Consider limiting the number of rendered rows by specifying the table height and/or\x20
271
271
  turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&(0,h.setAttribute)(this.rootNode,[(0,u.A11Y_ROWGROUP)()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let n=0;n<e;n++){this.orderView.render();const e=this.orderView.getCurrentNode(),s=this.table.renderedRowToSource(n);var t,r;if(this.table.isAriaEnabled())(0,h.setAttribute)(e,[(0,u.A11Y_ROW)(),(0,u.A11Y_ROWINDEX)(s+(null!==(t=null===(r=this.table.rowUtils)||void 0===r||null===(r=r.dataAccessObject)||void 0===r?void 0:r.columnHeaders.length)&&void 0!==t?t:0)+1)]);(s+1)%2==0?(0,h.hasClass)(e,c)||((0,h.removeClass)(e,d),(0,h.addClass)(e,c)):(0,h.hasClass)(e,d)||((0,h.removeClass)(e,c),(0,h.addClass)(e,d))}this.orderView.end()}}t.RowsRenderer=p},67320:()=>{},67772:()=>{},67774:(e,t,r)=>{"use strict";var n=r(2382),s=r(98363),i=r(70906);e.exports=function(e,t,r){n?s.f(e,t,i(0,r)):e[t]=r}},67964:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(12314);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.CustomBorders=n.CustomBorders},67987:(e,t,r)=>{"use strict";var n=r(94266),s=r(53001),i=n.RegExp,o=!s(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",s=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)s(a,o[a]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:o}},67992:(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(31143),r(33098);var s=n(r(24300)),i=r(53383),o=n(r(97354)),a=n(r(18711)),l=n(r(23861)),h=n(r(89595)),u=r(96357),c=r(97934),d=r(1531),g=r(88453),p=n(r(75803));function f(e,t,r){m(e,t),t.set(e,r)}function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t){return e.get(y(e,t))}function E(e,t,r){return e.set(y(e,t),r),r}function y(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="nestedRows",v=t.PLUGIN_PRIORITY=300,S=C;var R=new WeakMap,T=new WeakMap,N=new WeakSet;class _ extends i.BasePlugin{constructor(){var e,t;super(...arguments),m(e=this,t=N),t.add(e),(0,s.default)(this,"dataManager",null),(0,s.default)(this,"headersUI",null),(0,s.default)(this,"collapsedRowsMap",null),f(this,R,!1),f(this,T,!1)}static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return v}isEnabled(){return!!this.hot.getSettings()[C]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new d.TrimmingMap),this.dataManager=new o.default(this,this.hot),this.collapsingUI=new a.default(this,this.hot),this.headersUI=new l.default(this,this.hot),this.contextMenuUI=new h.default(this,this.hot),this.rowMoveController=new p.default(this),this.addHook("afterInit",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,V).call(e,...r)}),this.addHook("beforeViewRender",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,B).call(e,...r)}),this.addHook("modifyRowData",function(){return e.onModifyRowData(...arguments)}),this.addHook("modifySourceLength",function(){return e.onModifySourceLength(...arguments)}),this.addHook("beforeDataSplice",function(){return e.onBeforeDataSplice(...arguments)}),this.addHook("filterData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,M).call(e,...r)}),this.addHook("afterContextMenuDefaultOptions",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,I).call(e,...r)}),this.addHook("afterGetRowHeader",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,O).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 y(N,e,b).call(e,...r)}),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,L).call(e,...r)}),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,P).call(e,...r)}),this.addHook("beforeAddChild",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,D).call(e,...r)}),this.addHook("afterAddChild",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,k).call(e,...r)}),this.addHook("beforeDetachChild",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,H).call(e,...r)}),this.addHook("afterDetachChild",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,F).call(e,...r)}),this.addHook("modifyRowHeaderWidth",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,x).call(e,...r)}),this.addHook("afterCreateRow",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,U).call(e,...r)}),this.addHook("beforeRowMove",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,A).call(e,...r)}),this.addHook("beforeLoadData",e=>y(N,this,W).call(this,e)),this.addHook("beforeUpdateData",e=>y(N,this,W).call(this,e)),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("nestedRows"),this.unregisterShortcuts(),super.disablePlugin()}updatePlugin(){this.disablePlugin();const e=this.dataManager.getData();this.enablePlugin(),this.dataManager.updateWithData(e),super.updatePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive(),t=this.collapsingUI.translateTrimmedRow(e.row);return this.collapsingUI.areChildrenCollapsed(t)?this.collapsingUI.expandChildren(t):this.collapsingUI.collapseChildren(t),!1},runOnlyIf:()=>{var e,t;const r=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return r&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(r)&&-1===r.col&&r.row>=0},group:S,relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}disableCoreAPIModifiers(){E(T,this,!0)}enableCoreAPIModifiers(){E(T,this,!1)}onModifyRowData(e){if(!w(T,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!w(T,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,r){return!(!w(T,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,r),!1)}destroy(){super.destroy()}}function A(e,t,r,n){return this.rowMoveController.onBeforeRowMove(e,t,r,n)}function b(e,t,r){this.collapsingUI.toggleState(e,t,r)}function M(e,t,r){return this.collapsingUI.collapsedRowsStash.stash(),this.collapsingUI.collapsedRowsStash.trimStash(r[0],t),this.collapsingUI.collapsedRowsStash.shiftStash(r[0],null,-1*t),this.dataManager.filterData(e,t,r),E(R,this,!0),this.dataManager.getData().slice()}function I(e){return this.contextMenuUI.appendOptions(e)}function O(e,t){this.headersUI.appendLevelIndicators(e,t)}function x(e){return Math.max(this.headersUI.rowHeaderWidthCache,e)}function P(e,t,r,n){n!==this.pluginName&&this.hot._registerTimeout(()=>{E(R,this,!1),this.headersUI.updateRowHeaderWidth(),this.collapsingUI.collapsedRowsStash.applyStash()})}function L(e,t,r){const n=Array.from(r.reduce((e,t)=>{if(this.dataManager.isParent(t)){const r=this.dataManager.getDataObject(t).__children;return e.add(t),Array.isArray(r)&&r.forEach(t=>e.add(this.dataManager.getRowIndex(t))),e}return e.add(t)},new Set));r.length=0,r.push(...n)}function D(){this.collapsingUI.collapsedRowsStash.stash()}function k(e,t){this.collapsingUI.collapsedRowsStash.shiftStash(this.dataManager.getRowIndex(t)),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function H(){this.collapsingUI.collapsedRowsStash.stash()}function F(e,t,r){this.collapsingUI.collapsedRowsStash.shiftStash(r,null,-1),this.collapsingUI.collapsedRowsStash.applyStash(),this.headersUI.updateRowHeaderWidth()}function U(){this.dataManager.rewriteCache()}function V(){this.headersUI.updateRowHeaderWidth()}function B(e,t){w(R,this)&&(t.skipRender=!0)}function W(e){if(!(0,c.isArrayOfObjects)(e))return(0,u.error)("The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled."),this.hot.getSettings()[C]=!1,void this.disablePlugin();this.dataManager.setData(e),this.dataManager.rewriteCache()}t.NestedRows=_},68207:()=>{},68225:()=>{},68502:(e,t,r)=>{"use strict";t.__esModule=!0,r(99356);var n=r(40785),s=r(21389);const i={_hooksStorage:Object.create(null),addHook(e,t){return this._hooksStorage[e]||(this._hooksStorage[e]=[]),this.hot.addHook(e,t),this._hooksStorage[e].push(t),this},removeHooksByKey(e){(0,n.arrayEach)(this._hooksStorage[e]||[],t=>{this.hot.removeHook(e,t)})},clearHooks(){(0,s.objectEach)(this._hooksStorage,(e,t)=>this.removeHooksByKey(t)),this._hooksStorage={}}};(0,s.defineGetter)(i,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=i},68830:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"selectAllCells",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.selectAll(!0,!0,{disableHeadersHighlight:!0}),t.markEndSource()}}},68850:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(42685),i=r(21389),o=n(r(50496)),a=r(6083),l=r(13618);function h(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 u(e,t){return e.get(d(e,t))}function c(e,t,r){return e.set(d(e,t),r),r}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="ht-dialog",p=`\n<div data-ref="dialogElement" class="${g}">\n <div data-ref="contentWrapperElement" class="${g}__content-wrapper">\n <div data-ref="contentElement" class="${g}__content"></div>\n </div>\n</div>\n`;var f=new WeakMap,m=new WeakMap,w=new WeakMap;class E{constructor(e){let{rootElement:t,isRtl:r}=e;h(this,f,void 0),h(this,m,void 0),h(this,w,!1),c(f,this,t),c(w,this,r),this.install()}install(){var e;if(null!==(e=u(m,this))&&void 0!==e&&e.dialogElement)return;const t=s.html`${p}`;c(m,this,t.refs);const{dialogElement:r}=u(m,this);r.addEventListener("click",()=>this.runLocalHooks("clickDialogElement")),(0,a.setAttribute)(r,[(0,l.A11Y_MODAL)(),(0,l.A11Y_TABINDEX)(-1),["dir",u(w,this)?"rtl":"ltr"]]),u(f,this).after(t.fragment)}getDialogElement(){return u(m,this).dialogElement}isInsideDialog(e){return u(m,this).dialogElement.contains(e)}updateDialog(e){let{isVisible:t,content:r,customClassName:n,background:s,contentBackground:i,animation:o,a11y:h}=e;const{dialogElement:c,contentElement:d}=u(m,this),p=n?` ${n}`:"",f=s?` ${g}--background-${s}`:"",w=o?` ${g}--animation`:"",E=t?` ${g}--show`:"";c.className=`${g}${p}${f}${w}${E}`,(0,a.setAttribute)(c,["alertdialog"===h.role?(0,l.A11Y_ALERTDIALOG)():(0,l.A11Y_DIALOG)()]),h.ariaLabel&&!h.ariaLabelledby?(0,a.setAttribute)(c,[h.ariaLabel?(0,l.A11Y_LABEL)(h.ariaLabel):void 0]):(0,a.removeAttribute)(c,"aria-label"),h.ariaLabelledby?(0,a.setAttribute)(c,[(0,l.A11Y_LABELED_BY)(h.ariaLabelledby)]):(0,a.removeAttribute)(c,"aria-labelledby"),h.ariaDescribedby?(0,a.setAttribute)(c,[(0,l.A11Y_DESCRIBED_BY)(h.ariaDescribedby)]):(0,a.removeAttribute)(c,"aria-describedby");const y=i?` ${g}__content--background`:"";return d.className=`${g}__content${y}`,d.innerHTML="","string"==typeof r?(0,a.fastInnerHTML)(d,r):(r instanceof HTMLElement||r instanceof DocumentFragment)&&d.appendChild(r),this}showDialog(e){const{dialogElement:t}=u(m,this);return t.style.display="block",e&&t.offsetHeight,(0,a.addClass)(t,`${g}--show`),this}hideDialog(e){const{dialogElement:t}=u(m,this);return(0,a.removeClass)(t,`${g}--show`),e?t.addEventListener("transitionend",()=>{(0,a.hasClass)(t,`${g}--show`)||(t.style.display="none")},{once:!0}):t.style.display="none",this}focusDialog(){u(m,this).dialogElement.focus()}updateWidth(e){return u(m,this).dialogElement.style.width=`${e}px`,this}updateHeight(e){return u(m,this).dialogElement.style.height=`calc(100% - ${e}px)`,this}destroyDialog(){var e;null===(e=u(m,this))||void 0===e||e.dialogElement.remove(),c(m,this,null)}}t.DialogUI=E,(0,i.mixin)(E,o.default)},68881:()=>{},69002:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.autocompleteRenderer=u;var s=r(49856),i=r(5022),o=n(r(46427)),a=r(6083),l=r(13618);const h=t.RENDERER_TYPE="autocomplete";function u(e,t,r,n,h,u,c){const{rootDocument:d}=e,g=c.allowHtml?s.htmlRenderer:i.textRenderer,p=d.createElement("DIV"),f=e.getSettings().ariaTags;if(p.className="htAutocompleteArrow",f&&p.setAttribute(...(0,l.A11Y_HIDDEN)()),p.appendChild(d.createTextNode(String.fromCharCode(9660))),g.apply(this,[e,t,r,n,h,u,c]),t.firstChild||t.appendChild(d.createTextNode(String.fromCharCode(160))),t.insertBefore(p,t.firstChild),(0,a.addClass)(t,"htAutocomplete"),!e.acArrowListener){const s=new o.default(e);e.acArrowListener=function(s){(0,a.hasClass)(s.target,"htAutocompleteArrow")&&e.view._wt.getSetting("onCellDblClick",null,e._createCellCoords(r,n),t)},s.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",()=>{s.destroy()})}}u.RENDERER_TYPE=h},69019:(e,t,r)=>{"use strict";var n=r(19682),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},69102:()=>{},69124:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356);var n=r(21389),s=r(40785),i=r(1202);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){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")}const u=t.HEADER_CONFIGURABLE_PROPS=["label","collapsible"];var c=new WeakMap,d=new WeakMap,g=new WeakMap;t.default=class{constructor(){o(this,c,[]),o(this,d,0),o(this,g,1/0)}setColumnsLimit(e){l(g,this,e)}setData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];l(c,this,(0,i.normalizeSettings)(e,a(g,this))),l(d,this,a(c,this).length)}getData(){return a(c,this)}mergeWith(e){(0,s.arrayEach)(e,e=>{let{row:t,col:r,...s}=e;const i=this.getHeaderSettings(t,r);null!==i&&(0,n.extend)(i,s,u)})}map(e){(0,s.arrayEach)(a(c,this),t=>{(0,s.arrayEach)(t,t=>{const r=e({...t});(0,n.isObject)(r)&&(0,n.extend)(t,r,u)})})}getHeaderSettings(e,t){var r;if(e>=a(d,this)||e<0)return null;const n=a(c,this)[e];return!1===Array.isArray(n)||t>=n.length?null:null!==(r=n[t])&&void 0!==r?r:null}getHeadersSettings(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const n=[];if(e>=a(d,this)||e<0)return n;const s=a(c,this)[e];let i=0;for(let e=t;e<s.length;e++){const t=s[e];if(t.isPlaceholder)throw new Error("The first column settings cannot overlap the other header layers");if(i+=t.colspan,n.push(t),t.colspan>1&&(e+=t.colspan-1),i===r)break;if(i>r)throw new Error("The last column settings cannot overlap the other header layers")}return n}getLayersCount(){return a(d,this)}getColumnsCount(){return a(d,this)>0?a(c,this)[0].length:0}clear(){l(c,this,[]),l(d,this,0)}}},69264:(e,t,r)=>{"use strict";t.__esModule=!0,t.RegisteredEditor=c,t.getEditorInstance=t._getEditorInstance=function(e,t){let r;if("function"==typeof e)i.get(e)||d(null,e),r=i.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');r=a(e)}if(!r)throw Error(`No editor registered under name "${e}"`);return r.getInstance(t)},t.getEditor=function(e){if("function"==typeof e)return e;if(!l(e))throw Error(`No registered editor found under "${e}" name`);return a(e).getConstructor()},t.registerEditor=d,r(52490);var n=r(17715),s=r(55585);const i=new WeakMap,{register:o,getItem:a,hasItem:l,getNames:h,getValues:u}=(0,s.staticRegister)("editors");function c(e){const t={},r=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new r(e)),t[e.guid]},n.Hooks.getSingleton().add("afterDestroy",function(){t[this.guid]=null})}function d(e,t){e&&"string"!=typeof e&&(e=(t=e).EDITOR_TYPE);const r=new c(t);"string"==typeof e&&o(e,r),i.set(t,r)}t.getRegisteredEditors=u,t.getRegisteredEditorNames=h,t.hasEditor=l},69373:()=>{},69431:(e,t,r)=>{"use strict";var n=r(52355),s=r(65455);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},69471:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottomInlineEnd",callback(e){const{selection:t,rowIndexMapper:r,columnIndexMapper:n}=e,s=parseInt(e.getSettings().fixedRowsBottom,10),i=r.getNearestNotHiddenIndex(e.countRows()-s-1,-1),o=n.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(i,o)),t.markEndSource()}}},69488:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(71426);t.EDITOR_TYPE=n.EDITOR_TYPE,t.HandsontableEditor=n.HandsontableEditor},69540:(e,t,r)=>{"use strict";var n=r(94266),s=r(44827),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},69558:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.PartiallyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:r,zeroBasedScrollOffset:n,innerViewportHeight:s}=t;r<=n&&(this.startRow=e),r>=n&&r<=s&&null===this.startRow&&(this.startRow=e),this.endRow=e}finalize(e){var t;const{scrollOffset:r,viewportHeight:n,horizontalScrollbarHeight:s,totalRows:i,needReverse:o,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&o)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(this.startRow-=1,e>=n-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;r+n-s<0||r>a.at(-1)+l?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},69614:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"start":"end";return{key:"borders:right",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_RIGHT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(r,n){const i=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(n,t,i)}}};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)},70095:(e,t,r)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===E.indexOf(e)&&(y[e]=t)},t.predefinedItems=function(){const e={};return(0,n.objectEach)(y,(t,r)=>{e[r]=t()}),e};var n=r(21389),s=w(r(32930));t.ALIGNMENT=s.KEY;var i=w(r(20536));t.CLEAR_COLUMN=i.KEY;var o=w(r(7248));t.COLUMN_LEFT=o.KEY;var a=w(r(33075));t.COLUMN_RIGHT=a.KEY;var l=w(r(93701));t.READ_ONLY=l.KEY;var h=w(r(66147));t.REDO=h.KEY;var u=w(r(64417));t.REMOVE_COLUMN=u.KEY;var c=w(r(42623));t.REMOVE_ROW=c.KEY;var d=w(r(97642));t.ROW_ABOVE=d.KEY;var g=w(r(58710));t.ROW_BELOW=g.KEY;var p=w(r(75216));t.SEPARATOR=p.KEY;var f=w(r(16182));t.NO_ITEMS=f.KEY;var m=w(r(29221));function w(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(w=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)}t.UNDO=m.KEY;const E=t.ITEMS=[d.KEY,g.KEY,o.KEY,a.KEY,i.KEY,c.KEY,u.KEY,m.KEY,h.KEY,l.KEY,s.KEY,p.KEY,f.KEY],y={[p.KEY]:p.default,[f.KEY]:f.default,[d.KEY]:d.default,[g.KEY]:g.default,[o.KEY]:o.default,[a.KEY]:a.default,[i.KEY]:i.default,[c.KEY]:c.default,[u.KEY]:u.default,[m.KEY]:m.default,[h.KEY]:h.default,[l.KEY]:l.default,[s.KEY]:s.default}},70133:(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="none";function o(){return!0}(0,s.registerCondition)(i,o,{name:n.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},70444:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.checkboxRenderer=y,r(99356),r(34478),r(66133),r(940);var s=r(73488),i=n(r(46427)),o=r(6083),a=r(27727),l=r(88453),h=r(17715),u=r(13618),c=r(15230);const d=new WeakMap,g=new WeakMap,p="htBadValue",f="data-row",m="data-col",w="checkboxRenderer",E=t.RENDERER_TYPE="checkbox";function y(e,t,r,n,h,E,y){const{rootDocument:v}=e,S=e.getSettings().ariaTags;s.baseRenderer.apply(this,[e,t,r,n,h,E,y]),function(e){let t=g.get(e);if(!t){const{rootElement:r}=e;t=new i.default(e),t.addEventListener(r,"click",t=>function(e,t){const{target:r}=e;if(!C(r))return;if(!r.hasAttribute(f)||!r.hasAttribute(m))return;const n=parseInt(r.getAttribute(f),10),s=parseInt(r.getAttribute(m),10),i=t.getCellMeta(n,s);i.readOnly&&e.preventDefault()}(t,e)),t.addEventListener(r,"mouseup",t=>function(e,t){const{target:r}=e;if(!C(r))return;if(!r.hasAttribute(f)||!r.hasAttribute(m))return;setTimeout(t.listen,10)}(t,e)),t.addEventListener(r,"change",t=>function(e,t){const{target:r}=e;if(!C(r))return;if(!r.hasAttribute(f)||!r.hasAttribute(m))return;const n=parseInt(r.getAttribute(f),10),s=parseInt(r.getAttribute(m),10),i=t.getCellMeta(n,s);if(!i.readOnly){let r=null;r=e.target.checked?void 0===i.uncheckedTemplate||i.checkedTemplate:void 0!==i.uncheckedTemplate&&i.uncheckedTemplate,t.setDataAtCell(n,s,r)}}(t,e)),g.set(e,t)}}(e);let R=function(e){const t=e.createElement("input");return t.className="htCheckboxRendererInput",t.type="checkbox",t.setAttribute("tabindex","-1"),t.cloneNode(!1)}(v);const T=y.label;let N=!1;if(void 0===y.checkedTemplate&&(y.checkedTemplate=!0),void 0===y.uncheckedTemplate&&(y.uncheckedTemplate=!1),(0,o.empty)(t),E===y.checkedTemplate||(0,a.stringify)(E).toLocaleLowerCase(y.locale)===(0,a.stringify)(y.checkedTemplate).toLocaleLowerCase(y.locale)?R.checked=!0:E===y.uncheckedTemplate||(0,a.stringify)(E).toLocaleLowerCase(y.locale)===(0,a.stringify)(y.uncheckedTemplate).toLocaleLowerCase(y.locale)?R.checked=!1:(0,a.isEmpty)(E)?(0,o.addClass)(R,"noValue"):(R.style.display="none",(0,o.addClass)(R,p),N=!0),(0,o.setAttribute)(R,[[f,r],[m,n]]),S&&(0,o.setAttribute)(R,[(0,u.A11Y_LABEL)(R.checked?e.getTranslatedPhrase(c.CHECKBOX_CHECKED):e.getTranslatedPhrase(c.CHECKBOX_UNCHECKED)),(0,u.A11Y_CHECKED)(R.checked),(0,u.A11Y_CHECKBOX)()]),!N&&T){let s="";if(T.value)s="function"==typeof T.value?T.value.call(this,r,n,h,E):T.value;else if(T.property){const t=e.getDataAtRowProp(r,T.property);s=null!==t?t:""}const i=function(e,t,r){const n=e.createElement("label");n.className="htCheckboxRendererLabel "+(r?"fullWidth":"");const s=e.createTextNode(t);if(r){const t=e.createElement("span");t.appendChild(s),n.appendChild(t)}else n.appendChild(s);return n.cloneNode(!0)}(v,s,!0!==T.separated);"before"===T.position?T.separated?(t.appendChild(i),t.appendChild(R)):(i.appendChild(R),R=i):T.position&&"after"!==T.position||(T.separated?(t.appendChild(R),t.appendChild(i)):(i.insertBefore(R,i.firstChild),R=i))}function _(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const r=e.getSelectedRange(),n=[],s=new Map;let i=[],o=0;if(r){for(let a=0;a<r.length;a++){const{row:l,col:h}=r[a].getTopStartCorner(),{row:u,col:c}=r[a].getBottomEndCorner();for(let r=l;r<=u;r+=1)for(let a=h;a<=c;a+=1){const l=e.getCellMeta(r,a);if(l.hidden)continue;const h={checkedTemplate:l.checkedTemplate,uncheckedTemplate:l.uncheckedTemplate};if("checkbox"!==l.type){!0!==t||l.readOnly||(s.has(n.length)?s.set(n.length,[...s.get(n.length),[r,a,null]]):s.set(n.length,[[r,a,null]]));continue}if(!0===l.readOnly)continue;void 0===l.checkedTemplate&&(l.checkedTemplate=!0),void 0===l.uncheckedTemplate&&(l.uncheckedTemplate=!1);const u=e.getDataAtCell(r,a);!1===t?[l.checkedTemplate,l.checkedTemplate.toString()].includes(u)?i.push([r,a,l.uncheckedTemplate,h]):[l.uncheckedTemplate,l.uncheckedTemplate.toString(),null,void 0].includes(u)&&i.push([r,a,l.checkedTemplate,h]):i.push([r,a,l.uncheckedTemplate,h]),o+=1}n.push(o),o=0}i=i.every(e=>{let[,,t]=e;return t===i[0][2]})?i.map(e=>{let[t,r,n]=e;return[t,r,n]}):i.map(e=>{let[t,r,,n]=e;return[t,r,n.checkedTemplate]}),i.length>0&&n.forEach((t,r)=>{let n=i.splice(0,t);s.size&&s.has(r)&&(n=[...n,...s.get(r)]),e.setDataAtCell(n)})}}function A(){const t=e.getSelectedRange();if(t){for(let r=0;r<t.length;r++){const n=t[r].getTopStartCorner(),s=t[r].getBottomEndCorner();for(let t=n.row;t<=s.row;t++)for(let r=n.col;r<=s.col;r++){if(e.getCellMeta(t,r).readOnly)continue;const n=e.getCell(t,r);if((0,o.isHTMLElement)(n)){if(n.querySelectorAll("input[type=checkbox]").length>0)return!0}}}return!1}}(!T||T&&!T.separated)&&t.appendChild(R),N&&t.appendChild(v.createTextNode("#bad-value#")),d.has(e)||(d.set(e,!0),function(){const t=e.getShortcutManager().getContext("grid"),r={group:w,relativeToGroup:l.EDITOR_EDIT_GROUP,position:"before"};t.addShortcuts([{keys:[["space"]],callback:()=>(_(),!A()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isCell()}},{keys:[["enter"]],callback:()=>(_(),!A()),runOnlyIf:()=>{const t=e.getSelectedRangeActive();return e.getSettings().enterBeginsEditing&&(null==t?void 0:t.highlight.isCell())&&!e.selection.isMultiple()}},{keys:[["delete"],["backspace"]],callback:()=>(_(!0),!A()),runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeActive())||void 0===t?void 0:t.highlight.isCell()}}],r)}())}function C(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}h.Hooks.getSingleton().add("modifyAutoColumnSizeSeed",function(e,t,r){const{label:n,type:s,row:i,column:o,prop:a}=t;if(s===E){if(n){const{value:t,property:s}=n;let l=r;if(t)l="function"==typeof t?t(i,o,a,r):t;else if(s){const e=this.getDataAtRowProp(i,s);l=null!==e?e:r}e=l}return e}}),y.RENDERER_TYPE=E},70737:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeActive().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===n&&(n=-1),t.setRangeStart(e._createCellCoords(n,r))}}},70792:(e,t,r)=>{"use strict";var n=r(44827),s=r(30617),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},70906:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},71178:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"commentsAddEdit",name(){var t;const r=null===(t=this.getSelectedRangeActive())||void 0===t?void 0:t.highlight;return null!=r&&r.isCell()&&e.getCommentAtCell(r.row,r.col)?this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_EDIT_COMMENT):this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ADD_COMMENT)},callback(){const t=this.getSelectedRangeActive();e.setRange(t),e.show(),e.focusEditor()},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))},71219:()=>{},71268:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=n(r(37539)),o=n(r(11265)),a=r(95484),l=r(91698),h=r(6083),u=r(21389),c=r(58231),d=r(55924);function g(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function p(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 f=t.EDITOR_TYPE="date",m="dateEditor";var w=new WeakSet;class E extends l.TextEditor{constructor(){super(...arguments),g(this,w),(0,s.default)(this,"parentDestroyed",!1),(0,s.default)(this,"$datePicker",null)}static get EDITOR_TYPE(){return f}init(){if("function"!=typeof i.default)throw new Error("You need to include moment.js to your project.");if("function"!=typeof o.default)throw new Error("You need to include Pikaday to your project.");super.init(),this.hot.addHook("afterDestroy",()=>{this.parentDestroyed=!0,this.destroyElements()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}createElements(){super.createElements(),this.datePicker=this.hot.rootDocument.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,this.datePicker.setAttribute("dir",this.hot.isRtl()?"rtl":"ltr"),(0,h.addClass)(this.datePicker,"htDatepickerHolder"),this.hot.rootPortalElement.appendChild(this.datePicker),this.eventManager.addEventListener(this.datePicker,"mousedown",e=>{(0,h.hasClass)(e.target,"pika-day")&&this.hideDatepicker(),e.stopPropagation()})}destroyElements(){const e=this.datePicker.parentNode;this.$datePicker&&this.$datePicker.destroy(),e&&e.removeChild(this.datePicker)}prepare(e,t,r,n,s,i){super.prepare(e,t,r,n,s,i)}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.hot.getShortcutManager().getContext("editor");this.showDatepicker(e),super.open(),t.addShortcuts([{keys:[["ArrowLeft"]],callback:()=>{this.$datePicker.adjustDate("subtract",1)}},{keys:[["ArrowRight"]],callback:()=>{this.$datePicker.adjustDate("add",1)}},{keys:[["ArrowUp"]],callback:()=>{this.$datePicker.adjustDate("subtract",7)}},{keys:[["ArrowDown"]],callback:()=>{this.$datePicker.adjustDate("add",7)}}],{group:m})}close(){var e;null!==(e=this.$datePicker)&&void 0!==e&&e.destroy&&this.$datePicker.destroy(),this.hot._registerTimeout(()=>{const e=this.hot._getEditorManager();e.closeEditor(),this.hot.view.render(),e.prepareEditor()});this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(m),super.close()}finishEditing(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.finishEditing(e,t)}showDatepicker(e){const t=p(w,this,y).call(this),r=this.hot.view.isMouseDown(),n=!!e&&(0,c.isFunctionKey)(e.keyCode);let s;this.datePicker.style.display="block",this.$datePicker=new o.default(this.getDatePickerConfig()),"function"==typeof this.$datePicker.useMoment&&this.$datePicker.useMoment(i.default),this.$datePicker._onInputFocus=function(){},this.originalValue?(s=this.originalValue,(0,i.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(s,t),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),n||r||this.setValue("")):this.cellProperties.defaultDate?(s=this.cellProperties.defaultDate,(0,i.default)(s,t,!0).isValid()&&this.$datePicker.setMoment((0,i.default)(s,t),!0),n||r||this.setValue("")):this.$datePicker.gotoToday()}hideDatepicker(){this.datePickerStyle.display="none",this.$datePicker.hide()}getDatePickerConfig(){var e;const t=this.TEXTAREA,r={};this.cellProperties&&this.cellProperties.datePickerConfig&&(0,u.deepExtend)(r,this.cellProperties.datePickerConfig);const n=r.onSelect,s=r.onClose;return r.field=t,r.trigger=t,r.container=this.datePicker,r.bound=!1,r.keyboardInput=!1,r.format=null!==(e=r.format)&&void 0!==e?e:p(w,this,y).call(this),r.reposition=r.reposition||!1,r.isRTL=!1,r.onSelect=e=>{let t=e;isNaN(t.getTime())||(t=(0,i.default)(t).format(p(w,this,y).call(this))),this.setValue(t),n&&n(),(0,d.isMobileBrowser)()&&this.hideDatepicker()},r.onClose=()=>{this.parentDestroyed||this.finishEditing(!1),s&&s()},r}refreshDimensions(e){var t;if(super.refreshDimensions(e),this.state!==a.EDITOR_STATE.EDITING)return;if(this.TD=this.getEditedCell(),!this.TD)return void this.hideDatepicker();const{rowIndexMapper:r,columnIndexMapper:n}=this.hot,{wtOverlays:s}=this.hot.view._wt,{wtTable:i}=null!==(t=s.getParentOverlay(this.TD))&&void 0!==t?t:this.hot.view._wt,o=r.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleRow()),l=r.getVisualFromRenderableIndex(i.getLastPartiallyVisibleRow()),u=n.getVisualFromRenderableIndex(i.getFirstPartiallyVisibleColumn()),c=n.getVisualFromRenderableIndex(i.getLastPartiallyVisibleColumn());if(this.row>=o&&this.row<=l&&this.col>=u&&this.col<=c){const e=this.TD.getBoundingClientRect();this.datePickerStyle.top=`${this.hot.rootWindow.pageYOffset+e.top+(0,h.outerHeight)(this.TD)}px`;let t=this.hot.rootWindow.pageXOffset;this.hot.isRtl()?t+=e.right-(0,h.outerWidth)(this.datePicker):t+=e.left,this.datePickerStyle.left=`${t}px`}else this.hideDatepicker()}}function y(){var e;return null!==(e=this.cellProperties.dateFormat)&&void 0!==e?e:"DD/MM/YYYY"}t.DateEditor=E},71362:(e,t,r)=>{"use strict";var n=r(43290),s=r(70792),i=r(19682),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},71426:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(91698),o=r(6083),a=r(31075),l=r(21389),h=r(88453);const u="handsontableEditor",c=t.EDITOR_TYPE="handsontable";class d extends i.TextEditor{constructor(){super(...arguments),(0,s.default)(this,"isFlippedVertically",!1),(0,s.default)(this,"isFlippedHorizontally",!1)}static get EDITOR_TYPE(){return c}open(){super.open();const e=this.htContainer.style;this.htEditor&&(this.htEditor.destroy(),e.width="",e.height="",e.overflow=""),"none"===e.display&&(e.display=""),this.htEditor=new this.hot.constructor(this.htContainer,this.htOptions),this.htEditor.init(),this.htEditor.rootElement.style.display="",this.cellProperties.strict?this.htEditor.selectCell(0,0):this.htEditor.deselectCell(),(0,o.setCaretPosition)(this.TEXTAREA,0,this.TEXTAREA.value.length),this.htEditor.updateSettings({width:this.getTargetDropdownWidth(),height:this.getTargetDropdownHeight()}),this.refreshDimensions(),this.flipDropdownVerticallyIfNeeded(),this.flipDropdownHorizontallyIfNeeded()}close(){this.htEditor&&(this.htEditor.rootElement.style.display="none"),this.removeHooksByKey("beforeKeyDown"),super.close()}prepare(e,t,r,n,s,i){super.prepare(e,t,r,n,s,i);const o=this,a={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,autoWrapCol:!1,autoWrapRow:!1,ariaTags:!1,themeName:this.hot.getCurrentThemeName(),afterOnCellMouseDown(e,t){const r=this.getSourceData(t.row,t.col);void 0!==r&&o.setValue(r),o.hot.destroyEditor()},preventWheel:!0,layoutDirection:this.hot.isRtl()?"rtl":"ltr"};this.cellProperties.handsontable&&(0,l.extend)(a,i.handsontable),this.htOptions=a}beginEditing(e,t){const r=this.hot.getSettings().onBeginEditing;r&&!1===r()||super.beginEditing(e,t)}createElements(){super.createElements();const e=this.hot.rootDocument.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()}finishEditing(e,t,r){if(this.htEditor&&this.htEditor.isListening()&&this.hot.listen(),this.htEditor&&this.htEditor.getSelectedActive()){const e=this.htEditor.getValue();void 0!==e&&this.setValue(e)}super.finishEditing(e,t,r)}flipDropdownVerticallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let r=t.top;if(e.isVerticallyScrollableByWindow()){const t=e.getTableOffset().top-this.hot.rootWindow.scrollY;r=Math.max(r+t,0)}const n=this.getDropdownHeight(),s=e.getWorkspaceHeight()-r-t.height,i=n>s&&r>s+t.height;return i?this.flipDropdownVertically():this.unflipDropdownVertically(),{isFlipped:i,spaceAbove:r,spaceBelow:s}}flipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top=-this.getDropdownHeight()+"px",this.isFlippedVertically=!0}unflipDropdownVertically(){const e=this.htEditor.rootElement.style;e.position="absolute",e.top="",this.isFlippedVertically=!1}flipDropdownHorizontallyIfNeeded(){const{view:e}=this.hot,t=this.getEditedCellRect();let r=t.start+t.width;if(e.isHorizontallyScrollableByWindow()){const t=e.getTableOffset().left-this.hot.rootWindow.scrollX;r=Math.max(r+t,0)}const n=this.getDropdownWidth(),s=e.getWorkspaceWidth()-r+t.width,i=n>s&&r>s;return i?this.flipDropdownHorizontally():this.unflipDropdownHorizontally(),{isFlipped:i,spaceInlineStart:r,spaceInlineEnd:s}}flipDropdownHorizontally(){const e=this.htEditor.rootElement.style,{width:t}=this.getEditedCellRect();e.position="absolute",e[this.hot.isRtl()?"right":"left"]=-(this.getDropdownWidth()-t)+"px",this.isFlippedHorizontally=!0}unflipDropdownHorizontally(){const e=this.htEditor.rootElement.style;e.position="absolute",e[this.hot.isRtl()?"right":"left"]="",this.isFlippedHorizontally=!1}getDropdownHeight(){return this.htEditor.getTableHeight()}getDropdownWidth(){return this.htEditor.getTableWidth()}getTargetDropdownWidth(){return this.htEditor.view.getTableWidth()}getTargetDropdownHeight(){return this.htEditor.view.getTableHeight()+1}assignHooks(){this.hot.addHook("afterDestroy",()=>{var e;null===(e=this.htEditor)||void 0===e||e.destroy()}),this.hot.addHook("afterSetTheme",(e,t)=>{t||this.close()})}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor");super.registerShortcuts();const t={group:u,relativeToGroup:h.EDITOR_EDIT_GROUP,position:"before"},r=(e,t)=>{const r=this.htEditor;if(void 0!==e&&(e<0||this.isFlippedVertically&&e>r.countRows()-1?r.deselectCell():r.selectCell(e,0),r.getData().length))return t.preventDefault(),(0,a.stopImmediatePropagation)(t),this.hot.listen(),this.TEXTAREA.focus(),!1};e.addShortcuts([{keys:[["ArrowUp"]],callback:e=>{const t=this.htEditor;let n,s;return!t.getSelectedActive()&&this.isFlippedVertically?n=t.countRows()-1:t.getSelectedActive()&&(this.isFlippedVertically?(s=t.getSelectedActive()[0],n=Math.max(0,s-1)):(s=t.getSelectedActive()[0],n=s-1)),r(n,e)},preventDefault:!1},{keys:[["ArrowDown"]],callback:e=>{const t=this.htEditor;let n,s;if(t.getSelectedActive()||this.isFlippedVertically){if(t.getSelectedActive())if(this.isFlippedVertically)n=t.getSelectedActive()[0]+1;else if(!this.isFlippedVertically){const e=t.countRows()-1;s=t.getSelectedActive()[0],n=Math.min(e,s+1)}}else n=0;return r(n,e)},preventDefault:!1}],t)}unregisterShortcuts(){super.unregisterShortcuts();this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(u)}}t.HandsontableEditor=d},71449:(e,t,r)=>{"use strict";var n=r(47057),s=r(85988),i=r(49887),o=r(17511),a=r(12033)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},71468:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520),i=r(96792),o=r(94811),a=r(48369),l=s.add,h=s.has,u=s.remove;e.exports=function(e){var t=n(this),r=o(e).getIterator(),s=i(t);return a(r,function(e){h(t,e)?u(s,e):l(s,e)}),s}},71470:(e,t,r)=>{"use strict";t.__esModule=!0,t.getClassesToAdd=function(e,t,r){const s=[];if(!1===r)return s;e.isColumnSorted(t)&&e.getNumberOfSortedColumns()>1&&s.push(`${n}-${e.getIndexOfColumnInSortQueue(t)+1}`);return s},t.getClassesToRemove=function(e){const t=e.className.split(" "),r=new RegExp(`^${n}-[0-9]{1,2}$`);return t.filter(e=>r.test(e))},r(99356),r(34478),r(29810);const n="sort"},71622:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...r}=e;return new i.default({className:"current",headerAttributes:[(0,o.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...r,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=r(74216),i=n(r(44982)),o=r(13618)},71976:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(81263);t.CELL_TYPE=n.CELL_TYPE,t.PasswordCellType=n.PasswordCellType},72032:(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(21389),a=r(4407),l=r(27727);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="search",d=t.PLUGIN_PRIORITY=190,g=function(e,t,r,n,s){e.getCellMeta(t,r).isSearchResult=s},p=function(e,t,r){return!((0,l.isUndefined)(e)||null===e||!e.toLocaleLowerCase||0===e.length)&&(!(0,l.isUndefined)(t)&&null!==t&&-1!==t.toString().toLocaleLowerCase(r.locale).indexOf(e.toLocaleLowerCase(r.locale)))};var f=new WeakSet;class m extends i.BasePlugin{constructor(){super(...arguments),h(this,f),(0,s.default)(this,"callback",g),(0,s.default)(this,"queryMethod",p),(0,s.default)(this,"searchResultClass","htSearchResult")}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return d}isEnabled(){return this.hot.getSettings()[c]}enablePlugin(){var e=this;if(this.enabled)return;const t=this.hot.getSettings()[c];this.updatePluginSettings(t),this.addHook("beforeRenderer",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return u(f,e,w).call(e,...r)}),super.enablePlugin()}disablePlugin(){var e=this;const t=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return u(f,e,w).call(e,...r)};this.hot.addHook("beforeRenderer",t),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("beforeRenderer",t)}),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}query(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCallback(),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getQueryMethod();const n=this.hot.countRows(),s=this.hot.countCols(),i=[],o=this.hot;return(0,a.rangeEach)(0,n-1,n=>{(0,a.rangeEach)(0,s-1,s=>{const a=this.hot.getDataAtCell(n,s),l=this.hot.getCellMeta(n,s),h=l.search.callback||t,u=(l.search.queryMethod||r)(e,a,l);if(u){const e={row:n,col:s,data:a};i.push(e)}h&&h(o,n,s,a,u)})}),i}getCallback(){return this.callback}setCallback(e){this.callback=e}getQueryMethod(){return this.queryMethod}setQueryMethod(e){this.queryMethod=e}getSearchResultClass(){return this.searchResultClass}setSearchResultClass(e){this.searchResultClass=e}updatePluginSettings(e){(0,o.isObject)(e)&&(e.searchResultClass&&this.setSearchResultClass(e.searchResultClass),e.queryMethod&&this.setQueryMethod(e.queryMethod),e.callback&&this.setCallback(e.callback))}destroy(){super.destroy()}}function w(e,t,r,n,s,i){const o=i.className||[];let a=[];"string"==typeof o?a=o.split(" "):a.push(...o),this.isEnabled()&&i.isSearchResult?a.includes(this.searchResultClass)||a.push(`${this.searchResultClass}`):a.includes(this.searchResultClass)&&a.splice(a.indexOf(this.searchResultClass),1),i.className=a.join(" ")}t.Search=m},72109:()=>{},72368:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineEnd",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=r.getNearestNotHiddenIndex(e.countCols()-1,-1),a=s.clone();a.col=n.col,t.markSource("keyboard"),t.setRangeStart(a,void 0,!1,n.clone()),t.setRangeEnd(e._createCellCoords(i.row,o)),t.markEndSource()}}}},72380:(e,t)=>{"use strict";t.__esModule=!0;t.ACTIVE_HEADER_TYPE="active-header",t.HEADER_TYPE="header",t.AREA_TYPE="area",t.FOCUS_TYPE="focus",t.FILL_TYPE="fill",t.ROW_TYPE="row",t.COLUMN_TYPE="column",t.CUSTOM_SELECTION_TYPE="custom-selection"},72411:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(27600);class o extends i.PartiallyVisibleColumnsCalculationType{constructor(){super(...arguments),(0,s.default)(this,"columnStartOffset",0),(0,s.default)(this,"columnEndOffset",0)}finalize(e){var t;super.finalize(e);const{overrideFn:r,totalColumns:n,startPositions:s}=e;if(null!==this.startColumn&&"function"==typeof r){const e=this.startColumn,t=this.endColumn;r(this),this.columnStartOffset=e-this.startColumn,this.columnEndOffset=this.endColumn-t}this.startColumn<0&&(this.startColumn=0),this.startPosition=null!==(t=s[this.startColumn])&&void 0!==t?t:null,n<this.endColumn&&(this.endColumn=n-1),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)}}t.RenderedColumnsCalculationType=o},72578:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(80668);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Dialog=n.Dialog},72820:(e,t,r)=>{"use strict";var n=r(94266),s=r(32497).f,i=r(20637),o=r(61546),a=r(2847),l=r(31622),h=r(33850);e.exports=function(e,t){var r,u,c,d,g,p=e.target,f=e.global,m=e.stat;if(r=f?n:m?n[p]||a(p,{}):n[p]&&n[p].prototype)for(u in t){if(d=t[u],c=e.dontCallGetSet?(g=s(r,u))&&g.value:r[u],!h(f?u:p+(m?".":"#")+u,e.forced)&&void 0!==c){if(typeof d==typeof c)continue;l(d,c)}(e.sham||c&&c.sham)&&i(d,"sham",!0),o(r,u,d,e)}}},72914:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(34478),r(66133);var s=n(r(24300)),i=r(6083),o=r(27727),a=r(21389),l=r(99242),h=r(40785),u=r(53383),c=r(1531),d=r(17715),g=r(16311),p=r(88453),f=r(52665),m=r(38987),w=r(83434),E=r(2520),y=r(13618);function C(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function v(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 S=t.PLUGIN_KEY="columnSorting",R=t.PLUGIN_PRIORITY=50,T=t.APPEND_COLUMN_CONFIG_STRATEGY="append",N=t.REPLACE_COLUMN_CONFIG_STRATEGY="replace",_=S;(0,E.registerRootComparator)(S,w.rootComparator),d.Hooks.getSingleton().register("beforeColumnSort"),d.Hooks.getSingleton().register("afterColumnSort");const A=new WeakMap;var b=new WeakSet;class M extends u.BasePlugin{constructor(){super(...arguments),C(this,b),(0,s.default)(this,"columnStatesManager",null),(0,s.default)(this,"columnMetaCache",null),(0,s.default)(this,"pluginKey",S),(0,s.default)(this,"indexesSequenceCache",null)}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return R}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e=this;if(A.has(this.hot)&&A.get(this.hot)!==this.pluginKey)return this.hot.updateSettings({[this.pluginKey]:!1}),void(0,f.warnAboutPluginsConflict)(A.get(this.hot),this.pluginKey);this.enabled||(A.set(this.hot,this.pluginKey),this.columnStatesManager=new g.ColumnStatesManager(this.hot,`${this.pluginKey}.sortingStates`),this.columnMetaCache=new c.PhysicalIndexToValueMap(e=>{let t=this.hot.toVisualColumn(e);return null===t&&(t=e),this.getMergedPluginSettings(t)}),this.hot.columnIndexMapper.registerMap(`${this.pluginKey}.columnMeta`,this.columnMetaCache),this.addHook("afterGetColHeader",(e,t)=>v(b,this,O).call(this,e,t)),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(b,e,P).call(e,...r)}),this.addHook("afterOnCellMouseDown",(e,t)=>this.onAfterOnCellMouseDown(e,t)),this.addHook("afterInit",()=>v(b,this,I).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 v(b,e,x).call(e,...r)}),this.hot.view&&v(b,this,I).call(this),this.registerShortcuts(),super.enablePlugin())}disablePlugin(){const e=(e,t)=>{const r=(0,f.getHeaderSpanElement)(t);!1!==(0,f.isFirstLevelColumnHeader)(e,t)&&null!==r&&this.updateHeaderClasses(r)};A.delete(this.hot),this.hot.addHook("afterGetColHeader",e),this.hot.addHookOnce("afterViewRender",()=>{this.hot.removeHook("afterGetColHeader",e)}),this.hot.batchExecution(()=>{null!==this.indexesSequenceCache&&(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),this.hot.rowIndexMapper.unregisterMap(this.pluginKey),this.indexesSequenceCache=null)},!0),this.hot.columnIndexMapper.unregisterMap(`${this.pluginKey}.columnMeta`),this.columnStatesManager.destroy(),this.columnMetaCache=null,this.columnStatesManager=null,this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeActive();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const r=null===(e=this.hot.getSelectedRangeActive())||void 0===e?void 0:e.highlight;return r&&(null===(t=this.hot.getSelectedRangeActive())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(r)&&-1===r.row&&r.col>=0},relativeToGroup:p.EDITOR_EDIT_GROUP,position:"before",group:_})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(_)}sort(e){const t=this.getSortConfig(),r=this.getNormalizedSortConfigs(e),n=this.areValidSortConfigs(r);!1!==this.hot.runHooks("beforeColumnSort",t,r,n)&&(0===t.length&&null===this.indexesSequenceCache&&(this.indexesSequenceCache=this.hot.rowIndexMapper.registerMap(this.pluginKey,new c.IndexesSequence),this.indexesSequenceCache.setValues(this.hot.rowIndexMapper.getIndexesSequence())),n&&(this.columnStatesManager.setSortStates(r),this.sortByPresetSortStates(r),this.saveAllSortSettings(r)),this.hot.runHooks("afterColumnSort",t,n?r:t,n),n&&this.hot.render())}clearSort(){this.sort([])}isSorted(){return this.enabled&&!this.columnStatesManager.isListOfSortedColumnsEmpty()}getSortConfig(e){return(0,o.isDefined)(e)?this.columnStatesManager.getColumnSortState(e):this.columnStatesManager.getSortStates()}setSortConfig(e){const t=this.getNormalizedSortConfigs(e);this.areValidSortConfigs(t)&&this.columnStatesManager.setSortStates(t)}getNormalizedSortConfigs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(e)?e.slice(0,1):[e]}areValidSortConfigs(e){const t=this.hot.countCols();return(0,f.areValidSortStates)(e)&&e.every(e=>{let{column:r}=e;return r<=t&&r>=0})}saveAllSortSettings(e){const t=this.columnStatesManager.getAllColumnsProperties();t.initialConfig=(0,h.arrayMap)(e,e=>{let{column:t,...r}=e;return{column:this.hot.toPhysicalColumn(t),...r}}),this.hot.runHooks("persistentStateSave","columnSorting",t)}getAllSavedSortSettings(){const e={};this.hot.runHooks("persistentStateLoad","columnSorting",e);const t=e.value,r=e=>{let{column:t,...r}=e;return{column:this.hot.toVisualColumn(t),...r}};return(0,o.isDefined)(t)&&Array.isArray(t.initialConfig)&&(t.initialConfig=(0,h.arrayMap)(t.initialConfig,r)),t}getColumnNextConfig(e){const t=this.columnStatesManager.getSortOrderOfColumn(e);if((0,o.isDefined)(t)){const r=(0,f.getNextSortOrder)(t);return(0,o.isDefined)(r)?{column:e,sortOrder:r}:void 0}const r=this.hot.countCols();if(Number.isInteger(e)&&e>=0&&e<r)return{column:e,sortOrder:(0,f.getNextSortOrder)()}}getNextSortConfig(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T;const r=this.columnStatesManager.getIndexOfColumnInSortQueue(e),n=-1!==r,s=this.getSortConfig(),i=this.getColumnNextConfig(e);if(n){if((0,o.isUndefined)(i))return[...s.slice(0,r),...s.slice(r+1)];if(t===T)return[...s.slice(0,r),...s.slice(r+1),i];if(t===N)return[...s.slice(0,r),i,...s.slice(r+1)]}return(0,o.isDefined)(i)?s.concat(i):s}getPluginColumnConfig(e){if((0,a.isObject)(e)){const t=e[this.pluginKey];if((0,a.isObject)(t))return t}return{}}getMergedPluginSettings(e){const t=this.hot.getSettings()[this.pluginKey],r=this.columnStatesManager.getAllColumnsProperties(),n=this.hot.getCellMeta(0,e),s=Object.getPrototypeOf(n);return Array.isArray(s.columns)?Object.assign(r,t,this.getPluginColumnConfig(s.columns[e])):(0,l.isFunction)(s.columns)?Object.assign(r,t,this.getPluginColumnConfig(s.columns(e))):Object.assign(r,t)}getFirstCellSettings(e){const t=this.hot.getCellMeta(0,e),r=Object.create(t);return r[this.pluginKey]=this.columnMetaCache.getValueAtIndex(this.hot.toPhysicalColumn(e)),r}getNumberOfRowsToSort(e){const t=this.hot.getSettings();return t.maxRows<=e?t.maxRows:e-t.minSpareRows}sortByPresetSortStates(e){if(this.hot.rowIndexMapper.setIndexesSequence(this.indexesSequenceCache.getValues()),0===e.length)return;const t=[],r=this.hot.countRows(),n=t=>(0,h.arrayMap)(e,e=>this.hot.getDataAtCell(t,e.column));for(let e=0;e<this.getNumberOfRowsToSort(r);e+=1)t.push([this.hot.toPhysicalRow(e)].concat(n(e)));const s=(0,h.arrayMap)(t,e=>e[0]);(0,E.sort)(t,this.pluginKey,(0,h.arrayMap)(e,e=>e.sortOrder),(0,h.arrayMap)(e,e=>this.getFirstCellSettings(e.column)));for(let e=t.length;e<r;e+=1)t.push([e].concat(n(e)));const i=(0,h.arrayMap)(t,e=>e[0]),o=new Map((0,h.arrayMap)(s,(e,t)=>[e,i[t]])),a=(0,h.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),e=>o.has(e)?o.get(e):e);this.hot.rowIndexMapper.setIndexesSequence(a)}sortBySettings(e){if((0,a.isObject)(e)){this.columnStatesManager.updateAllColumnsProperties(e);const t=e.initialConfig;(Array.isArray(t)||(0,a.isObject)(t))&&this.sort(t)}else this.hot.render()}updateHeaderClasses(e){if((0,i.removeClass)(e,(0,m.getClassesToRemove)(e)),!1!==this.enabled){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(0,i.addClass)(e,(0,m.getClassesToAdd)(...r))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,o.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,i.hasClass)(e.target,f.HEADER_SPAN_CLASS)}onAfterOnCellMouseDown(e,t){if(!1!==(0,f.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)){this.hot.getShortcutManager().isCtrlPressed()&&(this.hot.deselectCell(),this.hot.selectColumns(t.col));const e=this.hot.getActiveEditor(),r=this.getColumnNextConfig(t.col);null!=e&&e.isOpened()&&this.hot.getCellValidator(e.row,e.col)?this.hot.addHookOnce("postAfterValidate",()=>{this.sort(r)}):this.sort(r)}}destroy(){var e;null===(e=this.columnStatesManager)||void 0===e||e.destroy(),super.destroy()}}function I(){const e=this.getAllSavedSortSettings();if((0,a.isObject)(e))this.sortBySettings(e);else{const e=this.hot.getSettings()[this.pluginKey];this.sortBySettings(e)}}function O(e,t){const r=(0,f.getHeaderSpanElement)(t);if(!1===(0,f.isFirstLevelColumnHeader)(e,t)||null===r)return;const n=this.getFirstCellSettings(e)[this.pluginKey],s=n.indicator,o=n.headerAction;if(this.updateHeaderClasses(r,this.columnStatesManager,e,s,o),this.hot.getSettings().ariaTags){const r=this.columnStatesManager.getSortOrderOfColumn(e);(0,i.setAttribute)(t,...(0,y.A11Y_SORT)(r?`${r}ending`:"none"))}}function x(e){!0===e&&this.hot.view&&v(b,this,I).call(this)}function P(e,t,r,n){!1!==(0,f.wasHeaderClickedProperly)(t.row,t.col,e)&&this.wasClickableHeaderClicked(e,t.col)&&this.hot.getShortcutManager().isCtrlPressed()&&(n.column=!0)}t.ColumnSorting=M},73016:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=i;var n=r(40697);const s=t.RENDERER_TYPE="dropdown";function i(e,t,r,s,i,o,a){n.autocompleteRenderer.apply(this,[e,t,r,s,i,o,a])}i.RENDERER_TYPE=s},73029:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(34478),r(31143);var s=r(21389),i=n(r(50496));function o(e,t,r){a(e,t),t.set(e,r)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(u(e,t))}function h(e,t,r){return e.set(u(e,t),r),r}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")}var c=new WeakMap,d=new WeakMap,g=new WeakMap,p=new WeakSet;class f{constructor(){var e,t;a(e=this,t=p),t.add(e),o(this,c,!0),o(this,d,null),o(this,g,new ResizeObserver(e=>u(p,this,m).call(this,e)))}setObservedElement(e){h(d,this,e)}unobserve(){l(g,this).unobserve(l(d,this))}observe(){h(c,this,!0),l(g,this).observe(l(d,this))}destroy(){l(g,this).disconnect()}}function m(e){!l(c,this)&&Array.isArray(e)&&e.length?e.forEach(e=>{let{borderBoxSize:t}=e;const{inlineSize:r,blockSize:n}=t[0];this.runLocalHooks("resize",r,n)}):h(c,this,!1)}t.EditorResizeObserver=f,(0,s.mixin)(f,i.default)},73333:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(99356),r(58584);var s=n(r(24300)),i=r(40785);t.default=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;(0,s.default)(this,"rootWindow",void 0),(0,s.default)(this,"prefix",void 0),(0,s.default)(this,"savedKeys",[]),this.rootWindow=t,this.prefix=e,this.loadSavedKeys()}saveValue(e,t){this.rootWindow.localStorage.setItem(`${this.prefix}_${e}`,JSON.stringify(t)),-1===this.savedKeys.indexOf(e)&&(this.savedKeys.push(e),this.saveSavedKeys())}loadValue(e,t){const r=void 0===e?t:e,n=this.rootWindow.localStorage.getItem(`${this.prefix}_${r}`);return null===n?void 0:JSON.parse(n)}reset(e){this.rootWindow.localStorage.removeItem(`${this.prefix}_${e}`)}resetAll(){(0,i.arrayEach)(this.savedKeys,(e,t)=>{this.rootWindow.localStorage.removeItem(`${this.prefix}_${this.savedKeys[t]}`)}),this.clearSavedKeys()}loadSavedKeys(){const e=this.rootWindow.localStorage.getItem(`${this.prefix}__persistentStateKeys`),t="string"==typeof e?JSON.parse(e):void 0;this.savedKeys=t||[]}saveSavedKeys(){this.rootWindow.localStorage.setItem(`${this.prefix}__persistentStateKeys`,JSON.stringify(this.savedKeys))}clearSavedKeys(){this.savedKeys.length=0,this.saveSavedKeys()}}},73364:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.getDefaultLanguageDictionary=function(){return h.default},t.getLanguageDictionary=w,t.getLanguagesDictionaries=function(){return f()},t.getTranslatedPhrase=function(e,t,r){const n=w(e);if(null===n)return null;const s=n[t];if((0,i.isUndefined)(s))return null;const o=function(e,t){return(0,l.getPhraseFormatters)().reduce((e,r)=>r(e,t),e)}(s,r);if(Array.isArray(o))return o[0];return o},t.getValidLanguageCode=function(e){let t=(0,o.normalizeLanguageCode)(e);E(t)||(t=c,(0,o.warnUserAboutLanguageRegistration)(e));return t},t.hasLanguageDictionary=E,t.registerLanguageDictionary=m,r(34478),r(33098);var s=r(21389),i=r(27727),o=r(92486),a=r(55585),l=r(85158),h=n(r(81553)),u=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));t.dictionaryKeys=u;const c=t.DEFAULT_LANGUAGE_CODE=h.default.languageCode,{register:d,getItem:g,hasItem:p,getValues:f}=(0,a.staticRegister)("languagesDictionaries");function m(e,t){let r=e,n=t;return(0,s.isObject)(e)&&(n=e,r=n.languageCode),function(e,t){e!==c&&(0,o.extendNotExistingKeys)(t,g(c))}(r,n),d(r,(0,s.deepClone)(n)),(0,s.deepClone)(n)}function w(e){return E(e)?(0,s.deepClone)(g(e)):null}function E(e){return p(e)}m(h.default)},73374:()=>{},73421:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.createHighlight=function(e){let{headerClassName:t,...r}=e;return new i.default({className:t,...r,selectionType:s.HIGHLIGHT_HEADER_TYPE})};var s=r(74216),i=n(r(44982))},73442:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(96012);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Pagination=n.Pagination},73488:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(97148);t.RENDERER_TYPE=n.RENDERER_TYPE,t.baseRenderer=n.baseRenderer},73581:(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(31143),r(940),r(81056);var s=n(r(24300)),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(8640)),o=n(r(346)),a=r(21389),l=r(27727),h=r(4407),u=r(40785),c=n(r(50496)),d=r(89253),g=r(3442),p=r(42685),f=r(13618);function m(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 w(e,t){return e.get(y(e,t))}function E(e,t,r){return e.set(y(e,t),r),r}function y(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 C=new WeakMap,v=new WeakMap,S=new WeakMap,R=new WeakMap,T=new WeakMap,N=new WeakMap,_=new WeakMap;class A{constructor(e,t){var r=this;(0,s.default)(this,"settings",void 0),(0,s.default)(this,"tableProps",void 0),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"selectedRange",new o.default((e,t,r)=>this.tableProps.createCellRange(e,t,r))),(0,s.default)(this,"highlight",void 0),m(this,C,void 0),m(this,v,void 0),(0,s.default)(this,"selectedByRowHeader",new Set),(0,s.default)(this,"selectedByColumnHeader",new Set),m(this,S,!1),m(this,R,!1),m(this,T,"unknown"),m(this,N,-1),m(this,_,0),this.settings=e,this.tableProps=t,this.highlight=new i.default({headerClassName:e.currentHeaderClassName,activeHeaderClassName:e.activeHeaderClassName,rowClassName:e.currentRowClassName,columnClassName:e.currentColClassName,cellAttributes:[(0,f.A11Y_SELECTED)()],rowIndexMapper:this.tableProps.rowIndexMapper,columnIndexMapper:this.tableProps.columnIndexMapper,disabledCellSelection:(e,t)=>this.tableProps.isDisabledCellSelection(e,t),cellCornerVisible:function(){return r.isCellCornerVisible(...arguments)},areaCornerVisible:function(){return r.isAreaCornerVisible(...arguments)},visualToRenderableCoords:e=>this.tableProps.visualToRenderableCoords(e),renderableToVisualCoords:e=>this.tableProps.renderableToVisualCoords(e),createCellCoords:(e,t)=>this.tableProps.createCellCoords(e,t),createCellRange:(e,t,r)=>this.tableProps.createCellRange(e,t,r)}),E(C,this,new d.ExtenderTransformation(this.selectedRange,{...this.tableProps,navigableHeaders:()=>e.navigableHeaders,fixedRowsBottom:()=>e.fixedRowsBottom,minSpareRows:()=>e.minSpareRows,minSpareCols:()=>e.minSpareCols,autoWrapRow:()=>e.autoWrapRow,autoWrapCol:()=>e.autoWrapCol})),E(v,this,new d.FocusTransformation(this.selectedRange,{...this.tableProps,navigableHeaders:()=>e.navigableHeaders,fixedRowsBottom:()=>0,minSpareRows:()=>0,minSpareCols:()=>0,autoWrapRow:()=>!0,autoWrapCol:()=>!0})),w(C,this).addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("beforeModifyTransformStart",...t)}),w(C,this).addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("afterModifyTransformStart",...t)}),w(C,this).addLocalHook("beforeTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("beforeModifyTransformEnd",...t)}),w(C,this).addLocalHook("afterTransformEnd",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("afterModifyTransformEnd",...t)}),w(C,this).addLocalHook("insertRowRequire",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("insertRowRequire",...t)}),w(C,this).addLocalHook("insertColRequire",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("insertColRequire",...t)}),w(C,this).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("beforeRowWrap",...t)}),w(C,this).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("beforeColumnWrap",...t)}),w(v,this).addLocalHook("beforeTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("beforeModifyTransformFocus",...t)}),w(v,this).addLocalHook("afterTransformStart",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.runLocalHooks("afterModifyTransformFocus",...t)})}getSelectedRange(){return this.selectedRange}getActiveSelectedRange(){return this.selectedRange.peekByIndex(w(_,this))}getActiveSelectionLayerIndex(){return w(_,this)}setActiveSelectionLayerIndex(e){E(_,this,e)}markSource(e){E(T,this,e)}markEndSource(){E(T,this,"unknown")}getSelectionSource(){return w(T,this)}setExpectedLayers(e){E(N,this,e)}begin(){this.inProgress=!0}finish(){this.runLocalHooks("afterSelectionFinished",Array.from(this.selectedRange)),this.inProgress=!1,E(N,this,-1)}isInProgress(){return this.inProgress}setRangeStart(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e;const s="multiple"===this.settings.selectionMode,i=(0,l.isUndefined)(t)?this.tableProps.getShortcutManager().isCtrlPressed():t,o=e.clone();E(R,this,!1),E(S,this,!1),this.runLocalHooks("beforeSetRangeStart"+(r?"Only":""),o),(!s||s&&!i&&(0,l.isUndefined)(t))&&(this.selectedRange.clear(),(0,u.arrayEach)(this.highlight.getAreas(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getLayeredAreas(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getRowHeaders(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getColumnHeaders(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getActiveRowHeaders(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getActiveColumnHeaders(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getActiveCornerHeaders(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getRowHighlights(),e=>{e.clear()}),(0,u.arrayEach)(this.highlight.getColumnHighlights(),e=>{e.clear()})),this.selectedRange.add(o).current().setHighlight(n.clone()),0===this.getLayerLevel()&&(this.selectedByRowHeader.clear(),this.selectedByColumnHeader.clear()),r||this.setRangeEnd(e)}setRangeStartOnly(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;this.setRangeStart(e,t,!0,r)}setRangeEnd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();if(this.selectedRange.isEmpty())return;this.setActiveSelectionLayerIndex(t);const r=e.clone(),n=this.tableProps.countRows(),s=this.tableProps.countCols(),i=this.getActiveSelectedRange().clone().setTo(e).isSingleHeader();if((n>0||s>0)&&(0===n&&r.col<0&&!i||0===s&&r.row<0&&!i))return;this.runLocalHooks("beforeSetRangeEnd",r),this.begin();const o=this.getActiveSelectedRange();if(this.settings.navigableHeaders||o.highlight.normalize(),"single"===this.settings.selectionMode)o.setFrom(o.highlight),o.setTo(o.highlight);else{const e=o.getHorizontalDirection(),t=o.getVerticalDirection(),n=this.isMultiple();o.setTo(r),n&&(e!==o.getHorizontalDirection()||1===o.getWidth()&&!o.includes(o.highlight))&&o.from.assign({col:o.highlight.col}),n&&(t!==o.getVerticalDirection()||1===o.getHeight()&&!o.includes(o.highlight))&&o.from.assign({row:o.highlight.row})}n>0&&s>0&&(!this.settings.navigableHeaders||this.settings.navigableHeaders&&!o.isSingleHeader())&&o.to.normalize(),this.runLocalHooks("beforeHighlightSet"),this.setRangeFocus(this.getActiveSelectedRange().highlight,t),this.applyAndCommit(this.getActiveSelectedRange(),t);const a=-1===w(N,this)||this.selectedRange.size()===w(N,this);this.runLocalHooks("afterSetRangeEnd",e,a)}applyAndCommit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getActiveSelectedRange(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();const r=this.tableProps.countRows(),n=this.tableProps.countCols();this.highlight.useLayerLevel(t);const s=this.highlight.createArea(),o=this.highlight.createLayeredArea(),a=this.highlight.createRowHeader(),l=this.highlight.createColumnHeader(),h=this.highlight.createActiveRowHeader(),u=this.highlight.createActiveColumnHeader(),c=this.highlight.createActiveCornerHeader(),d=this.highlight.createRowHighlight(),g=this.highlight.createColumnHighlight();if(s.clear(),o.clear(),a.clear(),l.clear(),h.clear(),u.clear(),c.clear(),d.clear(),g.clear(),this.highlight.isEnabledFor(i.AREA_TYPE,e.highlight)&&(this.isMultiple()||t>=1)&&(s.add(e.from).add(e.to).commit(),o.add(e.from).add(e.to).commit(),1===t)){const e=this.selectedRange.peekByIndex(t-1);this.highlight.useLayerLevel(t-1),this.highlight.createArea().add(e.from).commit().syncWith(e),this.highlight.createLayeredArea().add(e.from).commit().syncWith(e),this.highlight.useLayerLevel(t)}if(this.highlight.isEnabledFor(i.HEADER_TYPE,e.highlight)){if(!e.isSingleHeader()){const t=this.tableProps.createCellCoords(Math.max(e.from.row,0),-1),r=this.tableProps.createCellCoords(e.to.row,-1),n=this.tableProps.createCellCoords(-1,Math.max(e.from.col,0)),s=this.tableProps.createCellCoords(-1,e.to.col);"single"===this.settings.selectionMode?(a.add(t).commit(),l.add(n).commit(),d.add(t).commit(),g.add(n).commit()):(a.add(t).add(r).commit(),l.add(n).add(s).commit(),d.add(t).add(r).commit(),g.add(n).add(s).commit())}const t=!w(R,this)&&this.isEntireRowSelected()&&(n>0&&n===e.getWidth()||0===n&&this.isSelectedByRowHeader()),s=!w(R,this)&&this.isEntireColumnSelected()&&(r>0&&r===e.getHeight()||0===r&&this.isSelectedByColumnHeader());t&&h.add(this.tableProps.createCellCoords(Math.max(e.from.row,0),Math.min(-this.tableProps.countRowHeaders(),-1))).add(this.tableProps.createCellCoords(Math.max(e.to.row,0),-1)).commit(),s&&u.add(this.tableProps.createCellCoords(Math.min(-this.tableProps.countColHeaders(),-1),Math.max(e.from.col,0))).add(this.tableProps.createCellCoords(-1,Math.max(e.to.col,0))).commit(),t&&s&&c.add(this.tableProps.createCellCoords(-this.tableProps.countColHeaders(),-this.tableProps.countRowHeaders())).add(this.tableProps.createCellCoords(-1,-1)).commit()}}setRangeFocus(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLayerLevel();if(this.selectedRange.isEmpty())return;this.setActiveSelectionLayerIndex(t),w(C,this).setActiveLayerIndex(t),w(v,this).setActiveLayerIndex(t);const r=this.getActiveSelectedRange();this.inProgress||this.runLocalHooks("beforeSetFocus",e);const n=this.highlight.getFocus();n.clear(),r.setHighlight(e),this.inProgress||this.runLocalHooks("beforeHighlightSet"),this.highlight.isEnabledFor(i.FOCUS_TYPE,r.highlight)&&n.add(r.highlight).commit().syncWith(r),this.inProgress||(E(S,this,!0),this.runLocalHooks("afterSetFocus",r.highlight))}transformStart(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{visualCoords:n}=w(C,this).transformStart(e,t,r);this.setRangeStart(n)}transformEnd(e,t){const{visualCoords:r,selectionLayer:n}=w(C,this).transformEnd(e,t);this.setRangeEnd(r,n)}transformFocus(e,t){const{selectionLayer:r,visualCoords:n}=w(v,this).transformStart(e,t);this.setRangeFocus(n.normalize(),r)}shiftRows(e,t){if(!this.isSelected())return;const r=this.getActiveSelectedRange();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByColumnHeader()||r.getOuterTopStartCorner().row>=e){const{from:n,to:s,highlight:i}=r,o=this.tableProps.countRows(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),u=l?-1:0,c=l?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords((0,h.clamp)(n.row+c,u,o-1),n.col),g=this.tableProps.createCellCoords((0,h.clamp)(s.row+t,u,o-1),s.col);this.markSource("shift"),i.row>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords((0,h.clamp)(i.row+t,0,o-1),i.col)):this.setRangeStartOnly(d,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.markEndSource()}}shiftColumns(e,t){if(!this.isSelected())return;const r=this.getActiveSelectedRange();if(this.isSelectedByCorner())this.selectAll(!0,!0,{disableHeadersHighlight:!0});else if(this.isSelectedByRowHeader()||r.getOuterTopStartCorner().col>=e){const{from:n,to:s,highlight:i}=r,o=this.tableProps.countCols(),a=this.isSelectedByRowHeader(),l=this.isSelectedByColumnHeader(),u=a?-1:0,c=a?0:t;this.getSelectedRange().pop();const d=this.tableProps.createCellCoords(n.row,(0,h.clamp)(n.col+c,u,o-1)),g=this.tableProps.createCellCoords(s.row,(0,h.clamp)(s.col+t,u,o-1));this.markSource("shift"),i.col>=e?this.setRangeStartOnly(d,!0,this.tableProps.createCellCoords(i.row,(0,h.clamp)(i.col+t,0,o-1))):this.setRangeStartOnly(d,!0),a&&this.selectedByRowHeader.add(this.getLayerLevel()),l&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(g),this.markEndSource()}}getLayerLevel(){return this.selectedRange.size()-1}isSelected(){return!this.selectedRange.isEmpty()}isMultiple(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getActiveSelectedRange();if(!this.isSelected())return!1;const t=(0,a.createObjectPropListener)(!e.isSingle());return this.runLocalHooks("afterIsMultipleSelection",t),t.value}isFocusSelectionChanged(){return this.isSelected()&&w(S,this)}isSelectedByRowHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner(e)&&(-1===e?this.selectedByRowHeader.size>0:this.selectedByRowHeader.has(e))}isEntireRowSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{col:t}=e.getOuterTopStartCorner(),r=this.tableProps.countRowHeaders(),n=this.tableProps.countCols();return(r>0&&t<0||0===r)&&e.getWidth()===n};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));const r=this.selectedRange.peekByIndex(e);return!!r&&t(r)}isSelectedByColumnHeader(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();return!this.isSelectedByCorner()&&(-1===e?this.selectedByColumnHeader.size>0:this.selectedByColumnHeader.has(e))}isEntireColumnSelected(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getLayerLevel();const t=e=>{const{row:t}=e.getOuterTopStartCorner(),r=this.tableProps.countColHeaders(),n=this.tableProps.countRows();return(r>0&&t<0||0===r)&&e.getHeight()===n};if(-1===e)return Array.from(this.selectedRange).some(e=>t(e));const r=this.selectedRange.peekByIndex(e);return!!r&&t(r)}isSelectedByAnyHeader(){return this.isSelectedByRowHeader(-1)||this.isSelectedByColumnHeader(-1)||this.isSelectedByCorner()}isSelectedByCorner(){return this.selectedByColumnHeader.has(this.getLayerLevel())&&this.selectedByRowHeader.has(this.getLayerLevel())}inInSelection(e){return this.selectedRange.includes(e)}isCellCornerVisible(){return this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&!this.isMultiple()}isCellVisible(e){const t=this.tableProps.visualToRenderableCoords(e);return null!==t.row&&null!==t.col}isAreaCornerVisible(e){return(!Number.isInteger(e)||e===this.getLayerLevel())&&(this.settings.fillHandle&&!this.tableProps.isEditorOpened()&&this.isMultiple())}clear(){this.selectedRange.clear(),this.highlight.clear()}deselect(){this.isSelected()&&(this.inProgress=!1,this.clear(),this.runLocalHooks("afterDeselect"))}selectAll(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{focusPosition:!1,disableHeadersHighlight:!1};const s=this.tableProps.countRows(),i=this.tableProps.countCols(),o=this.tableProps.countRowHeaders(),a=this.tableProps.countColHeaders(),l=r?-a:0,u=t?-o:0;if(0===l&&0===u&&(0===s||0===i))return;let c=null===(e=this.getActiveSelectedRange())||void 0===e?void 0:e.highlight;const{focusPosition:d,disableHeadersHighlight:g}=n;d&&Number.isInteger(null==d?void 0:d.row)&&Number.isInteger(null==d?void 0:d.col)&&(c=this.tableProps.createCellCoords((0,h.clamp)(d.row,l,s-1),(0,h.clamp)(d.col,u,i-1)));const p=this.tableProps.createCellCoords(l,u),f=this.tableProps.createCellCoords(s-1,i-1);this.clear(),this.runLocalHooks("beforeSelectAll",p,f,c),this.setRangeStartOnly(p,void 0,c),E(R,this,g),u<0&&this.selectedByRowHeader.add(this.getLayerLevel()),l<0&&this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(f),this.runLocalHooks("afterSelectAll",p,f,c),this.finish()}selectCells(e){var t=this;const r=(0,g.detectSelectionType)(e);if(r===g.SELECTION_TYPE_EMPTY)return!1;if(r===g.SELECTION_TYPE_UNRECOGNIZED)throw new Error(p.toSingleLine`Unsupported format of the selection ranges was passed. To select cells pass\x20
@@ -288,7 +288,7 @@ the last node, the hide column modification can be applied.`);const{crossHiddenC
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
290
290
  \`disjunction\` and \`conjunction\`.`);const g=this.getConditions(e);0===g.length?this.filteringStates.setValueAtIndex(e,{operation:r,conditions:[{name:a,args:i,func:(0,l.getCondition)(a,i)}]},n):g.push({name:a,args:i,func:(0,l.getCondition)(a,i)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var t,r;return null!==(t=null===(r=this.filteringStates.getValueAtIndex(e))||void 0===r?void 0:r.conditions)&&void 0!==t?t:[]}getOperation(e){var t;return null===(t=this.filteringStates.getValueAtIndex(e))||void 0===t?void 0:t.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[t]=e;return t})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return this.filteringStates.getEntries().reduce((e,t)=>{let[r,{operation:n,conditions:s}]=t;return e.push({column:r,operation:n,conditions:s.map(e=>{let{name:t,args:r}=e;return{name:t,args:[...r]}})}),e},[])}importAllConditions(e){this.clean(),e.forEach(e=>{e.conditions.forEach(t=>this.addCondition(e.column,t))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,t){const r=this.getConditions(e);return t?r.some(e=>e.name===t):r.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(g),this.filteringStates=null,this.clearLocalHooks()}}(0,i.mixin)(p,a.default);t.default=p},86424:(e,t,r)=>{"use strict";t.__esModule=!0,t.showColumn=function(e,t){if(!Number.isInteger(t))throw new Error("The passed gridColumnIndex argument has invalid type.");if(e.childs.length>0)throw new Error(n.toSingleLine`The passed node is not the last node on the tree. Only for\x20
291
- the last node, the show column modification can be applied.`);const{crossHiddenColumns:r}=e.data;if(!r.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:r}=e;r.crossHiddenColumns.splice(r.crossHiddenColumns.indexOf(t),1),!r.isHidden&&r.colspan<r.origColspan&&(r.colspan+=1),r.isHidden=!1})},r(52490);var n=r(42685)},86444:(e,t,r)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),r=(0,s.createKeyboardShortcutCommandsPool)(e),i={group:n.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>r.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>r.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>r.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>r.editorCloseWithoutSaving()}],i)};var n=r(98684),s=r(53772)},86508:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n=r(7549);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var s=r(61954);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},86602:()=>{},86720:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(6083),i=n(r(2788)),o=r(37131),a=r(53477),l=r(42210);class h extends o.Overlay{constructor(e,t,r,n){super(e,t,l.CLONE_INLINE_START,r,n)}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,r=this.clone.wtTable.holder.parentNode,n=this.wtSettings.getSetting("preventOverflow");let i=0;this.trimmingContainer!==t||n&&"horizontal"===n?(i=this.getScrollPosition(),(0,s.resetCssTransform)(r)):(i=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(r,`${i}px`,"0px"));const o=this.adjustHeaderBordersPosition(i);return this.adjustElementsSize(),o}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let r=!1;this.isRtl()&&(e=-e);const n=this.mainTableScrollableElement;if(n===t&&e!==t.scrollX){const n=t.scrollX;t.scrollTo(e,(0,s.getWindowScrollTop)(t)),r=n!==t.scrollX}else if(e!==n.scrollLeft){const t=n.scrollLeft;n.scrollLeft=e,r=t!==n.scrollLeft}return r}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const r=this.wtSettings.getSetting("defaultColumnWidth");let n=e,s=0;for(;n<t;)s+=this.wot.wtTable.getColumnWidth(n)||r,n+=1;return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,i=this.clone.wtTable.holder.parentNode.style,o=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"vertical"===o){let n=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(n-=(0,s.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollHeight),i.height=`${n}px`}else i.height="";this.clone.wtTable.holder.style.height=i.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);i.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),r=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+r}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:r}=this,n=r.getSetting("rowHeaders"),i=r.getSetting("fixedColumnsStart"),o=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===i&&n.length>0&&!(0,s.hasClass)(o.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&o.offsetWidth!==o.clientWidth&&(h=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,s.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,s.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){r=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);r>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(r=0)}return r}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,r=this.wot.wtTable.holder.parentNode,n=t.getSetting("rowHeaders"),i=t.getSetting("fixedColumnsStart"),o=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");o?(0,s.removeClass)(r,"emptyRows"):(0,s.addClass)(r,"emptyRows");let l=!1;if(!a)if(i&&!n.length)(0,s.addClass)(r,"innerBorderLeft innerBorderInlineStart");else if(!i&&n.length){const t=(0,s.hasClass)(r,"innerBorderInlineStart");e?((0,s.addClass)(r,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,s.removeClass)(r,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=h},86745:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:r}=e.getSettings(),n=r?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let i=e.countVisibleRows()+n;i=0===i?-1:-i,s===-n?i=-1:s+i<n&&(i=-(s+n)),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},86951:(e,t,r)=>{"use strict";t.__esModule=!0,r(34478),r(940);const n=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return n.has(t)?n.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:r}=e;if(s.has(t))return s.get(t);const n=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(n)?n:r.toLowerCase()}},87041:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(6083),i=n(r(42660)),o=n(r(97996)),a=n(r(93578)),l=r(21389);class h extends i.default{constructor(e,t,r,n){super(e,t,r,n,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,s.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const r=e.parentElement,n=(0,s.getStyle)(e,"height",t),i=(0,s.getStyle)(e,"overflow",t),o=this.holder.style,{scrollWidth:a,scrollHeight:l}=e;let h=e.offsetWidth,u=e.offsetHeight;if(r&&["auto","hidden","scroll"].includes(i)){const n=e.cloneNode(!1);n.style.overflow="auto",n.style.position="absolute",e.nextElementSibling?r.insertBefore(n,e.nextElementSibling):r.appendChild(n);const s=parseInt(t.getComputedStyle(n).height,10);r.removeChild(n),0===s&&(u=0)}u=Math.min(u,l),o.height="auto"===n?"auto":`${u}px`,h=Math.min(h,a),o.width=`${h}px`,o.overflow="",this.hasTableHeight="auto"===o.height||u>0,this.hasTableWidth=h>0}this.isTableVisible=(0,s.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,r="master",n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked[r]){const s=e.getSetting("rowHeaders").length,i=this.getRenderedColumnsCount();for(let e=0;e<n;e++)for(let e=-1*s;e<i;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[r]=!0}}}(0,l.mixin)(h,o.default),(0,l.mixin)(h,a.default);t.default=h},87085:()=>{},87488:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.default=function(e,t,r){if("function"==typeof o[e])return new o[e](t,r);return null};var s=n(r(13176));const i=t.TYPE_CSV="csv",o=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[i]:s.default})},87513:()=>{},87793:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(13861),o=r(90501),a=r(44827),l=r(81037),h=r(23720),u=r(67774),c=r(53001),d=r(19451),g=r(12033),p=r(97259).IteratorPrototype,f=r(2382),m=r(33973),w="constructor",E="Iterator",y=g("toStringTag"),C=TypeError,v=s[E],S=m||!a(v)||v.prototype!==p||!c(function(){v({})}),R=function(){if(i(this,p),l(this)===p)throw new C("Abstract class Iterator not directly constructable")},T=function(e,t){f?h(p,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===p)throw new C("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):p[e]=t};d(p,y)||T(y,E),!S&&d(p,w)&&p[w]!==Object||T(w,R),R.prototype=p,n({global:!0,constructor:!0,forced:S},{Iterator:R})},87842:(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])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.TrimmingMap=i},87878:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520),i=r(96792),o=r(59188),a=r(94811),l=r(26023),h=r(48369),u=s.has,c=s.remove;e.exports=function(e){var t=n(this),r=a(e),s=i(t);return o(t)<=r.size?l(t,function(e){r.includes(e)&&c(s,e)}):h(r.getIterator(),function(e){u(s,e)&&c(s,e)}),s}},87913:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520).has,i=r(59188),o=r(94811),a=r(48369),l=r(99793);e.exports=function(e){var t=n(this),r=o(e);if(i(t)<r.size)return!1;var h=r.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},88155:(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(35244));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const r=this.getMeta(e);(0,i.extend)(r,t),(0,o.extendByMetaType)(r,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,o.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},88236:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(6083),s=r(21389),i=r(11492);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(l(e,t))}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 WeakSet;class c extends i.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var r,n;super(e,(0,s.extend)(c.DEFAULTS,t)),o(r=this,n=u),n.add(r),function(e,t,r){o(e,t),t.set(e,r)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(u,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,r,s;t=h,r=this,s=this._element.firstChild,t.set(l(t,r),s),(0,n.addClass)(this._element,"htUIInput"),(0,n.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=c},88356:()=>{},88453:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[i.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=r(86444),i=r(9585),o=r(98684);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))})},88725:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},88786:(e,t,r)=>{"use strict";var n={};n[r(12033)("toStringTag")]="z",e.exports="[object z]"===String(n)},88921:()=>{},88932:(e,t,r)=>{"use strict";var n=r(19098),s=r(44827),i=r(65415),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},89083:(e,t,r)=>{"use strict";var n=r(72820),s=r(94178),i=r(67774);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return s(e,function(e,r){i(t,e,r)},{AS_ENTRIES:!0}),t}})},89253:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(982);t.ExtenderTransformation=n.ExtenderTransformation;var s=r(97957);t.FocusTransformation=s.FocusTransformation},89577:()=>{},89595:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(4407),o=r(40785),a=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)),l=n(r(75175));function h(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 u(e,t){return e.get(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")}(e,t))}var c=new WeakMap;class d extends l.default{constructor(){super(...arguments),(0,s.default)(this,"dataManager",this.plugin.dataManager),h(this,c,{row_above:(e,t)=>{const r=t[t.length-1];this.dataManager.addSibling(r.start.row,"above")},row_below:(e,t)=>{const r=t[t.length-1];this.dataManager.addSibling(r.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedActive()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedActive();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedActive())},disabled:()=>{const e=this.hot.getSelectedActive(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,i.rangeEach)(0,e.items.length-1,r=>{if(0===r)return(0,o.arrayEach)(t,(t,n)=>{e.items.splice(r+n,0,t)}),!1}),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,i.rangeEach)(0,e.items.length-1,t=>{const r=u(c,this)[e.items[t].key];null!=r&&(e.items[t].callback=r)}),e}}t.default=d},89624:(e,t,r)=>{"use strict";var n=r(72820),s=r(87878),i=r(53001);n({target:"Set",proto:!0,real:!0,forced:!r(12874)("difference",function(e){return 0===e.size})||i(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:s})},90113:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50057),s=r(40697),i=r(74321),o=r(10470);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:n.AutocompleteEditor,renderer:s.autocompleteRenderer,validator:i.autocompleteValidator,valueGetter:o.valueGetter,valueSetter:o.valueSetter}},90233:(e,t,r)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:r},()=>{const t=!!e.getSettings().colHeaders;(0,n.scrollWindowToCell)(e.getCell(t?-1:0,r,!0))})}};var n=r(62147)},90375:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.BaseAction{constructor(e){let{data:t,cellRange:r}=e;super("merge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=r,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",(r,n)=>{if(n)return;const s=r.getTopStartCorner(),i=r.getBottomEndCorner(),a=e.getData(s.row,s.col,i.row,i.col);t.done(()=>new o({data:a,cellRange:r}))})}undo(e,t){const r=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),r.unmergeRange(this.cellRange,!0);const n=this.cellRange.getTopStartCorner();e.populateFromArray(n.row,n.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const r=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),r.mergeRange(this.cellRange)}}t.MergeCellsAction=o},90433:()=>{},90474:(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(21389),o=r(40785),a=r(40038),l=r(51241),h=r(69264),u=r(38594),c=r(39705),d=n(r(46427)),g=r(96357);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(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}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")}const y=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",u.hasRenderer],["validator",c.hasValidator]]),C=t.defaultMainSettingSymbol=Symbol("mainSetting"),v=t.PLUGIN_KEY="base",S=[];let R=null;var T=new WeakMap,N=new WeakMap,_=new WeakSet;function A(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let r=0;r<t.length;r++)if(void 0!==e[t[r]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return v}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}static get SETTINGS_VALIDATORS(){return null}constructor(e){var t,r;f(t=this,r=_),r.add(t),p(this,T,null),(0,s.default)(this,"eventManager",new d.default(this)),(0,s.default)(this,"pluginName",null),(0,s.default)(this,"pluginsInitializedCallbacks",[]),(0,s.default)(this,"isPluginsReady",!1),(0,s.default)(this,"enabled",!1),(0,s.default)(this,"initialized",!1),p(this,N,{}),(0,i.defineGetter)(this,"hot",e,{writable:!1}),R=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this),this.updatePluginSettings(this.hot.getSettings()[this.constructor.PLUGIN_KEY]);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[r,n]=t.split(":");if(!y.has(r))throw new Error(`Unknown plugin dependency type "${r}" was found.`);y.get(r)(n)||e.push(` - ${n} (${r})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");S.push(t)}}R||(R=(0,a.getPluginsNames)()),R.indexOf(this.pluginName)>=0&&R.splice(R.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===R.length){if(S.length>0){const e=[`${S.join("\n")}\n`,"You have to import and register them manually."].join("");throw S.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.constructor.DEFAULT_SETTINGS;if(void 0===e)return(0,i.isObject)(w(T,this))?(0,i.assignObjectDefaults)(w(T,this),t):w(T,this);var r;if((Array.isArray(w(T,this))||(0,i.isObject)(w(T,this)))&&t[C]===e)return Array.isArray(w(T,this))?w(T,this):null!==(r=w(T,this)[e])&&void 0!==r?r:t[e];if(e.includes(".")){const r=(0,i.getProperty)(w(T,this),e),n=(0,i.getProperty)(t,e);return(0,i.isObject)(r)?(0,i.assignObjectDefaults)(r,n):void 0!==r?r:n}return(0,i.isObject)(w(T,this))?(0,i.assignObjectDefaults)(w(T,this),t)[e]:t[e]}updatePluginSettings(e){const t=this.constructor.SETTINGS_VALIDATORS;if(t&&"function"==typeof t&&"object"!=typeof e){return!1===t(e)?void(0,g.warn)(`${this.pluginName} Plugin: option is not valid and it will be ignored.`):(m(T,this,e),w(T,this))}return t&&"object"==typeof t&&"object"==typeof e?(null!==w(T,this)&&"object"==typeof w(T,this)||m(T,this,{...this.constructor.DEFAULT_SETTINGS}),Object.keys(t).forEach(r=>{if(!(r in e))return;const n=t[r];!1!==(!n||n(e[r]))?w(T,this)[r]=e[r]:(0,g.warn)(`${this.pluginName} Plugin: "${r}" option is not valid and it will be ignored.`)}),w(T,this)):(m(T,this,e),e)}addHook(e,t,r){w(N,this)[e]=w(N,this)[e]||[];const n=w(N,this)[e];this.hot.addHook(e,t,r),n.push(t),w(N,this)[e]=n}removeHooks(e){(0,o.arrayEach)(w(N,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=w(N,this);(0,i.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,o.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=E(_,this,A).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&(this.updatePluginSettings(e[this.constructor.PLUGIN_KEY]),this.updatePlugin(e)))}updatePlugin(){}destroy(){var e;m(T,this,null),null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,i.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},90501:(e,t,r)=>{"use strict";var n=r(15176),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},90643:(e,t,r)=>{"use strict";r(50506)},90742:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(58584),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(31143),r(940);var s=n(r(24300)),i=r(53383),o=r(55585),a=r(96357),l=r(4407),h=r(27727),u=r(19199),c=r(37908),d=r(95519),g=r(97934),p=r(82887),f=r(17715),m=n(r(30818));function w(e,t,r){E(e,t),t.set(e,r)}function E(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function y(e,t,r){return e.set(v(e,t),r),r}function C(e,t){return e.get(v(e,t))}function v(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 S=t.PLUGIN_KEY="formulas",R=t.SETTING_KEYS=["maxRows","maxColumns","language"],T=t.PLUGIN_PRIORITY=260;f.Hooks.getSingleton().register("afterNamedExpressionAdded"),f.Hooks.getSingleton().register("afterNamedExpressionRemoved"),f.Hooks.getSingleton().register("afterSheetAdded"),f.Hooks.getSingleton().register("afterSheetRemoved"),f.Hooks.getSingleton().register("afterSheetRenamed"),f.Hooks.getSingleton().register("afterFormulasValuesUpdate");const N=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var _=new WeakMap,A=new WeakMap,b=new WeakMap,M=new WeakSet;class I extends i.BasePlugin{constructor(){var e,t,r;super(...arguments),e=this,E(t=this,r=M),r.add(t),w(this,_,!1),w(this,A,!1),w(this,b,[["valuesUpdated",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(M,e,q).call(e,...r)}],["namedExpressionAdded",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(M,e,Q).call(e,...r)}],["namedExpressionRemoved",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(M,e,Z).call(e,...r)}],["sheetAdded",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(M,e,J).call(e,...r)}],["sheetRenamed",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(M,e,ee).call(e,...r)}],["sheetRemoved",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return v(M,e,te).call(e,...r)}]]),(0,s.default)(this,"staticRegister",(0,o.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return S}static get PLUGIN_PRIORITY(){return T}static get SETTING_KEYS(){return[S,...R]}isEnabled(){return!!this.hot.getSettings()[S]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,u.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,this.hot.getSourceDataArray());!1!==e&&v(M,this,O).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,L).call(t,...r)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,k).call(t,...r)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,L).call(t,...r)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,k).call(t,...r)}),this.addHook("modifyData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,H).call(t,...r)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,F).call(t,...r)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,x).call(t,...r)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,V).call(t,...r)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,U).call(t,...r)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,U).call(t,...r)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,B).call(t,...r)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,W).call(t,...r)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,j).call(t,...r)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,z).call(t,...r)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,Y).call(t,...r)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,G).call(t,...r)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,$).call(t,...r)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,K).call(t,...r)}),this.indexSyncer=new m.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,r,n)=>{this.rowAxisSyncer.storeMovesInformation(e,t,n)}),this.hot.addHook("beforeColumnMove",(e,t,r,n)=>{this.columnAxisSyncer.storeMovesInformation(e,t,n)}),this.hot.addHook("afterRowMove",(e,t,r,n,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(n,s)}),this.hot.addHook("afterColumnMove",(e,t,r,n,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(n,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,D).call(t,...r)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,X).call(t,...r)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return v(M,t,P).call(t,...r)}),C(b,this).forEach(e=>{let[t,r]=e;return this.engine.on(t,r)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){C(b,this).forEach(e=>{let[t,r]=e;return this.engine.off(t,r)}),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,d.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,d.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const r=this.hot.getSettings()[S];if((0,h.isDefined)(r)&&(0,h.isDefined)(r.sheetName)&&r.sheetName!==this.sheetName&&this.switchSheet(r.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[S].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,this.hot.getSourceDataArray());v(M,this,O).call(this,t)}}super.updatePlugin(e)}destroy(){C(b,this).forEach(e=>{var t;let[r,n]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(r,n)}),y(b,this,null),(0,u.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,h.isDefined)(t)&&!(0,g.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const r=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(r),t),r}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);v(M,this,O).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,p.toUpperCaseFirst)(S)}.switchSheet`)}getCellType(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const n=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==n&&null!==s?this.engine.getCellType({sheet:r,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:r,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=new Set;e.forEach(e=>{var t;const n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))}),(0,u.getRegisteredHotInstances)(this.engine).forEach((e,n)=>{var s;(t||n!==this.sheetId)&&r.has(n)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:r,col:n,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,h.isDefined)(s)?`${s}:${r}x${n}`:""},r=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var n,s;const{row:i,col:o}=null!==(n=e.address)&&void 0!==n?n:{};if(!1===(0,h.isDefined)(i)||!1===(0,h.isDefined)(o)||i>=this.hot.countRows()||o>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!r.has(l)){const e=(0,u.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(i,o),e.getCellMeta(i,o),()=>{})}})}syncChangeWithEngine(e,t,r){const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(n))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(n)}`);const s=this.hot.getCellMeta(e,t);return(0,c.isDate)(r,s.type)&&((0,c.isDateValid)(r,s.dateFormat)?r=(0,c.getDateInHfFormat)(r,s.dateFormat):!1===(0,c.isFormula)(r)&&(r=`'${r}`)),this.engine.setCellContents(n,r)}}function O(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function x(e,t,r){const n=this.hot.propToCol(r);if(this.isFormulaCellType(t,n)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId},r=this.hot.getCellMeta(t,n);let s=this.engine.getCellValue(e);return"date"===r.type&&(0,l.isNumeric)(s)&&(s=(0,c.getDateFromExcelDate)(s,r.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function P(e,t,r){const{row:n,col:s}=t.getTopStartCorner(),{row:i,col:o}=t.getBottomEndCorner(),{row:a,col:l}=r.getTopStartCorner(),{row:h,col:u}=r.getBottomEndCorner(),d={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const p=this.engine.getFillRangeData(d,g),{row:f,col:m}=d.start,{row:w,col:E}=d.end,y=w-f+1,C=E-m+1;for(let e=0;e<p.length;e+=1)for(let t=0;t<p[e].length;t+=1){const r=p[e][t],n=f+e%y,s=m+t%C,i=this.hot.getCellMeta(n,s);(0,c.isDate)(r,i.type)&&(r.startsWith("'")?p[e][t]=r.slice(1):!1===this.isFormulaCellType(n,s,this.sheetId)&&(p[e][t]=(0,c.getDateInHotFormat)(r,i.dateFormat)))}return p}function L(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,p.toUpperCaseFirst)(S))||y(A,this,(0,h.isUndefined)(this.hot.getSettings().data))}function D(){if(C(A,this))return void this.switchSheet(this.sheetName);const e=this.hot.getSourceDataArray();e.forEach((t,r)=>{t.forEach((t,n)=>{const s=this.hot.getCellMeta(r,n,{skipMetaExtension:!0}),i=s.dateFormat;(0,c.isDate)(t,s.type)&&((0,c.isDateValid)(t,i)?e[r][n]=(0,c.getDateInHfFormat)(t,i):t.startsWith("=")||(e[r][n]=`'${t}`))})}),y(_,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(_,this,!1)}function k(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(r.includes((0,p.toUpperCaseFirst)(S)))return;const n=(0,u.setupSheet)(this.engine,this.hot.getSettings()[S].sheetName);if(v(M,this,O).call(this,n),"updateSettings"!==r)if(C(A,this))this.switchSheet(this.sheetName);else{const e=this.hot.getSourceDataArray();if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){y(_,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),y(_,this,!1)}}}function H(e,t,r,n){if("get"!==n||C(_,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(r.value=(0,c.unescapeFormulaExpression)(r.value));const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let o=this.engine.getCellValue(i);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(o)&&(o=(0,c.getDateFromExcelDate)(o,a.dateFormat)),r.value="object"==typeof o&&null!==o?o.value:o}function F(e,t,r,n){if("get"!==n||C(_,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null===s||null===i)return;const o=this.getCellType(s,i);if("VALUE"===o||"EMPTY"===o)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};r.value=this.engine.getCellSerialized(l)}function U(e,t){if(N(t))return;const r=[],n=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(o),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};null!==a&&null!==l?this.syncChangeWithEngine(t,o,i):r.push([t,o,i]),n.push({address:h})})});r.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{r.forEach(e=>{let[t,r,n]=e;this.syncChangeWithEngine(t,r,n)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,n)}function V(e,t){if(N(t))return;const r=[],n=[];e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s);if(!(0,l.isNumeric)(o))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(n.push({address:h}),r.push(...this.engine.setCellContents(h,i))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(r),this.validateDependentCells(r,n)}function B(e,t){let r=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(r=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[r,t]))return!1}function W(e,t){let r=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(r=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[r,t]))return!1}function Y(e,t,r){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(r).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function G(e,t,r){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(r).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function j(e,t,r){if(N(r))return;const n=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(n)}function z(e,t,r){if(N(r))return;const n=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(n)}function $(e,t,r,n){if(N(n))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function K(e,t,r,n){if(N(n))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function X(e,t,r){var n;y(_,this,!0);const s=this.hot.getSourceDataArray(r,0,r+((null===(n=t.__children)||void 0===n?void 0:n.length)||0),this.hot.countSourceCols());y(_,this,!1),s.forEach((e,t)=>{e.forEach((e,n)=>{this.engine.setCellContents({col:n,row:r+t,sheet:this.sheetId},[[e]])})})}function q(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function Q(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function Z(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function J(e){this.hot.runHooks("afterSheetAdded",e)}function ee(e,t){v(M,this,O).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function te(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=I},91002:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(23304);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.StretchColumns=n.StretchColumns},91018:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{row:n}=e.getSelectedRangeActive().highlight;let s=r.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]);null===s&&(s=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,s)),t.markEndSource()}}},91158:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:r,from:n,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(n.row,s.row,r),t.markEndSource()}}},91375:()=>{},91447:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownValidator=i;var n=r(83847);const s=t.VALIDATOR_TYPE="dropdown";function i(e,t){n.autocompleteValidator.apply(this,[e,t])}i.VALIDATOR_TYPE=s},91509:(e,t,r)=>{"use strict";var n=r(90501),s=r(99793);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){s(e,"throw",t)}}},91698:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(29926);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TextEditor=n.TextEditor},91812:(e,t,r)=>{"use strict";r(52490);var n=r(73805);t.__esModule=!0;var s=n(r(24300));r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var i=r(53383),o=r(17715),a=r(21389),l=r(42685),h=r(96357),u=r(24184);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function 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="undoRedo",p=t.PLUGIN_KEY="undoRedo",f=t.PLUGIN_PRIORITY=1e3;o.Hooks.getSingleton().register("beforeUndo"),o.Hooks.getSingleton().register("afterUndo"),o.Hooks.getSingleton().register("beforeRedo"),o.Hooks.getSingleton().register("afterRedo");const m=new Set;var w=new WeakSet;class E extends i.BasePlugin{static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return!0}constructor(e){super(e),c(this,w),(0,s.default)(this,"doneActions",[]),(0,s.default)(this,"undoneActions",[]),(0,s.default)(this,"ignoreNewActions",!1),(0,u.registerActions)(e,this)}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(w,e,y).call(e,...r)}),this.registerShortcuts(),d(w,this,C).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),d(w,this,v).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:g};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(g)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const r=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",r,t))return;const n=e(),s=this.undoneActions.slice();this.doneActions.push(n),this.hot.runHooks("afterUndoStackChange",r,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",s),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",s,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const r=(0,a.deepClone)(t);if(!1===this.hot.runHooks("beforeUndo",r))return;this.ignoreNewActions=!0;const n=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",n),t.undo(this.hot,()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)}),this.hot.runHooks("afterRedoStackChange",n,this.undoneActions.slice()),this.hot.runHooks("afterUndo",r)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const r=(0,a.deepClone)(t);if(!1===this.hot.runHooks("beforeRedo",r))return;this.ignoreNewActions=!0;const n=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",n),t.redo(this.hot,()=>{this.ignoreNewActions=!1,this.doneActions.push(t)}),this.hot.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.hot.runHooks("afterRedo",r)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function y(e,t){"loadData"===t&&this.clear()}function C(){const e=e=>{m.has(e)||((0,h.warn)(l.toSingleLine`The "${e}" method is deprecated and it will be removed\x20
291
+ the last node, the show column modification can be applied.`);const{crossHiddenColumns:r}=e.data;if(!r.includes(t))return;let s=!1;if(e.walkUp(e=>{const{data:{collapsible:t}}=e;if(t)return s=!0,!1}),s)return;e.walkUp(e=>{const{data:r}=e;r.crossHiddenColumns.splice(r.crossHiddenColumns.indexOf(t),1),!r.isHidden&&r.colspan<r.origColspan&&(r.colspan+=1),r.isHidden=!1})},r(52490);var n=r(42685)},86444:(e,t,r)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),r=(0,s.createKeyboardShortcutCommandsPool)(e),i={group:n.EDITOR_EDIT_GROUP};t.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorCloseAndSaveByEnter(e,t)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(e,t)=>r.editorCloseAndSaveByEnter(e,t)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:e.getShortcutManager().getContext("grid"),callback:(e,t)=>r.editorCloseAndSave(e,t)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(e,t)=>r.editorCloseAndSaveByArrowKeys(e,t)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>r.editorCloseWithoutSaving()}],i)};var n=r(98684),s=r(53772)},86508:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n=r(7549);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var s=r(61954);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},86602:()=>{},86720:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=r(6083),i=n(r(2788)),o=r(37131),a=r(53477),l=r(42210);class h extends o.Overlay{constructor(e,t,r,n){super(e,t,l.CLONE_INLINE_START,r,n)}createTable(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new i.default(...t)}shouldBeRendered(){return this.wtSettings.getSetting("shouldRenderInlineStartOverlay")}resetFixedPosition(){const{wtTable:e}=this.wot;if(!this.needFullRender||!this.shouldBeRendered()||!e.holder.parentNode)return!1;const{rootWindow:t}=this.domBindings,r=this.clone.wtTable.holder.parentNode,n=this.wtSettings.getSetting("preventOverflow");let i=0;this.trimmingContainer!==t||n&&"horizontal"===n?(i=this.getScrollPosition(),(0,s.resetCssTransform)(r)):(i=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(r,`${i}px`,"0px"));const o=this.adjustHeaderBordersPosition(i);return this.adjustElementsSize(),o}setScrollPosition(e){const{rootWindow:t}=this.domBindings;let r=!1;this.isRtl()&&(e=-e);const n=this.mainTableScrollableElement;if(n===t&&e!==t.scrollX){const n=t.scrollX;t.scrollTo(e,(0,s.getWindowScrollTop)(t)),r=n!==t.scrollX}else if(e!==n.scrollLeft){const t=n.scrollLeft;n.scrollLeft=e,r=t!==n.scrollLeft}return r}onScroll(){this.wtSettings.getSetting("onScrollVertically")}sumCellSizes(e,t){const r=this.wtSettings.getSetting("defaultColumnWidth");let n=e,s=0;for(;n<t;)s+=this.wot.wtTable.getColumnWidth(n)||r,n+=1;return s}adjustElementsSize(){this.updateTrimmingContainer(),this.needFullRender&&(this.adjustRootElementSize(),this.adjustRootChildrenSize())}adjustRootElementSize(){const{wtTable:e,wtViewport:t}=this.wot,{rootDocument:r,rootWindow:n}=this.domBindings,i=this.clone.wtTable.holder.parentNode.style,o=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"vertical"===o){let n=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(n-=(0,s.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollHeight),i.height=`${n}px`}else i.height="";this.clone.wtTable.holder.style.height=i.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);i.width=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,a.getCornerStyle)(this.wot),r=this.wot.selectionManager.getFocusSelection()?parseInt(t.width,10)/2:0;this.clone.wtTable.hider.style.height=this.hider.style.height,e.style.height=e.parentNode.style.height,e.style.width=`${parseInt(e.parentNode.style.width,10)+r}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalColumns"),t=this.isRtl()?"right":"left";if("number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style[t]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style[t]="0"}this.isRtl()?this.spreader.style.left="":this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`:this.clone.wtTable.spreader.style.top=""}scrollTo(e,t){const{wtSettings:r}=this,n=r.getSetting("rowHeaders"),i=r.getSetting("fixedColumnsStart"),o=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===i&&n.length>0&&!(0,s.hasClass)(o.parentNode,"innerBorderInlineStart")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getColumnWidth(e)>this.wot.wtViewport.getViewportWidth()&&(t=!1)}return t&&o.offsetWidth!==o.clientWidth&&(h=(0,s.getScrollbarWidth)(this.domBindings.rootDocument)),t?(l+=this.sumCellSizes(0,e+1),l-=this.wot.wtViewport.getViewportWidth(),l+=a):l+=this.sumCellSizes(this.wtSettings.getSetting("fixedColumnsStart"),e),l+=h,(0,s.getMaximumScrollLeft)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderHorizontallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){let e=0;return this.wtSettings.getSetting("preventOverflow")||this.trimmingContainer!==this.domBindings.rootWindow||(e=this.wot.wtTable.holderOffset.left),e}getScrollPosition(){return Math.abs((0,s.getScrollLeft)(this.mainTableScrollableElement,this.domBindings.rootWindow))}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"horizontal"!==t)){r=this.isRtl()?Math.abs(Math.min(this.getTableParentOffset()-this.getScrollPosition(),0)):Math.max(this.getScrollPosition()-this.getTableParentOffset(),0);r>this.wot.wtTable.getTotalWidth()-this.clone.wtTable.getTotalWidth()&&(r=0)}return r}adjustHeaderBordersPosition(e){const{wtSettings:t}=this,r=this.wot.wtTable.holder.parentNode,n=t.getSetting("rowHeaders"),i=t.getSetting("fixedColumnsStart"),o=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");o?(0,s.removeClass)(r,"emptyRows"):(0,s.addClass)(r,"emptyRows");let l=!1;if(!a)if(i&&!n.length)(0,s.addClass)(r,"innerBorderLeft innerBorderInlineStart");else if(!i&&n.length){const t=(0,s.hasClass)(r,"innerBorderInlineStart");e?((0,s.addClass)(r,"innerBorderLeft innerBorderInlineStart"),l=!t):((0,s.removeClass)(r,"innerBorderLeft innerBorderInlineStart"),l=t)}return l}}t.InlineStartOverlay=h},86745:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUpByViewportHight",callback(e){const{selection:t}=e,{navigableHeaders:r}=e.getSettings(),n=r?e.countColHeaders():0,{row:s}=e.getSelectedRangeActive().highlight;let i=e.countVisibleRows()+n;i=0===i?-1:-i,s===-n?i=-1:s+i<n&&(i=-(s+n)),t.markSource("keyboard"),t.transformStart(i,0),t.markEndSource(),e.getSelectedRangeActive().highlight.row<0&&e.scrollViewportTo({row:0})}}},86951:(e,t,r)=>{"use strict";t.__esModule=!0,r(34478),r(940);const n=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]);t.normalizeKeys=e=>e.map(e=>{const t=e.toLowerCase();return n.has(t)?n.get(t):t}).sort().join("+");t.getKeysList=e=>e.split("+");const s=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]);t.normalizeEventKey=e=>{let{which:t,key:r}=e;if(s.has(t))return s.get(t);const n=String.fromCharCode(t).toLowerCase();return/^[a-z0-9]$/.test(n)?n:r.toLowerCase()}},87041:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=r(6083),i=n(r(42660)),o=n(r(97996)),a=n(r(93578)),l=r(21389);class h extends i.default{constructor(e,t,r,n){super(e,t,r,n,"master")}alignOverlaysWithTrimmingContainer(){const e=(0,s.getTrimmingContainer)(this.wtRootElement),{rootWindow:t}=this.domBindings;if(e===t){this.wtSettings.getSetting("preventOverflow")||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else{const r=e.parentElement,n=(0,s.getStyle)(e,"height",t),i=(0,s.getStyle)(e,"overflow",t),o=this.holder.style,{scrollWidth:a,scrollHeight:l}=e;let h=e.offsetWidth,u=e.offsetHeight;if(r&&["auto","hidden","scroll"].includes(i)){const n=e.cloneNode(!1);n.style.overflow="auto",n.style.position="absolute",e.nextElementSibling?r.insertBefore(n,e.nextElementSibling):r.appendChild(n);const s=parseInt(t.getComputedStyle(n).height,10);r.removeChild(n),0===s&&(u=0)}u=Math.min(u,l),o.height="auto"===n?"auto":`${u}px`,h=Math.min(h,a),o.width=`${h}px`,o.overflow="",this.hasTableHeight="auto"===o.height||u>0,this.hasTableWidth=h>0}this.isTableVisible=(0,s.isVisible)(this.TABLE)}markOversizedColumnHeaders(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject,r="master",n=e.getSetting("columnHeaders").length;if(n&&!t.hasOversizedColumnHeadersMarked[r]){const s=e.getSetting("rowHeaders").length,i=this.getRenderedColumnsCount();for(let e=0;e<n;e++)for(let e=-1*s;e<i;e++)this.markIfOversizedColumnHeader(e);t.hasOversizedColumnHeadersMarked[r]=!0}}}(0,l.mixin)(h,o.default),(0,l.mixin)(h,a.default);t.default=h},87085:()=>{},87488:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,t.default=function(e,t,r){if("function"==typeof o[e])return new o[e](t,r);return null};var s=n(r(13176));const i=t.TYPE_CSV="csv",o=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[i]:s.default})},87513:()=>{},87793:(e,t,r)=>{"use strict";var n=r(72820),s=r(94266),i=r(13861),o=r(90501),a=r(44827),l=r(81037),h=r(23720),u=r(67774),c=r(53001),d=r(19451),g=r(12033),p=r(97259).IteratorPrototype,f=r(2382),m=r(33973),w="constructor",E="Iterator",y=g("toStringTag"),C=TypeError,v=s[E],S=m||!a(v)||v.prototype!==p||!c(function(){v({})}),R=function(){if(i(this,p),l(this)===p)throw new C("Abstract class Iterator not directly constructable")},T=function(e,t){f?h(p,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===p)throw new C("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):p[e]=t};d(p,y)||T(y,E),!S&&d(p,w)&&p[w]!==Object||T(w,R),R.prototype=p,n({global:!0,constructor:!0,forced:S},{Iterator:R})},87842:(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])}getTrimmedIndexes(){return(0,s.arrayReduce)(this.getValues(),(e,t,r)=>(t&&e.push(r),e),[])}}t.TrimmingMap=i},87878:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520),i=r(96792),o=r(59188),a=r(94811),l=r(26023),h=r(48369),u=s.has,c=s.remove;e.exports=function(e){var t=n(this),r=a(e),s=i(t);return o(t)<=r.size?l(t,function(e){r.includes(e)&&c(s,e)}):h(r.getIterator(),function(e){u(s,e)&&c(s,e)}),s}},87913:(e,t,r)=>{"use strict";var n=r(41462),s=r(31520).has,i=r(59188),o=r(94811),a=r(48369),l=r(99793);e.exports=function(e){var t=n(this),r=o(e);if(i(t)<r.size)return!1;var h=r.getIterator();return!1!==a(h,function(e){if(!s(t,e))return l(h,"normal",!1)})}},88155:(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(35244));const l=["data","width"];t.default=class{constructor(e){(0,s.default)(this,"globalMeta",void 0),(0,s.default)(this,"metas",new a.default(()=>this._createMeta())),this.globalMeta=e,this.metas=new a.default(()=>this._createMeta())}updateMeta(e,t){const r=this.getMeta(e);(0,i.extend)(r,t),(0,o.extendByMetaType)(r,t)}createColumn(e,t){this.metas.insert(e,t)}removeColumn(e,t){this.metas.remove(e,t)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return(0,o.columnFactory)(this.globalMeta.getMetaConstructor(),l).prototype}}},88236:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(6083),s=r(21389),i=r(11492);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(l(e,t))}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 WeakSet;class c extends i.BaseUI{static get DEFAULTS(){return(0,s.clone)({placeholder:"",type:"text",tagName:"input",tabIndex:-1})}constructor(e,t){var r,n;super(e,(0,s.extend)(c.DEFAULTS,t)),o(r=this,n=u),n.add(r),function(e,t,r){o(e,t),t.set(e,r)}(this,h,void 0),this.registerHooks()}registerHooks(){this.addLocalHook("keyup",e=>l(u,this,d).call(this,e))}build(){super.build();const e=this.hot.rootDocument.createElement("div");var t,r,s;t=h,r=this,s=this._element.firstChild,t.set(l(t,r),s),(0,n.addClass)(this._element,"htUIInput"),(0,n.addClass)(e,"htUIInputIcon"),this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(a(h,this).type=this.options.type,a(h,this).placeholder=this.translateIfPossible(this.options.placeholder),a(h,this).value=this.translateIfPossible(this.options.value))}focus(){this.isBuilt()&&a(h,this).focus()}}function d(e){this.options.value=e.target.value}t.InputUI=c},88356:()=>{},88453:(e,t,r)=>{"use strict";r(34478),r(31143),t.__esModule=!0;var n={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[i.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=r(86444),i=r(9585),o=r(98684);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||(t[e]=o[e]))})},88725:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},88786:(e,t,r)=>{"use strict";var n={};n[r(12033)("toStringTag")]="z",e.exports="[object z]"===String(n)},88921:()=>{},88932:(e,t,r)=>{"use strict";var n=r(19098),s=r(44827),i=r(65415),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},89083:(e,t,r)=>{"use strict";var n=r(72820),s=r(94178),i=r(67774);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return s(e,function(e,r){i(t,e,r)},{AS_ENTRIES:!0}),t}})},89253:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(982);t.ExtenderTransformation=n.ExtenderTransformation;var s=r(97957);t.FocusTransformation=s.FocusTransformation},89577:()=>{},89595:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(4407),o=r(40785),a=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)),l=n(r(75175));function h(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 u(e,t){return e.get(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")}(e,t))}var c=new WeakMap;class d extends l.default{constructor(){super(...arguments),(0,s.default)(this,"dataManager",this.plugin.dataManager),h(this,c,{row_above:(e,t)=>{const r=t[t.length-1];this.dataManager.addSibling(r.start.row,"above")},row_below:(e,t)=>{const r=t[t.length-1];this.dataManager.addSibling(r.start.row,"below")}})}appendOptions(e){const t=[{key:"add_child",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD)},callback:()=>{const e=this.dataManager.translateTrimmedRow(this.hot.getSelectedActive()[0]),t=this.dataManager.getDataObject(e);this.dataManager.addChild(t)},disabled:()=>{const e=this.hot.getSelectedActive();return!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{key:"detach_from_parent",name(){return this.getTranslatedPhrase(a.CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD)},callback:()=>{this.dataManager.detachFromParent(this.hot.getSelectedActive())},disabled:()=>{const e=this.hot.getSelectedActive(),t=this.dataManager.translateTrimmedRow(e[0]);return!this.dataManager.getRowParent(t)||!e||e[0]<0||this.hot.selection.isSelectedByColumnHeader()||this.hot.countRows()>=this.hot.getSettings().maxRows}},{name:"---------"}];return(0,i.rangeEach)(0,e.items.length-1,r=>{if(0===r)return(0,o.arrayEach)(t,(t,n)=>{e.items.splice(r+n,0,t)}),!1}),this.modifyRowInsertingOptions(e)}modifyRowInsertingOptions(e){return(0,i.rangeEach)(0,e.items.length-1,t=>{const r=u(c,this)[e.items[t].key];null!=r&&(e.items[t].callback=r)}),e}}t.default=d},89624:(e,t,r)=>{"use strict";var n=r(72820),s=r(87878),i=r(53001);n({target:"Set",proto:!0,real:!0,forced:!r(12874)("difference",function(e){return 0===e.size})||i(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:s})},90113:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(50057),s=r(40697),i=r(74321),o=r(10470);const a=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:a,editor:n.AutocompleteEditor,renderer:s.autocompleteRenderer,validator:i.autocompleteValidator,valueGetter:o.valueGetter,valueSetter:o.valueSetter}},90233:(e,t,r)=>{"use strict";t.__esModule=!0,t.columnHeaderScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e).getComputedColumnTarget(t);e.scrollViewportTo({col:r},()=>{const t=!!e.getSettings().colHeaders;(0,n.scrollWindowToCell)(e.getCell(t?-1:0,r,!0))})}};var n=r(62147)},90375:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(9208);class o extends i.BaseAction{constructor(e){let{data:t,cellRange:r}=e;super("merge_cells"),(0,s.default)(this,"cellRange",void 0),this.cellRange=r,this.data=t}static startRegisteringEvents(e,t){e.addHook("beforeMergeCells",(r,n)=>{if(n)return;const s=r.getTopStartCorner(),i=r.getBottomEndCorner(),a=e.getData(s.row,s.col,i.row,i.col);t.done(()=>new o({data:a,cellRange:r}))})}undo(e,t){const r=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),r.unmergeRange(this.cellRange,!0);const n=this.cellRange.getTopStartCorner();e.populateFromArray(n.row,n.col,this.data,void 0,void 0,"MergeCells")}redo(e,t){const r=e.getPlugin("mergeCells");e.addHookOnce("afterViewRender",t),r.mergeRange(this.cellRange)}}t.MergeCellsAction=o},90433:()=>{},90474:(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(21389),o=r(40785),a=r(40038),l=r(51241),h=r(69264),u=r(38594),c=r(39705),d=n(r(46427)),g=r(96357);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(E(e,t),r),r}function w(e,t){return e.get(E(e,t))}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")}const y=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",u.hasRenderer],["validator",c.hasValidator]]),C=t.defaultMainSettingSymbol=Symbol("mainSetting"),v=t.PLUGIN_KEY="base",S=[];let R=null;var T=new WeakMap,N=new WeakMap,_=new WeakSet;function A(e){if(!e)return!1;const t=this.constructor.SETTING_KEYS;if("boolean"==typeof t)return t;for(let r=0;r<t.length;r++)if(void 0!==e[t[r]])return!0;return!1}t.BasePlugin=class{static get PLUGIN_KEY(){return v}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}static get SETTINGS_VALIDATORS(){return null}constructor(e){var t,r;f(t=this,r=_),r.add(t),p(this,T,null),(0,s.default)(this,"eventManager",new d.default(this)),(0,s.default)(this,"pluginName",null),(0,s.default)(this,"pluginsInitializedCallbacks",[]),(0,s.default)(this,"isPluginsReady",!1),(0,s.default)(this,"enabled",!1),(0,s.default)(this,"initialized",!1),p(this,N,{}),(0,i.defineGetter)(this,"hot",e,{writable:!1}),R=null,this.hot.addHook("afterPluginsInitialized",()=>this.onAfterPluginsInitialized()),this.hot.addHook("afterUpdateSettings",e=>this.onUpdateSettings(e)),this.hot.addHook("beforeInit",()=>this.init())}init(){this.pluginName=this.hot.getPluginName(this),this.updatePluginSettings(this.hot.getSettings()[this.constructor.PLUGIN_KEY]);const e=this.constructor.PLUGIN_DEPS,t=Array.isArray(e)?e:[];if(t.length>0){const e=[];if(t.forEach(t=>{const[r,n]=t.split(":");if(!y.has(r))throw new Error(`Unknown plugin dependency type "${r}" was found.`);y.get(r)(n)||e.push(` - ${n} (${r})`)}),e.length>0){const t=[`The ${this.pluginName} plugin requires the following modules:\n`,`${e.join("\n")}\n`].join("");S.push(t)}}R||(R=(0,a.getPluginsNames)()),R.indexOf(this.pluginName)>=0&&R.splice(R.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===R.length){if(S.length>0){const e=[`${S.join("\n")}\n`,"You have to import and register them manually."].join("");throw S.length=0,new Error(e)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;null===(e=this.eventManager)||void 0===e||e.clear(),this.clearHooks(),this.enabled=!1}getSetting(e){const t=this.constructor.DEFAULT_SETTINGS;if(void 0===e)return(0,i.isObject)(w(T,this))?(0,i.assignObjectDefaults)(w(T,this),t):w(T,this);var r;if((Array.isArray(w(T,this))||(0,i.isObject)(w(T,this)))&&t[C]===e)return Array.isArray(w(T,this))?w(T,this):null!==(r=w(T,this)[e])&&void 0!==r?r:t[e];if(e.includes(".")){const r=(0,i.getProperty)(w(T,this),e),n=(0,i.getProperty)(t,e);return(0,i.isObject)(r)?(0,i.assignObjectDefaults)(r,n):void 0!==r?r:n}return(0,i.isObject)(w(T,this))?(0,i.assignObjectDefaults)(w(T,this),t)[e]:t[e]}updatePluginSettings(e){const t=this.constructor.SETTINGS_VALIDATORS;if(t&&"function"==typeof t&&"object"!=typeof e){return!1===t(e)?void(0,g.warn)(`${this.pluginName} Plugin: option is not valid and it will be ignored.`):(m(T,this,e),w(T,this))}return t&&"object"==typeof t&&"object"==typeof e?(null!==w(T,this)&&"object"==typeof w(T,this)||m(T,this,{...this.constructor.DEFAULT_SETTINGS}),Object.keys(t).forEach(r=>{if(!(r in e))return;const n=t[r];!1!==(!n||n(e[r]))?w(T,this)[r]=e[r]:(0,g.warn)(`${this.pluginName} Plugin: "${r}" option is not valid and it will be ignored.`)}),w(T,this)):(m(T,this,e),e)}addHook(e,t,r){w(N,this)[e]=w(N,this)[e]||[];const n=w(N,this)[e];this.hot.addHook(e,t,r),n.push(t),w(N,this)[e]=n}removeHooks(e){(0,o.arrayEach)(w(N,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=w(N,this);(0,i.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,o.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=E(_,this,A).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&(this.updatePluginSettings(e[this.constructor.PLUGIN_KEY]),this.updatePlugin(e)))}updatePlugin(){}destroy(){var e;m(T,this,null),null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,i.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},90501:(e,t,r)=>{"use strict";var n=r(15176),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},90643:(e,t,r)=>{"use strict";r(50506)},90742:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356),r(58584),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(66133),r(31143),r(940);var s=n(r(24300)),i=r(53383),o=r(55585),a=r(96357),l=r(4407),h=r(21389),u=r(27727),c=r(19199),d=r(37908),g=r(95519),p=r(97934),f=r(82887),m=r(17715),w=n(r(30818));function E(e,t,r){y(e,t),t.set(e,r)}function y(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C(e,t,r){return e.set(S(e,t),r),r}function v(e,t){return e.get(S(e,t))}function S(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 R=t.PLUGIN_KEY="formulas",T=t.SETTING_KEYS=["maxRows","maxColumns","language"],N=t.PLUGIN_PRIORITY=260;m.Hooks.getSingleton().register("afterNamedExpressionAdded"),m.Hooks.getSingleton().register("afterNamedExpressionRemoved"),m.Hooks.getSingleton().register("afterSheetAdded"),m.Hooks.getSingleton().register("afterSheetRemoved"),m.Hooks.getSingleton().register("afterSheetRenamed"),m.Hooks.getSingleton().register("afterFormulasValuesUpdate");const _=e=>"UndoRedo.undo"===e||"UndoRedo.redo"===e||"auto"===e;var A=new WeakMap,b=new WeakMap,M=new WeakMap,I=new WeakSet;class O extends i.BasePlugin{constructor(){var e,t,r;super(...arguments),e=this,y(t=this,r=I),r.add(t),E(this,A,!1),E(this,b,!1),E(this,M,[["valuesUpdated",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(I,e,J).call(e,...r)}],["namedExpressionAdded",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(I,e,ee).call(e,...r)}],["namedExpressionRemoved",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(I,e,te).call(e,...r)}],["sheetAdded",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(I,e,re).call(e,...r)}],["sheetRenamed",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(I,e,ne).call(e,...r)}],["sheetRemoved",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(I,e,se).call(e,...r)}]]),(0,s.default)(this,"staticRegister",(0,o.staticRegister)("formulas")),(0,s.default)(this,"engine",null),(0,s.default)(this,"sheetId",null),(0,s.default)(this,"sheetName",null),(0,s.default)(this,"indexSyncer",null),(0,s.default)(this,"rowAxisSyncer",null),(0,s.default)(this,"columnAxisSyncer",null)}static get PLUGIN_KEY(){return R}static get PLUGIN_PRIORITY(){return N}static get SETTING_KEYS(){return[R,...T]}isEnabled(){return!!this.hot.getSettings()[R]}enablePlugin(){var e,t=this;if(!this.enabled)if(this.engine=null!==(e=(0,c.setupEngine)(this.hot))&&void 0!==e?e:this.engine,this.engine){if(null!==this.sheetName&&!this.engine.doesSheetExist(this.sheetName)){const e=this.addSheet(this.sheetName,S(I,this,L).call(this));!1!==e&&S(I,this,x).call(this,e)}this.addHook("beforeLoadData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,H).call(t,...r)}),this.addHook("afterLoadData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,U).call(t,...r)}),this.addHook("beforeUpdateData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,H).call(t,...r)}),this.addHook("afterUpdateData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,U).call(t,...r)}),this.addHook("modifyData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,V).call(t,...r)}),this.addHook("modifySourceData",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,B).call(t,...r)}),this.addHook("beforeValidate",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,D).call(t,...r)}),this.addHook("afterSetSourceDataAtCell",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,Y).call(t,...r)}),this.addHook("afterSetDataAtCell",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,W).call(t,...r)}),this.addHook("afterSetDataAtRowProp",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,W).call(t,...r)}),this.addHook("beforeCreateRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,G).call(t,...r)}),this.addHook("beforeCreateCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,j).call(t,...r)}),this.addHook("afterCreateRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,K).call(t,...r)}),this.addHook("afterCreateCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,X).call(t,...r)}),this.addHook("beforeRemoveRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,z).call(t,...r)}),this.addHook("beforeRemoveCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,$).call(t,...r)}),this.addHook("afterRemoveRow",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,q).call(t,...r)}),this.addHook("afterRemoveCol",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,Q).call(t,...r)}),this.indexSyncer=new w.default(this.hot.rowIndexMapper,this.hot.columnIndexMapper,e=>{this.hot.addHookOnce("init",()=>{e()})}),this.rowAxisSyncer=this.indexSyncer.getForAxis("row"),this.columnAxisSyncer=this.indexSyncer.getForAxis("column"),this.hot.addHook("afterRowSequenceChange",this.rowAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("afterColumnSequenceChange",this.columnAxisSyncer.getIndexesChangeSyncMethod()),this.hot.addHook("beforeRowMove",(e,t,r,n)=>{this.rowAxisSyncer.storeMovesInformation(e,t,n)}),this.hot.addHook("beforeColumnMove",(e,t,r,n)=>{this.columnAxisSyncer.storeMovesInformation(e,t,n)}),this.hot.addHook("afterRowMove",(e,t,r,n,s)=>{this.rowAxisSyncer.calculateAndSyncMoves(n,s)}),this.hot.addHook("afterColumnMove",(e,t,r,n,s)=>{this.columnAxisSyncer.calculateAndSyncMoves(n,s)}),this.hot.addHook("beforeColumnFreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart,t)}),this.hot.addHook("afterColumnFreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.hot.addHook("beforeColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.storeMovesInformation([e],this.hot.getSettings().fixedColumnsStart-1,t)}),this.hot.addHook("afterColumnUnfreeze",(e,t)=>{this.columnAxisSyncer.calculateAndSyncMoves(t,t)}),this.addHook("afterCellMetaReset",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,F).call(t,...r)}),this.addHook("beforeUndo",()=>{this.indexSyncer.setPerformUndo(!0),this.engine.undo()}),this.addHook("beforeRedo",()=>{this.indexSyncer.setPerformRedo(!0),this.engine.redo()}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformUndo(!1)}),this.addHook("afterUndo",()=>{this.indexSyncer.setPerformRedo(!1)}),this.addHook("afterDetachChild",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,Z).call(t,...r)}),this.addHook("beforeAutofill",function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return S(I,t,k).call(t,...r)}),v(M,this).forEach(e=>{let[t,r]=e;return this.engine.on(t,r)}),super.enablePlugin()}else(0,a.warn)("Missing the required `engine` key in the Formulas settings. Please fill it with either an engine class or an engine instance.")}disablePlugin(){v(M,this).forEach(e=>{let[t,r]=e;return this.engine.off(t,r)}),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.disablePlugin()}updatePlugin(e){const t=(0,g.getEngineSettingsWithOverrides)(this.hot.getSettings());(0,g.haveEngineSettingsChanged)(this.engine.getConfig(),t)&&this.engine.updateConfig(t);const r=this.hot.getSettings()[R];if((0,u.isDefined)(r)&&(0,u.isDefined)(r.sheetName)&&r.sheetName!==this.sheetName&&this.switchSheet(r.sheetName),!e.data&&null===this.sheetName){const e=this.hot.getSettings()[R].sheetName;if(e&&this.engine.doesSheetExist(e))this.switchSheet(this.sheetName);else{const t=this.addSheet(null!=e?e:void 0,S(I,this,L).call(this));S(I,this,x).call(this,t)}}super.updatePlugin(e)}destroy(){v(M,this).forEach(e=>{var t;let[r,n]=e;return null===(t=this.engine)||void 0===t?void 0:t.off(r,n)}),C(M,this,null),(0,c.unregisterEngine)(this.engine,this.hot),this.engine=null,super.destroy()}addSheet(e,t){if((0,u.isDefined)(t)&&!(0,p.isArrayOfArrays)(t))return(0,a.warn)("The provided data should be an array of arrays."),!1;if(null!=e&&this.engine.doesSheetExist(e))return(0,a.warn)("Sheet with the provided name already exists."),!1;try{const r=this.engine.addSheet(null!=e?e:void 0);return t&&this.engine.setSheetContent(this.engine.getSheetId(r),t),r}catch(e){return(0,a.warn)(e.message),!1}}switchSheet(e){if(!this.engine.doesSheetExist(e))return void(0,a.error)(`The sheet named \`${e}\` does not exist, switch aborted.`);S(I,this,x).call(this,e);const t=this.engine.getSheetSerialized(this.sheetId);t.length>0&&this.hot.loadData(t,`${(0,f.toUpperCaseFirst)(R)}.switchSheet`)}getCellType(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;const n=this.hot.toPhysicalRow(e),s=this.hot.toPhysicalColumn(t);return null!==n&&null!==s?this.engine.getCellType({sheet:r,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)}):"EMPTY"}isFormulaCellType(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.sheetId;return this.engine.doesCellHaveFormula({sheet:r,row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t)})}renderDependentSheets(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=new Set;e.forEach(e=>{var t;const n=null==e||null===(t=e.address)||void 0===t?void 0:t.sheet;void 0!==n&&(r.has(n)||r.add(n))}),(0,c.getRegisteredHotInstances)(this.engine).forEach((e,n)=>{var s;(t||n!==this.sheetId)&&r.has(n)&&(e.render(),null===(s=e.view)||void 0===s||s.adjustElementsSize())})}validateDependentCells(e){const t=e=>{var t;const{row:r,col:n,sheet:s}=null!==(t=null==e?void 0:e.address)&&void 0!==t?t:{};return(0,u.isDefined)(s)?`${s}:${r}x${n}`:""},r=new Set((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map(e=>t(e)));e.forEach(e=>{var n,s;const{row:i,col:o}=null!==(n=e.address)&&void 0!==n?n:{};if(!1===(0,u.isDefined)(i)||!1===(0,u.isDefined)(o)||i>=this.hot.countRows()||o>=this.hot.countCols())return;const a=null==e||null===(s=e.address)||void 0===s?void 0:s.sheet,l=t(e);if(void 0!==a&&!r.has(l)){const e=(0,c.getRegisteredHotInstances)(this.engine).get(a);if(!e)return;e.validateCell(e.getDataAtCell(i,o),e.getCellMeta(i,o),()=>{})}})}syncChangeWithEngine(e,t,r){const n={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};if(!this.engine.isItPossibleToSetCellContents(n))return void(0,a.warn)(`Not possible to set cell data at ${JSON.stringify(n)}`);const s=this.hot.getCellMeta(e,t);return(0,d.isDate)(r,s.type)&&((0,d.isDateValid)(r,s.dateFormat)?r=(0,d.getDateInHfFormat)(r,s.dateFormat):!1===(0,d.isFormula)(r)&&(r=`'${r}`)),this.engine.setCellContents(n,r)}}function x(e){this.sheetName=e,this.sheetId=this.engine.getSheetId(this.sheetName)}function P(e,t,r){if((0,h.isObject)(r)&&null!==r){const n=this.hot.toVisualRow(e),s=this.hot.toVisualColumn(t),i=this.hot.getCellMeta(n,s).valueGetter;return i?i.call(this.hot,r):r.toString()}return r}function L(e,t,r,n){return this.hot.getSourceDataArray(e,t,r,n).map((e,t)=>e.map((e,r)=>S(I,this,P).call(this,t,r,e)))}function D(e,t,r){const n=this.hot.propToCol(r);if(this.isFormulaCellType(t,n)){const e={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(n),sheet:this.sheetId},r=this.hot.getCellMeta(t,n);let s=this.engine.getCellValue(e);return"date"===r.type&&(0,l.isNumeric)(s)&&(s=(0,d.getDateFromExcelDate)(s,r.dateFormat)),"object"==typeof s&&null!==s?s.value:s}return e}function k(e,t,r){const{row:n,col:s}=t.getTopStartCorner(),{row:i,col:o}=t.getBottomEndCorner(),{row:a,col:l}=r.getTopStartCorner(),{row:h,col:u}=r.getBottomEndCorner(),c={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(n),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(s),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(i),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId}},g={start:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(a),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(l),sheet:this.sheetId},end:{row:this.rowAxisSyncer.getHfIndexFromVisualIndex(h),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(u),sheet:this.sheetId}};if(!1===this.engine.isItPossibleToSetCellContents(g))return!1;const p=this.engine.getFillRangeData(c,g),{row:f,col:m}=c.start,{row:w,col:E}=c.end,y=w-f+1,C=E-m+1;for(let e=0;e<p.length;e+=1)for(let t=0;t<p[e].length;t+=1){const r=p[e][t],n=f+e%y,s=m+t%C,i=this.hot.getCellMeta(n,s);(0,d.isDate)(r,i.type)&&(r.startsWith("'")?p[e][t]=r.slice(1):!1===this.isFormulaCellType(n,s,this.sheetId)&&(p[e][t]=(0,d.getDateInHotFormat)(r,i.dateFormat)))}return p}function H(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"").includes((0,f.toUpperCaseFirst)(R))||C(b,this,(0,u.isUndefined)(this.hot.getSettings().data))}function F(){if(v(b,this))return void this.switchSheet(this.sheetName);const e=S(I,this,L).call(this);e.forEach((t,r)=>{t.forEach((t,n)=>{const s=this.hot.getCellMeta(r,n,{skipMetaExtension:!0}),i=s.dateFormat;(0,d.isDate)(t,s.type)&&((0,d.isDateValid)(t,i)?e[r][n]=(0,d.getDateInHfFormat)(t,i):t.startsWith("=")||(e[r][n]=`'${t}`))})}),C(A,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),C(A,this,!1)}function U(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(r.includes((0,f.toUpperCaseFirst)(R)))return;const n=(0,c.setupSheet)(this.engine,this.hot.getSettings()[R].sheetName);if(S(I,this,x).call(this,n),"updateSettings"!==r)if(v(b,this))this.switchSheet(this.sheetName);else{const e=S(I,this,L).call(this);if(this.engine.isItPossibleToReplaceSheetContent(this.sheetId,e)){C(A,this,!0);const t=this.engine.setSheetContent(this.sheetId,e);this.indexSyncer.setupSyncEndpoint(this.engine,this.sheetId),this.renderDependentSheets(t),C(A,this,!1)}}}function V(e,t,r,n){if("get"!==n||v(A,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;if(null===e||null===t)return;const s=this.getCellType(e,t);if("VALUE"===s||"EMPTY"===s)return void(r.value=(0,d.unescapeFormulaExpression)(r.value));const i={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(e),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(t),sheet:this.sheetId};let o=this.engine.getCellValue(i);const a=this.hot.getCellMeta(e,t,{skipMetaExtension:!0});"date"===a.type&&(0,l.isNumeric)(o)&&(o=(0,d.getDateFromExcelDate)(o,a.dateFormat)),r.value="object"==typeof o&&null!==o?o.value:o}function B(e,t,r,n){if("get"!==n||v(A,this)||null===this.sheetName||!this.engine.doesSheetExist(this.sheetName))return;const s=this.hot.toVisualRow(e),i=this.hot.propToCol(t);if(null===s||null===i)return;const o=this.getCellType(s,i);if("VALUE"===o||"EMPTY"===o)return;const a=this.engine.getSheetDimensions(this.engine.getSheetId(this.sheetName));if(0===a.width&&0===a.height)return;const l={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(s),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(i),sheet:this.sheetId};r.value=this.engine.getCellSerialized(l)}function W(e,t){if(_(t))return;const r=[],n=[],s=this.engine.batch(()=>{e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s),a=this.hot.toPhysicalRow(t),l=this.hot.toPhysicalColumn(o),h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};i=S(I,this,P).call(this,a,l,i),null!==a&&null!==l?this.syncChangeWithEngine(t,o,i):r.push([t,o,i]),n.push({address:h})})});r.length&&this.hot.addHookOnce("afterChange",()=>{const e=this.engine.batch(()=>{r.forEach(e=>{let[t,r,n]=e;this.syncChangeWithEngine(t,r,n)})});this.renderDependentSheets(e,!0)}),this.renderDependentSheets(s),this.validateDependentCells(s,n)}function Y(e,t){if(_(t))return;const r=[],n=[];e.forEach(e=>{let[t,s,,i]=e;const o=this.hot.propToCol(s);if(!(0,l.isNumeric)(o))return;const h={row:this.rowAxisSyncer.getHfIndexFromVisualIndex(t),col:this.columnAxisSyncer.getHfIndexFromVisualIndex(o),sheet:this.sheetId};this.engine.isItPossibleToSetCellContents(h)?(n.push({address:h}),r.push(...this.engine.setCellContents(h,i))):(0,a.warn)(`Not possible to set source cell data at ${JSON.stringify(h)}`)}),this.renderDependentSheets(r),this.validateDependentCells(r,n)}function G(e,t){let r=this.rowAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countRows()&&(r=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddRows(this.sheetId,[r,t]))return!1}function j(e,t){let r=this.columnAxisSyncer.getHfIndexFromVisualIndex(e);if(e>=this.hot.countCols()&&(r=e),null===this.sheetId||!this.engine.doesSheetExist(this.sheetName)||!this.engine.isItPossibleToAddColumns(this.sheetId,[r,t]))return!1}function z(e,t,r){return!1!==this.rowAxisSyncer.setRemovedHfIndexes(r).every(e=>this.engine.isItPossibleToRemoveRows(this.sheetId,[e,1]))&&void 0}function $(e,t,r){return!1!==this.columnAxisSyncer.setRemovedHfIndexes(r).every(e=>this.engine.isItPossibleToRemoveColumns(this.sheetId,[e,1]))&&void 0}function K(e,t,r){if(_(r))return;const n=this.engine.addRows(this.sheetId,[this.rowAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(n)}function X(e,t,r){if(_(r))return;const n=this.engine.addColumns(this.sheetId,[this.columnAxisSyncer.getHfIndexFromVisualIndex(e),t]);this.renderDependentSheets(n)}function q(e,t,r,n){if(_(n))return;const s=this.rowAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeRows(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function Q(e,t,r,n){if(_(n))return;const s=this.columnAxisSyncer.getRemovedHfIndexes().sort((e,t)=>t-e),i=this.engine.batch(()=>{s.forEach(e=>{this.engine.removeColumns(this.sheetId,[e,1])})});this.renderDependentSheets(i)}function Z(e,t,r){var n;C(A,this,!0);const s=S(I,this,L).call(this,r,0,r+((null===(n=t.__children)||void 0===n?void 0:n.length)||0),this.hot.countSourceCols());C(A,this,!1),s.forEach((e,t)=>{e.forEach((e,n)=>{this.engine.setCellContents({col:n,row:r+t,sheet:this.sheetId},[[e]])})})}function J(e){this.hot.runHooks("afterFormulasValuesUpdate",e)}function ee(e,t){this.hot.runHooks("afterNamedExpressionAdded",e,t)}function te(e,t){this.hot.runHooks("afterNamedExpressionRemoved",e,t)}function re(e){this.hot.runHooks("afterSheetAdded",e)}function ne(e,t){S(I,this,x).call(this,t),this.hot.runHooks("afterSheetRenamed",e,t)}function se(e,t){this.hot.runHooks("afterSheetRemoved",e,t)}t.Formulas=O},91002:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(23304);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.StretchColumns=n.StretchColumns},91018:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{row:n}=e.getSelectedRangeActive().highlight;let s=r.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]);null===s&&(s=e.isRtl()?-e.countRowHeaders():-1),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,s)),t.markEndSource()}}},91158:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:r,from:n,to:s}=e.getSelectedRangeActive();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(n.row,s.row,r),t.markEndSource()}}},91375:()=>{},91447:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownValidator=i;var n=r(83847);const s=t.VALIDATOR_TYPE="dropdown";function i(e,t){n.autocompleteValidator.apply(this,[e,t])}i.VALIDATOR_TYPE=s},91509:(e,t,r)=>{"use strict";var n=r(90501),s=r(99793);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){s(e,"throw",t)}}},91698:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(29926);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TextEditor=n.TextEditor},91812:(e,t,r)=>{"use strict";r(52490);var n=r(73805);t.__esModule=!0;var s=n(r(24300));r(99356),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724);var i=r(53383),o=r(17715),a=r(21389),l=r(42685),h=r(96357),u=r(24184);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function 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="undoRedo",p=t.PLUGIN_KEY="undoRedo",f=t.PLUGIN_PRIORITY=1e3;o.Hooks.getSingleton().register("beforeUndo"),o.Hooks.getSingleton().register("afterUndo"),o.Hooks.getSingleton().register("beforeRedo"),o.Hooks.getSingleton().register("afterRedo");const m=new Set;var w=new WeakSet;class E extends i.BasePlugin{static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return f}static get SETTING_KEYS(){return!0}constructor(e){super(e),c(this,w),(0,s.default)(this,"doneActions",[]),(0,s.default)(this,"undoneActions",[]),(0,s.default)(this,"ignoreNewActions",!1),(0,u.registerActions)(e,this)}isEnabled(){return!!this.hot.getSettings().undo}enablePlugin(){var e=this;this.enabled||(this.addHook("afterChange",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return d(w,e,y).call(e,...r)}),this.registerShortcuts(),d(w,this,C).call(this),super.enablePlugin())}disablePlugin(){super.disablePlugin(),this.clear(),this.unregisterShortcuts(),d(w,this,v).call(this)}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("grid"),t={runOnlyIf:e=>!e.altKey,group:g};e.addShortcuts([{keys:[["Control/Meta","z"]],callback:()=>{this.undo()}},{keys:[["Control/Meta","y"],["Control/Meta","Shift","z"]],callback:()=>{this.redo()}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(g)}done(e,t){if(this.ignoreNewActions)return;if("UndoRedo.undo"===t||"UndoRedo.redo"===t||"auto"===t)return;const r=this.doneActions.slice();if(!1===this.hot.runHooks("beforeUndoStackChange",r,t))return;const n=e(),s=this.undoneActions.slice();this.doneActions.push(n),this.hot.runHooks("afterUndoStackChange",r,this.doneActions.slice()),this.hot.runHooks("beforeRedoStackChange",s),this.undoneActions.length=0,this.hot.runHooks("afterRedoStackChange",s,this.undoneActions.slice())}undo(){if(!this.isUndoAvailable())return;const e=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",e);const t=this.doneActions.pop();this.hot.runHooks("afterUndoStackChange",e,this.doneActions.slice());const r=(0,a.deepClone)(t);if(!1===this.hot.runHooks("beforeUndo",r))return;this.ignoreNewActions=!0;const n=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",n),t.undo(this.hot,()=>{this.ignoreNewActions=!1,this.undoneActions.push(t)}),this.hot.runHooks("afterRedoStackChange",n,this.undoneActions.slice()),this.hot.runHooks("afterUndo",r)}redo(){if(!this.isRedoAvailable())return;const e=this.undoneActions.slice();this.hot.runHooks("beforeRedoStackChange",e);const t=this.undoneActions.pop();this.hot.runHooks("afterRedoStackChange",e,this.undoneActions.slice());const r=(0,a.deepClone)(t);if(!1===this.hot.runHooks("beforeRedo",r))return;this.ignoreNewActions=!0;const n=this.doneActions.slice();this.hot.runHooks("beforeUndoStackChange",n),t.redo(this.hot,()=>{this.ignoreNewActions=!1,this.doneActions.push(t)}),this.hot.runHooks("afterUndoStackChange",n,this.doneActions.slice()),this.hot.runHooks("afterRedo",r)}isUndoAvailable(){return this.doneActions.length>0}isRedoAvailable(){return this.undoneActions.length>0}clear(){this.doneActions.length=0,this.undoneActions.length=0}destroy(){this.clear(),this.doneActions=null,this.undoneActions=null,super.destroy()}}function y(e,t){"loadData"===t&&this.clear()}function C(){const e=e=>{m.has(e)||((0,h.warn)(l.toSingleLine`The "${e}" method is deprecated and it will be removed\x20
292
292
  from the Core API in the future. Please use the method from the UndoRedo plugin\x20
293
293
  (e.g. \`hotInstance.getPlugin("undoRedo").${e}()\`).`),m.add(e))};this.hot.undo=()=>{e("undo"),this.undo()},this.hot.redo=()=>{e("redo"),this.redo()},this.hot.isUndoAvailable=()=>(e("isUndoAvailable"),this.isUndoAvailable()),this.hot.isRedoAvailable=()=>(e("isRedoAvailable"),this.isRedoAvailable()),this.hot.clearUndo=()=>{e("clear"),this.clear()},this.hot.undoRedo=this}function v(){delete this.hot.undo,delete this.hot.redo,delete this.hot.isUndoAvailable,delete this.hot.isRedoAvailable,delete this.hot.clearUndo,delete this.hot.undoRedo}t.UndoRedo=E},91952:(e,t,r)=>{"use strict";var n=r(22208);e.exports=function(e,t,r){for(var s=0,i=arguments.length>2?r:n(t),o=new e(i);i>s;)o[s]=t[s++];return o}},92131:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(6083),o=r(21389);function a(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function l(e,t,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 WeakSet;function u(e){const{wtSettings:t,inlineStartOverlay:r,wtTable:n,wtViewport:s,totalColumns:o,rootWindow:a}=this.dataAccessObject;if(r.mainTableScrollableElement===a){let l=null;if(t.getSetting("rtlMode")){const e=n.TABLE.getBoundingClientRect(),t=this.dataAccessObject.rootWindow.document.documentElement.offsetWidth;l=Math.abs(e.right-t)}else{l=(0,i.offset)(n.wtRootElement).left}const h=Math.abs((0,i.getScrollLeft)(a,a));if(l>h){const t=(0,i.innerWidth)(a);let n=s.getRowHeaderWidth();for(let s=1;s<=o;s++)if(n+=r.sumCellSizes(s-1,s),l+n-h>=t){e=s-2;break}}}return e}function c(e){const{topOverlay:t,wtTable:r,wtViewport:n,totalRows:s,rootWindow:o}=this.dataAccessObject;if(t.mainTableScrollableElement===o){const a=(0,i.offset)(r.wtRootElement),l=(0,i.getScrollTop)(o,o);if(a.top>l){const r=(0,i.innerHeight)(o);let h=n.getColumnHeaderHeight();for(let n=1;n<=s;n++)if(h+=t.sumCellSizes(n-1,n),a.top+h-l>=r){e=n-2;break}}}return e}t.default=class{constructor(e){a(this,h),(0,s.default)(this,"dataAccessObject",void 0),this.dataAccessObject=e}scrollViewport(e,t,r){if(e.col<0||e.row<0)return!1;const n=this.scrollViewportHorizontally(e.col,t),s=this.scrollViewportVertically(e.row,r);return n||s}scrollViewportHorizontally(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:r,totalColumns:n}=this.dataAccessObject;if(!r)return!1;const s=(0,o.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollHorizontally",e,s),!Number.isInteger(e)||e<0||e>n)return!1;t=s.value;const{fixedColumnsStart:i,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<i)return!1;const h=this.getFirstVisibleColumn(),u=this.getLastVisibleColumn();let c=!1;return(l&&(e<h||e>u)||!l)&&(c=a.scrollTo(e,l?e>=this.getLastPartiallyVisibleColumn():"end"===t)),c}scrollViewportVertically(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";const{drawn:r,totalRows:n}=this.dataAccessObject;if(!r)return!1;const s=(0,o.createObjectPropListener)(t);if(e=this.dataAccessObject.wtSettings.getSetting("onBeforeViewportScrollVertically",e,s),!Number.isInteger(e)||e<0||e>n)return!1;t=s.value;const{fixedRowsBottom:i,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>n-i-1))return!1;const u=this.getFirstVisibleRow(),c=this.getLastVisibleRow();let d=!1;return(h&&(e<u||e>c)||!h)&&(d=l.scrollTo(e,h?e>=this.getLastPartiallyVisibleRow():"bottom"===t)),d}getFirstVisibleRow(){return this.dataAccessObject.wtTable.getFirstVisibleRow()}getLastVisibleRow(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastVisibleRow())}getFirstPartiallyVisibleRow(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleRow()}getLastPartiallyVisibleRow(){return l(h,this,c).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleRow())}getFirstVisibleColumn(){return this.dataAccessObject.wtTable.getFirstVisibleColumn()}getLastVisibleColumn(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastVisibleColumn())}getFirstPartiallyVisibleColumn(){return this.dataAccessObject.wtTable.getFirstPartiallyVisibleColumn()}getLastPartiallyVisibleColumn(){return l(h,this,u).call(this,this.dataAccessObject.wtTable.getLastPartiallyVisibleColumn())}}},92142:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490),r(99356);var s,i=n(r(24300)),o=r(6083),a=r(40785),l=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)),h=r(8173),u=r(88236);function c(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var d=new WeakSet;class g extends h.BaseComponent{static get BUTTON_OK(){return"ok"}static get BUTTON_CANCEL(){return"cancel"}constructor(e,t){super(e,{id:t.id,stateless:!0}),c(this,d),(0,i.default)(this,"name",""),this.name=t.name,this.elements.push(new u.InputUI(this.hot,{type:"button",value:l.FILTERS_BUTTONS_OK,className:"htUIButton htUIButtonOK",identifier:g.BUTTON_OK})),this.elements.push(new u.InputUI(this.hot,{type:"button",value:l.FILTERS_BUTTONS_CANCEL,className:"htUIButton htUIButtonCancel",identifier:g.BUTTON_CANCEL})),this.registerHooks()}registerHooks(){(0,a.arrayEach)(this.elements,e=>{e.addLocalHook("click",(e,t)=>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,t))})}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t)=>((0,o.addClass)(t.parentNode,"htFiltersMenuActionBar"),(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t)}}accept(){this.runLocalHooks("accept")}cancel(){this.runLocalHooks("cancel")}}function p(e,t){t.options.identifier===s.BUTTON_OK?this.accept():this.cancel()}t.ActionBarComponent=g,s=g},92149:(e,t,r)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,r){return(0,n.createDateTimeCompareFunction)(e,t.dateFormat,r)};var n=r(52665);t.COLUMN_DATA_TYPE="date"},92169:()=>{},92334:()=>{},92351:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},92385:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(99356),r(82515),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(29810),r(90643),r(31143);var n=r(24278);function s(e,t,r){i(e,t),t.set(e,r)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t,r){return e.set(l(e,t),r),r}function a(e,t){return e.get(l(e,t))}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 WeakSet;function g(e){a(h,this).set(e,[]),a(u,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;i(e=this,t=d),t.add(e),s(this,h,new Map),s(this,u,new Map),s(this,c,new Set),n.REGISTERED_HOOKS.forEach(e=>l(d,this,g).call(this,e))}getHooks(e){var t;return null!==(t=a(h,this).get(e))&&void 0!==t?t:[]}add(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(h,this).has(e)||(l(d,this,g).call(this,e),n.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e);if(s.find(e=>e.callback===t))return;const i=Number.isInteger(r.orderIndex)?r.orderIndex:0,o=!!r.runOnce,u=!!r.initialHook;let p=!1;if(u){const e=s.find(e=>e.initialHook);e&&(e.callback=t,p=!0)}if(!p){s.push({callback:t,orderIndex:i,runOnce:o,initialHook:u,skip:!1});let r=a(c,this).has(e);r||0===i||(r=!0,a(c,this).add(e)),r&&s.length>1&&a(h,this).set(e,s.toSorted((e,t)=>e.orderIndex-t.orderIndex))}}has(e){return a(h,this).has(e)&&a(h,this).get(e).length>0}remove(e,t){if(!a(h,this).has(e))return!1;const r=a(h,this).get(e),n=r.find(e=>e.callback===t);if(n){let t=a(u,this).get(e);return n.skip=!0,t+=1,t>100&&(a(h,this).set(e,r.filter(e=>!e.skip)),t=0),a(u,this).set(e,t),!0}return!1}destroy(){a(h,this).clear(),a(u,this).clear(),o(h,this,null),o(u,this,null)}}},92422:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,r){const{rowIndexMapper:n,stylesHandler:s}=e,i=s.getDefaultRowHeight();let o=0;for(let l=t;l<t+r;l++){var a;if(!n.isHidden(l))o+=null!==(a=e.getRowHeight(l))&&void 0!==a?a:i,0!==l||s.isClassicTheme()||(o+=1)}return o}},92434:(e,t,r)=>{"use strict";var n=r(15176),s=r(20637);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},92443:()=>{},92450:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490);var n=r(66064);function s(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 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")}var l=new WeakMap,h=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap;t.Positioner=class{constructor(e){s(this,l,void 0),s(this,h,void 0),s(this,u,void 0),s(this,c,!1),s(this,d,{above:0,below:0,left:0,right:0}),o(c,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i(d,this)[e]=t,this}setElement(e){return o(l,this,e),this}setParentElement(e){return o(h,this,e),this}updatePosition(e){o(u,this,new n.Cursor(e,i(l,this).ownerDocument.defaultView)),i(c,this)?(i(u,this).fitsBelow(i(l,this))?this.setPositionBelowCursor():i(u,this).fitsAbove(i(l,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===i(l,this).dir?i(u,this).fitsOnLeft(i(l,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():i(u,this).fitsOnRight(i(l,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=i(d,this).above+i(u,this).top-i(l,this).offsetHeight;if(i(h,this)){const t=i(h,this).ownerDocument.defaultView.getComputedStyle(i(h,this).querySelector(".ht_master")),r=Number.parseInt(t.paddingTop,10),n=Number.parseInt(t.borderTop,10);e=i(u,this).top+i(u,this).cellHeight-i(l,this).scrollHeight+r+n}i(l,this).style.top=`${e}px`}setPositionBelowCursor(){let e=i(d,this).below+i(u,this).top+1;if(i(h,this)){const t=i(h,this).ownerDocument.defaultView.getComputedStyle(i(h,this).querySelector(".ht_master")),r=Number.parseInt(t.paddingTop,10),n=Number.parseInt(t.borderTop,10);e=i(u,this).top-r-n}i(l,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=i(u,this).left;if(i(h,this)){const t=i(h,this).ownerDocument.defaultView,r=Number.parseInt(t.getComputedStyle(i(h,this).querySelector(".htCore")).borderRightWidth,10);e+=i(u,this).cellWidth+r}else e+=i(d,this).right;i(l,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=i(d,this).left+i(u,this).left-i(l,this).offsetWidth;if(i(h,this)){const t=i(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(i(h,this).querySelector(".htCore")).borderLeftWidth,10)}i(l,this).style.left=`${e}px`}}},92486:(e,t,r)=>{"use strict";t.__esModule=!0,t.createCellHeadersRange=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,[s,i]=[r,n];e>t&&([s,i]=[i,s]);return`${s}-${i}`},t.extendNotExistingKeys=function(e,t){return(0,s.objectEach)(t,(t,r)=>{(0,n.isUndefined)(e[r])&&(e[r]=t)}),e},t.normalizeLanguageCode=function(e){const t=/^([a-zA-Z]{2})-([a-zA-Z]{2})$/.exec(e);if(t)return`${t[1].toLowerCase()}-${t[2].toUpperCase()}`;return e},t.warnUserAboutLanguageRegistration=function(e){(0,n.isDefined)(e)&&(0,i.error)(o.toSingleLine`Language with code "${e}" was not found. You should register particular language\x20
294
294
  before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)};var n=r(27727),s=r(21389),i=r(96357),o=r(42685)},92503:(e,t,r)=>{"use strict";var n=r(2382),s=r(53001),i=r(47865);e.exports=!n&&!s(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},92515:(e,t,r)=>{"use strict";t.__esModule=!0,r(52490),r(89624),r(14950),r(98831),r(67046),r(38221),r(56050),r(65724),r(34478),r(31143);var n=r(5184),s=r(42277);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;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,h,new Set),i(this,u,[]),i(this,c,[]),i(this,d,!1),i(this,g,!1),a(g,this,null!=e&&e)}createObserver(){const e=new n.ChangesObserver;return o(h,this).add(e),e.addLocalHook("unsubscribe",()=>{o(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(o(u,this),o(c,this))),e}emit(e){let t=o(c,this);o(d,this)&&o(u,this).length===e.length||(0===e.length?e=new Array(t.length).fill(o(g,this)):a(u,this,new Array(e.length).fill(o(g,this))),o(d,this)||(a(d,this,!0),t=o(u,this)));const r=(0,s.arrayDiff)(t,e);o(h,this).forEach(e=>e._write(r)),a(c,this,e)}}},92654:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(91698);const s=t.EDITOR_TYPE="time";class i extends n.TextEditor{static get EDITOR_TYPE(){return s}prepare(e,t,r,n,s,i){super.prepare(e,t,r,n,s,i),this.TEXTAREA.dir="ltr"}}t.TimeEditor=i},92745:(e,t,r)=>{"use strict";t.__esModule=!0,r(34478),r(81056);t.command={name:"moveCellSelectionInlineStart",callback(e,t){const{selection:r}=e,n=e.getSettings(),s=e.getSelectedRange(),i=e.getSelectedRangeActive(),o="function"==typeof n.tabMoves?n.tabMoves(t):n.tabMoves;r.markSource("keyboard"),(s.some(e=>r.isMultiple(e))||s.length>1)&&!i.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0?r.transformFocus(o.row,o.col):r.transformStart(o.row,o.col),r.markEndSource()}}},92850:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(24300)),i=r(14017);t.BaseRenderer=class{constructor(e,t){(0,s.default)(this,"nodesPool",null),(0,s.default)(this,"nodeType",void 0),(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"table",null),(0,s.default)(this,"renderedNodes",0),this.nodesPool="string"==typeof e?new i.NodesPool(e):null,this.nodeType=e,this.rootNode=t}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}},92853:(e,t,r)=>{"use strict";var n=r(94266).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},92912:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0;var s=n(r(33775)),i=n(r(80218));class o{constructor(e){e instanceof i.default?this._wot=e:this._initFromSettings(e)}_initFromSettings(e){e.facade=e=>{const t=new o(e);return()=>t},this._wot=new s.default(e.table,e)}get guid(){return this._wot.guid}get rootDocument(){return this._wot.domBindings.rootDocument}get rootWindow(){return this._wot.domBindings.rootWindow}get wtSettings(){return this._wot.wtSettings}get cloneSource(){return this._wot.cloneSource}get cloneOverlay(){return this._wot.cloneOverlay}get selectionManager(){return this._wot.selectionManager}get wtViewport(){return this._wot.wtViewport}get wtOverlays(){return this._wot.wtOverlays}get wtTable(){return this._wot.wtTable}get wtEvent(){return this._wot.wtEvent}get wtScroll(){return this._wot.wtScroll}get drawn(){return this._wot.drawn}set drawn(e){this._wot.drawn=e}get activeOverlayName(){return this._wot.activeOverlayName}get drawInterrupted(){return this._wot.drawInterrupted}set drawInterrupted(e){this._wot.drawInterrupted=e}get lastMouseOver(){return this._wot.lastMouseOver}set lastMouseOver(e){this._wot.lastMouseOver=e}get momentumScrolling(){return this._wot.momentumScrolling}set momentumScrolling(e){this._wot.momentumScrolling=e}get touchApplied(){return this._wot.touchApplied}set touchApplied(e){this._wot.touchApplied=e}get domBindings(){return this._wot.domBindings}get eventListeners(){return this._wot.eventListeners}set eventListeners(e){this._wot.eventListeners=e}get eventManager(){return this._wot.eventManager}createCellCoords(e,t){return this._wot.createCellCoords(e,t)}createCellRange(e,t,r){return this._wot.createCellRange(e,t,r)}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._wot.draw(e),this}getCell(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._wot.getCell(e,t)}scrollViewport(e,t,r){return this._wot.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this._wot.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this._wot.scrollViewportVertically(e,t)}getViewport(){return this._wot.getViewport()}getOverlayName(){return this._wot.cloneOverlay?this._wot.cloneOverlay.type:"master"}getOverlayByName(e){return this._wot.getOverlayByName(e)}exportSettingsAsClassNames(){return this._wot.exportSettingsAsClassNames()}update(e,t){return this._wot.wtSettings.update(e,t),this}getSetting(e,t,r,n,s){return this._wot.wtSettings.getSetting(e,t,r,n,s)}hasSetting(e){return this._wot.wtSettings.hasSetting(e)}destroy(){this._wot.destroy()}}t.default=o},93236:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(27727),s=r(21389);t.default=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dialog:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,initialState:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(e){let t,r,s;for(t=0,r=this.countRows();t<r;t++)if(s=this.getDataAtCell(t,e),!1===(0,n.isEmpty)(s))return!1;return!0},isEmptyRow(e){let t,r,i,o;for(t=0,r=this.countCols();t<r;t++)if(i=this.getDataAtCell(e,t),!1===(0,n.isEmpty)(i))return"object"==typeof i&&(o=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[o.prop],i));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",loading:!1,manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,pagination:void 0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,textEllipsis:!1,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,valueGetter:void 0,valueSetter:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},93396:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(8249),r(31835);var s=n(r(24300));t.FullyVisibleRowsCalculationType=class{constructor(){(0,s.default)(this,"count",0),(0,s.default)(this,"startRow",null),(0,s.default)(this,"endRow",null),(0,s.default)(this,"startPosition",null),(0,s.default)(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,t){const{totalCalculatedHeight:r,zeroBasedScrollOffset:n,innerViewportHeight:s,rowHeight:i}=t;r>=n&&r+i<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:r,viewportHeight:n,horizontalScrollbarHeight:s,totalRows:i,needReverse:o,startPositions:a,rowHeight:l}=e;if(this.endRow===i-1&&o)for(this.startRow=this.endRow;this.startRow>0;){const e=a[this.endRow]+l-a[this.startRow-1];if(e<=n-s&&(this.startRow-=1),e>=n-s)break}this.startPosition=null!==(t=a[this.startRow])&&void 0!==t?t:null;r+n-s<(null===this.startRow?0:e.getRowHeight(this.startRow))||r>a.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,i<this.endRow&&(this.endRow=i-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},93398:(e,t,r)=>{var n={"./af":55962,"./af.js":55962,"./ar":54070,"./ar-dz":65109,"./ar-dz.js":65109,"./ar-kw":60549,"./ar-kw.js":60549,"./ar-ly":60036,"./ar-ly.js":60036,"./ar-ma":42981,"./ar-ma.js":42981,"./ar-ps":36634,"./ar-ps.js":36634,"./ar-sa":52863,"./ar-sa.js":52863,"./ar-tn":87513,"./ar-tn.js":87513,"./ar.js":54070,"./az":73374,"./az.js":73374,"./be":75720,"./be.js":75720,"./bg":3538,"./bg.js":3538,"./bm":11872,"./bm.js":11872,"./bn":32153,"./bn-bd":83252,"./bn-bd.js":83252,"./bn.js":32153,"./bo":42666,"./bo.js":42666,"./br":2509,"./br.js":2509,"./bs":58158,"./bs.js":58158,"./ca":72109,"./ca.js":72109,"./cs":763,"./cs.js":763,"./cv":45320,"./cv.js":45320,"./cy":24501,"./cy.js":24501,"./da":69102,"./da.js":69102,"./de":32770,"./de-at":32474,"./de-at.js":32474,"./de-ch":28636,"./de-ch.js":28636,"./de.js":32770,"./dv":2943,"./dv.js":2943,"./el":83788,"./el.js":83788,"./en-au":99813,"./en-au.js":99813,"./en-ca":68207,"./en-ca.js":68207,"./en-gb":53686,"./en-gb.js":53686,"./en-ie":1181,"./en-ie.js":1181,"./en-il":32822,"./en-il.js":32822,"./en-in":2732,"./en-in.js":2732,"./en-nz":33455,"./en-nz.js":33455,"./en-sg":63453,"./en-sg.js":63453,"./eo":42069,"./eo.js":42069,"./es":28465,"./es-do":91375,"./es-do.js":91375,"./es-mx":47859,"./es-mx.js":47859,"./es-us":55766,"./es-us.js":55766,"./es.js":28465,"./et":65092,"./et.js":65092,"./eu":46539,"./eu.js":46539,"./fa":7072,"./fa.js":7072,"./fi":94216,"./fi.js":94216,"./fil":92334,"./fil.js":92334,"./fo":80350,"./fo.js":80350,"./fr":36329,"./fr-ca":97278,"./fr-ca.js":97278,"./fr-ch":47797,"./fr-ch.js":47797,"./fr.js":36329,"./fy":80152,"./fy.js":80152,"./ga":89577,"./ga.js":89577,"./gd":61094,"./gd.js":61094,"./gl":64078,"./gl.js":64078,"./gom-deva":2527,"./gom-deva.js":2527,"./gom-latn":49744,"./gom-latn.js":49744,"./gu":469,"./gu.js":469,"./he":75590,"./he.js":75590,"./hi":20514,"./hi.js":20514,"./hr":74103,"./hr.js":74103,"./hu":41238,"./hu.js":41238,"./hy-am":13745,"./hy-am.js":13745,"./id":67320,"./id.js":67320,"./is":77437,"./is.js":77437,"./it":81384,"./it-ch":46258,"./it-ch.js":46258,"./it.js":81384,"./ja":67772,"./ja.js":67772,"./jv":88921,"./jv.js":88921,"./ka":6229,"./ka.js":6229,"./kk":92443,"./kk.js":92443,"./km":90433,"./km.js":90433,"./kn":60296,"./kn.js":60296,"./ko":94911,"./ko.js":94911,"./ku":20745,"./ku-kmr":6802,"./ku-kmr.js":6802,"./ku.js":20745,"./ky":87085,"./ky.js":87085,"./lb":71219,"./lb.js":71219,"./lo":50056,"./lo.js":50056,"./lt":92169,"./lt.js":92169,"./lv":83367,"./lv.js":83367,"./me":10403,"./me.js":10403,"./mi":39951,"./mi.js":39951,"./mk":68881,"./mk.js":68881,"./ml":21860,"./ml.js":21860,"./mn":85742,"./mn.js":85742,"./mr":86602,"./mr.js":86602,"./ms":76089,"./ms-my":6036,"./ms-my.js":6036,"./ms.js":76089,"./mt":40556,"./mt.js":40556,"./my":54271,"./my.js":54271,"./nb":39329,"./nb.js":39329,"./ne":41812,"./ne.js":41812,"./nl":30355,"./nl-be":97005,"./nl-be.js":97005,"./nl.js":30355,"./nn":28949,"./nn.js":28949,"./oc-lnc":52661,"./oc-lnc.js":52661,"./pa-in":1872,"./pa-in.js":1872,"./pl":84101,"./pl.js":84101,"./pt":64605,"./pt-br":20678,"./pt-br.js":20678,"./pt.js":64605,"./ro":60698,"./ro.js":60698,"./ru":47464,"./ru.js":47464,"./sd":594,"./sd.js":594,"./se":68225,"./se.js":68225,"./si":51957,"./si.js":51957,"./sk":36467,"./sk.js":36467,"./sl":16426,"./sl.js":16426,"./sq":42093,"./sq.js":42093,"./sr":17508,"./sr-cyrl":34203,"./sr-cyrl.js":34203,"./sr.js":17508,"./ss":16779,"./ss.js":16779,"./sv":84888,"./sv.js":84888,"./sw":19247,"./sw.js":19247,"./ta":28382,"./ta.js":28382,"./te":41266,"./te.js":41266,"./tet":88356,"./tet.js":88356,"./tg":65032,"./tg.js":65032,"./th":27317,"./th.js":27317,"./tk":20620,"./tk.js":20620,"./tl-ph":36018,"./tl-ph.js":36018,"./tlh":69373,"./tlh.js":69373,"./tr":31787,"./tr.js":31787,"./tzl":63775,"./tzl.js":63775,"./tzm":29160,"./tzm-latn":51784,"./tzm-latn.js":51784,"./tzm.js":29160,"./ug-cn":85555,"./ug-cn.js":85555,"./uk":95081,"./uk.js":95081,"./ur":10866,"./ur.js":10866,"./uz":78282,"./uz-latn":44874,"./uz-latn.js":44874,"./uz.js":78282,"./vi":60664,"./vi.js":60664,"./x-pseudo":61292,"./x-pseudo.js":61292,"./yo":27577,"./yo.js":27577,"./zh-cn":99949,"./zh-cn.js":99949,"./zh-hk":31937,"./zh-hk.js":31937,"./zh-mo":65876,"./zh-mo.js":65876,"./zh-tw":44057,"./zh-tw.js":44057};function s(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=i,e.exports=s,s.id=93398},93460:(e,t,r)=>{"use strict";t.__esModule=!0,t.createMergeCellRenderer=function(e){const{hot:t}=e,{rowIndexMapper:r,columnIndexMapper:o}=t,a=new Map;return{before:function(){},after:function(l,h,u){const c=e.mergedCellsCollection.get(h,u);if(!(0,n.isObject)(c))return l.removeAttribute("rowspan"),l.removeAttribute("colspan"),a.has(h)&&!t.getSettings().rowHeaders&&(l.style.height=`${a.get(h)}px`,a.delete(h)),void(l.style.display="");const{row:d,col:g,colspan:p,rowspan:f}=c,[m,w]=e.translateMergedCellToRenderable(d,f,g,p),E=e.getSetting("virtualized");if(0===g&&!t.getSettings().rowHeaders){const e=t._getRowHeightFromSettings(h);if(void 0!==e){const r=t.stylesHandler.areCellsBorderBox()?0:1;a.set(h,e-r)}else if((0,s.isSafari)()){const e=(0,i.sumCellsHeights)(t,d,f);a.set(h,e/f)}}const y=m-r.getRenderableFromVisualIndex(h)+1,C=w-o.getRenderableFromVisualIndex(u)+1;let v=r.getNearestNotHiddenIndex(d,1),S=o.getNearestNotHiddenIndex(g,1);if(E){const e=t.view.getActiveOverlayName();["top","top_inline_start_corner"].includes(e)||(v=Math.max(v,t.getFirstRenderedVisibleRow())),["inline_start","top_inline_start_corner","bottom_inline_start_corner"].includes(e)||(S=Math.max(S,t.getFirstRenderedVisibleColumn()))}const R=Math.min(f,y),T=Math.min(p,C);v===h&&S===u?(l.setAttribute("rowspan",R),l.setAttribute("colspan",T)):(l.removeAttribute("rowspan"),l.removeAttribute("colspan"),l.style.display="none")}}};var n=r(21389),s=r(55924),i=r(92422)},93490:(e,t,r)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,r){return function(t,i){const o=parseFloat(t),a=parseFloat(i),{sortEmptyCells:l}=r;if(o===a||isNaN(o)&&isNaN(a))return s.DO_NOT_SWAP;if(l){if((0,n.isEmpty)(t))return"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND;if((0,n.isEmpty)(i))return"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND}return isNaN(o)?s.FIRST_AFTER_SECOND:isNaN(a)?s.FIRST_BEFORE_SECOND:o<a?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:o>a?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP}};var n=r(27727),s=r(2520);t.COLUMN_DATA_TYPE="numeric"},93578:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21389);const s={getFirstRenderedColumn(){const e=this.dataAccessObject.startColumnRendered;return null===e?-1:e},getFirstVisibleColumn(){const e=this.dataAccessObject.startColumnVisible;return null===e?-1:e},getFirstPartiallyVisibleColumn(){const e=this.dataAccessObject.startColumnPartiallyVisible;return null===e?-1:e},getLastRenderedColumn(){const e=this.dataAccessObject.endColumnRendered;return null===e?-1:e},getLastVisibleColumn(){const e=this.dataAccessObject.endColumnVisible;return null===e?-1:e},getLastPartiallyVisibleColumn(){const e=this.dataAccessObject.endColumnPartiallyVisible;return null===e?-1:e},getRenderedColumnsCount(){return this.dataAccessObject.countColumnsRendered},getVisibleColumnsCount(){return this.dataAccessObject.countColumnsVisible},getRowHeadersCount(){return this.dataAccessObject.rowHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","calculatedColumns",{writable:!1,enumerable:!1});t.default=s},93622:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(6083),s=r(92850),i=r(13618);class o extends s.BaseRenderer{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:t}=this.table;let r=this.rootNode.firstChild;if(e){const{columnsToRender:n}=this.table,s=n+t;for(let t=0,n=e;t<n;t++){for(r=this.rootNode.childNodes[t],r||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<s;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>s;)r.removeChild(r.lastChild),this.renderedNodes-=1}const i=this.rootNode.childNodes.length;if(i>e)for(let t=e;t<i;t++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&(0,n.empty)(r)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&(0,n.setAttribute)(this.rootNode,[(0,i.A11Y_ROWGROUP)()]);for(let t=0;t<e;t+=1){const{columnHeaderFunctions:e,columnsToRender:r,rowHeadersCount:s}=this.table,o=this.rootNode.childNodes[t];this.table.isAriaEnabled()&&(0,n.setAttribute)(o,[(0,i.A11Y_ROW)(),(0,i.A11Y_ROWINDEX)(t+1)]);for(let a=-1*s;a<r;a+=1){const r=this.table.renderedColumnToSource(a),l=o.childNodes[a+s];l.className="",l.removeAttribute("style"),(0,n.removeAttribute)(l,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,n.setAttribute)(l,[(0,i.A11Y_COLINDEX)(a+1+this.table.rowHeadersCount),(0,i.A11Y_TABINDEX)(-1),(0,i.A11Y_COLUMNHEADER)(),...a>=0?[(0,i.A11Y_SCOPE_COL)()]:[(0,i.A11Y_GRIDCELL_BUTTON)(),(0,i.A11Y_LABEL)("Select whole grid")]]),e[t](r,l,t)}}}}t.ColumnHeadersRenderer=o},93692:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(67992);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.NestedRows=n.NestedRows},93701:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:o,checkable:!0,ariaChecked(){return(0,n.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(i.CONTEXTMENU_ITEMS_READ_ONLY);return(0,n.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)&&(e=(0,n.markLabelAsSelected)(e)),e},callback(){const e=this.getSelectedRange(),t=(0,n.checkSelectionConsistency)(e,(e,t)=>this.getCellMeta(e,t).readOnly);(0,s.arrayEach)(e,e=>{e.forAll((e,r)=>{e>=0&&r>=0&&this.setCellMeta(e,r,"readOnly",!t)})}),this.render()},disabled(){const e=this.getSelectedRangeActive();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var n=r(57011),s=r(40785),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));const o=t.KEY="make_read_only"},93710:(e,t,r)=>{"use strict";var n=r(73805);t.__esModule=!0,r(52490);var s=n(r(24300)),i=r(53383),o=r(21389),a=n(r(60290)),l=r(42685),h=r(66813);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")}const d=t.PLUGIN_KEY="columnSummary",g=t.PLUGIN_PRIORITY=220;var p=new WeakSet;class f extends i.BasePlugin{constructor(){super(...arguments),u(this,p),(0,s.default)(this,"endpoints",null)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return g}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){var e=this;this.enabled||(this.settings=this.hot.getSettings()[d],this.endpoints=new a.default(this,this.settings),this.addHook("afterInit",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(p,e,m).call(e,...r)}),this.addHook("afterChange",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(p,e,E).call(e,...r)}),this.addHook("afterUpdateSettings",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(p,e,w).call(e,...r)}),this.addHook("beforeCreateRow",(e,t,r)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_row",e,t,null,r)),this.addHook("beforeCreateCol",(e,t,r)=>this.endpoints.resetSetupBeforeStructureAlteration("insert_col",e,t,null,r)),this.addHook("beforeRemoveRow",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.endpoints.resetSetupBeforeStructureAlteration("remove_row",...r)}),this.addHook("beforeRemoveCol",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.endpoints.resetSetupBeforeStructureAlteration("remove_col",...r)}),this.addHook("afterCreateRow",(e,t,r)=>this.endpoints.resetSetupAfterStructureAlteration("insert_row",e,t,null,r)),this.addHook("afterCreateCol",(e,t,r)=>this.endpoints.resetSetupAfterStructureAlteration("insert_col",e,t,null,r)),this.addHook("afterRemoveRow",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.endpoints.resetSetupAfterStructureAlteration("remove_row",...r)}),this.addHook("afterRemoveCol",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.endpoints.resetSetupAfterStructureAlteration("remove_col",...r)}),this.addHook("afterRowMove",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return c(p,e,y).call(e,...r)}),super.enablePlugin())}disablePlugin(){this.endpoints=null,this.settings=null,this.currentEndpoint=null,super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.endpoints.initEndpoints(),super.updatePlugin()}calculate(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}}calculateSum(e){let t=0;return(0,o.objectEach)(e.ranges,r=>{t+=this.getPartialSum(r,e.sourceColumn)}),t}getPartialSum(e,t){let r=0,n=e[1]||e[0],s=null,i=0;do{if(s=this.getCellValue(n,t),s=(0,h.isNullishOrNaN)(s)?null:s,null!==s){const e=(`${s}`.split(".")[1]||[]).length||1;e>i&&(i=e)}r+=s||0,n-=1}while(n>=e[0]);return Math.round(r*10**i)/10**i}calculateMinMax(e,t){let r=null;return(0,o.objectEach)(e.ranges,n=>{const s=this.getPartialMinMax(n,e.sourceColumn,t);if(null===r&&null!==s&&(r=s),null!==s)switch(t){case"min":r=Math.min(r,s);break;case"max":r=Math.max(r,s)}}),null===r?"Not enough data":r}getPartialMinMax(e,t,r){let n,s=null,i=e[1]||e[0];do{if(n=this.getCellValue(i,t),n=(0,h.isNullishOrNaN)(n)?null:n,null===s)s=n;else if(null!==n)switch(r){case"min":s=Math.min(s,n);break;case"max":s=Math.max(s,n)}i-=1}while(i>=e[0]);return s}countEmpty(e,t){let r,n=0,s=e[1]||e[0];do{r=this.getCellValue(s,t),r=(0,h.isNullishOrNaN)(r)?null:r,null===r&&(n+=1),s-=1}while(s>=e[0]);return n}countEntries(e){let t=0;const r=e.ranges;return(0,o.objectEach)(r,r=>{const n=void 0===r[1]?1:r[1]-r[0]+1,s=this.countEmpty(r,e.sourceColumn);t+=n,t-=s}),t}calculateAverage(e){return this.calculateSum(e)/this.countEntries(e)}getCellValue(e,t){const r=this.hot.toVisualRow(e),n=this.hot.toVisualColumn(t);let s=this.hot.getSourceDataAtCell(e,t),i="";if(null!==r&&null!==n&&(i=this.hot.getCellMeta(r,n).className||""),i.indexOf("columnSummaryResult")>-1)return null;if(this.endpoints.currentEndpoint.forceNumeric&&("string"==typeof s&&(s=s.replace(/,/,".")),s=parseFloat(s)),isNaN(s)&&!this.endpoints.currentEndpoint.suppressDataTypeErrors)throw new Error(l.toSingleLine`ColumnSummary plugin: cell at (${e}, ${t}) is not in a\x20