handsontable 0.0.0-next-479c0d0-20250707 → 0.0.0-next-9047f21-20250708

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.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

@@ -25,8 +25,8 @@
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: 0.0.0-next-479c0d0-20250707
29
- * Release date: 29/04/2025 (built at 07/07/2025 08:27:03)
28
+ * Version: 0.0.0-next-9047f21-20250708
29
+ * Release date: 29/04/2025 (built at 08/07/2025 07:58:24)
30
30
  */
31
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={40:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(69326);var s=n(r(53726)),o=r(63781),i=r(93049);class a extends o.BaseAction{constructor(e){let{rows:t,finalIndex:r}=e;super("row_move"),(0,s.default)(this,"rows",void 0),(0,s.default)(this,"finalRowIndex",void 0),this.rows=t.slice(),this.finalRowIndex=r}static startRegisteringEvents(e,t){e.addHook("beforeRowMove",(e,r)=>{!1!==e&&t.done(()=>new a({rows:e,finalIndex:r}))})}undo(e,t){const r=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t);(0,i.getMoves)(this.rows,this.finalRowIndex,e.rowIndexMapper.getNumberOfIndexes()).reverse().forEach(e=>{let{from:t,to:n}=e;t<n&&(n-=1),r.moveRow(n,t)}),e.render(),e.deselectCell(),e.selectRows(this.rows[0],this.rows[0]+this.rows.length-1)}redo(e,t){const r=e.getPlugin("manualRowMove");e.addHookOnce("afterViewRender",t),r.moveRows(this.rows.slice(),this.finalRowIndex),e.render(),e.deselectCell(),e.selectRows(this.finalRowIndex,this.finalRowIndex+this.rows.length-1)}}t.RowMoveAction=a},56:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(32949);const o=t.CONDITION_NAME="lt";function i(e,t){let[r]=t,n=r;return"numeric"===e.meta.type&&(n=parseFloat(n,10)),e.value<n}(0,s.registerCondition)(o,i,{name:n.FILTERS_CONDITIONS_LESS_THAN,inputsCount:1,showOperators:!0})},57:(e,t,r)=>{"use strict";r(44065),r(56060)},92:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"copy_column_headers_only",name(){const e=this.getSelectedRangeLast(),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.getSelectedRangeLast();if(!e)return!0;if(e.isSingleHeader())return!0;const t=this.getSelected();return!t||t.length>1},hidden:!1}};var n=r(55787),s=r(35782)},146:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(88529),s=r(10100),o=r(33494),i=r(26363),a=r(54536);t.createShortcutManager=e=>{let{ownerWindow:t,handleEvent:r,beforeKeyDown:l,afterKeyDown:h}=e;const u=(0,n.createUniqueMap)({errorIdExists:e=>`The "${e}" context name is already registered.`});let c="grid";const d=()=>c,p=e=>u.getItem(e);let g=!1;const f=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d();const n=(0,o.isContextObject)(r)?r:p(r);let i=!1;if(!n.hasShortcut(t))return i;const a=n.getShortcuts(t);for(let r=0;r<a.length;r++){const{callback:n,runOnlyIf:o,preventDefault:l,stopPropagation:h,captureCtrl:u,forwardToContext:c}=a[r];if(!0===o(e)){if(g=u,i=!1===n(e,t),g=!1,l&&e.preventDefault(),h&&((0,s.stopImmediatePropagation)(e),e.stopPropagation()),i)break;c&&f(e,t,c)}}return i},m=(0,i.useRecorder)(t,r,l,h,f);return m.mount(),{addContext:e=>{const t=(0,o.createContext)(e);return u.addItem(e,t),t},getActiveContextName:d,getContext:p,setActiveContextName:e=>{if(!u.hasItem(e))throw new Error(a.toSingleLine`You've tried to activate the "${e}" shortcut context\x20
32
32
  that does not exist. Before activation, register the context using the "addContext" method.`);c=e},isCtrlPressed:()=>!g&&(m.isPressed("control")||m.isPressed("meta")),releasePressedKeys:()=>m.releasePressedKeys(),destroy:()=>m.unmount()}}},214:e=>{"use strict";e.exports=function(e){return null==e}},281:(e,t,r)=>{"use strict";var n=r(39157),s=r(9370),o=r(96891);e.exports=function(e,t,r){n?s.f(e,t,o(0,r)):e[t]=r}},372:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(20903),s=r(81907);const o=t.CELL_TYPE="text";t.TextCellType={CELL_TYPE:o,editor:n.TextEditor,renderer:s.textRenderer}},469:()=>{},594:()=>{},642:(e,t,r)=>{"use strict";var n=r(21313),s=r(14499).has,o=r(30845),i=r(18622),a=r(98304),l=r(78016),h=r(63884);e.exports=function(e){var t=n(this),r=i(e);if(o(t)<=r.size)return!1!==a(t,function(e){if(r.includes(e))return!1},!0);var u=r.getIterator();return!1!==l(u,function(e){if(s(t,e))return h(u,"normal",!1)})}},721:(e,t,r)=>{"use strict";var n,s=r(77618),o=r(65126),i=r(60370),a=r(13884),l=r(3034),h=r(4158),u=r(86224),c="prototype",d="script",p=u("IE_PROTO"),g=function(){},f=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},E=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;E="undefined"!=typeof document?document.domain&&n?m(n):(t=h("iframe"),r="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):m(n);for(var s=i.length;s--;)delete E[c][i[s]];return E()};a[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[c]=s(e),r=new g,g[c]=null,r[p]=e):r=E(),void 0===t?r:o.f(r,t)}},751:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(7307),r(69326),r(89663);var s=n(r(53726)),o=r(45098),i=r(73269),a=n(r(50598)),l=r(15886),h=r(72848),u=r(35782),c=n(r(74627)),d=r(28222),p=r(93629),g=r(10530);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 E(e,t){return e.get(y(e,t))}function w(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")}l.Hooks.getSingleton().register("modifyAutoColumnSizeSeed");const C=t.PLUGIN_KEY="autoColumnSize",R=t.PLUGIN_PRIORITY=10;var S=new WeakMap,v=new WeakMap,T=new WeakMap,N=new WeakSet;class M extends o.BasePlugin{static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return R}static get SETTING_KEYS(){return!0}static get DEFAULT_SETTINGS(){return{useHeaders:!0,samplingRatio:null,allowSampleDuplicates:!1}}static get CALCULATION_STEP(){return 50}static get SYNC_CALCULATION_LIMIT(){return 50}constructor(e){var t,r;super(e),m(t=this,r=N),r.add(t),(0,s.default)(this,"ghostTable",new a.default(this.hot)),(0,s.default)(this,"samplesGenerator",new c.default((e,t)=>{const r=this.hot.toPhysicalRow(e),n=this.hot.toPhysicalColumn(t);if(this.hot.rowIndexMapper.isHidden(r)||this.hot.columnIndexMapper.isHidden(n))return!1;const s=this.hot.getCellMeta(e,t);let o="";s.spanned||(o=this.hot.getDataAtCell(e,t));let i="";return this.hot.hasHook("modifyAutoColumnSizeSeed")&&(i=this.hot.runHooks("modifyAutoColumnSizeSeed",i,s,o)),{value:o,bundleSeed:i}})),(0,s.default)(this,"inProgress",!1),(0,s.default)(this,"measuredColumns",0),(0,s.default)(this,"columnWidthsMap",new g.PhysicalIndexToValueMap),f(this,S,!1),f(this,v,[]),f(this,T,[]),this.hot.columnIndexMapper.registerMap("autoColumnSize",this.columnWidthsMap),this.addHook("beforeColumnResize",(e,t,r)=>y(N,this,P).call(this,e,t,r))}isEnabled(){return!1!==this.hot.getSettings()[C]&&!this.hot.getSettings().colWidths}enablePlugin(){var e=this;if(this.enabled)return;this.ghostTable.setSetting("useHeaders",this.getSetting("useHeaders")),this.samplesGenerator.setAllowDuplicates(this.getSetting("allowSampleDuplicates"));const t=this.getSetting("samplingRatio");t&&!isNaN(t)&&this.samplesGenerator.setSampleCount(parseInt(t,10)),this.addHook("afterLoadData",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return y(N,e,O).call(e,...r)}),this.addHook("beforeChangeRender",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("afterFormulasValuesUpdate",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("beforeRender",()=>y(N,this,I).call(this)),this.addHook("modifyColWidth",(e,t)=>this.getColumnWidth(t,e)),this.addHook("init",()=>y(N,this,L).call(this)),super.enablePlugin()}updatePlugin(){w(T,this,this.findColumnsWhereHeaderWasChanged()),super.updatePlugin()}disablePlugin(){super.disablePlugin(),this.addHook("beforeColumnResize",(e,t,r)=>y(N,this,P).call(this,e,t,r))}calculateVisibleColumnsWidth(){if(!this.hot.countRows())return;const e=this.getFirstVisibleColumn(),t=this.getLastVisibleColumn();if(-1===e||-1===t)return;const r=this.hot.forceFullRender;this.calculateColumnsWidth({from:e,to:t},void 0,r)}calculateColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n="number"==typeof e?{from:e,to:e}:e,s="number"==typeof t?{from:t,to:t}:t;(0,u.rangeEach)(n.from,n.to,e=>{let t=this.hot.toPhysicalColumn(e);null===t&&(t=e),(r||null===this.columnWidthsMap.getValueAtIndex(t)&&!this.hot._getColWidthFromSettings(t))&&y(N,this,b).call(this,e,s)}),this.ghostTable.columns.length&&(y(N,this,A).call(this),this.measuredColumns=n.to+1,this.ghostTable.clean())}calculateAllColumnsWidth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=0;const n=this.hot.countCols()-1;let s=null;this.inProgress=!0;const o=()=>{if(!this.hot)return(0,i.cancelAnimationFrame)(s),void(this.inProgress=!1);this.calculateColumnsWidth({from:r,to:Math.min(r+M.CALCULATION_STEP,n)},e,t),r=r+M.CALCULATION_STEP+1,r<n?s=(0,i.requestAnimationFrame)(o):((0,i.cancelAnimationFrame)(s),this.inProgress=!1,this.hot.view.adjustElementsSize())},a=this.getSyncCalculationLimit();a>=0&&(this.calculateColumnsWidth({from:0,to:a},e,t),r=a+1),r<n?o():this.inProgress=!1}recalculateAllColumnsWidth(){this.hot.view.isVisible()&&this.calculateAllColumnsWidth({from:0,to:this.hot.countRows()-1},!0)}getSyncCalculationLimit(){const e=this.hot.getSettings()[C];let t=M.SYNC_CALCULATION_LIMIT;const r=this.hot.countCols()-1;return(0,h.isObject)(e)&&(t=e.syncLimit,(0,d.isPercentValue)(t)?t=(0,u.valueAccordingPercent)(r,t):t>>=0),Math.min(t,r)}getColumnWidth(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=t;return void 0===n&&(n=this.columnWidthsMap.getValueAtIndex(this.hot.toPhysicalColumn(e)),r&&"number"==typeof n&&(n=Math.max(n,p.DEFAULT_COLUMN_WIDTH))),n}getFirstVisibleColumn(){var e;return null!==(e=this.hot.getFirstRenderedVisibleColumn())&&void 0!==e?e:-1}getLastVisibleColumn(){var e;return null!==(e=this.hot.getLastRenderedVisibleColumn())&&void 0!==e?e:-1}findColumnsWhereHeaderWasChanged(){return this.hot.getColHeader().reduce((e,t,r)=>{const n=E(v,this).length;return(n-1<r||E(v,this)[r]!==t)&&e.push(this.hot.toVisualColumn(r)),n-1<r?E(v,this).push(t):E(v,this)[r]=t,e},[])}clearCache(e){Array.isArray(e)?this.hot.batchExecution(()=>{e.forEach(e=>{this.columnWidthsMap.setValueAtIndex(e,null)})},!0):this.columnWidthsMap.clear()}isNeedRecalculate(){return!!this.columnWidthsMap.getValues().slice(0,this.measuredColumns).filter(e=>null===e).length}destroy(){this.ghostTable.clean(),super.destroy()}}function _(e){const t={from:0,to:this.hot.countRows()-1};e.forEach(e=>{const r=this.hot.toPhysicalColumn(e);null!==r&&(this.hot._getColWidthFromSettings(r)||y(N,this,b).call(this,e,t))}),this.ghostTable.columns.length&&(y(N,this,A).call(this),this.ghostTable.clean())}function b(e,t){this.samplesGenerator.generateColumnSamples(e,t).forEach((e,t)=>this.ghostTable.addColumn(t,e))}function A(){this.hot.batchExecution(()=>{this.ghostTable.getWidths((e,t)=>{const r=this.hot.toPhysicalColumn(e);this.columnWidthsMap.setValueAtIndex(r,t)})},!0)}function I(){this.calculateVisibleColumnsWidth(),this.inProgress||(y(N,this,_).call(this,E(T,this)),w(T,this,[]))}function O(e,t){t||this.recalculateAllColumnsWidth()}function x(e){const t=e.reduce((e,t)=>{let[,r]=t;const n=this.hot.propToCol(r);return Number.isInteger(n)&&-1===e.indexOf(n)&&e.push(n),e},[]);E(T,this).push(...t)}function P(e,t,r){let n=e;return r&&(this.calculateColumnsWidth(t,void 0,!0),n=this.getColumnWidth(t,void 0,!1)),n}function L(){w(v,this,this.hot.getColHeader()),this.recalculateAllColumnsWidth(),w(S,this,!0)}function D(e){if(!E(S,this))return;const t=e.reduce((e,t)=>{var r;const n=null===(r=t.address)||void 0===r?void 0:r.col;if(Number.isInteger(n)){const t=this.hot.toVisualColumn(n);-1===e.indexOf(t)&&e.push(t)}return e},[]);E(T,this).push(...t)}t.AutoColumnSize=M},763:()=>{},764:(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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(32949),o=r(84745);const i=t.CONDITION_NAME="not_empty";function a(e,t){return!(0,s.getCondition)(o.CONDITION_NAME,t)(e)}(0,s.registerCondition)(i,a,{name:n.FILTERS_CONDITIONS_NOT_EMPTY,inputsCount:0,showOperators:!0})},1040:(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(92748),s=r(20988)},1181:()=>{},1325:(e,t,r)=>{"use strict";var n=r(25225),s=r(6996),o=r(30334),i=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(e){return i(e)}),e.exports=o.inspectSource},1476:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostBottom",callback(e){const{selection:t,rowIndexMapper:r}=e,{highlight:n,from:s,to:o}=e.getSelectedRangeLast(),i=n.isHeader()&&t.isSelectedByRowHeader();if(n.isCell()||i){const a=r.getNearestNotHiddenIndex(e.countRows()-1,-1),l=s.clone();l.row=n.row,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),i&&t.selectedByRowHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(a,o.col)),t.markEndSource()}}}},1631:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(45098),i=r(39738),a=r(72848),l=r(81141),h=r(45624),u=r(85180),c=r(86907),d=r(99537),p=r(15886),g=r(74820),f=r(42663);function m(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function E(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")}p.Hooks.getSingleton().register("afterDropdownMenuDefaultOptions"),p.Hooks.getSingleton().register("beforeDropdownMenuShow"),p.Hooks.getSingleton().register("afterDropdownMenuShow"),p.Hooks.getSingleton().register("afterDropdownMenuHide"),p.Hooks.getSingleton().register("afterDropdownMenuExecute");const y=t.PLUGIN_KEY="dropdownMenu",C=t.PLUGIN_PRIORITY=230,R="changeType",S=y;var v=new WeakMap,T=new WeakSet;class N extends o.BasePlugin{static get PLUGIN_KEY(){return y}static get PLUGIN_PRIORITY(){return C}static get PLUGIN_DEPS(){return["plugin:AutoColumnSize"]}static get DEFAULT_ITEMS(){return[g.COLUMN_LEFT,g.COLUMN_RIGHT,g.SEPARATOR,g.REMOVE_COLUMN,g.SEPARATOR,g.CLEAR_COLUMN,g.SEPARATOR,g.READ_ONLY,g.SEPARATOR,g.ALIGNMENT]}constructor(e){var t,r;super(e),m(t=this,r=T),r.add(t),(0,s.default)(this,"commandExecutor",new l.CommandExecutor(this.hot)),(0,s.default)(this,"itemsFactory",null),(0,s.default)(this,"menu",null),function(e,t,r){m(e,t),t.set(e,r)}(this,v,!1),this.hot.addHook("afterGetColHeader",(e,t)=>w(T,this,b).call(this,e,t))}isEnabled(){return this.hot.getSettings()[y]}enablePlugin(){var e=this;if(this.enabled)return;this.itemsFactory=new c.ItemsFactory(this.hot,N.DEFAULT_ITEMS),this.addHook("beforeOnCellMouseDown",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(T,e,L).call(e,...r)}),this.addHook("beforeViewportScrollHorizontally",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return w(T,e,P).call(e,...r)});const t=this.hot.getSettings()[y],r={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),this.registerShortcuts(),super.enablePlugin(),this.callOnPluginsReady(()=>{this.hot.runHooks("afterDropdownMenuDefaultOptions",r),this.itemsFactory.setPredefinedItems(r.items);const n=this.itemsFactory.getItems(t);this.menu&&this.menu.destroy(),this.menu=new d.Menu(this.hot,{className:"htDropdownMenu",keepInViewport:!0,container:t.uiContainer||this.hot.rootPortalElement}),this.hot.runHooks("beforeDropdownMenuSetItems",n),this.menu.setMenuItems(n),this.menu.addLocalHook("beforeOpen",()=>w(T,this,A).call(this)),this.menu.addLocalHook("afterOpen",()=>w(T,this,I).call(this)),this.menu.addLocalHook("afterSubmenuOpen",e=>w(T,this,O).call(this,e)),this.menu.addLocalHook("afterClose",()=>w(T,this,x).call(this)),this.menu.addLocalHook("executeCommand",function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.executeCommand.call(e,...r)}),(0,i.arrayEach)(n,e=>this.commandExecutor.registerCommand(e.key,e))})}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.close(),this.menu&&this.menu.destroy(),this.unregisterShortcuts(),super.disablePlugin()}registerShortcuts(){const e=()=>{const{highlight:e}=this.hot.getSelectedRangeLast();if((e.isHeader()&&-1===e.row||e.isCell())&&e.col>=0){this.hot.selectColumns(e.col,e.col,-1);const{from:t}=this.hot.getSelectedRangeLast(),r=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),n=this.hot.getCell(-1,t.col,!0).querySelector(`.${R}`),s=n.getBoundingClientRect();this.open({left:s.left+r.left,top:s.top+n.offsetHeight+r.top},{left:s.width,right:0,above:0,below:3}),this.menu.getNavigator().toFirstItem()}};this.hot.getShortcutManager().getContext("grid").addShortcuts([{keys:[["Shift","Alt","ArrowDown"],["Control/Meta","Enter"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isHeader()&&!this.menu.isOpened()},captureCtrl:!0,group:S},{keys:[["Shift","Alt","ArrowDown"]],callback:e,runOnlyIf:()=>{var e;const t=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return t&&this.hot.selection.isCellVisible(t)&&t.isCell()&&!this.menu.isOpened()},group:S}])}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}registerEvents(){this.eventManager.addEventListener(this.hot.rootElement,"click",e=>w(T,this,_).call(this,e))}open(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{above:0,below:0,left:0,right:0};null!==(t=this.menu)&&void 0!==t&&t.isOpened()||(this.menu.open(),(0,a.objectEach)(r,(e,t)=>{this.menu.setOffset(t,e)}),this.menu.setPosition(e))}close(){var e;null===(e=this.menu)||void 0===e||e.close()}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.commandExecutor.execute(e,...r)}setListening(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.menu.isOpened()&&(e?this.menu.hotMenu.listen():this.menu.hotMenu.unlisten())}destroy(){this.close(),this.menu&&this.menu.destroy(),super.destroy()}}function M(e){e.getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Control/Meta","A"]],callback:()=>!1}])}function _(e){if((0,u.hasClass)(e.target,R)){const t=(0,h.getDocumentOffsetByElement)(this.menu.container,this.hot.rootDocument),r=e.target.getBoundingClientRect();e.stopPropagation(),E(v,this,!1),this.open({left:r.left+t.left,top:r.top+e.target.offsetHeight+t.top},{left:r.width,right:0,above:0,below:3})}}function b(e,t){const r=t.parentNode;if(!r)return;const n=r.parentNode.childNodes,s=Array.prototype.indexOf.call(n,r);if(e<0||s!==n.length-1)return;const o=t.querySelector(`.${R}`);if(this.enabled&&o)return;if(!this.enabled)return void(o&&o.parentNode.removeChild(o));const i=this.hot.rootDocument.createElement("button");i.className=R,i.type="button",i.tabIndex=-1,this.hot.getSettings().ariaTags&&((0,u.setAttribute)(i,[(0,f.A11Y_HIDDEN)(),(0,f.A11Y_LABEL)(" ")]),(0,u.setAttribute)(t,[(0,f.A11Y_HASPOPUP)("menu")])),i.onclick=function(){return!1},t.firstChild.insertBefore(i,t.firstChild.firstChild)}function A(){this.hot.runHooks("beforeDropdownMenuShow",this)}function I(){this.hot.runHooks("afterDropdownMenuShow",this),w(T,this,M).call(this,this.menu)}function O(e){w(T,this,M).call(this,e)}function x(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)}function P(e){return r=this,(t=v).get(w(t,r))?null:e;var t,r}function L(e){(0,u.hasClass)(e.target,R)&&E(v,this,!0)}t.DropdownMenu=N,N.SEPARATOR={name:g.SEPARATOR}},1648:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostInlineStart",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:o}=e.getSelectedRangeLast();if(!t.isSelectedByRowHeader()&&!t.isSelectedByCorner()&&n.isCell()){const i=parseInt(e.getSettings().fixedColumnsStart,10),a=r.getNearestNotHiddenIndex(i,1),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),t.setRangeEnd(e._createCellCoords(o.row,a)),t.markEndSource()}}}},1666:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.createHighlight=function(e){let{border:t,visualCellRange:r,...n}=e;return new o.default({...t,...n,selectionType:s.HIGHLIGHT_CUSTOM_SELECTION_TYPE},r)};var s=r(93629),o=n(r(13301))},1872:()=>{},1917:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDown",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(1,0),t.markEndSource()}}},2163:(e,t,r)=>{"use strict";var n=r(30784),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},2233:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(16178);var s=n(r(53726)),o=r(45098),i=r(10530),a=r(39738);function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}const h=t.PLUGIN_KEY="trimRows",u=t.PLUGIN_PRIORITY=330;var c=new WeakSet;class d extends o.BasePlugin{constructor(){super(...arguments),l(this,c),(0,s.default)(this,"trimmedRowsMap",null)}static get PLUGIN_KEY(){return h}static get PLUGIN_PRIORITY(){return u}isEnabled(){return!!this.hot.getSettings()[h]}enablePlugin(){this.enabled||(this.trimmedRowsMap=this.hot.rowIndexMapper.registerMap("trimRows",new i.TrimmingMap),this.trimmedRowsMap.addLocalHook("init",()=>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")}(c,this,p).call(this)),super.enablePlugin())}updatePlugin(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{this.trimmedRowsMap.clear(),(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),super.updatePlugin()}disablePlugin(){this.hot.rowIndexMapper.unregisterMap("trimRows"),super.disablePlugin()}getTrimmedRows(){return this.trimmedRowsMap.getTrimmedIndexes()}trimRows(e){const t=this.getTrimmedRows(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeTrimRow",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0),this.hot.runHooks("afterTrimRow",t,n,r,r&&n.length>t.length))}trimRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.trimRows(t)}untrimRows(e){const t=this.getTrimmedRows(),r=this.isValidConfig(e);let n=t;const s=this.trimmedRowsMap.getValues().slice(),o=e.length>0;r&&o&&((0,a.arrayEach)(e,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(r),e),[]));!1!==this.hot.runHooks("beforeUntrimRow",t,n,r&&o)&&(r&&o&&this.trimmedRowsMap.setValues(s),this.hot.runHooks("afterUntrimRow",t,n,r&&o,r&&n.length<t.length))}untrimRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.untrimRows(t)}isTrimmed(e){return this.trimmedRowsMap.getValueAtIndex(e)||!1}untrimAll(){this.untrimRows(this.getTrimmedRows())}isValidConfig(e){const t=this.hot.countSourceRows();return e.every(e=>Number.isInteger(e)&&e>=0&&e<t)}destroy(){super.destroy()}}function p(){const e=this.hot.getSettings()[h];Array.isArray(e)&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{this.trimmedRowsMap.setValueAtIndex(e,!0)})},!0)}t.TrimRows=d},2249:(e,t)=>{"use strict";t.__esModule=!0,t.cornerHeaderScrollStrategy=function(){return()=>{}}},2313:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326);var s=n(r(53726)),o=r(85180),i=r(35782),a=r(54536),l=r(10100),h=r(51278),u=r(11072),c=r(45098),d=n(r(39267)),p=n(r(3267));function g(e,t,r){f(e,t),t.set(e,r)}function f(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,r){return e.set(w(e,t),r),r}function E(e,t){return e.get(w(e,t))}function w(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const y=t.PLUGIN_KEY="nestedHeaders",C=t.PLUGIN_PRIORITY=280;var R=new WeakMap,S=new WeakMap,v=new WeakMap,T=new WeakMap,N=new WeakMap,M=new WeakSet;class _ extends c.BasePlugin{constructor(){var e,t;super(...arguments),f(e=this,t=M),t.add(e),g(this,R,new d.default),g(this,S,null),g(this,v,null),g(this,T,!1),g(this,N,null),(0,s.default)(this,"ghostTable",new p.default(this.hot,(e,t)=>this.getHeaderSettings(e,t))),(0,s.default)(this,"detectedOverlappedHeaders",!1)}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
@@ -230,7 +230,7 @@ const F=E(),U=p(),V=(e=>({loadLanguagesInNode:t=>w(t,e)}))($),B=d();let W=(e=>({
230
230
  * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
231
231
  */const t=()=>window,r=()=>window.document,n=(e,t)=>window.setTimeout(e,t),s=function(e,t,r,n){e.addEventListener(t,r,!!n)},o=function(e,t,r,n){e.removeEventListener(t,r,!!n)},i=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},a=function(e,t){i(e,t)||(e.className=""===e.className?t:e.className+" "+t)},l=function(e,t){var r;e.className=(r=(" "+e.className+" ").replace(" "+t+" "," ")).trim?r.trim():r.replace(/^\s+|\s+$/g,"")},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},u=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},c=function(e){let t=e.getDay();return 0===t||6===t},d=function(e){return e%4==0&&e%100!=0||e%400==0},p=function(e,t){return[31,d(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=function(e){u(e)&&e.setHours(0,0,0,0)},f=function(e,t){return e.getTime()===t.getTime()},m=function(e,t,r){let n,s;for(n in t)s=void 0!==e[n],s&&"object"==typeof t[n]&&null!==t[n]&&void 0===t[n].nodeName?u(t[n])?r&&(e[n]=new Date(t[n].getTime())):h(t[n])?r&&(e[n]=t[n].slice(0)):e[n]=m({},t[n],r):!r&&s||(e[n]=t[n]);return e},E=function(e,t,n){let s=r().createEvent("HTMLEvents");s.initEvent(t,!0,!1),s=m(s,n),e.dispatchEvent(s)},w=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},y={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},C=function(e,t,r){for(t+=e.firstDay;t>=7;)t-=7;return r?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},R=function(e){let t=[],r="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),r="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+r+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},S=function(e,t,r,n,s){let o=new Date(n,r,t),i=e.hasMoment?e.moment(o).isoWeek():function(e,t){e.setHours(0,0,0,0);let r=e.getDate(),n=e.getDay(),s=t,o=s-1,i=function(e){return(e+7-1)%7};e.setDate(r+o-i(n));let a=new Date(e.getFullYear(),0,s),l=(e.getTime()-a.getTime())/864e5;return 1+Math.round((l-o+i(a.getDay()))/7)}(o,s);return'<td class="pika-week">'+i+"</td>"},v=function(e,t,r,n){return'<tr class="pika-row'+(r?" pick-whole-week":"")+(n?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},T=function(e,t,r,n,s,o){let i,a,l,u,c,d=e._o,p=r===d.minYear,g=r===d.maxYear,f='<div id="'+o+'" class="pika-title" role="heading" aria-live="polite">',m=!0,E=!0;for(l=[],i=0;i<12;i++)l.push('<option value="'+(r===s?i-t:12+i-t)+'"'+(i===n?' selected="selected"':"")+(p&&i<d.minMonth||g&&i>d.maxMonth?' disabled="disabled"':"")+">"+d.i18n.months[i]+"</option>");for(u='<div class="pika-label">'+d.i18n.months[n]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",h(d.yearRange)?(i=d.yearRange[0],a=d.yearRange[1]+1):(i=r-d.yearRange,a=1+r+d.yearRange),l=[];i<a&&i<=d.maxYear;i++)i>=d.minYear&&l.push('<option value="'+i+'"'+(i===r?' selected="selected"':"")+">"+i+"</option>");return c='<div class="pika-label">'+r+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?f+=c+u:f+=u+c,p&&(0===n||d.minMonth>=n)&&(m=!1),g&&(11===n||d.maxMonth<=n)&&(E=!1),0===t&&(f+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(f+='<button class="pika-next'+(E?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),f+"</div>"},N=function(e,t,r){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+r+'">'+function(e){let t,r=[];for(e.showWeekNumber&&r.push("<th></th>"),t=0;t<7;t++)r.push('<th scope="col"><abbr title="'+C(e,t)+'">'+C(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?r.reverse():r).join("")+"</tr></thead>"}(e)+("<tbody>"+t.join("")+"</tbody></table>")};function M(e){let o=this,a=o.config(e);o._onMouseDown=function(e){if(!o._v)return;let r=(e=e||t().event).target||e.srcElement;if(r)if(i(r,"is-disabled")||(!i(r,"pika-button")||i(r,"is-empty")||i(r.parentNode,"is-disabled")?i(r,"pika-prev")?o.prevMonth():i(r,"pika-next")&&o.nextMonth():(o.setDate(new Date(r.getAttribute("data-pika-year"),r.getAttribute("data-pika-month"),r.getAttribute("data-pika-day"))),a.bound&&n(function(){o.hide(),a.blurFieldOnSelect&&a.field&&a.field.blur()},100))),i(r,"pika-select"))o._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}},o._onChange=function(e){let r=(e=e||t().event).target||e.srcElement;r&&(i(r,"pika-select-month")?o.gotoMonth(r.value):i(r,"pika-select-year")&&o.gotoYear(r.value))},o._onKeyChange=function(e){if(e=e||t().event,o.isVisible())switch(e.keyCode){case 13:case 27:a.field&&a.field.blur();break;case 37:o.adjustDate("subtract",1);break;case 38:o.adjustDate("subtract",7);break;case 39:o.adjustDate("add",1);break;case 40:o.adjustDate("add",7);break;case 8:case 46:o.setDate(null)}},o._parseFieldValue=function(){if(a.parse)return a.parse(a.field.value,a.format);if(this.hasMoment){let e=this.moment(a.field.value,a.format,a.formatStrict);return e&&e.isValid()?e.toDate():null}return new Date(Date.parse(a.field.value))},o._onInputChange=function(e){let t;e.firedBy!==o&&(t=o._parseFieldValue(),u(t)&&o.setDate(t),o._v||o.show())},o._onInputFocus=function(){o.show()},o._onInputClick=function(){o.show()},o._onInputBlur=function(){let e=r().activeElement;do{if(i(e,"pika-single"))return}while(e=e.parentNode);o._c||(o._b=n(function(){o.hide()},50)),o._c=!1},o._onClick=function(e){let r=(e=e||t().event).target||e.srcElement,n=r;if(r){!hasEventListeners&&i(r,"pika-select")&&(r.onchange||(r.setAttribute("onchange","return;"),s(r,"change",o._onChange)));do{if(i(n,"pika-single")||n===a.trigger)return}while(n=n.parentNode);o._v&&r!==a.trigger&&n!==a.trigger&&o.hide()}},o.el=r().createElement("div"),o.el.className="pika-single"+(a.isRTL?" is-rtl":"")+(a.theme?" "+a.theme:""),s(o.el,"mousedown",o._onMouseDown,!0),s(o.el,"touchend",o._onMouseDown,!0),s(o.el,"change",o._onChange),a.keyboardInput&&s(r(),"keydown",o._onKeyChange),a.field&&(a.container?a.container.appendChild(o.el):a.bound?r().body.appendChild(o.el):a.field.parentNode.insertBefore(o.el,a.field.nextSibling),s(a.field,"change",o._onInputChange),a.defaultDate||(a.defaultDate=o._parseFieldValue(),a.setDefaultDate=!0));let l=a.defaultDate;u(l)?a.setDefaultDate?o.setDate(l,!0):o.gotoDate(l):o.gotoDate(new Date),a.bound?(this.hide(),o.el.className+=" is-bound",s(a.trigger,"click",o._onInputClick),s(a.trigger,"focus",o._onInputFocus),s(a.trigger,"blur",o._onInputBlur)):this.show()}M.prototype={config:function(e){this._o||(this._o=m({},y,!0));let t=m(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;let r=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=r>4?4:r,u(t.minDate)||(t.minDate=!1),u(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),h(t.yearRange)){let e=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||e,t.yearRange[1]=parseInt(t.yearRange[1],10)||e}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||y.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(e){return e=e||this._o.format,u(this._d)?this._o.toString?this._o.toString(this._d,e):this.hasMoment?this.moment(this._d).format(e):this._d.toDateString():""},getMoment:function(){return this.hasMoment?this.moment(this._d):null},setMoment:function(e,t){this.hasMoment&&this.moment.isMoment(e)&&this.setDate(e.toDate(),t)},useMoment:function(e){this.hasMoment=!0,this.moment=e},getDate:function(){return u(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",E(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),!u(e))return;let r=this._o.minDate,n=this._o.maxDate;u(r)&&e<r?e=r:u(n)&&e>n&&(e=n),this._d=new Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),E(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())},clear:function(){this.setDate(null)},gotoDate:function(e){let t=!0;if(u(e)){if(this.calendars){let r=new Date(this.calendars[0].year,this.calendars[0].month,1),n=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),s=e.getTime();n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),t=s<r.getTime()||n.getTime()<s}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){let r,n=this.getDate()||new Date,s=24*parseInt(t)*60*60*1e3;"add"===e?r=new Date(n.valueOf()+s):"subtract"===e&&(r=new Date(n.valueOf()-s)),this.setDate(r)},adjustCalendars:function(){this.calendars[0]=w(this.calendars[0]);for(let e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=w({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(g(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=y.minDate,this._o.minYear=y.minYear,this._o.minMonth=y.minMonth,this._o.startRange=y.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(g(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=y.maxDate,this._o.maxYear=y.maxYear,this._o.maxMonth=y.maxMonth,this._o.endRange=y.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(!this._v&&!e)return;let t,r=this._o,s=r.minYear,o=r.maxYear,i=r.minMonth,a=r.maxMonth,l="";this._y<=s&&(this._y=s,!isNaN(i)&&this._m<i&&(this._m=i)),this._y>=o&&(this._y=o,!isNaN(a)&&this._m>a&&(this._m=a));for(let e=0;e<r.numberOfMonths;e++)t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),l+='<div class="pika-lendar">'+T(this,e,this.calendars[e].year,this.calendars[e].month,this.calendars[0].year,t)+this.render(this.calendars[e].year,this.calendars[e].month,t)+"</div>";this.el.innerHTML=l,r.bound&&"hidden"!==r.field.type&&n(function(){r.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),r.bound&&r.field.setAttribute("aria-label",r.ariaLabel)},adjustPosition:function(){let e,n,s,o,i,h,u,c,d,p,g;this._o.container||(this.el.style.position="absolute",e=this._o.trigger,n=this.el.offsetWidth,s=this.el.offsetHeight,o=t().innerWidth||r().documentElement.clientWidth,i=t().innerHeight||r().documentElement.clientHeight,h=r().body.scrollTop||r().documentElement.scrollTop,p=!0,g=!0,d=e.getBoundingClientRect(),u=d.left+t().pageXOffset,c=d.bottom+t().pageYOffset,(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+e.offsetWidth>0)&&(u=u-n+e.offsetWidth,p=!1),(this._o.reposition&&c+s>i+h||this._o.position.indexOf("top")>-1&&c-s-e.offsetHeight>0)&&(c=c-s-e.offsetHeight,g=!1),u<0&&(u=0),c<0&&(c=0),this.el.style.left=u+"px",this.el.style.top=c+"px",a(this.el,p?"left-aligned":"right-aligned"),a(this.el,g?"bottom-aligned":"top-aligned"),l(this.el,p?"right-aligned":"left-aligned"),l(this.el,g?"top-aligned":"bottom-aligned"))},render:function(e,t,r){let n=this._o,s=new Date,o=p(e,t),i=new Date(e,t,1).getDay(),a=[],l=[];g(s),n.firstDay>0&&(i-=n.firstDay,i<0&&(i+=7));let h=0===t?11:t-1,d=11===t?0:t+1,m=0===t?e-1:e,E=11===t?e+1:e,w=p(m,h),y=o+i,C=y;for(;C>7;)C-=7;y+=7-C;let T=!1;for(let r=0,p=0;r<y;r++){let g=new Date(e,t,r-i+1),y=!!u(this._d)&&f(g,this._d),C=f(g,s),N=-1!==n.events.indexOf(g.toDateString()),M=r<i||r>=o+i,_=r-i+1,b=t,A=e,I=n.startRange&&f(n.startRange,g),O=n.endRange&&f(n.endRange,g),x=n.startRange&&n.endRange&&n.startRange<g&&g<n.endRange;M&&(r<i?(_=w+_,b=h,A=m):(_-=o,b=d,A=E));let P={day:_,month:b,year:A,hasEvent:N,isSelected:y,isToday:C,isDisabled:n.minDate&&g<n.minDate||n.maxDate&&g>n.maxDate||n.disableWeekends&&c(g)||n.disableDayFn&&n.disableDayFn(g),isEmpty:M,isStartRange:I,isEndRange:O,isInRange:x,showDaysInNextAndPreviousMonths:n.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:n.enableSelectionDaysInNextAndPreviousMonths};n.pickWholeWeek&&y&&(T=!0),l.push(R(P)),7===++p&&(n.showWeekNumber&&l.unshift(S(this,r-i,t,e,n.firstWeekOfYearMinDays)),a.push(v(l,n.isRTL,n.pickWholeWeek,T)),l=[],p=0,T=!1)}return N(n,a,r)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),l(this.el,"is-hidden"),this._o.bound&&(s(r(),"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){let e=this._v;!1!==e&&(this._o.bound&&o(r(),"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),a(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){let e=this._o;this.hide(),o(this.el,"mousedown",this._onMouseDown,!0),o(this.el,"touchend",this._onMouseDown,!0),o(this.el,"change",this._onChange),e.keyboardInput&&o(r(),"keydown",this._onKeyChange),e.field&&(o(e.field,"change",this._onInputChange),e.bound&&(o(e.trigger,"click",this._onInputClick),o(e.trigger,"focus",this._onInputFocus),o(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},e.exports=M},11507:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(85639),r(73741),r(69326);var n=r(45098),s=r(85180),o=r(39738),i=r(35782),a=r(10530);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 p=t.PLUGIN_KEY="manualColumnResize",g=t.PLUGIN_PRIORITY=130,f="manualColumnWidths";var m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,R=new WeakMap,S=new WeakMap,v=new WeakMap,T=new WeakMap,N=new WeakMap,M=new WeakMap,_=new WeakMap,b=new WeakMap,A=new WeakMap,I=new WeakMap,O=new WeakMap,x=new WeakSet;class P extends n.BasePlugin{static get PLUGIN_KEY(){return p}static get PLUGIN_PRIORITY(){return g}constructor(e){var t,r;super(e),h(t=this,r=x),r.add(t),l(this,m,null),l(this,E,null),l(this,w,[]),l(this,y,null),l(this,C,null),l(this,R,null),l(this,S,null),l(this,v,null),l(this,T,this.hot.rootDocument.createElement("DIV")),l(this,N,this.hot.rootDocument.createElement("DIV")),l(this,M,null),l(this,_,!1),l(this,b,0),l(this,A,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()[p]}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)return;u(m,this,e);const{_wt:t}=this.hot.view,r=t.wtTable.getCoords(c(m,this)),n=r.col;if(n<0)return;const a=(0,s.outerHeight)(c(m,this)),l=c(m,this).getBoundingClientRect();let h;n<t.getSetting("fixedColumnsStart")&&(h=t.wtOverlays.topInlineStartCornerOverlay.getRelativeCellPosition(c(m,this),r.row,r.col)),h||(h=t.wtOverlays.topOverlay.getRelativeCellPosition(c(m,this),r.row,r.col)),u(E,this,this.hot.columnIndexMapper.getVisualFromRenderableIndex(n)),u(w,this,[]);const d=this.hot.selection.isSelectedByCorner()||this.hot.selection.isSelectedByColumnHeader();if(this.hot.selection.isSelected()&&d){const e=this.hot.getSelectedRange();(0,o.arrayEach)(e,e=>{const t=e.getTopStartCorner().col,r=e.getBottomEndCorner().col;(0,i.rangeEach)(t,r,e=>{c(w,this).includes(e)||c(w,this).push(e)})})}c(w,this).includes(c(E,this))||u(w,this,[c(E,this)]),u(v,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(v,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(v,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.render(),this.hot.view.adjustElementsSize()},t=(t,r)=>{const n=this.hot.runHooks("beforeColumnResize",c(C,this),t,!0);void 0!==n&&u(C,this,n),this.setManualSize(t,c(C,this)),this.saveManualColumnWidths(),this.hot.runHooks("afterColumnResize",c(C,this),t,!0),r&&e()};if(c(b,this)>=2){c(w,this).length>1?((0,o.arrayEach)(c(w,this),e=>{t(e)}),e()):(0,o.arrayEach)(c(w,this),e=>{t(e,!0)})}u(b,this,0),u(A,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()[p],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(_,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(M,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(M,this,!0),null===c(A,this)&&(u(A,this,setTimeout(()=>this.afterMouseDownTimeout(),500)),this.hot._registerTimeout(c(A,this))),u(b,this,c(b,this)+1),this.startX=e.pageX,u(C,this,c(S,this)))}function H(e){if(c(M,this)){const t=(e.pageX-this.startX)*this.hot.getDirectionFactor();u(y,this,c(S,this)+t),(0,o.arrayEach)(c(w,this),e=>{u(C,this,this.setManualSize(e,c(y,this)))}),this.refreshHandlePosition(),this.refreshGuidePosition()}}function F(){const e=()=>{this.hot.render(),this.hot.view.adjustElementsSize()},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(M,this)){if(this.hideHandleAndGuide(),u(M,this,!1),c(C,this)!==c(S,this)){c(w,this).length>1?((0,o.arrayEach)(c(w,this),e=>{t(e)}),e()):(0,o.arrayEach)(c(w,this),e=>{t(e,!0)})}this.setupHandlePosition(c(m,this))}}function U(){this.hideHandleAndGuide(),this.hot.rootElement.removeChild(c(T,this)),this.hot.rootElement.removeChild(c(N,this)),u(M,this,!1),u(_,this,!0),this.hot._registerImmediate(()=>{u(_,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()[p]&&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},11633:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.default=function(e,t,r){if("function"==typeof i[e])return new i[e](t,r);return null};var s=n(r(5573));const o=t.TYPE_CSV="csv",i=(t.TYPE_EXCEL="excel",t.TYPE_PDF="pdf",t.EXPORT_TYPES={[o]:s.default})},11872:()=>{},11907:(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.getSelectedRangeLast();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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="clear_column"},12013:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},12108:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"borders:bottom",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_BOTTOM);return(0,s.checkSelectionBorders)(this,"bottom")&&(e=(0,s.markSelected)(e)),e},callback(t,r){const n=(0,s.checkSelectionBorders)(this,"bottom");e.prepareBorder(r,"bottom",n)}}};var n=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(23622)},12454:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(46533)),o=n(r(13076)),i=r(84378),a=n(r(82016)),l=n(r(29982)),h=n(r(54167)),u=n(r(13781)),c=r(54587),d=r(72848),p=r(85180);class g extends u.default{constructor(e,t){super(e,new a.default(t));const r=this.wtSettings.getSetting("facade",this);this.wtTable=new l.default(this.getTableDao(),r,this.domBindings,this.wtSettings),this.wtViewport=new h.default(this.getViewportDao(),this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.selectionManager=new c.SelectionManager(this.wtSettings.getSetting("selections")),this.wtEvent=new s.default(r,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager),this.wtOverlays=new o.default(this,r,this.domBindings,this.wtSettings,this.eventManager,this.wtTable),this.exportSettingsAsClassNames(),this.findOriginalHeaders()}exportSettingsAsClassNames(){const e=[],t=[];(0,d.objectEach)({rowHeaders:"htRowHeaders",columnHeaders:"htColumnHeaders"},(r,n)=>{this.wtSettings.getSetting(n).length&&t.push(r),e.push(r)}),(0,p.removeClass)(this.wtTable.wtRootElement.parentNode,e),(0,p.addClass)(this.wtTable.wtRootElement.parentNode,t)}getOverlayByName(e){var t;if(!i.CLONE_TYPES.includes(e))return null;const r=e.replace(/_([a-z])/g,e=>e[1].toUpperCase());return null!==(t=this.wtOverlays[`${r}Overlay`])&&void 0!==t?t:null}getViewportDao(){const e=this;return{get wot(){return e},get topOverlayTrimmingContainer(){return e.wtOverlays.topOverlay.trimmingContainer},get inlineStartOverlayTrimmingContainer(){return e.wtOverlays.inlineStartOverlay.trimmingContainer},get topScrollPosition(){return e.wtOverlays.topOverlay.getScrollPosition()},get topParentOffset(){return e.wtOverlays.topOverlay.getTableParentOffset()},get inlineStartScrollPosition(){return e.wtOverlays.inlineStartOverlay.getScrollPosition()},get inlineStartParentOffset(){return e.wtOverlays.inlineStartOverlay.getTableParentOffset()},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get bottomOverlay(){return e.wtOverlays.bottomOverlay}}}}t.default=g},12483:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(73741),r(69326);var n=r(93629),s=r(85180),o=r(60182),i=r(91781);function a(e,t,r){l(e,t),t.set(e,r)}function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){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,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakSet;function E(){const{view:e,stylesHandler:t}=h(d,this);if(e.isVerticallyScrollableByWindow())return!1;const r=e.getViewportHeight(),n=h(d,this).countRows(),s=t.getDefaultRowHeight();let o=0,i=!1;for(let e=0;e<n;e++){var a;if(o+=(null!==(a=h(d,this).getRowHeight(e))&&void 0!==a?a:s)+(0===e?1:0),o>r){i=!0;break}}return i}function w(e){var t;return null!==(t=h(d,this).getColWidth(e,"StretchColumns"))&&void 0!==t?t:n.DEFAULT_COLUMN_WIDTH}function y(e,t){return h(d,this).runHooks("beforeStretchingColumnWidth",e,t)}t.StretchCalculator=class{constructor(e){var t,r;l(t=this,r=m),r.add(t),a(this,d,void 0),a(this,p,void 0),a(this,g,new Map([["all",new o.StretchAllStrategy(c(m,this,y).bind(this))],["last",new i.StretchLastStrategy(c(m,this,y).bind(this))]])),a(this,f,"none"),u(d,this,e),u(p,this,h(d,this).columnIndexMapper.createAndRegisterIndexMap("stretchColumns","physicalIndexToValue"))}useStrategy(e){u(f,this,h(g,this).has(e)?e:"none")}refreshStretching(){"none"!==h(f,this)?h(d,this).batchExecution(()=>{h(p,this).clear();const e=h(g,this).get(h(f,this));let t=h(d,this).view.getViewportWidth();c(m,this,E).call(this)&&(t-=(0,s.getScrollbarWidth)(h(d,this).rootDocument)),e.prepare({viewportWidth:t});for(let t=0;t<h(d,this).countCols();t++)h(d,this).columnIndexMapper.isHidden(h(d,this).toPhysicalColumn(t))||e.setColumnBaseWidth(t,c(m,this,w).call(this,t));e.calculate(),e.getWidths().forEach(e=>{let[t,r]=e;h(p,this).setValueAtIndex(h(d,this).toPhysicalColumn(t),r)})},!0):h(p,this).clear()}getStretchedWidth(e){return h(p,this).getValueAtIndex(h(d,this).toPhysicalColumn(e))}}},12508:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=n(r(46533)),i=n(r(13781));class a extends i.default{constructor(e,t,r){super(e,t),(0,s.default)(this,"cloneSource",void 0),(0,s.default)(this,"cloneOverlay",void 0);const n=this.wtSettings.getSetting("facade",this);this.cloneSource=r.source,this.cloneOverlay=r.overlay,this.wtTable=this.cloneOverlay.createTable(this.getTableDao(),n,this.domBindings,this.wtSettings),this.wtViewport=r.viewport,this.selectionManager=r.selectionManager,this.wtEvent=new o.default(n,this.domBindings,this.wtSettings,this.eventManager,this.wtTable,this.selectionManager,r.event),this.findOriginalHeaders()}}t.default=a},12947:(e,t,r)=>{"use strict";var n=r(53385),s=r(25225);e.exports=function(e){if("Function"===n(e))return s(e)}},13076:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326),r(89663);var s=n(r(53726)),o=r(85180),i=r(73269),a=r(39738),l=r(82564),h=r(28627),u=r(51278),c=r(84378);function d(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 p(e,t,r){return e.set(f(e,t),r),r}function g(e,t){return e.get(f(e,t))}function f(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 m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap;t.default=class{constructor(e,t,r,n,a,l){(0,s.default)(this,"wot",null),d(this,m,[]),(0,s.default)(this,"topOverlay",null),(0,s.default)(this,"bottomOverlay",null),(0,s.default)(this,"inlineStartOverlay",null),(0,s.default)(this,"topInlineStartCornerOverlay",null),(0,s.default)(this,"bottomInlineStartCornerOverlay",null),(0,s.default)(this,"browserLineHeight",void 0),(0,s.default)(this,"wtSettings",null),d(this,E,!1),d(this,w,0),d(this,y,null),(0,s.default)(this,"resizeObserver",new ResizeObserver(e=>{(0,i.requestAnimationFrame)(()=>{Array.isArray(e)&&e.length&&(p(w,this,g(w,this)+1),100===g(w,this)&&((0,u.warn)("The ResizeObserver callback was fired too many times in direct succession.\nThis may be due to an infinite loop caused by setting a dynamic height/width (for example, with the `dvh` units) to a Handsontable container's parent. \nThe observer will be disconnected."),this.resizeObserver.disconnect()),null!==g(y,this)&&clearTimeout(g(y,this)),p(y,this,setTimeout(()=>{p(w,this,0)},100)),this.wtSettings.getSetting("onContainerElementResize"))})})),this.wot=e,this.wtSettings=n,this.domBindings=r,this.facadeGetter=t,this.wtTable=l;const{rootDocument:h,rootWindow:c}=this.domBindings;this.instance=this.wot,this.eventManager=a,this.scrollbarSize=(0,o.getScrollbarWidth)(h);const f="hidden"===c.getComputedStyle(l.wtRootElement.parentNode).getPropertyValue("overflow");this.scrollableElement=f?l.holder:(0,o.getScrollableElement)(l.TABLE),this.initOverlays(),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.initBrowserLineHeight(),this.registerListeners(),this.lastScrollX=c.scrollX,this.lastScrollY=c.scrollY}getOverlays(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=[...g(m,this)];return e&&t.push(this.wtTable),t}initBrowserLineHeight(){const{rootWindow:e,rootDocument:t}=this.domBindings,r=e.getComputedStyle(t.body),n=parseInt(r.lineHeight,10),s=1.2*parseInt(r.fontSize,10);this.browserLineHeight=n||s}initOverlays(){const e=[this.wot,this.facadeGetter,this.wtSettings,this.domBindings];this.topOverlay=new c.TopOverlay(...e),this.bottomOverlay=new c.BottomOverlay(...e),this.inlineStartOverlay=new c.InlineStartOverlay(...e),this.topInlineStartCornerOverlay=new c.TopInlineStartCornerOverlay(...e,this.topOverlay,this.inlineStartOverlay),this.bottomInlineStartCornerOverlay=new c.BottomInlineStartCornerOverlay(...e,this.bottomOverlay,this.inlineStartOverlay),p(m,this,[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay])}beforeDraw(){p(E,this,g(m,this).reduce((e,t)=>t.hasRenderingStateChanged()||e,!1)),g(m,this).forEach(e=>e.updateStateOfRendering("before"))}afterDraw(){this.syncScrollWithMaster(),g(m,this).forEach(e=>{const t=e.hasRenderingStateChanged();e.updateStateOfRendering("after"),t&&!e.needFullRender&&e.reset()})}refreshAll(){this.wot.drawn&&(this.wtTable.holder.parentNode?(this.wot.draw(!0),this.verticalScrolling&&this.inlineStartOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1):this.destroy())}registerListeners(){const{rootDocument:e,rootWindow:t}=this.domBindings,{mainTableScrollableElement:r}=this.topOverlay,{mainTableScrollableElement:n}=this.inlineStartOverlay;this.eventManager.addEventListener(e.documentElement,"keydown",e=>this.onKeyDown(e)),this.eventManager.addEventListener(e.documentElement,"keyup",()=>this.onKeyUp()),this.eventManager.addEventListener(e,"visibilitychange",()=>this.onKeyUp()),this.eventManager.addEventListener(r,"scroll",e=>this.onTableScroll(e),{passive:!0}),r!==n&&this.eventManager.addEventListener(n,"scroll",e=>this.onTableScroll(e),{passive:!0});const s=t.devicePixelRatio&&t.devicePixelRatio>1,o=this.scrollableElement===t,a=this.wtSettings.getSetting("preventWheel"),l={passive:o};(a||s||!(0,h.isChrome)())&&this.eventManager.addEventListener(this.wtTable.wtRootElement,"wheel",e=>this.onCloneWheel(e,a),l);let u;[this.topOverlay,this.bottomOverlay,this.inlineStartOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay].forEach(e=>{this.eventManager.addEventListener(e.clone.wtTable.holder,"wheel",e=>this.onCloneWheel(e,a),l)}),this.eventManager.addEventListener(t,"resize",()=>{(0,i.requestAnimationFrame)(()=>{clearTimeout(u),this.wtSettings.getSetting("onWindowResize"),u=setTimeout(()=>{p(w,this,0)},200)})}),o||this.resizeObserver.observe(this.wtTable.wtRootElement.parentElement)}onTableScroll(e){const t=this.domBindings.rootWindow,r=this.inlineStartOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,s=e.target;this.keyPressed&&(n!==t&&s!==t&&!e.target.contains(n)||r!==t&&s!==t&&!e.target.contains(r))||this.syncScrollPositions(e)}onCloneWheel(e,t){const{rootWindow:r}=this.domBindings,n=this.inlineStartOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,o=e.target,i=s!==r&&o!==r&&!o.contains(s),a=n!==r&&o!==r&&!o.contains(n);if(this.keyPressed&&(i||a)||this.scrollableElement===r)return;const l=this.translateMouseWheelToScroll(e);(t||this.scrollableElement!==r&&l)&&e.preventDefault()}onKeyDown(e){this.keyPressed=(0,l.isKey)(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")}onKeyUp(){this.keyPressed=!1}translateMouseWheelToScroll(e){let t=isNaN(e.deltaY)?-1*e.wheelDeltaY:e.deltaY,r=isNaN(e.deltaX)?-1*e.wheelDeltaX:e.deltaX;1===e.deltaMode&&(r+=r*this.browserLineHeight,t+=t*this.browserLineHeight);const n=this.scrollVertically(t),s=this.scrollHorizontally(r);return n||s}scrollVertically(e){const t=this.scrollableElement.scrollTop;return this.scrollableElement.scrollTop+=e,t!==this.scrollableElement.scrollTop}scrollHorizontally(e){const t=this.scrollableElement.scrollLeft;return this.scrollableElement.scrollLeft+=e,t!==this.scrollableElement.scrollLeft}syncScrollPositions(){if(this.destroyed)return;const e=this.topOverlay.clone.wtTable.holder,t=this.inlineStartOverlay.clone.wtTable.holder;let r=this.scrollableElement.scrollLeft,n=this.scrollableElement.scrollTop;if(this.wot.wtViewport.isHorizontallyScrollableByWindow()&&(r=this.scrollableElement.scrollX),this.wot.wtViewport.isVerticallyScrollableByWindow()&&(n=this.scrollableElement.scrollY),this.horizontalScrolling=this.lastScrollX!==r,this.verticalScrolling=this.lastScrollY!==n,this.lastScrollX=r,this.lastScrollY=n,this.horizontalScrolling){e.scrollLeft=r;const t=this.bottomOverlay.needFullRender?this.bottomOverlay.clone.wtTable.holder:null;t&&(t.scrollLeft=r)}this.verticalScrolling&&(t.scrollTop=n),this.refreshAll()}syncScrollWithMaster(){if(!g(E,this))return;const e=this.topOverlay.mainTableScrollableElement,{scrollLeft:t,scrollTop:r}=e;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=t),this.bottomOverlay.needFullRender&&(this.bottomOverlay.clone.wtTable.holder.scrollLeft=t),this.inlineStartOverlay.needFullRender&&(this.inlineStartOverlay.clone.wtTable.holder.scrollTop=r),p(E,this,!1)}updateMainScrollableElements(){this.eventManager.clearEvents(!0),this.inlineStartOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement();const{wtTable:e}=this,{rootWindow:t}=this.domBindings;"hidden"===t.getComputedStyle(e.wtRootElement.parentNode).getPropertyValue("overflow")?this.scrollableElement=e.holder:this.scrollableElement=(0,o.getScrollableElement)(e.TABLE),this.registerListeners()}destroy(){this.resizeObserver.disconnect(),this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.inlineStartOverlay.destroy(),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.destroy(),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.destroy(),this.destroyed=!0}refresh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.updateLastSpreaderSize()&&this.adjustElementsSize(),this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.inlineStartOverlay.refresh(e),this.topOverlay.refresh(e),this.topInlineStartCornerOverlay&&this.topInlineStartCornerOverlay.refresh(e),this.bottomInlineStartCornerOverlay&&this.bottomInlineStartCornerOverlay.clone&&this.bottomInlineStartCornerOverlay.refresh(e)}updateLastSpreaderSize(){const e=this.wtTable.spreader,t=e.clientWidth,r=e.clientHeight,n=t!==this.spreaderLastSize.width||r!==this.spreaderLastSize.height;return n&&(this.spreaderLastSize.width=t,this.spreaderLastSize.height=r),n}adjustElementsSize(){const{wtViewport:e}=this.wot,{wtTable:t}=this,{rootWindow:r}=this.domBindings,n=this.scrollableElement===r,s=this.wtSettings.getSetting("totalColumns"),o=this.wtSettings.getSetting("totalRows"),i=e.getRowHeaderWidth(),a=e.getColumnHeaderHeight()+this.topOverlay.sumCellSizes(0,o)+1,l=i+this.inlineStartOverlay.sumCellSizes(0,s),h=t.hider.style,u=(()=>!n&&this.scrollableElement.scrollTop>Math.max(0,a-t.holder.clientHeight))()?1:0,c=(()=>!n&&this.scrollableElement.scrollLeft>Math.max(0,l-t.holder.clientWidth))()?1:0;h.width=`${l+c}px`,h.height=`${a+u}px`,this.topOverlay.adjustElementsSize(),this.inlineStartOverlay.adjustElementsSize(),this.bottomOverlay.adjustElementsSize()}expandHiderVerticallyBy(e){const{wtTable:t}=this;t.hider.style.height=`${parseInt(t.hider.style.height,10)+e}px`}expandHiderHorizontallyBy(e){const{wtTable:t}=this;t.hider.style.width=`${parseInt(t.hider.style.width,10)+e}px`}applyToDOM(){this.wtTable.isVisible()&&(this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.inlineStartOverlay.applyToDOM())}getParentOverlay(e){if(!e)return null;const t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];let r=null;return(0,a.arrayEach)(t,t=>{t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(r=t.clone)}),r}syncOverlayTableClassNames(){const e=this.wtTable.TABLE,t=[this.topOverlay,this.inlineStartOverlay,this.bottomOverlay,this.topInlineStartCornerOverlay,this.bottomInlineStartCornerOverlay];(0,a.arrayEach)(t,t=>{t&&(t.clone.wtTable.TABLE.className=e.className)})}}},13119:(e,t,r)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,r){const i=t.checkedTemplate,a=t.uncheckedTemplate,{sortEmptyCells:l}=r;return function(h,u){const c=(0,o.isEmpty)(h),d=(0,o.isEmpty)(u),p=c?a:h,g=d?a:u,f=p===a||p===i,m=g===a||g===i;if(!1===l){if(c&&!1===d)return n.FIRST_AFTER_SECOND;if(!1===c&&d)return n.FIRST_BEFORE_SECOND}return!1===f&&m?"asc"===e?n.FIRST_BEFORE_SECOND:n.FIRST_AFTER_SECOND:f&&!1===m?"asc"===e?n.FIRST_AFTER_SECOND:n.FIRST_BEFORE_SECOND:!1===f&&!1===m?(0,s.compareFunctionFactory)(e,t,r)(h,u):p===a&&g===i?"asc"===e?n.FIRST_BEFORE_SECOND:n.FIRST_AFTER_SECOND:p===i&&g===a?"asc"===e?n.FIRST_AFTER_SECOND:n.FIRST_BEFORE_SECOND:n.DO_NOT_SWAP}};var n=r(96007),s=r(94825),o=r(18528);t.COLUMN_DATA_TYPE="checkbox"},13150:(e,t,r)=>{"use strict";var n=r(68999),s=Function.prototype,o=s.apply,i=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},13190:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(97545);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualRowMove=n.ManualRowMove},13301:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(93629);class i extends o.Selection{constructor(e,t){super(e,null),(0,s.default)(this,"visualCellRange",null),this.visualCellRange=t||null,this.commit()}add(e){return null===this.visualCellRange?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:t,to:r}=e,n=this.getNearestNotHiddenCoords(t,1),s=this.getNearestNotHiddenCoords(r,-1);return null===n||null===s?null:((n.row>s.row||n.col>s.col)&&(n=t,s=r),this.settings.createCellRange(n,n,s))}getNearestNotHiddenCoords(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;const n=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,t);if(null===n)return null;const s=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,r);return null===s?null:this.settings.createCellCoords(n,s)}getNearestNotHiddenIndex(e,t,r){return t<0?t:e.getNearestNotHiddenIndex(t,r)}commit(){if(null===this.visualCellRange)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return this.cellRange=null===e?null:this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const t=e.from.clone().normalize(),r="N-S"===e.getVerticalDirection()?1:-1,n="W-E"===e.getHorizontalDirection()?1:-1,s=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let o=null;if(null!==s&&null!==s.col&&null!==s.row||(o=this.getNearestNotHiddenCoords(t,r,n)),null!==o&&e.overlaps(o)){const t=e.highlight.clone();if(t.row>=0&&(t.row=o.row),t.col>=0&&(t.col=o.col),null===this.cellRange){const e=this.settings.visualToRenderableCoords(t);this.cellRange=this.settings.createCellRange(e)}e.setHighlight(t)}return"focus"===this.settings.selectionType&&null!==s&&null===o&&e.setHighlight(this.visualCellRange.highlight),this}getCorners(){const{from:e,to:t}=this.cellRange;return[Math.min(e.row,t.row),Math.min(e.col,t.col),Math.max(e.row,t.row),Math.max(e.col,t.col)]}getVisualCorners(){const e=this.settings.renderableToVisualCoords(this.cellRange.getTopStartCorner()),t=this.settings.renderableToVisualCoords(this.cellRange.getBottomEndCorner());return[e.row,e.col,t.row,t.col]}createRenderableCellRange(e,t){const r=this.settings.visualToRenderableCoords(e),n=this.settings.visualToRenderableCoords(t);return null===r.row||null===r.col||null===n.row||null===n.col?null:this.settings.createCellRange(r,r,n)}}t.default=i},13555:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72848);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},13709:(e,t,r)=>{"use strict";t.__esModule=!0,r(85639);var n=r(39738),s=r(72848);const o={_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)(o,"MIXIN_NAME","hooksRefRegisterer",{writable:!1,enumerable:!1});t.default=o},13745:()=>{},13780:(e,t)=>{"use strict";t.__esModule=!0;t.WORKING_SPACE_ALL=0,t.WORKING_SPACE_TOP=1,t.WORKING_SPACE_BOTTOM=2},13781:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(85180),i=r(28222),a=n(r(54138)),l=n(r(84940)),h=n(r(35418)),u=n(r(99423));t.default=class{get eventManager(){return new a.default(this)}constructor(e,t){(0,s.default)(this,"wtTable",void 0),(0,s.default)(this,"wtScroll",void 0),(0,s.default)(this,"wtViewport",void 0),(0,s.default)(this,"wtOverlays",void 0),(0,s.default)(this,"selectionManager",void 0),(0,s.default)(this,"wtEvent",void 0),(0,s.default)(this,"guid",`wt_${(0,i.randomString)()}`),(0,s.default)(this,"drawInterrupted",!1),(0,s.default)(this,"drawn",!1),(0,s.default)(this,"activeOverlayName","master"),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"wtSettings",void 0),this.domBindings={rootTable:e,rootDocument:e.ownerDocument,rootWindow:e.ownerDocument.defaultView},this.wtSettings=t,this.wtScroll=new l.default(this.createScrollDao())}findOriginalHeaders(){const e=[];if(this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(let t=0,r=this.wtTable.THEAD.childNodes[0].childNodes.length;t<r;t++)e.push(this.wtTable.THEAD.childNodes[0].childNodes[t].innerHTML);this.wtSettings.getSetting("columnHeaders").length||this.wtSettings.update("columnHeaders",[function(t,r){(0,o.fastInnerText)(r,e[t])}])}}createCellCoords(e,t){return new h.default(e,t,this.wtSettings.getSetting("rtlMode"))}createCellRange(e,t,r){return new u.default(e,t,r,this.wtSettings.getSetting("rtlMode"))}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.drawInterrupted=!1,!this.wtTable.isVisible()||(0,o.hasZeroHeight)(this.wtTable.wtRootElement.parentNode)?this.drawInterrupted=!0:this.wtTable.draw(e),this}getCell(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))return this.wtTable.getCell(e);const t=this.wtSettings.getSetting("totalRows"),r=this.wtSettings.getSetting("fixedRowsTop"),n=this.wtSettings.getSetting("fixedRowsBottom"),s=this.wtSettings.getSetting("fixedColumnsStart");if(e.row<r&&e.col<s)return this.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.getCell(e);if(e.row<r)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<s&&e.row>=t-n){if(this.wtOverlays.bottomInlineStartCornerOverlay&&this.wtOverlays.bottomInlineStartCornerOverlay.clone)return this.wtOverlays.bottomInlineStartCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<s)return this.wtOverlays.inlineStartOverlay.clone.wtTable.getCell(e);if(e.row<t&&e.row>=t-n&&this.wtOverlays.bottomOverlay&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)}scrollViewport(e,t,r){return this.wtScroll.scrollViewport(e,t,r)}scrollViewportHorizontally(e,t){return this.wtScroll.scrollViewportHorizontally(e,t)}scrollViewportVertically(e,t){return this.wtScroll.scrollViewportVertically(e,t)}getViewport(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]}destroy(){this.wtOverlays.destroy(),this.wtEvent.destroy()}createScrollDao(){const e=this;return{get drawn(){return e.drawn},get topOverlay(){return e.wtOverlays.topOverlay},get inlineStartOverlay(){return e.wtOverlays.inlineStartOverlay},get wtTable(){return e.wtTable},get wtViewport(){return e.wtViewport},get wtSettings(){return e.wtSettings},get rootWindow(){return e.domBindings.rootWindow},get totalRows(){return e.wtSettings.getSetting("totalRows")},get totalColumns(){return e.wtSettings.getSetting("totalColumns")},get fixedRowsTop(){return e.wtSettings.getSetting("fixedRowsTop")},get fixedRowsBottom(){return e.wtSettings.getSetting("fixedRowsBottom")},get fixedColumnsStart(){return e.wtSettings.getSetting("fixedColumnsStart")}}}getTableDao(){const e=this;return{get wot(){return e},get parentTableOffset(){return e.cloneSource.wtTable.tableOffset},get cloneSource(){return e.cloneSource},get workspaceWidth(){return e.wtViewport.getWorkspaceWidth()},get wtViewport(){return e.wtViewport},get wtOverlays(){return e.wtOverlays},get selectionManager(){return e.selectionManager},get drawn(){return e.drawn},set drawn(t){e.drawn=t},get wtTable(){return e.wtTable},get startColumnRendered(){return e.wtViewport.columnsRenderCalculator.startColumn},get startColumnVisible(){return e.wtViewport.columnsVisibleCalculator.startColumn},get startColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.startColumn},get endColumnRendered(){return e.wtViewport.columnsRenderCalculator.endColumn},get endColumnVisible(){return e.wtViewport.columnsVisibleCalculator.endColumn},get endColumnPartiallyVisible(){return e.wtViewport.columnsPartiallyVisibleCalculator.endColumn},get countColumnsRendered(){return e.wtViewport.columnsRenderCalculator.count},get countColumnsVisible(){return e.wtViewport.columnsVisibleCalculator.count},get startRowRendered(){return e.wtViewport.rowsRenderCalculator.startRow},get startRowVisible(){return e.wtViewport.rowsVisibleCalculator.startRow},get startRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.startRow},get endRowRendered(){return e.wtViewport.rowsRenderCalculator.endRow},get endRowVisible(){return e.wtViewport.rowsVisibleCalculator.endRow},get endRowPartiallyVisible(){return e.wtViewport.rowsPartiallyVisibleCalculator.endRow},get countRowsRendered(){return e.wtViewport.rowsRenderCalculator.count},get countRowsVisible(){return e.wtViewport.rowsVisibleCalculator.count},get columnHeaders(){return e.wtSettings.getSetting("columnHeaders")},get rowHeaders(){return e.wtSettings.getSetting("rowHeaders")}}}}},13794:(e,t,r)=>{"use strict";var n=r(42806),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},13848:(e,t,r)=>{"use strict";t.__esModule=!0,t.createScrollTargetCalculator=function(e){const{selection:t,view:r}=e,n=e.getSelectedRangeLast(),s=t.getSelectionSource(),o=r.getFirstFullyVisibleColumn(),i=r.getLastFullyVisibleColumn(),a=n.getTopStartCorner().col,l=n.getBottomEndCorner().col,h=a<=o,u=l>=i,c=r.getFirstFullyVisibleRow(),d=r.getLastFullyVisibleRow(),p=n.getTopStartCorner().row,g=n.getBottomEndCorner().row,f=p<=c,m=g>=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?p:m?g:e.row}},t.scrollWindowToCell=function(e){(0,n.isHTMLElement)(e)&&e.scrollIntoView({block:"nearest",inline:"nearest"})};var n=r(85180)},13861:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(16178);var s=n(r(53726)),o=r(85180),i=r(18528),a=r(72848),l=r(28275),h=r(39738),u=r(45098),c=r(10530),d=r(15886),p=r(87028),g=r(79104),f=r(63426),m=r(11226),E=r(57415),w=r(96007),y=r(42663);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 R(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",v=t.PLUGIN_PRIORITY=50,T=t.APPEND_COLUMN_CONFIG_STRATEGY="append",N=t.REPLACE_COLUMN_CONFIG_STRATEGY="replace",M=S;(0,w.registerRootComparator)(S,E.rootComparator),d.Hooks.getSingleton().register("beforeColumnSort"),d.Hooks.getSingleton().register("afterColumnSort");const _=new WeakMap;var b=new WeakSet;class A 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 v}isEnabled(){return!!this.hot.getSettings()[this.pluginKey]}enablePlugin(){var e=this;if(_.has(this.hot)&&_.get(this.hot)!==this.pluginKey)return this.hot.updateSettings({[this.pluginKey]:!1}),void(0,f.warnAboutPluginsConflict)(_.get(this.hot),this.pluginKey);this.enabled||(_.set(this.hot,this.pluginKey),this.columnStatesManager=new p.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)=>R(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 R(b,e,P).call(e,...r)}),this.addHook("afterOnCellMouseDown",(e,t)=>this.onAfterOnCellMouseDown(e,t)),this.addHook("afterInit",()=>R(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 R(b,e,x).call(e,...r)}),this.hot.view&&R(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)};_.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.getSelectedRangeLast();return this.sort(this.getColumnNextConfig(e.col)),!1},runOnlyIf:()=>{var e,t;const r=null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return r&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(r)&&-1===r.row&&r.col>=0},relativeToGroup:g.EDITOR_EDIT_GROUP,position:"before",group:M})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(M)}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,i.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,i.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,i.isDefined)(t)){const r=(0,f.getNextSortOrder)(t);return(0,i.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(),o=this.getColumnNextConfig(e);if(n){if((0,i.isUndefined)(o))return[...s.slice(0,r),...s.slice(r+1)];if(t===T)return[...s.slice(0,r),...s.slice(r+1),o];if(t===N)return[...s.slice(0,r),o,...s.slice(r+1)]}return(0,i.isDefined)(o)?s.concat(o):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,w.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 o=(0,h.arrayMap)(t,e=>e[0]),i=new Map((0,h.arrayMap)(s,(e,t)=>[e,o[t]])),a=(0,h.arrayMap)(this.hot.rowIndexMapper.getIndexesSequence(),e=>i.has(e)?i.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,o.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,o.addClass)(e,(0,m.getClassesToAdd)(...r))}}onUpdateSettings(e){super.onUpdateSettings(e),null!==this.columnMetaCache&&this.columnMetaCache.init(this.hot.columnIndexMapper.getNumberOfIndexes()),(0,i.isDefined)(e[this.pluginKey])&&this.sortBySettings(e[this.pluginKey])}wasClickableHeaderClicked(e,t){return this.getFirstCellSettings(t)[this.pluginKey].headerAction&&(0,o.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,i=n.headerAction;if(this.updateHeaderClasses(r,this.columnStatesManager,e,s,i),this.hot.getSettings().ariaTags){const r=this.columnStatesManager.getSortOrderOfColumn(e);(0,o.setAttribute)(t,...(0,y.A11Y_SORT)(r?`${r}ending`:"none"))}}function x(e){!0===e&&this.hot.view&&R(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=A},13884:e=>{"use strict";e.exports={}},13937:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=r(39738),o=n(r(56356));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 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;t.default=class{constructor(e){var t,r,n;i(this,h,new Map),i(this,u,new Map),i(this,c,null),r=this,n=e,(t=c).set(l(t,r),n)}getRoots(){return Array.from(a(h,this).values())}getRootByColumn(e){let t;return a(u,this).has(e)&&(t=a(h,this).get(a(u,this).get(e))),t}getNode(e,t){const r=this.getRootByColumn(t);if(!r)return;const n=t-a(u,this).get(t);let s,o=0;return r.walkDown(r=>{const{data:{origColspan:i,headerLevel:a}}=r;if(e===a){if(n>=o&&n<=o+i-1)return s=r,s.data.isRoot=t===s.data.columnIndex,!1;o+=i}}),s}rebuildTreeIndex(){let e=0;a(u,this).clear(),(0,s.arrayEach)(a(h,this),t=>{let[,{data:{colspan:r}}]=t;for(let t=e;t<e+r;t++)a(u,this).set(t,e);e+=r})}buildTree(){this.clear();const e=a(c,this).getColumnsCount();let t=0;for(;t<e;){const e=a(c,this).getHeaderSettings(0,t),r=new o.default;a(h,this).set(t,r),this.buildLeaves(r,t,0,e.origColspan),t+=e.origColspan}this.rebuildTreeIndex()}buildLeaves(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const i=a(c,this).getHeadersSettings(r,t,n);r+=1,(0,s.arrayEach)(i,n=>{const s={...n,headerLevel:r-1,columnIndex:t};let i;1===r?(e.data=s,i=e):(i=new o.default(s),e.addChild(i)),r<a(c,this).getLayersCount()&&this.buildLeaves(i,t,r,n.origColspan),t+=n.origColspan})}clear(){a(h,this).clear(),a(u,this).clear()}}},14046:(e,t)=>{"use strict";t.__esModule=!0,t.createDefaultHeaderSettings=function(){let{label:e="",colspan:t=1,origColspan:r=1,collapsible:n=!1,crossHiddenColumns:s=[],isCollapsed:o=!1,isHidden:i=!1,isRoot:a=!1,isPlaceholder:l=!1,headerClassNames:h=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{label:e,colspan:t,origColspan:r,collapsible:n,isCollapsed:o,crossHiddenColumns:s,isHidden:i,isRoot:a,isPlaceholder:l,headerClassNames:h}},t.createPlaceholderHeaderSettings=function(){return{label:"",isPlaceholder:!0}}},14119:(e,t,r)=>{"use strict";var n=r(39157),s=r(54090),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),l=a&&"something"===function(){}.name,h=a&&(!n||n&&i(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},14236:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14475);t.EDITOR_TYPE=n.EDITOR_TYPE,t.AutocompleteEditor=n.AutocompleteEditor},14359:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(7317);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.PersistentState=n.PersistentState},14384:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_UNDO)},callback(){this.getPlugin("undoRedo").undo()},hidden(){const e=this.getPlugin("undoRedo");return!e||!e.isEnabled()},disabled(){return!this.getPlugin("undoRedo").isUndoAvailable()}}};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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="undo"},14475:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(7307),r(37782),r(89663);var s=n(r(53726)),o=r(99325),i=r(39738),a=r(85180),l=r(18528),h=r(28222),u=r(82564),c=r(81907),d=r(42663),p=r(28275);function g(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 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 w=t.EDITOR_TYPE="autocomplete";var y=new WeakMap,C=new WeakMap,R=new WeakSet;class S extends o.HandsontableEditor{constructor(){var e,t;super(...arguments),f(e=this,t=R),t.add(e),(0,s.default)(this,"query",null),(0,s.default)(this,"strippedChoices",[]),(0,s.default)(this,"rawChoices",[]),g(this,y,this.hot.guid.slice(0,9)),g(this,C,(0,p.debounce)(()=>{this.focus()},100)),(0,s.default)(this,"sortByRelevance",function(e,t,r){const n=[],s=[],o=e.length;let i,a,u,c,d=t.length;if(0===o){for(u=0;u<d;u++)s.push(u);return s}for(u=0;u<d;u++){if(a=(0,h.stripTags)((0,l.stringify)(t[u])),r)c=a.indexOf(e);else{const t=this.cellProperties.locale;c=a.toLocaleLowerCase(t).indexOf(e.toLocaleLowerCase(t))}-1!==c&&(i=a.length-c-o,n.push({baseIndex:u,index:c,charsLeft:i,value:a}))}for(n.sort((e,t)=>{if(-1===t.index)return-1;if(-1===e.index)return 1;if(e.index<t.index)return-1;if(t.index<e.index)return 1;if(e.index===t.index){if(e.charsLeft<t.charsLeft)return-1;if(e.charsLeft>t.charsLeft)return 1}return 0}),u=0,d=n.length;u<d;u++)s.push(n[u].baseIndex);return s})}static get EDITOR_TYPE(){return w}getValue(){const e=this.rawChoices.find(e=>this.stripValueIfNeeded(e)===this.TEXTAREA.value);return(0,l.isDefined)(e)?e:this.TEXTAREA.value}createElements(){super.createElements(),(0,a.addClass)(this.htContainer,"autocompleteEditor"),(0,a.addClass)(this.htContainer,-1===this.hot.rootWindow.navigator.platform.indexOf("Mac")?"":"htMacScroll"),this.hot.getSettings().ariaTags&&(0,a.setAttribute)(this.TEXTAREA,[(0,d.A11Y_TEXT)(),(0,d.A11Y_COMBOBOX)(),(0,d.A11Y_HASPOPUP)("listbox"),(0,d.A11Y_AUTOCOMPLETE)()])}prepare(e,t,r,n,s,o){super.prepare(e,t,r,n,s,o),this.hot.getSettings().ariaTags&&(0,a.setAttribute)(this.TEXTAREA,[(0,d.A11Y_EXPANDED)("false"),(0,d.A11Y_CONTROLS)(`${m(y,this)}-listbox-${e}-${t}`)])}open(){super.open();const e=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown,t=this.hot.getSettings().ariaTags,r=Array.isArray(this.cellProperties.source)?this.cellProperties.source:null,n=null==r?void 0:r.length,{row:s,col:o}=this;this.showEditableElement(),this.focus(),this.addHook("beforeKeyDown",e=>this.onBeforeKeyDown(e)),this.htEditor.addHook("afterScroll",m(C,this)),this.htEditor.updateSettings({colWidths:e?[(0,a.outerWidth)(this.TEXTAREA)-2]:void 0,autoColumnSize:!0,renderer:(e,s,o,i,h,u,p)=>{(0,c.textRenderer)(e,s,o,i,h,u,p);const{filteringCaseSensitive:g,allowHtml:f,locale:m}=this.cellProperties,E=this.query;let w,y,C=(0,l.stringify)(u);C&&!f&&(w=!0===g?C.indexOf(E):C.toLocaleLowerCase(m).indexOf(E.toLocaleLowerCase(m)),-1!==w&&(y=C.substr(w,E.length),C=C.replace(y,`<strong>${y}</strong>`))),t&&(0,a.setAttribute)(s,[(0,d.A11Y_OPTION)(),...r?[(0,d.A11Y_SETSIZE)(n)]:[],...r?[(0,d.A11Y_POSINSET)(r.indexOf(u)+1)]:[],["id",`${this.htEditor.rootElement.id}_${o}-${i}`]]),s.innerHTML=C},afterSelectionEnd:(e,r)=>{if(t){const t=e=>{(0,a.setAttribute)(e,[(0,d.A11Y_SELECTED)()]),(0,a.setAttribute)(this.TEXTAREA,...(0,d.A11Y_ACTIVEDESCENDANT)(e.id))},n=this.htEditor.getCell(e,r,!0);null!==n?t(n):this.htEditor.addHookOnce("afterScrollVertically",()=>{const n=this.htEditor.getCell(e,r,!0);t(n)})}}}),t&&((0,a.setAttribute)(this.htEditor.view._wt.wtOverlays.wtTable.TABLE,...(0,d.A11Y_PRESENTATION)()),(0,a.setAttribute)(this.htEditor.rootElement,[(0,d.A11Y_LISTBOX)(),(0,d.A11Y_LIVE)("polite"),(0,d.A11Y_RELEVANT)("text"),["id",`${m(y,this)}-listbox-${s}-${o}`]]),(0,a.setAttribute)(this.TEXTAREA,...(0,d.A11Y_EXPANDED)("true"))),this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)})}close(){this.removeHooksByKey("beforeKeyDown"),super.close(),this.hot.getSettings().ariaTags&&(0,a.setAttribute)(this.TEXTAREA,[(0,d.A11Y_EXPANDED)("false")])}discardEditor(e){super.discardEditor(e),this.hot.view.render()}queryChoices(e){const t=this.cellProperties.source;this.query=e,"function"==typeof t?t.call(this.cellProperties,e,e=>{this.rawChoices=e,this.updateChoicesList(this.stripValuesIfNeeded(e))}):Array.isArray(t)?(this.rawChoices=t,this.updateChoicesList(this.stripValuesIfNeeded(t))):this.updateChoicesList([])}updateChoicesList(e){const t=(0,a.getCaretPosition)(this.TEXTAREA),r=(0,a.getSelectionEndPosition)(this.TEXTAREA),n=this.cellProperties.sortByRelevance,s=this.cellProperties.filter;let o=null,l=null,h=e;n&&(o=this.sortByRelevance(this.stripValueIfNeeded(this.getValue()),h,this.cellProperties.filteringCaseSensitive));const u=Array.isArray(o)?o.length:0;if(!1===s)u&&(l=o[0]);else{const e=[];for(let t=0,r=h.length;t<r&&!(n&&u<=t);t++)u?e.push(h[o[t]]):e.push(h[t]);l=0,h=e}this.strippedChoices=h,0===h.length?this.htEditor.rootElement.style.display="none":this.htEditor.rootElement.style.display="",this.htEditor.loadData((0,i.pivot)([h])),h.length>0&&(this.updateDropdownDimensions(),this.flipDropdownVerticallyIfNeeded(),!0===this.cellProperties.strict&&this.highlightBestMatchingChoice(l)),this.hot.listen(),(0,a.setCaretPosition)(this.TEXTAREA,t,t===r?void 0:r)}flipDropdownVerticallyIfNeeded(){const e=super.flipDropdownVerticallyIfNeeded(),{isFlipped:t,spaceAbove:r,spaceBelow:n}=e;return this.limitDropdownIfNeeded(t?r:n),e}limitDropdownIfNeeded(e){const t=this.getDropdownHeight();if(t>e){let r=0,n=0,s=null;do{n=this.htEditor.stylesHandler.getDefaultRowHeight(),r+=n}while(r<e);s=r-n,this.isFlippedVertically&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-s+"px"),this.setDropdownHeight(r-n)}}updateDropdownDimensions(){const e=(0,a.getFractionalScalingCompensation)(),t=this.getTargetEditorWidth()+e,r=this.getTargetEditorHeight()+e;this.htEditor.updateSettings({width:t,height:r}),E(R,this,v).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}setDropdownHeight(e){this.htEditor.updateSettings({height:e}),E(R,this,v).call(this),this.htEditor.view._wt.wtTable.alignOverlaysWithTrimmingContainer()}highlightBestMatchingChoice(e){"number"==typeof e?this.htEditor.selectCell(e,0,void 0,void 0,void 0,!1):this.htEditor.deselectCell()}getTargetEditorHeight(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10)}const t=Math.min(this.cellProperties.visibleRows,this.strippedChoices.length);return Array.from({length:t},(e,t)=>t).reduce((e,t)=>e+(this.hot.stylesHandler.getDefaultRowHeight()+(0===t?1:0)),0)+e}getTargetEditorWidth(){let e=0;if(!this.hot.getCurrentThemeName()){const t=this.hot.rootWindow.getComputedStyle(this.htContainer.querySelector(".htCore"));e=parseInt(t.borderInlineStartWidth,10)+parseInt(t.borderInlineEndWidth,10)}return this.htEditor.getColWidth(0)+e}stripValueIfNeeded(e){return this.stripValuesIfNeeded([e])[0]}stripValuesIfNeeded(e){const{allowHtml:t}=this.cellProperties,r=(0,i.arrayMap)(e,e=>(0,l.stringify)(e));return(0,i.arrayMap)(r,e=>t?e:(0,h.stripTags)(e))}allowKeyEventPropagation(e){const t=this.htEditor.getSelectedRangeLast(),r=t?t.from.row:-1;let n=!1;return e===u.KEY_CODES.ARROW_DOWN&&r>0&&r<this.htEditor.countRows()-1&&(n=!0),e===u.KEY_CODES.ARROW_UP&&r>-1&&(n=!0),n}onBeforeKeyDown(e){if((0,u.isPrintableChar)(e.keyCode)||e.keyCode===u.KEY_CODES.BACKSPACE||e.keyCode===u.KEY_CODES.DELETE||e.keyCode===u.KEY_CODES.INSERT){let t=10;if(e.keyCode===u.KEY_CODES.C&&(e.ctrlKey||e.metaKey))return;this.isOpened()||(t+=10),this.htEditor&&this.hot._registerTimeout(()=>{this.queryChoices(this.TEXTAREA.value)},t)}}}function v(){this.htEditor.view.hasVerticalScroll()&&this.htEditor.updateSettings({width:this.getTargetEditorWidth()+(0,a.getScrollbarWidth)(this.hot.rootDocument)})}t.AutocompleteEditor=S},14499:(e,t,r)=>{"use strict";var n=r(25225),s=Set.prototype;e.exports={Set,add:n(s.add),has:n(s.has),remove:n(s.delete),proto:s}},14551:(e,t,r)=>{"use strict";t.__esModule=!0,t.getListWithInsertedItems=function(e,t,r){return[...e.slice(0,t),...r,...e.slice(t)]},t.getListWithRemovedItems=function(e,t){return(0,n.arrayFilter)(e,e=>!1===t.includes(e))};var n=r(39738)},14599:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(62325);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualRowResize=n.ManualRowResize},14795:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(11507);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualColumnResize=n.ManualColumnResize},15058:(e,t,r)=>{"use strict";var n=r(54090),s=r(6996),o=r(11044),i=r(86224),a=r(71840),l=i("IE_PROTO"),h=Object,u=h.prototype;e.exports=a?h.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof h?u:null}},15230:(e,t,r)=>{"use strict";var n=r(82314),s=r(96891);e.exports=!n(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)})},15247:(e,t,r)=>{"use strict";var n=r(76277),s=r(16209);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("isSubsetOf",function(e){return e})},{isSubsetOf:s})},15293:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(88476);t.OrderView=n.OrderView;var s=r(71873);t.SharedOrderView=s.SharedOrderView},15353:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=r(85180),o=r(72848),i=n(r(39143)),a=r(21794);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,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap;class C{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,t,r){var n=this;l(this,d,void 0),l(this,p,void 0),l(this,g,!1),l(this,f,null),l(this,m,void 0),l(this,E,void 0),l(this,w,!0),l(this,y,new a.EditorResizeObserver),u(d,this,e),u(p,this,r),u(g,this,t),u(m,this,this.createEditor()),u(E,this,h(m,this).style),h(y,this).setObservedElement(this.getInputElement()),h(y,this).addLocalHook("resize",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runLocalHooks("resize",...t)}),this.hide()}setPosition(e,t){h(E,this).left=`${e}px`,h(E,this).top=`${t}px`}setSize(e,t){if(e&&t){const r=this.getInputElement();r.style.width=`${e}px`,r.style.height=`${t}px`}}getSize(){return{width:(0,s.outerWidth)(this.getInputElement()),height:(0,s.outerHeight)(this.getInputElement())}}observeSize(){h(y,this).observe()}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){this.getInputElement().readOnly=e}show(){h(E,this).display="block",u(w,this,!1)}hide(){h(y,this).unobserve(),h(w,this)||(h(E,this).display="none"),u(w,this,!0)}isVisible(){return"block"===h(E,this).display}setValue(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"";this.getInputElement().value=e}getValue(){return this.getInputElement().value}isFocused(){return h(d,this).activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=h(d,this).createElement("div"),t=h(d,this).createElement("textarea");return e.style.display="none",u(f,this,h(d,this).createElement("div")),h(f,this).setAttribute("dir",h(g,this)?"rtl":"ltr"),(0,s.addClass)(h(f,this),C.CLASS_EDITOR_CONTAINER),h(p,this).appendChild(h(f,this)),(0,s.addClass)(e,C.CLASS_EDITOR),(0,s.addClass)(t,C.CLASS_INPUT),t.setAttribute("data-hot-input",!0),e.appendChild(t),h(f,this).appendChild(e),e}getInputElement(){return h(m,this).querySelector(`.${C.CLASS_INPUT}`)}getEditorElement(){return h(m,this)}destroy(){const e=h(f,this)?h(f,this).parentNode:null;h(m,this).parentNode.removeChild(h(m,this)),u(m,this,null),u(E,this,null),h(y,this).destroy(),e&&e.removeChild(h(f,this))}}(0,o.mixin)(C,i.default);t.default=C},15435:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},15611:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(49472),s=r(23661);class o extends n.IndexMap{insert(e,t){this.indexedValues=(0,s.getListWithInsertedItems)(this.indexedValues,e,t,this.initValueOrFn),super.insert(e,t)}remove(e){this.indexedValues=(0,s.getListWithRemovedItems)(this.indexedValues,e),super.remove(e)}}t.PhysicalIndexToValueMap=o},15852:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionLeft",callback(e){const{selection:t}=e;t.markSource("keyboard"),t.transformStart(0,-1*e.getDirectionFactor()),t.markEndSource()}}},15886:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(39738),i=r(28222),a=r(51278),l=r(54536),h=r(28275),u=r(24191),c=r(98846);const d=l.toSingleLine`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
232
232
  Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
233
- learn about the migration path.`;class p{constructor(){(0,s.default)(this,"globalBucket",new c.HooksBucket)}static getSingleton(){return g}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,o.arrayEach)(t,t=>this.add(e,t,r)):(u.REMOVED_HOOKS.has(e)&&(0,a.warn)((0,i.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,o.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,o.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,o,i,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,o,i,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,o,i,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=p;const g=new p;t.default=p},15946:(e,t,r)=>{"use strict";var n,s,o,i,a=r(88005),l=r(13150),h=r(41829),u=r(6996),c=r(54090),d=r(82314),p=r(3034),g=r(67817),f=r(4158),m=r(39981),E=r(86867),w=r(90380),y=a.setImmediate,C=a.clearImmediate,R=a.process,S=a.Dispatch,v=a.Function,T=a.MessageChannel,N=a.String,M=0,_={},b="onreadystatechange";d(function(){n=a.location});var A=function(e){if(c(_,e)){var t=_[e];delete _[e],t()}},I=function(e){return function(){A(e)}},O=function(e){A(e.data)},x=function(e){a.postMessage(N(e),n.protocol+"//"+n.host)};y&&C||(y=function(e){m(arguments.length,1);var t=u(e)?e:v(e),r=g(arguments,1);return _[++M]=function(){l(t,void 0,r)},s(M),M},C=function(e){delete _[e]},w?s=function(e){R.nextTick(I(e))}:S&&S.now?s=function(e){S.now(I(e))}:T&&!E?(i=(o=new T).port2,o.port1.onmessage=O,s=h(i.postMessage,i)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(x)?(s=x,a.addEventListener("message",O,!1)):s=b in f("script")?function(e){p.appendChild(f("script"))[b]=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:C}},16178:(e,t,r)=>{"use strict";r(9797)},16209:(e,t,r)=>{"use strict";var n=r(21313),s=r(30845),o=r(98304),i=r(18622);e.exports=function(e){var t=n(this),r=i(e);return!(s(t)>r.size)&&!1!==o(t,function(e){if(!r.includes(e))return!1},!0)}},16229:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(7307);var s=n(r(53726)),o=r(74222);class i{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,o.assert)(()=>(0,o.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let r;if(t>=0)r=this.data[t],void 0===r&&(r=this.valueFactory(e),this.data[t]=r);else if(r=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=r,this.index[e]=t}else this.data.push(r),this.index[e]=this.data.length-1;return r}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,o.assert)(()=>(0,o.isUnsignedNumber)(e)||(0,o.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const r=[],n=this.data.length;for(let e=0;e<t;e++)r.push(n+e),this.data.push(void 0);const s=(0,o.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...r,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,o.assert)(()=>(0,o.isUnsignedNumber)(e)||(0,o.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const r=this.index.splice((0,o.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<r.length;e++){const t=r[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const r=this._getKeyByStorageIndex(t);-1!==r&&void 0!==this.data[t]&&e.push([r,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const r=e[t];return t+=1,{value:r,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=i},16329:(e,t,r)=>{"use strict";var n=r(77976);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},16425:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(69326);var s=n(r(53726));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 i(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 a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),o(this,a,(e,t,r)=>{if(!r)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:r,target:n,onChange:s}=e,o="string"==typeof n,l=o?n:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),o&&this.installPropWatcher(n,h,s)):r&&(this.installPropWatcher(t,h,i(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,r){const n=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const o=!n.usageTracker.has(e);n.usageTracker.add(e),r.call(n,e,s,o),this[t]=s},enumerable:!0,configurable:!0})}}},16426:()=>{},16438:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(69326);var s=n(r(53726)),o=r(63781),i=r(93049);class a extends o.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,i.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},16445:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(86943);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dropdownRenderer=n.dropdownRenderer},16673:(e,t,r)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,n.arrayEach)(e,e=>{e.walkDown(e=>{const r=e.data,{origColspan:n,columnIndex:i,headerLevel:a,crossHiddenColumns:l}=r,h=function(e,t){let r;Array.isArray(e[t])?r=e[t]:(r=[],e[t]=r);return r}(t,a);let u=!1;for(let e=i;e<i+n;e++){if(l.includes(e)||u)h.push((0,s.createPlaceholderHeaderSettings)(r));else{const e=o(r);e.isRoot=!0,h.push(e),u=!0}}})}),t},r(85639);var n=r(39738),s=r(14046);function o(e){const{crossHiddenColumns:t,...r}=(0,s.createDefaultHeaderSettings)(e);return r}},16779:()=>{},16914:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedLast();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.getSelectedRangeLast(),n=Math.max(Math.min(t.col,r.col),0),s=Math.max(t.col,r.col),o=[];for(let e=n;e<=s;e+=1)o.push(e);e.hideColumns(o);const i=o[o.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(i,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},r(85639);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},17061:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72848);const s={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=s},17112:(e,t,r)=>{"use strict";var n=r(39157),s=r(72119),o=TypeError,i=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},17464:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(73741),r(82141);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(90530);const o=t.OPERATION_ID="disjunction",i=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(o,i,a)},17508:()=>{},17734:(e,t,r)=>{"use strict";var n=r(97610),s=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new s("Incorrect invocation")}},17971:(e,t,r)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=o;var n=r(25772);const s=t.RENDERER_TYPE="handsontable";function o(e,t,r,s,o,i,a){n.autocompleteRenderer.apply(this,[e,t,r,s,o,i,a])}o.RENDERER_TYPE=s},17975:(e,t)=>{"use strict";t.__esModule=!0;t.default=class{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}},17996:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new o.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=r(93629),o=n(r(13301))},18103:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(7307);var s=n(r(53726)),o=r(85180),i=r(10100),a=r(39738),l=r(82564),h=r(72848),u=m(r(55787)),c=r(26278),d=m(r(26159)),p=r(53893),g=r(74334),f=r(32949);function m(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i})(e,t)}function E(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 y=new WeakSet;class C extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),E(this,y),(0,s.default)(this,"name",""),(0,s.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new g.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new p.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new p.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>w(y,this,R).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>w(y,this,S).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(u.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,a.arrayEach)(e.args,(e,r)=>{if(r>t.inputsCount-1)return!1;const n=this.getInputElement(r);n.setValue(e),n[t.inputsCount>r?"show":"hide"](),r||this.hot._registerTimeout(()=>n.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,f.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(r,n)=>{e.inputsCount>n&&t.push(r.getValue())}),{command:e,args:t}}updateState(e,t){const r=e?(0,f.getConditionDescriptor)(e.name):(0,f.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:r,args:e?e.args:[]}),e||(0,a.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof g.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof p.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,r,n,s,i)=>{(0,o.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,o.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,o.addClass)(l,"htFiltersMenuLabel"),l.textContent=i,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,f.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:r}=e;t=(0,d.default)(this.hot.getDataType(0,r,this.hot.countRows(),r))}(0,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function R(e){(0,a.arrayEach)(this.getInputElements(),(t,r)=>{t[e.inputsCount>r?"show":"hide"](),0===r&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function S(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,i.stopImmediatePropagation)(e))}t.ConditionComponent=C},18229:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(68627);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.NestedRows=n.NestedRows},18360:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let o,i=0,a=0;for(;e.length>0&&o!==e.length;)if(o=e.length,e.match(s))e=e.replace(s,""),i+=1,t[a][i]="";else if(e.match(r))e=e.replace(r,""),i=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][i]=r}return t},t.stringify=function(e){let t,r,n,s,o,i="";for(t=0,r=e.length;t<r;t+=1){for(s=e[t].length,n=0;n<s;n+=1)n>0&&(i+="\t"),o=e[t][n],"string"==typeof o?o.indexOf("\n")>-1?i+=`"${o.replace(/"/g,'""')}"`:i+=o:i+=null==o?"":o;t!==r-1&&(i+="\n")}return i};const r=/^(\r\n|\n\r|\r|\n)/,n=/^[^\t\r\n]+/,s=/^\t/},18421:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(45098),i=r(72848),a=r(35782),l=r(39738),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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),u=r(85799),c=r(23622),d=r(11072);function p(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")}const f=t.PLUGIN_KEY="customBorders",m=t.PLUGIN_PRIORITY=90;var E=new WeakSet;class w extends o.BasePlugin{constructor(){super(...arguments),p(this,E),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return f}static get PLUGIN_PRIORITY(){return m}isEnabled(){return!!this.hot.getSettings()[f]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>g(E,this,y).call(this,e)),this.addHook("init",()=>g(E,this,C).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let r=["top","bottom","start","end"],n=null;t&&(this.checkSettingsCohesion([t]),r=Object.keys(t),n=(0,c.normalizeBorder)(t));const s=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,l.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,l.arrayEach)(r,r=>{this.prepareBorderFromCustomAdded(e,t,n,(0,c.toInlinePropName)(r))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),r=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),n=[];return(0,l.arrayEach)(e,e=>{r(e).forAll((e,t)=>{(0,l.arrayEach)(this.savedBorders,r=>{r.row===e&&r.col===t&&n.push((0,c.denormalizeBorder)(r))})})}),n}clearBorders(e){e?this.setBorders(e):((0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const r=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,r,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:r})}prepareBorderFromCustomAdded(e,t,r,n){const s=this.hot.countRows(),o=this.hot.countCols();if(e>=s||t>=o)return;let i=(0,c.createEmptyBorders)(e,t);r&&(i=(0,c.extendDefaultBorder)(i,r),(0,l.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(i.id===e.settings.id)return Object.assign(e.settings,r),i.id=e.settings.id,i.top=e.settings.top,i.bottom=e.settings.bottom,i.start=e.settings.start,i.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,c.denormalizeBorder)(i)),this.insertBorderIntoSettings(i,n)}prepareBorderFromCustomAddedRange(e,t){const r=Math.min(e.to.row,this.hot.countRows()-1),n=Math.min(e.to.col,this.hot.countCols()-1);(0,a.rangeEach)(e.from.row,r,r=>{(0,a.rangeEach)(e.from.col,n,n=>{const s=(0,c.createEmptyBorders)(r,n);let o=0;r===e.from.row&&(0,i.hasOwnProperty)(t,"top")&&(o+=1,s.top=t.top),r===e.to.row&&(0,i.hasOwnProperty)(t,"bottom")&&(o+=1,s.bottom=t.bottom),n===e.from.col&&(0,i.hasOwnProperty)(t,"start")&&(o+=1,s.start=t.start),n===e.to.col&&(0,i.hasOwnProperty)(t,"end")&&(o+=1,s.end=t.end),o>0&&(this.hot.setCellMeta(r,n,"borders",(0,c.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const r=(0,c.createId)(e,t);this.spliceBorder(r),this.clearBordersFromSelectionSettings(r),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,r,n){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,c.normalizeBorder)(s):(0,c.createEmptyBorders)(e,t),n){s[r]=(0,c.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,r,n)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,c.denormalizeBorder)(s))}}else{s[r]=(0,c.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,r,n)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,c.denormalizeBorder)(s))}}prepareBorder(e,t,r){(0,l.arrayEach)(e,e=>{let{start:n,end:s}=e;if(n.row===s.row&&n.col===s.col)"noBorders"===t?this.removeAllBorders(n.row,n.col):this.setBorder(n.row,n.col,t,r);else switch(t){case"noBorders":(0,a.rangeEach)(n.col,s.col,e=>{(0,a.rangeEach)(n.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,a.rangeEach)(n.col,s.col,e=>{this.setBorder(n.row,e,t,r)});break;case"bottom":(0,a.rangeEach)(n.col,s.col,e=>{this.setBorder(s.row,e,t,r)});break;case"start":(0,a.rangeEach)(n.row,s.row,e=>{this.setBorder(e,n.col,t,r)});break;case"end":(0,a.rangeEach)(n.row,s.row,e=>{this.setBorder(e,s.col,t,r)})}})}createCustomBorders(e){(0,l.arrayEach)(e,e=>{const t=(0,c.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:r,start:n,end:s}=e,o=[t,r,n,s];return(0,l.arrayReduce)(o,(e,t)=>{let r=e;return t&&t.hide&&(r+=1),r},0)}clearBordersFromSelectionSettings(e){const t=(0,l.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,l.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,l.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,l.arrayEach)(this.savedBorders,(r,n)=>{if(e.id===r.id)return this.savedBorders[n]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,r){let n=!1;return(0,l.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,l.arrayEach)(e,e=>{e.toggleHiddenClass(t,r)}),n=!0,!1}}),n}checkCustomSelections(e,t,r){const n=this.countHide(e);let s=!1;return 4===n?(this.removeAllBorders(e.row,e.col),s=!0):(0,l.arrayEach)(this.hot.selection.highlight.customSelections,n=>{if(e.id===n.settings.id){if(n.visualCellRange=t,n.commit(),r){const t=this.hot.view._wt.selectionManager.getBorderInstances(n);(0,l.arrayEach)(t,t=>{t.changeBorderStyle(r,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[f];if(Array.isArray(e)){const t=(0,i.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,c.hasLeftRightTypeOptions)(e),r=(0,c.hasStartEndTypeOptions)(e);if(t&&r)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function y(e){this.hot.getSettings()[f]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,u.top)(this),(0,u.right)(this),(0,u.bottom)(this),(0,u.left)(this),(0,u.noBorders)(this)]}})}function C(){this.changeBorderSettings()}t.CustomBorders=w},18472:(e,t,r)=>{"use strict";var n=r(76277),s=r(52784);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},18528:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t._injectProductInfo=function(e,t){const r=!a(e),n="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),o="0.0.0-next-479c0d0-20250707";let i,y="invalid",C="invalid";const R=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=p(e||""));if(r||n||R)if(R){const t=(0,s.default)("29/04/2025","DD/MM/YYYY"),r=Math.floor(t.toDate().getTime()/864e5),n=g(e);i=(0,s.default)(864e5*(n+1),"x").format("MMMM DD, YYYY"),r>n?(y="expired",C="expired"):(y="valid",C="valid")}else n?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){E[y]({keyValidityDate:i,hotVersion:o})&&console["non_commercial"===y?"info":"warn"](E[y]({keyValidityDate:i,hotVersion:o})),m=!0}if("valid"!==C&&t){if(w[C]({keyValidityDate:i,hotVersion:o})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[C]({keyValidityDate:i,hotVersion:o}),t.appendChild(e)}}},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=i,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)),o=r(54536);function i(e){return void 0===e}function a(e){return null===e||""===e||i(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,p=e=>`${e}`.replace(/\-/g,""),g=e=>h(c(p(e),h("12"),d("F")))/(h(c(p(e),d("B"),~~![][l]))||9),f=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let m=!1;const E={invalid:()=>o.toSingleLine`
233
+ learn about the migration path.`;class p{constructor(){(0,s.default)(this,"globalBucket",new c.HooksBucket)}static getSingleton(){return g}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,o.arrayEach)(t,t=>this.add(e,t,r)):(u.REMOVED_HOOKS.has(e)&&(0,a.warn)((0,i.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,o.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,o.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,o,i,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,o,i,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,o,i,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=p;const g=new p;t.default=p},15946:(e,t,r)=>{"use strict";var n,s,o,i,a=r(88005),l=r(13150),h=r(41829),u=r(6996),c=r(54090),d=r(82314),p=r(3034),g=r(67817),f=r(4158),m=r(39981),E=r(86867),w=r(90380),y=a.setImmediate,C=a.clearImmediate,R=a.process,S=a.Dispatch,v=a.Function,T=a.MessageChannel,N=a.String,M=0,_={},b="onreadystatechange";d(function(){n=a.location});var A=function(e){if(c(_,e)){var t=_[e];delete _[e],t()}},I=function(e){return function(){A(e)}},O=function(e){A(e.data)},x=function(e){a.postMessage(N(e),n.protocol+"//"+n.host)};y&&C||(y=function(e){m(arguments.length,1);var t=u(e)?e:v(e),r=g(arguments,1);return _[++M]=function(){l(t,void 0,r)},s(M),M},C=function(e){delete _[e]},w?s=function(e){R.nextTick(I(e))}:S&&S.now?s=function(e){S.now(I(e))}:T&&!E?(i=(o=new T).port2,o.port1.onmessage=O,s=h(i.postMessage,i)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(x)?(s=x,a.addEventListener("message",O,!1)):s=b in f("script")?function(e){p.appendChild(f("script"))[b]=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:C}},16178:(e,t,r)=>{"use strict";r(9797)},16209:(e,t,r)=>{"use strict";var n=r(21313),s=r(30845),o=r(98304),i=r(18622);e.exports=function(e){var t=n(this),r=i(e);return!(s(t)>r.size)&&!1!==o(t,function(e){if(!r.includes(e))return!1},!0)}},16229:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(7307);var s=n(r(53726)),o=r(74222);class i{constructor(e){(0,s.default)(this,"valueFactory",void 0),(0,s.default)(this,"data",[]),(0,s.default)(this,"index",[]),(0,s.default)(this,"holes",new Set),this.valueFactory=e}obtain(e){(0,o.assert)(()=>(0,o.isUnsignedNumber)(e),"Expecting an unsigned number.");const t=this._getStorageIndexByKey(e);let r;if(t>=0)r=this.data[t],void 0===r&&(r=this.valueFactory(e),this.data[t]=r);else if(r=this.valueFactory(e),this.holes.size>0){const t=this.holes.values().next().value;this.holes.delete(t),this.data[t]=r,this.index[e]=t}else this.data.push(r),this.index[e]=this.data.length-1;return r}insert(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,o.assert)(()=>(0,o.isUnsignedNumber)(e)||(0,o.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const r=[],n=this.data.length;for(let e=0;e<t;e++)r.push(n+e),this.data.push(void 0);const s=(0,o.isNullish)(e)?this.index.length:e;this.index=[...this.index.slice(0,s),...r,...this.index.slice(s)]}remove(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;(0,o.assert)(()=>(0,o.isUnsignedNumber)(e)||(0,o.isNullish)(e),"Expecting an unsigned number or null/undefined argument.");const r=this.index.splice((0,o.isNullish)(e)?this.index.length-t:e,t);for(let e=0;e<r.length;e++){const t=r[e];"number"==typeof t&&this.holes.add(t)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,t)=>void 0!==e&&!this.holes.has(t))[Symbol.iterator]()}entries(){const e=[];for(let t=0;t<this.data.length;t++){const r=this._getKeyByStorageIndex(t);-1!==r&&void 0!==this.data[t]&&e.push([r,this.data[t]])}let t=0;return{next:()=>{if(t<e.length){const r=e[t];return t+=1,{value:r,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}t.default=i},16329:(e,t,r)=>{"use strict";var n=r(77976);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},16425:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(69326);var s=n(r(53726));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 i(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 a=new WeakMap;t.ExtendMetaPropertiesMod=class{constructor(e){(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"usageTracker",new Set),(0,s.default)(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(e){if(this.metaManager.hot.isRtl()&&"fixedColumnsLeft"===e)throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),o(this,a,(e,t,r)=>{if(!r)throw new Error(`The \`${e}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,t)=>{const{initOnly:r,target:n,onChange:s}=e,o="string"==typeof n,l=o?n:t,h=`_${l}`;this.metaManager.globalMeta.meta[h]=this.metaManager.globalMeta.meta[l],s?(this.installPropWatcher(t,h,s),o&&this.installPropWatcher(n,h,s)):r&&(this.installPropWatcher(t,h,i(a,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(t))})}installPropWatcher(e,t,r){const n=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[t]},set(s){const o=!n.usageTracker.has(e);n.usageTracker.add(e),r.call(n,e,s,o),this[t]=s},enumerable:!0,configurable:!0})}}},16426:()=>{},16438:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(69326);var s=n(r(53726)),o=r(63781),i=r(93049);class a extends o.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,i.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},16445:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(86943);t.RENDERER_TYPE=n.RENDERER_TYPE,t.dropdownRenderer=n.dropdownRenderer},16673:(e,t,r)=>{"use strict";t.__esModule=!0,t.generateMatrix=function(e){const t=[];return(0,n.arrayEach)(e,e=>{e.walkDown(e=>{const r=e.data,{origColspan:n,columnIndex:i,headerLevel:a,crossHiddenColumns:l}=r,h=function(e,t){let r;Array.isArray(e[t])?r=e[t]:(r=[],e[t]=r);return r}(t,a);let u=!1;for(let e=i;e<i+n;e++){if(l.includes(e)||u)h.push((0,s.createPlaceholderHeaderSettings)(r));else{const e=o(r);e.isRoot=!0,h.push(e),u=!0}}})}),t},r(85639);var n=r(39738),s=r(14046);function o(e){const{crossHiddenColumns:t,...r}=(0,s.createDefaultHeaderSettings)(e);return r}},16779:()=>{},16914:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_columns_hide",name(){const e=this.getSelectedLast();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.getSelectedRangeLast(),n=Math.max(Math.min(t.col,r.col),0),s=Math.max(t.col,r.col),o=[];for(let e=n;e<=s;e+=1)o.push(e);e.hideColumns(o);const i=o[o.length-1],a=this.columnIndexMapper.getNearestNotHiddenIndex(i,1,!0);Number.isInteger(a)&&a>=0?this.selectColumns(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByColumnHeader()||this.selection.isSelectedByCorner())}}},r(85639);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},17061:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72848);const s={getFirstRenderedRow(){return 0===this.getRenderedRowsCount()?-1:0},getFirstVisibleRow(){return this.getFirstRenderedRow()},getFirstPartiallyVisibleRow(){return this.getFirstRenderedRow()},getLastRenderedRow(){return this.getRenderedRowsCount()-1},getLastVisibleRow(){return this.getLastRenderedRow()},getLastPartiallyVisibleRow(){return this.getLastRenderedRow()},getRenderedRowsCount(){return Math.min(this.wtSettings.getSetting("totalRows"),this.wtSettings.getSetting("fixedRowsTop"))},getVisibleRowsCount(){return this.getRenderedRowsCount()},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","stickyRowsTop",{writable:!1,enumerable:!1});t.default=s},17112:(e,t,r)=>{"use strict";var n=r(39157),s=r(72119),o=TypeError,i=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(s(e)&&!i(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},17464:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(73741),r(82141);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(90530);const o=t.OPERATION_ID="disjunction",i=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){return e.some(e=>e.func(t))}(0,s.registerOperation)(o,i,a)},17508:()=>{},17734:(e,t,r)=>{"use strict";var n=r(97610),s=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new s("Incorrect invocation")}},17971:(e,t,r)=>{"use strict";t.__esModule=!0,t.handsontableRenderer=o;var n=r(25772);const s=t.RENDERER_TYPE="handsontable";function o(e,t,r,s,o,i,a){n.autocompleteRenderer.apply(this,[e,t,r,s,o,i,a])}o.RENDERER_TYPE=s},17975:(e,t)=>{"use strict";t.__esModule=!0;t.default=class{constructor(){this.data={}}setData(e,t){this.data[e]=t}getData(e){return this.data[e]||void 0}}},17996:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.createHighlight=function(e){let{...t}=e;return new o.default({className:"highlight",...t,selectionType:s.HIGHLIGHT_AREA_TYPE})};var s=r(93629),o=n(r(13301))},18103:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(7307);var s=n(r(53726)),o=r(85180),i=r(10100),a=r(39738),l=r(82564),h=r(72848),u=m(r(55787)),c=r(26278),d=m(r(26159)),p=r(53893),g=r(74334),f=r(32949);function m(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(m=function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i})(e,t)}function E(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 y=new WeakSet;class C extends c.BaseComponent{constructor(e,t){super(e,{id:t.id,stateless:!1}),E(this,y),(0,s.default)(this,"name",""),(0,s.default)(this,"addSeparator",!1),this.name=t.name,this.addSeparator=t.addSeparator,this.elements.push(new g.SelectUI(this.hot,{menuContainer:t.menuContainer})),this.elements.push(new p.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_VALUE})),this.elements.push(new p.InputUI(this.hot,{placeholder:u.FILTERS_BUTTONS_PLACEHOLDER_SECOND_VALUE})),this.registerHooks()}registerHooks(){this.getSelectElement().addLocalHook("select",e=>w(y,this,R).call(this,e)).addLocalHook("afterClose",()=>this.runLocalHooks("afterClose")).addLocalHook("tabKeydown",e=>this.runLocalHooks("selectTabKeydown",e)),(0,a.arrayEach)(this.getInputElements(),e=>{e.addLocalHook("keydown",e=>w(y,this,S).call(this,e))})}setState(e){if(this.reset(),!e)return;const t=(0,h.clone)(e.command);t.name.startsWith(u.FILTERS_CONDITIONS_NAMESPACE)&&(t.name=this.hot.getTranslatedPhrase(t.name)),this.getSelectElement().setValue(t),(0,a.arrayEach)(e.args,(e,r)=>{if(r>t.inputsCount-1)return!1;const n=this.getInputElement(r);n.setValue(e),n[t.inputsCount>r?"show":"hide"](),r||this.hot._registerTimeout(()=>n.focus(),10)})}getState(){const e=this.getSelectElement().getValue()||(0,f.getConditionDescriptor)(d.CONDITION_NONE),t=[];return(0,a.arrayEach)(this.getInputElements(),(r,n)=>{e.inputsCount>n&&t.push(r.getValue())}),{command:e,args:t}}updateState(e,t){const r=e?(0,f.getConditionDescriptor)(e.name):(0,f.getConditionDescriptor)(d.CONDITION_NONE);this.state.setValueAtIndex(t,{command:r,args:e?e.args:[]}),e||(0,a.arrayEach)(this.getInputElements(),e=>e.setValue(null))}getSelectElement(){return this.elements.filter(e=>e instanceof g.SelectUI)[0]}getInputElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]}getInputElements(){return this.elements.filter(e=>e instanceof p.InputUI)}getMenuItemDescriptor(){return{key:this.id,name:this.name,isCommand:!1,disableSelection:!0,hidden:()=>this.isHidden(),renderer:(e,t,r,n,s,i)=>{(0,o.addClass)(t.parentNode,"htFiltersMenuCondition"),this.addSeparator&&(0,o.addClass)(t.parentNode,"border");const l=this.hot.rootDocument.createElement("div");return(0,o.addClass)(l,"htFiltersMenuLabel"),l.textContent=i,t.appendChild(l),t.parentElement.hasAttribute("ghost-table")||(0,a.arrayEach)(this.elements,e=>t.appendChild(e.element)),t}}}reset(){const e=this.hot.getPlugin("filters").getSelectedColumn();let t=[(0,f.getConditionDescriptor)(d.CONDITION_NONE)];if(null!==e){const{visualIndex:r}=e;t=(0,d.default)(this.hot.getDataType(0,r,this.hot.countRows(),r))}(0,a.arrayEach)(this.getInputElements(),e=>e.hide()),this.getSelectElement().setItems(t),super.reset(),this.getSelectElement().setValue(t[0])}}function R(e){(0,a.arrayEach)(this.getInputElements(),(t,r)=>{t[e.inputsCount>r?"show":"hide"](),0===r&&this.hot._registerTimeout(()=>t.focus(),10)}),this.runLocalHooks("change",e)}function S(e){(0,l.isKey)(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),(0,i.stopImmediatePropagation)(e))}t.ConditionComponent=C},18229:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(68627);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.NestedRows=n.NestedRows},18360:(e,t)=>{"use strict";t.__esModule=!0,t.parse=function(e){const t=[[""]];if(0===e.length)return t;let o,i=0,a=0;for(;e.length>0&&o!==e.length;)if(o=e.length,e.match(s))e=e.replace(s,""),i+=1,t[a][i]="";else if(e.match(r))e=e.replace(r,""),i=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][i]=r}return t},t.stringify=function(e){let t,r,n,s,o,i="";for(t=0,r=e.length;t<r;t+=1){for(s=e[t].length,n=0;n<s;n+=1)n>0&&(i+="\t"),o=e[t][n],"string"==typeof o?o.indexOf("\n")>-1?i+=`"${o.replace(/"/g,'""')}"`:i+=o:i+=null==o?"":o;t!==r-1&&(i+="\n")}return i};const r=/^(\r\n|\n\r|\r|\n)/,n=/^[^\t\r\n]+/,s=/^\t/},18421:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(45098),i=r(72848),a=r(35782),l=r(39738),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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),u=r(85799),c=r(23622),d=r(11072);function p(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")}const f=t.PLUGIN_KEY="customBorders",m=t.PLUGIN_PRIORITY=90;var E=new WeakSet;class w extends o.BasePlugin{constructor(){super(...arguments),p(this,E),(0,s.default)(this,"savedBorders",[])}static get PLUGIN_KEY(){return f}static get PLUGIN_PRIORITY(){return m}isEnabled(){return!!this.hot.getSettings()[f]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>g(E,this,y).call(this,e)),this.addHook("init",()=>g(E,this,C).call(this)),super.enablePlugin())}disablePlugin(){this.hideBorders(),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.changeBorderSettings(),super.updatePlugin()}setBorders(e,t){let r=["top","bottom","start","end"],n=null;t&&(this.checkSettingsCohesion([t]),r=Object.keys(t),n=(0,c.normalizeBorder)(t));const s=(0,d.detectSelectionType)(e),o=(0,d.normalizeSelectionFactory)(s,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)});(0,l.arrayEach)(e,e=>{o(e).forAll((e,t)=>{(0,l.arrayEach)(r,r=>{this.prepareBorderFromCustomAdded(e,t,n,(0,c.toInlinePropName)(r))})})}),this.hot.view.render()}getBorders(e){if(!Array.isArray(e))return this.savedBorders;const t=(0,d.detectSelectionType)(e),r=(0,d.normalizeSelectionFactory)(t,{createCellCoords:this.hot._createCellCoords.bind(this.hot),createCellRange:this.hot._createCellRange.bind(this.hot)}),n=[];return(0,l.arrayEach)(e,e=>{r(e).forAll((e,t)=>{(0,l.arrayEach)(this.savedBorders,r=>{r.row===e&&r.col===t&&n.push((0,c.denormalizeBorder)(r))})})}),n}clearBorders(e){e?this.setBorders(e):((0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange(),this.hot.removeCellMeta(e.row,e.col,"borders")}),this.savedBorders.length=0)}insertBorderIntoSettings(e,t){this.checkSavedBorders(e)||this.savedBorders.push(e);const r=this.hot._createCellRange(this.hot._createCellCoords(e.row,e.col));this.checkCustomSelections(e,r,t)||this.hot.selection.highlight.addCustomSelection({border:e,visualCellRange:r})}prepareBorderFromCustomAdded(e,t,r,n){const s=this.hot.countRows(),o=this.hot.countCols();if(e>=s||t>=o)return;let i=(0,c.createEmptyBorders)(e,t);r&&(i=(0,c.extendDefaultBorder)(i,r),(0,l.arrayEach)(this.hot.selection.highlight.customSelections,e=>{if(i.id===e.settings.id)return Object.assign(e.settings,r),i.id=e.settings.id,i.top=e.settings.top,i.bottom=e.settings.bottom,i.start=e.settings.start,i.end=e.settings.end,!1})),this.hot.setCellMeta(e,t,"borders",(0,c.denormalizeBorder)(i)),this.insertBorderIntoSettings(i,n)}prepareBorderFromCustomAddedRange(e,t){const r=Math.min(e.to.row,this.hot.countRows()-1),n=Math.min(e.to.col,this.hot.countCols()-1);(0,a.rangeEach)(e.from.row,r,r=>{(0,a.rangeEach)(e.from.col,n,n=>{const s=(0,c.createEmptyBorders)(r,n);let o=0;r===e.from.row&&(0,i.hasOwnProperty)(t,"top")&&(o+=1,s.top=t.top),r===e.to.row&&(0,i.hasOwnProperty)(t,"bottom")&&(o+=1,s.bottom=t.bottom),n===e.from.col&&(0,i.hasOwnProperty)(t,"start")&&(o+=1,s.start=t.start),n===e.to.col&&(0,i.hasOwnProperty)(t,"end")&&(o+=1,s.end=t.end),o>0&&(this.hot.setCellMeta(r,n,"borders",(0,c.denormalizeBorder)(s)),this.insertBorderIntoSettings(s))})})}removeAllBorders(e,t){const r=(0,c.createId)(e,t);this.spliceBorder(r),this.clearBordersFromSelectionSettings(r),this.clearNullCellRange(),this.hot.removeCellMeta(e,t,"borders")}setBorder(e,t,r,n){let s=this.hot.getCellMeta(e,t).borders;if(s=s&&void 0!==s.border?(0,c.normalizeBorder)(s):(0,c.createEmptyBorders)(e,t),n){s[r]=(0,c.createSingleEmptyBorder)();if(4===this.countHide(s))this.removeAllBorders(e,t);else{this.checkCustomSelectionsFromContextMenu(s,r,n)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,c.denormalizeBorder)(s))}}else{s[r]=(0,c.createDefaultCustomBorder)();this.checkCustomSelectionsFromContextMenu(s,r,n)||this.insertBorderIntoSettings(s),this.hot.setCellMeta(e,t,"borders",(0,c.denormalizeBorder)(s))}}prepareBorder(e,t,r){(0,l.arrayEach)(e,e=>{let{start:n,end:s}=e;if(n.row===s.row&&n.col===s.col)"noBorders"===t?this.removeAllBorders(n.row,n.col):this.setBorder(n.row,n.col,t,r);else switch(t){case"noBorders":(0,a.rangeEach)(n.col,s.col,e=>{(0,a.rangeEach)(n.row,s.row,t=>{this.removeAllBorders(t,e)})});break;case"top":(0,a.rangeEach)(n.col,s.col,e=>{this.setBorder(n.row,e,t,r)});break;case"bottom":(0,a.rangeEach)(n.col,s.col,e=>{this.setBorder(s.row,e,t,r)});break;case"start":(0,a.rangeEach)(n.row,s.row,e=>{this.setBorder(e,n.col,t,r)});break;case"end":(0,a.rangeEach)(n.row,s.row,e=>{this.setBorder(e,s.col,t,r)})}})}createCustomBorders(e){(0,l.arrayEach)(e,e=>{const t=(0,c.normalizeBorder)(e);e.range?this.prepareBorderFromCustomAddedRange(e.range,t):this.prepareBorderFromCustomAdded(e.row,e.col,t)})}countHide(e){const{top:t,bottom:r,start:n,end:s}=e,o=[t,r,n,s];return(0,l.arrayReduce)(o,(e,t)=>{let r=e;return t&&t.hide&&(r+=1),r},0)}clearBordersFromSelectionSettings(e){const t=(0,l.arrayMap)(this.hot.selection.highlight.customSelections,e=>e.settings.id).indexOf(e);t>-1&&this.hot.selection.highlight.customSelections[t].clear()}clearNullCellRange(){(0,l.arrayEach)(this.hot.selection.highlight.customSelections,(e,t)=>{if(null===e.cellRange)return this.hot.selection.highlight.customSelections[t].destroy(),this.hot.selection.highlight.customSelections.splice(t,1),!1})}hideBorders(){(0,l.arrayEach)(this.savedBorders,e=>{this.clearBordersFromSelectionSettings(e.id),this.clearNullCellRange()})}spliceBorder(e){const t=(0,l.arrayMap)(this.savedBorders,e=>e.id).indexOf(e);t>-1&&this.savedBorders.splice(t,1)}checkSavedBorders(e){let t=!1;return 4===this.countHide(e)?(this.spliceBorder(e.id),t=!0):(0,l.arrayEach)(this.savedBorders,(r,n)=>{if(e.id===r.id)return this.savedBorders[n]=e,t=!0,!1}),t}checkCustomSelectionsFromContextMenu(e,t,r){let n=!1;return(0,l.arrayEach)(this.hot.selection.highlight.customSelections,s=>{if(e.id===s.settings.id){const e=this.hot.view._wt.selectionManager.getBorderInstances(s);return(0,l.arrayEach)(e,e=>{e.toggleHiddenClass(t,r)}),n=!0,!1}}),n}checkCustomSelections(e,t,r){const n=this.countHide(e);let s=!1;return 4===n?(this.removeAllBorders(e.row,e.col),s=!0):(0,l.arrayEach)(this.hot.selection.highlight.customSelections,n=>{if(e.id===n.settings.id){if(n.visualCellRange=t,n.commit(),r){const t=this.hot.view._wt.selectionManager.getBorderInstances(n);(0,l.arrayEach)(t,t=>{t.changeBorderStyle(r,e)})}return s=!0,!1}}),s}changeBorderSettings(){const e=this.hot.getSettings()[f];if(Array.isArray(e)){const t=(0,i.deepClone)(e);this.checkSettingsCohesion(t),t.length||(this.savedBorders=t),this.createCustomBorders(t)}else void 0!==e&&this.createCustomBorders(this.savedBorders)}checkSettingsCohesion(e){const t=(0,c.hasLeftRightTypeOptions)(e),r=(0,c.hasStartEndTypeOptions)(e);if(t&&r)throw new Error('The "left"/"right" and "start"/"end" options should not be used together. Please use only the option "start"/"end".');if(this.hot.isRtl()&&t)throw new Error('The "left"/"right" properties are not supported for RTL. Please use option "start"/"end".')}destroy(){super.destroy()}}function y(e){this.hot.getSettings()[f]&&e.items.push({name:"---------"},{key:"borders",name(){return this.getTranslatedPhrase(h.CONTEXTMENU_ITEMS_BORDERS)},disabled(){const e=this.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||this.selection.isSelectedByCorner())},submenu:{items:[(0,u.top)(this),(0,u.right)(this),(0,u.bottom)(this),(0,u.left)(this),(0,u.noBorders)(this)]}})}function C(){this.changeBorderSettings()}t.CustomBorders=w},18472:(e,t,r)=>{"use strict";var n=r(76277),s=r(52784);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("isSupersetOf",function(e){return!e})},{isSupersetOf:s})},18528:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t._injectProductInfo=function(e,t){const r=!a(e),n="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),o="0.0.0-next-9047f21-20250708";let i,y="invalid",C="invalid";const R=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=p(e||""));if(r||n||R)if(R){const t=(0,s.default)("29/04/2025","DD/MM/YYYY"),r=Math.floor(t.toDate().getTime()/864e5),n=g(e);i=(0,s.default)(864e5*(n+1),"x").format("MMMM DD, YYYY"),r>n?(y="expired",C="expired"):(y="valid",C="valid")}else n?(y="non_commercial",C="valid"):(y="invalid",C="invalid");else y="missing",C="missing";f()&&(y="valid",C="valid");if(!m&&"valid"!==y){E[y]({keyValidityDate:i,hotVersion:o})&&console["non_commercial"===y?"info":"warn"](E[y]({keyValidityDate:i,hotVersion:o})),m=!0}if("valid"!==C&&t){if(w[C]({keyValidityDate:i,hotVersion:o})){const e=document.createElement("div");e.className="handsontable hot-display-license-info",e.innerHTML=w[C]({keyValidityDate:i,hotVersion:o}),t.appendChild(e)}}},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=i,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)),o=r(54536);function i(e){return void 0===e}function a(e){return null===e||""===e||i(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,p=e=>`${e}`.replace(/\-/g,""),g=e=>h(c(p(e),h("12"),d("F")))/(h(c(p(e),d("B"),~~![][l]))||9),f=()=>"undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let m=!1;const E={invalid:()=>o.toSingleLine`
234
234
  The license key for Handsontable is invalid.\x20
235
235
  If you need any help, contact us at support@handsontable.com.`,expired:e=>{let{keyValidityDate:t,hotVersion:r}=e;return o.toSingleLine`
236
236
  The license key for Handsontable expired on ${t}, and is not valid for the installed\x20
@@ -288,7 +288,7 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
288
288
  filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
289
289
  Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
290
290
  use it consequently for a particular column).`)}else if((0,c.isUndefined)(u.operations[r]))throw new Error(i.toSingleLine`Unexpected operation named \`${r}\`. Possible ones are\x20
291
- \`disjunction\` and \`conjunction\`.`);const p=this.getConditions(e);0===p.length?this.filteringStates.setValueAtIndex(e,{operation:r,conditions:[{name:a,args:o,func:(0,l.getCondition)(a,o)}]},n):p.push({name:a,args:o,func:(0,l.getCondition)(a,o)}),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(p),this.filteringStates=null,this.clearLocalHooks()}}(0,o.mixin)(g,a.default);t.default=g},66129:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:o}=e.getSelectedRangeLast(),i=n.isHeader()&&t.isSelectedByColumnHeader();if(n.isCell()||i){const a=r.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),i&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(o.row,a)),t.markEndSource()}}}},66216:(e,t,r)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675)},66320:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.condition=l;var s=n(r(37539)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),i=r(32949);const a=t.CONDITION_NAME="date_today";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().startOf("day"),"d")}(0,i.registerCondition)(a,l,{name:o.FILTERS_CONDITIONS_TODAY,inputsCount:0})},66329:(e,t,r)=>{"use strict";var n=r(19895),s=r(19952);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},66385:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(97122),r(7678);var s=n(r(53726));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:o}=t;r>=n&&r+o<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:r,viewportHeight:n,horizontalScrollbarHeight:s,totalRows:o,needReverse:i,startPositions:a,rowHeight:l}=e;if(this.endRow===o-1&&i)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,o<this.endRow&&(this.endRow=o-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},66627:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(69326);var s=n(r(53726));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)}}},66825:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},66948:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},67176:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(60995);var s=n(r(87298)),o=r(56484),i=r(43528),a=r(15886),l=r(5755),h=r(60532),u=r(4675),c=r(58045),d=r(93629);function p(e,t){const r=new s.default(e,t||{},o.rootInstanceSymbol);return r.init(),r}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(u.TextCellType),p.editors={BaseEditor:c.BaseEditor},p.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,o.rootInstanceSymbol)},p.DefaultSettings=(0,i.metaSchemaFactory)(),p.hooks=a.Hooks.getSingleton(),p.CellCoords=d.CellCoords,p.CellRange=d.CellRange,p.packageName="handsontable",p.buildDate="07/07/2025 08:27:03",p.version="0.0.0-next-479c0d0-20250707",p.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=p},67261:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326);var s=n(r(53726)),o=r(85180),i=r(28275),a=n(r(37700)),l=n(r(37120)),h=r(37269),u=n(r(96681)),c=n(r(58343)),d=r(84378),p=r(42663);t.default=class{constructor(e,t,r,n,i){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=n,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,o.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new c.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new u.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtSpreader",t&&t.insertBefore(r,e),r.appendChild(e)),r.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHider(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtHider",t&&t.insertBefore(r,e),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHolder(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.style.position="relative",r.className="wtHolder",this.isMaster&&(0,o.setAttribute)(r,[(0,p.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(r,e),this.isMaster&&(r.parentNode.className+="ht_master handsontable",r.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r.parentNode,[(0,p.A11Y_PRESENTATION)()])),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:r,wtViewport:n}=this.dataAccessObject,s=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),u=h.length,c=t.getSetting("columnHeaders"),p=c.length;let g=e;if(this.isMaster&&(r.beforeDraw(),this.holderOffset=(0,o.offset)(this.holder),g=n.createCalculators(g),u&&!t.getSetting("fixedColumnsStart"))){const e=r.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(g=!1)}if(g)this.isMaster&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,o.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,p),this.columnFilter=new a.default(t,i,u);let g=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),g=!0!==e.skipRender}g&&(this.tableRenderer.setHeaderContentRenderers(h,c),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||n.createVisibleCalculators(),r.refresh(!1),r.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(f=r.bottomOverlay.resetFixedPosition()||f),f=r.inlineStartOverlay.resetFixedPosition()||f,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(r.refreshAll(),r.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(g),this.isMaster&&r.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let r=this.wtSettings.getSetting("columnHeaders").length;const n=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,i,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;r;)r-=1,s=this.getColumnHeaderHeight(r),i=this.getColumnHeader(t,r),i&&(a=(0,o.innerHeight)(i),(!s&&n<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=a),Array.isArray(l)?null!==l[r]&&void 0!==l[r]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]<(l[r]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,r=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let n=0,s=e.getSetting("columnHeaders").length;n<s;n++)if(r[n]){if(!t[n]||0===t[n].childNodes.length)return;t[n].childNodes[0].style.height=`${r[n]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let r=0;r<e;r++){const e=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,r=e.col;const n=this.wtSettings.getSetting("onModifyGetCellCoords",t,r,!this.isMaster,"render");if(n&&Array.isArray(n)&&([t,r]=n),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(r))return-3;if(this.isColumnAfterRenderedColumns(r))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const o=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];if(!o&&r>=0)throw new Error("TD or TH was expected to be rendered but is not");return o}getRow(e){let t=null,r=null;var n,s;e<0?(t=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceRowToVisibleColHeadedRow(e),r=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceToRendered(e),r=this.TBODY);return void 0!==t&&void 0!==r&&(!(r.childNodes.length<t+1)&&r.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.THEAD.childNodes[t];return null==r?void 0:r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],r=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const n=e.childNodes[r];n&&t.push(n)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const r=this.rowFilter.sourceToRendered(e),n=r<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):r,s=(r<0?this.THEAD:this.TBODY).childNodes[n];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],r=this.wtSettings.getSetting("rowHeaders").length;for(let n=0;n<r;n++){const r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==r?void 0:r.childNodes[n];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,o.closest)(t,["TD","TH"])),null===t)return null;const r=t.parentNode;if(!r)return null;const n=r.parentNode;let s=(0,o.index)(r),i=t.cellIndex;if((0,o.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===n.nodeName&&(s-=n.childNodes.length);else if((0,o.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-n.childNodes.length+s}else n===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,o.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?i=this.columnFilter.offsettedTH(i):this.columnFilter&&(i=this.columnFilter.visibleRowHeadedColumnToSourceColumn(i));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,i);return a&&Array.isArray(a)&&([s,i]=a),this.wot.createCellCoords(s,i)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),r=e*t.getDefaultRowHeight(),n=(0,o.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),i=s?o.outerHeight:o.innerHeight,a=s?0:1,l=s?1:0;let h,u,c,d,p;if(r!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),h=this.getRowHeight(c),d=this.getTrForRow(c),p=d.querySelector("th");const r=0===c?l:0;u=p?i(p):i(d)-a,(!h&&t.getDefaultRowHeight()<u-r||h<u)&&(s||(u+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=u)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,o.outerWidth)(this.TABLE)}getHeight(){return(0,o.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,o.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,o.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,o.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,i.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},67320:()=>{},67339:(e,t,r)=>{"use strict";var n,s=r(88005),o=r(13150),i=r(6996),a=r(60926),l=r(35172),h=r(67817),u=r(39981),c=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((n=s.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,s){var a=u(arguments.length,1)>r,l=i(n)?n:c(n),d=a?h(arguments,r):[],p=a?function(){o(l,this,d)}:l;return t?e(p,s):e(p)}:e}},67607:(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()}}},67772:()=>{},67817:(e,t,r)=>{"use strict";var n=r(25225);e.exports=n([].slice)},68089:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return a()},t.registerPhraseFormatter=t.register=l;var s=r(88248),o=n(r(66825));const{register:i,getValues:a}=(0,s.staticRegister)("phraseFormatters");function l(e,t){i(e,t)}l("pluralize",o.default)},68207:()=>{},68225:()=>{},68486:(e,t,r)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,r){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,r)},r(88443);var n=r(76651),s=r(78932),o=r(90086),i=r(40935);const a=new Map([["collapse",n.collapseNode],["expand",s.expandNode],["hide-column",o.hideColumn],["show-column",i.showColumn]])},68526:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(60591);var s=n(r(53726)),o=r(39738);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,o.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()}}},68627:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(69326),r(89663);var s=n(r(53726)),o=r(45098),i=n(r(81621)),a=n(r(83762)),l=n(r(55194)),h=n(r(39408)),u=r(51278),c=r(29363),d=r(10530),p=r(79104),g=n(r(65149));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 E(e,t){return e.get(y(e,t))}function w(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",R=t.PLUGIN_PRIORITY=300,S=C;var v=new WeakMap,T=new WeakMap,N=new WeakSet;class M extends o.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,v,!1),f(this,T,!1)}static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return R}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 i.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 g.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,A).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,_).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.getSelectedRangeLast(),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.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return r&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(r)&&-1===r.col&&r.row>=0},group:S,relativeToGroup:p.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}disableCoreAPIModifiers(){w(T,this,!0)}enableCoreAPIModifiers(){w(T,this,!1)}onModifyRowData(e){if(!E(T,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!E(T,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,r){return!(!E(T,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,r),!1)}destroy(){super.destroy()}}function _(e,t,r,n){return this.rowMoveController.onBeforeRowMove(e,t,r,n)}function b(e,t,r){this.collapsingUI.toggleState(e,t,r)}function A(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),w(v,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(()=>{w(v,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){E(v,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=M},68664:(e,t,r)=>{"use strict";var n=r(80221);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},68825:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(18360);t.parse=n.parse,t.stringify=n.stringify},68881:()=>{},68952:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(25901)),o=r(85180);class i extends s.default{build(){super.build(),(0,o.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=i},68999:(e,t,r)=>{"use strict";var n=r(82314);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},69102:()=>{},69243:(e,t,r)=>{"use strict";var n=r(25225),s=r(54090),o=r(71652),i=r(87530).indexOf,a=r(13884),l=n([].push);e.exports=function(e,t){var r,n=o(e),h=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&l(u,r);for(;t.length>h;)s(n,r=t[h++])&&(~i(u,r)||l(u,r));return u}},69262:(e,t,r)=>{"use strict";var n=r(19952),s=r(10260),o=r(15230),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):n(e,"stack",s(r,a)))}},69322:(e,t,r)=>{"use strict";var n=r(88005),s=r(82314),o=n.RegExp,i=!s(function(){var e=!0;try{o(".","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}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)s(a,i[a]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:i}},69326:(e,t,r)=>{"use strict";r(51511)},69373:()=>{},69498:(e,t,r)=>{"use strict";var n=r(88005);e.exports=function(e,t){var r=n.Iterator,s=r&&r.prototype,o=s&&s[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o}},69514:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,n.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const r=t[0],s=t.length;return(0,n.arrayMap)(e,e=>e>=r?e+s:e)},r(73741),r(7307);var n=r(39738)},69822:(e,t,r)=>{"use strict";var n=r(6996),s=r(19895),o=r(73254);e.exports=function(e,t,r){var i,a;return o&&n(i=t.constructor)&&i!==r&&s(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},69932:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(98578);t.AutocompleteCellType=n.AutocompleteCellType,t.CELL_TYPE=n.CELL_TYPE},70076:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(75881)),o=r(85180);class i extends s.default{build(){super.build(),(0,o.addClass)(this._element,"ht__manualRowMove--backlight")}}t.default=i},70139:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,r){const{rowIndexMapper:n,stylesHandler:s}=e,o=s.getDefaultRowHeight();let i=0;for(let l=t;l<t+r;l++){var a;if(!n.isHidden(l))i+=null!==(a=e.getRowHeight(l))&&void 0!==a?a:o,0!==l||s.isClassicTheme()||(i+=1)}return i}},70794:(e,t,r)=>{"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext("grid"),r=(0,o.createKeyboardShortcutCommandsPool)(e),i={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,n.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:s.GRID_GROUP};t.addShortcuts([{keys:[["F2"]],callback:e=>r.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>r.emptySelectedCells()}],{group:s.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,n.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>r.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>r.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>r.populateSelectedCellsData(),runOnlyIf:()=>{var t,r;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())&&(null===(r=e.getSelectedRangeLast())||void 0===r?void 0:r.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>r.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>r.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>r.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>r.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>r.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>r.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>r.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>r.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>r.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>r.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>r.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>r.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>r.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>r.scrollToFocusedCell()}],i)};var n=r(18528),s=r(9013),o=r(57575)},71219:()=>{},71337:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(73741),r(37782),r(69326),r(89663);var s=n(r(53726)),o=r(63781),i=r(72848);class a extends o.BaseAction{constructor(e){let{changes:t,selected:r,countCols:n,countRows:o}=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=o}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,i.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(r,null,null,"UndoRedo.undo");const n=e.countRows()-this.countRows;n>0&&e.alter("remove_row",null,n,"UndoRedo.undo");const s=e.countCols()-this.countCols;s>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,s,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const r=(0,i.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(r,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}t.DataChangeAction=a},71387:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781);class i extends o.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 i({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=i},71431:(e,t,r)=>{"use strict";t.__esModule=!0,t.htmlRenderer=i;var n=r(19993),s=r(85180);const o=t.RENDERER_TYPE="html";function i(e,t,r,o,i,a,l){n.baseRenderer.apply(this,[e,t,r,o,i,a,l]),(0,s.fastInnerHTML)(t,null==a?"":a,!1)}i.RENDERER_TYPE=o},71652:(e,t,r)=>{"use strict";var n=r(89176),s=r(77181);e.exports=function(e){return n(s(e))}},71840:(e,t,r)=>{"use strict";var n=r(82314);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},71873:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(88476);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},72048:(e,t,r)=>{"use strict";var n=r(76277),s=r(64976),o=r(65985),i=r(86713),a=r(77618),l=r(74218),h=r(63884),u=r(69498)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{i(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},72109:()=>{},72119:(e,t,r)=>{"use strict";var n=r(53385);e.exports=Array.isArray||function(e){return"Array"===n(e)}},72181:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:r,from:n,to:s}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(n.row,s.row,r),t.markEndSource()}}},72245:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(45098),i=r(39738),a=r(35782),l=r(51278),h=r(85180),u=r(10100),c=r(79104),d=r(42663);function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="collapsibleColumns",w=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",R=E,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var v=new WeakMap,T=new WeakSet;class N extends o.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=T),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.default)(this,"headerStateManager",null),function(e,t,r){p(e,t),t.set(e,r)}(this,v,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[E,...y]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,l.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),f(v,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,A).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,M).call(e,...r)}),this.addHook("beforeOnCellMouseDown",(e,t,r)=>m(T,this,_).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(v,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.getSelectedRangeLast().highlight,{collapsible:n,isCollapsed:s,columnIndex:o}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,r))&&void 0!==e?e:{};if(n)return s?this.expandSection({row:t,col:o}):this.collapseSection({row:t,col:o}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader())},group:R,relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(R)}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 o=t.childNodes[e],i=r.childNodes[e],l=n?n.childNodes[e]:null;(0,a.rangeEach)(0,o.childNodes.length-1,e=>{let t=o.childNodes[e].querySelector(`.${C}`);s(t),i&&i.childNodes[e]&&(t=i.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:o,isCollapsed:i}=t;if(!0===r&&n>1&&(i&&"expand"===e||!i&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:o}});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,i.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let n=r.length>0;(0,i.arrayEach)(r,e=>{var r;let{row:s,col:o}=e;const{collapsible:i,isCollapsed:a}=null!==(r=this.headerStateManager.getHeaderSettings(s,o))&&void 0!==r?r:{};if(!i||a&&"collapse"===t||!a&&"expand"===t)return n=!1,!1});const s=[],o=[];n&&(0,i.arrayEach)(r,e=>{let{row:r,col:n}=e;const{colspanCompensation:i,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,r,n);i>0&&(o.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,i.arrayUnique)([...a,...o]):"expand"===t&&(l=(0,i.arrayFilter)(a,e=>!o.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,n))return void(0,i.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,i.arrayEach)(o,e=>{g(v,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const u=this.getCollapsedColumns().length!==a.length,c=this.hot.getSelectedRangeLast();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&o.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.render(),this.hot.view.adjustElementsSize()}getCollapsedColumns(){return g(v,this).getHiddenIndexes()}destroy(){f(v,this,null),super.destroy()}}function M(e,t,r){var n;const{collapsible:s,origColspan:o,isCollapsed:i}=null!==(n=this.headerStateManager.getHeaderSettings(r,e))&&void 0!==n?n:{},a=s&&o>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"]),i?((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 _(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 A(e,t){t||this.updatePlugin()}t.CollapsibleColumns=N},72246:(e,t,r)=>{"use strict";t.__esModule=!0,t.numericValidator=o;var n=r(35782);const s=t.VALIDATOR_TYPE="numeric";function o(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):t(""!==r&&(0,n.isNumeric)(e))}o.VALIDATOR_TYPE=s},72477:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(85180),i=n(r(45713)),a=r(25978),l=r(46512),h=r(34347);class u extends a.Overlay{constructor(e,t,r,n){super(e,t,h.CLONE_TOP,r,n),(0,s.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}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("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,r=this.wtSettings.getSetting("preventOverflow");let n=0,s=!1;if(this.trimmingContainer!==t||r&&"vertical"===r)n=this.getScrollPosition(),(0,o.resetCssTransform)(e);else{const{wtTable:t}=this.wot,r=t.hider.getBoundingClientRect();s=Math.ceil(r.bottom)===e.offsetHeight,n=this.getOverlayOffset(),(0,o.setOverlayPosition)(e,"0px",`${n}px`)}const i=this.adjustHeaderBordersPosition(n,s);return this.adjustElementsSize(),i}setScrollPosition(e){const{rootWindow:t}=this.domBindings,r=this.mainTableScrollableElement;let n=!1;if(r===t&&e!==t.scrollY){const r=t.scrollY;t.scrollTo((0,o.getWindowScrollLeft)(t),e),n=r!==t.scrollY}else if(e!==r.scrollTop){const t=r.scrollTop;r.scrollTop=e,n=t!==r.scrollTop}return n}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const r=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let n=e,s=0;for(;n<t;){const e=this.wot.wtTable.getRowHeight(n);s+=void 0===e?r:e,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,s=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"horizontal"===i){let n=t.getWorkspaceWidth();t.hasVerticalScroll()&&(n-=(0,o.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollWidth),s.width=`${n}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,o.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),r=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+r}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:r,wtSettings:n}=this,s=(r.cloneSource?r.cloneSource:r).wtTable.holder,i=n.getSetting("columnHeaders"),a=0===n.getSetting("fixedRowsTop")&&i.length>0&&!(0,o.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,o.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=n.getSetting("fixedRowsBottom"),s=n.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=r.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return l+=h,(0,o.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,o.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();r=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),r>e&&(r=0)}return r}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:r}=this,n=this.wot.wtTable.holder.parentNode,s=r.getSetting("totalColumns"),i="horizontal"===r.getSetting("preventOverflow");s?(0,o.removeClass)(n,"emptyColumns"):(0,o.addClass)(n,"emptyColumns");let a=!1;if(!t&&!i){const t=r.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,i=r.getSetting("columnHeaders");if((s||0===t)&&i.length>0){const t=(0,o.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=r.getSetting("fixedRowsTop"),e||0===r.getSetting("totalRows")?((0,o.addClass)(n,"innerBorderTop"),a=!t):((0,o.removeClass)(n,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=u},72589:(e,t,r)=>{"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e),s={row:r.getComputedRowTarget(t),col:r.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:r}=s;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(13848)},72714:(e,t,r)=>{"use strict";var n=r(92754),s=r(721),o=r(9370).f,i=n("unscopables"),a=Array.prototype;void 0===a[i]&&o(a,i,{configurable:!0,value:s(null)}),e.exports=function(e){a[i][e]=!0}},72848:(e,t,r)=>{"use strict";t.__esModule=!0,t.clone=function(e){const t={};return i(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){i(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(!o(e))return 0;const t=function(e){let r=0;return o(e)?i(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={},i(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 i(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 i(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=o,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),i(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)||o(t))&&(t=s(t)),t})(t)),this[r]}},i=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,r,{get:n(r,t),set:i(r),configurable:!0})}})}),e},t.objectEach=i,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(88443),r(85639),r(60591),r(73741),r(69326);var n=r(39738);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(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)}},72993:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(4009);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TimeEditor=n.TimeEditor},73254:(e,t,r)=>{"use strict";var n=r(80121),s=r(19895),o=r(77181),i=r(94481);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},73269:(e,t)=>{"use strict";let r;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r)return r;r="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return r},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},73374:()=>{},73696:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(7307);var s=n(r(53726)),o=r(39738),i=r(72848),a=r(28275),l=n(r(39143)),h=n(r(66083)),u=n(r(27746)),c=r(43311);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 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")}var g=new WeakSet;class f{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];d(this,g),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),(0,s.default)(this,"changes",[]),(0,s.default)(this,"grouping",!1),(0,s.default)(this,"latestEditedColumnPosition",-1),(0,s.default)(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=r,this.conditionCollection.addLocalHook("beforeRemove",e=>p(g,this,m).call(this,e)),this.conditionCollection.addLocalHook("afterRemove",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("afterAdd",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("beforeClean",()=>p(g,this,E).call(this)),this.conditionCollection.addLocalHook("afterClean",()=>p(g,this,w).call(this))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,(0,o.arrayEach)(this.changes,e=>{this.updateStatesAtColumn(e)}),this.changes.length=0}updateStatesAtColumn(e,t){var r=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const n=this.conditionCollection.exportAllConditions();let s=this.conditionCollection.getColumnStackPosition(e);-1===s&&(s=this.latestEditedColumnPosition);const i=n.slice(0,s),l=n.slice(s);l.length&&l[0].column===e&&l.shift();const d=(0,a.curry)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const s=new h.default(r.hot,!1),i=[].concat(e,n);s.importAllConditions(i);const a=r.columnDataFactory(t);let l;l=s.isEmpty()?a:new u.default(s,e=>r.columnDataFactory(e)).filter(),l=(0,o.arrayMap)(l,e=>e.meta.visualRow);const d=(0,c.createArrayAssertion)(l);return s.destroy(),(0,o.arrayFilter)(a,e=>d(e.meta.visualRow))})(i),p=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:p},dependentConditionStacks:l,filteredRowsFactory:d,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),(0,i.objectEach)(this,(e,t)=>{this[t]=null})}}function m(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function E(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function w(){(0,o.arrayEach)(this.latestOrderStack,e=>{this.updateStatesAtColumn(e)})}(0,i.mixin)(f,l.default);t.default=f},73741:(e,t,r)=>{"use strict";r(79454)},73761:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(3708);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},74103:()=>{},74183:(e,t,r)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),r=(0,s.createKeyboardShortcutCommandsPool)(e),o={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()}],o)};var n=r(9013),s=r(57575)},74218:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},74222:(e,t,r)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function r(){}(0,n.inherit)(r,e);for(let e=0;e<t.length;e++)r.prototype[t[e]]=void 0;return r},t.extendByMetaType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const o="string"==typeof t.type?(0,s.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,n.objectEach)(t,(t,r)=>{e._automaticallyAssignedMetaProps.delete(r)});if(!(0,n.isObject)(o))return;r!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const i={};(0,n.objectEach)(o,(t,s)=>{var o;(function(e,t){var r;if("CELL_TYPE"===e)return!1;return(null===(r=t._automaticallyAssignedMetaProps)||void 0===r?void 0:r.has(e))||!(0,n.hasOwnProperty)(t,e)})(s,r)&&(i[s]=t,null===(o=e._automaticallyAssignedMetaProps)||void 0===o||o.add(s))}),(0,n.extend)(e,i)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},r(88443),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(72848),s=r(60532)},74334:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(99537),s=r(72848),o=r(39738),i=r(85180),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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),l=r(74820),h=r(36721),u=r(42663);function c(e,t,r){d(e,t),t.set(e,r)}function d(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(f(e,t),r),r}function g(e,t){return e.get(f(e,t))}function f(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 m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,R=new WeakSet;class S extends h.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUISelect",wrapIt:!1,tabIndex:-1})}constructor(e,t){var r,n;super(e,(0,s.extend)(S.DEFAULTS,t)),d(r=this,n=R),n.add(r),c(this,m,null),c(this,E,[]),c(this,w,void 0),c(this,y,void 0),c(this,C,void 0),this.registerHooks()}getMenu(){return g(m,this)}registerHooks(){this.addLocalHook("click",()=>f(R,this,N).call(this))}setItems(e){p(E,this,this.translateNames(e)),g(m,this)&&g(m,this).setMenuItems(g(E,this))}translateNames(e){return(0,o.arrayEach)(e,e=>{e.name=this.translateIfPossible(e.name)}),e}build(){super.build(),p(m,this,new n.Menu(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer})),g(m,this).setMenuItems(g(E,this));const e=new h.BaseUI(this.hot,{className:"htUISelectCaption"}),t=new h.BaseUI(this.hot,{className:"htUISelectDropdown"});p(w,this,e),p(y,this,e.element),p(C,this,t),this.hot.getSettings().ariaTags&&((0,i.setAttribute)(t.element,[(0,u.A11Y_HIDDEN)()]),(0,i.setAttribute)(this._element,[(0,u.A11Y_LISTBOX)()])),(0,o.arrayEach)([e,t],e=>this._element.appendChild(e.element)),g(m,this).addLocalHook("select",e=>f(R,this,v).call(this,e)),g(m,this).addLocalHook("afterClose",()=>f(R,this,T).call(this)),this.update()}update(){if(!this.isBuilt())return;let e;e=this.options.value?this.options.value.name:g(m,this).hot.getTranslatedPhrase(a.FILTERS_CONDITIONS_NONE),g(y,this).textContent=e,super.update()}openOptions(){const e=this.element.getBoundingClientRect();g(m,this)&&(g(m,this).open(),g(m,this).setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}),g(m,this).getNavigator().toFirstItem(),g(m,this).getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{this.closeOptions(),this.runLocalHooks("tabKeydown",e)}},{keys:[["Control/Meta","A"]],callback:()=>!1}]))}closeOptions(){g(m,this)&&g(m,this).close()}focus(){this.isBuilt()&&this.element.focus()}destroy(){g(m,this)&&(g(m,this).destroy(),p(m,this,null)),g(w,this)&&g(w,this).destroy(),g(C,this)&&g(C,this).destroy(),super.destroy()}}function v(e){e.name!==l.SEPARATOR&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}function T(){this.runLocalHooks("afterClose")}function N(){this.openOptions()}t.SelectUI=S},74491:(e,t,r)=>{"use strict";var n=r(39157),s=r(82314);e.exports=n&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},74515:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781);class i extends o.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 i({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=i},74552:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(97553);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualColumnFreeze=n.ManualColumnFreeze},74627:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(72848),i=r(35782),a=r(18528);class l{static get SAMPLE_COUNT(){return 3}constructor(e){(0,s.default)(this,"samples",null),(0,s.default)(this,"dataFactory",null),(0,s.default)(this,"customSampleCount",null),(0,s.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:l.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,r){const n=new Map,{from:s,to:o}="number"==typeof r?{from:r,to:r}:r;return(0,i.rangeEach)(s,o,r=>{const s=this.generateSample(e,t,r);n.set(r,s)}),n}generateSample(e,t,r){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const n=new Map,s="row"===e?"col":"row",l=[];return(0,i.rangeEach)(t.from,t.to,t=>{const i="row"===e?this.dataFactory(r,t):this.dataFactory(t,r);if(!1===i)return;const{value:h,bundleSeed:u}=i,c="string"==typeof u&&u.length>0;let d;d=c?u:(0,o.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,a.stringify)(h).length}`,n.has(d)||n.set(d,{needed:this.getSampleCount(),strings:[]});const p=n.get(d);if(p.needed){(!(l.indexOf(h)>-1)||this.allowDuplicates||c)&&(p.strings.push({value:h,[s]:t}),l.push(h),p.needed-=1)}}),n}}t.default=l},74820:(e,t,r)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===w.indexOf(e)&&(y[e]=t)},t.predefinedItems=function(){const e={};return(0,n.objectEach)(y,(t,r)=>{e[r]=t()}),e};var n=r(72848),s=E(r(43053));t.ALIGNMENT=s.KEY;var o=E(r(11907));t.CLEAR_COLUMN=o.KEY;var i=E(r(59597));t.COLUMN_LEFT=i.KEY;var a=E(r(88300));t.COLUMN_RIGHT=a.KEY;var l=E(r(89880));t.READ_ONLY=l.KEY;var h=E(r(80758));t.REDO=h.KEY;var u=E(r(2784));t.REMOVE_COLUMN=u.KEY;var c=E(r(35084));t.REMOVE_ROW=c.KEY;var d=E(r(26899));t.ROW_ABOVE=d.KEY;var p=E(r(77571));t.ROW_BELOW=p.KEY;var g=E(r(39783));t.SEPARATOR=g.KEY;var f=E(r(35749));t.NO_ITEMS=f.KEY;var m=E(r(14384));function E(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(E=function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i})(e,t)}t.UNDO=m.KEY;const w=t.ITEMS=[d.KEY,p.KEY,i.KEY,a.KEY,o.KEY,c.KEY,u.KEY,m.KEY,h.KEY,l.KEY,s.KEY,g.KEY,f.KEY],y={[g.KEY]:g.default,[f.KEY]:f.default,[d.KEY]:d.default,[p.KEY]:p.default,[i.KEY]:i.default,[a.KEY]:a.default,[o.KEY]:o.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}},75169:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...r}=e;return new o.default({className:"current",headerAttributes:[(0,i.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...r,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=r(93629),o=n(r(13301)),i=r(42663)},75299:(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],o=t[t.length-1];s=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==r?r:0,o=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(o+1,1))&&void 0!==n?n:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize();o-s+1===this.countCols()||this.selectColumns(s,o)},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.getSelectedRangeLast(),o=s.getTopStartCorner().col,i=s.getBottomEndCorner().col,a=this.columnIndexMapper,l=a.getRenderableFromVisualIndex(o),h=a.getRenderableFromVisualIndex(i),u=a.getNotTrimmedIndexes(),c=[];if(o!==i){if(i-o+1>h-l+1){const e=u.slice(o,i+1);c.push(...e.filter(e=>r.includes(e)))}}else if(0===l&&l<o)c.push(...u.slice(0,o));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>i&&c.push(...u.slice(i+1))}return(0,n.arrayEach)(c,e=>{t.push(this.toVisualColumn(e))}),0===t.length}}},r(85639),r(73741),r(7307);var n=r(39738),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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},75517:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(49472),s=r(14551),o=r(81554);class i extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,o.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(r,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,o.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=i},75590:()=>{},75713:function(e,t){var r,n,s;"undefined"!=typeof self&&self,n=[],void 0===(s="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var r={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":a(r,"global");break;case"i":a(r,"ignoreCase");break;case"m":a(r,"multiLine");break;case"u":a(r,"unicode");break;case"y":a(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}h()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":t=this.isDigit()?{atLeast:r,atMost:this.integerIncludingZero()}:{atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[o("\n"),o("\r"),o("\u2028"),o("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=u;break;case"D":e=u,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=o("\f");break;case"n":e=o("\n");break;case"r":e=o("\r");break;case"t":e=o("\t");break;case"v":e=o("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:o("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:o(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:o(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if("Character"===r.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else i(r.value,e),e.push(o("-")),i(n.value,e)}else i(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:o("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===s.test(e))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===n.test(e))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:o(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",n=0;n<e;n++){var s=this.popChar();if(!1===r.test(s))throw Error("Expecting a HexDecimal digits");t+=s}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,r=/[0-9a-fA-F]/,n=/[0-9]/,s=/[1-9]/;function o(e){return e.charCodeAt(0)}function i(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}function h(){throw Error("Internal Error - Should never get here!")}var u=[];for(t=o("0");t<=o("9");t++)u.push(t);var c=[o("_")].concat(u);for(t=o("a");t<=o("z");t++)c.push(t);for(t=o("A");t<=o("Z");t++)c.push(t);var d=[o(" "),o("\f"),o("\n"),o("\r"),o("\t"),o("\v"),o("\t"),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o("\u2028"),o("\u2029"),o(" "),o(" "),o(" "),o("\ufeff")];function p(){}return p.prototype.visitChildren=function(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(function(e){this.visit(e)},this))}},p.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},p.prototype.visitPattern=function(e){},p.prototype.visitFlags=function(e){},p.prototype.visitDisjunction=function(e){},p.prototype.visitAlternative=function(e){},p.prototype.visitStartAnchor=function(e){},p.prototype.visitEndAnchor=function(e){},p.prototype.visitWordBoundary=function(e){},p.prototype.visitNonWordBoundary=function(e){},p.prototype.visitLookahead=function(e){},p.prototype.visitNegativeLookahead=function(e){},p.prototype.visitCharacter=function(e){},p.prototype.visitSet=function(e){},p.prototype.visitGroup=function(e){},p.prototype.visitGroupBackReference=function(e){},p.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:p,VERSION:"0.4.0"}})?r.apply(t,n):r)||(e.exports=s)},75720:()=>{},75881:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));const o="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),this.hot=e}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){void 0!==e&&(this._element.style.top=e+o),void 0!==t&&(this._element.style.left=t+o)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+o),t&&(this._element.style.height=t+o)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){e&&(this._element.style.marginTop=e+o),t&&(this._element.style.marginLeft=t+o)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}},76019:(e,t,r)=>{"use strict";t.__esModule=!0,t.getPlugin=c,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!c(e)},t.registerPlugin=function(e,t,r){[e,t,r]=function(e,t,r){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,r=t.PLUGIN_PRIORITY);return[e,t,r]}(e,t,r),void 0===c(e)&&function(e,t,r){const s=(0,n.toUpperCaseFirst)(e);if(u.hasItem(s))throw new Error(a(s));void 0===r?h.addItem(s):l.addItem(r,s);u.addItem(s,t)}(e,t,r)},r(88443);var n=r(28222),s=r(38096),o=r(88529),i=r(51143);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,i.createUniqueSet)({errorItemExists:a}),u=(0,o.createUniqueMap)({errorIdExists:a});function c(e){const t=(0,n.toUpperCaseFirst)(e);return u.getItem(t)}},76089:()=>{},76249:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(18528),s=r(72848);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,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,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,o,i;for(t=0,r=this.countCols();t<r;t++)if(o=this.getDataAtCell(e,t),!1===(0,n.isEmpty)(o))return"object"==typeof o&&(i=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[i.prop],o));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!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,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},76277:(e,t,r)=>{"use strict";var n=r(88005),s=r(45472).f,o=r(19952),i=r(80221),a=r(61958),l=r(28041),h=r(41137);e.exports=function(e,t){var r,u,c,d,p,g=e.target,f=e.global,m=e.stat;if(r=f?n:m?n[g]||a(g,{}):n[g]&&n[g].prototype)for(u in t){if(d=t[u],c=e.dontCallGetSet?(p=s(r,u))&&p.value:r[u],!h(f?u:g+(m?".":"#")+u,e.forced)&&void 0!==c){if(typeof d==typeof c)continue;l(d,c)}(e.sham||c&&c.sham)&&o(d,"sham",!0),i(r,u,d,e)}}},76460:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(29787);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},76636:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}}},76643:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:r}=e.getSelectedRangeLast();r.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},76651:(e,t,r)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var r;const{data:i,childs:a}=t;if(i.isCollapsed||i.isHidden||i.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,o.isNodeReflectsFirstChildColspan)(t))return e(a[0]);i.isCollapsed=!0;const l=a.slice(1),h=new Set;if(l.length>0)(0,n.arrayEach)(l,e=>{(0,o.traverseHiddenNodeColumnIndexes)(e,e=>{h.add(e)}),e.data.clonedTree=e.cloneTree(),e.walkDown(e=>{let{data:t}=e;t.isHidden=!0})});else{const{origColspan:e,columnIndex:t}=i;for(let r=1;r<e;r++){const e=t+r;h.add(e)}}const u=i.colspan-(null!==(r=(0,o.getFirstChildProperty)(t,"colspan"))&&void 0!==r?r:1);return t.walkUp(e=>{const{data:t}=e;t.colspan-=u,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,o.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,o.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:u}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(39738),s=r(78932),o=r(81086)},76749:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47517);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DropdownEditor=n.DropdownEditor},77025:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(38479);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 o(e,t){return e.get(a(e,t))}function i(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}),i(c,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(d,this)[e]=t,this}setElement(e){return i(l,this,e),this}setParentElement(e){return i(h,this,e),this}updatePosition(e){i(u,this,new n.Cursor(e,o(l,this).ownerDocument.defaultView)),o(c,this)?(o(u,this).fitsBelow(o(l,this))?this.setPositionBelowCursor():o(u,this).fitsAbove(o(l,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===o(l,this).dir?o(u,this).fitsOnLeft(o(l,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():o(u,this).fitsOnRight(o(l,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=o(d,this).above+o(u,this).top-o(l,this).offsetHeight;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView.getComputedStyle(o(h,this).querySelector(".ht_master")),r=Number.parseInt(t.paddingTop,10),n=Number.parseInt(t.borderTop,10);e=o(u,this).top+o(u,this).cellHeight-o(l,this).scrollHeight+r+n}o(l,this).style.top=`${e}px`}setPositionBelowCursor(){let e=o(d,this).below+o(u,this).top+1;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView.getComputedStyle(o(h,this).querySelector(".ht_master")),r=Number.parseInt(t.paddingTop,10),n=Number.parseInt(t.borderTop,10);e=o(u,this).top-r-n-1}o(l,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=o(u,this).left;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView,r=Number.parseInt(t.getComputedStyle(o(h,this).querySelector(".htCore")).borderRightWidth,10);e+=o(u,this).cellWidth+r}else e+=o(d,this).right;o(l,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=o(d,this).left+o(u,this).left-o(l,this).offsetWidth;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(o(h,this).querySelector(".htCore")).borderLeftWidth,10)}o(l,this).style.left=`${e}px`}}},77181:(e,t,r)=>{"use strict";var n=r(214),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},77437:()=>{},77571:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ROW_BELOW)},callback(){const e=this.getSelectedRangeLast().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}};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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="row_below"},77617:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(18528),i=r(72848),a=n(r(13709)),l=r(85180);const h=t.EDITOR_TYPE="base",u=t.EDITOR_STATE=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class c{static get EDITOR_TYPE(){return h}constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"state",u.VIRGIN),(0,s.default)(this,"_opened",!1),(0,s.default)(this,"_fullEditMode",!1),(0,s.default)(this,"_closeCallback",null),(0,s.default)(this,"TD",null),(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),(0,s.default)(this,"prop",null),(0,s.default)(this,"originalValue",null),(0,s.default)(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,r,n,s,o){this.TD=n,this.row=e,this.col=t,this.prop=r,this.originalValue=s,this.cellProperties=o,this.state=this.isOpened()?this.state:u.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let r,n,s,o;if(t){const e=this.hot.getSelectedLast();r=Math.max(Math.min(e[0],e[2]),0),n=Math.max(Math.min(e[1],e[3]),0),s=Math.max(e[0],e[2]),o=Math.max(e[1],e[3])}else[r,n,s,o]=[this.row,this.col,null,null];const i=this.hot.runHooks("modifyGetCellCoords",r,n,!1,"meta");Array.isArray(i)&&([r,n]=i),this.hot.populateFromArray(r,n,e,s,o,"edit")}beginEditing(e,t){if(this.state!==u.VIRGIN)return;const r=this.hot,n=r.rowIndexMapper.getRenderableFromVisualIndex(this.row),s=r.columnIndexMapper.getRenderableFromVisualIndex(this.col),i=()=>{if(this.state=u.EDITING,this.isInFullEditMode()){const t="string"==typeof e?e:(0,o.stringify)(this.originalValue);this.setValue(t)}this.open(t),this._opened=!0,this.focus(),r.view.render(),r.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",i);r.view.scrollViewport(r._createCellCoords(n,s))||(this.hot.removeHook("afterScroll",i),i())}finishEditing(e,t,r){let n;if(r){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),r(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==u.VIRGIN){if(this.state===u.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const r=this.getValue();n=this.cellProperties.trimWhitespace?[["string"==typeof r?String.prototype.trim.call(r||""):r]]:[[r]],this.state=u.WAITING,this.saveValue(n,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",e=>{this.state=u.FINISHED,this.discardEditor(e)}):(this.state=u.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout(()=>{this._fireCallbacks(!0)})}cancelChanges(){this.state=u.FINISHED,this.discardEditor()}discardEditor(e){if(this.state===u.FINISHED)if(!1===e&&!0!==this.cellProperties.allowInvalid)this.hot.selectCell(this.row,this.col),this.focus(),this.state=u.EDITING,this._fireCallbacks(!1);else{this.close(),this._opened=!1,this._fullEditMode=!1,this.state=u.VIRGIN,this._fireCallbacks(!0);this.hot.getShortcutManager().setActiveContextName("grid")}}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===u.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:r,wtViewport:n}=this.hot.view._wt,s=this.hot.rootWindow,o=(0,l.offset)(t),i=(0,l.outerWidth)(t),a=(0,l.offset)(this.hot.rootElement),h=(0,l.outerWidth)(this.hot.rootElement),u=r.topOverlay.holder,c=r.inlineStartOverlay.holder,d=u!==s?u.scrollTop:0,p=c!==s?c.scrollLeft:0,g=s.innerWidth-a.left-h,{wtTable:f}=null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=f.name,E=["master","inline_start"].includes(m)?d:0,w=["master","top","bottom"].includes(m)?p:0,y=o.top===a.top?0:1;let C=o.top-a.top-y-E,R=0;R=this.hot.isRtl()?s.innerWidth-o.left-i-g-1+w:o.left-a.left-1-w,["top","top_inline_start_corner"].includes(m)&&(C+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(R+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));const S=this.hot.hasColHeaders(),v=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),T=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),N=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&v<=0||v===N)&&(C+=1),T<=0&&(R+=1);const M=n.rowsRenderCalculator.startPosition,_=n.columnsRenderCalculator.startPosition,b=Math.abs(r.inlineStartOverlay.getScrollPosition()),A=r.topOverlay.getScrollPosition(),I=(0,l.getScrollbarWidth)(this.hot.rootDocument);let O=t.offsetTop;if(["inline_start","master"].includes(m)&&(O+=M-A),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=r.bottomOverlay.clone;O+=e.getWorkspaceHeight()-t.getHeight()-I}let x=t.offsetLeft;this.hot.isRtl()?(x=x>=0?f.getWidth()-t.offsetLeft:Math.abs(x),x+=_-b-i):["top","master","bottom"].includes(m)&&(x+=_-b);const P=s.getComputedStyle(this.TD),L=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",D=parseInt(P[L],10)>0?0:1,k=parseInt(P.borderTopWidth,10)>0?0:1,H=(0,l.outerWidth)(t)+D,F=(0,l.outerHeight)(t)+k,U=(0,l.hasVerticalScrollbar)(u)?I:0,V=(0,l.hasHorizontalScrollbar)(c)?I:0,B=this.hot.view.maximumVisibleElementWidth(x)-U+D;return{top:C,start:R,height:F,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(O)-V+k,this.hot.stylesHandler.getDefaultRowHeight()),width:H,maxWidth:B}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}t.BaseEditor=c,(0,i.mixin)(c,a.default)},77618:(e,t,r)=>{"use strict";var n=r(19895),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},77748:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeLast(),s=Math.max(n.row-e.countVisibleRows(),0),o=r.getNearestNotHiddenIndex(s,1);if(null!==o){const r=e._createCellCoords(o,n.col),s=n.row-e.getFirstFullyVisibleRow(),i=Math.max(r.row-s,0);t.markSource("keyboard"),t.setRangeEnd(r),t.markEndSource(),e.scrollViewportTo({row:i,verticalSnap:"top",horizontalSnap:"start"})}}}},77823:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(88443),r(73741),r(82141);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(90530);const o=t.OPERATION_ID="disjunctionWithExtraCondition",i=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,s.registerOperation)(o,i,a)},77914:(e,t,r)=>{"use strict";var n=r(76277),s=r(65985),o=r(86713),i=r(77618),a=r(74218),l=r(63884),h=r(69498),u=r(13150),c=r(82314),d=TypeError,p=c(function(){[].keys().reduce(function(){},void 0)}),g=!p&&h("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:p||g},{reduce:function(e){i(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(g)return u(g,this,t?[e]:[e,r]);var n=a(this),h=0;if(s(n,function(n){t?(t=!1,r=n):r=e(r,n,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return r}})},77976:(e,t,r)=>{"use strict";var n=r(56360),s=r(82314),o=r(88005).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},78016:(e,t,r)=>{"use strict";var n=r(64976);e.exports=function(e,t,r){for(var s,o,i=r?e:e.iterator,a=e.next;!(s=n(a,i)).done;)if(void 0!==(o=t(s.value)))return o}},78124:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781),i=r(45624),a=r(39738);class l extends o.BaseAction{constructor(e){let{stateBefore:t,range:r,type:n,alignment:o}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=r,this.type=n,this.alignment=o}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,r,n,s)=>{t.done(()=>new l({stateBefore:e,range:r,type:n,alignment:s}))})}undo(e,t){(0,a.arrayEach)(this.range,t=>{t.forAll((t,r)=>{t>=0&&r>=0&&e.setCellMeta(t,r,"className",this.stateBefore[t][r]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,i.align)(this.range,this.type,this.alignment,(t,r)=>e.getCellMeta(t,r),(t,r,n,s)=>e.setCellMeta(t,r,n,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},78209:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(58045),i=n(r(54138)),a=r(28627),l=r(85180),h=r(35782),u=r(27752),c=r(18528),d=r(49220),p=r(42663);const g="ht_editor_hidden",f="textEditor",m=t.EDITOR_TYPE="text";class E extends o.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,s.default)(this,"eventManager",new i.default(this)),(0,s.default)(this,"autoResize",(0,u.createInputElementResizer)(this.hot.rootDocument)),(0,s.default)(this,"TEXTAREA",void 0),(0,s.default)(this,"textareaStyle",void 0),(0,s.default)(this,"TEXTAREA_PARENT",void 0),(0,s.default)(this,"textareaParentStyle",void 0),(0,s.default)(this,"layerClass",void 0),this.eventManager=new i.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this._opened=!0,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.autoResize.unObserve(),(0,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,r,n,s,i){const a=this.state;if(super.prepare(e,t,r,n,s,i),!i.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=i;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===o.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===o.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,p.A11Y_TABINDEX)(-1)]),(0,l.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,h.rangeEach)(e.length-1,r=>{const n=e[r];if((0,l.hasClass)(n,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,g)&&(0,l.removeClass)(this.TEXTAREA_PARENT,g),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==o.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:r,width:n,maxWidth:s,height:i,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${r}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(n,s),minHeight:Math.min(i,a),maxWidth:s,maxHeight:a},!0)}bindEvents(){(0,a.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===o.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===o.EDITOR_STATE.EDITING&&this.focus()})}allowKeyEventPropagation(){}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,c.isDefined)(this.hot.getSelected()),group:f},r=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(r(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(r(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(r(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(f)}}t.TextEditor=E},78282:()=>{},78484:(e,t,r)=>{"use strict";var n=r(76277),s=r(64976),o=r(86713),i=r(77618),a=r(74218),l=r(59165),h=r(46963),u=r(63884),c=r(8302),d=r(15435),p=r(69498),g=!c&&!d("flatMap",function(){}),f=!c&&!g&&p("flatMap",TypeError),m=c||g||f,E=h(function(){for(var e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=i(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(r,"throw",e)}if(e=i(s(this.next,r)),this.done=!!e.done)return;try{this.inner=l(n(e.value,this.counter++),!1)}catch(e){u(r,"throw",e)}}});n({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){i(this);try{o(e)}catch(e){u(this,"throw",e)}return f?s(f,this,e):new E(a(this),{mapper:e,inner:null})}})},78495:(e,t,r)=>{"use strict";var n=r(76277),s=r(82314),o=r(86977);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},78675:(e,t,r)=>{"use strict";var n=r(76277),s=r(61533),o=r(96068);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("union")||!o("union")},{union:s})},78932:(e,t,r)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:r,childs:i}=t;if(!r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,o.isNodeReflectsFirstChildColspan)(t))return e(i[0]);r.isCollapsed=!1;const a=i.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,o.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,o.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,o.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(39738),s=r(76651),o=r(81086)},79038:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,n.registerAllEditors)(),(0,s.registerAllRenderers)(),(0,o.registerAllValidators)(),(0,i.registerAllCellTypes)(),(0,a.registerAllPlugins)()};var n=r(88663);t.registerAllEditors=n.registerAllEditors;var s=r(21926);t.registerAllRenderers=s.registerAllRenderers;var o=r(54629);t.registerAllValidators=o.registerAllValidators;var i=r(19643);t.registerAllCellTypes=i.registerAllCellTypes;var a=r(86930);t.registerAllPlugins=a.registerAllPlugins},79104:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[o.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=r(74183),o=r(70794),i=r(9013);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))})},79382:(e,t,r)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=[];function i(e,t){h(t).addShortcuts(e,{group:s})}function a(e,t){const n=h(t);e.forEach(e=>{let{keys:t}=e;t.forEach(e=>n.removeShortcutsByKeys(e))}),r.push({shortcuts:e,contextName:t}),i(e,t)}function l(e){return e?`${o}:${e}`:o}function h(t){var r;const n=e.hotMenu.getShortcutManager(),s=l(t);return null!==(r=n.getContext(s))&&void 0!==r?r:n.addContext(s)}return i((0,n.createDefaultShortcutsList)(e)),t.forEach(e=>{let{shortcuts:t,contextName:r}=e;a(t,r)}),{addCustomShortcuts:a,getCustomShortcuts:function(){return[...r]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(l(t))}}},r(85639),r(73741),r(69326);var n=r(46753);const s="menu",o=s},79407:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(33871);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Search=n.Search},79454:(e,t,r)=>{"use strict";var n=r(76277),s=r(88005),o=r(17734),i=r(77618),a=r(6996),l=r(15058),h=r(45021),u=r(281),c=r(82314),d=r(54090),p=r(92754),g=r(41626).IteratorPrototype,f=r(39157),m=r(8302),E="constructor",w="Iterator",y=p("toStringTag"),C=TypeError,R=s[w],S=m||!a(R)||R.prototype!==g||!c(function(){R({})}),v=function(){if(o(this,g),l(this)===g)throw new C("Abstract class Iterator not directly constructable")},T=function(e,t){f?h(g,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===g)throw new C("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):g[e]=t};d(g,y)||T(y,w),!S&&d(g,E)&&g[E]!==Object||T(E,v),v.prototype=g,n({global:!0,constructor:!0,forced:S},{Iterator:v})},79511:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(67261)),o=n(r(36555)),i=n(r(13555)),a=r(72848),l=r(84378);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM)}}(0,a.mixin)(h,o.default),(0,a.mixin)(h,i.default);t.default=h},79662:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(r,n){const o=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(n,t,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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(23622)},79909:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));class o{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=o;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new o(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new o(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const r=e(t);if(t===this.last||!0===r)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,r,n=this.first;for(;n;){if(n.data===e)return t=n.next,r=n.prev,t&&(t.prev=r),r&&(r.next=t),n===this.first&&(this.first=t),n===this.last&&(this.last=r),!0;n=n.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,r){r&&(e(r,r.next),r.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,r=this.first;for(;t;)e=t.next,t.next=r,r.prev=t,r=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=r,this.last=e}}},79954:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(46713);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenColumns=n.HiddenColumns},80121:(e,t,r)=>{"use strict";var n=r(25225),s=r(86713);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},80141:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(3217);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.AutoRowSize=n.AutoRowSize},80152:()=>{},80221:(e,t,r)=>{"use strict";var n=r(6996),s=r(9370),o=r(57754),i=r(61958);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(n(r)&&o(r,h,a),a.global)l?e[t]=r:i(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}},80338:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(95609);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenRows=n.HiddenRows},80350:()=>{},80403:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47289);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ColumnSummary=n.ColumnSummary},80501:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=r(85180),o=n(r(10473)),i=r(25978),a=r(46512),l=r(34347);class h extends i.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 o.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 o=0;this.trimmingContainer!==t||n&&"horizontal"===n?(o=this.getScrollPosition(),(0,s.resetCssTransform)(r)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(r,`${o}px`,"0px"));const i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}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,o=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"vertical"===i){let n=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(n-=(0,s.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollHeight),o.height=`${n}px`}else o.height="";this.clone.wtTable.holder.style.height=o.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);o.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"),o=r.getSetting("fixedColumnsStart"),i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===o&&n.length>0&&!(0,s.hasClass)(i.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&&i.offsetWidth!==i.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"),o=t.getSetting("fixedColumnsStart"),i=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");i?(0,s.removeClass)(r,"emptyRows"):(0,s.addClass)(r,"emptyRows");let l=!1;if(!a)if(o&&!n.length)(0,s.addClass)(r,"innerBorderLeft innerBorderInlineStart");else if(!o&&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},80536:(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 o(e,t){return e.get(a(e,t))}function i(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(88443);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,o(l,this),e.row,t);if(null===n)return null;const s=a(u,this,d).call(this,o(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 o,a;s(o=this,a=u),a.add(o),n(this,l,void 0),n(this,h,void 0),i(l,this,t),i(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 o=e.clone();return o.from=n,o.to=s,o.includes(e.highlight)||(o.highlight=n),o}}},80585:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},80737:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n=r(23798);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var s=r(31501);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},80758:(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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="redo"},81086:(e,t)=>{"use strict";function r(e,t){let{childs:r}=e;if(0!==r.length)return r[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:r,childs:n}=e;if(!r.isHidden&&(t(r.columnIndex),0===n.length))for(let e=1;e<r.colspan;e++)t(r.columnIndex+e)})}},81141:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(34726);var s=n(r(53726)),o=r(39738),i=r(72848);t.CommandExecutor=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"commands",{}),(0,s.default)(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const s=e.split(":"),a=s[0],l=2===s.length?s[1]:null;let h=this.commands[a];if(!h)throw new Error(`Menu command '${a}' not exists.`);if(l&&h.submenu&&(h=function(e,t){let r;return(0,o.arrayEach)(t,t=>{const n=t.key?t.key.split(":"):null;if(Array.isArray(n)&&n[1]===e)return r=t,!1}),r}(l,h.submenu.items)),!0===h.disabled)return;if("function"==typeof h.disabled&&!0===h.disabled.call(this.hot))return;if((0,i.hasOwnProperty)(h,"submenu"))return;const u=[];"function"==typeof h.callback&&u.push(h.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),r.unshift(s.join(":")),(0,o.arrayEach)(u,e=>e.apply(this.hot,r))}}},81384:()=>{},81452:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));t.NodesPool=class{constructor(e){(0,s.default)(this,"nodeType",void 0),(0,s.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const r="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(r))return this.pool.get(r);const n=this.rootDocument.createElement(this.nodeType);return this.pool.set(r,n),n}}},81554:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(69514);t.getDecreasedIndexes=n.getDecreasedIndexes,t.getIncreasedIndexes=n.getIncreasedIndexes;var s=r(14551),o=r(23661);const i=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===i.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return i.get(e)}},81621:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(35782),i=r(72848),a=r(39738);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"data",null),(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"parentReference",new WeakMap),(0,s.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,o.rangeEach)(0,this.data.length-1,e=>{this.cacheNode(this.data[e],0,null)})}cacheNode(e,t,r){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:r,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,a.arrayEach)(e.__children,r=>{this.cacheNode(r,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,r,n){let s=!1,o=t;if(isNaN(o)&&o.end)return o;let i=e;return i||(i={__children:this.data},s=!0,o-=1),null!=r&&o===r?{result:i,end:!0}:null!=n&&i===n?{result:o,end:!0}:(o+=1,i.__children&&(0,a.arrayEach)(i.__children,e=>{if(this.parentReference.set(e,s?null:i),o=this.readTreeNodes(e,o,r,n),isNaN(o)&&o.end)return!1}),o)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,i.objectEach)(this.data[0],(t,r)=>{e[r]=null}),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const r=this.getRowParent(e);return null==r?this.data.indexOf(t):r.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&r.__children?((0,a.arrayEach)(r.__children,e=>{t+=1,e.__children&&(t+=this.countChildren(e))}),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var r;return(null===(r=e.__children)||void 0===r?void 0:r[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&!!r.__children&&0!==(null===(t=r.__children)||void 0===t?void 0:t.length)}addChild(e,t){let r=t;this.hot.runHooks("beforeAddChild",e,r);let n=null;e&&(n=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",n+this.countChildren(e)+1,1);let s=e;e||(s=this.mockParent()),s.__children||(s.__children=[]),r||(r=this.mockNode()),s.__children.push(r),this.rewriteCache();const o=this.getRowIndex(r);this.hot.rowIndexMapper.insertIndexes(o,1),this.hot.runHooks("afterCreateRow",o,1),this.hot.runHooks("afterAddChild",e,r)}addChildAtIndex(e,t,r){let n,s=r;if(s||(s=this.mockNode()),this.hot.runHooks("beforeAddChild",e,s,t),e){const r=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",r,1),e.__children.splice(t,null,s),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(r,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",r,1),n=r}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),n=this.getRowIndex(this.data[t]);s=this.getDataObject(n),this.hot.runHooks("afterAddChild",e,s,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const r=this.translateTrimmedRow(e),n=this.getRowParent(r),s=this.getRowIndexWithinParent(r);switch(t){case"below":this.addChildAtIndex(n,s+1,null);break;case"above":this.addChildAtIndex(n,s,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;const n=[];Array.isArray(e)?((0,o.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);n.push(this.getDataObject(t))}),(0,o.rangeEach)(0,n.length-2,e=>{this.detachFromParent(n[e],!1)}),r=n[n.length-1]):r=e;const s=this.getRowIndex(r),i=this.countChildren(r),a=this.getRowIndexWithinParent(r),l=this.getRowParent(r),h=this.getRowParent(l),u=this.getRowIndex(h);let c=null;if(this.hot.runHooks("beforeDetachChild",l,r),null!=a){const e=Array.from(new Array(s+i+1).keys()).splice(-1*(i+1));if(this.hot.runHooks("beforeRemoveRow",s,i+1,e,this.plugin.pluginName),l.__children.splice(a,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",s,i+1,e,this.plugin.pluginName),h){c=u+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,i+1,this.plugin.pluginName),h.__children.push(r)}else c=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",c-2,i+1,this.plugin.pluginName),this.data.push(r)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",c-2,i+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",l,r,this.getRowIndex(r)),t&&this.hot.render()}filterData(e,t,r){const n=[];(0,a.arrayEach)(r,e=>{n.push(this.getDataObject(e))}),(0,a.arrayEach)(n,e=>{const t=this.getRowIndexWithinParent(e),r=this.getRowParent(e);null===r?this.data.splice(t,1):r.__children.splice(t,1)}),this.rewriteCache()}spliceData(e,t,r){const n=this.getDataObject(e-1);let s=null,o=e;n&&n.__children&&0===n.__children.length?(s=n,o=0):e<this.countAllRows()&&(s=this.getRowParent(e),o=this.getRowIndexWithinParent(e)),s?r?s.__children.splice(o,t,...r):s.__children.splice(o,t):r?this.data.splice(o,t,...r):this.data.splice(o,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,r=t;do{r=this.getRowParent(r),null!==r&&(t=r)}while(null!==r);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,r,n){const s=t===this.hot.countRows(),o=this.getRowParent(e),i=this.getRowIndexWithinParent(e),a=o.__children.slice(i,i+1),l=e>t;let h=s?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const u=s||r||n?h.__children.length:this.getRowIndexWithinParent(t),c=o===h;h.__children.splice(u,0,a[0]),o.__children.splice(i+(l&&c?1:0),1),this.syncRowWithRawSource(o),c||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},81670:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedLast();if(t){const r=e.mergedCellsCollection.get(t[0],t[1]);if(r.row===t[0]&&r.col===t[1]&&r.row+r.rowspan-1===t[2]&&r.col+r.colspan-1===t[3])return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeLast();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:r,to:n}=t;e.toggleMerge(t),this.selectCell(r.row,r.col,n.row,n.col,!1)},disabled(){const e=this.getSelectedLast();if(!e)return!0;return o.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),o=n(r(63086))},81907:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(55127);t.RENDERER_TYPE=n.RENDERER_TYPE,t.textRenderer=n.textRenderer},82016:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(85180),i=r(72848);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,i.objectEach)(this.defaults,(t,r)=>{if(void 0!==e[r])this.settings[r]=e[r];else{if(void 0===t)throw new Error(`A required setting "${r}" was not provided`);this.settings[r]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,r)=>{const n=this.getSetting("data",e,t);(0,o.fastInnerText)(r,null==n?"":n)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,i.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,r,n,s){return"function"==typeof this.settings[e]?this.settings[e](t,r,n,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},82141:(e,t,r)=>{"use strict";r(72048)},82314:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},82564:(e,t,r)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX):t.push(o.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[o.CONTROL,o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return i.includes(e)},t.isKey=function(e,t){const r=t.split("|");let s=!1;return(0,n.arrayEach)(r,t=>{if(e===o[t])return s=!0,!1}),s},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},r(85639);var n=r(39738),s=r(28627);const o=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,s.isFirefox)()?182:174,AUDIO_MUTE:(0,s.isFirefox)()?181:173,AUDIO_UP:(0,s.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},i=[o.ALT,o.ARROW_DOWN,o.ARROW_LEFT,o.ARROW_RIGHT,o.ARROW_UP,o.AUDIO_DOWN,o.AUDIO_MUTE,o.AUDIO_UP,o.BACKSPACE,o.CAPS_LOCK,o.DELETE,o.END,o.ENTER,o.ESCAPE,o.F1,o.F2,o.F3,o.F4,o.F5,o.F6,o.F7,o.F8,o.F9,o.F10,o.F11,o.F12,o.F13,o.F14,o.F15,o.F16,o.F17,o.F18,o.F19,o.HOME,o.INSERT,o.MEDIA_NEXT,o.MEDIA_PLAY_PAUSE,o.MEDIA_PREV,o.MEDIA_STOP,o.NULL,o.NUM_LOCK,o.PAGE_DOWN,o.PAGE_UP,o.PAUSE,o.SCROLL_LOCK,o.SHIFT,o.TAB]},82597:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var s=n(r(53726)),o=r(15886),i=r(72848),a=r(28275);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),o.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:r,col:n}=e;if(null!==(t=this.metaSyncMemo.get(r))&&void 0!==t&&t.has(n))return;const{visualRow:s,visualCol:o}=e,l=this.metaManager.hot,h=l.colToProp(o);e.prop=h,l.runHooks("beforeGetCellMeta",s,o,e);const u=(0,i.hasOwnProperty)(e,"type")?e.type:null;let c=(0,a.isFunction)(e.cells)?e.cells(r,n,h):null;var d;u&&(c?c.type=null!==(d=c.type)&&void 0!==d?d:u:c={type:u});c&&this.metaManager.updateCellMeta(r,n,c),l.runHooks("afterGetCellMeta",s,o,e),this.metaSyncMemo.has(r)||this.metaSyncMemo.set(r,new Set),this.metaSyncMemo.get(r).add(n)}}},82662:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(85639),r(73741),r(69326),r(90795);var n=r(28222),s=r(93049);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 i(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,p=new WeakMap,g=new WeakMap,f=new WeakMap;t.default=class{constructor(e,t,r){o(this,h,void 0),o(this,u,void 0),o(this,c,void 0),o(this,d,[]),o(this,p,[]),o(this,g,void 0),o(this,f,[]),a(h,this,e),a(u,this,t),a(c,this,r)}setRemovedHfIndexes(e){return a(f,this,e.map(e=>{const t=i(u,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),i(f,this)}getRemovedHfIndexes(){return i(f,this)}getHfIndexFromVisualIndex(e){const t=i(u,this).getIndexesSequence(),r=i(u,this).getNotTrimmedIndexes();return t.indexOf(r[e],e)}syncMoves(e){const t=`move${(0,n.toUpperCaseFirst)(i(h,this))}s`;i(c,this).getEngine().batch(()=>{e.forEach(e=>{const r=e.from!==e.to,n=e.from+1!==e.to;r&&n&&i(c,this).getEngine()[t](i(c,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,r){!1!==r&&(a(p,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(g,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(i(c,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const r=(0,s.getMoves)(i(p,this),i(g,this),i(u,this).getNumberOfIndexes());null===i(c,this).getSheetId()?i(c,this).getPostponeAction(()=>this.syncMoves(r)):this.syncMoves(r)}getIndexesChangeSyncMethod(){const e=`set${(0,n.toUpperCaseFirst)(i(h,this))}Order`;return t=>{if(i(c,this).isPerformingUndoRedo())return;const r=i(u,this).getIndexesSequence();if("update"===t&&r.length>0){const t=i(d,this).map(e=>r.indexOf(e)),n=i(c,this).getEngine().getSheetDimensions(i(c,this).getSheetId());let s;s="row"===i(h,this)?n.height:n.width;for(let e=t.length;e<s;e+=1)t.push(e);i(c,this).getEngine()[e](i(c,this).getSheetId(),t)}a(d,this,r)}}init(){a(d,this,i(u,this).getIndexesSequence())}}},82704:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(35899);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DateEditor=n.DateEditor},83252:()=>{},83367:()=>{},83407:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(16178);var s=n(r(53726)),o=r(72848),i=r(39738);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),o=this.getAutofillSize(e,t,r),[i,a,l,h]=e,u=["up","down"].indexOf(r)>-1?l-i+1:h-a+1,c=o-Math.floor(o/u)*u,d=this.getFarthestCollection(e,t,r,n);if(d)if("down"===r){const e=d.row+d.rowspan-i-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:o,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,o.extend)(this.currentFillData,e)}getAutofillSize(e,t,r){const[n,s,o,i]=e,[a,l,h,u]=t;switch(r){case"up":return n-a;case"down":return h-o;case"left":return s-l;case"right":return u-i;default:return null}}getDragArea(e,t,r){const[n,s,o,i]=e,[a,l,h,u]=t;switch(r){case"up":return[a,l,n-1,i];case"down":{const e=this.mergedCellsCollection.get(h,i);return[o+1,s,h+(e?e.rowspan-1:0),i]}case"left":return[a,l,o,s-1];case"right":{const e=this.mergedCellsCollection.get(h,i);return[n,i+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,r,n){const[s,o,a,l]=e,h=["up","down"].indexOf(r)>-1,u=h?a:l,c=h?s:o,d=this.getAutofillSize(e,t,r),p=h?a-s+1:l-o+1,g=d-Math.floor(d/p)*p;let f=null,m=null,E=null;switch(r){case"up":f="includesVertically",E=u-g+1;break;case"left":f="includesHorizontally",E=u-g+1;break;case"down":f="includesVertically",E=c+g-1;break;case"right":f="includesHorizontally",E=c+g-1}return(0,i.arrayEach)(n,e=>{e[f](E)&&e.isFarther(m,r)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),r=this.currentFillData.foundMergedCells,n=this.currentFillData.dragDirection,s=(e,r)=>{switch(n){case"up":return e.row-r>=t.from.row;case"down":return e.row+e.rowspan-1+r<=t.to.row;case"left":return e.col-r>=t.from.column;case"right":return e.col+e.colspan-1+r<=t.to.column;default:return null}};let o=0,i=null,a=1;do{for(let e=0;e<r.length;e+=1){if(i=r[e],o=a*this.currentFillData.cycleLength,s(i,o))switch(n){case"up":this.plugin.mergedCellsCollection.add({row:i.row-o,rowspan:i.rowspan,col:i.col,colspan:i.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:i.row+o,rowspan:i.rowspan,col:i.col,colspan:i.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:i.row,rowspan:i.rowspan,col:i.col-o,colspan:i.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:i.row,rowspan:i.rowspan,col:i.col+o,colspan:i.colspan},!0)}e===r.length-1&&(a+=1)}}while(s(i,o));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,i.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,o,i,a]=n,l=this.plugin.hot._createCellCoords(s,o),h=this.plugin.hot._createCellCoords(i,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()}))}}},83457:(e,t,r)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,n.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var n=r(85180)},83493:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(73741),r(7307),r(69326),r(90795),r(82141);var s=n(r(53726));class o{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}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 o(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=o},83762:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=r(10100),o=r(39738),i=r(35782),a=r(85180),l=n(r(10872)),h=n(r(55194));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,o.arrayEach)(r.lastCollapsedRows,(s,o)=>{s>=e&&s<t&&(r.lastCollapsedRows[o]=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,i.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,i=null,a=null;return isNaN(e)?(s=e,i=this.dataManager.getRowIndex(s)):(s=this.dataManager.getDataObject(e),i=e),this.dataManager.hasChildren(s)&&(0,o.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(i)&&this.collapsedRows.push(i),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,o.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,o.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,o.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,o.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,o.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,i=null,a=null;return isNaN(e)?(s=e,i=this.dataManager.getRowIndex(e)):(s=this.dataManager.getDataObject(e),i=e),this.collapsedRows.splice(this.collapsedRows.indexOf(i),1),this.dataManager.hasChildren(s)&&(0,o.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,o.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,o.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,o.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution(()=>{(0,o.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)})},!0)}untrimRows(e){this.hot.batchExecution(()=>{(0,o.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,o.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.render(),this.hot.view.adjustElementsSize()}}t.default=u},83788:()=>{},83954:(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(63426);t.COLUMN_DATA_TYPE="date"},84101:()=>{},84199:(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()}}},84378:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=r(46381);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var o=r(44275);t.BottomOverlay=o.BottomOverlay;var i=r(80501);t.InlineStartOverlay=i.InlineStartOverlay;var a=r(25978);t.Overlay=a.Overlay;var l=r(65815);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=r(72477);t.TopOverlay=h.TopOverlay;var u=r(34347);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))})},84745:(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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(32949),o=r(18528);const i=t.CONDITION_NAME="empty";function a(e){return(0,o.isEmpty)(e.value)}(0,s.registerCondition)(i,a,{name:n.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},84888:()=>{},84925:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21419);t.RENDERER_TYPE=n.RENDERER_TYPE,t.passwordRenderer=n.passwordRenderer},84940:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(85180),i=r(72848);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:i,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,o.offset)(n.wtRootElement).left}const h=Math.abs((0,o.getScrollLeft)(a,a));if(l>h){const t=(0,o.innerWidth)(a);let n=s.getRowHeaderWidth();for(let s=1;s<=i;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:i}=this.dataAccessObject;if(t.mainTableScrollableElement===i){const a=(0,o.offset)(r.wtRootElement),l=(0,o.getScrollTop)(i,i);if(a.top>l){const r=(0,o.innerHeight)(i);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,i.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:o,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<o)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,i.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:o,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>n-o-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())}}},85025:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(19126);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.BindRowsWithHeaders=n.BindRowsWithHeaders},85180:(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 o=n.length;return o?n[o-1]:null},t.empty=p,t.fastInnerHTML=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g.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=y,t.getFrameElement=i,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 i(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,r=t?t.defaultView:void 0;t||(t=e.document?e.document:e,r=t.defaultView);const n=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:o}=s.style;if([e,t,o].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:o}=r.getComputedStyle(s)),n.includes(e)||n.includes(t)||n.includes(o))return s;if(s.clientHeight<=s.scrollHeight+1&&(n.includes(o)||n.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(n.includes(t)||n.includes(e)))return s;s=s.parentNode}return r},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===w&&(w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const r=e.createElement("div");(0,o.isSafari)()&&!(0,o.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.offsetWidth;r.style.overflow="scroll";let s=t.offsetWidth;n===s&&(s=r.clientWidth);return(e.body||e.documentElement).removeChild(r),n-s+y(e)}(e));return w},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let r="";e.getSelection?r=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(r=t.selection.createRange().text);return r},t.getStyle=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===r)return"width"===t?`${r.innerWidth}px`:"height"===t?`${r.innerHeight}px`:void 0;const n=e.style[t];if(""!==n&&void 0!==n)return n;const s=r.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,r=t.defaultView;let n=e.parentNode;for(;n&&n.style&&t.body!==n;){if("visible"!==n.style.overflow&&""!==n.style.overflow)return n;const e=r.getComputedStyle(n),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),o=e.getPropertyValue("overflow-y"),i=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(o)||t.includes(i))return n;n=n.parentNode}return r},t.getWindowScrollLeft=E,t.getWindowScrollTop=m,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let r=e;for(;r.parentNode;){if("0px"===r.style.height||"0"===r.style.height)return"hidden"===t.getComputedStyle(r).overflow;r=r.parentNode}return!1},t.index=function(e){let t=0,r=e;if(r.previousSibling)for(;r=r.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let r=e.parentNode,n=[];"string"==typeof t?n=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):n.push(t);for(;null!==r;){if(n.indexOf(r)>-1)return!0;r=r.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(r&&null!==r&&e instanceof r)},t.isInput=C,t.isInternalElement=function(e,t){const r=e.closest(".handsontable");return!!r&&(r.parentNode===t||r===t)},t.isOutsideInput=R,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=S,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,o,i,a=e;s=a.offsetLeft,o=a.offsetTop,i=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,o+=a.offsetTop,i=a;i&&"fixed"===i.style.position&&(s+=r.pageXOffset||n.scrollLeft,o+=r.pageYOffset||n.scrollTop);return{left:s,top:o}},t.outerHeight=function(e){return e.offsetHeight},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=v,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];S(e,r),t(),v(e,r)},t.selectElementIfAllowed=function(e){R(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,o=s.style.display;s.style.display="block",e.setSelectionRange(t,r),s.style.display=o}}},t.setOverlayPosition=function(e,t,r){e.style.transform=`translate3d(${t},${r},0)`},r(88443),r(85639),r(73741),r(7307),r(69326);var n=r(28222),s=r(42663),o=r(28627);function i(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 o=e;for(;null!=o&&o!==r;){const{nodeType:e,nodeName:r}=o;if(e===n&&(t.includes(r)||t.includes(o)))return o;const{host:i}=o;o=i&&e===s?i:o.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 p(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const g=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const r=e.firstChild;r&&3===r.nodeType&&null===r.nextSibling?r.textContent=t:(p(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function E(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let w;function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,o.isWindowsOS)()?Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2:0}function C(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function R(e){return C(e)&&!1===e.hasAttribute("data-hot-input")}function S(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,o=n.createRange(),i=n.defaultView.getSelection();d(e,"contenteditable",!0),r&&d(e,...(0,s.A11Y_HIDDEN)()),t&&u(e,"invisibleSelection"),o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o)}function v(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")}},85442:(e,t,r)=>{"use strict";var n=r(13794);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},85458:(e,t,r)=>{"use strict";var n=r(30334);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},85484:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(79909));function o(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 a(e,t){return e.get(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,E=new WeakSet;function w(e,t,r,n,s){const o=e.getTopStartCorner(),i=e.getBottomEndCorner(),l=e.highlight.clone().normalize(),h=a(g,this).call(this,n,s);if(h&&r.has(h))return null;const u={colStart:s,colEnd:s,rowStart:n,rowEnd:n};if(h){if(r.add(h),h.row<o.row||h.row+h.rowspan-1>i.row||h.col<o.col||h.col+h.colspan-1>i.col)return null;u.colStart=h.col,u.colEnd=h.col+h.colspan-1,u.rowStart=h.row,u.rowEnd=h.row+h.rowspan-1}const c=t.push(u);return n===l.row&&s===l.col||h&&l.row>=h.row&&l.row<=h.row+h.rowspan-1&&l.col>=h.col&&l.col<=h.col+h.colspan-1?c:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:r,columnIndexMapper:n}=e;var a,h;i(a=this,h=E),h.add(a),o(this,u,new s.default),o(this,c,new s.default),o(this,d,null),o(this,p,null),o(this,g,null),o(this,f,null),o(this,m,null),l(g,this,t),l(f,this,r),l(m,this,n)}getCurrentVerticalNode(){return a(p,this).data}getFirstVerticalNode(){return a(c,this).first.data}getNextVerticalNode(){return a(p,this).next.data}getPrevVerticalNode(){return a(p,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(u,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(p,this,a(p,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(p,this,a(p,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),r=e.getBottomEndCorner(),n=new WeakSet;l(u,this,new s.default);for(let s=t.row;s<=r.row;s++)if(!a(f,this).isHidden(s))for(let o=t.col;o<=r.col;o++){if(a(m,this).isHidden(o))continue;const t=h(E,this,w).call(this,e,a(u,this),n,s,o);t&&l(d,this,t)}a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first);const o=new WeakSet;l(c,this,new s.default);for(let n=t.col;n<=r.col;n++)if(!a(m,this).isHidden(n))for(let s=t.row;s<=r.row;s++){if(a(f,this).isHidden(s))continue;const t=h(E,this,w).call(this,e,a(c,this),o,s,n);t&&l(p,this,t)}a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first)}setActiveNode(e,t){return a(u,this).inorder(r=>{const{rowStart:n,rowEnd:s,colStart:o,colEnd:i}=r.data;if(e>=n&&e<=s&&t>=o&&t<=i)return l(d,this,r),!1}),a(c,this).inorder(r=>{const{rowStart:n,rowEnd:s,colStart:o,colEnd:i}=r.data;if(e>=n&&e<=s&&t>=o&&t<=i)return l(p,this,r),!1}),this}}},85555:()=>{},85639:(e,t,r)=>{"use strict";var n=r(76277),s=r(11044),o=r(26213),i=r(17112),a=r(6330);n({target:"Array",proto:!0,arity:1,forced:r(82314)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),r=o(t),n=arguments.length;a(r+n);for(var l=0;l<n;l++)t[r]=arguments[l],r++;return i(t,r),r}})},85665:(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.getSelectedRangeLast().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},85742:()=>{},85799:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(12108));t.bottom=s.default;var o=n(r(79662));t.left=o.default;var i=n(r(43469));t.noBorders=i.default;var a=n(r(27609));t.right=a.default;var l=n(r(30644));t.top=l.default},86015:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(15293),i=r(42209),a=r(85180),l=r(42663);class h extends i.BaseRenderer{constructor(){super("TH"),(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.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:r,rows:n,cells:s}=this.table;for(let o=0;o<e;o++){const e=this.table.renderedRowToSource(o),i=n.getRenderedNode(o);this.sourceRowIndex=e;const h=this.obtainOrderView(i),u=s.obtainOrderView(i);h.appendView(u).setSize(r).setOffset(0).start();for(let n=r-1;n>=0;n--){h.render();const r=h.getCurrentNode();r.className="",r.removeAttribute("style"),(0,a.removeAttribute)(r,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,a.setAttribute)(r,[(0,l.A11Y_ROWHEADER)(),(0,l.A11Y_SCOPE_ROW)(),(0,l.A11Y_COLINDEX)(n+1),(0,l.A11Y_TABINDEX)(-1)]),t[n](e,r,n)}h.end()}}}t.RowHeadersRenderer=h},86023:(e,t,r)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const{row:t,col:r}=e.getSelectedRangeLast().highlight;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(13848)},86060:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(69326);var n=r(30183),s=r(22184);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 i(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,p=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,h,new Set),o(this,u,[]),o(this,c,[]),o(this,d,!1),o(this,p,!1),a(p,this,null!=e&&e)}createObserver(){const e=new n.ChangesObserver;return i(h,this).add(e),e.addLocalHook("unsubscribe",()=>{i(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(i(u,this),i(c,this))),e}emit(e){let t=i(c,this);i(d,this)&&i(u,this).length===e.length||(0===e.length?e=new Array(t.length).fill(i(p,this)):a(u,this,new Array(e.length).fill(i(p,this))),i(d,this)||(a(d,this,!0),t=i(u,this)));const r=(0,s.arrayDiff)(t,e);i(h,this).forEach(e=>e._write(r)),a(c,this,e)}}},86068:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeLast().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===n&&(n=-1),t.setRangeStart(e._createCellCoords(n,r))}}},86150:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(10530);const{getListWithInsertedItems:s,getListWithRemovedItems:o}=(0,n.alterUtilsFactory)("physicallyIndexed");class i extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){this.indexedValues=s(this.indexedValues,e,t,(e,t)=>this.getNextValue(t)),super.insert(e,t)}remove(e){this.indexedValues=o(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=i},86154:(e,t,r)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=i,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const r=e[n.PLUGIN_KEY],s=a(null!=r&&null!==(t=r.engine)&&void 0!==t&&t.hyperformula?r.engine:{}),l=i(e);return{...o,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const r=e[n.PLUGIN_KEY],s=a(null!=r&&null!==(t=r.engine)&&void 0!==t&&t.hyperformula?r.engine:{}),o=i(e);return{...s,...o}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(r=>void 0!==t[r]&&t[r]!==e[r])},r(73741),r(89663),r(82141);var n=r(63541);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",o=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function i(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[n.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,r)=>("hyperformula"!==r&&(t[r]=e[r]),t),{})}},86197:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(1631);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.DropdownMenu=n.DropdownMenu},86224:(e,t,r)=>{"use strict";var n=r(85458),s=r(96745),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},86413:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(39483);t.EDITOR_TYPE=n.EDITOR_TYPE,t.NumericEditor=n.NumericEditor},86437:(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"},86602:()=>{},86713:(e,t,r)=>{"use strict";var n=r(6996),s=r(5006),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},86774:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.condition=l;var s=n(r(37539)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),i=r(32949);const a=t.CONDITION_NAME="date_before";function l(e,t){let[r]=t;const n=(0,s.default)(e.value,e.meta.dateFormat),o=(0,s.default)(r,e.meta.dateFormat);return!(!n.isValid()||!o.isValid())&&n.diff(o)<=0}(0,i.registerCondition)(a,l,{name:o.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},86867:(e,t,r)=>{"use strict";var n=r(35172);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},86907:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(72848),i=r(39738),a=r(74820);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"predefinedItems",(0,a.predefinedItems)()),(0,s.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,o.objectEach)(e,(e,r)=>{let n="";e.name===a.SEPARATOR?(t[a.SEPARATOR]=e,n=a.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,t[r]=e,n=e.key):(t[e.key]=e,n=e.key),this.defaultOrderPattern.push(n)}),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=[];let s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,o.isObject)(s)?(0,o.objectEach)(s,(e,t)=>{let s=r["string"==typeof e?e:t];s||(s=e),(0,o.isObject)(e)?(0,o.extend)(s,e):"string"==typeof s&&(s={name:s}),void 0===s.key&&(s.key=t),n.push(s)}):(0,i.arrayEach)(s,(e,t)=>{let s=r[e];!s&&a.ITEMS.indexOf(e)>=0||(s||(s={name:e,key:`${t}`}),(0,o.isObject)(e)&&(0,o.extend)(s,e),void 0===s.key&&(s.key=t),n.push(s))});return n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},86930:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,F.registerPlugin)(n.AutoColumnSize),(0,F.registerPlugin)(s.Autofill),(0,F.registerPlugin)(o.AutoRowSize),(0,F.registerPlugin)(a.BindRowsWithHeaders),(0,F.registerPlugin)(l.CollapsibleColumns),(0,F.registerPlugin)(h.ColumnSorting),(0,F.registerPlugin)(u.ColumnSummary),(0,F.registerPlugin)(c.Comments),(0,F.registerPlugin)(d.ContextMenu),(0,F.registerPlugin)(p.CopyPaste),(0,F.registerPlugin)(g.CustomBorders),(0,F.registerPlugin)(f.DragToScroll),(0,F.registerPlugin)(m.DropdownMenu),(0,F.registerPlugin)(E.ExportFile),(0,F.registerPlugin)(w.Filters),(0,F.registerPlugin)(y.Formulas),(0,F.registerPlugin)(C.HiddenColumns),(0,F.registerPlugin)(R.HiddenRows),(0,F.registerPlugin)(S.ManualColumnFreeze),(0,F.registerPlugin)(v.ManualColumnMove),(0,F.registerPlugin)(T.ManualColumnResize),(0,F.registerPlugin)(N.ManualRowMove),(0,F.registerPlugin)(M.ManualRowResize),(0,F.registerPlugin)(_.MergeCells),(0,F.registerPlugin)(b.MultiColumnSorting),(0,F.registerPlugin)(A.MultipleSelectionHandles),(0,F.registerPlugin)(I.NestedHeaders),(0,F.registerPlugin)(O.NestedRows),(0,F.registerPlugin)(x.PersistentState),(0,F.registerPlugin)(P.Search),(0,F.registerPlugin)(L.StretchColumns),(0,F.registerPlugin)(D.TouchScroll),(0,F.registerPlugin)(k.TrimRows),(0,F.registerPlugin)(H.UndoRedo)};var n=r(32351);t.AutoColumnSize=n.AutoColumnSize;var s=r(3681);t.Autofill=s.Autofill;var o=r(80141);t.AutoRowSize=o.AutoRowSize;var i=r(45098);t.BasePlugin=i.BasePlugin;var a=r(85025);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=r(95708);t.CollapsibleColumns=l.CollapsibleColumns;var h=r(33303);t.ColumnSorting=h.ColumnSorting;var u=r(80403);t.ColumnSummary=u.ColumnSummary;var c=r(88885);t.Comments=c.Comments;var d=r(9133);t.ContextMenu=d.ContextMenu;var p=r(64141);t.CopyPaste=p.CopyPaste;var g=r(32091);t.CustomBorders=g.CustomBorders;var f=r(2465);t.DragToScroll=f.DragToScroll;var m=r(86197);t.DropdownMenu=m.DropdownMenu;var E=r(51107);t.ExportFile=E.ExportFile;var w=r(64062);t.Filters=w.Filters;var y=r(94432);t.Formulas=y.Formulas;var C=r(79954);t.HiddenColumns=C.HiddenColumns;var R=r(80338);t.HiddenRows=R.HiddenRows;var S=r(74552);t.ManualColumnFreeze=S.ManualColumnFreeze;var v=r(31050);t.ManualColumnMove=v.ManualColumnMove;var T=r(14795);t.ManualColumnResize=T.ManualColumnResize;var N=r(13190);t.ManualRowMove=N.ManualRowMove;var M=r(14599);t.ManualRowResize=M.ManualRowResize;var _=r(93546);t.MergeCells=_.MergeCells;var b=r(60830);t.MultiColumnSorting=b.MultiColumnSorting;var A=r(56310);t.MultipleSelectionHandles=A.MultipleSelectionHandles;var I=r(35614);t.NestedHeaders=I.NestedHeaders;var O=r(18229);t.NestedRows=O.NestedRows;var x=r(14359);t.PersistentState=x.PersistentState;var P=r(79407);t.Search=P.Search;var L=r(24615);t.StretchColumns=L.StretchColumns;var D=r(44487);t.TouchScroll=D.TouchScroll;var k=r(39930);t.TrimRows=k.TrimRows;var H=r(52385);t.UndoRedo=H.UndoRedo;var F=r(76019);t.registerPlugin=F.registerPlugin,t.getPlugin=F.getPlugin,t.getPluginsNames=F.getPluginsNames},86943:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=o;var n=r(25772);const s=t.RENDERER_TYPE="dropdown";function o(e,t,r,s,o,i,a){n.autocompleteRenderer.apply(this,[e,t,r,s,o,i,a])}o.RENDERER_TYPE=s},86977:(e,t,r)=>{"use strict";var n=r(21313),s=r(14499),o=r(30845),i=r(18622),a=r(98304),l=r(78016),h=s.Set,u=s.add,c=s.has;e.exports=function(e){var t=n(this),r=i(e),s=new h;return o(t)>r.size?l(r.getIterator(),function(e){c(t,e)&&u(s,e)}):a(t,function(e){r.includes(e)&&u(s,e)}),s}},87028:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(90795);var s=n(r(53726)),o=r(72848),i=r(10530),a=r(18528);const l=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];t.ColumnStatesManager=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"sortingStates",new i.LinkedPhysicalIndexToValueMap),(0,s.default)(this,"sortEmptyCells",false),(0,s.default)(this,"indicator",true),(0,s.default)(this,"headerAction",true),(0,s.default)(this,"compareFunctionFactory",void 0),(0,s.default)(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,o.isObject)(e)&&(0,o.objectEach)(e,(e,t)=>{l.includes(t)&&(this[t]=e)})}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex(t=>{let[r]=t;return r===e})}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,o.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){if(null===this.sortingStates)return[];return this.sortingStates.getEntries().map(e=>{let[t,r]=e;return{column:this.hot.toVisualColumn(t),...r}})}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,a.isDefined)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}},87058:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[r,,n]=e;r-n!==0&&(t=1)}return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback(){const{from:t,to:r}=this.getSelectedRangeLast(),n=Math.max(Math.min(t.row,r.row),0),s=Math.max(t.row,r.row),o=[];for(let e=n;e<=s;e+=1)o.push(e);e.hideRows(o);const i=o[o.length-1],a=this.rowIndexMapper.getNearestNotHiddenIndex(i,1,!0);Number.isInteger(a)&&a>=0?this.selectRows(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},r(85639);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},87085:()=>{},87298:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.default=function(e,t){var r,n=this;let W=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Y=this;const G=new h.default(Y);let j,z,$,K,X,q,Q=!0;(0,N.hasValidParameter)(W)&&(0,N.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,N.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,N.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,"ht-wrapper"),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),this.rootWrapperElement.appendChild(this.rootElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const Z=null!==(r=null==t?void 0:t.layoutDirection)&&void 0!==r?r:"inherit",J=["rtl","ltr"].includes(Z)?Z:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",J),this.isRtl=function(){return"rtl"===J},this.isLtr=function(){return!Y.isRtl()},this.getDirectionFactor=function(){return Y.isLtr()?1:-1},this.stylesHandler=new H.StylesHandler(Y.rootElement,Y.rootDocument),t.language=(0,b.getValidLanguageCode)(t.language);const ee=Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return!(_.Hooks.getSingleton().isRegistered(t)||_.Hooks.getSingleton().isDeprecated(t))})),te=new O.MetaManager(Y,ee,[O.DynamicCellMetaMod,O.ExtendMetaPropertiesMod]),re=te.getTableMeta(),ne=te.getGlobalMeta(),se=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),(0,N.isRootInstance)(this)&&(0,i._injectProductInfo)(t.licenseKey,this.rootWrapperElement);this.guid=`ht_${(0,y.randomString)()}`,B.set(this.guid,this),this.columnIndexMapper=new T.IndexMapper,this.rowIndexMapper=new T.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterRowSequenceChange",e)}),G.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{Y.runHooks("beforeCompositionStart",e)}),z=new S.default(Y);const oe=(0,g.staticRegister)(this.guid);oe.register("cellRangeMapper",new U.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ie=new I.Selection(re,{rowIndexMapper:Y.rowIndexMapper,columnIndexMapper:Y.columnIndexMapper,countCols:()=>Y.countCols(),countRows:()=>Y.countRows(),propToCol:e=>j.propToCol(e),isEditorOpened:()=>!!Y.getActiveEditor()&&Y.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return n.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return n.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>Y.getShortcutManager(),createCellCoords:(e,t)=>Y._createCellCoords(e,t),createCellRange:(e,t,r)=>Y._createCellRange(e,t,r),visualToRenderableCoords:e=>{const{row:t,col:r}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(t):t,r>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(r):r)},renderableToVisualCoords:e=>{const{row:t,col:r}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getVisualFromRenderableIndex(t):t,r>=0?Y.columnIndexMapper.getVisualFromRenderableIndex(r):r)},findFirstNonHiddenRenderableRow:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),o=Y.rowIndexMapper.getNearestNotHiddenIndex(e,r);return null===o||1===r&&o>s||-1===r&&o<n?null:o>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(o):o},findFirstNonHiddenRenderableColumn:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),o=Y.columnIndexMapper.getNearestNotHiddenIndex(e,r);return null===o||1===r&&o>s||-1===r&&o<n?null:o>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(o):o},isDisabledCellSelection:(e,t)=>e<0||t<0?Y.getSettings().disableVisualSelection:Y.getCellMeta(e,t).disableVisualSelection});this.selection=ie;const ae=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function le(e,t){const r="className"===e?Y.rootElement:Y.table;if(Q)(0,s.addClass)(r,t);else{let n=[],o=[];ne[e]&&(n=Array.isArray(ne[e])?ne[e]:(0,d.stringToArray)(ne[e])),t&&(o=Array.isArray(t)?t:(0,d.stringToArray)(t));const i=(0,d.getDifferenceOfArrays)(n,o),a=(0,d.getDifferenceOfArrays)(o,n);i.length&&(0,s.removeClass)(r,i),a.length&&(0,s.addClass)(r,a)}ne[e]=t}function he(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ue(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ce(e,t,r){if(!e.length)return void r();const n=Y.getActiveEditor(),s=new he;let o=!0;s.onQueueEmpty=()=>{n&&o&&n.cancelChanges(),r()};for(let r=e.length-1;r>=0;r--){const[n,i]=e[r],a=j.propToCol(i);let l;l=Number.isInteger(a)?Y.getCellMeta(n,a):{...Object.getPrototypeOf(re),...re},Y.getCellValidator(l)&&(s.addValidatorToQueue(),Y.validateCell(e[r][3],l,function(t,r){return function(n){if("boolean"!=typeof n)throw new Error("Validation error: result is not boolean");!1===n&&!1===r.allowInvalid&&(o=!1,e.splice(t,1),r.valid=!0),s.removeValidatorFormQueue()}}(r,l),t))}s.checkIfQueueIsEmpty()}function de(e,t){for(let t=e.length-1;t>=0;t--){let r=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(re.allowInsertRow)for(;e[t][0]>Y.countRows()-1;){const{delta:e}=j.createRow(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}if("array"===Y.dataType&&(!re.columns||0===re.columns.length)&&re.allowInsertColumn)for(;j.propToCol(e[t][1])>Y.countCols()-1;){const{delta:e}=j.createCol(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}r||j.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){$.adjustRowsAndCols(),Y.runHooks("beforeChangeRender",e,t),K.closeEditor(),Y.render(),K.prepareEditor(),Y.view.adjustElementsSize(),Y.runHooks("afterChange",e,t||"edit");const r=Y.getActiveEditor();r&&(0,i.isDefined)(r.refreshValue)&&r.refreshValue()}else Y.render()}function pe(e,t,r){return Array.isArray(e)?e:[[e,t,r]]}function ge(e,t){const r=Y.runHooks("beforeChange",e,t||"edit"),n=e.filter(e=>null!==e);var s;if(!1===r||0===n.length)return null===(s=Y.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){const[t,r,,s]=n[e],o=j.propToCol(r);let a;a=Number.isInteger(o)?Y.getCellMeta(t,o):{...Object.getPrototypeOf(re),...re};const{type:l,checkedTemplate:h,uncheckedTemplate:u}=a;if("numeric"===l&&"string"==typeof s&&(0,C.isNumericLike)(s)&&(n[e][3]=ue(s)),"checkbox"===l){const t=(0,i.stringify)(s),r=t===(0,i.stringify)(h),o=t===(0,i.stringify)(u);(r||o)&&(n[e][3]=r?h:u)}}return n}this.columnIndexMapper.addLocalHook("cacheUpdated",ae),this.rowIndexMapper.addLocalHook("cacheUpdated",ae),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const r=(0,u.createObjectPropListener)(!1),n=this.selection.getSelectedRange(),{from:o,to:i}=n.current(),a=n.size()-1;this.runHooks("afterSelection",o.row,o.col,i.row,i.col,r,a),this.runHooks("afterSelectionByProp",o.row,Y.colToProp(o.col),i.row,Y.colToProp(i.col),r,a),t&&(!r.isTouched()||r.isTouched()&&!r.value)&&q.scrollTo(e);const l=ie.isSelectedByRowHeader(),h=ie.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ie.getSelectionSource())||K.closeEditor(null),"refresh"!==ie.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,u.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&q.scrollTo(e),K.closeEditor(),Y.view.render(),K.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:r,to:n}=e[t];this.runHooks("afterSelectionEnd",r.row,r.col,n.row,n.col,t),this.runHooks("afterSelectionEndByProp",r.row,Y.colToProp(r.col),n.row,Y.colToProp(n.col),t),"refresh"===ie.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{K.closeEditor(),Y.view.render(),(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterSelectRows",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),$={alter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const o=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[r]=e,[n]=t;return r===n?0:r>n?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[r,n]=t;const s=e[e.length-1],[o,i]=s,a=o+i;if(r<=a){const e=Math.max(n-(a-r),0);s[1]+=e}else e.push([r,n]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=Y.countSourceRows();if(re.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=j.createRow(t,r,{source:n,mode:a});ie.shiftRows(Y.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const u="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===u?Y.countSourceCols():0;const{delta:c,startPhysicalIndex:p}=j.createCol(t,r,{source:n,mode:u});if(c){if(Array.isArray(re.colHeaders)){const e=[Y.toVisualColumn(p),0];e.length+=c,Array.prototype.splice.apply(re.colHeaders,e)}ie.shiftColumns(Y.toVisualColumn(p),c)}break;case"remove_row":const g=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const o=(0,i.isEmpty)(r)?Y.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!j.removeRow(r,s,n))return;if(ie.isSelected()){const{row:e}=Y.getSelectedRangeLast().highlight;e>=r&&e<=r+s-1&&K.closeEditor(!0)}const a=Y.countRows(),l=re.fixedRowsTop;l>=o+1&&(re.fixedRowsTop-=Math.min(s,l-o));const h=re.fixedRowsBottom;if(h&&o>=a-h&&(re.fixedRowsBottom-=Math.min(s,h)),0===a)ie.deselect();else if("ContextMenu.removeRow"===n){const e=ie.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ie.refresh()}else ie.shiftRows(r,-s);t+=s})};Array.isArray(t)?g(o(t)):g([[t,r]]);break;case"remove_col":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const o=(0,i.isEmpty)(r)?Y.countCols()-1:Math.max(r-t,0);let a=Y.toPhysicalColumn(o);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!j.removeCol(r,s,n))return;if(ie.isSelected()){const{col:e}=Y.getSelectedRangeLast().highlight;e>=r&&e<=r+s-1&&K.closeEditor(!0)}if(0===Y.countCols())ie.deselect();else if("ContextMenu.removeColumn"===n){const e=ie.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ie.refresh()}else ie.shiftColumns(r,-s);const l=re.fixedColumnsStart;l>=o+1&&(re.fixedColumnsStart-=Math.min(s,l-o)),Array.isArray(re.colHeaders)&&(void 0===a&&(a=-1),re.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?f(o(t)):f([[t,r]]);break;default:throw new Error(`There is no such action "${e}"`)}s||$.adjustRowsAndCols(),Y.view.render(),Y.view.adjustElementsSize()},adjustRowsAndCols(){const e=re.minRows,t=re.minSpareRows,r=re.minCols,n=re.minSpareCols;if(e){const t=Y.countRows();t<e&&j.createRow(t,e-t,{source:"auto"})}if(t){const e=Y.countEmptyRows(!0);if(e<t){const r=t-e,n=Math.min(r,re.maxRows-Y.countSourceRows());j.createRow(Y.countRows(),n,{source:"auto"})}}{let e;(r||n)&&(e=Y.countEmptyCols(!0));let t=Y.countCols();if(r&&!re.columns&&t<r){const n=r-t;e+=n,j.createCol(t,n,{source:"auto"})}if(n&&!re.columns&&"array"===Y.dataType&&e<n){t=Y.countCols();const r=n-e,s=Math.min(r,re.maxCols-t);j.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,r,n,s){let o,i,a,l;const h=[],c={},p=[],g=e.row,f=e.col;if(i=t.length,0===i)return!1;let m=0,E=0;switch((0,u.isObject)(r)&&(m=r.col-f+1,E=r.row-g+1),s){case"shift_down":const s=(0,d.pivot)(t),w=s.length,y=Math.max(w,m),C=Y.getData().slice(g),R=(0,d.pivot)(C).slice(f,f+y);for(a=0;a<y;a+=1)if(a<w){for(o=0,i=s[a].length;o<E-i;o+=1)s[a].push(s[a][o%i]);a<R.length?p.push(s[a].concat(R[a])):p.push(s[a].concat(new Array(C.length).fill(null)))}else p.push(s[a%w].concat(R[a]));Y.populateFromArray(g,f,(0,d.pivot)(p));break;case"shift_right":const S=t.length,v=Math.max(S,E),T=Y.getData().slice(g).map(e=>e.slice(f));for(o=0;o<v;o+=1)if(o<S){for(a=0,l=t[o].length;a<m-l;a+=1)t[o].push(t[o][a%l]);if(o<T.length)for(let e=0;e<T[o].length;e+=1)t[o].push(T[o][e]);else t[o].push(...new Array(T[0].length).fill(null))}else t.push(t[o%i].slice(0,v).concat(T[o]));Y.populateFromArray(g,f,t);break;default:c.row=e.row,c.col=e.col;let N,M=0,_=0,b=!0;const A=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t[e%t.length];return null!==r?n[r%n.length]:n},I=t.length,O=r?r.row-e.row+1:0;for(i=r?O:Math.max(I,O),o=0;o<i&&!(r&&c.row>r.row&&O>I||!re.allowInsertRow&&c.row>Y.countRows()-1||c.row>=re.maxRows);o++){const t=o-M,s=A(t).length,d=r?r.col-e.col+1:0;if(l=r?d:Math.max(s,d),c.col=e.col,N=Y.getCellMeta(c.row,c.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!N.skipRowOnPaste){for(_=0,a=0;a<l&&!(r&&c.col>r.col&&d>s||!re.allowInsertColumn&&c.col>Y.countCols()-1||c.col>=re.maxCols);a++){if(N=Y.getCellMeta(c.row,c.col),("CopyPaste.paste"===n||"Autofill.fill"===n)&&N.skipColumnOnPaste){_+=1,c.col+=1,l+=1;continue}if(N.readOnly&&"UndoRedo.undo"!==n){c.col+=1;continue}let e=A(t,a-_),r=Y.getDataAtCell(c.row,c.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===r&&(r=[]),null===r||"object"!=typeof r)b=!1;else{const t=(0,u.duckSchema)(Array.isArray(r)?r:r[0]||r),n=(0,u.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,u.isObjectEqual)(t,n)||Array.isArray(t)&&Array.isArray(n)?e=(0,u.deepClone)(e):b=!1}else null!==r&&"object"==typeof r&&(b=!1);b&&h.push([c.row,c.col,e]),b=!0,c.col+=1}c.row+=1}else M+=1,c.row+=1,i+=1}Y.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.init=function(){z.setData(re.data),Y.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(Y.rootElement,"mobile"),this.updateSettings(t,!0),this.view=new R.default(this);const e=re.themeName||(0,k.getThemeClassName)(Y.rootContainer);Y.useTheme(e),K=l.default.getInstance(Y,re,ie),q=(0,x.createViewportScroller)(Y),X=new c.FocusManager(Y),(0,N.isRootInstance)(this)&&(0,x.installFocusCatcher)(Y),Y.runHooks("init"),this.render(),Q&&null===Y.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(Y.rootElement,()=>{Y.view._wt.wtOverlays.updateLastSpreaderSize(),Y.render(),Y.view.adjustElementsSize()}),"object"==typeof Q&&(Y.runHooks("afterChange",Q[0],Q[1]),Q=!1),Y.runHooks("afterInit")},this._createCellCoords=function(e,t){return Y.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,r){return Y.view._wt.createCellRange(e,t,r)},this.validateCell=function(e,t,r,n){let s=Y.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void r(e);const n=t.visualCol,s=t.visualRow,o=Y.getCell(s,n,!0);if(o&&"TH"!==o.nodeName){const e=Y.rowIndexMapper.getRenderableFromVisualIndex(s),t=Y.columnIndexMapper.getRenderableFromVisualIndex(n);Y.view._wt.getSetting("cellRenderer",e,t,o)}r(e)}var l;(0,i.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,o.isFunction)(s)?(e=Y.runHooks("beforeValidate",e,t.visualRow,t.prop,n),Y._registerImmediate(()=>{s.call(t,e,r=>{Y&&(r=Y.runHooks("afterValidate",r,e,t.visualRow,t.prop,n),t.valid=r,a(r),Y.runHooks("postAfterValidate",r,e,t.visualRow,t.prop,n))})})):Y._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,r,n){const s=pe(e,t,r),o=[];let i,a,l,h=n;for(i=0,a=s.length;i<a;i++){if("object"!=typeof s[i])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof s[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=s[i][1]>=this.countCols()?s[i][1]:j.colToProp(s[i][1]),o.push([s[i][0],l,z.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]])}h||"object"!=typeof e||(h=t);const u=ge(o,h);Y.runHooks("afterSetDataAtCell",u,h),ce(u,h,()=>{de(u,h)})},this.setDataAtRowProp=function(e,t,r,n){const s=pe(e,t,r),o=[];let i,a,l=n;for(i=0,a=s.length;i<a;i++)o.push([s[i][0],s[i][1],z.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);l||"object"!=typeof e||(l=t);const h=ge(o,n);Y.runHooks("afterSetDataAtRowProp",h,l),ce(h,l,()=>{de(h,l)})},this.listen=function(){Y&&!Y.isListening()&&(B.forEach(e=>{Y!==e&&e.unlisten()}),V=Y.guid,Y.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(V=null,Y.runHooks("afterUnlisten"))},this.isListening=function(){return V===Y.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];K.closeEditor(e),Y.view.render(),t&&ie.isSelected()&&K.prepareEditor()},this.populateFromArray=function(e,t,r,n,s,o,i){if("object"!=typeof r||"object"!=typeof r[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof n?Y._createCellCoords(n,s):null;return $.populateFromArray(Y._createCellCoords(e,t),r,a,o,i)},this.spliceCol=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),o=3;o<n;o++)s[o-3]=arguments[o];return j.spliceCol(e,t,r,...s)},this.spliceRow=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),o=3;o<n;o++)s[o-3]=arguments[o];return j.spliceRow(e,t,r,...s)},this.getSelected=function(){if(ie.isSelected())return(0,d.arrayMap)(ie.getSelectedRange(),e=>{let{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(ie.isSelected())return Array.from(ie.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!ie.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ie.getSelectedRange(),e=>{if(e.isSingleHeader())return;const r=e.getTopStartCorner(),n=e.getBottomEndCorner();(0,C.rangeEach)(r.row,n.row,e=>{(0,C.rangeEach)(r.col,n.col,r=>{this.getCellMeta(e,r).readOnly||t.push([e,r,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||Y.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||Y.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const r=e();return this.resumeExecution(t),r},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!Y.view)return;const e=Y.view,{width:t,height:r}=e.getLastSize(),{width:n,height:s}=Y.rootElement.getBoundingClientRect(),o=n!==t||s!==r;!1===Y.runHooks("beforeRefreshDimensions",{width:t,height:r},{width:n,height:s},o)||((o||e._wt.wtOverlays.scrollableElement===Y.rootWindow)&&(e.setLastSize(n,s),Y.render(),e.adjustElementsSize()),Y.runHooks("afterRefreshDimensions",{width:t,height:r},{width:n,height:s},o))},this.updateData=function(e,t){(0,O.replaceData)(e,e=>{j=e},e=>{j=e,Y.columnIndexMapper.fitToLength(this.getInitialColumnCount()),Y.rowIndexMapper.fitToLength(this.countSourceRows()),$.adjustRowsAndCols(),ie.refresh()},{hotInstance:Y,dataMap:j,dataSource:z,internalSource:"updateData",source:t,metaManager:te,firstRun:Q})},this.loadData=function(e,t){(0,O.replaceData)(e,e=>{j=e},()=>{te.clearCellsCache(),Y.initIndexMappers(),$.adjustRowsAndCols(),ie.refresh(),Q&&(Q=[null,"loadData"])},{hotInstance:Y,dataMap:j,dataSource:z,internalSource:"loadData",source:t,metaManager:te,firstRun:Q})},this.getInitialColumnCount=function(){const e=re.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,o.isFunction)(e))if("array"===Y.dataType){const r=this.countSourceCols();for(let n=0;n<r;n+=1)e(n)&&(t+=1)}else"object"!==Y.dataType&&"function"!==Y.dataType||(t=j.colToPropCache.length);else if((0,i.isDefined)(re.dataSchema)){const e=j.getSchema();t=Array.isArray(e)?e.length:(0,u.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,r,n){return(0,i.isUndefined)(e)?j.getAll():j.getRange(Y._createCellCoords(e,t),Y._createCellCoords(r,n),j.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,n){return j.getCopyableText(Y._createCellCoords(e,t),Y._createCellCoords(r,n))},this.getCopyableData=function(e,t){return j.getCopyable(e,j.colToProp(t))},this.getSchema=function(){return j.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=(Q?Y.loadData:Y.updateData).bind(this);let n,s,a=!1;if((0,i.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,i.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,i.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(n in e.language&&function(e){const t=(0,A.normalizeLanguageCode)(e);(0,b.hasLanguageDictionary)(t)?(Y.runHooks("beforeLanguageChange",t),ne.language=t,Y.runHooks("afterLanguageChange",t)):(0,A.warnUserAboutLanguageRegistration)(e)}(e.language),e)if("data"===n||"language"===n);else if("className"===n)le("className",e.className);else if("tableClassName"===n&&Y.table)le("tableClassName",e.tableClassName),Y.view._wt.wtOverlays.syncOverlayTableClassNames();else if(_.Hooks.getSingleton().isRegistered(n)||_.Hooks.getSingleton().isDeprecated(n)){const t=e[n];(0,o.isFunction)(t)?(_.Hooks.getSingleton().addAsFixed(n,t,Y),re[n]=t):Array.isArray(t)&&(_.Hooks.getSingleton().add(n,t,Y),re[n]=t)}else!t&&(0,u.hasOwnProperty)(e,n)&&(ne[n]=e[n]);void 0===e.data&&void 0===re.data?r(null,"updateSettings"):void 0!==e.data?r(e.data,"updateSettings"):void 0!==e.columns&&(j.createMap(),Y.initIndexMappers());const l=Y.countCols(),h=re.columns;if(h&&(0,o.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||te.clearCache(),l>0)for(n=0,s=0;n<l;n++){if(h){const e=a?h(n):h[s];e&&te.updateColumnMeta(s,e)}s+=1}(0,i.isDefined)(e.cell)&&(0,u.objectEach)(e.cell,e=>{Y.setCellMetaObject(e.row,e.col,e)}),Y.runHooks("afterCellMetaReset");let c=Y.rootElement.style.height;""!==c&&(c=parseInt(Y.rootElement.style.height,10));let d=e.height;if((0,o.isFunction)(d)&&(d=d()),t){Y.rootElement.getAttribute("style")&&Y.rootElement.setAttribute("data-initialstyle",Y.rootElement.getAttribute("style"))}if(null===d){const e=Y.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?Y.rootElement.setAttribute("style",e):(Y.rootElement.style.height="",Y.rootElement.style.overflow="")}else void 0!==d&&(Y.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,Y.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,o.isFunction)(t)&&(t=t()),Y.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(Y.view){Y.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),Y.view._wt.exportSettingsAsClassNames();const t=Y.getCurrentThemeName();(0,u.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&Y.useTheme(e.themeName)}Y.runHooks("afterUpdateSettings",e)}$.adjustRowsAndCols(),Y.view&&!Q&&(Y.render(),Y.view._wt.wtOverlays.adjustElementsSize()),t||!Y.view||""!==c&&""!==d&&void 0!==d||c===d||Y.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=Y.getSelectedLast();if(re.getValue){if((0,o.isFunction)(re.getValue))return re.getValue.call(Y);if(e)return Y.getData()[e[0][0]][re.getValue]}else if(e)return Y.getDataAtCell(e[0],e[1])},this.getSettings=function(){return re},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,r,n,s){$.alter(e,t,r,n,s)},this.getCell=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;n=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===n||void 0===s||void 0===n?null:Y.view.getCellAtCoords(Y._createCellCoords(s,n),r)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:r,col:n}=t;let s=r,o=n;return r>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(r)),n>=0&&(o=this.columnIndexMapper.getVisualFromRenderableIndex(n)),Y._createCellCoords(s,o)},this.colToProp=function(e){return j.colToProp(e)},this.propToCol=function(e){return j.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return j.get(e,j.colToProp(t))},this.getDataAtRowProp=function(e,t){return j.get(e,t)},this.getDataAtCol=function(e){const t=[],r=j.getRange(Y._createCellCoords(0,e),Y._createCellCoords(re.data.length-1,e),j.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getDataAtProp=function(e){const t=[],r=j.getRange(Y._createCellCoords(0,j.propToCol(e)),Y._createCellCoords(re.data.length-1,j.propToCol(e)),j.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getSourceData=function(e,t,r,n){let s;return s=void 0===e?z.getData():z.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(r,n)),s},this.getSourceDataArray=function(e,t,r,n){let s;return s=void 0===e?z.getData(!0):z.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(r,n),!0),s},this.getSourceDataAtCol=function(e){return z.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,r,n){const s=pe(e,t,r),o=this.hasHook("afterSetSourceDataAtCell"),a=[];o&&(0,d.arrayEach)(s,e=>{let[t,r,n]=e;a.push([t,r,z.getAtCell(t,r),n])}),(0,d.arrayEach)(s,e=>{let[t,r,n]=e;z.setAtCell(t,r,n)}),o&&this.runHooks("afterSetSourceDataAtCell",a,n),this.render();const l=Y.getActiveEditor();l&&(0,i.isDefined)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return z.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return z.getAtCell(e,t)},this.getDataAtRow=function(e){return j.getRange(Y._createCellCoords(e,0),Y._createCellCoords(e,this.countCols()-1),j.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,r,n){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,r,n],[o,i]=s;let[,,a,l]=s,h=null,u=null;void 0===a&&(a=o),void 0===l&&(l=i);let c="mixed";return(0,C.rangeEach)(Math.max(Math.min(o,a),0),Math.max(o,a),e=>{let t=!0;return(0,C.rangeEach)(Math.max(Math.min(i,l),0),Math.max(i,l),r=>{const n=this.getCellMeta(e,r);return u=n.type,h?t=h===u:h=u,t}),c=t?u:"mixed",t}),c},this.removeCellMeta=function(e,t,r){const[n,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let o=te.getCellMetaKeyValue(n,s,r);!1!==Y.runHooks("beforeRemoveCellMeta",e,t,r,o)&&(te.removeCellMeta(n,s,r),Y.runHooks("afterRemoveCellMeta",e,t,r,o)),o=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];if(n.length>0&&!Array.isArray(n[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&te.removeRow(this.toPhysicalRow(e),t),n.length>0&&(0,d.arrayEach)(n.reverse(),t=>{te.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,r)=>this.setCellMetaObject(e,r,t))}),Y.render()},this.setCellMetaObject=function(e,t,r){"object"==typeof r&&(0,u.objectEach)(r,(r,n)=>{this.setCellMeta(e,t,n,r)})},this.setCellMeta=function(e,t,r,n){if(!1===Y.runHooks("beforeSetCellMeta",e,t,r,n))return;let s=e,o=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(o=this.toPhysicalColumn(t)),te.setCellMeta(s,o,r,n),Y.runHooks("afterSetCellMeta",e,t,r,n)},this.getCellsMeta=function(){return te.getCellsMeta()},this.getCellMeta=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},n=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===n&&(n=e),null===s&&(s=t),te.getCellMeta(n,s,{visualRow:e,visualColumn:t,...r})},this.getColumnMeta=function(e){return te.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return te.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===Y.dataType||re.columns)},this.getCellRenderer=function(e,t){const r="number"==typeof e?Y.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof r?(0,m.getRenderer)(r):(0,i.isUndefined)(r)?(0,m.getRenderer)("text"):r},this.getCellEditor=function(e,t){const r="number"==typeof e?Y.getCellMeta(e,t).editor:e.editor;return"string"==typeof r?(0,E.getEditor)(r):(0,i.isUndefined)(r)?(0,E.getEditor)("text"):r},this.getCellValidator=function(e,t){const r="number"==typeof e?Y.getCellMeta(e,t).validator:e.validator;return"string"==typeof r?(0,w.getValidator)(r):r},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,r){const n=new he;e&&(n.onQueueEmpty=e);let s=Y.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=Y.countCols()-1;for(;e>=0;)void 0===r||-1!==r.indexOf(e)?(n.addValidatorToQueue(),Y.validateCell(Y.getDataAtCell(s,e),Y.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(n.valid=!1),n.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}n.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=re.rowHeaders,r=e;return void 0!==r&&(r=Y.runHooks("modifyRowHeader",r)),void 0===r?(t=[],(0,C.rangeEach)(Y.countRows()-1,e=>{t.push(Y.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[r]?t=t[r]:(0,o.isFunction)(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!re.rowHeaders},this.hasColHeaders=function(){if(void 0!==re.colHeaders&&null!==re.colHeaders)return!!re.colHeaders;for(let e=0,t=Y.countCols();e<t;e++)if(Y.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=Y.runHooks("modifyColHeader",e);if(void 0===r){const e=[],t=Y.countCols();for(let r=0;r<t;r++)e.push(Y.getColHeader(r));return e}let n=re.colHeaders;const s=Y.toPhysicalColumn(r),i=function(e){const t=[],r=Y.countCols();let n=0;for(;n<r;n++)(0,o.isFunction)(re.columns)&&re.columns(n)&&t.push(n);return t[e]}(s);return!1===re.colHeaders?n=null:re.columns&&(0,o.isFunction)(re.columns)&&re.columns(i)&&re.columns(i).title?n=re.columns(i).title:re.columns&&re.columns[s]&&re.columns[s].title?n=re.columns[s].title:Array.isArray(re.colHeaders)&&void 0!==re.colHeaders[s]?n=re.colHeaders[s]:(0,o.isFunction)(re.colHeaders)?n=re.colHeaders(s):re.colHeaders&&"string"!=typeof re.colHeaders&&"number"!=typeof re.colHeaders&&(n=(0,v.spreadsheetColumnLabel)(r)),n=Y.runHooks("modifyColumnHeaderValue",n,e,t),n},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=Y.getCellMeta(0,e).width}if(void 0!==t&&t!==re.width||(t=re.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let r=Y._getColWidthFromSettings(e);return r=Y.runHooks("modifyColWidth",r,e,t),void 0===r&&(r=M.DEFAULT_COLUMN_WIDTH),r},this._getRowHeightFromSettings=function(e){const t=Y.stylesHandler.getDefaultRowHeight();let r=re.rowHeights;if(null!=r){switch(typeof r){case"object":r=r[e];break;case"function":r=r(e)}"string"==typeof r&&(r=parseInt(r,10))}return null!=r&&r<t?t:r},this.getRowHeight=function(e,t){let r=Y._getRowHeightFromSettings(e);return r=Y.runHooks("modifyRowHeight",r,e,t),r},this.countSourceRows=function(){return z.countRows()},this.countSourceCols=function(){return z.countFirstRowKeys()},this.countRows=function(){return j.getLength()},this.countCols=function(){const e=re.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(Y.countRows()-1,r=>{if(Y.isEmptyRow(r))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(Y.countCols()-1,r=>{if(Y.isEmptyCol(r))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return re.isEmptyRow.call(Y,e)},this.isEmptyCol=function(e){return re.isEmptyCol.call(Y,e)},this.selectCell=function(e,t,r,n){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,i.isUndefined)(e)&&!(0,i.isUndefined)(t)&&this.selectCells([[e,t,r,n]],s,o)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&q.suspend();const r=ie.selectCells(e);return r&&t&&Y.listen(),q.resume(),r},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ie.selectColumns(e,t,r)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ie.selectRows(e,t,r)},this.deselectCell=function(){ie.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;q.skipNextScrollCycle(),ie.selectAll(e,t,r)};const fe=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var r;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(r=arguments[4])||void 0===r||r});const{row:n,col:s,considerHiddenIndexes:i}=null!=e?e:{};let a=n,l=s;if((0,o.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===i||i){const e=Number.isInteger(n)&&n>=0,t=Number.isInteger(s)&&s>=0,r=e?fe(this.rowIndexMapper,n):void 0,o=t?fe(this.columnIndexMapper,s):void 0;if(null===r||null===o)return!1;a=e?Y.rowIndexMapper.getRenderableFromVisualIndex(r):n,l=t?Y.columnIndexMapper.getRenderableFromVisualIndex(o):s}const h=Number.isInteger(a),u=Number.isInteger(l);let c=!1;return h&&a>=0&&u&&l>=0?c=Y.view.scrollViewport(Y._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(u&&l<0||!u)?c=Y.view.scrollViewportVertically(a,e.verticalSnap):u&&l>=0&&(h&&a<0||!h)&&(c=Y.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,o.isFunction)(t)&&(c?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),c},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,o.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast(),r=this.scrollViewportTo(t.toObject());return r?this.view.render():(0,o.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),r},this.destroy=function(){Y._clearTimeouts(),Y._clearImmediates(),Y.view&&Y.view.destroy(),z&&z.destroy(),z=null,this.getShortcutManager().destroy(),oe.clear(),te.clearCache(),B.delete(this.guid),G.destroy(),K&&K.destroy(),Y.rootContainer&&(0,s.empty)(Y.rootContainer),Y.rootPortalElement&&Y.rootPortalElement.remove(),Y.batchExecution(()=>{Y.rowIndexMapper.unregisterAll(),Y.columnIndexMapper.unregisterAll(),se.getItems().forEach(e=>{let[,t]=e;t.destroy()}),se.clear(),Y.runHooks("afterDestroy")},!0),_.Hooks.getSingleton().destroy(Y),(0,u.objectEach)(Y,(e,t,r)=>{var n;(0,o.isFunction)(e)?r[t]=(n=t,()=>{throw new Error(`The "${n}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(r[t]=null)}),Y.isDestroyed=!0,j&&j.destroy(),j=null,$=null,ie=null,K=null,Y=null},this.getActiveEditor=function(){return K.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return Y.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return Y.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return Y.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return Y.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return Y.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return Y.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return Y.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return Y.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return Y.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return Y.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return Y.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return Y.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return se.getItem((0,y.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:se.getId(e)},this.getInstance=function(){return Y},this.addHook=function(e,t,r){_.Hooks.getSingleton().add(e,t,Y,r)},this.hasHook=function(e){return _.Hooks.getSingleton().has(e,Y)||_.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,r){_.Hooks.getSingleton().once(e,t,Y,r)},this.removeHook=function(e,t){_.Hooks.getSingleton().remove(e,t,Y)},this.runHooks=function(e,t,r,n,s,o,i){return _.Hooks.getSingleton().run(Y,e,t,r,n,s,o,i)},this.getTranslatedPhrase=function(e,t){return(0,b.getTranslatedPhrase)(re.language,e,t)},this.toHTML=()=>(0,p.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,p.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!Q;this.stylesHandler.useTheme(e);const r=this.stylesHandler.getThemeName();(0,N.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),r&&((0,s.addClass)(this.rootWrapperElement,r),(0,s.addClass)(this.rootPortalElement,r),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,F.warn)(`The "${r}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`))),t||(Y.render(),Y.scrollViewportTo(0,0),(0,k.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),r&&(0,s.addClass)(this.rootContainer,r))),this.runHooks("afterSetTheme",r,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return K};const me=(0,L.createShortcutManager)({handleEvent:()=>Y.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||Y.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&me.releasePressedKeys()}),this.getShortcutManager=function(){return me},this.getFocusManager=function(){return X},(0,f.getPluginsNames)().forEach(e=>{const t=(0,f.getPlugin)(e);se.addItem(e,new t(this))}),(0,D.registerAllShortcutContexts)(Y),me.setActiveContextName("grid"),_.Hooks.getSingleton().run(Y,"construct")},r(88443),r(85639),r(41846),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(7307),r(69326),r(90795),r(57);var s=r(85180),o=r(28275),i=r(18528),a=r(28627),l=n(r(10289)),h=n(r(54138)),u=r(72848),c=r(20866),d=r(39738),p=r(42982),g=r(88248),f=r(76019),m=r(28927),E=r(8253),w=r(44694),y=r(28222),C=r(35782),R=n(r(95632)),S=n(r(47703)),v=r(29363),T=r(10530),N=r(56484),M=r(93629),_=r(15886),b=r(5755),A=r(96907),I=r(11072),O=r(43528),x=r(80737),P=r(88529),L=r(38041),D=r(79104),k=r(83457),H=r(3609),F=r(51278),U=r(80536);let V=null;const B=new Map;new Set},87513:()=>{},87530:(e,t,r)=>{"use strict";var n=r(71652),s=r(46507),o=r(26213),i=function(e){return function(t,r,i){var a=n(t),l=o(a);if(0===l)return!e&&-1;var h,u=s(i,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:i(!0),indexOf:i(!1)}},88005:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},88248:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var n;return null==r||null===(n=r.get(e.guid))||void 0===n?void 0:n.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);const t=r.get(e);return{register:function(e,r){t.set(e,r)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){r.delete(e),t.clear()}}};const r=t.collection=new Map},88259:(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 o.MultipleSelectUI?r:!(n.element&&!(0,s.isVisible)(n.element))&&void n.focus()}})};var n=r(92748),s=r(85180),o=r(19445)},88291:(e,t,r)=>{"use strict";var n=r(76277),s=r(64976),o=r(65985),i=r(86713),a=r(77618),l=r(74218),h=r(63884),u=r(69498)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{i(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},88300:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}};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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="col_right"},88345:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47236);t.CELL_TYPE=n.CELL_TYPE,t.PasswordCellType=n.PasswordCellType},88356:()=>{},88443:(e,t,r)=>{"use strict";var n=r(76277),s=r(88005),o=r(13150),i=r(41512),a="WebAssembly",l=s[a],h=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=i(e,t,h),n({global:!0,constructor:!0,arity:1,forced:h},r)},c=function(e,t){if(l&&l[e]){var r={};r[e]=i(a+"."+e,t,h),n({target:a,stat:!0,constructor:!0,arity:1,forced:h},r)}};u("Error",function(e){return function(t){return o(e,this,arguments)}}),u("EvalError",function(e){return function(t){return o(e,this,arguments)}}),u("RangeError",function(e){return function(t){return o(e,this,arguments)}}),u("ReferenceError",function(e){return function(t){return o(e,this,arguments)}}),u("SyntaxError",function(e){return function(t){return o(e,this,arguments)}}),u("TypeError",function(e){return function(t){return o(e,this,arguments)}}),u("URIError",function(e){return function(t){return o(e,this,arguments)}}),c("CompileError",function(e){return function(t){return o(e,this,arguments)}}),c("LinkError",function(e){return function(t){return o(e,this,arguments)}}),c("RuntimeError",function(e){return function(t){return o(e,this,arguments)}})},88476:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(63881),i=r(19487);t.OrderView=class{constructor(e,t){(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"nodesPool",void 0),(0,s.default)(this,"sizeSet",new o.ViewSizeSet),(0,s.default)(this,"collectedNodes",[]),(0,s.default)(this,"viewDiffer",new i.ViewDiffer(this.sizeSet)),(0,s.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[r,n,s,o]=e,i=this.nodesPool(n);switch(this.collectedNodes.push(i),r){case"prepend":t.insertBefore(i,t.firstChild);break;case"append":t.appendChild(i);break;case"insert_before":t.insertBefore(i,this.nodesPool(s)),t.removeChild(this.nodesPool(o));break;case"replace":t.replaceChild(i,this.nodesPool(s));break;case"remove":t.removeChild(i)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},88529:(e,t,r)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function r(){return[...t]}function o(e){return t.has(e)}return e=(0,n.isFunction)(e)?e:s,{addItem:function(r,n){if(o(r))throw new Error(e(r));t.set(r,n)},clear:function(){t.clear()},getId:function(e){const[t]=r().find(t=>{let[r,n]=t;return e===n&&r})||[null];return t},getItem:function(e){return t.get(e)},getItems:r,hasItem:o,removeItem:function(e){return t.delete(e)}}},r(88443),r(73741),r(37782);var n=r(28275);const s=e=>`The id '${e}' is already declared in a map.`},88663:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,g.registerEditor)(s.BaseEditor),(0,g.registerEditor)(n.AutocompleteEditor),(0,g.registerEditor)(o.CheckboxEditor),(0,g.registerEditor)(i.DateEditor),(0,g.registerEditor)(a.DropdownEditor),(0,g.registerEditor)(l.HandsontableEditor),(0,g.registerEditor)(h.NumericEditor),(0,g.registerEditor)(u.PasswordEditor),(0,g.registerEditor)(c.SelectEditor),(0,g.registerEditor)(d.TextEditor),(0,g.registerEditor)(p.TimeEditor)};var n=r(14236);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var s=r(58045);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var o=r(6941);t.CheckboxEditor=o.CheckboxEditor,t.CHECKBOX_EDITOR=o.EDITOR_TYPE;var i=r(82704);t.DateEditor=i.DateEditor,t.DATE_EDITOR=i.EDITOR_TYPE;var a=r(76749);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(99325);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(86413);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=r(64941);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=r(76460);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=r(20903);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var p=r(72993);t.TimeEditor=p.TimeEditor,t.TIME_EDITOR=p.EDITOR_TYPE;var g=r(8253);t.registerEditor=g.registerEditor,t.RegisteredEditor=g.RegisteredEditor,t._getEditorInstance=g._getEditorInstance,t.getEditor=g.getEditor,t.getEditorInstance=g.getEditorInstance,t.getRegisteredEditorNames=g.getRegisteredEditorNames,t.getRegisteredEditors=g.getRegisteredEditors,t.hasEditor=g.hasEditor},88780:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeLast().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===n&&(n=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},88885:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(28863);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Comments=n.Comments},88921:()=>{},88928:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(7081);t.RENDERER_TYPE=n.RENDERER_TYPE,t.selectRenderer=n.selectRenderer},88969:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326),r(82141);var s=n(r(53726)),o=r(39738),i=r(51278);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,o.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,o.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 i=!(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,o.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,o.arrayEach)(h,e=>{this.extendEndpointRanges(e,c,n[0],n.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,o.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,c)}),i&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,r,n){(0,o.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,o.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,o.arrayEach)(n,e=>{let t=[];(0,o.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,o.arrayEach)(e.ranges,r=>{(0,o.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,o.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,o.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,o.arrayEach)(e,(e,r,n)=>{`${e[2]||""}`!=`${e[3]}`&&(0,o.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(n[r][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,o.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,i.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},89022:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownValidator=o;var n=r(41054);const s=t.VALIDATOR_TYPE="dropdown";function o(e,t){n.autocompleteValidator.apply(this,[e,t])}o.VALIDATOR_TYPE=s},89151:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(45098),i=r(15886),a=r(85180),l=r(39738),h=r(18528),u=r(96012);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")}i.Hooks.getSingleton().register("modifyAutofillRange"),i.Hooks.getSingleton().register("beforeAutofill"),i.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",g=t.PLUGIN_PRIORITY=20,f=["fillHandle"];var m=new WeakSet;class E extends o.BasePlugin{constructor(){super(...arguments),c(this,m),(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 g}static get SETTING_KEYS(){return[p,...f]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>d(m,this,y).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>d(m,this,w).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>d(m,this,C).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){const e=this.hot.getSelectedRangeLast(),{row:t,col:r}=e.getTopStartCorner(),{row:n,col:s}=e.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:t,startCol:r,endRow:n,endCol:s}]),i=[],a=[],h=[];return(0,l.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===i.indexOf(t)&&i.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===a.indexOf(t)&&a.push(t)}),(0,l.arrayEach)(i,e=>{const t=[];(0,l.arrayEach)(a,r=>{t.push(this.hot.getCopyableData(e,r))}),h.push(t)}),h}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(),o=s.getTopStartCorner(),i=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[o.row,o.col,i.row,i.col],l=this.hot.runHooks("modifyAutofillRange",[Math.min(o.row,e),Math.min(o.col,t),Math.max(i.row,r),Math.max(i.col,n)],a),{directionOfDrag:h,startOfDragCoords:c,endOfDragCoords:d}=(0,u.getDragDirectionAndRange)(a,l,(e,t)=>this.hot._createCellCoords(e,t));if(c&&c.row>-1&&c.col>-1){const e=this.getSelectionData(),t=s.clone(),r=this.hot._createCellRange(c,c,d),n=this.hot.runHooks("beforeAutofill",e,t,r,h);if(!1===n)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=n;const i=n;if(["up","left"].indexOf(h)>-1&&(1!==i.length||0!==i[0].length))if(o=[],"up"===h){const e=d.row-c.row+1,t=e%i.length;for(let r=0;r<e;r++)o.push(i[(r+(i.length-t))%i.length])}else{const e=d.col-c.col+1,t=e%i[0].length;for(let r=0;r<i.length;r++){o.push([]);for(let n=0;n<e;n++)o[r].push(i[r][(n+(i[r].length-t))%i[r].length])}}this.hot.populateFromArray(c.row,c.col,o,d.row,d.col,`${this.pluginName}.fill`,null),this.setSelection(l),this.hot.runHooks("afterAutofill",o,t,r,h),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(u.DIRECTIONS.vertical)&&this.directions.includes(u.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(u.DIRECTIONS.vertical))n=this.hot._createCellCoords(e.row,r.col);else{if(!this.directions.includes(u.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,h.isEmpty)(e))return-1}const r=t[s][e[1]-1],o=t[s][e[3]+1];(0,h.isEmpty)(r)&&(0,h.isEmpty)(o)||(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,l.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",()=>d(m,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>d(m,this,S).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,u.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function w(){this.selectAdjacent()&&this.fillIn()}function y(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function C(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 S(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},89176:(e,t,r)=>{"use strict";var n=r(25225),s=r(82314),o=r(53385),i=Object,a=n("".split);e.exports=s(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):i(e)}:i},89292:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,r,s,o){const i=["visualRow","visualCol","row","col","prop"],a=i.length,l=[];return(0,n.rangeEach)(s,o,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===i.includes(t)}));l.push([r.visualRow,r.visualCol,e])}})}),l},r(85639),r(41846),r(73741),r(7307);var n=r(35782)},89393:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(10100);t.command={name:"editorOpen",callback(e,t,r){const s=e._getEditorManager(),o=e.getSelectedRangeLast(),{highlight:i}=o;if(e.selection.isMultiple()&&!o.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const n=e.getSettings(),s="function"==typeof n.enterMoves?n.enterMoves(t):n.enterMoves;return void(r.includes("shift")?e.selection.transformFocus(-s.row,-s.col):e.selection.transformFocus(s.row,s.col))}i.isHeader()||(e.getSettings().enterBeginsEditing?s.cellProperties.readOnly?s.moveSelectionAfterEnter(t):s.openEditor(null,t,!0):s.moveSelectionAfterEnter(t),(0,n.stopImmediatePropagation)(t))}}},89494:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},89577:()=>{},89626:(e,t,r)=>{"use strict";var n=r(42806),s=r(36697),o=r(214),i=r(50916),a=r(92754)("iterator");e.exports=function(e){if(!o(e))return s(e,a)||s(e,"@@iterator")||i[n(e)]}},89663:(e,t,r)=>{"use strict";r(77914)},89711:(e,t,r)=>{"use strict";var n=r(76277),s=r(23473),o=r(96068);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:s})},89880:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,checkable:!0,ariaChecked(){return(0,n.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(o.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.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var n=r(45624),s=r(39738),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const i=t.KEY="make_read_only"},89960:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(72848),s=r(36721);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 i(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;class c extends s.BaseUI{static get DEFAULTS(){return(0,n.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,n.extend)(c.DEFAULTS,t)),o(this,h,void 0),o(this,u,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),a(u,this,e),a(h,this,this._element.firstChild),i(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(i(u,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&i(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(i(h,this).checked=e)}focus(){this.isBuilt()&&i(h,this).focus()}}t.RadioInputUI=c},90086:(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
291
+ \`disjunction\` and \`conjunction\`.`);const p=this.getConditions(e);0===p.length?this.filteringStates.setValueAtIndex(e,{operation:r,conditions:[{name:a,args:o,func:(0,l.getCondition)(a,o)}]},n):p.push({name:a,args:o,func:(0,l.getCondition)(a,o)}),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(p),this.filteringStates=null,this.clearLocalHooks()}}(0,o.mixin)(g,a.default);t.default=g},66129:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{highlight:n,from:s,to:o}=e.getSelectedRangeLast(),i=n.isHeader()&&t.isSelectedByColumnHeader();if(n.isCell()||i){const a=r.getNearestNotHiddenIndex(...e.isRtl()?[0,1]:[e.countCols()-1,-1]),l=s.clone();l.col=n.col,t.markSource("keyboard"),t.setRangeStart(l,void 0,!1,n.clone()),i&&t.selectedByColumnHeader.add(t.getLayerLevel()),t.setRangeEnd(e._createCellCoords(o.row,a)),t.markEndSource()}}}},66216:(e,t,r)=>{"use strict";t.__esModule=!0,t.createKeysObserver=function(){const e=new Set;return{press(t){e.add(t)},release(t){e.delete(t)},releaseAll(){e.clear()},isPressed:t=>e.has(t)}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675)},66320:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.condition=l;var s=n(r(37539)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),i=r(32949);const a=t.CONDITION_NAME="date_today";function l(e){const t=(0,s.default)(e.value,e.meta.dateFormat);return!!t.isValid()&&t.isSame((0,s.default)().startOf("day"),"d")}(0,i.registerCondition)(a,l,{name:o.FILTERS_CONDITIONS_TODAY,inputsCount:0})},66329:(e,t,r)=>{"use strict";var n=r(19895),s=r(19952);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},66385:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(97122),r(7678);var s=n(r(53726));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:o}=t;r>=n&&r+o<=s&&(null===this.startRow&&(this.startRow=e),this.endRow=e)}finalize(e){var t;const{scrollOffset:r,viewportHeight:n,horizontalScrollbarHeight:s,totalRows:o,needReverse:i,startPositions:a,rowHeight:l}=e;if(this.endRow===o-1&&i)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,o<this.endRow&&(this.endRow=o-1),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}}},66627:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(69326);var s=n(r(53726));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)}}},66825:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){if(Array.isArray(e)&&Number.isInteger(t))return e[t];return e}},66948:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},67176:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(60995);var s=n(r(87298)),o=r(56484),i=r(43528),a=r(15886),l=r(5755),h=r(60532),u=r(4675),c=r(58045),d=r(93629);function p(e,t){const r=new s.default(e,t||{},o.rootInstanceSymbol);return r.init(),r}t.CellCoords=d.CellCoords,t.CellRange=d.CellRange,(0,h.registerCellType)(u.TextCellType),p.editors={BaseEditor:c.BaseEditor},p.Core=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(e,t,o.rootInstanceSymbol)},p.DefaultSettings=(0,i.metaSchemaFactory)(),p.hooks=a.Hooks.getSingleton(),p.CellCoords=d.CellCoords,p.CellRange=d.CellRange,p.packageName="handsontable",p.buildDate="08/07/2025 07:58:24",p.version="0.0.0-next-9047f21-20250708",p.languages={dictionaryKeys:l.dictionaryKeys,getLanguageDictionary:l.getLanguageDictionary,getLanguagesDictionaries:l.getLanguagesDictionaries,registerLanguageDictionary:l.registerLanguageDictionary,getTranslatedPhrase:l.getTranslatedPhrase};t.default=p},67261:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326);var s=n(r(53726)),o=r(85180),i=r(28275),a=n(r(37700)),l=n(r(37120)),h=r(37269),u=n(r(96681)),c=n(r(58343)),d=r(84378),p=r(42663);t.default=class{constructor(e,t,r,n,i){(0,s.default)(this,"wtSettings",null),(0,s.default)(this,"domBindings",void 0),(0,s.default)(this,"TBODY",null),(0,s.default)(this,"THEAD",null),(0,s.default)(this,"COLGROUP",null),(0,s.default)(this,"hasTableHeight",!0),(0,s.default)(this,"hasTableWidth",!0),(0,s.default)(this,"isTableVisible",!1),(0,s.default)(this,"tableOffset",0),(0,s.default)(this,"holderOffset",0),this.domBindings=r,this.isMaster="master"===i,this.name=i,this.dataAccessObject=e,this.facadeGetter=t,this.wtSettings=n,this.instance=this.dataAccessObject.wot,this.wot=this.dataAccessObject.wot,this.TABLE=r.rootTable,(0,o.removeTextNodes)(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.isMaster&&this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.rowFilter=null,this.columnFilter=null,this.correctHeaderWidth=!1;const a=this.wtSettings.getSettingPure("rowHeaderWidth");this.wtSettings.update("rowHeaderWidth",()=>this._modifyRowHeaderWidth(a)),this.rowUtils=new c.default(this.dataAccessObject,this.wtSettings),this.columnUtils=new u.default(this.dataAccessObject,this.wtSettings),this.tableRenderer=new h.Renderer({TABLE:this.TABLE,THEAD:this.THEAD,COLGROUP:this.COLGROUP,TBODY:this.TBODY,rowUtils:this.rowUtils,columnUtils:this.columnUtils,cellRenderer:this.wtSettings.getSettingPure("cellRenderer"),stylesHandler:this.wtSettings.getSetting("stylesHandler")})}is(e){return this.name===e}fixTableDomTree(){const e=this.domBindings.rootDocument;this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=e.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=e.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=e.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD))}createSpreader(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtSpreader",t&&t.insertBefore(r,e),r.appendChild(e)),r.style.position="relative",this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHider(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.className="wtHider",t&&t.insertBefore(r,e),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}createHolder(e){const t=e.parentNode;let r;return t&&t.nodeType===Node.ELEMENT_NODE&&(0,o.hasClass)(t,"wtHolder")||(r=this.domBindings.rootDocument.createElement("div"),r.style.position="relative",r.className="wtHolder",this.isMaster&&(0,o.setAttribute)(r,[(0,p.A11Y_TABINDEX)(-1)]),t&&t.insertBefore(r,e),this.isMaster&&(r.parentNode.className+="ht_master handsontable",r.parentNode.setAttribute("dir",this.wtSettings.getSettingPure("rtlMode")?"rtl":"ltr"),this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r.parentNode,[(0,p.A11Y_PRESENTATION)()])),r.appendChild(e)),this.wtSettings.getSetting("ariaTags")&&(0,o.setAttribute)(r,[(0,p.A11Y_PRESENTATION)()]),r}draw(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{wtSettings:t}=this,{wtOverlays:r,wtViewport:n}=this.dataAccessObject,s=t.getSetting("totalRows"),i=t.getSetting("totalColumns"),h=t.getSetting("rowHeaders"),u=h.length,c=t.getSetting("columnHeaders"),p=c.length;let g=e;if(this.isMaster&&(r.beforeDraw(),this.holderOffset=(0,o.offset)(this.holder),g=n.createCalculators(g),u&&!t.getSetting("fixedColumnsStart"))){const e=r.inlineStartOverlay.getScrollPosition(),t=this.correctHeaderWidth;this.correctHeaderWidth=0!==e,t!==this.correctHeaderWidth&&(g=!1)}if(g)this.isMaster&&r.refresh(!0);else{this.isMaster?this.tableOffset=(0,o.offset)(this.TABLE):this.tableOffset=this.dataAccessObject.parentTableOffset;const e=Math.max(this.getFirstRenderedRow(),0),t=Math.max(this.getFirstRenderedColumn(),0);this.rowFilter=new l.default(e,s,p),this.columnFilter=new a.default(t,i,u);let g=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();const e={};this.wtSettings.getSetting("beforeDraw",!0,e),g=!0!==e.skipRender}g&&(this.tableRenderer.setHeaderContentRenderers(h,c),(this.is(d.CLONE_BOTTOM)||this.is(d.CLONE_BOTTOM_INLINE_START_CORNER))&&this.tableRenderer.setHeaderContentRenderers(h,[]),this.resetOversizedRows(),this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(d.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster?(this.wtSettings.getSetting("externalRowCalculator")||n.createVisibleCalculators(),r.refresh(!1),r.applyToDOM(),this.wtSettings.getSetting("onDraw",!0)):this.is(d.CLONE_BOTTOM)&&this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize())}let f=!1;return this.isMaster&&(f=r.topOverlay.resetFixedPosition(),r.bottomOverlay.clone&&(f=r.bottomOverlay.resetFixedPosition()||f),f=r.inlineStartOverlay.resetFixedPosition()||f,r.topInlineStartCornerOverlay&&r.topInlineStartCornerOverlay.resetFixedPosition(),r.bottomInlineStartCornerOverlay&&r.bottomInlineStartCornerOverlay.clone&&r.bottomInlineStartCornerOverlay.resetFixedPosition()),f?(r.refreshAll(),r.adjustElementsSize()):this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(g),this.isMaster&&r.afterDraw(),this.dataAccessObject.drawn=!0,this}markIfOversizedColumnHeader(e){const t=this.columnFilter.renderedToSource(e);let r=this.wtSettings.getSetting("columnHeaders").length;const n=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let s,i,a;const l=this.wtSettings.getSetting("columnHeaderHeight")||[];for(;r;)r-=1,s=this.getColumnHeaderHeight(r),i=this.getColumnHeader(t,r),i&&(a=(0,o.innerHeight)(i),(!s&&n<a||s<a)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=a),Array.isArray(l)?null!==l[r]&&void 0!==l[r]&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]):isNaN(l)||(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l),this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]<(l[r]||l)&&(this.dataAccessObject.wtViewport.oversizedColumnHeaders[r]=l[r]||l))}adjustColumnHeaderHeights(){const{wtSettings:e}=this,t=this.THEAD.childNodes,r=this.dataAccessObject.wtViewport.oversizedColumnHeaders;for(let n=0,s=e.getSetting("columnHeaders").length;n<s;n++)if(r[n]){if(!t[n]||0===t[n].childNodes.length)return;t[n].childNodes[0].style.height=`${r[n]}px`}}resetOversizedRows(){const{wtSettings:e}=this,{wtViewport:t}=this.dataAccessObject;if((this.isMaster||this.is(d.CLONE_BOTTOM))&&!e.getSetting("externalRowCalculator")){const e=this.getRenderedRowsCount();for(let r=0;r<e;r++){const e=this.rowFilter.renderedToSource(r);t.oversizedRows&&t.oversizedRows[e]&&(t.oversizedRows[e]=void 0)}}}getCell(e){let t=e.row,r=e.col;const n=this.wtSettings.getSetting("onModifyGetCellCoords",t,r,!this.isMaster,"render");if(n&&Array.isArray(n)&&([t,r]=n),this.isRowBeforeRenderedRows(t))return-1;if(this.isRowAfterRenderedRows(t))return-2;if(this.isColumnBeforeRenderedColumns(r))return-3;if(this.isColumnAfterRenderedColumns(r))return-4;const s=this.getRow(t);if(!s&&t>=0)throw new Error("TR was expected to be rendered but is not");const o=s.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)];if(!o&&r>=0)throw new Error("TD or TH was expected to be rendered but is not");return o}getRow(e){let t=null,r=null;var n,s;e<0?(t=null===(n=this.rowFilter)||void 0===n?void 0:n.sourceRowToVisibleColHeadedRow(e),r=this.THEAD):(t=null===(s=this.rowFilter)||void 0===s?void 0:s.sourceToRendered(e),r=this.TBODY);return void 0!==t&&void 0!==r&&(!(r.childNodes.length<t+1)&&r.childNodes[t])}getColumnHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.THEAD.childNodes[t];return null==r?void 0:r.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}getColumnHeaders(e){const t=[],r=this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e);return this.THEAD.childNodes.forEach(e=>{const n=e.childNodes[r];n&&t.push(n)}),t}getRowHeader(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>=this.wtSettings.getSetting("rowHeaders").length)return;const r=this.rowFilter.sourceToRendered(e),n=r<0?this.rowFilter.sourceRowToVisibleColHeadedRow(e):r,s=(r<0?this.THEAD:this.TBODY).childNodes[n];return null==s?void 0:s.childNodes[t]}getRowHeaders(e){const t=[],r=this.wtSettings.getSetting("rowHeaders").length;for(let n=0;n<r;n++){const r=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)],s=null==r?void 0:r.childNodes[n];s&&t.push(s)}return t}getCoords(e){let t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=(0,o.closest)(t,["TD","TH"])),null===t)return null;const r=t.parentNode;if(!r)return null;const n=r.parentNode;let s=(0,o.index)(r),i=t.cellIndex;if((0,o.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_TOP,t,this.wtRootElement))"THEAD"===n.nodeName&&(s-=n.childNodes.length);else if((0,o.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_BOTTOM,t,this.wtRootElement)){s=this.wtSettings.getSetting("totalRows")-n.childNodes.length+s}else n===this.THEAD?s=this.rowFilter.visibleColHeadedRowToSourceRow(s):this.rowFilter&&(s=this.rowFilter.renderedToSource(s));(0,o.overlayContainsElement)(d.CLONE_TOP_INLINE_START_CORNER,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_INLINE_START,t,this.wtRootElement)||(0,o.overlayContainsElement)(d.CLONE_BOTTOM_INLINE_START_CORNER,t,this.wtRootElement)?i=this.columnFilter.offsettedTH(i):this.columnFilter&&(i=this.columnFilter.visibleRowHeadedColumnToSourceColumn(i));const a=this.wtSettings.getSetting("onModifyGetCoordsElement",s,i);return a&&Array.isArray(a)&&([s,i]=a),this.wot.createCellCoords(s,i)}markOversizedRows(){if(this.wtSettings.getSetting("externalRowCalculator"))return;let e=this.TBODY.childNodes.length;const t=this.wtSettings.getSetting("stylesHandler"),r=e*t.getDefaultRowHeight(),n=(0,o.innerHeight)(this.TBODY)-1,s=t.areCellsBorderBox(),i=s?o.outerHeight:o.innerHeight,a=s?0:1,l=s?1:0;let h,u,c,d,p;if(r!==n||this.wtSettings.getSetting("fixedRowsBottom"))for(;e;){e-=1,c=this.rowFilter.renderedToSource(e),h=this.getRowHeight(c),d=this.getTrForRow(c),p=d.querySelector("th");const r=0===c?l:0;u=p?i(p):i(d)-a,(!h&&t.getDefaultRowHeight()<u-r||h<u)&&(s||(u+=1),this.dataAccessObject.wtViewport.oversizedRows[c]=u)}}getTrForRow(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]}isColumnHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("rowHeaders").length;return Math.abs(e)<=t}isRowHeaderRendered(e){if(e>=0)return!1;const t=this.wtSettings.getSetting("columnHeaders").length;return Math.abs(e)<=t}isRowBeforeRenderedRows(e){const t=this.getFirstRenderedRow();return e<0&&t<=0?!this.isRowHeaderRendered(e):e<t}isRowAfterRenderedRows(e){return e>this.getLastRenderedRow()}isColumnBeforeRenderedColumns(e){const t=this.getFirstRenderedColumn();return e<0&&t<=0?!this.isColumnHeaderRendered(e):e<t}isColumnAfterRenderedColumns(e){return this.columnFilter&&e>this.getLastRenderedColumn()}isColumnAfterViewport(e){return this.columnFilter&&e>this.getLastVisibleColumn()}isRowAfterViewport(e){return this.rowFilter&&e>this.getLastVisibleRow()}isColumnBeforeViewport(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}isLastRowFullyVisible(){return this.getLastVisibleRow()===this.getLastRenderedRow()}isLastColumnFullyVisible(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}allRowsInViewport(){return this.wtSettings.getSetting("totalRows")===this.getVisibleRowsCount()}allColumnsInViewport(){return this.wtSettings.getSetting("totalColumns")===this.getVisibleColumnsCount()}getRowHeight(e){return this.rowUtils.getHeight(e)}getColumnHeaderHeight(e){return this.columnUtils.getHeaderHeight(e)}getColumnWidth(e){return this.columnUtils.getWidth(e)}hasDefinedSize(){return this.hasTableHeight&&this.hasTableWidth}getWidth(){return(0,o.outerWidth)(this.TABLE)}getHeight(){return(0,o.outerHeight)(this.TABLE)}getTotalWidth(){const e=(0,o.outerWidth)(this.hider);return 0!==e?e:this.getWidth()}getTotalHeight(){const e=(0,o.outerHeight)(this.hider);return 0!==e?e:this.getHeight()}isVisible(){return(0,o.isVisible)(this.TABLE)}_modifyRowHeaderWidth(e){let t=(0,i.isFunction)(e)?e():null;return Array.isArray(t)?(t=[...t],t[t.length-1]=this._correctRowHeaderWidth(t[t.length-1])):t=this._correctRowHeaderWidth(t),t}_correctRowHeaderWidth(e){let t=e;return"number"!=typeof e&&(t=this.wtSettings.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}},67320:()=>{},67339:(e,t,r)=>{"use strict";var n,s=r(88005),o=r(13150),i=r(6996),a=r(60926),l=r(35172),h=r(67817),u=r(39981),c=s.Function,d=/MSIE .\./.test(l)||"BUN"===a&&((n=s.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,s){var a=u(arguments.length,1)>r,l=i(n)?n:c(n),d=a?h(arguments,r):[],p=a?function(){o(l,this,d)}:l;return t?e(p,s):e(p)}:e}},67607:(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()}}},67772:()=>{},67817:(e,t,r)=>{"use strict";var n=r(25225);e.exports=n([].slice)},68089:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.getPhraseFormatters=t.getAll=function(){return a()},t.registerPhraseFormatter=t.register=l;var s=r(88248),o=n(r(66825));const{register:i,getValues:a}=(0,s.staticRegister)("phraseFormatters");function l(e,t){i(e,t)}l("pluralize",o.default)},68207:()=>{},68225:()=>{},68486:(e,t,r)=>{"use strict";t.__esModule=!0,t.triggerNodeModification=function(e,t,r){if(!a.has(e))throw new Error(`The node modifier action ("${e}") does not exist.`);return a.get(e)(t,r)},r(88443);var n=r(76651),s=r(78932),o=r(90086),i=r(40935);const a=new Map([["collapse",n.collapseNode],["expand",s.expandNode],["hide-column",o.hideColumn],["show-column",i.showColumn]])},68526:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(60591);var s=n(r(53726)),o=r(39738);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,o.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()}}},68627:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(69326),r(89663);var s=n(r(53726)),o=r(45098),i=n(r(81621)),a=n(r(83762)),l=n(r(55194)),h=n(r(39408)),u=r(51278),c=r(29363),d=r(10530),p=r(79104),g=n(r(65149));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 E(e,t){return e.get(y(e,t))}function w(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",R=t.PLUGIN_PRIORITY=300,S=C;var v=new WeakMap,T=new WeakMap,N=new WeakSet;class M extends o.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,v,!1),f(this,T,!1)}static get PLUGIN_KEY(){return C}static get PLUGIN_PRIORITY(){return R}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 i.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 g.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,A).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,_).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.getSelectedRangeLast(),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.getSelectedRangeLast())||void 0===e?void 0:e.highlight;return r&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingle())&&this.hot.selection.isCellVisible(r)&&-1===r.col&&r.row>=0},group:S,relativeToGroup:p.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(S)}disableCoreAPIModifiers(){w(T,this,!0)}enableCoreAPIModifiers(){w(T,this,!1)}onModifyRowData(e){if(!E(T,this))return this.dataManager.getDataObject(e)}onModifySourceLength(){if(!E(T,this))return this.dataManager.countAllRows()}onBeforeDataSplice(e,t,r){return!(!E(T,this)&&!this.dataManager.isRowHighestLevel(e))||(this.dataManager.spliceData(e,t,r),!1)}destroy(){super.destroy()}}function _(e,t,r,n){return this.rowMoveController.onBeforeRowMove(e,t,r,n)}function b(e,t,r){this.collapsingUI.toggleState(e,t,r)}function A(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),w(v,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(()=>{w(v,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){E(v,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=M},68664:(e,t,r)=>{"use strict";var n=r(80221);e.exports=function(e,t,r){for(var s in t)n(e,s,t[s],r);return e}},68825:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(18360);t.parse=n.parse,t.stringify=n.stringify},68881:()=>{},68952:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(25901)),o=r(85180);class i extends s.default{build(){super.build(),(0,o.addClass)(this._element,"ht__manualColumnMove--backlight")}}t.default=i},68999:(e,t,r)=>{"use strict";var n=r(82314);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},69102:()=>{},69243:(e,t,r)=>{"use strict";var n=r(25225),s=r(54090),o=r(71652),i=r(87530).indexOf,a=r(13884),l=n([].push);e.exports=function(e,t){var r,n=o(e),h=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&l(u,r);for(;t.length>h;)s(n,r=t[h++])&&(~i(u,r)||l(u,r));return u}},69262:(e,t,r)=>{"use strict";var n=r(19952),s=r(10260),o=r(15230),i=Error.captureStackTrace;e.exports=function(e,t,r,a){o&&(i?i(e,t):n(e,"stack",s(r,a)))}},69322:(e,t,r)=>{"use strict";var n=r(88005),s=r(82314),o=n.RegExp,i=!s(function(){var e=!0;try{o(".","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}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)s(a,i[a]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(t)!==n||r!==n});e.exports={correct:i}},69326:(e,t,r)=>{"use strict";r(51511)},69373:()=>{},69498:(e,t,r)=>{"use strict";var n=r(88005);e.exports=function(e,t){var r=n.Iterator,s=r&&r.prototype,o=s&&s[e],i=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(e){e instanceof t||(i=!1)}if(!i)return o}},69514:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDecreasedIndexes=function(e,t){return(0,n.arrayMap)(e,e=>e-t.filter(t=>t<e).length)},t.getIncreasedIndexes=function(e,t){const r=t[0],s=t.length;return(0,n.arrayMap)(e,e=>e>=r?e+s:e)},r(73741),r(7307);var n=r(39738)},69822:(e,t,r)=>{"use strict";var n=r(6996),s=r(19895),o=r(73254);e.exports=function(e,t,r){var i,a;return o&&n(i=t.constructor)&&i!==r&&s(a=i.prototype)&&a!==r.prototype&&o(e,a),e}},69932:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(98578);t.AutocompleteCellType=n.AutocompleteCellType,t.CELL_TYPE=n.CELL_TYPE},70076:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(75881)),o=r(85180);class i extends s.default{build(){super.build(),(0,o.addClass)(this._element,"ht__manualRowMove--backlight")}}t.default=i},70139:(e,t)=>{"use strict";t.__esModule=!0,t.sumCellsHeights=function(e,t,r){const{rowIndexMapper:n,stylesHandler:s}=e,o=s.getDefaultRowHeight();let i=0;for(let l=t;l<t+r;l++){var a;if(!n.isHidden(l))i+=null!==(a=e.getRowHeight(l))&&void 0!==a?a:o,0!==l||s.isClassicTheme()||(i+=1)}return i}},70794:(e,t,r)=>{"use strict";t.__esModule=!0,t.shortcutsGridContext=function(e){const t=e.getShortcutManager().addContext("grid"),r=(0,o.createKeyboardShortcutCommandsPool)(e),i={runOnlyIf:()=>{const{navigableHeaders:t}=e.getSettings();return(0,n.isDefined)(e.getSelected())&&(t||!t&&e.countRenderedRows()>0&&e.countRenderedCols()>0)},group:s.GRID_GROUP};t.addShortcuts([{keys:[["F2"]],callback:e=>r.editorFastOpen(e)},{keys:[["Enter"],["Enter","Shift"]],callback:(e,t)=>r.editorOpen(e,t)},{keys:[["Backspace"],["Delete"]],callback:()=>r.emptySelectedCells()}],{group:s.EDITOR_EDIT_GROUP,runOnlyIf:()=>(0,n.isDefined)(e.getSelected())}),t.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>r.selectAllCells(),runOnlyIf:()=>{var t;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var t;return null===(t=e.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>r.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>r.populateSelectedCellsData(),runOnlyIf:()=>{var t,r;return!(null!==(t=e.getSelectedRangeLast())&&void 0!==t&&t.highlight.isHeader())&&(null===(r=e.getSelectedRangeLast())||void 0===r?void 0:r.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>r.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>r.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>r.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>r.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>r.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>r.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>r.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>r.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>r.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>r.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(e.selection.isSelectedByCorner()||e.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>r.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>r.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>e.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>r.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>r.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>r.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>r.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineStart(e)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:e=>r.moveCellSelectionInlineEnd(e)},{keys:[["Control/Meta","Backspace"]],callback:()=>r.scrollToFocusedCell()}],i)};var n=r(18528),s=r(9013),o=r(57575)},71219:()=>{},71337:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(73741),r(37782),r(69326),r(89663);var s=n(r(53726)),o=r(63781),i=r(72848);class a extends o.BaseAction{constructor(e){let{changes:t,selected:r,countCols:n,countRows:o}=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=o}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,i.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtCell(r,null,null,"UndoRedo.undo");const n=e.countRows()-this.countRows;n>0&&e.alter("remove_row",null,n,"UndoRedo.undo");const s=e.countCols()-this.countCols;s>0&&e.isColumnModificationAllowed()&&e.alter("remove_col",null,s,"UndoRedo.undo"),e.scrollToFocusedCell(),e.selectCells(this.selected,!1,!1)}redo(e,t){const r=(0,i.deepClone)(this.changes);for(let e=0,t=r.length;e<t;e++)r[e].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtCell(r,null,null,"UndoRedo.redo"),this.selected&&e.selectCells(this.selected,!1,!1)}}t.DataChangeAction=a},71387:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781);class i extends o.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 i({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=i},71431:(e,t,r)=>{"use strict";t.__esModule=!0,t.htmlRenderer=i;var n=r(19993),s=r(85180);const o=t.RENDERER_TYPE="html";function i(e,t,r,o,i,a,l){n.baseRenderer.apply(this,[e,t,r,o,i,a,l]),(0,s.fastInnerHTML)(t,null==a?"":a,!1)}i.RENDERER_TYPE=o},71652:(e,t,r)=>{"use strict";var n=r(89176),s=r(77181);e.exports=function(e){return n(s(e))}},71840:(e,t,r)=>{"use strict";var n=r(82314);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},71873:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(88476);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},72048:(e,t,r)=>{"use strict";var n=r(76277),s=r(64976),o=r(65985),i=r(86713),a=r(77618),l=r(74218),h=r(63884),u=r(69498)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{i(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},72109:()=>{},72119:(e,t,r)=>{"use strict";var n=r(53385);e.exports=Array.isArray||function(e){return"Array"===n(e)}},72181:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionToRows",callback(e){const{selection:t}=e,{highlight:r,from:n,to:s}=e.getSelectedRangeLast();t.markSource("keyboard"),t.isSelectedByColumnHeader()?t.selectAll(!0,!0):e.selectRows(n.row,s.row,r),t.markEndSource()}}},72245:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(45098),i=r(39738),a=r(35782),l=r(51278),h=r(85180),u=r(10100),c=r(79104),d=r(42663);function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t){return e.get(m(e,t))}function f(e,t,r){return e.set(m(e,t),r),r}function m(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const E=t.PLUGIN_KEY="collapsibleColumns",w=t.PLUGIN_PRIORITY=290,y=["nestedHeaders"],C="collapsibleIndicator",R=E,S=new Map([["collapse",{hideColumn:!0,beforeHook:"beforeColumnCollapse",afterHook:"afterColumnCollapse"}],["expand",{hideColumn:!1,beforeHook:"beforeColumnExpand",afterHook:"afterColumnExpand"}]]);var v=new WeakMap,T=new WeakSet;class N extends o.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=T),t.add(e),(0,s.default)(this,"nestedHeadersPlugin",null),(0,s.default)(this,"headerStateManager",null),function(e,t,r){p(e,t),t.set(e,r)}(this,v,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get PLUGIN_DEPS(){return["plugin:NestedHeaders"]}static get SETTING_KEYS(){return[E,...y]}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;if(this.enabled)return;const{nestedHeaders:t}=this.hot.getSettings();t||(0,l.warn)("You need to configure the Nested Headers plugin in order to use collapsible headers."),f(v,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,A).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,M).call(e,...r)}),this.addHook("beforeOnCellMouseDown",(e,t,r)=>m(T,this,_).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(v,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.getSelectedRangeLast().highlight,{collapsible:n,isCollapsed:s,columnIndex:o}=null!==(e=this.headerStateManager.getHeaderTreeNodeData(t,r))&&void 0!==e?e:{};if(n)return s?this.expandSection({row:t,col:o}):this.collapseSection({row:t,col:o}),!1},runOnlyIf:()=>{var e,t;return(null===(e=this.hot.getSelectedRangeLast())||void 0===e?void 0:e.isSingle())&&(null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.highlight.isHeader())},group:R,relativeToGroup:c.EDITOR_EDIT_GROUP,position:"before"})}unregisterShortcuts(){this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(R)}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 o=t.childNodes[e],i=r.childNodes[e],l=n?n.childNodes[e]:null;(0,a.rangeEach)(0,o.childNodes.length-1,e=>{let t=o.childNodes[e].querySelector(`.${C}`);s(t),i&&i.childNodes[e]&&(t=i.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:o,isCollapsed:i}=t;if(!0===r&&n>1&&(i&&"expand"===e||!i&&"collapse"===e))return{row:this.headerStateManager.levelToRowCoords(s),col:o}});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,i.arrayFilter)(e,e=>{let{row:t}=e;return t<0});let n=r.length>0;(0,i.arrayEach)(r,e=>{var r;let{row:s,col:o}=e;const{collapsible:i,isCollapsed:a}=null!==(r=this.headerStateManager.getHeaderSettings(s,o))&&void 0!==r?r:{};if(!i||a&&"collapse"===t||!a&&"expand"===t)return n=!1,!1});const s=[],o=[];n&&(0,i.arrayEach)(r,e=>{let{row:r,col:n}=e;const{colspanCompensation:i,affectedColumns:a,rollbackModification:l}=this.headerStateManager.triggerNodeModification(t,r,n);i>0&&(o.push(...a),s.push(l))});const a=this.getCollapsedColumns();let l=[];"collapse"===t?l=(0,i.arrayUnique)([...a,...o]):"expand"===t&&(l=(0,i.arrayFilter)(a,e=>!o.includes(e)));const h=S.get(t);if(!1===this.hot.runHooks(h.beforeHook,a,l,n))return void(0,i.arrayEach)(s,e=>{e()});this.hot.batchExecution(()=>{(0,i.arrayEach)(o,e=>{g(v,this).setValueAtIndex(this.hot.toPhysicalColumn(e),h.hideColumn)})},!0);const u=this.getCollapsedColumns().length!==a.length,c=this.hot.getSelectedRangeLast();if("collapse"===t&&u&&c){const{row:e,col:t}=c.highlight;if((this.hot.rowIndexMapper.isHidden(e)||this.hot.columnIndexMapper.isHidden(t))&&o.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.render(),this.hot.view.adjustElementsSize()}getCollapsedColumns(){return g(v,this).getHiddenIndexes()}destroy(){f(v,this,null),super.destroy()}}function M(e,t,r){var n;const{collapsible:s,origColspan:o,isCollapsed:i}=null!==(n=this.headerStateManager.getHeaderSettings(r,e))&&void 0!==n?n:{},a=s&&o>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"]),i?((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 _(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 A(e,t){t||this.updatePlugin()}t.CollapsibleColumns=N},72246:(e,t,r)=>{"use strict";t.__esModule=!0,t.numericValidator=o;var n=r(35782);const s=t.VALIDATOR_TYPE="numeric";function o(e,t){let r=e;null==r&&(r=""),this.allowEmpty&&""===r?t(!0):t(""!==r&&(0,n.isNumeric)(e))}o.VALIDATOR_TYPE=s},72477:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(85180),i=n(r(45713)),a=r(25978),l=r(46512),h=r(34347);class u extends a.Overlay{constructor(e,t,r,n){super(e,t,h.CLONE_TOP,r,n),(0,s.default)(this,"cachedFixedRowsTop",-1),this.cachedFixedRowsTop=this.wtSettings.getSetting("fixedRowsTop")}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("shouldRenderTopOverlay")}resetFixedPosition(){if(!this.needFullRender||!this.shouldBeRendered()||!this.wot.wtTable.holder.parentNode)return!1;const e=this.clone.wtTable.holder.parentNode,{rootWindow:t}=this.domBindings,r=this.wtSettings.getSetting("preventOverflow");let n=0,s=!1;if(this.trimmingContainer!==t||r&&"vertical"===r)n=this.getScrollPosition(),(0,o.resetCssTransform)(e);else{const{wtTable:t}=this.wot,r=t.hider.getBoundingClientRect();s=Math.ceil(r.bottom)===e.offsetHeight,n=this.getOverlayOffset(),(0,o.setOverlayPosition)(e,"0px",`${n}px`)}const i=this.adjustHeaderBordersPosition(n,s);return this.adjustElementsSize(),i}setScrollPosition(e){const{rootWindow:t}=this.domBindings,r=this.mainTableScrollableElement;let n=!1;if(r===t&&e!==t.scrollY){const r=t.scrollY;t.scrollTo((0,o.getWindowScrollLeft)(t),e),n=r!==t.scrollY}else if(e!==r.scrollTop){const t=r.scrollTop;r.scrollTop=e,n=t!==r.scrollTop}return n}onScroll(){this.wtSettings.getSetting("onScrollHorizontally")}sumCellSizes(e,t){const r=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();let n=e,s=0;for(;n<t;){const e=this.wot.wtTable.getRowHeight(n);s+=void 0===e?r:e,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,s=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"horizontal"===i){let n=t.getWorkspaceWidth();t.hasVerticalScroll()&&(n-=(0,o.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollWidth),s.width=`${n}px`}else s.width="";this.clone.wtTable.holder.style.width=s.width;let a=(0,o.outerHeight)(this.clone.wtTable.TABLE);e.hasDefinedSize()||(a=0),s.height=`${a}px`}adjustRootChildrenSize(){const{holder:e}=this.clone.wtTable,t=(0,l.getCornerStyle)(this.wot),r=this.wot.selectionManager.getFocusSelection()?parseInt(t.height,10)/2:0;this.clone.wtTable.hider.style.width=this.hider.style.width,e.style.width=e.parentNode.style.width,e.style.height=`${parseInt(e.parentNode.style.height,10)+r}px`}applyToDOM(){const e=this.wtSettings.getSetting("totalRows");if("number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=`${this.wot.wtViewport.rowsRenderCalculator.startPosition}px`;else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()}syncOverlayOffset(){const e=this.isRtl()?"right":"left",{spreader:t}=this.clone.wtTable;"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?t.style[e]=`${this.wot.wtViewport.columnsRenderCalculator.startPosition}px`:t.style[e]=""}scrollTo(e,t){const{wot:r,wtSettings:n}=this,s=(r.cloneSource?r.cloneSource:r).wtTable.holder,i=n.getSetting("columnHeaders"),a=0===n.getSetting("fixedRowsTop")&&i.length>0&&!(0,o.hasClass)(s.parentNode,"innerBorderTop")?1:0;let l=this.getTableParentOffset(),h=0;if(t){this.wot.wtTable.getRowHeight(e)>this.wot.wtViewport.getViewportHeight()&&(t=!1)}if(t&&s.offsetHeight!==s.clientHeight&&(h=(0,o.getScrollbarWidth)(this.domBindings.rootDocument)),t){const t=n.getSetting("fixedRowsBottom"),s=n.getSetting("totalRows");l+=this.sumCellSizes(0,e+1),l-=r.wtViewport.getViewportHeight()-this.sumCellSizes(s-t,s),l+=1,l+=a}else l+=this.sumCellSizes(n.getSetting("fixedRowsTop"),e);return l+=h,(0,o.getMaximumScrollTop)(this.mainTableScrollableElement)===l-a&&a>0&&this.wot.wtOverlays.expandHiderVerticallyBy(a),this.setScrollPosition(l)}getTableParentOffset(){return this.mainTableScrollableElement===this.domBindings.rootWindow?this.wot.wtTable.holderOffset.top:0}getScrollPosition(){return(0,o.getScrollTop)(this.mainTableScrollableElement,this.domBindings.rootWindow)}getOverlayOffset(){const{rootWindow:e}=this.domBindings,t=this.wtSettings.getSetting("preventOverflow");let r=0;if(this.trimmingContainer===e&&(!t||"vertical"!==t)){const e=this.wot.wtTable.getTotalHeight()-this.clone.wtTable.getTotalHeight();r=Math.max(this.getScrollPosition()-this.getTableParentOffset(),0),r>e&&(r=0)}return r}adjustHeaderBordersPosition(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wtSettings:r}=this,n=this.wot.wtTable.holder.parentNode,s=r.getSetting("totalColumns"),i="horizontal"===r.getSetting("preventOverflow");s?(0,o.removeClass)(n,"emptyColumns"):(0,o.addClass)(n,"emptyColumns");let a=!1;if(!t&&!i){const t=r.getSetting("fixedRowsTop"),s=this.cachedFixedRowsTop!==t,i=r.getSetting("columnHeaders");if((s||0===t)&&i.length>0){const t=(0,o.hasClass)(n,"innerBorderTop");this.cachedFixedRowsTop=r.getSetting("fixedRowsTop"),e||0===r.getSetting("totalRows")?((0,o.addClass)(n,"innerBorderTop"),a=!t):((0,o.removeClass)(n,"innerBorderTop"),a=t)}}return a}}t.TopOverlay=u},72589:(e,t,r)=>{"use strict";t.__esModule=!0,t.multipleScrollStrategy=function(e){return t=>{const r=(0,n.createScrollTargetCalculator)(e),s={row:r.getComputedRowTarget(t),col:r.getComputedColumnTarget(t)};e.scrollViewportTo(s,()=>{const{row:t,col:r}=s;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(13848)},72714:(e,t,r)=>{"use strict";var n=r(92754),s=r(721),o=r(9370).f,i=n("unscopables"),a=Array.prototype;void 0===a[i]&&o(a,i,{configurable:!0,value:s(null)}),e.exports=function(e){a[i][e]=!0}},72848:(e,t,r)=>{"use strict";t.__esModule=!0,t.clone=function(e){const t={};return i(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){i(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(!o(e))return 0;const t=function(e){let r=0;return o(e)?i(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={},i(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 i(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 i(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=o,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),i(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)||o(t))&&(t=s(t)),t})(t)),this[r]}},i=function(e){const t=`_${e}`;return function(e){this[t]=e}};Object.defineProperty(e.prototype,r,{get:n(r,t),set:i(r),configurable:!0})}})}),e},t.objectEach=i,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(88443),r(85639),r(60591),r(73741),r(69326);var n=r(39738);function s(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(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)}},72993:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(4009);t.EDITOR_TYPE=n.EDITOR_TYPE,t.TimeEditor=n.TimeEditor},73254:(e,t,r)=>{"use strict";var n=r(80121),s=r(19895),o=r(77181),i=r(94481);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},73269:(e,t)=>{"use strict";let r;t.__esModule=!0,t.cancelAnimationFrame=function(e){window.cancelAnimationFrame(e)},t.getComparisonFunction=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r)return r;r="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?(e,t)=>`${e}`.localeCompare(t):(e,t)=>e===t?0:e>t?-1:1;return r},t.isCSR=function(){return"undefined"!=typeof window},t.isTouchSupported=function(){return"ontouchstart"in window},t.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)}},73374:()=>{},73696:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(7307);var s=n(r(53726)),o=r(39738),i=r(72848),a=r(28275),l=n(r(39143)),h=n(r(66083)),u=n(r(27746)),c=r(43311);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 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")}var g=new WeakSet;class f{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[];d(this,g),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"conditionCollection",void 0),(0,s.default)(this,"columnDataFactory",void 0),(0,s.default)(this,"changes",[]),(0,s.default)(this,"grouping",!1),(0,s.default)(this,"latestEditedColumnPosition",-1),(0,s.default)(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=t,this.columnDataFactory=r,this.conditionCollection.addLocalHook("beforeRemove",e=>p(g,this,m).call(this,e)),this.conditionCollection.addLocalHook("afterRemove",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("afterAdd",e=>this.updateStatesAtColumn(e)),this.conditionCollection.addLocalHook("beforeClean",()=>p(g,this,E).call(this)),this.conditionCollection.addLocalHook("afterClean",()=>p(g,this,w).call(this))}groupChanges(){this.grouping=!0}flush(){this.grouping=!1,(0,o.arrayEach)(this.changes,e=>{this.updateStatesAtColumn(e)}),this.changes.length=0}updateStatesAtColumn(e,t){var r=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));const n=this.conditionCollection.exportAllConditions();let s=this.conditionCollection.getColumnStackPosition(e);-1===s&&(s=this.latestEditedColumnPosition);const i=n.slice(0,s),l=n.slice(s);l.length&&l[0].column===e&&l.shift();const d=(0,a.curry)(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const s=new h.default(r.hot,!1),i=[].concat(e,n);s.importAllConditions(i);const a=r.columnDataFactory(t);let l;l=s.isEmpty()?a:new u.default(s,e=>r.columnDataFactory(e)).filter(),l=(0,o.arrayMap)(l,e=>e.meta.visualRow);const d=(0,c.createArrayAssertion)(l);return s.destroy(),(0,o.arrayFilter)(a,e=>d(e.meta.visualRow))})(i),p=[].concat(this.conditionCollection.getConditions(e));this.runLocalHooks("update",{editedConditionStack:{column:e,conditions:p},dependentConditionStacks:l,filteredRowsFactory:d,conditionArgsChange:t})}destroy(){this.clearLocalHooks(),(0,i.objectEach)(this,(e,t)=>{this[t]=null})}}function m(e){this.latestEditedColumnPosition=this.conditionCollection.getColumnStackPosition(e)}function E(){this.latestOrderStack=this.conditionCollection.getFilteredColumns()}function w(){(0,o.arrayEach)(this.latestOrderStack,e=>{this.updateStatesAtColumn(e)})}(0,i.mixin)(f,l.default);t.default=f},73741:(e,t,r)=>{"use strict";r(79454)},73761:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(3708);t.CELL_TYPE=n.CELL_TYPE,t.HandsontableCellType=n.HandsontableCellType},74103:()=>{},74183:(e,t,r)=>{"use strict";t.__esModule=!0,t.shortcutsEditorContext=function(e){const t=e.getShortcutManager().addContext("editor"),r=(0,s.createKeyboardShortcutCommandsPool)(e),o={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()}],o)};var n=r(9013),s=r(57575)},74218:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},74222:(e,t,r)=>{"use strict";t.__esModule=!0,t.assert=function(e,t){if(!e())throw new Error(`Assertion failed: ${t}`)},t.columnFactory=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];function r(){}(0,n.inherit)(r,e);for(let e=0;e<t.length;e++)r.prototype[t[e]]=void 0;return r},t.extendByMetaType=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e;const o="string"==typeof t.type?(0,s.getCellType)(t.type):t.type;e._automaticallyAssignedMetaProps&&(0,n.objectEach)(t,(t,r)=>{e._automaticallyAssignedMetaProps.delete(r)});if(!(0,n.isObject)(o))return;r!==e||e._automaticallyAssignedMetaProps||(e._automaticallyAssignedMetaProps=new Set);const i={};(0,n.objectEach)(o,(t,s)=>{var o;(function(e,t){var r;if("CELL_TYPE"===e)return!1;return(null===(r=t._automaticallyAssignedMetaProps)||void 0===r?void 0:r.has(e))||!(0,n.hasOwnProperty)(t,e)})(s,r)&&(i[s]=t,null===(o=e._automaticallyAssignedMetaProps)||void 0===o||o.add(s))}),(0,n.extend)(e,i)},t.isNullish=function(e){return null==e},t.isUnsignedNumber=function(e){return Number.isInteger(e)&&e>=0},r(88443),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(72848),s=r(60532)},74334:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(99537),s=r(72848),o=r(39738),i=r(85180),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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),l=r(74820),h=r(36721),u=r(42663);function c(e,t,r){d(e,t),t.set(e,r)}function d(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(f(e,t),r),r}function g(e,t){return e.get(f(e,t))}function f(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 m=new WeakMap,E=new WeakMap,w=new WeakMap,y=new WeakMap,C=new WeakMap,R=new WeakSet;class S extends h.BaseUI{static get DEFAULTS(){return(0,s.clone)({className:"htUISelect",wrapIt:!1,tabIndex:-1})}constructor(e,t){var r,n;super(e,(0,s.extend)(S.DEFAULTS,t)),d(r=this,n=R),n.add(r),c(this,m,null),c(this,E,[]),c(this,w,void 0),c(this,y,void 0),c(this,C,void 0),this.registerHooks()}getMenu(){return g(m,this)}registerHooks(){this.addLocalHook("click",()=>f(R,this,N).call(this))}setItems(e){p(E,this,this.translateNames(e)),g(m,this)&&g(m,this).setMenuItems(g(E,this))}translateNames(e){return(0,o.arrayEach)(e,e=>{e.name=this.translateIfPossible(e.name)}),e}build(){super.build(),p(m,this,new n.Menu(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0,container:this.options.menuContainer})),g(m,this).setMenuItems(g(E,this));const e=new h.BaseUI(this.hot,{className:"htUISelectCaption"}),t=new h.BaseUI(this.hot,{className:"htUISelectDropdown"});p(w,this,e),p(y,this,e.element),p(C,this,t),this.hot.getSettings().ariaTags&&((0,i.setAttribute)(t.element,[(0,u.A11Y_HIDDEN)()]),(0,i.setAttribute)(this._element,[(0,u.A11Y_LISTBOX)()])),(0,o.arrayEach)([e,t],e=>this._element.appendChild(e.element)),g(m,this).addLocalHook("select",e=>f(R,this,v).call(this,e)),g(m,this).addLocalHook("afterClose",()=>f(R,this,T).call(this)),this.update()}update(){if(!this.isBuilt())return;let e;e=this.options.value?this.options.value.name:g(m,this).hot.getTranslatedPhrase(a.FILTERS_CONDITIONS_NONE),g(y,this).textContent=e,super.update()}openOptions(){const e=this.element.getBoundingClientRect();g(m,this)&&(g(m,this).open(),g(m,this).setPosition({left:this.hot.isLtr()?e.left-5:e.left-31,top:e.top-1,width:e.width,height:e.height}),g(m,this).getNavigator().toFirstItem(),g(m,this).getKeyboardShortcutsCtrl().addCustomShortcuts([{keys:[["Tab"],["Shift","Tab"]],callback:e=>{this.closeOptions(),this.runLocalHooks("tabKeydown",e)}},{keys:[["Control/Meta","A"]],callback:()=>!1}]))}closeOptions(){g(m,this)&&g(m,this).close()}focus(){this.isBuilt()&&this.element.focus()}destroy(){g(m,this)&&(g(m,this).destroy(),p(m,this,null)),g(w,this)&&g(w,this).destroy(),g(C,this)&&g(C,this).destroy(),super.destroy()}}function v(e){e.name!==l.SEPARATOR&&(this.options.value=e,this.update(),this.runLocalHooks("select",this.options.value))}function T(){this.runLocalHooks("afterClose")}function N(){this.openOptions()}t.SelectUI=S},74491:(e,t,r)=>{"use strict";var n=r(39157),s=r(82314);e.exports=n&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},74515:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781);class i extends o.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 i({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=i},74552:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(97553);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ManualColumnFreeze=n.ManualColumnFreeze},74627:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(72848),i=r(35782),a=r(18528);class l{static get SAMPLE_COUNT(){return 3}constructor(e){(0,s.default)(this,"samples",null),(0,s.default)(this,"dataFactory",null),(0,s.default)(this,"customSampleCount",null),(0,s.default)(this,"allowDuplicates",!1),this.dataFactory=e}getSampleCount(){return this.customSampleCount?this.customSampleCount:l.SAMPLE_COUNT}setSampleCount(e){this.customSampleCount=e}setAllowDuplicates(e){this.allowDuplicates=e}generateRowSamples(e,t){return this.generateSamples("row",t,e)}generateColumnSamples(e,t){return this.generateSamples("col",t,e)}generateSamples(e,t,r){const n=new Map,{from:s,to:o}="number"==typeof r?{from:r,to:r}:r;return(0,i.rangeEach)(s,o,r=>{const s=this.generateSample(e,t,r);n.set(r,s)}),n}generateSample(e,t,r){if("row"!==e&&"col"!==e)throw new Error("Unsupported sample type");const n=new Map,s="row"===e?"col":"row",l=[];return(0,i.rangeEach)(t.from,t.to,t=>{const i="row"===e?this.dataFactory(r,t):this.dataFactory(t,r);if(!1===i)return;const{value:h,bundleSeed:u}=i,c="string"==typeof u&&u.length>0;let d;d=c?u:(0,o.isObject)(h)?`${Object.keys(h).length}`:Array.isArray(h)?`${h.length}`:`${(0,a.stringify)(h).length}`,n.has(d)||n.set(d,{needed:this.getSampleCount(),strings:[]});const p=n.get(d);if(p.needed){(!(l.indexOf(h)>-1)||this.allowDuplicates||c)&&(p.strings.push({value:h,[s]:t}),l.push(h),p.needed-=1)}}),n}}t.default=l},74820:(e,t,r)=>{"use strict";t.__esModule=!0,t.addItem=function(e,t){-1===w.indexOf(e)&&(y[e]=t)},t.predefinedItems=function(){const e={};return(0,n.objectEach)(y,(t,r)=>{e[r]=t()}),e};var n=r(72848),s=E(r(43053));t.ALIGNMENT=s.KEY;var o=E(r(11907));t.CLEAR_COLUMN=o.KEY;var i=E(r(59597));t.COLUMN_LEFT=i.KEY;var a=E(r(88300));t.COLUMN_RIGHT=a.KEY;var l=E(r(89880));t.READ_ONLY=l.KEY;var h=E(r(80758));t.REDO=h.KEY;var u=E(r(2784));t.REMOVE_COLUMN=u.KEY;var c=E(r(35084));t.REMOVE_ROW=c.KEY;var d=E(r(26899));t.ROW_ABOVE=d.KEY;var p=E(r(77571));t.ROW_BELOW=p.KEY;var g=E(r(39783));t.SEPARATOR=g.KEY;var f=E(r(35749));t.NO_ITEMS=f.KEY;var m=E(r(14384));function E(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(E=function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i})(e,t)}t.UNDO=m.KEY;const w=t.ITEMS=[d.KEY,p.KEY,i.KEY,a.KEY,o.KEY,c.KEY,u.KEY,m.KEY,h.KEY,l.KEY,s.KEY,g.KEY,f.KEY],y={[g.KEY]:g.default,[f.KEY]:f.default,[d.KEY]:d.default,[p.KEY]:p.default,[i.KEY]:i.default,[a.KEY]:a.default,[o.KEY]:o.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}},75169:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.createHighlight=function(e){let{cellCornerVisible:t,...r}=e;return new o.default({className:"current",headerAttributes:[(0,i.A11Y_SELECTED)()],border:{width:2,color:"#4b89ff",cornerVisible:t},...r,selectionType:s.HIGHLIGHT_FOCUS_TYPE})};var s=r(93629),o=n(r(13301)),i=r(42663)},75299:(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],o=t[t.length-1];s=null!==(r=this.columnIndexMapper.getNearestNotHiddenIndex(s-1,-1))&&void 0!==r?r:0,o=null!==(n=this.columnIndexMapper.getNearestNotHiddenIndex(o+1,1))&&void 0!==n?n:this.countCols()-1,e.showColumns(t),this.render(),this.view.adjustElementsSize();o-s+1===this.countCols()||this.selectColumns(s,o)},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.getSelectedRangeLast(),o=s.getTopStartCorner().col,i=s.getBottomEndCorner().col,a=this.columnIndexMapper,l=a.getRenderableFromVisualIndex(o),h=a.getRenderableFromVisualIndex(i),u=a.getNotTrimmedIndexes(),c=[];if(o!==i){if(i-o+1>h-l+1){const e=u.slice(o,i+1);c.push(...e.filter(e=>r.includes(e)))}}else if(0===l&&l<o)c.push(...u.slice(0,o));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>i&&c.push(...u.slice(i+1))}return(0,n.arrayEach)(c,e=>{t.push(this.toVisualColumn(e))}),0===t.length}}},r(85639),r(73741),r(7307);var n=r(39738),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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},75517:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(49472),s=r(14551),o=r(81554);class i extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){const r=(0,o.getIncreasedIndexes)(this.indexedValues,t);this.indexedValues=(0,s.getListWithInsertedItems)(r,e,t),super.insert(e,t)}remove(e){const t=(0,s.getListWithRemovedItems)(this.indexedValues,e);this.indexedValues=(0,o.getDecreasedIndexes)(t,e),super.remove(e)}}t.IndexesSequence=i},75590:()=>{},75713:function(e,t){var r,n,s;"undefined"!=typeof self&&self,n=[],void 0===(s="function"==typeof(r=function(){function e(){}e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx},e.prototype.pattern=function(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");var t=this.disjunction();this.consumeChar("/");for(var r={type:"Flags",global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":a(r,"global");break;case"i":a(r,"ignoreCase");break;case"m":a(r,"multiLine");break;case"u":a(r,"unicode");break;case"y":a(r,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:r,value:t}},e.prototype.disjunction=function(){var e=[];for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e}},e.prototype.alternative=function(){for(var e=[];this.isTerm();)e.push(this.term());return{type:"Alternative",value:e}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){switch(this.popChar()){case"^":return{type:"StartAnchor"};case"$":return{type:"EndAnchor"};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary"};case"B":return{type:"NonWordBoundary"}}throw Error("Invalid Assertion Escape");case"(":var e;switch(this.consumeChar("?"),this.popChar()){case"=":e="Lookahead";break;case"!":e="NegativeLookahead"}l(e);var t=this.disjunction();return this.consumeChar(")"),{type:e,value:t}}h()},e.prototype.quantifier=function(e){var t;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":var r=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:r,atMost:r};break;case",":t=this.isDigit()?{atLeast:r,atMost:this.integerIncludingZero()}:{atLeast:r,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;l(t)}if(!0!==e||void 0!==t)return l(t),"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t},e.prototype.atom=function(){var e;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),l(e),this.isQuantifier()&&(e.quantifier=this.quantifier()),e},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[o("\n"),o("\r"),o("\u2028"),o("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},e.prototype.characterClassEscape=function(){var e,t=!1;switch(this.popChar()){case"d":e=u;break;case"D":e=u,t=!0;break;case"s":e=d;break;case"S":e=d,t=!0;break;case"w":e=c;break;case"W":e=c,t=!0}return l(e),{type:"Set",value:e,complement:t}},e.prototype.controlEscapeAtom=function(){var e;switch(this.popChar()){case"f":e=o("\f");break;case"n":e=o("\n");break;case"r":e=o("\r");break;case"t":e=o("\t");break;case"v":e=o("\v")}return l(e),{type:"Character",value:e}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:o("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){return{type:"Character",value:o(this.popChar())}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:o(this.popChar())}}},e.prototype.characterClass=function(){var e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){var r=this.classAtom();if("Character"===r.type&&this.isRangeDash()){this.consumeChar("-");var n=this.classAtom();if("Character"===n.type){if(n.value<r.value)throw Error("Range out of order in character class");e.push({from:r.value,to:n.value})}else i(r.value,e),e.push(o("-")),i(n.value,e)}else i(r.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:o("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;var t=this.disjunction();this.consumeChar(")");var r={type:"Group",capturing:e,value:t};return e&&(r.idx=this.groupIdx),r},e.prototype.positiveInteger=function(){var e=this.popChar();if(!1===s.test(e))throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.integerIncludingZero=function(){var e=this.popChar();if(!1===n.test(e))throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)},e.prototype.patternCharacter=function(){var e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:o(e)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(e){switch(void 0===e&&(e=0),this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},e.prototype.isQuantifier=function(){var e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(e){for(var t="",n=0;n<e;n++){var s=this.popChar();if(!1===r.test(s))throw Error("Expecting a HexDecimal digits");t+=s}return{type:"Character",value:parseInt(t,16)}},e.prototype.peekChar=function(e){return void 0===e&&(e=0),this.input[this.idx+e]},e.prototype.popChar=function(){var e=this.peekChar(0);return this.consumeChar(),e},e.prototype.consumeChar=function(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++};var t,r=/[0-9a-fA-F]/,n=/[0-9]/,s=/[1-9]/;function o(e){return e.charCodeAt(0)}function i(e,t){void 0!==e.length?e.forEach(function(e){t.push(e)}):t.push(e)}function a(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t]=!0}function l(e){if(void 0===e)throw Error("Internal Error - Should never get here!")}function h(){throw Error("Internal Error - Should never get here!")}var u=[];for(t=o("0");t<=o("9");t++)u.push(t);var c=[o("_")].concat(u);for(t=o("a");t<=o("z");t++)c.push(t);for(t=o("A");t<=o("Z");t++)c.push(t);var d=[o(" "),o("\f"),o("\n"),o("\r"),o("\t"),o("\v"),o("\t"),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o(" "),o("\u2028"),o("\u2029"),o(" "),o(" "),o(" "),o("\ufeff")];function p(){}return p.prototype.visitChildren=function(e){for(var t in e){var r=e[t];e.hasOwnProperty(t)&&(void 0!==r.type?this.visit(r):Array.isArray(r)&&r.forEach(function(e){this.visit(e)},this))}},p.prototype.visit=function(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)},p.prototype.visitPattern=function(e){},p.prototype.visitFlags=function(e){},p.prototype.visitDisjunction=function(e){},p.prototype.visitAlternative=function(e){},p.prototype.visitStartAnchor=function(e){},p.prototype.visitEndAnchor=function(e){},p.prototype.visitWordBoundary=function(e){},p.prototype.visitNonWordBoundary=function(e){},p.prototype.visitLookahead=function(e){},p.prototype.visitNegativeLookahead=function(e){},p.prototype.visitCharacter=function(e){},p.prototype.visitSet=function(e){},p.prototype.visitGroup=function(e){},p.prototype.visitGroupBackReference=function(e){},p.prototype.visitQuantifier=function(e){},{RegExpParser:e,BaseRegExpVisitor:p,VERSION:"0.4.0"}})?r.apply(t,n):r)||(e.exports=s)},75720:()=>{},75881:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));const o="px";t.default=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"_element",null),(0,s.default)(this,"state",0),this.hot=e}appendTo(e){e.appendChild(this._element),this.state=2}build(){0===this.state&&(this._element=this.hot.rootDocument.createElement("div"),this.state=1)}destroy(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=0}isAppended(){return 2===this.state}isBuilt(){return this.state>=1}setPosition(e,t){void 0!==e&&(this._element.style.top=e+o),void 0!==t&&(this._element.style.left=t+o)}getPosition(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}}setSize(e,t){e&&(this._element.style.width=e+o),t&&(this._element.style.height=t+o)}getSize(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}}setOffset(e,t){e&&(this._element.style.marginTop=e+o),t&&(this._element.style.marginLeft=t+o)}getOffset(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}}},76019:(e,t,r)=>{"use strict";t.__esModule=!0,t.getPlugin=c,t.getPluginsNames=function(){return[...l.getItems(),...h.getItems()]},t.hasPlugin=function(e){return!!c(e)},t.registerPlugin=function(e,t,r){[e,t,r]=function(e,t,r){"function"==typeof e&&(e=(t=e).PLUGIN_KEY,r=t.PLUGIN_PRIORITY);return[e,t,r]}(e,t,r),void 0===c(e)&&function(e,t,r){const s=(0,n.toUpperCaseFirst)(e);if(u.hasItem(s))throw new Error(a(s));void 0===r?h.addItem(s):l.addItem(r,s);u.addItem(s,t)}(e,t,r)},r(88443);var n=r(28222),s=r(38096),o=r(88529),i=r(51143);const a=e=>`There is already registered "${e}" plugin.`,l=(0,s.createPriorityMap)({errorPriorityExists:e=>`There is already registered plugin on priority "${e}".`,errorPriorityNaN:e=>`The priority "${e}" is not a number.`}),h=(0,i.createUniqueSet)({errorItemExists:a}),u=(0,o.createUniqueMap)({errorIdExists:a});function c(e){const t=(0,n.toUpperCaseFirst)(e);return u.getItem(t)}},76089:()=>{},76249:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(18528),s=r(72848);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,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,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,o,i;for(t=0,r=this.countCols();t<r;t++)if(o=this.getDataAtCell(e,t),!1===(0,n.isEmpty)(o))return"object"==typeof o&&(i=this.getCellMeta(e,t),(0,s.isObjectEqual)(this.getSchema()[i.prop],o));return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!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,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0})},76277:(e,t,r)=>{"use strict";var n=r(88005),s=r(45472).f,o=r(19952),i=r(80221),a=r(61958),l=r(28041),h=r(41137);e.exports=function(e,t){var r,u,c,d,p,g=e.target,f=e.global,m=e.stat;if(r=f?n:m?n[g]||a(g,{}):n[g]&&n[g].prototype)for(u in t){if(d=t[u],c=e.dontCallGetSet?(p=s(r,u))&&p.value:r[u],!h(f?u:g+(m?".":"#")+u,e.forced)&&void 0!==c){if(typeof d==typeof c)continue;l(d,c)}(e.sham||c&&c.sham)&&o(d,"sham",!0),i(r,u,d,e)}}},76460:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(29787);t.EDITOR_TYPE=n.EDITOR_TYPE,t.SelectEditor=n.SelectEditor},76636:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionLeft",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,-1*e.getDirectionFactor()),t.markEndSource())}}},76643:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorFastOpen",callback(e,t){const{highlight:r}=e.getSelectedRangeLast();r.isHeader()||e._getEditorManager().openEditor(null,t,!0)}}},76651:(e,t,r)=>{"use strict";t.__esModule=!0,t.collapseNode=function e(t){var r;const{data:i,childs:a}=t;if(i.isCollapsed||i.isHidden||i.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,o.isNodeReflectsFirstChildColspan)(t))return e(a[0]);i.isCollapsed=!0;const l=a.slice(1),h=new Set;if(l.length>0)(0,n.arrayEach)(l,e=>{(0,o.traverseHiddenNodeColumnIndexes)(e,e=>{h.add(e)}),e.data.clonedTree=e.cloneTree(),e.walkDown(e=>{let{data:t}=e;t.isHidden=!0})});else{const{origColspan:e,columnIndex:t}=i;for(let r=1;r<e;r++){const e=t+r;h.add(e)}}const u=i.colspan-(null!==(r=(0,o.getFirstChildProperty)(t,"colspan"))&&void 0!==r?r:1);return t.walkUp(e=>{const{data:t}=e;t.colspan-=u,t.colspan<=1?(t.colspan=1,t.isCollapsed=!0):(0,o.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,o.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.expandNode)(t),affectedColumns:Array.from(h),colspanCompensation:u}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(39738),s=r(78932),o=r(81086)},76749:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47517);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DropdownEditor=n.DropdownEditor},77025:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(38479);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 o(e,t){return e.get(a(e,t))}function i(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}),i(c,this,e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return o(d,this)[e]=t,this}setElement(e){return i(l,this,e),this}setParentElement(e){return i(h,this,e),this}updatePosition(e){i(u,this,new n.Cursor(e,o(l,this).ownerDocument.defaultView)),o(c,this)?(o(u,this).fitsBelow(o(l,this))?this.setPositionBelowCursor():o(u,this).fitsAbove(o(l,this))?this.setPositionAboveCursor():this.setPositionBelowCursor(),this.updateHorizontalPosition()):(this.setPositionBelowCursor(),this.setPositionOnRightOfCursor())}updateHorizontalPosition(){"rtl"===o(l,this).dir?o(u,this).fitsOnLeft(o(l,this))?this.setPositionOnLeftOfCursor():this.setPositionOnRightOfCursor():o(u,this).fitsOnRight(o(l,this))?this.setPositionOnRightOfCursor():this.setPositionOnLeftOfCursor()}setPositionAboveCursor(){let e=o(d,this).above+o(u,this).top-o(l,this).offsetHeight;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView.getComputedStyle(o(h,this).querySelector(".ht_master")),r=Number.parseInt(t.paddingTop,10),n=Number.parseInt(t.borderTop,10);e=o(u,this).top+o(u,this).cellHeight-o(l,this).scrollHeight+r+n}o(l,this).style.top=`${e}px`}setPositionBelowCursor(){let e=o(d,this).below+o(u,this).top+1;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView.getComputedStyle(o(h,this).querySelector(".ht_master")),r=Number.parseInt(t.paddingTop,10),n=Number.parseInt(t.borderTop,10);e=o(u,this).top-r-n-1}o(l,this).style.top=`${e}px`}setPositionOnRightOfCursor(){let e=o(u,this).left;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView,r=Number.parseInt(t.getComputedStyle(o(h,this).querySelector(".htCore")).borderRightWidth,10);e+=o(u,this).cellWidth+r}else e+=o(d,this).right;o(l,this).style.left=`${e}px`}setPositionOnLeftOfCursor(){let e=o(d,this).left+o(u,this).left-o(l,this).offsetWidth;if(o(h,this)){const t=o(h,this).ownerDocument.defaultView;e-=Number.parseInt(t.getComputedStyle(o(h,this).querySelector(".htCore")).borderLeftWidth,10)}o(l,this).style.left=`${e}px`}}},77181:(e,t,r)=>{"use strict";var n=r(214),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},77437:()=>{},77571:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_ROW_BELOW)},callback(){const e=this.getSelectedRangeLast().getBottomRightCorner();this.alter("insert_row_below",e.row,1,"ContextMenu.rowBelow")},disabled(){const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByColumnHeader()||e.isSingleHeader()&&e.highlight.row<0||this.countSourceRows()>=this.getSettings().maxRows)},hidden(){return!this.getSettings().allowInsertRow}}};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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="row_below"},77617:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(18528),i=r(72848),a=n(r(13709)),l=r(85180);const h=t.EDITOR_TYPE="base",u=t.EDITOR_STATE=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class c{static get EDITOR_TYPE(){return h}constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"state",u.VIRGIN),(0,s.default)(this,"_opened",!1),(0,s.default)(this,"_fullEditMode",!1),(0,s.default)(this,"_closeCallback",null),(0,s.default)(this,"TD",null),(0,s.default)(this,"row",null),(0,s.default)(this,"col",null),(0,s.default)(this,"prop",null),(0,s.default)(this,"originalValue",null),(0,s.default)(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,t,r,n,s,o){this.TD=n,this.row=e,this.col=t,this.prop=r,this.originalValue=s,this.cellProperties=o,this.state=this.isOpened()?this.state:u.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,t){let r,n,s,o;if(t){const e=this.hot.getSelectedLast();r=Math.max(Math.min(e[0],e[2]),0),n=Math.max(Math.min(e[1],e[3]),0),s=Math.max(e[0],e[2]),o=Math.max(e[1],e[3])}else[r,n,s,o]=[this.row,this.col,null,null];const i=this.hot.runHooks("modifyGetCellCoords",r,n,!1,"meta");Array.isArray(i)&&([r,n]=i),this.hot.populateFromArray(r,n,e,s,o,"edit")}beginEditing(e,t){if(this.state!==u.VIRGIN)return;const r=this.hot,n=r.rowIndexMapper.getRenderableFromVisualIndex(this.row),s=r.columnIndexMapper.getRenderableFromVisualIndex(this.col),i=()=>{if(this.state=u.EDITING,this.isInFullEditMode()){const t="string"==typeof e?e:(0,o.stringify)(this.originalValue);this.setValue(t)}this.open(t),this._opened=!0,this.focus(),r.view.render(),r.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",i);r.view.scrollViewport(r._createCellCoords(n,s))||(this.hot.removeHook("afterScroll",i),i())}finishEditing(e,t,r){let n;if(r){const e=this._closeCallback;this._closeCallback=t=>{e&&e(t),r(t),this.hot.view.render()}}if(!this.isWaiting())if(this.state!==u.VIRGIN){if(this.state===u.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();const r=this.getValue();n=this.cellProperties.trimWhitespace?[["string"==typeof r?String.prototype.trim.call(r||""):r]]:[[r]],this.state=u.WAITING,this.saveValue(n,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",e=>{this.state=u.FINISHED,this.discardEditor(e)}):(this.state=u.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout(()=>{this._fireCallbacks(!0)})}cancelChanges(){this.state=u.FINISHED,this.discardEditor()}discardEditor(e){if(this.state===u.FINISHED)if(!1===e&&!0!==this.cellProperties.allowInvalid)this.hot.selectCell(this.row,this.col),this.focus(),this.state=u.EDITING,this._fireCallbacks(!1);else{this.close(),this._opened=!1,this._fullEditMode=!1,this.state=u.VIRGIN,this._fireCallbacks(!0);this.hot.getShortcutManager().setActiveContextName("grid")}}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===u.WAITING}getEditedCellRect(){var e;const t=this.getEditedCell();if(!t)return;const{wtOverlays:r,wtViewport:n}=this.hot.view._wt,s=this.hot.rootWindow,o=(0,l.offset)(t),i=(0,l.outerWidth)(t),a=(0,l.offset)(this.hot.rootElement),h=(0,l.outerWidth)(this.hot.rootElement),u=r.topOverlay.holder,c=r.inlineStartOverlay.holder,d=u!==s?u.scrollTop:0,p=c!==s?c.scrollLeft:0,g=s.innerWidth-a.left-h,{wtTable:f}=null!==(e=r.getParentOverlay(t))&&void 0!==e?e:this.hot.view._wt,m=f.name,E=["master","inline_start"].includes(m)?d:0,w=["master","top","bottom"].includes(m)?p:0,y=o.top===a.top?0:1;let C=o.top-a.top-y-E,R=0;R=this.hot.isRtl()?s.innerWidth-o.left-i-g-1+w:o.left-a.left-1-w,["top","top_inline_start_corner"].includes(m)&&(C+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(m)&&(R+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));const S=this.hot.hasColHeaders(),v=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),T=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),N=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(S&&v<=0||v===N)&&(C+=1),T<=0&&(R+=1);const M=n.rowsRenderCalculator.startPosition,_=n.columnsRenderCalculator.startPosition,b=Math.abs(r.inlineStartOverlay.getScrollPosition()),A=r.topOverlay.getScrollPosition(),I=(0,l.getScrollbarWidth)(this.hot.rootDocument);let O=t.offsetTop;if(["inline_start","master"].includes(m)&&(O+=M-A),["bottom","bottom_inline_start_corner"].includes(m)){const{wtViewport:e,wtTable:t}=r.bottomOverlay.clone;O+=e.getWorkspaceHeight()-t.getHeight()-I}let x=t.offsetLeft;this.hot.isRtl()?(x=x>=0?f.getWidth()-t.offsetLeft:Math.abs(x),x+=_-b-i):["top","master","bottom"].includes(m)&&(x+=_-b);const P=s.getComputedStyle(this.TD),L=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",D=parseInt(P[L],10)>0?0:1,k=parseInt(P.borderTopWidth,10)>0?0:1,H=(0,l.outerWidth)(t)+D,F=(0,l.outerHeight)(t)+k,U=(0,l.hasVerticalScrollbar)(u)?I:0,V=(0,l.hasHorizontalScrollbar)(c)?I:0,B=this.hot.view.maximumVisibleElementWidth(x)-U+D;return{top:C,start:R,height:F,maxHeight:Math.max(this.hot.view.maximumVisibleElementHeight(O)-V+k,this.hot.stylesHandler.getDefaultRowHeight()),width:H,maxWidth:B}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let t="";return this.row<this.hot.getSettings().fixedRowsTop?t=this.col<this.hot.getSettings().fixedColumnsStart?"top-inline-start-corner":"top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?t=this.col<this.hot.getSettings().fixedColumnsStart?"bottom-inline-start-corner":"bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(t="inline-start"),t}}t.BaseEditor=c,(0,i.mixin)(c,a.default)},77618:(e,t,r)=>{"use strict";var n=r(19895),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},77748:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionUpByViewportHeight",callback(e){const{selection:t,rowIndexMapper:r}=e,{to:n}=e.getSelectedRangeLast(),s=Math.max(n.row-e.countVisibleRows(),0),o=r.getNearestNotHiddenIndex(s,1);if(null!==o){const r=e._createCellCoords(o,n.col),s=n.row-e.getFirstFullyVisibleRow(),i=Math.max(r.row-s,0);t.markSource("keyboard"),t.setRangeEnd(r),t.markEndSource(),e.scrollViewportTo({row:i,verticalSnap:"top",horizontalSnap:"start"})}}}},77823:(e,t,r)=>{"use strict";t.__esModule=!0,t.operationResult=a,r(88443),r(73741),r(82141);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(90530);const o=t.OPERATION_ID="disjunctionWithExtraCondition",i=t.SHORT_NAME_FOR_COMPONENT=n.FILTERS_LABELS_DISJUNCTION;function a(e,t){if(e.length<3)throw Error("Operation doesn't work on less then three conditions.");return e.slice(0,e.length-1).some(e=>e.func(t))&&e[e.length-1].func(t)}(0,s.registerOperation)(o,i,a)},77914:(e,t,r)=>{"use strict";var n=r(76277),s=r(65985),o=r(86713),i=r(77618),a=r(74218),l=r(63884),h=r(69498),u=r(13150),c=r(82314),d=TypeError,p=c(function(){[].keys().reduce(function(){},void 0)}),g=!p&&h("reduce",d);n({target:"Iterator",proto:!0,real:!0,forced:p||g},{reduce:function(e){i(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(g)return u(g,this,t?[e]:[e,r]);var n=a(this),h=0;if(s(n,function(n){t?(t=!1,r=n):r=e(r,n,h),h++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return r}})},77976:(e,t,r)=>{"use strict";var n=r(56360),s=r(82314),o=r(88005).String;e.exports=!!Object.getOwnPropertySymbols&&!s(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},78016:(e,t,r)=>{"use strict";var n=r(64976);e.exports=function(e,t,r){for(var s,o,i=r?e:e.iterator,a=e.next;!(s=n(a,i)).done;)if(void 0!==(o=t(s.value)))return o}},78124:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781),i=r(45624),a=r(39738);class l extends o.BaseAction{constructor(e){let{stateBefore:t,range:r,type:n,alignment:o}=e;super("cell_alignment"),(0,s.default)(this,"stateBefore",void 0),(0,s.default)(this,"range",void 0),(0,s.default)(this,"type",void 0),(0,s.default)(this,"alignment",void 0),this.stateBefore=t,this.range=r,this.type=n,this.alignment=o}static startRegisteringEvents(e,t){e.addHook("beforeCellAlignment",(e,r,n,s)=>{t.done(()=>new l({stateBefore:e,range:r,type:n,alignment:s}))})}undo(e,t){(0,a.arrayEach)(this.range,t=>{t.forAll((t,r)=>{t>=0&&r>=0&&e.setCellMeta(t,r,"className",this.stateBefore[t][r]||" htLeft")})}),e.addHookOnce("afterViewRender",t),e.render()}redo(e,t){(0,i.align)(this.range,this.type,this.alignment,(t,r)=>e.getCellMeta(t,r),(t,r,n,s)=>e.setCellMeta(t,r,n,s)),e.addHookOnce("afterViewRender",t),e.render()}}t.CellAlignmentAction=l},78209:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(58045),i=n(r(54138)),a=r(28627),l=r(85180),h=r(35782),u=r(27752),c=r(18528),d=r(49220),p=r(42663);const g="ht_editor_hidden",f="textEditor",m=t.EDITOR_TYPE="text";class E extends o.BaseEditor{static get EDITOR_TYPE(){return m}constructor(e){super(e),(0,s.default)(this,"eventManager",new i.default(this)),(0,s.default)(this,"autoResize",(0,u.createInputElementResizer)(this.hot.rootDocument)),(0,s.default)(this,"TEXTAREA",void 0),(0,s.default)(this,"textareaStyle",void 0),(0,s.default)(this,"TEXTAREA_PARENT",void 0),(0,s.default)(this,"textareaParentStyle",void 0),(0,s.default)(this,"layerClass",void 0),this.eventManager=new i.default(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this._opened=!0,this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this._opened=!1,this.autoResize.unObserve(),(0,l.isInternalElement)(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,t,r,n,s,i){const a=this.state;if(super.prepare(e,t,r,n,s,i),!i.readOnly){this.refreshDimensions(!0);const{allowInvalid:e}=i;e&&!this.isOpened()&&(this.TEXTAREA.value=""),a===o.EDITOR_STATE.FINISHED||this.isOpened()||this.hideEditableElement()}}beginEditing(e,t){this.state===o.EDITOR_STATE.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,t))}focus(){this.TEXTAREA.select(),(0,l.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),(0,l.setAttribute)(this.TEXTAREA,[["data-hot-input",""],(0,p.A11Y_TABINDEX)(-1)]),(0,l.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),(0,l.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),(0,l.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){(0,a.isEdge)()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",(0,l.removeClass)(this.TEXTAREA_PARENT,this.layerClass),(0,l.addClass)(this.TEXTAREA_PARENT,g)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="";const e=this.TEXTAREA_PARENT.childNodes;let t=!1;(0,h.rangeEach)(e.length-1,r=>{const n=e[r];if((0,l.hasClass)(n,"handsontableEditor"))return t=!0,!1}),(0,l.hasClass)(this.TEXTAREA_PARENT,g)&&(0,l.removeClass)(this.TEXTAREA_PARENT,g),t?(this.layerClass="ht_editor_visible",(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),(0,l.addClass)(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state!==o.EDITOR_STATE.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD)return void(e||this.close());const{top:t,start:r,width:n,maxWidth:s,height:i,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${t}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${r}px`,this.showEditableElement();const l=this.hot.rootWindow.getComputedStyle(this.TD);this.TEXTAREA.style.fontSize=l.fontSize,this.TEXTAREA.style.fontFamily=l.fontFamily,this.TEXTAREA.style.backgroundColor=this.TD.style.backgroundColor,this.autoResize.init(this.TEXTAREA,{minWidth:Math.min(n,s),minHeight:Math.min(i,a),maxWidth:s,maxHeight:a},!0)}bindEvents(){(0,a.isIOS)()&&this.eventManager.addEventListener(this.TEXTAREA,"focusout",()=>this.finishEditing(!1)),this.addHook("afterScrollHorizontally",()=>this.refreshDimensions()),this.addHook("afterScrollVertically",()=>this.refreshDimensions()),this.addHook("afterColumnResize",()=>{this.refreshDimensions(),this.state===o.EDITOR_STATE.EDITING&&this.focus()}),this.addHook("afterRowResize",()=>{this.refreshDimensions(),this.state===o.EDITOR_STATE.EDITING&&this.focus()})}allowKeyEventPropagation(){}destroy(){this.eventManager.destroy(),this.clearHooks()}registerShortcuts(){const e=this.hot.getShortcutManager().getContext("editor"),t={runOnlyIf:()=>(0,c.isDefined)(this.hot.getSelected()),group:f},r=()=>{this.hot.rootDocument.execCommand("insertText",!1,"\n")};e.addShortcuts([{keys:[["Control","Enter"]],callback:()=>(r(),!1),runOnlyIf:e=>!this.hot.selection.isMultiple()&&!e.altKey},{keys:[["Meta","Enter"]],callback:()=>(r(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(r(),!1)},{keys:[["Home"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}},{keys:[["End"]],callback:(e,t)=>{let[r]=t;(0,d.updateCaretPosition)(r,this.TEXTAREA)}}],t)}unregisterShortcuts(){this.hot.getShortcutManager().getContext("editor").removeShortcutsByGroup(f)}}t.TextEditor=E},78282:()=>{},78484:(e,t,r)=>{"use strict";var n=r(76277),s=r(64976),o=r(86713),i=r(77618),a=r(74218),l=r(59165),h=r(46963),u=r(63884),c=r(8302),d=r(15435),p=r(69498),g=!c&&!d("flatMap",function(){}),f=!c&&!g&&p("flatMap",TypeError),m=c||g||f,E=h(function(){for(var e,t,r=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(e=i(s(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){u(r,"throw",e)}if(e=i(s(this.next,r)),this.done=!!e.done)return;try{this.inner=l(n(e.value,this.counter++),!1)}catch(e){u(r,"throw",e)}}});n({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){i(this);try{o(e)}catch(e){u(this,"throw",e)}return f?s(f,this,e):new E(a(this),{mapper:e,inner:null})}})},78495:(e,t,r)=>{"use strict";var n=r(76277),s=r(82314),o=r(86977);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||s(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},78675:(e,t,r)=>{"use strict";var n=r(76277),s=r(61533),o=r(96068);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("union")||!o("union")},{union:s})},78932:(e,t,r)=>{"use strict";t.__esModule=!0,t.expandNode=function e(t){const{data:r,childs:i}=t;if(!r.isCollapsed||r.isHidden||r.origColspan<=1)return{rollbackModification:()=>{},affectedColumns:[],colspanCompensation:0};if((0,o.isNodeReflectsFirstChildColspan)(t))return e(i[0]);r.isCollapsed=!1;const a=i.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,o.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,o.isNodeReflectsFirstChildColspan)(e)&&(t.isCollapsed=(0,o.getFirstChildProperty)(e,"isCollapsed"))}),{rollbackModification:()=>(0,s.collapseNode)(t),affectedColumns:Array.from(l),colspanCompensation:h}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(39738),s=r(76651),o=r(81086)},79038:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllModules=function(){(0,n.registerAllEditors)(),(0,s.registerAllRenderers)(),(0,o.registerAllValidators)(),(0,i.registerAllCellTypes)(),(0,a.registerAllPlugins)()};var n=r(88663);t.registerAllEditors=n.registerAllEditors;var s=r(21926);t.registerAllRenderers=s.registerAllRenderers;var o=r(54629);t.registerAllValidators=o.registerAllValidators;var i=r(19643);t.registerAllCellTypes=i.registerAllCellTypes;var a=r(86930);t.registerAllPlugins=a.registerAllPlugins},79104:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n={registerAllShortcutContexts:!0};t.registerAllShortcutContexts=function(e){[o.shortcutsGridContext,s.shortcutsEditorContext].forEach(t=>t(e))};var s=r(74183),o=r(70794),i=r(9013);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===i[e]||(t[e]=i[e]))})},79382:(e,t,r)=>{"use strict";t.__esModule=!0,t.createKeyboardShortcutsCtrl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=[];function i(e,t){h(t).addShortcuts(e,{group:s})}function a(e,t){const n=h(t);e.forEach(e=>{let{keys:t}=e;t.forEach(e=>n.removeShortcutsByKeys(e))}),r.push({shortcuts:e,contextName:t}),i(e,t)}function l(e){return e?`${o}:${e}`:o}function h(t){var r;const n=e.hotMenu.getShortcutManager(),s=l(t);return null!==(r=n.getContext(s))&&void 0!==r?r:n.addContext(s)}return i((0,n.createDefaultShortcutsList)(e)),t.forEach(e=>{let{shortcuts:t,contextName:r}=e;a(t,r)}),{addCustomShortcuts:a,getCustomShortcuts:function(){return[...r]},getContext:h,listen:function(t){e.hotMenu.getShortcutManager().setActiveContextName(l(t))}}},r(85639),r(73741),r(69326);var n=r(46753);const s="menu",o=s},79407:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(33871);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Search=n.Search},79454:(e,t,r)=>{"use strict";var n=r(76277),s=r(88005),o=r(17734),i=r(77618),a=r(6996),l=r(15058),h=r(45021),u=r(281),c=r(82314),d=r(54090),p=r(92754),g=r(41626).IteratorPrototype,f=r(39157),m=r(8302),E="constructor",w="Iterator",y=p("toStringTag"),C=TypeError,R=s[w],S=m||!a(R)||R.prototype!==g||!c(function(){R({})}),v=function(){if(o(this,g),l(this)===g)throw new C("Abstract class Iterator not directly constructable")},T=function(e,t){f?h(g,e,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===g)throw new C("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):g[e]=t};d(g,y)||T(y,w),!S&&d(g,E)&&g[E]!==Object||T(E,v),v.prototype=g,n({global:!0,constructor:!0,forced:S},{Iterator:v})},79511:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(67261)),o=n(r(36555)),i=n(r(13555)),a=r(72848),l=r(84378);class h extends s.default{constructor(e,t,r,n){super(e,t,r,n,l.CLONE_BOTTOM)}}(0,a.mixin)(h,o.default),(0,a.mixin)(h,i.default);t.default=h},79662:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t=e.hot.isRtl()?"end":"start";return{key:"borders:left",name(){let e=this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_BORDERS_LEFT);return(0,s.checkSelectionBorders)(this,t)&&(e=(0,s.markSelected)(e)),e},callback(r,n){const o=(0,s.checkSelectionBorders)(this,t);e.prepareBorder(n,t,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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(23622)},79909:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));class o{constructor(e){(0,s.default)(this,"data",void 0),(0,s.default)(this,"next",null),(0,s.default)(this,"prev",null),this.data=e}}t.NodeStructure=o;t.default=class{constructor(){(0,s.default)(this,"first",null),(0,s.default)(this,"last",null)}push(e){const t=new o(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.last;this.last=t,t.prev=e,e.next=t}return t}unshift(e){const t=new o(e);if(null===this.first)this.first=t,this.last=t;else{const e=this.first;this.first=t,t.next=e,e.prev=t}}inorder(e){let t=this.first;for(;t;){const r=e(t);if(t===this.last||!0===r)break;t=t.next}}remove(e){if(null===this.first)return!1;let t,r,n=this.first;for(;n;){if(n.data===e)return t=n.next,r=n.prev,t&&(t.prev=r),r&&(r.next=t),n===this.first&&(this.first=t),n===this.last&&(this.last=r),!0;n=n.next}return!1}hasCycle(){let e=this.first,t=this.first;for(;;){if(null===e)return!1;if(e=e.next,null===e)return!1;if(e=e.next,t=t.next,e===t)return!0}}pop(){if(null===this.last)return null;const e=this.last;return this.last=this.last.prev,e}shift(){if(null===this.first)return null;const e=this.first;return this.first=this.first.next,e}recursiveReverse(){if(!this.first)return;!function e(t,r){r&&(e(r,r.next),r.next=t)}(this.first,this.first.next),this.first.next=null;const e=this.first;this.first=this.last,this.last=e}reverse(){if(!this.first||!this.first.next)return;let e,t=this.first.next,r=this.first;for(;t;)e=t.next,t.next=r,r.prev=t,r=t,t=e;this.first.next=null,this.last.prev=null,e=this.first,this.first=r,this.last=e}}},79954:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(46713);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenColumns=n.HiddenColumns},80121:(e,t,r)=>{"use strict";var n=r(25225),s=r(86713);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},80141:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(3217);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.AutoRowSize=n.AutoRowSize},80152:()=>{},80221:(e,t,r)=>{"use strict";var n=r(6996),s=r(9370),o=r(57754),i=r(61958);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:t;if(n(r)&&o(r,h,a),a.global)l?e[t]=r:i(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}},80338:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(95609);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.HiddenRows=n.HiddenRows},80350:()=>{},80403:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47289);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.ColumnSummary=n.ColumnSummary},80501:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=r(85180),o=n(r(10473)),i=r(25978),a=r(46512),l=r(34347);class h extends i.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 o.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 o=0;this.trimmingContainer!==t||n&&"horizontal"===n?(o=this.getScrollPosition(),(0,s.resetCssTransform)(r)):(o=this.getOverlayOffset()*(this.isRtl()?-1:1),(0,s.setOverlayPosition)(r,`${o}px`,"0px"));const i=this.adjustHeaderBordersPosition(o);return this.adjustElementsSize(),i}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,o=this.clone.wtTable.holder.parentNode.style,i=this.wtSettings.getSetting("preventOverflow");if(this.trimmingContainer!==n||"vertical"===i){let n=t.getWorkspaceHeight();t.hasHorizontalScroll()&&(n-=(0,s.getScrollbarWidth)(r)),n=Math.min(n,e.wtRootElement.scrollHeight),o.height=`${n}px`}else o.height="";this.clone.wtTable.holder.style.height=o.height;const a=(0,s.outerWidth)(this.clone.wtTable.TABLE);o.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"),o=r.getSetting("fixedColumnsStart"),i=(this.wot.cloneSource?this.wot.cloneSource:this.wot).wtTable.holder,a=0===o&&n.length>0&&!(0,s.hasClass)(i.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&&i.offsetWidth!==i.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"),o=t.getSetting("fixedColumnsStart"),i=t.getSetting("totalRows"),a="vertical"===t.getSetting("preventOverflow");i?(0,s.removeClass)(r,"emptyRows"):(0,s.addClass)(r,"emptyRows");let l=!1;if(!a)if(o&&!n.length)(0,s.addClass)(r,"innerBorderLeft innerBorderInlineStart");else if(!o&&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},80536:(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 o(e,t){return e.get(a(e,t))}function i(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(88443);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,o(l,this),e.row,t);if(null===n)return null;const s=a(u,this,d).call(this,o(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 o,a;s(o=this,a=u),a.add(o),n(this,l,void 0),n(this,h,void 0),i(l,this,t),i(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 o=e.clone();return o.from=n,o.to=s,o.includes(e.highlight)||(o.highlight=n),o}}},80585:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"editorCloseAndSave",callback(e){e._getEditorManager().closeEditorAndSaveChanges()}}},80737:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n=r(23798);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))});var s=r(31501);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||(t[e]=s[e]))})},80758:(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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="redo"},81086:(e,t)=>{"use strict";function r(e,t){let{childs:r}=e;if(0!==r.length)return r[0].data[t]}t.__esModule=!0,t.getFirstChildProperty=r,t.isNodeReflectsFirstChildColspan=function(e){return r(e,"origColspan")===e.data.origColspan},t.traverseHiddenNodeColumnIndexes=function(e,t){e.walkDown(e=>{let{data:r,childs:n}=e;if(!r.isHidden&&(t(r.columnIndex),0===n.length))for(let e=1;e<r.colspan;e++)t(r.columnIndex+e)})}},81141:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(34726);var s=n(r(53726)),o=r(39738),i=r(72848);t.CommandExecutor=class{constructor(e){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"commands",{}),(0,s.default)(this,"commonCallback",null),this.hot=e}registerCommand(e,t){this.commands[e]=t}setCommonCallback(e){this.commonCallback=e}execute(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const s=e.split(":"),a=s[0],l=2===s.length?s[1]:null;let h=this.commands[a];if(!h)throw new Error(`Menu command '${a}' not exists.`);if(l&&h.submenu&&(h=function(e,t){let r;return(0,o.arrayEach)(t,t=>{const n=t.key?t.key.split(":"):null;if(Array.isArray(n)&&n[1]===e)return r=t,!1}),r}(l,h.submenu.items)),!0===h.disabled)return;if("function"==typeof h.disabled&&!0===h.disabled.call(this.hot))return;if((0,i.hasOwnProperty)(h,"submenu"))return;const u=[];"function"==typeof h.callback&&u.push(h.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),r.unshift(s.join(":")),(0,o.arrayEach)(u,e=>e.apply(this.hot,r))}}},81384:()=>{},81452:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));t.NodesPool=class{constructor(e){(0,s.default)(this,"nodeType",void 0),(0,s.default)(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,t){const r="number"==typeof t?`${e}x${t}`:e.toString();if(this.pool.has(r))return this.pool.get(r);const n=this.rootDocument.createElement(this.nodeType);return this.pool.set(r,n),n}}},81554:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(69514);t.getDecreasedIndexes=n.getDecreasedIndexes,t.getIncreasedIndexes=n.getIncreasedIndexes;var s=r(14551),o=r(23661);const i=new Map([["indexesSequence",{getListWithInsertedItems:s.getListWithInsertedItems,getListWithRemovedItems:s.getListWithRemovedItems}],["physicallyIndexed",{getListWithInsertedItems:o.getListWithInsertedItems,getListWithRemovedItems:o.getListWithRemovedItems}]]);t.alterUtilsFactory=e=>{if(!1===i.has(e))throw new Error(`Alter strategy with ID '${e}' does not exist.`);return i.get(e)}},81621:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(35782),i=r(72848),a=r(39738);t.default=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"data",null),(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"parentReference",new WeakMap),(0,s.default)(this,"cache",{levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap}),this.hot=t,this.plugin=e}setData(e){this.data=e}getData(){return this.data}getRawSourceData(){let e=null;return this.plugin.disableCoreAPIModifiers(),e=this.hot.getSourceData(),this.plugin.enableCoreAPIModifiers(),e}updateWithData(e){this.setData(e),this.rewriteCache()}rewriteCache(){this.cache={levels:[],levelCount:0,rows:[],nodeInfo:new WeakMap},(0,o.rangeEach)(0,this.data.length-1,e=>{this.cacheNode(this.data[e],0,null)})}cacheNode(e,t,r){this.cache.levels[t]||(this.cache.levels[t]=[],this.cache.levelCount+=1),this.cache.levels[t].push(e),this.cache.rows.push(e),this.cache.nodeInfo.set(e,{parent:r,row:this.cache.rows.length-1,level:t}),this.hasChildren(e)&&(0,a.arrayEach)(e.__children,r=>{this.cacheNode(r,t+1,e)})}getDataObject(e){return null==e?null:this.cache.rows[e]}readTreeNodes(e,t,r,n){let s=!1,o=t;if(isNaN(o)&&o.end)return o;let i=e;return i||(i={__children:this.data},s=!0,o-=1),null!=r&&o===r?{result:i,end:!0}:null!=n&&i===n?{result:o,end:!0}:(o+=1,i.__children&&(0,a.arrayEach)(i.__children,e=>{if(this.parentReference.set(e,s?null:i),o=this.readTreeNodes(e,o,r,n),isNaN(o)&&o.end)return!1}),o)}mockParent(){const e=this.mockNode();return e.__children=this.data,e}mockNode(){const e={};return(0,i.objectEach)(this.data[0],(t,r)=>{e[r]=null}),e}getRowIndex(e){return null==e?null:this.cache.nodeInfo.get(e).row}getRowIndexWithinParent(e){let t=null;t=isNaN(e)?e:this.getDataObject(e);const r=this.getRowParent(e);return null==r?this.data.indexOf(t):r.__children.indexOf(t)}countAllRows(){const e={__children:this.data};return this.countChildren(e)}countChildren(e){let t=0,r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&r.__children?((0,a.arrayEach)(r.__children,e=>{t+=1,e.__children&&(t+=this.countChildren(e))}),t):0}getRowParent(e){let t;return t=isNaN(e)?e:this.getDataObject(e),this.getRowObjectParent(t)}getRowObjectParent(e){return e&&"object"==typeof e?this.cache.nodeInfo.get(e).parent:null}getRowLevel(e){let t=null;return t=isNaN(e)?e:this.getDataObject(e),t?this.getRowObjectLevel(t):null}getRowObjectLevel(e){return null==e?null:this.cache.nodeInfo.get(e).level}hasChildren(e){let t=e;return isNaN(t)||(t=this.getDataObject(t)),!(!t.__children||!t.__children.length)}isChild(e){return null!==this.getRowParent(e)}getChild(e,t){var r;return(null===(r=e.__children)||void 0===r?void 0:r[t])||null}isRowHighestLevel(e){return!this.isChild(e)}isParent(e){var t;let r=e;return isNaN(r)||(r=this.getDataObject(r)),r&&!!r.__children&&0!==(null===(t=r.__children)||void 0===t?void 0:t.length)}addChild(e,t){let r=t;this.hot.runHooks("beforeAddChild",e,r);let n=null;e&&(n=this.getRowIndex(e)),this.hot.runHooks("beforeCreateRow",n+this.countChildren(e)+1,1);let s=e;e||(s=this.mockParent()),s.__children||(s.__children=[]),r||(r=this.mockNode()),s.__children.push(r),this.rewriteCache();const o=this.getRowIndex(r);this.hot.rowIndexMapper.insertIndexes(o,1),this.hot.runHooks("afterCreateRow",o,1),this.hot.runHooks("afterAddChild",e,r)}addChildAtIndex(e,t,r){let n,s=r;if(s||(s=this.mockNode()),this.hot.runHooks("beforeAddChild",e,s,t),e){const r=this.getRowIndex(e)+t+1;this.hot.runHooks("beforeCreateRow",r,1),e.__children.splice(t,null,s),this.rewriteCache(),this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(e),"__children",e.__children,"NestedRows.addChildAtIndex"),this.hot.rowIndexMapper.insertIndexes(r,1),this.plugin.enableCoreAPIModifiers(),this.hot.runHooks("afterCreateRow",r,1),n=r}else this.plugin.disableCoreAPIModifiers(),this.hot.alter("insert_row_above",t,1,"NestedRows.addChildAtIndex"),this.plugin.enableCoreAPIModifiers(),n=this.getRowIndex(this.data[t]);s=this.getDataObject(n),this.hot.runHooks("afterAddChild",e,s,t)}addSibling(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"below";const r=this.translateTrimmedRow(e),n=this.getRowParent(r),s=this.getRowIndexWithinParent(r);switch(t){case"below":this.addChildAtIndex(n,s+1,null);break;case"above":this.addChildAtIndex(n,s,null)}}detachFromParent(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;const n=[];Array.isArray(e)?((0,o.rangeEach)(e[0],e[2],e=>{const t=this.translateTrimmedRow(e);n.push(this.getDataObject(t))}),(0,o.rangeEach)(0,n.length-2,e=>{this.detachFromParent(n[e],!1)}),r=n[n.length-1]):r=e;const s=this.getRowIndex(r),i=this.countChildren(r),a=this.getRowIndexWithinParent(r),l=this.getRowParent(r),h=this.getRowParent(l),u=this.getRowIndex(h);let c=null;if(this.hot.runHooks("beforeDetachChild",l,r),null!=a){const e=Array.from(new Array(s+i+1).keys()).splice(-1*(i+1));if(this.hot.runHooks("beforeRemoveRow",s,i+1,e,this.plugin.pluginName),l.__children.splice(a,1),this.rewriteCache(),this.hot.runHooks("afterRemoveRow",s,i+1,e,this.plugin.pluginName),h){c=u+this.countChildren(h);const e=this.getChild(h,this.countChildren(h)-1),t=this.getRowIndex(e);this.hot.runHooks("beforeCreateRow",t+1,i+1,this.plugin.pluginName),h.__children.push(r)}else c=this.hot.countRows()+1,this.hot.runHooks("beforeCreateRow",c-2,i+1,this.plugin.pluginName),this.data.push(r)}this.rewriteCache(),this.hot.runHooks("afterCreateRow",c-2,i+1,this.plugin.pluginName),this.hot.runHooks("afterDetachChild",l,r,this.getRowIndex(r)),t&&this.hot.render()}filterData(e,t,r){const n=[];(0,a.arrayEach)(r,e=>{n.push(this.getDataObject(e))}),(0,a.arrayEach)(n,e=>{const t=this.getRowIndexWithinParent(e),r=this.getRowParent(e);null===r?this.data.splice(t,1):r.__children.splice(t,1)}),this.rewriteCache()}spliceData(e,t,r){const n=this.getDataObject(e-1);let s=null,o=e;n&&n.__children&&0===n.__children.length?(s=n,o=0):e<this.countAllRows()&&(s=this.getRowParent(e),o=this.getRowIndexWithinParent(e)),s?r?s.__children.splice(o,t,...r):s.__children.splice(o,t):r?this.data.splice(o,t,...r):this.data.splice(o,t),this.rewriteCache()}syncRowWithRawSource(e){let t=e,r=t;do{r=this.getRowParent(r),null!==r&&(t=r)}while(null!==r);this.plugin.disableCoreAPIModifiers(),this.hot.setSourceDataAtCell(this.getRowIndexWithinParent(t),"__children",t.__children,"NestedRows.syncRowWithRawSource"),this.plugin.enableCoreAPIModifiers()}moveRow(e,t,r,n){const s=t===this.hot.countRows(),o=this.getRowParent(e),i=this.getRowIndexWithinParent(e),a=o.__children.slice(i,i+1),l=e>t;let h=s?this.getRowParent(t-1):this.getRowParent(t);null==h&&(h=this.getRowParent(t-1)),null==h&&(h=this.getDataObject(t-1)),h?h.__children||(h.__children=[]):(h=this.getDataObject(t),h.__children=[]);const u=s||r||n?h.__children.length:this.getRowIndexWithinParent(t),c=o===h;h.__children.splice(u,0,a[0]),o.__children.splice(i+(l&&c?1:0),1),this.syncRowWithRawSource(o),c||this.syncRowWithRawSource(h)}translateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.translateTrimmedRow(e):e}untranslateTrimmedRow(e){return this.plugin.collapsingUI?this.plugin.collapsingUI.untranslateTrimmedRow(e):e}}},81670:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.default=function(e){return{key:"mergeCells",name(){const t=this.getSelectedLast();if(t){const r=e.mergedCellsCollection.get(t[0],t[1]);if(r.row===t[0]&&r.col===t[1]&&r.row+r.rowspan-1===t[2]&&r.col+r.colspan-1===t[3])return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_UNMERGE_CELLS)}return this.getTranslatedPhrase(s.CONTEXTMENU_ITEMS_MERGE_CELLS)},callback(){const t=this.getSelectedRangeLast();if(!t)return;t.setDirection(this.isRtl()?"NE-SW":"NW-SE");const{from:r,to:n}=t;e.toggleMerge(t),this.selectCell(r.row,r.col,n.row,n.col,!1)},disabled(){const e=this.getSelectedLast();if(!e)return!0;return o.default.isSingleCell({row:e[0],col:e[1],rowspan:e[2]-e[0]+1,colspan:e[3]-e[1]+1})||this.selection.isSelectedByCorner()},hidden:!1}};var s=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),o=n(r(63086))},81907:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(55127);t.RENDERER_TYPE=n.RENDERER_TYPE,t.textRenderer=n.textRenderer},82016:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(85180),i=r(72848);t.default=class{constructor(e){(0,s.default)(this,"settings",{}),(0,s.default)(this,"defaults",Object.freeze(this.getDefaults())),(0,i.objectEach)(this.defaults,(t,r)=>{if(void 0!==e[r])this.settings[r]=e[r];else{if(void 0===t)throw new Error(`A required setting "${r}" was not provided`);this.settings[r]=t}})}getDefaults(){return{facade:void 0,table:void 0,isDataViewInstance:!0,externalRowCalculator:!1,currentRowClassName:null,currentColumnClassName:null,preventOverflow:()=>!1,preventWheel:!1,data:void 0,fixedColumnsStart:0,fixedRowsTop:0,fixedRowsBottom:0,shouldRenderInlineStartOverlay:()=>this.getSetting("fixedColumnsStart")>0||this.getSetting("rowHeaders").length>0,shouldRenderTopOverlay:()=>this.getSetting("fixedRowsTop")>0||this.getSetting("columnHeaders").length>0,shouldRenderBottomOverlay:()=>this.getSetting("fixedRowsBottom")>0,minSpareRows:0,rowHeaders:()=>[],columnHeaders:()=>[],totalRows:void 0,totalColumns:void 0,cellRenderer:(e,t,r)=>{const n=this.getSetting("data",e,t);(0,o.fastInnerText)(r,null==n?"":n)},columnWidth(){},rowHeight(){},rowHeightByOverlayName(){},defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,viewportRowRenderingThreshold:null,viewportColumnRenderingThreshold:null,onCellMouseDown:null,onCellContextMenu:null,onCellMouseOver:null,onCellMouseOut:null,onCellMouseUp:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeRemoveCellClassNames:null,onAfterDrawSelection:null,onBeforeDrawBorders:null,onBeforeViewportScrollHorizontally:e=>e,onBeforeViewportScrollVertically:e=>e,onScrollHorizontally:null,onScrollVertically:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onModifyRowHeaderWidth:null,onModifyGetCellCoords:null,onModifyGetCoordsElement:null,onModifyGetCoords:null,onBeforeHighlightingRowHeader:e=>e,onBeforeHighlightingColumnHeader:e=>e,onWindowResize:null,onContainerElementResize:null,renderAllColumns:!1,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null,headerClassName:null,rtlMode:!1,ariaTags:!0,stylesHandler:null}}update(e,t){return void 0===t?(0,i.objectEach)(e,(e,t)=>{this.settings[t]=e}):this.settings[e]=t,this}getSetting(e,t,r,n,s){return"function"==typeof this.settings[e]?this.settings[e](t,r,n,s):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]}getSettingPure(e){return this.settings[e]}has(e){return!!this.settings[e]}}},82141:(e,t,r)=>{"use strict";r(72048)},82314:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},82564:(e,t,r)=>{"use strict";t.__esModule=!0,t.isCtrlKey=function(e){const t=[];(0,s.isMacOS)()?t.push(o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX):t.push(o.CONTROL);return t.includes(e)},t.isCtrlMetaKey=function(e){return[o.CONTROL,o.COMMAND_LEFT,o.COMMAND_RIGHT,o.COMMAND_FIREFOX].includes(e)},t.isFunctionKey=function(e){return i.includes(e)},t.isKey=function(e,t){const r=t.split("|");let s=!1;return(0,n.arrayEach)(r,t=>{if(e===o[t])return s=!0,!1}),s},t.isPrintableChar=function(e){return 32===e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90},r(85639);var n=r(39738),s=r(28627);const o=t.KEY_CODES={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:(0,s.isFirefox)()?182:174,AUDIO_MUTE:(0,s.isFirefox)()?181:173,AUDIO_UP:(0,s.isFirefox)()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},i=[o.ALT,o.ARROW_DOWN,o.ARROW_LEFT,o.ARROW_RIGHT,o.ARROW_UP,o.AUDIO_DOWN,o.AUDIO_MUTE,o.AUDIO_UP,o.BACKSPACE,o.CAPS_LOCK,o.DELETE,o.END,o.ENTER,o.ESCAPE,o.F1,o.F2,o.F3,o.F4,o.F5,o.F6,o.F7,o.F8,o.F9,o.F10,o.F11,o.F12,o.F13,o.F14,o.F15,o.F16,o.F17,o.F18,o.F19,o.HOME,o.INSERT,o.MEDIA_NEXT,o.MEDIA_PLAY_PAUSE,o.MEDIA_PREV,o.MEDIA_STOP,o.NULL,o.NUM_LOCK,o.PAGE_DOWN,o.PAGE_UP,o.PAUSE,o.SCROLL_LOCK,o.SHIFT,o.TAB]},82597:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var s=n(r(53726)),o=r(15886),i=r(72848),a=r(28275);t.DynamicCellMetaMod=class{constructor(e){var t=this;(0,s.default)(this,"metaManager",void 0),(0,s.default)(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return t.extendCellMeta(...arguments)}),o.Hooks.getSingleton().add("beforeRender",e=>{e&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var t;const{row:r,col:n}=e;if(null!==(t=this.metaSyncMemo.get(r))&&void 0!==t&&t.has(n))return;const{visualRow:s,visualCol:o}=e,l=this.metaManager.hot,h=l.colToProp(o);e.prop=h,l.runHooks("beforeGetCellMeta",s,o,e);const u=(0,i.hasOwnProperty)(e,"type")?e.type:null;let c=(0,a.isFunction)(e.cells)?e.cells(r,n,h):null;var d;u&&(c?c.type=null!==(d=c.type)&&void 0!==d?d:u:c={type:u});c&&this.metaManager.updateCellMeta(r,n,c),l.runHooks("afterGetCellMeta",s,o,e),this.metaSyncMemo.has(r)||this.metaSyncMemo.set(r,new Set),this.metaSyncMemo.get(r).add(n)}}},82662:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(85639),r(73741),r(69326),r(90795);var n=r(28222),s=r(93049);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 i(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,p=new WeakMap,g=new WeakMap,f=new WeakMap;t.default=class{constructor(e,t,r){o(this,h,void 0),o(this,u,void 0),o(this,c,void 0),o(this,d,[]),o(this,p,[]),o(this,g,void 0),o(this,f,[]),a(h,this,e),a(u,this,t),a(c,this,r)}setRemovedHfIndexes(e){return a(f,this,e.map(e=>{const t=i(u,this).getVisualFromPhysicalIndex(e);return this.getHfIndexFromVisualIndex(t)})),i(f,this)}getRemovedHfIndexes(){return i(f,this)}getHfIndexFromVisualIndex(e){const t=i(u,this).getIndexesSequence(),r=i(u,this).getNotTrimmedIndexes();return t.indexOf(r[e],e)}syncMoves(e){const t=`move${(0,n.toUpperCaseFirst)(i(h,this))}s`;i(c,this).getEngine().batch(()=>{e.forEach(e=>{const r=e.from!==e.to,n=e.from+1!==e.to;r&&n&&i(c,this).getEngine()[t](i(c,this).getSheetId(),e.from,1,e.to)})})}storeMovesInformation(e,t,r){!1!==r&&(a(p,this,e.map(e=>this.getHfIndexFromVisualIndex(e))),a(g,this,this.getHfIndexFromVisualIndex(t)))}calculateAndSyncMoves(e,t){if(i(c,this).isPerformingUndoRedo())return;if(!1===e||!1===t)return;const r=(0,s.getMoves)(i(p,this),i(g,this),i(u,this).getNumberOfIndexes());null===i(c,this).getSheetId()?i(c,this).getPostponeAction(()=>this.syncMoves(r)):this.syncMoves(r)}getIndexesChangeSyncMethod(){const e=`set${(0,n.toUpperCaseFirst)(i(h,this))}Order`;return t=>{if(i(c,this).isPerformingUndoRedo())return;const r=i(u,this).getIndexesSequence();if("update"===t&&r.length>0){const t=i(d,this).map(e=>r.indexOf(e)),n=i(c,this).getEngine().getSheetDimensions(i(c,this).getSheetId());let s;s="row"===i(h,this)?n.height:n.width;for(let e=t.length;e<s;e+=1)t.push(e);i(c,this).getEngine()[e](i(c,this).getSheetId(),t)}a(d,this,r)}}init(){a(d,this,i(u,this).getIndexesSequence())}}},82704:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(35899);t.EDITOR_TYPE=n.EDITOR_TYPE,t.DateEditor=n.DateEditor},83252:()=>{},83367:()=>{},83407:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(16178);var s=n(r(53726)),o=r(72848),i=r(39738);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),o=this.getAutofillSize(e,t,r),[i,a,l,h]=e,u=["up","down"].indexOf(r)>-1?l-i+1:h-a+1,c=o-Math.floor(o/u)*u,d=this.getFarthestCollection(e,t,r,n);if(d)if("down"===r){const e=d.row+d.rowspan-i-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:o,dragArea:s,cycleLength:u}),s}updateCurrentFillCache(e){this.currentFillData||(this.currentFillData={}),(0,o.extend)(this.currentFillData,e)}getAutofillSize(e,t,r){const[n,s,o,i]=e,[a,l,h,u]=t;switch(r){case"up":return n-a;case"down":return h-o;case"left":return s-l;case"right":return u-i;default:return null}}getDragArea(e,t,r){const[n,s,o,i]=e,[a,l,h,u]=t;switch(r){case"up":return[a,l,n-1,i];case"down":{const e=this.mergedCellsCollection.get(h,i);return[o+1,s,h+(e?e.rowspan-1:0),i]}case"left":return[a,l,o,s-1];case"right":{const e=this.mergedCellsCollection.get(h,i);return[n,i+(e?e.colspan-1:0),h,u]}default:return null}}getFarthestCollection(e,t,r,n){const[s,o,a,l]=e,h=["up","down"].indexOf(r)>-1,u=h?a:l,c=h?s:o,d=this.getAutofillSize(e,t,r),p=h?a-s+1:l-o+1,g=d-Math.floor(d/p)*p;let f=null,m=null,E=null;switch(r){case"up":f="includesVertically",E=u-g+1;break;case"left":f="includesHorizontally",E=u-g+1;break;case"down":f="includesVertically",E=c+g-1;break;case"right":f="includesHorizontally",E=c+g-1}return(0,i.arrayEach)(n,e=>{e[f](E)&&e.isFarther(m,r)&&(m=e)}),m}recreateAfterDataPopulation(e){if(!this.currentFillData)return;const t=this.getRangeFromChanges(e),r=this.currentFillData.foundMergedCells,n=this.currentFillData.dragDirection,s=(e,r)=>{switch(n){case"up":return e.row-r>=t.from.row;case"down":return e.row+e.rowspan-1+r<=t.to.row;case"left":return e.col-r>=t.from.column;case"right":return e.col+e.colspan-1+r<=t.to.column;default:return null}};let o=0,i=null,a=1;do{for(let e=0;e<r.length;e+=1){if(i=r[e],o=a*this.currentFillData.cycleLength,s(i,o))switch(n){case"up":this.plugin.mergedCellsCollection.add({row:i.row-o,rowspan:i.rowspan,col:i.col,colspan:i.colspan},!0);break;case"down":this.plugin.mergedCellsCollection.add({row:i.row+o,rowspan:i.rowspan,col:i.col,colspan:i.colspan},!0);break;case"left":this.plugin.mergedCellsCollection.add({row:i.row,rowspan:i.rowspan,col:i.col-o,colspan:i.colspan},!0);break;case"right":this.plugin.mergedCellsCollection.add({row:i.row,rowspan:i.rowspan,col:i.col+o,colspan:i.colspan},!0)}e===r.length-1&&(a+=1)}}while(s(i,o));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,i.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,o,i,a]=n,l=this.plugin.hot._createCellCoords(s,o),h=this.plugin.hot._createCellCoords(i,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()}))}}},83457:(e,t,r)=>{"use strict";t.__esModule=!0,t.getThemeClassName=function(e){const{classNames:t}=(0,n.findFirstParentWithClass)(e,/ht-theme-[a-zA-Z0-9_-]+/);return t.pop()};var n=r(85180)},83493:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639),r(73741),r(7307),r(69326),r(90795),r(82141);var s=n(r(53726));class o{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}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 o(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=o},83762:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=r(10100),o=r(39738),i=r(35782),a=r(85180),l=n(r(10872)),h=n(r(55194));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,o.arrayEach)(r.lastCollapsedRows,(s,o)=>{s>=e&&s<t&&(r.lastCollapsedRows[o]=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,i.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,i=null,a=null;return isNaN(e)?(s=e,i=this.dataManager.getRowIndex(s)):(s=this.dataManager.getDataObject(e),i=e),this.dataManager.hasChildren(s)&&(0,o.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(i)&&this.collapsedRows.push(i),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,o.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,o.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,o.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,o.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,o.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,i=null,a=null;return isNaN(e)?(s=e,i=this.dataManager.getRowIndex(e)):(s=this.dataManager.getDataObject(e),i=e),this.collapsedRows.splice(this.collapsedRows.indexOf(i),1),this.dataManager.hasChildren(s)&&(0,o.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,o.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,o.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.collapseMultipleChildren(t),this.renderAndAdjust()}expandAll(){const e=this.dataManager.getData(),t=[];(0,o.arrayEach)(e,e=>{this.dataManager.hasChildren(e)&&t.push(e)}),this.expandMultipleChildren(t),this.renderAndAdjust()}trimRows(e){this.hot.batchExecution(()=>{(0,o.arrayEach)(e,e=>{this.plugin.collapsedRowsMap.setValueAtIndex(e,!0)})},!0)}untrimRows(e){this.hot.batchExecution(()=>{(0,o.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,o.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.render(),this.hot.view.adjustElementsSize()}}t.default=u},83788:()=>{},83954:(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(63426);t.COLUMN_DATA_TYPE="date"},84101:()=>{},84199:(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()}}},84378:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n={BottomInlineStartCornerOverlay:!0,BottomOverlay:!0,InlineStartOverlay:!0,Overlay:!0,TopInlineStartCornerOverlay:!0,TopOverlay:!0},s=r(46381);t.BottomInlineStartCornerOverlay=s.BottomInlineStartCornerOverlay;var o=r(44275);t.BottomOverlay=o.BottomOverlay;var i=r(80501);t.InlineStartOverlay=i.InlineStartOverlay;var a=r(25978);t.Overlay=a.Overlay;var l=r(65815);t.TopInlineStartCornerOverlay=l.TopInlineStartCornerOverlay;var h=r(72477);t.TopOverlay=h.TopOverlay;var u=r(34347);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===u[e]||(t[e]=u[e]))})},84745:(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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(32949),o=r(18528);const i=t.CONDITION_NAME="empty";function a(e){return(0,o.isEmpty)(e.value)}(0,s.registerCondition)(i,a,{name:n.FILTERS_CONDITIONS_EMPTY,inputsCount:0,showOperators:!0})},84888:()=>{},84925:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21419);t.RENDERER_TYPE=n.RENDERER_TYPE,t.passwordRenderer=n.passwordRenderer},84940:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(53726)),o=r(85180),i=r(72848);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:i,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,o.offset)(n.wtRootElement).left}const h=Math.abs((0,o.getScrollLeft)(a,a));if(l>h){const t=(0,o.innerWidth)(a);let n=s.getRowHeaderWidth();for(let s=1;s<=i;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:i}=this.dataAccessObject;if(t.mainTableScrollableElement===i){const a=(0,o.offset)(r.wtRootElement),l=(0,o.getScrollTop)(i,i);if(a.top>l){const r=(0,o.innerHeight)(i);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,i.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:o,inlineStartOverlay:a}=this.dataAccessObject,l="auto"===t;if(l&&e<o)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,i.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:o,fixedRowsTop:a,topOverlay:l}=this.dataAccessObject,h="auto"===t;if(h&&(e<a||e>n-o-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())}}},85025:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(19126);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.BindRowsWithHeaders=n.BindRowsWithHeaders},85180:(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 o=n.length;return o?n[o-1]:null},t.empty=p,t.fastInnerHTML=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];g.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=y,t.getFrameElement=i,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 i(e)&&e.parent},t.getScrollLeft=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return E(t);return e.scrollLeft},t.getScrollTop=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e===t)return m(t);return e.scrollTop},t.getScrollableElement=function(e){let t=e.ownerDocument,r=t?t.defaultView:void 0;t||(t=e.document?e.document:e,r=t.defaultView);const n=["auto","scroll"];let s=e.parentNode;for(;s&&s.style&&t.body!==s;){let{overflow:e,overflowX:t,overflowY:o}=s.style;if([e,t,o].includes("scroll"))return s;if(({overflow:e,overflowX:t,overflowY:o}=r.getComputedStyle(s)),n.includes(e)||n.includes(t)||n.includes(o))return s;if(s.clientHeight<=s.scrollHeight+1&&(n.includes(o)||n.includes(e)))return s;if(s.clientWidth<=s.scrollWidth+1&&(n.includes(t)||n.includes(e)))return s;s=s.parentNode}return r},t.getScrollbarWidth=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;void 0===w&&(w=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.createElement("div");t.style.height="200px",t.style.width="100%";const r=e.createElement("div");(0,o.isSafari)()&&!(0,o.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.offsetWidth;r.style.overflow="scroll";let s=t.offsetWidth;n===s&&(s=r.clientWidth);return(e.body||e.documentElement).removeChild(r),n-s+y(e)}(e));return w},t.getSelectionEndPosition=function(e){if(e.selectionEnd)return e.selectionEnd;return 0},t.getSelectionText=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document;let r="";e.getSelection?r=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(r=t.selection.createRange().text);return r},t.getStyle=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(!e)return;if(e===r)return"width"===t?`${r.innerWidth}px`:"height"===t?`${r.innerHeight}px`:void 0;const n=e.style[t];if(""!==n&&void 0!==n)return n;const s=r.getComputedStyle(e);if(""!==s[t]&&void 0!==s[t])return s[t]},t.getTrimmingContainer=function(e){const t=e.ownerDocument,r=t.defaultView;let n=e.parentNode;for(;n&&n.style&&t.body!==n;){if("visible"!==n.style.overflow&&""!==n.style.overflow)return n;const e=r.getComputedStyle(n),t=["scroll","hidden","auto"],s=e.getPropertyValue("overflow"),o=e.getPropertyValue("overflow-y"),i=e.getPropertyValue("overflow-x");if(t.includes(s)||t.includes(o)||t.includes(i))return n;n=n.parentNode}return r},t.getWindowScrollLeft=E,t.getWindowScrollTop=m,t.hasAccessToParentWindow=function(e){return!!Object.getPrototypeOf(e.parent)},t.hasClass=function(e,t){if(void 0===e.classList||"string"!=typeof t||""===t)return!1;return e.classList.contains(t)},t.hasHorizontalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollWidth>e.innerWidth;return e.offsetHeight!==e.clientHeight},t.hasVerticalScrollbar=function(e){if(e instanceof Window)return e.document.body.scrollHeight>e.innerHeight;return e.offsetWidth!==e.clientWidth},t.hasZeroHeight=function(e){const t=e.ownerDocument.defaultView;let r=e;for(;r.parentNode;){if("0px"===r.style.height||"0"===r.style.height)return"hidden"===t.getComputedStyle(r).overflow;r=r.parentNode}return!1},t.index=function(e){let t=0,r=e;if(r.previousSibling)for(;r=r.previousSibling;)t+=1;return t},t.innerHeight=function(e){return e.clientHeight||e.innerHeight},t.innerWidth=function(e){return e.clientWidth||e.innerWidth},t.isChildOf=function(e,t){let r=e.parentNode,n=[];"string"==typeof t?n=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):n.push(t);for(;null!==r;){if(n.indexOf(r)>-1)return!0;r=r.parentNode}return!1},t.isDetached=function(e){return!e.parentNode},t.isHTMLElement=function(e){var t;const r=null==e||null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView.Element;return!!(r&&null!==r&&e instanceof r)},t.isInput=C,t.isInternalElement=function(e,t){const r=e.closest(".handsontable");return!!r&&(r.parentNode===t||r===t)},t.isOutsideInput=R,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=S,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,o,i,a=e;s=a.offsetLeft,o=a.offsetTop,i=a;for(;(a=a.offsetParent)&&a!==t.body&&"offsetLeft"in a;)s+=a.offsetLeft,o+=a.offsetTop,i=a;i&&"fixed"===i.style.position&&(s+=r.pageXOffset||n.scrollLeft,o+=r.pageYOffset||n.scrollTop);return{left:s,top:o}},t.outerHeight=function(e){return e.offsetHeight},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=v,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];S(e,r),t(),v(e,r)},t.selectElementIfAllowed=function(e){R(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,o=s.style.display;s.style.display="block",e.setSelectionRange(t,r),s.style.display=o}}},t.setOverlayPosition=function(e,t,r){e.style.transform=`translate3d(${t},${r},0)`},r(88443),r(85639),r(73741),r(7307),r(69326);var n=r(28222),s=r(42663),o=r(28627);function i(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 o=e;for(;null!=o&&o!==r;){const{nodeType:e,nodeName:r}=o;if(e===n&&(t.includes(r)||t.includes(o)))return o;const{host:i}=o;o=i&&e===s?i:o.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 p(e){let t;for(;t=e.lastChild;)e.removeChild(t)}const g=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/;function f(e,t){const r=e.firstChild;r&&3===r.nodeType&&null===r.nextSibling?r.textContent=t:(p(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function m(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollY}function E(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).scrollX}let w;function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return(0,o.isWindowsOS)()?Number.isInteger(e.defaultView.devicePixelRatio||1)?0:2:0}function C(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function R(e){return C(e)&&!1===e.hasAttribute("data-hot-input")}function S(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,o=n.createRange(),i=n.defaultView.getSelection();d(e,"contenteditable",!0),r&&d(e,...(0,s.A11Y_HIDDEN)()),t&&u(e,"invisibleSelection"),o.selectNodeContents(e),i.removeAllRanges(),i.addRange(o)}function v(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")}},85442:(e,t,r)=>{"use strict";var n=r(13794);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},85458:(e,t,r)=>{"use strict";var n=r(30334);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},85484:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(79909));function o(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 a(e,t){return e.get(h(e,t))}function l(e,t,r){return e.set(h(e,t),r),r}function h(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,c=new WeakMap,d=new WeakMap,p=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,E=new WeakSet;function w(e,t,r,n,s){const o=e.getTopStartCorner(),i=e.getBottomEndCorner(),l=e.highlight.clone().normalize(),h=a(g,this).call(this,n,s);if(h&&r.has(h))return null;const u={colStart:s,colEnd:s,rowStart:n,rowEnd:n};if(h){if(r.add(h),h.row<o.row||h.row+h.rowspan-1>i.row||h.col<o.col||h.col+h.colspan-1>i.col)return null;u.colStart=h.col,u.colEnd=h.col+h.colspan-1,u.rowStart=h.row,u.rowEnd=h.row+h.rowspan-1}const c=t.push(u);return n===l.row&&s===l.col||h&&l.row>=h.row&&l.row<=h.row+h.rowspan-1&&l.col>=h.col&&l.col<=h.col+h.colspan-1?c:null}t.FocusOrder=class{constructor(e){let{mergedCellsGetter:t,rowIndexMapper:r,columnIndexMapper:n}=e;var a,h;i(a=this,h=E),h.add(a),o(this,u,new s.default),o(this,c,new s.default),o(this,d,null),o(this,p,null),o(this,g,null),o(this,f,null),o(this,m,null),l(g,this,t),l(f,this,r),l(m,this,n)}getCurrentVerticalNode(){return a(p,this).data}getFirstVerticalNode(){return a(c,this).first.data}getNextVerticalNode(){return a(p,this).next.data}getPrevVerticalNode(){return a(p,this).prev.data}getCurrentHorizontalNode(){return a(d,this).data}getFirstHorizontalNode(){return a(u,this).first.data}getNextHorizontalNode(){return a(d,this).next.data}getPrevHorizontalNode(){return a(d,this).prev.data}setPrevNodeAsActive(){l(p,this,a(p,this).prev),l(d,this,a(d,this).prev)}setNextNodeAsActive(){l(p,this,a(p,this).next),l(d,this,a(d,this).next)}buildFocusOrder(e){const t=e.getTopStartCorner(),r=e.getBottomEndCorner(),n=new WeakSet;l(u,this,new s.default);for(let s=t.row;s<=r.row;s++)if(!a(f,this).isHidden(s))for(let o=t.col;o<=r.col;o++){if(a(m,this).isHidden(o))continue;const t=h(E,this,w).call(this,e,a(u,this),n,s,o);t&&l(d,this,t)}a(u,this).first&&(a(u,this).first.prev=a(u,this).last,a(u,this).last.next=a(u,this).first);const o=new WeakSet;l(c,this,new s.default);for(let n=t.col;n<=r.col;n++)if(!a(m,this).isHidden(n))for(let s=t.row;s<=r.row;s++){if(a(f,this).isHidden(s))continue;const t=h(E,this,w).call(this,e,a(c,this),o,s,n);t&&l(p,this,t)}a(c,this).first&&(a(c,this).first.prev=a(c,this).last,a(c,this).last.next=a(c,this).first)}setActiveNode(e,t){return a(u,this).inorder(r=>{const{rowStart:n,rowEnd:s,colStart:o,colEnd:i}=r.data;if(e>=n&&e<=s&&t>=o&&t<=i)return l(d,this,r),!1}),a(c,this).inorder(r=>{const{rowStart:n,rowEnd:s,colStart:o,colEnd:i}=r.data;if(e>=n&&e<=s&&t>=o&&t<=i)return l(p,this,r),!1}),this}}},85555:()=>{},85639:(e,t,r)=>{"use strict";var n=r(76277),s=r(11044),o=r(26213),i=r(17112),a=r(6330);n({target:"Array",proto:!0,arity:1,forced:r(82314)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),r=o(t),n=arguments.length;a(r+n);for(var l=0;l<n;l++)t[r]=arguments[l],r++;return i(t,r),r}})},85665:(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.getSelectedRangeLast().highlight.row,r.getNearestNotHiddenIndex(e.countCols()-1,-1))),t.markEndSource()}}},85742:()=>{},85799:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(12108));t.bottom=s.default;var o=n(r(79662));t.left=o.default;var i=n(r(43469));t.noBorders=i.default;var a=n(r(27609));t.right=a.default;var l=n(r(30644));t.top=l.default},86015:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(15293),i=r(42209),a=r(85180),l=r(42663);class h extends i.BaseRenderer{constructor(){super("TH"),(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.orderViews.set(e,t)),t}render(){const{rowsToRender:e,rowHeaderFunctions:t,rowHeadersCount:r,rows:n,cells:s}=this.table;for(let o=0;o<e;o++){const e=this.table.renderedRowToSource(o),i=n.getRenderedNode(o);this.sourceRowIndex=e;const h=this.obtainOrderView(i),u=s.obtainOrderView(i);h.appendView(u).setSize(r).setOffset(0).start();for(let n=r-1;n>=0;n--){h.render();const r=h.getCurrentNode();r.className="",r.removeAttribute("style"),(0,a.removeAttribute)(r,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&(0,a.setAttribute)(r,[(0,l.A11Y_ROWHEADER)(),(0,l.A11Y_SCOPE_ROW)(),(0,l.A11Y_COLINDEX)(n+1),(0,l.A11Y_TABINDEX)(-1)]),t[n](e,r,n)}h.end()}}}t.RowHeadersRenderer=h},86023:(e,t,r)=>{"use strict";t.__esModule=!0,t.focusScrollStrategy=function(e){return t=>{e.scrollViewportTo(t.toObject(),()=>{const{row:t,col:r}=e.getSelectedRangeLast().highlight;(0,n.scrollWindowToCell)(e.getCell(t,r,!0))})}};var n=r(13848)},86060:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(69326);var n=r(30183),s=r(22184);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 i(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,p=new WeakMap;t.ChangesObservable=class{constructor(){let{initialIndexValue:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,h,new Set),o(this,u,[]),o(this,c,[]),o(this,d,!1),o(this,p,!1),a(p,this,null!=e&&e)}createObserver(){const e=new n.ChangesObserver;return i(h,this).add(e),e.addLocalHook("unsubscribe",()=>{i(h,this).delete(e)}),e._writeInitialChanges((0,s.arrayDiff)(i(u,this),i(c,this))),e}emit(e){let t=i(c,this);i(d,this)&&i(u,this).length===e.length||(0===e.length?e=new Array(t.length).fill(i(p,this)):a(u,this,new Array(e.length).fill(i(p,this))),i(d,this)||(a(d,this,!0),t=i(u,this)));const r=(0,s.arrayDiff)(t,e);i(h,this).forEach(e=>e._write(r)),a(c,this,e)}}},86068:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostBottom",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeLast().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(e.countRows()-1,-1);null===n&&(n=-1),t.setRangeStart(e._createCellCoords(n,r))}}},86150:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(10530);const{getListWithInsertedItems:s,getListWithRemovedItems:o}=(0,n.alterUtilsFactory)("physicallyIndexed");class i extends n.IndexMap{constructor(){super(e=>e)}insert(e,t){this.indexedValues=s(this.indexedValues,e,t,(e,t)=>this.getNextValue(t)),super.insert(e,t)}remove(e){this.indexedValues=o(this.indexedValues,e),super.remove(e)}getNextValue(e){return Math.max(...this.getValues())+1+e}}t.default=i},86154:(e,t,r)=>{"use strict";t.__esModule=!0,t.getEngineSettingsOverrides=i,t.getEngineSettingsWithDefaultsAndOverrides=function(e){var t;const r=e[n.PLUGIN_KEY],s=a(null!=r&&null!==(t=r.engine)&&void 0!==t&&t.hyperformula?r.engine:{}),l=i(e);return{...o,...s,...l}},t.getEngineSettingsWithOverrides=function(e){var t;const r=e[n.PLUGIN_KEY],s=a(null!=r&&null!==(t=r.engine)&&void 0!==t&&t.hyperformula?r.engine:{}),o=i(e);return{...s,...o}},t.haveEngineSettingsChanged=function(e,t){return Object.keys(t).some(r=>void 0!==t[r]&&t[r]!==e[r])},r(73741),r(89663),r(82141);var n=r(63541);const s=t.DEFAULT_LICENSE_KEY="internal-use-in-handsontable",o=t.DEFAULT_SETTINGS={licenseKey:s,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function i(e){var t;return{maxColumns:e.maxColumns,maxRows:e.maxRows,language:null===(t=e[n.PLUGIN_KEY])||void 0===t||null===(t=t.language)||void 0===t?void 0:t.langCode}}function a(e){return Object.keys(e).reduce((t,r)=>("hyperformula"!==r&&(t[r]=e[r]),t),{})}},86197:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(1631);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.DropdownMenu=n.DropdownMenu},86224:(e,t,r)=>{"use strict";var n=r(85458),s=r(96745),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},86413:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(39483);t.EDITOR_TYPE=n.EDITOR_TYPE,t.NumericEditor=n.NumericEditor},86437:(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"},86602:()=>{},86713:(e,t,r)=>{"use strict";var n=r(6996),s=r(5006),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},86774:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.condition=l;var s=n(r(37539)),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),i=r(32949);const a=t.CONDITION_NAME="date_before";function l(e,t){let[r]=t;const n=(0,s.default)(e.value,e.meta.dateFormat),o=(0,s.default)(r,e.meta.dateFormat);return!(!n.isValid()||!o.isValid())&&n.diff(o)<=0}(0,i.registerCondition)(a,l,{name:o.FILTERS_CONDITIONS_BEFORE,inputsCount:1,showOperators:!0})},86867:(e,t,r)=>{"use strict";var n=r(35172);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},86907:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(72848),i=r(39738),a=r(74820);t.ItemsFactory=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"predefinedItems",(0,a.predefinedItems)()),(0,s.default)(this,"defaultOrderPattern",void 0),this.hot=e,this.defaultOrderPattern=t}setPredefinedItems(e){const t={};this.defaultOrderPattern.length=0,(0,o.objectEach)(e,(e,r)=>{let n="";e.name===a.SEPARATOR?(t[a.SEPARATOR]=e,n=a.SEPARATOR):isNaN(parseInt(r,10))?(e.key=void 0===e.key?r:e.key,t[r]=e,n=e.key):(t[e.key]=e,n=e.key),this.defaultOrderPattern.push(n)}),this.predefinedItems=t}getItems(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=[];let s=e;s&&s.items?s=s.items:Array.isArray(s)||(s=t);(0,o.isObject)(s)?(0,o.objectEach)(s,(e,t)=>{let s=r["string"==typeof e?e:t];s||(s=e),(0,o.isObject)(e)?(0,o.extend)(s,e):"string"==typeof s&&(s={name:s}),void 0===s.key&&(s.key=t),n.push(s)}):(0,i.arrayEach)(s,(e,t)=>{let s=r[e];!s&&a.ITEMS.indexOf(e)>=0||(s||(s={name:e,key:`${t}`}),(0,o.isObject)(e)&&(0,o.extend)(s,e),void 0===s.key&&(s.key=t),n.push(s))});return n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,this.defaultOrderPattern,this.predefinedItems)}}},86930:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllPlugins=function(){(0,F.registerPlugin)(n.AutoColumnSize),(0,F.registerPlugin)(s.Autofill),(0,F.registerPlugin)(o.AutoRowSize),(0,F.registerPlugin)(a.BindRowsWithHeaders),(0,F.registerPlugin)(l.CollapsibleColumns),(0,F.registerPlugin)(h.ColumnSorting),(0,F.registerPlugin)(u.ColumnSummary),(0,F.registerPlugin)(c.Comments),(0,F.registerPlugin)(d.ContextMenu),(0,F.registerPlugin)(p.CopyPaste),(0,F.registerPlugin)(g.CustomBorders),(0,F.registerPlugin)(f.DragToScroll),(0,F.registerPlugin)(m.DropdownMenu),(0,F.registerPlugin)(E.ExportFile),(0,F.registerPlugin)(w.Filters),(0,F.registerPlugin)(y.Formulas),(0,F.registerPlugin)(C.HiddenColumns),(0,F.registerPlugin)(R.HiddenRows),(0,F.registerPlugin)(S.ManualColumnFreeze),(0,F.registerPlugin)(v.ManualColumnMove),(0,F.registerPlugin)(T.ManualColumnResize),(0,F.registerPlugin)(N.ManualRowMove),(0,F.registerPlugin)(M.ManualRowResize),(0,F.registerPlugin)(_.MergeCells),(0,F.registerPlugin)(b.MultiColumnSorting),(0,F.registerPlugin)(A.MultipleSelectionHandles),(0,F.registerPlugin)(I.NestedHeaders),(0,F.registerPlugin)(O.NestedRows),(0,F.registerPlugin)(x.PersistentState),(0,F.registerPlugin)(P.Search),(0,F.registerPlugin)(L.StretchColumns),(0,F.registerPlugin)(D.TouchScroll),(0,F.registerPlugin)(k.TrimRows),(0,F.registerPlugin)(H.UndoRedo)};var n=r(32351);t.AutoColumnSize=n.AutoColumnSize;var s=r(3681);t.Autofill=s.Autofill;var o=r(80141);t.AutoRowSize=o.AutoRowSize;var i=r(45098);t.BasePlugin=i.BasePlugin;var a=r(85025);t.BindRowsWithHeaders=a.BindRowsWithHeaders;var l=r(95708);t.CollapsibleColumns=l.CollapsibleColumns;var h=r(33303);t.ColumnSorting=h.ColumnSorting;var u=r(80403);t.ColumnSummary=u.ColumnSummary;var c=r(88885);t.Comments=c.Comments;var d=r(9133);t.ContextMenu=d.ContextMenu;var p=r(64141);t.CopyPaste=p.CopyPaste;var g=r(32091);t.CustomBorders=g.CustomBorders;var f=r(2465);t.DragToScroll=f.DragToScroll;var m=r(86197);t.DropdownMenu=m.DropdownMenu;var E=r(51107);t.ExportFile=E.ExportFile;var w=r(64062);t.Filters=w.Filters;var y=r(94432);t.Formulas=y.Formulas;var C=r(79954);t.HiddenColumns=C.HiddenColumns;var R=r(80338);t.HiddenRows=R.HiddenRows;var S=r(74552);t.ManualColumnFreeze=S.ManualColumnFreeze;var v=r(31050);t.ManualColumnMove=v.ManualColumnMove;var T=r(14795);t.ManualColumnResize=T.ManualColumnResize;var N=r(13190);t.ManualRowMove=N.ManualRowMove;var M=r(14599);t.ManualRowResize=M.ManualRowResize;var _=r(93546);t.MergeCells=_.MergeCells;var b=r(60830);t.MultiColumnSorting=b.MultiColumnSorting;var A=r(56310);t.MultipleSelectionHandles=A.MultipleSelectionHandles;var I=r(35614);t.NestedHeaders=I.NestedHeaders;var O=r(18229);t.NestedRows=O.NestedRows;var x=r(14359);t.PersistentState=x.PersistentState;var P=r(79407);t.Search=P.Search;var L=r(24615);t.StretchColumns=L.StretchColumns;var D=r(44487);t.TouchScroll=D.TouchScroll;var k=r(39930);t.TrimRows=k.TrimRows;var H=r(52385);t.UndoRedo=H.UndoRedo;var F=r(76019);t.registerPlugin=F.registerPlugin,t.getPlugin=F.getPlugin,t.getPluginsNames=F.getPluginsNames},86943:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownRenderer=o;var n=r(25772);const s=t.RENDERER_TYPE="dropdown";function o(e,t,r,s,o,i,a){n.autocompleteRenderer.apply(this,[e,t,r,s,o,i,a])}o.RENDERER_TYPE=s},86977:(e,t,r)=>{"use strict";var n=r(21313),s=r(14499),o=r(30845),i=r(18622),a=r(98304),l=r(78016),h=s.Set,u=s.add,c=s.has;e.exports=function(e){var t=n(this),r=i(e),s=new h;return o(t)>r.size?l(r.getIterator(),function(e){c(t,e)&&u(s,e)}):a(t,function(e){r.includes(e)&&u(s,e)}),s}},87028:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(73741),r(90795);var s=n(r(53726)),o=r(72848),i=r(10530),a=r(18528);const l=["sortEmptyCells","indicator","headerAction","compareFunctionFactory"];t.ColumnStatesManager=class{constructor(e,t){(0,s.default)(this,"hot",void 0),(0,s.default)(this,"sortingStates",new i.LinkedPhysicalIndexToValueMap),(0,s.default)(this,"sortEmptyCells",false),(0,s.default)(this,"indicator",true),(0,s.default)(this,"headerAction",true),(0,s.default)(this,"compareFunctionFactory",void 0),(0,s.default)(this,"mapName",void 0),this.hot=e,this.mapName=t,this.hot.columnIndexMapper.registerMap(t,this.sortingStates)}updateAllColumnsProperties(e){(0,o.isObject)(e)&&(0,o.objectEach)(e,(e,t)=>{l.includes(t)&&(this[t]=e)})}getAllColumnsProperties(){const e={sortEmptyCells:this.sortEmptyCells,indicator:this.indicator,headerAction:this.headerAction};return"function"==typeof this.compareFunctionFactory&&(e.compareFunctionFactory=this.compareFunctionFactory),e}getSortOrderOfColumn(e){var t;return null===(t=this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))||void 0===t?void 0:t.sortOrder}getIndexOfColumnInSortQueue(e){return e=this.hot.toPhysicalColumn(e),this.sortingStates.getEntries().findIndex(t=>{let[r]=t;return r===e})}getNumberOfSortedColumns(){return this.sortingStates.getLength()}isListOfSortedColumnsEmpty(){return 0===this.getNumberOfSortedColumns()}isColumnSorted(e){return(0,o.isObject)(this.sortingStates.getValueAtIndex(this.hot.toPhysicalColumn(e)))}getSortStates(){if(null===this.sortingStates)return[];return this.sortingStates.getEntries().map(e=>{let[t,r]=e;return{column:this.hot.toVisualColumn(t),...r}})}getColumnSortState(e){const t=this.getSortOrderOfColumn(e);if((0,a.isDefined)(t))return{column:e,sortOrder:t}}setSortStates(e){this.sortingStates.clear();for(let t=0;t<e.length;t+=1)this.sortingStates.setValueAtIndex(this.hot.toPhysicalColumn(e[t].column),{sortOrder:e[t].sortOrder})}destroy(){this.hot.columnIndexMapper.unregisterMap(this.mapName),this.sortingStates=null}}},87058:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"hidden_rows_hide",name(){const e=this.getSelectedLast();let t=0;if(Array.isArray(e)){const[r,,n]=e;r-n!==0&&(t=1)}return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_HIDE_ROW,t)},callback(){const{from:t,to:r}=this.getSelectedRangeLast(),n=Math.max(Math.min(t.row,r.row),0),s=Math.max(t.row,r.row),o=[];for(let e=n;e<=s;e+=1)o.push(e);e.hideRows(o);const i=o[o.length-1],a=this.rowIndexMapper.getNearestNotHiddenIndex(i,1,!0);Number.isInteger(a)&&a>=0?this.selectRows(a):this.deselectCell(),this.render(),this.view.adjustElementsSize()},disabled:!1,hidden(){return!(this.selection.isSelectedByRowHeader()||this.selection.isSelectedByCorner())}}},r(85639);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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},87085:()=>{},87298:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.default=function(e,t){var r,n=this;let W=arguments.length>2&&void 0!==arguments[2]&&arguments[2],Y=this;const G=new h.default(Y);let j,z,$,K,X,q,Q=!0;(0,N.hasValidParameter)(W)&&(0,N.registerAsRootInstance)(this);this.rootContainer=e,this.rootWrapperElement=void 0,this.rootPortalElement=void 0,this.rootElement=(0,N.isRootInstance)(this)?e.ownerDocument.createElement("div"):e,this.rootDocument=e.ownerDocument,this.rootWindow=this.rootDocument.defaultView,(0,N.isRootInstance)(this)&&(this.rootWrapperElement=this.rootDocument.createElement("div"),this.rootPortalElement=this.rootDocument.createElement("div"),(0,s.addClass)(this.rootElement,"ht-wrapper"),(0,s.addClass)(this.rootWrapperElement,"ht-root-wrapper"),this.rootWrapperElement.appendChild(this.rootElement),this.rootContainer.appendChild(this.rootWrapperElement),(0,s.addClass)(this.rootPortalElement,"ht-portal"),this.rootDocument.body.appendChild(this.rootPortalElement));this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const Z=null!==(r=null==t?void 0:t.layoutDirection)&&void 0!==r?r:"inherit",J=["rtl","ltr"].includes(Z)?Z:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",J),this.isRtl=function(){return"rtl"===J},this.isLtr=function(){return!Y.isRtl()},this.getDirectionFactor=function(){return Y.isLtr()?1:-1},this.stylesHandler=new H.StylesHandler(Y.rootElement,Y.rootDocument),t.language=(0,b.getValidLanguageCode)(t.language);const ee=Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return!(_.Hooks.getSingleton().isRegistered(t)||_.Hooks.getSingleton().isDeprecated(t))})),te=new O.MetaManager(Y,ee,[O.DynamicCellMetaMod,O.ExtendMetaPropertiesMod]),re=te.getTableMeta(),ne=te.getGlobalMeta(),se=(0,P.createUniqueMap)();this.container=this.rootDocument.createElement("div"),this.rootElement.insertBefore(this.container,this.rootElement.firstChild),(0,N.isRootInstance)(this)&&(0,i._injectProductInfo)(t.licenseKey,this.rootWrapperElement);this.guid=`ht_${(0,y.randomString)()}`,B.set(this.guid,this),this.columnIndexMapper=new T.IndexMapper,this.rowIndexMapper=new T.IndexMapper,this.columnIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterColumnSequenceChange",e)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",e=>{Y.runHooks("afterRowSequenceChange",e)}),G.addEventListener(this.rootDocument.documentElement,"compositionstart",e=>{Y.runHooks("beforeCompositionStart",e)}),z=new S.default(Y);const oe=(0,g.staticRegister)(this.guid);oe.register("cellRangeMapper",new U.CellRangeToRenderableMapper({rowIndexMapper:this.rowIndexMapper,columnIndexMapper:this.columnIndexMapper})),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid);let ie=new I.Selection(re,{rowIndexMapper:Y.rowIndexMapper,columnIndexMapper:Y.columnIndexMapper,countCols:()=>Y.countCols(),countRows:()=>Y.countRows(),propToCol:e=>j.propToCol(e),isEditorOpened:()=>!!Y.getActiveEditor()&&Y.getActiveEditor().isOpened(),countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),countRenderableRowsInRange:function(){return n.view.countRenderableRowsInRange(...arguments)},countRenderableColumnsInRange:function(){return n.view.countRenderableColumnsInRange(...arguments)},getShortcutManager:()=>Y.getShortcutManager(),createCellCoords:(e,t)=>Y._createCellCoords(e,t),createCellRange:(e,t,r)=>Y._createCellRange(e,t,r),visualToRenderableCoords:e=>{const{row:t,col:r}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(t):t,r>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(r):r)},renderableToVisualCoords:e=>{const{row:t,col:r}=e;return Y._createCellCoords(t>=0?Y.rowIndexMapper.getVisualFromRenderableIndex(t):t,r>=0?Y.columnIndexMapper.getVisualFromRenderableIndex(r):r)},findFirstNonHiddenRenderableRow:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),o=Y.rowIndexMapper.getNearestNotHiddenIndex(e,r);return null===o||1===r&&o>s||-1===r&&o<n?null:o>=0?Y.rowIndexMapper.getRenderableFromVisualIndex(o):o},findFirstNonHiddenRenderableColumn:(e,t)=>{const r=t>e?1:-1,n=Math.min(e,t),s=Math.max(e,t),o=Y.columnIndexMapper.getNearestNotHiddenIndex(e,r);return null===o||1===r&&o>s||-1===r&&o<n?null:o>=0?Y.columnIndexMapper.getRenderableFromVisualIndex(o):o},isDisabledCellSelection:(e,t)=>e<0||t<0?Y.getSettings().disableVisualSelection:Y.getCellMeta(e,t).disableVisualSelection});this.selection=ie;const ae=e=>{let{hiddenIndexesChanged:t}=e;this.forceFullRender=!0,t&&this.selection.commit()};function le(e,t){const r="className"===e?Y.rootElement:Y.table;if(Q)(0,s.addClass)(r,t);else{let n=[],o=[];ne[e]&&(n=Array.isArray(ne[e])?ne[e]:(0,d.stringToArray)(ne[e])),t&&(o=Array.isArray(t)?t:(0,d.stringToArray)(t));const i=(0,d.getDifferenceOfArrays)(n,o),a=(0,d.getDifferenceOfArrays)(o,n);i.length&&(0,s.removeClass)(r,i),a.length&&(0,s.addClass)(r,a)}ne[e]=t}function he(){let e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue(){this.validatorsInQueue+=1,e=!1},removeValidatorFormQueue(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty(){},checkIfQueueIsEmpty(){0===this.validatorsInQueue&&!1===e&&(e=!0,this.onQueueEmpty(this.valid))}}}function ue(e){const t=e.replace(",",".");return!1===isNaN(parseFloat(t))?parseFloat(t):e}function ce(e,t,r){if(!e.length)return void r();const n=Y.getActiveEditor(),s=new he;let o=!0;s.onQueueEmpty=()=>{n&&o&&n.cancelChanges(),r()};for(let r=e.length-1;r>=0;r--){const[n,i]=e[r],a=j.propToCol(i);let l;l=Number.isInteger(a)?Y.getCellMeta(n,a):{...Object.getPrototypeOf(re),...re},Y.getCellValidator(l)&&(s.addValidatorToQueue(),Y.validateCell(e[r][3],l,function(t,r){return function(n){if("boolean"!=typeof n)throw new Error("Validation error: result is not boolean");!1===n&&!1===r.allowInvalid&&(o=!1,e.splice(t,1),r.valid=!0),s.removeValidatorFormQueue()}}(r,l),t))}s.checkIfQueueIsEmpty()}function de(e,t){for(let t=e.length-1;t>=0;t--){let r=!1;if(null!==e[t]){if(null!==e[t][2]&&void 0!==e[t][2]||null!==e[t][3]&&void 0!==e[t][3]){if(re.allowInsertRow)for(;e[t][0]>Y.countRows()-1;){const{delta:e}=j.createRow(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}if("array"===Y.dataType&&(!re.columns||0===re.columns.length)&&re.allowInsertColumn)for(;j.propToCol(e[t][1])>Y.countCols()-1;){const{delta:e}=j.createCol(void 0,void 0,{source:"auto"});if(0===e){r=!0;break}}r||j.set(e[t][0],e[t][1],e[t][3])}}else e.splice(t,1)}if(e.length>0){$.adjustRowsAndCols(),Y.runHooks("beforeChangeRender",e,t),K.closeEditor(),Y.render(),K.prepareEditor(),Y.view.adjustElementsSize(),Y.runHooks("afterChange",e,t||"edit");const r=Y.getActiveEditor();r&&(0,i.isDefined)(r.refreshValue)&&r.refreshValue()}else Y.render()}function pe(e,t,r){return Array.isArray(e)?e:[[e,t,r]]}function ge(e,t){const r=Y.runHooks("beforeChange",e,t||"edit"),n=e.filter(e=>null!==e);var s;if(!1===r||0===n.length)return null===(s=Y.getActiveEditor())||void 0===s||s.cancelChanges(),[];for(let e=n.length-1;e>=0;e--){const[t,r,,s]=n[e],o=j.propToCol(r);let a;a=Number.isInteger(o)?Y.getCellMeta(t,o):{...Object.getPrototypeOf(re),...re};const{type:l,checkedTemplate:h,uncheckedTemplate:u}=a;if("numeric"===l&&"string"==typeof s&&(0,C.isNumericLike)(s)&&(n[e][3]=ue(s)),"checkbox"===l){const t=(0,i.stringify)(s),r=t===(0,i.stringify)(h),o=t===(0,i.stringify)(u);(r||o)&&(n[e][3]=r?h:u)}}return n}this.columnIndexMapper.addLocalHook("cacheUpdated",ae),this.rowIndexMapper.addLocalHook("cacheUpdated",ae),this.selection.addLocalHook("afterSetRangeEnd",(e,t)=>{const r=(0,u.createObjectPropListener)(!1),n=this.selection.getSelectedRange(),{from:o,to:i}=n.current(),a=n.size()-1;this.runHooks("afterSelection",o.row,o.col,i.row,i.col,r,a),this.runHooks("afterSelectionByProp",o.row,Y.colToProp(o.col),i.row,Y.colToProp(i.col),r,a),t&&(!r.isTouched()||r.isTouched()&&!r.value)&&q.scrollTo(e);const l=ie.isSelectedByRowHeader(),h=ie.isSelectedByColumnHeader();l&&h?(0,s.addClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]):l?((0,s.removeClass)(this.rootElement,"ht__selection--columns"),(0,s.addClass)(this.rootElement,"ht__selection--rows")):h?((0,s.removeClass)(this.rootElement,"ht__selection--rows"),(0,s.addClass)(this.rootElement,"ht__selection--columns")):(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),["shift","refresh"].includes(ie.getSelectionSource())||K.closeEditor(null),"refresh"!==ie.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("beforeSetFocus",e=>{this.runHooks("beforeSelectionFocusSet",e.row,e.col)}),this.selection.addLocalHook("afterSetFocus",e=>{const t=(0,u.createObjectPropListener)(!1);this.runHooks("afterSelectionFocusSet",e.row,e.col,t),(!t.isTouched()||t.isTouched()&&!t.value)&&q.scrollTo(e),K.closeEditor(),Y.view.render(),K.prepareEditor()}),this.selection.addLocalHook("afterSelectionFinished",e=>{const t=e.length-1,{from:r,to:n}=e[t];this.runHooks("afterSelectionEnd",r.row,r.col,n.row,n.col,t),this.runHooks("afterSelectionEndByProp",r.row,Y.colToProp(r.col),n.row,Y.colToProp(n.col),t),"refresh"===ie.getSelectionSource()&&(Y.view.render(),K.prepareEditor())}),this.selection.addLocalHook("afterIsMultipleSelection",e=>{const t=this.runHooks("afterIsMultipleSelection",e.value);e.value&&(e.value=t)}),this.selection.addLocalHook("afterDeselect",()=>{K.closeEditor(),Y.view.render(),(0,s.removeClass)(this.rootElement,["ht__selection--rows","ht__selection--columns"]),this.runHooks("afterDeselect")}),this.selection.addLocalHook("beforeHighlightSet",()=>this.runHooks("beforeSelectionHighlightSet")).addLocalHook("beforeSetRangeStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSetRangeStart",...t)}).addLocalHook("beforeSetRangeStartOnly",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSetRangeStartOnly",...t)}).addLocalHook("beforeSetRangeEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSetRangeEnd",...t)}).addLocalHook("beforeSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSelectColumns",...t)}).addLocalHook("afterSelectColumns",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterSelectColumns",...t)}).addLocalHook("beforeSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeSelectRows",...t)}).addLocalHook("afterSelectRows",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterSelectRows",...t)}).addLocalHook("beforeModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("modifyTransformStart",...t)}).addLocalHook("afterModifyTransformStart",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterModifyTransformStart",...t)}).addLocalHook("beforeModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("modifyTransformFocus",...t)}).addLocalHook("afterModifyTransformFocus",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterModifyTransformFocus",...t)}).addLocalHook("beforeModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("modifyTransformEnd",...t)}).addLocalHook("afterModifyTransformEnd",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("afterModifyTransformEnd",...t)}).addLocalHook("beforeRowWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeRowWrap",...t)}).addLocalHook("beforeColumnWrap",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.runHooks("beforeColumnWrap",...t)}).addLocalHook("insertRowRequire",e=>this.alter("insert_row_above",e,1,"auto")).addLocalHook("insertColRequire",e=>this.alter("insert_col_start",e,1,"auto")),$={alter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;const o=e=>{if(0===e.length)return[];const t=[...e];t.sort((e,t)=>{let[r]=e,[n]=t;return r===n?0:r>n?1:-1});return(0,d.arrayReduce)(t,(e,t)=>{let[r,n]=t;const s=e[e.length-1],[o,i]=s,a=o+i;if(r<=a){const e=Math.max(n-(a-r),0);s[1]+=e}else e.push([r,n]);return e},[t[0]])};switch(e){case"insert_row_below":case"insert_row_above":const s=Y.countSourceRows();if(re.maxRows===s)return;const a="insert_row_below"===e?"below":"above";t=null!=t?t:"below"===a?s:0;const{delta:l,startPhysicalIndex:h}=j.createRow(t,r,{source:n,mode:a});ie.shiftRows(Y.toVisualRow(h),l);break;case"insert_col_start":case"insert_col_end":const u="insert_col_end"===e?"end":"start";t=null!=t?t:"end"===u?Y.countSourceCols():0;const{delta:c,startPhysicalIndex:p}=j.createCol(t,r,{source:n,mode:u});if(c){if(Array.isArray(re.colHeaders)){const e=[Y.toVisualColumn(p),0];e.length+=c,Array.prototype.splice.apply(re.colHeaders,e)}ie.shiftColumns(Y.toVisualColumn(p),c)}break;case"remove_row":const g=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const o=(0,i.isEmpty)(r)?Y.countRows()-1:Math.max(r-t,0);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!j.removeRow(r,s,n))return;if(ie.isSelected()){const{row:e}=Y.getSelectedRangeLast().highlight;e>=r&&e<=r+s-1&&K.closeEditor(!0)}const a=Y.countRows(),l=re.fixedRowsTop;l>=o+1&&(re.fixedRowsTop-=Math.min(s,l-o));const h=re.fixedRowsBottom;if(h&&o>=a-h&&(re.fixedRowsBottom-=Math.min(s,h)),0===a)ie.deselect();else if("ContextMenu.removeRow"===n){const e=ie.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ie.refresh()}else ie.shiftRows(r,-s);t+=s})};Array.isArray(t)?g(o(t)):g([[t,r]]);break;case"remove_col":const f=e=>{let t=0;(0,d.arrayEach)(e,e=>{let[r,s]=e;const o=(0,i.isEmpty)(r)?Y.countCols()-1:Math.max(r-t,0);let a=Y.toPhysicalColumn(o);Number.isInteger(r)&&(r=Math.max(r-t,0));if(!j.removeCol(r,s,n))return;if(ie.isSelected()){const{col:e}=Y.getSelectedRangeLast().highlight;e>=r&&e<=r+s-1&&K.closeEditor(!0)}if(0===Y.countCols())ie.deselect();else if("ContextMenu.removeColumn"===n){const e=ie.getSelectedRange(),t=e.pop();e.clear().set(t.from).current().setTo(t.to),ie.refresh()}else ie.shiftColumns(r,-s);const l=re.fixedColumnsStart;l>=o+1&&(re.fixedColumnsStart-=Math.min(s,l-o)),Array.isArray(re.colHeaders)&&(void 0===a&&(a=-1),re.colHeaders.splice(a,s)),t+=s})};Array.isArray(t)?f(o(t)):f([[t,r]]);break;default:throw new Error(`There is no such action "${e}"`)}s||$.adjustRowsAndCols(),Y.view.render(),Y.view.adjustElementsSize()},adjustRowsAndCols(){const e=re.minRows,t=re.minSpareRows,r=re.minCols,n=re.minSpareCols;if(e){const t=Y.countRows();t<e&&j.createRow(t,e-t,{source:"auto"})}if(t){const e=Y.countEmptyRows(!0);if(e<t){const r=t-e,n=Math.min(r,re.maxRows-Y.countSourceRows());j.createRow(Y.countRows(),n,{source:"auto"})}}{let e;(r||n)&&(e=Y.countEmptyCols(!0));let t=Y.countCols();if(r&&!re.columns&&t<r){const n=r-t;e+=n,j.createCol(t,n,{source:"auto"})}if(n&&!re.columns&&"array"===Y.dataType&&e<n){t=Y.countCols();const r=n-e,s=Math.min(r,re.maxCols-t);j.createCol(t,s,{source:"auto"})}}},populateFromArray(e,t,r,n,s){let o,i,a,l;const h=[],c={},p=[],g=e.row,f=e.col;if(i=t.length,0===i)return!1;let m=0,E=0;switch((0,u.isObject)(r)&&(m=r.col-f+1,E=r.row-g+1),s){case"shift_down":const s=(0,d.pivot)(t),w=s.length,y=Math.max(w,m),C=Y.getData().slice(g),R=(0,d.pivot)(C).slice(f,f+y);for(a=0;a<y;a+=1)if(a<w){for(o=0,i=s[a].length;o<E-i;o+=1)s[a].push(s[a][o%i]);a<R.length?p.push(s[a].concat(R[a])):p.push(s[a].concat(new Array(C.length).fill(null)))}else p.push(s[a%w].concat(R[a]));Y.populateFromArray(g,f,(0,d.pivot)(p));break;case"shift_right":const S=t.length,v=Math.max(S,E),T=Y.getData().slice(g).map(e=>e.slice(f));for(o=0;o<v;o+=1)if(o<S){for(a=0,l=t[o].length;a<m-l;a+=1)t[o].push(t[o][a%l]);if(o<T.length)for(let e=0;e<T[o].length;e+=1)t[o].push(T[o][e]);else t[o].push(...new Array(T[0].length).fill(null))}else t.push(t[o%i].slice(0,v).concat(T[o]));Y.populateFromArray(g,f,t);break;default:c.row=e.row,c.col=e.col;let N,M=0,_=0,b=!0;const A=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=t[e%t.length];return null!==r?n[r%n.length]:n},I=t.length,O=r?r.row-e.row+1:0;for(i=r?O:Math.max(I,O),o=0;o<i&&!(r&&c.row>r.row&&O>I||!re.allowInsertRow&&c.row>Y.countRows()-1||c.row>=re.maxRows);o++){const t=o-M,s=A(t).length,d=r?r.col-e.col+1:0;if(l=r?d:Math.max(s,d),c.col=e.col,N=Y.getCellMeta(c.row,c.col),"CopyPaste.paste"!==n&&"Autofill.fill"!==n||!N.skipRowOnPaste){for(_=0,a=0;a<l&&!(r&&c.col>r.col&&d>s||!re.allowInsertColumn&&c.col>Y.countCols()-1||c.col>=re.maxCols);a++){if(N=Y.getCellMeta(c.row,c.col),("CopyPaste.paste"===n||"Autofill.fill"===n)&&N.skipColumnOnPaste){_+=1,c.col+=1,l+=1;continue}if(N.readOnly&&"UndoRedo.undo"!==n){c.col+=1;continue}let e=A(t,a-_),r=Y.getDataAtCell(c.row,c.col);if(null!==e&&"object"==typeof e)if(Array.isArray(e)&&null===r&&(r=[]),null===r||"object"!=typeof r)b=!1;else{const t=(0,u.duckSchema)(Array.isArray(r)?r:r[0]||r),n=(0,u.duckSchema)(Array.isArray(e)?e:e[0]||e);(0,u.isObjectEqual)(t,n)||Array.isArray(t)&&Array.isArray(n)?e=(0,u.deepClone)(e):b=!1}else null!==r&&"object"==typeof r&&(b=!1);b&&h.push([c.row,c.col,e]),b=!0,c.col+=1}c.row+=1}else M+=1,c.row+=1,i+=1}Y.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.init=function(){z.setData(re.data),Y.runHooks("beforeInit"),((0,a.isMobileBrowser)()||(0,a.isIpadOS)())&&(0,s.addClass)(Y.rootElement,"mobile"),this.updateSettings(t,!0),this.view=new R.default(this);const e=re.themeName||(0,k.getThemeClassName)(Y.rootContainer);Y.useTheme(e),K=l.default.getInstance(Y,re,ie),q=(0,x.createViewportScroller)(Y),X=new c.FocusManager(Y),(0,N.isRootInstance)(this)&&(0,x.installFocusCatcher)(Y),Y.runHooks("init"),this.render(),Q&&null===Y.rootElement.offsetParent&&(0,s.observeVisibilityChangeOnce)(Y.rootElement,()=>{Y.view._wt.wtOverlays.updateLastSpreaderSize(),Y.render(),Y.view.adjustElementsSize()}),"object"==typeof Q&&(Y.runHooks("afterChange",Q[0],Q[1]),Q=!1),Y.runHooks("afterInit")},this._createCellCoords=function(e,t){return Y.view._wt.createCellCoords(e,t)},this._createCellRange=function(e,t,r){return Y.view._wt.createCellRange(e,t,r)},this.validateCell=function(e,t,r,n){let s=Y.getCellValidator(t);function a(e){if(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!0===t.hidden)return void r(e);const n=t.visualCol,s=t.visualRow,o=Y.getCell(s,n,!0);if(o&&"TH"!==o.nodeName){const e=Y.rowIndexMapper.getRenderableFromVisualIndex(s),t=Y.columnIndexMapper.getRenderableFromVisualIndex(n);Y.view._wt.getSetting("cellRenderer",e,t,o)}r(e)}var l;(0,i.isRegExp)(s)&&(l=s,s=function(e,t){t(l.test(e))}),(0,o.isFunction)(s)?(e=Y.runHooks("beforeValidate",e,t.visualRow,t.prop,n),Y._registerImmediate(()=>{s.call(t,e,r=>{Y&&(r=Y.runHooks("afterValidate",r,e,t.visualRow,t.prop,n),t.valid=r,a(r),Y.runHooks("postAfterValidate",r,e,t.visualRow,t.prop,n))})})):Y._registerImmediate(()=>{t.valid=!0,a(t.valid,!1)})},this.setDataAtCell=function(e,t,r,n){const s=pe(e,t,r),o=[];let i,a,l,h=n;for(i=0,a=s.length;i<a;i++){if("object"!=typeof s[i])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof s[i][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");l=s[i][1]>=this.countCols()?s[i][1]:j.colToProp(s[i][1]),o.push([s[i][0],l,z.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]])}h||"object"!=typeof e||(h=t);const u=ge(o,h);Y.runHooks("afterSetDataAtCell",u,h),ce(u,h,()=>{de(u,h)})},this.setDataAtRowProp=function(e,t,r,n){const s=pe(e,t,r),o=[];let i,a,l=n;for(i=0,a=s.length;i<a;i++)o.push([s[i][0],s[i][1],z.getAtCell(this.toPhysicalRow(s[i][0]),s[i][1]),s[i][2]]);l||"object"!=typeof e||(l=t);const h=ge(o,n);Y.runHooks("afterSetDataAtRowProp",h,l),ce(h,l,()=>{de(h,l)})},this.listen=function(){Y&&!Y.isListening()&&(B.forEach(e=>{Y!==e&&e.unlisten()}),V=Y.guid,Y.runHooks("afterListen"))},this.unlisten=function(){this.isListening()&&(V=null,Y.runHooks("afterUnlisten"))},this.isListening=function(){return V===Y.guid},this.destroyEditor=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];K.closeEditor(e),Y.view.render(),t&&ie.isSelected()&&K.prepareEditor()},this.populateFromArray=function(e,t,r,n,s,o,i){if("object"!=typeof r||"object"!=typeof r[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");const a="number"==typeof n?Y._createCellCoords(n,s):null;return $.populateFromArray(Y._createCellCoords(e,t),r,a,o,i)},this.spliceCol=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),o=3;o<n;o++)s[o-3]=arguments[o];return j.spliceCol(e,t,r,...s)},this.spliceRow=function(e,t,r){for(var n=arguments.length,s=new Array(n>3?n-3:0),o=3;o<n;o++)s[o-3]=arguments[o];return j.spliceRow(e,t,r,...s)},this.getSelected=function(){if(ie.isSelected())return(0,d.arrayMap)(ie.getSelectedRange(),e=>{let{from:t,to:r}=e;return[t.row,t.col,r.row,r.col]})},this.getSelectedLast=function(){const e=this.getSelected();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.getSelectedRange=function(){if(ie.isSelected())return Array.from(ie.getSelectedRange())},this.getSelectedRangeLast=function(){const e=this.getSelectedRange();let t;return e&&e.length>0&&(t=e[e.length-1]),t},this.emptySelectedCells=function(e){if(!ie.isSelected()||0===this.countRows()||0===this.countCols())return;const t=[];(0,d.arrayEach)(ie.getSelectedRange(),e=>{if(e.isSingleHeader())return;const r=e.getTopStartCorner(),n=e.getBottomEndCorner();(0,C.rangeEach)(r.row,n.row,e=>{(0,C.rangeEach)(r.col,n.col,r=>{this.getCellMeta(e,r).readOnly||t.push([e,r,null])})})}),t.length>0&&this.setDataAtCell(t,e)},this.isRenderSuspended=function(){return this.renderSuspendedCounter>0},this.suspendRender=function(){this.renderSuspendedCounter+=1},this.resumeRender=function(){const e=this.renderSuspendedCounter-1;this.renderSuspendedCounter=Math.max(e,0),this.isRenderSuspended()||e!==this.renderSuspendedCounter||Y.view.render()},this.render=function(){this.view&&(this.forceFullRender=!0,this.isRenderSuspended()||Y.view.render())},this.batchRender=function(e){this.suspendRender();const t=e();return this.resumeRender(),t},this.isExecutionSuspended=function(){return this.executionSuspendedCounter>0},this.suspendExecution=function(){this.executionSuspendedCounter+=1,this.columnIndexMapper.suspendOperations(),this.rowIndexMapper.suspendOperations()},this.resumeExecution=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.executionSuspendedCounter-1;this.executionSuspendedCounter=Math.max(t,0),(!this.isExecutionSuspended()&&t===this.executionSuspendedCounter||e)&&(this.columnIndexMapper.resumeOperations(),this.rowIndexMapper.resumeOperations())},this.batchExecution=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.suspendExecution();const r=e();return this.resumeExecution(t),r},this.batch=function(e){this.suspendRender(),this.suspendExecution();const t=e();return this.resumeExecution(),this.resumeRender(),t},this.refreshDimensions=function(){if(!Y.view)return;const e=Y.view,{width:t,height:r}=e.getLastSize(),{width:n,height:s}=Y.rootElement.getBoundingClientRect(),o=n!==t||s!==r;!1===Y.runHooks("beforeRefreshDimensions",{width:t,height:r},{width:n,height:s},o)||((o||e._wt.wtOverlays.scrollableElement===Y.rootWindow)&&(e.setLastSize(n,s),Y.render(),e.adjustElementsSize()),Y.runHooks("afterRefreshDimensions",{width:t,height:r},{width:n,height:s},o))},this.updateData=function(e,t){(0,O.replaceData)(e,e=>{j=e},e=>{j=e,Y.columnIndexMapper.fitToLength(this.getInitialColumnCount()),Y.rowIndexMapper.fitToLength(this.countSourceRows()),$.adjustRowsAndCols(),ie.refresh()},{hotInstance:Y,dataMap:j,dataSource:z,internalSource:"updateData",source:t,metaManager:te,firstRun:Q})},this.loadData=function(e,t){(0,O.replaceData)(e,e=>{j=e},()=>{te.clearCellsCache(),Y.initIndexMappers(),$.adjustRowsAndCols(),ie.refresh(),Q&&(Q=[null,"loadData"])},{hotInstance:Y,dataMap:j,dataSource:z,internalSource:"loadData",source:t,metaManager:te,firstRun:Q})},this.getInitialColumnCount=function(){const e=re.columns;let t=0;if(Array.isArray(e))t=e.length;else if((0,o.isFunction)(e))if("array"===Y.dataType){const r=this.countSourceCols();for(let n=0;n<r;n+=1)e(n)&&(t+=1)}else"object"!==Y.dataType&&"function"!==Y.dataType||(t=j.colToPropCache.length);else if((0,i.isDefined)(re.dataSchema)){const e=j.getSchema();t=Array.isArray(e)?e.length:(0,u.deepObjectSize)(e)}else t=this.countSourceCols();return t},this.initIndexMappers=function(){this.columnIndexMapper.initToLength(this.getInitialColumnCount()),this.rowIndexMapper.initToLength(this.countSourceRows())},this.getData=function(e,t,r,n){return(0,i.isUndefined)(e)?j.getAll():j.getRange(Y._createCellCoords(e,t),Y._createCellCoords(r,n),j.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,r,n){return j.getCopyableText(Y._createCellCoords(e,t),Y._createCellCoords(r,n))},this.getCopyableData=function(e,t){return j.getCopyable(e,j.colToProp(t))},this.getSchema=function(){return j.getSchema()},this.updateSettings=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=(Q?Y.loadData:Y.updateData).bind(this);let n,s,a=!1;if((0,i.isDefined)(e.rows))throw new Error('The "rows" setting is no longer supported. Do you mean startRows, minRows or maxRows?');if((0,i.isDefined)(e.cols))throw new Error('The "cols" setting is no longer supported. Do you mean startCols, minCols or maxCols?');if((0,i.isDefined)(e.ganttChart))throw new Error('Since 8.0.0 the "ganttChart" setting is no longer supported.');for(n in e.language&&function(e){const t=(0,A.normalizeLanguageCode)(e);(0,b.hasLanguageDictionary)(t)?(Y.runHooks("beforeLanguageChange",t),ne.language=t,Y.runHooks("afterLanguageChange",t)):(0,A.warnUserAboutLanguageRegistration)(e)}(e.language),e)if("data"===n||"language"===n);else if("className"===n)le("className",e.className);else if("tableClassName"===n&&Y.table)le("tableClassName",e.tableClassName),Y.view._wt.wtOverlays.syncOverlayTableClassNames();else if(_.Hooks.getSingleton().isRegistered(n)||_.Hooks.getSingleton().isDeprecated(n)){const t=e[n];(0,o.isFunction)(t)?(_.Hooks.getSingleton().addAsFixed(n,t,Y),re[n]=t):Array.isArray(t)&&(_.Hooks.getSingleton().add(n,t,Y),re[n]=t)}else!t&&(0,u.hasOwnProperty)(e,n)&&(ne[n]=e[n]);void 0===e.data&&void 0===re.data?r(null,"updateSettings"):void 0!==e.data?r(e.data,"updateSettings"):void 0!==e.columns&&(j.createMap(),Y.initIndexMappers());const l=Y.countCols(),h=re.columns;if(h&&(0,o.isFunction)(h)&&(a=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||te.clearCache(),l>0)for(n=0,s=0;n<l;n++){if(h){const e=a?h(n):h[s];e&&te.updateColumnMeta(s,e)}s+=1}(0,i.isDefined)(e.cell)&&(0,u.objectEach)(e.cell,e=>{Y.setCellMetaObject(e.row,e.col,e)}),Y.runHooks("afterCellMetaReset");let c=Y.rootElement.style.height;""!==c&&(c=parseInt(Y.rootElement.style.height,10));let d=e.height;if((0,o.isFunction)(d)&&(d=d()),t){Y.rootElement.getAttribute("style")&&Y.rootElement.setAttribute("data-initialstyle",Y.rootElement.getAttribute("style"))}if(null===d){const e=Y.rootElement.getAttribute("data-initialstyle");e&&(e.indexOf("height")>-1||e.indexOf("overflow")>-1)?Y.rootElement.setAttribute("style",e):(Y.rootElement.style.height="",Y.rootElement.style.overflow="")}else void 0!==d&&(Y.rootElement.style.height=isNaN(d)?`${d}`:`${d}px`,Y.rootElement.style.overflow="hidden");if(void 0!==e.width){let t=e.width;(0,o.isFunction)(t)&&(t=t()),Y.rootElement.style.width=isNaN(t)?`${t}`:`${t}px`}if(!t){if(Y.view){Y.view._wt.wtViewport.resetHasOversizedColumnHeadersMarked(),Y.view._wt.exportSettingsAsClassNames();const t=Y.getCurrentThemeName();(0,u.hasOwnProperty)(e,"themeName")&&t!==e.themeName&&Y.useTheme(e.themeName)}Y.runHooks("afterUpdateSettings",e)}$.adjustRowsAndCols(),Y.view&&!Q&&(Y.render(),Y.view._wt.wtOverlays.adjustElementsSize()),t||!Y.view||""!==c&&""!==d&&void 0!==d||c===d||Y.view._wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){const e=Y.getSelectedLast();if(re.getValue){if((0,o.isFunction)(re.getValue))return re.getValue.call(Y);if(e)return Y.getData()[e[0][0]][re.getValue]}else if(e)return Y.getDataAtCell(e[0],e[1])},this.getSettings=function(){return re},this.clear=function(){this.selectAll(),this.emptySelectedCells()},this.alter=function(e,t,r,n,s){$.alter(e,t,r,n,s)},this.getCell=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t,s=e;if(t>=0){if(this.columnIndexMapper.isHidden(this.toPhysicalColumn(t)))return null;n=this.columnIndexMapper.getRenderableFromVisualIndex(t)}if(e>=0){if(this.rowIndexMapper.isHidden(this.toPhysicalRow(e)))return null;s=this.rowIndexMapper.getRenderableFromVisualIndex(e)}return null===s||null===n||void 0===s||void 0===n?null:Y.view.getCellAtCoords(Y._createCellCoords(s,n),r)},this.getCoords=function(e){const t=this.view._wt.wtTable.getCoords(e);if(null===t)return null;const{row:r,col:n}=t;let s=r,o=n;return r>=0&&(s=this.rowIndexMapper.getVisualFromRenderableIndex(r)),n>=0&&(o=this.columnIndexMapper.getVisualFromRenderableIndex(n)),Y._createCellCoords(s,o)},this.colToProp=function(e){return j.colToProp(e)},this.propToCol=function(e){return j.propToCol(e)},this.toVisualRow=e=>this.rowIndexMapper.getVisualFromPhysicalIndex(e),this.toVisualColumn=e=>this.columnIndexMapper.getVisualFromPhysicalIndex(e),this.toPhysicalRow=e=>this.rowIndexMapper.getPhysicalFromVisualIndex(e),this.toPhysicalColumn=e=>this.columnIndexMapper.getPhysicalFromVisualIndex(e),this.getDataAtCell=function(e,t){return j.get(e,j.colToProp(t))},this.getDataAtRowProp=function(e,t){return j.get(e,t)},this.getDataAtCol=function(e){const t=[],r=j.getRange(Y._createCellCoords(0,e),Y._createCellCoords(re.data.length-1,e),j.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getDataAtProp=function(e){const t=[],r=j.getRange(Y._createCellCoords(0,j.propToCol(e)),Y._createCellCoords(re.data.length-1,j.propToCol(e)),j.DESTINATION_RENDERER);for(let e=0;e<r.length;e+=1)for(let n=0;n<r[e].length;n+=1)t.push(r[e][n]);return t},this.getSourceData=function(e,t,r,n){let s;return s=void 0===e?z.getData():z.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(r,n)),s},this.getSourceDataArray=function(e,t,r,n){let s;return s=void 0===e?z.getData(!0):z.getByRange(Y._createCellCoords(e,t),Y._createCellCoords(r,n),!0),s},this.getSourceDataAtCol=function(e){return z.getAtColumn(e)},this.setSourceDataAtCell=function(e,t,r,n){const s=pe(e,t,r),o=this.hasHook("afterSetSourceDataAtCell"),a=[];o&&(0,d.arrayEach)(s,e=>{let[t,r,n]=e;a.push([t,r,z.getAtCell(t,r),n])}),(0,d.arrayEach)(s,e=>{let[t,r,n]=e;z.setAtCell(t,r,n)}),o&&this.runHooks("afterSetSourceDataAtCell",a,n),this.render();const l=Y.getActiveEditor();l&&(0,i.isDefined)(l.refreshValue)&&l.refreshValue()},this.getSourceDataAtRow=function(e){return z.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return z.getAtCell(e,t)},this.getDataAtRow=function(e){return j.getRange(Y._createCellCoords(e,0),Y._createCellCoords(e,this.countCols()-1),j.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,r,n){const s=void 0===e?[0,0,this.countRows(),this.countCols()]:[e,t,r,n],[o,i]=s;let[,,a,l]=s,h=null,u=null;void 0===a&&(a=o),void 0===l&&(l=i);let c="mixed";return(0,C.rangeEach)(Math.max(Math.min(o,a),0),Math.max(o,a),e=>{let t=!0;return(0,C.rangeEach)(Math.max(Math.min(i,l),0),Math.max(i,l),r=>{const n=this.getCellMeta(e,r);return u=n.type,h?t=h===u:h=u,t}),c=t?u:"mixed",t}),c},this.removeCellMeta=function(e,t,r){const[n,s]=[this.toPhysicalRow(e),this.toPhysicalColumn(t)];let o=te.getCellMetaKeyValue(n,s,r);!1!==Y.runHooks("beforeRemoveCellMeta",e,t,r,o)&&(te.removeCellMeta(n,s,r),Y.runHooks("afterRemoveCellMeta",e,t,r,o)),o=null},this.spliceCellsMeta=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];if(n.length>0&&!Array.isArray(n[0]))throw new Error("The 3rd argument (cellMetaRows) has to be passed as an array of cell meta objects array.");t>0&&te.removeRow(this.toPhysicalRow(e),t),n.length>0&&(0,d.arrayEach)(n.reverse(),t=>{te.createRow(this.toPhysicalRow(e)),(0,d.arrayEach)(t,(t,r)=>this.setCellMetaObject(e,r,t))}),Y.render()},this.setCellMetaObject=function(e,t,r){"object"==typeof r&&(0,u.objectEach)(r,(r,n)=>{this.setCellMeta(e,t,n,r)})},this.setCellMeta=function(e,t,r,n){if(!1===Y.runHooks("beforeSetCellMeta",e,t,r,n))return;let s=e,o=t;e<this.countRows()&&(s=this.toPhysicalRow(e)),t<this.countCols()&&(o=this.toPhysicalColumn(t)),te.setCellMeta(s,o,r,n),Y.runHooks("afterSetCellMeta",e,t,r,n)},this.getCellsMeta=function(){return te.getCellsMeta()},this.getCellMeta=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipMetaExtension:!1},n=this.toPhysicalRow(e),s=this.toPhysicalColumn(t);return null===n&&(n=e),null===s&&(s=t),te.getCellMeta(n,s,{visualRow:e,visualColumn:t,...r})},this.getColumnMeta=function(e){return te.getColumnMeta(this.toPhysicalColumn(e))},this.getCellMetaAtRow=function(e){return te.getCellsMetaAtRow(e)},this.isColumnModificationAllowed=function(){return!("object"===Y.dataType||re.columns)},this.getCellRenderer=function(e,t){const r="number"==typeof e?Y.getCellMeta(e,t).renderer:e.renderer;return"string"==typeof r?(0,m.getRenderer)(r):(0,i.isUndefined)(r)?(0,m.getRenderer)("text"):r},this.getCellEditor=function(e,t){const r="number"==typeof e?Y.getCellMeta(e,t).editor:e.editor;return"string"==typeof r?(0,E.getEditor)(r):(0,i.isUndefined)(r)?(0,E.getEditor)("text"):r},this.getCellValidator=function(e,t){const r="number"==typeof e?Y.getCellMeta(e,t).validator:e.validator;return"string"==typeof r?(0,w.getValidator)(r):r},this.validateCells=function(e){this._validateCells(e)},this.validateRows=function(e,t){if(!Array.isArray(e))throw new Error("validateRows parameter `rows` must be an array");this._validateCells(t,e)},this.validateColumns=function(e,t){if(!Array.isArray(e))throw new Error("validateColumns parameter `columns` must be an array");this._validateCells(t,void 0,e)},this._validateCells=function(e,t,r){const n=new he;e&&(n.onQueueEmpty=e);let s=Y.countRows()-1;for(;s>=0;){if(void 0!==t&&-1===t.indexOf(s)){s-=1;continue}let e=Y.countCols()-1;for(;e>=0;)void 0===r||-1!==r.indexOf(e)?(n.addValidatorToQueue(),Y.validateCell(Y.getDataAtCell(s,e),Y.getCellMeta(s,e),e=>{if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");!1===e&&(n.valid=!1),n.removeValidatorFormQueue()},"validateCells"),e-=1):e-=1;s-=1}n.checkIfQueueIsEmpty()},this.getRowHeader=function(e){let t=re.rowHeaders,r=e;return void 0!==r&&(r=Y.runHooks("modifyRowHeader",r)),void 0===r?(t=[],(0,C.rangeEach)(Y.countRows()-1,e=>{t.push(Y.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[r]?t=t[r]:(0,o.isFunction)(t)?t=t(r):t&&"string"!=typeof t&&"number"!=typeof t&&(t=r+1),t},this.hasRowHeaders=function(){return!!re.rowHeaders},this.hasColHeaders=function(){if(void 0!==re.colHeaders&&null!==re.colHeaders)return!!re.colHeaders;for(let e=0,t=Y.countCols();e<t;e++)if(Y.getColHeader(e))return!0;return!1},this.getColHeader=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=Y.runHooks("modifyColHeader",e);if(void 0===r){const e=[],t=Y.countCols();for(let r=0;r<t;r++)e.push(Y.getColHeader(r));return e}let n=re.colHeaders;const s=Y.toPhysicalColumn(r),i=function(e){const t=[],r=Y.countCols();let n=0;for(;n<r;n++)(0,o.isFunction)(re.columns)&&re.columns(n)&&t.push(n);return t[e]}(s);return!1===re.colHeaders?n=null:re.columns&&(0,o.isFunction)(re.columns)&&re.columns(i)&&re.columns(i).title?n=re.columns(i).title:re.columns&&re.columns[s]&&re.columns[s].title?n=re.columns[s].title:Array.isArray(re.colHeaders)&&void 0!==re.colHeaders[s]?n=re.colHeaders[s]:(0,o.isFunction)(re.colHeaders)?n=re.colHeaders(s):re.colHeaders&&"string"!=typeof re.colHeaders&&"number"!=typeof re.colHeaders&&(n=(0,v.spreadsheetColumnLabel)(r)),n=Y.runHooks("modifyColumnHeaderValue",n,e,t),n},this._getColWidthFromSettings=function(e){let t;if(e>=0){t=Y.getCellMeta(0,e).width}if(void 0!==t&&t!==re.width||(t=re.colWidths),null!=t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getColWidth=function(e,t){let r=Y._getColWidthFromSettings(e);return r=Y.runHooks("modifyColWidth",r,e,t),void 0===r&&(r=M.DEFAULT_COLUMN_WIDTH),r},this._getRowHeightFromSettings=function(e){const t=Y.stylesHandler.getDefaultRowHeight();let r=re.rowHeights;if(null!=r){switch(typeof r){case"object":r=r[e];break;case"function":r=r(e)}"string"==typeof r&&(r=parseInt(r,10))}return null!=r&&r<t?t:r},this.getRowHeight=function(e,t){let r=Y._getRowHeightFromSettings(e);return r=Y.runHooks("modifyRowHeight",r,e,t),r},this.countSourceRows=function(){return z.countRows()},this.countSourceCols=function(){return z.countFirstRowKeys()},this.countRows=function(){return j.getLength()},this.countCols=function(){const e=re.maxCols,t=this.columnIndexMapper.getNotTrimmedIndexesLength();return Math.min(e,t)},this.countRenderedRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return Y.view._wt.drawn?Y.view._wt.wtTable.getVisibleColumnsCount():-1},this.countRowHeaders=function(){return this.view.getRowHeadersCount()},this.countColHeaders=function(){return this.view.getColumnHeadersCount()},this.countEmptyRows=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(Y.countRows()-1,r=>{if(Y.isEmptyRow(r))t+=1;else if(!0===e)return!1}),t},this.countEmptyCols=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return(0,C.rangeEachReverse)(Y.countCols()-1,r=>{if(Y.isEmptyCol(r))t+=1;else if(!0===e)return!1}),t},this.isEmptyRow=function(e){return re.isEmptyRow.call(Y,e)},this.isEmptyCol=function(e){return re.isEmptyCol.call(Y,e)},this.selectCell=function(e,t,r,n){let s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return!(0,i.isUndefined)(e)&&!(0,i.isUndefined)(t)&&this.selectCells([[e,t,r,n]],s,o)},this.selectCells=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]],t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&q.suspend();const r=ie.selectCells(e);return r&&t&&Y.listen(),q.resume(),r},this.selectColumns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ie.selectColumns(e,t,r)},this.selectRows=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;return ie.selectRows(e,t,r)},this.deselectCell=function(){ie.deselect()},this.selectAll=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2?arguments[2]:void 0;q.skipNextScrollCycle(),ie.selectAll(e,t,r)};const fe=(e,t)=>e.getNearestNotHiddenIndex(t,1,!0);this.scrollViewportTo=function(e,t){var r;"number"==typeof e&&(e={row:arguments[0],col:arguments[1],verticalSnap:arguments[2]?"bottom":"top",horizontalSnap:arguments[3]?"end":"start",considerHiddenIndexes:null===(r=arguments[4])||void 0===r||r});const{row:n,col:s,considerHiddenIndexes:i}=null!=e?e:{};let a=n,l=s;if((0,o.isFunction)(t)&&this.addHookOnce("afterScroll",t),void 0===i||i){const e=Number.isInteger(n)&&n>=0,t=Number.isInteger(s)&&s>=0,r=e?fe(this.rowIndexMapper,n):void 0,o=t?fe(this.columnIndexMapper,s):void 0;if(null===r||null===o)return!1;a=e?Y.rowIndexMapper.getRenderableFromVisualIndex(r):n,l=t?Y.columnIndexMapper.getRenderableFromVisualIndex(o):s}const h=Number.isInteger(a),u=Number.isInteger(l);let c=!1;return h&&a>=0&&u&&l>=0?c=Y.view.scrollViewport(Y._createCellCoords(a,l),e.horizontalSnap,e.verticalSnap):h&&a>=0&&(u&&l<0||!u)?c=Y.view.scrollViewportVertically(a,e.verticalSnap):u&&l>=0&&(h&&a<0||!h)&&(c=Y.view.scrollViewportHorizontally(l,e.horizontalSnap)),(0,o.isFunction)(t)&&(c?this.view.render():(this.removeHook("afterScroll",t),this._registerMicrotask(()=>t()))),c},this.scrollToFocusedCell=function(e){if(!this.selection.isSelected())return!1;(0,o.isFunction)(e)&&this.addHookOnce("afterScroll",e);const{highlight:t}=this.getSelectedRangeLast(),r=this.scrollViewportTo(t.toObject());return r?this.view.render():(0,o.isFunction)(e)&&(this.removeHook("afterScroll",e),this._registerMicrotask(()=>e())),r},this.destroy=function(){Y._clearTimeouts(),Y._clearImmediates(),Y.view&&Y.view.destroy(),z&&z.destroy(),z=null,this.getShortcutManager().destroy(),oe.clear(),te.clearCache(),B.delete(this.guid),G.destroy(),K&&K.destroy(),Y.rootContainer&&(0,s.empty)(Y.rootContainer),Y.rootPortalElement&&Y.rootPortalElement.remove(),Y.batchExecution(()=>{Y.rowIndexMapper.unregisterAll(),Y.columnIndexMapper.unregisterAll(),se.getItems().forEach(e=>{let[,t]=e;t.destroy()}),se.clear(),Y.runHooks("afterDestroy")},!0),_.Hooks.getSingleton().destroy(Y),(0,u.objectEach)(Y,(e,t,r)=>{var n;(0,o.isFunction)(e)?r[t]=(n=t,()=>{throw new Error(`The "${n}" method cannot be called because this Handsontable instance has been destroyed`)}):"guid"!==t&&(r[t]=null)}),Y.isDestroyed=!0,j&&j.destroy(),j=null,$=null,ie=null,K=null,Y=null},this.getActiveEditor=function(){return K.getActiveEditor()},this.getFirstRenderedVisibleRow=function(){return Y.view.getFirstRenderedVisibleRow()},this.getLastRenderedVisibleRow=function(){return Y.view.getLastRenderedVisibleRow()},this.getFirstRenderedVisibleColumn=function(){return Y.view.getFirstRenderedVisibleColumn()},this.getLastRenderedVisibleColumn=function(){return Y.view.getLastRenderedVisibleColumn()},this.getFirstFullyVisibleRow=function(){return Y.view.getFirstFullyVisibleRow()},this.getLastFullyVisibleRow=function(){return Y.view.getLastFullyVisibleRow()},this.getFirstFullyVisibleColumn=function(){return Y.view.getFirstFullyVisibleColumn()},this.getLastFullyVisibleColumn=function(){return Y.view.getLastFullyVisibleColumn()},this.getFirstPartiallyVisibleRow=function(){return Y.view.getFirstPartiallyVisibleRow()},this.getLastPartiallyVisibleRow=function(){return Y.view.getLastPartiallyVisibleRow()},this.getFirstPartiallyVisibleColumn=function(){return Y.view.getFirstPartiallyVisibleColumn()},this.getLastPartiallyVisibleColumn=function(){return Y.view.getLastPartiallyVisibleColumn()},this.getPlugin=function(e){return se.getItem((0,y.toUpperCaseFirst)(e))},this.getPluginName=function(e){return e===this.undoRedo?this.undoRedo.constructor.PLUGIN_KEY:se.getId(e)},this.getInstance=function(){return Y},this.addHook=function(e,t,r){_.Hooks.getSingleton().add(e,t,Y,r)},this.hasHook=function(e){return _.Hooks.getSingleton().has(e,Y)||_.Hooks.getSingleton().has(e)},this.addHookOnce=function(e,t,r){_.Hooks.getSingleton().once(e,t,Y,r)},this.removeHook=function(e,t){_.Hooks.getSingleton().remove(e,t,Y)},this.runHooks=function(e,t,r,n,s,o,i){return _.Hooks.getSingleton().run(Y,e,t,r,n,s,o,i)},this.getTranslatedPhrase=function(e,t){return(0,b.getTranslatedPhrase)(re.language,e,t)},this.toHTML=()=>(0,p.instanceToHTML)(this),this.toTableElement=()=>{const e=this.rootDocument.createElement("div");return e.insertAdjacentHTML("afterbegin",(0,p.instanceToHTML)(this)),e.firstElementChild},this.timeouts=[],this.useTheme=e=>{const t=!!Q;this.stylesHandler.useTheme(e);const r=this.stylesHandler.getThemeName();(0,N.isRootInstance)(this)&&((0,s.removeClass)(this.rootWrapperElement,/ht-theme-.*/g),(0,s.removeClass)(this.rootPortalElement,/ht-theme-.*/g),r&&((0,s.addClass)(this.rootWrapperElement,r),(0,s.addClass)(this.rootPortalElement,r),getComputedStyle(this.rootWrapperElement).getPropertyValue("--ht-line-height")||(0,F.warn)(`The "${r}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`))),t||(Y.render(),Y.scrollViewportTo(0,0),(0,k.getThemeClassName)(this.rootContainer)&&((0,s.removeClass)(this.rootContainer,/ht-theme-.*/g),r&&(0,s.addClass)(this.rootContainer,r))),this.runHooks("afterSetTheme",r,t)},this.getCurrentThemeName=()=>this.stylesHandler.getThemeName(),this.getTableHeight=()=>this.rootElement.offsetHeight,this.getTableWidth=()=>this.rootElement.offsetWidth,this._registerTimeout=function(e){let t=e;"function"==typeof t&&(t=setTimeout(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)),this.timeouts.push(t)},this._clearTimeouts=function(){(0,d.arrayEach)(this.timeouts,e=>{clearTimeout(e)})},this.immediates=[],this._registerImmediate=function(e){this.immediates.push(setImmediate(e))},this._clearImmediates=function(){(0,d.arrayEach)(this.immediates,e=>{clearImmediate(e)})},this._registerMicrotask=function(e){this.rootWindow.queueMicrotask(()=>{this.isDestroyed||e()})},this._getEditorManager=function(){return K};const me=(0,L.createShortcutManager)({handleEvent:()=>Y.isListening(),beforeKeyDown:e=>this.runHooks("beforeKeyDown",e),afterKeyDown:e=>{this.isDestroyed||Y.runHooks("afterDocumentKeyDown",e)},ownerWindow:this.rootWindow});this.addHook("beforeOnCellMouseDown",e=>{!1===e.ctrlKey&&!1===e.metaKey&&me.releasePressedKeys()}),this.getShortcutManager=function(){return me},this.getFocusManager=function(){return X},(0,f.getPluginsNames)().forEach(e=>{const t=(0,f.getPlugin)(e);se.addItem(e,new t(this))}),(0,D.registerAllShortcutContexts)(Y),me.setActiveContextName("grid"),_.Hooks.getSingleton().run(Y,"construct")},r(88443),r(85639),r(41846),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(7307),r(69326),r(90795),r(57);var s=r(85180),o=r(28275),i=r(18528),a=r(28627),l=n(r(10289)),h=n(r(54138)),u=r(72848),c=r(20866),d=r(39738),p=r(42982),g=r(88248),f=r(76019),m=r(28927),E=r(8253),w=r(44694),y=r(28222),C=r(35782),R=n(r(95632)),S=n(r(47703)),v=r(29363),T=r(10530),N=r(56484),M=r(93629),_=r(15886),b=r(5755),A=r(96907),I=r(11072),O=r(43528),x=r(80737),P=r(88529),L=r(38041),D=r(79104),k=r(83457),H=r(3609),F=r(51278),U=r(80536);let V=null;const B=new Map;new Set},87513:()=>{},87530:(e,t,r)=>{"use strict";var n=r(71652),s=r(46507),o=r(26213),i=function(e){return function(t,r,i){var a=n(t),l=o(a);if(0===l)return!e&&-1;var h,u=s(i,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:i(!0),indexOf:i(!1)}},88005:function(e){"use strict";var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},88248:(e,t)=>{"use strict";t.__esModule=!0,t.resolveWithInstance=function(e,t){var n;return null==r||null===(n=r.get(e.guid))||void 0===n?void 0:n.get(t)},t.staticRegister=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";r.has(e)||r.set(e,new Map);const t=r.get(e);return{register:function(e,r){t.set(e,r)},getItem:function(e){return t.get(e)},hasItem:function(e){return t.has(e)},getNames:function(){return[...t.keys()]},getValues:function(){return[...t.values()]},clear:function(){r.delete(e),t.clear()}}};const r=t.collection=new Map},88259:(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 o.MultipleSelectUI?r:!(n.element&&!(0,s.isVisible)(n.element))&&void n.focus()}})};var n=r(92748),s=r(85180),o=r(19445)},88291:(e,t,r)=>{"use strict";var n=r(76277),s=r(64976),o=r(65985),i=r(86713),a=r(77618),l=r(74218),h=r(63884),u=r(69498)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{i(e)}catch(e){h(this,"throw",e)}if(u)return s(u,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},88300:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:s,name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_INSERT_RIGHT)},callback(){const e=this.getSelectedRangeLast().getTopRightCorner(),t=this.isRtl()?"insert_col_start":"insert_col_end";this.alter(t,e.col,1,"ContextMenu.columnRight")},disabled(){if(!this.isColumnModificationAllowed())return!0;const e=this.getSelectedRangeLast();return!!(!e||this.selection.isSelectedByRowHeader()||e.isSingleHeader()&&e.highlight.col<0||this.countSourceCols()>=this.getSettings().maxCols)},hidden(){return!this.getSettings().allowInsertColumn}}};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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const s=t.KEY="col_right"},88345:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(47236);t.CELL_TYPE=n.CELL_TYPE,t.PasswordCellType=n.PasswordCellType},88356:()=>{},88443:(e,t,r)=>{"use strict";var n=r(76277),s=r(88005),o=r(13150),i=r(41512),a="WebAssembly",l=s[a],h=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=i(e,t,h),n({global:!0,constructor:!0,arity:1,forced:h},r)},c=function(e,t){if(l&&l[e]){var r={};r[e]=i(a+"."+e,t,h),n({target:a,stat:!0,constructor:!0,arity:1,forced:h},r)}};u("Error",function(e){return function(t){return o(e,this,arguments)}}),u("EvalError",function(e){return function(t){return o(e,this,arguments)}}),u("RangeError",function(e){return function(t){return o(e,this,arguments)}}),u("ReferenceError",function(e){return function(t){return o(e,this,arguments)}}),u("SyntaxError",function(e){return function(t){return o(e,this,arguments)}}),u("TypeError",function(e){return function(t){return o(e,this,arguments)}}),u("URIError",function(e){return function(t){return o(e,this,arguments)}}),c("CompileError",function(e){return function(t){return o(e,this,arguments)}}),c("LinkError",function(e){return function(t){return o(e,this,arguments)}}),c("RuntimeError",function(e){return function(t){return o(e,this,arguments)}})},88476:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(63881),i=r(19487);t.OrderView=class{constructor(e,t){(0,s.default)(this,"rootNode",void 0),(0,s.default)(this,"nodesPool",void 0),(0,s.default)(this,"sizeSet",new o.ViewSizeSet),(0,s.default)(this,"collectedNodes",[]),(0,s.default)(this,"viewDiffer",new i.ViewDiffer(this.sizeSet)),(0,s.default)(this,"leads",[]),this.rootNode=e,this.nodesPool=t}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:t}=this,[r,n,s,o]=e,i=this.nodesPool(n);switch(this.collectedNodes.push(i),r){case"prepend":t.insertBefore(i,t.firstChild);break;case"append":t.appendChild(i);break;case"insert_before":t.insertBefore(i,this.nodesPool(s)),t.removeChild(this.nodesPool(o));break;case"replace":t.replaceChild(i,this.nodesPool(s));break;case"remove":t.removeChild(i)}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}},88529:(e,t,r)=>{"use strict";t.__esModule=!0,t.createUniqueMap=function(){let{errorIdExists:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map;function r(){return[...t]}function o(e){return t.has(e)}return e=(0,n.isFunction)(e)?e:s,{addItem:function(r,n){if(o(r))throw new Error(e(r));t.set(r,n)},clear:function(){t.clear()},getId:function(e){const[t]=r().find(t=>{let[r,n]=t;return e===n&&r})||[null];return t},getItem:function(e){return t.get(e)},getItems:r,hasItem:o,removeItem:function(e){return t.delete(e)}}},r(88443),r(73741),r(37782);var n=r(28275);const s=e=>`The id '${e}' is already declared in a map.`},88663:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerAllEditors=function(){(0,g.registerEditor)(s.BaseEditor),(0,g.registerEditor)(n.AutocompleteEditor),(0,g.registerEditor)(o.CheckboxEditor),(0,g.registerEditor)(i.DateEditor),(0,g.registerEditor)(a.DropdownEditor),(0,g.registerEditor)(l.HandsontableEditor),(0,g.registerEditor)(h.NumericEditor),(0,g.registerEditor)(u.PasswordEditor),(0,g.registerEditor)(c.SelectEditor),(0,g.registerEditor)(d.TextEditor),(0,g.registerEditor)(p.TimeEditor)};var n=r(14236);t.AutocompleteEditor=n.AutocompleteEditor,t.AUTOCOMPLETE_EDITOR=n.EDITOR_TYPE;var s=r(58045);t.BaseEditor=s.BaseEditor,t.BASE_EDITOR=s.EDITOR_TYPE;var o=r(6941);t.CheckboxEditor=o.CheckboxEditor,t.CHECKBOX_EDITOR=o.EDITOR_TYPE;var i=r(82704);t.DateEditor=i.DateEditor,t.DATE_EDITOR=i.EDITOR_TYPE;var a=r(76749);t.DropdownEditor=a.DropdownEditor,t.DROPDOWN_EDITOR=a.EDITOR_TYPE;var l=r(99325);t.HandsontableEditor=l.HandsontableEditor,t.HANDSONTABLE_EDITOR=l.EDITOR_TYPE;var h=r(86413);t.NumericEditor=h.NumericEditor,t.NUMERIC_EDITOR=h.EDITOR_TYPE;var u=r(64941);t.PasswordEditor=u.PasswordEditor,t.PASSWORD_EDITOR=u.EDITOR_TYPE;var c=r(76460);t.SelectEditor=c.SelectEditor,t.SELECT_EDITOR=c.EDITOR_TYPE;var d=r(20903);t.TextEditor=d.TextEditor,t.TEXT_EDITOR=d.EDITOR_TYPE;var p=r(72993);t.TimeEditor=p.TimeEditor,t.TIME_EDITOR=p.EDITOR_TYPE;var g=r(8253);t.registerEditor=g.registerEditor,t.RegisteredEditor=g.RegisteredEditor,t._getEditorInstance=g._getEditorInstance,t.getEditor=g.getEditor,t.getEditorInstance=g.getEditorInstance,t.getRegisteredEditorNames=g.getRegisteredEditorNames,t.getRegisteredEditors=g.getRegisteredEditors,t.hasEditor=g.hasEditor},88780:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostTop",callback(e){const{selection:t}=e,{col:r}=e.getSelectedRangeLast().highlight;let n=e.rowIndexMapper.getNearestNotHiddenIndex(0,1);null===n&&(n=-e.countColHeaders()),t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(n,r)),t.markEndSource()}}},88885:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(28863);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Comments=n.Comments},88921:()=>{},88928:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(7081);t.RENDERER_TYPE=n.RENDERER_TYPE,t.selectRenderer=n.selectRenderer},88969:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326),r(82141);var s=n(r(53726)),o=r(39738),i=r(51278);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,o.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,o.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 i=!(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,o.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,o.arrayEach)(h,e=>{this.extendEndpointRanges(e,c,n[0],n.length),this.recreatePhysicalRanges(e),this.clearOffsetInformation(e)}):(0,o.arrayEach)(h,e=>{this.shiftEndpointCoordinates(e,c)}),i&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,t,r,n){(0,o.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,o.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,o.arrayEach)(n,e=>{let t=[];(0,o.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,o.arrayEach)(e.ranges,r=>{(0,o.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,o.arrayEach)(e,e=>{this.resetEndpointValue(e,t)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],(0,o.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,o.arrayEach)(e,(e,r,n)=>{`${e[2]||""}`!=`${e[3]}`&&(0,o.arrayEach)(this.getAllEndpoints(),(e,s)=>{this.hot.propToCol(n[r][1])===e.sourceColumn&&-1===t.indexOf(s)&&t.push(s)})}),(0,o.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,i.warn)("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")}}},89022:(e,t,r)=>{"use strict";t.__esModule=!0,t.dropdownValidator=o;var n=r(41054);const s=t.VALIDATOR_TYPE="dropdown";function o(e,t){n.autocompleteValidator.apply(this,[e,t])}o.VALIDATOR_TYPE=s},89151:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(45098),i=r(15886),a=r(85180),l=r(39738),h=r(18528),u=r(96012);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")}i.Hooks.getSingleton().register("modifyAutofillRange"),i.Hooks.getSingleton().register("beforeAutofill"),i.Hooks.getSingleton().register("afterAutofill");const p=t.PLUGIN_KEY="autofill",g=t.PLUGIN_PRIORITY=20,f=["fillHandle"];var m=new WeakSet;class E extends o.BasePlugin{constructor(){super(...arguments),c(this,m),(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 g}static get SETTING_KEYS(){return[p,...f]}isEnabled(){return this.hot.getSettings().fillHandle}enablePlugin(){this.enabled||(this.mapSettings(),this.registerEvents(),this.addHook("afterOnCellCornerMouseDown",e=>d(m,this,y).call(this,e)),this.addHook("afterOnCellCornerDblClick",e=>d(m,this,w).call(this,e)),this.addHook("beforeOnCellMouseOver",(e,t)=>d(m,this,C).call(this,t)),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}disablePlugin(){this.clearMappedSettings(),super.disablePlugin()}getSelectionData(){const e=this.hot.getSelectedRangeLast(),{row:t,col:r}=e.getTopStartCorner(),{row:n,col:s}=e.getBottomEndCorner(),o=this.hot.runHooks("modifyCopyableRange",[{startRow:t,startCol:r,endRow:n,endCol:s}]),i=[],a=[],h=[];return(0,l.arrayEach)(o,e=>{for(let t=e.startRow;t<=e.endRow;t+=1)-1===i.indexOf(t)&&i.push(t);for(let t=e.startCol;t<=e.endCol;t+=1)-1===a.indexOf(t)&&a.push(t)}),(0,l.arrayEach)(i,e=>{const t=[];(0,l.arrayEach)(a,r=>{t.push(this.hot.getCopyableData(e,r))}),h.push(t)}),h}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(),o=s.getTopStartCorner(),i=s.getBottomEndCorner();this.resetSelectionOfDraggedArea();const a=[o.row,o.col,i.row,i.col],l=this.hot.runHooks("modifyAutofillRange",[Math.min(o.row,e),Math.min(o.col,t),Math.max(i.row,r),Math.max(i.col,n)],a),{directionOfDrag:h,startOfDragCoords:c,endOfDragCoords:d}=(0,u.getDragDirectionAndRange)(a,l,(e,t)=>this.hot._createCellCoords(e,t));if(c&&c.row>-1&&c.col>-1){const e=this.getSelectionData(),t=s.clone(),r=this.hot._createCellRange(c,c,d),n=this.hot.runHooks("beforeAutofill",e,t,r,h);if(!1===n)return this.hot.selection.highlight.getFill().clear(),this.hot.render(),!1;let o=n;const i=n;if(["up","left"].indexOf(h)>-1&&(1!==i.length||0!==i[0].length))if(o=[],"up"===h){const e=d.row-c.row+1,t=e%i.length;for(let r=0;r<e;r++)o.push(i[(r+(i.length-t))%i.length])}else{const e=d.col-c.col+1,t=e%i[0].length;for(let r=0;r<i.length;r++){o.push([]);for(let n=0;n<e;n++)o[r].push(i[r][(n+(i[r].length-t))%i[r].length])}}this.hot.populateFromArray(c.row,c.col,o,d.row,d.col,`${this.pluginName}.fill`,null),this.setSelection(l),this.hot.runHooks("afterAutofill",o,t,r,h),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(u.DIRECTIONS.vertical)&&this.directions.includes(u.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(u.DIRECTIONS.vertical))n=this.hot._createCellCoords(e.row,r.col);else{if(!this.directions.includes(u.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,h.isEmpty)(e))return-1}const r=t[s][e[1]-1],o=t[s][e[3]+1];(0,h.isEmpty)(r)&&(0,h.isEmpty)(o)||(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,l.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",()=>d(m,this,R).call(this)),this.eventManager.addEventListener(e,"mousemove",e=>d(m,this,S).call(this,e))}clearMappedSettings(){this.directions.length=0,this.autoInsertRow=!1}mapSettings(){const e=(0,u.getMappedFillHandleSetting)(this.hot.getSettings().fillHandle);this.directions=e.directions,this.autoInsertRow=e.autoInsertRow}destroy(){super.destroy()}}function w(){this.selectAdjacent()&&this.fillIn()}function y(){this.handleDraggedCells=1,this.mouseDownOnCellCorner=!0}function C(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 S(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},89176:(e,t,r)=>{"use strict";var n=r(25225),s=r(82314),o=r(53385),i=Object,a=n("".split);e.exports=s(function(){return!i("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):i(e)}:i},89292:(e,t,r)=>{"use strict";t.__esModule=!0,t.getCellMetas=function(e,t,r,s,o){const i=["visualRow","visualCol","row","col","prop"],a=i.length,l=[];return(0,n.rangeEach)(s,o,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===i.includes(t)}));l.push([r.visualRow,r.visualCol,e])}})}),l},r(85639),r(41846),r(73741),r(7307);var n=r(35782)},89393:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(10100);t.command={name:"editorOpen",callback(e,t,r){const s=e._getEditorManager(),o=e.getSelectedRangeLast(),{highlight:i}=o;if(e.selection.isMultiple()&&!o.isHeader()&&e.countRenderedCols()>0&&e.countRenderedRows()>0){const n=e.getSettings(),s="function"==typeof n.enterMoves?n.enterMoves(t):n.enterMoves;return void(r.includes("shift")?e.selection.transformFocus(-s.row,-s.col):e.selection.transformFocus(s.row,s.col))}i.isHeader()||(e.getSettings().enterBeginsEditing?s.cellProperties.readOnly?s.moveSelectionAfterEnter(t):s.openEditor(null,t,!0):s.moveSelectionAfterEnter(t),(0,n.stopImmediatePropagation)(t))}}},89494:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},89577:()=>{},89626:(e,t,r)=>{"use strict";var n=r(42806),s=r(36697),o=r(214),i=r(50916),a=r(92754)("iterator");e.exports=function(e){if(!o(e))return s(e,a)||s(e,"@@iterator")||i[n(e)]}},89663:(e,t,r)=>{"use strict";r(77914)},89711:(e,t,r)=>{"use strict";var n=r(76277),s=r(23473),o=r(96068);n({target:"Set",proto:!0,real:!0,forced:!r(93295)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:s})},89880:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(){return{key:i,checkable:!0,ariaChecked(){return(0,n.checkSelectionConsistency)(this.getSelectedRange(),(e,t)=>this.getCellMeta(e,t).readOnly)},ariaLabel(){return this.getTranslatedPhrase(o.CONTEXTMENU_ITEMS_READ_ONLY)},name(){let e=this.getTranslatedPhrase(o.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.getSelectedRangeLast();return!e||(!!e.isSingleHeader()||(!!this.selection.isSelectedByCorner()||(0===this.countRows()||0===this.countCols()||(!this.getSelectedRange()||0===this.getSelectedRange().length))))}}};var n=r(45624),s=r(39738),o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787));const i=t.KEY="make_read_only"},89960:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443);var n=r(72848),s=r(36721);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 i(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;class c extends s.BaseUI{static get DEFAULTS(){return(0,n.clone)({type:"radio",tagName:"input",className:"htUIRadio",label:{}})}constructor(e,t){super(e,(0,n.extend)(c.DEFAULTS,t)),o(this,h,void 0),o(this,u,void 0)}build(){super.build();const e=this.hot.rootDocument.createElement("label");e.textContent=this.translateIfPossible(this.options.label.textContent),e.htmlFor=this.translateIfPossible(this.options.label.htmlFor),a(u,this,e),a(h,this,this._element.firstChild),i(h,this).checked=this.options.checked,this._element.appendChild(e),this.update()}update(){this.isBuilt()&&(i(u,this).textContent=this.translateIfPossible(this.options.label.textContent))}isChecked(){return!!this.isBuilt()&&i(h,this).checked}setChecked(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isBuilt()&&(i(h,this).checked=e)}focus(){this.isBuilt()&&i(h,this).focus()}}t.RadioInputUI=c},90086:(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
292
292
  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(88443),r(85639);var n=r(54536)},90380:(e,t,r)=>{"use strict";var n=r(60926);e.exports="NODE"===n},90382:(e,t,r)=>{"use strict";var n=r(76277),s=r(25225),o=r(86713),i=r(71652),a=r(64223),l=r(92229),h=r(72714),u=Array,c=s(l("Array","sort"));n({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&o(e);var t=i(this),r=a(u,t);return c(r,e)}}),h("toSorted")},90433:()=>{},90530:(e,t,r)=>{"use strict";t.__esModule=!0,t.getOperationFunc=function(e){if(!n[e])throw Error(`Operation with id "${e}" does not exist.`);const t=n[e].func;return function(e,r){return t(e,r)}},t.getOperationName=function(e){return n[e].name},t.registerOperation=function(e,t,r){n[e]={name:t,func:r}},r(88443);const n=t.operations={}},90795:(e,t,r)=>{"use strict";r(8092)},90851:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726));t.default=class{constructor(e){(0,s.default)(this,"plugin",void 0),(0,s.default)(this,"hot",void 0),(0,s.default)(this,"fullySelectedMergedCellClassName","fullySelectedMergedCell"),this.plugin=e,this.hot=e.hot}getSelectedMergedCellClassName(e,t,r,n){const s=Math.min(r[0],r[2]),o=Math.min(r[1],r[3]),i=Math.max(r[0],r[2]),a=Math.max(r[1],r[3]);if(void 0===n)return;if(!this.plugin.mergedCellsCollection.isFirstRenderableMergedCell(e,t))return;const l=this.plugin.mergedCellsCollection.get(e,t);if(!l)return;const h=l.getLastRow(),u=l.getLastColumn();return s<=l.row&&o<=l.col&&i>=h&&a>=u?`${this.fullySelectedMergedCellClassName}-${n}`:this.isMergeCellFullySelected(l,this.plugin.hot.getSelectedRange())?`${this.fullySelectedMergedCellClassName}-multiple`:void 0}isMergeCellFullySelected(e,t){const r=[];if(!t||!e)return!1;for(let t=0;t<e.rowspan;t+=1)for(let n=0;n<e.colspan;n+=1)r.push(this.hot._createCellCoords(e.row+t,e.col+n));for(let e=0;e<r.length;e+=1){const n=[];for(let s=0;s<t.length;s+=1)n[s]=t[s].includes(r[e]);if(!n.includes(!0))return!1}return!0}getSelectedMergedCellClassNameToRemove(){const e=[];for(let t=0;t<=7;t+=1)e.push(`${this.fullySelectedMergedCellClassName}-${t}`);return e.push(`${this.fullySelectedMergedCellClassName}-multiple`),e}}},90911:(e,t,r)=>{"use strict";var n=r(14499),s=r(98304),o=n.Set,i=n.add;e.exports=function(e){var t=new o;return s(e,function(e){i(t,e)}),t}},91375:()=>{},91781:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(73741),r(89663);var n=r(40961);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 o(e,t){return e.get(a(e,t))}function i(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;class u extends n.StretchStrategy{constructor(){super(...arguments),s(this,l,0),s(this,h,-1)}prepare(e){super.prepare(e),i(l,this,0),i(h,this,-1)}setColumnBaseWidth(e,t){super.setColumnBaseWidth(e,t),i(h,this,e),i(l,this,t)}calculate(){if(-1===o(h,this))return;const e=Array.from(this.baseWidths).reduce((e,t)=>{let[,r]=t;return e+r},0),t=Math.max(this.viewportWidth-e+o(l,this),0);this.stretchedWidths.set(o(h,this),t)}}t.StretchLastStrategy=u},91936:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(52438);t.CELL_TYPE=n.CELL_TYPE,t.SelectCellType=n.SelectCellType},92137:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));t.ViewSize=class{constructor(){(0,s.default)(this,"currentSize",0),(0,s.default)(this,"nextSize",0),(0,s.default)(this,"currentOffset",0),(0,s.default)(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}},92169:()=>{},92229:(e,t,r)=>{"use strict";var n=r(88005);e.exports=function(e,t){var r=n[e],s=r&&r.prototype;return s&&s[t]}},92278:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(82704),s=r(44084),o=r(51552);const i=t.CELL_TYPE="date";t.DateCellType={CELL_TYPE:i,editor:n.DateEditor,renderer:s.dateRenderer,validator:o.dateValidator}},92334:()=>{},92353:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionToMostRight",callback(e){const{selection:t,columnIndexMapper:r}=e,{row:n}=e.getSelectedRangeLast().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()}}},92443:()=>{},92663:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionRight",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeLast();t.isSelectedByRowHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByColumnHeader())||(t.markSource("keyboard"),t.transformEnd(0,e.getDirectionFactor()),t.markEndSource())}}},92689:(e,t,r)=>{"use strict";var n=r(5006),s=TypeError;e.exports=function(e,t){if(!delete e[t])throw new s("Cannot delete property "+n(t)+" of "+n(e))}},92716:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(41054);t.VALIDATOR_TYPE=n.VALIDATOR_TYPE,t.autocompleteValidator=n.autocompleteValidator},92748:(e,t,r)=>{"use strict";t.__esModule=!0,t.createPaginator=function(e){let{initialPage:t=-1,size:r=()=>0,onItemSelect:s=()=>{},onClear:o=()=>{}}=e;const i=new Set;let a=(0,n.clamp)(t,-1,h()-1);function l(e,t){const r=h()-1;if(e<0&&(e=r),e>r&&(e=0),i.has(e))return-1;i.add(e);return!1===s(e,!1)&&(e=l(1===t?++e:--e,t)),e}function h(){return Math.max(r(),0)}return{setCurrentPage:function(e){e>-1&&e<h()&&!1!==s(e,!0)&&(a=e)},setPageCursorAt:function(e){e>-1&&e<h()&&(a=e)},getCurrentPage:function(){return a},toFirstItem:function(){h()>0&&(i.clear(),a=l(0,1))},toLastItem:function(){h()>0&&(i.clear(),a=l(h()-1,-1))},toNextItem:function(){h()>0&&(i.clear(),a=l(++a,1))},toPreviousItem:function(){h()>0&&(i.clear(),a=l(--a,-1))},getSize:h,clear:function(){i.clear(),a=t,o()}}},r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675);var n=r(35782)},92754:(e,t,r)=>{"use strict";var n=r(88005),s=r(85458),o=r(54090),i=r(96745),a=r(77976),l=r(16329),h=n.Symbol,u=s("wks"),c=l?h.for||h:h&&h.withoutSetter||i;e.exports=function(e){return o(u,e)||(u[e]=a&&o(h,e)?h[e]:c("Symbol."+e)),u[e]}},92786:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.timeValidator=a;var s=n(r(37539));const o=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"],i=t.VALIDATOR_TYPE="time";function a(e,t){const r=this.timeFormat||"h:mm:ss a";let n=!0,i=e;null===i&&(i=""),i=/^\d{3,}$/.test(i)?parseInt(i,10):i;const a=/^\d{1,2}$/.test(i);a&&(i+=":00");const l=(0,s.default)(i,o,!0).isValid()?(0,s.default)(i):(0,s.default)(i,r);let h=l.isValid(),u=(0,s.default)(i,r,!0).isValid()&&!a;if(this.allowEmpty&&""===i&&(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=i},92807:(e,t,r)=>{"use strict";t.__esModule=!0,t.baseRenderer=a,r(85639);var n=r(85180),s=r(42663);const o=t.RENDERER_TYPE="base",i="htTextEllipsis";function a(e,t,r,o,a,l,h){const u=h.ariaTags,c=[],d=[],p=[],g=[];h.className&&(0,n.addClass)(t,h.className),h.readOnly?(c.push(h.readOnlyCellClassName),u&&g.push((0,s.A11Y_READONLY)())):u&&p.push((0,s.A11Y_READONLY)()[0]),!1===h.valid&&h.invalidCellClassName?(c.push(h.invalidCellClassName),u&&g.push((0,s.A11Y_INVALID)())):(d.push(h.invalidCellClassName),u&&p.push((0,s.A11Y_INVALID)()[0])),!1===h.wordWrap&&h.noWordWrapClassName&&c.push(h.noWordWrapClassName),!l&&h.placeholder&&c.push(h.placeholderCellClassName),h.textEllipsis&&c.push(i),(0,n.removeClass)(t,d),(0,n.addClass)(t,c),(0,n.removeAttribute)(t,p),(0,n.setAttribute)(t,g)}a.RENDERER_TYPE=o},92916:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionUp",callback(e){let{selection:t}=e;t.markSource("keyboard"),t.transformStart(-1,0),t.markEndSource()}}},93049:(e,t,r)=>{"use strict";t.__esModule=!0,t.getMoves=function(e,t,r){return function(e){return e.forEach((t,r)=>{e.slice(r+1).forEach(e=>{const r=e.from<e.to;e.from>t.from&&r&&(e.from-=1)})}),e}(function(e,t){const r=[];return e.forEach(e=>{const n={from:e,to:t};r.forEach(e=>{const t=e.from>e.to,r=e.to<=n.from;e.from>n.from&&r&&t&&(n.from+=1)}),n.from>=t&&(t+=1),r.push(n)}),r}(e,function(e,t,r){const n=Array.from(Array(r).keys()).filter(t=>!1===e.includes(t));var s;return 0===t?null!==(s=n[t])&&void 0!==s?s:0:n[t-1]+1}(e,t,r)))},r(85639),r(73741),r(7307),r(69326)},93295:(e,t,r)=>{"use strict";var n=r(10028),s=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var r=n("Set");try{(new r)[e](s(0));try{return(new r)[e](s(-1)),!1}catch(n){if(!t)return!0;try{return(new r)[e](o(-1/0)),!1}catch(n){var i=new r;return i.add(1),i.add(2),t(i[e](o(1/0)))}}}catch(e){return!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":6779,"./tzm-latn":51784,"./tzm-latn.js":51784,"./tzm.js":6779,"./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=o(e);return r(t)}function o(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=o,e.exports=s,s.id=93398},93546:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(32633);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.MergeCells=n.MergeCells},93572:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){return{key:"unfreeze_column",name(){return this.getTranslatedPhrase(n.CONTEXTMENU_ITEMS_UNFREEZE_COLUMN)},callback(t,r){const[{start:{col:n}}]=r;e.unfreezeColumn(n),this.render(),this.view.adjustElementsSize()},hidden(){const e=this.getSelectedRange();let t=!1;return(void 0===e||e.length>1||e[0].from.col!==e[0].to.col||e[0].from.col>=this.getSettings().fixedColumnsStart)&&(t=!0),t}}};var 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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},93595:(e,t,r)=>{"use strict";var n=r(21313),s=r(14499),o=r(90911),i=r(30845),a=r(18622),l=r(98304),h=r(78016),u=s.has,c=s.remove;e.exports=function(e){var t=n(this),r=a(e),s=o(t);return i(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}},93629:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=r(8226);t.ViewportColumnsCalculator=s.ViewportColumnsCalculator,t.ViewportRowsCalculator=s.ViewportRowsCalculator,t.DEFAULT_COLUMN_WIDTH=s.DEFAULT_COLUMN_WIDTH;var o=n(r(35418));t.CellCoords=o.default;var i=n(r(99423));t.CellRange=i.default;var a=n(r(8665));t.default=a.default,t.Core=a.default;var l=r(46512);t.Selection=l.Selection,t.HIGHLIGHT_ACTIVE_HEADER_TYPE=l.ACTIVE_HEADER_TYPE,t.HIGHLIGHT_AREA_TYPE=l.AREA_TYPE,t.HIGHLIGHT_FOCUS_TYPE=l.FOCUS_TYPE,t.HIGHLIGHT_FILL_TYPE=l.FILL_TYPE,t.HIGHLIGHT_HEADER_TYPE=l.HEADER_TYPE,t.HIGHLIGHT_ROW_TYPE=l.ROW_TYPE,t.HIGHLIGHT_COLUMN_TYPE=l.COLUMN_TYPE,t.HIGHLIGHT_CUSTOM_SELECTION_TYPE=l.CUSTOM_SELECTION_TYPE;var h=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var s,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(37269));t.Renderer=h;var u=r(15293);t.OrderView=u.OrderView,t.SharedOrderView=u.SharedOrderView;var c=r(81452);t.NodesPool=c.NodesPool;var d=r(54138);t.getListenersCounter=d.getListenersCounter},93694:(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=p,t.registerEngine=d,t.registerLanguage=g,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 p;if("function"==typeof n.hyperformula||"function"==typeof n)return d(null!==(p=n.hyperformula)&&void 0!==p?p: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,i.warn)(o.toSingleLine`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
293
293
  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(),o=s.get(e);n&&n.includes(t)&&(n.splice(n.indexOf(t),1),0===n.length&&r.delete(e)),o&&o.includes(t.guid)&&(o.splice(o.indexOf(t.guid),1),0===o.length&&(s.delete(e),e.destroy()))}},r(85639),r(73741),r(69326),r(90795);var n=r(88248),s=r(18528),o=r(54536),i=r(51278),a=r(72848),l=r(63541),h=r(86154);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),o=u(),i=c();p(e,n.functions),g(e,n.language);const a=e.buildEmpty(s);return o.set(a,[r]),i.set(a,[r.guid]),f(a,n.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function p(e,t){t&&t.forEach(t=>{const{name:r,plugin:n,translations:s}=t;try{e.registerFunction(r,n,s)}catch(e){(0,i.warn)(e.message)}})}function g(e,t){if(t){const{langCode:r}=t;try{e.registerLanguage(r,t)}catch(e){(0,i.warn)(e.message)}}}function f(e,t){t&&(e.suspendEvaluation(),t.forEach(t=>{const{name:r,expression:n,scope:s,options:o}=t;try{e.addNamedExpression(r,n,s,o)}catch(e){(0,i.warn)(e.message)}}),e.resumeEvaluation())}},93793:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"moveCellSelectionDownByViewportHeight",callback(e){const{selection:t}=e,{navigableHeaders:r}=e.getSettings(),n=r?e.countColHeaders():0,{row:s}=e.getSelectedRangeLast().highlight;let o=e.countVisibleRows()+n;o=0===o?1:o,s===e.countRows()-1?o=1:s+o>e.countRows()&&(o=e.countRows()-s-1),t.markSource("keyboard"),t.transformStart(o,0),t.markEndSource(),e.getSelectedRangeLast().highlight.row<0&&e.scrollViewportTo({row:0})}}},94096:(e,t,r)=>{"use strict";t.__esModule=!0,t.condition=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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787)),s=r(32949);const o=t.CONDITION_NAME="none";function i(){return!0}(0,s.registerCondition)(o,i,{name:n.FILTERS_CONDITIONS_NONE,inputsCount:0,showOperators:!1})},94216:()=>{},94320:(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),o=r.getNearestNotHiddenIndex(e.countRows()-s-1,-1),i=n.getNearestNotHiddenIndex(e.countCols()-1,-1);t.markSource("keyboard"),t.setRangeStart(e._createCellCoords(o,i)),t.markEndSource()}}},94420:(e,t,r)=>{"use strict";t.__esModule=!0,r(73741),r(90795);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()}},94429:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(72848),i=r(74222),a=n(r(76249));t.default=class{constructor(e){(0,s.default)(this,"metaCtor",class{}),(0,s.default)(this,"meta",void 0),this.meta=this.metaCtor.prototype,(0,o.extend)(this.meta,(0,a.default)()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var t;(0,o.extend)(this.meta,e),(0,i.extendByMetaType)(this.meta,{...e,type:null!==(t=e.type)&&void 0!==t?t:this.meta.type},e)}}},94432:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(63541);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.Formulas=n.Formulas},94481:(e,t,r)=>{"use strict";var n=r(4336),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+s(e)+" as a prototype")}},94825:(e,t,r)=>{"use strict";t.__esModule=!0,t.compareFunctionFactory=function(e,t,r){const o=t.locale;return function(t,i){const{sortEmptyCells:a}=r;return"string"==typeof t&&(t=t.toLocaleLowerCase(o)),"string"==typeof i&&(i=i.toLocaleLowerCase(o)),t===i?s.DO_NOT_SWAP:(0,n.isEmpty)(t)?(0,n.isEmpty)(i)?s.DO_NOT_SWAP:a&&"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(0,n.isEmpty)(i)?a&&"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:isNaN(t)&&!isNaN(i)?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:!isNaN(t)&&isNaN(i)?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:(isNaN(t)||isNaN(i)||(t=parseFloat(t),i=parseFloat(i)),t<i?"asc"===e?s.FIRST_BEFORE_SECOND:s.FIRST_AFTER_SECOND:t>i?"asc"===e?s.FIRST_AFTER_SECOND:s.FIRST_BEFORE_SECOND:s.DO_NOT_SWAP)}};var n=r(18528),s=r(96007);t.COLUMN_DATA_TYPE="default"},94865:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(85639);var s=n(r(53726)),o=r(85180),i=r(28627),a=r(45098);const l=t.PLUGIN_KEY="multipleSelectionHandles",h=t.PLUGIN_PRIORITY=160;class u extends a.BasePlugin{constructor(){super(...arguments),(0,s.default)(this,"dragged",[]),(0,s.default)(this,"lastSetCell",null)}static get PLUGIN_KEY(){return l}static get PLUGIN_PRIORITY(){return h}isEnabled(){return(0,i.isMobileBrowser)()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:t}=this.hot;function r(t){if(1===e.dragged.length)return e.dragged.splice(0,e.dragged.length),!0;const r=e.dragged.indexOf(t);if(-1===r)return!1;0===r?e.dragged=e.dragged.slice(0,1):1===r&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(t,"touchstart",t=>{let r;return(0,o.hasClass)(t.target,"topSelectionHandle-HitArea")?(r=e.hot.getSelectedRangeLast(),e.dragged.push("top"),e.touchStartRange={width:r.getWidth(),height:r.getHeight(),direction:r.getDirection()},t.preventDefault(),!1):(0,o.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(r=e.hot.getSelectedRangeLast(),e.dragged.push("bottom"),e.touchStartRange={width:r.getWidth(),height:r.getHeight(),direction:r.getDirection()},t.preventDefault(),!1):void 0}),this.eventManager.addEventListener(t,"touchend",t=>(0,o.hasClass)(t.target,"topSelectionHandle-HitArea")?(r.call(e,"top"),e.touchStartRange=void 0,t.preventDefault(),!1):(0,o.hasClass)(t.target,"bottomSelectionHandle-HitArea")?(r.call(e,"bottom"),e.touchStartRange=void 0,t.preventDefault(),!1):void 0),this.eventManager.addEventListener(t,"touchmove",t=>{const{rootDocument:r}=this.hot;let n,s,o,i,a,l;if(0===e.dragged.length)return;const h=r.elementFromPoint(t.touches[0].clientX,t.touches[0].clientY);h&&h!==e.lastSetCell&&("TD"!==h.nodeName&&"TH"!==h.nodeName||(n=e.hot.getCoords(h),-1===n.col&&(n.col=0),s=e.hot.getSelectedRangeLast(),o=s.getWidth(),i=s.getHeight(),a=s.getDirection(),1===o&&1===i&&e.hot.selection.setRangeEnd(n),l=e.getCurrentRangeCoords(s,n,e.touchStartRange.direction,a,e.dragged[0]),null!==l.start&&e.hot.selection.setRangeStart(l.start),e.hot.selection.setRangeEnd(l.end),e.lastSetCell=h),t.preventDefault())})}getCurrentRangeCoords(e,t,r,n,s){const o=e.getTopStartCorner(),i=e.getBottomEndCorner(),a=e.getBottomStartCorner(),l=e.getTopEndCorner();let h={start:null,end:null};switch(r){case"NE-SW":switch(n){case"NE-SW":case"NW-SE":h="top"===s?{start:this.hot._createCellCoords(t.row,e.highlight.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,o.col)};break;case"SE-NW":"bottom"===s&&(h={start:this.hot._createCellCoords(i.row,t.col),end:this.hot._createCellCoords(t.row,o.col)})}break;case"NW-SE":switch(n){case"NE-SW":"top"===s?h={start:t,end:a}:h.end=t;break;case"NW-SE":"top"===s?h={start:t,end:i}:h.end=t;break;case"SE-NW":"top"===s?h={start:t,end:o}:h.end=t;break;case"SW-NE":"top"===s?h={start:t,end:l}:h.end=t}break;case"SW-NE":switch(n){case"NW-SE":h="bottom"===s?{start:this.hot._createCellCoords(t.row,o.col),end:this.hot._createCellCoords(a.row,t.col)}:{start:this.hot._createCellCoords(o.row,t.col),end:this.hot._createCellCoords(t.row,i.col)};break;case"SW-NE":h="top"===s?{start:this.hot._createCellCoords(e.highlight.row,t.col),end:this.hot._createCellCoords(t.row,i.col)}:{start:this.hot._createCellCoords(t.row,o.col),end:this.hot._createCellCoords(o.row,t.col)};break;case"SE-NW":"bottom"===s?h={start:this.hot._createCellCoords(t.row,l.col),end:this.hot._createCellCoords(o.row,t.col)}:"top"===s&&(h={start:a,end:t})}break;case"SE-NW":switch(n){case"NW-SE":case"NE-SW":case"SW-NE":"top"===s&&(h.end=t);break;case"SE-NW":"top"===s?h.end=t:h={start:t,end:o}}}return h}isDragged(){return this.dragged.length>0}}t.MultipleSelectionHandles=u},94911:()=>{},95023:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(28275),i=r(72848),a=n(r(39143));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,o.debounce)(e=>{this.wasLastActionShow&&this.runLocalHooks("show",e.from.row,e.from.col)},e)}destroy(){this.clearLocalHooks()}}(0,i.mixin)(l,a.default);t.default=l},95081:()=>{},95094:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(77025),i=r(1040),a=r(79382),l=r(74820),h=r(20988),u=n(r(54138)),c=r(39738),d=r(28627),p=r(85180),g=r(10100),f=r(28275),m=r(18528),E=r(72848),w=n(r(39143)),y=r(19246),C=r(42663);function R(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 S(e,t,r){return e.set(T(e,t),r),r}function v(e,t){return e.get(T(e,t))}function T(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 N=new WeakMap,M=new WeakMap,_=new WeakMap;class b{get tableBorderWidth(){return void 0===v(_,this)&&this.hotMenu&&S(_,this,parseInt(this.hotMenu.rootWindow.getComputedStyle(this.hotMenu.view._wt.wtTable.TABLE).borderWidth,10)),v(_,this)}constructor(e,t){var r=this;(0,s.default)(this,"hot",void 0),(0,s.default)(this,"options",void 0),(0,s.default)(this,"eventManager",new u.default(this)),(0,s.default)(this,"container",void 0),(0,s.default)(this,"positioner",void 0),(0,s.default)(this,"hotMenu",null),(0,s.default)(this,"hotSubMenus",{}),(0,s.default)(this,"parentMenu",void 0),(0,s.default)(this,"menuItems",null),(0,s.default)(this,"origOutsideClickDeselects",null),R(this,N,void 0),R(this,M,void 0),R(this,_,void 0),this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1,minWidth:215,container:this.hot.rootPortalElement},this.container=this.createContainer(this.options.name),this.positioner=new o.Positioner(this.options.keepInViewport),this.parentMenu=this.options.parent||null,this.registerEvents(),this.isSubMenu()&&this.addLocalHook("afterSelectionChange",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.parentMenu.runLocalHooks("afterSelectionChange",...t)}),this.hot.addHook("afterSetTheme",(e,t)=>{this.options.container!==this.hot.rootPortalElement&&((0,p.removeClass)(this.options.container,/ht-theme-.*/g),(0,p.addClass)(this.options.container,e)),t||this.close()})}registerEvents(){let e=this.hot.rootWindow;for(;e;)this.eventManager.addEventListener(e.document,"mousedown",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"touchstart",e=>this.onDocumentMouseDown(e)),this.eventManager.addEventListener(e.document,"contextmenu",e=>this.onDocumentContextMenu(e)),e=(0,p.getParentWindow)(e)}setMenuItems(e){this.menuItems=e}getNavigator(){return v(N,this)}getKeyboardShortcutsCtrl(){return v(M,this)}getSelectedItem(){return this.hasSelectedItem()?this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelectedLast()[0]):null}hasSelectedItem(){return Array.isArray(this.hotMenu.getSelectedLast())}isSubMenu(){return null!==this.parentMenu}open(){this.runLocalHooks("beforeOpen"),this.container.removeAttribute("style"),this.container.style.display="block";const e=(0,f.debounce)(e=>this.openSubMenu(e),300),t=this.options.minWidth||215;let r=!1,n=(0,c.arrayFilter)(this.menuItems,e=>(e.key===l.NO_ITEMS&&(r=!0),(0,h.isItemHidden)(e,this.hot)));if(n.length<1&&!r)n.push((0,l.predefinedItems)()[l.NO_ITEMS]);else if(0===n.length)return;n=(0,h.filterSeparators)(n,l.SEPARATOR);let s=!1;const o={data:n,colHeaders:!1,autoColumnSize:!0,autoWrapRow:!1,modifyColWidth:e=>(0,m.isDefined)(e)&&e<t?t:e,autoRowSize:!1,readOnly:!0,editor:!1,copyPaste:!1,hiddenRows:!0,maxCols:1,columns:[{data:"name",renderer:(0,y.createMenuItemRenderer)(this.hot)}],renderAllRows:!0,fragmentSelection:!1,outsideClickDeselects:!1,disableVisualSelection:"area",layoutDirection:this.hot.isRtl()?"rtl":"ltr",ariaTags:!1,themeName:this.hot.getCurrentThemeName(),beforeRefreshDimensions:()=>!1,beforeOnCellMouseOver:(e,t)=>{this.hotMenu.stylesHandler.isClassicTheme()?v(N,this).setCurrentPage(t.row):v(N,this).setPageCursorAt(t.row)},afterOnCellMouseOver:(t,r)=>{this.isAllSubMenusClosed()?e(r.row):this.openSubMenu(r.row)},afterOnCellContextMenu:e=>{e.preventDefault(),(0,d.isWindowsOS)()&&s&&this.hasSelectedItem()&&this.close(!0)},afterSelection:(e,t,r,n,s)=>{this.hotMenu.view.isMouseDown()&&(s.value=!0),this.runLocalHooks("afterSelectionChange",this.getSelectedItem())},beforeOnCellMouseUp:e=>{this.hasSelectedItem()&&(s=!this.isCommandPassive(this.getSelectedItem()),this.executeCommand(e))},afterOnCellMouseUp:e=>{(0,d.isWindowsOS)()&&(0,g.isRightClick)(e)||!s||!this.hasSelectedItem()||((0,d.isMobileBrowser)()||(0,d.isIpadOS)()?this.hot._registerTimeout(()=>this.close(!0),325):this.close(!0))},afterUnlisten:()=>{!this.hasSelectedItem()&&this.isOpened()&&this.hotMenu.listen()}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new this.hot.constructor(this.container,o),this.hotMenu.addHook("afterInit",()=>this.onAfterInit()),this.hotMenu.init(),S(N,this,(0,i.createMenuNavigator)(this.hotMenu)),S(M,this,(0,a.createKeyboardShortcutsCtrl)(this)),v(M,this).listen(),this.focus(),this.isSubMenu()&&this.addLocalHook("afterOpen",()=>this.parentMenu.runLocalHooks("afterSubmenuOpen",this)),this.runLocalHooks("afterOpen",this)}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isOpened())if(e&&this.isSubMenu())this.parentMenu.close();else if(v(N,this).clear(),this.closeAllSubMenus(),this.container.style.display="none",this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose"),this.isSubMenu()){if(this.hot.getSettings().ariaTags){const e=this.parentMenu.hotMenu.getSelectedLast();if(e){const t=this.parentMenu.hotMenu.getCell(e[0],0);(0,p.setAttribute)(t,[(0,C.A11Y_EXPANDED)(!1)])}}this.parentMenu.hotMenu.listen()}}openSubMenu(e){if(!this.hotMenu)return!1;const t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!(0,h.hasSubMenu)(t))return!1;const r=this.hotMenu.getSourceDataAtRow(e),n=new b(this.hot,{parent:this,name:r.name,className:this.options.className,keepInViewport:!0,container:this.options.container});return n.setMenuItems(r.submenu.items),n.open(),n.setPosition(t.getBoundingClientRect()),this.hotSubMenus[r.key]=n,this.hot.getSettings().ariaTags&&(0,p.setAttribute)(t,[(0,C.A11Y_EXPANDED)(!0)]),n}closeSubMenu(e){const t=this.hotMenu.getSourceDataAtRow(e),r=this.hotSubMenus[t.key];if(r){r.destroy(),delete this.hotSubMenus[t.key];const n=this.hotMenu.getCell(e,0);this.hot.getSettings().ariaTags&&(0,p.setAttribute)(n,[(0,C.A11Y_EXPANDED)(!1)])}}closeAllSubMenus(){(0,c.arrayEach)(this.hotMenu.getData(),(e,t)=>this.closeSubMenu(t))}isAllSubMenusClosed(){return 0===Object.keys(this.hotSubMenus).length}focus(){this.isOpened()&&(this.hotMenu.rootElement.focus({preventScroll:!0}),this.getKeyboardShortcutsCtrl().listen(),this.hotMenu.listen())}destroy(){const e=this.container.parentNode;this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy(),e&&e.removeChild(this.container)}isOpened(){return null!==this.hotMenu}executeCommand(e){if(!this.isOpened()||!this.hasSelectedItem())return;const t=this.getSelectedItem();if(this.runLocalHooks("select",t,e),this.isCommandPassive(t))return;const r=this.hot.getSelectedRange(),n=r?(0,h.normalizeSelection)(r):[];this.runLocalHooks("executeCommand",t.key,n,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,n,e)}isCommandPassive(e){return!1===e.isCommand||(0,h.isItemSeparator)(e)||(0,h.isItemDisabled)(e,this.hot)||(0,h.isItemSubMenu)(e)}setOffset(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.positioner.setOffset(e,t)}setPosition(e){this.isSubMenu()&&this.positioner.setParentElement(this.parentMenu.container),this.positioner.setElement(this.container).updatePosition(e)}updateMenuDimensions(){const{wtTable:e}=this.hotMenu.view._wt,t=this.hotMenu.getSettings().data,r=e.hider.style,n=e.holder.style,s=parseInt(r.width,10),o=(0,c.arrayReduce)(t,(e,t,r)=>{const n=this.hotMenu.getCell(r,0)?(0,p.outerHeight)(this.hotMenu.getCell(r,0)):0;return e+(t.name===l.SEPARATOR?1:n)},0);this.hotMenu.stylesHandler.isClassicTheme()?(n.width=`${s+3}px`,n.height=`${o+3}px`):(n.width=`${s}px`,n.height=`${o}px`),r.height=n.height}createContainer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.options.container.ownerDocument;let r,n=e;return n&&((0,f.isFunction)(n)&&(n=n.call(this.hot),n=null===n||(0,m.isUndefined)(n)?"":n.toString()),n=n.replace(/[^A-Za-z0-9]/g,"_"),n=`${this.options.className}Sub_${n}`,r=t.querySelector(`.${this.options.className}.${n}`)),r||(r=t.createElement("div"),(0,p.addClass)(r,`htMenu handsontable ${this.options.className}`),n&&(0,p.addClass)(r,n),this.options.container.appendChild(r)),r}onAfterInit(){this.updateMenuDimensions(),this.hot.getSettings().ariaTags&&(0,p.setAttribute)(this.hotMenu.rootElement,[(0,C.A11Y_MENU)(),(0,C.A11Y_TABINDEX)(-1)])}onDocumentMouseDown(e){this.isOpened()&&(this.options.standalone&&this.hotMenu&&!(0,p.isChildOf)(e.target,this.hotMenu.rootElement)?this.close(!0):!this.isAllSubMenusClosed()&&!this.isSubMenu()||(0,p.isChildOf)(e.target,".htMenu")||this.close(!0))}onDocumentContextMenu(e){this.isOpened()&&(0,p.hasClass)(e.target,"htCore")&&(0,p.isChildOf)(e.target,this.hotMenu.rootElement)&&e.preventDefault()}}t.Menu=b,(0,E.mixin)(b,w.default)},95164:(e,t,r)=>{"use strict";t.__esModule=!0,t.default=function(e){const t="undefined"!=typeof window&&window.jQuery;if(!t)return;t.fn.handsontable=function(t){const r=this.first();let n,s=r.data("handsontable");if("string"!=typeof t){const n=t||{};return s?s.updateSettings(n):(s=new e.Core(r[0],n),r.data("handsontable",s),s.init()),r}if(s){if(void 0===s[t])throw new Error(`Handsontable do not provide action: ${t}`);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];n=s[t].call(s,...i),"destroy"===t&&r.removeData()}return n}},r(88443)},95428:(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.getSelectedRangeLast().forAll((t,r)=>{t>=0&&r>=0&&e.removeCommentAtCell(t,r,!1)}),this.render()},disabled(){const e=this.getSelectedRangeLast();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,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(s=t?n:r){if(s.has(e))return s.get(e);s.set(e,i)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?s(i,t,o):i[t]=e[t]);return i}(e,t)}(r(55787))},95445:(e,t,r)=>{"use strict";var n=r(69243),s=r(60370).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},95537:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.createHighlight=function(e){let{rowClassName:t,...r}=e;return new o.default({className:t,...r,selectionType:s.HIGHLIGHT_ROW_TYPE})};var s=r(93629),o=n(r(13301))},95609:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(16178),r(90795);var s=r(45098),o=r(85180),i=r(35782),a=r(39738),l=r(74820),h=r(15886),u=n(r(87058)),c=n(r(41597)),d=r(10530);function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(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("beforeHideRows"),h.Hooks.getSingleton().register("afterHideRows"),h.Hooks.getSingleton().register("beforeUnhideRows"),h.Hooks.getSingleton().register("afterUnhideRows");const E=t.PLUGIN_KEY="hiddenRows",w=t.PLUGIN_PRIORITY=320;var y=new WeakMap,C=new WeakSet;class R extends s.BasePlugin{constructor(){var e,t;super(...arguments),p(e=this,t=C),t.add(e),function(e,t,r){p(e,t),t.set(e,r)}(this,y,null)}static get PLUGIN_KEY(){return E}static get PLUGIN_PRIORITY(){return w}static get DEFAULT_SETTINGS(){return{copyPasteEnabled:!0,indicators:!1,rows:[]}}isEnabled(){return!!this.hot.getSettings()[E]}enablePlugin(){var e=this;this.enabled||(f(y,this,new d.HidingMap),g(y,this).addLocalHook("init",()=>m(C,this,_).call(this)),this.hot.rowIndexMapper.registerMap(this.pluginName,g(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,M).call(e,...r)}),this.addHook("afterGetCellMeta",(e,t,r)=>m(C,this,v).call(this,e,t,r)),this.addHook("modifyRowHeight",(e,t)=>m(C,this,S).call(this,e,t)),this.addHook("afterGetRowHeader",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.rowIndexMapper.unregisterMap(this.pluginName),this.resetCellsMeta()}showRows(e){const t=this.getHiddenRows(),r=this.isValidConfig(e);let n=t;const s=g(y,this).getValues().slice(),o=e.length>0;if(r&&o){const t=e.map(e=>this.hot.toPhysicalRow(e));(0,a.arrayEach)(t,e=>{s[e]=!1}),n=(0,a.arrayReduce)(s,(e,t,r)=>(t&&e.push(this.hot.toVisualRow(r)),e),[])}!1!==this.hot.runHooks("beforeUnhideRows",t,n,r&&o)&&(r&&o&&g(y,this).setValues(s),this.hot.runHooks("afterUnhideRows",t,n,r&&o,r&&n.length<t.length))}showRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.showRows(t)}hideRows(e){const t=this.getHiddenRows(),r=this.isValidConfig(e);let n=t;r&&(n=Array.from(new Set(t.concat(e))));!1!==this.hot.runHooks("beforeHideRows",t,n,r)&&(r&&this.hot.batchExecution(()=>{(0,a.arrayEach)(e,e=>{g(y,this).setValueAtIndex(this.hot.toPhysicalRow(e),!0)})},!0),this.hot.runHooks("afterHideRows",t,n,r,r&&n.length>t.length))}hideRow(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.hideRows(t)}getHiddenRows(){return(0,a.arrayMap)(g(y,this).getHiddenIndexes(),e=>this.hot.toVisualRow(e))}isHidden(e){return g(y,this).getValueAtIndex(this.hot.toPhysicalRow(e))||!1}isValidConfig(e){const t=this.hot.countRows();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.skipRowOnPaste=!1})}destroy(){f(y,this,null),super.destroy()}}function S(e,t){return this.isHidden(t)?0:e}function v(e,t,r){if(!1===this.getSetting("copyPasteEnabled")&&this.isHidden(e)&&(r.skipRowOnPaste=!0),this.isHidden(e-1))r.className=r.className||"",-1===r.className.indexOf("afterHiddenRow")&&(r.className+=" afterHiddenRow");else if(r.className){const e=r.className.split(" ");if(e.length>0){const t=e.indexOf("afterHiddenRow");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,i.rangeEach)(e.startRow,e.endRow,s=>{this.isHidden(s)?(t||r(n,s-1,e.startCol,e.endCol),t=!0):(t&&(n=s),s===e.endRow&&r(n,s,e.startCol,e.endCol),t=!1)})}),t}function N(e,t){if(!this.getSetting("indicators")||e<0)return;const r=[];e>=1&&this.isHidden(e-1)&&r.push("afterHiddenRow"),e<this.hot.countRows()-1&&this.isHidden(e+1)&&r.push("beforeHiddenRow"),(0,o.addClass)(t,r)}function M(e){e.items.push({name:l.SEPARATOR},(0,u.default)(this),(0,c.default)(this))}function _(){const e=this.getSetting("rows");Array.isArray(e)&&this.hideRows(e)}t.HiddenRows=R},95632:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(85180),i=n(r(54138)),a=r(10100),l=n(r(93629)),h=r(46319),u=r(56484),c=r(88248),d=r(42663);function p(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 f(e,t){return e.get(E(e,t))}function m(e,t,r){return e.set(E(e,t),r),r}function E(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var w=new WeakMap,y=new WeakMap,C=new WeakMap,R=new WeakMap,S=new WeakMap,v=new WeakMap,T=new WeakMap,N=new WeakMap,M=new WeakSet;function _(){return parseInt(this.hot.rootElement.getAttribute((0,d.A11Y_COLCOUNT)()[0]),10)}function b(e){const t=E(M,this,_).call(this)+e;(0,o.setAttribute)(this.hot.rootElement,...(0,d.A11Y_COLCOUNT)(t))}function A(){const e=this.hot.rootElement;this.hasVerticalScroll()?(0,o.addClass)(e,"htHasScrollY"):(0,o.removeClass)(e,"htHasScrollY"),this.hasHorizontalScroll()?(0,o.addClass)(e,"htHasScrollX"):(0,o.removeClass)(e,"htHasScrollX")}t.default=class{constructor(e){var t,r;g(t=this,r=M),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),p(this,w,0),p(this,y,0),(0,s.default)(this,"postponedAdjustElementsSize",!1),p(this,C,!1),p(this,R,void 0),p(this,S,void 0),p(this,v,0),p(this,T,0),p(this,N,null),this.hot=e,this.eventManager=new i.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.postponedAdjustElementsSize&&(this.postponedAdjustElementsSize=!1,this.adjustElementsSize()),this._wt.draw(!e),E(M,this,A).call(this),this.hot.runHooks("afterRender",e),this.hot.forceFullRender=!1}}adjustElementsSize(){this.hot.isRenderSuspended()?this.postponedAdjustElementsSize=!0:this._wt.wtOverlays.adjustElementsSize()}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,o.addClass)(e,"handsontable"),m(S,this,t.createElement("TABLE")),(0,o.addClass)(f(S,this),"htCore"),this.hot.getSettings().tableClassName&&(0,o.addClass)(f(S,this),this.hot.getSettings().tableClassName),this.settings.ariaTags&&((0,o.setAttribute)(f(S,this),[(0,d.A11Y_PRESENTATION)()]),(0,o.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{rootElement:e,rootDocument:t,selection:r,rootWindow:n}=this.hot,s=t.documentElement;this.eventManager.addEventListener(e,"mousedown",e=>{m(C,this,!0),this.isTextSelectionAllowed(e.target)||((0,o.clearTextSelection)(n),e.preventDefault(),n.focus())}),this.eventManager.addEventListener(e,"mouseup",()=>{m(C,this,!1)}),this.eventManager.addEventListener(e,"mousemove",e=>{f(C,this)&&!this.isTextSelectionAllowed(e.target)&&(this.settings.fragmentSelection&&(0,o.clearTextSelection)(n),e.preventDefault())}),this.eventManager.addEventListener(s,"keyup",e=>{r.isInProgress()&&!e.shiftKey&&r.finish()}),this.eventManager.addEventListener(s,"mouseup",n=>{r.isInProgress()&&(0,a.isLeftClick)(n)&&r.finish(),m(R,this,!1);const s=(0,o.isOutsideInput)(t.activeElement);(0,o.isInput)(t.activeElement)&&!s||!s&&(r.isSelected()||r.isSelectedByAnyHeader()||e.contains(n.target)||(0,a.isRightClick)(n))||this.hot.unlisten()}),this.eventManager.addEventListener(s,"contextmenu",e=>{r.isInProgress()&&(0,a.isRightClick)(e)&&(r.finish(),m(R,this,!1))}),this.eventManager.addEventListener(s,"touchend",()=>{r.isInProgress()&&r.finish(),m(R,this,!1)}),this.eventManager.addEventListener(s,"mousedown",r=>{const n=r.target,i=r.x||r.clientX,a=r.y||r.clientY;let l=r.target;if(f(R,this)||!e||!this.hot.view)return;const{holder:h}=this._wt.wtTable;if(l===h){const e=(0,o.getScrollbarWidth)(t);if(t.elementFromPoint(i+e,a)!==h||t.elementFromPoint(i,a+e)!==h)return}else for(;l!==s;){if(null===l){if(r.isTargetWebComponent)break;return}if(l===e)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 i=(0,o.getParentWindow)(n);for(;null!==i;)this.eventManager.addEventListener(i.document.documentElement,"click",()=>{this.hot.unlisten()}),i=(0,o.getParentWindow)(i);this.eventManager.addEventListener(f(S,this),"selectstart",e=>{this.settings.fragmentSelection||(0,o.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),o=r.getRenderableFromVisualIndex(s);if(!Number.isInteger(o))return 0;let i=0;return t<0?i=o+1:t>0&&(i=n-o),i}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,o.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,o.removeClass)(r,e)}isMainTableNotFullyCoveredByOverlays(){const e=this.countNotHiddenFixedRowsTop()+this.countNotHiddenFixedRowsBottom(),t=this.countNotHiddenFixedColumnsStart();return this.hot.countRenderedRows()>e&&this.hot.countRenderedCols()>t}initializeWalkontable(){const e={ariaTags:this.settings.ariaTags,rtlMode:this.hot.isRtl(),externalRowCalculator:this.hot.getPlugin("autoRowSize")&&this.hot.getPlugin("autoRowSize").isEnabled(),table:f(S,this),isDataViewInstance:()=>(0,u.isRootInstance)(this.hot),preventOverflow:()=>this.settings.preventOverflow,preventWheel:()=>this.settings.preventWheel,viewportColumnRenderingThreshold:()=>this.settings.viewportColumnRenderingThreshold,viewportRowRenderingThreshold:()=>this.settings.viewportRowRenderingThreshold,data:(e,t)=>this.hot.getDataAtCell(...this.translateFromRenderableToVisualIndex(e,t)),totalRows:()=>this.countRenderableRows(),totalColumns:()=>this.countRenderableColumns(),fixedColumnsStart:()=>this.countNotHiddenFixedColumnsStart(),fixedRowsTop:()=>this.countNotHiddenFixedRowsTop(),fixedRowsBottom:()=>this.countNotHiddenFixedRowsBottom(),shouldRenderInlineStartOverlay:()=>this.settings.fixedColumnsStart>0||e.rowHeaders().length>0,shouldRenderTopOverlay:()=>this.settings.fixedRowsTop>0||e.columnHeaders().length>0,shouldRenderBottomOverlay:()=>this.settings.fixedRowsBottom>0,minSpareRows:()=>this.settings.minSpareRows,renderAllRows:this.settings.renderAllRows,renderAllColumns:this.settings.renderAllColumns,rowHeaders:()=>{const e=[];return this.hot.hasRowHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.rowIndexMapper.getVisualFromRenderableIndex(e):e;this.appendRowHeader(r,t)}),this.hot.runHooks("afterGetRowHeaderRenderers",e),m(y,this,e.length),this.hot.getSettings().ariaTags&&E(M,this,_).call(this)===this.hot.countCols()&&E(M,this,b).call(this,f(y,this)),e},columnHeaders:()=>{const e=[];return this.hot.hasColHeaders()&&e.push((e,t)=>{const r=e>=0?this.hot.columnIndexMapper.getVisualFromRenderableIndex(e):e;this.appendColHeader(r,t)}),this.hot.runHooks("afterGetColumnHeaderRenderers",e),m(w,this,e.length),e},columnWidth:e=>{const t=this.hot.columnIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getColWidth(null===t?e:t)},rowHeight:e=>{const t=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e);return this.hot.getRowHeight(null===t?e:t)},rowHeightByOverlayName:(e,t)=>{const r=this.hot.rowIndexMapper.getVisualFromRenderableIndex(e),n=null===r?e:r;return this.hot.runHooks("modifyRowHeightByOverlayName",this.hot.getRowHeight(n),n,t)},cellRenderer:(e,t,r)=>{const[n,s]=this.translateFromRenderableToVisualIndex(e,t),o=this.hot.runHooks("modifyGetCellCoords",n,s,!1,"meta");let i=n,a=s;Array.isArray(o)&&([i,a]=o);const l=this.hot.getCellMeta(i,a),h=this.hot.colToProp(a);let u=this.hot.getDataAtRowProp(i,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,o.isVisible)(this.hot.rootElement)&&this.hot.refreshDimensions()},onCellMouseDown:(e,t,r,n)=>{const s=this.translateFromRenderableToVisualCoords(t),o={row:!1,column:!1,cell:!1};this.hot.listen(),this.activeWt=n,m(R,this,!0),m(N,this,{x:e.clientX,y:e.clientY}),this.hot.runHooks("beforeOnCellMouseDown",e,s,r,o),(0,a.isImmediatePropagationStopped)(e)||((0,h.handleMouseEvent)(e,{coords:s,selection:this.hot.selection,controller:o,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(R,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),o={row:!1,column:!1,cell:!1};this.activeWt=n,this.hot.runHooks("beforeOnCellMouseOver",e,s,r,o),(0,a.isImmediatePropagationStopped)(e)||(!f(R,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:o,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 o=e;s||(o=n.getVisualFromRenderableIndex(e));const i=this.hot.runHooks("beforeHighlightingRowHeader",o,t,r);return s?i:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i,1))},onBeforeHighlightingColumnHeader:(e,t,r)=>{const n=this.hot.columnIndexMapper,s=e<0;let o=e;s||(o=n.getVisualFromRenderableIndex(e));const i=this.hot.runHooks("beforeHighlightingColumnHeader",o,t,r);return s?i:n.getRenderableFromVisualIndex(n.getNearestNotHiddenIndex(i,1))},onAfterDrawSelection:(e,t,r)=>{let n;const[s,o]=this.translateFromRenderableToVisualIndex(e,t),i=this.hot.selection.getSelectedRange();if(i.size()>0){const e=i.peekByIndex(null!=r?r:0);n=[e.from.row,e.from.col,e.to.row,e.to.col]}return this.hot.runHooks("afterDrawSelection",s,o,n,r)},onBeforeDrawBorders:(e,t)=>{const[r,n,s,o]=e,i=[this.hot.rowIndexMapper.getVisualFromRenderableIndex(r),this.hot.columnIndexMapper.getVisualFromRenderableIndex(n),this.hot.rowIndexMapper.getVisualFromRenderableIndex(s),this.hot.columnIndexMapper.getVisualFromRenderableIndex(o)];return this.hot.runHooks("beforeDrawBorders",i,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,o=this.hot.columnIndexMapper,i=t>=0?o.getVisualFromRenderableIndex(t):t,a=e>=0?s.getVisualFromRenderableIndex(e):e,l=this.hot.runHooks("modifyGetCellCoords",a,i,r,n);if(Array.isArray(l)){const[e,t,r,n]=l;return[e>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(e,1)):e,t>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(t,1)):t,r>=0?s.getRenderableFromVisualIndex(s.getNearestNotHiddenIndex(r,-1)):r,n>=0?o.getRenderableFromVisualIndex(o.getNearestNotHiddenIndex(n,-1)):n]}},onModifyGetCoordsElement:(e,t)=>{const r=this.hot.rowIndexMapper,n=this.hot.columnIndexMapper,s=t>=0?n.getVisualFromRenderableIndex(t):t,o=e>=0?r.getVisualFromRenderableIndex(e):e,i=this.hot.runHooks("modifyGetCoordsElement",o,s);if(Array.isArray(i)){const[e,t]=i;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){if((0,o.isInput)(e))return!0;const t=(0,o.isChildOf)(e,this._wt.wtTable.spreader);return!(!0!==this.settings.fragmentSelection||!t)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))}isMouseDown(){return f(R,this)}isSelectedOnlyCell(){var e,t;return null!==(e=null===(t=this.hot.getSelectedRangeLast())||void 0===t?void 0:t.isSingleCell())&&void 0!==e&&e}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,o.hasClass)(r,"relative"))return(0,o.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"),o=r.createElement("span");s.className="relative",o.className="rowHeader",this.updateCellHeader(o,e,n),s.appendChild(o),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 i=t.firstChild;(0,o.hasClass)(i,"relative")?(this.updateCellHeader(i.querySelector(".colHeader"),e,r,n),i.className="",(0,o.addClass)(i,["relative",...s()])):((0,o.empty)(t),this.appendColHeader(e,t,r,n))}else{const{rootDocument:i}=this.hot,a=i.createElement("div"),l=i.createElement("span"),h=s();a.classList.add("relative",...h),l.className="colHeader",this.settings.ariaTags&&((0,o.setAttribute)(a,...(0,d.A11Y_PRESENTATION)()),(0,o.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 i=this._wt.wtOverlays.getParentOverlay(e)||this._wt;e.parentNode&&((0,o.hasClass)(e,"colHeader")?s=i.wtTable.columnFilter.sourceToRendered(t):(0,o.hasClass)(e,"rowHeader")&&(s=i.wtTable.rowFilter.sourceToRendered(t))),s>-1?(0,o.fastInnerHTML)(e,r(t,n)):((0,o.fastInnerText)(e,String.fromCharCode(160)),(0,o.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(v,this,e),m(T,this,t)}getLastSize(){return{width:f(v,this),height:f(T,this)}}getFirstRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleRow(){if(!this._wt.wtViewport.rowsRenderCalculator)return null;const e=this.hot.rowIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedRow());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countRows()-1,-1)}getFirstRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getFirstRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:0,1)}getLastRenderedVisibleColumn(){if(!this._wt.wtViewport.columnsRenderCalculator)return null;const e=this.hot.columnIndexMapper,t=e.getVisualFromRenderableIndex(this._wt.wtTable.getLastRenderedColumn());return e.getNearestNotHiddenIndex(null!=t?t:this.hot.countCols()-1,-1)}getFirstFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleRow())}getLastFullyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleRow())}getFirstFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstVisibleColumn())}getLastFullyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastVisibleColumn())}getFirstPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleRow())}getLastPartiallyVisibleRow(){return this.hot.rowIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleRow())}getFirstPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getFirstPartiallyVisibleColumn())}getLastPartiallyVisibleColumn(){return this.hot.columnIndexMapper.getVisualFromRenderableIndex(this._wt.wtScroll.getLastPartiallyVisibleColumn())}getColumnHeadersCount(){return f(w,this)}getRowHeadersCount(){return f(y,this)}getViewportWidth(){return this._wt.wtViewport.getViewportWidth()}getWorkspaceWidth(){return this._wt.wtViewport.getWorkspaceWidth()}getViewportHeight(){return this._wt.wtViewport.getViewportHeight()}getWorkspaceHeight(){return this._wt.wtViewport.getWorkspaceHeight()}getElementOverlayName(e){var t;return(null!==(t=this._wt.wtOverlays.getParentOverlay(e))&&void 0!==t?t:this._wt).wtTable.name}getOverlayByName(e){return this._wt.getOverlayByName(e)}getActiveOverlayName(){return this._wt.activeOverlayName}isVisible(){return this._wt.wtTable.isVisible()}hasVerticalScroll(){return this._wt.wtViewport.hasVerticalScroll()}hasHorizontalScroll(){return this._wt.wtViewport.hasHorizontalScroll()}getTableWidth(){return this._wt.wtTable.getWidth()}getTableHeight(){return this._wt.wtTable.getHeight()}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()}}},95708:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72245);t.PLUGIN_KEY=n.PLUGIN_KEY,t.PLUGIN_PRIORITY=n.PLUGIN_PRIORITY,t.CollapsibleColumns=n.CollapsibleColumns},95881:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(69326);var s=n(r(53726)),o=r(72848),i=r(39738),a=r(76019),l=r(60532),h=r(8253),u=r(28927),c=r(44694),d=n(r(54138));function p(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(e,t){return e.get(f(e,t))}function f(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 m=new Map([["plugin",a.hasPlugin],["cell-type",l.hasCellType],["editor",h.hasEditor],["renderer",u.hasRenderer],["validator",c.hasValidator]]),E=t.defaultMainSettingSymbol=Symbol("mainSetting"),w=t.PLUGIN_KEY="base",y=[];let C=null;var R=new WeakMap,S=new WeakSet;function v(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 w}static get SETTING_KEYS(){return[this.PLUGIN_KEY]}static get DEFAULT_SETTINGS(){return{}}constructor(e){var t,r;p(t=this,r=S),r.add(t),(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),function(e,t,r){p(e,t),t.set(e,r)}(this,R,{}),(0,o.defineGetter)(this,"hot",e,{writable:!1}),C=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);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(!m.has(r))throw new Error(`Unknown plugin dependency type "${r}" was found.`);m.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("");y.push(t)}}C||(C=(0,a.getPluginsNames)()),C.indexOf(this.pluginName)>=0&&C.splice(C.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()});if(0===C.length){if(y.length>0){const e=[`${y.join("\n")}\n`,"You have to import and register them manually."].join("");throw y.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.hot.getSettings()[this.constructor.PLUGIN_KEY];if(void 0===e)return t;const r=this.constructor.DEFAULT_SETTINGS;var n,s;return(Array.isArray(t)||(0,o.isObject)(t))&&r[E]===e?Array.isArray(t)?t:null!==(n=t[e])&&void 0!==n?n:r[e]:(0,o.isObject)(t)&&null!==(s=t[e])&&void 0!==s?s:r[e]}addHook(e,t,r){g(R,this)[e]=g(R,this)[e]||[];const n=g(R,this)[e];this.hot.addHook(e,t,r),n.push(t),g(R,this)[e]=n}removeHooks(e){(0,i.arrayEach)(g(R,this)[e]||[],t=>{this.hot.removeHook(e,t)})}clearHooks(){const e=g(R,this);(0,o.objectEach)(e,(e,t)=>this.removeHooks(t)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){(0,i.arrayEach)(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const t=f(S,this,v).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&t&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;null===(e=this.eventManager)||void 0===e||e.destroy(),this.clearHooks(),(0,o.objectEach)(this,(e,t)=>{"hot"!==t&&(this[t]=null)}),delete this.t,delete this.hot}}},96007:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(21288);t.registerRootComparator=n.registerRootComparator,t.getRootComparator=n.getRootComparator,t.getCompareFunctionFactory=n.getCompareFunctionFactory;var s=r(28489);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},96012:(e,t,r)=>{"use strict";t.__esModule=!0,t.getDragDirectionAndRange=function(e,t,r){let n,s,o;t[0]===e[0]&&t[1]<e[1]?(o="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]?(o="right",n=r(t[0],e[3]+1),s=r(t[2],t[3])):t[0]<e[0]&&t[1]===e[1]?(o="up",n=r(t[0],t[1]),s=r(e[0]-1,t[3])):t[2]>e[2]&&t[1]===e[1]&&(o="down",n=r(e[2]+1,t[1]),s=r(t[2],t[3]));n&&n.normalize();s&&s.normalize();return{directionOfDrag:o,startOfDragCoords:n,endOfDragCoords:s}},t.getMappedFillHandleSetting=function(e){const t={};!0===e?(t.directions=Object.keys(o),t.autoInsertRow=!0):(0,n.isObject)(e)?((0,s.isDefined)(e.autoInsertRow)?e.direction===o.horizontal?t.autoInsertRow=!1:t.autoInsertRow=e.autoInsertRow:t.autoInsertRow=!1,(0,s.isDefined)(e.direction)?t.directions=[e.direction]:t.directions=Object.keys(o)):"string"==typeof e?(t.directions=[e],t.autoInsertRow=!0):(t.directions=[],t.autoInsertRow=!1);return t};var n=r(72848),s=r(18528);const o=t.DIRECTIONS={horizontal:"horizontal",vertical:"vertical"}},96068:e=>{"use strict";e.exports=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1!==n.size||4!==n.values().next().value}catch(e){return!1}}},96088:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},96102:(e,t,r)=>{"use strict";var n=r(25225),s=r(72119),o=r(6996),i=r(53385),a=r(13794),l=n([].push);e.exports=function(e){if(o(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var h=e[n];"string"==typeof h?l(r,h):"number"!=typeof h&&"Number"!==i(h)&&"String"!==i(h)||l(r,a(h))}var u=r.length,c=!0;return function(e,t){if(c)return c=!1,t;if(s(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},96103:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(25901)),o=r(85180);class i extends s.default{build(){super.build(),(0,o.addClass)(this._element,"ht__manualColumnMove--guideline")}}t.default=i},96135:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(72848);const s={getFirstRenderedRow(){const e=this.dataAccessObject.startRowRendered;return null===e?-1:e},getFirstVisibleRow(){const e=this.dataAccessObject.startRowVisible;return null===e?-1:e},getFirstPartiallyVisibleRow(){const e=this.dataAccessObject.startRowPartiallyVisible;return null===e?-1:e},getLastRenderedRow(){const e=this.dataAccessObject.endRowRendered;return null===e?-1:e},getLastVisibleRow(){const e=this.dataAccessObject.endRowVisible;return null===e?-1:e},getLastPartiallyVisibleRow(){const e=this.dataAccessObject.endRowPartiallyVisible;return null===e?-1:e},getRenderedRowsCount(){return this.dataAccessObject.countRowsRendered},getVisibleRowsCount(){return this.dataAccessObject.countRowsVisible},getColumnHeadersCount(){return this.dataAccessObject.columnHeaders.length}};(0,n.defineGetter)(s,"MIXIN_NAME","calculatedRows",{writable:!1,enumerable:!1});t.default=s},96440:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,t.replaceData=function(e,t,r,n){const{hotInstance:u,dataMap:c,dataSource:d,internalSource:p,source:g,metaManager:f,firstRun:m}=n,E=(0,s.toUpperCaseFirst)(p),w=u.getSettings();Array.isArray(w.dataSchema)?u.dataType="array":(0,o.isFunction)(w.dataSchema)?u.dataType="function":u.dataType="object";c&&c.destroy();e=u.runHooks(`before${E}`,e,m,g);const y=new i.default(u,e,f);if(t(y),"object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error(`${p} only accepts array of objects or array of arrays (${typeof e} given)`);{const t=y.getSchema();let r;e=[];let n=0,s=0;for(n=0,s=w.startRows;n<s;n++)if("object"!==u.dataType&&"function"!==u.dataType||!w.dataSchema)if("array"===u.dataType)r=(0,a.deepClone)(t[0]),e.push(r);else{r=[];for(let e=0,t=w.startCols;e<t;e++)r.push(null);e.push(r)}else r=(0,a.deepClone)(t),e.push(r)}}Array.isArray(e[0])&&(u.dataType="array");w.data=e,y.dataSource=e,d.data=e,d.dataType=u.dataType,d.colToProp=y.colToProp.bind(y),d.propToCol=y.propToCol.bind(y),d.countCachedColumns=y.countCachedColumns.bind(y),r(y),u.runHooks(`after${E}`,e,m,g),m||(u.runHooks("afterChange",null,p),u.render());u.getSettings().ariaTags&&(0,l.setAttribute)(u.rootElement,[(0,h.A11Y_ROWCOUNT)(-1),(0,h.A11Y_COLCOUNT)(u.countCols()+(u.view?u.countRowHeaders():0))])},r(88443),r(85639);var s=r(28222),o=r(28275),i=n(r(30946)),a=r(72848),l=r(85180),h=r(42663)},96681:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));t.default=class{constructor(e,t){(0,s.default)(this,"dataAccessObject",void 0),(0,s.default)(this,"wtSettings",void 0),(0,s.default)(this,"headerWidths",new Map),this.dataAccessObject=e,this.wtSettings=t}getWidth(e){return this.wtSettings.getSetting("columnWidth",e)||this.wtSettings.getSetting("defaultColumnWidth")}getHeaderHeight(e){let t=this.wtSettings.getSetting("stylesHandler").getDefaultRowHeight();const r=this.dataAccessObject.wtViewport.oversizedColumnHeaders[e];return void 0!==r&&(t=t?Math.max(t,r):r),t}getHeaderWidth(e){return this.headerWidths.get(this.dataAccessObject.wtTable.columnFilter.sourceToRendered(e))}calculateWidths(){const{wtSettings:e}=this;let t=e.getSetting("rowHeaderWidth");if(t=e.getSetting("onModifyRowHeaderWidth",t),null!=t){const r=e.getSetting("rowHeaders").length,n=e.getSetting("defaultColumnWidth");for(let e=0;e<r;e++){let r=Array.isArray(t)?t[e]:t;r=null==r?n:r,this.headerWidths.set(e,r)}}}}},96745:(e,t,r)=>{"use strict";var n=r(25225),s=0,o=Math.random(),i=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+i(++s+o,36)}},96891:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},96907:(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,o]=[r,n];e>t&&([s,o]=[o,s]);return`${s}-${o}`},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,o.error)(i.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(18528),s=r(72848),o=r(51278),i=r(54536)},97005:()=>{},97122:(e,t,r)=>{"use strict";var n=r(76277),s=r(11044),o=r(26213),i=r(30784),a=r(72714);n({target:"Array",proto:!0},{at:function(e){var t=s(this),r=o(t),n=i(e),a=n>=0?n:r+n;return a<0||a>=r?void 0:t[a]}}),a("at")},97127:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443);var s=n(r(82662));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 i(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,p=new WeakMap,g=new WeakMap,f=new WeakMap;t.default=class{constructor(e,t,r){o(this,h,void 0),o(this,u,void 0),o(this,c,void 0),o(this,d,!1),o(this,p,!1),o(this,g,null),o(this,f,null),a(h,this,new s.default("row",e,this)),a(u,this,new s.default("column",t,this)),a(c,this,r)}getForAxis(e){return i("row"===e?h:u,this)}setPerformUndo(e){a(d,this,e)}setPerformRedo(e){a(p,this,e)}isPerformingUndoRedo(){return i(d,this)||i(p,this)}getSheetId(){return i(f,this)}getEngine(){return i(g,this)}getPostponeAction(){return i(c,this)}setupSyncEndpoint(e,t){a(g,this,e),a(f,this,t),i(h,this).init(),i(u,this).init()}}},97210:(e,t,r)=>{"use strict";var n=r(64976),s=r(19895),o=r(29160),i=r(36697),a=r(31639),l=r(92754),h=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,l=i(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!s(r)||o(r))return r;throw new h("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},97237:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726));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(){}}},97278:()=>{},97545:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(82141);var s=r(45098),o=r(15886),i=r(39738),a=r(85180),l=r(35782),h=n(r(70076)),u=n(r(25387));function c(e,t,r){d(e,t),t.set(e,r)}function d(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(f(e,t),r),r}function g(e,t){return e.get(f(e,t))}function f(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("beforeRowMove"),o.Hooks.getSingleton().register("afterRowMove");const m=t.PLUGIN_KEY="manualRowMove",E=t.PLUGIN_PRIORITY=140,w="ht__manualRowMove",y="show-ui",C="on-moving--rows",R="after-selection--rows";var S=new WeakMap,v=new WeakMap,T=new WeakMap,N=new WeakMap,M=new WeakMap,_=new WeakMap,b=new WeakSet;class A extends s.BasePlugin{constructor(){var e,t;super(...arguments),d(e=this,t=b),t.add(e),c(this,S,new h.default(this.hot)),c(this,v,new u.default(this.hot)),c(this,T,[]),c(this,N,void 0),c(this,M,{}),c(this,_,void 0)}static get PLUGIN_KEY(){return m}static get PLUGIN_PRIORITY(){return E}isEnabled(){return!!this.hot.getSettings()[m]}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 f(b,e,I).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 f(b,e,x).call(e,...r)}),this.addHook("afterScrollHorizontally",()=>f(b,this,L).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 f(b,e,D).call(e,...r)}),this.buildPluginUI(),this.registerEvents(),(0,a.addClass)(this.hot.rootElement,w),super.enablePlugin())}updatePlugin(){this.disablePlugin(),this.enablePlugin(),this.moveBySettingsOrLoad(),super.updatePlugin()}disablePlugin(){(0,a.removeClass)(this.hot.rootElement,w),this.unregisterEvents(),g(S,this).destroy(),g(v,this).destroy(),super.disablePlugin()}moveRow(e,t){return this.moveRows([e],t)}moveRows(e,t){const r=g(_,this),n=this.isMovePossible(e,t),s=this.hot.runHooks("beforeRowMove",e,t,r,n);if(p(_,this,void 0),!1===s)return;n&&this.hot.rowIndexMapper.moveIndexes(e,t);const o=n&&this.isRowOrderChanged(e,t);return this.hot.runHooks("afterRowMove",e,t,r,n,o),o}dragRow(e,t){return this.dragRows([e],t)}dragRows(e,t){const r=this.countFinalIndex(e,t);return p(_,this,t),this.moveRows(e,r)}isMovePossible(e,t){const r=this.hot.rowIndexMapper.getNotTrimmedIndexesLength(),n=e.length+t>r,s=t<0,o=e.some(e=>e<0),i=e.some(e=>e>=r);return!(n||s||o||i)}isRowOrderChanged(e,t){return e.some((e,r)=>e-r!==t)}countFinalIndex(e,t){const r=(0,i.arrayReduce)(e,(e,r)=>(r<t&&(e+=1),e),0);return t-r}getRowsHeight(e,t){const r=this.hot.rowIndexMapper;let n=0;for(let s=e;s<=t;s++){const e=r.getRenderableFromVisualIndex(s);null!==e&&(n+=this.hot.view._wt.wtTable.getRowHeight(e)||this.hot.stylesHandler.getDefaultRowHeight())}return n}moveBySettingsOrLoad(){const e=this.hot.getSettings()[m];if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){const e=this.persistentStateLoad();e.length&&this.moveRows(e,0)}}isFixedRowTop(e){return e<this.hot.getSettings().fixedRowsTop}isFixedRowBottom(e){return e>this.hot.countRows()-1-this.hot.getSettings().fixedRowsBottom}persistentStateSave(){this.hot.runHooks("persistentStateSave","manualRowMove",this.hot.rowIndexMapper.getIndexesSequence())}persistentStateLoad(){const e={};return this.hot.runHooks("persistentStateLoad","manualRowMove",e),e.value?e.value:[]}prepareRowsToMoving(){const e=this.hot.getSelectedRangeLast(),t=[];if(!e)return t;const{from:r,to:n}=e,s=Math.min(r.row,n.row),o=Math.max(r.row,n.row);return(0,l.rangeEach)(s,o,e=>{t.push(e)}),t}refreshPositions(){const e=g(M,this).coords,t=this.hot.getFirstFullyVisibleRow(),r=this.hot.getLastFullyVisibleRow(),n=this.hot.countRows();this.isFixedRowTop(e.row)&&t>0&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(t-1,-1)),this.isFixedRowBottom(e.row)&&r<n&&this.hot.scrollViewportTo(this.hot.rowIndexMapper.getNearestNotHiddenIndex(r+1,1),void 0,!0);const s=this.hot.view._wt.wtTable,o=g(M,this).TD,i=this.hot.rootElement,l=(0,a.offset)(i),h=(0,a.getTrimmingContainer)(i),u=s.holder.scrollTop,c=this.hot.rootWindow!==h?h.scrollTop:0,d=l.top-c,p=g(M,this).eventPageY-d+u,f=s.hider.offsetHeight,m=s.TBODY.offsetTop,E=g(S,this).getOffset().top,w=g(S,this).getSize().height,y=o.offsetHeight/2,C=o.offsetHeight;let R=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,e.row-1);const T=p>=R+y;this.isFixedRowTop(e.row)&&(R+=this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()),e.row<0?g(M,this).row=t>0?t-1:t:T?(g(M,this).row=e.row+1,R+=0===e.row?C-1:C):g(M,this).row=e.row;let N=p,_=R;p+w+E>=f?N=f-w-E:p+E<m&&(N=m+Math.abs(E)),R>=f-1&&(_=f-1),g(S,this).setPosition(N),g(v,this).setPosition(_)}registerEvents(){const{documentElement:e}=this.hot.rootDocument;this.eventManager.addEventListener(e,"mousemove",e=>f(b,this,O).call(this,e)),this.eventManager.addEventListener(e,"mouseup",()=>f(b,this,P).call(this))}unregisterEvents(){this.eventManager.clear()}buildPluginUI(){g(S,this).build(),g(v,this).build()}destroy(){g(S,this).destroy(),g(v,this).destroy(),super.destroy()}}function I(e,t,r,n){const{wtTable:s,wtViewport:o}=this.hot.view._wt,i=this.hot.selection.isSelectedByRowHeader(),l=this.hot.getSelectedRangeLast();if(!l||!i||g(N,this)||0!==e.button)return p(N,this,!1),g(T,this).length=0,void(0,a.removeClass)(this.hot.rootElement,[C,y]);const h=g(v,this).isBuilt()&&!g(v,this).isAppended(),u=g(S,this).isBuilt()&&!g(S,this).isAppended();h&&u&&(g(v,this).appendTo(s.hider),g(S,this).appendTo(s.hider));const{from:c,to:d}=l,f=Math.min(c.row,d.row),m=Math.max(c.row,d.row);if(t.col<0&&t.row>=f&&t.row<=m){n.row=!0,p(N,this,!0),g(M,this).eventPageY=e.pageY,g(M,this).coords=t,g(M,this).TD=r,p(T,this,this.prepareRowsToMoving());const i=s.holder.scrollLeft+o.getRowHeaderWidth(),l=this.getRowsHeight(f,t.row-1)+(e.clientY-r.getBoundingClientRect().top);g(S,this).setPosition(null,i),g(S,this).setSize(s.hider.offsetWidth-i,this.getRowsHeight(f,m)),g(S,this).setOffset(-l,null),(0,a.addClass)(this.hot.rootElement,C),this.refreshPositions()}else(0,a.removeClass)(this.hot.rootElement,R),p(N,this,!1),g(T,this).length=0}function O(e){g(N,this)&&(g(M,this).eventPageY=e.pageY,this.refreshPositions())}function x(e,t,r,n){this.hot.getSelectedRangeLast()&&g(N,this)&&(g(T,this).indexOf(t.row)>-1?(0,a.removeClass)(this.hot.rootElement,y):(0,a.addClass)(this.hot.rootElement,y),n.row=!0,n.column=!0,n.cell=!0,g(M,this).coords=t,g(M,this).TD=r)}function P(){const e=g(M,this).row,t=g(T,this).length;if(p(N,this,!1),(0,a.removeClass)(this.hot.rootElement,[C,y,R]),this.hot.selection.isSelectedByRowHeader()&&(0,a.addClass)(this.hot.rootElement,R),t<1||void 0===e)return;const r=g(T,this)[0],n=this.hot.toPhysicalRow(r),s=this.dragRows(g(T,this),e);if(g(T,this).length=0,!0===s){this.persistentStateSave(),this.hot.render(),this.hot.view.adjustElementsSize();const e=this.hot.toVisualRow(n),r=e+t-1;this.hot.selectRows(e,r)}}function L(){const e=this.hot.view._wt.wtTable,t=this.hot.view._wt.wtViewport.getRowHeaderWidth()+e.holder.scrollLeft;g(S,this).setPosition(null,t),g(S,this).setSize(e.hider.offsetWidth-t)}function D(){this.moveBySettingsOrLoad()}t.ManualRowMove=A},97553:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639),r(73741),r(82141);var s=r(45098),o=r(15886),i=n(r(61459)),a=n(r(93572));function l(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(e,t){return e.get(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")}o.Hooks.getSingleton().register("beforeColumnFreeze"),o.Hooks.getSingleton().register("afterColumnFreeze"),o.Hooks.getSingleton().register("beforeColumnUnfreeze"),o.Hooks.getSingleton().register("afterColumnUnfreeze");const d=t.PLUGIN_KEY="manualColumnFreeze",p=t.PLUGIN_PRIORITY=110;var g=new WeakMap,f=new WeakSet;class m extends s.BasePlugin{constructor(){var e,t;super(...arguments),l(e=this,t=f),t.add(e),function(e,t,r){l(e,t),t.set(e,r)}(this,g,!1)}static get PLUGIN_KEY(){return d}static get PLUGIN_PRIORITY(){return p}isEnabled(){return!!this.hot.getSettings()[d]}enablePlugin(){this.enabled||(this.addHook("afterContextMenuDefaultOptions",e=>c(f,this,E).call(this,e)),this.addHook("beforeColumnMove",(e,t)=>c(f,this,w).call(this,e,t)),super.enablePlugin())}disablePlugin(){u(g,this,!1),super.disablePlugin()}updatePlugin(){this.disablePlugin(),this.enablePlugin(),super.updatePlugin()}freezeColumn(e){const t=this.hot.getSettings(),r=t.fixedColumnsStart<this.hot.countCols()&&e>t.fixedColumnsStart-1;h(g,this)||u(g,this,!0);!1!==this.hot.runHooks("beforeColumnFreeze",e,r)&&(r&&(this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart),t._fixedColumnsStart+=1),this.hot.runHooks("afterColumnFreeze",e,r))}unfreezeColumn(e){const t=this.hot.getSettings(),r=t.fixedColumnsStart>0&&e<=t.fixedColumnsStart-1;h(g,this)||u(g,this,!0);!1!==this.hot.runHooks("beforeColumnUnfreeze",e,r)&&(r&&(t._fixedColumnsStart-=1,this.hot.columnIndexMapper.moveIndexes(e,t.fixedColumnsStart)),this.hot.runHooks("afterColumnUnfreeze",e,r))}}function E(e){e.items.push({name:"---------"},(0,i.default)(this),(0,a.default)(this))}function w(e,t){if(h(g,this)){const r=this.hot.getSettings().fixedColumnsStart;if(t<r)return!1;if(e.some(e=>e<r))return!1}}t.ManualColumnFreeze=m},97610:(e,t,r)=>{"use strict";var n=r(25225);e.exports=n({}.isPrototypeOf)},98253:(e,t)=>{"use strict";t.__esModule=!0;t.command={name:"extendCellsSelectionDown",callback(e){const{selection:t}=e,{highlight:r}=e.getSelectedRangeLast();t.isSelectedByColumnHeader()||t.isSelectedByCorner()||!(r.isCell()||r.isHeader()&&t.isSelectedByRowHeader())||(t.markSource("keyboard"),t.transformEnd(1,0),t.markEndSource())}}},98304:(e,t,r)=>{"use strict";var n=r(25225),s=r(78016),o=r(14499),i=o.Set,a=o.proto,l=n(a.forEach),h=n(a.keys),u=h(new i).next;e.exports=function(e,t,r){return r?s({iterator:h(e),next:u},t):l(e,t)}},98309:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=r(85180),i=r(39738),a=r(45098),l=r(73269);function h(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function u(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}const c=t.PLUGIN_KEY="touchScroll",d=t.PLUGIN_PRIORITY=200;var p=new WeakSet;class g extends a.BasePlugin{constructor(){super(...arguments),h(this,p),(0,s.default)(this,"scrollbars",[]),(0,s.default)(this,"clones",[]),(0,s.default)(this,"lockedCollection",!1),(0,s.default)(this,"freezeOverlays",!1)}static get PLUGIN_KEY(){return c}static get PLUGIN_PRIORITY(){return d}static get SETTING_KEYS(){return!0}isEnabled(){return(0,l.isTouchSupported)()}enablePlugin(){this.enabled||(this.addHook("afterViewRender",()=>u(p,this,f).call(this)),this.registerEvents(),super.enablePlugin())}updatePlugin(){this.lockedCollection=!1,super.updatePlugin()}disablePlugin(){super.disablePlugin()}registerEvents(){this.addHook("beforeTouchScroll",()=>u(p,this,m).call(this)),this.addHook("afterMomentumScroll",()=>u(p,this,E).call(this))}}function f(){if(this.lockedCollection)return;const{topOverlay:e,bottomOverlay:t,inlineStartOverlay:r,topInlineStartCornerOverlay:n,bottomInlineStartCornerOverlay:s}=this.hot.view._wt.wtOverlays;this.lockedCollection=!0,this.scrollbars.length=0,this.scrollbars.push(e),t.clone&&this.scrollbars.push(t),this.scrollbars.push(r),n&&this.scrollbars.push(n),s&&s.clone&&this.scrollbars.push(s),this.clones=[],e.needFullRender&&this.clones.push(e.clone.wtTable.holder.parentNode),t.needFullRender&&this.clones.push(t.clone.wtTable.holder.parentNode),r.needFullRender&&this.clones.push(r.clone.wtTable.holder.parentNode),n&&this.clones.push(n.clone.wtTable.holder.parentNode),s&&s.clone&&this.clones.push(s.clone.wtTable.holder.parentNode)}function m(){this.freezeOverlays=!0,(0,i.arrayEach)(this.clones,e=>{(0,o.addClass)(e,"hide-tween")})}function E(){this.freezeOverlays=!1,(0,i.arrayEach)(this.clones,e=>{(0,o.removeClass)(e,"hide-tween"),(0,o.addClass)(e,"show-tween")}),this.hot._registerTimeout(()=>{(0,i.arrayEach)(this.clones,e=>{(0,o.removeClass)(e,"show-tween")})},400),(0,i.arrayEach)(this.scrollbars,e=>{e.refresh(),e.resetFixedPosition()}),this.hot.view._wt.wtOverlays.syncScrollWithMaster()}t.TouchScroll=g},98529:(e,t,r)=>{"use strict";t.__esModule=!0,t.registerActions=function(e,t){[n.CellAlignmentAction,s.ColumnMoveAction,o.ColumnSortAction,i.CreateColumnAction,a.CreateRowAction,l.DataChangeAction,h.FiltersAction,u.MergeCellsAction,c.RemoveColumnAction,d.RemoveRowAction,p.RowMoveAction,g.UnmergeCellsAction].forEach(r=>r.startRegisteringEvents(e,t))};var n=r(78124),s=r(16438),o=r(71387),i=r(74515),a=r(55501),l=r(71337),h=r(33286),u=r(99496),c=r(29267),d=r(20941),p=r(40),g=r(42155)},98578:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(14236),s=r(25772),o=r(92716);const i=t.CELL_TYPE="autocomplete";t.AutocompleteCellType={CELL_TYPE:i,editor:n.AutocompleteEditor,renderer:s.autocompleteRenderer,validator:o.autocompleteValidator}},98732:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(76749),s=r(16445),o=r(24607);const i=t.CELL_TYPE="dropdown";t.DropdownCellType={CELL_TYPE:i,editor:n.DropdownEditor,renderer:s.dropdownRenderer,validator:o.dropdownValidator,filter:!1,strict:!0}},98846:(e,t,r)=>{"use strict";t.__esModule=!0,r(88443),r(85639),r(90382),r(62705),r(78495),r(43554),r(15247),r(18472),r(89711),r(78675),r(73741),r(7307),r(37782),r(69326);var n=r(24191);function s(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 i(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 p(e){a(h,this).set(e,[]),a(u,this).set(e,0)}t.HooksBucket=class{constructor(){var e,t;o(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,p).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,p).call(this,e),n.REGISTERED_HOOKS.push(e));const s=a(h,this).get(e);if(s.find(e=>e.callback===t))return;const o=Number.isInteger(r.orderIndex)?r.orderIndex:0,i=!!r.runOnce,u=!!r.initialHook;let g=!1;if(u){const e=s.find(e=>e.initialHook);e&&(e.callback=t,g=!0)}if(!g){s.push({callback:t,orderIndex:o,runOnce:i,initialHook:u,skip:!1});let r=a(c,this).has(e);r||0===o||(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(),i(h,this,null),i(u,this,null)}}},99325:(e,t,r)=>{"use strict";t.__esModule=!0;var n=r(51953);t.EDITOR_TYPE=n.EDITOR_TYPE,t.HandsontableEditor=n.HandsontableEditor},99423:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0,r(88443),r(85639);var s=n(r(53726)),o=n(r(35418));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 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;class u{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];var o,a,u;(0,s.default)(this,"highlight",null),(0,s.default)(this,"from",null),(0,s.default)(this,"to",null),i(this,h,!1),this.highlight=e.clone(),this.from=t.clone(),this.to=r.clone(),a=this,u=n,(o=h).set(l(o,a),u)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return!(!this.from.isHeader()||!this.to.isHeader())||(this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0)}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),t=Math.max(this.to.row,0);return Math.max(e,t)-Math.min(e,t)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),t=Math.max(this.to.col,0);return Math.max(e,t)-Math.min(e,t)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:t,col:r}=e,n=this.getOuterTopStartCorner(),s=this.getOuterBottomEndCorner();return n.row<=t&&s.row>=t&&n.col<=r&&s.col>=r}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const t=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();return(e.row<t.row||e.col<t.col||e.row>r.row||e.col>r.col)&&(this.from=this._createCellCoords(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=this._createCellCoords(Math.max(r.row,e.row),Math.max(r.col,e.col)),!0)}expandByRange(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.includesRange(e)||!this.overlaps(e))return!1;const r=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),s=this.getDirection(),o=e.getOuterTopStartCorner(),i=e.getOuterBottomEndCorner(),a=Math.min(r.row,o.row),l=Math.min(r.col,o.col),h=Math.max(n.row,i.row),u=Math.max(n.col,i.col),c=this._createCellCoords(a,l),d=this._createCellCoords(h,u);return this.from=c,this.to=d,this.setDirection(s),t&&(this.highlight.row===this.getOuterBottomRightCorner().row&&"N-S"===this.getVerticalDirection()&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&"W-E"===this.getHorizontalDirection()&&this.flipDirectionHorizontally()),!0}getDirection(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()]}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE")}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW")}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return a(h,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return a(h,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return a(h,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return a(h,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return a(h,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return a(h,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return a(h,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return a(h,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){return e instanceof o.default&&(e.isEqual(this.getOuterBottomEndCorner())?this.getOuterTopStartCorner():e.isEqual(this.getOuterTopStartCorner())?this.getOuterBottomEndCorner():e.isEqual(this.getOuterTopEndCorner())?this.getOuterBottomStartCorner():e.isEqual(this.getOuterBottomStartCorner())?this.getOuterTopEndCorner():void 0)}getBordersSharedWith(e){if(!this.includesRange(e))return[];const t=Math.min(this.from.row,this.to.row),r=Math.max(this.from.row,this.to.row),n=Math.min(this.from.col,this.to.col),s=Math.max(this.from.col,this.to.col),o=Math.min(e.from.row,e.to.row),i=Math.max(e.from.row,e.to.row),l=Math.min(e.from.col,e.to.col),u=Math.max(e.from.col,e.to.col),c=[];return t===o&&c.push("top"),s===u&&c.push(a(h,this)?"left":"right"),r===i&&c.push("bottom"),n===l&&c.push(a(h,this)?"right":"left"),c}getInner(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),r=[];for(let n=e.row;n<=t.row;n++)for(let s=e.col;s<=t.col;s++)this.from.row===n&&this.from.col===s||this.to.row===n&&this.to.col===s||r.push(this._createCellCoords(n,s));return r}getAll(){const e=this.getOuterTopStartCorner(),t=this.getOuterBottomEndCorner(),r=[];for(let n=e.row;n<=t.row;n++)for(let s=e.col;s<=t.col;s++)e.row===n&&e.col===s?r.push(e):t.row===n&&t.col===s?r.push(t):r.push(this._createCellCoords(n,s));return r}forAll(e){const t=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();for(let n=t.row;n<=r.row;n++)for(let s=t.col;s<=r.col;s++){if(!1===e(n,s))return}}clone(){return new u(this.highlight,this.from,this.to,a(h,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,t){return new o.default(e,t,a(h,this))}}t.default=u},99496:(e,t,r)=>{"use strict";var n=r(60423);t.__esModule=!0;var s=n(r(53726)),o=r(63781);class i extends o.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(),o=r.getBottomEndCorner(),a=e.getData(s.row,s.col,o.row,o.col);t.done(()=>new i({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=i},99537:(e,t,r)=>{"use strict";r(73741),r(69326),t.__esModule=!0;var n=r(95094);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||(t[e]=n[e]))})},99813:()=>{},99949:()=>{}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d({},{f1:()=>Wo,iz:()=>it});var e,t,n={};r.r(n),r.d(n,{AbsPlugin:()=>qo,AddressPlugin:()=>Ko,ArrayPlugin:()=>Xo,BitShiftPlugin:()=>Qo,BitwiseLogicOperationsPlugin:()=>ti,BooleanPlugin:()=>ri,CharPlugin:()=>ni,CodePlugin:()=>si,ComplexPlugin:()=>jl,ConditionalAggregationPlugin:()=>ua,CountBlankPlugin:()=>oi,CountUniquePlugin:()=>ii,DateTimePlugin:()=>ai,DegreesPlugin:()=>di,DeltaPlugin:()=>pi,ExpPlugin:()=>gi,FinancialPlugin:()=>fi,FormulaTextPlugin:()=>Ri,HyperlinkPlugin:()=>Si,InformationPlugin:()=>vi,IsEvenPlugin:()=>Ti,IsOddPlugin:()=>Ni,LogarithmPlugin:()=>Mi,LookupPlugin:()=>fa,MathConstantsPlugin:()=>bi,MathPlugin:()=>Bl,MatrixPlugin:()=>Oi,MedianPlugin:()=>xi,ModuloPlugin:()=>Pi,NumericAggregationPlugin:()=>ki,PowerPlugin:()=>Ui,RadiansPlugin:()=>Vi,RadixConversionPlugin:()=>Wi,RandomPlugin:()=>Xi,RomanPlugin:()=>ma,RoundingPlugin:()=>Zi,SimpleArithmerticPlugin:()=>ya,SqrtPlugin:()=>Ji,StatisticalAggregationPlugin:()=>nh,StatisticalPlugin:()=>Vl,SumprodPlugin:()=>ca,TextPlugin:()=>da,TrigonometryPlugin:()=>pa}),function(e){e.RELATIVE="RELATIVE",e.ABSOLUTE="ABSOLUTE"}(e||(e={}));class s{constructor(e,t,r){this.type=e,this.col=t,this.sheet=r}static absolute(t,r){return new s(e.ABSOLUTE,t,r)}static relative(t,r){return new s(e.RELATIVE,t,r)}static compareByAbsoluteAddress(e){return(t,r)=>t.toSimpleColumnAddress(e).col-r.toSimpleColumnAddress(e).col}isColumnAbsolute(){return this.type===e.ABSOLUTE}isColumnRelative(){return this.type===e.RELATIVE}isAbsolute(){return this.type===e.ABSOLUTE&&void 0!==this.sheet}moved(e,t,r){const n=void 0===this.sheet?void 0:e;return new s(this.type,this.col+t,n)}shiftedByColumns(e){return new s(this.type,this.col+e,this.sheet)}toSimpleColumnAddress(e){const t=Pr(this,e);let r=this.col;return this.isColumnRelative()&&(r=e.col+this.col),Mr(t,r)}shiftRelativeDimensions(e,t){const r=this.isColumnRelative()?this.col+e:this.col;return new s(this.type,r,this.sheet)}shiftAbsoluteDimensions(e,t){const r=this.isColumnAbsolute()?this.col+e:this.col;return new s(this.type,r,this.sheet)}withSheet(e){return new s(this.type,this.col,e)}isInvalid(e){return this.toSimpleColumnAddress(e).col<0}hash(t){const r=t&&void 0!==this.sheet?`#${this.sheet}`:"";switch(this.type){case e.RELATIVE:return`${r}#COLR${this.col}`;case e.ABSOLUTE:return`${r}#COLA${this.col}`}}unparse(t){const r=this.toSimpleColumnAddress(t);if(_r(r))return;const n=O(r.col);return`${this.type===e.ABSOLUTE?"$":""}${n}`}exceedsSheetSizeLimits(e){return this.col>=e}}